]>
Commit | Line | Data |
---|---|---|
4ee9c684 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
cd9a469c | 3 | # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
4ee9c684 | 8 | # |
4ee9c684 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
4ee9c684 | 14 | |
cd9a469c | 15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4ee9c684 | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4ee9c684 | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
4ee9c684 | 31 | fi |
4ee9c684 | 32 | |
cd9a469c | 33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
4ee9c684 | 79 | fi |
80 | ||
81 | ||
cd9a469c | 82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
4ee9c684 | 121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
cd9a469c | 126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
d5d92632 | 172 | test \$(( 1 + 1 )) = 2 || exit 1 |
e6408286 | 173 | |
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
d5d92632 | 180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
cd9a469c | 181 | if (eval "$as_required") 2>/dev/null; then : |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
4ee9c684 | 192 | do |
cd9a469c | 193 | IFS=$as_save_IFS |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
4ee9c684 | 236 | else |
cd9a469c | 237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
4ee9c684 | 241 | fi |
cd9a469c | 242 | exit 1 |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
4ee9c684 | 380 | |
cd9a469c | 381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4ee9c684 | 383 | as_expr=expr |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
cd9a469c | 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4ee9c684 | 389 | as_basename=basename |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
cd9a469c | 394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
4ee9c684 | 399 | |
cd9a469c | 400 | as_me=`$as_basename -- "$0" || |
4ee9c684 | 401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
ce1a737c | 418 | |
82eaf560 | 419 | # Avoid depending upon Character Ranges. |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ff4425cf | 425 | |
4ee9c684 | 426 | |
cd9a469c | 427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
4ee9c684 | 436 | sed ' |
cd9a469c | 437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
4ee9c684 | 441 | N |
cd9a469c | 442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
4ee9c684 | 444 | t loop |
cd9a469c | 445 | s/-\n.*// |
4ee9c684 | 446 | ' >$as_me.lineno && |
cd9a469c | 447 | chmod +x "$as_me.lineno" || |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
4ee9c684 | 449 | |
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
cd9a469c | 452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" | |
4ee9c684 | 454 | # Exit status is that of the last command. |
455 | exit | |
456 | } | |
457 | ||
cd9a469c | 458 | ECHO_C= ECHO_N= ECHO_T= |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
4ee9c684 | 469 | esac |
470 | ||
cd9a469c | 471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
4ee9c684 | 474 | else |
cd9a469c | 475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
4ee9c684 | 477 | fi |
cd9a469c | 478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
82eaf560 | 480 | as_ln_s='ln -s' |
cd9a469c | 481 | # ... but there are two gotchas: |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
82eaf560 | 491 | fi |
4ee9c684 | 492 | else |
493 | as_ln_s='cp -p' | |
494 | fi | |
cd9a469c | 495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null | |
4ee9c684 | 497 | |
498 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
4ee9c684 | 500 | else |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
cd9a469c | 505 | if test -x / >/dev/null 2>&1; then |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
4ee9c684 | 527 | |
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
542f9784 | 534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
542f9784 | 536 | |
cd9a469c | 537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
4ee9c684 | 539 | # Name of the host. |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
4ee9c684 | 544 | # |
545 | # Initializations. | |
546 | # | |
547 | ac_default_prefix=/usr/local | |
cd9a469c | 548 | ac_clean_files= |
4ee9c684 | 549 | ac_config_libobj_dir=. |
cd9a469c | 550 | LIBOBJS= |
4ee9c684 | 551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
82eaf560 | 555 | |
4ee9c684 | 556 | # Identity of this package. |
557 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
558 | PACKAGE_TARNAME='libgfortran' | |
76c0a846 | 559 | PACKAGE_VERSION='0.3' |
560 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
4ee9c684 | 561 | PACKAGE_BUGREPORT='' |
cd9a469c | 562 | PACKAGE_URL='http://www.gnu.org/software/libgfortran/' |
4ee9c684 | 563 | |
564 | # Factoring default headers for most tests. | |
565 | ac_includes_default="\ | |
566 | #include <stdio.h> | |
cd9a469c | 567 | #ifdef HAVE_SYS_TYPES_H |
4ee9c684 | 568 | # include <sys/types.h> |
569 | #endif | |
cd9a469c | 570 | #ifdef HAVE_SYS_STAT_H |
4ee9c684 | 571 | # include <sys/stat.h> |
572 | #endif | |
cd9a469c | 573 | #ifdef STDC_HEADERS |
4ee9c684 | 574 | # include <stdlib.h> |
575 | # include <stddef.h> | |
576 | #else | |
cd9a469c | 577 | # ifdef HAVE_STDLIB_H |
4ee9c684 | 578 | # include <stdlib.h> |
579 | # endif | |
580 | #endif | |
cd9a469c | 581 | #ifdef HAVE_STRING_H |
582 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
4ee9c684 | 583 | # include <memory.h> |
584 | # endif | |
585 | # include <string.h> | |
586 | #endif | |
cd9a469c | 587 | #ifdef HAVE_STRINGS_H |
4ee9c684 | 588 | # include <strings.h> |
589 | #endif | |
cd9a469c | 590 | #ifdef HAVE_INTTYPES_H |
4ee9c684 | 591 | # include <inttypes.h> |
4ee9c684 | 592 | #endif |
cd9a469c | 593 | #ifdef HAVE_STDINT_H |
594 | # include <stdint.h> | |
595 | #endif | |
596 | #ifdef HAVE_UNISTD_H | |
4ee9c684 | 597 | # include <unistd.h> |
598 | #endif" | |
599 | ||
a1aa1d30 | 600 | ac_header_list= |
601 | ac_func_list= | |
87969c8c | 602 | ac_c_werror_flag= |
b14cf757 | 603 | ac_c_werror_flag= |
cd9a469c | 604 | ac_subst_vars='am__EXEEXT_FALSE |
605 | am__EXEEXT_TRUE | |
606 | LTLIBOBJS | |
607 | LIBOBJS | |
0812bb06 | 608 | get_gcc_base_ver |
cd9a469c | 609 | IEEE_FLAGS |
d566c3e0 | 610 | IEEE_SUPPORT |
611 | IEEE_SUPPORT_FALSE | |
612 | IEEE_SUPPORT_TRUE | |
cd9a469c | 613 | FPU_HOST_HEADER |
87969c8c | 614 | LIBGFOR_BUILD_QUAD_FALSE |
615 | LIBGFOR_BUILD_QUAD_TRUE | |
616 | LIBQUADINCLUDE | |
617 | LIBQUADLIB_DEP | |
618 | LIBQUADLIB | |
619 | LIBQUADSPEC | |
cd9a469c | 620 | extra_ldflags_libgfortran |
621 | ac_ct_FC | |
622 | FCFLAGS | |
623 | FC | |
624 | enable_static | |
625 | enable_shared | |
8c35d268 | 626 | lt_host_flags |
cd9a469c | 627 | OTOOL64 |
628 | OTOOL | |
629 | LIPO | |
630 | NMEDIT | |
631 | DSYMUTIL | |
cd9a469c | 632 | OBJDUMP |
633 | LN_S | |
634 | NM | |
635 | ac_ct_DUMPBIN | |
636 | DUMPBIN | |
cd9a469c | 637 | LIBTOOL |
638 | RANLIB | |
639 | AR | |
640 | AS | |
18ce903b | 641 | HAVE_HWCAP_FALSE |
642 | HAVE_HWCAP_TRUE | |
643 | HWCAP_LDFLAGS | |
644 | LD | |
645 | FGREP | |
646 | SED | |
cd9a469c | 647 | SECTION_FLAGS |
eb00e55c | 648 | LIBGFOR_MINIMAL_FALSE |
649 | LIBGFOR_MINIMAL_TRUE | |
019fb48a | 650 | LIBGFOR_USE_SYMVER_SUN_FALSE |
651 | LIBGFOR_USE_SYMVER_SUN_TRUE | |
652 | LIBGFOR_USE_SYMVER_GNU_FALSE | |
653 | LIBGFOR_USE_SYMVER_GNU_TRUE | |
cd9a469c | 654 | LIBGFOR_USE_SYMVER_FALSE |
655 | LIBGFOR_USE_SYMVER_TRUE | |
656 | AM_CFLAGS | |
657 | AM_FCFLAGS | |
d5d92632 | 658 | toolexeclibdir |
659 | toolexecdir | |
660 | EGREP | |
661 | GREP | |
662 | CPP | |
cd9a469c | 663 | am__fastdepCC_FALSE |
664 | am__fastdepCC_TRUE | |
665 | CCDEPMODE | |
544db64f | 666 | am__nodep |
cd9a469c | 667 | AMDEPBACKSLASH |
668 | AMDEP_FALSE | |
669 | AMDEP_TRUE | |
670 | am__quote | |
671 | am__include | |
672 | DEPDIR | |
673 | OBJEXT | |
674 | EXEEXT | |
675 | ac_ct_CC | |
676 | CPPFLAGS | |
677 | LDFLAGS | |
678 | CFLAGS | |
679 | CC | |
cd9a469c | 680 | multi_basedir |
681 | MAINT | |
682 | MAINTAINER_MODE_FALSE | |
683 | MAINTAINER_MODE_TRUE | |
684 | am__untar | |
685 | am__tar | |
686 | AMTAR | |
687 | am__leading_dot | |
688 | SET_MAKE | |
689 | AWK | |
690 | mkdir_p | |
691 | MKDIR_P | |
692 | INSTALL_STRIP_PROGRAM | |
693 | STRIP | |
694 | install_sh | |
695 | MAKEINFO | |
696 | AUTOHEADER | |
697 | AUTOMAKE | |
698 | AUTOCONF | |
699 | ACLOCAL | |
700 | VERSION | |
701 | PACKAGE | |
702 | CYGPATH_W | |
703 | am__isrc | |
704 | INSTALL_DATA | |
705 | INSTALL_SCRIPT | |
706 | INSTALL_PROGRAM | |
7eda0fb7 | 707 | target_noncanonical |
cd9a469c | 708 | target_os |
709 | target_vendor | |
710 | target_cpu | |
711 | target | |
712 | host_os | |
713 | host_vendor | |
714 | host_cpu | |
715 | host | |
716 | onestep | |
717 | onestep_FALSE | |
718 | onestep_TRUE | |
719 | target_subdir | |
720 | host_subdir | |
721 | build_subdir | |
722 | build_libsubdir | |
723 | build_os | |
724 | build_vendor | |
725 | build_cpu | |
726 | build | |
727 | target_alias | |
728 | host_alias | |
729 | build_alias | |
730 | LIBS | |
731 | ECHO_T | |
732 | ECHO_N | |
733 | ECHO_C | |
734 | DEFS | |
735 | mandir | |
736 | localedir | |
737 | libdir | |
738 | psdir | |
739 | pdfdir | |
740 | dvidir | |
741 | htmldir | |
742 | infodir | |
743 | docdir | |
744 | oldincludedir | |
745 | includedir | |
746 | localstatedir | |
747 | sharedstatedir | |
748 | sysconfdir | |
749 | datadir | |
750 | datarootdir | |
751 | libexecdir | |
752 | sbindir | |
753 | bindir | |
754 | program_transform_name | |
755 | prefix | |
756 | exec_prefix | |
757 | PACKAGE_URL | |
758 | PACKAGE_BUGREPORT | |
759 | PACKAGE_STRING | |
760 | PACKAGE_VERSION | |
761 | PACKAGE_TARNAME | |
762 | PACKAGE_NAME | |
763 | PATH_SEPARATOR | |
764 | SHELL' | |
4ee9c684 | 765 | ac_subst_files='' |
cd9a469c | 766 | ac_user_opts=' |
767 | enable_option_checking | |
768 | with_build_libsubdir | |
769 | enable_version_specific_runtime_libs | |
770 | enable_intermodule | |
771 | enable_maintainer_mode | |
772 | enable_multilib | |
773 | enable_dependency_tracking | |
bbb514dc | 774 | enable_symvers |
18ce903b | 775 | with_gnu_ld |
cd9a469c | 776 | enable_shared |
777 | enable_static | |
778 | with_pic | |
779 | enable_fast_install | |
cd9a469c | 780 | enable_libtool_lock |
781 | enable_largefile | |
d9d975ae | 782 | enable_libquadmath_support |
0812bb06 | 783 | with_gcc_major_version_only |
cd9a469c | 784 | ' |
785 | ac_precious_vars='build_alias | |
786 | host_alias | |
787 | target_alias | |
d5d92632 | 788 | CC |
789 | CFLAGS | |
790 | LDFLAGS | |
791 | LIBS | |
cd9a469c | 792 | CPPFLAGS |
d5d92632 | 793 | CPP |
cd9a469c | 794 | FC |
d5d92632 | 795 | FCFLAGS' |
cd9a469c | 796 | |
4ee9c684 | 797 | |
798 | # Initialize some variables set by options. | |
799 | ac_init_help= | |
800 | ac_init_version=false | |
cd9a469c | 801 | ac_unrecognized_opts= |
802 | ac_unrecognized_sep= | |
4ee9c684 | 803 | # The variables have the same names as the options, with |
804 | # dashes changed to underlines. | |
805 | cache_file=/dev/null | |
806 | exec_prefix=NONE | |
807 | no_create= | |
808 | no_recursion= | |
809 | prefix=NONE | |
810 | program_prefix=NONE | |
811 | program_suffix=NONE | |
812 | program_transform_name=s,x,x, | |
813 | silent= | |
814 | site= | |
815 | srcdir= | |
816 | verbose= | |
817 | x_includes=NONE | |
818 | x_libraries=NONE | |
819 | ||
820 | # Installation directory options. | |
821 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
822 | # and all the variables that are supposed to be based on exec_prefix | |
823 | # by default will actually change. | |
824 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 825 | # (The list follows the same order as the GNU Coding Standards.) |
4ee9c684 | 826 | bindir='${exec_prefix}/bin' |
827 | sbindir='${exec_prefix}/sbin' | |
828 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 829 | datarootdir='${prefix}/share' |
830 | datadir='${datarootdir}' | |
4ee9c684 | 831 | sysconfdir='${prefix}/etc' |
832 | sharedstatedir='${prefix}/com' | |
833 | localstatedir='${prefix}/var' | |
4ee9c684 | 834 | includedir='${prefix}/include' |
835 | oldincludedir='/usr/include' | |
cd9a469c | 836 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
837 | infodir='${datarootdir}/info' | |
838 | htmldir='${docdir}' | |
839 | dvidir='${docdir}' | |
840 | pdfdir='${docdir}' | |
841 | psdir='${docdir}' | |
842 | libdir='${exec_prefix}/lib' | |
843 | localedir='${datarootdir}/locale' | |
844 | mandir='${datarootdir}/man' | |
4ee9c684 | 845 | |
846 | ac_prev= | |
cd9a469c | 847 | ac_dashdash= |
4ee9c684 | 848 | for ac_option |
849 | do | |
850 | # If the previous option needs an argument, assign it. | |
851 | if test -n "$ac_prev"; then | |
cd9a469c | 852 | eval $ac_prev=\$ac_option |
4ee9c684 | 853 | ac_prev= |
854 | continue | |
855 | fi | |
856 | ||
cd9a469c | 857 | case $ac_option in |
858 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
859 | *) ac_optarg=yes ;; | |
860 | esac | |
4ee9c684 | 861 | |
862 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
863 | ||
cd9a469c | 864 | case $ac_dashdash$ac_option in |
865 | --) | |
866 | ac_dashdash=yes ;; | |
4ee9c684 | 867 | |
868 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
869 | ac_prev=bindir ;; | |
870 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
871 | bindir=$ac_optarg ;; | |
872 | ||
873 | -build | --build | --buil | --bui | --bu) | |
874 | ac_prev=build_alias ;; | |
875 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
876 | build_alias=$ac_optarg ;; | |
877 | ||
878 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
879 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
880 | ac_prev=cache_file ;; | |
881 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
882 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
883 | cache_file=$ac_optarg ;; | |
884 | ||
885 | --config-cache | -C) | |
886 | cache_file=config.cache ;; | |
887 | ||
cd9a469c | 888 | -datadir | --datadir | --datadi | --datad) |
4ee9c684 | 889 | ac_prev=datadir ;; |
cd9a469c | 890 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
4ee9c684 | 891 | datadir=$ac_optarg ;; |
892 | ||
cd9a469c | 893 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
894 | | --dataroo | --dataro | --datar) | |
895 | ac_prev=datarootdir ;; | |
896 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
897 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
898 | datarootdir=$ac_optarg ;; | |
899 | ||
4ee9c684 | 900 | -disable-* | --disable-*) |
cd9a469c | 901 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
4ee9c684 | 902 | # Reject names that are not valid shell variable names. |
cd9a469c | 903 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
904 | as_fn_error "invalid feature name: $ac_useropt" | |
905 | ac_useropt_orig=$ac_useropt | |
906 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
907 | case $ac_user_opts in | |
908 | *" | |
909 | "enable_$ac_useropt" | |
910 | "*) ;; | |
911 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
912 | ac_unrecognized_sep=', ';; | |
913 | esac | |
914 | eval enable_$ac_useropt=no ;; | |
915 | ||
916 | -docdir | --docdir | --docdi | --doc | --do) | |
917 | ac_prev=docdir ;; | |
918 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
919 | docdir=$ac_optarg ;; | |
920 | ||
921 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
922 | ac_prev=dvidir ;; | |
923 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
924 | dvidir=$ac_optarg ;; | |
4ee9c684 | 925 | |
926 | -enable-* | --enable-*) | |
cd9a469c | 927 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
4ee9c684 | 928 | # Reject names that are not valid shell variable names. |
cd9a469c | 929 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
930 | as_fn_error "invalid feature name: $ac_useropt" | |
931 | ac_useropt_orig=$ac_useropt | |
932 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
933 | case $ac_user_opts in | |
934 | *" | |
935 | "enable_$ac_useropt" | |
936 | "*) ;; | |
937 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
938 | ac_unrecognized_sep=', ';; | |
82eaf560 | 939 | esac |
cd9a469c | 940 | eval enable_$ac_useropt=\$ac_optarg ;; |
4ee9c684 | 941 | |
942 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
943 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
944 | | --exec | --exe | --ex) | |
945 | ac_prev=exec_prefix ;; | |
946 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
947 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
948 | | --exec=* | --exe=* | --ex=*) | |
949 | exec_prefix=$ac_optarg ;; | |
950 | ||
951 | -gas | --gas | --ga | --g) | |
952 | # Obsolete; use --with-gas. | |
953 | with_gas=yes ;; | |
954 | ||
955 | -help | --help | --hel | --he | -h) | |
956 | ac_init_help=long ;; | |
957 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
958 | ac_init_help=recursive ;; | |
959 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
960 | ac_init_help=short ;; | |
961 | ||
962 | -host | --host | --hos | --ho) | |
963 | ac_prev=host_alias ;; | |
964 | -host=* | --host=* | --hos=* | --ho=*) | |
965 | host_alias=$ac_optarg ;; | |
966 | ||
cd9a469c | 967 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
968 | ac_prev=htmldir ;; | |
969 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
970 | | --ht=*) | |
971 | htmldir=$ac_optarg ;; | |
972 | ||
4ee9c684 | 973 | -includedir | --includedir | --includedi | --included | --include \ |
974 | | --includ | --inclu | --incl | --inc) | |
975 | ac_prev=includedir ;; | |
976 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
977 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
978 | includedir=$ac_optarg ;; | |
979 | ||
980 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
981 | ac_prev=infodir ;; | |
982 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
983 | infodir=$ac_optarg ;; | |
984 | ||
985 | -libdir | --libdir | --libdi | --libd) | |
986 | ac_prev=libdir ;; | |
987 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
988 | libdir=$ac_optarg ;; | |
989 | ||
990 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
991 | | --libexe | --libex | --libe) | |
992 | ac_prev=libexecdir ;; | |
993 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
994 | | --libexe=* | --libex=* | --libe=*) | |
995 | libexecdir=$ac_optarg ;; | |
996 | ||
cd9a469c | 997 | -localedir | --localedir | --localedi | --localed | --locale) |
998 | ac_prev=localedir ;; | |
999 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1000 | localedir=$ac_optarg ;; | |
1001 | ||
4ee9c684 | 1002 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1003 | | --localstate | --localstat | --localsta | --localst | --locals) |
4ee9c684 | 1004 | ac_prev=localstatedir ;; |
1005 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1006 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
4ee9c684 | 1007 | localstatedir=$ac_optarg ;; |
1008 | ||
1009 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1010 | ac_prev=mandir ;; | |
1011 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1012 | mandir=$ac_optarg ;; | |
1013 | ||
1014 | -nfp | --nfp | --nf) | |
1015 | # Obsolete; use --without-fp. | |
1016 | with_fp=no ;; | |
1017 | ||
1018 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1019 | | --no-cr | --no-c | -n) | |
1020 | no_create=yes ;; | |
1021 | ||
1022 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1023 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1024 | no_recursion=yes ;; | |
1025 | ||
1026 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1027 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1028 | | --oldin | --oldi | --old | --ol | --o) | |
1029 | ac_prev=oldincludedir ;; | |
1030 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1031 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1032 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1033 | oldincludedir=$ac_optarg ;; | |
1034 | ||
1035 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1036 | ac_prev=prefix ;; | |
1037 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1038 | prefix=$ac_optarg ;; | |
1039 | ||
1040 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1041 | | --program-pre | --program-pr | --program-p) | |
1042 | ac_prev=program_prefix ;; | |
1043 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1044 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1045 | program_prefix=$ac_optarg ;; | |
1046 | ||
1047 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1048 | | --program-suf | --program-su | --program-s) | |
1049 | ac_prev=program_suffix ;; | |
1050 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1051 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1052 | program_suffix=$ac_optarg ;; | |
1053 | ||
1054 | -program-transform-name | --program-transform-name \ | |
1055 | | --program-transform-nam | --program-transform-na \ | |
1056 | | --program-transform-n | --program-transform- \ | |
1057 | | --program-transform | --program-transfor \ | |
1058 | | --program-transfo | --program-transf \ | |
1059 | | --program-trans | --program-tran \ | |
1060 | | --progr-tra | --program-tr | --program-t) | |
1061 | ac_prev=program_transform_name ;; | |
1062 | -program-transform-name=* | --program-transform-name=* \ | |
1063 | | --program-transform-nam=* | --program-transform-na=* \ | |
1064 | | --program-transform-n=* | --program-transform-=* \ | |
1065 | | --program-transform=* | --program-transfor=* \ | |
1066 | | --program-transfo=* | --program-transf=* \ | |
1067 | | --program-trans=* | --program-tran=* \ | |
1068 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1069 | program_transform_name=$ac_optarg ;; | |
1070 | ||
cd9a469c | 1071 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1072 | ac_prev=pdfdir ;; | |
1073 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1074 | pdfdir=$ac_optarg ;; | |
1075 | ||
1076 | -psdir | --psdir | --psdi | --psd | --ps) | |
1077 | ac_prev=psdir ;; | |
1078 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1079 | psdir=$ac_optarg ;; | |
1080 | ||
4ee9c684 | 1081 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1082 | | -silent | --silent | --silen | --sile | --sil) | |
1083 | silent=yes ;; | |
1084 | ||
1085 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1086 | ac_prev=sbindir ;; | |
1087 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1088 | | --sbi=* | --sb=*) | |
1089 | sbindir=$ac_optarg ;; | |
1090 | ||
1091 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1092 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1093 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1094 | | --sha | --sh) | |
1095 | ac_prev=sharedstatedir ;; | |
1096 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1097 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1098 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1099 | | --sha=* | --sh=*) | |
1100 | sharedstatedir=$ac_optarg ;; | |
1101 | ||
1102 | -site | --site | --sit) | |
1103 | ac_prev=site ;; | |
1104 | -site=* | --site=* | --sit=*) | |
1105 | site=$ac_optarg ;; | |
1106 | ||
1107 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1108 | ac_prev=srcdir ;; | |
1109 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1110 | srcdir=$ac_optarg ;; | |
1111 | ||
1112 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1113 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1114 | ac_prev=sysconfdir ;; | |
1115 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1116 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1117 | sysconfdir=$ac_optarg ;; | |
1118 | ||
1119 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1120 | ac_prev=target_alias ;; | |
1121 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1122 | target_alias=$ac_optarg ;; | |
1123 | ||
1124 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1125 | verbose=yes ;; | |
1126 | ||
1127 | -version | --version | --versio | --versi | --vers | -V) | |
1128 | ac_init_version=: ;; | |
1129 | ||
1130 | -with-* | --with-*) | |
cd9a469c | 1131 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
4ee9c684 | 1132 | # Reject names that are not valid shell variable names. |
cd9a469c | 1133 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1134 | as_fn_error "invalid package name: $ac_useropt" | |
1135 | ac_useropt_orig=$ac_useropt | |
1136 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1137 | case $ac_user_opts in | |
1138 | *" | |
1139 | "with_$ac_useropt" | |
1140 | "*) ;; | |
1141 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1142 | ac_unrecognized_sep=', ';; | |
82eaf560 | 1143 | esac |
cd9a469c | 1144 | eval with_$ac_useropt=\$ac_optarg ;; |
4ee9c684 | 1145 | |
1146 | -without-* | --without-*) | |
cd9a469c | 1147 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
4ee9c684 | 1148 | # Reject names that are not valid shell variable names. |
cd9a469c | 1149 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1150 | as_fn_error "invalid package name: $ac_useropt" | |
1151 | ac_useropt_orig=$ac_useropt | |
1152 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1153 | case $ac_user_opts in | |
1154 | *" | |
1155 | "with_$ac_useropt" | |
1156 | "*) ;; | |
1157 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1158 | ac_unrecognized_sep=', ';; | |
1159 | esac | |
1160 | eval with_$ac_useropt=no ;; | |
4ee9c684 | 1161 | |
1162 | --x) | |
1163 | # Obsolete; use --with-x. | |
1164 | with_x=yes ;; | |
1165 | ||
1166 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1167 | | --x-incl | --x-inc | --x-in | --x-i) | |
1168 | ac_prev=x_includes ;; | |
1169 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1170 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1171 | x_includes=$ac_optarg ;; | |
1172 | ||
1173 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1174 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1175 | ac_prev=x_libraries ;; | |
1176 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1177 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1178 | x_libraries=$ac_optarg ;; | |
1179 | ||
cd9a469c | 1180 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1181 | Try \`$0 --help' for more information." | |
4ee9c684 | 1182 | ;; |
1183 | ||
1184 | *=*) | |
1185 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1186 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1187 | case $ac_envvar in #( |
1188 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1189 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1190 | esac | |
1191 | eval $ac_envvar=\$ac_optarg | |
4ee9c684 | 1192 | export $ac_envvar ;; |
1193 | ||
1194 | *) | |
1195 | # FIXME: should be removed in autoconf 3.0. | |
cd9a469c | 1196 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
4ee9c684 | 1197 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1198 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
4ee9c684 | 1199 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1200 | ;; | |
1201 | ||
1202 | esac | |
1203 | done | |
1204 | ||
1205 | if test -n "$ac_prev"; then | |
1206 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
cd9a469c | 1207 | as_fn_error "missing argument to $ac_option" |
4ee9c684 | 1208 | fi |
1209 | ||
cd9a469c | 1210 | if test -n "$ac_unrecognized_opts"; then |
1211 | case $enable_option_checking in | |
1212 | no) ;; | |
1213 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1214 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
82eaf560 | 1215 | esac |
cd9a469c | 1216 | fi |
82eaf560 | 1217 | |
cd9a469c | 1218 | # Check all directory arguments for consistency. |
1219 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1220 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1221 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1222 | libdir localedir mandir | |
82eaf560 | 1223 | do |
cd9a469c | 1224 | eval ac_val=\$$ac_var |
1225 | # Remove trailing slashes. | |
1226 | case $ac_val in | |
1227 | */ ) | |
1228 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1229 | eval $ac_var=\$ac_val;; | |
1230 | esac | |
1231 | # Be sure to have absolute directory names. | |
82eaf560 | 1232 | case $ac_val in |
cd9a469c | 1233 | [\\/$]* | ?:[\\/]* ) continue;; |
1234 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
4ee9c684 | 1235 | esac |
cd9a469c | 1236 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
4ee9c684 | 1237 | done |
1238 | ||
1239 | # There might be people who depend on the old broken behavior: `$host' | |
1240 | # used to hold the argument of --host etc. | |
1241 | # FIXME: To remove some day. | |
1242 | build=$build_alias | |
1243 | host=$host_alias | |
1244 | target=$target_alias | |
1245 | ||
1246 | # FIXME: To remove some day. | |
1247 | if test "x$host_alias" != x; then | |
1248 | if test "x$build_alias" = x; then | |
1249 | cross_compiling=maybe | |
cd9a469c | 1250 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
4ee9c684 | 1251 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1252 | elif test "x$build_alias" != "x$host_alias"; then | |
1253 | cross_compiling=yes | |
1254 | fi | |
1255 | fi | |
1256 | ||
1257 | ac_tool_prefix= | |
1258 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1259 | ||
1260 | test "$silent" = yes && exec 6>/dev/null | |
1261 | ||
1262 | ||
cd9a469c | 1263 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1264 | ac_ls_di=`ls -di .` && | |
1265 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1266 | as_fn_error "working directory cannot be determined" | |
1267 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1268 | as_fn_error "pwd does not report name of working directory" | |
1269 | ||
1270 | ||
4ee9c684 | 1271 | # Find the source files, if location was not specified. |
1272 | if test -z "$srcdir"; then | |
1273 | ac_srcdir_defaulted=yes | |
cd9a469c | 1274 | # Try the directory containing this script, then the parent directory. |
1275 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1276 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1277 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1278 | X"$as_myself" : 'X\(//\)$' \| \ | |
1279 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1280 | $as_echo X"$as_myself" | | |
1281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1282 | s//\1/ | |
1283 | q | |
1284 | } | |
1285 | /^X\(\/\/\)[^/].*/{ | |
1286 | s//\1/ | |
1287 | q | |
1288 | } | |
1289 | /^X\(\/\/\)$/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | /^X\(\/\).*/{ | |
1294 | s//\1/ | |
1295 | q | |
1296 | } | |
1297 | s/.*/./; q'` | |
4ee9c684 | 1298 | srcdir=$ac_confdir |
cd9a469c | 1299 | if test ! -r "$srcdir/$ac_unique_file"; then |
4ee9c684 | 1300 | srcdir=.. |
1301 | fi | |
1302 | else | |
1303 | ac_srcdir_defaulted=no | |
1304 | fi | |
cd9a469c | 1305 | if test ! -r "$srcdir/$ac_unique_file"; then |
1306 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1307 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1308 | fi | |
1309 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1310 | ac_abs_confdir=`( | |
1311 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1312 | pwd)` | |
1313 | # When building in place, set srcdir=. | |
1314 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1315 | srcdir=. | |
1316 | fi | |
1317 | # Remove unnecessary trailing slashes from srcdir. | |
1318 | # Double slashes in file names in object file debugging info | |
1319 | # mess up M-x gdb in Emacs. | |
1320 | case $srcdir in | |
1321 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1322 | esac | |
1323 | for ac_var in $ac_precious_vars; do | |
1324 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1325 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1326 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1327 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1328 | done | |
4ee9c684 | 1329 | |
1330 | # | |
1331 | # Report the --help message. | |
1332 | # | |
1333 | if test "$ac_init_help" = "long"; then | |
1334 | # Omit some internal or obsolete options to make the list less imposing. | |
1335 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1336 | cat <<_ACEOF | |
76c0a846 | 1337 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
4ee9c684 | 1338 | |
1339 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1340 | ||
1341 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1342 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1343 | ||
1344 | Defaults for the options are specified in brackets. | |
1345 | ||
1346 | Configuration: | |
1347 | -h, --help display this help and exit | |
1348 | --help=short display options specific to this package | |
1349 | --help=recursive display the short help of all the included packages | |
1350 | -V, --version display version information and exit | |
1351 | -q, --quiet, --silent do not print \`checking...' messages | |
1352 | --cache-file=FILE cache test results in FILE [disabled] | |
1353 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1354 | -n, --no-create do not create output files | |
1355 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1356 | ||
4ee9c684 | 1357 | Installation directories: |
1358 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1359 | [$ac_default_prefix] |
4ee9c684 | 1360 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1361 | [PREFIX] |
4ee9c684 | 1362 | |
1363 | By default, \`make install' will install all the files in | |
1364 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1365 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1366 | for instance \`--prefix=\$HOME'. | |
1367 | ||
1368 | For better control, use the options below. | |
1369 | ||
1370 | Fine tuning of the installation directories: | |
cd9a469c | 1371 | --bindir=DIR user executables [EPREFIX/bin] |
1372 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1373 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1374 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1375 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1376 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1377 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1378 | --includedir=DIR C header files [PREFIX/include] | |
1379 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1380 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1381 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1382 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1383 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1384 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1385 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1386 | --htmldir=DIR html documentation [DOCDIR] | |
1387 | --dvidir=DIR dvi documentation [DOCDIR] | |
1388 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1389 | --psdir=DIR ps documentation [DOCDIR] | |
4ee9c684 | 1390 | _ACEOF |
1391 | ||
1392 | cat <<\_ACEOF | |
1393 | ||
1394 | Program names: | |
1395 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1396 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1397 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1398 | ||
1399 | System types: | |
1400 | --build=BUILD configure for building on BUILD [guessed] | |
1401 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
90973b19 | 1402 | --target=TARGET configure for building compilers for TARGET [HOST] |
4ee9c684 | 1403 | _ACEOF |
1404 | fi | |
1405 | ||
1406 | if test -n "$ac_init_help"; then | |
1407 | case $ac_init_help in | |
76c0a846 | 1408 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
4ee9c684 | 1409 | esac |
1410 | cat <<\_ACEOF | |
1411 | ||
1412 | Optional Features: | |
cd9a469c | 1413 | --disable-option-checking ignore unrecognized --enable/--with options |
4ee9c684 | 1414 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1415 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d9d975ae | 1416 | --enable-version-specific-runtime-libs |
1417 | specify that runtime libraries should be installed | |
1418 | in a compiler-specific directory | |
93773f82 | 1419 | --enable-intermodule build the library in one step |
4ee9c684 | 1420 | --enable-maintainer-mode enable make rules and dependencies not useful |
1421 | (and sometimes confusing) to the casual installer | |
90973b19 | 1422 | --enable-multilib build many library versions (default) |
2fd61f51 | 1423 | --disable-dependency-tracking speeds up one-time build |
1424 | --enable-dependency-tracking do not reject slow dependency extractors | |
bbb514dc | 1425 | --disable-symvers disable symbol versioning for libgfortran |
cd9a469c | 1426 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1427 | --enable-static[=PKGS] build static libraries [default=yes] | |
542f9784 | 1428 | --enable-fast-install[=PKGS] |
1429 | optimize for fast installation [default=yes] | |
4ee9c684 | 1430 | --disable-libtool-lock avoid locking (might break parallel builds) |
90e67cff | 1431 | --disable-largefile omit support for large files |
d9d975ae | 1432 | --disable-libquadmath-support |
1433 | disable libquadmath support for Fortran | |
4ee9c684 | 1434 | |
1435 | Optional Packages: | |
1436 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1437 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3e427a9c | 1438 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
18ce903b | 1439 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
542f9784 | 1440 | --with-pic try to use only PIC/non-PIC objects [default=use |
1441 | both] | |
0812bb06 | 1442 | --with-gcc-major-version-only |
1443 | use only GCC major number in filesystem paths | |
4ee9c684 | 1444 | |
1445 | Some influential environment variables: | |
1446 | CC C compiler command | |
1447 | CFLAGS C compiler flags | |
1448 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1449 | nonstandard directory <lib dir> | |
cd9a469c | 1450 | LIBS libraries to pass to the linker, e.g. -l<library> |
1451 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1452 | you have headers in a nonstandard directory <include dir> | |
542f9784 | 1453 | CPP C preprocessor |
6d73cceb | 1454 | FC Fortran compiler command |
1455 | FCFLAGS Fortran compiler flags | |
4ee9c684 | 1456 | |
1457 | Use these variables to override the choices made by `configure' or to help | |
1458 | it to find libraries and programs with nonstandard names/locations. | |
1459 | ||
cd9a469c | 1460 | Report bugs to the package provider. |
1461 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
1462 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
4ee9c684 | 1463 | _ACEOF |
cd9a469c | 1464 | ac_status=$? |
4ee9c684 | 1465 | fi |
1466 | ||
1467 | if test "$ac_init_help" = "recursive"; then | |
1468 | # If there are subdirs, report their specific --help. | |
4ee9c684 | 1469 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1470 | test -d "$ac_dir" || |
1471 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1472 | continue | |
4ee9c684 | 1473 | ac_builddir=. |
1474 | ||
cd9a469c | 1475 | case "$ac_dir" in |
1476 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1477 | *) | |
1478 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1479 | # A ".." for each directory in $ac_dir_suffix. | |
1480 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1481 | case $ac_top_builddir_sub in | |
1482 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1483 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1484 | esac ;; | |
1485 | esac | |
1486 | ac_abs_top_builddir=$ac_pwd | |
1487 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1488 | # for backward compatibility: | |
1489 | ac_top_builddir=$ac_top_build_prefix | |
4ee9c684 | 1490 | |
1491 | case $srcdir in | |
cd9a469c | 1492 | .) # We are building in place. |
4ee9c684 | 1493 | ac_srcdir=. |
cd9a469c | 1494 | ac_top_srcdir=$ac_top_builddir_sub |
1495 | ac_abs_top_srcdir=$ac_pwd ;; | |
1496 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4ee9c684 | 1497 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1498 | ac_top_srcdir=$srcdir |
1499 | ac_abs_top_srcdir=$srcdir ;; | |
1500 | *) # Relative name. | |
1501 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1502 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1503 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a106dabe | 1504 | esac |
cd9a469c | 1505 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1506 | ||
1507 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1508 | # Check for guested configure. | |
1509 | if test -f "$ac_srcdir/configure.gnu"; then | |
1510 | echo && | |
1511 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1512 | elif test -f "$ac_srcdir/configure"; then | |
1513 | echo && | |
1514 | $SHELL "$ac_srcdir/configure" --help=recursive | |
4ee9c684 | 1515 | else |
cd9a469c | 1516 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1517 | fi || ac_status=$? | |
1518 | cd "$ac_pwd" || { ac_status=$?; break; } | |
4ee9c684 | 1519 | done |
1520 | fi | |
1521 | ||
cd9a469c | 1522 | test -n "$ac_init_help" && exit $ac_status |
4ee9c684 | 1523 | if $ac_init_version; then |
1524 | cat <<\_ACEOF | |
76c0a846 | 1525 | GNU Fortran Runtime Library configure 0.3 |
cd9a469c | 1526 | generated by GNU Autoconf 2.64 |
4ee9c684 | 1527 | |
cd9a469c | 1528 | Copyright (C) 2009 Free Software Foundation, Inc. |
4ee9c684 | 1529 | This configure script is free software; the Free Software Foundation |
1530 | gives unlimited permission to copy, distribute and modify it. | |
1531 | _ACEOF | |
cd9a469c | 1532 | exit |
4ee9c684 | 1533 | fi |
4ee9c684 | 1534 | |
cd9a469c | 1535 | ## ------------------------ ## |
1536 | ## Autoconf initialization. ## | |
1537 | ## ------------------------ ## | |
4ee9c684 | 1538 | |
cd9a469c | 1539 | # ac_fn_c_try_compile LINENO |
1540 | # -------------------------- | |
1541 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1542 | ac_fn_c_try_compile () | |
1543 | { | |
1544 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1545 | rm -f conftest.$ac_objext | |
1546 | if { { ac_try="$ac_compile" | |
1547 | case "(($ac_try" in | |
1548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1549 | *) ac_try_echo=$ac_try;; | |
1550 | esac | |
1551 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1552 | $as_echo "$ac_try_echo"; } >&5 | |
1553 | (eval "$ac_compile") 2>conftest.err | |
1554 | ac_status=$? | |
1555 | if test -s conftest.err; then | |
1556 | grep -v '^ *+' conftest.err >conftest.er1 | |
1557 | cat conftest.er1 >&5 | |
1558 | mv -f conftest.er1 conftest.err | |
1559 | fi | |
1560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1561 | test $ac_status = 0; } && { | |
1562 | test -z "$ac_c_werror_flag" || | |
1563 | test ! -s conftest.err | |
1564 | } && test -s conftest.$ac_objext; then : | |
1565 | ac_retval=0 | |
1566 | else | |
1567 | $as_echo "$as_me: failed program was:" >&5 | |
1568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1569 | |
cd9a469c | 1570 | ac_retval=1 |
1571 | fi | |
1572 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1573 | return $ac_retval | |
1574 | ||
1575 | } # ac_fn_c_try_compile | |
1576 | ||
d5d92632 | 1577 | # ac_fn_c_try_cpp LINENO |
1578 | # ---------------------- | |
1579 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1580 | ac_fn_c_try_cpp () | |
4ee9c684 | 1581 | { |
cd9a469c | 1582 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
d5d92632 | 1583 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
cd9a469c | 1584 | case "(($ac_try" in |
1585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1586 | *) ac_try_echo=$ac_try;; | |
1587 | esac | |
1588 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1589 | $as_echo "$ac_try_echo"; } >&5 | |
d5d92632 | 1590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
cd9a469c | 1591 | ac_status=$? |
1592 | if test -s conftest.err; then | |
1593 | grep -v '^ *+' conftest.err >conftest.er1 | |
1594 | cat conftest.er1 >&5 | |
1595 | mv -f conftest.er1 conftest.err | |
1596 | fi | |
1597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d5d92632 | 1598 | test $ac_status = 0; } >/dev/null && { |
1599 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
cd9a469c | 1600 | test ! -s conftest.err |
cd9a469c | 1601 | }; then : |
1602 | ac_retval=0 | |
1603 | else | |
1604 | $as_echo "$as_me: failed program was:" >&5 | |
1605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1606 | |
d5d92632 | 1607 | ac_retval=1 |
cd9a469c | 1608 | fi |
cd9a469c | 1609 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1610 | return $ac_retval | |
4ee9c684 | 1611 | |
d5d92632 | 1612 | } # ac_fn_c_try_cpp |
4ee9c684 | 1613 | |
d5d92632 | 1614 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
cd9a469c | 1615 | # ------------------------------------------------------- |
d5d92632 | 1616 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1617 | # the include files in INCLUDES and setting the cache variable VAR | |
1618 | # accordingly. | |
1619 | ac_fn_c_check_header_mongrel () | |
cd9a469c | 1620 | { |
1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d5d92632 | 1622 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cd9a469c | 1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1624 | $as_echo_n "checking for $2... " >&6; } | |
1625 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1626 | $as_echo_n "(cached) " >&6 | |
d5d92632 | 1627 | fi |
1628 | eval ac_res=\$$3 | |
1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1630 | $as_echo "$ac_res" >&6; } | |
cd9a469c | 1631 | else |
d5d92632 | 1632 | # Is the header compilable? |
1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1634 | $as_echo_n "checking $2 usability... " >&6; } | |
1635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 1636 | /* end confdefs.h. */ |
1637 | $4 | |
1638 | #include <$2> | |
1639 | _ACEOF | |
1640 | if ac_fn_c_try_compile "$LINENO"; then : | |
d5d92632 | 1641 | ac_header_compiler=yes |
cd9a469c | 1642 | else |
d5d92632 | 1643 | ac_header_compiler=no |
cd9a469c | 1644 | fi |
1645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d5d92632 | 1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1647 | $as_echo "$ac_header_compiler" >&6; } | |
4ee9c684 | 1648 | |
d5d92632 | 1649 | # Is the header present? |
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1651 | $as_echo_n "checking $2 presence... " >&6; } | |
1652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1653 | /* end confdefs.h. */ | |
1654 | #include <$2> | |
1655 | _ACEOF | |
1656 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1657 | ac_header_preproc=yes | |
1658 | else | |
1659 | ac_header_preproc=no | |
1660 | fi | |
1661 | rm -f conftest.err conftest.$ac_ext | |
1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1663 | $as_echo "$ac_header_preproc" >&6; } | |
4ee9c684 | 1664 | |
d5d92632 | 1665 | # So? What about this header? |
1666 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1667 | yes:no: ) | |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1669 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1671 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1672 | ;; | |
1673 | no:yes:* ) | |
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1675 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1677 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1679 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1681 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1683 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1684 | ;; | |
cd9a469c | 1685 | esac |
d5d92632 | 1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1687 | $as_echo_n "checking for $2... " >&6; } | |
1688 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1689 | $as_echo_n "(cached) " >&6 | |
cd9a469c | 1690 | else |
d5d92632 | 1691 | eval "$3=\$ac_header_compiler" |
1692 | fi | |
1693 | eval ac_res=\$$3 | |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1695 | $as_echo "$ac_res" >&6; } | |
cd9a469c | 1696 | fi |
1697 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
4ee9c684 | 1698 | |
d5d92632 | 1699 | } # ac_fn_c_check_header_mongrel |
4ee9c684 | 1700 | |
cd9a469c | 1701 | # ac_fn_c_try_run LINENO |
1702 | # ---------------------- | |
1703 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1704 | # that executables *can* be run. | |
1705 | ac_fn_c_try_run () | |
1706 | { | |
1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1708 | if { { ac_try="$ac_link" | |
1709 | case "(($ac_try" in | |
1710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1711 | *) ac_try_echo=$ac_try;; | |
1712 | esac | |
1713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1714 | $as_echo "$ac_try_echo"; } >&5 | |
1715 | (eval "$ac_link") 2>&5 | |
1716 | ac_status=$? | |
1717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1718 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1719 | { { case "(($ac_try" in | |
1720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1721 | *) ac_try_echo=$ac_try;; | |
1722 | esac | |
1723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1724 | $as_echo "$ac_try_echo"; } >&5 | |
1725 | (eval "$ac_try") 2>&5 | |
1726 | ac_status=$? | |
1727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1728 | test $ac_status = 0; }; }; then : | |
1729 | ac_retval=0 | |
1730 | else | |
1731 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1732 | $as_echo "$as_me: failed program was:" >&5 | |
1733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1734 | |
cd9a469c | 1735 | ac_retval=$ac_status |
1736 | fi | |
1737 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1738 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1739 | return $ac_retval | |
4ee9c684 | 1740 | |
cd9a469c | 1741 | } # ac_fn_c_try_run |
4ee9c684 | 1742 | |
d5d92632 | 1743 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1744 | # ------------------------------------------------------- | |
1745 | # Tests whether HEADER exists and can be compiled using the include files in | |
1746 | # INCLUDES, setting the cache variable VAR accordingly. | |
1747 | ac_fn_c_check_header_compile () | |
1748 | { | |
1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1751 | $as_echo_n "checking for $2... " >&6; } | |
1752 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1753 | $as_echo_n "(cached) " >&6 | |
1754 | else | |
1755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1756 | /* end confdefs.h. */ | |
1757 | $4 | |
1758 | #include <$2> | |
1759 | _ACEOF | |
1760 | if ac_fn_c_try_compile "$LINENO"; then : | |
1761 | eval "$3=yes" | |
1762 | else | |
1763 | eval "$3=no" | |
1764 | fi | |
1765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1766 | fi | |
1767 | eval ac_res=\$$3 | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1769 | $as_echo "$ac_res" >&6; } | |
1770 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1771 | ||
1772 | } # ac_fn_c_check_header_compile | |
1773 | ||
1774 | # ac_fn_c_try_link LINENO | |
1775 | # ----------------------- | |
1776 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1777 | ac_fn_c_try_link () | |
1778 | { | |
1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1781 | if { { ac_try="$ac_link" | |
1782 | case "(($ac_try" in | |
1783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1784 | *) ac_try_echo=$ac_try;; | |
1785 | esac | |
1786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1787 | $as_echo "$ac_try_echo"; } >&5 | |
1788 | (eval "$ac_link") 2>conftest.err | |
1789 | ac_status=$? | |
1790 | if test -s conftest.err; then | |
1791 | grep -v '^ *+' conftest.err >conftest.er1 | |
1792 | cat conftest.er1 >&5 | |
1793 | mv -f conftest.er1 conftest.err | |
1794 | fi | |
1795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1796 | test $ac_status = 0; } && { | |
1797 | test -z "$ac_c_werror_flag" || | |
1798 | test ! -s conftest.err | |
1799 | } && test -s conftest$ac_exeext && { | |
1800 | test "$cross_compiling" = yes || | |
1801 | $as_test_x conftest$ac_exeext | |
1802 | }; then : | |
1803 | ac_retval=0 | |
1804 | else | |
1805 | $as_echo "$as_me: failed program was:" >&5 | |
1806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1807 | ||
1808 | ac_retval=1 | |
1809 | fi | |
1810 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1811 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1812 | # interfere with the next link command; also delete a directory that is | |
1813 | # left behind by Apple's compiler. We do this before executing the actions. | |
1814 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1815 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1816 | return $ac_retval | |
1817 | ||
1818 | } # ac_fn_c_try_link | |
1819 | ||
cd9a469c | 1820 | # ac_fn_c_check_func LINENO FUNC VAR |
1821 | # ---------------------------------- | |
1822 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1823 | ac_fn_c_check_func () | |
1824 | { | |
1825 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1827 | $as_echo_n "checking for $2... " >&6; } | |
1828 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1829 | $as_echo_n "(cached) " >&6 | |
1830 | else | |
1831 | if test x$gcc_no_link = xyes; then | |
1832 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
1833 | fi | |
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1835 | /* end confdefs.h. */ | |
1836 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1838 | #define $2 innocuous_$2 | |
4ee9c684 | 1839 | |
cd9a469c | 1840 | /* System header to define __stub macros and hopefully few prototypes, |
1841 | which can conflict with char $2 (); below. | |
1842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1843 | <limits.h> exists even on freestanding compilers. */ | |
4ee9c684 | 1844 | |
cd9a469c | 1845 | #ifdef __STDC__ |
1846 | # include <limits.h> | |
1847 | #else | |
1848 | # include <assert.h> | |
1849 | #endif | |
4ee9c684 | 1850 | |
cd9a469c | 1851 | #undef $2 |
1852 | ||
1853 | /* Override any GCC internal prototype to avoid an error. | |
1854 | Use char because int might match the return type of a GCC | |
1855 | builtin and then its argument prototype would still apply. */ | |
1856 | #ifdef __cplusplus | |
1857 | extern "C" | |
1858 | #endif | |
1859 | char $2 (); | |
1860 | /* The GNU C library defines this for functions which it implements | |
1861 | to always fail with ENOSYS. Some functions are actually named | |
1862 | something starting with __ and the normal name is an alias. */ | |
1863 | #if defined __stub_$2 || defined __stub___$2 | |
1864 | choke me | |
1865 | #endif | |
1866 | ||
1867 | int | |
1868 | main () | |
82eaf560 | 1869 | { |
cd9a469c | 1870 | return $2 (); |
1871 | ; | |
1872 | return 0; | |
82eaf560 | 1873 | } |
cd9a469c | 1874 | _ACEOF |
1875 | if ac_fn_c_try_link "$LINENO"; then : | |
1876 | eval "$3=yes" | |
1877 | else | |
1878 | eval "$3=no" | |
1879 | fi | |
1880 | rm -f core conftest.err conftest.$ac_objext \ | |
1881 | conftest$ac_exeext conftest.$ac_ext | |
1882 | fi | |
1883 | eval ac_res=\$$3 | |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1885 | $as_echo "$ac_res" >&6; } | |
1886 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
4ee9c684 | 1887 | |
cd9a469c | 1888 | } # ac_fn_c_check_func |
4ee9c684 | 1889 | |
cd9a469c | 1890 | # ac_fn_fc_try_compile LINENO |
1891 | # --------------------------- | |
1892 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1893 | ac_fn_fc_try_compile () | |
1894 | { | |
1895 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1896 | rm -f conftest.$ac_objext | |
1897 | if { { ac_try="$ac_compile" | |
1898 | case "(($ac_try" in | |
1899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1900 | *) ac_try_echo=$ac_try;; | |
1901 | esac | |
1902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1903 | $as_echo "$ac_try_echo"; } >&5 | |
1904 | (eval "$ac_compile") 2>conftest.err | |
1905 | ac_status=$? | |
1906 | if test -s conftest.err; then | |
1907 | grep -v '^ *+' conftest.err >conftest.er1 | |
1908 | cat conftest.er1 >&5 | |
1909 | mv -f conftest.er1 conftest.err | |
1910 | fi | |
1911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1912 | test $ac_status = 0; } && { | |
1913 | test -z "$ac_fc_werror_flag" || | |
1914 | test ! -s conftest.err | |
1915 | } && test -s conftest.$ac_objext; then : | |
1916 | ac_retval=0 | |
1917 | else | |
1918 | $as_echo "$as_me: failed program was:" >&5 | |
1919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1920 | |
cd9a469c | 1921 | ac_retval=1 |
1922 | fi | |
1923 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1924 | return $ac_retval | |
4ee9c684 | 1925 | |
cd9a469c | 1926 | } # ac_fn_fc_try_compile |
4ee9c684 | 1927 | |
cd9a469c | 1928 | # ac_fn_fc_try_link LINENO |
1929 | # ------------------------ | |
1930 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1931 | ac_fn_fc_try_link () | |
1932 | { | |
1933 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1935 | if { { ac_try="$ac_link" | |
1936 | case "(($ac_try" in | |
1937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1938 | *) ac_try_echo=$ac_try;; | |
1939 | esac | |
1940 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1941 | $as_echo "$ac_try_echo"; } >&5 | |
1942 | (eval "$ac_link") 2>conftest.err | |
1943 | ac_status=$? | |
1944 | if test -s conftest.err; then | |
1945 | grep -v '^ *+' conftest.err >conftest.er1 | |
1946 | cat conftest.er1 >&5 | |
1947 | mv -f conftest.er1 conftest.err | |
1948 | fi | |
1949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1950 | test $ac_status = 0; } && { | |
1951 | test -z "$ac_fc_werror_flag" || | |
1952 | test ! -s conftest.err | |
1953 | } && test -s conftest$ac_exeext && { | |
1954 | test "$cross_compiling" = yes || | |
1955 | $as_test_x conftest$ac_exeext | |
1956 | }; then : | |
1957 | ac_retval=0 | |
1958 | else | |
1959 | $as_echo "$as_me: failed program was:" >&5 | |
1960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1961 | |
cd9a469c | 1962 | ac_retval=1 |
1963 | fi | |
1964 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1965 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1966 | # interfere with the next link command; also delete a directory that is | |
1967 | # left behind by Apple's compiler. We do this before executing the actions. | |
1968 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1969 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1970 | return $ac_retval | |
4ee9c684 | 1971 | |
cd9a469c | 1972 | } # ac_fn_fc_try_link |
4ee9c684 | 1973 | |
cd9a469c | 1974 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1975 | # ------------------------------------------- | |
1976 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1977 | # variable VAR accordingly. | |
1978 | ac_fn_c_check_type () | |
1979 | { | |
1980 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1982 | $as_echo_n "checking for $2... " >&6; } | |
1983 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1984 | $as_echo_n "(cached) " >&6 | |
1985 | else | |
1986 | eval "$3=no" | |
1987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1988 | /* end confdefs.h. */ | |
1989 | $4 | |
1990 | int | |
1991 | main () | |
1992 | { | |
1993 | if (sizeof ($2)) | |
1994 | return 0; | |
1995 | ; | |
1996 | return 0; | |
1997 | } | |
4ee9c684 | 1998 | _ACEOF |
cd9a469c | 1999 | if ac_fn_c_try_compile "$LINENO"; then : |
2000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2001 | /* end confdefs.h. */ | |
2002 | $4 | |
2003 | int | |
2004 | main () | |
2005 | { | |
2006 | if (sizeof (($2))) | |
2007 | return 0; | |
2008 | ; | |
2009 | return 0; | |
2010 | } | |
4ee9c684 | 2011 | _ACEOF |
cd9a469c | 2012 | if ac_fn_c_try_compile "$LINENO"; then : |
4ee9c684 | 2013 | |
cd9a469c | 2014 | else |
2015 | eval "$3=yes" | |
2016 | fi | |
2017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2018 | fi | |
2019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2020 | fi | |
2021 | eval ac_res=\$$3 | |
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2023 | $as_echo "$ac_res" >&6; } | |
2024 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
4ee9c684 | 2025 | |
cd9a469c | 2026 | } # ac_fn_c_check_type |
4ee9c684 | 2027 | |
d5d92632 | 2028 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2029 | # -------------------------------------------- | |
2030 | # Tries to find the compile-time value of EXPR in a program that includes | |
2031 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2032 | # computed | |
2033 | ac_fn_c_compute_int () | |
cd9a469c | 2034 | { |
2035 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2069752c | 2036 | if test "$cross_compiling" = yes; then |
2037 | # Depending upon the size, compute the lo and hi bounds. | |
2038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2039 | /* end confdefs.h. */ |
2069752c | 2040 | $4 |
cd9a469c | 2041 | int |
2042 | main () | |
2043 | { | |
2069752c | 2044 | static int test_array [1 - 2 * !(($2) >= 0)]; |
cd9a469c | 2045 | test_array [0] = 0 |
4ee9c684 | 2046 | |
cd9a469c | 2047 | ; |
2048 | return 0; | |
2049 | } | |
2050 | _ACEOF | |
2051 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2052 | ac_lo=0 ac_mid=0 |
2053 | while :; do | |
2054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2055 | /* end confdefs.h. */ |
2069752c | 2056 | $4 |
cd9a469c | 2057 | int |
2058 | main () | |
2059 | { | |
2069752c | 2060 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
cd9a469c | 2061 | test_array [0] = 0 |
4ee9c684 | 2062 | |
cd9a469c | 2063 | ; |
2064 | return 0; | |
2065 | } | |
2066 | _ACEOF | |
2067 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2068 | ac_hi=$ac_mid; break |
cd9a469c | 2069 | else |
2069752c | 2070 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2071 | if test $ac_lo -le $ac_mid; then | |
2072 | ac_lo= ac_hi= | |
2073 | break | |
2074 | fi | |
2075 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
cd9a469c | 2076 | fi |
2077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2078 | done |
2079 | else | |
2080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2081 | /* end confdefs.h. */ | |
2082 | $4 | |
2083 | int | |
2084 | main () | |
2085 | { | |
2086 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2087 | test_array [0] = 0 | |
2088 | ||
2089 | ; | |
2090 | return 0; | |
2091 | } | |
2092 | _ACEOF | |
2093 | if ac_fn_c_try_compile "$LINENO"; then : | |
2094 | ac_hi=-1 ac_mid=-1 | |
2095 | while :; do | |
2096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2097 | /* end confdefs.h. */ | |
2098 | $4 | |
2099 | int | |
2100 | main () | |
2101 | { | |
2102 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2103 | test_array [0] = 0 | |
2104 | ||
2105 | ; | |
2106 | return 0; | |
2107 | } | |
2108 | _ACEOF | |
2109 | if ac_fn_c_try_compile "$LINENO"; then : | |
2110 | ac_lo=$ac_mid; break | |
2111 | else | |
2112 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2113 | if test $ac_mid -le $ac_hi; then | |
2114 | ac_lo= ac_hi= | |
2115 | break | |
2116 | fi | |
2117 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
cd9a469c | 2118 | fi |
2119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2120 | done |
ea6b3890 | 2121 | else |
2069752c | 2122 | ac_lo= ac_hi= |
cd9a469c | 2123 | fi |
2069752c | 2124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ea6b3890 | 2125 | fi |
2069752c | 2126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2127 | # Binary search between lo and hi bounds. | |
2128 | while test "x$ac_lo" != "x$ac_hi"; do | |
2129 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2131 | /* end confdefs.h. */ |
2069752c | 2132 | $4 |
cd9a469c | 2133 | int |
2134 | main () | |
2135 | { | |
2069752c | 2136 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
cd9a469c | 2137 | test_array [0] = 0 |
4ee9c684 | 2138 | |
cd9a469c | 2139 | ; |
2140 | return 0; | |
2141 | } | |
2142 | _ACEOF | |
2143 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2144 | ac_hi=$ac_mid |
2145 | else | |
2146 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
cd9a469c | 2147 | fi |
2148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2149 | done |
2150 | case $ac_lo in #(( | |
2151 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2152 | '') ac_retval=1 ;; | |
2153 | esac | |
2154 | else | |
2155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2156 | /* end confdefs.h. */ | |
2157 | $4 | |
2158 | static long int longval () { return $2; } | |
2159 | static unsigned long int ulongval () { return $2; } | |
2160 | #include <stdio.h> | |
2161 | #include <stdlib.h> | |
2162 | int | |
2163 | main () | |
2164 | { | |
4ee9c684 | 2165 | |
2069752c | 2166 | FILE *f = fopen ("conftest.val", "w"); |
2167 | if (! f) | |
2168 | return 1; | |
2169 | if (($2) < 0) | |
2170 | { | |
2171 | long int i = longval (); | |
2172 | if (i != ($2)) | |
2173 | return 1; | |
2174 | fprintf (f, "%ld", i); | |
2175 | } | |
2176 | else | |
2177 | { | |
2178 | unsigned long int i = ulongval (); | |
2179 | if (i != ($2)) | |
2180 | return 1; | |
2181 | fprintf (f, "%lu", i); | |
2182 | } | |
2183 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2184 | on some platforms. */ | |
2185 | return ferror (f) || fclose (f) != 0; | |
2186 | ||
2187 | ; | |
2188 | return 0; | |
2189 | } | |
2190 | _ACEOF | |
2191 | if ac_fn_c_try_run "$LINENO"; then : | |
2192 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
cd9a469c | 2193 | else |
2069752c | 2194 | ac_retval=1 |
ea6b3890 | 2195 | fi |
2069752c | 2196 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2197 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2198 | rm -f conftest.val | |
2199 | ||
2200 | fi | |
cd9a469c | 2201 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2069752c | 2202 | return $ac_retval |
4ee9c684 | 2203 | |
2069752c | 2204 | } # ac_fn_c_compute_int |
4ee9c684 | 2205 | |
cd9a469c | 2206 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2207 | # ---------------------------------------------------- | |
2208 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2209 | # INCLUDES, setting cache variable VAR accordingly. | |
2210 | ac_fn_c_check_member () | |
2211 | { | |
2212 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2214 | $as_echo_n "checking for $2.$3... " >&6; } | |
2215 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2216 | $as_echo_n "(cached) " >&6 | |
2217 | else | |
2218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2219 | /* end confdefs.h. */ | |
2220 | $5 | |
2221 | int | |
2222 | main () | |
2223 | { | |
2224 | static $2 ac_aggr; | |
2225 | if (ac_aggr.$3) | |
2226 | return 0; | |
2227 | ; | |
2228 | return 0; | |
2229 | } | |
2230 | _ACEOF | |
2231 | if ac_fn_c_try_compile "$LINENO"; then : | |
2232 | eval "$4=yes" | |
2233 | else | |
2234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2235 | /* end confdefs.h. */ | |
2236 | $5 | |
2237 | int | |
2238 | main () | |
2239 | { | |
2240 | static $2 ac_aggr; | |
2241 | if (sizeof ac_aggr.$3) | |
2242 | return 0; | |
2243 | ; | |
2244 | return 0; | |
2245 | } | |
2246 | _ACEOF | |
2247 | if ac_fn_c_try_compile "$LINENO"; then : | |
2248 | eval "$4=yes" | |
2249 | else | |
2250 | eval "$4=no" | |
2251 | fi | |
2252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2253 | fi | |
2254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2255 | fi | |
2256 | eval ac_res=\$$4 | |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2258 | $as_echo "$ac_res" >&6; } | |
2259 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
4ee9c684 | 2260 | |
cd9a469c | 2261 | } # ac_fn_c_check_member |
2262 | cat >config.log <<_ACEOF | |
2263 | This file contains any messages produced by compilers while | |
2264 | running configure, to aid debugging if configure makes a mistake. | |
4ee9c684 | 2265 | |
cd9a469c | 2266 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
2267 | generated by GNU Autoconf 2.64. Invocation command line was | |
4ee9c684 | 2268 | |
cd9a469c | 2269 | $ $0 $@ |
4ee9c684 | 2270 | |
cd9a469c | 2271 | _ACEOF |
2272 | exec 5>>config.log | |
2273 | { | |
2274 | cat <<_ASUNAME | |
2275 | ## --------- ## | |
2276 | ## Platform. ## | |
2277 | ## --------- ## | |
4ee9c684 | 2278 | |
cd9a469c | 2279 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2280 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2281 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2282 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2283 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
4ee9c684 | 2284 | |
cd9a469c | 2285 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2286 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
4ee9c684 | 2287 | |
cd9a469c | 2288 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2289 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2290 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2291 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2292 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2293 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2294 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
4ee9c684 | 2295 | |
cd9a469c | 2296 | _ASUNAME |
5b2c7553 | 2297 | |
cd9a469c | 2298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2299 | for as_dir in $PATH | |
2300 | do | |
2301 | IFS=$as_save_IFS | |
2302 | test -z "$as_dir" && as_dir=. | |
2303 | $as_echo "PATH: $as_dir" | |
2304 | done | |
2305 | IFS=$as_save_IFS | |
5b2c7553 | 2306 | |
cd9a469c | 2307 | } >&5 |
5b2c7553 | 2308 | |
cd9a469c | 2309 | cat >&5 <<_ACEOF |
4ee9c684 | 2310 | |
2311 | ||
cd9a469c | 2312 | ## ----------- ## |
2313 | ## Core tests. ## | |
2314 | ## ----------- ## | |
a106dabe | 2315 | |
cd9a469c | 2316 | _ACEOF |
82eaf560 | 2317 | |
90973b19 | 2318 | |
cd9a469c | 2319 | # Keep a trace of the command line. |
2320 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2321 | # Strip out --silent because we don't want to record it for future runs. | |
2322 | # Also quote any args containing shell meta-characters. | |
2323 | # Make two passes to allow for proper duplicate-argument suppression. | |
2324 | ac_configure_args= | |
2325 | ac_configure_args0= | |
2326 | ac_configure_args1= | |
2327 | ac_must_keep_next=false | |
2328 | for ac_pass in 1 2 | |
2329 | do | |
2330 | for ac_arg | |
2331 | do | |
2332 | case $ac_arg in | |
2333 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2334 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2335 | | -silent | --silent | --silen | --sile | --sil) | |
2336 | continue ;; | |
2337 | *\'*) | |
2338 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2339 | esac | |
2340 | case $ac_pass in | |
2341 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2342 | 2) | |
2343 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2344 | if test $ac_must_keep_next = true; then | |
2345 | ac_must_keep_next=false # Got value, back to normal. | |
2346 | else | |
2347 | case $ac_arg in | |
2348 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2349 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2350 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2351 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2352 | case "$ac_configure_args0 " in | |
2353 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2354 | esac | |
2355 | ;; | |
2356 | -* ) ac_must_keep_next=true ;; | |
2357 | esac | |
2358 | fi | |
2359 | as_fn_append ac_configure_args " '$ac_arg'" | |
2360 | ;; | |
2361 | esac | |
2362 | done | |
4ee9c684 | 2363 | done |
cd9a469c | 2364 | { ac_configure_args0=; unset ac_configure_args0;} |
2365 | { ac_configure_args1=; unset ac_configure_args1;} | |
90973b19 | 2366 | |
cd9a469c | 2367 | # When interrupted or exit'd, cleanup temporary files, and complete |
2368 | # config.log. We remove comments because anyway the quotes in there | |
2369 | # would cause problems or look ugly. | |
2370 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2371 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2372 | trap 'exit_status=$? | |
2373 | # Save into config.log some information that might help in debugging. | |
2374 | { | |
2375 | echo | |
90973b19 | 2376 | |
cd9a469c | 2377 | cat <<\_ASBOX |
2378 | ## ---------------- ## | |
2379 | ## Cache variables. ## | |
2380 | ## ---------------- ## | |
2381 | _ASBOX | |
2382 | echo | |
2383 | # The following way of writing the cache mishandles newlines in values, | |
2384 | ( | |
2385 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2386 | eval ac_val=\$$ac_var | |
2387 | case $ac_val in #( | |
2388 | *${as_nl}*) | |
2389 | case $ac_var in #( | |
2390 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2391 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2392 | esac | |
2393 | case $ac_var in #( | |
2394 | _ | IFS | as_nl) ;; #( | |
2395 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2396 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2397 | esac ;; | |
2398 | esac | |
2399 | done | |
2400 | (set) 2>&1 | | |
2401 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2402 | *${as_nl}ac_space=\ *) | |
2403 | sed -n \ | |
2404 | "s/'\''/'\''\\\\'\'''\''/g; | |
2405 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2406 | ;; #( | |
2407 | *) | |
2408 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2409 | ;; | |
2410 | esac | | |
2411 | sort | |
2412 | ) | |
2413 | echo | |
2414 | ||
2415 | cat <<\_ASBOX | |
2416 | ## ----------------- ## | |
2417 | ## Output variables. ## | |
2418 | ## ----------------- ## | |
2419 | _ASBOX | |
2420 | echo | |
2421 | for ac_var in $ac_subst_vars | |
2422 | do | |
2423 | eval ac_val=\$$ac_var | |
2424 | case $ac_val in | |
2425 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2426 | esac | |
2427 | $as_echo "$ac_var='\''$ac_val'\''" | |
2428 | done | sort | |
2429 | echo | |
2430 | ||
2431 | if test -n "$ac_subst_files"; then | |
2432 | cat <<\_ASBOX | |
2433 | ## ------------------- ## | |
2434 | ## File substitutions. ## | |
2435 | ## ------------------- ## | |
2436 | _ASBOX | |
2437 | echo | |
2438 | for ac_var in $ac_subst_files | |
2439 | do | |
2440 | eval ac_val=\$$ac_var | |
2441 | case $ac_val in | |
2442 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2443 | esac | |
2444 | $as_echo "$ac_var='\''$ac_val'\''" | |
2445 | done | sort | |
2446 | echo | |
2447 | fi | |
2448 | ||
2449 | if test -s confdefs.h; then | |
2450 | cat <<\_ASBOX | |
2451 | ## ----------- ## | |
2452 | ## confdefs.h. ## | |
2453 | ## ----------- ## | |
2454 | _ASBOX | |
2455 | echo | |
2456 | cat confdefs.h | |
2457 | echo | |
2458 | fi | |
2459 | test "$ac_signal" != 0 && | |
2460 | $as_echo "$as_me: caught signal $ac_signal" | |
2461 | $as_echo "$as_me: exit $exit_status" | |
2462 | } >&5 | |
2463 | rm -f core *.core core.conftest.* && | |
2464 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2465 | exit $exit_status | |
2466 | ' 0 | |
2467 | for ac_signal in 1 2 13 15; do | |
2468 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2469 | done | |
2470 | ac_signal=0 | |
2471 | ||
2472 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2473 | rm -f -r conftest* confdefs.h | |
2474 | ||
2475 | $as_echo "/* confdefs.h */" > confdefs.h | |
2476 | ||
2477 | # Predefined preprocessor variables. | |
2478 | ||
2479 | cat >>confdefs.h <<_ACEOF | |
2480 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2481 | _ACEOF | |
2482 | ||
2483 | cat >>confdefs.h <<_ACEOF | |
2484 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2485 | _ACEOF | |
2486 | ||
2487 | cat >>confdefs.h <<_ACEOF | |
2488 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2489 | _ACEOF | |
2490 | ||
2491 | cat >>confdefs.h <<_ACEOF | |
2492 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2493 | _ACEOF | |
2494 | ||
2495 | cat >>confdefs.h <<_ACEOF | |
2496 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2497 | _ACEOF | |
2498 | ||
2499 | cat >>confdefs.h <<_ACEOF | |
2500 | #define PACKAGE_URL "$PACKAGE_URL" | |
2501 | _ACEOF | |
2502 | ||
2503 | ||
2504 | # Let the site file select an alternate cache file if it wants to. | |
2505 | # Prefer an explicitly selected file to automatically selected ones. | |
2506 | ac_site_file1=NONE | |
2507 | ac_site_file2=NONE | |
2508 | if test -n "$CONFIG_SITE"; then | |
2509 | ac_site_file1=$CONFIG_SITE | |
2510 | elif test "x$prefix" != xNONE; then | |
2511 | ac_site_file1=$prefix/share/config.site | |
2512 | ac_site_file2=$prefix/etc/config.site | |
2513 | else | |
2514 | ac_site_file1=$ac_default_prefix/share/config.site | |
2515 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2516 | fi | |
2517 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2518 | do | |
2519 | test "x$ac_site_file" = xNONE && continue | |
2520 | if test -r "$ac_site_file"; then | |
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2522 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2523 | sed 's/^/| /' "$ac_site_file" >&5 | |
2524 | . "$ac_site_file" | |
2525 | fi | |
2526 | done | |
2527 | ||
2528 | if test -r "$cache_file"; then | |
2529 | # Some versions of bash will fail to source /dev/null (special | |
2530 | # files actually), so we avoid doing that. | |
2531 | if test -f "$cache_file"; then | |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2533 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2534 | case $cache_file in | |
2535 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2536 | *) . "./$cache_file";; | |
2537 | esac | |
2538 | fi | |
2539 | else | |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2541 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2542 | >$cache_file | |
2543 | fi | |
2544 | ||
a1aa1d30 | 2545 | as_fn_append ac_header_list " unistd.h" |
2546 | as_fn_append ac_header_list " sys/time.h" | |
2547 | as_fn_append ac_header_list " sys/times.h" | |
2548 | as_fn_append ac_header_list " sys/resource.h" | |
2549 | as_fn_append ac_header_list " sys/types.h" | |
2550 | as_fn_append ac_header_list " sys/stat.h" | |
2551 | as_fn_append ac_header_list " sys/wait.h" | |
2552 | as_fn_append ac_header_list " floatingpoint.h" | |
2553 | as_fn_append ac_header_list " ieeefp.h" | |
2554 | as_fn_append ac_header_list " fenv.h" | |
2555 | as_fn_append ac_header_list " fptrap.h" | |
553e7cef | 2556 | as_fn_append ac_header_list " fpxcp.h" |
a1aa1d30 | 2557 | as_fn_append ac_header_list " pwd.h" |
2558 | as_fn_append ac_header_list " complex.h" | |
b8a8c7bc | 2559 | as_fn_append ac_header_list " xlocale.h" |
a1aa1d30 | 2560 | as_fn_append ac_func_list " getrusage" |
2561 | as_fn_append ac_func_list " times" | |
2562 | as_fn_append ac_func_list " mkstemp" | |
2563 | as_fn_append ac_func_list " strtof" | |
2564 | as_fn_append ac_func_list " strtold" | |
2565 | as_fn_append ac_func_list " snprintf" | |
2566 | as_fn_append ac_func_list " ftruncate" | |
2567 | as_fn_append ac_func_list " chsize" | |
2568 | as_fn_append ac_func_list " chdir" | |
2569 | as_fn_append ac_func_list " getlogin" | |
2570 | as_fn_append ac_func_list " gethostname" | |
2571 | as_fn_append ac_func_list " kill" | |
2572 | as_fn_append ac_func_list " link" | |
2573 | as_fn_append ac_func_list " symlink" | |
2574 | as_fn_append ac_func_list " sleep" | |
2575 | as_fn_append ac_func_list " ttyname" | |
2576 | as_fn_append ac_func_list " alarm" | |
2577 | as_fn_append ac_func_list " access" | |
2578 | as_fn_append ac_func_list " fork" | |
a1aa1d30 | 2579 | as_fn_append ac_func_list " setmode" |
7520a494 | 2580 | as_fn_append ac_func_list " fcntl" |
a1aa1d30 | 2581 | as_fn_append ac_func_list " gettimeofday" |
2582 | as_fn_append ac_func_list " stat" | |
2583 | as_fn_append ac_func_list " fstat" | |
2584 | as_fn_append ac_func_list " lstat" | |
2585 | as_fn_append ac_func_list " getpwuid" | |
2586 | as_fn_append ac_func_list " vsnprintf" | |
2587 | as_fn_append ac_func_list " dup" | |
2588 | as_fn_append ac_func_list " getcwd" | |
2589 | as_fn_append ac_func_list " localtime_r" | |
2590 | as_fn_append ac_func_list " gmtime_r" | |
a1aa1d30 | 2591 | as_fn_append ac_func_list " getpwuid_r" |
2592 | as_fn_append ac_func_list " ttyname_r" | |
2593 | as_fn_append ac_func_list " clock_gettime" | |
a1aa1d30 | 2594 | as_fn_append ac_func_list " getgid" |
2595 | as_fn_append ac_func_list " getpid" | |
a1aa1d30 | 2596 | as_fn_append ac_func_list " getuid" |
2597 | as_fn_append ac_func_list " geteuid" | |
ffb6d1fd | 2598 | as_fn_append ac_func_list " umask" |
a291e3b6 | 2599 | as_fn_append ac_func_list " getegid" |
5935a97b | 2600 | as_fn_append ac_func_list " secure_getenv" |
a291e3b6 | 2601 | as_fn_append ac_func_list " __secure_getenv" |
544db64f | 2602 | as_fn_append ac_func_list " mkostemp" |
fc3d374a | 2603 | as_fn_append ac_func_list " strnlen" |
2604 | as_fn_append ac_func_list " strndup" | |
b8a8c7bc | 2605 | as_fn_append ac_func_list " newlocale" |
2606 | as_fn_append ac_func_list " freelocale" | |
2607 | as_fn_append ac_func_list " uselocale" | |
2608 | as_fn_append ac_func_list " strerror_l" | |
7d9455ce | 2609 | as_fn_append ac_header_list " math.h" |
cd9a469c | 2610 | # Check that the precious variables saved in the cache have kept the same |
2611 | # value. | |
2612 | ac_cache_corrupted=false | |
2613 | for ac_var in $ac_precious_vars; do | |
2614 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2615 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2616 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2617 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2618 | case $ac_old_set,$ac_new_set in | |
2619 | set,) | |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2621 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2622 | ac_cache_corrupted=: ;; | |
2623 | ,set) | |
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2625 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2626 | ac_cache_corrupted=: ;; | |
2627 | ,);; | |
2628 | *) | |
2629 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2630 | # differences in whitespace do not lead to failure. | |
2631 | ac_old_val_w=`echo x $ac_old_val` | |
2632 | ac_new_val_w=`echo x $ac_new_val` | |
2633 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2635 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2636 | ac_cache_corrupted=: | |
2637 | else | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2639 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2640 | eval $ac_var=\$ac_old_val | |
2641 | fi | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2643 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2645 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2646 | fi;; | |
2647 | esac | |
2648 | # Pass precious variables to config.status. | |
2649 | if test "$ac_new_set" = set; then | |
2650 | case $ac_new_val in | |
2651 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2652 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2653 | esac | |
2654 | case " $ac_configure_args " in | |
2655 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2656 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2657 | esac | |
2658 | fi | |
2659 | done | |
2660 | if $ac_cache_corrupted; then | |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2662 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2664 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2665 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2666 | fi | |
2667 | ## -------------------- ## | |
2668 | ## Main body of script. ## | |
2669 | ## -------------------- ## | |
2670 | ||
2671 | ac_ext=c | |
2672 | ac_cpp='$CPP $CPPFLAGS' | |
2673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2676 | ||
2677 | ||
2678 | ||
2679 | ||
2680 | ||
2681 | ac_config_headers="$ac_config_headers config.h" | |
2682 | ||
2683 | ac_aux_dir= | |
2684 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2685 | for ac_t in install-sh install.sh shtool; do | |
2686 | if test -f "$ac_dir/$ac_t"; then | |
2687 | ac_aux_dir=$ac_dir | |
2688 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2689 | break 2 | |
2690 | fi | |
2691 | done | |
2692 | done | |
2693 | if test -z "$ac_aux_dir"; then | |
2694 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2695 | fi | |
2696 | ||
2697 | # These three variables are undocumented and unsupported, | |
2698 | # and are intended to be withdrawn in a future Autoconf release. | |
2699 | # They can cause serious problems if a builder's source tree is in a directory | |
2700 | # whose full name contains unusual characters. | |
2701 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2702 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2703 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2704 | ||
2705 | ||
2706 | # Make sure we can run config.sub. | |
2707 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2708 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2709 | ||
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2711 | $as_echo_n "checking build system type... " >&6; } | |
2712 | if test "${ac_cv_build+set}" = set; then : | |
2713 | $as_echo_n "(cached) " >&6 | |
2714 | else | |
2715 | ac_build_alias=$build_alias | |
2716 | test "x$ac_build_alias" = x && | |
2717 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2718 | test "x$ac_build_alias" = x && | |
2719 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2720 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2721 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2722 | ||
2723 | fi | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2725 | $as_echo "$ac_cv_build" >&6; } | |
2726 | case $ac_cv_build in | |
2727 | *-*-*) ;; | |
2728 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2729 | esac | |
2730 | build=$ac_cv_build | |
2731 | ac_save_IFS=$IFS; IFS='-' | |
2732 | set x $ac_cv_build | |
2733 | shift | |
2734 | build_cpu=$1 | |
2735 | build_vendor=$2 | |
2736 | shift; shift | |
2737 | # Remember, the first character of IFS is used to create $*, | |
2738 | # except with old shells: | |
2739 | build_os=$* | |
2740 | IFS=$ac_save_IFS | |
2741 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2742 | ||
2743 | ||
2744 | case ${build_alias} in | |
2745 | "") build_noncanonical=${build} ;; | |
2746 | *) build_noncanonical=${build_alias} ;; | |
2747 | esac | |
4c82c0dd | 2748 | |
2749 | case ${host_alias} in | |
2750 | "") host_noncanonical=${build_noncanonical} ;; | |
2751 | *) host_noncanonical=${host_alias} ;; | |
2752 | esac | |
2753 | ||
2754 | case ${target_alias} in | |
2755 | "") target_noncanonical=${host_noncanonical} ;; | |
2756 | *) target_noncanonical=${target_alias} ;; | |
2757 | esac | |
2758 | ||
3e427a9c | 2759 | |
2760 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2761 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2762 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2763 | # However, they still use the build modules, because the corresponding | |
2764 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2765 | # finishes. So: | |
2766 | # - build_subdir is where we find build modules, and never changes. | |
2767 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2768 | ||
2769 | # Prefix 'build-' so this never conflicts with target_subdir. | |
4c82c0dd | 2770 | build_subdir="build-${build_noncanonical}" |
3e427a9c | 2771 | |
cd9a469c | 2772 | # Check whether --with-build-libsubdir was given. |
2773 | if test "${with_build_libsubdir+set}" = set; then : | |
2774 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
3e427a9c | 2775 | else |
2776 | build_libsubdir="$build_subdir" | |
cd9a469c | 2777 | fi |
2778 | ||
4c82c0dd | 2779 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2780 | if ( test $srcdir = . && test -d gcc ) \ | |
2781 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2782 | host_subdir="host-${host_noncanonical}" | |
2783 | else | |
2784 | host_subdir=. | |
2785 | fi | |
2786 | # No prefix. | |
2787 | target_subdir=${target_noncanonical} | |
2788 | ||
2789 | ||
2790 | # ------- | |
2791 | # Options | |
2792 | # ------- | |
2793 | ||
cd9a469c | 2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2795 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2796 | # Check whether --enable-version-specific-runtime-libs was given. | |
2797 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2798 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
4c82c0dd | 2799 | yes) version_specific_libs=yes ;; |
2800 | no) version_specific_libs=no ;; | |
cd9a469c | 2801 | *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
4c82c0dd | 2802 | esac |
2803 | else | |
2804 | version_specific_libs=no | |
cd9a469c | 2805 | fi |
2806 | ||
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2808 | $as_echo "$version_specific_libs" >&6; } | |
4c82c0dd | 2809 | |
93773f82 | 2810 | # Build with intermodule optimisations |
cd9a469c | 2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 |
2812 | $as_echo_n "checking for --enable-intermodule... " >&6; } | |
2813 | # Check whether --enable-intermodule was given. | |
2814 | if test "${enable_intermodule+set}" = set; then : | |
2815 | enableval=$enable_intermodule; case "$enable_intermodule" in | |
93773f82 | 2816 | yes) onestep="-onestep";; |
2817 | *) onestep="";; | |
2818 | esac | |
2819 | else | |
2820 | onestep="" | |
cd9a469c | 2821 | fi |
93773f82 | 2822 | |
cd9a469c | 2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 |
2824 | $as_echo "$enable_intermodule" >&6; } | |
2825 | if test x$onestep = x-onestep; then | |
93773f82 | 2826 | onestep_TRUE= |
2827 | onestep_FALSE='#' | |
2828 | else | |
2829 | onestep_TRUE='#' | |
2830 | onestep_FALSE= | |
2831 | fi | |
2832 | ||
2833 | ||
4c82c0dd | 2834 | |
2835 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2836 | # | |
2837 | # You will slowly go insane if you do not grok the following fact: when | |
2838 | # building this library, the top-level /target/ becomes the library's /host/. | |
2839 | # | |
2840 | # configure then causes --target to default to --host, exactly like any | |
2841 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2842 | # always be the same. This makes sense both for native and cross compilers | |
2843 | # just think about it for a little while. :-) | |
2844 | # | |
2845 | # Also, if this library is being configured as part of a cross compiler, the | |
2846 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2847 | # | |
2848 | # Do not delete or change the following two lines. For why, see | |
2849 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
cd9a469c | 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2851 | $as_echo_n "checking host system type... " >&6; } | |
2852 | if test "${ac_cv_host+set}" = set; then : | |
2853 | $as_echo_n "(cached) " >&6 | |
2854 | else | |
2855 | if test "x$host_alias" = x; then | |
2856 | ac_cv_host=$ac_cv_build | |
2857 | else | |
2858 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2859 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2860 | fi | |
2861 | ||
2862 | fi | |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2864 | $as_echo "$ac_cv_host" >&6; } | |
2865 | case $ac_cv_host in | |
2866 | *-*-*) ;; | |
2867 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2868 | esac | |
90973b19 | 2869 | host=$ac_cv_host |
cd9a469c | 2870 | ac_save_IFS=$IFS; IFS='-' |
2871 | set x $ac_cv_host | |
2872 | shift | |
2873 | host_cpu=$1 | |
2874 | host_vendor=$2 | |
2875 | shift; shift | |
2876 | # Remember, the first character of IFS is used to create $*, | |
2877 | # except with old shells: | |
2878 | host_os=$* | |
2879 | IFS=$ac_save_IFS | |
2880 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
82eaf560 | 2881 | |
2882 | ||
cd9a469c | 2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2884 | $as_echo_n "checking target system type... " >&6; } | |
2885 | if test "${ac_cv_target+set}" = set; then : | |
2886 | $as_echo_n "(cached) " >&6 | |
90973b19 | 2887 | else |
cd9a469c | 2888 | if test "x$target_alias" = x; then |
2889 | ac_cv_target=$ac_cv_host | |
2890 | else | |
2891 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2892 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2893 | fi | |
90973b19 | 2894 | |
2895 | fi | |
cd9a469c | 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2897 | $as_echo "$ac_cv_target" >&6; } | |
2898 | case $ac_cv_target in | |
2899 | *-*-*) ;; | |
2900 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2901 | esac | |
90973b19 | 2902 | target=$ac_cv_target |
cd9a469c | 2903 | ac_save_IFS=$IFS; IFS='-' |
2904 | set x $ac_cv_target | |
2905 | shift | |
2906 | target_cpu=$1 | |
2907 | target_vendor=$2 | |
2908 | shift; shift | |
2909 | # Remember, the first character of IFS is used to create $*, | |
2910 | # except with old shells: | |
2911 | target_os=$* | |
2912 | IFS=$ac_save_IFS | |
2913 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
90973b19 | 2914 | |
2915 | ||
2916 | # The aliases save the names the user supplied, while $host etc. | |
2917 | # will get canonicalized. | |
2918 | test -n "$target_alias" && | |
2919 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2920 | NONENONEs,x,x, && | |
2921 | program_prefix=${target_alias}- | |
cd9a469c | 2922 | |
7eda0fb7 | 2923 | |
2924 | ||
2925 | ||
90973b19 | 2926 | target_alias=${target_alias-$host_alias} |
2927 | ||
7eda0fb7 | 2928 | |
90973b19 | 2929 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
2930 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2fd61f51 | 2931 | # 1.9.6: minimum required version |
90973b19 | 2932 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
2933 | # of other PACKAGE_* variables will, however, and there's nothing | |
2934 | # we can do about that; they come from AC_INIT). | |
2935 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
2936 | # file in the top srcdir, etc, etc), so stop complaining. | |
5dbeae57 | 2937 | # no-dist: we don't want 'dist' and related rules. |
90973b19 | 2938 | # -Wall: turns on all automake warnings... |
2939 | # -Wno-portability: ...except this one, since GNU make is required. | |
cd9a469c | 2940 | am__api_version='1.11' |
2941 | ||
4ee9c684 | 2942 | # Find a good install program. We prefer a C program (faster), |
2943 | # so one script is as good as another. But avoid the broken or | |
2944 | # incompatible versions: | |
2945 | # SysV /etc/install, /usr/sbin/install | |
2946 | # SunOS /usr/etc/install | |
2947 | # IRIX /sbin/install | |
2948 | # AIX /bin/install | |
2949 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2950 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2951 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2952 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2953 | # OS/2's system install, which has a completely different semantic | |
2954 | # ./install, which can be erroneously created by make from ./install.sh. | |
82eaf560 | 2955 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2957 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4ee9c684 | 2958 | if test -z "$INSTALL"; then |
cd9a469c | 2959 | if test "${ac_cv_path_install+set}" = set; then : |
2960 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 2961 | else |
2962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2963 | for as_dir in $PATH | |
2964 | do | |
2965 | IFS=$as_save_IFS | |
2966 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2967 | # Account for people who put trailing slashes in PATH elements. |
2968 | case $as_dir/ in #(( | |
2969 | ./ | .// | /[cC]/* | \ | |
4ee9c684 | 2970 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2971 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
4ee9c684 | 2972 | /usr/ucb/* ) ;; |
2973 | *) | |
2974 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2975 | # Don't use installbsd from OSF since it installs stuff as root | |
2976 | # by default. | |
2977 | for ac_prog in ginstall scoinst install; do | |
2978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
cd9a469c | 2979 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
4ee9c684 | 2980 | if test $ac_prog = install && |
2981 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2982 | # AIX install. It has an incompatible calling convention. | |
2983 | : | |
2984 | elif test $ac_prog = install && | |
2985 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2986 | # program-specific install script used by HP pwplus--don't use. | |
2987 | : | |
2988 | else | |
82eaf560 | 2989 | rm -rf conftest.one conftest.two conftest.dir |
2990 | echo one > conftest.one | |
2991 | echo two > conftest.two | |
2992 | mkdir conftest.dir | |
2993 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2994 | test -s conftest.one && test -s conftest.two && | |
2995 | test -s conftest.dir/conftest.one && | |
2996 | test -s conftest.dir/conftest.two | |
2997 | then | |
2998 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2999 | break 3 | |
3000 | fi | |
4ee9c684 | 3001 | fi |
3002 | fi | |
3003 | done | |
3004 | done | |
3005 | ;; | |
3006 | esac | |
cd9a469c | 3007 | |
3008 | done | |
3009 | IFS=$as_save_IFS | |
4ee9c684 | 3010 | |
82eaf560 | 3011 | rm -rf conftest.one conftest.two conftest.dir |
4ee9c684 | 3012 | |
3013 | fi | |
3014 | if test "${ac_cv_path_install+set}" = set; then | |
3015 | INSTALL=$ac_cv_path_install | |
3016 | else | |
ff4425cf | 3017 | # As a last resort, use the slow shell script. Don't cache a |
3018 | # value for INSTALL within a source directory, because that will | |
4ee9c684 | 3019 | # break other packages using the cache if that directory is |
ff4425cf | 3020 | # removed, or if the value is a relative name. |
4ee9c684 | 3021 | INSTALL=$ac_install_sh |
3022 | fi | |
3023 | fi | |
cd9a469c | 3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3025 | $as_echo "$INSTALL" >&6; } | |
4ee9c684 | 3026 | |
3027 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3028 | # It thinks the first close brace ends the variable substitution. | |
3029 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3030 | ||
3031 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3032 | ||
3033 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3034 | ||
cd9a469c | 3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3036 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4ee9c684 | 3037 | # Just in case |
3038 | sleep 1 | |
3039 | echo timestamp > conftest.file | |
cd9a469c | 3040 | # Reject unsafe characters in $srcdir or the absolute working directory |
3041 | # name. Accept space and tab only in the latter. | |
3042 | am_lf=' | |
3043 | ' | |
3044 | case `pwd` in | |
3045 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3046 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3047 | esac | |
3048 | case $srcdir in | |
3049 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3050 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3051 | esac | |
3052 | ||
4ee9c684 | 3053 | # Do `set' in a subshell so we don't clobber the current shell's |
3054 | # arguments. Must try -L first in case configure is actually a | |
3055 | # symlink; some systems play weird games with the mod time of symlinks | |
3056 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3057 | # directory). | |
3058 | if ( | |
cd9a469c | 3059 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
4ee9c684 | 3060 | if test "$*" = "X"; then |
3061 | # -L didn't work. | |
cd9a469c | 3062 | set X `ls -t "$srcdir/configure" conftest.file` |
4ee9c684 | 3063 | fi |
3064 | rm -f conftest.file | |
3065 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3066 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3067 | ||
3068 | # If neither matched, then we have a broken ls. This can happen | |
3069 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3070 | # broken ls alias from the environment. This has actually | |
3071 | # happened. Such a system could not be considered "sane". | |
cd9a469c | 3072 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3073 | alias in your environment" "$LINENO" 5 | |
4ee9c684 | 3074 | fi |
3075 | ||
3076 | test "$2" = conftest.file | |
3077 | ) | |
3078 | then | |
3079 | # Ok. | |
3080 | : | |
3081 | else | |
cd9a469c | 3082 | as_fn_error "newly created file is older than distributed files! |
3083 | Check your system clock" "$LINENO" 5 | |
4ee9c684 | 3084 | fi |
cd9a469c | 3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3086 | $as_echo "yes" >&6; } | |
4ee9c684 | 3087 | test "$program_prefix" != NONE && |
cd9a469c | 3088 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
4ee9c684 | 3089 | # Use a double $ so make ignores it. |
3090 | test "$program_suffix" != NONE && | |
cd9a469c | 3091 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3092 | # Double any \ or $. | |
4ee9c684 | 3093 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 3094 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3095 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4ee9c684 | 3096 | |
3097 | # expand $ac_aux_dir to an absolute path | |
3098 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3099 | ||
cd9a469c | 3100 | if test x"${MISSING+set}" != xset; then |
3101 | case $am_aux_dir in | |
3102 | *\ * | *\ *) | |
3103 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3104 | *) | |
3105 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3106 | esac | |
3107 | fi | |
4ee9c684 | 3108 | # Use eval to expand $SHELL |
3109 | if eval "$MISSING --run true"; then | |
3110 | am_missing_run="$MISSING --run " | |
3111 | else | |
3112 | am_missing_run= | |
cd9a469c | 3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3114 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
4ee9c684 | 3115 | fi |
3116 | ||
cd9a469c | 3117 | if test x"${install_sh}" != xset; then |
3118 | case $am_aux_dir in | |
3119 | *\ * | *\ *) | |
3120 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3121 | *) | |
3122 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3123 | esac | |
3124 | fi | |
3125 | ||
3126 | # Installed binaries are usually stripped using `strip' when the user | |
3127 | # run `make install-strip'. However `strip' might not be the right | |
3128 | # tool to use in cross-compilation environments, therefore Automake | |
3129 | # will honor the `STRIP' environment variable to overrule this program. | |
3130 | if test "$cross_compiling" != no; then | |
3131 | if test -n "$ac_tool_prefix"; then | |
3132 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3133 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3135 | $as_echo_n "checking for $ac_word... " >&6; } | |
3136 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3137 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3138 | else |
cd9a469c | 3139 | if test -n "$STRIP"; then |
3140 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4ee9c684 | 3141 | else |
3142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3143 | for as_dir in $PATH | |
3144 | do | |
3145 | IFS=$as_save_IFS | |
3146 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3147 | for ac_exec_ext in '' $ac_executable_extensions; do |
3148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3149 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4ee9c684 | 3151 | break 2 |
3152 | fi | |
3153 | done | |
cd9a469c | 3154 | done |
3155 | IFS=$as_save_IFS | |
4ee9c684 | 3156 | |
3157 | fi | |
3158 | fi | |
cd9a469c | 3159 | STRIP=$ac_cv_prog_STRIP |
3160 | if test -n "$STRIP"; then | |
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3162 | $as_echo "$STRIP" >&6; } | |
4ee9c684 | 3163 | else |
cd9a469c | 3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3165 | $as_echo "no" >&6; } | |
4ee9c684 | 3166 | fi |
3167 | ||
4ee9c684 | 3168 | |
cd9a469c | 3169 | fi |
3170 | if test -z "$ac_cv_prog_STRIP"; then | |
3171 | ac_ct_STRIP=$STRIP | |
3172 | # Extract the first word of "strip", so it can be a program name with args. | |
3173 | set dummy strip; ac_word=$2 | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3175 | $as_echo_n "checking for $ac_word... " >&6; } | |
3176 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3177 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3178 | else |
cd9a469c | 3179 | if test -n "$ac_ct_STRIP"; then |
3180 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
82eaf560 | 3181 | else |
cd9a469c | 3182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3183 | for as_dir in $PATH | |
3184 | do | |
3185 | IFS=$as_save_IFS | |
3186 | test -z "$as_dir" && as_dir=. | |
3187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3189 | ac_cv_prog_ac_ct_STRIP="strip" | |
3190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3191 | break 2 | |
3192 | fi | |
3193 | done | |
3194 | done | |
3195 | IFS=$as_save_IFS | |
3196 | ||
82eaf560 | 3197 | fi |
4ee9c684 | 3198 | fi |
cd9a469c | 3199 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3200 | if test -n "$ac_ct_STRIP"; then | |
3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3202 | $as_echo "$ac_ct_STRIP" >&6; } | |
3203 | else | |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3205 | $as_echo "no" >&6; } | |
3206 | fi | |
3207 | ||
3208 | if test "x$ac_ct_STRIP" = x; then | |
3209 | STRIP=":" | |
3210 | else | |
3211 | case $cross_compiling:$ac_tool_warned in | |
3212 | yes:) | |
3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3214 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3215 | ac_tool_warned=yes ;; | |
3216 | esac | |
3217 | STRIP=$ac_ct_STRIP | |
3218 | fi | |
3219 | else | |
3220 | STRIP="$ac_cv_prog_STRIP" | |
3221 | fi | |
3222 | ||
3223 | fi | |
3224 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3225 | ||
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3227 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3228 | if test -z "$MKDIR_P"; then | |
3229 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3230 | $as_echo_n "(cached) " >&6 | |
3231 | else | |
3232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3233 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3234 | do | |
3235 | IFS=$as_save_IFS | |
3236 | test -z "$as_dir" && as_dir=. | |
3237 | for ac_prog in mkdir gmkdir; do | |
3238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3239 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3240 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3241 | 'mkdir (GNU coreutils) '* | \ | |
3242 | 'mkdir (coreutils) '* | \ | |
3243 | 'mkdir (fileutils) '4.1*) | |
3244 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3245 | break 3;; | |
3246 | esac | |
3247 | done | |
3248 | done | |
3249 | done | |
3250 | IFS=$as_save_IFS | |
3251 | ||
3252 | fi | |
3253 | ||
3254 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3255 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3256 | else | |
3257 | # As a last resort, use the slow shell script. Don't cache a | |
3258 | # value for MKDIR_P within a source directory, because that will | |
3259 | # break other packages using the cache if that directory is | |
3260 | # removed, or if the value is a relative name. | |
3261 | test -d ./--version && rmdir ./--version | |
3262 | MKDIR_P="$ac_install_sh -d" | |
3263 | fi | |
3264 | fi | |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3266 | $as_echo "$MKDIR_P" >&6; } | |
3267 | ||
3268 | mkdir_p="$MKDIR_P" | |
3269 | case $mkdir_p in | |
3270 | [\\/$]* | ?:[\\/]*) ;; | |
3271 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3272 | esac | |
3273 | ||
3274 | for ac_prog in gawk mawk nawk awk | |
3275 | do | |
3276 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3277 | set dummy $ac_prog; ac_word=$2 | |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3279 | $as_echo_n "checking for $ac_word... " >&6; } | |
3280 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3281 | $as_echo_n "(cached) " >&6 | |
3282 | else | |
3283 | if test -n "$AWK"; then | |
3284 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3285 | else | |
3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3287 | for as_dir in $PATH | |
3288 | do | |
3289 | IFS=$as_save_IFS | |
3290 | test -z "$as_dir" && as_dir=. | |
3291 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3293 | ac_cv_prog_AWK="$ac_prog" | |
3294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3295 | break 2 | |
3296 | fi | |
3297 | done | |
3298 | done | |
3299 | IFS=$as_save_IFS | |
3300 | ||
3301 | fi | |
3302 | fi | |
3303 | AWK=$ac_cv_prog_AWK | |
3304 | if test -n "$AWK"; then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3306 | $as_echo "$AWK" >&6; } | |
3307 | else | |
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3309 | $as_echo "no" >&6; } | |
3310 | fi | |
3311 | ||
3312 | ||
3313 | test -n "$AWK" && break | |
3314 | done | |
3315 | ||
3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3317 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3318 | set x ${MAKE-make} | |
3319 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3320 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3321 | $as_echo_n "(cached) " >&6 | |
3322 | else | |
3323 | cat >conftest.make <<\_ACEOF | |
3324 | SHELL = /bin/sh | |
3325 | all: | |
3326 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3327 | _ACEOF | |
3328 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3329 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3330 | *@@@%%%=?*=@@@%%%*) | |
3331 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3332 | *) | |
3333 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3334 | esac | |
3335 | rm -f conftest.make | |
3336 | fi | |
3337 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3339 | $as_echo "yes" >&6; } | |
4ee9c684 | 3340 | SET_MAKE= |
3341 | else | |
cd9a469c | 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3343 | $as_echo "no" >&6; } | |
4ee9c684 | 3344 | SET_MAKE="MAKE=${MAKE-make}" |
3345 | fi | |
3346 | ||
3347 | rm -rf .tst 2>/dev/null | |
3348 | mkdir .tst 2>/dev/null | |
3349 | if test -d .tst; then | |
3350 | am__leading_dot=. | |
3351 | else | |
3352 | am__leading_dot=_ | |
3353 | fi | |
3354 | rmdir .tst 2>/dev/null | |
3355 | ||
cd9a469c | 3356 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3357 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3358 | # is not polluted with repeated "-I." | |
3359 | am__isrc=' -I$(srcdir)' | |
3360 | # test to see if srcdir already configured | |
3361 | if test -f $srcdir/config.status; then | |
3362 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3363 | fi | |
4ee9c684 | 3364 | fi |
3365 | ||
3366 | # test whether we have cygpath | |
3367 | if test -z "$CYGPATH_W"; then | |
3368 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3369 | CYGPATH_W='cygpath -w' | |
3370 | else | |
3371 | CYGPATH_W=echo | |
3372 | fi | |
3373 | fi | |
3374 | ||
3375 | ||
3376 | # Define the identity of the package. | |
3377 | PACKAGE='libgfortran' | |
76c0a846 | 3378 | VERSION='0.3' |
4ee9c684 | 3379 | |
3380 | ||
4ee9c684 | 3381 | # Some tools Automake needs. |
3382 | ||
3383 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3384 | ||
3385 | ||
3386 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3387 | ||
3388 | ||
3389 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3390 | ||
3391 | ||
3392 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3393 | ||
3394 | ||
3395 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3396 | ||
4ee9c684 | 3397 | # We need awk for the "check" target. The system "awk" is bad on |
3398 | # some platforms. | |
544db64f | 3399 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3400 | # in the wild :-( We should find a proper way to deprecate it ... | |
3401 | AMTAR='$${TAR-tar}' | |
6745c9de | 3402 | |
544db64f | 3403 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
6745c9de | 3404 | |
3405 | ||
4ee9c684 | 3406 | |
3407 | ||
3408 | ||
4ee9c684 | 3409 | |
cd9a469c | 3410 | |
3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3412 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3413 | # Check whether --enable-maintainer-mode was given. | |
3414 | if test "${enable_maintainer_mode+set}" = set; then : | |
3415 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4ee9c684 | 3416 | else |
3417 | USE_MAINTAINER_MODE=no | |
cd9a469c | 3418 | fi |
4ee9c684 | 3419 | |
cd9a469c | 3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3421 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3422 | if test $USE_MAINTAINER_MODE = yes; then | |
4ee9c684 | 3423 | MAINTAINER_MODE_TRUE= |
3424 | MAINTAINER_MODE_FALSE='#' | |
3425 | else | |
3426 | MAINTAINER_MODE_TRUE='#' | |
3427 | MAINTAINER_MODE_FALSE= | |
3428 | fi | |
3429 | ||
3430 | MAINT=$MAINTAINER_MODE_TRUE | |
3431 | ||
3432 | ||
90973b19 | 3433 | # Default to --enable-multilib |
cd9a469c | 3434 | # Check whether --enable-multilib was given. |
3435 | if test "${enable_multilib+set}" = set; then : | |
3436 | enableval=$enable_multilib; case "$enableval" in | |
90973b19 | 3437 | yes) multilib=yes ;; |
3438 | no) multilib=no ;; | |
cd9a469c | 3439 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; |
90973b19 | 3440 | esac |
3441 | else | |
3442 | multilib=yes | |
cd9a469c | 3443 | fi |
3444 | ||
90973b19 | 3445 | |
3446 | # We may get other options which we leave undocumented: | |
3447 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3448 | # See config-ml.in if you want the gory details. | |
3449 | ||
3450 | if test "$srcdir" = "."; then | |
3451 | if test "$with_target_subdir" != "."; then | |
3452 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3453 | else | |
3454 | multi_basedir="$srcdir/$with_multisrctop.." | |
3455 | fi | |
3456 | else | |
3457 | multi_basedir="$srcdir/.." | |
3458 | fi | |
3459 | ||
3460 | ||
04c8b51e | 3461 | # Even if the default multilib is not a cross compilation, |
3462 | # it may be that some of the other multilibs are. | |
3463 | if test $cross_compiling = no && test $multilib = yes \ | |
3464 | && test "x${with_multisubdir}" != x ; then | |
3465 | cross_compiling=maybe | |
3466 | fi | |
3467 | ||
cd9a469c | 3468 | ac_config_commands="$ac_config_commands default-1" |
90973b19 | 3469 | |
3470 | ||
3471 | # Handy for debugging: | |
3472 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3473 | ||
3474 | # Are we being configured with some form of cross compiler? | |
3475 | # NB: We don't actually need to know this just now, but when, say, a test | |
3476 | # suite is included, we'll have to know. | |
3477 | if test "$build" != "$host"; then | |
3478 | LIBGFOR_IS_NATIVE=false | |
b52ee437 | 3479 | |
90973b19 | 3480 | else |
3481 | LIBGFOR_IS_NATIVE=true | |
3482 | fi | |
3483 | ||
d5d92632 | 3484 | DEPDIR="${am__leading_dot}deps" |
90973b19 | 3485 | |
d5d92632 | 3486 | ac_config_commands="$ac_config_commands depfiles" |
90973b19 | 3487 | |
4ee9c684 | 3488 | |
d5d92632 | 3489 | am_make=${MAKE-make} |
3490 | cat > confinc << 'END' | |
3491 | am__doit: | |
3492 | @echo this is the am__doit target | |
3493 | .PHONY: am__doit | |
3494 | END | |
3495 | # If we don't find an include directive, just comment out the code. | |
3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3497 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3498 | am__include="#" | |
3499 | am__quote= | |
3500 | _am_result=none | |
3501 | # First try GNU make style include. | |
3502 | echo "include confinc" > confmf | |
3503 | # Ignore all kinds of additional output from `make'. | |
3504 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3505 | *the\ am__doit\ target*) | |
3506 | am__include=include | |
3507 | am__quote= | |
3508 | _am_result=GNU | |
3509 | ;; | |
3510 | esac | |
3511 | # Now try BSD make style include. | |
3512 | if test "$am__include" = "#"; then | |
3513 | echo '.include "confinc"' > confmf | |
3514 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3515 | *the\ am__doit\ target*) | |
3516 | am__include=.include | |
3517 | am__quote="\"" | |
3518 | _am_result=BSD | |
3519 | ;; | |
3520 | esac | |
3521 | fi | |
87969c8c | 3522 | |
4ee9c684 | 3523 | |
d5d92632 | 3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3525 | $as_echo "$_am_result" >&6; } | |
3526 | rm -f confinc confmf | |
3527 | ||
3528 | # Check whether --enable-dependency-tracking was given. | |
3529 | if test "${enable_dependency_tracking+set}" = set; then : | |
3530 | enableval=$enable_dependency_tracking; | |
3531 | fi | |
3532 | ||
3533 | if test "x$enable_dependency_tracking" != xno; then | |
3534 | am_depcomp="$ac_aux_dir/depcomp" | |
3535 | AMDEPBACKSLASH='\' | |
544db64f | 3536 | am__nodep='_no' |
d5d92632 | 3537 | fi |
3538 | if test "x$enable_dependency_tracking" != xno; then | |
3539 | AMDEP_TRUE= | |
3540 | AMDEP_FALSE='#' | |
3541 | else | |
3542 | AMDEP_TRUE='#' | |
3543 | AMDEP_FALSE= | |
3544 | fi | |
4ee9c684 | 3545 | |
3546 | ||
4ee9c684 | 3547 | ac_ext=c |
3548 | ac_cpp='$CPP $CPPFLAGS' | |
3549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3552 | if test -n "$ac_tool_prefix"; then | |
3553 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3554 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3556 | $as_echo_n "checking for $ac_word... " >&6; } | |
3557 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3558 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3559 | else |
3560 | if test -n "$CC"; then | |
3561 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3562 | else | |
3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3564 | for as_dir in $PATH | |
3565 | do | |
3566 | IFS=$as_save_IFS | |
3567 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3568 | for ac_exec_ext in '' $ac_executable_extensions; do |
3569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3570 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 3571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3572 | break 2 |
3573 | fi | |
3574 | done | |
cd9a469c | 3575 | done |
3576 | IFS=$as_save_IFS | |
4ee9c684 | 3577 | |
3578 | fi | |
3579 | fi | |
3580 | CC=$ac_cv_prog_CC | |
3581 | if test -n "$CC"; then | |
cd9a469c | 3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3583 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3584 | else |
cd9a469c | 3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3586 | $as_echo "no" >&6; } | |
4ee9c684 | 3587 | fi |
3588 | ||
cd9a469c | 3589 | |
4ee9c684 | 3590 | fi |
3591 | if test -z "$ac_cv_prog_CC"; then | |
3592 | ac_ct_CC=$CC | |
3593 | # Extract the first word of "gcc", so it can be a program name with args. | |
3594 | set dummy gcc; ac_word=$2 | |
cd9a469c | 3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3596 | $as_echo_n "checking for $ac_word... " >&6; } | |
3597 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3598 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3599 | else |
3600 | if test -n "$ac_ct_CC"; then | |
3601 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3602 | else | |
3603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3604 | for as_dir in $PATH | |
3605 | do | |
3606 | IFS=$as_save_IFS | |
3607 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3608 | for ac_exec_ext in '' $ac_executable_extensions; do |
3609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3610 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 3611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3612 | break 2 |
3613 | fi | |
3614 | done | |
cd9a469c | 3615 | done |
3616 | IFS=$as_save_IFS | |
4ee9c684 | 3617 | |
3618 | fi | |
3619 | fi | |
3620 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3621 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3623 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 3624 | else |
cd9a469c | 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3626 | $as_echo "no" >&6; } | |
4ee9c684 | 3627 | fi |
3628 | ||
cd9a469c | 3629 | if test "x$ac_ct_CC" = x; then |
3630 | CC="" | |
3631 | else | |
3632 | case $cross_compiling:$ac_tool_warned in | |
3633 | yes:) | |
3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3635 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3636 | ac_tool_warned=yes ;; | |
3637 | esac | |
3638 | CC=$ac_ct_CC | |
3639 | fi | |
4ee9c684 | 3640 | else |
3641 | CC="$ac_cv_prog_CC" | |
3642 | fi | |
3643 | ||
3644 | if test -z "$CC"; then | |
cd9a469c | 3645 | if test -n "$ac_tool_prefix"; then |
3646 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4ee9c684 | 3647 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3649 | $as_echo_n "checking for $ac_word... " >&6; } | |
3650 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3651 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3652 | else |
3653 | if test -n "$CC"; then | |
3654 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3655 | else | |
3656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3657 | for as_dir in $PATH | |
3658 | do | |
3659 | IFS=$as_save_IFS | |
3660 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3661 | for ac_exec_ext in '' $ac_executable_extensions; do |
3662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3663 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 3664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3665 | break 2 |
3666 | fi | |
3667 | done | |
cd9a469c | 3668 | done |
3669 | IFS=$as_save_IFS | |
4ee9c684 | 3670 | |
3671 | fi | |
3672 | fi | |
3673 | CC=$ac_cv_prog_CC | |
3674 | if test -n "$CC"; then | |
cd9a469c | 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3676 | $as_echo "$CC" >&6; } | |
82eaf560 | 3677 | else |
cd9a469c | 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3679 | $as_echo "no" >&6; } | |
82eaf560 | 3680 | fi |
3681 | ||
82eaf560 | 3682 | |
cd9a469c | 3683 | fi |
4ee9c684 | 3684 | fi |
3685 | if test -z "$CC"; then | |
3686 | # Extract the first word of "cc", so it can be a program name with args. | |
3687 | set dummy cc; ac_word=$2 | |
cd9a469c | 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3689 | $as_echo_n "checking for $ac_word... " >&6; } | |
3690 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3691 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3692 | else |
3693 | if test -n "$CC"; then | |
3694 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3695 | else | |
3696 | ac_prog_rejected=no | |
3697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3698 | for as_dir in $PATH | |
3699 | do | |
3700 | IFS=$as_save_IFS | |
3701 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3702 | for ac_exec_ext in '' $ac_executable_extensions; do |
3703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3704 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3705 | ac_prog_rejected=yes | |
3706 | continue | |
3707 | fi | |
3708 | ac_cv_prog_CC="cc" | |
cd9a469c | 3709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3710 | break 2 |
3711 | fi | |
3712 | done | |
cd9a469c | 3713 | done |
3714 | IFS=$as_save_IFS | |
4ee9c684 | 3715 | |
3716 | if test $ac_prog_rejected = yes; then | |
3717 | # We found a bogon in the path, so make sure we never use it. | |
3718 | set dummy $ac_cv_prog_CC | |
3719 | shift | |
3720 | if test $# != 0; then | |
3721 | # We chose a different compiler from the bogus one. | |
3722 | # However, it has the same basename, so the bogon will be chosen | |
3723 | # first if we set CC to just the basename; use the full file name. | |
3724 | shift | |
3725 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3726 | fi | |
3727 | fi | |
3728 | fi | |
3729 | fi | |
3730 | CC=$ac_cv_prog_CC | |
3731 | if test -n "$CC"; then | |
cd9a469c | 3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3733 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3734 | else |
cd9a469c | 3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3736 | $as_echo "no" >&6; } | |
4ee9c684 | 3737 | fi |
3738 | ||
cd9a469c | 3739 | |
4ee9c684 | 3740 | fi |
3741 | if test -z "$CC"; then | |
3742 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 3743 | for ac_prog in cl.exe |
4ee9c684 | 3744 | do |
3745 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3746 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3748 | $as_echo_n "checking for $ac_word... " >&6; } | |
3749 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3750 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3751 | else |
3752 | if test -n "$CC"; then | |
3753 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3754 | else | |
3755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3756 | for as_dir in $PATH | |
3757 | do | |
3758 | IFS=$as_save_IFS | |
3759 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3760 | for ac_exec_ext in '' $ac_executable_extensions; do |
3761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3762 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 3763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3764 | break 2 |
3765 | fi | |
3766 | done | |
cd9a469c | 3767 | done |
3768 | IFS=$as_save_IFS | |
4ee9c684 | 3769 | |
3770 | fi | |
3771 | fi | |
3772 | CC=$ac_cv_prog_CC | |
3773 | if test -n "$CC"; then | |
cd9a469c | 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3775 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3776 | else |
cd9a469c | 3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3778 | $as_echo "no" >&6; } | |
4ee9c684 | 3779 | fi |
3780 | ||
cd9a469c | 3781 | |
4ee9c684 | 3782 | test -n "$CC" && break |
3783 | done | |
3784 | fi | |
3785 | if test -z "$CC"; then | |
3786 | ac_ct_CC=$CC | |
cd9a469c | 3787 | for ac_prog in cl.exe |
4ee9c684 | 3788 | do |
3789 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3790 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3792 | $as_echo_n "checking for $ac_word... " >&6; } | |
3793 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3794 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3795 | else |
3796 | if test -n "$ac_ct_CC"; then | |
3797 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3798 | else | |
3799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3800 | for as_dir in $PATH | |
3801 | do | |
3802 | IFS=$as_save_IFS | |
3803 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3804 | for ac_exec_ext in '' $ac_executable_extensions; do |
3805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3806 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 3807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3808 | break 2 |
3809 | fi | |
3810 | done | |
cd9a469c | 3811 | done |
3812 | IFS=$as_save_IFS | |
4ee9c684 | 3813 | |
3814 | fi | |
3815 | fi | |
3816 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3817 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3819 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 3820 | else |
cd9a469c | 3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3822 | $as_echo "no" >&6; } | |
4ee9c684 | 3823 | fi |
3824 | ||
cd9a469c | 3825 | |
4ee9c684 | 3826 | test -n "$ac_ct_CC" && break |
3827 | done | |
3828 | ||
cd9a469c | 3829 | if test "x$ac_ct_CC" = x; then |
3830 | CC="" | |
3831 | else | |
3832 | case $cross_compiling:$ac_tool_warned in | |
3833 | yes:) | |
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3835 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3836 | ac_tool_warned=yes ;; | |
3837 | esac | |
3838 | CC=$ac_ct_CC | |
3839 | fi | |
4ee9c684 | 3840 | fi |
3841 | ||
3842 | fi | |
3843 | ||
3844 | ||
cd9a469c | 3845 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3846 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3847 | as_fn_error "no acceptable C compiler found in \$PATH | |
3848 | See \`config.log' for more details." "$LINENO" 5; } | |
4ee9c684 | 3849 | |
3850 | # Provide some information about the compiler. | |
cd9a469c | 3851 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3852 | set X $ac_compile | |
3853 | ac_compiler=$2 | |
3854 | for ac_option in --version -v -V -qversion; do | |
3855 | { { ac_try="$ac_compiler $ac_option >&5" | |
3856 | case "(($ac_try" in | |
3857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3858 | *) ac_try_echo=$ac_try;; | |
3859 | esac | |
3860 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3861 | $as_echo "$ac_try_echo"; } >&5 | |
3862 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4ee9c684 | 3863 | ac_status=$? |
cd9a469c | 3864 | if test -s conftest.err; then |
3865 | sed '10a\ | |
3866 | ... rest of stderr output deleted ... | |
3867 | 10q' conftest.err >conftest.er1 | |
3868 | cat conftest.er1 >&5 | |
3869 | rm -f conftest.er1 conftest.err | |
3870 | fi | |
3871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3872 | test $ac_status = 0; } | |
3873 | done | |
4ee9c684 | 3874 | |
cd9a469c | 3875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 3876 | /* end confdefs.h. */ |
3877 | ||
b52ee437 | 3878 | int |
3879 | main () | |
3880 | { | |
3881 | ||
3882 | ; | |
3883 | return 0; | |
3884 | } | |
3885 | _ACEOF | |
3886 | # FIXME: Cleanup? | |
cd9a469c | 3887 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
b52ee437 | 3888 | (eval $ac_link) 2>&5 |
3889 | ac_status=$? | |
cd9a469c | 3890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3891 | test $ac_status = 0; }; then : | |
b52ee437 | 3892 | gcc_no_link=no |
3893 | else | |
3894 | gcc_no_link=yes | |
3895 | fi | |
b52ee437 | 3896 | if test x$gcc_no_link = xyes; then |
3897 | # Setting cross_compile will disable run tests; it will | |
3898 | # also disable AC_CHECK_FILE but that's generally | |
3899 | # correct if we can't link. | |
3900 | cross_compiling=yes | |
3901 | EXEEXT= | |
3902 | else | |
cd9a469c | 3903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 3904 | /* end confdefs.h. */ |
3905 | ||
4ee9c684 | 3906 | int |
3907 | main () | |
3908 | { | |
3909 | ||
3910 | ; | |
3911 | return 0; | |
3912 | } | |
3913 | _ACEOF | |
3914 | ac_clean_files_save=$ac_clean_files | |
cd9a469c | 3915 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
4ee9c684 | 3916 | # Try to create an executable without -o first, disregard a.out. |
3917 | # It will help us diagnose broken compilers, and finding out an intuition | |
3918 | # of exeext. | |
cd9a469c | 3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3920 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3921 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3922 | ||
3923 | # The possible output files: | |
3924 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3925 | ||
3926 | ac_rmfiles= | |
3927 | for ac_file in $ac_files | |
3928 | do | |
3929 | case $ac_file in | |
3930 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3931 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3932 | esac | |
3933 | done | |
3934 | rm -f $ac_rmfiles | |
3935 | ||
3936 | if { { ac_try="$ac_link_default" | |
3937 | case "(($ac_try" in | |
3938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3939 | *) ac_try_echo=$ac_try;; | |
3940 | esac | |
3941 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3942 | $as_echo "$ac_try_echo"; } >&5 | |
3943 | (eval "$ac_link_default") 2>&5 | |
3944 | ac_status=$? | |
3945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3946 | test $ac_status = 0; }; then : | |
3947 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3948 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3949 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3950 | # so that the user can short-circuit this test for compilers unknown to | |
3951 | # Autoconf. | |
3952 | for ac_file in $ac_files '' | |
4ee9c684 | 3953 | do |
3954 | test -f "$ac_file" || continue | |
3955 | case $ac_file in | |
cd9a469c | 3956 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
4ee9c684 | 3957 | ;; |
3958 | [ab].out ) | |
3959 | # We found the default executable, but exeext='' is most | |
3960 | # certainly right. | |
3961 | break;; | |
3962 | *.* ) | |
cd9a469c | 3963 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3964 | then :; else | |
3965 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3966 | fi | |
3967 | # We set ac_cv_exeext here because the later test for it is not | |
3968 | # safe: cross compilers may not add the suffix if given an `-o' | |
3969 | # argument, so we may need to know it at that point already. | |
3970 | # Even if this section looks crufty: it has the advantage of | |
3971 | # actually working. | |
4ee9c684 | 3972 | break;; |
3973 | * ) | |
3974 | break;; | |
3975 | esac | |
3976 | done | |
cd9a469c | 3977 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3978 | ||
4ee9c684 | 3979 | else |
cd9a469c | 3980 | ac_file='' |
3981 | fi | |
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3983 | $as_echo "$ac_file" >&6; } | |
3984 | if test -z "$ac_file"; then : | |
3985 | $as_echo "$as_me: failed program was:" >&5 | |
4ee9c684 | 3986 | sed 's/^/| /' conftest.$ac_ext >&5 |
3987 | ||
cd9a469c | 3988 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3989 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3990 | { as_fn_set_status 77 | |
3991 | as_fn_error "C compiler cannot create executables | |
3992 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4ee9c684 | 3993 | fi |
4ee9c684 | 3994 | ac_exeext=$ac_cv_exeext |
4ee9c684 | 3995 | |
cd9a469c | 3996 | # Check that the compiler produces executables we can run. If not, either |
4ee9c684 | 3997 | # the compiler is broken, or we cross compile. |
cd9a469c | 3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3999 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4ee9c684 | 4000 | # If not cross compiling, check that we can run a simple program. |
4001 | if test "$cross_compiling" != yes; then | |
4002 | if { ac_try='./$ac_file' | |
cd9a469c | 4003 | { { case "(($ac_try" in |
4004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4005 | *) ac_try_echo=$ac_try;; | |
4006 | esac | |
4007 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4008 | $as_echo "$ac_try_echo"; } >&5 | |
4009 | (eval "$ac_try") 2>&5 | |
4ee9c684 | 4010 | ac_status=$? |
cd9a469c | 4011 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4012 | test $ac_status = 0; }; }; then | |
4ee9c684 | 4013 | cross_compiling=no |
4014 | else | |
4015 | if test "$cross_compiling" = maybe; then | |
4016 | cross_compiling=yes | |
4017 | else | |
cd9a469c | 4018 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4020 | as_fn_error "cannot run C compiled programs. | |
4ee9c684 | 4021 | If you meant to cross compile, use \`--host'. |
cd9a469c | 4022 | See \`config.log' for more details." "$LINENO" 5; } |
4ee9c684 | 4023 | fi |
4024 | fi | |
4025 | fi | |
cd9a469c | 4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4027 | $as_echo "yes" >&6; } | |
4ee9c684 | 4028 | |
cd9a469c | 4029 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
4ee9c684 | 4030 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4031 | # Check that the compiler produces executables we can run. If not, either |
4ee9c684 | 4032 | # the compiler is broken, or we cross compile. |
cd9a469c | 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4034 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4036 | $as_echo "$cross_compiling" >&6; } | |
4037 | ||
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4039 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4040 | if { { ac_try="$ac_link" | |
4041 | case "(($ac_try" in | |
4042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4043 | *) ac_try_echo=$ac_try;; | |
4044 | esac | |
4045 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4046 | $as_echo "$ac_try_echo"; } >&5 | |
4047 | (eval "$ac_link") 2>&5 | |
4ee9c684 | 4048 | ac_status=$? |
cd9a469c | 4049 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4050 | test $ac_status = 0; }; then : | |
4ee9c684 | 4051 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4052 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4053 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4054 | # `rm'. | |
4055 | for ac_file in conftest.exe conftest conftest.*; do | |
4056 | test -f "$ac_file" || continue | |
4057 | case $ac_file in | |
cd9a469c | 4058 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
4ee9c684 | 4059 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4ee9c684 | 4060 | break;; |
4061 | * ) break;; | |
4062 | esac | |
4063 | done | |
4064 | else | |
cd9a469c | 4065 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4066 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4067 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4068 | See \`config.log' for more details." "$LINENO" 5; } | |
4ee9c684 | 4069 | fi |
4ee9c684 | 4070 | rm -f conftest$ac_cv_exeext |
cd9a469c | 4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4072 | $as_echo "$ac_cv_exeext" >&6; } | |
4ee9c684 | 4073 | |
4074 | rm -f conftest.$ac_ext | |
4075 | EXEEXT=$ac_cv_exeext | |
4076 | ac_exeext=$EXEEXT | |
b52ee437 | 4077 | fi |
cd9a469c | 4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4079 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4080 | if test "${ac_cv_objext+set}" = set; then : | |
4081 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 4082 | else |
cd9a469c | 4083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4084 | /* end confdefs.h. */ |
4085 | ||
4086 | int | |
4087 | main () | |
4088 | { | |
4089 | ||
4090 | ; | |
4091 | return 0; | |
4092 | } | |
4093 | _ACEOF | |
4094 | rm -f conftest.o conftest.obj | |
cd9a469c | 4095 | if { { ac_try="$ac_compile" |
4096 | case "(($ac_try" in | |
4097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4098 | *) ac_try_echo=$ac_try;; | |
4099 | esac | |
4100 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4101 | $as_echo "$ac_try_echo"; } >&5 | |
4102 | (eval "$ac_compile") 2>&5 | |
4103 | ac_status=$? | |
4104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4105 | test $ac_status = 0; }; then : | |
4106 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4107 | test -f "$ac_file" || continue; | |
4ee9c684 | 4108 | case $ac_file in |
cd9a469c | 4109 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
4ee9c684 | 4110 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4111 | break;; | |
4112 | esac | |
4113 | done | |
4114 | else | |
cd9a469c | 4115 | $as_echo "$as_me: failed program was:" >&5 |
4ee9c684 | 4116 | sed 's/^/| /' conftest.$ac_ext >&5 |
4117 | ||
cd9a469c | 4118 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4119 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4120 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4121 | See \`config.log' for more details." "$LINENO" 5; } | |
a106dabe | 4122 | fi |
a106dabe | 4123 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4124 | fi | |
cd9a469c | 4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4126 | $as_echo "$ac_cv_objext" >&6; } | |
a106dabe | 4127 | OBJEXT=$ac_cv_objext |
4128 | ac_objext=$OBJEXT | |
cd9a469c | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4130 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4131 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4132 | $as_echo_n "(cached) " >&6 | |
a106dabe | 4133 | else |
cd9a469c | 4134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4135 | /* end confdefs.h. */ |
4ee9c684 | 4136 | |
4ee9c684 | 4137 | int |
4138 | main () | |
4139 | { | |
a106dabe | 4140 | #ifndef __GNUC__ |
4141 | choke me | |
4142 | #endif | |
ce1a737c | 4143 | |
4ee9c684 | 4144 | ; |
4145 | return 0; | |
4146 | } | |
4147 | _ACEOF | |
cd9a469c | 4148 | if ac_fn_c_try_compile "$LINENO"; then : |
a106dabe | 4149 | ac_compiler_gnu=yes |
4ee9c684 | 4150 | else |
cd9a469c | 4151 | ac_compiler_gnu=no |
a106dabe | 4152 | fi |
cd9a469c | 4153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a106dabe | 4154 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4155 | ||
4156 | fi | |
cd9a469c | 4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4158 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4159 | if test $ac_compiler_gnu = yes; then | |
4160 | GCC=yes | |
4161 | else | |
4162 | GCC= | |
4163 | fi | |
a106dabe | 4164 | ac_test_CFLAGS=${CFLAGS+set} |
4165 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4167 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4168 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4169 | $as_echo_n "(cached) " >&6 | |
a106dabe | 4170 | else |
cd9a469c | 4171 | ac_save_c_werror_flag=$ac_c_werror_flag |
4172 | ac_c_werror_flag=yes | |
4173 | ac_cv_prog_cc_g=no | |
4174 | CFLAGS="-g" | |
4175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4ee9c684 | 4176 | /* end confdefs.h. */ |
ce1a737c | 4177 | |
4ee9c684 | 4178 | int |
4179 | main () | |
4180 | { | |
ce1a737c | 4181 | |
4ee9c684 | 4182 | ; |
4183 | return 0; | |
4184 | } | |
4185 | _ACEOF | |
cd9a469c | 4186 | if ac_fn_c_try_compile "$LINENO"; then : |
ff4425cf | 4187 | ac_cv_prog_cc_g=yes |
4188 | else | |
cd9a469c | 4189 | CFLAGS="" |
4190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4191 | /* end confdefs.h. */ | |
4192 | ||
4193 | int | |
4194 | main () | |
4195 | { | |
4196 | ||
4197 | ; | |
4198 | return 0; | |
4199 | } | |
4200 | _ACEOF | |
4201 | if ac_fn_c_try_compile "$LINENO"; then : | |
4202 | ||
4203 | else | |
4204 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4205 | CFLAGS="-g" | |
4206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4207 | /* end confdefs.h. */ | |
ff4425cf | 4208 | |
cd9a469c | 4209 | int |
4210 | main () | |
4211 | { | |
4212 | ||
4213 | ; | |
4214 | return 0; | |
4215 | } | |
4216 | _ACEOF | |
4217 | if ac_fn_c_try_compile "$LINENO"; then : | |
4218 | ac_cv_prog_cc_g=yes | |
4219 | fi | |
4220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
82eaf560 | 4221 | fi |
cd9a469c | 4222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
82eaf560 | 4223 | fi |
cd9a469c | 4224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4225 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4226 | fi | |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4228 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
82eaf560 | 4229 | if test "$ac_test_CFLAGS" = set; then |
4230 | CFLAGS=$ac_save_CFLAGS | |
4231 | elif test $ac_cv_prog_cc_g = yes; then | |
4232 | if test "$GCC" = yes; then | |
4233 | CFLAGS="-g -O2" | |
4234 | else | |
4235 | CFLAGS="-g" | |
4236 | fi | |
4237 | else | |
4238 | if test "$GCC" = yes; then | |
4239 | CFLAGS="-O2" | |
4240 | else | |
4241 | CFLAGS= | |
4242 | fi | |
4243 | fi | |
cd9a469c | 4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4245 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4246 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4247 | $as_echo_n "(cached) " >&6 | |
82eaf560 | 4248 | else |
cd9a469c | 4249 | ac_cv_prog_cc_c89=no |
82eaf560 | 4250 | ac_save_CC=$CC |
cd9a469c | 4251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff4425cf | 4252 | /* end confdefs.h. */ |
82eaf560 | 4253 | #include <stdarg.h> |
4254 | #include <stdio.h> | |
4255 | #include <sys/types.h> | |
4256 | #include <sys/stat.h> | |
4257 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4258 | struct buf { int x; }; | |
4259 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4260 | static char *e (p, i) | |
4261 | char **p; | |
4262 | int i; | |
4263 | { | |
4264 | return p[i]; | |
4265 | } | |
4266 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4267 | { | |
4268 | char *s; | |
4269 | va_list v; | |
4270 | va_start (v,p); | |
4271 | s = g (p, va_arg (v,int)); | |
4272 | va_end (v); | |
4273 | return s; | |
4274 | } | |
ff4425cf | 4275 | |
82eaf560 | 4276 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4277 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4278 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4279 | as 'x'. The following induces an error, until -std is added to get |
82eaf560 | 4280 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4281 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4282 | that's true only with -std. */ |
82eaf560 | 4283 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4284 | ||
cd9a469c | 4285 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4286 | inside strings and character constants. */ | |
4287 | #define FOO(x) 'x' | |
4288 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4289 | ||
82eaf560 | 4290 | int test (int i, double x); |
4291 | struct s1 {int (*f) (int a);}; | |
4292 | struct s2 {int (*f) (double a);}; | |
4293 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4294 | int argc; | |
4295 | char **argv; | |
ff4425cf | 4296 | int |
4297 | main () | |
4298 | { | |
82eaf560 | 4299 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
ff4425cf | 4300 | ; |
4301 | return 0; | |
4302 | } | |
4303 | _ACEOF | |
cd9a469c | 4304 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4305 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
82eaf560 | 4306 | do |
4307 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4308 | if ac_fn_c_try_compile "$LINENO"; then : |
4309 | ac_cv_prog_cc_c89=$ac_arg | |
82eaf560 | 4310 | fi |
cd9a469c | 4311 | rm -f core conftest.err conftest.$ac_objext |
4312 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
82eaf560 | 4313 | done |
cd9a469c | 4314 | rm -f conftest.$ac_ext |
82eaf560 | 4315 | CC=$ac_save_CC |
4316 | ||
4317 | fi | |
cd9a469c | 4318 | # AC_CACHE_VAL |
4319 | case "x$ac_cv_prog_cc_c89" in | |
4320 | x) | |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4322 | $as_echo "none needed" >&6; } ;; | |
4323 | xno) | |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4325 | $as_echo "unsupported" >&6; } ;; | |
82eaf560 | 4326 | *) |
cd9a469c | 4327 | CC="$CC $ac_cv_prog_cc_c89" |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4329 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
82eaf560 | 4330 | esac |
cd9a469c | 4331 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
4ee9c684 | 4332 | |
4333 | fi | |
4ee9c684 | 4334 | |
4ee9c684 | 4335 | ac_ext=c |
4336 | ac_cpp='$CPP $CPPFLAGS' | |
4337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2fd61f51 | 4340 | |
2fd61f51 | 4341 | depcc="$CC" am_compiler_list= |
4342 | ||
cd9a469c | 4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4344 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4345 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4346 | $as_echo_n "(cached) " >&6 | |
2fd61f51 | 4347 | else |
4348 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4349 | # We make a subdir and do the tests there. Otherwise we can end up | |
4350 | # making bogus files that we don't know about and never remove. For | |
4351 | # instance it was reported that on HP-UX the gcc test will end up | |
4352 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4353 | # in D'. | |
544db64f | 4354 | rm -rf conftest.dir |
2fd61f51 | 4355 | mkdir conftest.dir |
4356 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4357 | # using a relative directory. | |
4358 | cp "$am_depcomp" conftest.dir | |
4359 | cd conftest.dir | |
4360 | # We will build objects and dependencies in a subdirectory because | |
4361 | # it helps to detect inapplicable dependency modes. For instance | |
4362 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4363 | # side effect of compilation, but ICC will put the dependencies in | |
4364 | # the current directory while Tru64 will put them in the object | |
4365 | # directory. | |
4366 | mkdir sub | |
4367 | ||
4368 | am_cv_CC_dependencies_compiler_type=none | |
4369 | if test "$am_compiler_list" = ""; then | |
4370 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4371 | fi | |
cd9a469c | 4372 | am__universal=false |
4373 | case " $depcc " in #( | |
4374 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4375 | esac | |
4376 | ||
2fd61f51 | 4377 | for depmode in $am_compiler_list; do |
4378 | # Setup a source with many dependencies, because some compilers | |
4379 | # like to wrap large dependency lists on column 80 (with \), and | |
4380 | # we should not choose a depcomp mode which is confused by this. | |
4381 | # | |
4382 | # We need to recreate these files for each test, as the compiler may | |
4383 | # overwrite some of them when testing with obscure command lines. | |
4384 | # This happens at least with the AIX C compiler. | |
4385 | : > sub/conftest.c | |
4386 | for i in 1 2 3 4 5 6; do | |
4387 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4388 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4389 | # Solaris 8's {/usr,}/bin/sh. | |
4390 | touch sub/conftst$i.h | |
4391 | done | |
4392 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4393 | ||
cd9a469c | 4394 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4395 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4396 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4397 | # versions had trouble with output in subdirs | |
4398 | am__obj=sub/conftest.${OBJEXT-o} | |
4399 | am__minus_obj="-o $am__obj" | |
2fd61f51 | 4400 | case $depmode in |
cd9a469c | 4401 | gcc) |
4402 | # This depmode causes a compiler race in universal mode. | |
4403 | test "$am__universal" = false || continue | |
4404 | ;; | |
2fd61f51 | 4405 | nosideeffect) |
4406 | # after this tag, mechanisms are not by side-effect, so they'll | |
4407 | # only be used when explicitly requested | |
4408 | if test "x$enable_dependency_tracking" = xyes; then | |
4409 | continue | |
4410 | else | |
4411 | break | |
4412 | fi | |
4413 | ;; | |
544db64f | 4414 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
cd9a469c | 4415 | # This compiler won't grok `-c -o', but also, the minuso test has |
4416 | # not run yet. These depmodes are late enough in the game, and | |
4417 | # so weak that their functioning should not be impacted. | |
4418 | am__obj=conftest.${OBJEXT-o} | |
4419 | am__minus_obj= | |
4420 | ;; | |
2fd61f51 | 4421 | none) break ;; |
4422 | esac | |
2fd61f51 | 4423 | if depmode=$depmode \ |
cd9a469c | 4424 | source=sub/conftest.c object=$am__obj \ |
2fd61f51 | 4425 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
cd9a469c | 4426 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2fd61f51 | 4427 | >/dev/null 2>conftest.err && |
cd9a469c | 4428 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2fd61f51 | 4429 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
cd9a469c | 4430 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2fd61f51 | 4431 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4432 | # icc doesn't choke on unknown options, it will just issue warnings | |
4433 | # or remarks (even with -Werror). So we grep stderr for any message | |
4434 | # that says an option was ignored or not supported. | |
4435 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4436 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4437 | # The diagnosis changed in icc 8.0: | |
4438 | # icc: Command line remark: option '-MP' not supported | |
4439 | if (grep 'ignoring option' conftest.err || | |
4440 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4441 | am_cv_CC_dependencies_compiler_type=$depmode | |
4442 | break | |
4443 | fi | |
4444 | fi | |
4445 | done | |
4446 | ||
4447 | cd .. | |
4448 | rm -rf conftest.dir | |
4449 | else | |
4450 | am_cv_CC_dependencies_compiler_type=none | |
4451 | fi | |
4452 | ||
4453 | fi | |
cd9a469c | 4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4455 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2fd61f51 | 4456 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4457 | ||
cd9a469c | 4458 | if |
2fd61f51 | 4459 | test "x$enable_dependency_tracking" != xno \ |
4460 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4461 | am__fastdepCC_TRUE= | |
4462 | am__fastdepCC_FALSE='#' | |
4463 | else | |
4464 | am__fastdepCC_TRUE='#' | |
4465 | am__fastdepCC_FALSE= | |
4466 | fi | |
4467 | ||
4ee9c684 | 4468 | |
4ee9c684 | 4469 | |
d5d92632 | 4470 | ac_ext=c |
4471 | ac_cpp='$CPP $CPPFLAGS' | |
4472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4476 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4477 | # On Suns, sometimes $CPP names a directory. | |
4478 | if test -n "$CPP" && test -d "$CPP"; then | |
4479 | CPP= | |
4ee9c684 | 4480 | fi |
d5d92632 | 4481 | if test -z "$CPP"; then |
4482 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
4483 | $as_echo_n "(cached) " >&6 | |
4484 | else | |
4485 | # Double quotes because CPP needs to be expanded | |
4486 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4487 | do | |
4488 | ac_preproc_ok=false | |
4489 | for ac_c_preproc_warn_flag in '' yes | |
4490 | do | |
4491 | # Use a header file that comes with gcc, so configuring glibc | |
4492 | # with a fresh cross-compiler works. | |
4493 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4494 | # <limits.h> exists even on freestanding compilers. | |
4495 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4496 | # not just through cpp. "Syntax error" is here to catch this case. | |
4497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce1a737c | 4498 | /* end confdefs.h. */ |
d5d92632 | 4499 | #ifdef __STDC__ |
4500 | # include <limits.h> | |
4501 | #else | |
4502 | # include <assert.h> | |
4503 | #endif | |
4504 | Syntax error | |
ce1a737c | 4505 | _ACEOF |
d5d92632 | 4506 | if ac_fn_c_try_cpp "$LINENO"; then : |
4507 | ||
019fb48a | 4508 | else |
d5d92632 | 4509 | # Broken: fails on valid input. |
4510 | continue | |
019fb48a | 4511 | fi |
d5d92632 | 4512 | rm -f conftest.err conftest.$ac_ext |
019fb48a | 4513 | |
d5d92632 | 4514 | # OK, works on sane cases. Now check whether nonexistent headers |
4515 | # can be detected and how. | |
4516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4517 | /* end confdefs.h. */ | |
4518 | #include <ac_nonexistent.h> | |
019fb48a | 4519 | _ACEOF |
d5d92632 | 4520 | if ac_fn_c_try_cpp "$LINENO"; then : |
4521 | # Broken: success on invalid input. | |
4522 | continue | |
ce1a737c | 4523 | else |
d5d92632 | 4524 | # Passes both tests. |
4525 | ac_preproc_ok=: | |
4526 | break | |
019fb48a | 4527 | fi |
d5d92632 | 4528 | rm -f conftest.err conftest.$ac_ext |
4529 | ||
4530 | done | |
4531 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4532 | rm -f conftest.err conftest.$ac_ext | |
4533 | if $ac_preproc_ok; then : | |
4534 | break | |
ce1a737c | 4535 | fi |
4536 | ||
d5d92632 | 4537 | done |
4538 | ac_cv_prog_CPP=$CPP | |
4539 | ||
4540 | fi | |
4541 | CPP=$ac_cv_prog_CPP | |
019fb48a | 4542 | else |
d5d92632 | 4543 | ac_cv_prog_CPP=$CPP |
019fb48a | 4544 | fi |
d5d92632 | 4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4546 | $as_echo "$CPP" >&6; } | |
4547 | ac_preproc_ok=false | |
4548 | for ac_c_preproc_warn_flag in '' yes | |
4549 | do | |
4550 | # Use a header file that comes with gcc, so configuring glibc | |
4551 | # with a fresh cross-compiler works. | |
4552 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4553 | # <limits.h> exists even on freestanding compilers. | |
4554 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4555 | # not just through cpp. "Syntax error" is here to catch this case. | |
4556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4557 | /* end confdefs.h. */ | |
4558 | #ifdef __STDC__ | |
4559 | # include <limits.h> | |
4560 | #else | |
4561 | # include <assert.h> | |
4562 | #endif | |
4563 | Syntax error | |
4564 | _ACEOF | |
4565 | if ac_fn_c_try_cpp "$LINENO"; then : | |
019fb48a | 4566 | |
019fb48a | 4567 | else |
d5d92632 | 4568 | # Broken: fails on valid input. |
4569 | continue | |
019fb48a | 4570 | fi |
d5d92632 | 4571 | rm -f conftest.err conftest.$ac_ext |
019fb48a | 4572 | |
d5d92632 | 4573 | # OK, works on sane cases. Now check whether nonexistent headers |
4574 | # can be detected and how. | |
4575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3443eac1 | 4576 | /* end confdefs.h. */ |
d5d92632 | 4577 | #include <ac_nonexistent.h> |
3443eac1 | 4578 | _ACEOF |
d5d92632 | 4579 | if ac_fn_c_try_cpp "$LINENO"; then : |
4580 | # Broken: success on invalid input. | |
4581 | continue | |
3443eac1 | 4582 | else |
d5d92632 | 4583 | # Passes both tests. |
4584 | ac_preproc_ok=: | |
4585 | break | |
3443eac1 | 4586 | fi |
d5d92632 | 4587 | rm -f conftest.err conftest.$ac_ext |
4588 | ||
4589 | done | |
4590 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4591 | rm -f conftest.err conftest.$ac_ext | |
4592 | if $ac_preproc_ok; then : | |
4593 | ||
3443eac1 | 4594 | else |
d5d92632 | 4595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4597 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4598 | See \`config.log' for more details." "$LINENO" 5; } | |
3443eac1 | 4599 | fi |
3443eac1 | 4600 | |
d5d92632 | 4601 | ac_ext=c |
4602 | ac_cpp='$CPP $CPPFLAGS' | |
4603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3443eac1 | 4606 | |
d5d92632 | 4607 | |
4608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4609 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4610 | if test "${ac_cv_path_GREP+set}" = set; then : | |
cd9a469c | 4611 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4612 | else |
d5d92632 | 4613 | if test -z "$GREP"; then |
4614 | ac_path_GREP_found=false | |
4615 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4617 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
90973b19 | 4618 | do |
4619 | IFS=$as_save_IFS | |
4620 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 4621 | for ac_prog in grep ggrep; do |
cd9a469c | 4622 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 4623 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4624 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4625 | # Check for GNU ac_path_GREP and select it if it is found. | |
4626 | # Check for GNU $ac_path_GREP | |
4627 | case `"$ac_path_GREP" --version 2>&1` in | |
4628 | *GNU*) | |
4629 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4630 | *) | |
4631 | ac_count=0 | |
4632 | $as_echo_n 0123456789 >"conftest.in" | |
4633 | while : | |
4634 | do | |
4635 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4636 | mv "conftest.tmp" "conftest.in" | |
4637 | cp "conftest.in" "conftest.nl" | |
4638 | $as_echo 'GREP' >> "conftest.nl" | |
4639 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4640 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4641 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4642 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4643 | # Best one so far, save it but keep looking for a better one | |
4644 | ac_cv_path_GREP="$ac_path_GREP" | |
4645 | ac_path_GREP_max=$ac_count | |
4646 | fi | |
4647 | # 10*(2^10) chars as input seems more than enough | |
4648 | test $ac_count -gt 10 && break | |
cd9a469c | 4649 | done |
d5d92632 | 4650 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4651 | esac | |
4ee9c684 | 4652 | |
d5d92632 | 4653 | $ac_path_GREP_found && break 3 |
4654 | done | |
4655 | done | |
4656 | done | |
4657 | IFS=$as_save_IFS | |
4658 | if test -z "$ac_cv_path_GREP"; then | |
4659 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4660 | fi | |
4ee9c684 | 4661 | else |
d5d92632 | 4662 | ac_cv_path_GREP=$GREP |
4ee9c684 | 4663 | fi |
4664 | ||
4ee9c684 | 4665 | fi |
d5d92632 | 4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4667 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4668 | GREP="$ac_cv_path_GREP" | |
4ee9c684 | 4669 | |
d5d92632 | 4670 | |
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4672 | $as_echo_n "checking for egrep... " >&6; } | |
4673 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
cd9a469c | 4674 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4675 | else |
d5d92632 | 4676 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4677 | then ac_cv_path_EGREP="$GREP -E" | |
4678 | else | |
4679 | if test -z "$EGREP"; then | |
4680 | ac_path_EGREP_found=false | |
4681 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4683 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4ee9c684 | 4684 | do |
4685 | IFS=$as_save_IFS | |
4686 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 4687 | for ac_prog in egrep; do |
cd9a469c | 4688 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 4689 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4690 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4691 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4692 | # Check for GNU $ac_path_EGREP | |
4693 | case `"$ac_path_EGREP" --version 2>&1` in | |
4694 | *GNU*) | |
4695 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4696 | *) | |
4697 | ac_count=0 | |
4698 | $as_echo_n 0123456789 >"conftest.in" | |
4699 | while : | |
4700 | do | |
4701 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4702 | mv "conftest.tmp" "conftest.in" | |
4703 | cp "conftest.in" "conftest.nl" | |
4704 | $as_echo 'EGREP' >> "conftest.nl" | |
4705 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4706 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4707 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4708 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4709 | # Best one so far, save it but keep looking for a better one | |
4710 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4711 | ac_path_EGREP_max=$ac_count | |
4712 | fi | |
4713 | # 10*(2^10) chars as input seems more than enough | |
4714 | test $ac_count -gt 10 && break | |
cd9a469c | 4715 | done |
d5d92632 | 4716 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4717 | esac | |
4ee9c684 | 4718 | |
d5d92632 | 4719 | $ac_path_EGREP_found && break 3 |
4720 | done | |
4721 | done | |
4722 | done | |
4723 | IFS=$as_save_IFS | |
4724 | if test -z "$ac_cv_path_EGREP"; then | |
4725 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4726 | fi | |
4ee9c684 | 4727 | else |
d5d92632 | 4728 | ac_cv_path_EGREP=$EGREP |
4ee9c684 | 4729 | fi |
4730 | ||
d5d92632 | 4731 | fi |
4ee9c684 | 4732 | fi |
d5d92632 | 4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4734 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4735 | EGREP="$ac_cv_path_EGREP" | |
4736 | ||
4737 | ||
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4739 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4740 | if test "${ac_cv_header_stdc+set}" = set; then : | |
cd9a469c | 4741 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4742 | else |
d5d92632 | 4743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4744 | /* end confdefs.h. */ | |
4745 | #include <stdlib.h> | |
4746 | #include <stdarg.h> | |
4747 | #include <string.h> | |
4748 | #include <float.h> | |
4749 | ||
4750 | int | |
4751 | main () | |
4752 | { | |
4753 | ||
4754 | ; | |
4755 | return 0; | |
4756 | } | |
4757 | _ACEOF | |
4758 | if ac_fn_c_try_compile "$LINENO"; then : | |
4759 | ac_cv_header_stdc=yes | |
4ee9c684 | 4760 | else |
d5d92632 | 4761 | ac_cv_header_stdc=no |
4762 | fi | |
4763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 4764 | |
d5d92632 | 4765 | if test $ac_cv_header_stdc = yes; then |
4766 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4768 | /* end confdefs.h. */ | |
4769 | #include <string.h> | |
4770 | ||
4771 | _ACEOF | |
4772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4773 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4774 | ||
4775 | else | |
4776 | ac_cv_header_stdc=no | |
4ee9c684 | 4777 | fi |
d5d92632 | 4778 | rm -f conftest* |
4779 | ||
4ee9c684 | 4780 | fi |
d5d92632 | 4781 | |
4782 | if test $ac_cv_header_stdc = yes; then | |
4783 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4785 | /* end confdefs.h. */ | |
4786 | #include <stdlib.h> | |
4787 | ||
4788 | _ACEOF | |
4789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4790 | $EGREP "free" >/dev/null 2>&1; then : | |
4791 | ||
4ee9c684 | 4792 | else |
d5d92632 | 4793 | ac_cv_header_stdc=no |
4ee9c684 | 4794 | fi |
d5d92632 | 4795 | rm -f conftest* |
4ee9c684 | 4796 | |
4ee9c684 | 4797 | fi |
4798 | ||
d5d92632 | 4799 | if test $ac_cv_header_stdc = yes; then |
4800 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4801 | if test "$cross_compiling" = yes; then : | |
4802 | : | |
4803 | else | |
4804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4805 | /* end confdefs.h. */ | |
4806 | #include <ctype.h> | |
4807 | #include <stdlib.h> | |
4808 | #if ((' ' & 0x0FF) == 0x020) | |
4809 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4810 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4811 | #else | |
4812 | # define ISLOWER(c) \ | |
4813 | (('a' <= (c) && (c) <= 'i') \ | |
4814 | || ('j' <= (c) && (c) <= 'r') \ | |
4815 | || ('s' <= (c) && (c) <= 'z')) | |
4816 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4817 | #endif | |
4818 | ||
4819 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4820 | int | |
4821 | main () | |
4822 | { | |
4823 | int i; | |
4824 | for (i = 0; i < 256; i++) | |
4825 | if (XOR (islower (i), ISLOWER (i)) | |
4826 | || toupper (i) != TOUPPER (i)) | |
4827 | return 2; | |
4828 | return 0; | |
4829 | } | |
4830 | _ACEOF | |
4831 | if ac_fn_c_try_run "$LINENO"; then : | |
4832 | ||
4833 | else | |
4834 | ac_cv_header_stdc=no | |
4835 | fi | |
4836 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4837 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4838 | fi | |
4839 | ||
4840 | fi | |
4841 | fi | |
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4843 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4844 | if test $ac_cv_header_stdc = yes; then | |
4845 | ||
4846 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4847 | ||
4848 | fi | |
4849 | ||
4850 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4851 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4852 | inttypes.h stdint.h unistd.h | |
4853 | do : | |
4854 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4855 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4856 | " | |
4857 | eval as_val=\$$as_ac_Header | |
4858 | if test "x$as_val" = x""yes; then : | |
4859 | cat >>confdefs.h <<_ACEOF | |
4860 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4861 | _ACEOF | |
4862 | ||
4863 | fi | |
4864 | ||
4865 | done | |
4866 | ||
4867 | ||
4868 | ||
4869 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4870 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
4871 | MINIX=yes | |
4872 | else | |
4873 | MINIX= | |
4874 | fi | |
4875 | ||
4876 | ||
4877 | if test "$MINIX" = yes; then | |
4878 | ||
4879 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4880 | ||
4881 | ||
4882 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4883 | ||
4884 | ||
4885 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4886 | ||
4887 | fi | |
4888 | ||
4889 | ||
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4891 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4892 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4893 | $as_echo_n "(cached) " >&6 | |
4894 | else | |
4895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4896 | /* end confdefs.h. */ | |
4897 | ||
4898 | # define __EXTENSIONS__ 1 | |
4899 | $ac_includes_default | |
4900 | int | |
4901 | main () | |
4902 | { | |
4903 | ||
4904 | ; | |
4905 | return 0; | |
4906 | } | |
4907 | _ACEOF | |
4908 | if ac_fn_c_try_compile "$LINENO"; then : | |
4909 | ac_cv_safe_to_define___extensions__=yes | |
4910 | else | |
4911 | ac_cv_safe_to_define___extensions__=no | |
4912 | fi | |
4913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4914 | fi | |
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4916 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4917 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4918 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4919 | ||
4920 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4921 | ||
4922 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4923 | ||
4924 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4925 | ||
4926 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4927 | ||
4928 | ||
4929 | ||
4930 | # Calculate toolexeclibdir | |
4931 | # Also toolexecdir, though it's only used in toolexeclibdir | |
4932 | case ${version_specific_libs} in | |
4933 | yes) | |
4934 | # Need the gcc compiler version to know where to install libraries | |
4935 | # and header files if --enable-version-specific-runtime-libs option | |
4936 | # is selected. | |
4937 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
4938 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
4939 | ;; | |
4940 | no) | |
4941 | if test -n "$with_cross_host" && | |
4942 | test x"$with_cross_host" != x"no"; then | |
4943 | # Install a library built with a cross compiler in tooldir, not libdir. | |
4944 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
4945 | toolexeclibdir='$(toolexecdir)/lib' | |
4946 | else | |
4947 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
4948 | toolexeclibdir='$(libdir)' | |
4949 | fi | |
4950 | multi_os_directory=`$CC -print-multi-os-directory` | |
4951 | case $multi_os_directory in | |
4952 | .) ;; # Avoid trailing /. | |
4953 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
4954 | esac | |
4955 | ;; | |
4956 | esac | |
4957 | ||
4958 | ||
4959 | ||
4960 | # Create a spec file, so that compile/link tests don't fail | |
4961 | test -f libgfortran.spec || touch libgfortran.spec | |
4962 | ||
7eda0fb7 | 4963 | ac_ext=c |
4964 | ac_cpp='$CPP $CPPFLAGS' | |
4965 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4966 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4967 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4968 | ||
d5d92632 | 4969 | # Check the compiler. |
4970 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
4971 | # We must force CC to /not/ be precious variables; otherwise | |
4972 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
4973 | # As a side effect, we have to subst CFLAGS ourselves. | |
4974 | ||
4975 | ||
4976 | ||
4977 | ac_ext=c | |
4978 | ac_cpp='$CPP $CPPFLAGS' | |
4979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4982 | if test -n "$ac_tool_prefix"; then | |
4983 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4984 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4986 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 4987 | if test "${ac_cv_prog_CC+set}" = set; then : |
cd9a469c | 4988 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4989 | else |
d5d92632 | 4990 | if test -n "$CC"; then |
4991 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4ee9c684 | 4992 | else |
90973b19 | 4993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4994 | for as_dir in $PATH | |
4995 | do | |
4996 | IFS=$as_save_IFS | |
4997 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4998 | for ac_exec_ext in '' $ac_executable_extensions; do |
4999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 5000 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 5001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 5002 | break 2 |
5003 | fi | |
5004 | done | |
cd9a469c | 5005 | done |
5006 | IFS=$as_save_IFS | |
4ee9c684 | 5007 | |
4ee9c684 | 5008 | fi |
90973b19 | 5009 | fi |
d5d92632 | 5010 | CC=$ac_cv_prog_CC |
5011 | if test -n "$CC"; then | |
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5013 | $as_echo "$CC" >&6; } | |
90973b19 | 5014 | else |
cd9a469c | 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5016 | $as_echo "no" >&6; } | |
90973b19 | 5017 | fi |
4ee9c684 | 5018 | |
cd9a469c | 5019 | |
4ee9c684 | 5020 | fi |
d5d92632 | 5021 | if test -z "$ac_cv_prog_CC"; then |
5022 | ac_ct_CC=$CC | |
5023 | # Extract the first word of "gcc", so it can be a program name with args. | |
5024 | set dummy gcc; ac_word=$2 | |
cd9a469c | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5026 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 5027 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
cd9a469c | 5028 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5029 | else |
d5d92632 | 5030 | if test -n "$ac_ct_CC"; then |
5031 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4ee9c684 | 5032 | else |
90973b19 | 5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5034 | for as_dir in $PATH | |
5035 | do | |
5036 | IFS=$as_save_IFS | |
5037 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5038 | for ac_exec_ext in '' $ac_executable_extensions; do |
5039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 5040 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 5041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 5042 | break 2 |
5043 | fi | |
5044 | done | |
cd9a469c | 5045 | done |
5046 | IFS=$as_save_IFS | |
4ee9c684 | 5047 | |
4ee9c684 | 5048 | fi |
4ee9c684 | 5049 | fi |
d5d92632 | 5050 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5051 | if test -n "$ac_ct_CC"; then | |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5053 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 5054 | else |
cd9a469c | 5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5056 | $as_echo "no" >&6; } | |
4ee9c684 | 5057 | fi |
5058 | ||
d5d92632 | 5059 | if test "x$ac_ct_CC" = x; then |
5060 | CC="" | |
cd9a469c | 5061 | else |
5062 | case $cross_compiling:$ac_tool_warned in | |
5063 | yes:) | |
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5065 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5066 | ac_tool_warned=yes ;; | |
5067 | esac | |
d5d92632 | 5068 | CC=$ac_ct_CC |
cd9a469c | 5069 | fi |
90973b19 | 5070 | else |
d5d92632 | 5071 | CC="$ac_cv_prog_CC" |
4ee9c684 | 5072 | fi |
90973b19 | 5073 | |
d5d92632 | 5074 | if test -z "$CC"; then |
5075 | if test -n "$ac_tool_prefix"; then | |
5076 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5077 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5079 | $as_echo_n "checking for $ac_word... " >&6; } | |
5080 | if test "${ac_cv_prog_CC+set}" = set; then : | |
cd9a469c | 5081 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5082 | else |
d5d92632 | 5083 | if test -n "$CC"; then |
5084 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4ee9c684 | 5085 | else |
d5d92632 | 5086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5087 | for as_dir in $PATH | |
5088 | do | |
5089 | IFS=$as_save_IFS | |
5090 | test -z "$as_dir" && as_dir=. | |
5091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5093 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
5094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5095 | break 2 | |
5096 | fi | |
5097 | done | |
5098 | done | |
5099 | IFS=$as_save_IFS | |
5100 | ||
5101 | fi | |
5102 | fi | |
5103 | CC=$ac_cv_prog_CC | |
5104 | if test -n "$CC"; then | |
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5106 | $as_echo "$CC" >&6; } | |
5107 | else | |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5109 | $as_echo "no" >&6; } | |
5110 | fi | |
5111 | ||
5112 | ||
5113 | fi | |
5114 | fi | |
5115 | if test -z "$CC"; then | |
5116 | # Extract the first word of "cc", so it can be a program name with args. | |
5117 | set dummy cc; ac_word=$2 | |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5119 | $as_echo_n "checking for $ac_word... " >&6; } | |
5120 | if test "${ac_cv_prog_CC+set}" = set; then : | |
5121 | $as_echo_n "(cached) " >&6 | |
5122 | else | |
5123 | if test -n "$CC"; then | |
5124 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5125 | else | |
5126 | ac_prog_rejected=no | |
5127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5128 | for as_dir in $PATH | |
5129 | do | |
5130 | IFS=$as_save_IFS | |
5131 | test -z "$as_dir" && as_dir=. | |
5132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5134 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
5135 | ac_prog_rejected=yes | |
5136 | continue | |
5137 | fi | |
5138 | ac_cv_prog_CC="cc" | |
5139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5140 | break 2 | |
5141 | fi | |
5142 | done | |
5143 | done | |
5144 | IFS=$as_save_IFS | |
5145 | ||
5146 | if test $ac_prog_rejected = yes; then | |
5147 | # We found a bogon in the path, so make sure we never use it. | |
5148 | set dummy $ac_cv_prog_CC | |
5149 | shift | |
5150 | if test $# != 0; then | |
5151 | # We chose a different compiler from the bogus one. | |
5152 | # However, it has the same basename, so the bogon will be chosen | |
5153 | # first if we set CC to just the basename; use the full file name. | |
5154 | shift | |
5155 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5156 | fi | |
5157 | fi | |
5158 | fi | |
5159 | fi | |
5160 | CC=$ac_cv_prog_CC | |
5161 | if test -n "$CC"; then | |
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5163 | $as_echo "$CC" >&6; } | |
5164 | else | |
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5166 | $as_echo "no" >&6; } | |
5167 | fi | |
5168 | ||
5169 | ||
5170 | fi | |
5171 | if test -z "$CC"; then | |
5172 | if test -n "$ac_tool_prefix"; then | |
5173 | for ac_prog in cl.exe | |
5174 | do | |
5175 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5176 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5178 | $as_echo_n "checking for $ac_word... " >&6; } | |
5179 | if test "${ac_cv_prog_CC+set}" = set; then : | |
5180 | $as_echo_n "(cached) " >&6 | |
5181 | else | |
5182 | if test -n "$CC"; then | |
5183 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5184 | else | |
5185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5186 | for as_dir in $PATH | |
5187 | do | |
5188 | IFS=$as_save_IFS | |
5189 | test -z "$as_dir" && as_dir=. | |
5190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5192 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
5193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5194 | break 2 | |
5195 | fi | |
5196 | done | |
5197 | done | |
5198 | IFS=$as_save_IFS | |
5199 | ||
5200 | fi | |
5201 | fi | |
5202 | CC=$ac_cv_prog_CC | |
5203 | if test -n "$CC"; then | |
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5205 | $as_echo "$CC" >&6; } | |
5206 | else | |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5208 | $as_echo "no" >&6; } | |
5209 | fi | |
5210 | ||
5211 | ||
5212 | test -n "$CC" && break | |
5213 | done | |
5214 | fi | |
5215 | if test -z "$CC"; then | |
5216 | ac_ct_CC=$CC | |
5217 | for ac_prog in cl.exe | |
5218 | do | |
5219 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5220 | set dummy $ac_prog; ac_word=$2 | |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5222 | $as_echo_n "checking for $ac_word... " >&6; } | |
5223 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
5224 | $as_echo_n "(cached) " >&6 | |
5225 | else | |
5226 | if test -n "$ac_ct_CC"; then | |
5227 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5228 | else | |
5229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5230 | for as_dir in $PATH | |
5231 | do | |
5232 | IFS=$as_save_IFS | |
5233 | test -z "$as_dir" && as_dir=. | |
5234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5236 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
5237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5238 | break 2 | |
5239 | fi | |
5240 | done | |
5241 | done | |
5242 | IFS=$as_save_IFS | |
5243 | ||
5244 | fi | |
5245 | fi | |
5246 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5247 | if test -n "$ac_ct_CC"; then | |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5249 | $as_echo "$ac_ct_CC" >&6; } | |
5250 | else | |
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5252 | $as_echo "no" >&6; } | |
5253 | fi | |
5254 | ||
5255 | ||
5256 | test -n "$ac_ct_CC" && break | |
5257 | done | |
5258 | ||
5259 | if test "x$ac_ct_CC" = x; then | |
5260 | CC="" | |
5261 | else | |
5262 | case $cross_compiling:$ac_tool_warned in | |
5263 | yes:) | |
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5265 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5266 | ac_tool_warned=yes ;; | |
5267 | esac | |
5268 | CC=$ac_ct_CC | |
5269 | fi | |
5270 | fi | |
5271 | ||
5272 | fi | |
5273 | ||
5274 | ||
5275 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5276 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5277 | as_fn_error "no acceptable C compiler found in \$PATH | |
5278 | See \`config.log' for more details." "$LINENO" 5; } | |
5279 | ||
5280 | # Provide some information about the compiler. | |
5281 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5282 | set X $ac_compile | |
5283 | ac_compiler=$2 | |
5284 | for ac_option in --version -v -V -qversion; do | |
5285 | { { ac_try="$ac_compiler $ac_option >&5" | |
5286 | case "(($ac_try" in | |
5287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5288 | *) ac_try_echo=$ac_try;; | |
5289 | esac | |
5290 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5291 | $as_echo "$ac_try_echo"; } >&5 | |
5292 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5293 | ac_status=$? | |
5294 | if test -s conftest.err; then | |
5295 | sed '10a\ | |
5296 | ... rest of stderr output deleted ... | |
5297 | 10q' conftest.err >conftest.er1 | |
5298 | cat conftest.er1 >&5 | |
5299 | rm -f conftest.er1 conftest.err | |
5300 | fi | |
5301 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5302 | test $ac_status = 0; } | |
5303 | done | |
5304 | ||
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5306 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
5307 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
5308 | $as_echo_n "(cached) " >&6 | |
5309 | else | |
5310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5311 | /* end confdefs.h. */ | |
5312 | ||
5313 | int | |
5314 | main () | |
5315 | { | |
5316 | #ifndef __GNUC__ | |
5317 | choke me | |
5318 | #endif | |
5319 | ||
5320 | ; | |
5321 | return 0; | |
5322 | } | |
5323 | _ACEOF | |
5324 | if ac_fn_c_try_compile "$LINENO"; then : | |
5325 | ac_compiler_gnu=yes | |
5326 | else | |
5327 | ac_compiler_gnu=no | |
5328 | fi | |
5329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5330 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5331 | ||
5332 | fi | |
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5334 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5335 | if test $ac_compiler_gnu = yes; then | |
5336 | GCC=yes | |
5337 | else | |
5338 | GCC= | |
5339 | fi | |
5340 | ac_test_CFLAGS=${CFLAGS+set} | |
5341 | ac_save_CFLAGS=$CFLAGS | |
5342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5343 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
5344 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
5345 | $as_echo_n "(cached) " >&6 | |
5346 | else | |
5347 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5348 | ac_c_werror_flag=yes | |
5349 | ac_cv_prog_cc_g=no | |
5350 | CFLAGS="-g" | |
5351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5352 | /* end confdefs.h. */ | |
5353 | ||
5354 | int | |
5355 | main () | |
5356 | { | |
5357 | ||
5358 | ; | |
5359 | return 0; | |
5360 | } | |
5361 | _ACEOF | |
5362 | if ac_fn_c_try_compile "$LINENO"; then : | |
5363 | ac_cv_prog_cc_g=yes | |
5364 | else | |
5365 | CFLAGS="" | |
5366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5367 | /* end confdefs.h. */ | |
5368 | ||
5369 | int | |
5370 | main () | |
5371 | { | |
5372 | ||
5373 | ; | |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
5377 | if ac_fn_c_try_compile "$LINENO"; then : | |
5378 | ||
5379 | else | |
5380 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5381 | CFLAGS="-g" | |
5382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5383 | /* end confdefs.h. */ | |
5384 | ||
5385 | int | |
5386 | main () | |
5387 | { | |
5388 | ||
5389 | ; | |
5390 | return 0; | |
5391 | } | |
5392 | _ACEOF | |
5393 | if ac_fn_c_try_compile "$LINENO"; then : | |
5394 | ac_cv_prog_cc_g=yes | |
5395 | fi | |
5396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5397 | fi | |
5398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5399 | fi | |
5400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5401 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5402 | fi | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5404 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5405 | if test "$ac_test_CFLAGS" = set; then | |
5406 | CFLAGS=$ac_save_CFLAGS | |
5407 | elif test $ac_cv_prog_cc_g = yes; then | |
5408 | if test "$GCC" = yes; then | |
5409 | CFLAGS="-g -O2" | |
5410 | else | |
5411 | CFLAGS="-g" | |
5412 | fi | |
5413 | else | |
5414 | if test "$GCC" = yes; then | |
5415 | CFLAGS="-O2" | |
5416 | else | |
5417 | CFLAGS= | |
5418 | fi | |
5419 | fi | |
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5421 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5422 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
5423 | $as_echo_n "(cached) " >&6 | |
5424 | else | |
5425 | ac_cv_prog_cc_c89=no | |
5426 | ac_save_CC=$CC | |
5427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5428 | /* end confdefs.h. */ | |
5429 | #include <stdarg.h> | |
5430 | #include <stdio.h> | |
5431 | #include <sys/types.h> | |
5432 | #include <sys/stat.h> | |
5433 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5434 | struct buf { int x; }; | |
5435 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5436 | static char *e (p, i) | |
5437 | char **p; | |
5438 | int i; | |
5439 | { | |
5440 | return p[i]; | |
5441 | } | |
5442 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5443 | { | |
5444 | char *s; | |
5445 | va_list v; | |
5446 | va_start (v,p); | |
5447 | s = g (p, va_arg (v,int)); | |
5448 | va_end (v); | |
5449 | return s; | |
5450 | } | |
5451 | ||
5452 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5453 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5454 | These don't provoke an error unfortunately, instead are silently treated | |
5455 | as 'x'. The following induces an error, until -std is added to get | |
5456 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5457 | array size at least. It's necessary to write '\x00'==0 to get something | |
5458 | that's true only with -std. */ | |
5459 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5460 | ||
5461 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5462 | inside strings and character constants. */ | |
5463 | #define FOO(x) 'x' | |
5464 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5465 | ||
5466 | int test (int i, double x); | |
5467 | struct s1 {int (*f) (int a);}; | |
5468 | struct s2 {int (*f) (double a);}; | |
5469 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5470 | int argc; | |
5471 | char **argv; | |
5472 | int | |
5473 | main () | |
5474 | { | |
5475 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5476 | ; | |
5477 | return 0; | |
5478 | } | |
5479 | _ACEOF | |
5480 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5481 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5482 | do | |
5483 | CC="$ac_save_CC $ac_arg" | |
5484 | if ac_fn_c_try_compile "$LINENO"; then : | |
5485 | ac_cv_prog_cc_c89=$ac_arg | |
5486 | fi | |
5487 | rm -f core conftest.err conftest.$ac_objext | |
5488 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5489 | done | |
5490 | rm -f conftest.$ac_ext | |
5491 | CC=$ac_save_CC | |
5492 | ||
5493 | fi | |
5494 | # AC_CACHE_VAL | |
5495 | case "x$ac_cv_prog_cc_c89" in | |
5496 | x) | |
5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5498 | $as_echo "none needed" >&6; } ;; | |
5499 | xno) | |
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5501 | $as_echo "unsupported" >&6; } ;; | |
5502 | *) | |
5503 | CC="$CC $ac_cv_prog_cc_c89" | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5505 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5506 | esac | |
5507 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5508 | ||
5509 | fi | |
5510 | ||
5511 | ac_ext=c | |
5512 | ac_cpp='$CPP $CPPFLAGS' | |
5513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5516 | ||
5517 | depcc="$CC" am_compiler_list= | |
5518 | ||
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5520 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5521 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
5522 | $as_echo_n "(cached) " >&6 | |
5523 | else | |
5524 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5525 | # We make a subdir and do the tests there. Otherwise we can end up | |
5526 | # making bogus files that we don't know about and never remove. For | |
5527 | # instance it was reported that on HP-UX the gcc test will end up | |
5528 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5529 | # in D'. | |
544db64f | 5530 | rm -rf conftest.dir |
d5d92632 | 5531 | mkdir conftest.dir |
5532 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5533 | # using a relative directory. | |
5534 | cp "$am_depcomp" conftest.dir | |
5535 | cd conftest.dir | |
5536 | # We will build objects and dependencies in a subdirectory because | |
5537 | # it helps to detect inapplicable dependency modes. For instance | |
5538 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5539 | # side effect of compilation, but ICC will put the dependencies in | |
5540 | # the current directory while Tru64 will put them in the object | |
5541 | # directory. | |
5542 | mkdir sub | |
5543 | ||
5544 | am_cv_CC_dependencies_compiler_type=none | |
5545 | if test "$am_compiler_list" = ""; then | |
5546 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5547 | fi | |
5548 | am__universal=false | |
5549 | case " $depcc " in #( | |
5550 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5551 | esac | |
5552 | ||
5553 | for depmode in $am_compiler_list; do | |
5554 | # Setup a source with many dependencies, because some compilers | |
5555 | # like to wrap large dependency lists on column 80 (with \), and | |
5556 | # we should not choose a depcomp mode which is confused by this. | |
5557 | # | |
5558 | # We need to recreate these files for each test, as the compiler may | |
5559 | # overwrite some of them when testing with obscure command lines. | |
5560 | # This happens at least with the AIX C compiler. | |
5561 | : > sub/conftest.c | |
5562 | for i in 1 2 3 4 5 6; do | |
5563 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5564 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5565 | # Solaris 8's {/usr,}/bin/sh. | |
5566 | touch sub/conftst$i.h | |
5567 | done | |
5568 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5569 | ||
5570 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5571 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5572 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5573 | # versions had trouble with output in subdirs | |
5574 | am__obj=sub/conftest.${OBJEXT-o} | |
5575 | am__minus_obj="-o $am__obj" | |
5576 | case $depmode in | |
5577 | gcc) | |
5578 | # This depmode causes a compiler race in universal mode. | |
5579 | test "$am__universal" = false || continue | |
5580 | ;; | |
5581 | nosideeffect) | |
5582 | # after this tag, mechanisms are not by side-effect, so they'll | |
5583 | # only be used when explicitly requested | |
5584 | if test "x$enable_dependency_tracking" = xyes; then | |
5585 | continue | |
5586 | else | |
5587 | break | |
5588 | fi | |
5589 | ;; | |
544db64f | 5590 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
d5d92632 | 5591 | # This compiler won't grok `-c -o', but also, the minuso test has |
5592 | # not run yet. These depmodes are late enough in the game, and | |
5593 | # so weak that their functioning should not be impacted. | |
5594 | am__obj=conftest.${OBJEXT-o} | |
5595 | am__minus_obj= | |
5596 | ;; | |
5597 | none) break ;; | |
5598 | esac | |
5599 | if depmode=$depmode \ | |
5600 | source=sub/conftest.c object=$am__obj \ | |
5601 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5602 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5603 | >/dev/null 2>conftest.err && | |
5604 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5605 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5606 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5607 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5608 | # icc doesn't choke on unknown options, it will just issue warnings | |
5609 | # or remarks (even with -Werror). So we grep stderr for any message | |
5610 | # that says an option was ignored or not supported. | |
5611 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5612 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5613 | # The diagnosis changed in icc 8.0: | |
5614 | # icc: Command line remark: option '-MP' not supported | |
5615 | if (grep 'ignoring option' conftest.err || | |
5616 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5617 | am_cv_CC_dependencies_compiler_type=$depmode | |
5618 | break | |
5619 | fi | |
5620 | fi | |
5621 | done | |
5622 | ||
5623 | cd .. | |
5624 | rm -rf conftest.dir | |
5625 | else | |
5626 | am_cv_CC_dependencies_compiler_type=none | |
5627 | fi | |
5628 | ||
5629 | fi | |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5631 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5632 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5633 | ||
5634 | if | |
5635 | test "x$enable_dependency_tracking" != xno \ | |
5636 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5637 | am__fastdepCC_TRUE= | |
5638 | am__fastdepCC_FALSE='#' | |
5639 | else | |
5640 | am__fastdepCC_TRUE='#' | |
5641 | am__fastdepCC_FALSE= | |
5642 | fi | |
5643 | ||
5644 | ||
5645 | ||
5646 | ||
7eda0fb7 | 5647 | |
5648 | ||
5649 | if test "x$CC" != xcc; then | |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
5651 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
5652 | else | |
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
5654 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
5655 | fi | |
5656 | set dummy $CC; ac_cc=`$as_echo "$2" | | |
5657 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
5658 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : | |
5659 | $as_echo_n "(cached) " >&6 | |
5660 | else | |
5661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5662 | /* end confdefs.h. */ | |
5663 | ||
5664 | int | |
5665 | main () | |
5666 | { | |
5667 | ||
5668 | ; | |
5669 | return 0; | |
5670 | } | |
5671 | _ACEOF | |
5672 | # Make sure it works both with $CC and with simple cc. | |
5673 | # We do the test twice because some compilers refuse to overwrite an | |
5674 | # existing .o file with -o, though they will create one. | |
5675 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
5676 | rm -f conftest2.* | |
5677 | if { { case "(($ac_try" in | |
5678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5679 | *) ac_try_echo=$ac_try;; | |
5680 | esac | |
5681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5682 | $as_echo "$ac_try_echo"; } >&5 | |
5683 | (eval "$ac_try") 2>&5 | |
5684 | ac_status=$? | |
5685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5686 | test $ac_status = 0; } && | |
5687 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
5688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5689 | *) ac_try_echo=$ac_try;; | |
5690 | esac | |
5691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5692 | $as_echo "$ac_try_echo"; } >&5 | |
5693 | (eval "$ac_try") 2>&5 | |
5694 | ac_status=$? | |
5695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5696 | test $ac_status = 0; }; | |
5697 | then | |
5698 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
5699 | if test "x$CC" != xcc; then | |
5700 | # Test first that cc exists at all. | |
5701 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
5702 | { { case "(($ac_try" in | |
5703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5704 | *) ac_try_echo=$ac_try;; | |
5705 | esac | |
5706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5707 | $as_echo "$ac_try_echo"; } >&5 | |
5708 | (eval "$ac_try") 2>&5 | |
5709 | ac_status=$? | |
5710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5711 | test $ac_status = 0; }; }; then | |
5712 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
5713 | rm -f conftest2.* | |
5714 | if { { case "(($ac_try" in | |
5715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5716 | *) ac_try_echo=$ac_try;; | |
5717 | esac | |
5718 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5719 | $as_echo "$ac_try_echo"; } >&5 | |
5720 | (eval "$ac_try") 2>&5 | |
5721 | ac_status=$? | |
5722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5723 | test $ac_status = 0; } && | |
5724 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
5725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5726 | *) ac_try_echo=$ac_try;; | |
5727 | esac | |
5728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5729 | $as_echo "$ac_try_echo"; } >&5 | |
5730 | (eval "$ac_try") 2>&5 | |
5731 | ac_status=$? | |
5732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5733 | test $ac_status = 0; }; | |
5734 | then | |
5735 | # cc works too. | |
5736 | : | |
5737 | else | |
5738 | # cc exists but doesn't like -o. | |
5739 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5740 | fi | |
5741 | fi | |
5742 | fi | |
5743 | else | |
5744 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5745 | fi | |
5746 | rm -f core conftest* | |
5747 | ||
5748 | fi | |
5749 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5751 | $as_echo "yes" >&6; } | |
5752 | else | |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5754 | $as_echo "no" >&6; } | |
5755 | ||
5756 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
5757 | ||
5758 | fi | |
5759 | ||
5760 | # FIXME: we rely on the cache variable name because | |
5761 | # there is no other way. | |
5762 | set dummy $CC | |
5763 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
5764 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
5765 | if test "$am_t" != yes; then | |
5766 | # Losing compiler, so override with the script. | |
5767 | # FIXME: It is wrong to rewrite CC. | |
5768 | # But if we don't then we get into trouble of one sort or another. | |
5769 | # A longer-term fix would be to have automake use am__CC in this case, | |
5770 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5771 | CC="$am_aux_dir/compile $CC" | |
5772 | fi | |
5773 | ||
5774 | ||
5775 | ||
d5d92632 | 5776 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
5777 | if test "x$GCC" = "xyes"; then | |
5778 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" | |
a159faeb | 5779 | ## We like to use C11 and C99 routines when available. This makes |
5780 | ## sure that | |
d5d92632 | 5781 | ## __STDC_VERSION__ is set such that libc includes make them available. |
2cb567cf | 5782 | AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" |
d5d92632 | 5783 | ## Compile the following tests with the same system header contents |
5784 | ## that we'll encounter when compiling our own source files. | |
a159faeb | 5785 | CFLAGS="-std=gnu11 $CFLAGS" |
d5d92632 | 5786 | fi |
5787 | ||
5788 | ||
5789 | ||
5790 | ||
5791 | # Check for symbol versioning (copied from libssp). | |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
5793 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bbb514dc | 5794 | # Check whether --enable-symvers was given. |
5795 | if test "${enable_symvers+set}" = set; then : | |
5796 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
5797 | else | |
5798 | gfortran_use_symver=yes | |
5799 | fi | |
5800 | ||
06e4a265 | 5801 | if test "x$gfortran_use_symver" != xno; then |
bbb514dc | 5802 | save_LDFLAGS="$LDFLAGS" |
5803 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
5804 | cat > conftest.map <<EOF | |
d5d92632 | 5805 | FOO_1.0 { |
5806 | global: *foo*; bar; local: *; | |
5807 | }; | |
5808 | EOF | |
bbb514dc | 5809 | if test x$gcc_no_link = xyes; then |
d5d92632 | 5810 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5811 | fi | |
5812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5813 | /* end confdefs.h. */ | |
5814 | int foo; | |
5815 | int | |
5816 | main () | |
5817 | { | |
5818 | ||
5819 | ; | |
5820 | return 0; | |
5821 | } | |
5822 | _ACEOF | |
5823 | if ac_fn_c_try_link "$LINENO"; then : | |
5824 | gfortran_use_symver=gnu | |
5825 | else | |
5826 | gfortran_use_symver=no | |
5827 | fi | |
5828 | rm -f core conftest.err conftest.$ac_objext \ | |
5829 | conftest$ac_exeext conftest.$ac_ext | |
bbb514dc | 5830 | if test x$gfortran_use_symver = xno; then |
5831 | case "$target_os" in | |
5832 | solaris2*) | |
5833 | LDFLAGS="$save_LDFLAGS" | |
5834 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
5835 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
5836 | cat > conftest.map <<EOF | |
d5d92632 | 5837 | FOO_1.0 { |
5838 | global: foo; local: *; | |
5839 | }; | |
5840 | EOF | |
bbb514dc | 5841 | if test x$gcc_no_link = xyes; then |
d5d92632 | 5842 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5843 | fi | |
5844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5845 | /* end confdefs.h. */ | |
5846 | int foo; | |
5847 | int | |
5848 | main () | |
5849 | { | |
5850 | ||
5851 | ; | |
5852 | return 0; | |
5853 | } | |
5854 | _ACEOF | |
5855 | if ac_fn_c_try_link "$LINENO"; then : | |
5856 | gfortran_use_symver=sun | |
5857 | else | |
5858 | gfortran_use_symver=no | |
5859 | fi | |
5860 | rm -f core conftest.err conftest.$ac_objext \ | |
5861 | conftest$ac_exeext conftest.$ac_ext | |
bbb514dc | 5862 | ;; |
5863 | esac | |
5864 | fi | |
5865 | LDFLAGS="$save_LDFLAGS" | |
d5d92632 | 5866 | fi |
d5d92632 | 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
5868 | $as_echo "$gfortran_use_symver" >&6; } | |
5869 | if test "x$gfortran_use_symver" != xno; then | |
5870 | LIBGFOR_USE_SYMVER_TRUE= | |
5871 | LIBGFOR_USE_SYMVER_FALSE='#' | |
5872 | else | |
5873 | LIBGFOR_USE_SYMVER_TRUE='#' | |
5874 | LIBGFOR_USE_SYMVER_FALSE= | |
5875 | fi | |
5876 | ||
5877 | if test "x$gfortran_use_symver" = xgnu; then | |
5878 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
5879 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
5880 | else | |
5881 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
5882 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
5883 | fi | |
5884 | ||
5885 | if test "x$gfortran_use_symver" = xsun; then | |
5886 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
5887 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
5888 | else | |
5889 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
5890 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
5891 | fi | |
5892 | ||
5893 | ||
eb00e55c | 5894 | # For GPU offloading, not everything in libfortran can be supported. |
5895 | # Currently, the only target that has this problem is nvptx. The | |
5896 | # following is a (partial) list of features that are unsupportable on | |
5897 | # this particular target: | |
5898 | # * Constructors | |
5899 | # * alloca | |
5900 | # * C library support for I/O, with printf as the one notable exception | |
5901 | # * C library support for other features such as signal, environment | |
5902 | # variables, time functions | |
5903 | ||
5904 | if test "x${target_cpu}" = xnvptx; then | |
5905 | LIBGFOR_MINIMAL_TRUE= | |
5906 | LIBGFOR_MINIMAL_FALSE='#' | |
5907 | else | |
5908 | LIBGFOR_MINIMAL_TRUE='#' | |
5909 | LIBGFOR_MINIMAL_FALSE= | |
5910 | fi | |
5911 | ||
5912 | ||
d5d92632 | 5913 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", |
5914 | # similarly to how libstdc++ does it | |
5915 | ac_test_CFLAGS="${CFLAGS+set}" | |
5916 | ac_save_CFLAGS="$CFLAGS" | |
5917 | ||
5918 | # Check for -ffunction-sections -fdata-sections | |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
5920 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
5921 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
5922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5923 | /* end confdefs.h. */ | |
5924 | ||
5925 | int | |
5926 | main () | |
5927 | { | |
5928 | int foo; | |
5929 | ; | |
5930 | return 0; | |
5931 | } | |
5932 | _ACEOF | |
5933 | if ac_fn_c_try_compile "$LINENO"; then : | |
5934 | ac_fdsections=yes | |
5935 | else | |
5936 | ac_fdsections=no | |
5937 | fi | |
5938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5939 | if test "$ac_test_CFLAGS" = set; then | |
5940 | CFLAGS="$ac_save_CFLAGS" | |
5941 | else | |
5942 | # this is the suspicious part | |
5943 | CFLAGS="" | |
5944 | fi | |
5945 | if test x"$ac_fdsections" = x"yes"; then | |
5946 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
5947 | fi | |
5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
5949 | $as_echo "$ac_fdsections" >&6; } | |
5950 | ||
5951 | ||
18ce903b | 5952 | # Check linker hardware capability support. |
5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5954 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5955 | if test "${ac_cv_path_SED+set}" = set; then : | |
d5d92632 | 5956 | $as_echo_n "(cached) " >&6 |
5957 | else | |
18ce903b | 5958 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5959 | for ac_i in 1 2 3 4 5 6 7; do | |
5960 | ac_script="$ac_script$as_nl$ac_script" | |
5961 | done | |
5962 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5963 | { ac_script=; unset ac_script;} | |
5964 | if test -z "$SED"; then | |
5965 | ac_path_SED_found=false | |
5966 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d5d92632 | 5968 | for as_dir in $PATH |
5969 | do | |
5970 | IFS=$as_save_IFS | |
5971 | test -z "$as_dir" && as_dir=. | |
18ce903b | 5972 | for ac_prog in sed gsed; do |
d5d92632 | 5973 | for ac_exec_ext in '' $ac_executable_extensions; do |
18ce903b | 5974 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5975 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5976 | # Check for GNU ac_path_SED and select it if it is found. | |
5977 | # Check for GNU $ac_path_SED | |
5978 | case `"$ac_path_SED" --version 2>&1` in | |
5979 | *GNU*) | |
5980 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5981 | *) | |
5982 | ac_count=0 | |
5983 | $as_echo_n 0123456789 >"conftest.in" | |
5984 | while : | |
5985 | do | |
5986 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5987 | mv "conftest.tmp" "conftest.in" | |
5988 | cp "conftest.in" "conftest.nl" | |
5989 | $as_echo '' >> "conftest.nl" | |
5990 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5991 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5992 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5993 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5994 | # Best one so far, save it but keep looking for a better one | |
5995 | ac_cv_path_SED="$ac_path_SED" | |
5996 | ac_path_SED_max=$ac_count | |
5997 | fi | |
5998 | # 10*(2^10) chars as input seems more than enough | |
5999 | test $ac_count -gt 10 && break | |
d5d92632 | 6000 | done |
18ce903b | 6001 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6002 | esac | |
d5d92632 | 6003 | |
18ce903b | 6004 | $ac_path_SED_found && break 3 |
6005 | done | |
6006 | done | |
d5d92632 | 6007 | done |
6008 | IFS=$as_save_IFS | |
18ce903b | 6009 | if test -z "$ac_cv_path_SED"; then |
6010 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
6011 | fi | |
d5d92632 | 6012 | else |
18ce903b | 6013 | ac_cv_path_SED=$SED |
d5d92632 | 6014 | fi |
6015 | ||
d5d92632 | 6016 | fi |
18ce903b | 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6018 | $as_echo "$ac_cv_path_SED" >&6; } | |
6019 | SED="$ac_cv_path_SED" | |
6020 | rm -f conftest.sed | |
d5d92632 | 6021 | |
18ce903b | 6022 | test -z "$SED" && SED=sed |
6023 | Xsed="$SED -e 1s/^X//" | |
d5d92632 | 6024 | |
d5d92632 | 6025 | |
6026 | ||
18ce903b | 6027 | |
6028 | ||
6029 | ||
6030 | ||
6031 | ||
6032 | ||
6033 | ||
6034 | ||
6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6036 | $as_echo_n "checking for fgrep... " >&6; } | |
6037 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
d5d92632 | 6038 | $as_echo_n "(cached) " >&6 |
6039 | else | |
18ce903b | 6040 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6041 | then ac_cv_path_FGREP="$GREP -F" | |
6042 | else | |
6043 | if test -z "$FGREP"; then | |
6044 | ac_path_FGREP_found=false | |
6045 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6047 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
d5d92632 | 6048 | do |
6049 | IFS=$as_save_IFS | |
6050 | test -z "$as_dir" && as_dir=. | |
18ce903b | 6051 | for ac_prog in fgrep; do |
d5d92632 | 6052 | for ac_exec_ext in '' $ac_executable_extensions; do |
18ce903b | 6053 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
6054 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
6055 | # Check for GNU ac_path_FGREP and select it if it is found. | |
6056 | # Check for GNU $ac_path_FGREP | |
6057 | case `"$ac_path_FGREP" --version 2>&1` in | |
6058 | *GNU*) | |
6059 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6060 | *) | |
6061 | ac_count=0 | |
6062 | $as_echo_n 0123456789 >"conftest.in" | |
6063 | while : | |
6064 | do | |
6065 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6066 | mv "conftest.tmp" "conftest.in" | |
6067 | cp "conftest.in" "conftest.nl" | |
6068 | $as_echo 'FGREP' >> "conftest.nl" | |
6069 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6070 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6071 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6072 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6073 | # Best one so far, save it but keep looking for a better one | |
6074 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6075 | ac_path_FGREP_max=$ac_count | |
6076 | fi | |
6077 | # 10*(2^10) chars as input seems more than enough | |
6078 | test $ac_count -gt 10 && break | |
6079 | done | |
6080 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6081 | esac | |
6082 | ||
6083 | $ac_path_FGREP_found && break 3 | |
6084 | done | |
6085 | done | |
d5d92632 | 6086 | done |
6087 | IFS=$as_save_IFS | |
18ce903b | 6088 | if test -z "$ac_cv_path_FGREP"; then |
6089 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6090 | fi | |
6091 | else | |
6092 | ac_cv_path_FGREP=$FGREP | |
6093 | fi | |
d5d92632 | 6094 | |
18ce903b | 6095 | fi |
d5d92632 | 6096 | fi |
18ce903b | 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6098 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6099 | FGREP="$ac_cv_path_FGREP" | |
542f9784 | 6100 | |
6101 | ||
18ce903b | 6102 | test -z "$GREP" && GREP=grep |
542f9784 | 6103 | |
6104 | ||
6105 | ||
6106 | ||
4ee9c684 | 6107 | |
542f9784 | 6108 | |
6109 | ||
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | ||
e6408286 | 6115 | |
e6408286 | 6116 | |
e6408286 | 6117 | |
e6408286 | 6118 | |
e6408286 | 6119 | |
6120 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6121 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6122 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6123 | ||
6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6125 | $as_echo_n "checking how to print strings... " >&6; } | |
6126 | # Test print first, because it will be a builtin if present. | |
6127 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6128 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6129 | ECHO='print -r --' | |
6130 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6131 | ECHO='printf %s\n' | |
6132 | else | |
6133 | # Use this function as a fallback that always works. | |
6134 | func_fallback_echo () | |
6135 | { | |
6136 | eval 'cat <<_LTECHO_EOF | |
6137 | $1 | |
6138 | _LTECHO_EOF' | |
6139 | } | |
6140 | ECHO='func_fallback_echo' | |
6141 | fi | |
6142 | ||
6143 | # func_echo_all arg... | |
6144 | # Invoke $ECHO with all args, space-separated. | |
6145 | func_echo_all () | |
6146 | { | |
6147 | $ECHO "" | |
6148 | } | |
6149 | ||
6150 | case "$ECHO" in | |
6151 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6152 | $as_echo "printf" >&6; } ;; | |
6153 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6154 | $as_echo "print -r" >&6; } ;; | |
6155 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6156 | $as_echo "cat" >&6; } ;; | |
6157 | esac | |
6158 | ||
6159 | ||
6160 | ||
6161 | ||
6162 | ||
6163 | ||
6164 | ||
6165 | ||
6166 | ||
6167 | ||
6168 | ||
6169 | ||
d5d92632 | 6170 | |
6171 | ||
cd9a469c | 6172 | |
cd9a469c | 6173 | |
18ce903b | 6174 | # Check whether --with-gnu-ld was given. |
6175 | if test "${with_gnu_ld+set}" = set; then : | |
6176 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6177 | else | |
6178 | with_gnu_ld=no | |
542f9784 | 6179 | fi |
d5d92632 | 6180 | |
18ce903b | 6181 | ac_prog=ld |
6182 | if test "$GCC" = yes; then | |
6183 | # Check if gcc -print-prog-name=ld gives a path. | |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6185 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6186 | case $host in | |
6187 | *-*-mingw*) | |
6188 | # gcc leaves a trailing carriage return which upsets mingw | |
6189 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6190 | *) | |
6191 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6192 | esac | |
6193 | case $ac_prog in | |
6194 | # Accept absolute paths. | |
6195 | [\\/]* | ?:[\\/]*) | |
6196 | re_direlt='/[^/][^/]*/\.\./' | |
6197 | # Canonicalize the pathname of ld | |
6198 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6199 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6200 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6201 | done | |
6202 | test -z "$LD" && LD="$ac_prog" | |
6203 | ;; | |
6204 | "") | |
6205 | # If it fails, then pretend we aren't using GCC. | |
6206 | ac_prog=ld | |
6207 | ;; | |
6208 | *) | |
6209 | # If it is relative, then search for the first ld in PATH. | |
6210 | with_gnu_ld=unknown | |
6211 | ;; | |
6212 | esac | |
6213 | elif test "$with_gnu_ld" = yes; then | |
6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6215 | $as_echo_n "checking for GNU ld... " >&6; } | |
6216 | else | |
6217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6218 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6219 | fi | |
6220 | if test "${lt_cv_path_LD+set}" = set; then : | |
6221 | $as_echo_n "(cached) " >&6 | |
6222 | else | |
6223 | if test -z "$LD"; then | |
6224 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6225 | for ac_dir in $PATH; do | |
6226 | IFS="$lt_save_ifs" | |
6227 | test -z "$ac_dir" && ac_dir=. | |
6228 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6229 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6230 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6231 | # but apparently some variants of GNU ld only accept -v. | |
6232 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6233 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6234 | *GNU* | *'with BFD'*) | |
6235 | test "$with_gnu_ld" != no && break | |
6236 | ;; | |
6237 | *) | |
6238 | test "$with_gnu_ld" != yes && break | |
6239 | ;; | |
6240 | esac | |
6241 | fi | |
6242 | done | |
6243 | IFS="$lt_save_ifs" | |
6244 | else | |
6245 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6246 | fi | |
6247 | fi | |
6248 | ||
6249 | LD="$lt_cv_path_LD" | |
6250 | if test -n "$LD"; then | |
6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6252 | $as_echo "$LD" >&6; } | |
6253 | else | |
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6255 | $as_echo "no" >&6; } | |
6256 | fi | |
6257 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6259 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6260 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
6261 | $as_echo_n "(cached) " >&6 | |
6262 | else | |
6263 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6264 | case `$LD -v 2>&1 </dev/null` in | |
6265 | *GNU* | *'with BFD'*) | |
6266 | lt_cv_prog_gnu_ld=yes | |
6267 | ;; | |
6268 | *) | |
6269 | lt_cv_prog_gnu_ld=no | |
6270 | ;; | |
6271 | esac | |
6272 | fi | |
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6274 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6275 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
d5d92632 | 6276 | |
6277 | ||
6278 | ||
6279 | ||
6280 | ||
6281 | ||
6282 | ||
6283 | ||
542f9784 | 6284 | |
6285 | ||
18ce903b | 6286 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
6287 | ||
6288 | ||
6289 | ac_save_LDFLAGS="$LDFLAGS" | |
6290 | LDFLAGS="$LFLAGS -mclear-hwcap" | |
6291 | ||
6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 | |
6293 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
6294 | if test x$gcc_no_link = xyes; then | |
6295 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
6296 | fi | |
6297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6298 | /* end confdefs.h. */ | |
6299 | ||
6300 | int | |
6301 | main () | |
6302 | { | |
6303 | return 0; | |
6304 | ; | |
6305 | return 0; | |
6306 | } | |
6307 | _ACEOF | |
6308 | if ac_fn_c_try_link "$LINENO"; then : | |
6309 | ac_hwcap_ldflags=yes | |
6310 | else | |
6311 | ac_hwcap_ldflags=no | |
6312 | fi | |
6313 | rm -f core conftest.err conftest.$ac_objext \ | |
6314 | conftest$ac_exeext conftest.$ac_ext | |
6315 | if test "$ac_hwcap_ldflags" = "yes"; then | |
6316 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" | |
6317 | fi | |
6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
6319 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
6320 | ||
6321 | LDFLAGS="$ac_save_LDFLAGS" | |
6322 | ||
6323 | ||
6324 | ||
6325 | if test $ac_hwcap_ldflags != no; then | |
6326 | HAVE_HWCAP_TRUE= | |
6327 | HAVE_HWCAP_FALSE='#' | |
6328 | else | |
6329 | HAVE_HWCAP_TRUE='#' | |
6330 | HAVE_HWCAP_FALSE= | |
6331 | fi | |
6332 | ||
6333 | ||
6334 | ||
6335 | # Find other programs we need. | |
6336 | if test -n "$ac_tool_prefix"; then | |
6337 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
6338 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6340 | $as_echo_n "checking for $ac_word... " >&6; } | |
6341 | if test "${ac_cv_prog_AS+set}" = set; then : | |
cd9a469c | 6342 | $as_echo_n "(cached) " >&6 |
82eaf560 | 6343 | else |
18ce903b | 6344 | if test -n "$AS"; then |
6345 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6346 | else | |
6347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6348 | for as_dir in $PATH | |
cd9a469c | 6349 | do |
6350 | IFS=$as_save_IFS | |
6351 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6352 | for ac_exec_ext in '' $ac_executable_extensions; do |
18ce903b | 6353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6354 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
6355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6356 | break 2 | |
6357 | fi | |
6358 | done | |
cd9a469c | 6359 | done |
18ce903b | 6360 | IFS=$as_save_IFS |
6361 | ||
6362 | fi | |
6363 | fi | |
6364 | AS=$ac_cv_prog_AS | |
6365 | if test -n "$AS"; then | |
6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
6367 | $as_echo "$AS" >&6; } | |
6368 | else | |
6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6370 | $as_echo "no" >&6; } | |
6371 | fi | |
6372 | ||
6373 | ||
6374 | fi | |
6375 | if test -z "$ac_cv_prog_AS"; then | |
6376 | ac_ct_AS=$AS | |
6377 | # Extract the first word of "as", so it can be a program name with args. | |
6378 | set dummy as; ac_word=$2 | |
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6380 | $as_echo_n "checking for $ac_word... " >&6; } | |
6381 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | |
6382 | $as_echo_n "(cached) " >&6 | |
6383 | else | |
6384 | if test -n "$ac_ct_AS"; then | |
6385 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
6386 | else | |
6387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6388 | for as_dir in $PATH | |
6389 | do | |
6390 | IFS=$as_save_IFS | |
6391 | test -z "$as_dir" && as_dir=. | |
6392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6394 | ac_cv_prog_ac_ct_AS="as" | |
6395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6396 | break 2 | |
6397 | fi | |
6398 | done | |
6399 | done | |
6400 | IFS=$as_save_IFS | |
6401 | ||
6402 | fi | |
6403 | fi | |
6404 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
6405 | if test -n "$ac_ct_AS"; then | |
6406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
6407 | $as_echo "$ac_ct_AS" >&6; } | |
6408 | else | |
6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6410 | $as_echo "no" >&6; } | |
6411 | fi | |
6412 | ||
6413 | if test "x$ac_ct_AS" = x; then | |
6414 | AS="" | |
6415 | else | |
6416 | case $cross_compiling:$ac_tool_warned in | |
6417 | yes:) | |
6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6419 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6420 | ac_tool_warned=yes ;; | |
cd9a469c | 6421 | esac |
18ce903b | 6422 | AS=$ac_ct_AS |
6423 | fi | |
6424 | else | |
6425 | AS="$ac_cv_prog_AS" | |
6426 | fi | |
cd9a469c | 6427 | |
18ce903b | 6428 | if test -n "$ac_tool_prefix"; then |
6429 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6430 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6432 | $as_echo_n "checking for $ac_word... " >&6; } | |
6433 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6434 | $as_echo_n "(cached) " >&6 | |
6435 | else | |
6436 | if test -n "$AR"; then | |
6437 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6438 | else | |
6439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6440 | for as_dir in $PATH | |
6441 | do | |
6442 | IFS=$as_save_IFS | |
6443 | test -z "$as_dir" && as_dir=. | |
6444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6446 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6448 | break 2 | |
6449 | fi | |
6450 | done | |
cd9a469c | 6451 | done |
18ce903b | 6452 | IFS=$as_save_IFS |
6453 | ||
6454 | fi | |
6455 | fi | |
6456 | AR=$ac_cv_prog_AR | |
6457 | if test -n "$AR"; then | |
6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6459 | $as_echo "$AR" >&6; } | |
6460 | else | |
6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6462 | $as_echo "no" >&6; } | |
6463 | fi | |
6464 | ||
6465 | ||
6466 | fi | |
6467 | if test -z "$ac_cv_prog_AR"; then | |
6468 | ac_ct_AR=$AR | |
6469 | # Extract the first word of "ar", so it can be a program name with args. | |
6470 | set dummy ar; ac_word=$2 | |
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6472 | $as_echo_n "checking for $ac_word... " >&6; } | |
6473 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6474 | $as_echo_n "(cached) " >&6 | |
6475 | else | |
6476 | if test -n "$ac_ct_AR"; then | |
6477 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6478 | else | |
6479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6480 | for as_dir in $PATH | |
6481 | do | |
6482 | IFS=$as_save_IFS | |
6483 | test -z "$as_dir" && as_dir=. | |
6484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6486 | ac_cv_prog_ac_ct_AR="ar" | |
6487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6488 | break 2 | |
6489 | fi | |
6490 | done | |
6491 | done | |
6492 | IFS=$as_save_IFS | |
6493 | ||
6494 | fi | |
6495 | fi | |
6496 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6497 | if test -n "$ac_ct_AR"; then | |
6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6499 | $as_echo "$ac_ct_AR" >&6; } | |
6500 | else | |
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6502 | $as_echo "no" >&6; } | |
6503 | fi | |
6504 | ||
6505 | if test "x$ac_ct_AR" = x; then | |
6506 | AR="" | |
6507 | else | |
6508 | case $cross_compiling:$ac_tool_warned in | |
6509 | yes:) | |
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6512 | ac_tool_warned=yes ;; | |
6513 | esac | |
6514 | AR=$ac_ct_AR | |
6515 | fi | |
6516 | else | |
6517 | AR="$ac_cv_prog_AR" | |
6518 | fi | |
6519 | ||
6520 | if test -n "$ac_tool_prefix"; then | |
6521 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6522 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6524 | $as_echo_n "checking for $ac_word... " >&6; } | |
6525 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6526 | $as_echo_n "(cached) " >&6 | |
6527 | else | |
6528 | if test -n "$RANLIB"; then | |
6529 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6530 | else | |
6531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6532 | for as_dir in $PATH | |
6533 | do | |
6534 | IFS=$as_save_IFS | |
6535 | test -z "$as_dir" && as_dir=. | |
6536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6537 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6538 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6540 | break 2 | |
6541 | fi | |
6542 | done | |
6543 | done | |
6544 | IFS=$as_save_IFS | |
6545 | ||
6546 | fi | |
6547 | fi | |
6548 | RANLIB=$ac_cv_prog_RANLIB | |
6549 | if test -n "$RANLIB"; then | |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6551 | $as_echo "$RANLIB" >&6; } | |
6552 | else | |
6553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6554 | $as_echo "no" >&6; } | |
6555 | fi | |
6556 | ||
6557 | ||
6558 | fi | |
6559 | if test -z "$ac_cv_prog_RANLIB"; then | |
6560 | ac_ct_RANLIB=$RANLIB | |
6561 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6562 | set dummy ranlib; ac_word=$2 | |
6563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6564 | $as_echo_n "checking for $ac_word... " >&6; } | |
6565 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6566 | $as_echo_n "(cached) " >&6 | |
6567 | else | |
6568 | if test -n "$ac_ct_RANLIB"; then | |
6569 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6570 | else | |
6571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6572 | for as_dir in $PATH | |
6573 | do | |
6574 | IFS=$as_save_IFS | |
6575 | test -z "$as_dir" && as_dir=. | |
6576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6578 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6580 | break 2 | |
6581 | fi | |
6582 | done | |
cd9a469c | 6583 | done |
6584 | IFS=$as_save_IFS | |
18ce903b | 6585 | |
6586 | fi | |
6587 | fi | |
6588 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6589 | if test -n "$ac_ct_RANLIB"; then | |
6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6591 | $as_echo "$ac_ct_RANLIB" >&6; } | |
cd9a469c | 6592 | else |
18ce903b | 6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6594 | $as_echo "no" >&6; } | |
542f9784 | 6595 | fi |
cd9a469c | 6596 | |
18ce903b | 6597 | if test "x$ac_ct_RANLIB" = x; then |
6598 | RANLIB="ranlib-not-found-in-path-error" | |
6599 | else | |
6600 | case $cross_compiling:$ac_tool_warned in | |
6601 | yes:) | |
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6603 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6604 | ac_tool_warned=yes ;; | |
6605 | esac | |
6606 | RANLIB=$ac_ct_RANLIB | |
6607 | fi | |
6608 | else | |
6609 | RANLIB="$ac_cv_prog_RANLIB" | |
cd9a469c | 6610 | fi |
542f9784 | 6611 | |
18ce903b | 6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6613 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6614 | set x ${MAKE-make} | |
6615 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
6616 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
6617 | $as_echo_n "(cached) " >&6 | |
6618 | else | |
6619 | cat >conftest.make <<\_ACEOF | |
6620 | SHELL = /bin/sh | |
6621 | all: | |
6622 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6623 | _ACEOF | |
6624 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6625 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
6626 | *@@@%%%=?*=@@@%%%*) | |
6627 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6628 | *) | |
6629 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6630 | esac | |
6631 | rm -f conftest.make | |
6632 | fi | |
6633 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6635 | $as_echo "yes" >&6; } | |
6636 | SET_MAKE= | |
6637 | else | |
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6639 | $as_echo "no" >&6; } | |
6640 | SET_MAKE="MAKE=${MAKE-make}" | |
6641 | fi | |
542f9784 | 6642 | |
6643 | ||
6644 | ||
18ce903b | 6645 | # Configure libtool |
6646 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6647 | enable_dlopen=yes | |
542f9784 | 6648 | |
6649 | ||
6650 | ||
18ce903b | 6651 | case `pwd` in |
6652 | *\ * | *\ *) | |
6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6654 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6655 | esac | |
542f9784 | 6656 | |
6657 | ||
6658 | ||
18ce903b | 6659 | macro_version='2.2.7a' |
6660 | macro_revision='1.3134' | |
542f9784 | 6661 | |
6662 | ||
6663 | ||
6664 | ||
6665 | ||
6666 | ||
6667 | ||
6668 | ||
cd9a469c | 6669 | |
90973b19 | 6670 | |
90973b19 | 6671 | |
6672 | ||
90973b19 | 6673 | |
18ce903b | 6674 | ltmain="$ac_aux_dir/ltmain.sh" |
542f9784 | 6675 | |
18ce903b | 6676 | # Backslashify metacharacters that are still active within |
6677 | # double-quoted strings. | |
6678 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
542f9784 | 6679 | |
18ce903b | 6680 | # Same as above, but do not quote variable references. |
6681 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
542f9784 | 6682 | |
18ce903b | 6683 | # Sed substitution to delay expansion of an escaped shell variable in a |
6684 | # double_quote_subst'ed string. | |
6685 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
542f9784 | 6686 | |
18ce903b | 6687 | # Sed substitution to delay expansion of an escaped single quote. |
6688 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
542f9784 | 6689 | |
18ce903b | 6690 | # Sed substitution to avoid accidental globbing in evaled expressions |
6691 | no_glob_subst='s/\*/\\\*/g' | |
542f9784 | 6692 | |
cd9a469c | 6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6694 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6695 | if test "${lt_cv_path_NM+set}" = set; then : | |
6696 | $as_echo_n "(cached) " >&6 | |
90973b19 | 6697 | else |
6698 | if test -n "$NM"; then | |
6699 | # Let the user override the test. | |
6700 | lt_cv_path_NM="$NM" | |
6701 | else | |
542f9784 | 6702 | lt_nm_to_check="${ac_tool_prefix}nm" |
6703 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6704 | lt_nm_to_check="$lt_nm_to_check nm" | |
6705 | fi | |
6706 | for lt_tmp_nm in $lt_nm_to_check; do | |
6707 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6708 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6709 | IFS="$lt_save_ifs" | |
6710 | test -z "$ac_dir" && ac_dir=. | |
6711 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6712 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6713 | # Check to see if the nm accepts a BSD-compat flag. | |
6714 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6715 | # nm: unknown option "B" ignored | |
6716 | # Tru64's nm complains that /dev/null is an invalid object file | |
6717 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6718 | */dev/null* | *'Invalid file or object type'*) | |
6719 | lt_cv_path_NM="$tmp_nm -B" | |
6720 | break | |
6721 | ;; | |
6722 | *) | |
6723 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6724 | */dev/null*) | |
6725 | lt_cv_path_NM="$tmp_nm -p" | |
6726 | break | |
6727 | ;; | |
6728 | *) | |
6729 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6730 | continue # so that we can try to find one that supports BSD flags | |
6731 | ;; | |
6732 | esac | |
6733 | ;; | |
6734 | esac | |
6735 | fi | |
6736 | done | |
6737 | IFS="$lt_save_ifs" | |
6738 | done | |
6739 | : ${lt_cv_path_NM=no} | |
6740 | fi | |
6741 | fi | |
cd9a469c | 6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
6743 | $as_echo "$lt_cv_path_NM" >&6; } | |
542f9784 | 6744 | if test "$lt_cv_path_NM" != "no"; then |
6745 | NM="$lt_cv_path_NM" | |
6746 | else | |
6747 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
e6408286 | 6748 | if test -n "$DUMPBIN"; then : |
6749 | # Let the user override the test. | |
6750 | else | |
6751 | if test -n "$ac_tool_prefix"; then | |
6752 | for ac_prog in dumpbin "link -dump" | |
542f9784 | 6753 | do |
6754 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6755 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6757 | $as_echo_n "checking for $ac_word... " >&6; } | |
6758 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
6759 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6760 | else |
6761 | if test -n "$DUMPBIN"; then | |
6762 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6763 | else | |
6764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6765 | for as_dir in $PATH | |
6766 | do | |
6767 | IFS=$as_save_IFS | |
6768 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6769 | for ac_exec_ext in '' $ac_executable_extensions; do |
6770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 6771 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
cd9a469c | 6772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 6773 | break 2 |
6774 | fi | |
6775 | done | |
cd9a469c | 6776 | done |
6777 | IFS=$as_save_IFS | |
542f9784 | 6778 | |
6779 | fi | |
6780 | fi | |
6781 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6782 | if test -n "$DUMPBIN"; then | |
cd9a469c | 6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6784 | $as_echo "$DUMPBIN" >&6; } | |
542f9784 | 6785 | else |
cd9a469c | 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6787 | $as_echo "no" >&6; } | |
542f9784 | 6788 | fi |
6789 | ||
cd9a469c | 6790 | |
542f9784 | 6791 | test -n "$DUMPBIN" && break |
6792 | done | |
6793 | fi | |
6794 | if test -z "$DUMPBIN"; then | |
6795 | ac_ct_DUMPBIN=$DUMPBIN | |
e6408286 | 6796 | for ac_prog in dumpbin "link -dump" |
542f9784 | 6797 | do |
6798 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6799 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6801 | $as_echo_n "checking for $ac_word... " >&6; } | |
6802 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
6803 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6804 | else |
6805 | if test -n "$ac_ct_DUMPBIN"; then | |
6806 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6807 | else | |
6808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6809 | for as_dir in $PATH | |
6810 | do | |
6811 | IFS=$as_save_IFS | |
6812 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6813 | for ac_exec_ext in '' $ac_executable_extensions; do |
6814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 6815 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
cd9a469c | 6816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 6817 | break 2 |
6818 | fi | |
6819 | done | |
cd9a469c | 6820 | done |
6821 | IFS=$as_save_IFS | |
542f9784 | 6822 | |
6823 | fi | |
6824 | fi | |
6825 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6826 | if test -n "$ac_ct_DUMPBIN"; then | |
cd9a469c | 6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6828 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
542f9784 | 6829 | else |
cd9a469c | 6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6831 | $as_echo "no" >&6; } | |
542f9784 | 6832 | fi |
6833 | ||
cd9a469c | 6834 | |
542f9784 | 6835 | test -n "$ac_ct_DUMPBIN" && break |
6836 | done | |
542f9784 | 6837 | |
cd9a469c | 6838 | if test "x$ac_ct_DUMPBIN" = x; then |
6839 | DUMPBIN=":" | |
6840 | else | |
6841 | case $cross_compiling:$ac_tool_warned in | |
6842 | yes:) | |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6844 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6845 | ac_tool_warned=yes ;; | |
6846 | esac | |
6847 | DUMPBIN=$ac_ct_DUMPBIN | |
6848 | fi | |
90973b19 | 6849 | fi |
542f9784 | 6850 | |
e6408286 | 6851 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6852 | *COFF*) | |
6853 | DUMPBIN="$DUMPBIN -symbols" | |
6854 | ;; | |
6855 | *) | |
6856 | DUMPBIN=: | |
6857 | ;; | |
6858 | esac | |
6859 | fi | |
542f9784 | 6860 | |
6861 | if test "$DUMPBIN" != ":"; then | |
6862 | NM="$DUMPBIN" | |
6863 | fi | |
90973b19 | 6864 | fi |
542f9784 | 6865 | test -z "$NM" && NM=nm |
6866 | ||
6867 | ||
90973b19 | 6868 | |
542f9784 | 6869 | |
6870 | ||
6871 | ||
cd9a469c | 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6873 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6874 | if test "${lt_cv_nm_interface+set}" = set; then : | |
6875 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6876 | else |
6877 | lt_cv_nm_interface="BSD nm" | |
6878 | echo "int some_variable = 0;" > conftest.$ac_ext | |
e6408286 | 6879 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
542f9784 | 6880 | (eval "$ac_compile" 2>conftest.err) |
6881 | cat conftest.err >&5 | |
e6408286 | 6882 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
542f9784 | 6883 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6884 | cat conftest.err >&5 | |
e6408286 | 6885 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
542f9784 | 6886 | cat conftest.out >&5 |
6887 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6888 | lt_cv_nm_interface="MS dumpbin" | |
6889 | fi | |
6890 | rm -f conftest* | |
6891 | fi | |
cd9a469c | 6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6893 | $as_echo "$lt_cv_nm_interface" >&6; } | |
90973b19 | 6894 | |
cd9a469c | 6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6896 | $as_echo_n "checking whether ln -s works... " >&6; } | |
90973b19 | 6897 | LN_S=$as_ln_s |
6898 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6900 | $as_echo "yes" >&6; } | |
90973b19 | 6901 | else |
cd9a469c | 6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6903 | $as_echo "no, using $LN_S" >&6; } | |
90973b19 | 6904 | fi |
6905 | ||
542f9784 | 6906 | # find the maximum length of command line arguments |
cd9a469c | 6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6908 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6909 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
6910 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6911 | else |
6912 | i=0 | |
6913 | teststring="ABCD" | |
6914 | ||
6915 | case $build_os in | |
6916 | msdosdjgpp*) | |
6917 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6918 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6919 | # during glob expansion). Even if it were fixed, the result of this | |
6920 | # check would be larger than it should be. | |
6921 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6922 | ;; | |
6923 | ||
6924 | gnu*) | |
6925 | # Under GNU Hurd, this test is not required because there is | |
6926 | # no limit to the length of command line arguments. | |
6927 | # Libtool will interpret -1 as no limit whatsoever | |
6928 | lt_cv_sys_max_cmd_len=-1; | |
6929 | ;; | |
6930 | ||
00aafda4 | 6931 | cygwin* | mingw* | cegcc*) |
542f9784 | 6932 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6933 | # about 5 minutes as the teststring grows exponentially. | |
6934 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6935 | # you end up with a "frozen" computer, even though with patience | |
6936 | # the test eventually succeeds (with a max line length of 256k). | |
6937 | # Instead, let's just punt: use the minimum linelength reported by | |
6938 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6939 | lt_cv_sys_max_cmd_len=8192; | |
6940 | ;; | |
6941 | ||
e6408286 | 6942 | mint*) |
6943 | # On MiNT this can take a long time and run out of memory. | |
6944 | lt_cv_sys_max_cmd_len=8192; | |
6945 | ;; | |
6946 | ||
542f9784 | 6947 | amigaos*) |
6948 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6949 | # So we just punt and use a minimum line length of 8192. | |
6950 | lt_cv_sys_max_cmd_len=8192; | |
6951 | ;; | |
6952 | ||
6953 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6954 | # This has been around since 386BSD, at least. Likely further. | |
6955 | if test -x /sbin/sysctl; then | |
6956 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6957 | elif test -x /usr/sbin/sysctl; then | |
6958 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6959 | else | |
6960 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6961 | fi | |
6962 | # And add a safety zone | |
6963 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6964 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6965 | ;; | |
6966 | ||
6967 | interix*) | |
6968 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6969 | lt_cv_sys_max_cmd_len=196608 | |
6970 | ;; | |
6971 | ||
6972 | osf*) | |
6973 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6974 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6975 | # nice to cause kernel panics so lets avoid the loop below. | |
6976 | # First set a reasonable default. | |
6977 | lt_cv_sys_max_cmd_len=16384 | |
6978 | # | |
6979 | if test -x /sbin/sysconfig; then | |
6980 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6981 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6982 | esac | |
6983 | fi | |
6984 | ;; | |
6985 | sco3.2v5*) | |
6986 | lt_cv_sys_max_cmd_len=102400 | |
6987 | ;; | |
6988 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6989 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6990 | if test -n "$kargmax"; then | |
6991 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6992 | else | |
6993 | lt_cv_sys_max_cmd_len=32768 | |
6994 | fi | |
6995 | ;; | |
6996 | *) | |
00aafda4 | 6997 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6998 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
07c46636 | 6999 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7000 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7001 | else | |
7002 | # Make teststring a little bigger before we do anything with it. | |
7003 | # a 1K string should be a reasonable start. | |
7004 | for i in 1 2 3 4 5 6 7 8 ; do | |
7005 | teststring=$teststring$teststring | |
7006 | done | |
7007 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7008 | # If test is not a shell built-in, we'll probably end up computing a | |
7009 | # maximum length that is only half of the actual maximum length, but | |
7010 | # we can't tell. | |
e6408286 | 7011 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7012 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
07c46636 | 7013 | test $i != 17 # 1/2 MB should be enough |
7014 | do | |
7015 | i=`expr $i + 1` | |
7016 | teststring=$teststring$teststring | |
7017 | done | |
7018 | # Only check the string length outside the loop. | |
7019 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7020 | teststring= | |
7021 | # Add a significant safety factor because C++ compilers can tack on | |
7022 | # massive amounts of additional arguments before passing them to the | |
7023 | # linker. It appears as though 1/2 is a usable value. | |
7024 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7025 | fi | |
542f9784 | 7026 | ;; |
7027 | esac | |
7028 | ||
7029 | fi | |
7030 | ||
7031 | if test -n $lt_cv_sys_max_cmd_len ; then | |
cd9a469c | 7032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7033 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
542f9784 | 7034 | else |
cd9a469c | 7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7036 | $as_echo "none" >&6; } | |
542f9784 | 7037 | fi |
7038 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
7044 | ||
542f9784 | 7045 | : ${CP="cp -f"} |
7046 | : ${MV="mv -f"} | |
7047 | : ${RM="rm -f"} | |
7048 | ||
cd9a469c | 7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7050 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
542f9784 | 7051 | # Try some XSI features |
7052 | xsi_shell=no | |
7053 | ( _lt_dummy="a/b/c" | |
7054 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
00aafda4 | 7055 | = c,a/b,, \ |
7056 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7057 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
542f9784 | 7058 | && xsi_shell=yes |
cd9a469c | 7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7060 | $as_echo "$xsi_shell" >&6; } | |
542f9784 | 7061 | |
7062 | ||
cd9a469c | 7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7064 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
542f9784 | 7065 | lt_shell_append=no |
7066 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7067 | >/dev/null 2>&1 \ | |
7068 | && lt_shell_append=yes | |
cd9a469c | 7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7070 | $as_echo "$lt_shell_append" >&6; } | |
542f9784 | 7071 | |
7072 | ||
7073 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7074 | lt_unset=unset | |
7075 | else | |
7076 | lt_unset=false | |
7077 | fi | |
7078 | ||
7079 | ||
7080 | ||
7081 | ||
7082 | ||
7083 | # test EBCDIC or ASCII | |
7084 | case `echo X|tr X '\101'` in | |
7085 | A) # ASCII based system | |
7086 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7087 | lt_SP2NL='tr \040 \012' | |
7088 | lt_NL2SP='tr \015\012 \040\040' | |
7089 | ;; | |
7090 | *) # EBCDIC based system | |
7091 | lt_SP2NL='tr \100 \n' | |
7092 | lt_NL2SP='tr \r\n \100\100' | |
7093 | ;; | |
7094 | esac | |
7095 | ||
7096 | ||
7097 | ||
7098 | ||
7099 | ||
7100 | ||
7101 | ||
7102 | ||
7103 | ||
cd9a469c | 7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7105 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
7106 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
7107 | $as_echo_n "(cached) " >&6 | |
542f9784 | 7108 | else |
7109 | lt_cv_ld_reload_flag='-r' | |
7110 | fi | |
cd9a469c | 7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7112 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
542f9784 | 7113 | reload_flag=$lt_cv_ld_reload_flag |
7114 | case $reload_flag in | |
7115 | "" | " "*) ;; | |
7116 | *) reload_flag=" $reload_flag" ;; | |
7117 | esac | |
7118 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7119 | case $host_os in | |
7120 | darwin*) | |
7121 | if test "$GCC" = yes; then | |
7122 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7123 | else | |
7124 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7125 | fi | |
7126 | ;; | |
7127 | esac | |
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
00aafda4 | 7137 | if test -n "$ac_tool_prefix"; then |
7138 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7139 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
cd9a469c | 7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7141 | $as_echo_n "checking for $ac_word... " >&6; } | |
7142 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
7143 | $as_echo_n "(cached) " >&6 | |
00aafda4 | 7144 | else |
7145 | if test -n "$OBJDUMP"; then | |
7146 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7147 | else | |
7148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7149 | for as_dir in $PATH | |
7150 | do | |
7151 | IFS=$as_save_IFS | |
7152 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7153 | for ac_exec_ext in '' $ac_executable_extensions; do |
7154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
00aafda4 | 7155 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
cd9a469c | 7156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 7157 | break 2 |
7158 | fi | |
7159 | done | |
cd9a469c | 7160 | done |
7161 | IFS=$as_save_IFS | |
00aafda4 | 7162 | |
7163 | fi | |
7164 | fi | |
7165 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7166 | if test -n "$OBJDUMP"; then | |
cd9a469c | 7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7168 | $as_echo "$OBJDUMP" >&6; } | |
00aafda4 | 7169 | else |
cd9a469c | 7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7171 | $as_echo "no" >&6; } | |
00aafda4 | 7172 | fi |
7173 | ||
cd9a469c | 7174 | |
00aafda4 | 7175 | fi |
7176 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7177 | ac_ct_OBJDUMP=$OBJDUMP | |
7178 | # Extract the first word of "objdump", so it can be a program name with args. | |
7179 | set dummy objdump; ac_word=$2 | |
cd9a469c | 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7181 | $as_echo_n "checking for $ac_word... " >&6; } | |
7182 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
7183 | $as_echo_n "(cached) " >&6 | |
00aafda4 | 7184 | else |
7185 | if test -n "$ac_ct_OBJDUMP"; then | |
7186 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7187 | else | |
7188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7189 | for as_dir in $PATH | |
7190 | do | |
7191 | IFS=$as_save_IFS | |
7192 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7193 | for ac_exec_ext in '' $ac_executable_extensions; do |
7194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
00aafda4 | 7195 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
cd9a469c | 7196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 7197 | break 2 |
7198 | fi | |
7199 | done | |
cd9a469c | 7200 | done |
7201 | IFS=$as_save_IFS | |
00aafda4 | 7202 | |
00aafda4 | 7203 | fi |
7204 | fi | |
7205 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7206 | if test -n "$ac_ct_OBJDUMP"; then | |
cd9a469c | 7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7208 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
00aafda4 | 7209 | else |
cd9a469c | 7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7211 | $as_echo "no" >&6; } | |
00aafda4 | 7212 | fi |
7213 | ||
cd9a469c | 7214 | if test "x$ac_ct_OBJDUMP" = x; then |
7215 | OBJDUMP="false" | |
7216 | else | |
7217 | case $cross_compiling:$ac_tool_warned in | |
7218 | yes:) | |
7219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7220 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7221 | ac_tool_warned=yes ;; | |
7222 | esac | |
7223 | OBJDUMP=$ac_ct_OBJDUMP | |
7224 | fi | |
00aafda4 | 7225 | else |
7226 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7227 | fi | |
7228 | ||
7229 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7230 | ||
7231 | ||
7232 | ||
7233 | ||
7234 | ||
7235 | ||
7236 | ||
7237 | ||
542f9784 | 7238 | |
cd9a469c | 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7240 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
7241 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
7242 | $as_echo_n "(cached) " >&6 | |
90973b19 | 7243 | else |
7244 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
7245 | lt_cv_file_magic_test_file= | |
7246 | lt_cv_deplibs_check_method='unknown' | |
7247 | # Need to set the preceding variable on all platforms that support | |
7248 | # interlibrary dependencies. | |
7249 | # 'none' -- dependencies not supported. | |
7250 | # `unknown' -- same as none, but documents that we really don't know. | |
7251 | # 'pass_all' -- all dependencies passed with no checks. | |
7252 | # 'test_compile' -- check by making test program. | |
542f9784 | 7253 | # 'file_magic [[regex]]' -- check by looking for files in library path |
7254 | # which responds to the $file_magic_cmd with a given extended regex. | |
90973b19 | 7255 | # If you have `file' or equivalent on your system and you're not sure |
7256 | # whether `pass_all' will *always* work, you probably want this one. | |
7257 | ||
7258 | case $host_os in | |
21e07d2f | 7259 | aix[4-9]*) |
90973b19 | 7260 | lt_cv_deplibs_check_method=pass_all |
7261 | ;; | |
7262 | ||
7263 | beos*) | |
7264 | lt_cv_deplibs_check_method=pass_all | |
7265 | ;; | |
7266 | ||
542f9784 | 7267 | bsdi[45]*) |
90973b19 | 7268 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
7269 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7270 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7271 | ;; | |
7272 | ||
542f9784 | 7273 | cygwin*) |
7274 | # func_win32_libid is a shell function defined in ltmain.sh | |
7275 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7276 | lt_cv_file_magic_cmd='func_win32_libid' | |
7277 | ;; | |
7278 | ||
7279 | mingw* | pw32*) | |
7280 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7281 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7282 | # unless we find 'file', for example because we are cross-compiling. | |
e6408286 | 7283 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7284 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
542f9784 | 7285 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7286 | lt_cv_file_magic_cmd='func_win32_libid' | |
7287 | else | |
7288 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7289 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7290 | fi | |
90973b19 | 7291 | ;; |
7292 | ||
e6408286 | 7293 | cegcc*) |
00aafda4 | 7294 | # use the weaker test based on 'objdump'. See mingw*. |
7295 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7296 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7297 | ;; | |
7298 | ||
90973b19 | 7299 | darwin* | rhapsody*) |
90973b19 | 7300 | lt_cv_deplibs_check_method=pass_all |
7301 | ;; | |
7302 | ||
542f9784 | 7303 | freebsd* | dragonfly*) |
7304 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
90973b19 | 7305 | case $host_cpu in |
7306 | i*86 ) | |
7307 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7308 | # Let's accept both of them until this is cleared up. | |
542f9784 | 7309 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
90973b19 | 7310 | lt_cv_file_magic_cmd=/usr/bin/file |
7311 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7312 | ;; | |
7313 | esac | |
7314 | else | |
7315 | lt_cv_deplibs_check_method=pass_all | |
7316 | fi | |
7317 | ;; | |
7318 | ||
7319 | gnu*) | |
7320 | lt_cv_deplibs_check_method=pass_all | |
7321 | ;; | |
7322 | ||
e6408286 | 7323 | haiku*) |
7324 | lt_cv_deplibs_check_method=pass_all | |
7325 | ;; | |
7326 | ||
542f9784 | 7327 | hpux10.20* | hpux11*) |
7328 | lt_cv_file_magic_cmd=/usr/bin/file | |
90973b19 | 7329 | case $host_cpu in |
90973b19 | 7330 | ia64*) |
7331 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
90973b19 | 7332 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7333 | ;; | |
542f9784 | 7334 | hppa*64*) |
e6408286 | 7335 | 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]' |
542f9784 | 7336 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
90973b19 | 7337 | ;; |
7338 | *) | |
e6408286 | 7339 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
542f9784 | 7340 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
90973b19 | 7341 | ;; |
7342 | esac | |
542f9784 | 7343 | ;; |
7344 | ||
7345 | interix[3-9]*) | |
7346 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7347 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7348 | ;; | |
7349 | ||
7350 | irix5* | irix6* | nonstopux*) | |
7351 | case $LD in | |
7352 | *-32|*"-32 ") libmagic=32-bit;; | |
7353 | *-n32|*"-n32 ") libmagic=N32;; | |
7354 | *-64|*"-64 ") libmagic=64-bit;; | |
7355 | *) libmagic=never-match;; | |
7356 | esac | |
90973b19 | 7357 | lt_cv_deplibs_check_method=pass_all |
7358 | ;; | |
7359 | ||
7360 | # This must be Linux ELF. | |
9af964d4 | 7361 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7f93fe7a | 7362 | lt_cv_deplibs_check_method=pass_all |
90973b19 | 7363 | ;; |
7364 | ||
542f9784 | 7365 | netbsd*) |
7366 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7367 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
90973b19 | 7368 | else |
542f9784 | 7369 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
90973b19 | 7370 | fi |
7371 | ;; | |
7372 | ||
542f9784 | 7373 | newos6*) |
90973b19 | 7374 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7375 | lt_cv_file_magic_cmd=/usr/bin/file | |
7376 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7377 | ;; | |
7378 | ||
542f9784 | 7379 | *nto* | *qnx*) |
7380 | lt_cv_deplibs_check_method=pass_all | |
7381 | ;; | |
7382 | ||
7383 | openbsd*) | |
7384 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7385 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7386 | else | |
7387 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7388 | fi | |
7389 | ;; | |
7390 | ||
90973b19 | 7391 | osf3* | osf4* | osf5*) |
90973b19 | 7392 | lt_cv_deplibs_check_method=pass_all |
7393 | ;; | |
7394 | ||
542f9784 | 7395 | rdos*) |
90973b19 | 7396 | lt_cv_deplibs_check_method=pass_all |
7397 | ;; | |
7398 | ||
7399 | solaris*) | |
7400 | lt_cv_deplibs_check_method=pass_all | |
90973b19 | 7401 | ;; |
7402 | ||
542f9784 | 7403 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
90973b19 | 7404 | lt_cv_deplibs_check_method=pass_all |
7405 | ;; | |
7406 | ||
542f9784 | 7407 | sysv4 | sysv4.3*) |
90973b19 | 7408 | case $host_vendor in |
90973b19 | 7409 | motorola) |
7410 | 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]' | |
7411 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7412 | ;; | |
542f9784 | 7413 | ncr) |
7414 | lt_cv_deplibs_check_method=pass_all | |
7415 | ;; | |
7416 | sequent) | |
7417 | lt_cv_file_magic_cmd='/bin/file' | |
7418 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7419 | ;; | |
7420 | sni) | |
7421 | lt_cv_file_magic_cmd='/bin/file' | |
7422 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7423 | lt_cv_file_magic_test_file=/lib/libc.so | |
7424 | ;; | |
7425 | siemens) | |
7426 | lt_cv_deplibs_check_method=pass_all | |
7427 | ;; | |
7428 | pc) | |
7429 | lt_cv_deplibs_check_method=pass_all | |
7430 | ;; | |
90973b19 | 7431 | esac |
7432 | ;; | |
542f9784 | 7433 | |
7434 | tpf*) | |
7435 | lt_cv_deplibs_check_method=pass_all | |
7436 | ;; | |
90973b19 | 7437 | esac |
7438 | ||
7439 | fi | |
cd9a469c | 7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7441 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
90973b19 | 7442 | file_magic_cmd=$lt_cv_file_magic_cmd |
7443 | deplibs_check_method=$lt_cv_deplibs_check_method | |
542f9784 | 7444 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
90973b19 | 7445 | |
7446 | ||
7447 | ||
7448 | ||
90973b19 | 7449 | |
90973b19 | 7450 | |
90973b19 | 7451 | |
90973b19 | 7452 | |
4ee9c684 | 7453 | |
4ee9c684 | 7454 | |
4ee9c684 | 7455 | |
4ee9c684 | 7456 | |
90973b19 | 7457 | if test -n "$ac_tool_prefix"; then |
542f9784 | 7458 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7459 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
cd9a469c | 7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7461 | $as_echo_n "checking for $ac_word... " >&6; } | |
7462 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7463 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 7464 | else |
542f9784 | 7465 | if test -n "$AR"; then |
7466 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
90973b19 | 7467 | else |
7468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7469 | for as_dir in $PATH | |
7470 | do | |
7471 | IFS=$as_save_IFS | |
7472 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7473 | for ac_exec_ext in '' $ac_executable_extensions; do |
7474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 7475 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
cd9a469c | 7476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7477 | break 2 |
7478 | fi | |
7479 | done | |
cd9a469c | 7480 | done |
7481 | IFS=$as_save_IFS | |
4ee9c684 | 7482 | |
90973b19 | 7483 | fi |
7484 | fi | |
542f9784 | 7485 | AR=$ac_cv_prog_AR |
7486 | if test -n "$AR"; then | |
cd9a469c | 7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7488 | $as_echo "$AR" >&6; } | |
90973b19 | 7489 | else |
cd9a469c | 7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7491 | $as_echo "no" >&6; } | |
4ee9c684 | 7492 | fi |
7493 | ||
cd9a469c | 7494 | |
90973b19 | 7495 | fi |
542f9784 | 7496 | if test -z "$ac_cv_prog_AR"; then |
7497 | ac_ct_AR=$AR | |
7498 | # Extract the first word of "ar", so it can be a program name with args. | |
7499 | set dummy ar; ac_word=$2 | |
cd9a469c | 7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7501 | $as_echo_n "checking for $ac_word... " >&6; } | |
7502 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
7503 | $as_echo_n "(cached) " >&6 | |
90973b19 | 7504 | else |
542f9784 | 7505 | if test -n "$ac_ct_AR"; then |
7506 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
90973b19 | 7507 | else |
7508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7509 | for as_dir in $PATH | |
7510 | do | |
7511 | IFS=$as_save_IFS | |
7512 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7513 | for ac_exec_ext in '' $ac_executable_extensions; do |
7514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 7515 | ac_cv_prog_ac_ct_AR="ar" |
cd9a469c | 7516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7517 | break 2 |
7518 | fi | |
7519 | done | |
cd9a469c | 7520 | done |
7521 | IFS=$as_save_IFS | |
4ee9c684 | 7522 | |
90973b19 | 7523 | fi |
7524 | fi | |
542f9784 | 7525 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7526 | if test -n "$ac_ct_AR"; then | |
cd9a469c | 7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7528 | $as_echo "$ac_ct_AR" >&6; } | |
4ee9c684 | 7529 | else |
cd9a469c | 7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7531 | $as_echo "no" >&6; } | |
4ee9c684 | 7532 | fi |
4ee9c684 | 7533 | |
cd9a469c | 7534 | if test "x$ac_ct_AR" = x; then |
7535 | AR="false" | |
7536 | else | |
7537 | case $cross_compiling:$ac_tool_warned in | |
7538 | yes:) | |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7540 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7541 | ac_tool_warned=yes ;; | |
7542 | esac | |
7543 | AR=$ac_ct_AR | |
7544 | fi | |
90973b19 | 7545 | else |
542f9784 | 7546 | AR="$ac_cv_prog_AR" |
4ee9c684 | 7547 | fi |
7548 | ||
542f9784 | 7549 | test -z "$AR" && AR=ar |
7550 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
90973b19 | 7562 | if test -n "$ac_tool_prefix"; then |
7563 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7564 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
cd9a469c | 7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7566 | $as_echo_n "checking for $ac_word... " >&6; } | |
7567 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
7568 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 7569 | else |
90973b19 | 7570 | if test -n "$STRIP"; then |
7571 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7572 | else | |
7573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7574 | for as_dir in $PATH | |
7575 | do | |
7576 | IFS=$as_save_IFS | |
7577 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7578 | for ac_exec_ext in '' $ac_executable_extensions; do |
7579 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
90973b19 | 7580 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
cd9a469c | 7581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7582 | break 2 |
7583 | fi | |
7584 | done | |
cd9a469c | 7585 | done |
7586 | IFS=$as_save_IFS | |
4ee9c684 | 7587 | |
90973b19 | 7588 | fi |
7589 | fi | |
7590 | STRIP=$ac_cv_prog_STRIP | |
7591 | if test -n "$STRIP"; then | |
cd9a469c | 7592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7593 | $as_echo "$STRIP" >&6; } | |
4ee9c684 | 7594 | else |
cd9a469c | 7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7596 | $as_echo "no" >&6; } | |
90973b19 | 7597 | fi |
4ee9c684 | 7598 | |
cd9a469c | 7599 | |
4ee9c684 | 7600 | fi |
90973b19 | 7601 | if test -z "$ac_cv_prog_STRIP"; then |
7602 | ac_ct_STRIP=$STRIP | |
7603 | # Extract the first word of "strip", so it can be a program name with args. | |
7604 | set dummy strip; ac_word=$2 | |
cd9a469c | 7605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7606 | $as_echo_n "checking for $ac_word... " >&6; } | |
7607 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
7608 | $as_echo_n "(cached) " >&6 | |
90973b19 | 7609 | else |
7610 | if test -n "$ac_ct_STRIP"; then | |
7611 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7612 | else | |
7613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7614 | for as_dir in $PATH | |
7615 | do | |
7616 | IFS=$as_save_IFS | |
7617 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7618 | for ac_exec_ext in '' $ac_executable_extensions; do |
7619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
90973b19 | 7620 | ac_cv_prog_ac_ct_STRIP="strip" |
cd9a469c | 7621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7622 | break 2 |
7623 | fi | |
7624 | done | |
cd9a469c | 7625 | done |
7626 | IFS=$as_save_IFS | |
90973b19 | 7627 | |
4ee9c684 | 7628 | fi |
7629 | fi | |
90973b19 | 7630 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7631 | if test -n "$ac_ct_STRIP"; then | |
cd9a469c | 7632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7633 | $as_echo "$ac_ct_STRIP" >&6; } | |
90973b19 | 7634 | else |
cd9a469c | 7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7636 | $as_echo "no" >&6; } | |
4ee9c684 | 7637 | fi |
4ee9c684 | 7638 | |
cd9a469c | 7639 | if test "x$ac_ct_STRIP" = x; then |
7640 | STRIP=":" | |
7641 | else | |
7642 | case $cross_compiling:$ac_tool_warned in | |
7643 | yes:) | |
7644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7645 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7646 | ac_tool_warned=yes ;; | |
7647 | esac | |
7648 | STRIP=$ac_ct_STRIP | |
7649 | fi | |
90973b19 | 7650 | else |
7651 | STRIP="$ac_cv_prog_STRIP" | |
4ee9c684 | 7652 | fi |
7653 | ||
542f9784 | 7654 | test -z "$STRIP" && STRIP=: |
4ee9c684 | 7655 | |
7656 | ||
7657 | ||
7658 | ||
7659 | ||
7660 | ||
542f9784 | 7661 | if test -n "$ac_tool_prefix"; then |
7662 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7663 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
cd9a469c | 7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7665 | $as_echo_n "checking for $ac_word... " >&6; } | |
7666 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
7667 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 7668 | else |
542f9784 | 7669 | if test -n "$RANLIB"; then |
7670 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7671 | else | |
7672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7673 | for as_dir in $PATH | |
7674 | do | |
7675 | IFS=$as_save_IFS | |
7676 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7677 | for ac_exec_ext in '' $ac_executable_extensions; do |
7678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 7679 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
cd9a469c | 7680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7681 | break 2 |
7682 | fi | |
7683 | done | |
cd9a469c | 7684 | done |
7685 | IFS=$as_save_IFS | |
542f9784 | 7686 | |
7687 | fi | |
7688 | fi | |
7689 | RANLIB=$ac_cv_prog_RANLIB | |
7690 | if test -n "$RANLIB"; then | |
cd9a469c | 7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7692 | $as_echo "$RANLIB" >&6; } | |
542f9784 | 7693 | else |
cd9a469c | 7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7695 | $as_echo "no" >&6; } | |
542f9784 | 7696 | fi |
7697 | ||
cd9a469c | 7698 | |
542f9784 | 7699 | fi |
7700 | if test -z "$ac_cv_prog_RANLIB"; then | |
7701 | ac_ct_RANLIB=$RANLIB | |
7702 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7703 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7705 | $as_echo_n "checking for $ac_word... " >&6; } | |
7706 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
7707 | $as_echo_n "(cached) " >&6 | |
542f9784 | 7708 | else |
7709 | if test -n "$ac_ct_RANLIB"; then | |
7710 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7711 | else | |
7712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7713 | for as_dir in $PATH | |
7714 | do | |
7715 | IFS=$as_save_IFS | |
7716 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7717 | for ac_exec_ext in '' $ac_executable_extensions; do |
7718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 7719 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
cd9a469c | 7720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7721 | break 2 |
7722 | fi | |
7723 | done | |
cd9a469c | 7724 | done |
7725 | IFS=$as_save_IFS | |
542f9784 | 7726 | |
542f9784 | 7727 | fi |
7728 | fi | |
7729 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7730 | if test -n "$ac_ct_RANLIB"; then | |
cd9a469c | 7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7732 | $as_echo "$ac_ct_RANLIB" >&6; } | |
542f9784 | 7733 | else |
cd9a469c | 7734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7735 | $as_echo "no" >&6; } | |
542f9784 | 7736 | fi |
7737 | ||
cd9a469c | 7738 | if test "x$ac_ct_RANLIB" = x; then |
7739 | RANLIB=":" | |
7740 | else | |
7741 | case $cross_compiling:$ac_tool_warned in | |
7742 | yes:) | |
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7744 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7745 | ac_tool_warned=yes ;; | |
7746 | esac | |
7747 | RANLIB=$ac_ct_RANLIB | |
7748 | fi | |
542f9784 | 7749 | else |
7750 | RANLIB="$ac_cv_prog_RANLIB" | |
7751 | fi | |
7752 | ||
7753 | test -z "$RANLIB" && RANLIB=: | |
7754 | ||
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | # Determine commands to create old-style static archives. | |
00aafda4 | 7761 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
542f9784 | 7762 | old_postinstall_cmds='chmod 644 $oldlib' |
7763 | old_postuninstall_cmds= | |
7764 | ||
7765 | if test -n "$RANLIB"; then | |
7766 | case $host_os in | |
7767 | openbsd*) | |
7768 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7769 | ;; | |
7770 | *) | |
7771 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7772 | ;; | |
7773 | esac | |
7774 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7775 | fi | |
7776 | ||
e6408286 | 7777 | case $host_os in |
7778 | darwin*) | |
7779 | lock_old_archive_extraction=yes ;; | |
7780 | *) | |
7781 | lock_old_archive_extraction=no ;; | |
7782 | esac | |
7783 | ||
7784 | ||
7785 | ||
7786 | ||
7787 | ||
7788 | ||
542f9784 | 7789 | |
7790 | ||
7791 | ||
7792 | ||
7793 | ||
7794 | ||
7795 | ||
7796 | ||
7797 | ||
7798 | ||
7799 | ||
7800 | ||
7801 | ||
7802 | ||
7803 | ||
7804 | ||
7805 | ||
7806 | ||
7807 | ||
7808 | ||
7809 | ||
7810 | ||
7811 | ||
7812 | ||
7813 | ||
7814 | ||
7815 | ||
7816 | ||
7817 | ||
7818 | ||
7819 | ||
7820 | ||
7821 | ||
7822 | # If no C compiler was specified, use CC. | |
7823 | LTCC=${LTCC-"$CC"} | |
7824 | ||
7825 | # If no C compiler flags were specified, use CFLAGS. | |
7826 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7827 | ||
7828 | # Allow CC to be a program name with arguments. | |
7829 | compiler=$CC | |
7830 | ||
7831 | ||
7832 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
cd9a469c | 7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7834 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7835 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7836 | $as_echo_n "(cached) " >&6 | |
542f9784 | 7837 | else |
7838 | ||
7839 | # These are sane defaults that work on at least a few old systems. | |
7840 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7841 | ||
7842 | # Character class describing NM global symbol codes. | |
7843 | symcode='[BCDEGRST]' | |
7844 | ||
7845 | # Regexp to match symbols that can be accessed directly from C. | |
7846 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7847 | ||
7848 | # Define system-specific variables. | |
7849 | case $host_os in | |
7850 | aix*) | |
7851 | symcode='[BCDT]' | |
7852 | ;; | |
00aafda4 | 7853 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 7854 | symcode='[ABCDGISTW]' |
7855 | ;; | |
7856 | hpux*) | |
7857 | if test "$host_cpu" = ia64; then | |
7858 | symcode='[ABCDEGRST]' | |
7859 | fi | |
7860 | ;; | |
7861 | irix* | nonstopux*) | |
7862 | symcode='[BCDEGRST]' | |
7863 | ;; | |
7864 | osf*) | |
7865 | symcode='[BCDEGQRST]' | |
7866 | ;; | |
7867 | solaris*) | |
7868 | symcode='[BDRT]' | |
7869 | ;; | |
7870 | sco3.2v5*) | |
7871 | symcode='[DT]' | |
7872 | ;; | |
7873 | sysv4.2uw2*) | |
7874 | symcode='[DT]' | |
7875 | ;; | |
7876 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7877 | symcode='[ABDT]' | |
7878 | ;; | |
7879 | sysv4) | |
7880 | symcode='[DFNSTU]' | |
7881 | ;; | |
7882 | esac | |
7883 | ||
7884 | # If we're using GNU nm, then use its standard symbol codes. | |
7885 | case `$NM -V 2>&1` in | |
7886 | *GNU* | *'with BFD'*) | |
7887 | symcode='[ABCDGIRSTW]' ;; | |
7888 | esac | |
7889 | ||
7890 | # Transform an extracted symbol line into a proper C declaration. | |
7891 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7892 | # so use this general approach. | |
7893 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7894 | ||
7895 | # Transform an extracted symbol line into symbol name and symbol address | |
7896 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
00aafda4 | 7897 | 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'" |
542f9784 | 7898 | |
7899 | # Handle CRLF in mingw tool chain | |
7900 | opt_cr= | |
7901 | case $build_os in | |
7902 | mingw*) | |
7903 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7904 | ;; | |
7905 | esac | |
7906 | ||
7907 | # Try without a prefix underscore, then with it. | |
7908 | for ac_symprfx in "" "_"; do | |
7909 | ||
7910 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7911 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7912 | ||
7913 | # Write the raw and C identifiers. | |
7914 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7915 | # Fake it for dumpbin and say T for any non-static function | |
7916 | # and D for any global variable. | |
7917 | # Also find C++ and __fastcall symbols from MSVC++, | |
7918 | # which start with @ or ?. | |
7919 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7920 | " {last_section=section; section=\$ 3};"\ | |
7921 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7922 | " \$ 0!~/External *\|/{next};"\ | |
7923 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7924 | " {if(hide[section]) next};"\ | |
7925 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7926 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7927 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7928 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7929 | " ' prfx=^$ac_symprfx" | |
7930 | else | |
7931 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7932 | fi | |
7933 | ||
7934 | # Check to see that the pipe works correctly. | |
7935 | pipe_works=no | |
7936 | ||
7937 | rm -f conftest* | |
7938 | cat > conftest.$ac_ext <<_LT_EOF | |
7939 | #ifdef __cplusplus | |
7940 | extern "C" { | |
7941 | #endif | |
7942 | char nm_test_var; | |
7943 | void nm_test_func(void); | |
7944 | void nm_test_func(void){} | |
7945 | #ifdef __cplusplus | |
7946 | } | |
7947 | #endif | |
7948 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7949 | _LT_EOF | |
7950 | ||
cd9a469c | 7951 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 7952 | (eval $ac_compile) 2>&5 |
7953 | ac_status=$? | |
cd9a469c | 7954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7955 | test $ac_status = 0; }; then | |
542f9784 | 7956 | # Now try to grab the symbols. |
7957 | nlist=conftest.nm | |
e6408286 | 7958 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7959 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
542f9784 | 7960 | ac_status=$? |
cd9a469c | 7961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7962 | test $ac_status = 0; } && test -s "$nlist"; then | |
542f9784 | 7963 | # Try sorting and uniquifying the output. |
7964 | if sort "$nlist" | uniq > "$nlist"T; then | |
7965 | mv -f "$nlist"T "$nlist" | |
7966 | else | |
7967 | rm -f "$nlist"T | |
7968 | fi | |
7969 | ||
7970 | # Make sure that we snagged all the symbols we need. | |
7971 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7972 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7973 | cat <<_LT_EOF > conftest.$ac_ext | |
7974 | #ifdef __cplusplus | |
7975 | extern "C" { | |
7976 | #endif | |
7977 | ||
7978 | _LT_EOF | |
7979 | # Now generate the symbol file. | |
7980 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7981 | ||
7982 | cat <<_LT_EOF >> conftest.$ac_ext | |
7983 | ||
7984 | /* The mapping between symbol names and symbols. */ | |
7985 | const struct { | |
7986 | const char *name; | |
7987 | void *address; | |
7988 | } | |
7989 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7990 | { | |
7991 | { "@PROGRAM@", (void *) 0 }, | |
7992 | _LT_EOF | |
7993 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7994 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7995 | {0, (void *) 0} | |
7996 | }; | |
7997 | ||
7998 | /* This works around a problem in FreeBSD linker */ | |
7999 | #ifdef FREEBSD_WORKAROUND | |
8000 | static const void *lt_preloaded_setup() { | |
8001 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8002 | } | |
8003 | #endif | |
8004 | ||
8005 | #ifdef __cplusplus | |
8006 | } | |
8007 | #endif | |
8008 | _LT_EOF | |
8009 | # Now try linking the two files. | |
8010 | mv conftest.$ac_objext conftstm.$ac_objext | |
8011 | lt_save_LIBS="$LIBS" | |
8012 | lt_save_CFLAGS="$CFLAGS" | |
8013 | LIBS="conftstm.$ac_objext" | |
8014 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
cd9a469c | 8015 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 8016 | (eval $ac_link) 2>&5 |
8017 | ac_status=$? | |
cd9a469c | 8018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8019 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
542f9784 | 8020 | pipe_works=yes |
8021 | fi | |
8022 | LIBS="$lt_save_LIBS" | |
8023 | CFLAGS="$lt_save_CFLAGS" | |
8024 | else | |
8025 | echo "cannot find nm_test_func in $nlist" >&5 | |
8026 | fi | |
8027 | else | |
8028 | echo "cannot find nm_test_var in $nlist" >&5 | |
8029 | fi | |
8030 | else | |
8031 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8032 | fi | |
8033 | else | |
8034 | echo "$progname: failed program was:" >&5 | |
8035 | cat conftest.$ac_ext >&5 | |
8036 | fi | |
00aafda4 | 8037 | rm -rf conftest* conftst* |
542f9784 | 8038 | |
8039 | # Do not use the global_symbol_pipe unless it works. | |
8040 | if test "$pipe_works" = yes; then | |
8041 | break | |
8042 | else | |
8043 | lt_cv_sys_global_symbol_pipe= | |
8044 | fi | |
8045 | done | |
8046 | ||
8047 | fi | |
8048 | ||
8049 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8050 | lt_cv_sys_global_symbol_to_cdecl= | |
8051 | fi | |
8052 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
cd9a469c | 8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8054 | $as_echo "failed" >&6; } | |
542f9784 | 8055 | else |
cd9a469c | 8056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8057 | $as_echo "ok" >&6; } | |
542f9784 | 8058 | fi |
8059 | ||
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
00aafda4 | 8074 | |
8075 | ||
8076 | ||
8077 | ||
8078 | ||
542f9784 | 8079 | |
8080 | ||
cd9a469c | 8081 | # Check whether --enable-libtool-lock was given. |
8082 | if test "${enable_libtool_lock+set}" = set; then : | |
8083 | enableval=$enable_libtool_lock; | |
8084 | fi | |
542f9784 | 8085 | |
542f9784 | 8086 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4ee9c684 | 8087 | |
90973b19 | 8088 | # Some flags need to be propagated to the compiler or linker for good |
8089 | # libtool support. | |
8090 | case $host in | |
542f9784 | 8091 | ia64-*-hpux*) |
90973b19 | 8092 | # Find out which ABI we are using. |
542f9784 | 8093 | echo 'int i;' > conftest.$ac_ext |
cd9a469c | 8094 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8095 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8096 | ac_status=$? |
cd9a469c | 8097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8098 | test $ac_status = 0; }; then | |
90973b19 | 8099 | case `/usr/bin/file conftest.$ac_objext` in |
542f9784 | 8100 | *ELF-32*) |
8101 | HPUX_IA64_MODE="32" | |
8102 | ;; | |
8103 | *ELF-64*) | |
8104 | HPUX_IA64_MODE="64" | |
8105 | ;; | |
90973b19 | 8106 | esac |
90973b19 | 8107 | fi |
8108 | rm -rf conftest* | |
8109 | ;; | |
542f9784 | 8110 | *-*-irix6*) |
90973b19 | 8111 | # Find out which ABI we are using. |
e6408286 | 8112 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
cd9a469c | 8113 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8114 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8115 | ac_status=$? |
cd9a469c | 8116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8117 | test $ac_status = 0; }; then | |
542f9784 | 8118 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8119 | case `/usr/bin/file conftest.$ac_objext` in | |
8120 | *32-bit*) | |
8121 | LD="${LD-ld} -melf32bsmip" | |
8122 | ;; | |
8123 | *N32*) | |
8124 | LD="${LD-ld} -melf32bmipn32" | |
8125 | ;; | |
8126 | *64-bit*) | |
8127 | LD="${LD-ld} -melf64bmip" | |
8128 | ;; | |
8129 | esac | |
8130 | else | |
8131 | case `/usr/bin/file conftest.$ac_objext` in | |
8132 | *32-bit*) | |
8133 | LD="${LD-ld} -32" | |
8134 | ;; | |
8135 | *N32*) | |
8136 | LD="${LD-ld} -n32" | |
8137 | ;; | |
8138 | *64-bit*) | |
8139 | LD="${LD-ld} -64" | |
8140 | ;; | |
8141 | esac | |
8142 | fi | |
90973b19 | 8143 | fi |
8144 | rm -rf conftest* | |
8145 | ;; | |
4ee9c684 | 8146 | |
9613c003 | 8147 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
542f9784 | 8148 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
90973b19 | 8149 | # Find out which ABI we are using. |
8150 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 8151 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8152 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8153 | ac_status=$? |
cd9a469c | 8154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8155 | test $ac_status = 0; }; then | |
542f9784 | 8156 | case `/usr/bin/file conftest.o` in |
8157 | *32-bit*) | |
8158 | case $host in | |
8159 | x86_64-*kfreebsd*-gnu) | |
8160 | LD="${LD-ld} -m elf_i386_fbsd" | |
8161 | ;; | |
8162 | x86_64-*linux*) | |
b4b3bbba | 8163 | case `/usr/bin/file conftest.o` in |
8164 | *x86-64*) | |
8165 | LD="${LD-ld} -m elf32_x86_64" | |
8166 | ;; | |
8167 | *) | |
8168 | LD="${LD-ld} -m elf_i386" | |
8169 | ;; | |
8170 | esac | |
542f9784 | 8171 | ;; |
9613c003 | 8172 | powerpc64le-*linux*) |
8173 | LD="${LD-ld} -m elf32lppclinux" | |
8174 | ;; | |
8175 | powerpc64-*linux*) | |
542f9784 | 8176 | LD="${LD-ld} -m elf32ppclinux" |
8177 | ;; | |
8178 | s390x-*linux*) | |
8179 | LD="${LD-ld} -m elf_s390" | |
8180 | ;; | |
8181 | sparc64-*linux*) | |
8182 | LD="${LD-ld} -m elf32_sparc" | |
8183 | ;; | |
8184 | esac | |
8185 | ;; | |
8186 | *64-bit*) | |
8187 | case $host in | |
8188 | x86_64-*kfreebsd*-gnu) | |
8189 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8190 | ;; | |
8191 | x86_64-*linux*) | |
8192 | LD="${LD-ld} -m elf_x86_64" | |
8193 | ;; | |
9613c003 | 8194 | powerpcle-*linux*) |
8195 | LD="${LD-ld} -m elf64lppc" | |
8196 | ;; | |
8197 | powerpc-*linux*) | |
542f9784 | 8198 | LD="${LD-ld} -m elf64ppc" |
8199 | ;; | |
8200 | s390*-*linux*|s390*-*tpf*) | |
8201 | LD="${LD-ld} -m elf64_s390" | |
8202 | ;; | |
8203 | sparc*-*linux*) | |
8204 | LD="${LD-ld} -m elf64_sparc" | |
8205 | ;; | |
8206 | esac | |
8207 | ;; | |
90973b19 | 8208 | esac |
4ee9c684 | 8209 | fi |
90973b19 | 8210 | rm -rf conftest* |
8211 | ;; | |
4ee9c684 | 8212 | |
90973b19 | 8213 | *-*-sco3.2v5*) |
8214 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8215 | SAVE_CFLAGS="$CFLAGS" | |
8216 | CFLAGS="$CFLAGS -belf" | |
cd9a469c | 8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8218 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
8219 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
8220 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 8221 | else |
542f9784 | 8222 | ac_ext=c |
90973b19 | 8223 | ac_cpp='$CPP $CPPFLAGS' |
8224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 8227 | |
b52ee437 | 8228 | if test x$gcc_no_link = xyes; then |
cd9a469c | 8229 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 8230 | fi |
cd9a469c | 8231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 8232 | /* end confdefs.h. */ |
4ee9c684 | 8233 | |
8234 | int | |
8235 | main () | |
8236 | { | |
90973b19 | 8237 | |
4ee9c684 | 8238 | ; |
8239 | return 0; | |
8240 | } | |
8241 | _ACEOF | |
cd9a469c | 8242 | if ac_fn_c_try_link "$LINENO"; then : |
90973b19 | 8243 | lt_cv_cc_needs_belf=yes |
4ee9c684 | 8244 | else |
cd9a469c | 8245 | lt_cv_cc_needs_belf=no |
4ee9c684 | 8246 | fi |
cd9a469c | 8247 | rm -f core conftest.err conftest.$ac_objext \ |
8248 | conftest$ac_exeext conftest.$ac_ext | |
90973b19 | 8249 | ac_ext=c |
8250 | ac_cpp='$CPP $CPPFLAGS' | |
8251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8254 | ||
4ee9c684 | 8255 | fi |
cd9a469c | 8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8257 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
90973b19 | 8258 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8259 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8260 | CFLAGS="$SAVE_CFLAGS" | |
8261 | fi | |
8262 | ;; | |
542f9784 | 8263 | sparc*-*solaris*) |
8264 | # Find out which ABI we are using. | |
8265 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 8266 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 8267 | (eval $ac_compile) 2>&5 |
8268 | ac_status=$? | |
cd9a469c | 8269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8270 | test $ac_status = 0; }; then | |
542f9784 | 8271 | case `/usr/bin/file conftest.o` in |
8272 | *64-bit*) | |
8273 | case $lt_cv_prog_gnu_ld in | |
8274 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
00aafda4 | 8275 | *) |
8276 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8277 | LD="${LD-ld} -64" | |
8278 | fi | |
8279 | ;; | |
542f9784 | 8280 | esac |
8281 | ;; | |
8282 | esac | |
8283 | fi | |
8284 | rm -rf conftest* | |
8285 | ;; | |
90973b19 | 8286 | esac |
8287 | ||
542f9784 | 8288 | need_locks="$enable_libtool_lock" |
90973b19 | 8289 | |
00aafda4 | 8290 | |
8291 | case $host_os in | |
8292 | rhapsody* | darwin*) | |
8293 | if test -n "$ac_tool_prefix"; then | |
8294 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8295 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
cd9a469c | 8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8297 | $as_echo_n "checking for $ac_word... " >&6; } | |
8298 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
8299 | $as_echo_n "(cached) " >&6 | |
00aafda4 | 8300 | else |
8301 | if test -n "$DSYMUTIL"; then | |
8302 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8303 | else | |
8304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8305 | for as_dir in $PATH | |
8306 | do | |
8307 | IFS=$as_save_IFS | |
8308 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8309 | for ac_exec_ext in '' $ac_executable_extensions; do |
8310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
00aafda4 | 8311 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
cd9a469c | 8312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8313 | break 2 |
8314 | fi | |
8315 | done | |
cd9a469c | 8316 | done |
8317 | IFS=$as_save_IFS | |
00aafda4 | 8318 | |
8319 | fi | |
8320 | fi | |
8321 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8322 | if test -n "$DSYMUTIL"; then | |
cd9a469c | 8323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8324 | $as_echo "$DSYMUTIL" >&6; } | |
00aafda4 | 8325 | else |
cd9a469c | 8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8327 | $as_echo "no" >&6; } | |
00aafda4 | 8328 | fi |
8329 | ||
cd9a469c | 8330 | |
00aafda4 | 8331 | fi |
8332 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8333 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8334 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8335 | set dummy dsymutil; ac_word=$2 | |
cd9a469c | 8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8337 | $as_echo_n "checking for $ac_word... " >&6; } | |
8338 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
8339 | $as_echo_n "(cached) " >&6 | |
00aafda4 | 8340 | else |
d5d92632 | 8341 | if test -n "$ac_ct_DSYMUTIL"; then |
8342 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
00aafda4 | 8343 | else |
8344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8345 | for as_dir in $PATH | |
8346 | do | |
8347 | IFS=$as_save_IFS | |
8348 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8349 | for ac_exec_ext in '' $ac_executable_extensions; do |
8350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8351 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
cd9a469c | 8352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8353 | break 2 |
8354 | fi | |
8355 | done | |
cd9a469c | 8356 | done |
8357 | IFS=$as_save_IFS | |
00aafda4 | 8358 | |
00aafda4 | 8359 | fi |
8360 | fi | |
d5d92632 | 8361 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8362 | if test -n "$ac_ct_DSYMUTIL"; then | |
8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8364 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
00aafda4 | 8365 | else |
cd9a469c | 8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8367 | $as_echo "no" >&6; } | |
00aafda4 | 8368 | fi |
8369 | ||
d5d92632 | 8370 | if test "x$ac_ct_DSYMUTIL" = x; then |
8371 | DSYMUTIL=":" | |
cd9a469c | 8372 | else |
8373 | case $cross_compiling:$ac_tool_warned in | |
8374 | yes:) | |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8376 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8377 | ac_tool_warned=yes ;; | |
8378 | esac | |
d5d92632 | 8379 | DSYMUTIL=$ac_ct_DSYMUTIL |
cd9a469c | 8380 | fi |
00aafda4 | 8381 | else |
d5d92632 | 8382 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
00aafda4 | 8383 | fi |
8384 | ||
8385 | if test -n "$ac_tool_prefix"; then | |
d5d92632 | 8386 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8387 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
cd9a469c | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8389 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 8390 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
cd9a469c | 8391 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8392 | else |
d5d92632 | 8393 | if test -n "$NMEDIT"; then |
8394 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
00aafda4 | 8395 | else |
8396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8397 | for as_dir in $PATH | |
8398 | do | |
8399 | IFS=$as_save_IFS | |
8400 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8401 | for ac_exec_ext in '' $ac_executable_extensions; do |
8402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8403 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
cd9a469c | 8404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8405 | break 2 |
8406 | fi | |
8407 | done | |
cd9a469c | 8408 | done |
8409 | IFS=$as_save_IFS | |
00aafda4 | 8410 | |
8411 | fi | |
8412 | fi | |
d5d92632 | 8413 | NMEDIT=$ac_cv_prog_NMEDIT |
8414 | if test -n "$NMEDIT"; then | |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8416 | $as_echo "$NMEDIT" >&6; } | |
00aafda4 | 8417 | else |
cd9a469c | 8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8419 | $as_echo "no" >&6; } | |
00aafda4 | 8420 | fi |
8421 | ||
cd9a469c | 8422 | |
00aafda4 | 8423 | fi |
d5d92632 | 8424 | if test -z "$ac_cv_prog_NMEDIT"; then |
8425 | ac_ct_NMEDIT=$NMEDIT | |
8426 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8427 | set dummy nmedit; ac_word=$2 | |
cd9a469c | 8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8429 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 8430 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
cd9a469c | 8431 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8432 | else |
d5d92632 | 8433 | if test -n "$ac_ct_NMEDIT"; then |
8434 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
00aafda4 | 8435 | else |
8436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8437 | for as_dir in $PATH | |
8438 | do | |
8439 | IFS=$as_save_IFS | |
8440 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8441 | for ac_exec_ext in '' $ac_executable_extensions; do |
8442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8443 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
cd9a469c | 8444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8445 | break 2 |
8446 | fi | |
8447 | done | |
cd9a469c | 8448 | done |
8449 | IFS=$as_save_IFS | |
00aafda4 | 8450 | |
00aafda4 | 8451 | fi |
8452 | fi | |
d5d92632 | 8453 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8454 | if test -n "$ac_ct_NMEDIT"; then | |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8456 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
00aafda4 | 8457 | else |
cd9a469c | 8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8459 | $as_echo "no" >&6; } | |
00aafda4 | 8460 | fi |
8461 | ||
d5d92632 | 8462 | if test "x$ac_ct_NMEDIT" = x; then |
8463 | NMEDIT=":" | |
cd9a469c | 8464 | else |
8465 | case $cross_compiling:$ac_tool_warned in | |
8466 | yes:) | |
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8468 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8469 | ac_tool_warned=yes ;; | |
8470 | esac | |
d5d92632 | 8471 | NMEDIT=$ac_ct_NMEDIT |
cd9a469c | 8472 | fi |
00aafda4 | 8473 | else |
d5d92632 | 8474 | NMEDIT="$ac_cv_prog_NMEDIT" |
00aafda4 | 8475 | fi |
8476 | ||
8477 | if test -n "$ac_tool_prefix"; then | |
d5d92632 | 8478 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8479 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
cd9a469c | 8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8481 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 8482 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
cd9a469c | 8483 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8484 | else |
d5d92632 | 8485 | if test -n "$LIPO"; then |
8486 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
00aafda4 | 8487 | else |
8488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8489 | for as_dir in $PATH | |
8490 | do | |
8491 | IFS=$as_save_IFS | |
8492 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8493 | for ac_exec_ext in '' $ac_executable_extensions; do |
8494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8495 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
cd9a469c | 8496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8497 | break 2 |
8498 | fi | |
8499 | done | |
cd9a469c | 8500 | done |
8501 | IFS=$as_save_IFS | |
00aafda4 | 8502 | |
8503 | fi | |
8504 | fi | |
d5d92632 | 8505 | LIPO=$ac_cv_prog_LIPO |
8506 | if test -n "$LIPO"; then | |
8507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8508 | $as_echo "$LIPO" >&6; } | |
00aafda4 | 8509 | else |
cd9a469c | 8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8511 | $as_echo "no" >&6; } | |
00aafda4 | 8512 | fi |
8513 | ||
cd9a469c | 8514 | |
00aafda4 | 8515 | fi |
d5d92632 | 8516 | if test -z "$ac_cv_prog_LIPO"; then |
8517 | ac_ct_LIPO=$LIPO | |
8518 | # Extract the first word of "lipo", so it can be a program name with args. | |
8519 | set dummy lipo; ac_word=$2 | |
cd9a469c | 8520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8521 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 8522 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
cd9a469c | 8523 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8524 | else |
d5d92632 | 8525 | if test -n "$ac_ct_LIPO"; then |
8526 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
00aafda4 | 8527 | else |
8528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8529 | for as_dir in $PATH | |
8530 | do | |
8531 | IFS=$as_save_IFS | |
8532 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8533 | for ac_exec_ext in '' $ac_executable_extensions; do |
8534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8535 | ac_cv_prog_ac_ct_LIPO="lipo" |
cd9a469c | 8536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8537 | break 2 |
8538 | fi | |
8539 | done | |
cd9a469c | 8540 | done |
8541 | IFS=$as_save_IFS | |
00aafda4 | 8542 | |
00aafda4 | 8543 | fi |
8544 | fi | |
d5d92632 | 8545 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8546 | if test -n "$ac_ct_LIPO"; then | |
8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8548 | $as_echo "$ac_ct_LIPO" >&6; } | |
00aafda4 | 8549 | else |
cd9a469c | 8550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8551 | $as_echo "no" >&6; } | |
00aafda4 | 8552 | fi |
8553 | ||
d5d92632 | 8554 | if test "x$ac_ct_LIPO" = x; then |
8555 | LIPO=":" | |
cd9a469c | 8556 | else |
8557 | case $cross_compiling:$ac_tool_warned in | |
8558 | yes:) | |
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8560 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8561 | ac_tool_warned=yes ;; | |
8562 | esac | |
d5d92632 | 8563 | LIPO=$ac_ct_LIPO |
cd9a469c | 8564 | fi |
00aafda4 | 8565 | else |
d5d92632 | 8566 | LIPO="$ac_cv_prog_LIPO" |
00aafda4 | 8567 | fi |
8568 | ||
d5d92632 | 8569 | if test -n "$ac_tool_prefix"; then |
8570 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8571 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8573 | $as_echo_n "checking for $ac_word... " >&6; } | |
8574 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
cd9a469c | 8575 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8576 | else |
d5d92632 | 8577 | if test -n "$OTOOL"; then |
8578 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
e6408286 | 8579 | else |
d5d92632 | 8580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8581 | for as_dir in $PATH | |
8582 | do | |
8583 | IFS=$as_save_IFS | |
8584 | test -z "$as_dir" && as_dir=. | |
8585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8587 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8589 | break 2 | |
8590 | fi | |
8591 | done | |
8592 | done | |
8593 | IFS=$as_save_IFS | |
e6408286 | 8594 | |
8595 | fi | |
d5d92632 | 8596 | fi |
8597 | OTOOL=$ac_cv_prog_OTOOL | |
8598 | if test -n "$OTOOL"; then | |
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8600 | $as_echo "$OTOOL" >&6; } | |
8601 | else | |
8602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8603 | $as_echo "no" >&6; } | |
8604 | fi | |
8605 | ||
00aafda4 | 8606 | |
542f9784 | 8607 | fi |
d5d92632 | 8608 | if test -z "$ac_cv_prog_OTOOL"; then |
8609 | ac_ct_OTOOL=$OTOOL | |
8610 | # Extract the first word of "otool", so it can be a program name with args. | |
8611 | set dummy otool; ac_word=$2 | |
8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8613 | $as_echo_n "checking for $ac_word... " >&6; } | |
8614 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
cd9a469c | 8615 | $as_echo_n "(cached) " >&6 |
542f9784 | 8616 | else |
d5d92632 | 8617 | if test -n "$ac_ct_OTOOL"; then |
8618 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8619 | else | |
8620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8621 | for as_dir in $PATH | |
542f9784 | 8622 | do |
d5d92632 | 8623 | IFS=$as_save_IFS |
8624 | test -z "$as_dir" && as_dir=. | |
8625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8627 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8629 | break 2 | |
8630 | fi | |
8631 | done | |
8632 | done | |
8633 | IFS=$as_save_IFS | |
4ee9c684 | 8634 | |
d5d92632 | 8635 | fi |
8636 | fi | |
8637 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8638 | if test -n "$ac_ct_OTOOL"; then | |
8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8640 | $as_echo "$ac_ct_OTOOL" >&6; } | |
cd9a469c | 8641 | else |
d5d92632 | 8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8643 | $as_echo "no" >&6; } | |
542f9784 | 8644 | fi |
90973b19 | 8645 | |
d5d92632 | 8646 | if test "x$ac_ct_OTOOL" = x; then |
8647 | OTOOL=":" | |
8648 | else | |
8649 | case $cross_compiling:$ac_tool_warned in | |
8650 | yes:) | |
8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8652 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8653 | ac_tool_warned=yes ;; | |
8654 | esac | |
8655 | OTOOL=$ac_ct_OTOOL | |
8656 | fi | |
542f9784 | 8657 | else |
d5d92632 | 8658 | OTOOL="$ac_cv_prog_OTOOL" |
542f9784 | 8659 | fi |
4ee9c684 | 8660 | |
d5d92632 | 8661 | if test -n "$ac_tool_prefix"; then |
8662 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8663 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8665 | $as_echo_n "checking for $ac_word... " >&6; } | |
8666 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
8667 | $as_echo_n "(cached) " >&6 | |
8668 | else | |
8669 | if test -n "$OTOOL64"; then | |
8670 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8671 | else | |
8672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8673 | for as_dir in $PATH | |
8674 | do | |
8675 | IFS=$as_save_IFS | |
8676 | test -z "$as_dir" && as_dir=. | |
8677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8679 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8681 | break 2 | |
8682 | fi | |
542f9784 | 8683 | done |
d5d92632 | 8684 | done |
8685 | IFS=$as_save_IFS | |
8686 | ||
8687 | fi | |
8688 | fi | |
8689 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8690 | if test -n "$OTOOL64"; then | |
8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8692 | $as_echo "$OTOOL64" >&6; } | |
8693 | else | |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8695 | $as_echo "no" >&6; } | |
542f9784 | 8696 | fi |
4ee9c684 | 8697 | |
90973b19 | 8698 | |
542f9784 | 8699 | fi |
d5d92632 | 8700 | if test -z "$ac_cv_prog_OTOOL64"; then |
8701 | ac_ct_OTOOL64=$OTOOL64 | |
8702 | # Extract the first word of "otool64", so it can be a program name with args. | |
8703 | set dummy otool64; ac_word=$2 | |
8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8705 | $as_echo_n "checking for $ac_word... " >&6; } | |
8706 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
8707 | $as_echo_n "(cached) " >&6 | |
90973b19 | 8708 | else |
d5d92632 | 8709 | if test -n "$ac_ct_OTOOL64"; then |
8710 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8711 | else | |
8712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8713 | for as_dir in $PATH | |
90973b19 | 8714 | do |
d5d92632 | 8715 | IFS=$as_save_IFS |
8716 | test -z "$as_dir" && as_dir=. | |
8717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8719 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8721 | break 2 | |
8722 | fi | |
8723 | done | |
8724 | done | |
8725 | IFS=$as_save_IFS | |
90973b19 | 8726 | |
d5d92632 | 8727 | fi |
8728 | fi | |
8729 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8730 | if test -n "$ac_ct_OTOOL64"; then | |
8731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8732 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
cd9a469c | 8733 | else |
d5d92632 | 8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8735 | $as_echo "no" >&6; } | |
90973b19 | 8736 | fi |
8737 | ||
d5d92632 | 8738 | if test "x$ac_ct_OTOOL64" = x; then |
8739 | OTOOL64=":" | |
8740 | else | |
8741 | case $cross_compiling:$ac_tool_warned in | |
8742 | yes:) | |
8743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8744 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8745 | ac_tool_warned=yes ;; | |
8746 | esac | |
8747 | OTOOL64=$ac_ct_OTOOL64 | |
8748 | fi | |
4ee9c684 | 8749 | else |
d5d92632 | 8750 | OTOOL64="$ac_cv_prog_OTOOL64" |
4ee9c684 | 8751 | fi |
4ee9c684 | 8752 | |
cd9a469c | 8753 | |
542f9784 | 8754 | |
542f9784 | 8755 | |
8756 | ||
4ee9c684 | 8757 | |
542f9784 | 8758 | |
4ee9c684 | 8759 | |
542f9784 | 8760 | |
cd9a469c | 8761 | |
4ee9c684 | 8762 | |
9cf1c244 | 8763 | |
2e4ef4e4 | 8764 | |
cd9a469c | 8765 | |
2e4ef4e4 | 8766 | |
2e4ef4e4 | 8767 | |
d5d92632 | 8768 | |
8769 | ||
8770 | ||
8771 | ||
8772 | ||
8773 | ||
8774 | ||
8775 | ||
8776 | ||
8777 | ||
8778 | ||
8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8780 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8781 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
8782 | $as_echo_n "(cached) " >&6 | |
542f9784 | 8783 | else |
d5d92632 | 8784 | lt_cv_apple_cc_single_mod=no |
8785 | if test -z "${LT_MULTI_MODULE}"; then | |
8786 | # By default we will add the -single_module flag. You can override | |
8787 | # by either setting the environment variable LT_MULTI_MODULE | |
8788 | # non-empty at configure time, or by adding -multi_module to the | |
8789 | # link flags. | |
8790 | rm -rf libconftest.dylib* | |
8791 | echo "int foo(void){return 1;}" > conftest.c | |
8792 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8793 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8794 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8795 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8796 | _lt_result=$? | |
8797 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8798 | lt_cv_apple_cc_single_mod=yes | |
8799 | else | |
8800 | cat conftest.err >&5 | |
8801 | fi | |
8802 | rm -rf libconftest.dylib* | |
8803 | rm -f conftest.* | |
8804 | fi | |
8805 | fi | |
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8807 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8809 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8810 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
8811 | $as_echo_n "(cached) " >&6 | |
8812 | else | |
8813 | lt_cv_ld_exported_symbols_list=no | |
8814 | save_LDFLAGS=$LDFLAGS | |
8815 | echo "_main" > conftest.sym | |
8816 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8817 | if test x$gcc_no_link = xyes; then | |
8818 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
8819 | fi | |
8820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
542f9784 | 8821 | /* end confdefs.h. */ |
2e4ef4e4 | 8822 | |
542f9784 | 8823 | int |
8824 | main () | |
8825 | { | |
d5d92632 | 8826 | |
8827 | ; | |
cd9a469c | 8828 | return 0; |
542f9784 | 8829 | } |
2e4ef4e4 | 8830 | _ACEOF |
d5d92632 | 8831 | if ac_fn_c_try_link "$LINENO"; then : |
8832 | lt_cv_ld_exported_symbols_list=yes | |
cd9a469c | 8833 | else |
d5d92632 | 8834 | lt_cv_ld_exported_symbols_list=no |
542f9784 | 8835 | fi |
d5d92632 | 8836 | rm -f core conftest.err conftest.$ac_objext \ |
8837 | conftest$ac_exeext conftest.$ac_ext | |
8838 | LDFLAGS="$save_LDFLAGS" | |
2e4ef4e4 | 8839 | |
8840 | fi | |
d5d92632 | 8841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8842 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8844 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8845 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
8846 | $as_echo_n "(cached) " >&6 | |
8847 | else | |
8848 | lt_cv_ld_force_load=no | |
8849 | cat > conftest.c << _LT_EOF | |
8850 | int forced_loaded() { return 2;} | |
8851 | _LT_EOF | |
8852 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8853 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8854 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8855 | $AR cru libconftest.a conftest.o 2>&5 | |
8856 | cat > conftest.c << _LT_EOF | |
8857 | int main() { return 0;} | |
8858 | _LT_EOF | |
8859 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8860 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8861 | _lt_result=$? | |
8862 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8863 | lt_cv_ld_force_load=yes | |
8864 | else | |
8865 | cat conftest.err >&5 | |
8866 | fi | |
8867 | rm -f conftest.err libconftest.a conftest conftest.c | |
8868 | rm -rf conftest.dSYM | |
542f9784 | 8869 | |
8870 | fi | |
d5d92632 | 8871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8872 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8873 | case $host_os in | |
8874 | rhapsody* | darwin1.[012]) | |
8875 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8876 | darwin1.*) | |
8877 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8878 | darwin*) # darwin 5.x on | |
8879 | # if running on 10.5 or later, the deployment target defaults | |
8880 | # to the OS version, if on x86, and 10.4, the deployment | |
8881 | # target defaults to 10.4. Don't you love it? | |
8882 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8883 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8884 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7c407808 | 8885 | 10.[012][,.]*) |
d5d92632 | 8886 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8887 | 10.*) | |
8888 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8889 | esac | |
8890 | ;; | |
8891 | esac | |
8892 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8893 | _lt_dar_single_mod='$single_module' | |
8894 | fi | |
8895 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8896 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8897 | else | |
8898 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8899 | fi | |
8900 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8901 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8902 | else | |
8903 | _lt_dsymutil= | |
8904 | fi | |
8905 | ;; | |
8906 | esac | |
542f9784 | 8907 | |
542f9784 | 8908 | for ac_header in dlfcn.h |
cd9a469c | 8909 | do : |
8910 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8911 | " | |
8912 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
542f9784 | 8913 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 8914 | #define HAVE_DLFCN_H 1 |
90e67cff | 8915 | _ACEOF |
90e67cff | 8916 | |
542f9784 | 8917 | fi |
8918 | ||
8919 | done | |
8920 | ||
8921 | ||
8922 | ||
e6408286 | 8923 | |
8924 | ||
00aafda4 | 8925 | # Set options |
8926 | ||
8927 | ||
8928 | ||
8929 | ||
8930 | enable_win32_dll=no | |
8931 | ||
8932 | ||
cd9a469c | 8933 | # Check whether --enable-shared was given. |
8934 | if test "${enable_shared+set}" = set; then : | |
8935 | enableval=$enable_shared; p=${PACKAGE-default} | |
00aafda4 | 8936 | case $enableval in |
8937 | yes) enable_shared=yes ;; | |
8938 | no) enable_shared=no ;; | |
8939 | *) | |
8940 | enable_shared=no | |
8941 | # Look at the argument we got. We use all the common list separators. | |
8942 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8943 | for pkg in $enableval; do | |
8944 | IFS="$lt_save_ifs" | |
8945 | if test "X$pkg" = "X$p"; then | |
8946 | enable_shared=yes | |
8947 | fi | |
8948 | done | |
8949 | IFS="$lt_save_ifs" | |
8950 | ;; | |
8951 | esac | |
8952 | else | |
8953 | enable_shared=yes | |
cd9a469c | 8954 | fi |
8955 | ||
00aafda4 | 8956 | |
8957 | ||
8958 | ||
8959 | ||
8960 | ||
8961 | ||
8962 | ||
8963 | ||
cd9a469c | 8964 | # Check whether --enable-static was given. |
8965 | if test "${enable_static+set}" = set; then : | |
8966 | enableval=$enable_static; p=${PACKAGE-default} | |
00aafda4 | 8967 | case $enableval in |
8968 | yes) enable_static=yes ;; | |
8969 | no) enable_static=no ;; | |
8970 | *) | |
8971 | enable_static=no | |
8972 | # Look at the argument we got. We use all the common list separators. | |
8973 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8974 | for pkg in $enableval; do | |
8975 | IFS="$lt_save_ifs" | |
8976 | if test "X$pkg" = "X$p"; then | |
8977 | enable_static=yes | |
8978 | fi | |
8979 | done | |
8980 | IFS="$lt_save_ifs" | |
8981 | ;; | |
8982 | esac | |
8983 | else | |
8984 | enable_static=yes | |
cd9a469c | 8985 | fi |
8986 | ||
00aafda4 | 8987 | |
8988 | ||
8989 | ||
8990 | ||
8991 | ||
8992 | ||
8993 | ||
8994 | ||
8995 | ||
cd9a469c | 8996 | # Check whether --with-pic was given. |
8997 | if test "${with_pic+set}" = set; then : | |
8998 | withval=$with_pic; pic_mode="$withval" | |
00aafda4 | 8999 | else |
9000 | pic_mode=default | |
cd9a469c | 9001 | fi |
9002 | ||
00aafda4 | 9003 | |
9004 | test -z "$pic_mode" && pic_mode=default | |
9005 | ||
9006 | ||
9007 | ||
9008 | ||
9009 | ||
9010 | ||
9011 | ||
cd9a469c | 9012 | # Check whether --enable-fast-install was given. |
9013 | if test "${enable_fast_install+set}" = set; then : | |
9014 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
00aafda4 | 9015 | case $enableval in |
9016 | yes) enable_fast_install=yes ;; | |
9017 | no) enable_fast_install=no ;; | |
9018 | *) | |
9019 | enable_fast_install=no | |
9020 | # Look at the argument we got. We use all the common list separators. | |
9021 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9022 | for pkg in $enableval; do | |
9023 | IFS="$lt_save_ifs" | |
9024 | if test "X$pkg" = "X$p"; then | |
9025 | enable_fast_install=yes | |
9026 | fi | |
9027 | done | |
9028 | IFS="$lt_save_ifs" | |
9029 | ;; | |
9030 | esac | |
9031 | else | |
9032 | enable_fast_install=yes | |
cd9a469c | 9033 | fi |
9034 | ||
00aafda4 | 9035 | |
9036 | ||
9037 | ||
9038 | ||
9039 | ||
9040 | ||
9041 | ||
9042 | ||
9043 | ||
9044 | ||
542f9784 | 9045 | # This can be used to rebuild libtool when needed |
9046 | LIBTOOL_DEPS="$ltmain" | |
9047 | ||
9048 | # Always use our own libtool. | |
9049 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9050 | ||
9051 | ||
9052 | ||
9053 | ||
9054 | ||
9055 | ||
9056 | ||
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | ||
9062 | ||
9063 | ||
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | ||
9071 | ||
9072 | ||
e6408286 | 9073 | |
542f9784 | 9074 | |
9075 | ||
9076 | test -z "$LN_S" && LN_S="ln -s" | |
9077 | ||
9078 | ||
9079 | ||
9080 | ||
9081 | ||
90e67cff | 9082 | |
542f9784 | 9083 | |
9084 | ||
9085 | ||
9086 | ||
9087 | ||
9088 | ||
9089 | ||
9090 | ||
9091 | if test -n "${ZSH_VERSION+set}" ; then | |
9092 | setopt NO_GLOB_SUBST | |
90e67cff | 9093 | fi |
90e67cff | 9094 | |
cd9a469c | 9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9096 | $as_echo_n "checking for objdir... " >&6; } | |
9097 | if test "${lt_cv_objdir+set}" = set; then : | |
9098 | $as_echo_n "(cached) " >&6 | |
90e67cff | 9099 | else |
542f9784 | 9100 | rm -f .libs 2>/dev/null |
9101 | mkdir .libs 2>/dev/null | |
9102 | if test -d .libs; then | |
9103 | lt_cv_objdir=.libs | |
9104 | else | |
9105 | # MS-DOS does not allow filenames that begin with a dot. | |
9106 | lt_cv_objdir=_libs | |
90e67cff | 9107 | fi |
542f9784 | 9108 | rmdir .libs 2>/dev/null |
90e67cff | 9109 | fi |
cd9a469c | 9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9111 | $as_echo "$lt_cv_objdir" >&6; } | |
542f9784 | 9112 | objdir=$lt_cv_objdir |
9113 | ||
9114 | ||
9115 | ||
9116 | ||
90e67cff | 9117 | |
9118 | cat >>confdefs.h <<_ACEOF | |
542f9784 | 9119 | #define LT_OBJDIR "$lt_cv_objdir/" |
90e67cff | 9120 | _ACEOF |
9121 | ||
542f9784 | 9122 | |
9123 | ||
9124 | ||
542f9784 | 9125 | case $host_os in |
9126 | aix3*) | |
9127 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9128 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9129 | # vanish in a puff of smoke. | |
9130 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9131 | COLLECT_NAMES= | |
9132 | export COLLECT_NAMES | |
9133 | fi | |
9134 | ;; | |
9135 | esac | |
9136 | ||
542f9784 | 9137 | # Global variables: |
9138 | ofile=libtool | |
9139 | can_build_shared=yes | |
9140 | ||
9141 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9142 | # which needs '.lib'). | |
9143 | libext=a | |
9144 | ||
9145 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9146 | ||
9147 | old_CC="$CC" | |
9148 | old_CFLAGS="$CFLAGS" | |
9149 | ||
9150 | # Set sane defaults for various variables | |
9151 | test -z "$CC" && CC=cc | |
9152 | test -z "$LTCC" && LTCC=$CC | |
9153 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9154 | test -z "$LD" && LD=ld | |
9155 | test -z "$ac_objext" && ac_objext=o | |
9156 | ||
9157 | for cc_temp in $compiler""; do | |
9158 | case $cc_temp in | |
9159 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9160 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9161 | \-*) ;; | |
9162 | *) break;; | |
9163 | esac | |
9164 | done | |
e6408286 | 9165 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 9166 | |
9167 | ||
9168 | # Only perform the check for file, if the check method requires it | |
9169 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9170 | case $deplibs_check_method in | |
9171 | file_magic*) | |
9172 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
cd9a469c | 9173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9174 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9175 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
9176 | $as_echo_n "(cached) " >&6 | |
90e67cff | 9177 | else |
542f9784 | 9178 | case $MAGIC_CMD in |
9179 | [\\/*] | ?:[\\/]*) | |
9180 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9181 | ;; | |
9182 | *) | |
9183 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9184 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9185 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9186 | for ac_dir in $ac_dummy; do | |
9187 | IFS="$lt_save_ifs" | |
9188 | test -z "$ac_dir" && ac_dir=. | |
9189 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9190 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9191 | if test -n "$file_magic_test_file"; then | |
9192 | case $deplibs_check_method in | |
9193 | "file_magic "*) | |
9194 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9195 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9196 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9197 | $EGREP "$file_magic_regex" > /dev/null; then | |
9198 | : | |
9199 | else | |
9200 | cat <<_LT_EOF 1>&2 | |
90e67cff | 9201 | |
542f9784 | 9202 | *** Warning: the command libtool uses to detect shared libraries, |
9203 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9204 | *** The result is that libtool may fail to recognize shared libraries | |
9205 | *** as such. This will affect the creation of libtool libraries that | |
9206 | *** depend on shared libraries, but programs linked with such libtool | |
9207 | *** libraries will work regardless of this problem. Nevertheless, you | |
9208 | *** may want to report the problem to your system manager and/or to | |
9209 | *** bug-libtool@gnu.org | |
9210 | ||
9211 | _LT_EOF | |
9212 | fi ;; | |
9213 | esac | |
9214 | fi | |
9215 | break | |
9216 | fi | |
9217 | done | |
9218 | IFS="$lt_save_ifs" | |
9219 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9220 | ;; | |
9221 | esac | |
9222 | fi | |
9223 | ||
9224 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9225 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9227 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 9228 | else |
cd9a469c | 9229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9230 | $as_echo "no" >&6; } | |
542f9784 | 9231 | fi |
9232 | ||
9233 | ||
9234 | ||
9235 | ||
9236 | ||
9237 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9238 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9240 | $as_echo_n "checking for file... " >&6; } | |
9241 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
9242 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9243 | else |
9244 | case $MAGIC_CMD in | |
9245 | [\\/*] | ?:[\\/]*) | |
9246 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9247 | ;; | |
9248 | *) | |
9249 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9250 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9251 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9252 | for ac_dir in $ac_dummy; do | |
9253 | IFS="$lt_save_ifs" | |
9254 | test -z "$ac_dir" && ac_dir=. | |
9255 | if test -f $ac_dir/file; then | |
9256 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9257 | if test -n "$file_magic_test_file"; then | |
9258 | case $deplibs_check_method in | |
9259 | "file_magic "*) | |
9260 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9261 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9262 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9263 | $EGREP "$file_magic_regex" > /dev/null; then | |
9264 | : | |
9265 | else | |
9266 | cat <<_LT_EOF 1>&2 | |
9267 | ||
9268 | *** Warning: the command libtool uses to detect shared libraries, | |
9269 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9270 | *** The result is that libtool may fail to recognize shared libraries | |
9271 | *** as such. This will affect the creation of libtool libraries that | |
9272 | *** depend on shared libraries, but programs linked with such libtool | |
9273 | *** libraries will work regardless of this problem. Nevertheless, you | |
9274 | *** may want to report the problem to your system manager and/or to | |
9275 | *** bug-libtool@gnu.org | |
9276 | ||
9277 | _LT_EOF | |
9278 | fi ;; | |
9279 | esac | |
9280 | fi | |
9281 | break | |
9282 | fi | |
9283 | done | |
9284 | IFS="$lt_save_ifs" | |
9285 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9286 | ;; | |
9287 | esac | |
9288 | fi | |
9289 | ||
9290 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9291 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 9292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9293 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 9294 | else |
cd9a469c | 9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9296 | $as_echo "no" >&6; } | |
542f9784 | 9297 | fi |
9298 | ||
9299 | ||
9300 | else | |
9301 | MAGIC_CMD=: | |
9302 | fi | |
9303 | fi | |
9304 | ||
9305 | fi | |
9306 | ;; | |
9307 | esac | |
9308 | ||
9309 | # Use C for the default configuration in the libtool script | |
9310 | ||
9311 | lt_save_CC="$CC" | |
9312 | ac_ext=c | |
9313 | ac_cpp='$CPP $CPPFLAGS' | |
9314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9317 | ||
9318 | ||
9319 | # Source file extension for C test sources. | |
9320 | ac_ext=c | |
9321 | ||
9322 | # Object file extension for compiled C test sources. | |
9323 | objext=o | |
9324 | objext=$objext | |
9325 | ||
9326 | # Code to be used in simple compile tests | |
9327 | lt_simple_compile_test_code="int some_variable = 0;" | |
9328 | ||
9329 | # Code to be used in simple link tests | |
9330 | lt_simple_link_test_code='int main(){return(0);}' | |
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | # If no C compiler was specified, use CC. | |
9339 | LTCC=${LTCC-"$CC"} | |
9340 | ||
9341 | # If no C compiler flags were specified, use CFLAGS. | |
9342 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9343 | ||
9344 | # Allow CC to be a program name with arguments. | |
9345 | compiler=$CC | |
9346 | ||
9347 | # Save the default compiler, since it gets overwritten when the other | |
9348 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9349 | compiler_DEFAULT=$CC | |
9350 | ||
9351 | # save warnings/boilerplate of simple test code | |
9352 | ac_outfile=conftest.$ac_objext | |
9353 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9354 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9355 | _lt_compiler_boilerplate=`cat conftest.err` | |
9356 | $RM conftest* | |
9357 | ||
9358 | ac_outfile=conftest.$ac_objext | |
9359 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9360 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9361 | _lt_linker_boilerplate=`cat conftest.err` | |
00aafda4 | 9362 | $RM -r conftest* |
542f9784 | 9363 | |
9364 | ||
9365 | ## CAVEAT EMPTOR: | |
9366 | ## There is no encapsulation within the following macros, do not change | |
9367 | ## the running order or otherwise move them around unless you know exactly | |
9368 | ## what you are doing... | |
9369 | if test -n "$compiler"; then | |
9370 | ||
9371 | lt_prog_compiler_no_builtin_flag= | |
9372 | ||
9373 | if test "$GCC" = yes; then | |
e6408286 | 9374 | case $cc_basename in |
9375 | nvcc*) | |
9376 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9377 | *) | |
9378 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9379 | esac | |
542f9784 | 9380 | |
cd9a469c | 9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9382 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9383 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
9384 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9385 | else |
9386 | lt_cv_prog_compiler_rtti_exceptions=no | |
9387 | ac_outfile=conftest.$ac_objext | |
9388 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9389 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9390 | # Insert the option either (1) after the last *FLAGS variable, or | |
9391 | # (2) before a word containing "conftest.", or (3) at the end. | |
9392 | # Note that $ac_compile itself does not contain backslashes and begins | |
9393 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9394 | # The option is referenced via a variable to avoid confusing sed. | |
9395 | lt_compile=`echo "$ac_compile" | $SED \ | |
9396 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9397 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9398 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9399 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9400 | (eval "$lt_compile" 2>conftest.err) |
9401 | ac_status=$? | |
9402 | cat conftest.err >&5 | |
e6408286 | 9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9404 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9405 | # The compiler can only warn and ignore the option if not recognized | |
9406 | # So say no if there are warnings other than the usual output. | |
e6408286 | 9407 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 9408 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9409 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9410 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9411 | fi | |
9412 | fi | |
9413 | $RM conftest* | |
9414 | ||
9415 | fi | |
cd9a469c | 9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9417 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
542f9784 | 9418 | |
9419 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9420 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9421 | else | |
9422 | : | |
9423 | fi | |
9424 | ||
9425 | fi | |
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | lt_prog_compiler_wl= | |
9433 | lt_prog_compiler_pic= | |
9434 | lt_prog_compiler_static= | |
9435 | ||
cd9a469c | 9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9437 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 9438 | |
9439 | if test "$GCC" = yes; then | |
9440 | lt_prog_compiler_wl='-Wl,' | |
9441 | lt_prog_compiler_static='-static' | |
9442 | ||
9443 | case $host_os in | |
9444 | aix*) | |
9445 | # All AIX code is PIC. | |
9446 | if test "$host_cpu" = ia64; then | |
9447 | # AIX 5 now supports IA64 processor | |
9448 | lt_prog_compiler_static='-Bstatic' | |
9449 | fi | |
ccc0b0f9 | 9450 | lt_prog_compiler_pic='-fPIC' |
542f9784 | 9451 | ;; |
9452 | ||
9453 | amigaos*) | |
00aafda4 | 9454 | case $host_cpu in |
9455 | powerpc) | |
9456 | # see comment about AmigaOS4 .so support | |
9457 | lt_prog_compiler_pic='-fPIC' | |
9458 | ;; | |
9459 | m68k) | |
9460 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9461 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9462 | # like `-m68040'. | |
9463 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9464 | ;; | |
9465 | esac | |
542f9784 | 9466 | ;; |
9467 | ||
9468 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9469 | # PIC is the default for these OSes. | |
9470 | ;; | |
9471 | ||
00aafda4 | 9472 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 9473 | # This hack is so that the source file can tell whether it is being |
9474 | # built for inclusion in a dll (and should export symbols for example). | |
9475 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9476 | # (--disable-auto-import) libraries | |
9477 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9478 | ;; | |
9479 | ||
9480 | darwin* | rhapsody*) | |
9481 | # PIC is the default on this platform | |
9482 | # Common symbols not allowed in MH_DYLIB files | |
9483 | lt_prog_compiler_pic='-fno-common' | |
9484 | ;; | |
9485 | ||
e6408286 | 9486 | haiku*) |
9487 | # PIC is the default for Haiku. | |
9488 | # The "-static" flag exists, but is broken. | |
9489 | lt_prog_compiler_static= | |
9490 | ;; | |
9491 | ||
542f9784 | 9492 | hpux*) |
00aafda4 | 9493 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9494 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9495 | # sets the default TLS model and affects inlining. | |
542f9784 | 9496 | case $host_cpu in |
00aafda4 | 9497 | hppa*64*) |
542f9784 | 9498 | # +Z the default |
9499 | ;; | |
9500 | *) | |
9501 | lt_prog_compiler_pic='-fPIC' | |
9502 | ;; | |
9503 | esac | |
9504 | ;; | |
9505 | ||
9506 | interix[3-9]*) | |
9507 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9508 | # Instead, we relocate shared libraries at runtime. | |
9509 | ;; | |
9510 | ||
9511 | msdosdjgpp*) | |
9512 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9513 | # on systems that don't support them. | |
9514 | lt_prog_compiler_can_build_shared=no | |
9515 | enable_shared=no | |
9516 | ;; | |
9517 | ||
9518 | *nto* | *qnx*) | |
9519 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9520 | # it will coredump. | |
9521 | lt_prog_compiler_pic='-fPIC -shared' | |
9522 | ;; | |
9523 | ||
9524 | sysv4*MP*) | |
9525 | if test -d /usr/nec; then | |
9526 | lt_prog_compiler_pic=-Kconform_pic | |
9527 | fi | |
9528 | ;; | |
9529 | ||
9530 | *) | |
9531 | lt_prog_compiler_pic='-fPIC' | |
9532 | ;; | |
9533 | esac | |
e6408286 | 9534 | |
9535 | case $cc_basename in | |
9536 | nvcc*) # Cuda Compiler Driver 2.2 | |
9537 | lt_prog_compiler_wl='-Xlinker ' | |
9538 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9539 | ;; | |
9540 | esac | |
542f9784 | 9541 | else |
9542 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9543 | case $host_os in | |
9544 | aix*) | |
9545 | lt_prog_compiler_wl='-Wl,' | |
9546 | if test "$host_cpu" = ia64; then | |
9547 | # AIX 5 now supports IA64 processor | |
9548 | lt_prog_compiler_static='-Bstatic' | |
9549 | else | |
9550 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9551 | fi | |
9552 | ;; | |
542f9784 | 9553 | |
00aafda4 | 9554 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 9555 | # This hack is so that the source file can tell whether it is being |
9556 | # built for inclusion in a dll (and should export symbols for example). | |
9557 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9558 | ;; | |
9559 | ||
9560 | hpux9* | hpux10* | hpux11*) | |
9561 | lt_prog_compiler_wl='-Wl,' | |
9562 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9563 | # not for PA HP-UX. | |
9564 | case $host_cpu in | |
9565 | hppa*64*|ia64*) | |
9566 | # +Z the default | |
9567 | ;; | |
9568 | *) | |
9569 | lt_prog_compiler_pic='+Z' | |
9570 | ;; | |
9571 | esac | |
9572 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9573 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9574 | ;; | |
9575 | ||
9576 | irix5* | irix6* | nonstopux*) | |
9577 | lt_prog_compiler_wl='-Wl,' | |
9578 | # PIC (with -KPIC) is the default. | |
9579 | lt_prog_compiler_static='-non_shared' | |
9580 | ;; | |
9581 | ||
9af964d4 | 9582 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 9583 | case $cc_basename in |
00aafda4 | 9584 | # old Intel for x86_64 which still supported -KPIC. |
9585 | ecc*) | |
542f9784 | 9586 | lt_prog_compiler_wl='-Wl,' |
9587 | lt_prog_compiler_pic='-KPIC' | |
9588 | lt_prog_compiler_static='-static' | |
9589 | ;; | |
00aafda4 | 9590 | # icc used to be incompatible with GCC. |
9591 | # ICC 10 doesn't accept -KPIC any more. | |
9592 | icc* | ifort*) | |
9593 | lt_prog_compiler_wl='-Wl,' | |
9594 | lt_prog_compiler_pic='-fPIC' | |
9595 | lt_prog_compiler_static='-static' | |
9596 | ;; | |
9597 | # Lahey Fortran 8.1. | |
9598 | lf95*) | |
9599 | lt_prog_compiler_wl='-Wl,' | |
9600 | lt_prog_compiler_pic='--shared' | |
9601 | lt_prog_compiler_static='--static' | |
9602 | ;; | |
e6408286 | 9603 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 9604 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9605 | # which looks to be a dead project) | |
9606 | lt_prog_compiler_wl='-Wl,' | |
9607 | lt_prog_compiler_pic='-fpic' | |
9608 | lt_prog_compiler_static='-Bstatic' | |
9609 | ;; | |
9610 | ccc*) | |
9611 | lt_prog_compiler_wl='-Wl,' | |
9612 | # All Alpha code is PIC. | |
9613 | lt_prog_compiler_static='-non_shared' | |
9614 | ;; | |
e6408286 | 9615 | xl* | bgxl* | bgf* | mpixl*) |
9616 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
00aafda4 | 9617 | lt_prog_compiler_wl='-Wl,' |
9618 | lt_prog_compiler_pic='-qpic' | |
9619 | lt_prog_compiler_static='-qstaticlink' | |
9620 | ;; | |
542f9784 | 9621 | *) |
9622 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 9623 | *Sun\ F* | *Sun*Fortran*) |
9624 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 9625 | lt_prog_compiler_pic='-KPIC' |
9626 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 9627 | lt_prog_compiler_wl='' |
542f9784 | 9628 | ;; |
e6408286 | 9629 | *Sun\ C*) |
9630 | # Sun C 5.9 | |
542f9784 | 9631 | lt_prog_compiler_pic='-KPIC' |
9632 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 9633 | lt_prog_compiler_wl='-Wl,' |
542f9784 | 9634 | ;; |
9635 | esac | |
9636 | ;; | |
9637 | esac | |
9638 | ;; | |
9639 | ||
9640 | newsos6) | |
9641 | lt_prog_compiler_pic='-KPIC' | |
9642 | lt_prog_compiler_static='-Bstatic' | |
9643 | ;; | |
9644 | ||
9645 | *nto* | *qnx*) | |
9646 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9647 | # it will coredump. | |
9648 | lt_prog_compiler_pic='-fPIC -shared' | |
9649 | ;; | |
9650 | ||
9651 | osf3* | osf4* | osf5*) | |
9652 | lt_prog_compiler_wl='-Wl,' | |
9653 | # All OSF/1 code is PIC. | |
9654 | lt_prog_compiler_static='-non_shared' | |
9655 | ;; | |
9656 | ||
9657 | rdos*) | |
9658 | lt_prog_compiler_static='-non_shared' | |
9659 | ;; | |
9660 | ||
9661 | solaris*) | |
9662 | lt_prog_compiler_pic='-KPIC' | |
9663 | lt_prog_compiler_static='-Bstatic' | |
9664 | case $cc_basename in | |
9665 | f77* | f90* | f95*) | |
9666 | lt_prog_compiler_wl='-Qoption ld ';; | |
9667 | *) | |
9668 | lt_prog_compiler_wl='-Wl,';; | |
9669 | esac | |
9670 | ;; | |
9671 | ||
9672 | sunos4*) | |
9673 | lt_prog_compiler_wl='-Qoption ld ' | |
9674 | lt_prog_compiler_pic='-PIC' | |
9675 | lt_prog_compiler_static='-Bstatic' | |
9676 | ;; | |
9677 | ||
9678 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9679 | lt_prog_compiler_wl='-Wl,' | |
9680 | lt_prog_compiler_pic='-KPIC' | |
9681 | lt_prog_compiler_static='-Bstatic' | |
9682 | ;; | |
9683 | ||
9684 | sysv4*MP*) | |
9685 | if test -d /usr/nec ;then | |
9686 | lt_prog_compiler_pic='-Kconform_pic' | |
9687 | lt_prog_compiler_static='-Bstatic' | |
9688 | fi | |
9689 | ;; | |
9690 | ||
9691 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9692 | lt_prog_compiler_wl='-Wl,' | |
9693 | lt_prog_compiler_pic='-KPIC' | |
9694 | lt_prog_compiler_static='-Bstatic' | |
9695 | ;; | |
9696 | ||
9697 | unicos*) | |
9698 | lt_prog_compiler_wl='-Wl,' | |
9699 | lt_prog_compiler_can_build_shared=no | |
9700 | ;; | |
9701 | ||
9702 | uts4*) | |
9703 | lt_prog_compiler_pic='-pic' | |
9704 | lt_prog_compiler_static='-Bstatic' | |
9705 | ;; | |
9706 | ||
9707 | *) | |
9708 | lt_prog_compiler_can_build_shared=no | |
9709 | ;; | |
9710 | esac | |
9711 | fi | |
9712 | ||
9713 | case $host_os in | |
9714 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9715 | *djgpp*) | |
9716 | lt_prog_compiler_pic= | |
9717 | ;; | |
9718 | *) | |
9719 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9720 | ;; | |
9721 | esac | |
cd9a469c | 9722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
9723 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
542f9784 | 9724 | |
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | ||
9730 | # | |
9731 | # Check to make sure the PIC flag actually works. | |
9732 | # | |
9733 | if test -n "$lt_prog_compiler_pic"; then | |
cd9a469c | 9734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
9735 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9736 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
9737 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9738 | else |
00aafda4 | 9739 | lt_cv_prog_compiler_pic_works=no |
542f9784 | 9740 | ac_outfile=conftest.$ac_objext |
9741 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9742 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9743 | # Insert the option either (1) after the last *FLAGS variable, or | |
9744 | # (2) before a word containing "conftest.", or (3) at the end. | |
9745 | # Note that $ac_compile itself does not contain backslashes and begins | |
9746 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9747 | # The option is referenced via a variable to avoid confusing sed. | |
9748 | lt_compile=`echo "$ac_compile" | $SED \ | |
9749 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9750 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9751 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9752 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9753 | (eval "$lt_compile" 2>conftest.err) |
9754 | ac_status=$? | |
9755 | cat conftest.err >&5 | |
e6408286 | 9756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9757 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9758 | # The compiler can only warn and ignore the option if not recognized | |
9759 | # So say no if there are warnings other than the usual output. | |
e6408286 | 9760 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 9761 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9762 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 9763 | lt_cv_prog_compiler_pic_works=yes |
542f9784 | 9764 | fi |
9765 | fi | |
9766 | $RM conftest* | |
9767 | ||
9768 | fi | |
cd9a469c | 9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9770 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
542f9784 | 9771 | |
00aafda4 | 9772 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
542f9784 | 9773 | case $lt_prog_compiler_pic in |
9774 | "" | " "*) ;; | |
9775 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9776 | esac | |
9777 | else | |
9778 | lt_prog_compiler_pic= | |
9779 | lt_prog_compiler_can_build_shared=no | |
9780 | fi | |
9781 | ||
9782 | fi | |
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | ||
9789 | # | |
9790 | # Check to make sure the static flag actually works. | |
9791 | # | |
9792 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
cd9a469c | 9793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9794 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9795 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
9796 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9797 | else |
00aafda4 | 9798 | lt_cv_prog_compiler_static_works=no |
542f9784 | 9799 | save_LDFLAGS="$LDFLAGS" |
9800 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9801 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9802 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9803 | # The linker can only warn and ignore the option if not recognized | |
9804 | # So say no if there are warnings | |
9805 | if test -s conftest.err; then | |
9806 | # Append any errors to the config.log. | |
9807 | cat conftest.err 1>&5 | |
e6408286 | 9808 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 9809 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9810 | if diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 9811 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 9812 | fi |
9813 | else | |
00aafda4 | 9814 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 9815 | fi |
9816 | fi | |
00aafda4 | 9817 | $RM -r conftest* |
542f9784 | 9818 | LDFLAGS="$save_LDFLAGS" |
9819 | ||
9820 | fi | |
cd9a469c | 9821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9822 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
542f9784 | 9823 | |
00aafda4 | 9824 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
542f9784 | 9825 | : |
9826 | else | |
9827 | lt_prog_compiler_static= | |
9828 | fi | |
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
cd9a469c | 9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9837 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9838 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9839 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9840 | else |
9841 | lt_cv_prog_compiler_c_o=no | |
9842 | $RM -r conftest 2>/dev/null | |
9843 | mkdir conftest | |
9844 | cd conftest | |
9845 | mkdir out | |
9846 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9847 | ||
9848 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9849 | # Insert the option either (1) after the last *FLAGS variable, or | |
9850 | # (2) before a word containing "conftest.", or (3) at the end. | |
9851 | # Note that $ac_compile itself does not contain backslashes and begins | |
9852 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9853 | lt_compile=`echo "$ac_compile" | $SED \ | |
9854 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9855 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9856 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9857 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9858 | (eval "$lt_compile" 2>out/conftest.err) |
9859 | ac_status=$? | |
9860 | cat out/conftest.err >&5 | |
e6408286 | 9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9862 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9863 | then | |
9864 | # The compiler can only warn and ignore the option if not recognized | |
9865 | # So say no if there are warnings | |
e6408286 | 9866 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 9867 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9868 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9869 | lt_cv_prog_compiler_c_o=yes | |
9870 | fi | |
9871 | fi | |
9872 | chmod u+w . 2>&5 | |
9873 | $RM conftest* | |
9874 | # SGI C++ compiler will create directory out/ii_files/ for | |
9875 | # template instantiation | |
9876 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9877 | $RM out/* && rmdir out | |
9878 | cd .. | |
9879 | $RM -r conftest | |
9880 | $RM conftest* | |
9881 | ||
9882 | fi | |
cd9a469c | 9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9884 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 9885 | |
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
cd9a469c | 9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9892 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9893 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9894 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9895 | else |
9896 | lt_cv_prog_compiler_c_o=no | |
9897 | $RM -r conftest 2>/dev/null | |
9898 | mkdir conftest | |
9899 | cd conftest | |
9900 | mkdir out | |
9901 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9902 | ||
9903 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9904 | # Insert the option either (1) after the last *FLAGS variable, or | |
9905 | # (2) before a word containing "conftest.", or (3) at the end. | |
9906 | # Note that $ac_compile itself does not contain backslashes and begins | |
9907 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9908 | lt_compile=`echo "$ac_compile" | $SED \ | |
9909 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9910 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9911 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9912 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9913 | (eval "$lt_compile" 2>out/conftest.err) |
9914 | ac_status=$? | |
9915 | cat out/conftest.err >&5 | |
e6408286 | 9916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9917 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9918 | then | |
9919 | # The compiler can only warn and ignore the option if not recognized | |
9920 | # So say no if there are warnings | |
e6408286 | 9921 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 9922 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9923 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9924 | lt_cv_prog_compiler_c_o=yes | |
9925 | fi | |
9926 | fi | |
9927 | chmod u+w . 2>&5 | |
9928 | $RM conftest* | |
9929 | # SGI C++ compiler will create directory out/ii_files/ for | |
9930 | # template instantiation | |
9931 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9932 | $RM out/* && rmdir out | |
9933 | cd .. | |
9934 | $RM -r conftest | |
9935 | $RM conftest* | |
9936 | ||
9937 | fi | |
cd9a469c | 9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9939 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 9940 | |
9941 | ||
9942 | ||
9943 | ||
9944 | hard_links="nottested" | |
9945 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9946 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9948 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 9949 | hard_links=yes |
9950 | $RM conftest* | |
9951 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9952 | touch conftest.a | |
9953 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9954 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9956 | $as_echo "$hard_links" >&6; } | |
542f9784 | 9957 | if test "$hard_links" = no; then |
cd9a469c | 9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9959 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 9960 | need_locks=warn |
9961 | fi | |
9962 | else | |
9963 | need_locks=no | |
9964 | fi | |
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
cd9a469c | 9971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9972 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 9973 | |
9974 | runpath_var= | |
9975 | allow_undefined_flag= | |
9976 | always_export_symbols=no | |
9977 | archive_cmds= | |
9978 | archive_expsym_cmds= | |
9979 | compiler_needs_object=no | |
9980 | enable_shared_with_static_runtimes=no | |
9981 | export_dynamic_flag_spec= | |
9982 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9983 | hardcode_automatic=no | |
9984 | hardcode_direct=no | |
9985 | hardcode_direct_absolute=no | |
9986 | hardcode_libdir_flag_spec= | |
9987 | hardcode_libdir_flag_spec_ld= | |
9988 | hardcode_libdir_separator= | |
9989 | hardcode_minus_L=no | |
9990 | hardcode_shlibpath_var=unsupported | |
9991 | inherit_rpath=no | |
9992 | link_all_deplibs=unknown | |
9993 | module_cmds= | |
9994 | module_expsym_cmds= | |
9995 | old_archive_from_new_cmds= | |
9996 | old_archive_from_expsyms_cmds= | |
9997 | thread_safe_flag_spec= | |
9998 | whole_archive_flag_spec= | |
9999 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10000 | # included in the symbol list | |
10001 | include_expsyms= | |
10002 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10003 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10004 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10005 | # as well as any symbol that contains `d'. | |
00aafda4 | 10006 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 10007 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10008 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10009 | # the symbol is explicitly referenced. Since portable code cannot | |
10010 | # rely on this symbol name, it's probably fine to never include it in | |
10011 | # preloaded symbol tables. | |
00aafda4 | 10012 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 10013 | extract_expsyms_cmds= |
10014 | ||
10015 | case $host_os in | |
00aafda4 | 10016 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10017 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10018 | # When not using gcc, we currently assume that we are using | |
10019 | # Microsoft Visual C++. | |
10020 | if test "$GCC" != yes; then | |
10021 | with_gnu_ld=no | |
10022 | fi | |
10023 | ;; | |
10024 | interix*) | |
10025 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10026 | with_gnu_ld=yes | |
10027 | ;; | |
10028 | openbsd*) | |
10029 | with_gnu_ld=no | |
10030 | ;; | |
10031 | esac | |
10032 | ||
10033 | ld_shlibs=yes | |
e6408286 | 10034 | |
10035 | # On some targets, GNU ld is compatible enough with the native linker | |
10036 | # that we're better off using the native interface for both. | |
10037 | lt_use_gnu_ld_interface=no | |
542f9784 | 10038 | if test "$with_gnu_ld" = yes; then |
e6408286 | 10039 | case $host_os in |
10040 | aix*) | |
10041 | # The AIX port of GNU ld has always aspired to compatibility | |
10042 | # with the native linker. However, as the warning in the GNU ld | |
10043 | # block says, versions before 2.19.5* couldn't really create working | |
10044 | # shared libraries, regardless of the interface used. | |
10045 | case `$LD -v 2>&1` in | |
10046 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10047 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10048 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10049 | *) | |
10050 | lt_use_gnu_ld_interface=yes | |
10051 | ;; | |
10052 | esac | |
10053 | ;; | |
10054 | *) | |
10055 | lt_use_gnu_ld_interface=yes | |
10056 | ;; | |
10057 | esac | |
10058 | fi | |
10059 | ||
10060 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 10061 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10062 | wlarc='${wl}' | |
10063 | ||
10064 | # Set some defaults for GNU ld with shared library support. These | |
10065 | # are reset later if shared libraries are not supported. Putting them | |
10066 | # here allows them to be overridden if necessary. | |
10067 | runpath_var=LD_RUN_PATH | |
10068 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10069 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10070 | # ancient GNU ld didn't support --whole-archive et. al. | |
10071 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10072 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10073 | else | |
10074 | whole_archive_flag_spec= | |
10075 | fi | |
10076 | supports_anon_versioning=no | |
10077 | case `$LD -v 2>&1` in | |
e6408286 | 10078 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 10079 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10080 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10081 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10082 | *\ 2.11.*) ;; # other 2.11 versions | |
10083 | *) supports_anon_versioning=yes ;; | |
10084 | esac | |
10085 | ||
10086 | # See if GNU ld supports shared libraries. | |
10087 | case $host_os in | |
21e07d2f | 10088 | aix[3-9]*) |
542f9784 | 10089 | # On AIX/PPC, the GNU linker is very broken |
10090 | if test "$host_cpu" != ia64; then | |
10091 | ld_shlibs=no | |
10092 | cat <<_LT_EOF 1>&2 | |
10093 | ||
e6408286 | 10094 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 10095 | *** to be unable to reliably create shared libraries on AIX. |
10096 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 10097 | *** really care for shared libraries, you may want to install binutils |
10098 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10099 | *** You will then need to restart the configuration process. | |
542f9784 | 10100 | |
10101 | _LT_EOF | |
10102 | fi | |
10103 | ;; | |
10104 | ||
10105 | amigaos*) | |
00aafda4 | 10106 | case $host_cpu in |
10107 | powerpc) | |
10108 | # see comment about AmigaOS4 .so support | |
10109 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10110 | archive_expsym_cmds='' | |
10111 | ;; | |
10112 | m68k) | |
10113 | 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)' | |
10114 | hardcode_libdir_flag_spec='-L$libdir' | |
10115 | hardcode_minus_L=yes | |
10116 | ;; | |
10117 | esac | |
542f9784 | 10118 | ;; |
10119 | ||
10120 | beos*) | |
10121 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10122 | allow_undefined_flag=unsupported | |
10123 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10124 | # support --undefined. This deserves some investigation. FIXME | |
10125 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10126 | else | |
10127 | ld_shlibs=no | |
10128 | fi | |
10129 | ;; | |
10130 | ||
00aafda4 | 10131 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10132 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10133 | # as there is no search path for DLLs. | |
10134 | hardcode_libdir_flag_spec='-L$libdir' | |
e6408286 | 10135 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
542f9784 | 10136 | allow_undefined_flag=unsupported |
10137 | always_export_symbols=no | |
10138 | enable_shared_with_static_runtimes=yes | |
10139 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10140 | ||
10141 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10142 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10143 | # If the export-symbols file already is a .def file (1st line | |
10144 | # is EXPORTS), use it as is; otherwise, prepend... | |
10145 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10146 | cp $export_symbols $output_objdir/$soname.def; | |
10147 | else | |
10148 | echo EXPORTS > $output_objdir/$soname.def; | |
10149 | cat $export_symbols >> $output_objdir/$soname.def; | |
10150 | fi~ | |
10151 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10152 | else | |
10153 | ld_shlibs=no | |
10154 | fi | |
10155 | ;; | |
10156 | ||
e6408286 | 10157 | haiku*) |
10158 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10159 | link_all_deplibs=yes | |
10160 | ;; | |
10161 | ||
542f9784 | 10162 | interix[3-9]*) |
10163 | hardcode_direct=no | |
10164 | hardcode_shlibpath_var=no | |
10165 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10166 | export_dynamic_flag_spec='${wl}-E' | |
10167 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10168 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10169 | # default) and relocated if they conflict, which is a slow very memory | |
10170 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10171 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10172 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10173 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10174 | 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' | |
10175 | ;; | |
10176 | ||
9af964d4 | 10177 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 10178 | tmp_diet=no |
10179 | if test "$host_os" = linux-dietlibc; then | |
10180 | case $cc_basename in | |
10181 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10182 | esac | |
10183 | fi | |
10184 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10185 | && test "$tmp_diet" = no | |
10186 | then | |
4e8a08d4 | 10187 | tmp_addflag=' $pic_flag' |
00aafda4 | 10188 | tmp_sharedflag='-shared' |
542f9784 | 10189 | case $cc_basename,$host_cpu in |
10190 | pgcc*) # Portland Group C compiler | |
e6408286 | 10191 | 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' |
542f9784 | 10192 | tmp_addflag=' $pic_flag' |
10193 | ;; | |
e6408286 | 10194 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10195 | # Portland Group f77 and f90 compilers | |
10196 | 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' | |
542f9784 | 10197 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10198 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10199 | tmp_addflag=' -i_dynamic' ;; | |
10200 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10201 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10202 | ifc* | ifort*) # Intel Fortran compiler | |
10203 | tmp_addflag=' -nofor_main' ;; | |
00aafda4 | 10204 | lf95*) # Lahey Fortran 8.1 |
10205 | whole_archive_flag_spec= | |
10206 | tmp_sharedflag='--shared' ;; | |
e6408286 | 10207 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
00aafda4 | 10208 | tmp_sharedflag='-qmkshrobj' |
10209 | tmp_addflag= ;; | |
e6408286 | 10210 | nvcc*) # Cuda Compiler Driver 2.2 |
10211 | 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' | |
10212 | compiler_needs_object=yes | |
10213 | ;; | |
542f9784 | 10214 | esac |
10215 | case `$CC -V 2>&1 | sed 5q` in | |
10216 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 10217 | 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' |
542f9784 | 10218 | compiler_needs_object=yes |
10219 | tmp_sharedflag='-G' ;; | |
10220 | *Sun\ F*) # Sun Fortran 8.3 | |
10221 | tmp_sharedflag='-G' ;; | |
542f9784 | 10222 | esac |
10223 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10224 | ||
10225 | if test "x$supports_anon_versioning" = xyes; then | |
10226 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10227 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10228 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10229 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10230 | fi | |
00aafda4 | 10231 | |
10232 | case $cc_basename in | |
e6408286 | 10233 | xlf* | bgf* | bgxlf* | mpixlf*) |
00aafda4 | 10234 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10235 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10236 | hardcode_libdir_flag_spec= | |
10237 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10238 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10239 | if test "x$supports_anon_versioning" = xyes; then | |
10240 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10241 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10242 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10243 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10244 | fi | |
10245 | ;; | |
10246 | esac | |
542f9784 | 10247 | else |
10248 | ld_shlibs=no | |
10249 | fi | |
10250 | ;; | |
10251 | ||
10252 | netbsd*) | |
10253 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10254 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10255 | wlarc= | |
10256 | else | |
10257 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10258 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10259 | fi | |
10260 | ;; | |
10261 | ||
10262 | solaris*) | |
10263 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10264 | ld_shlibs=no | |
10265 | cat <<_LT_EOF 1>&2 | |
10266 | ||
10267 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10268 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10269 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10270 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10271 | *** your PATH or compiler configuration so that the native linker is | |
10272 | *** used, and then restart. | |
10273 | ||
10274 | _LT_EOF | |
10275 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10276 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10277 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10278 | else | |
10279 | ld_shlibs=no | |
10280 | fi | |
10281 | ;; | |
10282 | ||
10283 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10284 | case `$LD -v 2>&1` in | |
10285 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10286 | ld_shlibs=no | |
10287 | cat <<_LT_EOF 1>&2 | |
10288 | ||
10289 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10290 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10291 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10292 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10293 | *** your PATH or compiler configuration so that the native linker is | |
10294 | *** used, and then restart. | |
10295 | ||
10296 | _LT_EOF | |
10297 | ;; | |
10298 | *) | |
10299 | # For security reasons, it is highly recommended that you always | |
10300 | # use absolute paths for naming shared libraries, and exclude the | |
10301 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10302 | # requires that you compile everything twice, which is a pain. | |
10303 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10304 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10305 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10306 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10307 | else | |
10308 | ld_shlibs=no | |
10309 | fi | |
10310 | ;; | |
10311 | esac | |
10312 | ;; | |
10313 | ||
10314 | sunos4*) | |
10315 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10316 | wlarc= | |
10317 | hardcode_direct=yes | |
10318 | hardcode_shlibpath_var=no | |
10319 | ;; | |
10320 | ||
10321 | *) | |
10322 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10323 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10324 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10325 | else | |
10326 | ld_shlibs=no | |
10327 | fi | |
10328 | ;; | |
10329 | esac | |
10330 | ||
10331 | if test "$ld_shlibs" = no; then | |
10332 | runpath_var= | |
10333 | hardcode_libdir_flag_spec= | |
10334 | export_dynamic_flag_spec= | |
10335 | whole_archive_flag_spec= | |
10336 | fi | |
10337 | else | |
10338 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10339 | case $host_os in | |
10340 | aix3*) | |
10341 | allow_undefined_flag=unsupported | |
10342 | always_export_symbols=yes | |
10343 | 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' | |
10344 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10345 | # are no directories specified by -L. | |
10346 | hardcode_minus_L=yes | |
10347 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10348 | # Neither direct hardcoding nor static linking is supported with a | |
10349 | # broken collect2. | |
10350 | hardcode_direct=unsupported | |
10351 | fi | |
10352 | ;; | |
10353 | ||
21e07d2f | 10354 | aix[4-9]*) |
542f9784 | 10355 | if test "$host_cpu" = ia64; then |
10356 | # On IA64, the linker does run time linking by default, so we don't | |
10357 | # have to do anything special. | |
10358 | aix_use_runtimelinking=no | |
10359 | exp_sym_flag='-Bexport' | |
10360 | no_entry_flag="" | |
10361 | else | |
10362 | # If we're using GNU nm, then we don't want the "-C" option. | |
10363 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 10364 | # Also, AIX nm treats weak defined symbols like other global |
10365 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 10366 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 10367 | 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' |
542f9784 | 10368 | else |
8c596dcc | 10369 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
542f9784 | 10370 | fi |
10371 | aix_use_runtimelinking=no | |
10372 | ||
10373 | # Test if we are trying to use run time linking or normal | |
10374 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10375 | # need to do runtime linking. | |
21e07d2f | 10376 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 10377 | for ld_flag in $LDFLAGS; do |
10378 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10379 | aix_use_runtimelinking=yes | |
10380 | break | |
10381 | fi | |
10382 | done | |
10383 | ;; | |
10384 | esac | |
10385 | ||
10386 | exp_sym_flag='-bexport' | |
10387 | no_entry_flag='-bnoentry' | |
10388 | fi | |
10389 | ||
10390 | # When large executables or shared objects are built, AIX ld can | |
10391 | # have problems creating the table of contents. If linking a library | |
10392 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10393 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10394 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10395 | ||
10396 | archive_cmds='' | |
10397 | hardcode_direct=yes | |
10398 | hardcode_direct_absolute=yes | |
10399 | hardcode_libdir_separator=':' | |
10400 | link_all_deplibs=yes | |
10401 | file_list_spec='${wl}-f,' | |
10402 | ||
10403 | if test "$GCC" = yes; then | |
10404 | case $host_os in aix4.[012]|aix4.[012].*) | |
10405 | # We only want to do this on AIX 4.2 and lower, the check | |
10406 | # below for broken collect2 doesn't work under 4.3+ | |
10407 | collect2name=`${CC} -print-prog-name=collect2` | |
10408 | if test -f "$collect2name" && | |
10409 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10410 | then | |
10411 | # We have reworked collect2 | |
10412 | : | |
10413 | else | |
10414 | # We have old collect2 | |
10415 | hardcode_direct=unsupported | |
10416 | # It fails to find uninstalled libraries when the uninstalled | |
10417 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10418 | # to unsupported forces relinking | |
10419 | hardcode_minus_L=yes | |
10420 | hardcode_libdir_flag_spec='-L$libdir' | |
10421 | hardcode_libdir_separator= | |
10422 | fi | |
10423 | ;; | |
10424 | esac | |
10425 | shared_flag='-shared' | |
10426 | if test "$aix_use_runtimelinking" = yes; then | |
10427 | shared_flag="$shared_flag "'${wl}-G' | |
10428 | fi | |
10429 | else | |
10430 | # not using gcc | |
10431 | if test "$host_cpu" = ia64; then | |
10432 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10433 | # chokes on -Wl,-G. The following line is correct: | |
10434 | shared_flag='-G' | |
10435 | else | |
10436 | if test "$aix_use_runtimelinking" = yes; then | |
10437 | shared_flag='${wl}-G' | |
10438 | else | |
10439 | shared_flag='${wl}-bM:SRE' | |
10440 | fi | |
10441 | fi | |
10442 | fi | |
10443 | ||
00aafda4 | 10444 | export_dynamic_flag_spec='${wl}-bexpall' |
542f9784 | 10445 | # It seems that -bexpall does not export symbols beginning with |
10446 | # underscore (_), so it is better to generate a list of symbols to export. | |
10447 | always_export_symbols=yes | |
10448 | if test "$aix_use_runtimelinking" = yes; then | |
10449 | # Warning - without using the other runtime loading flags (-brtl), | |
10450 | # -berok will link without error, but may produce a broken library. | |
10451 | allow_undefined_flag='-berok' | |
10452 | # Determine the default libpath from the value encoded in an | |
10453 | # empty executable. | |
10454 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 10455 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10456 | fi |
cd9a469c | 10457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10458 | /* end confdefs.h. */ |
10459 | ||
10460 | int | |
10461 | main () | |
10462 | { | |
10463 | ||
10464 | ; | |
10465 | return 0; | |
10466 | } | |
10467 | _ACEOF | |
cd9a469c | 10468 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 10469 | |
10470 | lt_aix_libpath_sed=' | |
10471 | /Import File Strings/,/^$/ { | |
10472 | /^0/ { | |
10473 | s/^0 *\(.*\)$/\1/ | |
10474 | p | |
10475 | } | |
10476 | }' | |
10477 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10478 | # Check for a 64-bit object if we didn't find anything. | |
10479 | if test -z "$aix_libpath"; then | |
10480 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10481 | fi | |
542f9784 | 10482 | fi |
cd9a469c | 10483 | rm -f core conftest.err conftest.$ac_objext \ |
10484 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10485 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10486 | ||
10487 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 10488 | 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" |
542f9784 | 10489 | else |
10490 | if test "$host_cpu" = ia64; then | |
10491 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10492 | allow_undefined_flag="-z nodefs" | |
10493 | 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" | |
10494 | else | |
10495 | # Determine the default libpath from the value encoded in an | |
10496 | # empty executable. | |
10497 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 10498 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10499 | fi |
cd9a469c | 10500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10501 | /* end confdefs.h. */ |
10502 | ||
10503 | int | |
10504 | main () | |
10505 | { | |
10506 | ||
10507 | ; | |
10508 | return 0; | |
10509 | } | |
10510 | _ACEOF | |
cd9a469c | 10511 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 10512 | |
10513 | lt_aix_libpath_sed=' | |
10514 | /Import File Strings/,/^$/ { | |
10515 | /^0/ { | |
10516 | s/^0 *\(.*\)$/\1/ | |
10517 | p | |
10518 | } | |
10519 | }' | |
10520 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10521 | # Check for a 64-bit object if we didn't find anything. | |
10522 | if test -z "$aix_libpath"; then | |
10523 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10524 | fi | |
542f9784 | 10525 | fi |
cd9a469c | 10526 | rm -f core conftest.err conftest.$ac_objext \ |
10527 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10528 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10529 | ||
10530 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10531 | # Warning - without using the other run time loading flags, | |
10532 | # -berok will link without error, but may produce a broken library. | |
10533 | no_undefined_flag=' ${wl}-bernotok' | |
10534 | allow_undefined_flag=' ${wl}-berok' | |
e6408286 | 10535 | if test "$with_gnu_ld" = yes; then |
10536 | # We only use this code for GNU lds that support --whole-archive. | |
10537 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10538 | else | |
10539 | # Exported symbols can be pulled into shared objects from archives | |
10540 | whole_archive_flag_spec='$convenience' | |
10541 | fi | |
542f9784 | 10542 | archive_cmds_need_lc=yes |
10543 | # This is similar to how AIX traditionally builds its shared libraries. | |
10544 | 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' | |
10545 | fi | |
10546 | fi | |
10547 | ;; | |
10548 | ||
10549 | amigaos*) | |
00aafda4 | 10550 | case $host_cpu in |
10551 | powerpc) | |
10552 | # see comment about AmigaOS4 .so support | |
10553 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10554 | archive_expsym_cmds='' | |
10555 | ;; | |
10556 | m68k) | |
10557 | 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)' | |
10558 | hardcode_libdir_flag_spec='-L$libdir' | |
10559 | hardcode_minus_L=yes | |
10560 | ;; | |
10561 | esac | |
542f9784 | 10562 | ;; |
10563 | ||
10564 | bsdi[45]*) | |
10565 | export_dynamic_flag_spec=-rdynamic | |
10566 | ;; | |
10567 | ||
00aafda4 | 10568 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10569 | # When not using gcc, we currently assume that we are using |
10570 | # Microsoft Visual C++. | |
10571 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10572 | # no search path for DLLs. | |
10573 | hardcode_libdir_flag_spec=' ' | |
10574 | allow_undefined_flag=unsupported | |
10575 | # Tell ltmain to make .lib files, not .a files. | |
10576 | libext=lib | |
10577 | # Tell ltmain to make .dll files, not .so files. | |
10578 | shrext_cmds=".dll" | |
10579 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 10580 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 10581 | # The linker will automatically build a .lib file if we build a DLL. |
10582 | old_archive_from_new_cmds='true' | |
10583 | # FIXME: Should let the user specify the lib program. | |
10584 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10585 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10586 | enable_shared_with_static_runtimes=yes | |
10587 | ;; | |
10588 | ||
10589 | darwin* | rhapsody*) | |
542f9784 | 10590 | |
00aafda4 | 10591 | |
10592 | archive_cmds_need_lc=no | |
10593 | hardcode_direct=no | |
10594 | hardcode_automatic=yes | |
10595 | hardcode_shlibpath_var=unsupported | |
e6408286 | 10596 | if test "$lt_cv_ld_force_load" = "yes"; then |
10597 | 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\"`' | |
10598 | else | |
10599 | whole_archive_flag_spec='' | |
10600 | fi | |
00aafda4 | 10601 | link_all_deplibs=yes |
10602 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10603 | case $cc_basename in | |
10604 | ifort*) _lt_dar_can_shared=yes ;; | |
10605 | *) _lt_dar_can_shared=$GCC ;; | |
10606 | esac | |
10607 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 10608 | output_verbose_link_cmd=func_echo_all |
00aafda4 | 10609 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10610 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10611 | 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}" | |
10612 | 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}" | |
10613 | ||
10614 | else | |
10615 | ld_shlibs=no | |
10616 | fi | |
10617 | ||
542f9784 | 10618 | ;; |
10619 | ||
10620 | dgux*) | |
10621 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10622 | hardcode_libdir_flag_spec='-L$libdir' | |
10623 | hardcode_shlibpath_var=no | |
10624 | ;; | |
10625 | ||
542f9784 | 10626 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10627 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10628 | # does not break anything, and helps significantly (at the cost of a little | |
10629 | # extra space). | |
10630 | freebsd2.2*) | |
10631 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10632 | hardcode_libdir_flag_spec='-R$libdir' | |
10633 | hardcode_direct=yes | |
10634 | hardcode_shlibpath_var=no | |
10635 | ;; | |
10636 | ||
10637 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
30369aff | 10638 | freebsd2.*) |
542f9784 | 10639 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10640 | hardcode_direct=yes | |
10641 | hardcode_minus_L=yes | |
10642 | hardcode_shlibpath_var=no | |
10643 | ;; | |
10644 | ||
10645 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10646 | freebsd* | dragonfly*) | |
10647 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10648 | hardcode_libdir_flag_spec='-R$libdir' | |
10649 | hardcode_direct=yes | |
10650 | hardcode_shlibpath_var=no | |
10651 | ;; | |
10652 | ||
10653 | hpux9*) | |
10654 | if test "$GCC" = yes; then | |
10655 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10656 | else | |
10657 | 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' | |
10658 | fi | |
10659 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10660 | hardcode_libdir_separator=: | |
10661 | hardcode_direct=yes | |
10662 | ||
10663 | # hardcode_minus_L: Not really in the search PATH, | |
10664 | # but as the default location of the library. | |
10665 | hardcode_minus_L=yes | |
10666 | export_dynamic_flag_spec='${wl}-E' | |
10667 | ;; | |
10668 | ||
10669 | hpux10*) | |
e6408286 | 10670 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 10671 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10672 | else | |
10673 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10674 | fi | |
10675 | if test "$with_gnu_ld" = no; then | |
10676 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10677 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10678 | hardcode_libdir_separator=: | |
10679 | hardcode_direct=yes | |
10680 | hardcode_direct_absolute=yes | |
10681 | export_dynamic_flag_spec='${wl}-E' | |
10682 | # hardcode_minus_L: Not really in the search PATH, | |
10683 | # but as the default location of the library. | |
10684 | hardcode_minus_L=yes | |
10685 | fi | |
10686 | ;; | |
10687 | ||
10688 | hpux11*) | |
e6408286 | 10689 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 10690 | case $host_cpu in |
10691 | hppa*64*) | |
10692 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10693 | ;; | |
10694 | ia64*) | |
00aafda4 | 10695 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 10696 | ;; |
10697 | *) | |
10698 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10699 | ;; | |
10700 | esac | |
10701 | else | |
10702 | case $host_cpu in | |
10703 | hppa*64*) | |
10704 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10705 | ;; | |
10706 | ia64*) | |
10707 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10708 | ;; | |
10709 | *) | |
e6408286 | 10710 | |
10711 | # Older versions of the 11.00 compiler do not understand -b yet | |
10712 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10714 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10715 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
10716 | $as_echo_n "(cached) " >&6 | |
10717 | else | |
10718 | lt_cv_prog_compiler__b=no | |
10719 | save_LDFLAGS="$LDFLAGS" | |
10720 | LDFLAGS="$LDFLAGS -b" | |
10721 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10722 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10723 | # The linker can only warn and ignore the option if not recognized | |
10724 | # So say no if there are warnings | |
10725 | if test -s conftest.err; then | |
10726 | # Append any errors to the config.log. | |
10727 | cat conftest.err 1>&5 | |
10728 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10729 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10730 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10731 | lt_cv_prog_compiler__b=yes | |
10732 | fi | |
10733 | else | |
10734 | lt_cv_prog_compiler__b=yes | |
10735 | fi | |
10736 | fi | |
10737 | $RM -r conftest* | |
10738 | LDFLAGS="$save_LDFLAGS" | |
10739 | ||
10740 | fi | |
10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10742 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10743 | ||
10744 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10745 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10746 | else | |
10747 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10748 | fi | |
10749 | ||
542f9784 | 10750 | ;; |
10751 | esac | |
10752 | fi | |
10753 | if test "$with_gnu_ld" = no; then | |
10754 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10755 | hardcode_libdir_separator=: | |
10756 | ||
10757 | case $host_cpu in | |
10758 | hppa*64*|ia64*) | |
10759 | hardcode_direct=no | |
10760 | hardcode_shlibpath_var=no | |
10761 | ;; | |
10762 | *) | |
10763 | hardcode_direct=yes | |
10764 | hardcode_direct_absolute=yes | |
10765 | export_dynamic_flag_spec='${wl}-E' | |
10766 | ||
10767 | # hardcode_minus_L: Not really in the search PATH, | |
10768 | # but as the default location of the library. | |
10769 | hardcode_minus_L=yes | |
10770 | ;; | |
10771 | esac | |
10772 | fi | |
10773 | ;; | |
10774 | ||
10775 | irix5* | irix6* | nonstopux*) | |
10776 | if test "$GCC" = yes; then | |
e6408286 | 10777 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
542f9784 | 10778 | # Try to use the -exported_symbol ld option, if it does not |
10779 | # work, assume that -exports_file does not work either and | |
10780 | # implicitly export all symbols. | |
10781 | save_LDFLAGS="$LDFLAGS" | |
10782 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10783 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 10784 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10785 | fi |
cd9a469c | 10786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10787 | /* end confdefs.h. */ | |
542f9784 | 10788 | int foo(void) {} |
10789 | _ACEOF | |
cd9a469c | 10790 | if ac_fn_c_try_link "$LINENO"; then : |
e6408286 | 10791 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
542f9784 | 10792 | |
542f9784 | 10793 | fi |
cd9a469c | 10794 | rm -f core conftest.err conftest.$ac_objext \ |
10795 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10796 | LDFLAGS="$save_LDFLAGS" |
10797 | else | |
e6408286 | 10798 | 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' |
10799 | 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' | |
542f9784 | 10800 | fi |
10801 | archive_cmds_need_lc='no' | |
10802 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10803 | hardcode_libdir_separator=: | |
10804 | inherit_rpath=yes | |
10805 | link_all_deplibs=yes | |
10806 | ;; | |
10807 | ||
10808 | netbsd*) | |
10809 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10810 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10811 | else | |
10812 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10813 | fi | |
10814 | hardcode_libdir_flag_spec='-R$libdir' | |
10815 | hardcode_direct=yes | |
10816 | hardcode_shlibpath_var=no | |
10817 | ;; | |
10818 | ||
10819 | newsos6) | |
10820 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10821 | hardcode_direct=yes | |
10822 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10823 | hardcode_libdir_separator=: | |
10824 | hardcode_shlibpath_var=no | |
10825 | ;; | |
10826 | ||
10827 | *nto* | *qnx*) | |
10828 | ;; | |
10829 | ||
10830 | openbsd*) | |
00aafda4 | 10831 | if test -f /usr/libexec/ld.so; then |
10832 | hardcode_direct=yes | |
10833 | hardcode_shlibpath_var=no | |
10834 | hardcode_direct_absolute=yes | |
10835 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 10836 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
00aafda4 | 10837 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 10838 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
00aafda4 | 10839 | export_dynamic_flag_spec='${wl}-E' |
10840 | else | |
10841 | case $host_os in | |
10842 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10843 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10844 | hardcode_libdir_flag_spec='-R$libdir' | |
10845 | ;; | |
10846 | *) | |
10847 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10848 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10849 | ;; | |
10850 | esac | |
10851 | fi | |
10852 | else | |
10853 | ld_shlibs=no | |
542f9784 | 10854 | fi |
10855 | ;; | |
10856 | ||
10857 | os2*) | |
10858 | hardcode_libdir_flag_spec='-L$libdir' | |
10859 | hardcode_minus_L=yes | |
10860 | allow_undefined_flag=unsupported | |
e6408286 | 10861 | 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' |
542f9784 | 10862 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10863 | ;; | |
10864 | ||
10865 | osf3*) | |
10866 | if test "$GCC" = yes; then | |
10867 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 10868 | 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' |
542f9784 | 10869 | else |
10870 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 10871 | 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' |
542f9784 | 10872 | fi |
10873 | archive_cmds_need_lc='no' | |
10874 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10875 | hardcode_libdir_separator=: | |
10876 | ;; | |
10877 | ||
10878 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10879 | if test "$GCC" = yes; then | |
10880 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 10881 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
542f9784 | 10882 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10883 | else | |
10884 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 10885 | 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' |
542f9784 | 10886 | 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~ |
e6408286 | 10887 | $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' |
542f9784 | 10888 | |
10889 | # Both c and cxx compiler support -rpath directly | |
10890 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10891 | fi | |
10892 | archive_cmds_need_lc='no' | |
10893 | hardcode_libdir_separator=: | |
10894 | ;; | |
10895 | ||
10896 | solaris*) | |
10897 | no_undefined_flag=' -z defs' | |
10898 | if test "$GCC" = yes; then | |
10899 | wlarc='${wl}' | |
10900 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10901 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10902 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10903 | else | |
10904 | case `$CC -V 2>&1` in | |
10905 | *"Compilers 5.0"*) | |
10906 | wlarc='' | |
10907 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10908 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10909 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10910 | ;; | |
10911 | *) | |
10912 | wlarc='${wl}' | |
10913 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10914 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10915 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10916 | ;; | |
10917 | esac | |
10918 | fi | |
10919 | hardcode_libdir_flag_spec='-R$libdir' | |
10920 | hardcode_shlibpath_var=no | |
10921 | case $host_os in | |
10922 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10923 | *) | |
10924 | # The compiler driver will combine and reorder linker options, | |
10925 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10926 | # but is careful enough not to reorder. | |
10927 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10928 | if test "$GCC" = yes; then | |
10929 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10930 | else | |
10931 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10932 | fi | |
10933 | ;; | |
10934 | esac | |
10935 | link_all_deplibs=yes | |
10936 | ;; | |
10937 | ||
10938 | sunos4*) | |
10939 | if test "x$host_vendor" = xsequent; then | |
10940 | # Use $CC to link under sequent, because it throws in some extra .o | |
10941 | # files that make .init and .fini sections work. | |
10942 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10943 | else | |
10944 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10945 | fi | |
10946 | hardcode_libdir_flag_spec='-L$libdir' | |
10947 | hardcode_direct=yes | |
10948 | hardcode_minus_L=yes | |
10949 | hardcode_shlibpath_var=no | |
10950 | ;; | |
10951 | ||
10952 | sysv4) | |
10953 | case $host_vendor in | |
10954 | sni) | |
10955 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10956 | hardcode_direct=yes # is this really true??? | |
10957 | ;; | |
10958 | siemens) | |
10959 | ## LD is ld it makes a PLAMLIB | |
10960 | ## CC just makes a GrossModule. | |
10961 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10962 | reload_cmds='$CC -r -o $output$reload_objs' | |
10963 | hardcode_direct=no | |
10964 | ;; | |
10965 | motorola) | |
10966 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10967 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10968 | ;; | |
10969 | esac | |
10970 | runpath_var='LD_RUN_PATH' | |
10971 | hardcode_shlibpath_var=no | |
10972 | ;; | |
10973 | ||
10974 | sysv4.3*) | |
10975 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10976 | hardcode_shlibpath_var=no | |
10977 | export_dynamic_flag_spec='-Bexport' | |
10978 | ;; | |
10979 | ||
10980 | sysv4*MP*) | |
10981 | if test -d /usr/nec; then | |
10982 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10983 | hardcode_shlibpath_var=no | |
10984 | runpath_var=LD_RUN_PATH | |
10985 | hardcode_runpath_var=yes | |
10986 | ld_shlibs=yes | |
10987 | fi | |
10988 | ;; | |
10989 | ||
10990 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10991 | no_undefined_flag='${wl}-z,text' | |
10992 | archive_cmds_need_lc=no | |
10993 | hardcode_shlibpath_var=no | |
10994 | runpath_var='LD_RUN_PATH' | |
10995 | ||
10996 | if test "$GCC" = yes; then | |
10997 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10998 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10999 | else | |
11000 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11001 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11002 | fi | |
11003 | ;; | |
11004 | ||
11005 | sysv5* | sco3.2v5* | sco5v6*) | |
11006 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11007 | # link with -lc, and that would cause any symbols used from libc to | |
11008 | # always be unresolved, which means just about no library would | |
11009 | # ever link correctly. If we're not using GNU ld we use -z text | |
11010 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11011 | # as -z defs. | |
11012 | no_undefined_flag='${wl}-z,text' | |
11013 | allow_undefined_flag='${wl}-z,nodefs' | |
11014 | archive_cmds_need_lc=no | |
11015 | hardcode_shlibpath_var=no | |
11016 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11017 | hardcode_libdir_separator=':' | |
11018 | link_all_deplibs=yes | |
11019 | export_dynamic_flag_spec='${wl}-Bexport' | |
11020 | runpath_var='LD_RUN_PATH' | |
11021 | ||
11022 | if test "$GCC" = yes; then | |
11023 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11024 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11025 | else | |
11026 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11027 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11028 | fi | |
11029 | ;; | |
11030 | ||
11031 | uts4*) | |
11032 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11033 | hardcode_libdir_flag_spec='-L$libdir' | |
11034 | hardcode_shlibpath_var=no | |
11035 | ;; | |
11036 | ||
11037 | *) | |
11038 | ld_shlibs=no | |
11039 | ;; | |
11040 | esac | |
11041 | ||
11042 | if test x$host_vendor = xsni; then | |
11043 | case $host in | |
11044 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11045 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11046 | ;; | |
11047 | esac | |
11048 | fi | |
11049 | fi | |
11050 | ||
cd9a469c | 11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11052 | $as_echo "$ld_shlibs" >&6; } | |
542f9784 | 11053 | test "$ld_shlibs" = no && can_build_shared=no |
11054 | ||
11055 | with_gnu_ld=$with_gnu_ld | |
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | # | |
11072 | # Do we need to explicitly link libc? | |
11073 | # | |
11074 | case "x$archive_cmds_need_lc" in | |
11075 | x|xyes) | |
11076 | # Assume -lc should be added | |
11077 | archive_cmds_need_lc=yes | |
11078 | ||
11079 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11080 | case $archive_cmds in | |
11081 | *'~'*) | |
11082 | # FIXME: we may have to deal with multi-command sequences. | |
11083 | ;; | |
11084 | '$CC '*) | |
11085 | # Test whether the compiler implicitly links with -lc since on some | |
11086 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11087 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11089 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11090 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
11091 | $as_echo_n "(cached) " >&6 | |
9e6fd619 | 11092 | else |
11093 | $RM conftest* | |
11094 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 11095 | |
cd9a469c | 11096 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 11097 | (eval $ac_compile) 2>&5 |
11098 | ac_status=$? | |
cd9a469c | 11099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11100 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 11101 | soname=conftest |
11102 | lib=conftest | |
11103 | libobjs=conftest.$ac_objext | |
11104 | deplibs= | |
11105 | wl=$lt_prog_compiler_wl | |
11106 | pic_flag=$lt_prog_compiler_pic | |
11107 | compiler_flags=-v | |
11108 | linker_flags=-v | |
11109 | verstring= | |
11110 | output_objdir=. | |
11111 | libname=conftest | |
11112 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11113 | allow_undefined_flag= | |
cd9a469c | 11114 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 11115 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11116 | ac_status=$? | |
cd9a469c | 11117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11118 | test $ac_status = 0; } | |
9e6fd619 | 11119 | then |
11120 | lt_cv_archive_cmds_need_lc=no | |
11121 | else | |
11122 | lt_cv_archive_cmds_need_lc=yes | |
11123 | fi | |
11124 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11125 | else | |
11126 | cat conftest.err 1>&5 | |
11127 | fi | |
11128 | $RM conftest* | |
11129 | ||
11130 | fi | |
cd9a469c | 11131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11132 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9e6fd619 | 11133 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
542f9784 | 11134 | ;; |
11135 | esac | |
11136 | fi | |
11137 | ;; | |
11138 | esac | |
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | ||
11148 | ||
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | ||
11174 | ||
11175 | ||
11176 | ||
11177 | ||
11178 | ||
11179 | ||
11180 | ||
11181 | ||
11182 | ||
11183 | ||
11184 | ||
11185 | ||
11186 | ||
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | ||
11204 | ||
11205 | ||
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | ||
11224 | ||
11225 | ||
11226 | ||
11227 | ||
11228 | ||
11229 | ||
11230 | ||
11231 | ||
11232 | ||
11233 | ||
11234 | ||
11235 | ||
11236 | ||
11237 | ||
11238 | ||
11239 | ||
11240 | ||
11241 | ||
11242 | ||
11243 | ||
11244 | ||
11245 | ||
11246 | ||
11247 | ||
11248 | ||
11249 | ||
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | ||
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | ||
11270 | ||
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
11276 | ||
11277 | ||
11278 | ||
11279 | ||
11280 | ||
11281 | ||
11282 | ||
11283 | ||
11284 | ||
11285 | ||
11286 | ||
11287 | ||
11288 | ||
11289 | ||
11290 | ||
11291 | ||
11292 | ||
11293 | ||
11294 | ||
11295 | ||
cd9a469c | 11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11297 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
00aafda4 | 11298 | |
11299 | if test "$GCC" = yes; then | |
542f9784 | 11300 | case $host_os in |
11301 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11302 | *) lt_awk_arg="/^libraries:/" ;; | |
11303 | esac | |
e6408286 | 11304 | case $host_os in |
11305 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11306 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11307 | esac | |
11308 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11309 | case $lt_search_path_spec in | |
11310 | *\;*) | |
542f9784 | 11311 | # if the path contains ";" then we assume it to be the separator |
11312 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11313 | # assumed that no part of a normal pathname contains ";" but that should | |
11314 | # okay in the real world where ";" in dirpaths is itself problematic. | |
e6408286 | 11315 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11316 | ;; | |
11317 | *) | |
11318 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11319 | ;; | |
11320 | esac | |
542f9784 | 11321 | # Ok, now we have the path, separated by spaces, we can step through it |
11322 | # and add multilib dir if necessary. | |
11323 | lt_tmp_lt_search_path_spec= | |
11324 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11325 | for lt_sys_path in $lt_search_path_spec; do | |
11326 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11327 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11328 | else | |
11329 | test -d "$lt_sys_path" && \ | |
11330 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11331 | fi | |
11332 | done | |
e6408286 | 11333 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
542f9784 | 11334 | BEGIN {RS=" "; FS="/|\n";} { |
11335 | lt_foo=""; | |
11336 | lt_count=0; | |
11337 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11338 | if ($lt_i != "" && $lt_i != ".") { | |
11339 | if ($lt_i == "..") { | |
11340 | lt_count++; | |
11341 | } else { | |
11342 | if (lt_count == 0) { | |
11343 | lt_foo="/" $lt_i lt_foo; | |
11344 | } else { | |
11345 | lt_count--; | |
11346 | } | |
11347 | } | |
11348 | } | |
11349 | } | |
11350 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11351 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11352 | }'` | |
e6408286 | 11353 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11354 | # for these hosts. | |
11355 | case $host_os in | |
11356 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11357 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11358 | esac | |
11359 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
542f9784 | 11360 | else |
11361 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11362 | fi | |
11363 | library_names_spec= | |
11364 | libname_spec='lib$name' | |
11365 | soname_spec= | |
11366 | shrext_cmds=".so" | |
11367 | postinstall_cmds= | |
11368 | postuninstall_cmds= | |
11369 | finish_cmds= | |
11370 | finish_eval= | |
11371 | shlibpath_var= | |
11372 | shlibpath_overrides_runpath=unknown | |
11373 | version_type=none | |
11374 | dynamic_linker="$host_os ld.so" | |
11375 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11376 | need_lib_prefix=unknown | |
11377 | hardcode_into_libs=no | |
11378 | ||
11379 | # when you set need_version to no, make sure it does not cause -set_version | |
11380 | # flags to be left without arguments | |
11381 | need_version=unknown | |
11382 | ||
11383 | case $host_os in | |
11384 | aix3*) | |
11385 | version_type=linux | |
11386 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11387 | shlibpath_var=LIBPATH | |
11388 | ||
11389 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11390 | soname_spec='${libname}${release}${shared_ext}$major' | |
11391 | ;; | |
11392 | ||
21e07d2f | 11393 | aix[4-9]*) |
542f9784 | 11394 | version_type=linux |
11395 | need_lib_prefix=no | |
11396 | need_version=no | |
11397 | hardcode_into_libs=yes | |
11398 | if test "$host_cpu" = ia64; then | |
11399 | # AIX 5 supports IA64 | |
11400 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11401 | shlibpath_var=LD_LIBRARY_PATH | |
11402 | else | |
11403 | # With GCC up to 2.95.x, collect2 would create an import file | |
11404 | # for dependence libraries. The import file would start with | |
11405 | # the line `#! .'. This would cause the generated library to | |
11406 | # depend on `.', always an invalid library. This was fixed in | |
11407 | # development snapshots of GCC prior to 3.0. | |
11408 | case $host_os in | |
11409 | aix4 | aix4.[01] | aix4.[01].*) | |
11410 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11411 | echo ' yes ' | |
11412 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11413 | : | |
11414 | else | |
11415 | can_build_shared=no | |
11416 | fi | |
11417 | ;; | |
11418 | esac | |
11419 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11420 | # soname into executable. Probably we can add versioning support to | |
11421 | # collect2, so additional links can be useful in future. | |
11422 | if test "$aix_use_runtimelinking" = yes; then | |
11423 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11424 | # instead of lib<name>.a to let people know that these are not | |
11425 | # typical AIX shared libraries. | |
11426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11427 | else | |
11428 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11429 | # and later when we are not doing run time linking. | |
11430 | library_names_spec='${libname}${release}.a $libname.a' | |
11431 | soname_spec='${libname}${release}${shared_ext}$major' | |
11432 | fi | |
11433 | shlibpath_var=LIBPATH | |
11434 | fi | |
11435 | ;; | |
11436 | ||
11437 | amigaos*) | |
00aafda4 | 11438 | case $host_cpu in |
11439 | powerpc) | |
11440 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11441 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11443 | ;; | |
11444 | m68k) | |
542f9784 | 11445 | library_names_spec='$libname.ixlibrary $libname.a' |
11446 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 11447 | 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' |
00aafda4 | 11448 | ;; |
11449 | esac | |
542f9784 | 11450 | ;; |
11451 | ||
11452 | beos*) | |
11453 | library_names_spec='${libname}${shared_ext}' | |
11454 | dynamic_linker="$host_os ld.so" | |
11455 | shlibpath_var=LIBRARY_PATH | |
11456 | ;; | |
11457 | ||
11458 | bsdi[45]*) | |
11459 | version_type=linux | |
11460 | need_version=no | |
11461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11462 | soname_spec='${libname}${release}${shared_ext}$major' | |
11463 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11464 | shlibpath_var=LD_LIBRARY_PATH | |
11465 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11466 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11467 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11468 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11469 | # libtool to hard-code these into programs | |
11470 | ;; | |
11471 | ||
00aafda4 | 11472 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 11473 | version_type=windows |
11474 | shrext_cmds=".dll" | |
11475 | need_version=no | |
11476 | need_lib_prefix=no | |
11477 | ||
00aafda4 | 11478 | case $GCC,$host_os in |
11479 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 11480 | library_names_spec='$libname.dll.a' |
11481 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11482 | postinstall_cmds='base_file=`basename \${file}`~ | |
11483 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11484 | dldir=$destdir/`dirname \$dlpath`~ | |
11485 | test -d \$dldir || mkdir -p \$dldir~ | |
11486 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11487 | chmod a+x \$dldir/$dlname~ | |
11488 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11489 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11490 | fi' | |
11491 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11492 | dlpath=$dir/\$dldll~ | |
11493 | $RM \$dlpath' | |
11494 | shlibpath_overrides_runpath=yes | |
11495 | ||
11496 | case $host_os in | |
11497 | cygwin*) | |
11498 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11499 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 11500 | |
11501 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
542f9784 | 11502 | ;; |
00aafda4 | 11503 | mingw* | cegcc*) |
542f9784 | 11504 | # MinGW DLLs use traditional 'lib' prefix |
11505 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 11506 | ;; |
11507 | pw32*) | |
11508 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11509 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11510 | ;; | |
11511 | esac | |
11512 | ;; | |
11513 | ||
11514 | *) | |
11515 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11516 | ;; | |
11517 | esac | |
11518 | dynamic_linker='Win32 ld.exe' | |
11519 | # FIXME: first we should search . and the directory the executable is in | |
11520 | shlibpath_var=PATH | |
11521 | ;; | |
11522 | ||
11523 | darwin* | rhapsody*) | |
11524 | dynamic_linker="$host_os dyld" | |
11525 | version_type=darwin | |
11526 | need_lib_prefix=no | |
11527 | need_version=no | |
11528 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11529 | soname_spec='${libname}${release}${major}$shared_ext' | |
11530 | shlibpath_overrides_runpath=yes | |
11531 | shlibpath_var=DYLD_LIBRARY_PATH | |
11532 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11533 | ||
11534 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11535 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11536 | ;; | |
11537 | ||
11538 | dgux*) | |
11539 | version_type=linux | |
11540 | need_lib_prefix=no | |
11541 | need_version=no | |
11542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11543 | soname_spec='${libname}${release}${shared_ext}$major' | |
11544 | shlibpath_var=LD_LIBRARY_PATH | |
11545 | ;; | |
11546 | ||
542f9784 | 11547 | freebsd* | dragonfly*) |
11548 | # DragonFly does not have aout. When/if they implement a new | |
11549 | # versioning mechanism, adjust this. | |
11550 | if test -x /usr/bin/objformat; then | |
11551 | objformat=`/usr/bin/objformat` | |
11552 | else | |
11553 | case $host_os in | |
30369aff | 11554 | freebsd[23].*) objformat=aout ;; |
542f9784 | 11555 | *) objformat=elf ;; |
11556 | esac | |
11557 | fi | |
11558 | version_type=freebsd-$objformat | |
11559 | case $version_type in | |
11560 | freebsd-elf*) | |
11561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11562 | need_version=no | |
11563 | need_lib_prefix=no | |
11564 | ;; | |
11565 | freebsd-*) | |
11566 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11567 | need_version=yes | |
11568 | ;; | |
11569 | esac | |
11570 | shlibpath_var=LD_LIBRARY_PATH | |
11571 | case $host_os in | |
30369aff | 11572 | freebsd2.*) |
542f9784 | 11573 | shlibpath_overrides_runpath=yes |
11574 | ;; | |
11575 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11576 | shlibpath_overrides_runpath=yes | |
11577 | hardcode_into_libs=yes | |
11578 | ;; | |
11579 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11580 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11581 | shlibpath_overrides_runpath=no | |
11582 | hardcode_into_libs=yes | |
11583 | ;; | |
11584 | *) # from 4.6 on, and DragonFly | |
11585 | shlibpath_overrides_runpath=yes | |
11586 | hardcode_into_libs=yes | |
11587 | ;; | |
11588 | esac | |
11589 | ;; | |
11590 | ||
11591 | gnu*) | |
11592 | version_type=linux | |
11593 | need_lib_prefix=no | |
11594 | need_version=no | |
11595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11596 | soname_spec='${libname}${release}${shared_ext}$major' | |
11597 | shlibpath_var=LD_LIBRARY_PATH | |
11598 | hardcode_into_libs=yes | |
11599 | ;; | |
11600 | ||
e6408286 | 11601 | haiku*) |
11602 | version_type=linux | |
11603 | need_lib_prefix=no | |
11604 | need_version=no | |
11605 | dynamic_linker="$host_os runtime_loader" | |
11606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11607 | soname_spec='${libname}${release}${shared_ext}$major' | |
11608 | shlibpath_var=LIBRARY_PATH | |
11609 | shlibpath_overrides_runpath=yes | |
11610 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11611 | hardcode_into_libs=yes | |
11612 | ;; | |
11613 | ||
542f9784 | 11614 | hpux9* | hpux10* | hpux11*) |
11615 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11616 | # link against other versions. | |
11617 | version_type=sunos | |
11618 | need_lib_prefix=no | |
11619 | need_version=no | |
11620 | case $host_cpu in | |
11621 | ia64*) | |
11622 | shrext_cmds='.so' | |
11623 | hardcode_into_libs=yes | |
11624 | dynamic_linker="$host_os dld.so" | |
11625 | shlibpath_var=LD_LIBRARY_PATH | |
11626 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11628 | soname_spec='${libname}${release}${shared_ext}$major' | |
11629 | if test "X$HPUX_IA64_MODE" = X32; then | |
11630 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11631 | else | |
11632 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11633 | fi | |
11634 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11635 | ;; | |
11636 | hppa*64*) | |
11637 | shrext_cmds='.sl' | |
11638 | hardcode_into_libs=yes | |
11639 | dynamic_linker="$host_os dld.sl" | |
11640 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11641 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11643 | soname_spec='${libname}${release}${shared_ext}$major' | |
11644 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11645 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11646 | ;; | |
11647 | *) | |
11648 | shrext_cmds='.sl' | |
11649 | dynamic_linker="$host_os dld.sl" | |
11650 | shlibpath_var=SHLIB_PATH | |
11651 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11653 | soname_spec='${libname}${release}${shared_ext}$major' | |
11654 | ;; | |
11655 | esac | |
e6408286 | 11656 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 11657 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 11658 | # or fails outright, so override atomically: |
11659 | install_override_mode=555 | |
542f9784 | 11660 | ;; |
11661 | ||
11662 | interix[3-9]*) | |
11663 | version_type=linux | |
11664 | need_lib_prefix=no | |
11665 | need_version=no | |
11666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11667 | soname_spec='${libname}${release}${shared_ext}$major' | |
11668 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11669 | shlibpath_var=LD_LIBRARY_PATH | |
11670 | shlibpath_overrides_runpath=no | |
11671 | hardcode_into_libs=yes | |
11672 | ;; | |
11673 | ||
11674 | irix5* | irix6* | nonstopux*) | |
11675 | case $host_os in | |
11676 | nonstopux*) version_type=nonstopux ;; | |
11677 | *) | |
11678 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11679 | version_type=linux | |
11680 | else | |
11681 | version_type=irix | |
11682 | fi ;; | |
11683 | esac | |
11684 | need_lib_prefix=no | |
11685 | need_version=no | |
11686 | soname_spec='${libname}${release}${shared_ext}$major' | |
11687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11688 | case $host_os in | |
11689 | irix5* | nonstopux*) | |
11690 | libsuff= shlibsuff= | |
11691 | ;; | |
11692 | *) | |
11693 | case $LD in # libtool.m4 will add one of these switches to LD | |
11694 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11695 | libsuff= shlibsuff= libmagic=32-bit;; | |
11696 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11697 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11698 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11699 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11700 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11701 | esac | |
11702 | ;; | |
11703 | esac | |
11704 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11705 | shlibpath_overrides_runpath=no | |
11706 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11707 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11708 | hardcode_into_libs=yes | |
11709 | ;; | |
11710 | ||
11711 | # No shared lib support for Linux oldld, aout, or coff. | |
11712 | linux*oldld* | linux*aout* | linux*coff*) | |
11713 | dynamic_linker=no | |
11714 | ;; | |
11715 | ||
11716 | # This must be Linux ELF. | |
9af964d4 | 11717 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 11718 | version_type=linux |
11719 | need_lib_prefix=no | |
11720 | need_version=no | |
11721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11722 | soname_spec='${libname}${release}${shared_ext}$major' | |
11723 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11724 | shlibpath_var=LD_LIBRARY_PATH | |
11725 | shlibpath_overrides_runpath=no | |
9e6fd619 | 11726 | |
542f9784 | 11727 | # Some binutils ld are patched to set DT_RUNPATH |
cd9a469c | 11728 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
11729 | $as_echo_n "(cached) " >&6 | |
9e6fd619 | 11730 | else |
11731 | lt_cv_shlibpath_overrides_runpath=no | |
11732 | save_LDFLAGS=$LDFLAGS | |
11733 | save_libdir=$libdir | |
11734 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11735 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11736 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 11737 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 11738 | fi |
cd9a469c | 11739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11740 | /* end confdefs.h. */ |
11741 | ||
11742 | int | |
11743 | main () | |
11744 | { | |
11745 | ||
11746 | ; | |
11747 | return 0; | |
11748 | } | |
11749 | _ACEOF | |
cd9a469c | 11750 | if ac_fn_c_try_link "$LINENO"; then : |
11751 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 11752 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 11753 | fi |
542f9784 | 11754 | fi |
cd9a469c | 11755 | rm -f core conftest.err conftest.$ac_objext \ |
11756 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 11757 | LDFLAGS=$save_LDFLAGS |
11758 | libdir=$save_libdir | |
11759 | ||
11760 | fi | |
11761 | ||
11762 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 11763 | |
11764 | # This implies no fast_install, which is unacceptable. | |
11765 | # Some rework will be needed to allow for fast_install | |
11766 | # before this can be enabled. | |
11767 | hardcode_into_libs=yes | |
11768 | ||
11769 | # Append ld.so.conf contents to the search path | |
11770 | if test -f /etc/ld.so.conf; then | |
e6408286 | 11771 | 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' ' '` |
542f9784 | 11772 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11773 | fi | |
11774 | ||
11775 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11776 | # powerpc, because MkLinux only supported shared libraries with the | |
11777 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11778 | # most powerpc-linux boxes support dynamic linking these days and | |
11779 | # people can always --disable-shared, the test was removed, and we | |
11780 | # assume the GNU/Linux dynamic linker is in use. | |
11781 | dynamic_linker='GNU/Linux ld.so' | |
11782 | ;; | |
11783 | ||
11784 | netbsd*) | |
11785 | version_type=sunos | |
11786 | need_lib_prefix=no | |
11787 | need_version=no | |
11788 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11790 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11791 | dynamic_linker='NetBSD (a.out) ld.so' | |
11792 | else | |
11793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11794 | soname_spec='${libname}${release}${shared_ext}$major' | |
11795 | dynamic_linker='NetBSD ld.elf_so' | |
11796 | fi | |
11797 | shlibpath_var=LD_LIBRARY_PATH | |
11798 | shlibpath_overrides_runpath=yes | |
11799 | hardcode_into_libs=yes | |
11800 | ;; | |
11801 | ||
11802 | newsos6) | |
11803 | version_type=linux | |
11804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11805 | shlibpath_var=LD_LIBRARY_PATH | |
11806 | shlibpath_overrides_runpath=yes | |
11807 | ;; | |
11808 | ||
11809 | *nto* | *qnx*) | |
11810 | version_type=qnx | |
11811 | need_lib_prefix=no | |
11812 | need_version=no | |
11813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11814 | soname_spec='${libname}${release}${shared_ext}$major' | |
11815 | shlibpath_var=LD_LIBRARY_PATH | |
11816 | shlibpath_overrides_runpath=no | |
11817 | hardcode_into_libs=yes | |
11818 | dynamic_linker='ldqnx.so' | |
11819 | ;; | |
11820 | ||
11821 | openbsd*) | |
11822 | version_type=sunos | |
11823 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11824 | need_lib_prefix=no | |
11825 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11826 | case $host_os in | |
11827 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11828 | *) need_version=no ;; | |
11829 | esac | |
11830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11831 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11832 | shlibpath_var=LD_LIBRARY_PATH | |
11833 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11834 | case $host_os in | |
11835 | openbsd2.[89] | openbsd2.[89].*) | |
11836 | shlibpath_overrides_runpath=no | |
11837 | ;; | |
11838 | *) | |
11839 | shlibpath_overrides_runpath=yes | |
11840 | ;; | |
11841 | esac | |
11842 | else | |
11843 | shlibpath_overrides_runpath=yes | |
11844 | fi | |
11845 | ;; | |
11846 | ||
11847 | os2*) | |
11848 | libname_spec='$name' | |
11849 | shrext_cmds=".dll" | |
11850 | need_lib_prefix=no | |
11851 | library_names_spec='$libname${shared_ext} $libname.a' | |
11852 | dynamic_linker='OS/2 ld.exe' | |
11853 | shlibpath_var=LIBPATH | |
11854 | ;; | |
11855 | ||
11856 | osf3* | osf4* | osf5*) | |
11857 | version_type=osf | |
11858 | need_lib_prefix=no | |
11859 | need_version=no | |
11860 | soname_spec='${libname}${release}${shared_ext}$major' | |
11861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11862 | shlibpath_var=LD_LIBRARY_PATH | |
11863 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11864 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11865 | ;; | |
11866 | ||
11867 | rdos*) | |
11868 | dynamic_linker=no | |
11869 | ;; | |
11870 | ||
11871 | solaris*) | |
11872 | version_type=linux | |
11873 | need_lib_prefix=no | |
11874 | need_version=no | |
11875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11876 | soname_spec='${libname}${release}${shared_ext}$major' | |
11877 | shlibpath_var=LD_LIBRARY_PATH | |
11878 | shlibpath_overrides_runpath=yes | |
11879 | hardcode_into_libs=yes | |
11880 | # ldd complains unless libraries are executable | |
11881 | postinstall_cmds='chmod +x $lib' | |
11882 | ;; | |
11883 | ||
11884 | sunos4*) | |
11885 | version_type=sunos | |
11886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11887 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11888 | shlibpath_var=LD_LIBRARY_PATH | |
11889 | shlibpath_overrides_runpath=yes | |
11890 | if test "$with_gnu_ld" = yes; then | |
11891 | need_lib_prefix=no | |
11892 | fi | |
11893 | need_version=yes | |
11894 | ;; | |
11895 | ||
11896 | sysv4 | sysv4.3*) | |
11897 | version_type=linux | |
11898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11899 | soname_spec='${libname}${release}${shared_ext}$major' | |
11900 | shlibpath_var=LD_LIBRARY_PATH | |
11901 | case $host_vendor in | |
11902 | sni) | |
11903 | shlibpath_overrides_runpath=no | |
11904 | need_lib_prefix=no | |
11905 | runpath_var=LD_RUN_PATH | |
11906 | ;; | |
11907 | siemens) | |
11908 | need_lib_prefix=no | |
11909 | ;; | |
11910 | motorola) | |
11911 | need_lib_prefix=no | |
11912 | need_version=no | |
11913 | shlibpath_overrides_runpath=no | |
11914 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11915 | ;; | |
11916 | esac | |
11917 | ;; | |
11918 | ||
11919 | sysv4*MP*) | |
11920 | if test -d /usr/nec ;then | |
11921 | version_type=linux | |
11922 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11923 | soname_spec='$libname${shared_ext}.$major' | |
11924 | shlibpath_var=LD_LIBRARY_PATH | |
11925 | fi | |
11926 | ;; | |
11927 | ||
11928 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11929 | version_type=freebsd-elf | |
11930 | need_lib_prefix=no | |
11931 | need_version=no | |
11932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11933 | soname_spec='${libname}${release}${shared_ext}$major' | |
11934 | shlibpath_var=LD_LIBRARY_PATH | |
11935 | shlibpath_overrides_runpath=yes | |
11936 | hardcode_into_libs=yes | |
11937 | if test "$with_gnu_ld" = yes; then | |
11938 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11939 | else | |
11940 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11941 | case $host_os in | |
11942 | sco3.2v5*) | |
11943 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11944 | ;; | |
11945 | esac | |
11946 | fi | |
11947 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11948 | ;; | |
11949 | ||
11950 | tpf*) | |
11951 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11952 | version_type=linux | |
11953 | need_lib_prefix=no | |
11954 | need_version=no | |
00aafda4 | 11955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 11956 | shlibpath_var=LD_LIBRARY_PATH |
11957 | shlibpath_overrides_runpath=no | |
11958 | hardcode_into_libs=yes | |
11959 | ;; | |
11960 | ||
11961 | uts4*) | |
11962 | version_type=linux | |
11963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11964 | soname_spec='${libname}${release}${shared_ext}$major' | |
11965 | shlibpath_var=LD_LIBRARY_PATH | |
11966 | ;; | |
11967 | ||
11968 | *) | |
11969 | dynamic_linker=no | |
11970 | ;; | |
11971 | esac | |
cd9a469c | 11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11973 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 11974 | test "$dynamic_linker" = no && can_build_shared=no |
11975 | ||
11976 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11977 | if test "$GCC" = yes; then | |
11978 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11979 | fi | |
11980 | ||
00aafda4 | 11981 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11982 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11983 | fi | |
11984 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11985 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11986 | fi | |
11987 | ||
542f9784 | 11988 | |
11989 | ||
11990 | ||
11991 | ||
11992 | ||
11993 | ||
11994 | ||
11995 | ||
11996 | ||
11997 | ||
11998 | ||
11999 | ||
12000 | ||
12001 | ||
12002 | ||
12003 | ||
12004 | ||
12005 | ||
12006 | ||
12007 | ||
12008 | ||
12009 | ||
12010 | ||
12011 | ||
12012 | ||
12013 | ||
12014 | ||
12015 | ||
12016 | ||
12017 | ||
12018 | ||
12019 | ||
12020 | ||
12021 | ||
12022 | ||
12023 | ||
12024 | ||
12025 | ||
12026 | ||
12027 | ||
12028 | ||
12029 | ||
12030 | ||
12031 | ||
12032 | ||
12033 | ||
12034 | ||
12035 | ||
12036 | ||
12037 | ||
12038 | ||
12039 | ||
12040 | ||
12041 | ||
12042 | ||
12043 | ||
12044 | ||
12045 | ||
12046 | ||
12047 | ||
12048 | ||
12049 | ||
12050 | ||
12051 | ||
12052 | ||
12053 | ||
12054 | ||
12055 | ||
12056 | ||
12057 | ||
12058 | ||
12059 | ||
12060 | ||
12061 | ||
12062 | ||
12063 | ||
12064 | ||
12065 | ||
12066 | ||
12067 | ||
e6408286 | 12068 | |
12069 | ||
12070 | ||
12071 | ||
12072 | ||
542f9784 | 12073 | |
12074 | ||
12075 | ||
12076 | ||
12077 | ||
12078 | ||
cd9a469c | 12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12080 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 12081 | hardcode_action= |
12082 | if test -n "$hardcode_libdir_flag_spec" || | |
12083 | test -n "$runpath_var" || | |
12084 | test "X$hardcode_automatic" = "Xyes" ; then | |
12085 | ||
12086 | # We can hardcode non-existent directories. | |
12087 | if test "$hardcode_direct" != no && | |
12088 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12089 | # have to relink, otherwise we might link with an installed library | |
12090 | # when we should be linking with a yet-to-be-installed one | |
12091 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12092 | test "$hardcode_minus_L" != no; then | |
12093 | # Linking always hardcodes the temporary library directory. | |
12094 | hardcode_action=relink | |
12095 | else | |
12096 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12097 | hardcode_action=immediate | |
12098 | fi | |
12099 | else | |
12100 | # We cannot hardcode anything, or else we can only hardcode existing | |
12101 | # directories. | |
12102 | hardcode_action=unsupported | |
12103 | fi | |
cd9a469c | 12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12105 | $as_echo "$hardcode_action" >&6; } | |
542f9784 | 12106 | |
12107 | if test "$hardcode_action" = relink || | |
12108 | test "$inherit_rpath" = yes; then | |
12109 | # Fast installation is not supported | |
12110 | enable_fast_install=no | |
12111 | elif test "$shlibpath_overrides_runpath" = yes || | |
12112 | test "$enable_shared" = no; then | |
12113 | # Fast installation is not necessary | |
12114 | enable_fast_install=needless | |
12115 | fi | |
12116 | ||
12117 | ||
12118 | ||
12119 | ||
12120 | ||
12121 | ||
12122 | if test "x$enable_dlopen" != xyes; then | |
12123 | enable_dlopen=unknown | |
12124 | enable_dlopen_self=unknown | |
12125 | enable_dlopen_self_static=unknown | |
12126 | else | |
12127 | lt_cv_dlopen=no | |
12128 | lt_cv_dlopen_libs= | |
12129 | ||
12130 | case $host_os in | |
12131 | beos*) | |
12132 | lt_cv_dlopen="load_add_on" | |
12133 | lt_cv_dlopen_libs= | |
12134 | lt_cv_dlopen_self=yes | |
12135 | ;; | |
12136 | ||
00aafda4 | 12137 | mingw* | pw32* | cegcc*) |
542f9784 | 12138 | lt_cv_dlopen="LoadLibrary" |
12139 | lt_cv_dlopen_libs= | |
12140 | ;; | |
12141 | ||
12142 | cygwin*) | |
12143 | lt_cv_dlopen="dlopen" | |
12144 | lt_cv_dlopen_libs= | |
12145 | ;; | |
12146 | ||
12147 | darwin*) | |
12148 | # if libdl is installed we need to link against it | |
cd9a469c | 12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12150 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12151 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
12152 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12153 | else |
12154 | ac_check_lib_save_LIBS=$LIBS | |
12155 | LIBS="-ldl $LIBS" | |
12156 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 12157 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12158 | fi |
cd9a469c | 12159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12160 | /* end confdefs.h. */ |
12161 | ||
cd9a469c | 12162 | /* Override any GCC internal prototype to avoid an error. |
12163 | Use char because int might match the return type of a GCC | |
12164 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12165 | #ifdef __cplusplus |
12166 | extern "C" | |
12167 | #endif | |
542f9784 | 12168 | char dlopen (); |
12169 | int | |
12170 | main () | |
12171 | { | |
cd9a469c | 12172 | return dlopen (); |
542f9784 | 12173 | ; |
12174 | return 0; | |
12175 | } | |
12176 | _ACEOF | |
cd9a469c | 12177 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12178 | ac_cv_lib_dl_dlopen=yes |
12179 | else | |
cd9a469c | 12180 | ac_cv_lib_dl_dlopen=no |
542f9784 | 12181 | fi |
cd9a469c | 12182 | rm -f core conftest.err conftest.$ac_objext \ |
12183 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12184 | LIBS=$ac_check_lib_save_LIBS |
12185 | fi | |
cd9a469c | 12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12187 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12188 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
542f9784 | 12189 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12190 | else | |
12191 | ||
12192 | lt_cv_dlopen="dyld" | |
12193 | lt_cv_dlopen_libs= | |
12194 | lt_cv_dlopen_self=yes | |
12195 | ||
12196 | fi | |
12197 | ||
12198 | ;; | |
12199 | ||
12200 | *) | |
cd9a469c | 12201 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
12202 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
542f9784 | 12203 | lt_cv_dlopen="shl_load" |
12204 | else | |
cd9a469c | 12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12206 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12207 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
12208 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12209 | else |
12210 | ac_check_lib_save_LIBS=$LIBS | |
12211 | LIBS="-ldld $LIBS" | |
12212 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 12213 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12214 | fi |
cd9a469c | 12215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12216 | /* end confdefs.h. */ |
12217 | ||
cd9a469c | 12218 | /* Override any GCC internal prototype to avoid an error. |
12219 | Use char because int might match the return type of a GCC | |
12220 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12221 | #ifdef __cplusplus |
12222 | extern "C" | |
12223 | #endif | |
542f9784 | 12224 | char shl_load (); |
12225 | int | |
12226 | main () | |
12227 | { | |
cd9a469c | 12228 | return shl_load (); |
542f9784 | 12229 | ; |
12230 | return 0; | |
12231 | } | |
12232 | _ACEOF | |
cd9a469c | 12233 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12234 | ac_cv_lib_dld_shl_load=yes |
12235 | else | |
cd9a469c | 12236 | ac_cv_lib_dld_shl_load=no |
542f9784 | 12237 | fi |
cd9a469c | 12238 | rm -f core conftest.err conftest.$ac_objext \ |
12239 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12240 | LIBS=$ac_check_lib_save_LIBS |
12241 | fi | |
cd9a469c | 12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12243 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12244 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
00aafda4 | 12245 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
542f9784 | 12246 | else |
cd9a469c | 12247 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
12248 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
542f9784 | 12249 | lt_cv_dlopen="dlopen" |
12250 | else | |
cd9a469c | 12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12252 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12253 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
12254 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12255 | else |
12256 | ac_check_lib_save_LIBS=$LIBS | |
12257 | LIBS="-ldl $LIBS" | |
12258 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 12259 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12260 | fi |
cd9a469c | 12261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12262 | /* end confdefs.h. */ |
12263 | ||
cd9a469c | 12264 | /* Override any GCC internal prototype to avoid an error. |
12265 | Use char because int might match the return type of a GCC | |
12266 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12267 | #ifdef __cplusplus |
12268 | extern "C" | |
12269 | #endif | |
542f9784 | 12270 | char dlopen (); |
12271 | int | |
12272 | main () | |
12273 | { | |
cd9a469c | 12274 | return dlopen (); |
542f9784 | 12275 | ; |
12276 | return 0; | |
12277 | } | |
12278 | _ACEOF | |
cd9a469c | 12279 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12280 | ac_cv_lib_dl_dlopen=yes |
12281 | else | |
cd9a469c | 12282 | ac_cv_lib_dl_dlopen=no |
542f9784 | 12283 | fi |
cd9a469c | 12284 | rm -f core conftest.err conftest.$ac_objext \ |
12285 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12286 | LIBS=$ac_check_lib_save_LIBS |
12287 | fi | |
cd9a469c | 12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12289 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12290 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
542f9784 | 12291 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12292 | else | |
cd9a469c | 12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12294 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12295 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
12296 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12297 | else |
12298 | ac_check_lib_save_LIBS=$LIBS | |
12299 | LIBS="-lsvld $LIBS" | |
12300 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 12301 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12302 | fi |
cd9a469c | 12303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12304 | /* end confdefs.h. */ |
12305 | ||
cd9a469c | 12306 | /* Override any GCC internal prototype to avoid an error. |
12307 | Use char because int might match the return type of a GCC | |
12308 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12309 | #ifdef __cplusplus |
12310 | extern "C" | |
12311 | #endif | |
542f9784 | 12312 | char dlopen (); |
12313 | int | |
12314 | main () | |
12315 | { | |
cd9a469c | 12316 | return dlopen (); |
542f9784 | 12317 | ; |
12318 | return 0; | |
12319 | } | |
12320 | _ACEOF | |
cd9a469c | 12321 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12322 | ac_cv_lib_svld_dlopen=yes |
12323 | else | |
cd9a469c | 12324 | ac_cv_lib_svld_dlopen=no |
542f9784 | 12325 | fi |
cd9a469c | 12326 | rm -f core conftest.err conftest.$ac_objext \ |
12327 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12328 | LIBS=$ac_check_lib_save_LIBS |
12329 | fi | |
cd9a469c | 12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12331 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12332 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
542f9784 | 12333 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12334 | else | |
cd9a469c | 12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12336 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12337 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
12338 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12339 | else |
12340 | ac_check_lib_save_LIBS=$LIBS | |
12341 | LIBS="-ldld $LIBS" | |
12342 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 12343 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12344 | fi |
cd9a469c | 12345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12346 | /* end confdefs.h. */ |
12347 | ||
cd9a469c | 12348 | /* Override any GCC internal prototype to avoid an error. |
12349 | Use char because int might match the return type of a GCC | |
12350 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12351 | #ifdef __cplusplus |
12352 | extern "C" | |
12353 | #endif | |
542f9784 | 12354 | char dld_link (); |
12355 | int | |
12356 | main () | |
12357 | { | |
cd9a469c | 12358 | return dld_link (); |
542f9784 | 12359 | ; |
12360 | return 0; | |
12361 | } | |
12362 | _ACEOF | |
cd9a469c | 12363 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12364 | ac_cv_lib_dld_dld_link=yes |
12365 | else | |
cd9a469c | 12366 | ac_cv_lib_dld_dld_link=no |
542f9784 | 12367 | fi |
cd9a469c | 12368 | rm -f core conftest.err conftest.$ac_objext \ |
12369 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12370 | LIBS=$ac_check_lib_save_LIBS |
12371 | fi | |
cd9a469c | 12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12373 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12374 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
00aafda4 | 12375 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
542f9784 | 12376 | fi |
12377 | ||
12378 | ||
12379 | fi | |
12380 | ||
12381 | ||
12382 | fi | |
12383 | ||
12384 | ||
12385 | fi | |
12386 | ||
12387 | ||
12388 | fi | |
12389 | ||
12390 | ||
12391 | fi | |
12392 | ||
12393 | ;; | |
12394 | esac | |
12395 | ||
12396 | if test "x$lt_cv_dlopen" != xno; then | |
12397 | enable_dlopen=yes | |
12398 | else | |
12399 | enable_dlopen=no | |
12400 | fi | |
12401 | ||
12402 | case $lt_cv_dlopen in | |
12403 | dlopen) | |
12404 | save_CPPFLAGS="$CPPFLAGS" | |
12405 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12406 | ||
12407 | save_LDFLAGS="$LDFLAGS" | |
12408 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12409 | ||
12410 | save_LIBS="$LIBS" | |
12411 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12412 | ||
cd9a469c | 12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12414 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12415 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
12416 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12417 | else |
12418 | if test "$cross_compiling" = yes; then : | |
12419 | lt_cv_dlopen_self=cross | |
12420 | else | |
12421 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12422 | lt_status=$lt_dlunknown | |
12423 | cat > conftest.$ac_ext <<_LT_EOF | |
0812bb06 | 12424 | #line 12424 "configure" |
542f9784 | 12425 | #include "confdefs.h" |
12426 | ||
12427 | #if HAVE_DLFCN_H | |
12428 | #include <dlfcn.h> | |
12429 | #endif | |
12430 | ||
12431 | #include <stdio.h> | |
12432 | ||
12433 | #ifdef RTLD_GLOBAL | |
12434 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12435 | #else | |
12436 | # ifdef DL_GLOBAL | |
12437 | # define LT_DLGLOBAL DL_GLOBAL | |
12438 | # else | |
12439 | # define LT_DLGLOBAL 0 | |
12440 | # endif | |
12441 | #endif | |
12442 | ||
12443 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12444 | find out it does not work in some platform. */ | |
12445 | #ifndef LT_DLLAZY_OR_NOW | |
12446 | # ifdef RTLD_LAZY | |
12447 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12448 | # else | |
12449 | # ifdef DL_LAZY | |
12450 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12451 | # else | |
12452 | # ifdef RTLD_NOW | |
12453 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12454 | # else | |
12455 | # ifdef DL_NOW | |
12456 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12457 | # else | |
12458 | # define LT_DLLAZY_OR_NOW 0 | |
12459 | # endif | |
12460 | # endif | |
12461 | # endif | |
12462 | # endif | |
12463 | #endif | |
12464 | ||
e6408286 | 12465 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12466 | correspondingly for the symbols needed. */ | |
12467 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12468 | void fnord () __attribute__((visibility("default"))); | |
12469 | #endif | |
12470 | ||
12471 | void fnord () { int i=42; } | |
542f9784 | 12472 | int main () |
12473 | { | |
12474 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12475 | int status = $lt_dlunknown; | |
12476 | ||
12477 | if (self) | |
12478 | { | |
12479 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 12480 | else |
12481 | { | |
12482 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12483 | else puts (dlerror ()); | |
12484 | } | |
542f9784 | 12485 | /* dlclose (self); */ |
12486 | } | |
12487 | else | |
12488 | puts (dlerror ()); | |
12489 | ||
00aafda4 | 12490 | return status; |
542f9784 | 12491 | } |
12492 | _LT_EOF | |
cd9a469c | 12493 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 12494 | (eval $ac_link) 2>&5 |
12495 | ac_status=$? | |
cd9a469c | 12496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12497 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 12498 | (./conftest; exit; ) >&5 2>/dev/null |
12499 | lt_status=$? | |
12500 | case x$lt_status in | |
12501 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12502 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12503 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12504 | esac | |
12505 | else : | |
12506 | # compilation failed | |
12507 | lt_cv_dlopen_self=no | |
12508 | fi | |
12509 | fi | |
12510 | rm -fr conftest* | |
12511 | ||
12512 | ||
12513 | fi | |
cd9a469c | 12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12515 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
542f9784 | 12516 | |
12517 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12518 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
cd9a469c | 12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12520 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12521 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
12522 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12523 | else |
12524 | if test "$cross_compiling" = yes; then : | |
12525 | lt_cv_dlopen_self_static=cross | |
12526 | else | |
12527 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12528 | lt_status=$lt_dlunknown | |
12529 | cat > conftest.$ac_ext <<_LT_EOF | |
0812bb06 | 12530 | #line 12530 "configure" |
542f9784 | 12531 | #include "confdefs.h" |
12532 | ||
12533 | #if HAVE_DLFCN_H | |
12534 | #include <dlfcn.h> | |
12535 | #endif | |
12536 | ||
12537 | #include <stdio.h> | |
12538 | ||
12539 | #ifdef RTLD_GLOBAL | |
12540 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12541 | #else | |
12542 | # ifdef DL_GLOBAL | |
12543 | # define LT_DLGLOBAL DL_GLOBAL | |
12544 | # else | |
12545 | # define LT_DLGLOBAL 0 | |
12546 | # endif | |
12547 | #endif | |
12548 | ||
12549 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12550 | find out it does not work in some platform. */ | |
12551 | #ifndef LT_DLLAZY_OR_NOW | |
12552 | # ifdef RTLD_LAZY | |
12553 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12554 | # else | |
12555 | # ifdef DL_LAZY | |
12556 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12557 | # else | |
12558 | # ifdef RTLD_NOW | |
12559 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12560 | # else | |
12561 | # ifdef DL_NOW | |
12562 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12563 | # else | |
12564 | # define LT_DLLAZY_OR_NOW 0 | |
12565 | # endif | |
12566 | # endif | |
12567 | # endif | |
12568 | # endif | |
12569 | #endif | |
12570 | ||
e6408286 | 12571 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12572 | correspondingly for the symbols needed. */ | |
12573 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12574 | void fnord () __attribute__((visibility("default"))); | |
12575 | #endif | |
12576 | ||
12577 | void fnord () { int i=42; } | |
542f9784 | 12578 | int main () |
12579 | { | |
12580 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12581 | int status = $lt_dlunknown; | |
12582 | ||
12583 | if (self) | |
12584 | { | |
12585 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 12586 | else |
12587 | { | |
12588 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12589 | else puts (dlerror ()); | |
12590 | } | |
542f9784 | 12591 | /* dlclose (self); */ |
12592 | } | |
12593 | else | |
12594 | puts (dlerror ()); | |
12595 | ||
00aafda4 | 12596 | return status; |
542f9784 | 12597 | } |
12598 | _LT_EOF | |
cd9a469c | 12599 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 12600 | (eval $ac_link) 2>&5 |
12601 | ac_status=$? | |
cd9a469c | 12602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12603 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 12604 | (./conftest; exit; ) >&5 2>/dev/null |
12605 | lt_status=$? | |
12606 | case x$lt_status in | |
12607 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12608 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12609 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12610 | esac | |
12611 | else : | |
12612 | # compilation failed | |
12613 | lt_cv_dlopen_self_static=no | |
12614 | fi | |
12615 | fi | |
12616 | rm -fr conftest* | |
12617 | ||
12618 | ||
12619 | fi | |
cd9a469c | 12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12621 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
542f9784 | 12622 | fi |
12623 | ||
12624 | CPPFLAGS="$save_CPPFLAGS" | |
12625 | LDFLAGS="$save_LDFLAGS" | |
12626 | LIBS="$save_LIBS" | |
12627 | ;; | |
12628 | esac | |
12629 | ||
12630 | case $lt_cv_dlopen_self in | |
12631 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12632 | *) enable_dlopen_self=unknown ;; | |
12633 | esac | |
12634 | ||
12635 | case $lt_cv_dlopen_self_static in | |
12636 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12637 | *) enable_dlopen_self_static=unknown ;; | |
12638 | esac | |
12639 | fi | |
12640 | ||
12641 | ||
12642 | ||
12643 | ||
12644 | ||
12645 | ||
12646 | ||
12647 | ||
12648 | ||
12649 | ||
12650 | ||
12651 | ||
12652 | ||
12653 | ||
12654 | ||
12655 | ||
12656 | ||
12657 | striplib= | |
12658 | old_striplib= | |
cd9a469c | 12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
12660 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
542f9784 | 12661 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
12662 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12663 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
cd9a469c | 12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12665 | $as_echo "yes" >&6; } | |
542f9784 | 12666 | else |
12667 | # FIXME - insert some real tests, host_os isn't really good enough | |
12668 | case $host_os in | |
12669 | darwin*) | |
12670 | if test -n "$STRIP" ; then | |
12671 | striplib="$STRIP -x" | |
12672 | old_striplib="$STRIP -S" | |
cd9a469c | 12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12674 | $as_echo "yes" >&6; } | |
542f9784 | 12675 | else |
cd9a469c | 12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12677 | $as_echo "no" >&6; } | |
542f9784 | 12678 | fi |
12679 | ;; | |
12680 | *) | |
cd9a469c | 12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12682 | $as_echo "no" >&6; } | |
542f9784 | 12683 | ;; |
12684 | esac | |
12685 | fi | |
12686 | ||
12687 | ||
12688 | ||
12689 | ||
12690 | ||
12691 | ||
12692 | ||
12693 | ||
12694 | ||
12695 | ||
12696 | ||
12697 | ||
e6408286 | 12698 | # Report which library types will actually be built |
12699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12700 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12702 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 12703 | |
e6408286 | 12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12705 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12706 | test "$can_build_shared" = "no" && enable_shared=no | |
542f9784 | 12707 | |
e6408286 | 12708 | # On AIX, shared libraries and static libraries use the same namespace, and |
12709 | # are all built from PIC. | |
12710 | case $host_os in | |
12711 | aix3*) | |
12712 | test "$enable_shared" = yes && enable_static=no | |
12713 | if test -n "$RANLIB"; then | |
12714 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12715 | postinstall_cmds='$RANLIB $lib' | |
12716 | fi | |
12717 | ;; | |
542f9784 | 12718 | |
e6408286 | 12719 | aix[4-9]*) |
12720 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12721 | test "$enable_shared" = yes && enable_static=no | |
12722 | fi | |
12723 | ;; | |
12724 | esac | |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12726 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 12727 | |
e6408286 | 12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12729 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12730 | # Make sure either enable_shared or enable_static is yes. | |
12731 | test "$enable_shared" = yes || enable_static=yes | |
12732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12733 | $as_echo "$enable_static" >&6; } | |
542f9784 | 12734 | |
542f9784 | 12735 | |
542f9784 | 12736 | |
542f9784 | 12737 | |
12738 | fi | |
542f9784 | 12739 | ac_ext=c |
12740 | ac_cpp='$CPP $CPPFLAGS' | |
12741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12744 | ||
e6408286 | 12745 | CC="$lt_save_CC" |
12746 | ||
12747 | ||
12748 | ||
12749 | ||
12750 | ||
12751 | ||
12752 | ||
12753 | ||
12754 | ||
12755 | ||
12756 | ||
12757 | ||
12758 | ||
12759 | ac_config_commands="$ac_config_commands libtool" | |
12760 | ||
12761 | ||
12762 | ||
12763 | ||
12764 | # Only expand once: | |
12765 | ||
12766 | ||
12767 | ||
12768 | ||
8c35d268 | 12769 | |
12770 | case $host in | |
12771 | *-cygwin* | *-mingw*) | |
12772 | # 'host' will be top-level target in the case of a target lib, | |
12773 | # we must compare to with_cross_host to decide if this is a native | |
12774 | # or cross-compiler and select where to install dlls appropriately. | |
12775 | if test -n "$with_cross_host" && | |
12776 | test x"$with_cross_host" != x"no"; then | |
12777 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
12778 | else | |
12779 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
12780 | fi | |
12781 | ;; | |
12782 | *) | |
12783 | lt_host_flags= | |
12784 | ;; | |
12785 | esac | |
12786 | ||
12787 | ||
12788 | ||
12789 | ||
12790 | ||
e6408286 | 12791 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
542f9784 | 12792 | |
e6408286 | 12793 | # We need gfortran to compile parts of the library |
12794 | #AC_PROG_FC(gfortran) | |
12795 | FC="$GFORTRAN" | |
cd9a469c | 12796 | ac_ext=${ac_fc_srcext-f} |
12797 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
12798 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 12799 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
12800 | if test -n "$ac_tool_prefix"; then | |
e6408286 | 12801 | for ac_prog in gfortran |
542f9784 | 12802 | do |
12803 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12804 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 12805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12806 | $as_echo_n "checking for $ac_word... " >&6; } | |
12807 | if test "${ac_cv_prog_FC+set}" = set; then : | |
12808 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12809 | else |
12810 | if test -n "$FC"; then | |
12811 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
12812 | else | |
12813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12814 | for as_dir in $PATH | |
12815 | do | |
12816 | IFS=$as_save_IFS | |
12817 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12818 | for ac_exec_ext in '' $ac_executable_extensions; do |
12819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 12820 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
cd9a469c | 12821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 12822 | break 2 |
12823 | fi | |
12824 | done | |
cd9a469c | 12825 | done |
12826 | IFS=$as_save_IFS | |
542f9784 | 12827 | |
12828 | fi | |
12829 | fi | |
12830 | FC=$ac_cv_prog_FC | |
12831 | if test -n "$FC"; then | |
cd9a469c | 12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
12833 | $as_echo "$FC" >&6; } | |
542f9784 | 12834 | else |
cd9a469c | 12835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12836 | $as_echo "no" >&6; } | |
542f9784 | 12837 | fi |
12838 | ||
cd9a469c | 12839 | |
542f9784 | 12840 | test -n "$FC" && break |
12841 | done | |
12842 | fi | |
12843 | if test -z "$FC"; then | |
12844 | ac_ct_FC=$FC | |
e6408286 | 12845 | for ac_prog in gfortran |
542f9784 | 12846 | do |
12847 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12848 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 12849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12850 | $as_echo_n "checking for $ac_word... " >&6; } | |
12851 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : | |
12852 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12853 | else |
12854 | if test -n "$ac_ct_FC"; then | |
12855 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
12856 | else | |
12857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12858 | for as_dir in $PATH | |
12859 | do | |
12860 | IFS=$as_save_IFS | |
12861 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12862 | for ac_exec_ext in '' $ac_executable_extensions; do |
12863 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 12864 | ac_cv_prog_ac_ct_FC="$ac_prog" |
cd9a469c | 12865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 12866 | break 2 |
12867 | fi | |
12868 | done | |
cd9a469c | 12869 | done |
12870 | IFS=$as_save_IFS | |
542f9784 | 12871 | |
12872 | fi | |
12873 | fi | |
12874 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
12875 | if test -n "$ac_ct_FC"; then | |
cd9a469c | 12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
12877 | $as_echo "$ac_ct_FC" >&6; } | |
542f9784 | 12878 | else |
cd9a469c | 12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12880 | $as_echo "no" >&6; } | |
542f9784 | 12881 | fi |
12882 | ||
cd9a469c | 12883 | |
542f9784 | 12884 | test -n "$ac_ct_FC" && break |
82eaf560 | 12885 | done |
12886 | ||
cd9a469c | 12887 | if test "x$ac_ct_FC" = x; then |
12888 | FC="" | |
12889 | else | |
12890 | case $cross_compiling:$ac_tool_warned in | |
12891 | yes:) | |
12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12894 | ac_tool_warned=yes ;; | |
12895 | esac | |
12896 | FC=$ac_ct_FC | |
12897 | fi | |
542f9784 | 12898 | fi |
12899 | ||
12900 | ||
12901 | # Provide some information about the compiler. | |
cd9a469c | 12902 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
12903 | set X $ac_compile | |
12904 | ac_compiler=$2 | |
12905 | for ac_option in --version -v -V -qversion; do | |
12906 | { { ac_try="$ac_compiler $ac_option >&5" | |
12907 | case "(($ac_try" in | |
12908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12909 | *) ac_try_echo=$ac_try;; | |
12910 | esac | |
12911 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12912 | $as_echo "$ac_try_echo"; } >&5 | |
12913 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
542f9784 | 12914 | ac_status=$? |
cd9a469c | 12915 | if test -s conftest.err; then |
12916 | sed '10a\ | |
12917 | ... rest of stderr output deleted ... | |
12918 | 10q' conftest.err >conftest.er1 | |
12919 | cat conftest.er1 >&5 | |
12920 | rm -f conftest.er1 conftest.err | |
12921 | fi | |
12922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12923 | test $ac_status = 0; } | |
12924 | done | |
542f9784 | 12925 | rm -f a.out |
12926 | ||
12927 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
12928 | # input file. (Note that this only needs to work for GNU compilers.) | |
12929 | ac_save_ext=$ac_ext | |
12930 | ac_ext=F | |
cd9a469c | 12931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
12932 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
12933 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then : | |
12934 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12935 | else |
cd9a469c | 12936 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 12937 | program main |
12938 | #ifndef __GNUC__ | |
12939 | choke me | |
12940 | #endif | |
12941 | ||
12942 | end | |
12943 | _ACEOF | |
cd9a469c | 12944 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 12945 | ac_compiler_gnu=yes |
12946 | else | |
cd9a469c | 12947 | ac_compiler_gnu=no |
542f9784 | 12948 | fi |
cd9a469c | 12949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 12950 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
12951 | ||
12952 | fi | |
cd9a469c | 12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
12954 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
542f9784 | 12955 | ac_ext=$ac_save_ext |
cd9a469c | 12956 | ac_test_FCFLAGS=${FCFLAGS+set} |
12957 | ac_save_FCFLAGS=$FCFLAGS | |
542f9784 | 12958 | FCFLAGS= |
cd9a469c | 12959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
12960 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
12961 | if test "${ac_cv_prog_fc_g+set}" = set; then : | |
12962 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12963 | else |
12964 | FCFLAGS=-g | |
cd9a469c | 12965 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 12966 | program main |
12967 | ||
12968 | end | |
12969 | _ACEOF | |
cd9a469c | 12970 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 12971 | ac_cv_prog_fc_g=yes |
12972 | else | |
cd9a469c | 12973 | ac_cv_prog_fc_g=no |
542f9784 | 12974 | fi |
cd9a469c | 12975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 12976 | |
12977 | fi | |
cd9a469c | 12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
12979 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
12980 | if test "$ac_test_FCFLAGS" = set; then | |
12981 | FCFLAGS=$ac_save_FCFLAGS | |
542f9784 | 12982 | elif test $ac_cv_prog_fc_g = yes; then |
12983 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
12984 | FCFLAGS="-g -O2" | |
12985 | else | |
12986 | FCFLAGS="-g" | |
12987 | fi | |
12988 | else | |
12989 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
12990 | FCFLAGS="-O2" | |
12991 | else | |
12992 | FCFLAGS= | |
12993 | fi | |
12994 | fi | |
12995 | ||
12996 | ac_ext=c | |
12997 | ac_cpp='$CPP $CPPFLAGS' | |
12998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13001 | ||
cd9a469c | 13002 | ac_ext=${ac_fc_srcext-f} |
13003 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13004 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 13005 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13006 | ||
13007 | ||
e6408286 | 13008 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13009 | _lt_disable_FC=yes | |
13010 | fi | |
13011 | ||
542f9784 | 13012 | archive_cmds_need_lc_FC=no |
13013 | allow_undefined_flag_FC= | |
13014 | always_export_symbols_FC=no | |
13015 | archive_expsym_cmds_FC= | |
13016 | export_dynamic_flag_spec_FC= | |
13017 | hardcode_direct_FC=no | |
13018 | hardcode_direct_absolute_FC=no | |
13019 | hardcode_libdir_flag_spec_FC= | |
13020 | hardcode_libdir_flag_spec_ld_FC= | |
13021 | hardcode_libdir_separator_FC= | |
13022 | hardcode_minus_L_FC=no | |
13023 | hardcode_automatic_FC=no | |
13024 | inherit_rpath_FC=no | |
13025 | module_cmds_FC= | |
13026 | module_expsym_cmds_FC= | |
13027 | link_all_deplibs_FC=unknown | |
13028 | old_archive_cmds_FC=$old_archive_cmds | |
e6408286 | 13029 | reload_flag_FC=$reload_flag |
13030 | reload_cmds_FC=$reload_cmds | |
542f9784 | 13031 | no_undefined_flag_FC= |
13032 | whole_archive_flag_spec_FC= | |
13033 | enable_shared_with_static_runtimes_FC=no | |
13034 | ||
13035 | # Source file extension for fc test sources. | |
13036 | ac_ext=${ac_fc_srcext-f} | |
13037 | ||
13038 | # Object file extension for compiled fc test sources. | |
13039 | objext=o | |
13040 | objext_FC=$objext | |
13041 | ||
13042 | # No sense in running all these tests if we already determined that | |
13043 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13044 | # are currently assumed to apply to all compilers on this platform, | |
13045 | # and will be corrupted by setting them based on a non-working compiler. | |
13046 | if test "$_lt_disable_FC" != yes; then | |
13047 | # Code to be used in simple compile tests | |
13048 | lt_simple_compile_test_code="\ | |
13049 | subroutine t | |
13050 | return | |
13051 | end | |
13052 | " | |
13053 | ||
13054 | # Code to be used in simple link tests | |
13055 | lt_simple_link_test_code="\ | |
13056 | program t | |
13057 | end | |
13058 | " | |
13059 | ||
13060 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13061 | ||
13062 | ||
13063 | ||
13064 | ||
13065 | ||
13066 | ||
13067 | # If no C compiler was specified, use CC. | |
13068 | LTCC=${LTCC-"$CC"} | |
13069 | ||
13070 | # If no C compiler flags were specified, use CFLAGS. | |
13071 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13072 | ||
13073 | # Allow CC to be a program name with arguments. | |
13074 | compiler=$CC | |
13075 | ||
13076 | ||
13077 | # save warnings/boilerplate of simple test code | |
13078 | ac_outfile=conftest.$ac_objext | |
13079 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13080 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13081 | _lt_compiler_boilerplate=`cat conftest.err` | |
13082 | $RM conftest* | |
13083 | ||
13084 | ac_outfile=conftest.$ac_objext | |
13085 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13086 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13087 | _lt_linker_boilerplate=`cat conftest.err` | |
00aafda4 | 13088 | $RM -r conftest* |
542f9784 | 13089 | |
13090 | ||
13091 | # Allow CC to be a program name with arguments. | |
13092 | lt_save_CC="$CC" | |
00aafda4 | 13093 | lt_save_GCC=$GCC |
542f9784 | 13094 | CC=${FC-"f95"} |
13095 | compiler=$CC | |
00aafda4 | 13096 | GCC=$ac_cv_fc_compiler_gnu |
13097 | ||
542f9784 | 13098 | compiler_FC=$CC |
13099 | for cc_temp in $compiler""; do | |
13100 | case $cc_temp in | |
13101 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13102 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13103 | \-*) ;; | |
13104 | *) break;; | |
13105 | esac | |
13106 | done | |
e6408286 | 13107 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 13108 | |
13109 | ||
13110 | if test -n "$compiler"; then | |
cd9a469c | 13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13112 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13114 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 13115 | |
cd9a469c | 13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13117 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
542f9784 | 13118 | test "$can_build_shared" = "no" && enable_shared=no |
13119 | ||
13120 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13121 | # are all built from PIC. | |
13122 | case $host_os in | |
13123 | aix3*) | |
13124 | test "$enable_shared" = yes && enable_static=no | |
13125 | if test -n "$RANLIB"; then | |
13126 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13127 | postinstall_cmds='$RANLIB $lib' | |
13128 | fi | |
13129 | ;; | |
21e07d2f | 13130 | aix[4-9]*) |
542f9784 | 13131 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13132 | test "$enable_shared" = yes && enable_static=no | |
13133 | fi | |
13134 | ;; | |
13135 | esac | |
cd9a469c | 13136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13137 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 13138 | |
cd9a469c | 13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13140 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
542f9784 | 13141 | # Make sure either enable_shared or enable_static is yes. |
13142 | test "$enable_shared" = yes || enable_static=yes | |
cd9a469c | 13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13144 | $as_echo "$enable_static" >&6; } | |
542f9784 | 13145 | |
13146 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13147 | LD_FC="$LD" | |
13148 | ||
13149 | ## CAVEAT EMPTOR: | |
13150 | ## There is no encapsulation within the following macros, do not change | |
13151 | ## the running order or otherwise move them around unless you know exactly | |
13152 | ## what you are doing... | |
13153 | # Dependencies to place before and after the object being linked: | |
13154 | predep_objects_FC= | |
13155 | postdep_objects_FC= | |
13156 | predeps_FC= | |
13157 | postdeps_FC= | |
13158 | compiler_lib_search_path_FC= | |
13159 | ||
13160 | cat > conftest.$ac_ext <<_LT_EOF | |
13161 | subroutine foo | |
13162 | implicit none | |
13163 | integer a | |
13164 | a=0 | |
13165 | return | |
13166 | end | |
13167 | _LT_EOF | |
13168 | ||
cd9a469c | 13169 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 13170 | (eval $ac_compile) 2>&5 |
13171 | ac_status=$? | |
cd9a469c | 13172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13173 | test $ac_status = 0; }; then | |
542f9784 | 13174 | # Parse the compiler output and extract the necessary |
13175 | # objects, libraries and library flags. | |
13176 | ||
13177 | # Sentinel used to keep track of whether or not we are before | |
13178 | # the conftest object file. | |
13179 | pre_test_object_deps_done=no | |
13180 | ||
00aafda4 | 13181 | for p in `eval "$output_verbose_link_cmd"`; do |
542f9784 | 13182 | case $p in |
13183 | ||
13184 | -L* | -R* | -l*) | |
13185 | # Some compilers place space between "-{L,R}" and the path. | |
13186 | # Remove the space. | |
13187 | if test $p = "-L" || | |
13188 | test $p = "-R"; then | |
13189 | prev=$p | |
13190 | continue | |
13191 | else | |
13192 | prev= | |
13193 | fi | |
13194 | ||
13195 | if test "$pre_test_object_deps_done" = no; then | |
13196 | case $p in | |
13197 | -L* | -R*) | |
13198 | # Internal compiler library paths should come after those | |
13199 | # provided the user. The postdeps already come after the | |
13200 | # user supplied libs so there is no need to process them. | |
13201 | if test -z "$compiler_lib_search_path_FC"; then | |
13202 | compiler_lib_search_path_FC="${prev}${p}" | |
13203 | else | |
13204 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13205 | fi | |
13206 | ;; | |
13207 | # The "-l" case would never come before the object being | |
13208 | # linked, so don't bother handling this case. | |
13209 | esac | |
13210 | else | |
13211 | if test -z "$postdeps_FC"; then | |
13212 | postdeps_FC="${prev}${p}" | |
13213 | else | |
13214 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13215 | fi | |
13216 | fi | |
13217 | ;; | |
13218 | ||
13219 | *.$objext) | |
13220 | # This assumes that the test object file only shows up | |
13221 | # once in the compiler output. | |
13222 | if test "$p" = "conftest.$objext"; then | |
13223 | pre_test_object_deps_done=yes | |
13224 | continue | |
13225 | fi | |
13226 | ||
13227 | if test "$pre_test_object_deps_done" = no; then | |
13228 | if test -z "$predep_objects_FC"; then | |
13229 | predep_objects_FC="$p" | |
13230 | else | |
13231 | predep_objects_FC="$predep_objects_FC $p" | |
13232 | fi | |
13233 | else | |
13234 | if test -z "$postdep_objects_FC"; then | |
13235 | postdep_objects_FC="$p" | |
13236 | else | |
13237 | postdep_objects_FC="$postdep_objects_FC $p" | |
13238 | fi | |
13239 | fi | |
13240 | ;; | |
13241 | ||
13242 | *) ;; # Ignore the rest. | |
13243 | ||
13244 | esac | |
13245 | done | |
13246 | ||
13247 | # Clean up. | |
13248 | rm -f a.out a.exe | |
13249 | else | |
13250 | echo "libtool.m4: error: problem compiling FC test program" | |
13251 | fi | |
13252 | ||
13253 | $RM -f confest.$objext | |
13254 | ||
13255 | # PORTME: override above test on systems where it is broken | |
13256 | ||
13257 | ||
13258 | case " $postdeps_FC " in | |
13259 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13260 | esac | |
00aafda4 | 13261 | compiler_lib_search_dirs_FC= |
13262 | if test -n "${compiler_lib_search_path_FC}"; then | |
13263 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13264 | fi | |
13265 | ||
13266 | ||
13267 | ||
13268 | ||
13269 | ||
542f9784 | 13270 | |
13271 | ||
13272 | ||
13273 | ||
13274 | ||
13275 | ||
13276 | ||
13277 | ||
13278 | ||
13279 | ||
13280 | ||
13281 | ||
13282 | ||
13283 | ||
13284 | ||
13285 | ||
13286 | ||
13287 | ||
13288 | ||
13289 | ||
13290 | ||
13291 | ||
13292 | ||
13293 | ||
13294 | ||
13295 | ||
13296 | lt_prog_compiler_wl_FC= | |
13297 | lt_prog_compiler_pic_FC= | |
13298 | lt_prog_compiler_static_FC= | |
13299 | ||
cd9a469c | 13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13301 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 13302 | |
13303 | if test "$GCC" = yes; then | |
13304 | lt_prog_compiler_wl_FC='-Wl,' | |
13305 | lt_prog_compiler_static_FC='-static' | |
13306 | ||
13307 | case $host_os in | |
13308 | aix*) | |
13309 | # All AIX code is PIC. | |
13310 | if test "$host_cpu" = ia64; then | |
13311 | # AIX 5 now supports IA64 processor | |
13312 | lt_prog_compiler_static_FC='-Bstatic' | |
13313 | fi | |
ccc0b0f9 | 13314 | lt_prog_compiler_pic_FC='-fPIC' |
542f9784 | 13315 | ;; |
13316 | ||
13317 | amigaos*) | |
00aafda4 | 13318 | case $host_cpu in |
13319 | powerpc) | |
13320 | # see comment about AmigaOS4 .so support | |
13321 | lt_prog_compiler_pic_FC='-fPIC' | |
13322 | ;; | |
13323 | m68k) | |
13324 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13325 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13326 | # like `-m68040'. | |
13327 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13328 | ;; | |
13329 | esac | |
542f9784 | 13330 | ;; |
13331 | ||
13332 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13333 | # PIC is the default for these OSes. | |
13334 | ;; | |
13335 | ||
00aafda4 | 13336 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 13337 | # This hack is so that the source file can tell whether it is being |
13338 | # built for inclusion in a dll (and should export symbols for example). | |
13339 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13340 | # (--disable-auto-import) libraries | |
13341 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13342 | ;; | |
13343 | ||
13344 | darwin* | rhapsody*) | |
13345 | # PIC is the default on this platform | |
13346 | # Common symbols not allowed in MH_DYLIB files | |
13347 | lt_prog_compiler_pic_FC='-fno-common' | |
13348 | ;; | |
13349 | ||
e6408286 | 13350 | haiku*) |
13351 | # PIC is the default for Haiku. | |
13352 | # The "-static" flag exists, but is broken. | |
13353 | lt_prog_compiler_static_FC= | |
13354 | ;; | |
13355 | ||
542f9784 | 13356 | hpux*) |
00aafda4 | 13357 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13358 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13359 | # sets the default TLS model and affects inlining. | |
542f9784 | 13360 | case $host_cpu in |
00aafda4 | 13361 | hppa*64*) |
542f9784 | 13362 | # +Z the default |
13363 | ;; | |
13364 | *) | |
13365 | lt_prog_compiler_pic_FC='-fPIC' | |
13366 | ;; | |
13367 | esac | |
13368 | ;; | |
13369 | ||
13370 | interix[3-9]*) | |
13371 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13372 | # Instead, we relocate shared libraries at runtime. | |
13373 | ;; | |
13374 | ||
13375 | msdosdjgpp*) | |
13376 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13377 | # on systems that don't support them. | |
13378 | lt_prog_compiler_can_build_shared_FC=no | |
13379 | enable_shared=no | |
13380 | ;; | |
13381 | ||
13382 | *nto* | *qnx*) | |
13383 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13384 | # it will coredump. | |
13385 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13386 | ;; | |
13387 | ||
13388 | sysv4*MP*) | |
13389 | if test -d /usr/nec; then | |
13390 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13391 | fi | |
13392 | ;; | |
13393 | ||
13394 | *) | |
13395 | lt_prog_compiler_pic_FC='-fPIC' | |
13396 | ;; | |
13397 | esac | |
e6408286 | 13398 | |
13399 | case $cc_basename in | |
13400 | nvcc*) # Cuda Compiler Driver 2.2 | |
13401 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13402 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13403 | ;; | |
13404 | esac | |
542f9784 | 13405 | else |
13406 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13407 | case $host_os in | |
13408 | aix*) | |
13409 | lt_prog_compiler_wl_FC='-Wl,' | |
13410 | if test "$host_cpu" = ia64; then | |
13411 | # AIX 5 now supports IA64 processor | |
13412 | lt_prog_compiler_static_FC='-Bstatic' | |
13413 | else | |
13414 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13415 | fi | |
13416 | ;; | |
542f9784 | 13417 | |
00aafda4 | 13418 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 13419 | # This hack is so that the source file can tell whether it is being |
13420 | # built for inclusion in a dll (and should export symbols for example). | |
13421 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13422 | ;; | |
13423 | ||
13424 | hpux9* | hpux10* | hpux11*) | |
13425 | lt_prog_compiler_wl_FC='-Wl,' | |
13426 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13427 | # not for PA HP-UX. | |
13428 | case $host_cpu in | |
13429 | hppa*64*|ia64*) | |
13430 | # +Z the default | |
13431 | ;; | |
13432 | *) | |
13433 | lt_prog_compiler_pic_FC='+Z' | |
13434 | ;; | |
13435 | esac | |
13436 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13437 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13438 | ;; | |
13439 | ||
13440 | irix5* | irix6* | nonstopux*) | |
13441 | lt_prog_compiler_wl_FC='-Wl,' | |
13442 | # PIC (with -KPIC) is the default. | |
13443 | lt_prog_compiler_static_FC='-non_shared' | |
13444 | ;; | |
13445 | ||
9af964d4 | 13446 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 13447 | case $cc_basename in |
00aafda4 | 13448 | # old Intel for x86_64 which still supported -KPIC. |
13449 | ecc*) | |
542f9784 | 13450 | lt_prog_compiler_wl_FC='-Wl,' |
13451 | lt_prog_compiler_pic_FC='-KPIC' | |
13452 | lt_prog_compiler_static_FC='-static' | |
13453 | ;; | |
00aafda4 | 13454 | # icc used to be incompatible with GCC. |
13455 | # ICC 10 doesn't accept -KPIC any more. | |
13456 | icc* | ifort*) | |
13457 | lt_prog_compiler_wl_FC='-Wl,' | |
13458 | lt_prog_compiler_pic_FC='-fPIC' | |
13459 | lt_prog_compiler_static_FC='-static' | |
13460 | ;; | |
13461 | # Lahey Fortran 8.1. | |
13462 | lf95*) | |
13463 | lt_prog_compiler_wl_FC='-Wl,' | |
13464 | lt_prog_compiler_pic_FC='--shared' | |
13465 | lt_prog_compiler_static_FC='--static' | |
13466 | ;; | |
e6408286 | 13467 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 13468 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13469 | # which looks to be a dead project) | |
13470 | lt_prog_compiler_wl_FC='-Wl,' | |
13471 | lt_prog_compiler_pic_FC='-fpic' | |
13472 | lt_prog_compiler_static_FC='-Bstatic' | |
13473 | ;; | |
13474 | ccc*) | |
13475 | lt_prog_compiler_wl_FC='-Wl,' | |
13476 | # All Alpha code is PIC. | |
13477 | lt_prog_compiler_static_FC='-non_shared' | |
13478 | ;; | |
e6408286 | 13479 | xl* | bgxl* | bgf* | mpixl*) |
13480 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
00aafda4 | 13481 | lt_prog_compiler_wl_FC='-Wl,' |
13482 | lt_prog_compiler_pic_FC='-qpic' | |
13483 | lt_prog_compiler_static_FC='-qstaticlink' | |
13484 | ;; | |
542f9784 | 13485 | *) |
13486 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 13487 | *Sun\ F* | *Sun*Fortran*) |
13488 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 13489 | lt_prog_compiler_pic_FC='-KPIC' |
13490 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 13491 | lt_prog_compiler_wl_FC='' |
542f9784 | 13492 | ;; |
e6408286 | 13493 | *Sun\ C*) |
13494 | # Sun C 5.9 | |
542f9784 | 13495 | lt_prog_compiler_pic_FC='-KPIC' |
13496 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 13497 | lt_prog_compiler_wl_FC='-Wl,' |
542f9784 | 13498 | ;; |
13499 | esac | |
13500 | ;; | |
13501 | esac | |
13502 | ;; | |
13503 | ||
13504 | newsos6) | |
13505 | lt_prog_compiler_pic_FC='-KPIC' | |
13506 | lt_prog_compiler_static_FC='-Bstatic' | |
13507 | ;; | |
13508 | ||
13509 | *nto* | *qnx*) | |
13510 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13511 | # it will coredump. | |
13512 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13513 | ;; | |
13514 | ||
13515 | osf3* | osf4* | osf5*) | |
13516 | lt_prog_compiler_wl_FC='-Wl,' | |
13517 | # All OSF/1 code is PIC. | |
13518 | lt_prog_compiler_static_FC='-non_shared' | |
13519 | ;; | |
13520 | ||
13521 | rdos*) | |
13522 | lt_prog_compiler_static_FC='-non_shared' | |
13523 | ;; | |
13524 | ||
13525 | solaris*) | |
13526 | lt_prog_compiler_pic_FC='-KPIC' | |
13527 | lt_prog_compiler_static_FC='-Bstatic' | |
13528 | case $cc_basename in | |
13529 | f77* | f90* | f95*) | |
13530 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
13531 | *) | |
13532 | lt_prog_compiler_wl_FC='-Wl,';; | |
13533 | esac | |
13534 | ;; | |
13535 | ||
13536 | sunos4*) | |
13537 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
13538 | lt_prog_compiler_pic_FC='-PIC' | |
13539 | lt_prog_compiler_static_FC='-Bstatic' | |
13540 | ;; | |
13541 | ||
13542 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13543 | lt_prog_compiler_wl_FC='-Wl,' | |
13544 | lt_prog_compiler_pic_FC='-KPIC' | |
13545 | lt_prog_compiler_static_FC='-Bstatic' | |
13546 | ;; | |
13547 | ||
13548 | sysv4*MP*) | |
13549 | if test -d /usr/nec ;then | |
13550 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
13551 | lt_prog_compiler_static_FC='-Bstatic' | |
13552 | fi | |
13553 | ;; | |
13554 | ||
13555 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13556 | lt_prog_compiler_wl_FC='-Wl,' | |
13557 | lt_prog_compiler_pic_FC='-KPIC' | |
13558 | lt_prog_compiler_static_FC='-Bstatic' | |
13559 | ;; | |
13560 | ||
13561 | unicos*) | |
13562 | lt_prog_compiler_wl_FC='-Wl,' | |
13563 | lt_prog_compiler_can_build_shared_FC=no | |
13564 | ;; | |
13565 | ||
13566 | uts4*) | |
13567 | lt_prog_compiler_pic_FC='-pic' | |
13568 | lt_prog_compiler_static_FC='-Bstatic' | |
13569 | ;; | |
13570 | ||
13571 | *) | |
13572 | lt_prog_compiler_can_build_shared_FC=no | |
13573 | ;; | |
13574 | esac | |
13575 | fi | |
13576 | ||
13577 | case $host_os in | |
13578 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13579 | *djgpp*) | |
13580 | lt_prog_compiler_pic_FC= | |
13581 | ;; | |
13582 | *) | |
13583 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
13584 | ;; | |
13585 | esac | |
cd9a469c | 13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
13587 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
542f9784 | 13588 | |
13589 | ||
13590 | ||
13591 | # | |
13592 | # Check to make sure the PIC flag actually works. | |
13593 | # | |
13594 | if test -n "$lt_prog_compiler_pic_FC"; then | |
cd9a469c | 13595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
13596 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
13597 | if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then : | |
13598 | $as_echo_n "(cached) " >&6 | |
542f9784 | 13599 | else |
00aafda4 | 13600 | lt_cv_prog_compiler_pic_works_FC=no |
542f9784 | 13601 | ac_outfile=conftest.$ac_objext |
13602 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13603 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
13604 | # Insert the option either (1) after the last *FLAGS variable, or | |
13605 | # (2) before a word containing "conftest.", or (3) at the end. | |
13606 | # Note that $ac_compile itself does not contain backslashes and begins | |
13607 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13608 | # The option is referenced via a variable to avoid confusing sed. | |
13609 | lt_compile=`echo "$ac_compile" | $SED \ | |
13610 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13611 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13612 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13613 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13614 | (eval "$lt_compile" 2>conftest.err) |
13615 | ac_status=$? | |
13616 | cat conftest.err >&5 | |
e6408286 | 13617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13618 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13619 | # The compiler can only warn and ignore the option if not recognized | |
13620 | # So say no if there are warnings other than the usual output. | |
e6408286 | 13621 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 13622 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13623 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 13624 | lt_cv_prog_compiler_pic_works_FC=yes |
542f9784 | 13625 | fi |
13626 | fi | |
13627 | $RM conftest* | |
13628 | ||
13629 | fi | |
cd9a469c | 13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
13631 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
542f9784 | 13632 | |
00aafda4 | 13633 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
542f9784 | 13634 | case $lt_prog_compiler_pic_FC in |
13635 | "" | " "*) ;; | |
13636 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
13637 | esac | |
13638 | else | |
13639 | lt_prog_compiler_pic_FC= | |
13640 | lt_prog_compiler_can_build_shared_FC=no | |
13641 | fi | |
13642 | ||
13643 | fi | |
13644 | ||
13645 | ||
13646 | ||
13647 | # | |
13648 | # Check to make sure the static flag actually works. | |
13649 | # | |
13650 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
cd9a469c | 13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13652 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13653 | if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then : | |
13654 | $as_echo_n "(cached) " >&6 | |
542f9784 | 13655 | else |
00aafda4 | 13656 | lt_cv_prog_compiler_static_works_FC=no |
542f9784 | 13657 | save_LDFLAGS="$LDFLAGS" |
13658 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13659 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13660 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13661 | # The linker can only warn and ignore the option if not recognized | |
13662 | # So say no if there are warnings | |
13663 | if test -s conftest.err; then | |
13664 | # Append any errors to the config.log. | |
13665 | cat conftest.err 1>&5 | |
e6408286 | 13666 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 13667 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13668 | if diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 13669 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 13670 | fi |
13671 | else | |
00aafda4 | 13672 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 13673 | fi |
13674 | fi | |
00aafda4 | 13675 | $RM -r conftest* |
542f9784 | 13676 | LDFLAGS="$save_LDFLAGS" |
13677 | ||
13678 | fi | |
cd9a469c | 13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
13680 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
542f9784 | 13681 | |
00aafda4 | 13682 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
542f9784 | 13683 | : |
13684 | else | |
13685 | lt_prog_compiler_static_FC= | |
13686 | fi | |
13687 | ||
13688 | ||
13689 | ||
13690 | ||
cd9a469c | 13691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13692 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13693 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then : | |
13694 | $as_echo_n "(cached) " >&6 | |
542f9784 | 13695 | else |
13696 | lt_cv_prog_compiler_c_o_FC=no | |
13697 | $RM -r conftest 2>/dev/null | |
13698 | mkdir conftest | |
13699 | cd conftest | |
13700 | mkdir out | |
13701 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13702 | ||
13703 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13704 | # Insert the option either (1) after the last *FLAGS variable, or | |
13705 | # (2) before a word containing "conftest.", or (3) at the end. | |
13706 | # Note that $ac_compile itself does not contain backslashes and begins | |
13707 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13708 | lt_compile=`echo "$ac_compile" | $SED \ | |
13709 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13710 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13711 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13712 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13713 | (eval "$lt_compile" 2>out/conftest.err) |
13714 | ac_status=$? | |
13715 | cat out/conftest.err >&5 | |
e6408286 | 13716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13717 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13718 | then | |
13719 | # The compiler can only warn and ignore the option if not recognized | |
13720 | # So say no if there are warnings | |
e6408286 | 13721 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 13722 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13723 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13724 | lt_cv_prog_compiler_c_o_FC=yes | |
13725 | fi | |
13726 | fi | |
13727 | chmod u+w . 2>&5 | |
13728 | $RM conftest* | |
13729 | # SGI C++ compiler will create directory out/ii_files/ for | |
13730 | # template instantiation | |
13731 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13732 | $RM out/* && rmdir out | |
13733 | cd .. | |
13734 | $RM -r conftest | |
13735 | $RM conftest* | |
13736 | ||
13737 | fi | |
cd9a469c | 13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
13739 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 13740 | |
13741 | ||
13742 | ||
cd9a469c | 13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13744 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13745 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then : | |
13746 | $as_echo_n "(cached) " >&6 | |
542f9784 | 13747 | else |
13748 | lt_cv_prog_compiler_c_o_FC=no | |
13749 | $RM -r conftest 2>/dev/null | |
13750 | mkdir conftest | |
13751 | cd conftest | |
13752 | mkdir out | |
13753 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13754 | ||
13755 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13756 | # Insert the option either (1) after the last *FLAGS variable, or | |
13757 | # (2) before a word containing "conftest.", or (3) at the end. | |
13758 | # Note that $ac_compile itself does not contain backslashes and begins | |
13759 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13760 | lt_compile=`echo "$ac_compile" | $SED \ | |
13761 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13762 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13763 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13764 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13765 | (eval "$lt_compile" 2>out/conftest.err) |
13766 | ac_status=$? | |
13767 | cat out/conftest.err >&5 | |
e6408286 | 13768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13769 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13770 | then | |
13771 | # The compiler can only warn and ignore the option if not recognized | |
13772 | # So say no if there are warnings | |
e6408286 | 13773 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 13774 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13775 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13776 | lt_cv_prog_compiler_c_o_FC=yes | |
13777 | fi | |
13778 | fi | |
13779 | chmod u+w . 2>&5 | |
13780 | $RM conftest* | |
13781 | # SGI C++ compiler will create directory out/ii_files/ for | |
13782 | # template instantiation | |
13783 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13784 | $RM out/* && rmdir out | |
13785 | cd .. | |
13786 | $RM -r conftest | |
13787 | $RM conftest* | |
13788 | ||
13789 | fi | |
cd9a469c | 13790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
13791 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 13792 | |
13793 | ||
13794 | ||
13795 | ||
13796 | hard_links="nottested" | |
13797 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
13798 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
13800 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 13801 | hard_links=yes |
13802 | $RM conftest* | |
13803 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13804 | touch conftest.a | |
13805 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13806 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
13808 | $as_echo "$hard_links" >&6; } | |
542f9784 | 13809 | if test "$hard_links" = no; then |
cd9a469c | 13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13811 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 13812 | need_locks=warn |
13813 | fi | |
13814 | else | |
13815 | need_locks=no | |
13816 | fi | |
13817 | ||
13818 | ||
13819 | ||
cd9a469c | 13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13821 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 13822 | |
13823 | runpath_var= | |
13824 | allow_undefined_flag_FC= | |
13825 | always_export_symbols_FC=no | |
13826 | archive_cmds_FC= | |
13827 | archive_expsym_cmds_FC= | |
13828 | compiler_needs_object_FC=no | |
13829 | enable_shared_with_static_runtimes_FC=no | |
13830 | export_dynamic_flag_spec_FC= | |
13831 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13832 | hardcode_automatic_FC=no | |
13833 | hardcode_direct_FC=no | |
13834 | hardcode_direct_absolute_FC=no | |
13835 | hardcode_libdir_flag_spec_FC= | |
13836 | hardcode_libdir_flag_spec_ld_FC= | |
13837 | hardcode_libdir_separator_FC= | |
13838 | hardcode_minus_L_FC=no | |
13839 | hardcode_shlibpath_var_FC=unsupported | |
13840 | inherit_rpath_FC=no | |
13841 | link_all_deplibs_FC=unknown | |
13842 | module_cmds_FC= | |
13843 | module_expsym_cmds_FC= | |
13844 | old_archive_from_new_cmds_FC= | |
13845 | old_archive_from_expsyms_cmds_FC= | |
13846 | thread_safe_flag_spec_FC= | |
13847 | whole_archive_flag_spec_FC= | |
13848 | # include_expsyms should be a list of space-separated symbols to be *always* | |
13849 | # included in the symbol list | |
13850 | include_expsyms_FC= | |
13851 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
13852 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13853 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13854 | # as well as any symbol that contains `d'. | |
00aafda4 | 13855 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 13856 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13857 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
13858 | # the symbol is explicitly referenced. Since portable code cannot | |
13859 | # rely on this symbol name, it's probably fine to never include it in | |
13860 | # preloaded symbol tables. | |
00aafda4 | 13861 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 13862 | extract_expsyms_cmds= |
13863 | ||
13864 | case $host_os in | |
00aafda4 | 13865 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 13866 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13867 | # When not using gcc, we currently assume that we are using | |
13868 | # Microsoft Visual C++. | |
13869 | if test "$GCC" != yes; then | |
13870 | with_gnu_ld=no | |
13871 | fi | |
13872 | ;; | |
13873 | interix*) | |
13874 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
13875 | with_gnu_ld=yes | |
13876 | ;; | |
13877 | openbsd*) | |
13878 | with_gnu_ld=no | |
13879 | ;; | |
13880 | esac | |
13881 | ||
13882 | ld_shlibs_FC=yes | |
e6408286 | 13883 | |
13884 | # On some targets, GNU ld is compatible enough with the native linker | |
13885 | # that we're better off using the native interface for both. | |
13886 | lt_use_gnu_ld_interface=no | |
542f9784 | 13887 | if test "$with_gnu_ld" = yes; then |
e6408286 | 13888 | case $host_os in |
13889 | aix*) | |
13890 | # The AIX port of GNU ld has always aspired to compatibility | |
13891 | # with the native linker. However, as the warning in the GNU ld | |
13892 | # block says, versions before 2.19.5* couldn't really create working | |
13893 | # shared libraries, regardless of the interface used. | |
13894 | case `$LD -v 2>&1` in | |
13895 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
13896 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
13897 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
13898 | *) | |
13899 | lt_use_gnu_ld_interface=yes | |
13900 | ;; | |
13901 | esac | |
13902 | ;; | |
13903 | *) | |
13904 | lt_use_gnu_ld_interface=yes | |
13905 | ;; | |
13906 | esac | |
13907 | fi | |
13908 | ||
13909 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 13910 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13911 | wlarc='${wl}' | |
13912 | ||
13913 | # Set some defaults for GNU ld with shared library support. These | |
13914 | # are reset later if shared libraries are not supported. Putting them | |
13915 | # here allows them to be overridden if necessary. | |
13916 | runpath_var=LD_RUN_PATH | |
13917 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13918 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
13919 | # ancient GNU ld didn't support --whole-archive et. al. | |
13920 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
13921 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13922 | else | |
13923 | whole_archive_flag_spec_FC= | |
13924 | fi | |
13925 | supports_anon_versioning=no | |
13926 | case `$LD -v 2>&1` in | |
e6408286 | 13927 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 13928 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13929 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13930 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13931 | *\ 2.11.*) ;; # other 2.11 versions | |
13932 | *) supports_anon_versioning=yes ;; | |
13933 | esac | |
13934 | ||
13935 | # See if GNU ld supports shared libraries. | |
13936 | case $host_os in | |
21e07d2f | 13937 | aix[3-9]*) |
542f9784 | 13938 | # On AIX/PPC, the GNU linker is very broken |
13939 | if test "$host_cpu" != ia64; then | |
13940 | ld_shlibs_FC=no | |
13941 | cat <<_LT_EOF 1>&2 | |
13942 | ||
e6408286 | 13943 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 13944 | *** to be unable to reliably create shared libraries on AIX. |
13945 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 13946 | *** really care for shared libraries, you may want to install binutils |
13947 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
13948 | *** You will then need to restart the configuration process. | |
542f9784 | 13949 | |
13950 | _LT_EOF | |
13951 | fi | |
13952 | ;; | |
13953 | ||
13954 | amigaos*) | |
00aafda4 | 13955 | case $host_cpu in |
13956 | powerpc) | |
13957 | # see comment about AmigaOS4 .so support | |
13958 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13959 | archive_expsym_cmds_FC='' | |
13960 | ;; | |
13961 | m68k) | |
13962 | archive_cmds_FC='$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)' | |
13963 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13964 | hardcode_minus_L_FC=yes | |
13965 | ;; | |
13966 | esac | |
542f9784 | 13967 | ;; |
13968 | ||
13969 | beos*) | |
13970 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13971 | allow_undefined_flag_FC=unsupported | |
13972 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13973 | # support --undefined. This deserves some investigation. FIXME | |
13974 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13975 | else | |
13976 | ld_shlibs_FC=no | |
13977 | fi | |
13978 | ;; | |
13979 | ||
00aafda4 | 13980 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 13981 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
13982 | # as there is no search path for DLLs. | |
13983 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
e6408286 | 13984 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
542f9784 | 13985 | allow_undefined_flag_FC=unsupported |
13986 | always_export_symbols_FC=no | |
13987 | enable_shared_with_static_runtimes_FC=yes | |
13988 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
13989 | ||
13990 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13991 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13992 | # If the export-symbols file already is a .def file (1st line | |
13993 | # is EXPORTS), use it as is; otherwise, prepend... | |
13994 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13995 | cp $export_symbols $output_objdir/$soname.def; | |
13996 | else | |
13997 | echo EXPORTS > $output_objdir/$soname.def; | |
13998 | cat $export_symbols >> $output_objdir/$soname.def; | |
13999 | fi~ | |
14000 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14001 | else | |
14002 | ld_shlibs_FC=no | |
14003 | fi | |
14004 | ;; | |
14005 | ||
e6408286 | 14006 | haiku*) |
14007 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14008 | link_all_deplibs_FC=yes | |
14009 | ;; | |
14010 | ||
542f9784 | 14011 | interix[3-9]*) |
14012 | hardcode_direct_FC=no | |
14013 | hardcode_shlibpath_var_FC=no | |
14014 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14015 | export_dynamic_flag_spec_FC='${wl}-E' | |
14016 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14017 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14018 | # default) and relocated if they conflict, which is a slow very memory | |
14019 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14020 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14021 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14022 | archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
14023 | archive_expsym_cmds_FC='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' | |
14024 | ;; | |
14025 | ||
9af964d4 | 14026 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 14027 | tmp_diet=no |
14028 | if test "$host_os" = linux-dietlibc; then | |
14029 | case $cc_basename in | |
14030 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14031 | esac | |
14032 | fi | |
14033 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14034 | && test "$tmp_diet" = no | |
14035 | then | |
4e8a08d4 | 14036 | tmp_addflag=' $pic_flag' |
00aafda4 | 14037 | tmp_sharedflag='-shared' |
542f9784 | 14038 | case $cc_basename,$host_cpu in |
14039 | pgcc*) # Portland Group C compiler | |
e6408286 | 14040 | whole_archive_flag_spec_FC='${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' |
542f9784 | 14041 | tmp_addflag=' $pic_flag' |
14042 | ;; | |
e6408286 | 14043 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14044 | # Portland Group f77 and f90 compilers | |
14045 | whole_archive_flag_spec_FC='${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' | |
542f9784 | 14046 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14047 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14048 | tmp_addflag=' -i_dynamic' ;; | |
14049 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14050 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14051 | ifc* | ifort*) # Intel Fortran compiler | |
14052 | tmp_addflag=' -nofor_main' ;; | |
00aafda4 | 14053 | lf95*) # Lahey Fortran 8.1 |
14054 | whole_archive_flag_spec_FC= | |
14055 | tmp_sharedflag='--shared' ;; | |
e6408286 | 14056 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
00aafda4 | 14057 | tmp_sharedflag='-qmkshrobj' |
14058 | tmp_addflag= ;; | |
e6408286 | 14059 | nvcc*) # Cuda Compiler Driver 2.2 |
14060 | whole_archive_flag_spec_FC='${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' | |
14061 | compiler_needs_object_FC=yes | |
14062 | ;; | |
542f9784 | 14063 | esac |
14064 | case `$CC -V 2>&1 | sed 5q` in | |
14065 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 14066 | whole_archive_flag_spec_FC='${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' |
542f9784 | 14067 | compiler_needs_object_FC=yes |
14068 | tmp_sharedflag='-G' ;; | |
14069 | *Sun\ F*) # Sun Fortran 8.3 | |
14070 | tmp_sharedflag='-G' ;; | |
542f9784 | 14071 | esac |
14072 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14073 | ||
14074 | if test "x$supports_anon_versioning" = xyes; then | |
14075 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14076 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14077 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14078 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14079 | fi | |
00aafda4 | 14080 | |
14081 | case $cc_basename in | |
e6408286 | 14082 | xlf* | bgf* | bgxlf* | mpixlf*) |
00aafda4 | 14083 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14084 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14085 | hardcode_libdir_flag_spec_FC= | |
14086 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14087 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14088 | if test "x$supports_anon_versioning" = xyes; then | |
14089 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14090 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14091 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14092 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14093 | fi | |
14094 | ;; | |
14095 | esac | |
542f9784 | 14096 | else |
14097 | ld_shlibs_FC=no | |
14098 | fi | |
14099 | ;; | |
14100 | ||
14101 | netbsd*) | |
14102 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14103 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14104 | wlarc= | |
14105 | else | |
14106 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14107 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14108 | fi | |
14109 | ;; | |
14110 | ||
14111 | solaris*) | |
14112 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14113 | ld_shlibs_FC=no | |
14114 | cat <<_LT_EOF 1>&2 | |
14115 | ||
14116 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14117 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14118 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14119 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14120 | *** your PATH or compiler configuration so that the native linker is | |
14121 | *** used, and then restart. | |
14122 | ||
14123 | _LT_EOF | |
14124 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14125 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14126 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14127 | else | |
14128 | ld_shlibs_FC=no | |
14129 | fi | |
14130 | ;; | |
14131 | ||
14132 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14133 | case `$LD -v 2>&1` in | |
14134 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14135 | ld_shlibs_FC=no | |
14136 | cat <<_LT_EOF 1>&2 | |
14137 | ||
14138 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14139 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14140 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14141 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14142 | *** your PATH or compiler configuration so that the native linker is | |
14143 | *** used, and then restart. | |
14144 | ||
14145 | _LT_EOF | |
14146 | ;; | |
14147 | *) | |
14148 | # For security reasons, it is highly recommended that you always | |
14149 | # use absolute paths for naming shared libraries, and exclude the | |
14150 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14151 | # requires that you compile everything twice, which is a pain. | |
14152 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14153 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14154 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14155 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14156 | else | |
14157 | ld_shlibs_FC=no | |
14158 | fi | |
14159 | ;; | |
14160 | esac | |
14161 | ;; | |
14162 | ||
14163 | sunos4*) | |
14164 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14165 | wlarc= | |
14166 | hardcode_direct_FC=yes | |
14167 | hardcode_shlibpath_var_FC=no | |
14168 | ;; | |
14169 | ||
14170 | *) | |
14171 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14172 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14173 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14174 | else | |
14175 | ld_shlibs_FC=no | |
14176 | fi | |
14177 | ;; | |
14178 | esac | |
14179 | ||
14180 | if test "$ld_shlibs_FC" = no; then | |
14181 | runpath_var= | |
14182 | hardcode_libdir_flag_spec_FC= | |
14183 | export_dynamic_flag_spec_FC= | |
14184 | whole_archive_flag_spec_FC= | |
14185 | fi | |
14186 | else | |
14187 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14188 | case $host_os in | |
14189 | aix3*) | |
14190 | allow_undefined_flag_FC=unsupported | |
14191 | always_export_symbols_FC=yes | |
14192 | archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
14193 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14194 | # are no directories specified by -L. | |
14195 | hardcode_minus_L_FC=yes | |
14196 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14197 | # Neither direct hardcoding nor static linking is supported with a | |
14198 | # broken collect2. | |
14199 | hardcode_direct_FC=unsupported | |
14200 | fi | |
14201 | ;; | |
14202 | ||
21e07d2f | 14203 | aix[4-9]*) |
542f9784 | 14204 | if test "$host_cpu" = ia64; then |
14205 | # On IA64, the linker does run time linking by default, so we don't | |
14206 | # have to do anything special. | |
14207 | aix_use_runtimelinking=no | |
14208 | exp_sym_flag='-Bexport' | |
14209 | no_entry_flag="" | |
14210 | else | |
14211 | # If we're using GNU nm, then we don't want the "-C" option. | |
14212 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 14213 | # Also, AIX nm treats weak defined symbols like other global |
14214 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 14215 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 14216 | export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
542f9784 | 14217 | else |
8c596dcc | 14218 | export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
542f9784 | 14219 | fi |
14220 | aix_use_runtimelinking=no | |
14221 | ||
14222 | # Test if we are trying to use run time linking or normal | |
14223 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14224 | # need to do runtime linking. | |
21e07d2f | 14225 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 14226 | for ld_flag in $LDFLAGS; do |
14227 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14228 | aix_use_runtimelinking=yes | |
14229 | break | |
14230 | fi | |
14231 | done | |
14232 | ;; | |
14233 | esac | |
14234 | ||
14235 | exp_sym_flag='-bexport' | |
14236 | no_entry_flag='-bnoentry' | |
14237 | fi | |
14238 | ||
14239 | # When large executables or shared objects are built, AIX ld can | |
14240 | # have problems creating the table of contents. If linking a library | |
14241 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14242 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14243 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14244 | ||
14245 | archive_cmds_FC='' | |
14246 | hardcode_direct_FC=yes | |
14247 | hardcode_direct_absolute_FC=yes | |
14248 | hardcode_libdir_separator_FC=':' | |
14249 | link_all_deplibs_FC=yes | |
14250 | file_list_spec_FC='${wl}-f,' | |
14251 | ||
14252 | if test "$GCC" = yes; then | |
14253 | case $host_os in aix4.[012]|aix4.[012].*) | |
14254 | # We only want to do this on AIX 4.2 and lower, the check | |
14255 | # below for broken collect2 doesn't work under 4.3+ | |
14256 | collect2name=`${CC} -print-prog-name=collect2` | |
14257 | if test -f "$collect2name" && | |
14258 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14259 | then | |
14260 | # We have reworked collect2 | |
14261 | : | |
14262 | else | |
14263 | # We have old collect2 | |
14264 | hardcode_direct_FC=unsupported | |
14265 | # It fails to find uninstalled libraries when the uninstalled | |
14266 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14267 | # to unsupported forces relinking | |
14268 | hardcode_minus_L_FC=yes | |
14269 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14270 | hardcode_libdir_separator_FC= | |
14271 | fi | |
14272 | ;; | |
14273 | esac | |
14274 | shared_flag='-shared' | |
14275 | if test "$aix_use_runtimelinking" = yes; then | |
14276 | shared_flag="$shared_flag "'${wl}-G' | |
14277 | fi | |
14278 | else | |
14279 | # not using gcc | |
14280 | if test "$host_cpu" = ia64; then | |
14281 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14282 | # chokes on -Wl,-G. The following line is correct: | |
14283 | shared_flag='-G' | |
14284 | else | |
14285 | if test "$aix_use_runtimelinking" = yes; then | |
14286 | shared_flag='${wl}-G' | |
14287 | else | |
14288 | shared_flag='${wl}-bM:SRE' | |
14289 | fi | |
14290 | fi | |
14291 | fi | |
14292 | ||
00aafda4 | 14293 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
542f9784 | 14294 | # It seems that -bexpall does not export symbols beginning with |
14295 | # underscore (_), so it is better to generate a list of symbols to export. | |
14296 | always_export_symbols_FC=yes | |
14297 | if test "$aix_use_runtimelinking" = yes; then | |
14298 | # Warning - without using the other runtime loading flags (-brtl), | |
14299 | # -berok will link without error, but may produce a broken library. | |
14300 | allow_undefined_flag_FC='-berok' | |
14301 | # Determine the default libpath from the value encoded in an | |
14302 | # empty executable. | |
14303 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 14304 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14305 | fi |
cd9a469c | 14306 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14307 | program main |
14308 | ||
14309 | end | |
14310 | _ACEOF | |
cd9a469c | 14311 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 14312 | |
14313 | lt_aix_libpath_sed=' | |
14314 | /Import File Strings/,/^$/ { | |
14315 | /^0/ { | |
14316 | s/^0 *\(.*\)$/\1/ | |
14317 | p | |
14318 | } | |
14319 | }' | |
14320 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14321 | # Check for a 64-bit object if we didn't find anything. | |
14322 | if test -z "$aix_libpath"; then | |
14323 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14324 | fi | |
542f9784 | 14325 | fi |
cd9a469c | 14326 | rm -f core conftest.err conftest.$ac_objext \ |
14327 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14328 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14329 | ||
14330 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 14331 | archive_expsym_cmds_FC='$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" |
542f9784 | 14332 | else |
14333 | if test "$host_cpu" = ia64; then | |
14334 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14335 | allow_undefined_flag_FC="-z nodefs" | |
14336 | archive_expsym_cmds_FC="\$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" | |
14337 | else | |
14338 | # Determine the default libpath from the value encoded in an | |
14339 | # empty executable. | |
14340 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 14341 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14342 | fi |
cd9a469c | 14343 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14344 | program main |
14345 | ||
14346 | end | |
14347 | _ACEOF | |
cd9a469c | 14348 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 14349 | |
14350 | lt_aix_libpath_sed=' | |
14351 | /Import File Strings/,/^$/ { | |
14352 | /^0/ { | |
14353 | s/^0 *\(.*\)$/\1/ | |
14354 | p | |
14355 | } | |
14356 | }' | |
14357 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14358 | # Check for a 64-bit object if we didn't find anything. | |
14359 | if test -z "$aix_libpath"; then | |
14360 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14361 | fi | |
542f9784 | 14362 | fi |
cd9a469c | 14363 | rm -f core conftest.err conftest.$ac_objext \ |
14364 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14365 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14366 | ||
14367 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14368 | # Warning - without using the other run time loading flags, | |
14369 | # -berok will link without error, but may produce a broken library. | |
14370 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14371 | allow_undefined_flag_FC=' ${wl}-berok' | |
e6408286 | 14372 | if test "$with_gnu_ld" = yes; then |
14373 | # We only use this code for GNU lds that support --whole-archive. | |
14374 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14375 | else | |
14376 | # Exported symbols can be pulled into shared objects from archives | |
14377 | whole_archive_flag_spec_FC='$convenience' | |
14378 | fi | |
542f9784 | 14379 | archive_cmds_need_lc_FC=yes |
14380 | # This is similar to how AIX traditionally builds its shared libraries. | |
14381 | archive_expsym_cmds_FC="\$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' | |
14382 | fi | |
14383 | fi | |
14384 | ;; | |
14385 | ||
14386 | amigaos*) | |
00aafda4 | 14387 | case $host_cpu in |
14388 | powerpc) | |
14389 | # see comment about AmigaOS4 .so support | |
14390 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14391 | archive_expsym_cmds_FC='' | |
14392 | ;; | |
14393 | m68k) | |
14394 | archive_cmds_FC='$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)' | |
14395 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14396 | hardcode_minus_L_FC=yes | |
14397 | ;; | |
14398 | esac | |
542f9784 | 14399 | ;; |
14400 | ||
14401 | bsdi[45]*) | |
14402 | export_dynamic_flag_spec_FC=-rdynamic | |
14403 | ;; | |
14404 | ||
00aafda4 | 14405 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14406 | # When not using gcc, we currently assume that we are using |
14407 | # Microsoft Visual C++. | |
14408 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14409 | # no search path for DLLs. | |
14410 | hardcode_libdir_flag_spec_FC=' ' | |
14411 | allow_undefined_flag_FC=unsupported | |
14412 | # Tell ltmain to make .lib files, not .a files. | |
14413 | libext=lib | |
14414 | # Tell ltmain to make .dll files, not .so files. | |
14415 | shrext_cmds=".dll" | |
14416 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 14417 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 14418 | # The linker will automatically build a .lib file if we build a DLL. |
14419 | old_archive_from_new_cmds_FC='true' | |
14420 | # FIXME: Should let the user specify the lib program. | |
14421 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14422 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14423 | enable_shared_with_static_runtimes_FC=yes | |
14424 | ;; | |
14425 | ||
14426 | darwin* | rhapsody*) | |
542f9784 | 14427 | |
00aafda4 | 14428 | |
14429 | archive_cmds_need_lc_FC=no | |
14430 | hardcode_direct_FC=no | |
14431 | hardcode_automatic_FC=yes | |
14432 | hardcode_shlibpath_var_FC=unsupported | |
e6408286 | 14433 | if test "$lt_cv_ld_force_load" = "yes"; then |
14434 | whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
14435 | else | |
14436 | whole_archive_flag_spec_FC='' | |
14437 | fi | |
00aafda4 | 14438 | link_all_deplibs_FC=yes |
14439 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14440 | case $cc_basename in | |
14441 | ifort*) _lt_dar_can_shared=yes ;; | |
14442 | *) _lt_dar_can_shared=$GCC ;; | |
14443 | esac | |
14444 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 14445 | output_verbose_link_cmd=func_echo_all |
00aafda4 | 14446 | archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
14447 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14448 | archive_expsym_cmds_FC="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}" | |
14449 | module_expsym_cmds_FC="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}" | |
14450 | ||
14451 | else | |
14452 | ld_shlibs_FC=no | |
14453 | fi | |
14454 | ||
542f9784 | 14455 | ;; |
14456 | ||
14457 | dgux*) | |
14458 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14459 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14460 | hardcode_shlibpath_var_FC=no | |
14461 | ;; | |
14462 | ||
542f9784 | 14463 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14464 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14465 | # does not break anything, and helps significantly (at the cost of a little | |
14466 | # extra space). | |
14467 | freebsd2.2*) | |
14468 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14469 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14470 | hardcode_direct_FC=yes | |
14471 | hardcode_shlibpath_var_FC=no | |
14472 | ;; | |
14473 | ||
14474 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
30369aff | 14475 | freebsd2.*) |
542f9784 | 14476 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14477 | hardcode_direct_FC=yes | |
14478 | hardcode_minus_L_FC=yes | |
14479 | hardcode_shlibpath_var_FC=no | |
14480 | ;; | |
14481 | ||
14482 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14483 | freebsd* | dragonfly*) | |
14484 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14485 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14486 | hardcode_direct_FC=yes | |
14487 | hardcode_shlibpath_var_FC=no | |
14488 | ;; | |
14489 | ||
14490 | hpux9*) | |
14491 | if test "$GCC" = yes; then | |
14492 | archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
14493 | else | |
14494 | archive_cmds_FC='$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' | |
14495 | fi | |
14496 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14497 | hardcode_libdir_separator_FC=: | |
14498 | hardcode_direct_FC=yes | |
14499 | ||
14500 | # hardcode_minus_L: Not really in the search PATH, | |
14501 | # but as the default location of the library. | |
14502 | hardcode_minus_L_FC=yes | |
14503 | export_dynamic_flag_spec_FC='${wl}-E' | |
14504 | ;; | |
14505 | ||
14506 | hpux10*) | |
e6408286 | 14507 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 14508 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14509 | else | |
14510 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14511 | fi | |
14512 | if test "$with_gnu_ld" = no; then | |
14513 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14514 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
14515 | hardcode_libdir_separator_FC=: | |
14516 | hardcode_direct_FC=yes | |
14517 | hardcode_direct_absolute_FC=yes | |
14518 | export_dynamic_flag_spec_FC='${wl}-E' | |
14519 | # hardcode_minus_L: Not really in the search PATH, | |
14520 | # but as the default location of the library. | |
14521 | hardcode_minus_L_FC=yes | |
14522 | fi | |
14523 | ;; | |
14524 | ||
14525 | hpux11*) | |
e6408286 | 14526 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 14527 | case $host_cpu in |
14528 | hppa*64*) | |
14529 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14530 | ;; | |
14531 | ia64*) | |
00aafda4 | 14532 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 14533 | ;; |
14534 | *) | |
14535 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14536 | ;; | |
14537 | esac | |
14538 | else | |
14539 | case $host_cpu in | |
14540 | hppa*64*) | |
14541 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14542 | ;; | |
14543 | ia64*) | |
14544 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14545 | ;; | |
14546 | *) | |
e6408286 | 14547 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 14548 | ;; |
14549 | esac | |
14550 | fi | |
14551 | if test "$with_gnu_ld" = no; then | |
14552 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14553 | hardcode_libdir_separator_FC=: | |
14554 | ||
14555 | case $host_cpu in | |
14556 | hppa*64*|ia64*) | |
14557 | hardcode_direct_FC=no | |
14558 | hardcode_shlibpath_var_FC=no | |
14559 | ;; | |
14560 | *) | |
14561 | hardcode_direct_FC=yes | |
14562 | hardcode_direct_absolute_FC=yes | |
14563 | export_dynamic_flag_spec_FC='${wl}-E' | |
14564 | ||
14565 | # hardcode_minus_L: Not really in the search PATH, | |
14566 | # but as the default location of the library. | |
14567 | hardcode_minus_L_FC=yes | |
14568 | ;; | |
14569 | esac | |
14570 | fi | |
14571 | ;; | |
14572 | ||
14573 | irix5* | irix6* | nonstopux*) | |
14574 | if test "$GCC" = yes; then | |
e6408286 | 14575 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
542f9784 | 14576 | # Try to use the -exported_symbol ld option, if it does not |
14577 | # work, assume that -exports_file does not work either and | |
14578 | # implicitly export all symbols. | |
14579 | save_LDFLAGS="$LDFLAGS" | |
14580 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
14581 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 14582 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14583 | fi |
cd9a469c | 14584 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14585 | int foo(void) {} |
14586 | _ACEOF | |
cd9a469c | 14587 | if ac_fn_fc_try_link "$LINENO"; then : |
e6408286 | 14588 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
542f9784 | 14589 | |
542f9784 | 14590 | fi |
cd9a469c | 14591 | rm -f core conftest.err conftest.$ac_objext \ |
14592 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14593 | LDFLAGS="$save_LDFLAGS" |
14594 | else | |
e6408286 | 14595 | archive_cmds_FC='$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' |
14596 | archive_expsym_cmds_FC='$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' | |
542f9784 | 14597 | fi |
14598 | archive_cmds_need_lc_FC='no' | |
14599 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14600 | hardcode_libdir_separator_FC=: | |
14601 | inherit_rpath_FC=yes | |
14602 | link_all_deplibs_FC=yes | |
14603 | ;; | |
14604 | ||
14605 | netbsd*) | |
14606 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14607 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14608 | else | |
14609 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14610 | fi | |
14611 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14612 | hardcode_direct_FC=yes | |
14613 | hardcode_shlibpath_var_FC=no | |
14614 | ;; | |
14615 | ||
14616 | newsos6) | |
14617 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14618 | hardcode_direct_FC=yes | |
14619 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14620 | hardcode_libdir_separator_FC=: | |
14621 | hardcode_shlibpath_var_FC=no | |
14622 | ;; | |
14623 | ||
14624 | *nto* | *qnx*) | |
14625 | ;; | |
14626 | ||
14627 | openbsd*) | |
00aafda4 | 14628 | if test -f /usr/libexec/ld.so; then |
14629 | hardcode_direct_FC=yes | |
14630 | hardcode_shlibpath_var_FC=no | |
14631 | hardcode_direct_absolute_FC=yes | |
14632 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 14633 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
00aafda4 | 14634 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 14635 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
00aafda4 | 14636 | export_dynamic_flag_spec_FC='${wl}-E' |
14637 | else | |
14638 | case $host_os in | |
14639 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14640 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14641 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14642 | ;; | |
14643 | *) | |
14644 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14645 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14646 | ;; | |
14647 | esac | |
14648 | fi | |
14649 | else | |
14650 | ld_shlibs_FC=no | |
542f9784 | 14651 | fi |
14652 | ;; | |
14653 | ||
14654 | os2*) | |
14655 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14656 | hardcode_minus_L_FC=yes | |
14657 | allow_undefined_flag_FC=unsupported | |
e6408286 | 14658 | archive_cmds_FC='$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' |
542f9784 | 14659 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14660 | ;; | |
14661 | ||
14662 | osf3*) | |
14663 | if test "$GCC" = yes; then | |
14664 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 14665 | archive_cmds_FC='$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' |
542f9784 | 14666 | else |
14667 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 14668 | archive_cmds_FC='$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' |
542f9784 | 14669 | fi |
14670 | archive_cmds_need_lc_FC='no' | |
14671 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14672 | hardcode_libdir_separator_FC=: | |
14673 | ;; | |
14674 | ||
14675 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14676 | if test "$GCC" = yes; then | |
14677 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 14678 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
542f9784 | 14679 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
14680 | else | |
14681 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 14682 | archive_cmds_FC='$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' |
542f9784 | 14683 | archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
e6408286 | 14684 | $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' |
542f9784 | 14685 | |
14686 | # Both c and cxx compiler support -rpath directly | |
14687 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
14688 | fi | |
14689 | archive_cmds_need_lc_FC='no' | |
14690 | hardcode_libdir_separator_FC=: | |
14691 | ;; | |
14692 | ||
14693 | solaris*) | |
14694 | no_undefined_flag_FC=' -z defs' | |
14695 | if test "$GCC" = yes; then | |
14696 | wlarc='${wl}' | |
14697 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14698 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14699 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14700 | else | |
14701 | case `$CC -V 2>&1` in | |
14702 | *"Compilers 5.0"*) | |
14703 | wlarc='' | |
14704 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14705 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14706 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
14707 | ;; | |
14708 | *) | |
14709 | wlarc='${wl}' | |
14710 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14711 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14712 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14713 | ;; | |
14714 | esac | |
14715 | fi | |
14716 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14717 | hardcode_shlibpath_var_FC=no | |
14718 | case $host_os in | |
14719 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14720 | *) | |
14721 | # The compiler driver will combine and reorder linker options, | |
14722 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
14723 | # but is careful enough not to reorder. | |
14724 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14725 | if test "$GCC" = yes; then | |
14726 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
14727 | else | |
14728 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
14729 | fi | |
14730 | ;; | |
14731 | esac | |
14732 | link_all_deplibs_FC=yes | |
14733 | ;; | |
14734 | ||
14735 | sunos4*) | |
14736 | if test "x$host_vendor" = xsequent; then | |
14737 | # Use $CC to link under sequent, because it throws in some extra .o | |
14738 | # files that make .init and .fini sections work. | |
14739 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14740 | else | |
14741 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14742 | fi | |
14743 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14744 | hardcode_direct_FC=yes | |
14745 | hardcode_minus_L_FC=yes | |
14746 | hardcode_shlibpath_var_FC=no | |
14747 | ;; | |
14748 | ||
14749 | sysv4) | |
14750 | case $host_vendor in | |
14751 | sni) | |
14752 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14753 | hardcode_direct_FC=yes # is this really true??? | |
14754 | ;; | |
14755 | siemens) | |
14756 | ## LD is ld it makes a PLAMLIB | |
14757 | ## CC just makes a GrossModule. | |
14758 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14759 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
14760 | hardcode_direct_FC=no | |
14761 | ;; | |
14762 | motorola) | |
14763 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14764 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
14765 | ;; | |
14766 | esac | |
14767 | runpath_var='LD_RUN_PATH' | |
14768 | hardcode_shlibpath_var_FC=no | |
14769 | ;; | |
14770 | ||
14771 | sysv4.3*) | |
14772 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14773 | hardcode_shlibpath_var_FC=no | |
14774 | export_dynamic_flag_spec_FC='-Bexport' | |
14775 | ;; | |
14776 | ||
14777 | sysv4*MP*) | |
14778 | if test -d /usr/nec; then | |
14779 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14780 | hardcode_shlibpath_var_FC=no | |
14781 | runpath_var=LD_RUN_PATH | |
14782 | hardcode_runpath_var=yes | |
14783 | ld_shlibs_FC=yes | |
14784 | fi | |
14785 | ;; | |
14786 | ||
14787 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
14788 | no_undefined_flag_FC='${wl}-z,text' | |
14789 | archive_cmds_need_lc_FC=no | |
14790 | hardcode_shlibpath_var_FC=no | |
14791 | runpath_var='LD_RUN_PATH' | |
14792 | ||
14793 | if test "$GCC" = yes; then | |
14794 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14795 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14796 | else | |
14797 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14798 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14799 | fi | |
14800 | ;; | |
14801 | ||
14802 | sysv5* | sco3.2v5* | sco5v6*) | |
14803 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14804 | # link with -lc, and that would cause any symbols used from libc to | |
14805 | # always be unresolved, which means just about no library would | |
14806 | # ever link correctly. If we're not using GNU ld we use -z text | |
14807 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14808 | # as -z defs. | |
14809 | no_undefined_flag_FC='${wl}-z,text' | |
14810 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
14811 | archive_cmds_need_lc_FC=no | |
14812 | hardcode_shlibpath_var_FC=no | |
14813 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
14814 | hardcode_libdir_separator_FC=':' | |
14815 | link_all_deplibs_FC=yes | |
14816 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
14817 | runpath_var='LD_RUN_PATH' | |
14818 | ||
14819 | if test "$GCC" = yes; then | |
14820 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14821 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14822 | else | |
14823 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14824 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14825 | fi | |
14826 | ;; | |
14827 | ||
14828 | uts4*) | |
14829 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14830 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14831 | hardcode_shlibpath_var_FC=no | |
14832 | ;; | |
14833 | ||
14834 | *) | |
14835 | ld_shlibs_FC=no | |
14836 | ;; | |
14837 | esac | |
14838 | ||
14839 | if test x$host_vendor = xsni; then | |
14840 | case $host in | |
14841 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
14842 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
14843 | ;; | |
14844 | esac | |
14845 | fi | |
14846 | fi | |
14847 | ||
cd9a469c | 14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
14849 | $as_echo "$ld_shlibs_FC" >&6; } | |
542f9784 | 14850 | test "$ld_shlibs_FC" = no && can_build_shared=no |
14851 | ||
14852 | with_gnu_ld_FC=$with_gnu_ld | |
14853 | ||
14854 | ||
14855 | ||
14856 | ||
14857 | ||
14858 | ||
14859 | # | |
14860 | # Do we need to explicitly link libc? | |
14861 | # | |
14862 | case "x$archive_cmds_need_lc_FC" in | |
14863 | x|xyes) | |
14864 | # Assume -lc should be added | |
14865 | archive_cmds_need_lc_FC=yes | |
14866 | ||
14867 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14868 | case $archive_cmds_FC in | |
14869 | *'~'*) | |
14870 | # FIXME: we may have to deal with multi-command sequences. | |
14871 | ;; | |
14872 | '$CC '*) | |
14873 | # Test whether the compiler implicitly links with -lc since on some | |
14874 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14875 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 14876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
14877 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
14878 | if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then : | |
14879 | $as_echo_n "(cached) " >&6 | |
9e6fd619 | 14880 | else |
14881 | $RM conftest* | |
14882 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 14883 | |
cd9a469c | 14884 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 14885 | (eval $ac_compile) 2>&5 |
14886 | ac_status=$? | |
cd9a469c | 14887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14888 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 14889 | soname=conftest |
14890 | lib=conftest | |
14891 | libobjs=conftest.$ac_objext | |
14892 | deplibs= | |
14893 | wl=$lt_prog_compiler_wl_FC | |
14894 | pic_flag=$lt_prog_compiler_pic_FC | |
14895 | compiler_flags=-v | |
14896 | linker_flags=-v | |
14897 | verstring= | |
14898 | output_objdir=. | |
14899 | libname=conftest | |
14900 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
14901 | allow_undefined_flag_FC= | |
cd9a469c | 14902 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 14903 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
90e67cff | 14904 | ac_status=$? |
cd9a469c | 14905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14906 | test $ac_status = 0; } | |
9e6fd619 | 14907 | then |
14908 | lt_cv_archive_cmds_need_lc_FC=no | |
14909 | else | |
14910 | lt_cv_archive_cmds_need_lc_FC=yes | |
14911 | fi | |
14912 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
14913 | else | |
14914 | cat conftest.err 1>&5 | |
14915 | fi | |
14916 | $RM conftest* | |
14917 | ||
14918 | fi | |
cd9a469c | 14919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
14920 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
9e6fd619 | 14921 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
542f9784 | 14922 | ;; |
14923 | esac | |
14924 | fi | |
14925 | ;; | |
14926 | esac | |
90e67cff | 14927 | |
90e67cff | 14928 | |
542f9784 | 14929 | |
14930 | ||
14931 | ||
14932 | ||
14933 | ||
14934 | ||
14935 | ||
14936 | ||
14937 | ||
14938 | ||
14939 | ||
14940 | ||
14941 | ||
14942 | ||
14943 | ||
14944 | ||
14945 | ||
14946 | ||
14947 | ||
14948 | ||
14949 | ||
14950 | ||
14951 | ||
14952 | ||
14953 | ||
14954 | ||
14955 | ||
14956 | ||
14957 | ||
14958 | ||
14959 | ||
14960 | ||
14961 | ||
14962 | ||
14963 | ||
14964 | ||
14965 | ||
14966 | ||
14967 | ||
14968 | ||
14969 | ||
14970 | ||
14971 | ||
14972 | ||
14973 | ||
14974 | ||
14975 | ||
14976 | ||
14977 | ||
14978 | ||
14979 | ||
14980 | ||
14981 | ||
14982 | ||
14983 | ||
14984 | ||
14985 | ||
14986 | ||
14987 | ||
14988 | ||
14989 | ||
14990 | ||
cd9a469c | 14991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
14992 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
00aafda4 | 14993 | |
542f9784 | 14994 | library_names_spec= |
14995 | libname_spec='lib$name' | |
14996 | soname_spec= | |
14997 | shrext_cmds=".so" | |
14998 | postinstall_cmds= | |
14999 | postuninstall_cmds= | |
15000 | finish_cmds= | |
15001 | finish_eval= | |
15002 | shlibpath_var= | |
15003 | shlibpath_overrides_runpath=unknown | |
15004 | version_type=none | |
15005 | dynamic_linker="$host_os ld.so" | |
15006 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15007 | need_lib_prefix=unknown | |
15008 | hardcode_into_libs=no | |
15009 | ||
15010 | # when you set need_version to no, make sure it does not cause -set_version | |
15011 | # flags to be left without arguments | |
15012 | need_version=unknown | |
15013 | ||
15014 | case $host_os in | |
15015 | aix3*) | |
15016 | version_type=linux | |
15017 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15018 | shlibpath_var=LIBPATH | |
15019 | ||
15020 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15021 | soname_spec='${libname}${release}${shared_ext}$major' | |
15022 | ;; | |
15023 | ||
21e07d2f | 15024 | aix[4-9]*) |
542f9784 | 15025 | version_type=linux |
15026 | need_lib_prefix=no | |
15027 | need_version=no | |
15028 | hardcode_into_libs=yes | |
15029 | if test "$host_cpu" = ia64; then | |
15030 | # AIX 5 supports IA64 | |
15031 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15032 | shlibpath_var=LD_LIBRARY_PATH | |
15033 | else | |
15034 | # With GCC up to 2.95.x, collect2 would create an import file | |
15035 | # for dependence libraries. The import file would start with | |
15036 | # the line `#! .'. This would cause the generated library to | |
15037 | # depend on `.', always an invalid library. This was fixed in | |
15038 | # development snapshots of GCC prior to 3.0. | |
15039 | case $host_os in | |
15040 | aix4 | aix4.[01] | aix4.[01].*) | |
15041 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15042 | echo ' yes ' | |
15043 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15044 | : | |
15045 | else | |
15046 | can_build_shared=no | |
15047 | fi | |
15048 | ;; | |
15049 | esac | |
15050 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15051 | # soname into executable. Probably we can add versioning support to | |
15052 | # collect2, so additional links can be useful in future. | |
15053 | if test "$aix_use_runtimelinking" = yes; then | |
15054 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15055 | # instead of lib<name>.a to let people know that these are not | |
15056 | # typical AIX shared libraries. | |
15057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15058 | else | |
15059 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15060 | # and later when we are not doing run time linking. | |
15061 | library_names_spec='${libname}${release}.a $libname.a' | |
15062 | soname_spec='${libname}${release}${shared_ext}$major' | |
15063 | fi | |
15064 | shlibpath_var=LIBPATH | |
15065 | fi | |
15066 | ;; | |
15067 | ||
15068 | amigaos*) | |
00aafda4 | 15069 | case $host_cpu in |
15070 | powerpc) | |
15071 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15072 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15074 | ;; | |
15075 | m68k) | |
542f9784 | 15076 | library_names_spec='$libname.ixlibrary $libname.a' |
15077 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 15078 | 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' |
00aafda4 | 15079 | ;; |
15080 | esac | |
542f9784 | 15081 | ;; |
15082 | ||
15083 | beos*) | |
15084 | library_names_spec='${libname}${shared_ext}' | |
15085 | dynamic_linker="$host_os ld.so" | |
15086 | shlibpath_var=LIBRARY_PATH | |
15087 | ;; | |
15088 | ||
15089 | bsdi[45]*) | |
15090 | version_type=linux | |
15091 | need_version=no | |
15092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15093 | soname_spec='${libname}${release}${shared_ext}$major' | |
15094 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15095 | shlibpath_var=LD_LIBRARY_PATH | |
15096 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15097 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15098 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15099 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15100 | # libtool to hard-code these into programs | |
15101 | ;; | |
15102 | ||
00aafda4 | 15103 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 15104 | version_type=windows |
15105 | shrext_cmds=".dll" | |
15106 | need_version=no | |
15107 | need_lib_prefix=no | |
15108 | ||
00aafda4 | 15109 | case $GCC,$host_os in |
15110 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 15111 | library_names_spec='$libname.dll.a' |
15112 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15113 | postinstall_cmds='base_file=`basename \${file}`~ | |
15114 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15115 | dldir=$destdir/`dirname \$dlpath`~ | |
15116 | test -d \$dldir || mkdir -p \$dldir~ | |
15117 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15118 | chmod a+x \$dldir/$dlname~ | |
15119 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15120 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15121 | fi' | |
15122 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15123 | dlpath=$dir/\$dldll~ | |
15124 | $RM \$dlpath' | |
15125 | shlibpath_overrides_runpath=yes | |
15126 | ||
15127 | case $host_os in | |
15128 | cygwin*) | |
15129 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15130 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 15131 | |
542f9784 | 15132 | ;; |
00aafda4 | 15133 | mingw* | cegcc*) |
542f9784 | 15134 | # MinGW DLLs use traditional 'lib' prefix |
15135 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 15136 | ;; |
15137 | pw32*) | |
15138 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15139 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15140 | ;; | |
15141 | esac | |
15142 | ;; | |
15143 | ||
15144 | *) | |
15145 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15146 | ;; | |
15147 | esac | |
15148 | dynamic_linker='Win32 ld.exe' | |
15149 | # FIXME: first we should search . and the directory the executable is in | |
15150 | shlibpath_var=PATH | |
15151 | ;; | |
15152 | ||
15153 | darwin* | rhapsody*) | |
15154 | dynamic_linker="$host_os dyld" | |
15155 | version_type=darwin | |
15156 | need_lib_prefix=no | |
15157 | need_version=no | |
15158 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15159 | soname_spec='${libname}${release}${major}$shared_ext' | |
15160 | shlibpath_overrides_runpath=yes | |
15161 | shlibpath_var=DYLD_LIBRARY_PATH | |
15162 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15163 | ||
15164 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15165 | ;; | |
15166 | ||
15167 | dgux*) | |
15168 | version_type=linux | |
15169 | need_lib_prefix=no | |
15170 | need_version=no | |
15171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15172 | soname_spec='${libname}${release}${shared_ext}$major' | |
15173 | shlibpath_var=LD_LIBRARY_PATH | |
15174 | ;; | |
15175 | ||
542f9784 | 15176 | freebsd* | dragonfly*) |
15177 | # DragonFly does not have aout. When/if they implement a new | |
15178 | # versioning mechanism, adjust this. | |
15179 | if test -x /usr/bin/objformat; then | |
15180 | objformat=`/usr/bin/objformat` | |
15181 | else | |
15182 | case $host_os in | |
30369aff | 15183 | freebsd[23].*) objformat=aout ;; |
542f9784 | 15184 | *) objformat=elf ;; |
15185 | esac | |
15186 | fi | |
15187 | version_type=freebsd-$objformat | |
15188 | case $version_type in | |
15189 | freebsd-elf*) | |
15190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15191 | need_version=no | |
15192 | need_lib_prefix=no | |
15193 | ;; | |
15194 | freebsd-*) | |
15195 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15196 | need_version=yes | |
15197 | ;; | |
15198 | esac | |
15199 | shlibpath_var=LD_LIBRARY_PATH | |
15200 | case $host_os in | |
30369aff | 15201 | freebsd2.*) |
542f9784 | 15202 | shlibpath_overrides_runpath=yes |
15203 | ;; | |
15204 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15205 | shlibpath_overrides_runpath=yes | |
15206 | hardcode_into_libs=yes | |
15207 | ;; | |
15208 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15209 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15210 | shlibpath_overrides_runpath=no | |
15211 | hardcode_into_libs=yes | |
15212 | ;; | |
15213 | *) # from 4.6 on, and DragonFly | |
15214 | shlibpath_overrides_runpath=yes | |
15215 | hardcode_into_libs=yes | |
15216 | ;; | |
15217 | esac | |
15218 | ;; | |
15219 | ||
15220 | gnu*) | |
15221 | version_type=linux | |
15222 | need_lib_prefix=no | |
15223 | need_version=no | |
15224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15225 | soname_spec='${libname}${release}${shared_ext}$major' | |
15226 | shlibpath_var=LD_LIBRARY_PATH | |
15227 | hardcode_into_libs=yes | |
15228 | ;; | |
15229 | ||
e6408286 | 15230 | haiku*) |
15231 | version_type=linux | |
15232 | need_lib_prefix=no | |
15233 | need_version=no | |
15234 | dynamic_linker="$host_os runtime_loader" | |
15235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15236 | soname_spec='${libname}${release}${shared_ext}$major' | |
15237 | shlibpath_var=LIBRARY_PATH | |
15238 | shlibpath_overrides_runpath=yes | |
15239 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15240 | hardcode_into_libs=yes | |
15241 | ;; | |
15242 | ||
542f9784 | 15243 | hpux9* | hpux10* | hpux11*) |
15244 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15245 | # link against other versions. | |
15246 | version_type=sunos | |
15247 | need_lib_prefix=no | |
15248 | need_version=no | |
15249 | case $host_cpu in | |
15250 | ia64*) | |
15251 | shrext_cmds='.so' | |
15252 | hardcode_into_libs=yes | |
15253 | dynamic_linker="$host_os dld.so" | |
15254 | shlibpath_var=LD_LIBRARY_PATH | |
15255 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15257 | soname_spec='${libname}${release}${shared_ext}$major' | |
15258 | if test "X$HPUX_IA64_MODE" = X32; then | |
15259 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15260 | else | |
15261 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15262 | fi | |
15263 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15264 | ;; | |
15265 | hppa*64*) | |
15266 | shrext_cmds='.sl' | |
15267 | hardcode_into_libs=yes | |
15268 | dynamic_linker="$host_os dld.sl" | |
15269 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15270 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15272 | soname_spec='${libname}${release}${shared_ext}$major' | |
15273 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15274 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15275 | ;; | |
15276 | *) | |
15277 | shrext_cmds='.sl' | |
15278 | dynamic_linker="$host_os dld.sl" | |
15279 | shlibpath_var=SHLIB_PATH | |
15280 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15282 | soname_spec='${libname}${release}${shared_ext}$major' | |
15283 | ;; | |
15284 | esac | |
e6408286 | 15285 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 15286 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 15287 | # or fails outright, so override atomically: |
15288 | install_override_mode=555 | |
542f9784 | 15289 | ;; |
15290 | ||
15291 | interix[3-9]*) | |
15292 | version_type=linux | |
15293 | need_lib_prefix=no | |
15294 | need_version=no | |
15295 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15296 | soname_spec='${libname}${release}${shared_ext}$major' | |
15297 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15298 | shlibpath_var=LD_LIBRARY_PATH | |
15299 | shlibpath_overrides_runpath=no | |
15300 | hardcode_into_libs=yes | |
15301 | ;; | |
15302 | ||
15303 | irix5* | irix6* | nonstopux*) | |
15304 | case $host_os in | |
15305 | nonstopux*) version_type=nonstopux ;; | |
15306 | *) | |
15307 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15308 | version_type=linux | |
15309 | else | |
15310 | version_type=irix | |
15311 | fi ;; | |
15312 | esac | |
15313 | need_lib_prefix=no | |
15314 | need_version=no | |
15315 | soname_spec='${libname}${release}${shared_ext}$major' | |
15316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15317 | case $host_os in | |
15318 | irix5* | nonstopux*) | |
15319 | libsuff= shlibsuff= | |
15320 | ;; | |
15321 | *) | |
15322 | case $LD in # libtool.m4 will add one of these switches to LD | |
15323 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15324 | libsuff= shlibsuff= libmagic=32-bit;; | |
15325 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15326 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15327 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15328 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15329 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15330 | esac | |
15331 | ;; | |
15332 | esac | |
15333 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15334 | shlibpath_overrides_runpath=no | |
15335 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15336 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15337 | hardcode_into_libs=yes | |
15338 | ;; | |
15339 | ||
15340 | # No shared lib support for Linux oldld, aout, or coff. | |
15341 | linux*oldld* | linux*aout* | linux*coff*) | |
15342 | dynamic_linker=no | |
15343 | ;; | |
15344 | ||
15345 | # This must be Linux ELF. | |
9af964d4 | 15346 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 15347 | version_type=linux |
15348 | need_lib_prefix=no | |
15349 | need_version=no | |
15350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15351 | soname_spec='${libname}${release}${shared_ext}$major' | |
15352 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15353 | shlibpath_var=LD_LIBRARY_PATH | |
15354 | shlibpath_overrides_runpath=no | |
9e6fd619 | 15355 | |
542f9784 | 15356 | # Some binutils ld are patched to set DT_RUNPATH |
cd9a469c | 15357 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
15358 | $as_echo_n "(cached) " >&6 | |
9e6fd619 | 15359 | else |
15360 | lt_cv_shlibpath_overrides_runpath=no | |
15361 | save_LDFLAGS=$LDFLAGS | |
15362 | save_libdir=$libdir | |
15363 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15364 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15365 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 15366 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 15367 | fi |
cd9a469c | 15368 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 15369 | program main |
15370 | ||
15371 | end | |
90e67cff | 15372 | _ACEOF |
cd9a469c | 15373 | if ac_fn_fc_try_link "$LINENO"; then : |
15374 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 15375 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 15376 | fi |
90e67cff | 15377 | fi |
cd9a469c | 15378 | rm -f core conftest.err conftest.$ac_objext \ |
15379 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 15380 | LDFLAGS=$save_LDFLAGS |
15381 | libdir=$save_libdir | |
15382 | ||
15383 | fi | |
15384 | ||
15385 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 15386 | |
15387 | # This implies no fast_install, which is unacceptable. | |
15388 | # Some rework will be needed to allow for fast_install | |
15389 | # before this can be enabled. | |
15390 | hardcode_into_libs=yes | |
15391 | ||
15392 | # Append ld.so.conf contents to the search path | |
15393 | if test -f /etc/ld.so.conf; then | |
e6408286 | 15394 | 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' ' '` |
542f9784 | 15395 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15396 | fi | |
15397 | ||
15398 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15399 | # powerpc, because MkLinux only supported shared libraries with the | |
15400 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15401 | # most powerpc-linux boxes support dynamic linking these days and | |
15402 | # people can always --disable-shared, the test was removed, and we | |
15403 | # assume the GNU/Linux dynamic linker is in use. | |
15404 | dynamic_linker='GNU/Linux ld.so' | |
15405 | ;; | |
15406 | ||
15407 | netbsd*) | |
15408 | version_type=sunos | |
15409 | need_lib_prefix=no | |
15410 | need_version=no | |
15411 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15413 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15414 | dynamic_linker='NetBSD (a.out) ld.so' | |
15415 | else | |
15416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15417 | soname_spec='${libname}${release}${shared_ext}$major' | |
15418 | dynamic_linker='NetBSD ld.elf_so' | |
15419 | fi | |
15420 | shlibpath_var=LD_LIBRARY_PATH | |
15421 | shlibpath_overrides_runpath=yes | |
15422 | hardcode_into_libs=yes | |
15423 | ;; | |
15424 | ||
15425 | newsos6) | |
15426 | version_type=linux | |
15427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15428 | shlibpath_var=LD_LIBRARY_PATH | |
15429 | shlibpath_overrides_runpath=yes | |
15430 | ;; | |
15431 | ||
15432 | *nto* | *qnx*) | |
15433 | version_type=qnx | |
15434 | need_lib_prefix=no | |
15435 | need_version=no | |
15436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15437 | soname_spec='${libname}${release}${shared_ext}$major' | |
15438 | shlibpath_var=LD_LIBRARY_PATH | |
15439 | shlibpath_overrides_runpath=no | |
15440 | hardcode_into_libs=yes | |
15441 | dynamic_linker='ldqnx.so' | |
15442 | ;; | |
15443 | ||
15444 | openbsd*) | |
15445 | version_type=sunos | |
15446 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15447 | need_lib_prefix=no | |
15448 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15449 | case $host_os in | |
15450 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15451 | *) need_version=no ;; | |
15452 | esac | |
15453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15454 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15455 | shlibpath_var=LD_LIBRARY_PATH | |
15456 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15457 | case $host_os in | |
15458 | openbsd2.[89] | openbsd2.[89].*) | |
15459 | shlibpath_overrides_runpath=no | |
15460 | ;; | |
15461 | *) | |
15462 | shlibpath_overrides_runpath=yes | |
15463 | ;; | |
15464 | esac | |
15465 | else | |
15466 | shlibpath_overrides_runpath=yes | |
15467 | fi | |
15468 | ;; | |
15469 | ||
15470 | os2*) | |
15471 | libname_spec='$name' | |
15472 | shrext_cmds=".dll" | |
15473 | need_lib_prefix=no | |
15474 | library_names_spec='$libname${shared_ext} $libname.a' | |
15475 | dynamic_linker='OS/2 ld.exe' | |
15476 | shlibpath_var=LIBPATH | |
15477 | ;; | |
15478 | ||
15479 | osf3* | osf4* | osf5*) | |
15480 | version_type=osf | |
15481 | need_lib_prefix=no | |
15482 | need_version=no | |
15483 | soname_spec='${libname}${release}${shared_ext}$major' | |
15484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15485 | shlibpath_var=LD_LIBRARY_PATH | |
15486 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15487 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15488 | ;; | |
15489 | ||
15490 | rdos*) | |
15491 | dynamic_linker=no | |
15492 | ;; | |
15493 | ||
15494 | solaris*) | |
15495 | version_type=linux | |
15496 | need_lib_prefix=no | |
15497 | need_version=no | |
15498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15499 | soname_spec='${libname}${release}${shared_ext}$major' | |
15500 | shlibpath_var=LD_LIBRARY_PATH | |
15501 | shlibpath_overrides_runpath=yes | |
15502 | hardcode_into_libs=yes | |
15503 | # ldd complains unless libraries are executable | |
15504 | postinstall_cmds='chmod +x $lib' | |
15505 | ;; | |
15506 | ||
15507 | sunos4*) | |
15508 | version_type=sunos | |
15509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15510 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15511 | shlibpath_var=LD_LIBRARY_PATH | |
15512 | shlibpath_overrides_runpath=yes | |
15513 | if test "$with_gnu_ld" = yes; then | |
15514 | need_lib_prefix=no | |
15515 | fi | |
15516 | need_version=yes | |
15517 | ;; | |
15518 | ||
15519 | sysv4 | sysv4.3*) | |
15520 | version_type=linux | |
15521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15522 | soname_spec='${libname}${release}${shared_ext}$major' | |
15523 | shlibpath_var=LD_LIBRARY_PATH | |
15524 | case $host_vendor in | |
15525 | sni) | |
15526 | shlibpath_overrides_runpath=no | |
15527 | need_lib_prefix=no | |
15528 | runpath_var=LD_RUN_PATH | |
15529 | ;; | |
15530 | siemens) | |
15531 | need_lib_prefix=no | |
15532 | ;; | |
15533 | motorola) | |
15534 | need_lib_prefix=no | |
15535 | need_version=no | |
15536 | shlibpath_overrides_runpath=no | |
15537 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15538 | ;; | |
15539 | esac | |
15540 | ;; | |
15541 | ||
15542 | sysv4*MP*) | |
15543 | if test -d /usr/nec ;then | |
15544 | version_type=linux | |
15545 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15546 | soname_spec='$libname${shared_ext}.$major' | |
15547 | shlibpath_var=LD_LIBRARY_PATH | |
15548 | fi | |
15549 | ;; | |
15550 | ||
15551 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15552 | version_type=freebsd-elf | |
15553 | need_lib_prefix=no | |
15554 | need_version=no | |
15555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15556 | soname_spec='${libname}${release}${shared_ext}$major' | |
15557 | shlibpath_var=LD_LIBRARY_PATH | |
15558 | shlibpath_overrides_runpath=yes | |
15559 | hardcode_into_libs=yes | |
15560 | if test "$with_gnu_ld" = yes; then | |
15561 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15562 | else | |
15563 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15564 | case $host_os in | |
15565 | sco3.2v5*) | |
15566 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15567 | ;; | |
15568 | esac | |
15569 | fi | |
15570 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15571 | ;; | |
15572 | ||
15573 | tpf*) | |
15574 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15575 | version_type=linux | |
15576 | need_lib_prefix=no | |
15577 | need_version=no | |
00aafda4 | 15578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 15579 | shlibpath_var=LD_LIBRARY_PATH |
15580 | shlibpath_overrides_runpath=no | |
15581 | hardcode_into_libs=yes | |
15582 | ;; | |
15583 | ||
15584 | uts4*) | |
15585 | version_type=linux | |
15586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15587 | soname_spec='${libname}${release}${shared_ext}$major' | |
15588 | shlibpath_var=LD_LIBRARY_PATH | |
15589 | ;; | |
15590 | ||
15591 | *) | |
15592 | dynamic_linker=no | |
15593 | ;; | |
15594 | esac | |
cd9a469c | 15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
15596 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 15597 | test "$dynamic_linker" = no && can_build_shared=no |
15598 | ||
15599 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15600 | if test "$GCC" = yes; then | |
15601 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
90e67cff | 15602 | fi |
90e67cff | 15603 | |
00aafda4 | 15604 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15605 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15606 | fi | |
15607 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15608 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15609 | fi | |
15610 | ||
90e67cff | 15611 | |
542f9784 | 15612 | |
15613 | ||
15614 | ||
15615 | ||
15616 | ||
15617 | ||
15618 | ||
15619 | ||
15620 | ||
15621 | ||
15622 | ||
15623 | ||
15624 | ||
15625 | ||
15626 | ||
15627 | ||
15628 | ||
15629 | ||
15630 | ||
15631 | ||
15632 | ||
15633 | ||
15634 | ||
15635 | ||
15636 | ||
15637 | ||
15638 | ||
15639 | ||
15640 | ||
15641 | ||
15642 | ||
e6408286 | 15643 | |
15644 | ||
542f9784 | 15645 | |
15646 | ||
15647 | ||
cd9a469c | 15648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15649 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 15650 | hardcode_action_FC= |
15651 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
15652 | test -n "$runpath_var_FC" || | |
15653 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
15654 | ||
15655 | # We can hardcode non-existent directories. | |
15656 | if test "$hardcode_direct_FC" != no && | |
15657 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15658 | # have to relink, otherwise we might link with an installed library | |
15659 | # when we should be linking with a yet-to-be-installed one | |
15660 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
15661 | test "$hardcode_minus_L_FC" != no; then | |
15662 | # Linking always hardcodes the temporary library directory. | |
15663 | hardcode_action_FC=relink | |
15664 | else | |
15665 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15666 | hardcode_action_FC=immediate | |
15667 | fi | |
15668 | else | |
15669 | # We cannot hardcode anything, or else we can only hardcode existing | |
15670 | # directories. | |
15671 | hardcode_action_FC=unsupported | |
90e67cff | 15672 | fi |
cd9a469c | 15673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
15674 | $as_echo "$hardcode_action_FC" >&6; } | |
542f9784 | 15675 | |
15676 | if test "$hardcode_action_FC" = relink || | |
15677 | test "$inherit_rpath_FC" = yes; then | |
15678 | # Fast installation is not supported | |
15679 | enable_fast_install=no | |
15680 | elif test "$shlibpath_overrides_runpath" = yes || | |
15681 | test "$enable_shared" = no; then | |
15682 | # Fast installation is not necessary | |
15683 | enable_fast_install=needless | |
90e67cff | 15684 | fi |
15685 | ||
542f9784 | 15686 | |
15687 | ||
15688 | ||
15689 | ||
15690 | ||
15691 | ||
15692 | fi # test -n "$compiler" | |
15693 | ||
00aafda4 | 15694 | GCC=$lt_save_GCC |
542f9784 | 15695 | CC="$lt_save_CC" |
15696 | fi # test "$_lt_disable_FC" != yes | |
15697 | ||
5c88bcbb | 15698 | ac_ext=c |
90973b19 | 15699 | ac_cpp='$CPP $CPPFLAGS' |
15700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
542f9784 | 15703 | |
15704 | ||
15705 | ||
15706 | # extra LD Flags which are required for targets | |
15707 | case "${host}" in | |
15708 | *-darwin*) | |
15709 | # Darwin needs -single_module when linking libgfortran | |
15710 | extra_ldflags_libgfortran=-Wl,-single_module | |
15711 | ;; | |
15712 | esac | |
15713 | ||
15714 | ||
15715 | # We need a working compiler at that point, otherwise give a clear | |
15716 | # error message and bail out. | |
15717 | ||
cd9a469c | 15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
15719 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
15720 | ac_ext=${ac_fc_srcext-f} | |
15721 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
15722 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 15723 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
15724 | ||
cd9a469c | 15725 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 15726 | |
15727 | program foo | |
15728 | real, parameter :: bar = sin (12.34 / 2.5) | |
15729 | end program foo | |
4ee9c684 | 15730 | _ACEOF |
cd9a469c | 15731 | if ac_fn_fc_try_compile "$LINENO"; then : |
15732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15733 | $as_echo "yes" >&6; } | |
4ee9c684 | 15734 | else |
cd9a469c | 15735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15736 | $as_echo "no" >&6; } | |
15737 | as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5 | |
4ee9c684 | 15738 | |
90973b19 | 15739 | fi |
cd9a469c | 15740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 15741 | ac_ext=c |
15742 | ac_cpp='$CPP $CPPFLAGS' | |
15743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
90973b19 | 15746 | |
90973b19 | 15747 | |
542f9784 | 15748 | |
cd9a469c | 15749 | # Check whether --enable-largefile was given. |
15750 | if test "${enable_largefile+set}" = set; then : | |
15751 | enableval=$enable_largefile; | |
15752 | fi | |
542f9784 | 15753 | |
542f9784 | 15754 | if test "$enable_largefile" != no; then |
15755 | ||
cd9a469c | 15756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
15757 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
15758 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
15759 | $as_echo_n "(cached) " >&6 | |
90973b19 | 15760 | else |
542f9784 | 15761 | ac_cv_sys_largefile_CC=no |
15762 | if test "$GCC" != yes; then | |
15763 | ac_save_CC=$CC | |
15764 | while :; do | |
cd9a469c | 15765 | # IRIX 6.2 and later do not support large files by default, |
15766 | # so use the C compiler's -n32 option if that helps. | |
15767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90973b19 | 15768 | /* end confdefs.h. */ |
542f9784 | 15769 | #include <sys/types.h> |
15770 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15771 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15772 | since some C++ compilers masquerading as C compilers | |
15773 | incorrectly reject 9223372036854775807. */ | |
15774 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
cd9a469c | 15775 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15776 | && LARGE_OFF_T % 2147483647 == 1) | |
15777 | ? 1 : -1]; | |
56c15991 | 15778 | int |
15779 | main () | |
15780 | { | |
56c15991 | 15781 | |
15782 | ; | |
15783 | return 0; | |
15784 | } | |
15785 | _ACEOF | |
cd9a469c | 15786 | if ac_fn_c_try_compile "$LINENO"; then : |
15787 | break | |
56c15991 | 15788 | fi |
cd9a469c | 15789 | rm -f core conftest.err conftest.$ac_objext |
15790 | CC="$CC -n32" | |
15791 | if ac_fn_c_try_compile "$LINENO"; then : | |
15792 | ac_cv_sys_largefile_CC=' -n32'; break | |
15793 | fi | |
15794 | rm -f core conftest.err conftest.$ac_objext | |
15795 | break | |
15796 | done | |
15797 | CC=$ac_save_CC | |
15798 | rm -f conftest.$ac_ext | |
15799 | fi | |
15800 | fi | |
15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
15802 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
15803 | if test "$ac_cv_sys_largefile_CC" != no; then | |
15804 | CC=$CC$ac_cv_sys_largefile_CC | |
15805 | fi | |
56c15991 | 15806 | |
cd9a469c | 15807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
15808 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
15809 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
15810 | $as_echo_n "(cached) " >&6 | |
15811 | else | |
15812 | while :; do | |
15813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 15814 | /* end confdefs.h. */ |
cd9a469c | 15815 | #include <sys/types.h> |
15816 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15817 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15818 | since some C++ compilers masquerading as C compilers | |
15819 | incorrectly reject 9223372036854775807. */ | |
15820 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15821 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15822 | && LARGE_OFF_T % 2147483647 == 1) | |
15823 | ? 1 : -1]; | |
56c15991 | 15824 | int |
15825 | main () | |
15826 | { | |
56c15991 | 15827 | |
15828 | ; | |
15829 | return 0; | |
15830 | } | |
15831 | _ACEOF | |
cd9a469c | 15832 | if ac_fn_c_try_compile "$LINENO"; then : |
15833 | ac_cv_sys_file_offset_bits=no; break | |
15834 | fi | |
15835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 15837 | /* end confdefs.h. */ |
cd9a469c | 15838 | #define _FILE_OFFSET_BITS 64 |
15839 | #include <sys/types.h> | |
15840 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15841 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15842 | since some C++ compilers masquerading as C compilers | |
15843 | incorrectly reject 9223372036854775807. */ | |
15844 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15845 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15846 | && LARGE_OFF_T % 2147483647 == 1) | |
15847 | ? 1 : -1]; | |
56c15991 | 15848 | int |
15849 | main () | |
15850 | { | |
56c15991 | 15851 | |
15852 | ; | |
15853 | return 0; | |
15854 | } | |
15855 | _ACEOF | |
cd9a469c | 15856 | if ac_fn_c_try_compile "$LINENO"; then : |
15857 | ac_cv_sys_file_offset_bits=64; break | |
56c15991 | 15858 | fi |
cd9a469c | 15859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15860 | ac_cv_sys_file_offset_bits=unknown | |
15861 | break | |
15862 | done | |
56c15991 | 15863 | fi |
cd9a469c | 15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
15865 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
15866 | case $ac_cv_sys_file_offset_bits in #( | |
15867 | no | unknown) ;; | |
15868 | *) | |
15869 | cat >>confdefs.h <<_ACEOF | |
15870 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
56c15991 | 15871 | _ACEOF |
cd9a469c | 15872 | ;; |
15873 | esac | |
15874 | rm -rf conftest* | |
15875 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
15877 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
15878 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
15879 | $as_echo_n "(cached) " >&6 | |
15880 | else | |
15881 | while :; do | |
15882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 15883 | /* end confdefs.h. */ |
cd9a469c | 15884 | #include <sys/types.h> |
15885 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15886 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15887 | since some C++ compilers masquerading as C compilers | |
15888 | incorrectly reject 9223372036854775807. */ | |
15889 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15890 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15891 | && LARGE_OFF_T % 2147483647 == 1) | |
15892 | ? 1 : -1]; | |
56c15991 | 15893 | int |
15894 | main () | |
15895 | { | |
56c15991 | 15896 | |
15897 | ; | |
15898 | return 0; | |
15899 | } | |
15900 | _ACEOF | |
cd9a469c | 15901 | if ac_fn_c_try_compile "$LINENO"; then : |
15902 | ac_cv_sys_large_files=no; break | |
56c15991 | 15903 | fi |
cd9a469c | 15904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 15906 | /* end confdefs.h. */ |
cd9a469c | 15907 | #define _LARGE_FILES 1 |
15908 | #include <sys/types.h> | |
15909 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15910 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15911 | since some C++ compilers masquerading as C compilers | |
15912 | incorrectly reject 9223372036854775807. */ | |
15913 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15914 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15915 | && LARGE_OFF_T % 2147483647 == 1) | |
15916 | ? 1 : -1]; | |
56c15991 | 15917 | int |
15918 | main () | |
15919 | { | |
15920 | ||
56c15991 | 15921 | ; |
15922 | return 0; | |
15923 | } | |
15924 | _ACEOF | |
cd9a469c | 15925 | if ac_fn_c_try_compile "$LINENO"; then : |
15926 | ac_cv_sys_large_files=1; break | |
56c15991 | 15927 | fi |
cd9a469c | 15928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15929 | ac_cv_sys_large_files=unknown | |
15930 | break | |
15931 | done | |
82eaf560 | 15932 | fi |
cd9a469c | 15933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
15934 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
15935 | case $ac_cv_sys_large_files in #( | |
15936 | no | unknown) ;; | |
15937 | *) | |
56c15991 | 15938 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 15939 | #define _LARGE_FILES $ac_cv_sys_large_files |
56c15991 | 15940 | _ACEOF |
cd9a469c | 15941 | ;; |
15942 | esac | |
15943 | rm -rf conftest* | |
15944 | fi | |
56c15991 | 15945 | fi |
15946 | ||
c75dca49 | 15947 | |
15948 | # Types | |
cd9a469c | 15949 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
15950 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
56c15991 | 15951 | |
cd9a469c | 15952 | else |
56c15991 | 15953 | |
cd9a469c | 15954 | cat >>confdefs.h <<_ACEOF |
15955 | #define off_t long int | |
15956 | _ACEOF | |
56c15991 | 15957 | |
c75dca49 | 15958 | fi |
15959 | ||
15960 | ||
15961 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
15962 | if test "x$ac_cv_type_intptr_t" = x""yes; then : | |
15963 | ||
15964 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
15965 | ||
15966 | else | |
15967 | for ac_type in 'int' 'long int' 'long long int'; do | |
15968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15969 | /* end confdefs.h. */ | |
15970 | $ac_includes_default | |
15971 | int | |
15972 | main () | |
15973 | { | |
15974 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
15975 | test_array [0] = 0 | |
15976 | ||
15977 | ; | |
15978 | return 0; | |
15979 | } | |
15980 | _ACEOF | |
15981 | if ac_fn_c_try_compile "$LINENO"; then : | |
15982 | ||
15983 | cat >>confdefs.h <<_ACEOF | |
15984 | #define intptr_t $ac_type | |
15985 | _ACEOF | |
15986 | ||
15987 | ac_type= | |
15988 | fi | |
15989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15990 | test -z "$ac_type" && break | |
15991 | done | |
15992 | fi | |
15993 | ||
15994 | ||
15995 | ||
15996 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
15997 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
15998 | ||
15999 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16000 | ||
16001 | else | |
16002 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16003 | 'unsigned long long int'; do | |
16004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16005 | /* end confdefs.h. */ | |
16006 | $ac_includes_default | |
16007 | int | |
16008 | main () | |
16009 | { | |
16010 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
16011 | test_array [0] = 0 | |
16012 | ||
16013 | ; | |
16014 | return 0; | |
16015 | } | |
16016 | _ACEOF | |
16017 | if ac_fn_c_try_compile "$LINENO"; then : | |
16018 | ||
16019 | cat >>confdefs.h <<_ACEOF | |
16020 | #define uintptr_t $ac_type | |
16021 | _ACEOF | |
16022 | ||
16023 | ac_type= | |
16024 | fi | |
16025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16026 | test -z "$ac_type" && break | |
16027 | done | |
16028 | fi | |
16029 | ||
16030 | ||
16031 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
16032 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : | |
16033 | ||
16034 | cat >>confdefs.h <<_ACEOF | |
16035 | #define HAVE_PTRDIFF_T 1 | |
16036 | _ACEOF | |
16037 | ||
16038 | ||
56c15991 | 16039 | fi |
16040 | ||
56c15991 | 16041 | |
a1aa1d30 | 16042 | # check header files (we assume C89 is available, so don't check for that) |
771c1b50 | 16043 | |
cd9a469c | 16044 | |
771c1b50 | 16045 | |
a1aa1d30 | 16046 | for ac_header in $ac_header_list |
16047 | do : | |
16048 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16049 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16050 | " | |
16051 | eval as_val=\$$as_ac_Header | |
16052 | if test "x$as_val" = x""yes; then : | |
16053 | cat >>confdefs.h <<_ACEOF | |
16054 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
771c1b50 | 16055 | _ACEOF |
16056 | ||
cd9a469c | 16057 | fi |
771c1b50 | 16058 | |
a1aa1d30 | 16059 | done |
771c1b50 | 16060 | |
cd9a469c | 16061 | |
cd9a469c | 16062 | |
771c1b50 | 16063 | |
cd9a469c | 16064 | |
cd9a469c | 16065 | |
771c1b50 | 16066 | |
771c1b50 | 16067 | |
771c1b50 | 16068 | |
16069 | ||
771c1b50 | 16070 | |
771c1b50 | 16071 | |
771c1b50 | 16072 | |
16073 | ||
771c1b50 | 16074 | |
16075 | ||
7dfba97b | 16076 | |
5e7b82bb | 16077 | |
c436f700 | 16078 | |
a54b1ce7 | 16079 | |
16080 | ||
14c3c235 | 16081 | |
4dd3972f | 16082 | |
4dd3972f | 16083 | |
4dd3972f | 16084 | |
4dd3972f | 16085 | |
4dd3972f | 16086 | |
4dd3972f | 16087 | |
553e7cef | 16088 | |
16089 | ||
b8a8c7bc | 16090 | |
16091 | ||
4dd3972f | 16092 | |
4dd3972f | 16093 | |
4ee9c684 | 16094 | |
2069752c | 16095 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
4ee9c684 | 16096 | |
2069752c | 16097 | acx_cv_header_stdint=stddef.h |
16098 | acx_cv_header_stdint_kind="(already complete)" | |
16099 | for i in stdint.h $inttype_headers; do | |
16100 | unset ac_cv_type_uintptr_t | |
16101 | unset ac_cv_type_uintmax_t | |
16102 | unset ac_cv_type_int_least32_t | |
16103 | unset ac_cv_type_int_fast32_t | |
16104 | unset ac_cv_type_uint64_t | |
16105 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16106 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16107 | #include <$i> | |
16108 | " | |
16109 | if test "x$ac_cv_type_uintmax_t" = x""yes; then : | |
16110 | acx_cv_header_stdint=$i | |
cd9a469c | 16111 | else |
2069752c | 16112 | continue |
cd9a469c | 16113 | fi |
4ee9c684 | 16114 | |
2069752c | 16115 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16116 | #include <$i> | |
16117 | " | |
16118 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
90973b19 | 16119 | |
cd9a469c | 16120 | else |
2069752c | 16121 | acx_cv_header_stdint_kind="(mostly complete)" |
cd9a469c | 16122 | fi |
90973b19 | 16123 | |
2069752c | 16124 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16125 | #include <$i> | |
16126 | " | |
16127 | if test "x$ac_cv_type_int_least32_t" = x""yes; then : | |
16128 | ||
4dd3972f | 16129 | else |
2069752c | 16130 | acx_cv_header_stdint_kind="(mostly complete)" |
cd9a469c | 16131 | fi |
cd9a469c | 16132 | |
2069752c | 16133 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16134 | #include <$i> | |
16135 | " | |
16136 | if test "x$ac_cv_type_int_fast32_t" = x""yes; then : | |
4dd3972f | 16137 | |
2069752c | 16138 | else |
16139 | acx_cv_header_stdint_kind="(mostly complete)" | |
16140 | fi | |
ea6b3890 | 16141 | |
2069752c | 16142 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16143 | #include <$i> | |
16144 | " | |
16145 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
ea6b3890 | 16146 | |
cd9a469c | 16147 | else |
2069752c | 16148 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16149 | fi | |
4dd3972f | 16150 | |
2069752c | 16151 | break |
16152 | done | |
16153 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16154 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16155 | for i in stdint.h $inttype_headers; do | |
16156 | unset ac_cv_type_uintptr_t | |
16157 | unset ac_cv_type_uint32_t | |
16158 | unset ac_cv_type_uint64_t | |
16159 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16160 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16161 | #include <$i> | |
16162 | " | |
16163 | if test "x$ac_cv_type_uint32_t" = x""yes; then : | |
16164 | acx_cv_header_stdint=$i | |
16165 | else | |
16166 | continue | |
cd9a469c | 16167 | fi |
4dd3972f | 16168 | |
2069752c | 16169 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16170 | #include <$i> | |
16171 | " | |
16172 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
f2c0a16d | 16173 | |
2069752c | 16174 | fi |
247981ce | 16175 | |
2069752c | 16176 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16177 | #include <$i> | |
16178 | " | |
16179 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
247981ce | 16180 | |
2069752c | 16181 | fi |
b902b078 | 16182 | |
2069752c | 16183 | break |
16184 | done | |
16185 | fi | |
16186 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16187 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16188 | for i in sys/types.h $inttype_headers; do | |
16189 | unset ac_cv_type_u_int32_t | |
16190 | unset ac_cv_type_u_int64_t | |
16191 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16192 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16193 | #include <$i> | |
16194 | " | |
16195 | if test "x$ac_cv_type_u_int32_t" = x""yes; then : | |
16196 | acx_cv_header_stdint=$i | |
ea6b3890 | 16197 | else |
2069752c | 16198 | continue |
16199 | fi | |
d2fc5bb1 | 16200 | |
2069752c | 16201 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16202 | #include <$i> | |
16203 | " | |
16204 | if test "x$ac_cv_type_u_int64_t" = x""yes; then : | |
d2fc5bb1 | 16205 | |
2069752c | 16206 | fi |
d2fc5bb1 | 16207 | |
2069752c | 16208 | break |
16209 | done | |
d2fc5bb1 | 16210 | fi |
2069752c | 16211 | if test "$acx_cv_header_stdint" = stddef.h; then |
16212 | acx_cv_header_stdint_kind="(using manual detection)" | |
cd9a469c | 16213 | fi |
d2fc5bb1 | 16214 | |
2069752c | 16215 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16216 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16217 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16218 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16219 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
d2fc5bb1 | 16220 | |
2069752c | 16221 | # ----------------- Summarize what we found so far |
cd9a469c | 16222 | |
2069752c | 16223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16224 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
d2fc5bb1 | 16225 | |
2069752c | 16226 | case `$as_basename -- gstdint.h || |
16227 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16228 | Xgstdint.h : 'X\(//\)$' \| \ | |
16229 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16230 | $as_echo X/gstdint.h | | |
16231 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16232 | s//\1/ | |
16233 | q | |
16234 | } | |
16235 | /^X\/\(\/\/\)$/{ | |
16236 | s//\1/ | |
16237 | q | |
16238 | } | |
16239 | /^X\/\(\/\).*/{ | |
16240 | s//\1/ | |
16241 | q | |
16242 | } | |
16243 | s/.*/./; q'` in | |
16244 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16245 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16246 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16247 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16248 | *) ;; | |
16249 | esac | |
d2fc5bb1 | 16250 | |
2069752c | 16251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16252 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
e93cd318 | 16253 | |
2069752c | 16254 | # ----------------- done included file, check C basic types -------- |
99798ba4 | 16255 | |
2069752c | 16256 | # Lacking an uintptr_t? Test size of void * |
16257 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16258 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16259 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16260 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16261 | # This bug is HP SR number 8606223364. | |
16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16263 | $as_echo_n "checking size of void *... " >&6; } | |
16264 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
16265 | $as_echo_n "(cached) " >&6 | |
16266 | else | |
16267 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
99798ba4 | 16268 | |
2069752c | 16269 | else |
16270 | if test "$ac_cv_type_void_p" = yes; then | |
16271 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16273 | { as_fn_set_status 77 | |
16274 | as_fn_error "cannot compute sizeof (void *) | |
16275 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16276 | else | |
16277 | ac_cv_sizeof_void_p=0 | |
16278 | fi | |
16279 | fi | |
ea6b3890 | 16280 | |
2069752c | 16281 | fi |
16282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16283 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
ea6b3890 | 16284 | |
99798ba4 | 16285 | |
16286 | ||
ea6b3890 | 16287 | cat >>confdefs.h <<_ACEOF |
2069752c | 16288 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
ea6b3890 | 16289 | _ACEOF |
ea6b3890 | 16290 | |
2069752c | 16291 | ;; |
16292 | esac | |
ea6b3890 | 16293 | |
2069752c | 16294 | # Lacking an uint64_t? Test size of long |
16295 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16296 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16297 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16298 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16299 | # This bug is HP SR number 8606223364. | |
16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16301 | $as_echo_n "checking size of long... " >&6; } | |
16302 | if test "${ac_cv_sizeof_long+set}" = set; then : | |
cd9a469c | 16303 | $as_echo_n "(cached) " >&6 |
16304 | else | |
2069752c | 16305 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
ea6b3890 | 16306 | |
c634bedf | 16307 | else |
2069752c | 16308 | if test "$ac_cv_type_long" = yes; then |
16309 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16310 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16311 | { as_fn_set_status 77 | |
16312 | as_fn_error "cannot compute sizeof (long) | |
16313 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16314 | else | |
16315 | ac_cv_sizeof_long=0 | |
16316 | fi | |
cd9a469c | 16317 | fi |
c634bedf | 16318 | |
2069752c | 16319 | fi |
16320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16321 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
ea6b3890 | 16322 | |
c634bedf | 16323 | |
ea6b3890 | 16324 | |
16325 | cat >>confdefs.h <<_ACEOF | |
2069752c | 16326 | #define SIZEOF_LONG $ac_cv_sizeof_long |
ea6b3890 | 16327 | _ACEOF |
c634bedf | 16328 | |
2069752c | 16329 | ;; |
16330 | esac | |
74b918e9 | 16331 | |
2069752c | 16332 | if test $acx_cv_header_stdint = stddef.h; then |
16333 | # Lacking a good header? Test size of everything and deduce all types. | |
16334 | # The cast to long int works around a bug in the HP C Compiler | |
16335 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16336 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16337 | # This bug is HP SR number 8606223364. | |
16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16339 | $as_echo_n "checking size of int... " >&6; } | |
16340 | if test "${ac_cv_sizeof_int+set}" = set; then : | |
16341 | $as_echo_n "(cached) " >&6 | |
16342 | else | |
16343 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
c0e8efbe | 16344 | |
2069752c | 16345 | else |
16346 | if test "$ac_cv_type_int" = yes; then | |
16347 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16348 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16349 | { as_fn_set_status 77 | |
16350 | as_fn_error "cannot compute sizeof (int) | |
16351 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16352 | else | |
16353 | ac_cv_sizeof_int=0 | |
16354 | fi | |
16355 | fi | |
5a037dbd | 16356 | |
2069752c | 16357 | fi |
16358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16359 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
e0582811 | 16360 | |
16361 | ||
99798ba4 | 16362 | |
ea6b3890 | 16363 | cat >>confdefs.h <<_ACEOF |
2069752c | 16364 | #define SIZEOF_INT $ac_cv_sizeof_int |
ea6b3890 | 16365 | _ACEOF |
16366 | ||
ea6b3890 | 16367 | |
2069752c | 16368 | # The cast to long int works around a bug in the HP C Compiler |
16369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16371 | # This bug is HP SR number 8606223364. | |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16373 | $as_echo_n "checking size of short... " >&6; } | |
16374 | if test "${ac_cv_sizeof_short+set}" = set; then : | |
16375 | $as_echo_n "(cached) " >&6 | |
16376 | else | |
16377 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
ea6b3890 | 16378 | |
2069752c | 16379 | else |
16380 | if test "$ac_cv_type_short" = yes; then | |
16381 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16382 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16383 | { as_fn_set_status 77 | |
16384 | as_fn_error "cannot compute sizeof (short) | |
16385 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16386 | else | |
16387 | ac_cv_sizeof_short=0 | |
16388 | fi | |
16389 | fi | |
ea6b3890 | 16390 | |
2069752c | 16391 | fi |
16392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16393 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
ea6b3890 | 16394 | |
16395 | ||
16396 | ||
2069752c | 16397 | cat >>confdefs.h <<_ACEOF |
16398 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16399 | _ACEOF | |
ea6b3890 | 16400 | |
16401 | ||
2069752c | 16402 | # The cast to long int works around a bug in the HP C Compiler |
16403 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16404 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16405 | # This bug is HP SR number 8606223364. | |
16406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16407 | $as_echo_n "checking size of char... " >&6; } | |
16408 | if test "${ac_cv_sizeof_char+set}" = set; then : | |
16409 | $as_echo_n "(cached) " >&6 | |
16410 | else | |
16411 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
ea6b3890 | 16412 | |
2069752c | 16413 | else |
16414 | if test "$ac_cv_type_char" = yes; then | |
16415 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16416 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16417 | { as_fn_set_status 77 | |
16418 | as_fn_error "cannot compute sizeof (char) | |
16419 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16420 | else | |
16421 | ac_cv_sizeof_char=0 | |
16422 | fi | |
16423 | fi | |
ea6b3890 | 16424 | |
2069752c | 16425 | fi |
16426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16427 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
ea6b3890 | 16428 | |
16429 | ||
ea6b3890 | 16430 | |
cd9a469c | 16431 | cat >>confdefs.h <<_ACEOF |
2069752c | 16432 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
99798ba4 | 16433 | _ACEOF |
99798ba4 | 16434 | |
99798ba4 | 16435 | |
eaae6999 | 16436 | |
2069752c | 16437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16438 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16439 | case "$ac_cv_sizeof_char" in | |
16440 | 1) acx_cv_type_int8_t=char ;; | |
9b15a251 | 16441 | *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16442 | esac |
16443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16444 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16445 | ||
16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16447 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16448 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16449 | 2:*) acx_cv_type_int16_t=int ;; | |
16450 | *:2) acx_cv_type_int16_t=short ;; | |
9b15a251 | 16451 | *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16452 | esac |
16453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16454 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16455 | ||
16456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16457 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16458 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16459 | 4:*) acx_cv_type_int32_t=int ;; | |
16460 | *:4) acx_cv_type_int32_t=long ;; | |
9b15a251 | 16461 | *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16462 | esac |
16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16464 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
cd9a469c | 16465 | fi |
16466 | ||
2069752c | 16467 | # These tests are here to make the output prettier |
ea6b3890 | 16468 | |
2069752c | 16469 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
16470 | case "$ac_cv_sizeof_long" in | |
16471 | 8) acx_cv_type_int64_t=long ;; | |
16472 | esac | |
16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16474 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16476 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16477 | fi | |
16478 | ||
16479 | # Now we can use the above types | |
16480 | ||
16481 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16483 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16484 | case $ac_cv_sizeof_void_p in | |
16485 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16486 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16487 | 8) acx_cv_type_intptr_t=int64_t ;; | |
9b15a251 | 16488 | *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
2069752c | 16489 | esac |
16490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16491 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16492 | fi | |
ea6b3890 | 16493 | |
2069752c | 16494 | # ----------------- done all checks, emit header ------------- |
cd9a469c | 16495 | ac_config_commands="$ac_config_commands gstdint.h" |
eaae6999 | 16496 | |
eaae6999 | 16497 | |
cd9a469c | 16498 | |
16499 | ||
16500 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
16501 | if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : | |
16502 | ||
16503 | cat >>confdefs.h <<_ACEOF | |
16504 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
eaae6999 | 16505 | _ACEOF |
eaae6999 | 16506 | |
cd9a469c | 16507 | |
eaae6999 | 16508 | fi |
cd9a469c | 16509 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
16510 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : | |
16511 | ||
16512 | cat >>confdefs.h <<_ACEOF | |
16513 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
eaae6999 | 16514 | _ACEOF |
16515 | ||
cd9a469c | 16516 | |
eaae6999 | 16517 | fi |
cd9a469c | 16518 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
16519 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
eaae6999 | 16520 | |
cd9a469c | 16521 | cat >>confdefs.h <<_ACEOF |
16522 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
16523 | _ACEOF | |
99798ba4 | 16524 | |
16525 | ||
b52ee437 | 16526 | fi |
cd9a469c | 16527 | |
16528 | ||
0d9d2088 | 16529 | case "${host}--x${with_newlib}" in |
16530 | mips*--xyes) | |
16531 | hardwire_newlib=1;; | |
8c596dcc | 16532 | nvptx*--xyes) |
16533 | hardwire_newlib=1;; | |
0d9d2088 | 16534 | esac |
16535 | ||
cd9a469c | 16536 | # Check for library functions. |
0d9d2088 | 16537 | if test "${hardwire_newlib:-0}" -eq 1; then |
e4812daa | 16538 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
16539 | # may not work correctly, because the compiler may not be able to | |
16540 | # link executables. | |
16541 | ||
16542 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
16543 | ||
16544 | ||
16545 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
16546 | ||
16547 | ||
e4812daa | 16548 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
16549 | ||
16550 | ||
e4812daa | 16551 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
16552 | ||
16553 | ||
16554 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
16555 | ||
16556 | ||
16557 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
16558 | ||
cec5cd66 | 16559 | |
4531a456 | 16560 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
16561 | ||
16562 | ||
16563 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
16564 | ||
16565 | ||
cec5cd66 | 16566 | # At some point, we should differentiate between architectures |
16567 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
16568 | # which don't. For the time being, punt. | |
16569 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
16570 | ||
16571 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
16572 | ||
16573 | fi | |
e4812daa | 16574 | else |
4dd3972f | 16575 | |
4dd3972f | 16576 | |
a1aa1d30 | 16577 | |
16578 | for ac_func in $ac_func_list | |
cd9a469c | 16579 | do : |
16580 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16581 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16582 | eval as_val=\$$as_ac_var | |
16583 | if test "x$as_val" = x""yes; then : | |
16584 | cat >>confdefs.h <<_ACEOF | |
16585 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16586 | _ACEOF | |
4dd3972f | 16587 | |
cd9a469c | 16588 | fi |
16589 | done | |
4dd3972f | 16590 | |
4dd3972f | 16591 | |
cd9a469c | 16592 | |
90973b19 | 16593 | |
cd9a469c | 16594 | |
cd9a469c | 16595 | |
cd9a469c | 16596 | |
4ee9c684 | 16597 | |
4ee9c684 | 16598 | |
a2c0dc0f | 16599 | |
a2c0dc0f | 16600 | |
4ee9c684 | 16601 | |
adad6c74 | 16602 | |
adad6c74 | 16603 | |
adad6c74 | 16604 | |
adad6c74 | 16605 | |
adad6c74 | 16606 | |
adad6c74 | 16607 | |
adad6c74 | 16608 | |
adad6c74 | 16609 | |
99798ba4 | 16610 | |
99798ba4 | 16611 | |
99798ba4 | 16612 | |
99798ba4 | 16613 | |
adad6c74 | 16614 | |
adad6c74 | 16615 | |
adad6c74 | 16616 | |
adad6c74 | 16617 | |
c0e8efbe | 16618 | |
c0e8efbe | 16619 | |
c0e8efbe | 16620 | |
a1aa1d30 | 16621 | |
16622 | ||
16623 | ||
16624 | ||
16625 | ||
16626 | ||
16627 | ||
16628 | ||
16629 | ||
16630 | ||
16631 | ||
16632 | ||
16633 | ||
16634 | ||
16635 | ||
16636 | ||
16637 | ||
16638 | ||
16639 | ||
16640 | ||
16641 | ||
16642 | ||
16643 | ||
16644 | ||
16645 | ||
16646 | ||
16647 | ||
16648 | ||
16649 | ||
16650 | ||
16651 | ||
16652 | ||
16653 | ||
16654 | ||
16655 | ||
16656 | ||
16657 | ||
16658 | ||
16659 | ||
16660 | ||
16661 | ||
16662 | ||
16663 | ||
16664 | ||
16665 | ||
16666 | ||
16667 | ||
16668 | ||
16669 | ||
16670 | ||
16671 | ||
16672 | ||
16673 | ||
16674 | ||
16675 | ||
16676 | ||
a291e3b6 | 16677 | |
5935a97b | 16678 | |
b8a8c7bc | 16679 | |
16680 | ||
fc3d374a | 16681 | |
16682 | ||
7520a494 | 16683 | |
16684 | ||
7f0d992b | 16685 | |
16686 | ||
5935a97b | 16687 | |
ffb6d1fd | 16688 | |
16689 | ||
e4812daa | 16690 | fi |
a1aa1d30 | 16691 | |
a8d8f723 | 16692 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
16693 | ||
16694 | ac_save_CFLAGS="$CFLAGS" | |
16695 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
16696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16697 | /* end confdefs.h. */ | |
16698 | #define _GNU_SOURCE 1 | |
16699 | #include <string.h> | |
16700 | #include <locale.h> | |
16701 | int | |
16702 | main () | |
16703 | { | |
16704 | char s[128]; strerror_r(5, s, 128); | |
16705 | ; | |
16706 | return 0; | |
16707 | } | |
16708 | _ACEOF | |
16709 | if ac_fn_c_try_compile "$LINENO"; then : | |
16710 | ||
16711 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
16712 | ||
16713 | fi | |
16714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16715 | CFLAGS="$ac_save_CFLAGS" | |
16716 | ||
16717 | ac_save_CFLAGS="$CFLAGS" | |
16718 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
16719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16720 | /* end confdefs.h. */ | |
16721 | #define _GNU_SOURCE 1 | |
16722 | #include <string.h> | |
16723 | #include <locale.h> | |
16724 | int | |
16725 | main () | |
16726 | { | |
16727 | char s[128]; strerror_r(5, s); | |
16728 | ; | |
16729 | return 0; | |
16730 | } | |
16731 | _ACEOF | |
16732 | if ac_fn_c_try_compile "$LINENO"; then : | |
16733 | ||
16734 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
16735 | ||
16736 | fi | |
16737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16738 | CFLAGS="$ac_save_CFLAGS" | |
c0e8efbe | 16739 | |
adad6c74 | 16740 | |
8f838781 | 16741 | # Check for C99 (and other IEEE) math functions |
7d9455ce | 16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
16743 | $as_echo_n "checking for sin in -lm... " >&6; } | |
16744 | if test "${ac_cv_lib_m_sin+set}" = set; then : | |
cd9a469c | 16745 | $as_echo_n "(cached) " >&6 |
8f838781 | 16746 | else |
16747 | ac_check_lib_save_LIBS=$LIBS | |
16748 | LIBS="-lm $LIBS" | |
b52ee437 | 16749 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16750 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16751 | fi |
cd9a469c | 16752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 16753 | /* end confdefs.h. */ |
16754 | ||
cd9a469c | 16755 | /* Override any GCC internal prototype to avoid an error. |
16756 | Use char because int might match the return type of a GCC | |
16757 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 16758 | #ifdef __cplusplus |
16759 | extern "C" | |
16760 | #endif | |
7d9455ce | 16761 | char sin (); |
8f838781 | 16762 | int |
16763 | main () | |
16764 | { | |
7d9455ce | 16765 | return sin (); |
8f838781 | 16766 | ; |
16767 | return 0; | |
16768 | } | |
16769 | _ACEOF | |
cd9a469c | 16770 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 16771 | ac_cv_lib_m_sin=yes |
8f838781 | 16772 | else |
7d9455ce | 16773 | ac_cv_lib_m_sin=no |
8f838781 | 16774 | fi |
cd9a469c | 16775 | rm -f core conftest.err conftest.$ac_objext \ |
16776 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 16777 | LIBS=$ac_check_lib_save_LIBS |
16778 | fi | |
7d9455ce | 16779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
16780 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
16781 | if test "x$ac_cv_lib_m_sin" = x""yes; then : | |
16782 | cat >>confdefs.h <<_ACEOF | |
16783 | #define HAVE_LIBM 1 | |
16784 | _ACEOF | |
8f838781 | 16785 | |
7d9455ce | 16786 | LIBS="-lm $LIBS" |
8f838781 | 16787 | |
16788 | fi | |
16789 | ||
7d9455ce | 16790 | |
16791 | ||
16792 | ||
16793 | ||
16794 | ||
16795 | ||
16796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
16797 | $as_echo_n "checking for acosf... " >&6; } | |
16798 | if test "${gcc_cv_math_func_acosf+set}" = set; then : | |
cd9a469c | 16799 | $as_echo_n "(cached) " >&6 |
b52ee437 | 16800 | else |
7d9455ce | 16801 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16802 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16803 | fi |
cd9a469c | 16804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 16805 | /* end confdefs.h. */ |
16806 | ||
7d9455ce | 16807 | #ifdef HAVE_COMPLEX_H |
16808 | #include <complex.h> | |
16809 | #endif | |
16810 | #ifdef HAVE_MATH_H | |
16811 | #include <math.h> | |
b52ee437 | 16812 | #endif |
7d9455ce | 16813 | |
16814 | int (*ptr)() = (int (*)())acosf; | |
16815 | ||
b52ee437 | 16816 | int |
16817 | main () | |
16818 | { | |
b52ee437 | 16819 | return 0; |
16820 | } | |
7d9455ce | 16821 | |
b52ee437 | 16822 | _ACEOF |
cd9a469c | 16823 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 16824 | gcc_cv_math_func_acosf=yes |
b52ee437 | 16825 | else |
7d9455ce | 16826 | gcc_cv_math_func_acosf=no |
b52ee437 | 16827 | fi |
cd9a469c | 16828 | rm -f core conftest.err conftest.$ac_objext \ |
16829 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 16830 | fi |
7d9455ce | 16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
16832 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
16833 | if test $gcc_cv_math_func_acosf = yes; then | |
bd647a17 | 16834 | |
6affa8e1 | 16835 | cat >>confdefs.h <<_ACEOF |
16836 | #define HAVE_ACOSF 1 | |
16837 | _ACEOF | |
7d9455ce | 16838 | |
16839 | fi | |
b52ee437 | 16840 | |
b52ee437 | 16841 | |
b52ee437 | 16842 | |
7d9455ce | 16843 | |
16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
16845 | $as_echo_n "checking for acos... " >&6; } | |
16846 | if test "${gcc_cv_math_func_acos+set}" = set; then : | |
cd9a469c | 16847 | $as_echo_n "(cached) " >&6 |
8f838781 | 16848 | else |
7d9455ce | 16849 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16850 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16851 | fi |
cd9a469c | 16852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 16853 | /* end confdefs.h. */ |
16854 | ||
7d9455ce | 16855 | #ifdef HAVE_COMPLEX_H |
16856 | #include <complex.h> | |
8f838781 | 16857 | #endif |
7d9455ce | 16858 | #ifdef HAVE_MATH_H |
16859 | #include <math.h> | |
16860 | #endif | |
16861 | ||
16862 | int (*ptr)() = (int (*)())acos; | |
16863 | ||
8f838781 | 16864 | int |
16865 | main () | |
16866 | { | |
8f838781 | 16867 | return 0; |
16868 | } | |
7d9455ce | 16869 | |
8f838781 | 16870 | _ACEOF |
cd9a469c | 16871 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 16872 | gcc_cv_math_func_acos=yes |
8f838781 | 16873 | else |
7d9455ce | 16874 | gcc_cv_math_func_acos=no |
8f838781 | 16875 | fi |
cd9a469c | 16876 | rm -f core conftest.err conftest.$ac_objext \ |
16877 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 16878 | fi |
7d9455ce | 16879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
16880 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
16881 | if test $gcc_cv_math_func_acos = yes; then | |
bd647a17 | 16882 | |
6affa8e1 | 16883 | cat >>confdefs.h <<_ACEOF |
16884 | #define HAVE_ACOS 1 | |
16885 | _ACEOF | |
7d9455ce | 16886 | |
16887 | fi | |
16888 | ||
8f838781 | 16889 | |
8f838781 | 16890 | |
8f838781 | 16891 | |
7d9455ce | 16892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
16893 | $as_echo_n "checking for acosl... " >&6; } | |
16894 | if test "${gcc_cv_math_func_acosl+set}" = set; then : | |
cd9a469c | 16895 | $as_echo_n "(cached) " >&6 |
b52ee437 | 16896 | else |
7d9455ce | 16897 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16898 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16899 | fi |
cd9a469c | 16900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 16901 | /* end confdefs.h. */ |
16902 | ||
7d9455ce | 16903 | #ifdef HAVE_COMPLEX_H |
16904 | #include <complex.h> | |
16905 | #endif | |
16906 | #ifdef HAVE_MATH_H | |
16907 | #include <math.h> | |
b52ee437 | 16908 | #endif |
7d9455ce | 16909 | |
16910 | int (*ptr)() = (int (*)())acosl; | |
16911 | ||
b52ee437 | 16912 | int |
16913 | main () | |
16914 | { | |
b52ee437 | 16915 | return 0; |
16916 | } | |
7d9455ce | 16917 | |
b52ee437 | 16918 | _ACEOF |
cd9a469c | 16919 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 16920 | gcc_cv_math_func_acosl=yes |
b52ee437 | 16921 | else |
7d9455ce | 16922 | gcc_cv_math_func_acosl=no |
b52ee437 | 16923 | fi |
cd9a469c | 16924 | rm -f core conftest.err conftest.$ac_objext \ |
16925 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 16926 | fi |
7d9455ce | 16927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
16928 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
16929 | if test $gcc_cv_math_func_acosl = yes; then | |
bd647a17 | 16930 | |
6affa8e1 | 16931 | cat >>confdefs.h <<_ACEOF |
16932 | #define HAVE_ACOSL 1 | |
16933 | _ACEOF | |
7d9455ce | 16934 | |
16935 | fi | |
b52ee437 | 16936 | |
b52ee437 | 16937 | |
b52ee437 | 16938 | |
7d9455ce | 16939 | |
16940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
16941 | $as_echo_n "checking for acoshf... " >&6; } | |
16942 | if test "${gcc_cv_math_func_acoshf+set}" = set; then : | |
cd9a469c | 16943 | $as_echo_n "(cached) " >&6 |
8f838781 | 16944 | else |
7d9455ce | 16945 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16946 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16947 | fi |
cd9a469c | 16948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 16949 | /* end confdefs.h. */ |
16950 | ||
7d9455ce | 16951 | #ifdef HAVE_COMPLEX_H |
16952 | #include <complex.h> | |
8f838781 | 16953 | #endif |
7d9455ce | 16954 | #ifdef HAVE_MATH_H |
16955 | #include <math.h> | |
16956 | #endif | |
16957 | ||
16958 | int (*ptr)() = (int (*)())acoshf; | |
16959 | ||
8f838781 | 16960 | int |
16961 | main () | |
16962 | { | |
8f838781 | 16963 | return 0; |
16964 | } | |
7d9455ce | 16965 | |
8f838781 | 16966 | _ACEOF |
cd9a469c | 16967 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 16968 | gcc_cv_math_func_acoshf=yes |
8f838781 | 16969 | else |
7d9455ce | 16970 | gcc_cv_math_func_acoshf=no |
8f838781 | 16971 | fi |
cd9a469c | 16972 | rm -f core conftest.err conftest.$ac_objext \ |
16973 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 16974 | fi |
7d9455ce | 16975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
16976 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
16977 | if test $gcc_cv_math_func_acoshf = yes; then | |
bd647a17 | 16978 | |
6affa8e1 | 16979 | cat >>confdefs.h <<_ACEOF |
16980 | #define HAVE_ACOSHF 1 | |
16981 | _ACEOF | |
8f838781 | 16982 | |
7d9455ce | 16983 | fi |
8f838781 | 16984 | |
8f838781 | 16985 | |
7d9455ce | 16986 | |
16987 | ||
16988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
16989 | $as_echo_n "checking for acosh... " >&6; } | |
16990 | if test "${gcc_cv_math_func_acosh+set}" = set; then : | |
cd9a469c | 16991 | $as_echo_n "(cached) " >&6 |
8f838781 | 16992 | else |
7d9455ce | 16993 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16994 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16995 | fi |
cd9a469c | 16996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 16997 | /* end confdefs.h. */ |
16998 | ||
7d9455ce | 16999 | #ifdef HAVE_COMPLEX_H |
17000 | #include <complex.h> | |
17001 | #endif | |
17002 | #ifdef HAVE_MATH_H | |
17003 | #include <math.h> | |
8f838781 | 17004 | #endif |
7d9455ce | 17005 | |
17006 | int (*ptr)() = (int (*)())acosh; | |
17007 | ||
8f838781 | 17008 | int |
17009 | main () | |
17010 | { | |
cd9a469c | 17011 | return 0; |
17012 | } | |
7d9455ce | 17013 | |
cd9a469c | 17014 | _ACEOF |
17015 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 17016 | gcc_cv_math_func_acosh=yes |
8f838781 | 17017 | else |
7d9455ce | 17018 | gcc_cv_math_func_acosh=no |
8f838781 | 17019 | fi |
cd9a469c | 17020 | rm -f core conftest.err conftest.$ac_objext \ |
17021 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17022 | fi |
7d9455ce | 17023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17024 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17025 | if test $gcc_cv_math_func_acosh = yes; then | |
bd647a17 | 17026 | |
6affa8e1 | 17027 | cat >>confdefs.h <<_ACEOF |
17028 | #define HAVE_ACOSH 1 | |
17029 | _ACEOF | |
7d9455ce | 17030 | |
17031 | fi | |
8f838781 | 17032 | |
8f838781 | 17033 | |
8f838781 | 17034 | |
7d9455ce | 17035 | |
17036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17037 | $as_echo_n "checking for acoshl... " >&6; } | |
17038 | if test "${gcc_cv_math_func_acoshl+set}" = set; then : | |
cd9a469c | 17039 | $as_echo_n "(cached) " >&6 |
b52ee437 | 17040 | else |
7d9455ce | 17041 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17042 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17043 | fi |
cd9a469c | 17044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 17045 | /* end confdefs.h. */ |
17046 | ||
7d9455ce | 17047 | #ifdef HAVE_COMPLEX_H |
17048 | #include <complex.h> | |
b52ee437 | 17049 | #endif |
7d9455ce | 17050 | #ifdef HAVE_MATH_H |
17051 | #include <math.h> | |
17052 | #endif | |
17053 | ||
17054 | int (*ptr)() = (int (*)())acoshl; | |
17055 | ||
b52ee437 | 17056 | int |
17057 | main () | |
17058 | { | |
b52ee437 | 17059 | return 0; |
17060 | } | |
7d9455ce | 17061 | |
b52ee437 | 17062 | _ACEOF |
cd9a469c | 17063 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17064 | gcc_cv_math_func_acoshl=yes |
b52ee437 | 17065 | else |
7d9455ce | 17066 | gcc_cv_math_func_acoshl=no |
b52ee437 | 17067 | fi |
cd9a469c | 17068 | rm -f core conftest.err conftest.$ac_objext \ |
17069 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 17070 | fi |
7d9455ce | 17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17072 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17073 | if test $gcc_cv_math_func_acoshl = yes; then | |
bd647a17 | 17074 | |
6affa8e1 | 17075 | cat >>confdefs.h <<_ACEOF |
17076 | #define HAVE_ACOSHL 1 | |
17077 | _ACEOF | |
7d9455ce | 17078 | |
17079 | fi | |
17080 | ||
b52ee437 | 17081 | |
b52ee437 | 17082 | |
b52ee437 | 17083 | |
7d9455ce | 17084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17085 | $as_echo_n "checking for asinf... " >&6; } | |
17086 | if test "${gcc_cv_math_func_asinf+set}" = set; then : | |
cd9a469c | 17087 | $as_echo_n "(cached) " >&6 |
8f838781 | 17088 | else |
7d9455ce | 17089 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17090 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17091 | fi |
cd9a469c | 17092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17093 | /* end confdefs.h. */ |
17094 | ||
7d9455ce | 17095 | #ifdef HAVE_COMPLEX_H |
17096 | #include <complex.h> | |
17097 | #endif | |
17098 | #ifdef HAVE_MATH_H | |
17099 | #include <math.h> | |
8f838781 | 17100 | #endif |
7d9455ce | 17101 | |
17102 | int (*ptr)() = (int (*)())asinf; | |
17103 | ||
8f838781 | 17104 | int |
17105 | main () | |
17106 | { | |
8f838781 | 17107 | return 0; |
17108 | } | |
7d9455ce | 17109 | |
8f838781 | 17110 | _ACEOF |
cd9a469c | 17111 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17112 | gcc_cv_math_func_asinf=yes |
8f838781 | 17113 | else |
7d9455ce | 17114 | gcc_cv_math_func_asinf=no |
8f838781 | 17115 | fi |
cd9a469c | 17116 | rm -f core conftest.err conftest.$ac_objext \ |
17117 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17118 | fi |
7d9455ce | 17119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17120 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17121 | if test $gcc_cv_math_func_asinf = yes; then | |
bd647a17 | 17122 | |
6affa8e1 | 17123 | cat >>confdefs.h <<_ACEOF |
17124 | #define HAVE_ASINF 1 | |
17125 | _ACEOF | |
7d9455ce | 17126 | |
17127 | fi | |
8f838781 | 17128 | |
8f838781 | 17129 | |
8f838781 | 17130 | |
7d9455ce | 17131 | |
17132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17133 | $as_echo_n "checking for asin... " >&6; } | |
17134 | if test "${gcc_cv_math_func_asin+set}" = set; then : | |
cd9a469c | 17135 | $as_echo_n "(cached) " >&6 |
8f838781 | 17136 | else |
7d9455ce | 17137 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17138 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17139 | fi |
cd9a469c | 17140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17141 | /* end confdefs.h. */ |
17142 | ||
7d9455ce | 17143 | #ifdef HAVE_COMPLEX_H |
17144 | #include <complex.h> | |
8f838781 | 17145 | #endif |
7d9455ce | 17146 | #ifdef HAVE_MATH_H |
17147 | #include <math.h> | |
17148 | #endif | |
17149 | ||
17150 | int (*ptr)() = (int (*)())asin; | |
17151 | ||
8f838781 | 17152 | int |
17153 | main () | |
17154 | { | |
8f838781 | 17155 | return 0; |
17156 | } | |
7d9455ce | 17157 | |
8f838781 | 17158 | _ACEOF |
cd9a469c | 17159 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17160 | gcc_cv_math_func_asin=yes |
8f838781 | 17161 | else |
7d9455ce | 17162 | gcc_cv_math_func_asin=no |
8f838781 | 17163 | fi |
cd9a469c | 17164 | rm -f core conftest.err conftest.$ac_objext \ |
17165 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17166 | fi |
7d9455ce | 17167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17168 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17169 | if test $gcc_cv_math_func_asin = yes; then | |
bd647a17 | 17170 | |
6affa8e1 | 17171 | cat >>confdefs.h <<_ACEOF |
17172 | #define HAVE_ASIN 1 | |
17173 | _ACEOF | |
8f838781 | 17174 | |
7d9455ce | 17175 | fi |
8f838781 | 17176 | |
8f838781 | 17177 | |
7d9455ce | 17178 | |
17179 | ||
17180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17181 | $as_echo_n "checking for asinl... " >&6; } | |
17182 | if test "${gcc_cv_math_func_asinl+set}" = set; then : | |
cd9a469c | 17183 | $as_echo_n "(cached) " >&6 |
8f838781 | 17184 | else |
7d9455ce | 17185 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17186 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17187 | fi |
cd9a469c | 17188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17189 | /* end confdefs.h. */ |
17190 | ||
7d9455ce | 17191 | #ifdef HAVE_COMPLEX_H |
17192 | #include <complex.h> | |
17193 | #endif | |
17194 | #ifdef HAVE_MATH_H | |
17195 | #include <math.h> | |
8f838781 | 17196 | #endif |
7d9455ce | 17197 | |
17198 | int (*ptr)() = (int (*)())asinl; | |
17199 | ||
8f838781 | 17200 | int |
17201 | main () | |
17202 | { | |
8f838781 | 17203 | return 0; |
17204 | } | |
7d9455ce | 17205 | |
8f838781 | 17206 | _ACEOF |
cd9a469c | 17207 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17208 | gcc_cv_math_func_asinl=yes |
8f838781 | 17209 | else |
7d9455ce | 17210 | gcc_cv_math_func_asinl=no |
8f838781 | 17211 | fi |
cd9a469c | 17212 | rm -f core conftest.err conftest.$ac_objext \ |
17213 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17214 | fi |
7d9455ce | 17215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17216 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17217 | if test $gcc_cv_math_func_asinl = yes; then | |
bd647a17 | 17218 | |
6affa8e1 | 17219 | cat >>confdefs.h <<_ACEOF |
17220 | #define HAVE_ASINL 1 | |
17221 | _ACEOF | |
7d9455ce | 17222 | |
17223 | fi | |
8f838781 | 17224 | |
8f838781 | 17225 | |
8f838781 | 17226 | |
7d9455ce | 17227 | |
17228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17229 | $as_echo_n "checking for asinhf... " >&6; } | |
17230 | if test "${gcc_cv_math_func_asinhf+set}" = set; then : | |
cd9a469c | 17231 | $as_echo_n "(cached) " >&6 |
8f838781 | 17232 | else |
7d9455ce | 17233 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17234 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17235 | fi |
cd9a469c | 17236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17237 | /* end confdefs.h. */ |
17238 | ||
7d9455ce | 17239 | #ifdef HAVE_COMPLEX_H |
17240 | #include <complex.h> | |
8f838781 | 17241 | #endif |
7d9455ce | 17242 | #ifdef HAVE_MATH_H |
17243 | #include <math.h> | |
17244 | #endif | |
17245 | ||
17246 | int (*ptr)() = (int (*)())asinhf; | |
17247 | ||
8f838781 | 17248 | int |
17249 | main () | |
17250 | { | |
8f838781 | 17251 | return 0; |
17252 | } | |
7d9455ce | 17253 | |
8f838781 | 17254 | _ACEOF |
cd9a469c | 17255 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17256 | gcc_cv_math_func_asinhf=yes |
8f838781 | 17257 | else |
7d9455ce | 17258 | gcc_cv_math_func_asinhf=no |
8f838781 | 17259 | fi |
cd9a469c | 17260 | rm -f core conftest.err conftest.$ac_objext \ |
17261 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17262 | fi |
7d9455ce | 17263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17264 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17265 | if test $gcc_cv_math_func_asinhf = yes; then | |
bd647a17 | 17266 | |
6affa8e1 | 17267 | cat >>confdefs.h <<_ACEOF |
17268 | #define HAVE_ASINHF 1 | |
17269 | _ACEOF | |
7d9455ce | 17270 | |
17271 | fi | |
17272 | ||
8f838781 | 17273 | |
8f838781 | 17274 | |
8f838781 | 17275 | |
7d9455ce | 17276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17277 | $as_echo_n "checking for asinh... " >&6; } | |
17278 | if test "${gcc_cv_math_func_asinh+set}" = set; then : | |
cd9a469c | 17279 | $as_echo_n "(cached) " >&6 |
8f838781 | 17280 | else |
7d9455ce | 17281 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17282 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17283 | fi |
cd9a469c | 17284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17285 | /* end confdefs.h. */ |
17286 | ||
7d9455ce | 17287 | #ifdef HAVE_COMPLEX_H |
17288 | #include <complex.h> | |
17289 | #endif | |
17290 | #ifdef HAVE_MATH_H | |
17291 | #include <math.h> | |
8f838781 | 17292 | #endif |
7d9455ce | 17293 | |
17294 | int (*ptr)() = (int (*)())asinh; | |
17295 | ||
8f838781 | 17296 | int |
17297 | main () | |
17298 | { | |
8f838781 | 17299 | return 0; |
17300 | } | |
7d9455ce | 17301 | |
8f838781 | 17302 | _ACEOF |
cd9a469c | 17303 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17304 | gcc_cv_math_func_asinh=yes |
8f838781 | 17305 | else |
7d9455ce | 17306 | gcc_cv_math_func_asinh=no |
8f838781 | 17307 | fi |
cd9a469c | 17308 | rm -f core conftest.err conftest.$ac_objext \ |
17309 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17310 | fi |
7d9455ce | 17311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17312 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17313 | if test $gcc_cv_math_func_asinh = yes; then | |
bd647a17 | 17314 | |
6affa8e1 | 17315 | cat >>confdefs.h <<_ACEOF |
17316 | #define HAVE_ASINH 1 | |
17317 | _ACEOF | |
7d9455ce | 17318 | |
17319 | fi | |
8f838781 | 17320 | |
8f838781 | 17321 | |
8f838781 | 17322 | |
7d9455ce | 17323 | |
17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17325 | $as_echo_n "checking for asinhl... " >&6; } | |
17326 | if test "${gcc_cv_math_func_asinhl+set}" = set; then : | |
cd9a469c | 17327 | $as_echo_n "(cached) " >&6 |
334f03a1 | 17328 | else |
7d9455ce | 17329 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17330 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17331 | fi |
cd9a469c | 17332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
334f03a1 | 17333 | /* end confdefs.h. */ |
17334 | ||
7d9455ce | 17335 | #ifdef HAVE_COMPLEX_H |
17336 | #include <complex.h> | |
334f03a1 | 17337 | #endif |
7d9455ce | 17338 | #ifdef HAVE_MATH_H |
17339 | #include <math.h> | |
17340 | #endif | |
17341 | ||
17342 | int (*ptr)() = (int (*)())asinhl; | |
17343 | ||
334f03a1 | 17344 | int |
17345 | main () | |
17346 | { | |
334f03a1 | 17347 | return 0; |
17348 | } | |
7d9455ce | 17349 | |
334f03a1 | 17350 | _ACEOF |
cd9a469c | 17351 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17352 | gcc_cv_math_func_asinhl=yes |
334f03a1 | 17353 | else |
7d9455ce | 17354 | gcc_cv_math_func_asinhl=no |
334f03a1 | 17355 | fi |
cd9a469c | 17356 | rm -f core conftest.err conftest.$ac_objext \ |
17357 | conftest$ac_exeext conftest.$ac_ext | |
334f03a1 | 17358 | fi |
7d9455ce | 17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17360 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17361 | if test $gcc_cv_math_func_asinhl = yes; then | |
bd647a17 | 17362 | |
6affa8e1 | 17363 | cat >>confdefs.h <<_ACEOF |
17364 | #define HAVE_ASINHL 1 | |
17365 | _ACEOF | |
334f03a1 | 17366 | |
7d9455ce | 17367 | fi |
334f03a1 | 17368 | |
334f03a1 | 17369 | |
7d9455ce | 17370 | |
17371 | ||
17372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17373 | $as_echo_n "checking for atan2f... " >&6; } | |
17374 | if test "${gcc_cv_math_func_atan2f+set}" = set; then : | |
cd9a469c | 17375 | $as_echo_n "(cached) " >&6 |
8f838781 | 17376 | else |
7d9455ce | 17377 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17378 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17379 | fi |
cd9a469c | 17380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17381 | /* end confdefs.h. */ |
17382 | ||
7d9455ce | 17383 | #ifdef HAVE_COMPLEX_H |
17384 | #include <complex.h> | |
8f838781 | 17385 | #endif |
7d9455ce | 17386 | #ifdef HAVE_MATH_H |
17387 | #include <math.h> | |
17388 | #endif | |
17389 | ||
17390 | int (*ptr)() = (int (*)())atan2f; | |
17391 | ||
17392 | int | |
8f838781 | 17393 | main () |
17394 | { | |
8f838781 | 17395 | return 0; |
17396 | } | |
7d9455ce | 17397 | |
8f838781 | 17398 | _ACEOF |
cd9a469c | 17399 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17400 | gcc_cv_math_func_atan2f=yes |
8f838781 | 17401 | else |
7d9455ce | 17402 | gcc_cv_math_func_atan2f=no |
8f838781 | 17403 | fi |
cd9a469c | 17404 | rm -f core conftest.err conftest.$ac_objext \ |
17405 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17406 | fi |
7d9455ce | 17407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17408 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17409 | if test $gcc_cv_math_func_atan2f = yes; then | |
bd647a17 | 17410 | |
6affa8e1 | 17411 | cat >>confdefs.h <<_ACEOF |
17412 | #define HAVE_ATAN2F 1 | |
17413 | _ACEOF | |
7d9455ce | 17414 | |
17415 | fi | |
8f838781 | 17416 | |
8f838781 | 17417 | |
8f838781 | 17418 | |
7d9455ce | 17419 | |
17420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17421 | $as_echo_n "checking for atan2... " >&6; } | |
17422 | if test "${gcc_cv_math_func_atan2+set}" = set; then : | |
cd9a469c | 17423 | $as_echo_n "(cached) " >&6 |
8f838781 | 17424 | else |
7d9455ce | 17425 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17426 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17427 | fi |
cd9a469c | 17428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17429 | /* end confdefs.h. */ |
17430 | ||
7d9455ce | 17431 | #ifdef HAVE_COMPLEX_H |
17432 | #include <complex.h> | |
8f838781 | 17433 | #endif |
7d9455ce | 17434 | #ifdef HAVE_MATH_H |
17435 | #include <math.h> | |
17436 | #endif | |
17437 | ||
17438 | int (*ptr)() = (int (*)())atan2; | |
17439 | ||
8f838781 | 17440 | int |
17441 | main () | |
17442 | { | |
8f838781 | 17443 | return 0; |
17444 | } | |
7d9455ce | 17445 | |
8f838781 | 17446 | _ACEOF |
cd9a469c | 17447 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17448 | gcc_cv_math_func_atan2=yes |
8f838781 | 17449 | else |
7d9455ce | 17450 | gcc_cv_math_func_atan2=no |
8f838781 | 17451 | fi |
cd9a469c | 17452 | rm -f core conftest.err conftest.$ac_objext \ |
17453 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17454 | fi |
7d9455ce | 17455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
17456 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
17457 | if test $gcc_cv_math_func_atan2 = yes; then | |
bd647a17 | 17458 | |
6affa8e1 | 17459 | cat >>confdefs.h <<_ACEOF |
17460 | #define HAVE_ATAN2 1 | |
17461 | _ACEOF | |
8f838781 | 17462 | |
7d9455ce | 17463 | fi |
8f838781 | 17464 | |
8f838781 | 17465 | |
7d9455ce | 17466 | |
17467 | ||
17468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
17469 | $as_echo_n "checking for atan2l... " >&6; } | |
17470 | if test "${gcc_cv_math_func_atan2l+set}" = set; then : | |
cd9a469c | 17471 | $as_echo_n "(cached) " >&6 |
8f838781 | 17472 | else |
7d9455ce | 17473 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17474 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17475 | fi |
cd9a469c | 17476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17477 | /* end confdefs.h. */ |
17478 | ||
7d9455ce | 17479 | #ifdef HAVE_COMPLEX_H |
17480 | #include <complex.h> | |
17481 | #endif | |
17482 | #ifdef HAVE_MATH_H | |
17483 | #include <math.h> | |
8f838781 | 17484 | #endif |
7d9455ce | 17485 | |
17486 | int (*ptr)() = (int (*)())atan2l; | |
17487 | ||
8f838781 | 17488 | int |
17489 | main () | |
17490 | { | |
8f838781 | 17491 | return 0; |
17492 | } | |
7d9455ce | 17493 | |
8f838781 | 17494 | _ACEOF |
cd9a469c | 17495 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17496 | gcc_cv_math_func_atan2l=yes |
8f838781 | 17497 | else |
7d9455ce | 17498 | gcc_cv_math_func_atan2l=no |
8f838781 | 17499 | fi |
cd9a469c | 17500 | rm -f core conftest.err conftest.$ac_objext \ |
17501 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17502 | fi |
7d9455ce | 17503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
17504 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
17505 | if test $gcc_cv_math_func_atan2l = yes; then | |
bd647a17 | 17506 | |
6affa8e1 | 17507 | cat >>confdefs.h <<_ACEOF |
17508 | #define HAVE_ATAN2L 1 | |
17509 | _ACEOF | |
7d9455ce | 17510 | |
17511 | fi | |
8f838781 | 17512 | |
8f838781 | 17513 | |
8f838781 | 17514 | |
7d9455ce | 17515 | |
17516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
17517 | $as_echo_n "checking for atanf... " >&6; } | |
17518 | if test "${gcc_cv_math_func_atanf+set}" = set; then : | |
cd9a469c | 17519 | $as_echo_n "(cached) " >&6 |
8f838781 | 17520 | else |
7d9455ce | 17521 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17522 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17523 | fi |
cd9a469c | 17524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17525 | /* end confdefs.h. */ |
17526 | ||
7d9455ce | 17527 | #ifdef HAVE_COMPLEX_H |
17528 | #include <complex.h> | |
8f838781 | 17529 | #endif |
7d9455ce | 17530 | #ifdef HAVE_MATH_H |
17531 | #include <math.h> | |
17532 | #endif | |
17533 | ||
17534 | int (*ptr)() = (int (*)())atanf; | |
17535 | ||
8f838781 | 17536 | int |
17537 | main () | |
17538 | { | |
8f838781 | 17539 | return 0; |
17540 | } | |
7d9455ce | 17541 | |
8f838781 | 17542 | _ACEOF |
cd9a469c | 17543 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17544 | gcc_cv_math_func_atanf=yes |
8f838781 | 17545 | else |
7d9455ce | 17546 | gcc_cv_math_func_atanf=no |
8f838781 | 17547 | fi |
cd9a469c | 17548 | rm -f core conftest.err conftest.$ac_objext \ |
17549 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17550 | fi |
7d9455ce | 17551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
17552 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
17553 | if test $gcc_cv_math_func_atanf = yes; then | |
bd647a17 | 17554 | |
6affa8e1 | 17555 | cat >>confdefs.h <<_ACEOF |
17556 | #define HAVE_ATANF 1 | |
17557 | _ACEOF | |
7d9455ce | 17558 | |
17559 | fi | |
17560 | ||
8f838781 | 17561 | |
8f838781 | 17562 | |
8f838781 | 17563 | |
7d9455ce | 17564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
17565 | $as_echo_n "checking for atan... " >&6; } | |
17566 | if test "${gcc_cv_math_func_atan+set}" = set; then : | |
cd9a469c | 17567 | $as_echo_n "(cached) " >&6 |
8f838781 | 17568 | else |
7d9455ce | 17569 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17570 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17571 | fi |
cd9a469c | 17572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17573 | /* end confdefs.h. */ |
17574 | ||
7d9455ce | 17575 | #ifdef HAVE_COMPLEX_H |
17576 | #include <complex.h> | |
17577 | #endif | |
17578 | #ifdef HAVE_MATH_H | |
17579 | #include <math.h> | |
8f838781 | 17580 | #endif |
7d9455ce | 17581 | |
17582 | int (*ptr)() = (int (*)())atan; | |
17583 | ||
8f838781 | 17584 | int |
17585 | main () | |
17586 | { | |
8f838781 | 17587 | return 0; |
17588 | } | |
7d9455ce | 17589 | |
8f838781 | 17590 | _ACEOF |
cd9a469c | 17591 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17592 | gcc_cv_math_func_atan=yes |
8f838781 | 17593 | else |
7d9455ce | 17594 | gcc_cv_math_func_atan=no |
8f838781 | 17595 | fi |
cd9a469c | 17596 | rm -f core conftest.err conftest.$ac_objext \ |
17597 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17598 | fi |
7d9455ce | 17599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
17600 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
17601 | if test $gcc_cv_math_func_atan = yes; then | |
bd647a17 | 17602 | |
6affa8e1 | 17603 | cat >>confdefs.h <<_ACEOF |
17604 | #define HAVE_ATAN 1 | |
17605 | _ACEOF | |
7d9455ce | 17606 | |
17607 | fi | |
8f838781 | 17608 | |
8f838781 | 17609 | |
8f838781 | 17610 | |
7d9455ce | 17611 | |
17612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
17613 | $as_echo_n "checking for atanl... " >&6; } | |
17614 | if test "${gcc_cv_math_func_atanl+set}" = set; then : | |
cd9a469c | 17615 | $as_echo_n "(cached) " >&6 |
14c3c235 | 17616 | else |
7d9455ce | 17617 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17618 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17619 | fi |
cd9a469c | 17620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14c3c235 | 17621 | /* end confdefs.h. */ |
17622 | ||
7d9455ce | 17623 | #ifdef HAVE_COMPLEX_H |
17624 | #include <complex.h> | |
14c3c235 | 17625 | #endif |
7d9455ce | 17626 | #ifdef HAVE_MATH_H |
17627 | #include <math.h> | |
17628 | #endif | |
17629 | ||
17630 | int (*ptr)() = (int (*)())atanl; | |
17631 | ||
14c3c235 | 17632 | int |
17633 | main () | |
17634 | { | |
14c3c235 | 17635 | return 0; |
17636 | } | |
7d9455ce | 17637 | |
14c3c235 | 17638 | _ACEOF |
cd9a469c | 17639 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17640 | gcc_cv_math_func_atanl=yes |
14c3c235 | 17641 | else |
7d9455ce | 17642 | gcc_cv_math_func_atanl=no |
14c3c235 | 17643 | fi |
cd9a469c | 17644 | rm -f core conftest.err conftest.$ac_objext \ |
17645 | conftest$ac_exeext conftest.$ac_ext | |
14c3c235 | 17646 | fi |
7d9455ce | 17647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
17648 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
17649 | if test $gcc_cv_math_func_atanl = yes; then | |
bd647a17 | 17650 | |
6affa8e1 | 17651 | cat >>confdefs.h <<_ACEOF |
17652 | #define HAVE_ATANL 1 | |
17653 | _ACEOF | |
14c3c235 | 17654 | |
7d9455ce | 17655 | fi |
14c3c235 | 17656 | |
14c3c235 | 17657 | |
7d9455ce | 17658 | |
17659 | ||
17660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
17661 | $as_echo_n "checking for atanhf... " >&6; } | |
17662 | if test "${gcc_cv_math_func_atanhf+set}" = set; then : | |
cd9a469c | 17663 | $as_echo_n "(cached) " >&6 |
8f838781 | 17664 | else |
7d9455ce | 17665 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17666 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17667 | fi |
cd9a469c | 17668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17669 | /* end confdefs.h. */ |
17670 | ||
7d9455ce | 17671 | #ifdef HAVE_COMPLEX_H |
17672 | #include <complex.h> | |
17673 | #endif | |
17674 | #ifdef HAVE_MATH_H | |
17675 | #include <math.h> | |
8f838781 | 17676 | #endif |
7d9455ce | 17677 | |
17678 | int (*ptr)() = (int (*)())atanhf; | |
17679 | ||
8f838781 | 17680 | int |
17681 | main () | |
17682 | { | |
8f838781 | 17683 | return 0; |
17684 | } | |
7d9455ce | 17685 | |
8f838781 | 17686 | _ACEOF |
cd9a469c | 17687 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17688 | gcc_cv_math_func_atanhf=yes |
8f838781 | 17689 | else |
7d9455ce | 17690 | gcc_cv_math_func_atanhf=no |
8f838781 | 17691 | fi |
cd9a469c | 17692 | rm -f core conftest.err conftest.$ac_objext \ |
17693 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17694 | fi |
7d9455ce | 17695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
17696 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
17697 | if test $gcc_cv_math_func_atanhf = yes; then | |
bd647a17 | 17698 | |
6affa8e1 | 17699 | cat >>confdefs.h <<_ACEOF |
17700 | #define HAVE_ATANHF 1 | |
17701 | _ACEOF | |
7d9455ce | 17702 | |
17703 | fi | |
8f838781 | 17704 | |
8f838781 | 17705 | |
8f838781 | 17706 | |
7d9455ce | 17707 | |
17708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
17709 | $as_echo_n "checking for atanh... " >&6; } | |
17710 | if test "${gcc_cv_math_func_atanh+set}" = set; then : | |
cd9a469c | 17711 | $as_echo_n "(cached) " >&6 |
8f838781 | 17712 | else |
7d9455ce | 17713 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17714 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17715 | fi |
cd9a469c | 17716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17717 | /* end confdefs.h. */ |
17718 | ||
7d9455ce | 17719 | #ifdef HAVE_COMPLEX_H |
17720 | #include <complex.h> | |
8f838781 | 17721 | #endif |
7d9455ce | 17722 | #ifdef HAVE_MATH_H |
17723 | #include <math.h> | |
17724 | #endif | |
17725 | ||
17726 | int (*ptr)() = (int (*)())atanh; | |
17727 | ||
8f838781 | 17728 | int |
17729 | main () | |
17730 | { | |
8f838781 | 17731 | return 0; |
17732 | } | |
7d9455ce | 17733 | |
8f838781 | 17734 | _ACEOF |
cd9a469c | 17735 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17736 | gcc_cv_math_func_atanh=yes |
8f838781 | 17737 | else |
7d9455ce | 17738 | gcc_cv_math_func_atanh=no |
8f838781 | 17739 | fi |
cd9a469c | 17740 | rm -f core conftest.err conftest.$ac_objext \ |
17741 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17742 | fi |
7d9455ce | 17743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
17744 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
17745 | if test $gcc_cv_math_func_atanh = yes; then | |
bd647a17 | 17746 | |
6affa8e1 | 17747 | cat >>confdefs.h <<_ACEOF |
17748 | #define HAVE_ATANH 1 | |
17749 | _ACEOF | |
7d9455ce | 17750 | |
17751 | fi | |
17752 | ||
8f838781 | 17753 | |
8f838781 | 17754 | |
8f838781 | 17755 | |
7d9455ce | 17756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
17757 | $as_echo_n "checking for atanhl... " >&6; } | |
17758 | if test "${gcc_cv_math_func_atanhl+set}" = set; then : | |
cd9a469c | 17759 | $as_echo_n "(cached) " >&6 |
a2d7a3ff | 17760 | else |
7d9455ce | 17761 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17762 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17763 | fi |
cd9a469c | 17764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2d7a3ff | 17765 | /* end confdefs.h. */ |
17766 | ||
7d9455ce | 17767 | #ifdef HAVE_COMPLEX_H |
17768 | #include <complex.h> | |
17769 | #endif | |
17770 | #ifdef HAVE_MATH_H | |
17771 | #include <math.h> | |
a2d7a3ff | 17772 | #endif |
7d9455ce | 17773 | |
17774 | int (*ptr)() = (int (*)())atanhl; | |
17775 | ||
a2d7a3ff | 17776 | int |
17777 | main () | |
17778 | { | |
a2d7a3ff | 17779 | return 0; |
17780 | } | |
7d9455ce | 17781 | |
a2d7a3ff | 17782 | _ACEOF |
cd9a469c | 17783 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17784 | gcc_cv_math_func_atanhl=yes |
a2d7a3ff | 17785 | else |
7d9455ce | 17786 | gcc_cv_math_func_atanhl=no |
a2d7a3ff | 17787 | fi |
cd9a469c | 17788 | rm -f core conftest.err conftest.$ac_objext \ |
17789 | conftest$ac_exeext conftest.$ac_ext | |
a2d7a3ff | 17790 | fi |
7d9455ce | 17791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
17792 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
17793 | if test $gcc_cv_math_func_atanhl = yes; then | |
bd647a17 | 17794 | |
6affa8e1 | 17795 | cat >>confdefs.h <<_ACEOF |
17796 | #define HAVE_ATANHL 1 | |
17797 | _ACEOF | |
7d9455ce | 17798 | |
17799 | fi | |
a2d7a3ff | 17800 | |
a2d7a3ff | 17801 | |
a2d7a3ff | 17802 | |
7d9455ce | 17803 | |
17804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
17805 | $as_echo_n "checking for cargf... " >&6; } | |
17806 | if test "${gcc_cv_math_func_cargf+set}" = set; then : | |
cd9a469c | 17807 | $as_echo_n "(cached) " >&6 |
a31bd8a4 | 17808 | else |
7d9455ce | 17809 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17810 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17811 | fi |
cd9a469c | 17812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a31bd8a4 | 17813 | /* end confdefs.h. */ |
17814 | ||
7d9455ce | 17815 | #ifdef HAVE_COMPLEX_H |
17816 | #include <complex.h> | |
a31bd8a4 | 17817 | #endif |
7d9455ce | 17818 | #ifdef HAVE_MATH_H |
17819 | #include <math.h> | |
17820 | #endif | |
17821 | ||
17822 | int (*ptr)() = (int (*)())cargf; | |
17823 | ||
8f838781 | 17824 | int |
17825 | main () | |
17826 | { | |
8f838781 | 17827 | return 0; |
17828 | } | |
7d9455ce | 17829 | |
8f838781 | 17830 | _ACEOF |
cd9a469c | 17831 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17832 | gcc_cv_math_func_cargf=yes |
8f838781 | 17833 | else |
7d9455ce | 17834 | gcc_cv_math_func_cargf=no |
8f838781 | 17835 | fi |
cd9a469c | 17836 | rm -f core conftest.err conftest.$ac_objext \ |
17837 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17838 | fi |
7d9455ce | 17839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
17840 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
17841 | if test $gcc_cv_math_func_cargf = yes; then | |
bd647a17 | 17842 | |
6affa8e1 | 17843 | cat >>confdefs.h <<_ACEOF |
17844 | #define HAVE_CARGF 1 | |
17845 | _ACEOF | |
8f838781 | 17846 | |
7d9455ce | 17847 | fi |
8f838781 | 17848 | |
8f838781 | 17849 | |
7d9455ce | 17850 | |
17851 | ||
17852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
17853 | $as_echo_n "checking for carg... " >&6; } | |
17854 | if test "${gcc_cv_math_func_carg+set}" = set; then : | |
cd9a469c | 17855 | $as_echo_n "(cached) " >&6 |
8f838781 | 17856 | else |
7d9455ce | 17857 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17858 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17859 | fi |
cd9a469c | 17860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17861 | /* end confdefs.h. */ |
17862 | ||
7d9455ce | 17863 | #ifdef HAVE_COMPLEX_H |
17864 | #include <complex.h> | |
17865 | #endif | |
17866 | #ifdef HAVE_MATH_H | |
17867 | #include <math.h> | |
8f838781 | 17868 | #endif |
7d9455ce | 17869 | |
17870 | int (*ptr)() = (int (*)())carg; | |
17871 | ||
a31bd8a4 | 17872 | int |
17873 | main () | |
17874 | { | |
a31bd8a4 | 17875 | return 0; |
17876 | } | |
7d9455ce | 17877 | |
a31bd8a4 | 17878 | _ACEOF |
cd9a469c | 17879 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17880 | gcc_cv_math_func_carg=yes |
a31bd8a4 | 17881 | else |
7d9455ce | 17882 | gcc_cv_math_func_carg=no |
a31bd8a4 | 17883 | fi |
cd9a469c | 17884 | rm -f core conftest.err conftest.$ac_objext \ |
17885 | conftest$ac_exeext conftest.$ac_ext | |
a31bd8a4 | 17886 | fi |
7d9455ce | 17887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
17888 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
17889 | if test $gcc_cv_math_func_carg = yes; then | |
bd647a17 | 17890 | |
6affa8e1 | 17891 | cat >>confdefs.h <<_ACEOF |
17892 | #define HAVE_CARG 1 | |
17893 | _ACEOF | |
7d9455ce | 17894 | |
17895 | fi | |
a31bd8a4 | 17896 | |
a31bd8a4 | 17897 | |
a31bd8a4 | 17898 | |
7d9455ce | 17899 | |
17900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
17901 | $as_echo_n "checking for cargl... " >&6; } | |
17902 | if test "${gcc_cv_math_func_cargl+set}" = set; then : | |
cd9a469c | 17903 | $as_echo_n "(cached) " >&6 |
a31bd8a4 | 17904 | else |
7d9455ce | 17905 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17906 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17907 | fi |
cd9a469c | 17908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a31bd8a4 | 17909 | /* end confdefs.h. */ |
17910 | ||
7d9455ce | 17911 | #ifdef HAVE_COMPLEX_H |
17912 | #include <complex.h> | |
a31bd8a4 | 17913 | #endif |
7d9455ce | 17914 | #ifdef HAVE_MATH_H |
17915 | #include <math.h> | |
17916 | #endif | |
17917 | ||
17918 | int (*ptr)() = (int (*)())cargl; | |
17919 | ||
a31bd8a4 | 17920 | int |
17921 | main () | |
17922 | { | |
a31bd8a4 | 17923 | return 0; |
17924 | } | |
7d9455ce | 17925 | |
a31bd8a4 | 17926 | _ACEOF |
cd9a469c | 17927 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17928 | gcc_cv_math_func_cargl=yes |
a31bd8a4 | 17929 | else |
7d9455ce | 17930 | gcc_cv_math_func_cargl=no |
a31bd8a4 | 17931 | fi |
cd9a469c | 17932 | rm -f core conftest.err conftest.$ac_objext \ |
17933 | conftest$ac_exeext conftest.$ac_ext | |
a31bd8a4 | 17934 | fi |
7d9455ce | 17935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
17936 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
17937 | if test $gcc_cv_math_func_cargl = yes; then | |
bd647a17 | 17938 | |
6affa8e1 | 17939 | cat >>confdefs.h <<_ACEOF |
17940 | #define HAVE_CARGL 1 | |
17941 | _ACEOF | |
7d9455ce | 17942 | |
17943 | fi | |
17944 | ||
a31bd8a4 | 17945 | |
a31bd8a4 | 17946 | |
a31bd8a4 | 17947 | |
7d9455ce | 17948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
17949 | $as_echo_n "checking for ceilf... " >&6; } | |
17950 | if test "${gcc_cv_math_func_ceilf+set}" = set; then : | |
cd9a469c | 17951 | $as_echo_n "(cached) " >&6 |
97844b15 | 17952 | else |
7d9455ce | 17953 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17954 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17955 | fi |
cd9a469c | 17956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
97844b15 | 17957 | /* end confdefs.h. */ |
17958 | ||
7d9455ce | 17959 | #ifdef HAVE_COMPLEX_H |
17960 | #include <complex.h> | |
17961 | #endif | |
17962 | #ifdef HAVE_MATH_H | |
17963 | #include <math.h> | |
97844b15 | 17964 | #endif |
7d9455ce | 17965 | |
17966 | int (*ptr)() = (int (*)())ceilf; | |
17967 | ||
97844b15 | 17968 | int |
17969 | main () | |
17970 | { | |
97844b15 | 17971 | return 0; |
17972 | } | |
7d9455ce | 17973 | |
97844b15 | 17974 | _ACEOF |
cd9a469c | 17975 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17976 | gcc_cv_math_func_ceilf=yes |
97844b15 | 17977 | else |
7d9455ce | 17978 | gcc_cv_math_func_ceilf=no |
97844b15 | 17979 | fi |
cd9a469c | 17980 | rm -f core conftest.err conftest.$ac_objext \ |
17981 | conftest$ac_exeext conftest.$ac_ext | |
97844b15 | 17982 | fi |
7d9455ce | 17983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
17984 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
17985 | if test $gcc_cv_math_func_ceilf = yes; then | |
bd647a17 | 17986 | |
6affa8e1 | 17987 | cat >>confdefs.h <<_ACEOF |
17988 | #define HAVE_CEILF 1 | |
17989 | _ACEOF | |
7d9455ce | 17990 | |
17991 | fi | |
97844b15 | 17992 | |
97844b15 | 17993 | |
97844b15 | 17994 | |
7d9455ce | 17995 | |
17996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
17997 | $as_echo_n "checking for ceil... " >&6; } | |
17998 | if test "${gcc_cv_math_func_ceil+set}" = set; then : | |
cd9a469c | 17999 | $as_echo_n "(cached) " >&6 |
4db2deda | 18000 | else |
7d9455ce | 18001 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18002 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18003 | fi |
cd9a469c | 18004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4db2deda | 18005 | /* end confdefs.h. */ |
18006 | ||
7d9455ce | 18007 | #ifdef HAVE_COMPLEX_H |
18008 | #include <complex.h> | |
4db2deda | 18009 | #endif |
7d9455ce | 18010 | #ifdef HAVE_MATH_H |
18011 | #include <math.h> | |
18012 | #endif | |
18013 | ||
18014 | int (*ptr)() = (int (*)())ceil; | |
18015 | ||
4db2deda | 18016 | int |
18017 | main () | |
18018 | { | |
4db2deda | 18019 | return 0; |
18020 | } | |
7d9455ce | 18021 | |
4db2deda | 18022 | _ACEOF |
cd9a469c | 18023 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18024 | gcc_cv_math_func_ceil=yes |
4db2deda | 18025 | else |
7d9455ce | 18026 | gcc_cv_math_func_ceil=no |
4db2deda | 18027 | fi |
cd9a469c | 18028 | rm -f core conftest.err conftest.$ac_objext \ |
18029 | conftest$ac_exeext conftest.$ac_ext | |
4db2deda | 18030 | fi |
7d9455ce | 18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18032 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18033 | if test $gcc_cv_math_func_ceil = yes; then | |
bd647a17 | 18034 | |
6affa8e1 | 18035 | cat >>confdefs.h <<_ACEOF |
18036 | #define HAVE_CEIL 1 | |
18037 | _ACEOF | |
4db2deda | 18038 | |
7d9455ce | 18039 | fi |
4db2deda | 18040 | |
4db2deda | 18041 | |
7d9455ce | 18042 | |
18043 | ||
18044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18045 | $as_echo_n "checking for ceill... " >&6; } | |
18046 | if test "${gcc_cv_math_func_ceill+set}" = set; then : | |
cd9a469c | 18047 | $as_echo_n "(cached) " >&6 |
4db2deda | 18048 | else |
7d9455ce | 18049 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18050 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18051 | fi |
cd9a469c | 18052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4db2deda | 18053 | /* end confdefs.h. */ |
18054 | ||
7d9455ce | 18055 | #ifdef HAVE_COMPLEX_H |
18056 | #include <complex.h> | |
18057 | #endif | |
18058 | #ifdef HAVE_MATH_H | |
18059 | #include <math.h> | |
4db2deda | 18060 | #endif |
7d9455ce | 18061 | |
18062 | int (*ptr)() = (int (*)())ceill; | |
18063 | ||
4db2deda | 18064 | int |
18065 | main () | |
18066 | { | |
4db2deda | 18067 | return 0; |
18068 | } | |
7d9455ce | 18069 | |
4db2deda | 18070 | _ACEOF |
cd9a469c | 18071 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18072 | gcc_cv_math_func_ceill=yes |
4db2deda | 18073 | else |
7d9455ce | 18074 | gcc_cv_math_func_ceill=no |
4db2deda | 18075 | fi |
cd9a469c | 18076 | rm -f core conftest.err conftest.$ac_objext \ |
18077 | conftest$ac_exeext conftest.$ac_ext | |
4db2deda | 18078 | fi |
7d9455ce | 18079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18080 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18081 | if test $gcc_cv_math_func_ceill = yes; then | |
bd647a17 | 18082 | |
6affa8e1 | 18083 | cat >>confdefs.h <<_ACEOF |
18084 | #define HAVE_CEILL 1 | |
18085 | _ACEOF | |
7d9455ce | 18086 | |
18087 | fi | |
4db2deda | 18088 | |
8f838781 | 18089 | |
8f838781 | 18090 | |
7d9455ce | 18091 | |
18092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18093 | $as_echo_n "checking for copysignf... " >&6; } | |
18094 | if test "${gcc_cv_math_func_copysignf+set}" = set; then : | |
cd9a469c | 18095 | $as_echo_n "(cached) " >&6 |
8f838781 | 18096 | else |
7d9455ce | 18097 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18098 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18099 | fi |
cd9a469c | 18100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18101 | /* end confdefs.h. */ |
18102 | ||
7d9455ce | 18103 | #ifdef HAVE_COMPLEX_H |
18104 | #include <complex.h> | |
8f838781 | 18105 | #endif |
7d9455ce | 18106 | #ifdef HAVE_MATH_H |
18107 | #include <math.h> | |
18108 | #endif | |
18109 | ||
18110 | int (*ptr)() = (int (*)())copysignf; | |
18111 | ||
8f838781 | 18112 | int |
18113 | main () | |
18114 | { | |
8f838781 | 18115 | return 0; |
18116 | } | |
7d9455ce | 18117 | |
8f838781 | 18118 | _ACEOF |
cd9a469c | 18119 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18120 | gcc_cv_math_func_copysignf=yes |
8f838781 | 18121 | else |
7d9455ce | 18122 | gcc_cv_math_func_copysignf=no |
8f838781 | 18123 | fi |
cd9a469c | 18124 | rm -f core conftest.err conftest.$ac_objext \ |
18125 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18126 | fi |
7d9455ce | 18127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18128 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18129 | if test $gcc_cv_math_func_copysignf = yes; then | |
bd647a17 | 18130 | |
6affa8e1 | 18131 | cat >>confdefs.h <<_ACEOF |
18132 | #define HAVE_COPYSIGNF 1 | |
18133 | _ACEOF | |
7d9455ce | 18134 | |
18135 | fi | |
18136 | ||
8f838781 | 18137 | |
8f838781 | 18138 | |
8f838781 | 18139 | |
7d9455ce | 18140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18141 | $as_echo_n "checking for copysign... " >&6; } | |
18142 | if test "${gcc_cv_math_func_copysign+set}" = set; then : | |
cd9a469c | 18143 | $as_echo_n "(cached) " >&6 |
8f838781 | 18144 | else |
7d9455ce | 18145 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18146 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18147 | fi |
cd9a469c | 18148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18149 | /* end confdefs.h. */ |
18150 | ||
7d9455ce | 18151 | #ifdef HAVE_COMPLEX_H |
18152 | #include <complex.h> | |
18153 | #endif | |
18154 | #ifdef HAVE_MATH_H | |
18155 | #include <math.h> | |
8f838781 | 18156 | #endif |
7d9455ce | 18157 | |
18158 | int (*ptr)() = (int (*)())copysign; | |
18159 | ||
8f838781 | 18160 | int |
18161 | main () | |
18162 | { | |
8f838781 | 18163 | return 0; |
18164 | } | |
7d9455ce | 18165 | |
8f838781 | 18166 | _ACEOF |
cd9a469c | 18167 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18168 | gcc_cv_math_func_copysign=yes |
8f838781 | 18169 | else |
7d9455ce | 18170 | gcc_cv_math_func_copysign=no |
8f838781 | 18171 | fi |
cd9a469c | 18172 | rm -f core conftest.err conftest.$ac_objext \ |
18173 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18174 | fi |
7d9455ce | 18175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18176 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18177 | if test $gcc_cv_math_func_copysign = yes; then | |
bd647a17 | 18178 | |
6affa8e1 | 18179 | cat >>confdefs.h <<_ACEOF |
18180 | #define HAVE_COPYSIGN 1 | |
18181 | _ACEOF | |
7d9455ce | 18182 | |
18183 | fi | |
8f838781 | 18184 | |
8f838781 | 18185 | |
8f838781 | 18186 | |
7d9455ce | 18187 | |
18188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18189 | $as_echo_n "checking for copysignl... " >&6; } | |
18190 | if test "${gcc_cv_math_func_copysignl+set}" = set; then : | |
cd9a469c | 18191 | $as_echo_n "(cached) " >&6 |
8f838781 | 18192 | else |
7d9455ce | 18193 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18194 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18195 | fi |
cd9a469c | 18196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18197 | /* end confdefs.h. */ |
18198 | ||
7d9455ce | 18199 | #ifdef HAVE_COMPLEX_H |
18200 | #include <complex.h> | |
8f838781 | 18201 | #endif |
7d9455ce | 18202 | #ifdef HAVE_MATH_H |
18203 | #include <math.h> | |
18204 | #endif | |
18205 | ||
18206 | int (*ptr)() = (int (*)())copysignl; | |
18207 | ||
8f838781 | 18208 | int |
18209 | main () | |
18210 | { | |
cd9a469c | 18211 | return 0; |
18212 | } | |
7d9455ce | 18213 | |
cd9a469c | 18214 | _ACEOF |
18215 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 18216 | gcc_cv_math_func_copysignl=yes |
8f838781 | 18217 | else |
7d9455ce | 18218 | gcc_cv_math_func_copysignl=no |
8f838781 | 18219 | fi |
cd9a469c | 18220 | rm -f core conftest.err conftest.$ac_objext \ |
18221 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18222 | fi |
7d9455ce | 18223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18224 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18225 | if test $gcc_cv_math_func_copysignl = yes; then | |
bd647a17 | 18226 | |
6affa8e1 | 18227 | cat >>confdefs.h <<_ACEOF |
18228 | #define HAVE_COPYSIGNL 1 | |
18229 | _ACEOF | |
8f838781 | 18230 | |
7d9455ce | 18231 | fi |
4db2deda | 18232 | |
4db2deda | 18233 | |
7d9455ce | 18234 | |
18235 | ||
18236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18237 | $as_echo_n "checking for cosf... " >&6; } | |
18238 | if test "${gcc_cv_math_func_cosf+set}" = set; then : | |
cd9a469c | 18239 | $as_echo_n "(cached) " >&6 |
50f0ca0a | 18240 | else |
7d9455ce | 18241 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18242 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18243 | fi |
cd9a469c | 18244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
50f0ca0a | 18245 | /* end confdefs.h. */ |
18246 | ||
7d9455ce | 18247 | #ifdef HAVE_COMPLEX_H |
18248 | #include <complex.h> | |
18249 | #endif | |
18250 | #ifdef HAVE_MATH_H | |
18251 | #include <math.h> | |
50f0ca0a | 18252 | #endif |
7d9455ce | 18253 | |
18254 | int (*ptr)() = (int (*)())cosf; | |
18255 | ||
50f0ca0a | 18256 | int |
18257 | main () | |
18258 | { | |
50f0ca0a | 18259 | return 0; |
18260 | } | |
7d9455ce | 18261 | |
50f0ca0a | 18262 | _ACEOF |
cd9a469c | 18263 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18264 | gcc_cv_math_func_cosf=yes |
50f0ca0a | 18265 | else |
7d9455ce | 18266 | gcc_cv_math_func_cosf=no |
50f0ca0a | 18267 | fi |
cd9a469c | 18268 | rm -f core conftest.err conftest.$ac_objext \ |
18269 | conftest$ac_exeext conftest.$ac_ext | |
50f0ca0a | 18270 | fi |
7d9455ce | 18271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18272 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18273 | if test $gcc_cv_math_func_cosf = yes; then | |
bd647a17 | 18274 | |
6affa8e1 | 18275 | cat >>confdefs.h <<_ACEOF |
18276 | #define HAVE_COSF 1 | |
18277 | _ACEOF | |
7d9455ce | 18278 | |
18279 | fi | |
50f0ca0a | 18280 | |
d213114b | 18281 | |
d213114b | 18282 | |
7d9455ce | 18283 | |
18284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18285 | $as_echo_n "checking for cos... " >&6; } | |
18286 | if test "${gcc_cv_math_func_cos+set}" = set; then : | |
cd9a469c | 18287 | $as_echo_n "(cached) " >&6 |
d213114b | 18288 | else |
7d9455ce | 18289 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18290 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18291 | fi |
cd9a469c | 18292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18293 | /* end confdefs.h. */ |
18294 | ||
7d9455ce | 18295 | #ifdef HAVE_COMPLEX_H |
18296 | #include <complex.h> | |
d213114b | 18297 | #endif |
7d9455ce | 18298 | #ifdef HAVE_MATH_H |
18299 | #include <math.h> | |
18300 | #endif | |
18301 | ||
18302 | int (*ptr)() = (int (*)())cos; | |
18303 | ||
d213114b | 18304 | int |
18305 | main () | |
18306 | { | |
d213114b | 18307 | return 0; |
18308 | } | |
7d9455ce | 18309 | |
d213114b | 18310 | _ACEOF |
cd9a469c | 18311 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18312 | gcc_cv_math_func_cos=yes |
d213114b | 18313 | else |
7d9455ce | 18314 | gcc_cv_math_func_cos=no |
d213114b | 18315 | fi |
cd9a469c | 18316 | rm -f core conftest.err conftest.$ac_objext \ |
18317 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18318 | fi |
7d9455ce | 18319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18320 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18321 | if test $gcc_cv_math_func_cos = yes; then | |
bd647a17 | 18322 | |
6affa8e1 | 18323 | cat >>confdefs.h <<_ACEOF |
18324 | #define HAVE_COS 1 | |
18325 | _ACEOF | |
7d9455ce | 18326 | |
18327 | fi | |
18328 | ||
d213114b | 18329 | |
d213114b | 18330 | |
d213114b | 18331 | |
7d9455ce | 18332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18333 | $as_echo_n "checking for cosl... " >&6; } | |
18334 | if test "${gcc_cv_math_func_cosl+set}" = set; then : | |
cd9a469c | 18335 | $as_echo_n "(cached) " >&6 |
d213114b | 18336 | else |
7d9455ce | 18337 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18338 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18339 | fi |
cd9a469c | 18340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18341 | /* end confdefs.h. */ |
18342 | ||
7d9455ce | 18343 | #ifdef HAVE_COMPLEX_H |
18344 | #include <complex.h> | |
18345 | #endif | |
18346 | #ifdef HAVE_MATH_H | |
18347 | #include <math.h> | |
d213114b | 18348 | #endif |
7d9455ce | 18349 | |
18350 | int (*ptr)() = (int (*)())cosl; | |
18351 | ||
d213114b | 18352 | int |
18353 | main () | |
18354 | { | |
d213114b | 18355 | return 0; |
18356 | } | |
7d9455ce | 18357 | |
d213114b | 18358 | _ACEOF |
cd9a469c | 18359 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18360 | gcc_cv_math_func_cosl=yes |
d213114b | 18361 | else |
7d9455ce | 18362 | gcc_cv_math_func_cosl=no |
d213114b | 18363 | fi |
cd9a469c | 18364 | rm -f core conftest.err conftest.$ac_objext \ |
18365 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18366 | fi |
7d9455ce | 18367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18368 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18369 | if test $gcc_cv_math_func_cosl = yes; then | |
bd647a17 | 18370 | |
6affa8e1 | 18371 | cat >>confdefs.h <<_ACEOF |
18372 | #define HAVE_COSL 1 | |
18373 | _ACEOF | |
7d9455ce | 18374 | |
18375 | fi | |
d213114b | 18376 | |
d213114b | 18377 | |
d213114b | 18378 | |
7d9455ce | 18379 | |
18380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18381 | $as_echo_n "checking for ccosf... " >&6; } | |
18382 | if test "${gcc_cv_math_func_ccosf+set}" = set; then : | |
cd9a469c | 18383 | $as_echo_n "(cached) " >&6 |
d213114b | 18384 | else |
7d9455ce | 18385 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18386 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18387 | fi |
cd9a469c | 18388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18389 | /* end confdefs.h. */ |
18390 | ||
7d9455ce | 18391 | #ifdef HAVE_COMPLEX_H |
18392 | #include <complex.h> | |
d213114b | 18393 | #endif |
7d9455ce | 18394 | #ifdef HAVE_MATH_H |
18395 | #include <math.h> | |
18396 | #endif | |
18397 | ||
18398 | int (*ptr)() = (int (*)())ccosf; | |
18399 | ||
d213114b | 18400 | int |
18401 | main () | |
18402 | { | |
d213114b | 18403 | return 0; |
18404 | } | |
7d9455ce | 18405 | |
d213114b | 18406 | _ACEOF |
cd9a469c | 18407 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18408 | gcc_cv_math_func_ccosf=yes |
d213114b | 18409 | else |
7d9455ce | 18410 | gcc_cv_math_func_ccosf=no |
d213114b | 18411 | fi |
cd9a469c | 18412 | rm -f core conftest.err conftest.$ac_objext \ |
18413 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18414 | fi |
7d9455ce | 18415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18416 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18417 | if test $gcc_cv_math_func_ccosf = yes; then | |
bd647a17 | 18418 | |
6affa8e1 | 18419 | cat >>confdefs.h <<_ACEOF |
18420 | #define HAVE_CCOSF 1 | |
18421 | _ACEOF | |
d213114b | 18422 | |
7d9455ce | 18423 | fi |
d213114b | 18424 | |
d213114b | 18425 | |
7d9455ce | 18426 | |
18427 | ||
18428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18429 | $as_echo_n "checking for ccos... " >&6; } | |
18430 | if test "${gcc_cv_math_func_ccos+set}" = set; then : | |
cd9a469c | 18431 | $as_echo_n "(cached) " >&6 |
d213114b | 18432 | else |
7d9455ce | 18433 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18434 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18435 | fi |
cd9a469c | 18436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18437 | /* end confdefs.h. */ |
18438 | ||
7d9455ce | 18439 | #ifdef HAVE_COMPLEX_H |
18440 | #include <complex.h> | |
18441 | #endif | |
18442 | #ifdef HAVE_MATH_H | |
18443 | #include <math.h> | |
d213114b | 18444 | #endif |
7d9455ce | 18445 | |
18446 | int (*ptr)() = (int (*)())ccos; | |
18447 | ||
d213114b | 18448 | int |
18449 | main () | |
18450 | { | |
d213114b | 18451 | return 0; |
18452 | } | |
7d9455ce | 18453 | |
d213114b | 18454 | _ACEOF |
cd9a469c | 18455 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18456 | gcc_cv_math_func_ccos=yes |
d213114b | 18457 | else |
7d9455ce | 18458 | gcc_cv_math_func_ccos=no |
d213114b | 18459 | fi |
cd9a469c | 18460 | rm -f core conftest.err conftest.$ac_objext \ |
18461 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18462 | fi |
7d9455ce | 18463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
18464 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
18465 | if test $gcc_cv_math_func_ccos = yes; then | |
bd647a17 | 18466 | |
6affa8e1 | 18467 | cat >>confdefs.h <<_ACEOF |
18468 | #define HAVE_CCOS 1 | |
18469 | _ACEOF | |
7d9455ce | 18470 | |
18471 | fi | |
d213114b | 18472 | |
d213114b | 18473 | |
d213114b | 18474 | |
7d9455ce | 18475 | |
18476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
18477 | $as_echo_n "checking for ccosl... " >&6; } | |
18478 | if test "${gcc_cv_math_func_ccosl+set}" = set; then : | |
cd9a469c | 18479 | $as_echo_n "(cached) " >&6 |
d213114b | 18480 | else |
7d9455ce | 18481 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18482 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18483 | fi |
cd9a469c | 18484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18485 | /* end confdefs.h. */ |
18486 | ||
7d9455ce | 18487 | #ifdef HAVE_COMPLEX_H |
18488 | #include <complex.h> | |
d213114b | 18489 | #endif |
7d9455ce | 18490 | #ifdef HAVE_MATH_H |
18491 | #include <math.h> | |
18492 | #endif | |
18493 | ||
18494 | int (*ptr)() = (int (*)())ccosl; | |
18495 | ||
d213114b | 18496 | int |
18497 | main () | |
18498 | { | |
d213114b | 18499 | return 0; |
18500 | } | |
7d9455ce | 18501 | |
d213114b | 18502 | _ACEOF |
cd9a469c | 18503 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18504 | gcc_cv_math_func_ccosl=yes |
d213114b | 18505 | else |
7d9455ce | 18506 | gcc_cv_math_func_ccosl=no |
d213114b | 18507 | fi |
cd9a469c | 18508 | rm -f core conftest.err conftest.$ac_objext \ |
18509 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18510 | fi |
7d9455ce | 18511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
18512 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
18513 | if test $gcc_cv_math_func_ccosl = yes; then | |
bd647a17 | 18514 | |
6affa8e1 | 18515 | cat >>confdefs.h <<_ACEOF |
18516 | #define HAVE_CCOSL 1 | |
18517 | _ACEOF | |
7d9455ce | 18518 | |
18519 | fi | |
18520 | ||
d213114b | 18521 | |
d213114b | 18522 | |
d213114b | 18523 | |
7d9455ce | 18524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
18525 | $as_echo_n "checking for coshf... " >&6; } | |
18526 | if test "${gcc_cv_math_func_coshf+set}" = set; then : | |
cd9a469c | 18527 | $as_echo_n "(cached) " >&6 |
d213114b | 18528 | else |
7d9455ce | 18529 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18530 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18531 | fi |
cd9a469c | 18532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18533 | /* end confdefs.h. */ |
18534 | ||
7d9455ce | 18535 | #ifdef HAVE_COMPLEX_H |
18536 | #include <complex.h> | |
18537 | #endif | |
18538 | #ifdef HAVE_MATH_H | |
18539 | #include <math.h> | |
d213114b | 18540 | #endif |
7d9455ce | 18541 | |
18542 | int (*ptr)() = (int (*)())coshf; | |
18543 | ||
d213114b | 18544 | int |
18545 | main () | |
18546 | { | |
d213114b | 18547 | return 0; |
18548 | } | |
7d9455ce | 18549 | |
d213114b | 18550 | _ACEOF |
cd9a469c | 18551 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18552 | gcc_cv_math_func_coshf=yes |
d213114b | 18553 | else |
7d9455ce | 18554 | gcc_cv_math_func_coshf=no |
d213114b | 18555 | fi |
cd9a469c | 18556 | rm -f core conftest.err conftest.$ac_objext \ |
18557 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18558 | fi |
7d9455ce | 18559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
18560 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
18561 | if test $gcc_cv_math_func_coshf = yes; then | |
bd647a17 | 18562 | |
6affa8e1 | 18563 | cat >>confdefs.h <<_ACEOF |
18564 | #define HAVE_COSHF 1 | |
18565 | _ACEOF | |
7d9455ce | 18566 | |
18567 | fi | |
d213114b | 18568 | |
d213114b | 18569 | |
d213114b | 18570 | |
7d9455ce | 18571 | |
18572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
18573 | $as_echo_n "checking for cosh... " >&6; } | |
18574 | if test "${gcc_cv_math_func_cosh+set}" = set; then : | |
cd9a469c | 18575 | $as_echo_n "(cached) " >&6 |
d213114b | 18576 | else |
7d9455ce | 18577 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18578 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18579 | fi |
cd9a469c | 18580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18581 | /* end confdefs.h. */ |
18582 | ||
7d9455ce | 18583 | #ifdef HAVE_COMPLEX_H |
18584 | #include <complex.h> | |
d213114b | 18585 | #endif |
7d9455ce | 18586 | #ifdef HAVE_MATH_H |
18587 | #include <math.h> | |
18588 | #endif | |
18589 | ||
18590 | int (*ptr)() = (int (*)())cosh; | |
18591 | ||
d213114b | 18592 | int |
18593 | main () | |
18594 | { | |
d213114b | 18595 | return 0; |
18596 | } | |
7d9455ce | 18597 | |
d213114b | 18598 | _ACEOF |
cd9a469c | 18599 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18600 | gcc_cv_math_func_cosh=yes |
d213114b | 18601 | else |
7d9455ce | 18602 | gcc_cv_math_func_cosh=no |
d213114b | 18603 | fi |
cd9a469c | 18604 | rm -f core conftest.err conftest.$ac_objext \ |
18605 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18606 | fi |
7d9455ce | 18607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
18608 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
18609 | if test $gcc_cv_math_func_cosh = yes; then | |
bd647a17 | 18610 | |
6affa8e1 | 18611 | cat >>confdefs.h <<_ACEOF |
18612 | #define HAVE_COSH 1 | |
18613 | _ACEOF | |
d213114b | 18614 | |
7d9455ce | 18615 | fi |
d213114b | 18616 | |
d213114b | 18617 | |
7d9455ce | 18618 | |
18619 | ||
18620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
18621 | $as_echo_n "checking for coshl... " >&6; } | |
18622 | if test "${gcc_cv_math_func_coshl+set}" = set; then : | |
cd9a469c | 18623 | $as_echo_n "(cached) " >&6 |
d213114b | 18624 | else |
7d9455ce | 18625 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18626 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18627 | fi |
cd9a469c | 18628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18629 | /* end confdefs.h. */ |
18630 | ||
7d9455ce | 18631 | #ifdef HAVE_COMPLEX_H |
18632 | #include <complex.h> | |
18633 | #endif | |
18634 | #ifdef HAVE_MATH_H | |
18635 | #include <math.h> | |
d213114b | 18636 | #endif |
7d9455ce | 18637 | |
18638 | int (*ptr)() = (int (*)())coshl; | |
18639 | ||
d213114b | 18640 | int |
18641 | main () | |
18642 | { | |
d213114b | 18643 | return 0; |
18644 | } | |
7d9455ce | 18645 | |
d213114b | 18646 | _ACEOF |
cd9a469c | 18647 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18648 | gcc_cv_math_func_coshl=yes |
d213114b | 18649 | else |
7d9455ce | 18650 | gcc_cv_math_func_coshl=no |
d213114b | 18651 | fi |
cd9a469c | 18652 | rm -f core conftest.err conftest.$ac_objext \ |
18653 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18654 | fi |
7d9455ce | 18655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
18656 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
18657 | if test $gcc_cv_math_func_coshl = yes; then | |
bd647a17 | 18658 | |
6affa8e1 | 18659 | cat >>confdefs.h <<_ACEOF |
18660 | #define HAVE_COSHL 1 | |
18661 | _ACEOF | |
7d9455ce | 18662 | |
18663 | fi | |
d213114b | 18664 | |
d213114b | 18665 | |
d213114b | 18666 | |
7d9455ce | 18667 | |
18668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
18669 | $as_echo_n "checking for ccoshf... " >&6; } | |
18670 | if test "${gcc_cv_math_func_ccoshf+set}" = set; then : | |
cd9a469c | 18671 | $as_echo_n "(cached) " >&6 |
d213114b | 18672 | else |
7d9455ce | 18673 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18674 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18675 | fi |
cd9a469c | 18676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18677 | /* end confdefs.h. */ |
18678 | ||
7d9455ce | 18679 | #ifdef HAVE_COMPLEX_H |
18680 | #include <complex.h> | |
d213114b | 18681 | #endif |
7d9455ce | 18682 | #ifdef HAVE_MATH_H |
18683 | #include <math.h> | |
18684 | #endif | |
18685 | ||
18686 | int (*ptr)() = (int (*)())ccoshf; | |
18687 | ||
d213114b | 18688 | int |
18689 | main () | |
18690 | { | |
d213114b | 18691 | return 0; |
18692 | } | |
7d9455ce | 18693 | |
d213114b | 18694 | _ACEOF |
cd9a469c | 18695 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18696 | gcc_cv_math_func_ccoshf=yes |
d213114b | 18697 | else |
7d9455ce | 18698 | gcc_cv_math_func_ccoshf=no |
d213114b | 18699 | fi |
cd9a469c | 18700 | rm -f core conftest.err conftest.$ac_objext \ |
18701 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18702 | fi |
7d9455ce | 18703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
18704 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
18705 | if test $gcc_cv_math_func_ccoshf = yes; then | |
bd647a17 | 18706 | |
6affa8e1 | 18707 | cat >>confdefs.h <<_ACEOF |
18708 | #define HAVE_CCOSHF 1 | |
18709 | _ACEOF | |
7d9455ce | 18710 | |
18711 | fi | |
18712 | ||
d213114b | 18713 | |
d213114b | 18714 | |
d213114b | 18715 | |
7d9455ce | 18716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
18717 | $as_echo_n "checking for ccosh... " >&6; } | |
18718 | if test "${gcc_cv_math_func_ccosh+set}" = set; then : | |
cd9a469c | 18719 | $as_echo_n "(cached) " >&6 |
d213114b | 18720 | else |
7d9455ce | 18721 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18722 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18723 | fi |
cd9a469c | 18724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18725 | /* end confdefs.h. */ |
18726 | ||
7d9455ce | 18727 | #ifdef HAVE_COMPLEX_H |
18728 | #include <complex.h> | |
18729 | #endif | |
18730 | #ifdef HAVE_MATH_H | |
18731 | #include <math.h> | |
d213114b | 18732 | #endif |
7d9455ce | 18733 | |
18734 | int (*ptr)() = (int (*)())ccosh; | |
18735 | ||
d213114b | 18736 | int |
18737 | main () | |
18738 | { | |
d213114b | 18739 | return 0; |
18740 | } | |
7d9455ce | 18741 | |
d213114b | 18742 | _ACEOF |
cd9a469c | 18743 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18744 | gcc_cv_math_func_ccosh=yes |
d213114b | 18745 | else |
7d9455ce | 18746 | gcc_cv_math_func_ccosh=no |
d213114b | 18747 | fi |
cd9a469c | 18748 | rm -f core conftest.err conftest.$ac_objext \ |
18749 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18750 | fi |
7d9455ce | 18751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
18752 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
18753 | if test $gcc_cv_math_func_ccosh = yes; then | |
bd647a17 | 18754 | |
6affa8e1 | 18755 | cat >>confdefs.h <<_ACEOF |
18756 | #define HAVE_CCOSH 1 | |
18757 | _ACEOF | |
7d9455ce | 18758 | |
18759 | fi | |
d213114b | 18760 | |
d213114b | 18761 | |
d213114b | 18762 | |
7d9455ce | 18763 | |
18764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
18765 | $as_echo_n "checking for ccoshl... " >&6; } | |
18766 | if test "${gcc_cv_math_func_ccoshl+set}" = set; then : | |
cd9a469c | 18767 | $as_echo_n "(cached) " >&6 |
d213114b | 18768 | else |
7d9455ce | 18769 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18770 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18771 | fi |
cd9a469c | 18772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18773 | /* end confdefs.h. */ |
18774 | ||
7d9455ce | 18775 | #ifdef HAVE_COMPLEX_H |
18776 | #include <complex.h> | |
d213114b | 18777 | #endif |
7d9455ce | 18778 | #ifdef HAVE_MATH_H |
18779 | #include <math.h> | |
18780 | #endif | |
18781 | ||
18782 | int (*ptr)() = (int (*)())ccoshl; | |
18783 | ||
d213114b | 18784 | int |
18785 | main () | |
18786 | { | |
d213114b | 18787 | return 0; |
18788 | } | |
7d9455ce | 18789 | |
d213114b | 18790 | _ACEOF |
cd9a469c | 18791 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18792 | gcc_cv_math_func_ccoshl=yes |
d213114b | 18793 | else |
7d9455ce | 18794 | gcc_cv_math_func_ccoshl=no |
d213114b | 18795 | fi |
cd9a469c | 18796 | rm -f core conftest.err conftest.$ac_objext \ |
18797 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18798 | fi |
7d9455ce | 18799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
18800 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
18801 | if test $gcc_cv_math_func_ccoshl = yes; then | |
bd647a17 | 18802 | |
6affa8e1 | 18803 | cat >>confdefs.h <<_ACEOF |
18804 | #define HAVE_CCOSHL 1 | |
18805 | _ACEOF | |
d213114b | 18806 | |
7d9455ce | 18807 | fi |
d213114b | 18808 | |
d213114b | 18809 | |
7d9455ce | 18810 | |
18811 | ||
18812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
18813 | $as_echo_n "checking for expf... " >&6; } | |
18814 | if test "${gcc_cv_math_func_expf+set}" = set; then : | |
cd9a469c | 18815 | $as_echo_n "(cached) " >&6 |
d213114b | 18816 | else |
7d9455ce | 18817 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18818 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18819 | fi |
cd9a469c | 18820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18821 | /* end confdefs.h. */ |
18822 | ||
7d9455ce | 18823 | #ifdef HAVE_COMPLEX_H |
18824 | #include <complex.h> | |
18825 | #endif | |
18826 | #ifdef HAVE_MATH_H | |
18827 | #include <math.h> | |
d213114b | 18828 | #endif |
7d9455ce | 18829 | |
18830 | int (*ptr)() = (int (*)())expf; | |
18831 | ||
d213114b | 18832 | int |
18833 | main () | |
18834 | { | |
d213114b | 18835 | return 0; |
18836 | } | |
7d9455ce | 18837 | |
d213114b | 18838 | _ACEOF |
cd9a469c | 18839 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18840 | gcc_cv_math_func_expf=yes |
d213114b | 18841 | else |
7d9455ce | 18842 | gcc_cv_math_func_expf=no |
d213114b | 18843 | fi |
cd9a469c | 18844 | rm -f core conftest.err conftest.$ac_objext \ |
18845 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18846 | fi |
7d9455ce | 18847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
18848 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
18849 | if test $gcc_cv_math_func_expf = yes; then | |
bd647a17 | 18850 | |
6affa8e1 | 18851 | cat >>confdefs.h <<_ACEOF |
18852 | #define HAVE_EXPF 1 | |
18853 | _ACEOF | |
7d9455ce | 18854 | |
18855 | fi | |
d213114b | 18856 | |
d213114b | 18857 | |
d213114b | 18858 | |
7d9455ce | 18859 | |
18860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
18861 | $as_echo_n "checking for exp... " >&6; } | |
18862 | if test "${gcc_cv_math_func_exp+set}" = set; then : | |
cd9a469c | 18863 | $as_echo_n "(cached) " >&6 |
d213114b | 18864 | else |
7d9455ce | 18865 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18866 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18867 | fi |
cd9a469c | 18868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18869 | /* end confdefs.h. */ |
18870 | ||
7d9455ce | 18871 | #ifdef HAVE_COMPLEX_H |
18872 | #include <complex.h> | |
d213114b | 18873 | #endif |
7d9455ce | 18874 | #ifdef HAVE_MATH_H |
18875 | #include <math.h> | |
18876 | #endif | |
18877 | ||
18878 | int (*ptr)() = (int (*)())exp; | |
18879 | ||
d213114b | 18880 | int |
18881 | main () | |
18882 | { | |
d213114b | 18883 | return 0; |
18884 | } | |
7d9455ce | 18885 | |
d213114b | 18886 | _ACEOF |
cd9a469c | 18887 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18888 | gcc_cv_math_func_exp=yes |
d213114b | 18889 | else |
7d9455ce | 18890 | gcc_cv_math_func_exp=no |
d213114b | 18891 | fi |
cd9a469c | 18892 | rm -f core conftest.err conftest.$ac_objext \ |
18893 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18894 | fi |
7d9455ce | 18895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
18896 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
18897 | if test $gcc_cv_math_func_exp = yes; then | |
bd647a17 | 18898 | |
6affa8e1 | 18899 | cat >>confdefs.h <<_ACEOF |
18900 | #define HAVE_EXP 1 | |
18901 | _ACEOF | |
7d9455ce | 18902 | |
18903 | fi | |
18904 | ||
d213114b | 18905 | |
d213114b | 18906 | |
d213114b | 18907 | |
7d9455ce | 18908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
18909 | $as_echo_n "checking for expl... " >&6; } | |
18910 | if test "${gcc_cv_math_func_expl+set}" = set; then : | |
cd9a469c | 18911 | $as_echo_n "(cached) " >&6 |
d213114b | 18912 | else |
7d9455ce | 18913 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18914 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18915 | fi |
cd9a469c | 18916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18917 | /* end confdefs.h. */ |
18918 | ||
7d9455ce | 18919 | #ifdef HAVE_COMPLEX_H |
18920 | #include <complex.h> | |
18921 | #endif | |
18922 | #ifdef HAVE_MATH_H | |
18923 | #include <math.h> | |
d213114b | 18924 | #endif |
7d9455ce | 18925 | |
18926 | int (*ptr)() = (int (*)())expl; | |
18927 | ||
d213114b | 18928 | int |
18929 | main () | |
18930 | { | |
d213114b | 18931 | return 0; |
18932 | } | |
7d9455ce | 18933 | |
d213114b | 18934 | _ACEOF |
cd9a469c | 18935 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18936 | gcc_cv_math_func_expl=yes |
d213114b | 18937 | else |
7d9455ce | 18938 | gcc_cv_math_func_expl=no |
d213114b | 18939 | fi |
cd9a469c | 18940 | rm -f core conftest.err conftest.$ac_objext \ |
18941 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18942 | fi |
7d9455ce | 18943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
18944 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
18945 | if test $gcc_cv_math_func_expl = yes; then | |
bd647a17 | 18946 | |
6affa8e1 | 18947 | cat >>confdefs.h <<_ACEOF |
18948 | #define HAVE_EXPL 1 | |
18949 | _ACEOF | |
7d9455ce | 18950 | |
18951 | fi | |
d213114b | 18952 | |
d213114b | 18953 | |
d213114b | 18954 | |
7d9455ce | 18955 | |
18956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
18957 | $as_echo_n "checking for cexpf... " >&6; } | |
18958 | if test "${gcc_cv_math_func_cexpf+set}" = set; then : | |
cd9a469c | 18959 | $as_echo_n "(cached) " >&6 |
d213114b | 18960 | else |
7d9455ce | 18961 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18962 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18963 | fi |
cd9a469c | 18964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18965 | /* end confdefs.h. */ |
18966 | ||
7d9455ce | 18967 | #ifdef HAVE_COMPLEX_H |
18968 | #include <complex.h> | |
d213114b | 18969 | #endif |
7d9455ce | 18970 | #ifdef HAVE_MATH_H |
18971 | #include <math.h> | |
18972 | #endif | |
18973 | ||
18974 | int (*ptr)() = (int (*)())cexpf; | |
18975 | ||
d213114b | 18976 | int |
18977 | main () | |
18978 | { | |
d213114b | 18979 | return 0; |
18980 | } | |
7d9455ce | 18981 | |
d213114b | 18982 | _ACEOF |
cd9a469c | 18983 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18984 | gcc_cv_math_func_cexpf=yes |
d213114b | 18985 | else |
7d9455ce | 18986 | gcc_cv_math_func_cexpf=no |
d213114b | 18987 | fi |
cd9a469c | 18988 | rm -f core conftest.err conftest.$ac_objext \ |
18989 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18990 | fi |
7d9455ce | 18991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
18992 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
18993 | if test $gcc_cv_math_func_cexpf = yes; then | |
bd647a17 | 18994 | |
6affa8e1 | 18995 | cat >>confdefs.h <<_ACEOF |
18996 | #define HAVE_CEXPF 1 | |
18997 | _ACEOF | |
d213114b | 18998 | |
7d9455ce | 18999 | fi |
d213114b | 19000 | |
d213114b | 19001 | |
7d9455ce | 19002 | |
19003 | ||
19004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19005 | $as_echo_n "checking for cexp... " >&6; } | |
19006 | if test "${gcc_cv_math_func_cexp+set}" = set; then : | |
cd9a469c | 19007 | $as_echo_n "(cached) " >&6 |
d213114b | 19008 | else |
7d9455ce | 19009 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19010 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19011 | fi |
cd9a469c | 19012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19013 | /* end confdefs.h. */ |
19014 | ||
7d9455ce | 19015 | #ifdef HAVE_COMPLEX_H |
19016 | #include <complex.h> | |
19017 | #endif | |
19018 | #ifdef HAVE_MATH_H | |
19019 | #include <math.h> | |
d213114b | 19020 | #endif |
7d9455ce | 19021 | |
19022 | int (*ptr)() = (int (*)())cexp; | |
19023 | ||
d213114b | 19024 | int |
19025 | main () | |
19026 | { | |
d213114b | 19027 | return 0; |
19028 | } | |
7d9455ce | 19029 | |
d213114b | 19030 | _ACEOF |
cd9a469c | 19031 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19032 | gcc_cv_math_func_cexp=yes |
d213114b | 19033 | else |
7d9455ce | 19034 | gcc_cv_math_func_cexp=no |
d213114b | 19035 | fi |
cd9a469c | 19036 | rm -f core conftest.err conftest.$ac_objext \ |
19037 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19038 | fi |
7d9455ce | 19039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19040 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19041 | if test $gcc_cv_math_func_cexp = yes; then | |
bd647a17 | 19042 | |
6affa8e1 | 19043 | cat >>confdefs.h <<_ACEOF |
19044 | #define HAVE_CEXP 1 | |
19045 | _ACEOF | |
7d9455ce | 19046 | |
19047 | fi | |
d213114b | 19048 | |
d213114b | 19049 | |
d213114b | 19050 | |
7d9455ce | 19051 | |
19052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19053 | $as_echo_n "checking for cexpl... " >&6; } | |
19054 | if test "${gcc_cv_math_func_cexpl+set}" = set; then : | |
cd9a469c | 19055 | $as_echo_n "(cached) " >&6 |
d213114b | 19056 | else |
7d9455ce | 19057 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19058 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19059 | fi |
cd9a469c | 19060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19061 | /* end confdefs.h. */ |
19062 | ||
7d9455ce | 19063 | #ifdef HAVE_COMPLEX_H |
19064 | #include <complex.h> | |
d213114b | 19065 | #endif |
7d9455ce | 19066 | #ifdef HAVE_MATH_H |
19067 | #include <math.h> | |
19068 | #endif | |
19069 | ||
19070 | int (*ptr)() = (int (*)())cexpl; | |
19071 | ||
d213114b | 19072 | int |
19073 | main () | |
19074 | { | |
d213114b | 19075 | return 0; |
19076 | } | |
7d9455ce | 19077 | |
d213114b | 19078 | _ACEOF |
cd9a469c | 19079 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19080 | gcc_cv_math_func_cexpl=yes |
d213114b | 19081 | else |
7d9455ce | 19082 | gcc_cv_math_func_cexpl=no |
d213114b | 19083 | fi |
cd9a469c | 19084 | rm -f core conftest.err conftest.$ac_objext \ |
19085 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19086 | fi |
7d9455ce | 19087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19088 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19089 | if test $gcc_cv_math_func_cexpl = yes; then | |
bd647a17 | 19090 | |
6affa8e1 | 19091 | cat >>confdefs.h <<_ACEOF |
19092 | #define HAVE_CEXPL 1 | |
19093 | _ACEOF | |
7d9455ce | 19094 | |
19095 | fi | |
19096 | ||
d213114b | 19097 | |
d213114b | 19098 | |
d213114b | 19099 | |
7d9455ce | 19100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19101 | $as_echo_n "checking for fabsf... " >&6; } | |
19102 | if test "${gcc_cv_math_func_fabsf+set}" = set; then : | |
cd9a469c | 19103 | $as_echo_n "(cached) " >&6 |
d213114b | 19104 | else |
7d9455ce | 19105 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19106 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19107 | fi |
cd9a469c | 19108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19109 | /* end confdefs.h. */ |
19110 | ||
7d9455ce | 19111 | #ifdef HAVE_COMPLEX_H |
19112 | #include <complex.h> | |
19113 | #endif | |
19114 | #ifdef HAVE_MATH_H | |
19115 | #include <math.h> | |
d213114b | 19116 | #endif |
7d9455ce | 19117 | |
19118 | int (*ptr)() = (int (*)())fabsf; | |
19119 | ||
d213114b | 19120 | int |
19121 | main () | |
19122 | { | |
d213114b | 19123 | return 0; |
19124 | } | |
7d9455ce | 19125 | |
d213114b | 19126 | _ACEOF |
cd9a469c | 19127 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19128 | gcc_cv_math_func_fabsf=yes |
d213114b | 19129 | else |
7d9455ce | 19130 | gcc_cv_math_func_fabsf=no |
d213114b | 19131 | fi |
cd9a469c | 19132 | rm -f core conftest.err conftest.$ac_objext \ |
19133 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19134 | fi |
7d9455ce | 19135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19136 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19137 | if test $gcc_cv_math_func_fabsf = yes; then | |
bd647a17 | 19138 | |
6affa8e1 | 19139 | cat >>confdefs.h <<_ACEOF |
19140 | #define HAVE_FABSF 1 | |
19141 | _ACEOF | |
7d9455ce | 19142 | |
19143 | fi | |
d213114b | 19144 | |
d213114b | 19145 | |
d213114b | 19146 | |
7d9455ce | 19147 | |
19148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19149 | $as_echo_n "checking for fabs... " >&6; } | |
19150 | if test "${gcc_cv_math_func_fabs+set}" = set; then : | |
cd9a469c | 19151 | $as_echo_n "(cached) " >&6 |
d213114b | 19152 | else |
7d9455ce | 19153 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19154 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19155 | fi |
cd9a469c | 19156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19157 | /* end confdefs.h. */ |
19158 | ||
7d9455ce | 19159 | #ifdef HAVE_COMPLEX_H |
19160 | #include <complex.h> | |
d213114b | 19161 | #endif |
7d9455ce | 19162 | #ifdef HAVE_MATH_H |
19163 | #include <math.h> | |
19164 | #endif | |
19165 | ||
19166 | int (*ptr)() = (int (*)())fabs; | |
19167 | ||
d213114b | 19168 | int |
19169 | main () | |
19170 | { | |
d213114b | 19171 | return 0; |
19172 | } | |
7d9455ce | 19173 | |
d213114b | 19174 | _ACEOF |
cd9a469c | 19175 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19176 | gcc_cv_math_func_fabs=yes |
d213114b | 19177 | else |
7d9455ce | 19178 | gcc_cv_math_func_fabs=no |
d213114b | 19179 | fi |
cd9a469c | 19180 | rm -f core conftest.err conftest.$ac_objext \ |
19181 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19182 | fi |
7d9455ce | 19183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19184 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19185 | if test $gcc_cv_math_func_fabs = yes; then | |
bd647a17 | 19186 | |
6affa8e1 | 19187 | cat >>confdefs.h <<_ACEOF |
19188 | #define HAVE_FABS 1 | |
19189 | _ACEOF | |
d213114b | 19190 | |
7d9455ce | 19191 | fi |
d213114b | 19192 | |
d213114b | 19193 | |
7d9455ce | 19194 | |
19195 | ||
19196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19197 | $as_echo_n "checking for fabsl... " >&6; } | |
19198 | if test "${gcc_cv_math_func_fabsl+set}" = set; then : | |
cd9a469c | 19199 | $as_echo_n "(cached) " >&6 |
d213114b | 19200 | else |
7d9455ce | 19201 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19202 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19203 | fi |
cd9a469c | 19204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19205 | /* end confdefs.h. */ |
19206 | ||
7d9455ce | 19207 | #ifdef HAVE_COMPLEX_H |
19208 | #include <complex.h> | |
19209 | #endif | |
19210 | #ifdef HAVE_MATH_H | |
19211 | #include <math.h> | |
d213114b | 19212 | #endif |
7d9455ce | 19213 | |
19214 | int (*ptr)() = (int (*)())fabsl; | |
19215 | ||
d213114b | 19216 | int |
19217 | main () | |
19218 | { | |
d213114b | 19219 | return 0; |
19220 | } | |
7d9455ce | 19221 | |
d213114b | 19222 | _ACEOF |
cd9a469c | 19223 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19224 | gcc_cv_math_func_fabsl=yes |
d213114b | 19225 | else |
7d9455ce | 19226 | gcc_cv_math_func_fabsl=no |
d213114b | 19227 | fi |
cd9a469c | 19228 | rm -f core conftest.err conftest.$ac_objext \ |
19229 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19230 | fi |
7d9455ce | 19231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19232 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19233 | if test $gcc_cv_math_func_fabsl = yes; then | |
bd647a17 | 19234 | |
6affa8e1 | 19235 | cat >>confdefs.h <<_ACEOF |
19236 | #define HAVE_FABSL 1 | |
19237 | _ACEOF | |
7d9455ce | 19238 | |
19239 | fi | |
d213114b | 19240 | |
d213114b | 19241 | |
d213114b | 19242 | |
7d9455ce | 19243 | |
19244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19245 | $as_echo_n "checking for cabsf... " >&6; } | |
19246 | if test "${gcc_cv_math_func_cabsf+set}" = set; then : | |
cd9a469c | 19247 | $as_echo_n "(cached) " >&6 |
d213114b | 19248 | else |
7d9455ce | 19249 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19250 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19251 | fi |
cd9a469c | 19252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19253 | /* end confdefs.h. */ |
19254 | ||
7d9455ce | 19255 | #ifdef HAVE_COMPLEX_H |
19256 | #include <complex.h> | |
d213114b | 19257 | #endif |
7d9455ce | 19258 | #ifdef HAVE_MATH_H |
19259 | #include <math.h> | |
19260 | #endif | |
19261 | ||
19262 | int (*ptr)() = (int (*)())cabsf; | |
19263 | ||
d213114b | 19264 | int |
19265 | main () | |
19266 | { | |
d213114b | 19267 | return 0; |
19268 | } | |
7d9455ce | 19269 | |
d213114b | 19270 | _ACEOF |
cd9a469c | 19271 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19272 | gcc_cv_math_func_cabsf=yes |
d213114b | 19273 | else |
7d9455ce | 19274 | gcc_cv_math_func_cabsf=no |
d213114b | 19275 | fi |
cd9a469c | 19276 | rm -f core conftest.err conftest.$ac_objext \ |
19277 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19278 | fi |
7d9455ce | 19279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19280 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19281 | if test $gcc_cv_math_func_cabsf = yes; then | |
bd647a17 | 19282 | |
6affa8e1 | 19283 | cat >>confdefs.h <<_ACEOF |
19284 | #define HAVE_CABSF 1 | |
19285 | _ACEOF | |
7d9455ce | 19286 | |
19287 | fi | |
19288 | ||
d213114b | 19289 | |
d213114b | 19290 | |
d213114b | 19291 | |
7d9455ce | 19292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19293 | $as_echo_n "checking for cabs... " >&6; } | |
19294 | if test "${gcc_cv_math_func_cabs+set}" = set; then : | |
cd9a469c | 19295 | $as_echo_n "(cached) " >&6 |
d213114b | 19296 | else |
7d9455ce | 19297 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19298 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19299 | fi |
cd9a469c | 19300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19301 | /* end confdefs.h. */ |
19302 | ||
7d9455ce | 19303 | #ifdef HAVE_COMPLEX_H |
19304 | #include <complex.h> | |
19305 | #endif | |
19306 | #ifdef HAVE_MATH_H | |
19307 | #include <math.h> | |
d213114b | 19308 | #endif |
7d9455ce | 19309 | |
19310 | int (*ptr)() = (int (*)())cabs; | |
19311 | ||
d213114b | 19312 | int |
19313 | main () | |
19314 | { | |
d213114b | 19315 | return 0; |
19316 | } | |
7d9455ce | 19317 | |
d213114b | 19318 | _ACEOF |
cd9a469c | 19319 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19320 | gcc_cv_math_func_cabs=yes |
d213114b | 19321 | else |
7d9455ce | 19322 | gcc_cv_math_func_cabs=no |
d213114b | 19323 | fi |
cd9a469c | 19324 | rm -f core conftest.err conftest.$ac_objext \ |
19325 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19326 | fi |
7d9455ce | 19327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19328 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19329 | if test $gcc_cv_math_func_cabs = yes; then | |
bd647a17 | 19330 | |
6affa8e1 | 19331 | cat >>confdefs.h <<_ACEOF |
19332 | #define HAVE_CABS 1 | |
19333 | _ACEOF | |
7d9455ce | 19334 | |
19335 | fi | |
d213114b | 19336 | |
d213114b | 19337 | |
d213114b | 19338 | |
7d9455ce | 19339 | |
19340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19341 | $as_echo_n "checking for cabsl... " >&6; } | |
19342 | if test "${gcc_cv_math_func_cabsl+set}" = set; then : | |
cd9a469c | 19343 | $as_echo_n "(cached) " >&6 |
d213114b | 19344 | else |
7d9455ce | 19345 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19346 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19347 | fi |
cd9a469c | 19348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19349 | /* end confdefs.h. */ |
19350 | ||
7d9455ce | 19351 | #ifdef HAVE_COMPLEX_H |
19352 | #include <complex.h> | |
d213114b | 19353 | #endif |
7d9455ce | 19354 | #ifdef HAVE_MATH_H |
19355 | #include <math.h> | |
19356 | #endif | |
19357 | ||
19358 | int (*ptr)() = (int (*)())cabsl; | |
19359 | ||
d213114b | 19360 | int |
19361 | main () | |
19362 | { | |
d213114b | 19363 | return 0; |
19364 | } | |
7d9455ce | 19365 | |
d213114b | 19366 | _ACEOF |
cd9a469c | 19367 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19368 | gcc_cv_math_func_cabsl=yes |
d213114b | 19369 | else |
7d9455ce | 19370 | gcc_cv_math_func_cabsl=no |
d213114b | 19371 | fi |
cd9a469c | 19372 | rm -f core conftest.err conftest.$ac_objext \ |
19373 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19374 | fi |
7d9455ce | 19375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19376 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19377 | if test $gcc_cv_math_func_cabsl = yes; then | |
bd647a17 | 19378 | |
6affa8e1 | 19379 | cat >>confdefs.h <<_ACEOF |
19380 | #define HAVE_CABSL 1 | |
19381 | _ACEOF | |
d213114b | 19382 | |
7d9455ce | 19383 | fi |
d213114b | 19384 | |
d213114b | 19385 | |
7d9455ce | 19386 | |
19387 | ||
19388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19389 | $as_echo_n "checking for floorf... " >&6; } | |
19390 | if test "${gcc_cv_math_func_floorf+set}" = set; then : | |
cd9a469c | 19391 | $as_echo_n "(cached) " >&6 |
d213114b | 19392 | else |
7d9455ce | 19393 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19394 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19395 | fi |
cd9a469c | 19396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19397 | /* end confdefs.h. */ |
19398 | ||
7d9455ce | 19399 | #ifdef HAVE_COMPLEX_H |
19400 | #include <complex.h> | |
19401 | #endif | |
19402 | #ifdef HAVE_MATH_H | |
19403 | #include <math.h> | |
d213114b | 19404 | #endif |
7d9455ce | 19405 | |
19406 | int (*ptr)() = (int (*)())floorf; | |
19407 | ||
d213114b | 19408 | int |
19409 | main () | |
19410 | { | |
cd9a469c | 19411 | return 0; |
19412 | } | |
7d9455ce | 19413 | |
cd9a469c | 19414 | _ACEOF |
19415 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 19416 | gcc_cv_math_func_floorf=yes |
d213114b | 19417 | else |
7d9455ce | 19418 | gcc_cv_math_func_floorf=no |
d213114b | 19419 | fi |
cd9a469c | 19420 | rm -f core conftest.err conftest.$ac_objext \ |
19421 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19422 | fi |
7d9455ce | 19423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19424 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19425 | if test $gcc_cv_math_func_floorf = yes; then | |
bd647a17 | 19426 | |
6affa8e1 | 19427 | cat >>confdefs.h <<_ACEOF |
19428 | #define HAVE_FLOORF 1 | |
19429 | _ACEOF | |
7d9455ce | 19430 | |
19431 | fi | |
d213114b | 19432 | |
d213114b | 19433 | |
d213114b | 19434 | |
7d9455ce | 19435 | |
19436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19437 | $as_echo_n "checking for floor... " >&6; } | |
19438 | if test "${gcc_cv_math_func_floor+set}" = set; then : | |
cd9a469c | 19439 | $as_echo_n "(cached) " >&6 |
d213114b | 19440 | else |
7d9455ce | 19441 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19442 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19443 | fi |
cd9a469c | 19444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19445 | /* end confdefs.h. */ |
19446 | ||
7d9455ce | 19447 | #ifdef HAVE_COMPLEX_H |
19448 | #include <complex.h> | |
d213114b | 19449 | #endif |
7d9455ce | 19450 | #ifdef HAVE_MATH_H |
19451 | #include <math.h> | |
19452 | #endif | |
19453 | ||
19454 | int (*ptr)() = (int (*)())floor; | |
19455 | ||
d213114b | 19456 | int |
19457 | main () | |
19458 | { | |
d213114b | 19459 | return 0; |
19460 | } | |
7d9455ce | 19461 | |
d213114b | 19462 | _ACEOF |
cd9a469c | 19463 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19464 | gcc_cv_math_func_floor=yes |
d213114b | 19465 | else |
7d9455ce | 19466 | gcc_cv_math_func_floor=no |
d213114b | 19467 | fi |
cd9a469c | 19468 | rm -f core conftest.err conftest.$ac_objext \ |
19469 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19470 | fi |
7d9455ce | 19471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
19472 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
19473 | if test $gcc_cv_math_func_floor = yes; then | |
bd647a17 | 19474 | |
6affa8e1 | 19475 | cat >>confdefs.h <<_ACEOF |
19476 | #define HAVE_FLOOR 1 | |
19477 | _ACEOF | |
7d9455ce | 19478 | |
19479 | fi | |
19480 | ||
d213114b | 19481 | |
d213114b | 19482 | |
d213114b | 19483 | |
7d9455ce | 19484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
19485 | $as_echo_n "checking for floorl... " >&6; } | |
19486 | if test "${gcc_cv_math_func_floorl+set}" = set; then : | |
cd9a469c | 19487 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19488 | else |
7d9455ce | 19489 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19490 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19491 | fi |
cd9a469c | 19492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19493 | /* end confdefs.h. */ |
19494 | ||
7d9455ce | 19495 | #ifdef HAVE_COMPLEX_H |
19496 | #include <complex.h> | |
19497 | #endif | |
19498 | #ifdef HAVE_MATH_H | |
19499 | #include <math.h> | |
71d5b534 | 19500 | #endif |
7d9455ce | 19501 | |
19502 | int (*ptr)() = (int (*)())floorl; | |
19503 | ||
71d5b534 | 19504 | int |
19505 | main () | |
19506 | { | |
71d5b534 | 19507 | return 0; |
19508 | } | |
7d9455ce | 19509 | |
71d5b534 | 19510 | _ACEOF |
cd9a469c | 19511 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19512 | gcc_cv_math_func_floorl=yes |
71d5b534 | 19513 | else |
7d9455ce | 19514 | gcc_cv_math_func_floorl=no |
71d5b534 | 19515 | fi |
cd9a469c | 19516 | rm -f core conftest.err conftest.$ac_objext \ |
19517 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19518 | fi |
7d9455ce | 19519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
19520 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
19521 | if test $gcc_cv_math_func_floorl = yes; then | |
bd647a17 | 19522 | |
6affa8e1 | 19523 | cat >>confdefs.h <<_ACEOF |
19524 | #define HAVE_FLOORL 1 | |
19525 | _ACEOF | |
7d9455ce | 19526 | |
19527 | fi | |
71d5b534 | 19528 | |
71d5b534 | 19529 | |
71d5b534 | 19530 | |
7d9455ce | 19531 | |
19532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 | |
19533 | $as_echo_n "checking for fmodf... " >&6; } | |
19534 | if test "${gcc_cv_math_func_fmodf+set}" = set; then : | |
cd9a469c | 19535 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19536 | else |
7d9455ce | 19537 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19538 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19539 | fi |
cd9a469c | 19540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19541 | /* end confdefs.h. */ |
19542 | ||
7d9455ce | 19543 | #ifdef HAVE_COMPLEX_H |
19544 | #include <complex.h> | |
71d5b534 | 19545 | #endif |
7d9455ce | 19546 | #ifdef HAVE_MATH_H |
19547 | #include <math.h> | |
19548 | #endif | |
19549 | ||
19550 | int (*ptr)() = (int (*)())fmodf; | |
19551 | ||
71d5b534 | 19552 | int |
19553 | main () | |
19554 | { | |
71d5b534 | 19555 | return 0; |
19556 | } | |
7d9455ce | 19557 | |
71d5b534 | 19558 | _ACEOF |
cd9a469c | 19559 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19560 | gcc_cv_math_func_fmodf=yes |
71d5b534 | 19561 | else |
7d9455ce | 19562 | gcc_cv_math_func_fmodf=no |
71d5b534 | 19563 | fi |
cd9a469c | 19564 | rm -f core conftest.err conftest.$ac_objext \ |
19565 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19566 | fi |
7d9455ce | 19567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
19568 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
19569 | if test $gcc_cv_math_func_fmodf = yes; then | |
bd647a17 | 19570 | |
6affa8e1 | 19571 | cat >>confdefs.h <<_ACEOF |
19572 | #define HAVE_FMODF 1 | |
19573 | _ACEOF | |
71d5b534 | 19574 | |
7d9455ce | 19575 | fi |
71d5b534 | 19576 | |
71d5b534 | 19577 | |
7d9455ce | 19578 | |
19579 | ||
19580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
19581 | $as_echo_n "checking for fmod... " >&6; } | |
19582 | if test "${gcc_cv_math_func_fmod+set}" = set; then : | |
cd9a469c | 19583 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19584 | else |
7d9455ce | 19585 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19586 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19587 | fi |
cd9a469c | 19588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19589 | /* end confdefs.h. */ |
19590 | ||
7d9455ce | 19591 | #ifdef HAVE_COMPLEX_H |
19592 | #include <complex.h> | |
19593 | #endif | |
19594 | #ifdef HAVE_MATH_H | |
19595 | #include <math.h> | |
71d5b534 | 19596 | #endif |
7d9455ce | 19597 | |
19598 | int (*ptr)() = (int (*)())fmod; | |
19599 | ||
71d5b534 | 19600 | int |
19601 | main () | |
19602 | { | |
71d5b534 | 19603 | return 0; |
19604 | } | |
7d9455ce | 19605 | |
71d5b534 | 19606 | _ACEOF |
cd9a469c | 19607 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19608 | gcc_cv_math_func_fmod=yes |
71d5b534 | 19609 | else |
7d9455ce | 19610 | gcc_cv_math_func_fmod=no |
71d5b534 | 19611 | fi |
cd9a469c | 19612 | rm -f core conftest.err conftest.$ac_objext \ |
19613 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19614 | fi |
7d9455ce | 19615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
19616 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
19617 | if test $gcc_cv_math_func_fmod = yes; then | |
bd647a17 | 19618 | |
6affa8e1 | 19619 | cat >>confdefs.h <<_ACEOF |
19620 | #define HAVE_FMOD 1 | |
19621 | _ACEOF | |
7d9455ce | 19622 | |
19623 | fi | |
71d5b534 | 19624 | |
71d5b534 | 19625 | |
71d5b534 | 19626 | |
7d9455ce | 19627 | |
19628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
19629 | $as_echo_n "checking for fmodl... " >&6; } | |
19630 | if test "${gcc_cv_math_func_fmodl+set}" = set; then : | |
cd9a469c | 19631 | $as_echo_n "(cached) " >&6 |
d213114b | 19632 | else |
7d9455ce | 19633 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19634 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19635 | fi |
cd9a469c | 19636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19637 | /* end confdefs.h. */ |
19638 | ||
7d9455ce | 19639 | #ifdef HAVE_COMPLEX_H |
19640 | #include <complex.h> | |
d213114b | 19641 | #endif |
7d9455ce | 19642 | #ifdef HAVE_MATH_H |
19643 | #include <math.h> | |
19644 | #endif | |
19645 | ||
19646 | int (*ptr)() = (int (*)())fmodl; | |
19647 | ||
d213114b | 19648 | int |
19649 | main () | |
19650 | { | |
d213114b | 19651 | return 0; |
19652 | } | |
7d9455ce | 19653 | |
d213114b | 19654 | _ACEOF |
cd9a469c | 19655 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19656 | gcc_cv_math_func_fmodl=yes |
d213114b | 19657 | else |
7d9455ce | 19658 | gcc_cv_math_func_fmodl=no |
d213114b | 19659 | fi |
cd9a469c | 19660 | rm -f core conftest.err conftest.$ac_objext \ |
19661 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19662 | fi |
7d9455ce | 19663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
19664 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
19665 | if test $gcc_cv_math_func_fmodl = yes; then | |
bd647a17 | 19666 | |
6affa8e1 | 19667 | cat >>confdefs.h <<_ACEOF |
19668 | #define HAVE_FMODL 1 | |
19669 | _ACEOF | |
7d9455ce | 19670 | |
19671 | fi | |
19672 | ||
d213114b | 19673 | |
d213114b | 19674 | |
d213114b | 19675 | |
7d9455ce | 19676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
19677 | $as_echo_n "checking for frexpf... " >&6; } | |
19678 | if test "${gcc_cv_math_func_frexpf+set}" = set; then : | |
cd9a469c | 19679 | $as_echo_n "(cached) " >&6 |
d213114b | 19680 | else |
7d9455ce | 19681 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19682 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19683 | fi |
cd9a469c | 19684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19685 | /* end confdefs.h. */ |
19686 | ||
7d9455ce | 19687 | #ifdef HAVE_COMPLEX_H |
19688 | #include <complex.h> | |
19689 | #endif | |
19690 | #ifdef HAVE_MATH_H | |
19691 | #include <math.h> | |
d213114b | 19692 | #endif |
7d9455ce | 19693 | |
19694 | int (*ptr)() = (int (*)())frexpf; | |
19695 | ||
d213114b | 19696 | int |
19697 | main () | |
19698 | { | |
d213114b | 19699 | return 0; |
19700 | } | |
7d9455ce | 19701 | |
d213114b | 19702 | _ACEOF |
cd9a469c | 19703 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19704 | gcc_cv_math_func_frexpf=yes |
d213114b | 19705 | else |
7d9455ce | 19706 | gcc_cv_math_func_frexpf=no |
d213114b | 19707 | fi |
cd9a469c | 19708 | rm -f core conftest.err conftest.$ac_objext \ |
19709 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19710 | fi |
7d9455ce | 19711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
19712 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
19713 | if test $gcc_cv_math_func_frexpf = yes; then | |
bd647a17 | 19714 | |
6affa8e1 | 19715 | cat >>confdefs.h <<_ACEOF |
19716 | #define HAVE_FREXPF 1 | |
19717 | _ACEOF | |
7d9455ce | 19718 | |
19719 | fi | |
d213114b | 19720 | |
d213114b | 19721 | |
d213114b | 19722 | |
7d9455ce | 19723 | |
19724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
19725 | $as_echo_n "checking for frexp... " >&6; } | |
19726 | if test "${gcc_cv_math_func_frexp+set}" = set; then : | |
cd9a469c | 19727 | $as_echo_n "(cached) " >&6 |
d213114b | 19728 | else |
7d9455ce | 19729 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19730 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19731 | fi |
cd9a469c | 19732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19733 | /* end confdefs.h. */ |
19734 | ||
7d9455ce | 19735 | #ifdef HAVE_COMPLEX_H |
19736 | #include <complex.h> | |
d213114b | 19737 | #endif |
7d9455ce | 19738 | #ifdef HAVE_MATH_H |
19739 | #include <math.h> | |
19740 | #endif | |
19741 | ||
19742 | int (*ptr)() = (int (*)())frexp; | |
19743 | ||
d213114b | 19744 | int |
19745 | main () | |
19746 | { | |
d213114b | 19747 | return 0; |
19748 | } | |
7d9455ce | 19749 | |
d213114b | 19750 | _ACEOF |
cd9a469c | 19751 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19752 | gcc_cv_math_func_frexp=yes |
d213114b | 19753 | else |
7d9455ce | 19754 | gcc_cv_math_func_frexp=no |
d213114b | 19755 | fi |
cd9a469c | 19756 | rm -f core conftest.err conftest.$ac_objext \ |
19757 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19758 | fi |
7d9455ce | 19759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
19760 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
19761 | if test $gcc_cv_math_func_frexp = yes; then | |
bd647a17 | 19762 | |
6affa8e1 | 19763 | cat >>confdefs.h <<_ACEOF |
19764 | #define HAVE_FREXP 1 | |
19765 | _ACEOF | |
d213114b | 19766 | |
7d9455ce | 19767 | fi |
d213114b | 19768 | |
d213114b | 19769 | |
7d9455ce | 19770 | |
19771 | ||
19772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
19773 | $as_echo_n "checking for frexpl... " >&6; } | |
19774 | if test "${gcc_cv_math_func_frexpl+set}" = set; then : | |
cd9a469c | 19775 | $as_echo_n "(cached) " >&6 |
d213114b | 19776 | else |
7d9455ce | 19777 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19778 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19779 | fi |
cd9a469c | 19780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19781 | /* end confdefs.h. */ |
19782 | ||
7d9455ce | 19783 | #ifdef HAVE_COMPLEX_H |
19784 | #include <complex.h> | |
19785 | #endif | |
19786 | #ifdef HAVE_MATH_H | |
19787 | #include <math.h> | |
d213114b | 19788 | #endif |
7d9455ce | 19789 | |
19790 | int (*ptr)() = (int (*)())frexpl; | |
19791 | ||
d213114b | 19792 | int |
19793 | main () | |
19794 | { | |
d213114b | 19795 | return 0; |
19796 | } | |
7d9455ce | 19797 | |
d213114b | 19798 | _ACEOF |
cd9a469c | 19799 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19800 | gcc_cv_math_func_frexpl=yes |
d213114b | 19801 | else |
7d9455ce | 19802 | gcc_cv_math_func_frexpl=no |
d213114b | 19803 | fi |
cd9a469c | 19804 | rm -f core conftest.err conftest.$ac_objext \ |
19805 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19806 | fi |
7d9455ce | 19807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
19808 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
19809 | if test $gcc_cv_math_func_frexpl = yes; then | |
bd647a17 | 19810 | |
6affa8e1 | 19811 | cat >>confdefs.h <<_ACEOF |
19812 | #define HAVE_FREXPL 1 | |
19813 | _ACEOF | |
7d9455ce | 19814 | |
19815 | fi | |
d213114b | 19816 | |
d213114b | 19817 | |
d213114b | 19818 | |
7d9455ce | 19819 | |
19820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
19821 | $as_echo_n "checking for hypotf... " >&6; } | |
19822 | if test "${gcc_cv_math_func_hypotf+set}" = set; then : | |
cd9a469c | 19823 | $as_echo_n "(cached) " >&6 |
d213114b | 19824 | else |
7d9455ce | 19825 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19826 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19827 | fi |
cd9a469c | 19828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19829 | /* end confdefs.h. */ |
19830 | ||
7d9455ce | 19831 | #ifdef HAVE_COMPLEX_H |
19832 | #include <complex.h> | |
d213114b | 19833 | #endif |
7d9455ce | 19834 | #ifdef HAVE_MATH_H |
19835 | #include <math.h> | |
19836 | #endif | |
19837 | ||
19838 | int (*ptr)() = (int (*)())hypotf; | |
19839 | ||
d213114b | 19840 | int |
19841 | main () | |
19842 | { | |
d213114b | 19843 | return 0; |
19844 | } | |
7d9455ce | 19845 | |
d213114b | 19846 | _ACEOF |
cd9a469c | 19847 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19848 | gcc_cv_math_func_hypotf=yes |
d213114b | 19849 | else |
7d9455ce | 19850 | gcc_cv_math_func_hypotf=no |
d213114b | 19851 | fi |
cd9a469c | 19852 | rm -f core conftest.err conftest.$ac_objext \ |
19853 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19854 | fi |
7d9455ce | 19855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
19856 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
19857 | if test $gcc_cv_math_func_hypotf = yes; then | |
bd647a17 | 19858 | |
6affa8e1 | 19859 | cat >>confdefs.h <<_ACEOF |
19860 | #define HAVE_HYPOTF 1 | |
19861 | _ACEOF | |
7d9455ce | 19862 | |
19863 | fi | |
19864 | ||
d213114b | 19865 | |
d213114b | 19866 | |
d213114b | 19867 | |
7d9455ce | 19868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
19869 | $as_echo_n "checking for hypot... " >&6; } | |
19870 | if test "${gcc_cv_math_func_hypot+set}" = set; then : | |
cd9a469c | 19871 | $as_echo_n "(cached) " >&6 |
d213114b | 19872 | else |
7d9455ce | 19873 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19874 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19875 | fi |
cd9a469c | 19876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19877 | /* end confdefs.h. */ |
19878 | ||
7d9455ce | 19879 | #ifdef HAVE_COMPLEX_H |
19880 | #include <complex.h> | |
19881 | #endif | |
19882 | #ifdef HAVE_MATH_H | |
19883 | #include <math.h> | |
d213114b | 19884 | #endif |
7d9455ce | 19885 | |
19886 | int (*ptr)() = (int (*)())hypot; | |
19887 | ||
d213114b | 19888 | int |
19889 | main () | |
19890 | { | |
d213114b | 19891 | return 0; |
19892 | } | |
7d9455ce | 19893 | |
d213114b | 19894 | _ACEOF |
cd9a469c | 19895 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19896 | gcc_cv_math_func_hypot=yes |
d213114b | 19897 | else |
7d9455ce | 19898 | gcc_cv_math_func_hypot=no |
d213114b | 19899 | fi |
cd9a469c | 19900 | rm -f core conftest.err conftest.$ac_objext \ |
19901 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19902 | fi |
7d9455ce | 19903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
19904 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
19905 | if test $gcc_cv_math_func_hypot = yes; then | |
bd647a17 | 19906 | |
6affa8e1 | 19907 | cat >>confdefs.h <<_ACEOF |
19908 | #define HAVE_HYPOT 1 | |
19909 | _ACEOF | |
7d9455ce | 19910 | |
19911 | fi | |
d213114b | 19912 | |
d213114b | 19913 | |
d213114b | 19914 | |
7d9455ce | 19915 | |
19916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
19917 | $as_echo_n "checking for hypotl... " >&6; } | |
19918 | if test "${gcc_cv_math_func_hypotl+set}" = set; then : | |
cd9a469c | 19919 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 19920 | else |
7d9455ce | 19921 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19922 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 19923 | fi |
cd9a469c | 19924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 19925 | /* end confdefs.h. */ |
19926 | ||
7d9455ce | 19927 | #ifdef HAVE_COMPLEX_H |
19928 | #include <complex.h> | |
71d90ac4 | 19929 | #endif |
7d9455ce | 19930 | #ifdef HAVE_MATH_H |
19931 | #include <math.h> | |
19932 | #endif | |
19933 | ||
19934 | int (*ptr)() = (int (*)())hypotl; | |
19935 | ||
71d90ac4 | 19936 | int |
19937 | main () | |
19938 | { | |
71d90ac4 | 19939 | return 0; |
19940 | } | |
7d9455ce | 19941 | |
71d90ac4 | 19942 | _ACEOF |
cd9a469c | 19943 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19944 | gcc_cv_math_func_hypotl=yes |
71d90ac4 | 19945 | else |
7d9455ce | 19946 | gcc_cv_math_func_hypotl=no |
71d90ac4 | 19947 | fi |
cd9a469c | 19948 | rm -f core conftest.err conftest.$ac_objext \ |
19949 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 19950 | fi |
7d9455ce | 19951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
19952 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
19953 | if test $gcc_cv_math_func_hypotl = yes; then | |
bd647a17 | 19954 | |
6affa8e1 | 19955 | cat >>confdefs.h <<_ACEOF |
19956 | #define HAVE_HYPOTL 1 | |
19957 | _ACEOF | |
71d90ac4 | 19958 | |
7d9455ce | 19959 | fi |
71d90ac4 | 19960 | |
71d90ac4 | 19961 | |
7d9455ce | 19962 | |
19963 | ||
19964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
19965 | $as_echo_n "checking for ldexpf... " >&6; } | |
19966 | if test "${gcc_cv_math_func_ldexpf+set}" = set; then : | |
cd9a469c | 19967 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 19968 | else |
7d9455ce | 19969 | if test x$gcc_no_link = xyes; then |
cd9a469c | 19970 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 19971 | fi |
cd9a469c | 19972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 19973 | /* end confdefs.h. */ |
19974 | ||
7d9455ce | 19975 | #ifdef HAVE_COMPLEX_H |
19976 | #include <complex.h> | |
19977 | #endif | |
19978 | #ifdef HAVE_MATH_H | |
19979 | #include <math.h> | |
71d90ac4 | 19980 | #endif |
7d9455ce | 19981 | |
19982 | int (*ptr)() = (int (*)())ldexpf; | |
19983 | ||
71d90ac4 | 19984 | int |
19985 | main () | |
19986 | { | |
71d90ac4 | 19987 | return 0; |
19988 | } | |
7d9455ce | 19989 | |
71d90ac4 | 19990 | _ACEOF |
cd9a469c | 19991 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19992 | gcc_cv_math_func_ldexpf=yes |
71d90ac4 | 19993 | else |
7d9455ce | 19994 | gcc_cv_math_func_ldexpf=no |
71d90ac4 | 19995 | fi |
cd9a469c | 19996 | rm -f core conftest.err conftest.$ac_objext \ |
19997 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 19998 | fi |
7d9455ce | 19999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20000 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20001 | if test $gcc_cv_math_func_ldexpf = yes; then | |
bd647a17 | 20002 | |
6affa8e1 | 20003 | cat >>confdefs.h <<_ACEOF |
20004 | #define HAVE_LDEXPF 1 | |
20005 | _ACEOF | |
7d9455ce | 20006 | |
20007 | fi | |
71d90ac4 | 20008 | |
71d90ac4 | 20009 | |
71d90ac4 | 20010 | |
7d9455ce | 20011 | |
20012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20013 | $as_echo_n "checking for ldexp... " >&6; } | |
20014 | if test "${gcc_cv_math_func_ldexp+set}" = set; then : | |
cd9a469c | 20015 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 20016 | else |
7d9455ce | 20017 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20018 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 20019 | fi |
cd9a469c | 20020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 20021 | /* end confdefs.h. */ |
20022 | ||
7d9455ce | 20023 | #ifdef HAVE_COMPLEX_H |
20024 | #include <complex.h> | |
71d90ac4 | 20025 | #endif |
7d9455ce | 20026 | #ifdef HAVE_MATH_H |
20027 | #include <math.h> | |
20028 | #endif | |
20029 | ||
20030 | int (*ptr)() = (int (*)())ldexp; | |
20031 | ||
71d90ac4 | 20032 | int |
20033 | main () | |
20034 | { | |
71d90ac4 | 20035 | return 0; |
20036 | } | |
7d9455ce | 20037 | |
71d90ac4 | 20038 | _ACEOF |
cd9a469c | 20039 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20040 | gcc_cv_math_func_ldexp=yes |
71d90ac4 | 20041 | else |
7d9455ce | 20042 | gcc_cv_math_func_ldexp=no |
71d90ac4 | 20043 | fi |
cd9a469c | 20044 | rm -f core conftest.err conftest.$ac_objext \ |
20045 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 20046 | fi |
7d9455ce | 20047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20048 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20049 | if test $gcc_cv_math_func_ldexp = yes; then | |
bd647a17 | 20050 | |
6affa8e1 | 20051 | cat >>confdefs.h <<_ACEOF |
20052 | #define HAVE_LDEXP 1 | |
20053 | _ACEOF | |
7d9455ce | 20054 | |
20055 | fi | |
20056 | ||
71d90ac4 | 20057 | |
71d90ac4 | 20058 | |
71d90ac4 | 20059 | |
7d9455ce | 20060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20061 | $as_echo_n "checking for ldexpl... " >&6; } | |
20062 | if test "${gcc_cv_math_func_ldexpl+set}" = set; then : | |
cd9a469c | 20063 | $as_echo_n "(cached) " >&6 |
d213114b | 20064 | else |
7d9455ce | 20065 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20066 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20067 | fi |
cd9a469c | 20068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20069 | /* end confdefs.h. */ |
20070 | ||
7d9455ce | 20071 | #ifdef HAVE_COMPLEX_H |
20072 | #include <complex.h> | |
20073 | #endif | |
20074 | #ifdef HAVE_MATH_H | |
20075 | #include <math.h> | |
d213114b | 20076 | #endif |
7d9455ce | 20077 | |
20078 | int (*ptr)() = (int (*)())ldexpl; | |
20079 | ||
d213114b | 20080 | int |
20081 | main () | |
20082 | { | |
d213114b | 20083 | return 0; |
20084 | } | |
7d9455ce | 20085 | |
d213114b | 20086 | _ACEOF |
cd9a469c | 20087 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20088 | gcc_cv_math_func_ldexpl=yes |
d213114b | 20089 | else |
7d9455ce | 20090 | gcc_cv_math_func_ldexpl=no |
d213114b | 20091 | fi |
cd9a469c | 20092 | rm -f core conftest.err conftest.$ac_objext \ |
20093 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20094 | fi |
7d9455ce | 20095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20096 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20097 | if test $gcc_cv_math_func_ldexpl = yes; then | |
bd647a17 | 20098 | |
6affa8e1 | 20099 | cat >>confdefs.h <<_ACEOF |
20100 | #define HAVE_LDEXPL 1 | |
20101 | _ACEOF | |
7d9455ce | 20102 | |
20103 | fi | |
d213114b | 20104 | |
d213114b | 20105 | |
d213114b | 20106 | |
7d9455ce | 20107 | |
20108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20109 | $as_echo_n "checking for logf... " >&6; } | |
20110 | if test "${gcc_cv_math_func_logf+set}" = set; then : | |
cd9a469c | 20111 | $as_echo_n "(cached) " >&6 |
d213114b | 20112 | else |
7d9455ce | 20113 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20114 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20115 | fi |
cd9a469c | 20116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20117 | /* end confdefs.h. */ |
20118 | ||
7d9455ce | 20119 | #ifdef HAVE_COMPLEX_H |
20120 | #include <complex.h> | |
d213114b | 20121 | #endif |
7d9455ce | 20122 | #ifdef HAVE_MATH_H |
20123 | #include <math.h> | |
20124 | #endif | |
20125 | ||
20126 | int (*ptr)() = (int (*)())logf; | |
20127 | ||
d213114b | 20128 | int |
20129 | main () | |
20130 | { | |
d213114b | 20131 | return 0; |
20132 | } | |
7d9455ce | 20133 | |
d213114b | 20134 | _ACEOF |
cd9a469c | 20135 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20136 | gcc_cv_math_func_logf=yes |
d213114b | 20137 | else |
7d9455ce | 20138 | gcc_cv_math_func_logf=no |
d213114b | 20139 | fi |
cd9a469c | 20140 | rm -f core conftest.err conftest.$ac_objext \ |
20141 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20142 | fi |
7d9455ce | 20143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20144 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20145 | if test $gcc_cv_math_func_logf = yes; then | |
bd647a17 | 20146 | |
6affa8e1 | 20147 | cat >>confdefs.h <<_ACEOF |
20148 | #define HAVE_LOGF 1 | |
20149 | _ACEOF | |
d213114b | 20150 | |
7d9455ce | 20151 | fi |
d213114b | 20152 | |
d213114b | 20153 | |
7d9455ce | 20154 | |
20155 | ||
20156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20157 | $as_echo_n "checking for log... " >&6; } | |
20158 | if test "${gcc_cv_math_func_log+set}" = set; then : | |
cd9a469c | 20159 | $as_echo_n "(cached) " >&6 |
d213114b | 20160 | else |
7d9455ce | 20161 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20162 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20163 | fi |
cd9a469c | 20164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20165 | /* end confdefs.h. */ |
20166 | ||
7d9455ce | 20167 | #ifdef HAVE_COMPLEX_H |
20168 | #include <complex.h> | |
20169 | #endif | |
20170 | #ifdef HAVE_MATH_H | |
20171 | #include <math.h> | |
d213114b | 20172 | #endif |
7d9455ce | 20173 | |
20174 | int (*ptr)() = (int (*)())log; | |
20175 | ||
d213114b | 20176 | int |
20177 | main () | |
20178 | { | |
d213114b | 20179 | return 0; |
20180 | } | |
7d9455ce | 20181 | |
d213114b | 20182 | _ACEOF |
cd9a469c | 20183 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20184 | gcc_cv_math_func_log=yes |
d213114b | 20185 | else |
7d9455ce | 20186 | gcc_cv_math_func_log=no |
d213114b | 20187 | fi |
cd9a469c | 20188 | rm -f core conftest.err conftest.$ac_objext \ |
20189 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20190 | fi |
7d9455ce | 20191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20192 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20193 | if test $gcc_cv_math_func_log = yes; then | |
bd647a17 | 20194 | |
6affa8e1 | 20195 | cat >>confdefs.h <<_ACEOF |
20196 | #define HAVE_LOG 1 | |
20197 | _ACEOF | |
7d9455ce | 20198 | |
20199 | fi | |
d213114b | 20200 | |
d213114b | 20201 | |
d213114b | 20202 | |
7d9455ce | 20203 | |
20204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20205 | $as_echo_n "checking for logl... " >&6; } | |
20206 | if test "${gcc_cv_math_func_logl+set}" = set; then : | |
cd9a469c | 20207 | $as_echo_n "(cached) " >&6 |
d213114b | 20208 | else |
7d9455ce | 20209 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20210 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20211 | fi |
cd9a469c | 20212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20213 | /* end confdefs.h. */ |
20214 | ||
7d9455ce | 20215 | #ifdef HAVE_COMPLEX_H |
20216 | #include <complex.h> | |
d213114b | 20217 | #endif |
7d9455ce | 20218 | #ifdef HAVE_MATH_H |
20219 | #include <math.h> | |
20220 | #endif | |
20221 | ||
20222 | int (*ptr)() = (int (*)())logl; | |
20223 | ||
d213114b | 20224 | int |
20225 | main () | |
20226 | { | |
d213114b | 20227 | return 0; |
20228 | } | |
7d9455ce | 20229 | |
d213114b | 20230 | _ACEOF |
cd9a469c | 20231 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20232 | gcc_cv_math_func_logl=yes |
d213114b | 20233 | else |
7d9455ce | 20234 | gcc_cv_math_func_logl=no |
d213114b | 20235 | fi |
cd9a469c | 20236 | rm -f core conftest.err conftest.$ac_objext \ |
20237 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20238 | fi |
7d9455ce | 20239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20240 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20241 | if test $gcc_cv_math_func_logl = yes; then | |
bd647a17 | 20242 | |
6affa8e1 | 20243 | cat >>confdefs.h <<_ACEOF |
20244 | #define HAVE_LOGL 1 | |
20245 | _ACEOF | |
7d9455ce | 20246 | |
20247 | fi | |
20248 | ||
d213114b | 20249 | |
d213114b | 20250 | |
d213114b | 20251 | |
7d9455ce | 20252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20253 | $as_echo_n "checking for clogf... " >&6; } | |
20254 | if test "${gcc_cv_math_func_clogf+set}" = set; then : | |
cd9a469c | 20255 | $as_echo_n "(cached) " >&6 |
d213114b | 20256 | else |
7d9455ce | 20257 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20258 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20259 | fi |
cd9a469c | 20260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20261 | /* end confdefs.h. */ |
20262 | ||
7d9455ce | 20263 | #ifdef HAVE_COMPLEX_H |
20264 | #include <complex.h> | |
20265 | #endif | |
20266 | #ifdef HAVE_MATH_H | |
20267 | #include <math.h> | |
d213114b | 20268 | #endif |
7d9455ce | 20269 | |
20270 | int (*ptr)() = (int (*)())clogf; | |
20271 | ||
d213114b | 20272 | int |
20273 | main () | |
20274 | { | |
d213114b | 20275 | return 0; |
20276 | } | |
7d9455ce | 20277 | |
d213114b | 20278 | _ACEOF |
cd9a469c | 20279 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20280 | gcc_cv_math_func_clogf=yes |
d213114b | 20281 | else |
7d9455ce | 20282 | gcc_cv_math_func_clogf=no |
d213114b | 20283 | fi |
cd9a469c | 20284 | rm -f core conftest.err conftest.$ac_objext \ |
20285 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20286 | fi |
7d9455ce | 20287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20288 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20289 | if test $gcc_cv_math_func_clogf = yes; then | |
bd647a17 | 20290 | |
6affa8e1 | 20291 | cat >>confdefs.h <<_ACEOF |
20292 | #define HAVE_CLOGF 1 | |
20293 | _ACEOF | |
7d9455ce | 20294 | |
20295 | fi | |
d213114b | 20296 | |
d213114b | 20297 | |
d213114b | 20298 | |
7d9455ce | 20299 | |
20300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20301 | $as_echo_n "checking for clog... " >&6; } | |
20302 | if test "${gcc_cv_math_func_clog+set}" = set; then : | |
cd9a469c | 20303 | $as_echo_n "(cached) " >&6 |
d213114b | 20304 | else |
7d9455ce | 20305 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20306 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20307 | fi |
cd9a469c | 20308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20309 | /* end confdefs.h. */ |
20310 | ||
7d9455ce | 20311 | #ifdef HAVE_COMPLEX_H |
20312 | #include <complex.h> | |
d213114b | 20313 | #endif |
7d9455ce | 20314 | #ifdef HAVE_MATH_H |
20315 | #include <math.h> | |
20316 | #endif | |
20317 | ||
20318 | int (*ptr)() = (int (*)())clog; | |
20319 | ||
d213114b | 20320 | int |
20321 | main () | |
20322 | { | |
d213114b | 20323 | return 0; |
20324 | } | |
7d9455ce | 20325 | |
d213114b | 20326 | _ACEOF |
cd9a469c | 20327 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20328 | gcc_cv_math_func_clog=yes |
d213114b | 20329 | else |
7d9455ce | 20330 | gcc_cv_math_func_clog=no |
d213114b | 20331 | fi |
cd9a469c | 20332 | rm -f core conftest.err conftest.$ac_objext \ |
20333 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20334 | fi |
7d9455ce | 20335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
20336 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
20337 | if test $gcc_cv_math_func_clog = yes; then | |
bd647a17 | 20338 | |
6affa8e1 | 20339 | cat >>confdefs.h <<_ACEOF |
20340 | #define HAVE_CLOG 1 | |
20341 | _ACEOF | |
d213114b | 20342 | |
7d9455ce | 20343 | fi |
d213114b | 20344 | |
d213114b | 20345 | |
7d9455ce | 20346 | |
20347 | ||
20348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
20349 | $as_echo_n "checking for clogl... " >&6; } | |
20350 | if test "${gcc_cv_math_func_clogl+set}" = set; then : | |
cd9a469c | 20351 | $as_echo_n "(cached) " >&6 |
d213114b | 20352 | else |
7d9455ce | 20353 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20354 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20355 | fi |
cd9a469c | 20356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20357 | /* end confdefs.h. */ |
20358 | ||
7d9455ce | 20359 | #ifdef HAVE_COMPLEX_H |
20360 | #include <complex.h> | |
20361 | #endif | |
20362 | #ifdef HAVE_MATH_H | |
20363 | #include <math.h> | |
d213114b | 20364 | #endif |
7d9455ce | 20365 | |
20366 | int (*ptr)() = (int (*)())clogl; | |
20367 | ||
d213114b | 20368 | int |
20369 | main () | |
20370 | { | |
d213114b | 20371 | return 0; |
20372 | } | |
7d9455ce | 20373 | |
d213114b | 20374 | _ACEOF |
cd9a469c | 20375 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20376 | gcc_cv_math_func_clogl=yes |
d213114b | 20377 | else |
7d9455ce | 20378 | gcc_cv_math_func_clogl=no |
d213114b | 20379 | fi |
cd9a469c | 20380 | rm -f core conftest.err conftest.$ac_objext \ |
20381 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20382 | fi |
7d9455ce | 20383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
20384 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
20385 | if test $gcc_cv_math_func_clogl = yes; then | |
bd647a17 | 20386 | |
6affa8e1 | 20387 | cat >>confdefs.h <<_ACEOF |
20388 | #define HAVE_CLOGL 1 | |
20389 | _ACEOF | |
7d9455ce | 20390 | |
20391 | fi | |
d213114b | 20392 | |
d213114b | 20393 | |
d213114b | 20394 | |
7d9455ce | 20395 | |
20396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
20397 | $as_echo_n "checking for log10f... " >&6; } | |
20398 | if test "${gcc_cv_math_func_log10f+set}" = set; then : | |
cd9a469c | 20399 | $as_echo_n "(cached) " >&6 |
d213114b | 20400 | else |
7d9455ce | 20401 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20402 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20403 | fi |
cd9a469c | 20404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20405 | /* end confdefs.h. */ |
20406 | ||
7d9455ce | 20407 | #ifdef HAVE_COMPLEX_H |
20408 | #include <complex.h> | |
d213114b | 20409 | #endif |
7d9455ce | 20410 | #ifdef HAVE_MATH_H |
20411 | #include <math.h> | |
20412 | #endif | |
20413 | ||
20414 | int (*ptr)() = (int (*)())log10f; | |
20415 | ||
d213114b | 20416 | int |
20417 | main () | |
20418 | { | |
d213114b | 20419 | return 0; |
20420 | } | |
7d9455ce | 20421 | |
d213114b | 20422 | _ACEOF |
cd9a469c | 20423 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20424 | gcc_cv_math_func_log10f=yes |
d213114b | 20425 | else |
7d9455ce | 20426 | gcc_cv_math_func_log10f=no |
d213114b | 20427 | fi |
cd9a469c | 20428 | rm -f core conftest.err conftest.$ac_objext \ |
20429 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20430 | fi |
7d9455ce | 20431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
20432 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
20433 | if test $gcc_cv_math_func_log10f = yes; then | |
bd647a17 | 20434 | |
6affa8e1 | 20435 | cat >>confdefs.h <<_ACEOF |
20436 | #define HAVE_LOG10F 1 | |
20437 | _ACEOF | |
7d9455ce | 20438 | |
20439 | fi | |
20440 | ||
d213114b | 20441 | |
d213114b | 20442 | |
d213114b | 20443 | |
7d9455ce | 20444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
20445 | $as_echo_n "checking for log10... " >&6; } | |
20446 | if test "${gcc_cv_math_func_log10+set}" = set; then : | |
cd9a469c | 20447 | $as_echo_n "(cached) " >&6 |
d213114b | 20448 | else |
7d9455ce | 20449 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20450 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20451 | fi |
cd9a469c | 20452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20453 | /* end confdefs.h. */ |
20454 | ||
7d9455ce | 20455 | #ifdef HAVE_COMPLEX_H |
20456 | #include <complex.h> | |
20457 | #endif | |
20458 | #ifdef HAVE_MATH_H | |
20459 | #include <math.h> | |
d213114b | 20460 | #endif |
7d9455ce | 20461 | |
20462 | int (*ptr)() = (int (*)())log10; | |
20463 | ||
d213114b | 20464 | int |
20465 | main () | |
20466 | { | |
d213114b | 20467 | return 0; |
20468 | } | |
7d9455ce | 20469 | |
d213114b | 20470 | _ACEOF |
cd9a469c | 20471 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20472 | gcc_cv_math_func_log10=yes |
d213114b | 20473 | else |
7d9455ce | 20474 | gcc_cv_math_func_log10=no |
d213114b | 20475 | fi |
cd9a469c | 20476 | rm -f core conftest.err conftest.$ac_objext \ |
20477 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20478 | fi |
7d9455ce | 20479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
20480 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
20481 | if test $gcc_cv_math_func_log10 = yes; then | |
bd647a17 | 20482 | |
6affa8e1 | 20483 | cat >>confdefs.h <<_ACEOF |
20484 | #define HAVE_LOG10 1 | |
20485 | _ACEOF | |
7d9455ce | 20486 | |
20487 | fi | |
d213114b | 20488 | |
d213114b | 20489 | |
d213114b | 20490 | |
7d9455ce | 20491 | |
20492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
20493 | $as_echo_n "checking for log10l... " >&6; } | |
20494 | if test "${gcc_cv_math_func_log10l+set}" = set; then : | |
cd9a469c | 20495 | $as_echo_n "(cached) " >&6 |
d213114b | 20496 | else |
7d9455ce | 20497 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20498 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20499 | fi |
cd9a469c | 20500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20501 | /* end confdefs.h. */ |
20502 | ||
7d9455ce | 20503 | #ifdef HAVE_COMPLEX_H |
20504 | #include <complex.h> | |
d213114b | 20505 | #endif |
7d9455ce | 20506 | #ifdef HAVE_MATH_H |
20507 | #include <math.h> | |
20508 | #endif | |
20509 | ||
20510 | int (*ptr)() = (int (*)())log10l; | |
20511 | ||
d213114b | 20512 | int |
20513 | main () | |
20514 | { | |
d213114b | 20515 | return 0; |
20516 | } | |
7d9455ce | 20517 | |
d213114b | 20518 | _ACEOF |
cd9a469c | 20519 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20520 | gcc_cv_math_func_log10l=yes |
d213114b | 20521 | else |
7d9455ce | 20522 | gcc_cv_math_func_log10l=no |
d213114b | 20523 | fi |
cd9a469c | 20524 | rm -f core conftest.err conftest.$ac_objext \ |
20525 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20526 | fi |
7d9455ce | 20527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
20528 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
20529 | if test $gcc_cv_math_func_log10l = yes; then | |
bd647a17 | 20530 | |
6affa8e1 | 20531 | cat >>confdefs.h <<_ACEOF |
20532 | #define HAVE_LOG10L 1 | |
20533 | _ACEOF | |
d213114b | 20534 | |
7d9455ce | 20535 | fi |
d213114b | 20536 | |
d213114b | 20537 | |
7d9455ce | 20538 | |
20539 | ||
20540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
20541 | $as_echo_n "checking for clog10f... " >&6; } | |
20542 | if test "${gcc_cv_math_func_clog10f+set}" = set; then : | |
cd9a469c | 20543 | $as_echo_n "(cached) " >&6 |
d213114b | 20544 | else |
7d9455ce | 20545 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20546 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20547 | fi |
cd9a469c | 20548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20549 | /* end confdefs.h. */ |
20550 | ||
7d9455ce | 20551 | #ifdef HAVE_COMPLEX_H |
20552 | #include <complex.h> | |
20553 | #endif | |
20554 | #ifdef HAVE_MATH_H | |
20555 | #include <math.h> | |
d213114b | 20556 | #endif |
7d9455ce | 20557 | |
20558 | int (*ptr)() = (int (*)())clog10f; | |
20559 | ||
d213114b | 20560 | int |
20561 | main () | |
20562 | { | |
d213114b | 20563 | return 0; |
20564 | } | |
7d9455ce | 20565 | |
d213114b | 20566 | _ACEOF |
cd9a469c | 20567 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20568 | gcc_cv_math_func_clog10f=yes |
d213114b | 20569 | else |
7d9455ce | 20570 | gcc_cv_math_func_clog10f=no |
d213114b | 20571 | fi |
cd9a469c | 20572 | rm -f core conftest.err conftest.$ac_objext \ |
20573 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20574 | fi |
7d9455ce | 20575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
20576 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
20577 | if test $gcc_cv_math_func_clog10f = yes; then | |
bd647a17 | 20578 | |
6affa8e1 | 20579 | cat >>confdefs.h <<_ACEOF |
20580 | #define HAVE_CLOG10F 1 | |
20581 | _ACEOF | |
7d9455ce | 20582 | |
20583 | fi | |
d213114b | 20584 | |
d213114b | 20585 | |
d213114b | 20586 | |
7d9455ce | 20587 | |
20588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
20589 | $as_echo_n "checking for clog10... " >&6; } | |
20590 | if test "${gcc_cv_math_func_clog10+set}" = set; then : | |
cd9a469c | 20591 | $as_echo_n "(cached) " >&6 |
d213114b | 20592 | else |
7d9455ce | 20593 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20594 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20595 | fi |
cd9a469c | 20596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20597 | /* end confdefs.h. */ |
20598 | ||
7d9455ce | 20599 | #ifdef HAVE_COMPLEX_H |
20600 | #include <complex.h> | |
d213114b | 20601 | #endif |
7d9455ce | 20602 | #ifdef HAVE_MATH_H |
20603 | #include <math.h> | |
20604 | #endif | |
20605 | ||
20606 | int (*ptr)() = (int (*)())clog10; | |
20607 | ||
d213114b | 20608 | int |
20609 | main () | |
20610 | { | |
cd9a469c | 20611 | return 0; |
20612 | } | |
7d9455ce | 20613 | |
cd9a469c | 20614 | _ACEOF |
20615 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 20616 | gcc_cv_math_func_clog10=yes |
d213114b | 20617 | else |
7d9455ce | 20618 | gcc_cv_math_func_clog10=no |
d213114b | 20619 | fi |
cd9a469c | 20620 | rm -f core conftest.err conftest.$ac_objext \ |
20621 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20622 | fi |
7d9455ce | 20623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
20624 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
20625 | if test $gcc_cv_math_func_clog10 = yes; then | |
bd647a17 | 20626 | |
6affa8e1 | 20627 | cat >>confdefs.h <<_ACEOF |
20628 | #define HAVE_CLOG10 1 | |
20629 | _ACEOF | |
7d9455ce | 20630 | |
20631 | fi | |
20632 | ||
d213114b | 20633 | |
d213114b | 20634 | |
d213114b | 20635 | |
7d9455ce | 20636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
20637 | $as_echo_n "checking for clog10l... " >&6; } | |
20638 | if test "${gcc_cv_math_func_clog10l+set}" = set; then : | |
cd9a469c | 20639 | $as_echo_n "(cached) " >&6 |
d213114b | 20640 | else |
7d9455ce | 20641 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20642 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20643 | fi |
cd9a469c | 20644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20645 | /* end confdefs.h. */ |
20646 | ||
7d9455ce | 20647 | #ifdef HAVE_COMPLEX_H |
20648 | #include <complex.h> | |
20649 | #endif | |
20650 | #ifdef HAVE_MATH_H | |
20651 | #include <math.h> | |
d213114b | 20652 | #endif |
7d9455ce | 20653 | |
20654 | int (*ptr)() = (int (*)())clog10l; | |
20655 | ||
d213114b | 20656 | int |
20657 | main () | |
20658 | { | |
d213114b | 20659 | return 0; |
20660 | } | |
7d9455ce | 20661 | |
d213114b | 20662 | _ACEOF |
cd9a469c | 20663 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20664 | gcc_cv_math_func_clog10l=yes |
d213114b | 20665 | else |
7d9455ce | 20666 | gcc_cv_math_func_clog10l=no |
d213114b | 20667 | fi |
cd9a469c | 20668 | rm -f core conftest.err conftest.$ac_objext \ |
20669 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20670 | fi |
7d9455ce | 20671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
20672 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
20673 | if test $gcc_cv_math_func_clog10l = yes; then | |
bd647a17 | 20674 | |
6affa8e1 | 20675 | cat >>confdefs.h <<_ACEOF |
20676 | #define HAVE_CLOG10L 1 | |
20677 | _ACEOF | |
7d9455ce | 20678 | |
20679 | fi | |
d213114b | 20680 | |
d213114b | 20681 | |
d213114b | 20682 | |
7d9455ce | 20683 | |
20684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
20685 | $as_echo_n "checking for nextafterf... " >&6; } | |
20686 | if test "${gcc_cv_math_func_nextafterf+set}" = set; then : | |
cd9a469c | 20687 | $as_echo_n "(cached) " >&6 |
d213114b | 20688 | else |
7d9455ce | 20689 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20690 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20691 | fi |
cd9a469c | 20692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20693 | /* end confdefs.h. */ |
20694 | ||
7d9455ce | 20695 | #ifdef HAVE_COMPLEX_H |
20696 | #include <complex.h> | |
d213114b | 20697 | #endif |
7d9455ce | 20698 | #ifdef HAVE_MATH_H |
20699 | #include <math.h> | |
20700 | #endif | |
20701 | ||
20702 | int (*ptr)() = (int (*)())nextafterf; | |
20703 | ||
d213114b | 20704 | int |
20705 | main () | |
20706 | { | |
d213114b | 20707 | return 0; |
20708 | } | |
7d9455ce | 20709 | |
d213114b | 20710 | _ACEOF |
cd9a469c | 20711 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20712 | gcc_cv_math_func_nextafterf=yes |
d213114b | 20713 | else |
7d9455ce | 20714 | gcc_cv_math_func_nextafterf=no |
d213114b | 20715 | fi |
cd9a469c | 20716 | rm -f core conftest.err conftest.$ac_objext \ |
20717 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20718 | fi |
7d9455ce | 20719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
20720 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
20721 | if test $gcc_cv_math_func_nextafterf = yes; then | |
bd647a17 | 20722 | |
6affa8e1 | 20723 | cat >>confdefs.h <<_ACEOF |
20724 | #define HAVE_NEXTAFTERF 1 | |
20725 | _ACEOF | |
d213114b | 20726 | |
7d9455ce | 20727 | fi |
d213114b | 20728 | |
d213114b | 20729 | |
7d9455ce | 20730 | |
20731 | ||
20732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
20733 | $as_echo_n "checking for nextafter... " >&6; } | |
20734 | if test "${gcc_cv_math_func_nextafter+set}" = set; then : | |
cd9a469c | 20735 | $as_echo_n "(cached) " >&6 |
d213114b | 20736 | else |
7d9455ce | 20737 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20738 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20739 | fi |
cd9a469c | 20740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20741 | /* end confdefs.h. */ |
20742 | ||
7d9455ce | 20743 | #ifdef HAVE_COMPLEX_H |
20744 | #include <complex.h> | |
20745 | #endif | |
20746 | #ifdef HAVE_MATH_H | |
20747 | #include <math.h> | |
d213114b | 20748 | #endif |
7d9455ce | 20749 | |
20750 | int (*ptr)() = (int (*)())nextafter; | |
20751 | ||
d213114b | 20752 | int |
20753 | main () | |
20754 | { | |
d213114b | 20755 | return 0; |
20756 | } | |
7d9455ce | 20757 | |
d213114b | 20758 | _ACEOF |
cd9a469c | 20759 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20760 | gcc_cv_math_func_nextafter=yes |
d213114b | 20761 | else |
7d9455ce | 20762 | gcc_cv_math_func_nextafter=no |
d213114b | 20763 | fi |
cd9a469c | 20764 | rm -f core conftest.err conftest.$ac_objext \ |
20765 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20766 | fi |
7d9455ce | 20767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
20768 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
20769 | if test $gcc_cv_math_func_nextafter = yes; then | |
bd647a17 | 20770 | |
6affa8e1 | 20771 | cat >>confdefs.h <<_ACEOF |
20772 | #define HAVE_NEXTAFTER 1 | |
20773 | _ACEOF | |
7d9455ce | 20774 | |
20775 | fi | |
d213114b | 20776 | |
d213114b | 20777 | |
d213114b | 20778 | |
7d9455ce | 20779 | |
20780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
20781 | $as_echo_n "checking for nextafterl... " >&6; } | |
20782 | if test "${gcc_cv_math_func_nextafterl+set}" = set; then : | |
cd9a469c | 20783 | $as_echo_n "(cached) " >&6 |
d213114b | 20784 | else |
7d9455ce | 20785 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20786 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20787 | fi |
cd9a469c | 20788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20789 | /* end confdefs.h. */ |
20790 | ||
7d9455ce | 20791 | #ifdef HAVE_COMPLEX_H |
20792 | #include <complex.h> | |
d213114b | 20793 | #endif |
7d9455ce | 20794 | #ifdef HAVE_MATH_H |
20795 | #include <math.h> | |
20796 | #endif | |
20797 | ||
20798 | int (*ptr)() = (int (*)())nextafterl; | |
20799 | ||
d213114b | 20800 | int |
20801 | main () | |
20802 | { | |
d213114b | 20803 | return 0; |
20804 | } | |
7d9455ce | 20805 | |
d213114b | 20806 | _ACEOF |
cd9a469c | 20807 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20808 | gcc_cv_math_func_nextafterl=yes |
d213114b | 20809 | else |
7d9455ce | 20810 | gcc_cv_math_func_nextafterl=no |
d213114b | 20811 | fi |
cd9a469c | 20812 | rm -f core conftest.err conftest.$ac_objext \ |
20813 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20814 | fi |
7d9455ce | 20815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
20816 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
20817 | if test $gcc_cv_math_func_nextafterl = yes; then | |
bd647a17 | 20818 | |
6affa8e1 | 20819 | cat >>confdefs.h <<_ACEOF |
20820 | #define HAVE_NEXTAFTERL 1 | |
20821 | _ACEOF | |
7d9455ce | 20822 | |
20823 | fi | |
20824 | ||
d213114b | 20825 | |
d213114b | 20826 | |
d213114b | 20827 | |
7d9455ce | 20828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
20829 | $as_echo_n "checking for powf... " >&6; } | |
20830 | if test "${gcc_cv_math_func_powf+set}" = set; then : | |
cd9a469c | 20831 | $as_echo_n "(cached) " >&6 |
d213114b | 20832 | else |
7d9455ce | 20833 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20834 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20835 | fi |
cd9a469c | 20836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20837 | /* end confdefs.h. */ |
20838 | ||
7d9455ce | 20839 | #ifdef HAVE_COMPLEX_H |
20840 | #include <complex.h> | |
20841 | #endif | |
20842 | #ifdef HAVE_MATH_H | |
20843 | #include <math.h> | |
d213114b | 20844 | #endif |
7d9455ce | 20845 | |
20846 | int (*ptr)() = (int (*)())powf; | |
20847 | ||
d213114b | 20848 | int |
20849 | main () | |
20850 | { | |
d213114b | 20851 | return 0; |
20852 | } | |
7d9455ce | 20853 | |
d213114b | 20854 | _ACEOF |
cd9a469c | 20855 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20856 | gcc_cv_math_func_powf=yes |
d213114b | 20857 | else |
7d9455ce | 20858 | gcc_cv_math_func_powf=no |
d213114b | 20859 | fi |
cd9a469c | 20860 | rm -f core conftest.err conftest.$ac_objext \ |
20861 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20862 | fi |
7d9455ce | 20863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
20864 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
20865 | if test $gcc_cv_math_func_powf = yes; then | |
bd647a17 | 20866 | |
6affa8e1 | 20867 | cat >>confdefs.h <<_ACEOF |
20868 | #define HAVE_POWF 1 | |
20869 | _ACEOF | |
7d9455ce | 20870 | |
20871 | fi | |
d213114b | 20872 | |
d213114b | 20873 | |
d213114b | 20874 | |
7d9455ce | 20875 | |
20876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
20877 | $as_echo_n "checking for pow... " >&6; } | |
20878 | if test "${gcc_cv_math_func_pow+set}" = set; then : | |
cd9a469c | 20879 | $as_echo_n "(cached) " >&6 |
d213114b | 20880 | else |
7d9455ce | 20881 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20882 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20883 | fi |
cd9a469c | 20884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20885 | /* end confdefs.h. */ |
20886 | ||
7d9455ce | 20887 | #ifdef HAVE_COMPLEX_H |
20888 | #include <complex.h> | |
d213114b | 20889 | #endif |
7d9455ce | 20890 | #ifdef HAVE_MATH_H |
20891 | #include <math.h> | |
20892 | #endif | |
20893 | ||
20894 | int (*ptr)() = (int (*)())pow; | |
20895 | ||
d213114b | 20896 | int |
20897 | main () | |
20898 | { | |
d213114b | 20899 | return 0; |
20900 | } | |
7d9455ce | 20901 | |
d213114b | 20902 | _ACEOF |
cd9a469c | 20903 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20904 | gcc_cv_math_func_pow=yes |
d213114b | 20905 | else |
7d9455ce | 20906 | gcc_cv_math_func_pow=no |
d213114b | 20907 | fi |
cd9a469c | 20908 | rm -f core conftest.err conftest.$ac_objext \ |
20909 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20910 | fi |
7d9455ce | 20911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
20912 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
20913 | if test $gcc_cv_math_func_pow = yes; then | |
bd647a17 | 20914 | |
6affa8e1 | 20915 | cat >>confdefs.h <<_ACEOF |
20916 | #define HAVE_POW 1 | |
20917 | _ACEOF | |
d213114b | 20918 | |
7d9455ce | 20919 | fi |
d213114b | 20920 | |
d213114b | 20921 | |
7d9455ce | 20922 | |
20923 | ||
7d9455ce | 20924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
20925 | $as_echo_n "checking for cpowf... " >&6; } | |
20926 | if test "${gcc_cv_math_func_cpowf+set}" = set; then : | |
cd9a469c | 20927 | $as_echo_n "(cached) " >&6 |
d213114b | 20928 | else |
7d9455ce | 20929 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20930 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20931 | fi |
cd9a469c | 20932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20933 | /* end confdefs.h. */ |
20934 | ||
7d9455ce | 20935 | #ifdef HAVE_COMPLEX_H |
20936 | #include <complex.h> | |
d213114b | 20937 | #endif |
7d9455ce | 20938 | #ifdef HAVE_MATH_H |
20939 | #include <math.h> | |
20940 | #endif | |
20941 | ||
20942 | int (*ptr)() = (int (*)())cpowf; | |
20943 | ||
d213114b | 20944 | int |
20945 | main () | |
20946 | { | |
d213114b | 20947 | return 0; |
20948 | } | |
7d9455ce | 20949 | |
d213114b | 20950 | _ACEOF |
cd9a469c | 20951 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20952 | gcc_cv_math_func_cpowf=yes |
d213114b | 20953 | else |
7d9455ce | 20954 | gcc_cv_math_func_cpowf=no |
d213114b | 20955 | fi |
cd9a469c | 20956 | rm -f core conftest.err conftest.$ac_objext \ |
20957 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20958 | fi |
7d9455ce | 20959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
20960 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
20961 | if test $gcc_cv_math_func_cpowf = yes; then | |
bd647a17 | 20962 | |
6affa8e1 | 20963 | cat >>confdefs.h <<_ACEOF |
20964 | #define HAVE_CPOWF 1 | |
20965 | _ACEOF | |
7d9455ce | 20966 | |
20967 | fi | |
20968 | ||
d213114b | 20969 | |
d213114b | 20970 | |
d213114b | 20971 | |
7d9455ce | 20972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
20973 | $as_echo_n "checking for cpow... " >&6; } | |
20974 | if test "${gcc_cv_math_func_cpow+set}" = set; then : | |
cd9a469c | 20975 | $as_echo_n "(cached) " >&6 |
d213114b | 20976 | else |
7d9455ce | 20977 | if test x$gcc_no_link = xyes; then |
cd9a469c | 20978 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20979 | fi |
cd9a469c | 20980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20981 | /* end confdefs.h. */ |
20982 | ||
7d9455ce | 20983 | #ifdef HAVE_COMPLEX_H |
20984 | #include <complex.h> | |
20985 | #endif | |
20986 | #ifdef HAVE_MATH_H | |
20987 | #include <math.h> | |
d213114b | 20988 | #endif |
7d9455ce | 20989 | |
20990 | int (*ptr)() = (int (*)())cpow; | |
20991 | ||
d213114b | 20992 | int |
20993 | main () | |
20994 | { | |
d213114b | 20995 | return 0; |
20996 | } | |
7d9455ce | 20997 | |
d213114b | 20998 | _ACEOF |
cd9a469c | 20999 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21000 | gcc_cv_math_func_cpow=yes |
d213114b | 21001 | else |
7d9455ce | 21002 | gcc_cv_math_func_cpow=no |
d213114b | 21003 | fi |
cd9a469c | 21004 | rm -f core conftest.err conftest.$ac_objext \ |
21005 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21006 | fi |
7d9455ce | 21007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21008 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21009 | if test $gcc_cv_math_func_cpow = yes; then | |
bd647a17 | 21010 | |
6affa8e1 | 21011 | cat >>confdefs.h <<_ACEOF |
21012 | #define HAVE_CPOW 1 | |
21013 | _ACEOF | |
7d9455ce | 21014 | |
21015 | fi | |
d213114b | 21016 | |
d213114b | 21017 | |
d213114b | 21018 | |
7d9455ce | 21019 | |
21020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21021 | $as_echo_n "checking for cpowl... " >&6; } | |
21022 | if test "${gcc_cv_math_func_cpowl+set}" = set; then : | |
cd9a469c | 21023 | $as_echo_n "(cached) " >&6 |
d213114b | 21024 | else |
7d9455ce | 21025 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21026 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21027 | fi |
cd9a469c | 21028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21029 | /* end confdefs.h. */ |
21030 | ||
7d9455ce | 21031 | #ifdef HAVE_COMPLEX_H |
21032 | #include <complex.h> | |
d213114b | 21033 | #endif |
7d9455ce | 21034 | #ifdef HAVE_MATH_H |
21035 | #include <math.h> | |
21036 | #endif | |
21037 | ||
21038 | int (*ptr)() = (int (*)())cpowl; | |
21039 | ||
d213114b | 21040 | int |
21041 | main () | |
21042 | { | |
d213114b | 21043 | return 0; |
21044 | } | |
7d9455ce | 21045 | |
d213114b | 21046 | _ACEOF |
cd9a469c | 21047 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21048 | gcc_cv_math_func_cpowl=yes |
d213114b | 21049 | else |
7d9455ce | 21050 | gcc_cv_math_func_cpowl=no |
d213114b | 21051 | fi |
cd9a469c | 21052 | rm -f core conftest.err conftest.$ac_objext \ |
21053 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21054 | fi |
7d9455ce | 21055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21056 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21057 | if test $gcc_cv_math_func_cpowl = yes; then | |
bd647a17 | 21058 | |
6affa8e1 | 21059 | cat >>confdefs.h <<_ACEOF |
21060 | #define HAVE_CPOWL 1 | |
21061 | _ACEOF | |
d213114b | 21062 | |
7d9455ce | 21063 | fi |
d213114b | 21064 | |
d213114b | 21065 | |
7d9455ce | 21066 | |
21067 | ||
21068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21069 | $as_echo_n "checking for roundf... " >&6; } | |
21070 | if test "${gcc_cv_math_func_roundf+set}" = set; then : | |
cd9a469c | 21071 | $as_echo_n "(cached) " >&6 |
d213114b | 21072 | else |
7d9455ce | 21073 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21074 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21075 | fi |
cd9a469c | 21076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21077 | /* end confdefs.h. */ |
21078 | ||
7d9455ce | 21079 | #ifdef HAVE_COMPLEX_H |
21080 | #include <complex.h> | |
21081 | #endif | |
21082 | #ifdef HAVE_MATH_H | |
21083 | #include <math.h> | |
d213114b | 21084 | #endif |
7d9455ce | 21085 | |
21086 | int (*ptr)() = (int (*)())roundf; | |
21087 | ||
d213114b | 21088 | int |
21089 | main () | |
21090 | { | |
d213114b | 21091 | return 0; |
21092 | } | |
7d9455ce | 21093 | |
d213114b | 21094 | _ACEOF |
cd9a469c | 21095 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21096 | gcc_cv_math_func_roundf=yes |
d213114b | 21097 | else |
7d9455ce | 21098 | gcc_cv_math_func_roundf=no |
d213114b | 21099 | fi |
cd9a469c | 21100 | rm -f core conftest.err conftest.$ac_objext \ |
21101 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21102 | fi |
7d9455ce | 21103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21104 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21105 | if test $gcc_cv_math_func_roundf = yes; then | |
bd647a17 | 21106 | |
6affa8e1 | 21107 | cat >>confdefs.h <<_ACEOF |
21108 | #define HAVE_ROUNDF 1 | |
21109 | _ACEOF | |
7d9455ce | 21110 | |
21111 | fi | |
d213114b | 21112 | |
d213114b | 21113 | |
d213114b | 21114 | |
7d9455ce | 21115 | |
21116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21117 | $as_echo_n "checking for round... " >&6; } | |
21118 | if test "${gcc_cv_math_func_round+set}" = set; then : | |
cd9a469c | 21119 | $as_echo_n "(cached) " >&6 |
d213114b | 21120 | else |
7d9455ce | 21121 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21122 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21123 | fi |
cd9a469c | 21124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21125 | /* end confdefs.h. */ |
21126 | ||
7d9455ce | 21127 | #ifdef HAVE_COMPLEX_H |
21128 | #include <complex.h> | |
d213114b | 21129 | #endif |
7d9455ce | 21130 | #ifdef HAVE_MATH_H |
21131 | #include <math.h> | |
21132 | #endif | |
21133 | ||
21134 | int (*ptr)() = (int (*)())round; | |
21135 | ||
d213114b | 21136 | int |
21137 | main () | |
21138 | { | |
d213114b | 21139 | return 0; |
21140 | } | |
7d9455ce | 21141 | |
d213114b | 21142 | _ACEOF |
cd9a469c | 21143 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21144 | gcc_cv_math_func_round=yes |
d213114b | 21145 | else |
7d9455ce | 21146 | gcc_cv_math_func_round=no |
d213114b | 21147 | fi |
cd9a469c | 21148 | rm -f core conftest.err conftest.$ac_objext \ |
21149 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21150 | fi |
7d9455ce | 21151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21152 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21153 | if test $gcc_cv_math_func_round = yes; then | |
bd647a17 | 21154 | |
6affa8e1 | 21155 | cat >>confdefs.h <<_ACEOF |
21156 | #define HAVE_ROUND 1 | |
21157 | _ACEOF | |
7d9455ce | 21158 | |
21159 | fi | |
21160 | ||
d213114b | 21161 | |
d213114b | 21162 | |
d213114b | 21163 | |
7d9455ce | 21164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21165 | $as_echo_n "checking for roundl... " >&6; } | |
21166 | if test "${gcc_cv_math_func_roundl+set}" = set; then : | |
cd9a469c | 21167 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21168 | else |
7d9455ce | 21169 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21170 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21171 | fi |
cd9a469c | 21172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21173 | /* end confdefs.h. */ |
21174 | ||
7d9455ce | 21175 | #ifdef HAVE_COMPLEX_H |
21176 | #include <complex.h> | |
21177 | #endif | |
21178 | #ifdef HAVE_MATH_H | |
21179 | #include <math.h> | |
ef080b63 | 21180 | #endif |
7d9455ce | 21181 | |
21182 | int (*ptr)() = (int (*)())roundl; | |
21183 | ||
ef080b63 | 21184 | int |
21185 | main () | |
21186 | { | |
ef080b63 | 21187 | return 0; |
21188 | } | |
7d9455ce | 21189 | |
ef080b63 | 21190 | _ACEOF |
cd9a469c | 21191 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21192 | gcc_cv_math_func_roundl=yes |
ef080b63 | 21193 | else |
7d9455ce | 21194 | gcc_cv_math_func_roundl=no |
ef080b63 | 21195 | fi |
cd9a469c | 21196 | rm -f core conftest.err conftest.$ac_objext \ |
21197 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21198 | fi |
7d9455ce | 21199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21200 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21201 | if test $gcc_cv_math_func_roundl = yes; then | |
bd647a17 | 21202 | |
6affa8e1 | 21203 | cat >>confdefs.h <<_ACEOF |
21204 | #define HAVE_ROUNDL 1 | |
21205 | _ACEOF | |
7d9455ce | 21206 | |
21207 | fi | |
ef080b63 | 21208 | |
ef080b63 | 21209 | |
ef080b63 | 21210 | |
7d9455ce | 21211 | |
21212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21213 | $as_echo_n "checking for lroundf... " >&6; } | |
21214 | if test "${gcc_cv_math_func_lroundf+set}" = set; then : | |
cd9a469c | 21215 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21216 | else |
7d9455ce | 21217 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21218 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21219 | fi |
cd9a469c | 21220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21221 | /* end confdefs.h. */ |
21222 | ||
7d9455ce | 21223 | #ifdef HAVE_COMPLEX_H |
21224 | #include <complex.h> | |
ef080b63 | 21225 | #endif |
7d9455ce | 21226 | #ifdef HAVE_MATH_H |
21227 | #include <math.h> | |
21228 | #endif | |
21229 | ||
21230 | int (*ptr)() = (int (*)())lroundf; | |
21231 | ||
ef080b63 | 21232 | int |
21233 | main () | |
21234 | { | |
ef080b63 | 21235 | return 0; |
21236 | } | |
7d9455ce | 21237 | |
ef080b63 | 21238 | _ACEOF |
cd9a469c | 21239 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21240 | gcc_cv_math_func_lroundf=yes |
ef080b63 | 21241 | else |
7d9455ce | 21242 | gcc_cv_math_func_lroundf=no |
ef080b63 | 21243 | fi |
cd9a469c | 21244 | rm -f core conftest.err conftest.$ac_objext \ |
21245 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21246 | fi |
7d9455ce | 21247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21248 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21249 | if test $gcc_cv_math_func_lroundf = yes; then | |
bd647a17 | 21250 | |
6affa8e1 | 21251 | cat >>confdefs.h <<_ACEOF |
21252 | #define HAVE_LROUNDF 1 | |
21253 | _ACEOF | |
ef080b63 | 21254 | |
7d9455ce | 21255 | fi |
ef080b63 | 21256 | |
ef080b63 | 21257 | |
7d9455ce | 21258 | |
21259 | ||
21260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21261 | $as_echo_n "checking for lround... " >&6; } | |
21262 | if test "${gcc_cv_math_func_lround+set}" = set; then : | |
cd9a469c | 21263 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21264 | else |
7d9455ce | 21265 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21266 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21267 | fi |
cd9a469c | 21268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21269 | /* end confdefs.h. */ |
21270 | ||
7d9455ce | 21271 | #ifdef HAVE_COMPLEX_H |
21272 | #include <complex.h> | |
21273 | #endif | |
21274 | #ifdef HAVE_MATH_H | |
21275 | #include <math.h> | |
ef080b63 | 21276 | #endif |
7d9455ce | 21277 | |
21278 | int (*ptr)() = (int (*)())lround; | |
21279 | ||
ef080b63 | 21280 | int |
21281 | main () | |
21282 | { | |
ef080b63 | 21283 | return 0; |
21284 | } | |
7d9455ce | 21285 | |
ef080b63 | 21286 | _ACEOF |
cd9a469c | 21287 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21288 | gcc_cv_math_func_lround=yes |
ef080b63 | 21289 | else |
7d9455ce | 21290 | gcc_cv_math_func_lround=no |
ef080b63 | 21291 | fi |
cd9a469c | 21292 | rm -f core conftest.err conftest.$ac_objext \ |
21293 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21294 | fi |
7d9455ce | 21295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21296 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21297 | if test $gcc_cv_math_func_lround = yes; then | |
bd647a17 | 21298 | |
6affa8e1 | 21299 | cat >>confdefs.h <<_ACEOF |
21300 | #define HAVE_LROUND 1 | |
21301 | _ACEOF | |
7d9455ce | 21302 | |
21303 | fi | |
21304 | ||
ef080b63 | 21305 | |
ef080b63 | 21306 | |
ef080b63 | 21307 | |
7d9455ce | 21308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
21309 | $as_echo_n "checking for lroundl... " >&6; } | |
21310 | if test "${gcc_cv_math_func_lroundl+set}" = set; then : | |
cd9a469c | 21311 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21312 | else |
7d9455ce | 21313 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21314 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21315 | fi |
cd9a469c | 21316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21317 | /* end confdefs.h. */ |
21318 | ||
7d9455ce | 21319 | #ifdef HAVE_COMPLEX_H |
21320 | #include <complex.h> | |
21321 | #endif | |
21322 | #ifdef HAVE_MATH_H | |
21323 | #include <math.h> | |
ef080b63 | 21324 | #endif |
7d9455ce | 21325 | |
21326 | int (*ptr)() = (int (*)())lroundl; | |
21327 | ||
ef080b63 | 21328 | int |
21329 | main () | |
21330 | { | |
ef080b63 | 21331 | return 0; |
21332 | } | |
7d9455ce | 21333 | |
ef080b63 | 21334 | _ACEOF |
cd9a469c | 21335 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21336 | gcc_cv_math_func_lroundl=yes |
ef080b63 | 21337 | else |
7d9455ce | 21338 | gcc_cv_math_func_lroundl=no |
ef080b63 | 21339 | fi |
cd9a469c | 21340 | rm -f core conftest.err conftest.$ac_objext \ |
21341 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21342 | fi |
7d9455ce | 21343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
21344 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
21345 | if test $gcc_cv_math_func_lroundl = yes; then | |
bd647a17 | 21346 | |
6affa8e1 | 21347 | cat >>confdefs.h <<_ACEOF |
21348 | #define HAVE_LROUNDL 1 | |
21349 | _ACEOF | |
ef080b63 | 21350 | |
7d9455ce | 21351 | fi |
ef080b63 | 21352 | |
ef080b63 | 21353 | |
7d9455ce | 21354 | |
21355 | ||
21356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
21357 | $as_echo_n "checking for llroundf... " >&6; } | |
21358 | if test "${gcc_cv_math_func_llroundf+set}" = set; then : | |
cd9a469c | 21359 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21360 | else |
7d9455ce | 21361 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21362 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21363 | fi |
cd9a469c | 21364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21365 | /* end confdefs.h. */ |
21366 | ||
7d9455ce | 21367 | #ifdef HAVE_COMPLEX_H |
21368 | #include <complex.h> | |
ef080b63 | 21369 | #endif |
7d9455ce | 21370 | #ifdef HAVE_MATH_H |
21371 | #include <math.h> | |
21372 | #endif | |
21373 | ||
21374 | int (*ptr)() = (int (*)())llroundf; | |
21375 | ||
ef080b63 | 21376 | int |
21377 | main () | |
21378 | { | |
ef080b63 | 21379 | return 0; |
21380 | } | |
7d9455ce | 21381 | |
ef080b63 | 21382 | _ACEOF |
cd9a469c | 21383 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21384 | gcc_cv_math_func_llroundf=yes |
ef080b63 | 21385 | else |
7d9455ce | 21386 | gcc_cv_math_func_llroundf=no |
ef080b63 | 21387 | fi |
cd9a469c | 21388 | rm -f core conftest.err conftest.$ac_objext \ |
21389 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21390 | fi |
7d9455ce | 21391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
21392 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
21393 | if test $gcc_cv_math_func_llroundf = yes; then | |
bd647a17 | 21394 | |
6affa8e1 | 21395 | cat >>confdefs.h <<_ACEOF |
21396 | #define HAVE_LLROUNDF 1 | |
21397 | _ACEOF | |
ef080b63 | 21398 | |
7d9455ce | 21399 | fi |
ef080b63 | 21400 | |
ef080b63 | 21401 | |
7d9455ce | 21402 | |
21403 | ||
21404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
21405 | $as_echo_n "checking for llround... " >&6; } | |
21406 | if test "${gcc_cv_math_func_llround+set}" = set; then : | |
cd9a469c | 21407 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21408 | else |
7d9455ce | 21409 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21410 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21411 | fi |
cd9a469c | 21412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21413 | /* end confdefs.h. */ |
21414 | ||
7d9455ce | 21415 | #ifdef HAVE_COMPLEX_H |
21416 | #include <complex.h> | |
21417 | #endif | |
21418 | #ifdef HAVE_MATH_H | |
21419 | #include <math.h> | |
ef080b63 | 21420 | #endif |
7d9455ce | 21421 | |
21422 | int (*ptr)() = (int (*)())llround; | |
21423 | ||
ef080b63 | 21424 | int |
21425 | main () | |
21426 | { | |
ef080b63 | 21427 | return 0; |
21428 | } | |
7d9455ce | 21429 | |
ef080b63 | 21430 | _ACEOF |
cd9a469c | 21431 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21432 | gcc_cv_math_func_llround=yes |
ef080b63 | 21433 | else |
7d9455ce | 21434 | gcc_cv_math_func_llround=no |
ef080b63 | 21435 | fi |
cd9a469c | 21436 | rm -f core conftest.err conftest.$ac_objext \ |
21437 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21438 | fi |
7d9455ce | 21439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
21440 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
21441 | if test $gcc_cv_math_func_llround = yes; then | |
bd647a17 | 21442 | |
6affa8e1 | 21443 | cat >>confdefs.h <<_ACEOF |
21444 | #define HAVE_LLROUND 1 | |
21445 | _ACEOF | |
7d9455ce | 21446 | |
21447 | fi | |
21448 | ||
ef080b63 | 21449 | |
ef080b63 | 21450 | |
ef080b63 | 21451 | |
7d9455ce | 21452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
21453 | $as_echo_n "checking for llroundl... " >&6; } | |
21454 | if test "${gcc_cv_math_func_llroundl+set}" = set; then : | |
cd9a469c | 21455 | $as_echo_n "(cached) " >&6 |
d213114b | 21456 | else |
7d9455ce | 21457 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21458 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21459 | fi |
cd9a469c | 21460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21461 | /* end confdefs.h. */ |
21462 | ||
7d9455ce | 21463 | #ifdef HAVE_COMPLEX_H |
21464 | #include <complex.h> | |
21465 | #endif | |
21466 | #ifdef HAVE_MATH_H | |
21467 | #include <math.h> | |
d213114b | 21468 | #endif |
7d9455ce | 21469 | |
21470 | int (*ptr)() = (int (*)())llroundl; | |
21471 | ||
d213114b | 21472 | int |
21473 | main () | |
21474 | { | |
d213114b | 21475 | return 0; |
21476 | } | |
7d9455ce | 21477 | |
d213114b | 21478 | _ACEOF |
cd9a469c | 21479 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21480 | gcc_cv_math_func_llroundl=yes |
d213114b | 21481 | else |
7d9455ce | 21482 | gcc_cv_math_func_llroundl=no |
d213114b | 21483 | fi |
cd9a469c | 21484 | rm -f core conftest.err conftest.$ac_objext \ |
21485 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21486 | fi |
7d9455ce | 21487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
21488 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
21489 | if test $gcc_cv_math_func_llroundl = yes; then | |
bd647a17 | 21490 | |
6affa8e1 | 21491 | cat >>confdefs.h <<_ACEOF |
21492 | #define HAVE_LLROUNDL 1 | |
21493 | _ACEOF | |
d213114b | 21494 | |
7d9455ce | 21495 | fi |
d213114b | 21496 | |
d213114b | 21497 | |
7d9455ce | 21498 | |
21499 | ||
21500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
21501 | $as_echo_n "checking for scalbnf... " >&6; } | |
21502 | if test "${gcc_cv_math_func_scalbnf+set}" = set; then : | |
cd9a469c | 21503 | $as_echo_n "(cached) " >&6 |
d213114b | 21504 | else |
7d9455ce | 21505 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21506 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21507 | fi |
cd9a469c | 21508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21509 | /* end confdefs.h. */ |
21510 | ||
7d9455ce | 21511 | #ifdef HAVE_COMPLEX_H |
21512 | #include <complex.h> | |
d213114b | 21513 | #endif |
7d9455ce | 21514 | #ifdef HAVE_MATH_H |
21515 | #include <math.h> | |
21516 | #endif | |
21517 | ||
21518 | int (*ptr)() = (int (*)())scalbnf; | |
21519 | ||
d213114b | 21520 | int |
21521 | main () | |
21522 | { | |
d213114b | 21523 | return 0; |
21524 | } | |
7d9455ce | 21525 | |
d213114b | 21526 | _ACEOF |
cd9a469c | 21527 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21528 | gcc_cv_math_func_scalbnf=yes |
d213114b | 21529 | else |
7d9455ce | 21530 | gcc_cv_math_func_scalbnf=no |
d213114b | 21531 | fi |
cd9a469c | 21532 | rm -f core conftest.err conftest.$ac_objext \ |
21533 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21534 | fi |
7d9455ce | 21535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
21536 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
21537 | if test $gcc_cv_math_func_scalbnf = yes; then | |
bd647a17 | 21538 | |
6affa8e1 | 21539 | cat >>confdefs.h <<_ACEOF |
21540 | #define HAVE_SCALBNF 1 | |
21541 | _ACEOF | |
d213114b | 21542 | |
7d9455ce | 21543 | fi |
d213114b | 21544 | |
d213114b | 21545 | |
7d9455ce | 21546 | |
21547 | ||
21548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
21549 | $as_echo_n "checking for scalbn... " >&6; } | |
21550 | if test "${gcc_cv_math_func_scalbn+set}" = set; then : | |
cd9a469c | 21551 | $as_echo_n "(cached) " >&6 |
d213114b | 21552 | else |
7d9455ce | 21553 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21554 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21555 | fi |
cd9a469c | 21556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21557 | /* end confdefs.h. */ |
21558 | ||
7d9455ce | 21559 | #ifdef HAVE_COMPLEX_H |
21560 | #include <complex.h> | |
21561 | #endif | |
21562 | #ifdef HAVE_MATH_H | |
21563 | #include <math.h> | |
d213114b | 21564 | #endif |
7d9455ce | 21565 | |
21566 | int (*ptr)() = (int (*)())scalbn; | |
21567 | ||
d213114b | 21568 | int |
21569 | main () | |
21570 | { | |
d213114b | 21571 | return 0; |
21572 | } | |
7d9455ce | 21573 | |
d213114b | 21574 | _ACEOF |
cd9a469c | 21575 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21576 | gcc_cv_math_func_scalbn=yes |
d213114b | 21577 | else |
7d9455ce | 21578 | gcc_cv_math_func_scalbn=no |
d213114b | 21579 | fi |
cd9a469c | 21580 | rm -f core conftest.err conftest.$ac_objext \ |
21581 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21582 | fi |
7d9455ce | 21583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
21584 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
21585 | if test $gcc_cv_math_func_scalbn = yes; then | |
bd647a17 | 21586 | |
6affa8e1 | 21587 | cat >>confdefs.h <<_ACEOF |
21588 | #define HAVE_SCALBN 1 | |
21589 | _ACEOF | |
7d9455ce | 21590 | |
21591 | fi | |
21592 | ||
d213114b | 21593 | |
d213114b | 21594 | |
d213114b | 21595 | |
7d9455ce | 21596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
21597 | $as_echo_n "checking for scalbnl... " >&6; } | |
21598 | if test "${gcc_cv_math_func_scalbnl+set}" = set; then : | |
cd9a469c | 21599 | $as_echo_n "(cached) " >&6 |
d213114b | 21600 | else |
7d9455ce | 21601 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21602 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21603 | fi |
cd9a469c | 21604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21605 | /* end confdefs.h. */ |
21606 | ||
7d9455ce | 21607 | #ifdef HAVE_COMPLEX_H |
21608 | #include <complex.h> | |
21609 | #endif | |
21610 | #ifdef HAVE_MATH_H | |
21611 | #include <math.h> | |
d213114b | 21612 | #endif |
7d9455ce | 21613 | |
21614 | int (*ptr)() = (int (*)())scalbnl; | |
21615 | ||
d213114b | 21616 | int |
21617 | main () | |
21618 | { | |
d213114b | 21619 | return 0; |
21620 | } | |
7d9455ce | 21621 | |
d213114b | 21622 | _ACEOF |
cd9a469c | 21623 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21624 | gcc_cv_math_func_scalbnl=yes |
d213114b | 21625 | else |
7d9455ce | 21626 | gcc_cv_math_func_scalbnl=no |
d213114b | 21627 | fi |
cd9a469c | 21628 | rm -f core conftest.err conftest.$ac_objext \ |
21629 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21630 | fi |
7d9455ce | 21631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
21632 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
21633 | if test $gcc_cv_math_func_scalbnl = yes; then | |
bd647a17 | 21634 | |
6affa8e1 | 21635 | cat >>confdefs.h <<_ACEOF |
21636 | #define HAVE_SCALBNL 1 | |
21637 | _ACEOF | |
d213114b | 21638 | |
7d9455ce | 21639 | fi |
d213114b | 21640 | |
d213114b | 21641 | |
7d9455ce | 21642 | |
21643 | ||
21644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
21645 | $as_echo_n "checking for sinf... " >&6; } | |
21646 | if test "${gcc_cv_math_func_sinf+set}" = set; then : | |
cd9a469c | 21647 | $as_echo_n "(cached) " >&6 |
d213114b | 21648 | else |
7d9455ce | 21649 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21650 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21651 | fi |
cd9a469c | 21652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21653 | /* end confdefs.h. */ |
21654 | ||
7d9455ce | 21655 | #ifdef HAVE_COMPLEX_H |
21656 | #include <complex.h> | |
d213114b | 21657 | #endif |
7d9455ce | 21658 | #ifdef HAVE_MATH_H |
21659 | #include <math.h> | |
21660 | #endif | |
21661 | ||
21662 | int (*ptr)() = (int (*)())sinf; | |
21663 | ||
d213114b | 21664 | int |
21665 | main () | |
21666 | { | |
d213114b | 21667 | return 0; |
21668 | } | |
7d9455ce | 21669 | |
d213114b | 21670 | _ACEOF |
cd9a469c | 21671 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21672 | gcc_cv_math_func_sinf=yes |
d213114b | 21673 | else |
7d9455ce | 21674 | gcc_cv_math_func_sinf=no |
d213114b | 21675 | fi |
cd9a469c | 21676 | rm -f core conftest.err conftest.$ac_objext \ |
21677 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21678 | fi |
7d9455ce | 21679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
21680 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
21681 | if test $gcc_cv_math_func_sinf = yes; then | |
bd647a17 | 21682 | |
6affa8e1 | 21683 | cat >>confdefs.h <<_ACEOF |
21684 | #define HAVE_SINF 1 | |
21685 | _ACEOF | |
d213114b | 21686 | |
7d9455ce | 21687 | fi |
d213114b | 21688 | |
d213114b | 21689 | |
7d9455ce | 21690 | |
21691 | ||
21692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
21693 | $as_echo_n "checking for sin... " >&6; } | |
21694 | if test "${gcc_cv_math_func_sin+set}" = set; then : | |
cd9a469c | 21695 | $as_echo_n "(cached) " >&6 |
d213114b | 21696 | else |
7d9455ce | 21697 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21698 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21699 | fi |
cd9a469c | 21700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21701 | /* end confdefs.h. */ |
21702 | ||
7d9455ce | 21703 | #ifdef HAVE_COMPLEX_H |
21704 | #include <complex.h> | |
d213114b | 21705 | #endif |
7d9455ce | 21706 | #ifdef HAVE_MATH_H |
21707 | #include <math.h> | |
21708 | #endif | |
21709 | ||
21710 | int (*ptr)() = (int (*)())sin; | |
21711 | ||
d213114b | 21712 | int |
21713 | main () | |
21714 | { | |
d213114b | 21715 | return 0; |
21716 | } | |
7d9455ce | 21717 | |
d213114b | 21718 | _ACEOF |
cd9a469c | 21719 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21720 | gcc_cv_math_func_sin=yes |
d213114b | 21721 | else |
7d9455ce | 21722 | gcc_cv_math_func_sin=no |
d213114b | 21723 | fi |
cd9a469c | 21724 | rm -f core conftest.err conftest.$ac_objext \ |
21725 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21726 | fi |
7d9455ce | 21727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
21728 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
21729 | if test $gcc_cv_math_func_sin = yes; then | |
bd647a17 | 21730 | |
6affa8e1 | 21731 | cat >>confdefs.h <<_ACEOF |
21732 | #define HAVE_SIN 1 | |
21733 | _ACEOF | |
7d9455ce | 21734 | |
21735 | fi | |
21736 | ||
d213114b | 21737 | |
d213114b | 21738 | |
d213114b | 21739 | |
7d9455ce | 21740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
21741 | $as_echo_n "checking for sinl... " >&6; } | |
21742 | if test "${gcc_cv_math_func_sinl+set}" = set; then : | |
cd9a469c | 21743 | $as_echo_n "(cached) " >&6 |
d213114b | 21744 | else |
7d9455ce | 21745 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21746 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21747 | fi |
cd9a469c | 21748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21749 | /* end confdefs.h. */ |
21750 | ||
7d9455ce | 21751 | #ifdef HAVE_COMPLEX_H |
21752 | #include <complex.h> | |
d213114b | 21753 | #endif |
7d9455ce | 21754 | #ifdef HAVE_MATH_H |
21755 | #include <math.h> | |
21756 | #endif | |
21757 | ||
21758 | int (*ptr)() = (int (*)())sinl; | |
21759 | ||
d213114b | 21760 | int |
21761 | main () | |
21762 | { | |
cd9a469c | 21763 | return 0; |
21764 | } | |
7d9455ce | 21765 | |
cd9a469c | 21766 | _ACEOF |
21767 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 21768 | gcc_cv_math_func_sinl=yes |
d213114b | 21769 | else |
7d9455ce | 21770 | gcc_cv_math_func_sinl=no |
d213114b | 21771 | fi |
cd9a469c | 21772 | rm -f core conftest.err conftest.$ac_objext \ |
21773 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21774 | fi |
7d9455ce | 21775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
21776 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
21777 | if test $gcc_cv_math_func_sinl = yes; then | |
bd647a17 | 21778 | |
6affa8e1 | 21779 | cat >>confdefs.h <<_ACEOF |
21780 | #define HAVE_SINL 1 | |
21781 | _ACEOF | |
7d9455ce | 21782 | |
21783 | fi | |
d213114b | 21784 | |
d213114b | 21785 | |
d213114b | 21786 | |
7d9455ce | 21787 | |
21788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
21789 | $as_echo_n "checking for csinf... " >&6; } | |
21790 | if test "${gcc_cv_math_func_csinf+set}" = set; then : | |
cd9a469c | 21791 | $as_echo_n "(cached) " >&6 |
d213114b | 21792 | else |
7d9455ce | 21793 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21794 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21795 | fi |
cd9a469c | 21796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21797 | /* end confdefs.h. */ |
21798 | ||
7d9455ce | 21799 | #ifdef HAVE_COMPLEX_H |
21800 | #include <complex.h> | |
21801 | #endif | |
21802 | #ifdef HAVE_MATH_H | |
21803 | #include <math.h> | |
d213114b | 21804 | #endif |
7d9455ce | 21805 | |
21806 | int (*ptr)() = (int (*)())csinf; | |
21807 | ||
d213114b | 21808 | int |
21809 | main () | |
21810 | { | |
d213114b | 21811 | return 0; |
21812 | } | |
7d9455ce | 21813 | |
d213114b | 21814 | _ACEOF |
cd9a469c | 21815 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21816 | gcc_cv_math_func_csinf=yes |
d213114b | 21817 | else |
7d9455ce | 21818 | gcc_cv_math_func_csinf=no |
d213114b | 21819 | fi |
cd9a469c | 21820 | rm -f core conftest.err conftest.$ac_objext \ |
21821 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21822 | fi |
7d9455ce | 21823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
21824 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
21825 | if test $gcc_cv_math_func_csinf = yes; then | |
bd647a17 | 21826 | |
6affa8e1 | 21827 | cat >>confdefs.h <<_ACEOF |
21828 | #define HAVE_CSINF 1 | |
21829 | _ACEOF | |
d213114b | 21830 | |
7d9455ce | 21831 | fi |
d213114b | 21832 | |
d213114b | 21833 | |
7d9455ce | 21834 | |
21835 | ||
21836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
21837 | $as_echo_n "checking for csin... " >&6; } | |
21838 | if test "${gcc_cv_math_func_csin+set}" = set; then : | |
cd9a469c | 21839 | $as_echo_n "(cached) " >&6 |
d213114b | 21840 | else |
7d9455ce | 21841 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21842 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21843 | fi |
cd9a469c | 21844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21845 | /* end confdefs.h. */ |
21846 | ||
7d9455ce | 21847 | #ifdef HAVE_COMPLEX_H |
21848 | #include <complex.h> | |
d213114b | 21849 | #endif |
7d9455ce | 21850 | #ifdef HAVE_MATH_H |
21851 | #include <math.h> | |
21852 | #endif | |
21853 | ||
21854 | int (*ptr)() = (int (*)())csin; | |
21855 | ||
d213114b | 21856 | int |
21857 | main () | |
21858 | { | |
d213114b | 21859 | return 0; |
21860 | } | |
7d9455ce | 21861 | |
d213114b | 21862 | _ACEOF |
cd9a469c | 21863 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21864 | gcc_cv_math_func_csin=yes |
d213114b | 21865 | else |
7d9455ce | 21866 | gcc_cv_math_func_csin=no |
d213114b | 21867 | fi |
cd9a469c | 21868 | rm -f core conftest.err conftest.$ac_objext \ |
21869 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21870 | fi |
7d9455ce | 21871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
21872 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
21873 | if test $gcc_cv_math_func_csin = yes; then | |
bd647a17 | 21874 | |
6affa8e1 | 21875 | cat >>confdefs.h <<_ACEOF |
21876 | #define HAVE_CSIN 1 | |
21877 | _ACEOF | |
7d9455ce | 21878 | |
21879 | fi | |
21880 | ||
d213114b | 21881 | |
d213114b | 21882 | |
d213114b | 21883 | |
7d9455ce | 21884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
21885 | $as_echo_n "checking for csinl... " >&6; } | |
21886 | if test "${gcc_cv_math_func_csinl+set}" = set; then : | |
cd9a469c | 21887 | $as_echo_n "(cached) " >&6 |
d213114b | 21888 | else |
7d9455ce | 21889 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21890 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21891 | fi |
cd9a469c | 21892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21893 | /* end confdefs.h. */ |
21894 | ||
7d9455ce | 21895 | #ifdef HAVE_COMPLEX_H |
21896 | #include <complex.h> | |
d213114b | 21897 | #endif |
7d9455ce | 21898 | #ifdef HAVE_MATH_H |
21899 | #include <math.h> | |
21900 | #endif | |
21901 | ||
21902 | int (*ptr)() = (int (*)())csinl; | |
21903 | ||
d213114b | 21904 | int |
21905 | main () | |
21906 | { | |
d213114b | 21907 | return 0; |
21908 | } | |
7d9455ce | 21909 | |
d213114b | 21910 | _ACEOF |
cd9a469c | 21911 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21912 | gcc_cv_math_func_csinl=yes |
d213114b | 21913 | else |
7d9455ce | 21914 | gcc_cv_math_func_csinl=no |
d213114b | 21915 | fi |
cd9a469c | 21916 | rm -f core conftest.err conftest.$ac_objext \ |
21917 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21918 | fi |
7d9455ce | 21919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
21920 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
21921 | if test $gcc_cv_math_func_csinl = yes; then | |
bd647a17 | 21922 | |
6affa8e1 | 21923 | cat >>confdefs.h <<_ACEOF |
21924 | #define HAVE_CSINL 1 | |
21925 | _ACEOF | |
7d9455ce | 21926 | |
21927 | fi | |
d213114b | 21928 | |
d213114b | 21929 | |
d213114b | 21930 | |
7d9455ce | 21931 | |
21932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
21933 | $as_echo_n "checking for sinhf... " >&6; } | |
21934 | if test "${gcc_cv_math_func_sinhf+set}" = set; then : | |
cd9a469c | 21935 | $as_echo_n "(cached) " >&6 |
d213114b | 21936 | else |
7d9455ce | 21937 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21938 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21939 | fi |
cd9a469c | 21940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21941 | /* end confdefs.h. */ |
21942 | ||
7d9455ce | 21943 | #ifdef HAVE_COMPLEX_H |
21944 | #include <complex.h> | |
21945 | #endif | |
21946 | #ifdef HAVE_MATH_H | |
21947 | #include <math.h> | |
d213114b | 21948 | #endif |
7d9455ce | 21949 | |
21950 | int (*ptr)() = (int (*)())sinhf; | |
21951 | ||
d213114b | 21952 | int |
21953 | main () | |
21954 | { | |
d213114b | 21955 | return 0; |
21956 | } | |
7d9455ce | 21957 | |
d213114b | 21958 | _ACEOF |
cd9a469c | 21959 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21960 | gcc_cv_math_func_sinhf=yes |
d213114b | 21961 | else |
7d9455ce | 21962 | gcc_cv_math_func_sinhf=no |
d213114b | 21963 | fi |
cd9a469c | 21964 | rm -f core conftest.err conftest.$ac_objext \ |
21965 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21966 | fi |
7d9455ce | 21967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
21968 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
21969 | if test $gcc_cv_math_func_sinhf = yes; then | |
bd647a17 | 21970 | |
6affa8e1 | 21971 | cat >>confdefs.h <<_ACEOF |
21972 | #define HAVE_SINHF 1 | |
21973 | _ACEOF | |
d213114b | 21974 | |
7d9455ce | 21975 | fi |
d213114b | 21976 | |
d213114b | 21977 | |
7d9455ce | 21978 | |
21979 | ||
21980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
21981 | $as_echo_n "checking for sinh... " >&6; } | |
21982 | if test "${gcc_cv_math_func_sinh+set}" = set; then : | |
cd9a469c | 21983 | $as_echo_n "(cached) " >&6 |
d213114b | 21984 | else |
7d9455ce | 21985 | if test x$gcc_no_link = xyes; then |
cd9a469c | 21986 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21987 | fi |
cd9a469c | 21988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21989 | /* end confdefs.h. */ |
21990 | ||
7d9455ce | 21991 | #ifdef HAVE_COMPLEX_H |
21992 | #include <complex.h> | |
d213114b | 21993 | #endif |
7d9455ce | 21994 | #ifdef HAVE_MATH_H |
21995 | #include <math.h> | |
21996 | #endif | |
21997 | ||
21998 | int (*ptr)() = (int (*)())sinh; | |
21999 | ||
d213114b | 22000 | int |
22001 | main () | |
22002 | { | |
d213114b | 22003 | return 0; |
22004 | } | |
7d9455ce | 22005 | |
d213114b | 22006 | _ACEOF |
cd9a469c | 22007 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22008 | gcc_cv_math_func_sinh=yes |
d213114b | 22009 | else |
7d9455ce | 22010 | gcc_cv_math_func_sinh=no |
d213114b | 22011 | fi |
cd9a469c | 22012 | rm -f core conftest.err conftest.$ac_objext \ |
22013 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22014 | fi |
7d9455ce | 22015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22016 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22017 | if test $gcc_cv_math_func_sinh = yes; then | |
bd647a17 | 22018 | |
6affa8e1 | 22019 | cat >>confdefs.h <<_ACEOF |
22020 | #define HAVE_SINH 1 | |
22021 | _ACEOF | |
7d9455ce | 22022 | |
22023 | fi | |
22024 | ||
d213114b | 22025 | |
d213114b | 22026 | |
d213114b | 22027 | |
7d9455ce | 22028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22029 | $as_echo_n "checking for sinhl... " >&6; } | |
22030 | if test "${gcc_cv_math_func_sinhl+set}" = set; then : | |
cd9a469c | 22031 | $as_echo_n "(cached) " >&6 |
d213114b | 22032 | else |
7d9455ce | 22033 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22034 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22035 | fi |
cd9a469c | 22036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22037 | /* end confdefs.h. */ |
22038 | ||
7d9455ce | 22039 | #ifdef HAVE_COMPLEX_H |
22040 | #include <complex.h> | |
d213114b | 22041 | #endif |
7d9455ce | 22042 | #ifdef HAVE_MATH_H |
22043 | #include <math.h> | |
22044 | #endif | |
22045 | ||
22046 | int (*ptr)() = (int (*)())sinhl; | |
22047 | ||
d213114b | 22048 | int |
22049 | main () | |
22050 | { | |
d213114b | 22051 | return 0; |
22052 | } | |
7d9455ce | 22053 | |
d213114b | 22054 | _ACEOF |
cd9a469c | 22055 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22056 | gcc_cv_math_func_sinhl=yes |
d213114b | 22057 | else |
7d9455ce | 22058 | gcc_cv_math_func_sinhl=no |
d213114b | 22059 | fi |
cd9a469c | 22060 | rm -f core conftest.err conftest.$ac_objext \ |
22061 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22062 | fi |
7d9455ce | 22063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22064 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22065 | if test $gcc_cv_math_func_sinhl = yes; then | |
bd647a17 | 22066 | |
6affa8e1 | 22067 | cat >>confdefs.h <<_ACEOF |
22068 | #define HAVE_SINHL 1 | |
22069 | _ACEOF | |
7d9455ce | 22070 | |
22071 | fi | |
d213114b | 22072 | |
d213114b | 22073 | |
d213114b | 22074 | |
7d9455ce | 22075 | |
22076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22077 | $as_echo_n "checking for csinhf... " >&6; } | |
22078 | if test "${gcc_cv_math_func_csinhf+set}" = set; then : | |
cd9a469c | 22079 | $as_echo_n "(cached) " >&6 |
d213114b | 22080 | else |
7d9455ce | 22081 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22082 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22083 | fi |
cd9a469c | 22084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22085 | /* end confdefs.h. */ |
22086 | ||
7d9455ce | 22087 | #ifdef HAVE_COMPLEX_H |
22088 | #include <complex.h> | |
22089 | #endif | |
22090 | #ifdef HAVE_MATH_H | |
22091 | #include <math.h> | |
d213114b | 22092 | #endif |
7d9455ce | 22093 | |
22094 | int (*ptr)() = (int (*)())csinhf; | |
22095 | ||
d213114b | 22096 | int |
22097 | main () | |
22098 | { | |
d213114b | 22099 | return 0; |
22100 | } | |
7d9455ce | 22101 | |
d213114b | 22102 | _ACEOF |
cd9a469c | 22103 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22104 | gcc_cv_math_func_csinhf=yes |
d213114b | 22105 | else |
7d9455ce | 22106 | gcc_cv_math_func_csinhf=no |
d213114b | 22107 | fi |
cd9a469c | 22108 | rm -f core conftest.err conftest.$ac_objext \ |
22109 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22110 | fi |
7d9455ce | 22111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22112 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22113 | if test $gcc_cv_math_func_csinhf = yes; then | |
bd647a17 | 22114 | |
6affa8e1 | 22115 | cat >>confdefs.h <<_ACEOF |
22116 | #define HAVE_CSINHF 1 | |
22117 | _ACEOF | |
d213114b | 22118 | |
7d9455ce | 22119 | fi |
d213114b | 22120 | |
d213114b | 22121 | |
7d9455ce | 22122 | |
22123 | ||
22124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22125 | $as_echo_n "checking for csinh... " >&6; } | |
22126 | if test "${gcc_cv_math_func_csinh+set}" = set; then : | |
cd9a469c | 22127 | $as_echo_n "(cached) " >&6 |
d213114b | 22128 | else |
7d9455ce | 22129 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22130 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22131 | fi |
cd9a469c | 22132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22133 | /* end confdefs.h. */ |
22134 | ||
7d9455ce | 22135 | #ifdef HAVE_COMPLEX_H |
22136 | #include <complex.h> | |
d213114b | 22137 | #endif |
7d9455ce | 22138 | #ifdef HAVE_MATH_H |
22139 | #include <math.h> | |
22140 | #endif | |
22141 | ||
22142 | int (*ptr)() = (int (*)())csinh; | |
22143 | ||
d213114b | 22144 | int |
22145 | main () | |
22146 | { | |
d213114b | 22147 | return 0; |
22148 | } | |
7d9455ce | 22149 | |
d213114b | 22150 | _ACEOF |
cd9a469c | 22151 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22152 | gcc_cv_math_func_csinh=yes |
d213114b | 22153 | else |
7d9455ce | 22154 | gcc_cv_math_func_csinh=no |
d213114b | 22155 | fi |
cd9a469c | 22156 | rm -f core conftest.err conftest.$ac_objext \ |
22157 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22158 | fi |
7d9455ce | 22159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22160 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22161 | if test $gcc_cv_math_func_csinh = yes; then | |
bd647a17 | 22162 | |
6affa8e1 | 22163 | cat >>confdefs.h <<_ACEOF |
22164 | #define HAVE_CSINH 1 | |
22165 | _ACEOF | |
7d9455ce | 22166 | |
22167 | fi | |
22168 | ||
d213114b | 22169 | |
d213114b | 22170 | |
d213114b | 22171 | |
7d9455ce | 22172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22173 | $as_echo_n "checking for csinhl... " >&6; } | |
22174 | if test "${gcc_cv_math_func_csinhl+set}" = set; then : | |
cd9a469c | 22175 | $as_echo_n "(cached) " >&6 |
d213114b | 22176 | else |
7d9455ce | 22177 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22178 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22179 | fi |
cd9a469c | 22180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22181 | /* end confdefs.h. */ |
22182 | ||
7d9455ce | 22183 | #ifdef HAVE_COMPLEX_H |
22184 | #include <complex.h> | |
d213114b | 22185 | #endif |
7d9455ce | 22186 | #ifdef HAVE_MATH_H |
22187 | #include <math.h> | |
22188 | #endif | |
22189 | ||
22190 | int (*ptr)() = (int (*)())csinhl; | |
22191 | ||
d213114b | 22192 | int |
22193 | main () | |
22194 | { | |
d213114b | 22195 | return 0; |
22196 | } | |
7d9455ce | 22197 | |
d213114b | 22198 | _ACEOF |
cd9a469c | 22199 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22200 | gcc_cv_math_func_csinhl=yes |
d213114b | 22201 | else |
7d9455ce | 22202 | gcc_cv_math_func_csinhl=no |
d213114b | 22203 | fi |
cd9a469c | 22204 | rm -f core conftest.err conftest.$ac_objext \ |
22205 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22206 | fi |
7d9455ce | 22207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22208 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22209 | if test $gcc_cv_math_func_csinhl = yes; then | |
bd647a17 | 22210 | |
6affa8e1 | 22211 | cat >>confdefs.h <<_ACEOF |
22212 | #define HAVE_CSINHL 1 | |
22213 | _ACEOF | |
7d9455ce | 22214 | |
22215 | fi | |
d213114b | 22216 | |
d213114b | 22217 | |
d213114b | 22218 | |
7d9455ce | 22219 | |
22220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22221 | $as_echo_n "checking for sqrtf... " >&6; } | |
22222 | if test "${gcc_cv_math_func_sqrtf+set}" = set; then : | |
cd9a469c | 22223 | $as_echo_n "(cached) " >&6 |
d213114b | 22224 | else |
7d9455ce | 22225 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22226 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22227 | fi |
cd9a469c | 22228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22229 | /* end confdefs.h. */ |
22230 | ||
7d9455ce | 22231 | #ifdef HAVE_COMPLEX_H |
22232 | #include <complex.h> | |
22233 | #endif | |
22234 | #ifdef HAVE_MATH_H | |
22235 | #include <math.h> | |
d213114b | 22236 | #endif |
7d9455ce | 22237 | |
22238 | int (*ptr)() = (int (*)())sqrtf; | |
22239 | ||
d213114b | 22240 | int |
22241 | main () | |
22242 | { | |
d213114b | 22243 | return 0; |
22244 | } | |
7d9455ce | 22245 | |
d213114b | 22246 | _ACEOF |
cd9a469c | 22247 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22248 | gcc_cv_math_func_sqrtf=yes |
d213114b | 22249 | else |
7d9455ce | 22250 | gcc_cv_math_func_sqrtf=no |
d213114b | 22251 | fi |
cd9a469c | 22252 | rm -f core conftest.err conftest.$ac_objext \ |
22253 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22254 | fi |
7d9455ce | 22255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22256 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22257 | if test $gcc_cv_math_func_sqrtf = yes; then | |
bd647a17 | 22258 | |
6affa8e1 | 22259 | cat >>confdefs.h <<_ACEOF |
22260 | #define HAVE_SQRTF 1 | |
22261 | _ACEOF | |
7d9455ce | 22262 | |
22263 | fi | |
d213114b | 22264 | |
d213114b | 22265 | |
7d9455ce | 22266 | |
22267 | ||
22268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22269 | $as_echo_n "checking for sqrt... " >&6; } | |
22270 | if test "${gcc_cv_math_func_sqrt+set}" = set; then : | |
22271 | $as_echo_n "(cached) " >&6 | |
22272 | else | |
22273 | if test x$gcc_no_link = xyes; then | |
22274 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
d213114b | 22275 | fi |
7d9455ce | 22276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22277 | /* end confdefs.h. */ | |
22278 | ||
22279 | #ifdef HAVE_COMPLEX_H | |
22280 | #include <complex.h> | |
22281 | #endif | |
22282 | #ifdef HAVE_MATH_H | |
22283 | #include <math.h> | |
22284 | #endif | |
22285 | ||
22286 | int (*ptr)() = (int (*)())sqrt; | |
22287 | ||
22288 | int | |
22289 | main () | |
22290 | { | |
22291 | return 0; | |
22292 | } | |
22293 | ||
22294 | _ACEOF | |
22295 | if ac_fn_c_try_link "$LINENO"; then : | |
22296 | gcc_cv_math_func_sqrt=yes | |
22297 | else | |
22298 | gcc_cv_math_func_sqrt=no | |
22299 | fi | |
22300 | rm -f core conftest.err conftest.$ac_objext \ | |
22301 | conftest$ac_exeext conftest.$ac_ext | |
22302 | fi | |
22303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
22304 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
22305 | if test $gcc_cv_math_func_sqrt = yes; then | |
bd647a17 | 22306 | |
6affa8e1 | 22307 | cat >>confdefs.h <<_ACEOF |
22308 | #define HAVE_SQRT 1 | |
22309 | _ACEOF | |
7d9455ce | 22310 | |
22311 | fi | |
d213114b | 22312 | |
7d9455ce | 22313 | |
22314 | ||
22315 | ||
22316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
22317 | $as_echo_n "checking for sqrtl... " >&6; } | |
22318 | if test "${gcc_cv_math_func_sqrtl+set}" = set; then : | |
cd9a469c | 22319 | $as_echo_n "(cached) " >&6 |
d213114b | 22320 | else |
7d9455ce | 22321 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22322 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22323 | fi |
cd9a469c | 22324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22325 | /* end confdefs.h. */ |
22326 | ||
7d9455ce | 22327 | #ifdef HAVE_COMPLEX_H |
22328 | #include <complex.h> | |
22329 | #endif | |
22330 | #ifdef HAVE_MATH_H | |
22331 | #include <math.h> | |
d213114b | 22332 | #endif |
7d9455ce | 22333 | |
22334 | int (*ptr)() = (int (*)())sqrtl; | |
22335 | ||
d213114b | 22336 | int |
22337 | main () | |
22338 | { | |
d213114b | 22339 | return 0; |
22340 | } | |
7d9455ce | 22341 | |
d213114b | 22342 | _ACEOF |
cd9a469c | 22343 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22344 | gcc_cv_math_func_sqrtl=yes |
d213114b | 22345 | else |
7d9455ce | 22346 | gcc_cv_math_func_sqrtl=no |
d213114b | 22347 | fi |
cd9a469c | 22348 | rm -f core conftest.err conftest.$ac_objext \ |
22349 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22350 | fi |
7d9455ce | 22351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
22352 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
22353 | if test $gcc_cv_math_func_sqrtl = yes; then | |
bd647a17 | 22354 | |
6affa8e1 | 22355 | cat >>confdefs.h <<_ACEOF |
22356 | #define HAVE_SQRTL 1 | |
22357 | _ACEOF | |
7d9455ce | 22358 | |
22359 | fi | |
d213114b | 22360 | |
d213114b | 22361 | |
d213114b | 22362 | |
7d9455ce | 22363 | |
22364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
22365 | $as_echo_n "checking for csqrtf... " >&6; } | |
22366 | if test "${gcc_cv_math_func_csqrtf+set}" = set; then : | |
cd9a469c | 22367 | $as_echo_n "(cached) " >&6 |
d213114b | 22368 | else |
7d9455ce | 22369 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22370 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22371 | fi |
cd9a469c | 22372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22373 | /* end confdefs.h. */ |
22374 | ||
7d9455ce | 22375 | #ifdef HAVE_COMPLEX_H |
22376 | #include <complex.h> | |
d213114b | 22377 | #endif |
7d9455ce | 22378 | #ifdef HAVE_MATH_H |
22379 | #include <math.h> | |
22380 | #endif | |
22381 | ||
22382 | int (*ptr)() = (int (*)())csqrtf; | |
22383 | ||
d213114b | 22384 | int |
22385 | main () | |
22386 | { | |
d213114b | 22387 | return 0; |
22388 | } | |
7d9455ce | 22389 | |
d213114b | 22390 | _ACEOF |
cd9a469c | 22391 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22392 | gcc_cv_math_func_csqrtf=yes |
d213114b | 22393 | else |
7d9455ce | 22394 | gcc_cv_math_func_csqrtf=no |
d213114b | 22395 | fi |
cd9a469c | 22396 | rm -f core conftest.err conftest.$ac_objext \ |
22397 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22398 | fi |
7d9455ce | 22399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
22400 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
22401 | if test $gcc_cv_math_func_csqrtf = yes; then | |
bd647a17 | 22402 | |
6affa8e1 | 22403 | cat >>confdefs.h <<_ACEOF |
22404 | #define HAVE_CSQRTF 1 | |
22405 | _ACEOF | |
d213114b | 22406 | |
7d9455ce | 22407 | fi |
d213114b | 22408 | |
d213114b | 22409 | |
7d9455ce | 22410 | |
22411 | ||
22412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
22413 | $as_echo_n "checking for csqrt... " >&6; } | |
22414 | if test "${gcc_cv_math_func_csqrt+set}" = set; then : | |
cd9a469c | 22415 | $as_echo_n "(cached) " >&6 |
d213114b | 22416 | else |
7d9455ce | 22417 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22418 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22419 | fi |
cd9a469c | 22420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22421 | /* end confdefs.h. */ |
22422 | ||
7d9455ce | 22423 | #ifdef HAVE_COMPLEX_H |
22424 | #include <complex.h> | |
22425 | #endif | |
22426 | #ifdef HAVE_MATH_H | |
22427 | #include <math.h> | |
d213114b | 22428 | #endif |
7d9455ce | 22429 | |
22430 | int (*ptr)() = (int (*)())csqrt; | |
22431 | ||
d213114b | 22432 | int |
22433 | main () | |
22434 | { | |
d213114b | 22435 | return 0; |
22436 | } | |
7d9455ce | 22437 | |
d213114b | 22438 | _ACEOF |
cd9a469c | 22439 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22440 | gcc_cv_math_func_csqrt=yes |
d213114b | 22441 | else |
7d9455ce | 22442 | gcc_cv_math_func_csqrt=no |
d213114b | 22443 | fi |
cd9a469c | 22444 | rm -f core conftest.err conftest.$ac_objext \ |
22445 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22446 | fi |
7d9455ce | 22447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
22448 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
22449 | if test $gcc_cv_math_func_csqrt = yes; then | |
bd647a17 | 22450 | |
6affa8e1 | 22451 | cat >>confdefs.h <<_ACEOF |
22452 | #define HAVE_CSQRT 1 | |
22453 | _ACEOF | |
7d9455ce | 22454 | |
22455 | fi | |
d213114b | 22456 | |
d213114b | 22457 | |
d213114b | 22458 | |
7d9455ce | 22459 | |
22460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
22461 | $as_echo_n "checking for csqrtl... " >&6; } | |
22462 | if test "${gcc_cv_math_func_csqrtl+set}" = set; then : | |
cd9a469c | 22463 | $as_echo_n "(cached) " >&6 |
d213114b | 22464 | else |
7d9455ce | 22465 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22466 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22467 | fi |
cd9a469c | 22468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22469 | /* end confdefs.h. */ |
22470 | ||
7d9455ce | 22471 | #ifdef HAVE_COMPLEX_H |
22472 | #include <complex.h> | |
d213114b | 22473 | #endif |
7d9455ce | 22474 | #ifdef HAVE_MATH_H |
22475 | #include <math.h> | |
22476 | #endif | |
22477 | ||
22478 | int (*ptr)() = (int (*)())csqrtl; | |
22479 | ||
d213114b | 22480 | int |
22481 | main () | |
22482 | { | |
d213114b | 22483 | return 0; |
22484 | } | |
7d9455ce | 22485 | |
d213114b | 22486 | _ACEOF |
cd9a469c | 22487 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22488 | gcc_cv_math_func_csqrtl=yes |
d213114b | 22489 | else |
7d9455ce | 22490 | gcc_cv_math_func_csqrtl=no |
d213114b | 22491 | fi |
cd9a469c | 22492 | rm -f core conftest.err conftest.$ac_objext \ |
22493 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22494 | fi |
7d9455ce | 22495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
22496 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
22497 | if test $gcc_cv_math_func_csqrtl = yes; then | |
bd647a17 | 22498 | |
6affa8e1 | 22499 | cat >>confdefs.h <<_ACEOF |
22500 | #define HAVE_CSQRTL 1 | |
22501 | _ACEOF | |
7d9455ce | 22502 | |
22503 | fi | |
22504 | ||
d213114b | 22505 | |
d213114b | 22506 | |
d213114b | 22507 | |
7d9455ce | 22508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
22509 | $as_echo_n "checking for tanf... " >&6; } | |
22510 | if test "${gcc_cv_math_func_tanf+set}" = set; then : | |
cd9a469c | 22511 | $as_echo_n "(cached) " >&6 |
d213114b | 22512 | else |
7d9455ce | 22513 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22514 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22515 | fi |
cd9a469c | 22516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22517 | /* end confdefs.h. */ |
22518 | ||
7d9455ce | 22519 | #ifdef HAVE_COMPLEX_H |
22520 | #include <complex.h> | |
22521 | #endif | |
22522 | #ifdef HAVE_MATH_H | |
22523 | #include <math.h> | |
d213114b | 22524 | #endif |
7d9455ce | 22525 | |
22526 | int (*ptr)() = (int (*)())tanf; | |
22527 | ||
d213114b | 22528 | int |
22529 | main () | |
22530 | { | |
d213114b | 22531 | return 0; |
22532 | } | |
7d9455ce | 22533 | |
d213114b | 22534 | _ACEOF |
cd9a469c | 22535 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22536 | gcc_cv_math_func_tanf=yes |
d213114b | 22537 | else |
7d9455ce | 22538 | gcc_cv_math_func_tanf=no |
d213114b | 22539 | fi |
cd9a469c | 22540 | rm -f core conftest.err conftest.$ac_objext \ |
22541 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22542 | fi |
7d9455ce | 22543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
22544 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
22545 | if test $gcc_cv_math_func_tanf = yes; then | |
bd647a17 | 22546 | |
6affa8e1 | 22547 | cat >>confdefs.h <<_ACEOF |
22548 | #define HAVE_TANF 1 | |
22549 | _ACEOF | |
7d9455ce | 22550 | |
22551 | fi | |
d213114b | 22552 | |
d213114b | 22553 | |
d213114b | 22554 | |
7d9455ce | 22555 | |
22556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
22557 | $as_echo_n "checking for tan... " >&6; } | |
22558 | if test "${gcc_cv_math_func_tan+set}" = set; then : | |
cd9a469c | 22559 | $as_echo_n "(cached) " >&6 |
d213114b | 22560 | else |
7d9455ce | 22561 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22562 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22563 | fi |
cd9a469c | 22564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22565 | /* end confdefs.h. */ |
22566 | ||
7d9455ce | 22567 | #ifdef HAVE_COMPLEX_H |
22568 | #include <complex.h> | |
d213114b | 22569 | #endif |
7d9455ce | 22570 | #ifdef HAVE_MATH_H |
22571 | #include <math.h> | |
22572 | #endif | |
22573 | ||
22574 | int (*ptr)() = (int (*)())tan; | |
22575 | ||
d213114b | 22576 | int |
22577 | main () | |
22578 | { | |
d213114b | 22579 | return 0; |
22580 | } | |
7d9455ce | 22581 | |
d213114b | 22582 | _ACEOF |
cd9a469c | 22583 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22584 | gcc_cv_math_func_tan=yes |
d213114b | 22585 | else |
7d9455ce | 22586 | gcc_cv_math_func_tan=no |
d213114b | 22587 | fi |
cd9a469c | 22588 | rm -f core conftest.err conftest.$ac_objext \ |
22589 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22590 | fi |
7d9455ce | 22591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
22592 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
22593 | if test $gcc_cv_math_func_tan = yes; then | |
bd647a17 | 22594 | |
6affa8e1 | 22595 | cat >>confdefs.h <<_ACEOF |
22596 | #define HAVE_TAN 1 | |
22597 | _ACEOF | |
d213114b | 22598 | |
7d9455ce | 22599 | fi |
d213114b | 22600 | |
d213114b | 22601 | |
7d9455ce | 22602 | |
22603 | ||
22604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
22605 | $as_echo_n "checking for tanl... " >&6; } | |
22606 | if test "${gcc_cv_math_func_tanl+set}" = set; then : | |
cd9a469c | 22607 | $as_echo_n "(cached) " >&6 |
d213114b | 22608 | else |
7d9455ce | 22609 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22610 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22611 | fi |
cd9a469c | 22612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22613 | /* end confdefs.h. */ |
22614 | ||
7d9455ce | 22615 | #ifdef HAVE_COMPLEX_H |
22616 | #include <complex.h> | |
22617 | #endif | |
22618 | #ifdef HAVE_MATH_H | |
22619 | #include <math.h> | |
d213114b | 22620 | #endif |
7d9455ce | 22621 | |
22622 | int (*ptr)() = (int (*)())tanl; | |
22623 | ||
d213114b | 22624 | int |
22625 | main () | |
22626 | { | |
d213114b | 22627 | return 0; |
22628 | } | |
7d9455ce | 22629 | |
d213114b | 22630 | _ACEOF |
cd9a469c | 22631 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22632 | gcc_cv_math_func_tanl=yes |
d213114b | 22633 | else |
7d9455ce | 22634 | gcc_cv_math_func_tanl=no |
d213114b | 22635 | fi |
cd9a469c | 22636 | rm -f core conftest.err conftest.$ac_objext \ |
22637 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22638 | fi |
7d9455ce | 22639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
22640 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
22641 | if test $gcc_cv_math_func_tanl = yes; then | |
bd647a17 | 22642 | |
6affa8e1 | 22643 | cat >>confdefs.h <<_ACEOF |
22644 | #define HAVE_TANL 1 | |
22645 | _ACEOF | |
7d9455ce | 22646 | |
22647 | fi | |
d213114b | 22648 | |
d213114b | 22649 | |
d213114b | 22650 | |
7d9455ce | 22651 | |
22652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
22653 | $as_echo_n "checking for ctanf... " >&6; } | |
22654 | if test "${gcc_cv_math_func_ctanf+set}" = set; then : | |
cd9a469c | 22655 | $as_echo_n "(cached) " >&6 |
d213114b | 22656 | else |
7d9455ce | 22657 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22658 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22659 | fi |
cd9a469c | 22660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22661 | /* end confdefs.h. */ |
22662 | ||
7d9455ce | 22663 | #ifdef HAVE_COMPLEX_H |
22664 | #include <complex.h> | |
d213114b | 22665 | #endif |
7d9455ce | 22666 | #ifdef HAVE_MATH_H |
22667 | #include <math.h> | |
22668 | #endif | |
22669 | ||
22670 | int (*ptr)() = (int (*)())ctanf; | |
22671 | ||
d213114b | 22672 | int |
22673 | main () | |
22674 | { | |
d213114b | 22675 | return 0; |
22676 | } | |
7d9455ce | 22677 | |
d213114b | 22678 | _ACEOF |
cd9a469c | 22679 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22680 | gcc_cv_math_func_ctanf=yes |
d213114b | 22681 | else |
7d9455ce | 22682 | gcc_cv_math_func_ctanf=no |
d213114b | 22683 | fi |
cd9a469c | 22684 | rm -f core conftest.err conftest.$ac_objext \ |
22685 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22686 | fi |
7d9455ce | 22687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
22688 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
22689 | if test $gcc_cv_math_func_ctanf = yes; then | |
bd647a17 | 22690 | |
6affa8e1 | 22691 | cat >>confdefs.h <<_ACEOF |
22692 | #define HAVE_CTANF 1 | |
22693 | _ACEOF | |
7d9455ce | 22694 | |
22695 | fi | |
22696 | ||
d213114b | 22697 | |
d213114b | 22698 | |
d213114b | 22699 | |
7d9455ce | 22700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
22701 | $as_echo_n "checking for ctan... " >&6; } | |
22702 | if test "${gcc_cv_math_func_ctan+set}" = set; then : | |
cd9a469c | 22703 | $as_echo_n "(cached) " >&6 |
d213114b | 22704 | else |
7d9455ce | 22705 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22706 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22707 | fi |
cd9a469c | 22708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22709 | /* end confdefs.h. */ |
22710 | ||
7d9455ce | 22711 | #ifdef HAVE_COMPLEX_H |
22712 | #include <complex.h> | |
22713 | #endif | |
22714 | #ifdef HAVE_MATH_H | |
22715 | #include <math.h> | |
d213114b | 22716 | #endif |
7d9455ce | 22717 | |
22718 | int (*ptr)() = (int (*)())ctan; | |
22719 | ||
d213114b | 22720 | int |
22721 | main () | |
22722 | { | |
d213114b | 22723 | return 0; |
22724 | } | |
7d9455ce | 22725 | |
d213114b | 22726 | _ACEOF |
cd9a469c | 22727 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22728 | gcc_cv_math_func_ctan=yes |
d213114b | 22729 | else |
7d9455ce | 22730 | gcc_cv_math_func_ctan=no |
d213114b | 22731 | fi |
cd9a469c | 22732 | rm -f core conftest.err conftest.$ac_objext \ |
22733 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22734 | fi |
7d9455ce | 22735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
22736 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
22737 | if test $gcc_cv_math_func_ctan = yes; then | |
bd647a17 | 22738 | |
6affa8e1 | 22739 | cat >>confdefs.h <<_ACEOF |
22740 | #define HAVE_CTAN 1 | |
22741 | _ACEOF | |
7d9455ce | 22742 | |
22743 | fi | |
d213114b | 22744 | |
d213114b | 22745 | |
d213114b | 22746 | |
7d9455ce | 22747 | |
22748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
22749 | $as_echo_n "checking for ctanl... " >&6; } | |
22750 | if test "${gcc_cv_math_func_ctanl+set}" = set; then : | |
cd9a469c | 22751 | $as_echo_n "(cached) " >&6 |
d213114b | 22752 | else |
7d9455ce | 22753 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22754 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22755 | fi |
cd9a469c | 22756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22757 | /* end confdefs.h. */ |
22758 | ||
7d9455ce | 22759 | #ifdef HAVE_COMPLEX_H |
22760 | #include <complex.h> | |
d213114b | 22761 | #endif |
7d9455ce | 22762 | #ifdef HAVE_MATH_H |
22763 | #include <math.h> | |
22764 | #endif | |
22765 | ||
22766 | int (*ptr)() = (int (*)())ctanl; | |
22767 | ||
d213114b | 22768 | int |
22769 | main () | |
22770 | { | |
d213114b | 22771 | return 0; |
22772 | } | |
7d9455ce | 22773 | |
d213114b | 22774 | _ACEOF |
cd9a469c | 22775 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22776 | gcc_cv_math_func_ctanl=yes |
d213114b | 22777 | else |
7d9455ce | 22778 | gcc_cv_math_func_ctanl=no |
d213114b | 22779 | fi |
cd9a469c | 22780 | rm -f core conftest.err conftest.$ac_objext \ |
22781 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22782 | fi |
7d9455ce | 22783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
22784 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
22785 | if test $gcc_cv_math_func_ctanl = yes; then | |
bd647a17 | 22786 | |
6affa8e1 | 22787 | cat >>confdefs.h <<_ACEOF |
22788 | #define HAVE_CTANL 1 | |
22789 | _ACEOF | |
d213114b | 22790 | |
7d9455ce | 22791 | fi |
d213114b | 22792 | |
d213114b | 22793 | |
7d9455ce | 22794 | |
22795 | ||
22796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
22797 | $as_echo_n "checking for tanhf... " >&6; } | |
22798 | if test "${gcc_cv_math_func_tanhf+set}" = set; then : | |
cd9a469c | 22799 | $as_echo_n "(cached) " >&6 |
d213114b | 22800 | else |
7d9455ce | 22801 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22802 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22803 | fi |
cd9a469c | 22804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22805 | /* end confdefs.h. */ |
22806 | ||
7d9455ce | 22807 | #ifdef HAVE_COMPLEX_H |
22808 | #include <complex.h> | |
22809 | #endif | |
22810 | #ifdef HAVE_MATH_H | |
22811 | #include <math.h> | |
d213114b | 22812 | #endif |
7d9455ce | 22813 | |
22814 | int (*ptr)() = (int (*)())tanhf; | |
22815 | ||
d213114b | 22816 | int |
22817 | main () | |
22818 | { | |
d213114b | 22819 | return 0; |
22820 | } | |
7d9455ce | 22821 | |
d213114b | 22822 | _ACEOF |
cd9a469c | 22823 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22824 | gcc_cv_math_func_tanhf=yes |
d213114b | 22825 | else |
7d9455ce | 22826 | gcc_cv_math_func_tanhf=no |
d213114b | 22827 | fi |
cd9a469c | 22828 | rm -f core conftest.err conftest.$ac_objext \ |
22829 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22830 | fi |
7d9455ce | 22831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
22832 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
22833 | if test $gcc_cv_math_func_tanhf = yes; then | |
bd647a17 | 22834 | |
6affa8e1 | 22835 | cat >>confdefs.h <<_ACEOF |
22836 | #define HAVE_TANHF 1 | |
22837 | _ACEOF | |
7d9455ce | 22838 | |
22839 | fi | |
d213114b | 22840 | |
d213114b | 22841 | |
d213114b | 22842 | |
7d9455ce | 22843 | |
22844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
22845 | $as_echo_n "checking for tanh... " >&6; } | |
22846 | if test "${gcc_cv_math_func_tanh+set}" = set; then : | |
cd9a469c | 22847 | $as_echo_n "(cached) " >&6 |
d213114b | 22848 | else |
7d9455ce | 22849 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22850 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22851 | fi |
cd9a469c | 22852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22853 | /* end confdefs.h. */ |
22854 | ||
7d9455ce | 22855 | #ifdef HAVE_COMPLEX_H |
22856 | #include <complex.h> | |
d213114b | 22857 | #endif |
7d9455ce | 22858 | #ifdef HAVE_MATH_H |
22859 | #include <math.h> | |
22860 | #endif | |
22861 | ||
22862 | int (*ptr)() = (int (*)())tanh; | |
22863 | ||
d213114b | 22864 | int |
22865 | main () | |
22866 | { | |
d213114b | 22867 | return 0; |
22868 | } | |
7d9455ce | 22869 | |
d213114b | 22870 | _ACEOF |
cd9a469c | 22871 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22872 | gcc_cv_math_func_tanh=yes |
d213114b | 22873 | else |
7d9455ce | 22874 | gcc_cv_math_func_tanh=no |
d213114b | 22875 | fi |
cd9a469c | 22876 | rm -f core conftest.err conftest.$ac_objext \ |
22877 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22878 | fi |
7d9455ce | 22879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
22880 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
22881 | if test $gcc_cv_math_func_tanh = yes; then | |
bd647a17 | 22882 | |
6affa8e1 | 22883 | cat >>confdefs.h <<_ACEOF |
22884 | #define HAVE_TANH 1 | |
22885 | _ACEOF | |
7d9455ce | 22886 | |
22887 | fi | |
22888 | ||
d213114b | 22889 | |
d213114b | 22890 | |
d213114b | 22891 | |
7d9455ce | 22892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
22893 | $as_echo_n "checking for tanhl... " >&6; } | |
22894 | if test "${gcc_cv_math_func_tanhl+set}" = set; then : | |
cd9a469c | 22895 | $as_echo_n "(cached) " >&6 |
d213114b | 22896 | else |
7d9455ce | 22897 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22898 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22899 | fi |
cd9a469c | 22900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22901 | /* end confdefs.h. */ |
22902 | ||
7d9455ce | 22903 | #ifdef HAVE_COMPLEX_H |
22904 | #include <complex.h> | |
22905 | #endif | |
22906 | #ifdef HAVE_MATH_H | |
22907 | #include <math.h> | |
d213114b | 22908 | #endif |
7d9455ce | 22909 | |
22910 | int (*ptr)() = (int (*)())tanhl; | |
22911 | ||
d213114b | 22912 | int |
22913 | main () | |
22914 | { | |
d213114b | 22915 | return 0; |
22916 | } | |
7d9455ce | 22917 | |
d213114b | 22918 | _ACEOF |
cd9a469c | 22919 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22920 | gcc_cv_math_func_tanhl=yes |
d213114b | 22921 | else |
7d9455ce | 22922 | gcc_cv_math_func_tanhl=no |
d213114b | 22923 | fi |
cd9a469c | 22924 | rm -f core conftest.err conftest.$ac_objext \ |
22925 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22926 | fi |
7d9455ce | 22927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
22928 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
22929 | if test $gcc_cv_math_func_tanhl = yes; then | |
bd647a17 | 22930 | |
6affa8e1 | 22931 | cat >>confdefs.h <<_ACEOF |
22932 | #define HAVE_TANHL 1 | |
22933 | _ACEOF | |
7d9455ce | 22934 | |
22935 | fi | |
d213114b | 22936 | |
d213114b | 22937 | |
d213114b | 22938 | |
7d9455ce | 22939 | |
22940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
22941 | $as_echo_n "checking for ctanhf... " >&6; } | |
22942 | if test "${gcc_cv_math_func_ctanhf+set}" = set; then : | |
cd9a469c | 22943 | $as_echo_n "(cached) " >&6 |
d213114b | 22944 | else |
7d9455ce | 22945 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22946 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
7d9455ce | 22947 | fi |
22948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22949 | /* end confdefs.h. */ | |
22950 | ||
22951 | #ifdef HAVE_COMPLEX_H | |
22952 | #include <complex.h> | |
d213114b | 22953 | #endif |
7d9455ce | 22954 | #ifdef HAVE_MATH_H |
22955 | #include <math.h> | |
22956 | #endif | |
22957 | ||
22958 | int (*ptr)() = (int (*)())ctanhf; | |
22959 | ||
d213114b | 22960 | int |
22961 | main () | |
22962 | { | |
d213114b | 22963 | return 0; |
22964 | } | |
7d9455ce | 22965 | |
d213114b | 22966 | _ACEOF |
cd9a469c | 22967 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22968 | gcc_cv_math_func_ctanhf=yes |
d213114b | 22969 | else |
7d9455ce | 22970 | gcc_cv_math_func_ctanhf=no |
d213114b | 22971 | fi |
cd9a469c | 22972 | rm -f core conftest.err conftest.$ac_objext \ |
22973 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22974 | fi |
7d9455ce | 22975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
22976 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
22977 | if test $gcc_cv_math_func_ctanhf = yes; then | |
bd647a17 | 22978 | |
6affa8e1 | 22979 | cat >>confdefs.h <<_ACEOF |
22980 | #define HAVE_CTANHF 1 | |
22981 | _ACEOF | |
d213114b | 22982 | |
7d9455ce | 22983 | fi |
d213114b | 22984 | |
d213114b | 22985 | |
7d9455ce | 22986 | |
22987 | ||
22988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
22989 | $as_echo_n "checking for ctanh... " >&6; } | |
22990 | if test "${gcc_cv_math_func_ctanh+set}" = set; then : | |
cd9a469c | 22991 | $as_echo_n "(cached) " >&6 |
d213114b | 22992 | else |
7d9455ce | 22993 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22994 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22995 | fi |
cd9a469c | 22996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22997 | /* end confdefs.h. */ |
22998 | ||
7d9455ce | 22999 | #ifdef HAVE_COMPLEX_H |
23000 | #include <complex.h> | |
23001 | #endif | |
23002 | #ifdef HAVE_MATH_H | |
23003 | #include <math.h> | |
d213114b | 23004 | #endif |
7d9455ce | 23005 | |
23006 | int (*ptr)() = (int (*)())ctanh; | |
23007 | ||
d213114b | 23008 | int |
23009 | main () | |
23010 | { | |
cd9a469c | 23011 | return 0; |
23012 | } | |
7d9455ce | 23013 | |
cd9a469c | 23014 | _ACEOF |
23015 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 23016 | gcc_cv_math_func_ctanh=yes |
d213114b | 23017 | else |
7d9455ce | 23018 | gcc_cv_math_func_ctanh=no |
d213114b | 23019 | fi |
cd9a469c | 23020 | rm -f core conftest.err conftest.$ac_objext \ |
23021 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23022 | fi |
7d9455ce | 23023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23024 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23025 | if test $gcc_cv_math_func_ctanh = yes; then | |
bd647a17 | 23026 | |
6affa8e1 | 23027 | cat >>confdefs.h <<_ACEOF |
23028 | #define HAVE_CTANH 1 | |
23029 | _ACEOF | |
7d9455ce | 23030 | |
23031 | fi | |
d213114b | 23032 | |
d213114b | 23033 | |
d213114b | 23034 | |
7d9455ce | 23035 | |
23036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23037 | $as_echo_n "checking for ctanhl... " >&6; } | |
23038 | if test "${gcc_cv_math_func_ctanhl+set}" = set; then : | |
cd9a469c | 23039 | $as_echo_n "(cached) " >&6 |
d213114b | 23040 | else |
7d9455ce | 23041 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23042 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23043 | fi |
cd9a469c | 23044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23045 | /* end confdefs.h. */ |
23046 | ||
7d9455ce | 23047 | #ifdef HAVE_COMPLEX_H |
23048 | #include <complex.h> | |
d213114b | 23049 | #endif |
7d9455ce | 23050 | #ifdef HAVE_MATH_H |
23051 | #include <math.h> | |
23052 | #endif | |
23053 | ||
23054 | int (*ptr)() = (int (*)())ctanhl; | |
23055 | ||
d213114b | 23056 | int |
23057 | main () | |
23058 | { | |
d213114b | 23059 | return 0; |
23060 | } | |
7d9455ce | 23061 | |
d213114b | 23062 | _ACEOF |
cd9a469c | 23063 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23064 | gcc_cv_math_func_ctanhl=yes |
d213114b | 23065 | else |
7d9455ce | 23066 | gcc_cv_math_func_ctanhl=no |
d213114b | 23067 | fi |
cd9a469c | 23068 | rm -f core conftest.err conftest.$ac_objext \ |
23069 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23070 | fi |
7d9455ce | 23071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23072 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23073 | if test $gcc_cv_math_func_ctanhl = yes; then | |
bd647a17 | 23074 | |
6affa8e1 | 23075 | cat >>confdefs.h <<_ACEOF |
23076 | #define HAVE_CTANHL 1 | |
23077 | _ACEOF | |
7d9455ce | 23078 | |
23079 | fi | |
23080 | ||
d213114b | 23081 | |
50f0ca0a | 23082 | |
50f0ca0a | 23083 | |
7d9455ce | 23084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23085 | $as_echo_n "checking for truncf... " >&6; } | |
23086 | if test "${gcc_cv_math_func_truncf+set}" = set; then : | |
cd9a469c | 23087 | $as_echo_n "(cached) " >&6 |
50f0ca0a | 23088 | else |
7d9455ce | 23089 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23090 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23091 | fi |
cd9a469c | 23092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
50f0ca0a | 23093 | /* end confdefs.h. */ |
23094 | ||
7d9455ce | 23095 | #ifdef HAVE_COMPLEX_H |
23096 | #include <complex.h> | |
23097 | #endif | |
23098 | #ifdef HAVE_MATH_H | |
23099 | #include <math.h> | |
50f0ca0a | 23100 | #endif |
7d9455ce | 23101 | |
23102 | int (*ptr)() = (int (*)())truncf; | |
23103 | ||
d213114b | 23104 | int |
23105 | main () | |
23106 | { | |
d213114b | 23107 | return 0; |
23108 | } | |
7d9455ce | 23109 | |
d213114b | 23110 | _ACEOF |
cd9a469c | 23111 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23112 | gcc_cv_math_func_truncf=yes |
d213114b | 23113 | else |
7d9455ce | 23114 | gcc_cv_math_func_truncf=no |
d213114b | 23115 | fi |
cd9a469c | 23116 | rm -f core conftest.err conftest.$ac_objext \ |
23117 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23118 | fi |
7d9455ce | 23119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23120 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23121 | if test $gcc_cv_math_func_truncf = yes; then | |
bd647a17 | 23122 | |
6affa8e1 | 23123 | cat >>confdefs.h <<_ACEOF |
23124 | #define HAVE_TRUNCF 1 | |
23125 | _ACEOF | |
7d9455ce | 23126 | |
23127 | fi | |
d213114b | 23128 | |
d213114b | 23129 | |
d213114b | 23130 | |
7d9455ce | 23131 | |
23132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23133 | $as_echo_n "checking for trunc... " >&6; } | |
23134 | if test "${gcc_cv_math_func_trunc+set}" = set; then : | |
cd9a469c | 23135 | $as_echo_n "(cached) " >&6 |
d213114b | 23136 | else |
7d9455ce | 23137 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23138 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23139 | fi |
cd9a469c | 23140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23141 | /* end confdefs.h. */ |
23142 | ||
7d9455ce | 23143 | #ifdef HAVE_COMPLEX_H |
23144 | #include <complex.h> | |
d213114b | 23145 | #endif |
7d9455ce | 23146 | #ifdef HAVE_MATH_H |
23147 | #include <math.h> | |
23148 | #endif | |
23149 | ||
23150 | int (*ptr)() = (int (*)())trunc; | |
23151 | ||
d213114b | 23152 | int |
23153 | main () | |
23154 | { | |
d213114b | 23155 | return 0; |
23156 | } | |
7d9455ce | 23157 | |
d213114b | 23158 | _ACEOF |
cd9a469c | 23159 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23160 | gcc_cv_math_func_trunc=yes |
d213114b | 23161 | else |
7d9455ce | 23162 | gcc_cv_math_func_trunc=no |
d213114b | 23163 | fi |
cd9a469c | 23164 | rm -f core conftest.err conftest.$ac_objext \ |
23165 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23166 | fi |
7d9455ce | 23167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23168 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23169 | if test $gcc_cv_math_func_trunc = yes; then | |
bd647a17 | 23170 | |
6affa8e1 | 23171 | cat >>confdefs.h <<_ACEOF |
23172 | #define HAVE_TRUNC 1 | |
23173 | _ACEOF | |
d213114b | 23174 | |
7d9455ce | 23175 | fi |
d213114b | 23176 | |
d213114b | 23177 | |
7d9455ce | 23178 | |
23179 | ||
23180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23181 | $as_echo_n "checking for truncl... " >&6; } | |
23182 | if test "${gcc_cv_math_func_truncl+set}" = set; then : | |
cd9a469c | 23183 | $as_echo_n "(cached) " >&6 |
d213114b | 23184 | else |
7d9455ce | 23185 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23186 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23187 | fi |
cd9a469c | 23188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23189 | /* end confdefs.h. */ |
23190 | ||
7d9455ce | 23191 | #ifdef HAVE_COMPLEX_H |
23192 | #include <complex.h> | |
23193 | #endif | |
23194 | #ifdef HAVE_MATH_H | |
23195 | #include <math.h> | |
d213114b | 23196 | #endif |
7d9455ce | 23197 | |
23198 | int (*ptr)() = (int (*)())truncl; | |
23199 | ||
d213114b | 23200 | int |
23201 | main () | |
23202 | { | |
d213114b | 23203 | return 0; |
23204 | } | |
7d9455ce | 23205 | |
d213114b | 23206 | _ACEOF |
cd9a469c | 23207 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23208 | gcc_cv_math_func_truncl=yes |
d213114b | 23209 | else |
7d9455ce | 23210 | gcc_cv_math_func_truncl=no |
d213114b | 23211 | fi |
cd9a469c | 23212 | rm -f core conftest.err conftest.$ac_objext \ |
23213 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23214 | fi |
7d9455ce | 23215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23216 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23217 | if test $gcc_cv_math_func_truncl = yes; then | |
bd647a17 | 23218 | |
6affa8e1 | 23219 | cat >>confdefs.h <<_ACEOF |
23220 | #define HAVE_TRUNCL 1 | |
23221 | _ACEOF | |
7d9455ce | 23222 | |
23223 | fi | |
d213114b | 23224 | |
d213114b | 23225 | |
d213114b | 23226 | |
7d9455ce | 23227 | |
23228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23229 | $as_echo_n "checking for erff... " >&6; } | |
23230 | if test "${gcc_cv_math_func_erff+set}" = set; then : | |
cd9a469c | 23231 | $as_echo_n "(cached) " >&6 |
d213114b | 23232 | else |
7d9455ce | 23233 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23234 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23235 | fi |
cd9a469c | 23236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23237 | /* end confdefs.h. */ |
23238 | ||
7d9455ce | 23239 | #ifdef HAVE_COMPLEX_H |
23240 | #include <complex.h> | |
d213114b | 23241 | #endif |
7d9455ce | 23242 | #ifdef HAVE_MATH_H |
23243 | #include <math.h> | |
23244 | #endif | |
23245 | ||
23246 | int (*ptr)() = (int (*)())erff; | |
23247 | ||
d213114b | 23248 | int |
23249 | main () | |
23250 | { | |
d213114b | 23251 | return 0; |
23252 | } | |
7d9455ce | 23253 | |
d213114b | 23254 | _ACEOF |
cd9a469c | 23255 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23256 | gcc_cv_math_func_erff=yes |
d213114b | 23257 | else |
7d9455ce | 23258 | gcc_cv_math_func_erff=no |
d213114b | 23259 | fi |
cd9a469c | 23260 | rm -f core conftest.err conftest.$ac_objext \ |
23261 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23262 | fi |
7d9455ce | 23263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23264 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23265 | if test $gcc_cv_math_func_erff = yes; then | |
bd647a17 | 23266 | |
6affa8e1 | 23267 | cat >>confdefs.h <<_ACEOF |
23268 | #define HAVE_ERFF 1 | |
23269 | _ACEOF | |
7d9455ce | 23270 | |
23271 | fi | |
23272 | ||
d213114b | 23273 | |
d213114b | 23274 | |
d213114b | 23275 | |
7d9455ce | 23276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23277 | $as_echo_n "checking for erf... " >&6; } | |
23278 | if test "${gcc_cv_math_func_erf+set}" = set; then : | |
cd9a469c | 23279 | $as_echo_n "(cached) " >&6 |
d213114b | 23280 | else |
7d9455ce | 23281 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23282 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23283 | fi |
cd9a469c | 23284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23285 | /* end confdefs.h. */ |
23286 | ||
7d9455ce | 23287 | #ifdef HAVE_COMPLEX_H |
23288 | #include <complex.h> | |
23289 | #endif | |
23290 | #ifdef HAVE_MATH_H | |
23291 | #include <math.h> | |
d213114b | 23292 | #endif |
7d9455ce | 23293 | |
23294 | int (*ptr)() = (int (*)())erf; | |
23295 | ||
d213114b | 23296 | int |
23297 | main () | |
23298 | { | |
d213114b | 23299 | return 0; |
23300 | } | |
7d9455ce | 23301 | |
d213114b | 23302 | _ACEOF |
cd9a469c | 23303 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23304 | gcc_cv_math_func_erf=yes |
d213114b | 23305 | else |
7d9455ce | 23306 | gcc_cv_math_func_erf=no |
d213114b | 23307 | fi |
cd9a469c | 23308 | rm -f core conftest.err conftest.$ac_objext \ |
23309 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23310 | fi |
7d9455ce | 23311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
23312 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
23313 | if test $gcc_cv_math_func_erf = yes; then | |
bd647a17 | 23314 | |
6affa8e1 | 23315 | cat >>confdefs.h <<_ACEOF |
23316 | #define HAVE_ERF 1 | |
23317 | _ACEOF | |
7d9455ce | 23318 | |
23319 | fi | |
d213114b | 23320 | |
d213114b | 23321 | |
d213114b | 23322 | |
7d9455ce | 23323 | |
7d9455ce | 23324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
23325 | $as_echo_n "checking for erfcf... " >&6; } | |
23326 | if test "${gcc_cv_math_func_erfcf+set}" = set; then : | |
cd9a469c | 23327 | $as_echo_n "(cached) " >&6 |
d213114b | 23328 | else |
7d9455ce | 23329 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23330 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23331 | fi |
cd9a469c | 23332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23333 | /* end confdefs.h. */ |
23334 | ||
7d9455ce | 23335 | #ifdef HAVE_COMPLEX_H |
23336 | #include <complex.h> | |
23337 | #endif | |
23338 | #ifdef HAVE_MATH_H | |
23339 | #include <math.h> | |
d213114b | 23340 | #endif |
7d9455ce | 23341 | |
23342 | int (*ptr)() = (int (*)())erfcf; | |
23343 | ||
d213114b | 23344 | int |
23345 | main () | |
23346 | { | |
d213114b | 23347 | return 0; |
23348 | } | |
7d9455ce | 23349 | |
d213114b | 23350 | _ACEOF |
cd9a469c | 23351 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23352 | gcc_cv_math_func_erfcf=yes |
d213114b | 23353 | else |
7d9455ce | 23354 | gcc_cv_math_func_erfcf=no |
d213114b | 23355 | fi |
cd9a469c | 23356 | rm -f core conftest.err conftest.$ac_objext \ |
23357 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23358 | fi |
7d9455ce | 23359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
23360 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
23361 | if test $gcc_cv_math_func_erfcf = yes; then | |
bd647a17 | 23362 | |
6affa8e1 | 23363 | cat >>confdefs.h <<_ACEOF |
23364 | #define HAVE_ERFCF 1 | |
23365 | _ACEOF | |
7d9455ce | 23366 | |
23367 | fi | |
d213114b | 23368 | |
d213114b | 23369 | |
d213114b | 23370 | |
7d9455ce | 23371 | |
23372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
23373 | $as_echo_n "checking for erfc... " >&6; } | |
23374 | if test "${gcc_cv_math_func_erfc+set}" = set; then : | |
cd9a469c | 23375 | $as_echo_n "(cached) " >&6 |
d213114b | 23376 | else |
7d9455ce | 23377 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23378 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23379 | fi |
cd9a469c | 23380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23381 | /* end confdefs.h. */ |
23382 | ||
7d9455ce | 23383 | #ifdef HAVE_COMPLEX_H |
23384 | #include <complex.h> | |
d213114b | 23385 | #endif |
7d9455ce | 23386 | #ifdef HAVE_MATH_H |
23387 | #include <math.h> | |
23388 | #endif | |
23389 | ||
23390 | int (*ptr)() = (int (*)())erfc; | |
23391 | ||
50f0ca0a | 23392 | int |
23393 | main () | |
23394 | { | |
50f0ca0a | 23395 | return 0; |
23396 | } | |
7d9455ce | 23397 | |
50f0ca0a | 23398 | _ACEOF |
cd9a469c | 23399 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23400 | gcc_cv_math_func_erfc=yes |
50f0ca0a | 23401 | else |
7d9455ce | 23402 | gcc_cv_math_func_erfc=no |
50f0ca0a | 23403 | fi |
cd9a469c | 23404 | rm -f core conftest.err conftest.$ac_objext \ |
23405 | conftest$ac_exeext conftest.$ac_ext | |
50f0ca0a | 23406 | fi |
7d9455ce | 23407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
23408 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
23409 | if test $gcc_cv_math_func_erfc = yes; then | |
bd647a17 | 23410 | |
6affa8e1 | 23411 | cat >>confdefs.h <<_ACEOF |
23412 | #define HAVE_ERFC 1 | |
23413 | _ACEOF | |
7d9455ce | 23414 | |
23415 | fi | |
23416 | ||
50f0ca0a | 23417 | |
50f0ca0a | 23418 | |
50f0ca0a | 23419 | |
7d9455ce | 23420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
23421 | $as_echo_n "checking for erfcl... " >&6; } | |
23422 | if test "${gcc_cv_math_func_erfcl+set}" = set; then : | |
cd9a469c | 23423 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23424 | else |
7d9455ce | 23425 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23426 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23427 | fi |
cd9a469c | 23428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23429 | /* end confdefs.h. */ |
23430 | ||
7d9455ce | 23431 | #ifdef HAVE_COMPLEX_H |
23432 | #include <complex.h> | |
23433 | #endif | |
23434 | #ifdef HAVE_MATH_H | |
23435 | #include <math.h> | |
158e0e64 | 23436 | #endif |
7d9455ce | 23437 | |
23438 | int (*ptr)() = (int (*)())erfcl; | |
23439 | ||
158e0e64 | 23440 | int |
23441 | main () | |
23442 | { | |
158e0e64 | 23443 | return 0; |
23444 | } | |
7d9455ce | 23445 | |
158e0e64 | 23446 | _ACEOF |
cd9a469c | 23447 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23448 | gcc_cv_math_func_erfcl=yes |
158e0e64 | 23449 | else |
7d9455ce | 23450 | gcc_cv_math_func_erfcl=no |
158e0e64 | 23451 | fi |
cd9a469c | 23452 | rm -f core conftest.err conftest.$ac_objext \ |
23453 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23454 | fi |
7d9455ce | 23455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
23456 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
23457 | if test $gcc_cv_math_func_erfcl = yes; then | |
bd647a17 | 23458 | |
6affa8e1 | 23459 | cat >>confdefs.h <<_ACEOF |
23460 | #define HAVE_ERFCL 1 | |
23461 | _ACEOF | |
7d9455ce | 23462 | |
23463 | fi | |
158e0e64 | 23464 | |
158e0e64 | 23465 | |
158e0e64 | 23466 | |
7d9455ce | 23467 | |
23468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
23469 | $as_echo_n "checking for j0f... " >&6; } | |
23470 | if test "${gcc_cv_math_func_j0f+set}" = set; then : | |
cd9a469c | 23471 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23472 | else |
7d9455ce | 23473 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23474 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23475 | fi |
cd9a469c | 23476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23477 | /* end confdefs.h. */ |
23478 | ||
7d9455ce | 23479 | #ifdef HAVE_COMPLEX_H |
23480 | #include <complex.h> | |
158e0e64 | 23481 | #endif |
7d9455ce | 23482 | #ifdef HAVE_MATH_H |
23483 | #include <math.h> | |
23484 | #endif | |
23485 | ||
23486 | int (*ptr)() = (int (*)())j0f; | |
23487 | ||
158e0e64 | 23488 | int |
23489 | main () | |
23490 | { | |
158e0e64 | 23491 | return 0; |
23492 | } | |
7d9455ce | 23493 | |
158e0e64 | 23494 | _ACEOF |
cd9a469c | 23495 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23496 | gcc_cv_math_func_j0f=yes |
158e0e64 | 23497 | else |
7d9455ce | 23498 | gcc_cv_math_func_j0f=no |
d213114b | 23499 | fi |
cd9a469c | 23500 | rm -f core conftest.err conftest.$ac_objext \ |
23501 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23502 | fi |
7d9455ce | 23503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
23504 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
23505 | if test $gcc_cv_math_func_j0f = yes; then | |
bd647a17 | 23506 | |
6affa8e1 | 23507 | cat >>confdefs.h <<_ACEOF |
23508 | #define HAVE_J0F 1 | |
23509 | _ACEOF | |
d213114b | 23510 | |
7d9455ce | 23511 | fi |
d213114b | 23512 | |
d213114b | 23513 | |
7d9455ce | 23514 | |
23515 | ||
23516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
23517 | $as_echo_n "checking for j0... " >&6; } | |
23518 | if test "${gcc_cv_math_func_j0+set}" = set; then : | |
cd9a469c | 23519 | $as_echo_n "(cached) " >&6 |
d213114b | 23520 | else |
7d9455ce | 23521 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23522 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23523 | fi |
cd9a469c | 23524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23525 | /* end confdefs.h. */ |
23526 | ||
7d9455ce | 23527 | #ifdef HAVE_COMPLEX_H |
23528 | #include <complex.h> | |
23529 | #endif | |
23530 | #ifdef HAVE_MATH_H | |
23531 | #include <math.h> | |
d213114b | 23532 | #endif |
7d9455ce | 23533 | |
23534 | int (*ptr)() = (int (*)())j0; | |
23535 | ||
d213114b | 23536 | int |
23537 | main () | |
23538 | { | |
d213114b | 23539 | return 0; |
23540 | } | |
7d9455ce | 23541 | |
d213114b | 23542 | _ACEOF |
cd9a469c | 23543 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23544 | gcc_cv_math_func_j0=yes |
d213114b | 23545 | else |
7d9455ce | 23546 | gcc_cv_math_func_j0=no |
d213114b | 23547 | fi |
cd9a469c | 23548 | rm -f core conftest.err conftest.$ac_objext \ |
23549 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23550 | fi |
7d9455ce | 23551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
23552 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
23553 | if test $gcc_cv_math_func_j0 = yes; then | |
bd647a17 | 23554 | |
6affa8e1 | 23555 | cat >>confdefs.h <<_ACEOF |
23556 | #define HAVE_J0 1 | |
23557 | _ACEOF | |
7d9455ce | 23558 | |
23559 | fi | |
d213114b | 23560 | |
d213114b | 23561 | |
d213114b | 23562 | |
7d9455ce | 23563 | |
7d9455ce | 23564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
23565 | $as_echo_n "checking for j1f... " >&6; } | |
23566 | if test "${gcc_cv_math_func_j1f+set}" = set; then : | |
cd9a469c | 23567 | $as_echo_n "(cached) " >&6 |
d213114b | 23568 | else |
7d9455ce | 23569 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23570 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23571 | fi |
cd9a469c | 23572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23573 | /* end confdefs.h. */ |
23574 | ||
7d9455ce | 23575 | #ifdef HAVE_COMPLEX_H |
23576 | #include <complex.h> | |
23577 | #endif | |
23578 | #ifdef HAVE_MATH_H | |
23579 | #include <math.h> | |
d213114b | 23580 | #endif |
7d9455ce | 23581 | |
23582 | int (*ptr)() = (int (*)())j1f; | |
23583 | ||
d213114b | 23584 | int |
23585 | main () | |
23586 | { | |
d213114b | 23587 | return 0; |
23588 | } | |
7d9455ce | 23589 | |
d213114b | 23590 | _ACEOF |
cd9a469c | 23591 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23592 | gcc_cv_math_func_j1f=yes |
d213114b | 23593 | else |
7d9455ce | 23594 | gcc_cv_math_func_j1f=no |
158e0e64 | 23595 | fi |
cd9a469c | 23596 | rm -f core conftest.err conftest.$ac_objext \ |
23597 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23598 | fi |
7d9455ce | 23599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
23600 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
23601 | if test $gcc_cv_math_func_j1f = yes; then | |
bd647a17 | 23602 | |
6affa8e1 | 23603 | cat >>confdefs.h <<_ACEOF |
23604 | #define HAVE_J1F 1 | |
23605 | _ACEOF | |
7d9455ce | 23606 | |
23607 | fi | |
158e0e64 | 23608 | |
158e0e64 | 23609 | |
158e0e64 | 23610 | |
7d9455ce | 23611 | |
23612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
23613 | $as_echo_n "checking for j1... " >&6; } | |
23614 | if test "${gcc_cv_math_func_j1+set}" = set; then : | |
cd9a469c | 23615 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23616 | else |
7d9455ce | 23617 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23618 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23619 | fi |
cd9a469c | 23620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23621 | /* end confdefs.h. */ |
23622 | ||
7d9455ce | 23623 | #ifdef HAVE_COMPLEX_H |
23624 | #include <complex.h> | |
158e0e64 | 23625 | #endif |
7d9455ce | 23626 | #ifdef HAVE_MATH_H |
23627 | #include <math.h> | |
23628 | #endif | |
23629 | ||
23630 | int (*ptr)() = (int (*)())j1; | |
23631 | ||
158e0e64 | 23632 | int |
23633 | main () | |
23634 | { | |
158e0e64 | 23635 | return 0; |
23636 | } | |
7d9455ce | 23637 | |
158e0e64 | 23638 | _ACEOF |
cd9a469c | 23639 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23640 | gcc_cv_math_func_j1=yes |
158e0e64 | 23641 | else |
7d9455ce | 23642 | gcc_cv_math_func_j1=no |
158e0e64 | 23643 | fi |
cd9a469c | 23644 | rm -f core conftest.err conftest.$ac_objext \ |
23645 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23646 | fi |
7d9455ce | 23647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
23648 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
23649 | if test $gcc_cv_math_func_j1 = yes; then | |
bd647a17 | 23650 | |
6affa8e1 | 23651 | cat >>confdefs.h <<_ACEOF |
23652 | #define HAVE_J1 1 | |
23653 | _ACEOF | |
158e0e64 | 23654 | |
7d9455ce | 23655 | fi |
158e0e64 | 23656 | |
158e0e64 | 23657 | |
7d9455ce | 23658 | |
23659 | ||
7d9455ce | 23660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
23661 | $as_echo_n "checking for jnf... " >&6; } | |
23662 | if test "${gcc_cv_math_func_jnf+set}" = set; then : | |
cd9a469c | 23663 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23664 | else |
7d9455ce | 23665 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23666 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23667 | fi |
cd9a469c | 23668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23669 | /* end confdefs.h. */ |
23670 | ||
7d9455ce | 23671 | #ifdef HAVE_COMPLEX_H |
23672 | #include <complex.h> | |
158e0e64 | 23673 | #endif |
7d9455ce | 23674 | #ifdef HAVE_MATH_H |
23675 | #include <math.h> | |
23676 | #endif | |
23677 | ||
23678 | int (*ptr)() = (int (*)())jnf; | |
23679 | ||
158e0e64 | 23680 | int |
23681 | main () | |
23682 | { | |
158e0e64 | 23683 | return 0; |
23684 | } | |
7d9455ce | 23685 | |
158e0e64 | 23686 | _ACEOF |
cd9a469c | 23687 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23688 | gcc_cv_math_func_jnf=yes |
158e0e64 | 23689 | else |
7d9455ce | 23690 | gcc_cv_math_func_jnf=no |
158e0e64 | 23691 | fi |
cd9a469c | 23692 | rm -f core conftest.err conftest.$ac_objext \ |
23693 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23694 | fi |
7d9455ce | 23695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
23696 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
23697 | if test $gcc_cv_math_func_jnf = yes; then | |
bd647a17 | 23698 | |
6affa8e1 | 23699 | cat >>confdefs.h <<_ACEOF |
23700 | #define HAVE_JNF 1 | |
23701 | _ACEOF | |
7d9455ce | 23702 | |
23703 | fi | |
23704 | ||
158e0e64 | 23705 | |
158e0e64 | 23706 | |
158e0e64 | 23707 | |
7d9455ce | 23708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
23709 | $as_echo_n "checking for jn... " >&6; } | |
23710 | if test "${gcc_cv_math_func_jn+set}" = set; then : | |
cd9a469c | 23711 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23712 | else |
7d9455ce | 23713 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23714 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23715 | fi |
cd9a469c | 23716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23717 | /* end confdefs.h. */ |
23718 | ||
7d9455ce | 23719 | #ifdef HAVE_COMPLEX_H |
23720 | #include <complex.h> | |
23721 | #endif | |
23722 | #ifdef HAVE_MATH_H | |
23723 | #include <math.h> | |
158e0e64 | 23724 | #endif |
7d9455ce | 23725 | |
23726 | int (*ptr)() = (int (*)())jn; | |
23727 | ||
158e0e64 | 23728 | int |
23729 | main () | |
23730 | { | |
158e0e64 | 23731 | return 0; |
23732 | } | |
7d9455ce | 23733 | |
158e0e64 | 23734 | _ACEOF |
cd9a469c | 23735 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23736 | gcc_cv_math_func_jn=yes |
158e0e64 | 23737 | else |
7d9455ce | 23738 | gcc_cv_math_func_jn=no |
158e0e64 | 23739 | fi |
cd9a469c | 23740 | rm -f core conftest.err conftest.$ac_objext \ |
23741 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23742 | fi |
7d9455ce | 23743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
23744 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
23745 | if test $gcc_cv_math_func_jn = yes; then | |
bd647a17 | 23746 | |
6affa8e1 | 23747 | cat >>confdefs.h <<_ACEOF |
23748 | #define HAVE_JN 1 | |
23749 | _ACEOF | |
7d9455ce | 23750 | |
23751 | fi | |
158e0e64 | 23752 | |
158e0e64 | 23753 | |
158e0e64 | 23754 | |
7d9455ce | 23755 | |
23756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
23757 | $as_echo_n "checking for jnl... " >&6; } | |
23758 | if test "${gcc_cv_math_func_jnl+set}" = set; then : | |
cd9a469c | 23759 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23760 | else |
7d9455ce | 23761 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23762 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23763 | fi |
cd9a469c | 23764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23765 | /* end confdefs.h. */ |
23766 | ||
7d9455ce | 23767 | #ifdef HAVE_COMPLEX_H |
23768 | #include <complex.h> | |
158e0e64 | 23769 | #endif |
7d9455ce | 23770 | #ifdef HAVE_MATH_H |
23771 | #include <math.h> | |
23772 | #endif | |
23773 | ||
23774 | int (*ptr)() = (int (*)())jnl; | |
23775 | ||
158e0e64 | 23776 | int |
23777 | main () | |
23778 | { | |
158e0e64 | 23779 | return 0; |
23780 | } | |
7d9455ce | 23781 | |
158e0e64 | 23782 | _ACEOF |
cd9a469c | 23783 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23784 | gcc_cv_math_func_jnl=yes |
158e0e64 | 23785 | else |
7d9455ce | 23786 | gcc_cv_math_func_jnl=no |
158e0e64 | 23787 | fi |
cd9a469c | 23788 | rm -f core conftest.err conftest.$ac_objext \ |
23789 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23790 | fi |
7d9455ce | 23791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
23792 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
23793 | if test $gcc_cv_math_func_jnl = yes; then | |
bd647a17 | 23794 | |
6affa8e1 | 23795 | cat >>confdefs.h <<_ACEOF |
23796 | #define HAVE_JNL 1 | |
23797 | _ACEOF | |
158e0e64 | 23798 | |
7d9455ce | 23799 | fi |
158e0e64 | 23800 | |
158e0e64 | 23801 | |
7d9455ce | 23802 | |
23803 | ||
23804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
23805 | $as_echo_n "checking for y0f... " >&6; } | |
23806 | if test "${gcc_cv_math_func_y0f+set}" = set; then : | |
cd9a469c | 23807 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23808 | else |
7d9455ce | 23809 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23810 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23811 | fi |
cd9a469c | 23812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23813 | /* end confdefs.h. */ |
23814 | ||
7d9455ce | 23815 | #ifdef HAVE_COMPLEX_H |
23816 | #include <complex.h> | |
23817 | #endif | |
23818 | #ifdef HAVE_MATH_H | |
23819 | #include <math.h> | |
158e0e64 | 23820 | #endif |
7d9455ce | 23821 | |
23822 | int (*ptr)() = (int (*)())y0f; | |
23823 | ||
158e0e64 | 23824 | int |
23825 | main () | |
23826 | { | |
158e0e64 | 23827 | return 0; |
23828 | } | |
7d9455ce | 23829 | |
158e0e64 | 23830 | _ACEOF |
cd9a469c | 23831 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23832 | gcc_cv_math_func_y0f=yes |
158e0e64 | 23833 | else |
7d9455ce | 23834 | gcc_cv_math_func_y0f=no |
158e0e64 | 23835 | fi |
cd9a469c | 23836 | rm -f core conftest.err conftest.$ac_objext \ |
23837 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23838 | fi |
7d9455ce | 23839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
23840 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
23841 | if test $gcc_cv_math_func_y0f = yes; then | |
bd647a17 | 23842 | |
6affa8e1 | 23843 | cat >>confdefs.h <<_ACEOF |
23844 | #define HAVE_Y0F 1 | |
23845 | _ACEOF | |
7d9455ce | 23846 | |
23847 | fi | |
158e0e64 | 23848 | |
158e0e64 | 23849 | |
158e0e64 | 23850 | |
7d9455ce | 23851 | |
23852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
23853 | $as_echo_n "checking for y0... " >&6; } | |
23854 | if test "${gcc_cv_math_func_y0+set}" = set; then : | |
cd9a469c | 23855 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23856 | else |
7d9455ce | 23857 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23858 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23859 | fi |
cd9a469c | 23860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23861 | /* end confdefs.h. */ |
23862 | ||
7d9455ce | 23863 | #ifdef HAVE_COMPLEX_H |
23864 | #include <complex.h> | |
158e0e64 | 23865 | #endif |
7d9455ce | 23866 | #ifdef HAVE_MATH_H |
23867 | #include <math.h> | |
23868 | #endif | |
23869 | ||
23870 | int (*ptr)() = (int (*)())y0; | |
23871 | ||
158e0e64 | 23872 | int |
23873 | main () | |
23874 | { | |
158e0e64 | 23875 | return 0; |
23876 | } | |
7d9455ce | 23877 | |
158e0e64 | 23878 | _ACEOF |
cd9a469c | 23879 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23880 | gcc_cv_math_func_y0=yes |
158e0e64 | 23881 | else |
7d9455ce | 23882 | gcc_cv_math_func_y0=no |
158e0e64 | 23883 | fi |
cd9a469c | 23884 | rm -f core conftest.err conftest.$ac_objext \ |
23885 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23886 | fi |
7d9455ce | 23887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
23888 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
23889 | if test $gcc_cv_math_func_y0 = yes; then | |
bd647a17 | 23890 | |
6affa8e1 | 23891 | cat >>confdefs.h <<_ACEOF |
23892 | #define HAVE_Y0 1 | |
23893 | _ACEOF | |
7d9455ce | 23894 | |
23895 | fi | |
23896 | ||
158e0e64 | 23897 | |
158e0e64 | 23898 | |
158e0e64 | 23899 | |
7d9455ce | 23900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
23901 | $as_echo_n "checking for y1f... " >&6; } | |
23902 | if test "${gcc_cv_math_func_y1f+set}" = set; then : | |
cd9a469c | 23903 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23904 | else |
7d9455ce | 23905 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23906 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23907 | fi |
cd9a469c | 23908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23909 | /* end confdefs.h. */ |
23910 | ||
7d9455ce | 23911 | #ifdef HAVE_COMPLEX_H |
23912 | #include <complex.h> | |
158e0e64 | 23913 | #endif |
7d9455ce | 23914 | #ifdef HAVE_MATH_H |
23915 | #include <math.h> | |
23916 | #endif | |
23917 | ||
23918 | int (*ptr)() = (int (*)())y1f; | |
23919 | ||
158e0e64 | 23920 | int |
23921 | main () | |
23922 | { | |
158e0e64 | 23923 | return 0; |
23924 | } | |
7d9455ce | 23925 | |
158e0e64 | 23926 | _ACEOF |
cd9a469c | 23927 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23928 | gcc_cv_math_func_y1f=yes |
158e0e64 | 23929 | else |
7d9455ce | 23930 | gcc_cv_math_func_y1f=no |
158e0e64 | 23931 | fi |
cd9a469c | 23932 | rm -f core conftest.err conftest.$ac_objext \ |
23933 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23934 | fi |
7d9455ce | 23935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
23936 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
23937 | if test $gcc_cv_math_func_y1f = yes; then | |
bd647a17 | 23938 | |
6affa8e1 | 23939 | cat >>confdefs.h <<_ACEOF |
23940 | #define HAVE_Y1F 1 | |
23941 | _ACEOF | |
158e0e64 | 23942 | |
7d9455ce | 23943 | fi |
158e0e64 | 23944 | |
158e0e64 | 23945 | |
7d9455ce | 23946 | |
23947 | ||
23948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
23949 | $as_echo_n "checking for y1... " >&6; } | |
23950 | if test "${gcc_cv_math_func_y1+set}" = set; then : | |
cd9a469c | 23951 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23952 | else |
7d9455ce | 23953 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23954 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23955 | fi |
cd9a469c | 23956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23957 | /* end confdefs.h. */ |
23958 | ||
7d9455ce | 23959 | #ifdef HAVE_COMPLEX_H |
23960 | #include <complex.h> | |
23961 | #endif | |
23962 | #ifdef HAVE_MATH_H | |
23963 | #include <math.h> | |
158e0e64 | 23964 | #endif |
7d9455ce | 23965 | |
23966 | int (*ptr)() = (int (*)())y1; | |
23967 | ||
158e0e64 | 23968 | int |
23969 | main () | |
23970 | { | |
158e0e64 | 23971 | return 0; |
23972 | } | |
7d9455ce | 23973 | |
158e0e64 | 23974 | _ACEOF |
cd9a469c | 23975 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23976 | gcc_cv_math_func_y1=yes |
158e0e64 | 23977 | else |
7d9455ce | 23978 | gcc_cv_math_func_y1=no |
158e0e64 | 23979 | fi |
cd9a469c | 23980 | rm -f core conftest.err conftest.$ac_objext \ |
23981 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23982 | fi |
7d9455ce | 23983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
23984 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
23985 | if test $gcc_cv_math_func_y1 = yes; then | |
bd647a17 | 23986 | |
6affa8e1 | 23987 | cat >>confdefs.h <<_ACEOF |
23988 | #define HAVE_Y1 1 | |
23989 | _ACEOF | |
7d9455ce | 23990 | |
23991 | fi | |
158e0e64 | 23992 | |
158e0e64 | 23993 | |
158e0e64 | 23994 | |
7d9455ce | 23995 | |
7d9455ce | 23996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
23997 | $as_echo_n "checking for ynf... " >&6; } | |
23998 | if test "${gcc_cv_math_func_ynf+set}" = set; then : | |
cd9a469c | 23999 | $as_echo_n "(cached) " >&6 |
7d9455ce | 24000 | else |
24001 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 24002 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24003 | fi |
cd9a469c | 24004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24005 | /* end confdefs.h. */ |
24006 | ||
7d9455ce | 24007 | #ifdef HAVE_COMPLEX_H |
24008 | #include <complex.h> | |
24009 | #endif | |
24010 | #ifdef HAVE_MATH_H | |
24011 | #include <math.h> | |
158e0e64 | 24012 | #endif |
7d9455ce | 24013 | |
24014 | int (*ptr)() = (int (*)())ynf; | |
24015 | ||
158e0e64 | 24016 | int |
24017 | main () | |
24018 | { | |
158e0e64 | 24019 | return 0; |
24020 | } | |
7d9455ce | 24021 | |
158e0e64 | 24022 | _ACEOF |
cd9a469c | 24023 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24024 | gcc_cv_math_func_ynf=yes |
158e0e64 | 24025 | else |
7d9455ce | 24026 | gcc_cv_math_func_ynf=no |
158e0e64 | 24027 | fi |
cd9a469c | 24028 | rm -f core conftest.err conftest.$ac_objext \ |
24029 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24030 | fi |
7d9455ce | 24031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24032 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24033 | if test $gcc_cv_math_func_ynf = yes; then | |
bd647a17 | 24034 | |
6affa8e1 | 24035 | cat >>confdefs.h <<_ACEOF |
24036 | #define HAVE_YNF 1 | |
24037 | _ACEOF | |
7d9455ce | 24038 | |
24039 | fi | |
158e0e64 | 24040 | |
158e0e64 | 24041 | |
158e0e64 | 24042 | |
7d9455ce | 24043 | |
24044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24045 | $as_echo_n "checking for yn... " >&6; } | |
24046 | if test "${gcc_cv_math_func_yn+set}" = set; then : | |
cd9a469c | 24047 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24048 | else |
7d9455ce | 24049 | if test x$gcc_no_link = xyes; then |
cd9a469c | 24050 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24051 | fi |
cd9a469c | 24052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24053 | /* end confdefs.h. */ |
24054 | ||
7d9455ce | 24055 | #ifdef HAVE_COMPLEX_H |
24056 | #include <complex.h> | |
158e0e64 | 24057 | #endif |
7d9455ce | 24058 | #ifdef HAVE_MATH_H |
24059 | #include <math.h> | |
24060 | #endif | |
24061 | ||
24062 | int (*ptr)() = (int (*)())yn; | |
24063 | ||
158e0e64 | 24064 | int |
24065 | main () | |
24066 | { | |
158e0e64 | 24067 | return 0; |
24068 | } | |
7d9455ce | 24069 | |
158e0e64 | 24070 | _ACEOF |
cd9a469c | 24071 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24072 | gcc_cv_math_func_yn=yes |
158e0e64 | 24073 | else |
7d9455ce | 24074 | gcc_cv_math_func_yn=no |
158e0e64 | 24075 | fi |
cd9a469c | 24076 | rm -f core conftest.err conftest.$ac_objext \ |
24077 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24078 | fi |
7d9455ce | 24079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24080 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24081 | if test $gcc_cv_math_func_yn = yes; then | |
bd647a17 | 24082 | |
6affa8e1 | 24083 | cat >>confdefs.h <<_ACEOF |
24084 | #define HAVE_YN 1 | |
24085 | _ACEOF | |
7d9455ce | 24086 | |
24087 | fi | |
24088 | ||
158e0e64 | 24089 | |
158e0e64 | 24090 | |
158e0e64 | 24091 | |
7d9455ce | 24092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24093 | $as_echo_n "checking for ynl... " >&6; } | |
24094 | if test "${gcc_cv_math_func_ynl+set}" = set; then : | |
cd9a469c | 24095 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24096 | else |
7d9455ce | 24097 | if test x$gcc_no_link = xyes; then |
cd9a469c | 24098 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24099 | fi |
cd9a469c | 24100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24101 | /* end confdefs.h. */ |
24102 | ||
7d9455ce | 24103 | #ifdef HAVE_COMPLEX_H |
24104 | #include <complex.h> | |
24105 | #endif | |
24106 | #ifdef HAVE_MATH_H | |
24107 | #include <math.h> | |
158e0e64 | 24108 | #endif |
7d9455ce | 24109 | |
24110 | int (*ptr)() = (int (*)())ynl; | |
24111 | ||
158e0e64 | 24112 | int |
24113 | main () | |
24114 | { | |
158e0e64 | 24115 | return 0; |
24116 | } | |
7d9455ce | 24117 | |
158e0e64 | 24118 | _ACEOF |
cd9a469c | 24119 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24120 | gcc_cv_math_func_ynl=yes |
158e0e64 | 24121 | else |
7d9455ce | 24122 | gcc_cv_math_func_ynl=no |
158e0e64 | 24123 | fi |
cd9a469c | 24124 | rm -f core conftest.err conftest.$ac_objext \ |
24125 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24126 | fi |
7d9455ce | 24127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24128 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24129 | if test $gcc_cv_math_func_ynl = yes; then | |
bd647a17 | 24130 | |
6affa8e1 | 24131 | cat >>confdefs.h <<_ACEOF |
24132 | #define HAVE_YNL 1 | |
24133 | _ACEOF | |
7d9455ce | 24134 | |
24135 | fi | |
158e0e64 | 24136 | |
158e0e64 | 24137 | |
158e0e64 | 24138 | |
7d9455ce | 24139 | |
24140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24141 | $as_echo_n "checking for tgamma... " >&6; } | |
24142 | if test "${gcc_cv_math_func_tgamma+set}" = set; then : | |
cd9a469c | 24143 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24144 | else |
7d9455ce | 24145 | if test x$gcc_no_link = xyes; then |
cd9a469c | 24146 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24147 | fi |
cd9a469c | 24148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24149 | /* end confdefs.h. */ |
24150 | ||
7d9455ce | 24151 | #ifdef HAVE_COMPLEX_H |
24152 | #include <complex.h> | |
6d516d29 | 24153 | #endif |
7d9455ce | 24154 | #ifdef HAVE_MATH_H |
24155 | #include <math.h> | |
24156 | #endif | |
24157 | ||
24158 | int (*ptr)() = (int (*)())tgamma; | |
24159 | ||
6d516d29 | 24160 | int |
24161 | main () | |
24162 | { | |
6d516d29 | 24163 | return 0; |
24164 | } | |
7d9455ce | 24165 | |
6d516d29 | 24166 | _ACEOF |
cd9a469c | 24167 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24168 | gcc_cv_math_func_tgamma=yes |
6d516d29 | 24169 | else |
7d9455ce | 24170 | gcc_cv_math_func_tgamma=no |
6d516d29 | 24171 | fi |
cd9a469c | 24172 | rm -f core conftest.err conftest.$ac_objext \ |
24173 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24174 | fi |
7d9455ce | 24175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24176 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24177 | if test $gcc_cv_math_func_tgamma = yes; then | |
bd647a17 | 24178 | |
6affa8e1 | 24179 | cat >>confdefs.h <<_ACEOF |
24180 | #define HAVE_TGAMMA 1 | |
24181 | _ACEOF | |
6d516d29 | 24182 | |
7d9455ce | 24183 | fi |
6d516d29 | 24184 | |
6d516d29 | 24185 | |
7d9455ce | 24186 | |
24187 | ||
24188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24189 | $as_echo_n "checking for tgammaf... " >&6; } | |
24190 | if test "${gcc_cv_math_func_tgammaf+set}" = set; then : | |
cd9a469c | 24191 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24192 | else |
7d9455ce | 24193 | if test x$gcc_no_link = xyes; then |
cd9a469c | 24194 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24195 | fi |
cd9a469c | 24196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24197 | /* end confdefs.h. */ |
24198 | ||
7d9455ce | 24199 | #ifdef HAVE_COMPLEX_H |
24200 | #include <complex.h> | |
24201 | #endif | |
24202 | #ifdef HAVE_MATH_H | |
24203 | #include <math.h> | |
6d516d29 | 24204 | #endif |
7d9455ce | 24205 | |
24206 | int (*ptr)() = (int (*)())tgammaf; | |
24207 | ||
6d516d29 | 24208 | int |
24209 | main () | |
24210 | { | |
6d516d29 | 24211 | return 0; |
24212 | } | |
7d9455ce | 24213 | |
6d516d29 | 24214 | _ACEOF |
cd9a469c | 24215 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24216 | gcc_cv_math_func_tgammaf=yes |
6d516d29 | 24217 | else |
7d9455ce | 24218 | gcc_cv_math_func_tgammaf=no |
6d516d29 | 24219 | fi |
cd9a469c | 24220 | rm -f core conftest.err conftest.$ac_objext \ |
24221 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24222 | fi |
7d9455ce | 24223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24224 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24225 | if test $gcc_cv_math_func_tgammaf = yes; then | |
bd647a17 | 24226 | |
6affa8e1 | 24227 | cat >>confdefs.h <<_ACEOF |
24228 | #define HAVE_TGAMMAF 1 | |
24229 | _ACEOF | |
7d9455ce | 24230 | |
24231 | fi | |
6d516d29 | 24232 | |
6d516d29 | 24233 | |
6d516d29 | 24234 | |
7d9455ce | 24235 | |
7d9455ce | 24236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24237 | $as_echo_n "checking for lgamma... " >&6; } | |
24238 | if test "${gcc_cv_math_func_lgamma+set}" = set; then : | |
cd9a469c | 24239 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24240 | else |
7d9455ce | 24241 | if test x$gcc_no_link = xyes; then |
cd9a469c | 24242 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24243 | fi |
cd9a469c | 24244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24245 | /* end confdefs.h. */ |
24246 | ||
7d9455ce | 24247 | #ifdef HAVE_COMPLEX_H |
24248 | #include <complex.h> | |
24249 | #endif | |
24250 | #ifdef HAVE_MATH_H | |
24251 | #include <math.h> | |
6d516d29 | 24252 | #endif |
7d9455ce | 24253 | |
24254 | int (*ptr)() = (int (*)())lgamma; | |
24255 | ||
6d516d29 | 24256 | int |
24257 | main () | |
24258 | { | |
6d516d29 | 24259 | return 0; |
24260 | } | |
7d9455ce | 24261 | |
6d516d29 | 24262 | _ACEOF |
cd9a469c | 24263 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24264 | gcc_cv_math_func_lgamma=yes |
6d516d29 | 24265 | else |
7d9455ce | 24266 | gcc_cv_math_func_lgamma=no |
6d516d29 | 24267 | fi |
cd9a469c | 24268 | rm -f core conftest.err conftest.$ac_objext \ |
24269 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24270 | fi |
7d9455ce | 24271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24272 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24273 | if test $gcc_cv_math_func_lgamma = yes; then | |
bd647a17 | 24274 | |
6affa8e1 | 24275 | cat >>confdefs.h <<_ACEOF |
24276 | #define HAVE_LGAMMA 1 | |
24277 | _ACEOF | |
7d9455ce | 24278 | |
24279 | fi | |
6d516d29 | 24280 | |
6d516d29 | 24281 | |
6d516d29 | 24282 | |
7d9455ce | 24283 | |
24284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24285 | $as_echo_n "checking for lgammaf... " >&6; } | |
24286 | if test "${gcc_cv_math_func_lgammaf+set}" = set; then : | |
cd9a469c | 24287 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24288 | else |
7d9455ce | 24289 | if test x$gcc_no_link = xyes; then |
cd9a469c | 24290 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24291 | fi |
cd9a469c | 24292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24293 | /* end confdefs.h. */ |
24294 | ||
7d9455ce | 24295 | #ifdef HAVE_COMPLEX_H |
24296 | #include <complex.h> | |
6d516d29 | 24297 | #endif |
7d9455ce | 24298 | #ifdef HAVE_MATH_H |
24299 | #include <math.h> | |
24300 | #endif | |
24301 | ||
24302 | int (*ptr)() = (int (*)())lgammaf; | |
24303 | ||
6d516d29 | 24304 | int |
24305 | main () | |
24306 | { | |
6d516d29 | 24307 | return 0; |
24308 | } | |
7d9455ce | 24309 | |
6d516d29 | 24310 | _ACEOF |
cd9a469c | 24311 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24312 | gcc_cv_math_func_lgammaf=yes |
6d516d29 | 24313 | else |
7d9455ce | 24314 | gcc_cv_math_func_lgammaf=no |
6d516d29 | 24315 | fi |
cd9a469c | 24316 | rm -f core conftest.err conftest.$ac_objext \ |
24317 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24318 | fi |
7d9455ce | 24319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
24320 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
24321 | if test $gcc_cv_math_func_lgammaf = yes; then | |
bd647a17 | 24322 | |
6affa8e1 | 24323 | cat >>confdefs.h <<_ACEOF |
24324 | #define HAVE_LGAMMAF 1 | |
24325 | _ACEOF | |
6d516d29 | 24326 | |
7d9455ce | 24327 | fi |
6d516d29 | 24328 | |
6d516d29 | 24329 | |
89b803c8 | 24330 | # Check for GFORTRAN_C99_1.1 funcs |
7d9455ce | 24331 | |
24332 | ||
24333 | ||
24334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
24335 | $as_echo_n "checking for cacos... " >&6; } | |
24336 | if test "${gcc_cv_math_func_cacos+set}" = set; then : | |
89b803c8 | 24337 | $as_echo_n "(cached) " >&6 |
24338 | else | |
7d9455ce | 24339 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24340 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24341 | fi | |
24342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24343 | /* end confdefs.h. */ | |
24344 | ||
7d9455ce | 24345 | #ifdef HAVE_COMPLEX_H |
24346 | #include <complex.h> | |
89b803c8 | 24347 | #endif |
7d9455ce | 24348 | #ifdef HAVE_MATH_H |
24349 | #include <math.h> | |
24350 | #endif | |
24351 | ||
24352 | int (*ptr)() = (int (*)())cacos; | |
24353 | ||
89b803c8 | 24354 | int |
24355 | main () | |
24356 | { | |
89b803c8 | 24357 | return 0; |
24358 | } | |
7d9455ce | 24359 | |
89b803c8 | 24360 | _ACEOF |
24361 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24362 | gcc_cv_math_func_cacos=yes |
89b803c8 | 24363 | else |
7d9455ce | 24364 | gcc_cv_math_func_cacos=no |
89b803c8 | 24365 | fi |
24366 | rm -f core conftest.err conftest.$ac_objext \ | |
24367 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24368 | fi |
7d9455ce | 24369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
24370 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
24371 | if test $gcc_cv_math_func_cacos = yes; then | |
bd647a17 | 24372 | |
6affa8e1 | 24373 | cat >>confdefs.h <<_ACEOF |
24374 | #define HAVE_CACOS 1 | |
24375 | _ACEOF | |
89b803c8 | 24376 | |
7d9455ce | 24377 | fi |
89b803c8 | 24378 | |
89b803c8 | 24379 | |
7d9455ce | 24380 | |
24381 | ||
24382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
24383 | $as_echo_n "checking for cacosf... " >&6; } | |
24384 | if test "${gcc_cv_math_func_cacosf+set}" = set; then : | |
89b803c8 | 24385 | $as_echo_n "(cached) " >&6 |
24386 | else | |
7d9455ce | 24387 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24388 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24389 | fi | |
24390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24391 | /* end confdefs.h. */ | |
24392 | ||
7d9455ce | 24393 | #ifdef HAVE_COMPLEX_H |
24394 | #include <complex.h> | |
24395 | #endif | |
24396 | #ifdef HAVE_MATH_H | |
24397 | #include <math.h> | |
89b803c8 | 24398 | #endif |
7d9455ce | 24399 | |
24400 | int (*ptr)() = (int (*)())cacosf; | |
24401 | ||
89b803c8 | 24402 | int |
24403 | main () | |
24404 | { | |
89b803c8 | 24405 | return 0; |
24406 | } | |
7d9455ce | 24407 | |
89b803c8 | 24408 | _ACEOF |
24409 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24410 | gcc_cv_math_func_cacosf=yes |
89b803c8 | 24411 | else |
7d9455ce | 24412 | gcc_cv_math_func_cacosf=no |
89b803c8 | 24413 | fi |
24414 | rm -f core conftest.err conftest.$ac_objext \ | |
24415 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24416 | fi |
7d9455ce | 24417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
24418 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
24419 | if test $gcc_cv_math_func_cacosf = yes; then | |
bd647a17 | 24420 | |
6affa8e1 | 24421 | cat >>confdefs.h <<_ACEOF |
24422 | #define HAVE_CACOSF 1 | |
24423 | _ACEOF | |
7d9455ce | 24424 | |
24425 | fi | |
89b803c8 | 24426 | |
89b803c8 | 24427 | |
89b803c8 | 24428 | |
7d9455ce | 24429 | |
24430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
24431 | $as_echo_n "checking for cacosh... " >&6; } | |
24432 | if test "${gcc_cv_math_func_cacosh+set}" = set; then : | |
89b803c8 | 24433 | $as_echo_n "(cached) " >&6 |
24434 | else | |
7d9455ce | 24435 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24436 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24437 | fi | |
24438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24439 | /* end confdefs.h. */ | |
24440 | ||
7d9455ce | 24441 | #ifdef HAVE_COMPLEX_H |
24442 | #include <complex.h> | |
89b803c8 | 24443 | #endif |
7d9455ce | 24444 | #ifdef HAVE_MATH_H |
24445 | #include <math.h> | |
24446 | #endif | |
24447 | ||
24448 | int (*ptr)() = (int (*)())cacosh; | |
24449 | ||
89b803c8 | 24450 | int |
24451 | main () | |
24452 | { | |
89b803c8 | 24453 | return 0; |
24454 | } | |
7d9455ce | 24455 | |
89b803c8 | 24456 | _ACEOF |
24457 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24458 | gcc_cv_math_func_cacosh=yes |
89b803c8 | 24459 | else |
7d9455ce | 24460 | gcc_cv_math_func_cacosh=no |
89b803c8 | 24461 | fi |
24462 | rm -f core conftest.err conftest.$ac_objext \ | |
24463 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24464 | fi |
7d9455ce | 24465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
24466 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
24467 | if test $gcc_cv_math_func_cacosh = yes; then | |
bd647a17 | 24468 | |
6affa8e1 | 24469 | cat >>confdefs.h <<_ACEOF |
24470 | #define HAVE_CACOSH 1 | |
24471 | _ACEOF | |
7d9455ce | 24472 | |
24473 | fi | |
24474 | ||
89b803c8 | 24475 | |
89b803c8 | 24476 | |
89b803c8 | 24477 | |
7d9455ce | 24478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
24479 | $as_echo_n "checking for cacoshf... " >&6; } | |
24480 | if test "${gcc_cv_math_func_cacoshf+set}" = set; then : | |
89b803c8 | 24481 | $as_echo_n "(cached) " >&6 |
24482 | else | |
7d9455ce | 24483 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24484 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24485 | fi | |
24486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24487 | /* end confdefs.h. */ | |
24488 | ||
7d9455ce | 24489 | #ifdef HAVE_COMPLEX_H |
24490 | #include <complex.h> | |
24491 | #endif | |
24492 | #ifdef HAVE_MATH_H | |
24493 | #include <math.h> | |
89b803c8 | 24494 | #endif |
7d9455ce | 24495 | |
24496 | int (*ptr)() = (int (*)())cacoshf; | |
24497 | ||
89b803c8 | 24498 | int |
24499 | main () | |
24500 | { | |
89b803c8 | 24501 | return 0; |
24502 | } | |
7d9455ce | 24503 | |
89b803c8 | 24504 | _ACEOF |
24505 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24506 | gcc_cv_math_func_cacoshf=yes |
89b803c8 | 24507 | else |
7d9455ce | 24508 | gcc_cv_math_func_cacoshf=no |
89b803c8 | 24509 | fi |
24510 | rm -f core conftest.err conftest.$ac_objext \ | |
24511 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24512 | fi |
7d9455ce | 24513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
24514 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
24515 | if test $gcc_cv_math_func_cacoshf = yes; then | |
bd647a17 | 24516 | |
6affa8e1 | 24517 | cat >>confdefs.h <<_ACEOF |
24518 | #define HAVE_CACOSHF 1 | |
24519 | _ACEOF | |
7d9455ce | 24520 | |
24521 | fi | |
89b803c8 | 24522 | |
89b803c8 | 24523 | |
89b803c8 | 24524 | |
7d9455ce | 24525 | |
24526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
24527 | $as_echo_n "checking for cacoshl... " >&6; } | |
24528 | if test "${gcc_cv_math_func_cacoshl+set}" = set; then : | |
89b803c8 | 24529 | $as_echo_n "(cached) " >&6 |
24530 | else | |
7d9455ce | 24531 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24532 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24533 | fi | |
24534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24535 | /* end confdefs.h. */ | |
24536 | ||
7d9455ce | 24537 | #ifdef HAVE_COMPLEX_H |
24538 | #include <complex.h> | |
89b803c8 | 24539 | #endif |
7d9455ce | 24540 | #ifdef HAVE_MATH_H |
24541 | #include <math.h> | |
24542 | #endif | |
24543 | ||
24544 | int (*ptr)() = (int (*)())cacoshl; | |
24545 | ||
89b803c8 | 24546 | int |
24547 | main () | |
24548 | { | |
89b803c8 | 24549 | return 0; |
24550 | } | |
7d9455ce | 24551 | |
89b803c8 | 24552 | _ACEOF |
24553 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24554 | gcc_cv_math_func_cacoshl=yes |
89b803c8 | 24555 | else |
7d9455ce | 24556 | gcc_cv_math_func_cacoshl=no |
89b803c8 | 24557 | fi |
24558 | rm -f core conftest.err conftest.$ac_objext \ | |
24559 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24560 | fi |
7d9455ce | 24561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
24562 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
24563 | if test $gcc_cv_math_func_cacoshl = yes; then | |
bd647a17 | 24564 | |
6affa8e1 | 24565 | cat >>confdefs.h <<_ACEOF |
24566 | #define HAVE_CACOSHL 1 | |
24567 | _ACEOF | |
89b803c8 | 24568 | |
7d9455ce | 24569 | fi |
89b803c8 | 24570 | |
89b803c8 | 24571 | |
7d9455ce | 24572 | |
24573 | ||
24574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
24575 | $as_echo_n "checking for cacosl... " >&6; } | |
24576 | if test "${gcc_cv_math_func_cacosl+set}" = set; then : | |
89b803c8 | 24577 | $as_echo_n "(cached) " >&6 |
24578 | else | |
7d9455ce | 24579 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24580 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24581 | fi | |
24582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24583 | /* end confdefs.h. */ | |
24584 | ||
7d9455ce | 24585 | #ifdef HAVE_COMPLEX_H |
24586 | #include <complex.h> | |
24587 | #endif | |
24588 | #ifdef HAVE_MATH_H | |
24589 | #include <math.h> | |
89b803c8 | 24590 | #endif |
7d9455ce | 24591 | |
24592 | int (*ptr)() = (int (*)())cacosl; | |
24593 | ||
89b803c8 | 24594 | int |
24595 | main () | |
24596 | { | |
89b803c8 | 24597 | return 0; |
24598 | } | |
7d9455ce | 24599 | |
89b803c8 | 24600 | _ACEOF |
24601 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24602 | gcc_cv_math_func_cacosl=yes |
89b803c8 | 24603 | else |
7d9455ce | 24604 | gcc_cv_math_func_cacosl=no |
89b803c8 | 24605 | fi |
24606 | rm -f core conftest.err conftest.$ac_objext \ | |
24607 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24608 | fi |
7d9455ce | 24609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
24610 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
24611 | if test $gcc_cv_math_func_cacosl = yes; then | |
bd647a17 | 24612 | |
6affa8e1 | 24613 | cat >>confdefs.h <<_ACEOF |
24614 | #define HAVE_CACOSL 1 | |
24615 | _ACEOF | |
7d9455ce | 24616 | |
24617 | fi | |
89b803c8 | 24618 | |
89b803c8 | 24619 | |
89b803c8 | 24620 | |
7d9455ce | 24621 | |
24622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
24623 | $as_echo_n "checking for casin... " >&6; } | |
24624 | if test "${gcc_cv_math_func_casin+set}" = set; then : | |
89b803c8 | 24625 | $as_echo_n "(cached) " >&6 |
24626 | else | |
7d9455ce | 24627 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24628 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24629 | fi | |
24630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24631 | /* end confdefs.h. */ | |
24632 | ||
7d9455ce | 24633 | #ifdef HAVE_COMPLEX_H |
24634 | #include <complex.h> | |
89b803c8 | 24635 | #endif |
7d9455ce | 24636 | #ifdef HAVE_MATH_H |
24637 | #include <math.h> | |
24638 | #endif | |
24639 | ||
24640 | int (*ptr)() = (int (*)())casin; | |
24641 | ||
89b803c8 | 24642 | int |
24643 | main () | |
24644 | { | |
89b803c8 | 24645 | return 0; |
24646 | } | |
7d9455ce | 24647 | |
89b803c8 | 24648 | _ACEOF |
24649 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24650 | gcc_cv_math_func_casin=yes |
89b803c8 | 24651 | else |
7d9455ce | 24652 | gcc_cv_math_func_casin=no |
89b803c8 | 24653 | fi |
24654 | rm -f core conftest.err conftest.$ac_objext \ | |
24655 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24656 | fi |
7d9455ce | 24657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
24658 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
24659 | if test $gcc_cv_math_func_casin = yes; then | |
bd647a17 | 24660 | |
6affa8e1 | 24661 | cat >>confdefs.h <<_ACEOF |
24662 | #define HAVE_CASIN 1 | |
24663 | _ACEOF | |
7d9455ce | 24664 | |
24665 | fi | |
24666 | ||
89b803c8 | 24667 | |
89b803c8 | 24668 | |
89b803c8 | 24669 | |
7d9455ce | 24670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
24671 | $as_echo_n "checking for casinf... " >&6; } | |
24672 | if test "${gcc_cv_math_func_casinf+set}" = set; then : | |
89b803c8 | 24673 | $as_echo_n "(cached) " >&6 |
24674 | else | |
7d9455ce | 24675 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24676 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24677 | fi | |
24678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24679 | /* end confdefs.h. */ | |
24680 | ||
7d9455ce | 24681 | #ifdef HAVE_COMPLEX_H |
24682 | #include <complex.h> | |
24683 | #endif | |
24684 | #ifdef HAVE_MATH_H | |
24685 | #include <math.h> | |
89b803c8 | 24686 | #endif |
7d9455ce | 24687 | |
24688 | int (*ptr)() = (int (*)())casinf; | |
24689 | ||
89b803c8 | 24690 | int |
24691 | main () | |
24692 | { | |
89b803c8 | 24693 | return 0; |
24694 | } | |
7d9455ce | 24695 | |
89b803c8 | 24696 | _ACEOF |
24697 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24698 | gcc_cv_math_func_casinf=yes |
89b803c8 | 24699 | else |
7d9455ce | 24700 | gcc_cv_math_func_casinf=no |
89b803c8 | 24701 | fi |
24702 | rm -f core conftest.err conftest.$ac_objext \ | |
24703 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24704 | fi |
7d9455ce | 24705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
24706 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
24707 | if test $gcc_cv_math_func_casinf = yes; then | |
bd647a17 | 24708 | |
6affa8e1 | 24709 | cat >>confdefs.h <<_ACEOF |
24710 | #define HAVE_CASINF 1 | |
24711 | _ACEOF | |
7d9455ce | 24712 | |
24713 | fi | |
89b803c8 | 24714 | |
89b803c8 | 24715 | |
89b803c8 | 24716 | |
7d9455ce | 24717 | |
24718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
24719 | $as_echo_n "checking for casinh... " >&6; } | |
24720 | if test "${gcc_cv_math_func_casinh+set}" = set; then : | |
89b803c8 | 24721 | $as_echo_n "(cached) " >&6 |
24722 | else | |
7d9455ce | 24723 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24724 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24725 | fi | |
24726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24727 | /* end confdefs.h. */ | |
24728 | ||
7d9455ce | 24729 | #ifdef HAVE_COMPLEX_H |
24730 | #include <complex.h> | |
89b803c8 | 24731 | #endif |
7d9455ce | 24732 | #ifdef HAVE_MATH_H |
24733 | #include <math.h> | |
24734 | #endif | |
24735 | ||
24736 | int (*ptr)() = (int (*)())casinh; | |
24737 | ||
89b803c8 | 24738 | int |
24739 | main () | |
24740 | { | |
89b803c8 | 24741 | return 0; |
24742 | } | |
7d9455ce | 24743 | |
89b803c8 | 24744 | _ACEOF |
24745 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24746 | gcc_cv_math_func_casinh=yes |
89b803c8 | 24747 | else |
7d9455ce | 24748 | gcc_cv_math_func_casinh=no |
89b803c8 | 24749 | fi |
24750 | rm -f core conftest.err conftest.$ac_objext \ | |
24751 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24752 | fi |
7d9455ce | 24753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
24754 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
24755 | if test $gcc_cv_math_func_casinh = yes; then | |
bd647a17 | 24756 | |
6affa8e1 | 24757 | cat >>confdefs.h <<_ACEOF |
24758 | #define HAVE_CASINH 1 | |
24759 | _ACEOF | |
89b803c8 | 24760 | |
7d9455ce | 24761 | fi |
89b803c8 | 24762 | |
89b803c8 | 24763 | |
7d9455ce | 24764 | |
24765 | ||
24766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
24767 | $as_echo_n "checking for casinhf... " >&6; } | |
24768 | if test "${gcc_cv_math_func_casinhf+set}" = set; then : | |
89b803c8 | 24769 | $as_echo_n "(cached) " >&6 |
24770 | else | |
7d9455ce | 24771 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24772 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24773 | fi | |
24774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24775 | /* end confdefs.h. */ | |
24776 | ||
7d9455ce | 24777 | #ifdef HAVE_COMPLEX_H |
24778 | #include <complex.h> | |
24779 | #endif | |
24780 | #ifdef HAVE_MATH_H | |
24781 | #include <math.h> | |
89b803c8 | 24782 | #endif |
7d9455ce | 24783 | |
24784 | int (*ptr)() = (int (*)())casinhf; | |
24785 | ||
89b803c8 | 24786 | int |
24787 | main () | |
24788 | { | |
89b803c8 | 24789 | return 0; |
24790 | } | |
7d9455ce | 24791 | |
89b803c8 | 24792 | _ACEOF |
24793 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24794 | gcc_cv_math_func_casinhf=yes |
89b803c8 | 24795 | else |
7d9455ce | 24796 | gcc_cv_math_func_casinhf=no |
89b803c8 | 24797 | fi |
24798 | rm -f core conftest.err conftest.$ac_objext \ | |
24799 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24800 | fi |
7d9455ce | 24801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
24802 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
24803 | if test $gcc_cv_math_func_casinhf = yes; then | |
bd647a17 | 24804 | |
6affa8e1 | 24805 | cat >>confdefs.h <<_ACEOF |
24806 | #define HAVE_CASINHF 1 | |
24807 | _ACEOF | |
7d9455ce | 24808 | |
24809 | fi | |
89b803c8 | 24810 | |
89b803c8 | 24811 | |
89b803c8 | 24812 | |
7d9455ce | 24813 | |
24814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
24815 | $as_echo_n "checking for casinhl... " >&6; } | |
24816 | if test "${gcc_cv_math_func_casinhl+set}" = set; then : | |
89b803c8 | 24817 | $as_echo_n "(cached) " >&6 |
24818 | else | |
7d9455ce | 24819 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24820 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24821 | fi | |
24822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24823 | /* end confdefs.h. */ | |
24824 | ||
7d9455ce | 24825 | #ifdef HAVE_COMPLEX_H |
24826 | #include <complex.h> | |
89b803c8 | 24827 | #endif |
7d9455ce | 24828 | #ifdef HAVE_MATH_H |
24829 | #include <math.h> | |
24830 | #endif | |
24831 | ||
24832 | int (*ptr)() = (int (*)())casinhl; | |
24833 | ||
89b803c8 | 24834 | int |
24835 | main () | |
24836 | { | |
89b803c8 | 24837 | return 0; |
24838 | } | |
7d9455ce | 24839 | |
89b803c8 | 24840 | _ACEOF |
24841 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24842 | gcc_cv_math_func_casinhl=yes |
89b803c8 | 24843 | else |
7d9455ce | 24844 | gcc_cv_math_func_casinhl=no |
89b803c8 | 24845 | fi |
24846 | rm -f core conftest.err conftest.$ac_objext \ | |
24847 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24848 | fi |
7d9455ce | 24849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
24850 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
24851 | if test $gcc_cv_math_func_casinhl = yes; then | |
bd647a17 | 24852 | |
6affa8e1 | 24853 | cat >>confdefs.h <<_ACEOF |
24854 | #define HAVE_CASINHL 1 | |
24855 | _ACEOF | |
7d9455ce | 24856 | |
24857 | fi | |
24858 | ||
89b803c8 | 24859 | |
89b803c8 | 24860 | |
89b803c8 | 24861 | |
7d9455ce | 24862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
24863 | $as_echo_n "checking for casinl... " >&6; } | |
24864 | if test "${gcc_cv_math_func_casinl+set}" = set; then : | |
89b803c8 | 24865 | $as_echo_n "(cached) " >&6 |
24866 | else | |
7d9455ce | 24867 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24868 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24869 | fi | |
24870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24871 | /* end confdefs.h. */ | |
24872 | ||
7d9455ce | 24873 | #ifdef HAVE_COMPLEX_H |
24874 | #include <complex.h> | |
24875 | #endif | |
24876 | #ifdef HAVE_MATH_H | |
24877 | #include <math.h> | |
89b803c8 | 24878 | #endif |
7d9455ce | 24879 | |
24880 | int (*ptr)() = (int (*)())casinl; | |
24881 | ||
89b803c8 | 24882 | int |
24883 | main () | |
24884 | { | |
89b803c8 | 24885 | return 0; |
24886 | } | |
7d9455ce | 24887 | |
89b803c8 | 24888 | _ACEOF |
24889 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24890 | gcc_cv_math_func_casinl=yes |
89b803c8 | 24891 | else |
7d9455ce | 24892 | gcc_cv_math_func_casinl=no |
89b803c8 | 24893 | fi |
24894 | rm -f core conftest.err conftest.$ac_objext \ | |
24895 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24896 | fi |
7d9455ce | 24897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
24898 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
24899 | if test $gcc_cv_math_func_casinl = yes; then | |
bd647a17 | 24900 | |
6affa8e1 | 24901 | cat >>confdefs.h <<_ACEOF |
24902 | #define HAVE_CASINL 1 | |
24903 | _ACEOF | |
7d9455ce | 24904 | |
24905 | fi | |
89b803c8 | 24906 | |
89b803c8 | 24907 | |
89b803c8 | 24908 | |
7d9455ce | 24909 | |
24910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
24911 | $as_echo_n "checking for catan... " >&6; } | |
24912 | if test "${gcc_cv_math_func_catan+set}" = set; then : | |
89b803c8 | 24913 | $as_echo_n "(cached) " >&6 |
24914 | else | |
7d9455ce | 24915 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24916 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24917 | fi | |
24918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24919 | /* end confdefs.h. */ | |
24920 | ||
7d9455ce | 24921 | #ifdef HAVE_COMPLEX_H |
24922 | #include <complex.h> | |
89b803c8 | 24923 | #endif |
7d9455ce | 24924 | #ifdef HAVE_MATH_H |
24925 | #include <math.h> | |
24926 | #endif | |
24927 | ||
24928 | int (*ptr)() = (int (*)())catan; | |
24929 | ||
89b803c8 | 24930 | int |
24931 | main () | |
24932 | { | |
89b803c8 | 24933 | return 0; |
24934 | } | |
7d9455ce | 24935 | |
89b803c8 | 24936 | _ACEOF |
24937 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24938 | gcc_cv_math_func_catan=yes |
89b803c8 | 24939 | else |
7d9455ce | 24940 | gcc_cv_math_func_catan=no |
89b803c8 | 24941 | fi |
24942 | rm -f core conftest.err conftest.$ac_objext \ | |
24943 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24944 | fi |
7d9455ce | 24945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
24946 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
24947 | if test $gcc_cv_math_func_catan = yes; then | |
bd647a17 | 24948 | |
6affa8e1 | 24949 | cat >>confdefs.h <<_ACEOF |
24950 | #define HAVE_CATAN 1 | |
24951 | _ACEOF | |
89b803c8 | 24952 | |
7d9455ce | 24953 | fi |
89b803c8 | 24954 | |
89b803c8 | 24955 | |
7d9455ce | 24956 | |
24957 | ||
24958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
24959 | $as_echo_n "checking for catanf... " >&6; } | |
24960 | if test "${gcc_cv_math_func_catanf+set}" = set; then : | |
89b803c8 | 24961 | $as_echo_n "(cached) " >&6 |
24962 | else | |
7d9455ce | 24963 | if test x$gcc_no_link = xyes; then |
89b803c8 | 24964 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
24965 | fi | |
24966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24967 | /* end confdefs.h. */ | |
24968 | ||
7d9455ce | 24969 | #ifdef HAVE_COMPLEX_H |
24970 | #include <complex.h> | |
24971 | #endif | |
24972 | #ifdef HAVE_MATH_H | |
24973 | #include <math.h> | |
89b803c8 | 24974 | #endif |
7d9455ce | 24975 | |
24976 | int (*ptr)() = (int (*)())catanf; | |
24977 | ||
89b803c8 | 24978 | int |
24979 | main () | |
24980 | { | |
89b803c8 | 24981 | return 0; |
24982 | } | |
7d9455ce | 24983 | |
89b803c8 | 24984 | _ACEOF |
24985 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24986 | gcc_cv_math_func_catanf=yes |
89b803c8 | 24987 | else |
7d9455ce | 24988 | gcc_cv_math_func_catanf=no |
89b803c8 | 24989 | fi |
24990 | rm -f core conftest.err conftest.$ac_objext \ | |
24991 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24992 | fi |
7d9455ce | 24993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
24994 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
24995 | if test $gcc_cv_math_func_catanf = yes; then | |
bd647a17 | 24996 | |
6affa8e1 | 24997 | cat >>confdefs.h <<_ACEOF |
24998 | #define HAVE_CATANF 1 | |
24999 | _ACEOF | |
7d9455ce | 25000 | |
25001 | fi | |
89b803c8 | 25002 | |
89b803c8 | 25003 | |
89b803c8 | 25004 | |
7d9455ce | 25005 | |
25006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25007 | $as_echo_n "checking for catanh... " >&6; } | |
25008 | if test "${gcc_cv_math_func_catanh+set}" = set; then : | |
89b803c8 | 25009 | $as_echo_n "(cached) " >&6 |
25010 | else | |
7d9455ce | 25011 | if test x$gcc_no_link = xyes; then |
89b803c8 | 25012 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
25013 | fi | |
25014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25015 | /* end confdefs.h. */ | |
25016 | ||
7d9455ce | 25017 | #ifdef HAVE_COMPLEX_H |
25018 | #include <complex.h> | |
89b803c8 | 25019 | #endif |
7d9455ce | 25020 | #ifdef HAVE_MATH_H |
25021 | #include <math.h> | |
25022 | #endif | |
25023 | ||
25024 | int (*ptr)() = (int (*)())catanh; | |
25025 | ||
89b803c8 | 25026 | int |
25027 | main () | |
25028 | { | |
89b803c8 | 25029 | return 0; |
25030 | } | |
7d9455ce | 25031 | |
89b803c8 | 25032 | _ACEOF |
25033 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25034 | gcc_cv_math_func_catanh=yes |
89b803c8 | 25035 | else |
7d9455ce | 25036 | gcc_cv_math_func_catanh=no |
89b803c8 | 25037 | fi |
25038 | rm -f core conftest.err conftest.$ac_objext \ | |
25039 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25040 | fi |
7d9455ce | 25041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25042 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25043 | if test $gcc_cv_math_func_catanh = yes; then | |
bd647a17 | 25044 | |
6affa8e1 | 25045 | cat >>confdefs.h <<_ACEOF |
25046 | #define HAVE_CATANH 1 | |
25047 | _ACEOF | |
7d9455ce | 25048 | |
25049 | fi | |
25050 | ||
89b803c8 | 25051 | |
89b803c8 | 25052 | |
89b803c8 | 25053 | |
7d9455ce | 25054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25055 | $as_echo_n "checking for catanhf... " >&6; } | |
25056 | if test "${gcc_cv_math_func_catanhf+set}" = set; then : | |
89b803c8 | 25057 | $as_echo_n "(cached) " >&6 |
25058 | else | |
7d9455ce | 25059 | if test x$gcc_no_link = xyes; then |
89b803c8 | 25060 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
25061 | fi | |
25062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25063 | /* end confdefs.h. */ | |
25064 | ||
7d9455ce | 25065 | #ifdef HAVE_COMPLEX_H |
25066 | #include <complex.h> | |
25067 | #endif | |
25068 | #ifdef HAVE_MATH_H | |
25069 | #include <math.h> | |
89b803c8 | 25070 | #endif |
7d9455ce | 25071 | |
25072 | int (*ptr)() = (int (*)())catanhf; | |
25073 | ||
89b803c8 | 25074 | int |
25075 | main () | |
25076 | { | |
89b803c8 | 25077 | return 0; |
25078 | } | |
7d9455ce | 25079 | |
89b803c8 | 25080 | _ACEOF |
25081 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25082 | gcc_cv_math_func_catanhf=yes |
89b803c8 | 25083 | else |
7d9455ce | 25084 | gcc_cv_math_func_catanhf=no |
89b803c8 | 25085 | fi |
25086 | rm -f core conftest.err conftest.$ac_objext \ | |
25087 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25088 | fi |
7d9455ce | 25089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25090 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25091 | if test $gcc_cv_math_func_catanhf = yes; then | |
bd647a17 | 25092 | |
6affa8e1 | 25093 | cat >>confdefs.h <<_ACEOF |
25094 | #define HAVE_CATANHF 1 | |
25095 | _ACEOF | |
7d9455ce | 25096 | |
25097 | fi | |
89b803c8 | 25098 | |
89b803c8 | 25099 | |
89b803c8 | 25100 | |
7d9455ce | 25101 | |
25102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25103 | $as_echo_n "checking for catanhl... " >&6; } | |
25104 | if test "${gcc_cv_math_func_catanhl+set}" = set; then : | |
89b803c8 | 25105 | $as_echo_n "(cached) " >&6 |
25106 | else | |
7d9455ce | 25107 | if test x$gcc_no_link = xyes; then |
89b803c8 | 25108 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
25109 | fi | |
25110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25111 | /* end confdefs.h. */ | |
25112 | ||
7d9455ce | 25113 | #ifdef HAVE_COMPLEX_H |
25114 | #include <complex.h> | |
89b803c8 | 25115 | #endif |
7d9455ce | 25116 | #ifdef HAVE_MATH_H |
25117 | #include <math.h> | |
25118 | #endif | |
25119 | ||
25120 | int (*ptr)() = (int (*)())catanhl; | |
25121 | ||
89b803c8 | 25122 | int |
25123 | main () | |
25124 | { | |
89b803c8 | 25125 | return 0; |
25126 | } | |
7d9455ce | 25127 | |
89b803c8 | 25128 | _ACEOF |
25129 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25130 | gcc_cv_math_func_catanhl=yes |
89b803c8 | 25131 | else |
7d9455ce | 25132 | gcc_cv_math_func_catanhl=no |
89b803c8 | 25133 | fi |
25134 | rm -f core conftest.err conftest.$ac_objext \ | |
25135 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25136 | fi |
7d9455ce | 25137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25138 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25139 | if test $gcc_cv_math_func_catanhl = yes; then | |
bd647a17 | 25140 | |
6affa8e1 | 25141 | cat >>confdefs.h <<_ACEOF |
25142 | #define HAVE_CATANHL 1 | |
25143 | _ACEOF | |
89b803c8 | 25144 | |
7d9455ce | 25145 | fi |
89b803c8 | 25146 | |
89b803c8 | 25147 | |
7d9455ce | 25148 | |
25149 | ||
25150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25151 | $as_echo_n "checking for catanl... " >&6; } | |
25152 | if test "${gcc_cv_math_func_catanl+set}" = set; then : | |
89b803c8 | 25153 | $as_echo_n "(cached) " >&6 |
25154 | else | |
7d9455ce | 25155 | if test x$gcc_no_link = xyes; then |
89b803c8 | 25156 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
25157 | fi | |
25158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25159 | /* end confdefs.h. */ | |
25160 | ||
7d9455ce | 25161 | #ifdef HAVE_COMPLEX_H |
25162 | #include <complex.h> | |
25163 | #endif | |
25164 | #ifdef HAVE_MATH_H | |
25165 | #include <math.h> | |
89b803c8 | 25166 | #endif |
7d9455ce | 25167 | |
25168 | int (*ptr)() = (int (*)())catanl; | |
25169 | ||
89b803c8 | 25170 | int |
25171 | main () | |
25172 | { | |
89b803c8 | 25173 | return 0; |
25174 | } | |
7d9455ce | 25175 | |
89b803c8 | 25176 | _ACEOF |
25177 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25178 | gcc_cv_math_func_catanl=yes |
89b803c8 | 25179 | else |
7d9455ce | 25180 | gcc_cv_math_func_catanl=no |
89b803c8 | 25181 | fi |
25182 | rm -f core conftest.err conftest.$ac_objext \ | |
25183 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25184 | fi |
7d9455ce | 25185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25186 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25187 | if test $gcc_cv_math_func_catanl = yes; then | |
bd647a17 | 25188 | |
6affa8e1 | 25189 | cat >>confdefs.h <<_ACEOF |
25190 | #define HAVE_CATANL 1 | |
25191 | _ACEOF | |
89b803c8 | 25192 | |
7d9455ce | 25193 | fi |
89b803c8 | 25194 | |
25195 | ||
839904a0 | 25196 | # On AIX, clog is present in libm as __clog |
cd9a469c | 25197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
25198 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
25199 | if test "${ac_cv_lib_m___clog+set}" = set; then : | |
25200 | $as_echo_n "(cached) " >&6 | |
62a413d5 | 25201 | else |
25202 | ac_check_lib_save_LIBS=$LIBS | |
25203 | LIBS="-lm $LIBS" | |
25204 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 25205 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
62a413d5 | 25206 | fi |
cd9a469c | 25207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
62a413d5 | 25208 | /* end confdefs.h. */ |
25209 | ||
cd9a469c | 25210 | /* Override any GCC internal prototype to avoid an error. |
25211 | Use char because int might match the return type of a GCC | |
25212 | builtin and then its argument prototype would still apply. */ | |
62a413d5 | 25213 | #ifdef __cplusplus |
25214 | extern "C" | |
25215 | #endif | |
62a413d5 | 25216 | char __clog (); |
25217 | int | |
25218 | main () | |
25219 | { | |
cd9a469c | 25220 | return __clog (); |
62a413d5 | 25221 | ; |
25222 | return 0; | |
25223 | } | |
25224 | _ACEOF | |
cd9a469c | 25225 | if ac_fn_c_try_link "$LINENO"; then : |
62a413d5 | 25226 | ac_cv_lib_m___clog=yes |
25227 | else | |
cd9a469c | 25228 | ac_cv_lib_m___clog=no |
62a413d5 | 25229 | fi |
cd9a469c | 25230 | rm -f core conftest.err conftest.$ac_objext \ |
25231 | conftest$ac_exeext conftest.$ac_ext | |
62a413d5 | 25232 | LIBS=$ac_check_lib_save_LIBS |
25233 | fi | |
cd9a469c | 25234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
25235 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
25236 | if test "x$ac_cv_lib_m___clog" = x""yes; then : | |
62a413d5 | 25237 | |
cd9a469c | 25238 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
62a413d5 | 25239 | |
25240 | fi | |
25241 | ||
25242 | ||
daad4fd5 | 25243 | # Check whether the system has a working stat() |
25244 | ||
cd9a469c | 25245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 |
25246 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
25247 | if test "${libgfor_cv_have_working_stat+set}" = set; then : | |
25248 | $as_echo_n "(cached) " >&6 | |
daad4fd5 | 25249 | else |
25250 | ||
cd9a469c | 25251 | if test "$cross_compiling" = yes; then : |
daad4fd5 | 25252 | |
25253 | case "${target}" in | |
6992582a | 25254 | *mingw*) libgfor_cv_have_working_stat=no ;; |
25255 | *) libgfor_cv_have_working_stat=yes;; | |
daad4fd5 | 25256 | esac |
25257 | else | |
cd9a469c | 25258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
daad4fd5 | 25259 | /* end confdefs.h. */ |
25260 | ||
25261 | #include <stdio.h> | |
25262 | #include <sys/types.h> | |
25263 | #include <sys/stat.h> | |
25264 | #include <unistd.h> | |
25265 | ||
25266 | int main () | |
25267 | { | |
25268 | FILE *f, *g; | |
25269 | struct stat st1, st2; | |
25270 | ||
25271 | f = fopen ("foo", "w"); | |
25272 | g = fopen ("bar", "w"); | |
25273 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
25274 | return 1; | |
25275 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
25276 | return 1; | |
25277 | fclose(f); | |
25278 | fclose(g); | |
25279 | return 0; | |
25280 | } | |
25281 | _ACEOF | |
cd9a469c | 25282 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 25283 | libgfor_cv_have_working_stat=yes |
daad4fd5 | 25284 | else |
cd9a469c | 25285 | libgfor_cv_have_working_stat=no |
daad4fd5 | 25286 | fi |
cd9a469c | 25287 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25288 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
daad4fd5 | 25289 | fi |
cd9a469c | 25290 | |
daad4fd5 | 25291 | fi |
cd9a469c | 25292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 |
25293 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
6992582a | 25294 | if test x"$libgfor_cv_have_working_stat" = xyes; then |
daad4fd5 | 25295 | |
cd9a469c | 25296 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h |
daad4fd5 | 25297 | |
25298 | fi | |
25299 | ||
3b99ec70 | 25300 | # Check whether __mingw_snprintf() is present |
25301 | ||
cd9a469c | 25302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 |
25303 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
25304 | if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then : | |
25305 | $as_echo_n "(cached) " >&6 | |
3b99ec70 | 25306 | else |
25307 | ||
25308 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 25309 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
3b99ec70 | 25310 | fi |
cd9a469c | 25311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3b99ec70 | 25312 | /* end confdefs.h. */ |
25313 | ||
25314 | #include <stdio.h> | |
25315 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
25316 | ||
25317 | int | |
25318 | main () | |
25319 | { | |
25320 | ||
25321 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
25322 | ||
25323 | ; | |
25324 | return 0; | |
25325 | } | |
25326 | _ACEOF | |
cd9a469c | 25327 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 25328 | eval "libgfor_cv_have_mingw_snprintf=yes" |
3b99ec70 | 25329 | else |
cd9a469c | 25330 | eval "libgfor_cv_have_mingw_snprintf=no" |
3b99ec70 | 25331 | fi |
cd9a469c | 25332 | rm -f core conftest.err conftest.$ac_objext \ |
25333 | conftest$ac_exeext conftest.$ac_ext | |
3b99ec70 | 25334 | |
25335 | fi | |
cd9a469c | 25336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 |
25337 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
6992582a | 25338 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then |
3b99ec70 | 25339 | |
cd9a469c | 25340 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h |
3b99ec70 | 25341 | |
25342 | fi | |
25343 | ||
25344 | ||
d9d975ae | 25345 | # Check whether libquadmath should be used |
25346 | # Check whether --enable-libquadmath-support was given. | |
25347 | if test "${enable_libquadmath_support+set}" = set; then : | |
25348 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
25349 | else | |
25350 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
25351 | fi | |
25352 | ||
25353 | enable_libquadmath_support= | |
25354 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
25355 | enable_libquadmath_support=no | |
25356 | fi | |
25357 | ||
25358 | # Check whether we have a __float128 type, depends on enable_libquadmath_support | |
87969c8c | 25359 | |
25360 | LIBQUADSPEC= | |
d9d975ae | 25361 | |
25362 | if test "x$enable_libquadmath_support" != xno; then | |
25363 | ||
87969c8c | 25364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 |
25365 | $as_echo_n "checking whether we have a usable __float128 type... " >&6; } | |
25366 | if test "${libgfor_cv_have_float128+set}" = set; then : | |
25367 | $as_echo_n "(cached) " >&6 | |
25368 | else | |
25369 | ||
9af9660c | 25370 | if test x$gcc_no_link = xyes; then |
25371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
87969c8c | 25372 | /* end confdefs.h. */ |
25373 | ||
9af9660c | 25374 | typedef _Complex float __attribute__((mode(TC))) __complex128; |
25375 | ||
25376 | __float128 foo (__float128 x) | |
25377 | { | |
25378 | ||
25379 | __complex128 z1, z2; | |
25380 | ||
25381 | z1 = x; | |
25382 | z2 = x / 7.Q; | |
25383 | z2 /= z1; | |
25384 | ||
25385 | return (__float128) z2; | |
25386 | } | |
25387 | ||
25388 | __float128 bar (__float128 x) | |
25389 | { | |
25390 | return x * __builtin_huge_valq (); | |
25391 | } | |
87969c8c | 25392 | |
25393 | int | |
25394 | main () | |
25395 | { | |
25396 | ||
9af9660c | 25397 | foo (1.2Q); |
25398 | bar (1.2Q); | |
87969c8c | 25399 | |
9af9660c | 25400 | ; |
25401 | return 0; | |
25402 | } | |
25403 | _ACEOF | |
25404 | if ac_fn_c_try_compile "$LINENO"; then : | |
87969c8c | 25405 | |
9af9660c | 25406 | libgfor_cv_have_float128=yes |
87969c8c | 25407 | |
9af9660c | 25408 | else |
25409 | ||
25410 | libgfor_cv_have_float128=no | |
25411 | ||
25412 | fi | |
25413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25414 | else | |
25415 | if test x$gcc_no_link = xyes; then | |
25416 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25417 | fi | |
25418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25419 | /* end confdefs.h. */ | |
25420 | ||
25421 | typedef _Complex float __attribute__((mode(TC))) __complex128; | |
25422 | ||
25423 | __float128 foo (__float128 x) | |
25424 | { | |
25425 | ||
25426 | __complex128 z1, z2; | |
25427 | ||
25428 | z1 = x; | |
25429 | z2 = x / 7.Q; | |
25430 | z2 /= z1; | |
25431 | ||
25432 | return (__float128) z2; | |
25433 | } | |
25434 | ||
25435 | __float128 bar (__float128 x) | |
25436 | { | |
25437 | return x * __builtin_huge_valq (); | |
25438 | } | |
25439 | ||
25440 | int | |
25441 | main () | |
25442 | { | |
25443 | ||
25444 | foo (1.2Q); | |
25445 | bar (1.2Q); | |
87969c8c | 25446 | |
25447 | ; | |
25448 | return 0; | |
25449 | } | |
25450 | _ACEOF | |
25451 | if ac_fn_c_try_link "$LINENO"; then : | |
9af9660c | 25452 | |
25453 | libgfor_cv_have_float128=yes | |
25454 | ||
87969c8c | 25455 | else |
9af9660c | 25456 | |
25457 | libgfor_cv_have_float128=no | |
25458 | ||
87969c8c | 25459 | fi |
25460 | rm -f core conftest.err conftest.$ac_objext \ | |
25461 | conftest$ac_exeext conftest.$ac_ext | |
9af9660c | 25462 | fi |
87969c8c | 25463 | fi |
25464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
25465 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
25466 | ||
25467 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25468 | ||
25469 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
25470 | ||
25471 | ||
25472 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
b14cf757 | 25473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 |
25474 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
87969c8c | 25475 | if test "${libgfor_cv_have_as_needed+set}" = set; then : |
25476 | $as_echo_n "(cached) " >&6 | |
25477 | else | |
25478 | ||
b14cf757 | 25479 | # Test for native Solaris options first. |
25480 | # No whitespace after -z to pass it through -Wl. | |
25481 | libgfor_cv_as_needed_option="-zignore" | |
25482 | libgfor_cv_no_as_needed_option="-zrecord" | |
87969c8c | 25483 | save_LDFLAGS="$LDFLAGS" |
b14cf757 | 25484 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" |
87969c8c | 25485 | libgfor_cv_have_as_needed=no |
25486 | ||
25487 | ac_c_werror_flag=yes | |
25488 | if test x$gcc_no_link = xyes; then | |
25489 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25490 | fi | |
25491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25492 | /* end confdefs.h. */ | |
25493 | ||
25494 | int | |
25495 | main () | |
25496 | { | |
25497 | ||
25498 | ; | |
25499 | return 0; | |
25500 | } | |
25501 | _ACEOF | |
25502 | if ac_fn_c_try_link "$LINENO"; then : | |
25503 | libgfor_cv_have_as_needed=yes | |
25504 | else | |
25505 | libgfor_cv_have_as_needed=no | |
25506 | fi | |
25507 | rm -f core conftest.err conftest.$ac_objext \ | |
25508 | conftest$ac_exeext conftest.$ac_ext | |
25509 | LDFLAGS="$save_LDFLAGS" | |
b14cf757 | 25510 | if test "x$libgfor_cv_have_as_needed" = xno; then |
25511 | libgfor_cv_as_needed_option="--as-needed" | |
25512 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
25513 | save_LDFLAGS="$LDFLAGS" | |
25514 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
25515 | libgfor_cv_have_as_needed=no | |
25516 | ||
25517 | ac_c_werror_flag=yes | |
25518 | if test x$gcc_no_link = xyes; then | |
25519 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25520 | fi | |
25521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25522 | /* end confdefs.h. */ | |
25523 | ||
25524 | int | |
25525 | main () | |
25526 | { | |
25527 | ||
25528 | ; | |
25529 | return 0; | |
25530 | } | |
25531 | _ACEOF | |
25532 | if ac_fn_c_try_link "$LINENO"; then : | |
25533 | libgfor_cv_have_as_needed=yes | |
25534 | else | |
25535 | libgfor_cv_have_as_needed=no | |
25536 | fi | |
25537 | rm -f core conftest.err conftest.$ac_objext \ | |
25538 | conftest$ac_exeext conftest.$ac_ext | |
25539 | LDFLAGS="$save_LDFLAGS" | |
25540 | fi | |
87969c8c | 25541 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
25542 | ||
25543 | fi | |
25544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
25545 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
25546 | ||
25547 | if test "x$libgfor_cv_have_as_needed" = xyes; then | |
b14cf757 | 25548 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" |
87969c8c | 25549 | else |
25550 | LIBQUADSPEC="-lquadmath" | |
25551 | fi | |
25552 | if test -f ../libquadmath/libquadmath.la; then | |
25553 | LIBQUADLIB=../libquadmath/libquadmath.la | |
25554 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
25555 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
25556 | else | |
25557 | LIBQUADLIB="-lquadmath" | |
25558 | LIBQUADLIB_DEP= | |
25559 | LIBQUADINCLUDE= | |
25560 | fi | |
25561 | fi | |
d9d975ae | 25562 | else |
25563 | # for --disable-quadmath | |
25564 | LIBQUADLIB= | |
25565 | LIBQUADLIB_DEP= | |
25566 | LIBQUADINCLUDE= | |
25567 | fi | |
87969c8c | 25568 | |
25569 | ||
25570 | ||
25571 | ||
25572 | ||
25573 | ||
25574 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25575 | LIBGFOR_BUILD_QUAD_TRUE= | |
25576 | LIBGFOR_BUILD_QUAD_FALSE='#' | |
25577 | else | |
25578 | LIBGFOR_BUILD_QUAD_TRUE='#' | |
25579 | LIBGFOR_BUILD_QUAD_FALSE= | |
25580 | fi | |
25581 | ||
25582 | ||
25583 | ||
8c84a5de | 25584 | # Check for GNU libc feenableexcept |
cd9a469c | 25585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
25586 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
25587 | if test "${ac_cv_lib_m_feenableexcept+set}" = set; then : | |
25588 | $as_echo_n "(cached) " >&6 | |
8c84a5de | 25589 | else |
25590 | ac_check_lib_save_LIBS=$LIBS | |
25591 | LIBS="-lm $LIBS" | |
25592 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 25593 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
8c84a5de | 25594 | fi |
cd9a469c | 25595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8c84a5de | 25596 | /* end confdefs.h. */ |
25597 | ||
cd9a469c | 25598 | /* Override any GCC internal prototype to avoid an error. |
25599 | Use char because int might match the return type of a GCC | |
25600 | builtin and then its argument prototype would still apply. */ | |
8c84a5de | 25601 | #ifdef __cplusplus |
25602 | extern "C" | |
25603 | #endif | |
8c84a5de | 25604 | char feenableexcept (); |
25605 | int | |
25606 | main () | |
25607 | { | |
cd9a469c | 25608 | return feenableexcept (); |
8c84a5de | 25609 | ; |
25610 | return 0; | |
25611 | } | |
25612 | _ACEOF | |
cd9a469c | 25613 | if ac_fn_c_try_link "$LINENO"; then : |
8c84a5de | 25614 | ac_cv_lib_m_feenableexcept=yes |
25615 | else | |
cd9a469c | 25616 | ac_cv_lib_m_feenableexcept=no |
8c84a5de | 25617 | fi |
cd9a469c | 25618 | rm -f core conftest.err conftest.$ac_objext \ |
25619 | conftest$ac_exeext conftest.$ac_ext | |
8c84a5de | 25620 | LIBS=$ac_check_lib_save_LIBS |
25621 | fi | |
cd9a469c | 25622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
25623 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
25624 | if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then : | |
8c84a5de | 25625 | have_feenableexcept=yes |
cd9a469c | 25626 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
aaa798ba | 25627 | |
25628 | fi | |
25629 | ||
aaa798ba | 25630 | |
126b6848 | 25631 | # At least for glibc, clock_gettime is in librt. But don't |
d90d0997 | 25632 | # pull that in if it still doesn't give us the function we want. This |
25633 | # test is copied from libgomp, and modified to not link in -lrt as | |
25634 | # libgfortran calls clock_gettime via a weak reference if it's found | |
25635 | # in librt. | |
20dc315f | 25636 | if test "$ac_cv_func_clock_gettime" = no; then |
a2c0dc0f | 25637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
25638 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
25639 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
25640 | $as_echo_n "(cached) " >&6 | |
25641 | else | |
25642 | ac_check_lib_save_LIBS=$LIBS | |
25643 | LIBS="-lrt $LIBS" | |
25644 | if test x$gcc_no_link = xyes; then | |
25645 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25646 | fi | |
25647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25648 | /* end confdefs.h. */ | |
25649 | ||
25650 | /* Override any GCC internal prototype to avoid an error. | |
25651 | Use char because int might match the return type of a GCC | |
25652 | builtin and then its argument prototype would still apply. */ | |
25653 | #ifdef __cplusplus | |
25654 | extern "C" | |
25655 | #endif | |
25656 | char clock_gettime (); | |
25657 | int | |
25658 | main () | |
25659 | { | |
25660 | return clock_gettime (); | |
25661 | ; | |
25662 | return 0; | |
25663 | } | |
25664 | _ACEOF | |
25665 | if ac_fn_c_try_link "$LINENO"; then : | |
25666 | ac_cv_lib_rt_clock_gettime=yes | |
25667 | else | |
25668 | ac_cv_lib_rt_clock_gettime=no | |
25669 | fi | |
25670 | rm -f core conftest.err conftest.$ac_objext \ | |
25671 | conftest$ac_exeext conftest.$ac_ext | |
25672 | LIBS=$ac_check_lib_save_LIBS | |
25673 | fi | |
25674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
25675 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
25676 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
a2c0dc0f | 25677 | |
d90d0997 | 25678 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
a2c0dc0f | 25679 | |
25680 | fi | |
25681 | ||
25682 | fi | |
25683 | ||
cd9a469c | 25684 | # Check for SysV fpsetmask |
aaa798ba | 25685 | |
cd9a469c | 25686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
25687 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
25688 | if test "${libgfor_cv_have_fpsetmask+set}" = set; then : | |
25689 | $as_echo_n "(cached) " >&6 | |
25690 | else | |
aaa798ba | 25691 | |
cd9a469c | 25692 | if test x$gcc_no_link = xyes; then |
25693 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25694 | fi | |
25695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25696 | /* end confdefs.h. */ | |
aaa798ba | 25697 | |
cd9a469c | 25698 | #if HAVE_FLOATINGPOINT_H |
25699 | # include <floatingpoint.h> | |
25700 | #endif /* HAVE_FLOATINGPOINT_H */ | |
25701 | #if HAVE_IEEEFP_H | |
25702 | # include <ieeefp.h> | |
25703 | #endif /* HAVE_IEEEFP_H */ | |
aaa798ba | 25704 | int |
25705 | main () | |
25706 | { | |
cd9a469c | 25707 | fpsetmask(0); |
aaa798ba | 25708 | ; |
25709 | return 0; | |
25710 | } | |
25711 | _ACEOF | |
cd9a469c | 25712 | if ac_fn_c_try_link "$LINENO"; then : |
25713 | eval "libgfor_cv_have_fpsetmask=yes" | |
aaa798ba | 25714 | else |
cd9a469c | 25715 | eval "libgfor_cv_have_fpsetmask=no" |
25716 | fi | |
25717 | rm -f core conftest.err conftest.$ac_objext \ | |
25718 | conftest$ac_exeext conftest.$ac_ext | |
aaa798ba | 25719 | |
aaa798ba | 25720 | fi |
cd9a469c | 25721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
25722 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
25723 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
b00fa2cf | 25724 | have_fpsetmask=yes |
cd9a469c | 25725 | |
25726 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
25727 | ||
25728 | fi | |
25729 | ||
dd81f5d9 | 25730 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
c4d9d1ea | 25731 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 25732 | #include <ieeefp.h> |
c4d9d1ea | 25733 | #endif |
dd81f5d9 | 25734 | #include <math.h> |
25735 | ||
f1fd8f6e | 25736 | " |
25737 | if test "x$ac_cv_type_fp_except" = x""yes; then : | |
25738 | ||
25739 | cat >>confdefs.h <<_ACEOF | |
25740 | #define HAVE_FP_EXCEPT 1 | |
25741 | _ACEOF | |
25742 | ||
25743 | ||
25744 | fi | |
dd81f5d9 | 25745 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
c4d9d1ea | 25746 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 25747 | #include <ieeefp.h> |
c4d9d1ea | 25748 | #endif |
dd81f5d9 | 25749 | #include <math.h> |
25750 | ||
f1fd8f6e | 25751 | " |
25752 | if test "x$ac_cv_type_fp_except_t" = x""yes; then : | |
25753 | ||
25754 | cat >>confdefs.h <<_ACEOF | |
25755 | #define HAVE_FP_EXCEPT_T 1 | |
25756 | _ACEOF | |
25757 | ||
25758 | ||
eb429e06 | 25759 | fi |
25760 | ||
dd81f5d9 | 25761 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
c4d9d1ea | 25762 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 25763 | #include <ieeefp.h> |
c4d9d1ea | 25764 | #endif |
dd81f5d9 | 25765 | #include <math.h> |
25766 | ||
eb429e06 | 25767 | " |
25768 | if test "x$ac_cv_type_fp_rnd" = x""yes; then : | |
25769 | ||
25770 | cat >>confdefs.h <<_ACEOF | |
25771 | #define HAVE_FP_RND 1 | |
25772 | _ACEOF | |
25773 | ||
25774 | ||
25775 | fi | |
dd81f5d9 | 25776 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
c4d9d1ea | 25777 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 25778 | #include <ieeefp.h> |
c4d9d1ea | 25779 | #endif |
dd81f5d9 | 25780 | #include <math.h> |
25781 | ||
eb429e06 | 25782 | " |
25783 | if test "x$ac_cv_type_fp_rnd_t" = x""yes; then : | |
25784 | ||
25785 | cat >>confdefs.h <<_ACEOF | |
25786 | #define HAVE_FP_RND_T 1 | |
25787 | _ACEOF | |
25788 | ||
25789 | ||
f1fd8f6e | 25790 | fi |
25791 | ||
cd9a469c | 25792 | |
53b9b372 | 25793 | # Check whether we have fpsetsticky or fpresetsticky |
25794 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
25795 | if test "x$ac_cv_func_fpsetsticky" = x""yes; then : | |
25796 | have_fpsetsticky=yes | |
25797 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
25798 | ||
25799 | fi | |
25800 | ||
25801 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
25802 | if test "x$ac_cv_func_fpresetsticky" = x""yes; then : | |
25803 | have_fpresetsticky=yes | |
25804 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
25805 | ||
25806 | fi | |
25807 | ||
25808 | ||
cd9a469c | 25809 | # Check for AIX fp_trap and fp_enable |
25810 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
25811 | if test "x$ac_cv_func_fp_trap" = x""yes; then : | |
25812 | have_fp_trap=yes | |
25813 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
25814 | ||
aaa798ba | 25815 | fi |
cd9a469c | 25816 | |
25817 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
25818 | if test "x$ac_cv_func_fp_enable" = x""yes; then : | |
aaa798ba | 25819 | have_fp_enable=yes |
cd9a469c | 25820 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
aaa798ba | 25821 | |
25822 | fi | |
25823 | ||
25824 | ||
8c84a5de | 25825 | # Runs configure.host to set up necessary host-dependent shell variables. |
25826 | # We then display a message about it, and propagate them through the | |
25827 | # build chain. | |
25828 | . ${srcdir}/configure.host | |
cd9a469c | 25829 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
25830 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
d566c3e0 | 25831 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
25832 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
8c84a5de | 25833 | FPU_HOST_HEADER=config/${fpu_host}.h |
25834 | ||
25835 | ||
d566c3e0 | 25836 | # Whether we will build the IEEE modules |
25837 | if test x${ieee_support} = xyes; then | |
25838 | IEEE_SUPPORT_TRUE= | |
25839 | IEEE_SUPPORT_FALSE='#' | |
25840 | else | |
25841 | IEEE_SUPPORT_TRUE='#' | |
25842 | IEEE_SUPPORT_FALSE= | |
25843 | fi | |
25844 | ||
25845 | ||
25846 | ||
72934c53 | 25847 | # Some targets require additional compiler options for IEEE compatibility. |
25848 | IEEE_FLAGS="${ieee_flags}" | |
25849 | ||
25850 | ||
d78db4a0 | 25851 | |
25852 | # Check for POSIX getpwuid_r | |
25853 | # | |
25854 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
25855 | # arguments, and another one with 4 arguments used by at least HP-UX | |
25856 | # 10.2. | |
25857 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
25858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
25859 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
25860 | if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then : | |
25861 | $as_echo_n "(cached) " >&6 | |
25862 | else | |
25863 | ||
25864 | if test x$gcc_no_link = xyes; then | |
25865 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25866 | fi | |
25867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25868 | /* end confdefs.h. */ | |
25869 | ||
25870 | #include <stdio.h> | |
25871 | #include <sys/types.h> | |
25872 | #include <pwd.h> | |
25873 | int | |
25874 | main () | |
25875 | { | |
25876 | ||
25877 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
25878 | ||
25879 | ; | |
25880 | return 0; | |
25881 | } | |
25882 | _ACEOF | |
25883 | if ac_fn_c_try_link "$LINENO"; then : | |
25884 | libgfor_cv_posix_getpwuid_r="yes" | |
25885 | else | |
25886 | libgfor_cv_posix_getpwuid_r="no" | |
25887 | fi | |
25888 | rm -f core conftest.err conftest.$ac_objext \ | |
25889 | conftest$ac_exeext conftest.$ac_ext | |
25890 | fi | |
25891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
25892 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
25893 | fi | |
25894 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
25895 | ||
25896 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
25897 | ||
25898 | fi | |
25899 | ||
25900 | ||
7b6cb5bd | 25901 | # Check out attribute support. |
25902 | ||
cd9a469c | 25903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
25904 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
25905 | if test "${libgfor_cv_have_attribute_visibility+set}" = set; then : | |
25906 | $as_echo_n "(cached) " >&6 | |
7b6cb5bd | 25907 | else |
25908 | ||
25909 | save_CFLAGS="$CFLAGS" | |
25910 | CFLAGS="$CFLAGS -Werror" | |
cd9a469c | 25911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 25912 | /* end confdefs.h. */ |
25913 | void __attribute__((visibility("hidden"))) foo(void) { } | |
25914 | int | |
25915 | main () | |
25916 | { | |
25917 | ||
25918 | ; | |
25919 | return 0; | |
25920 | } | |
25921 | _ACEOF | |
cd9a469c | 25922 | if ac_fn_c_try_compile "$LINENO"; then : |
6992582a | 25923 | libgfor_cv_have_attribute_visibility=yes |
7b6cb5bd | 25924 | else |
cd9a469c | 25925 | libgfor_cv_have_attribute_visibility=no |
7b6cb5bd | 25926 | fi |
cd9a469c | 25927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 25928 | CFLAGS="$save_CFLAGS" |
25929 | fi | |
cd9a469c | 25930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
25931 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6992582a | 25932 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7b6cb5bd | 25933 | |
cd9a469c | 25934 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7b6cb5bd | 25935 | |
25936 | fi | |
25937 | ||
cd9a469c | 25938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
25939 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
25940 | if test "${libgfor_cv_have_attribute_alias+set}" = set; then : | |
25941 | $as_echo_n "(cached) " >&6 | |
7b6cb5bd | 25942 | else |
25943 | ||
b52ee437 | 25944 | if test x$gcc_no_link = xyes; then |
cd9a469c | 25945 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 25946 | fi |
cd9a469c | 25947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 25948 | /* end confdefs.h. */ |
25949 | ||
7b6cb5bd | 25950 | void foo(void) { } |
5a2b0c34 | 25951 | extern void bar(void) __attribute__((alias("foo"))); |
7b6cb5bd | 25952 | int |
25953 | main () | |
25954 | { | |
25955 | bar(); | |
25956 | ; | |
25957 | return 0; | |
25958 | } | |
25959 | _ACEOF | |
cd9a469c | 25960 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 25961 | libgfor_cv_have_attribute_alias=yes |
7b6cb5bd | 25962 | else |
cd9a469c | 25963 | libgfor_cv_have_attribute_alias=no |
7b6cb5bd | 25964 | fi |
cd9a469c | 25965 | rm -f core conftest.err conftest.$ac_objext \ |
25966 | conftest$ac_exeext conftest.$ac_ext | |
7b6cb5bd | 25967 | fi |
cd9a469c | 25968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
25969 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6992582a | 25970 | if test $libgfor_cv_have_attribute_alias = yes; then |
7b6cb5bd | 25971 | |
cd9a469c | 25972 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7b6cb5bd | 25973 | |
25974 | fi | |
25975 | ||
60c514ba | 25976 | # Check out sync builtins support. |
25977 | ||
cd9a469c | 25978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5 |
25979 | $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; } | |
25980 | if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then : | |
25981 | $as_echo_n "(cached) " >&6 | |
60c514ba | 25982 | else |
25983 | ||
25984 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 25985 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
60c514ba | 25986 | fi |
cd9a469c | 25987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
60c514ba | 25988 | /* end confdefs.h. */ |
25989 | int foovar = 0; | |
25990 | int | |
25991 | main () | |
25992 | { | |
25993 | ||
25994 | if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1); | |
25995 | if (foovar > 10) return __sync_add_and_fetch (&foovar, -1); | |
25996 | ; | |
25997 | return 0; | |
25998 | } | |
25999 | _ACEOF | |
cd9a469c | 26000 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 26001 | libgfor_cv_have_sync_fetch_and_add=yes |
60c514ba | 26002 | else |
cd9a469c | 26003 | libgfor_cv_have_sync_fetch_and_add=no |
60c514ba | 26004 | fi |
cd9a469c | 26005 | rm -f core conftest.err conftest.$ac_objext \ |
26006 | conftest$ac_exeext conftest.$ac_ext | |
60c514ba | 26007 | fi |
cd9a469c | 26008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5 |
26009 | $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; } | |
6992582a | 26010 | if test $libgfor_cv_have_sync_fetch_and_add = yes; then |
60c514ba | 26011 | |
cd9a469c | 26012 | $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h |
60c514ba | 26013 | |
26014 | fi | |
26015 | ||
04c14146 | 26016 | # Check out #pragma weak. |
26017 | ||
26018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
26019 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
26020 | if test "${libgfor_cv_have_pragma_weak+set}" = set; then : | |
26021 | $as_echo_n "(cached) " >&6 | |
26022 | else | |
26023 | ||
26024 | gfor_save_CFLAGS="$CFLAGS" | |
26025 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
26026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26027 | /* end confdefs.h. */ | |
26028 | ||
26029 | void foo (void); | |
26030 | #pragma weak foo | |
26031 | ||
26032 | int | |
26033 | main () | |
26034 | { | |
26035 | if (foo) foo (); | |
26036 | ; | |
26037 | return 0; | |
26038 | } | |
26039 | _ACEOF | |
26040 | if ac_fn_c_try_compile "$LINENO"; then : | |
26041 | libgfor_cv_have_pragma_weak=yes | |
26042 | else | |
26043 | libgfor_cv_have_pragma_weak=no | |
26044 | fi | |
26045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26046 | fi | |
26047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
26048 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
26049 | if test $libgfor_cv_have_pragma_weak = yes; then | |
26050 | ||
26051 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
26052 | ||
26053 | fi | |
26054 | case "$host" in | |
26055 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
26056 | ||
26057 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
26058 | ||
26059 | ;; | |
26060 | esac | |
26061 | ||
1d9726df | 26062 | # Check out weakref support. |
60c514ba | 26063 | |
1d9726df | 26064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
26065 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
26066 | if test "${libgfor_cv_have_weakref+set}" = set; then : | |
cd9a469c | 26067 | $as_echo_n "(cached) " >&6 |
60c514ba | 26068 | else |
26069 | ||
1d9726df | 26070 | save_CFLAGS="$CFLAGS" |
26071 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
26072 | if test x$gcc_no_link = xyes; then | |
26073 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
26074 | fi | |
26075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
60c514ba | 26076 | /* end confdefs.h. */ |
b9a8e1d9 | 26077 | |
1d9726df | 26078 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
b9a8e1d9 | 26079 | |
60c514ba | 26080 | int |
26081 | main () | |
26082 | { | |
1d9726df | 26083 | return (mytoto != 0); |
60c514ba | 26084 | ; |
26085 | return 0; | |
26086 | } | |
26087 | _ACEOF | |
1d9726df | 26088 | if ac_fn_c_try_link "$LINENO"; then : |
26089 | libgfor_cv_have_weakref=yes | |
60c514ba | 26090 | else |
1d9726df | 26091 | libgfor_cv_have_weakref=no |
60c514ba | 26092 | fi |
1d9726df | 26093 | rm -f core conftest.err conftest.$ac_objext \ |
26094 | conftest$ac_exeext conftest.$ac_ext | |
26095 | CFLAGS="$save_CFLAGS" | |
60c514ba | 26096 | fi |
1d9726df | 26097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
26098 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
26099 | if test $libgfor_cv_have_weakref = yes; then | |
60c514ba | 26100 | |
1d9726df | 26101 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
60c514ba | 26102 | |
26103 | fi | |
26104 | ||
1dc95e51 | 26105 | # Various other checks on target |
26106 | ||
cd9a469c | 26107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
26108 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
26109 | if test "${libgfor_cv_have_unlink_open_file+set}" = set; then : | |
26110 | $as_echo_n "(cached) " >&6 | |
1dc95e51 | 26111 | else |
26112 | ||
cd9a469c | 26113 | if test "$cross_compiling" = yes; then : |
1dc95e51 | 26114 | |
26115 | case "${target}" in | |
6992582a | 26116 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
26117 | *) libgfor_cv_have_unlink_open_file=yes;; | |
1dc95e51 | 26118 | esac |
26119 | else | |
cd9a469c | 26120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1dc95e51 | 26121 | /* end confdefs.h. */ |
26122 | ||
26123 | #include <errno.h> | |
26124 | #include <fcntl.h> | |
26125 | #include <unistd.h> | |
26126 | #include <sys/stat.h> | |
26127 | ||
26128 | int main () | |
26129 | { | |
26130 | int fd; | |
26131 | ||
ec55604a | 26132 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
1dc95e51 | 26133 | if (fd <= 0) |
26134 | return 0; | |
26135 | if (unlink ("testfile") == -1) | |
26136 | return 1; | |
26137 | write (fd, "This is a test\n", 15); | |
26138 | close (fd); | |
26139 | ||
ec55604a | 26140 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
1dc95e51 | 26141 | return 0; |
26142 | else | |
26143 | return 1; | |
26144 | } | |
26145 | _ACEOF | |
cd9a469c | 26146 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 26147 | libgfor_cv_have_unlink_open_file=yes |
1dc95e51 | 26148 | else |
cd9a469c | 26149 | libgfor_cv_have_unlink_open_file=no |
1dc95e51 | 26150 | fi |
cd9a469c | 26151 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26152 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1dc95e51 | 26153 | fi |
cd9a469c | 26154 | |
1dc95e51 | 26155 | fi |
cd9a469c | 26156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
26157 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6992582a | 26158 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
1dc95e51 | 26159 | |
cd9a469c | 26160 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
1dc95e51 | 26161 | |
26162 | fi | |
26163 | ||
cf55c3cf | 26164 | # Check whether line terminator is LF or CRLF |
26165 | ||
cd9a469c | 26166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
26167 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
26168 | if test "${libgfor_cv_have_crlf+set}" = set; then : | |
26169 | $as_echo_n "(cached) " >&6 | |
cf55c3cf | 26170 | else |
26171 | ||
cd9a469c | 26172 | if test "$cross_compiling" = yes; then : |
cf55c3cf | 26173 | |
26174 | case "${target}" in | |
6992582a | 26175 | *mingw*) libgfor_cv_have_crlf=yes ;; |
26176 | *) libgfor_cv_have_crlf=no;; | |
cf55c3cf | 26177 | esac |
26178 | else | |
cd9a469c | 26179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cf55c3cf | 26180 | /* end confdefs.h. */ |
26181 | ||
26182 | /* This test program should exit with status 0 if system uses a CRLF as | |
26183 | line terminator, and status 1 otherwise. | |
26184 | Since it is used to check for mingw systems, and should return 0 in any | |
26185 | other case, in case of a failure we will not use CRLF. */ | |
26186 | #include <sys/stat.h> | |
26187 | #include <stdlib.h> | |
26188 | #include <fcntl.h> | |
26189 | #include <stdio.h> | |
26190 | ||
26191 | int main () | |
26192 | { | |
26193 | #ifndef O_BINARY | |
26194 | exit(1); | |
26195 | #else | |
26196 | int fd, bytes; | |
26197 | char buff[5]; | |
26198 | ||
26199 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
26200 | if (fd < 0) | |
26201 | exit(1); | |
26202 | if (write (fd, "\n", 1) < 0) | |
26203 | perror ("write"); | |
26204 | ||
26205 | close (fd); | |
26206 | ||
26207 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
26208 | exit(1); | |
26209 | bytes = read (fd, buff, 5); | |
26210 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
26211 | exit(0); | |
26212 | else | |
26213 | exit(1); | |
26214 | #endif | |
26215 | } | |
26216 | _ACEOF | |
cd9a469c | 26217 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 26218 | libgfor_cv_have_crlf=yes |
cf55c3cf | 26219 | else |
cd9a469c | 26220 | libgfor_cv_have_crlf=no |
cf55c3cf | 26221 | fi |
cd9a469c | 26222 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26223 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
cf55c3cf | 26224 | fi |
cd9a469c | 26225 | |
cf55c3cf | 26226 | fi |
cd9a469c | 26227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
26228 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6992582a | 26229 | if test x"$libgfor_cv_have_crlf" = xyes; then |
cf55c3cf | 26230 | |
cd9a469c | 26231 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
cf55c3cf | 26232 | |
26233 | fi | |
26234 | ||
25df644f | 26235 | # Check whether we support AVX extensions |
26236 | ||
26237 | ac_save_CFLAGS="$CFLAGS" | |
26238 | CFLAGS="-O2 -mavx" | |
26239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26240 | /* end confdefs.h. */ | |
26241 | ||
26242 | void _mm256_zeroall (void) | |
26243 | { | |
26244 | __builtin_ia32_vzeroall (); | |
26245 | } | |
26246 | int | |
26247 | main () | |
26248 | { | |
26249 | ||
26250 | ; | |
26251 | return 0; | |
26252 | } | |
26253 | _ACEOF | |
26254 | if ac_fn_c_try_compile "$LINENO"; then : | |
26255 | ||
26256 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
26257 | ||
26258 | fi | |
26259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26260 | CFLAGS="$ac_save_CFLAGS" | |
26261 | ||
26262 | ||
26263 | # Check wether we support AVX2 extensions | |
26264 | ||
26265 | ac_save_CFLAGS="$CFLAGS" | |
26266 | CFLAGS="-O2 -mavx2" | |
26267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26268 | /* end confdefs.h. */ | |
26269 | ||
26270 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
26271 | __v4di | |
26272 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
26273 | { | |
26274 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
26275 | } | |
26276 | int | |
26277 | main () | |
26278 | { | |
26279 | ||
26280 | ; | |
26281 | return 0; | |
26282 | } | |
26283 | _ACEOF | |
26284 | if ac_fn_c_try_compile "$LINENO"; then : | |
26285 | ||
26286 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
26287 | ||
26288 | fi | |
26289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26290 | CFLAGS="$ac_save_CFLAGS" | |
26291 | ||
26292 | ||
26293 | # Check wether we support AVX512f extensions | |
26294 | ||
26295 | ac_save_CFLAGS="$CFLAGS" | |
26296 | CFLAGS="-O2 -mavx512f" | |
26297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26298 | /* end confdefs.h. */ | |
26299 | ||
26300 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
26301 | __m512d _mm512_add (__m512d a) | |
26302 | { | |
26303 | return __builtin_ia32_addpd512_mask (a, a, a, 1, 4); | |
26304 | } | |
26305 | int | |
26306 | main () | |
26307 | { | |
26308 | ||
26309 | ; | |
26310 | return 0; | |
26311 | } | |
26312 | _ACEOF | |
26313 | if ac_fn_c_try_compile "$LINENO"; then : | |
26314 | ||
26315 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
26316 | ||
26317 | fi | |
26318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26319 | CFLAGS="$ac_save_CFLAGS" | |
26320 | ||
26321 | ||
0812bb06 | 26322 | # Determine what GCC version number to use in filesystem paths. |
26323 | ||
26324 | get_gcc_base_ver="cat" | |
26325 | ||
26326 | # Check whether --with-gcc-major-version-only was given. | |
26327 | if test "${with_gcc_major_version_only+set}" = set; then : | |
26328 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
26329 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'" | |
26330 | fi | |
26331 | ||
26332 | fi | |
26333 | ||
26334 | ||
26335 | ||
26336 | ||
4ee9c684 | 26337 | cat >confcache <<\_ACEOF |
26338 | # This file is a shell script that caches the results of configure | |
26339 | # tests run on this system so they can be shared between configure | |
26340 | # scripts and configure runs, see configure's option --config-cache. | |
26341 | # It is not useful on other systems. If it contains results you don't | |
26342 | # want to keep, you may remove or edit it. | |
26343 | # | |
26344 | # config.status only pays attention to the cache file if you give it | |
26345 | # the --recheck option to rerun configure. | |
26346 | # | |
26347 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26348 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26349 | # following values. | |
26350 | ||
26351 | _ACEOF | |
26352 | ||
26353 | # The following way of writing the cache mishandles newlines in values, | |
26354 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 26355 | # So, we kill variables containing newlines. |
4ee9c684 | 26356 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26357 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 26358 | ( |
26359 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26360 | eval ac_val=\$$ac_var | |
26361 | case $ac_val in #( | |
26362 | *${as_nl}*) | |
26363 | case $ac_var in #( | |
26364 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26365 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26366 | esac | |
26367 | case $ac_var in #( | |
26368 | _ | IFS | as_nl) ;; #( | |
26369 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26370 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26371 | esac ;; | |
26372 | esac | |
26373 | done | |
26374 | ||
4ee9c684 | 26375 | (set) 2>&1 | |
cd9a469c | 26376 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26377 | *${as_nl}ac_space=\ *) | |
26378 | # `set' does not quote correctly, so add quotes: double-quote | |
26379 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4ee9c684 | 26380 | sed -n \ |
26381 | "s/'/'\\\\''/g; | |
26382 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 26383 | ;; #( |
4ee9c684 | 26384 | *) |
26385 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 26386 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4ee9c684 | 26387 | ;; |
cd9a469c | 26388 | esac | |
26389 | sort | |
26390 | ) | | |
4ee9c684 | 26391 | sed ' |
cd9a469c | 26392 | /^ac_cv_env_/b end |
4ee9c684 | 26393 | t clear |
cd9a469c | 26394 | :clear |
4ee9c684 | 26395 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26396 | t end | |
cd9a469c | 26397 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26398 | :end' >>confcache | |
26399 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26400 | if test -w "$cache_file"; then | |
26401 | test "x$cache_file" != "x/dev/null" && | |
26402 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
26403 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
4ee9c684 | 26404 | cat confcache >$cache_file |
26405 | else | |
cd9a469c | 26406 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26407 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4ee9c684 | 26408 | fi |
26409 | fi | |
26410 | rm -f confcache | |
26411 | ||
90973b19 | 26412 | if test ${multilib} = yes; then |
26413 | multilib_arg="--enable-multilib" | |
4ee9c684 | 26414 | else |
90973b19 | 26415 | multilib_arg= |
4ee9c684 | 26416 | fi |
4ee9c684 | 26417 | |
87969c8c | 26418 | # Write our Makefile and spec file. |
26419 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
90973b19 | 26420 | |
4ee9c684 | 26421 | cat >confcache <<\_ACEOF |
26422 | # This file is a shell script that caches the results of configure | |
26423 | # tests run on this system so they can be shared between configure | |
26424 | # scripts and configure runs, see configure's option --config-cache. | |
26425 | # It is not useful on other systems. If it contains results you don't | |
26426 | # want to keep, you may remove or edit it. | |
26427 | # | |
26428 | # config.status only pays attention to the cache file if you give it | |
26429 | # the --recheck option to rerun configure. | |
26430 | # | |
26431 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26432 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26433 | # following values. | |
26434 | ||
26435 | _ACEOF | |
26436 | ||
26437 | # The following way of writing the cache mishandles newlines in values, | |
26438 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 26439 | # So, we kill variables containing newlines. |
4ee9c684 | 26440 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26441 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 26442 | ( |
26443 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26444 | eval ac_val=\$$ac_var | |
26445 | case $ac_val in #( | |
26446 | *${as_nl}*) | |
26447 | case $ac_var in #( | |
26448 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26449 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26450 | esac | |
26451 | case $ac_var in #( | |
26452 | _ | IFS | as_nl) ;; #( | |
26453 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26454 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26455 | esac ;; | |
26456 | esac | |
26457 | done | |
26458 | ||
4ee9c684 | 26459 | (set) 2>&1 | |
cd9a469c | 26460 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26461 | *${as_nl}ac_space=\ *) | |
26462 | # `set' does not quote correctly, so add quotes: double-quote | |
26463 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4ee9c684 | 26464 | sed -n \ |
26465 | "s/'/'\\\\''/g; | |
26466 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 26467 | ;; #( |
4ee9c684 | 26468 | *) |
26469 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 26470 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4ee9c684 | 26471 | ;; |
cd9a469c | 26472 | esac | |
26473 | sort | |
26474 | ) | | |
4ee9c684 | 26475 | sed ' |
cd9a469c | 26476 | /^ac_cv_env_/b end |
4ee9c684 | 26477 | t clear |
cd9a469c | 26478 | :clear |
4ee9c684 | 26479 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26480 | t end | |
cd9a469c | 26481 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26482 | :end' >>confcache | |
26483 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26484 | if test -w "$cache_file"; then | |
26485 | test "x$cache_file" != "x/dev/null" && | |
26486 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
26487 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
4ee9c684 | 26488 | cat confcache >$cache_file |
26489 | else | |
cd9a469c | 26490 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26491 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4ee9c684 | 26492 | fi |
26493 | fi | |
26494 | rm -f confcache | |
26495 | ||
26496 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
26497 | # Let make expand exec_prefix. | |
26498 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
26499 | ||
4ee9c684 | 26500 | DEFS=-DHAVE_CONFIG_H |
26501 | ||
26502 | ac_libobjs= | |
26503 | ac_ltlibobjs= | |
26504 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
26505 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 26506 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
26507 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
26508 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
26509 | # will be set to the directory where LIBOBJS objects are built. | |
26510 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
26511 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4ee9c684 | 26512 | done |
26513 | LIBOBJS=$ac_libobjs | |
26514 | ||
26515 | LTLIBOBJS=$ac_ltlibobjs | |
26516 | ||
26517 | ||
93773f82 | 26518 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
cd9a469c | 26519 | as_fn_error "conditional \"onestep\" was never defined. |
26520 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26521 | fi | |
26522 | if test -n "$EXEEXT"; then | |
26523 | am__EXEEXT_TRUE= | |
26524 | am__EXEEXT_FALSE='#' | |
26525 | else | |
26526 | am__EXEEXT_TRUE='#' | |
26527 | am__EXEEXT_FALSE= | |
93773f82 | 26528 | fi |
cd9a469c | 26529 | |
4ee9c684 | 26530 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
cd9a469c | 26531 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
26532 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
4ee9c684 | 26533 | fi |
2fd61f51 | 26534 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
cd9a469c | 26535 | as_fn_error "conditional \"AMDEP\" was never defined. |
26536 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
2fd61f51 | 26537 | fi |
26538 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
cd9a469c | 26539 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
26540 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
2fd61f51 | 26541 | fi |
d5d92632 | 26542 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
26543 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
26544 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26545 | fi | |
ce1a737c | 26546 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
cd9a469c | 26547 | as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
26548 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
ce1a737c | 26549 | fi |
019fb48a | 26550 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
26551 | as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. | |
26552 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26553 | fi | |
26554 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
26555 | as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. | |
26556 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26557 | fi | |
eb00e55c | 26558 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
26559 | as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined. | |
26560 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26561 | fi | |
18ce903b | 26562 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
26563 | as_fn_error "conditional \"HAVE_HWCAP\" was never defined. | |
26564 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26565 | fi | |
87969c8c | 26566 | if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then |
26567 | as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. | |
26568 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26569 | fi | |
d566c3e0 | 26570 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
26571 | as_fn_error "conditional \"IEEE_SUPPORT\" was never defined. | |
26572 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26573 | fi | |
4ee9c684 | 26574 | |
26575 | : ${CONFIG_STATUS=./config.status} | |
cd9a469c | 26576 | ac_write_fail=0 |
4ee9c684 | 26577 | ac_clean_files_save=$ac_clean_files |
26578 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 26579 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
26580 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
26581 | as_write_fail=0 | |
26582 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4ee9c684 | 26583 | #! $SHELL |
26584 | # Generated by $as_me. | |
26585 | # Run this file to recreate the current configuration. | |
26586 | # Compiler output produced by configure, useful for debugging | |
26587 | # configure, is in config.log if it exists. | |
26588 | ||
26589 | debug=false | |
26590 | ac_cs_recheck=false | |
26591 | ac_cs_silent=false | |
4ee9c684 | 26592 | |
cd9a469c | 26593 | SHELL=\${CONFIG_SHELL-$SHELL} |
26594 | export SHELL | |
26595 | _ASEOF | |
26596 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
26597 | ## -------------------- ## | |
26598 | ## M4sh Initialization. ## | |
26599 | ## -------------------- ## | |
26600 | ||
26601 | # Be more Bourne compatible | |
26602 | DUALCASE=1; export DUALCASE # for MKS sh | |
26603 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4ee9c684 | 26604 | emulate sh |
26605 | NULLCMD=: | |
cd9a469c | 26606 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4ee9c684 | 26607 | # is contrary to our usage. Disable this feature. |
26608 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 26609 | setopt NO_GLOB_SUBST |
26610 | else | |
26611 | case `(set -o) 2>/dev/null` in #( | |
26612 | *posix*) : | |
26613 | set -o posix ;; #( | |
26614 | *) : | |
26615 | ;; | |
26616 | esac | |
4ee9c684 | 26617 | fi |
4ee9c684 | 26618 | |
cd9a469c | 26619 | |
26620 | as_nl=' | |
26621 | ' | |
26622 | export as_nl | |
26623 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
26624 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
26625 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
26626 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
26627 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
26628 | # but without wasting forks for bash or zsh. | |
26629 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
26630 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
26631 | as_echo='print -r --' | |
26632 | as_echo_n='print -rn --' | |
26633 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
26634 | as_echo='printf %s\n' | |
26635 | as_echo_n='printf %s' | |
26636 | else | |
26637 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
26638 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
26639 | as_echo_n='/usr/ucb/echo -n' | |
26640 | else | |
26641 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
26642 | as_echo_n_body='eval | |
26643 | arg=$1; | |
26644 | case $arg in #( | |
26645 | *"$as_nl"*) | |
26646 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
26647 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
26648 | esac; | |
26649 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
26650 | ' | |
26651 | export as_echo_n_body | |
26652 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
26653 | fi | |
26654 | export as_echo_body | |
26655 | as_echo='sh -c $as_echo_body as_echo' | |
26656 | fi | |
26657 | ||
26658 | # The user is always right. | |
26659 | if test "${PATH_SEPARATOR+set}" != set; then | |
26660 | PATH_SEPARATOR=: | |
26661 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
26662 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
26663 | PATH_SEPARATOR=';' | |
26664 | } | |
4ee9c684 | 26665 | fi |
26666 | ||
26667 | ||
cd9a469c | 26668 | # IFS |
26669 | # We need space, tab and new line, in precisely that order. Quoting is | |
26670 | # there to prevent editors from complaining about space-tab. | |
26671 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
26672 | # splitting by setting IFS to empty value.) | |
26673 | IFS=" "" $as_nl" | |
26674 | ||
26675 | # Find who we are. Look in the path if we contain no directory separator. | |
26676 | case $0 in #(( | |
26677 | *[\\/]* ) as_myself=$0 ;; | |
26678 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26679 | for as_dir in $PATH | |
26680 | do | |
26681 | IFS=$as_save_IFS | |
26682 | test -z "$as_dir" && as_dir=. | |
26683 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
26684 | done | |
26685 | IFS=$as_save_IFS | |
26686 | ||
26687 | ;; | |
26688 | esac | |
26689 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
26690 | # in which case we are not to be found in the path. | |
26691 | if test "x$as_myself" = x; then | |
26692 | as_myself=$0 | |
26693 | fi | |
26694 | if test ! -f "$as_myself"; then | |
26695 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
26696 | exit 1 | |
26697 | fi | |
26698 | ||
26699 | # Unset variables that we do not need and which cause bugs (e.g. in | |
26700 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
26701 | # suppresses any "Segmentation fault" message there. '((' could | |
26702 | # trigger a bug in pdksh 5.2.14. | |
26703 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
26704 | do eval test x\${$as_var+set} = xset \ | |
26705 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
26706 | done | |
4ee9c684 | 26707 | PS1='$ ' |
26708 | PS2='> ' | |
26709 | PS4='+ ' | |
26710 | ||
26711 | # NLS nuisances. | |
cd9a469c | 26712 | LC_ALL=C |
26713 | export LC_ALL | |
26714 | LANGUAGE=C | |
26715 | export LANGUAGE | |
26716 | ||
26717 | # CDPATH. | |
26718 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
26719 | ||
26720 | ||
26721 | # as_fn_error ERROR [LINENO LOG_FD] | |
26722 | # --------------------------------- | |
26723 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
26724 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
26725 | # script with status $?, using 1 if that was 0. | |
26726 | as_fn_error () | |
26727 | { | |
26728 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
26729 | if test "$3"; then | |
26730 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
26731 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
4ee9c684 | 26732 | fi |
cd9a469c | 26733 | $as_echo "$as_me: error: $1" >&2 |
26734 | as_fn_exit $as_status | |
26735 | } # as_fn_error | |
26736 | ||
26737 | ||
26738 | # as_fn_set_status STATUS | |
26739 | # ----------------------- | |
26740 | # Set $? to STATUS, without forking. | |
26741 | as_fn_set_status () | |
26742 | { | |
26743 | return $1 | |
26744 | } # as_fn_set_status | |
26745 | ||
26746 | # as_fn_exit STATUS | |
26747 | # ----------------- | |
26748 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
26749 | as_fn_exit () | |
26750 | { | |
26751 | set +e | |
26752 | as_fn_set_status $1 | |
26753 | exit $1 | |
26754 | } # as_fn_exit | |
26755 | ||
26756 | # as_fn_unset VAR | |
26757 | # --------------- | |
26758 | # Portably unset VAR. | |
26759 | as_fn_unset () | |
26760 | { | |
26761 | { eval $1=; unset $1;} | |
26762 | } | |
26763 | as_unset=as_fn_unset | |
26764 | # as_fn_append VAR VALUE | |
26765 | # ---------------------- | |
26766 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
26767 | # advantage of any shell optimizations that allow amortized linear growth over | |
26768 | # repeated appends, instead of the typical quadratic growth present in naive | |
26769 | # implementations. | |
26770 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
26771 | eval 'as_fn_append () | |
26772 | { | |
26773 | eval $1+=\$2 | |
26774 | }' | |
26775 | else | |
26776 | as_fn_append () | |
26777 | { | |
26778 | eval $1=\$$1\$2 | |
26779 | } | |
26780 | fi # as_fn_append | |
26781 | ||
26782 | # as_fn_arith ARG... | |
26783 | # ------------------ | |
26784 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
26785 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
26786 | # must be portable across $(()) and expr. | |
26787 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
26788 | eval 'as_fn_arith () | |
26789 | { | |
26790 | as_val=$(( $* )) | |
26791 | }' | |
26792 | else | |
26793 | as_fn_arith () | |
26794 | { | |
26795 | as_val=`expr "$@" || test $? -eq 1` | |
26796 | } | |
26797 | fi # as_fn_arith | |
4ee9c684 | 26798 | |
cd9a469c | 26799 | |
26800 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
26801 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4ee9c684 | 26802 | as_expr=expr |
26803 | else | |
26804 | as_expr=false | |
26805 | fi | |
26806 | ||
cd9a469c | 26807 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4ee9c684 | 26808 | as_basename=basename |
26809 | else | |
26810 | as_basename=false | |
26811 | fi | |
26812 | ||
cd9a469c | 26813 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
26814 | as_dirname=dirname | |
26815 | else | |
26816 | as_dirname=false | |
26817 | fi | |
4ee9c684 | 26818 | |
cd9a469c | 26819 | as_me=`$as_basename -- "$0" || |
4ee9c684 | 26820 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
26821 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 26822 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
26823 | $as_echo X/"$0" | | |
26824 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
26825 | s//\1/ | |
26826 | q | |
26827 | } | |
26828 | /^X\/\(\/\/\)$/{ | |
26829 | s//\1/ | |
26830 | q | |
26831 | } | |
26832 | /^X\/\(\/\).*/{ | |
26833 | s//\1/ | |
26834 | q | |
26835 | } | |
26836 | s/.*/./; q'` | |
82eaf560 | 26837 | |
82eaf560 | 26838 | # Avoid depending upon Character Ranges. |
26839 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
26840 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
26841 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
26842 | as_cr_digits='0123456789' | |
26843 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26844 | ||
cd9a469c | 26845 | ECHO_C= ECHO_N= ECHO_T= |
26846 | case `echo -n x` in #((((( | |
26847 | -n*) | |
26848 | case `echo 'xy\c'` in | |
26849 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
26850 | xy) ECHO_C='\c';; | |
26851 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
26852 | ECHO_T=' ';; | |
26853 | esac;; | |
26854 | *) | |
26855 | ECHO_N='-n';; | |
4ee9c684 | 26856 | esac |
26857 | ||
cd9a469c | 26858 | rm -f conf$$ conf$$.exe conf$$.file |
26859 | if test -d conf$$.dir; then | |
26860 | rm -f conf$$.dir/conf$$.file | |
4ee9c684 | 26861 | else |
cd9a469c | 26862 | rm -f conf$$.dir |
26863 | mkdir conf$$.dir 2>/dev/null | |
4ee9c684 | 26864 | fi |
cd9a469c | 26865 | if (echo >conf$$.file) 2>/dev/null; then |
26866 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
82eaf560 | 26867 | as_ln_s='ln -s' |
cd9a469c | 26868 | # ... but there are two gotchas: |
26869 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
26870 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
26871 | # In both cases, we have to default to `cp -p'. | |
26872 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
26873 | as_ln_s='cp -p' | |
26874 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
26875 | as_ln_s=ln | |
26876 | else | |
26877 | as_ln_s='cp -p' | |
82eaf560 | 26878 | fi |
4ee9c684 | 26879 | else |
26880 | as_ln_s='cp -p' | |
26881 | fi | |
cd9a469c | 26882 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
26883 | rmdir conf$$.dir 2>/dev/null | |
26884 | ||
26885 | ||
26886 | # as_fn_mkdir_p | |
26887 | # ------------- | |
26888 | # Create "$as_dir" as a directory, including parents if necessary. | |
26889 | as_fn_mkdir_p () | |
26890 | { | |
26891 | ||
26892 | case $as_dir in #( | |
26893 | -*) as_dir=./$as_dir;; | |
26894 | esac | |
26895 | test -d "$as_dir" || eval $as_mkdir_p || { | |
26896 | as_dirs= | |
26897 | while :; do | |
26898 | case $as_dir in #( | |
26899 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
26900 | *) as_qdir=$as_dir;; | |
26901 | esac | |
26902 | as_dirs="'$as_qdir' $as_dirs" | |
26903 | as_dir=`$as_dirname -- "$as_dir" || | |
26904 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26905 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26906 | X"$as_dir" : 'X\(//\)$' \| \ | |
26907 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
26908 | $as_echo X"$as_dir" | | |
26909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26910 | s//\1/ | |
26911 | q | |
26912 | } | |
26913 | /^X\(\/\/\)[^/].*/{ | |
26914 | s//\1/ | |
26915 | q | |
26916 | } | |
26917 | /^X\(\/\/\)$/{ | |
26918 | s//\1/ | |
26919 | q | |
26920 | } | |
26921 | /^X\(\/\).*/{ | |
26922 | s//\1/ | |
26923 | q | |
26924 | } | |
26925 | s/.*/./; q'` | |
26926 | test -d "$as_dir" && break | |
26927 | done | |
26928 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
26929 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
26930 | ||
4ee9c684 | 26931 | |
cd9a469c | 26932 | } # as_fn_mkdir_p |
4ee9c684 | 26933 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 26934 | as_mkdir_p='mkdir -p "$as_dir"' |
4ee9c684 | 26935 | else |
26936 | test -d ./-p && rmdir ./-p | |
26937 | as_mkdir_p=false | |
26938 | fi | |
26939 | ||
cd9a469c | 26940 | if test -x / >/dev/null 2>&1; then |
26941 | as_test_x='test -x' | |
26942 | else | |
26943 | if ls -dL / >/dev/null 2>&1; then | |
26944 | as_ls_L_option=L | |
26945 | else | |
26946 | as_ls_L_option= | |
26947 | fi | |
26948 | as_test_x=' | |
26949 | eval sh -c '\'' | |
26950 | if test -d "$1"; then | |
26951 | test -d "$1/."; | |
26952 | else | |
26953 | case $1 in #( | |
26954 | -*)set "./$1";; | |
26955 | esac; | |
26956 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
26957 | ???[sx]*):;;*)false;;esac;fi | |
26958 | '\'' sh | |
26959 | ' | |
26960 | fi | |
26961 | as_executable_p=$as_test_x | |
4ee9c684 | 26962 | |
26963 | # Sed expression to map a string onto a valid CPP name. | |
26964 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
26965 | ||
26966 | # Sed expression to map a string onto a valid variable name. | |
26967 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26968 | ||
26969 | ||
4ee9c684 | 26970 | exec 6>&1 |
cd9a469c | 26971 | ## ----------------------------------- ## |
26972 | ## Main body of $CONFIG_STATUS script. ## | |
26973 | ## ----------------------------------- ## | |
26974 | _ASEOF | |
26975 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
26976 | ||
26977 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
26978 | # Save the log message, to keep $0 and so on meaningful, and to | |
4ee9c684 | 26979 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 26980 | # values after options handling. |
26981 | ac_log=" | |
76c0a846 | 26982 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
cd9a469c | 26983 | generated by GNU Autoconf 2.64. Invocation command line was |
4ee9c684 | 26984 | |
26985 | CONFIG_FILES = $CONFIG_FILES | |
26986 | CONFIG_HEADERS = $CONFIG_HEADERS | |
26987 | CONFIG_LINKS = $CONFIG_LINKS | |
26988 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
26989 | $ $0 $@ | |
26990 | ||
cd9a469c | 26991 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
26992 | " | |
26993 | ||
4ee9c684 | 26994 | _ACEOF |
26995 | ||
cd9a469c | 26996 | case $ac_config_files in *" |
26997 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
26998 | esac | |
a106dabe | 26999 | |
cd9a469c | 27000 | case $ac_config_headers in *" |
27001 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
27002 | esac | |
82eaf560 | 27003 | |
82eaf560 | 27004 | |
cd9a469c | 27005 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27006 | # Files that config.status was made for. | |
27007 | config_files="$ac_config_files" | |
27008 | config_headers="$ac_config_headers" | |
27009 | config_commands="$ac_config_commands" | |
4ee9c684 | 27010 | |
cd9a469c | 27011 | _ACEOF |
82eaf560 | 27012 | |
cd9a469c | 27013 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4ee9c684 | 27014 | ac_cs_usage="\ |
cd9a469c | 27015 | \`$as_me' instantiates files and other configuration actions |
27016 | from templates according to the current configuration. Unless the files | |
27017 | and actions are specified as TAGs, all are instantiated by default. | |
4ee9c684 | 27018 | |
cd9a469c | 27019 | Usage: $0 [OPTION]... [TAG]... |
4ee9c684 | 27020 | |
27021 | -h, --help print this help, then exit | |
cd9a469c | 27022 | -V, --version print version number and configuration settings, then exit |
27023 | -q, --quiet, --silent | |
27024 | do not print progress messages | |
4ee9c684 | 27025 | -d, --debug don't remove temporary files |
27026 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 27027 | --file=FILE[:TEMPLATE] |
27028 | instantiate the configuration file FILE | |
27029 | --header=FILE[:TEMPLATE] | |
27030 | instantiate the configuration header FILE | |
4ee9c684 | 27031 | |
27032 | Configuration files: | |
27033 | $config_files | |
27034 | ||
27035 | Configuration headers: | |
27036 | $config_headers | |
27037 | ||
27038 | Configuration commands: | |
27039 | $config_commands | |
27040 | ||
cd9a469c | 27041 | Report bugs to the package provider. |
27042 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
27043 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
82eaf560 | 27044 | |
cd9a469c | 27045 | _ACEOF |
27046 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4ee9c684 | 27047 | ac_cs_version="\\ |
76c0a846 | 27048 | GNU Fortran Runtime Library config.status 0.3 |
cd9a469c | 27049 | configured by $0, generated by GNU Autoconf 2.64, |
27050 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
4ee9c684 | 27051 | |
cd9a469c | 27052 | Copyright (C) 2009 Free Software Foundation, Inc. |
4ee9c684 | 27053 | This config.status script is free software; the Free Software Foundation |
27054 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 27055 | |
27056 | ac_pwd='$ac_pwd' | |
27057 | srcdir='$srcdir' | |
27058 | INSTALL='$INSTALL' | |
27059 | MKDIR_P='$MKDIR_P' | |
27060 | AWK='$AWK' | |
27061 | test -n "\$AWK" || AWK=awk | |
4ee9c684 | 27062 | _ACEOF |
27063 | ||
cd9a469c | 27064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27065 | # The default lists apply if the user does not specify any file. | |
4ee9c684 | 27066 | ac_need_defaults=: |
27067 | while test $# != 0 | |
27068 | do | |
27069 | case $1 in | |
27070 | --*=*) | |
cd9a469c | 27071 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
27072 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4ee9c684 | 27073 | ac_shift=: |
27074 | ;; | |
cd9a469c | 27075 | *) |
4ee9c684 | 27076 | ac_option=$1 |
27077 | ac_optarg=$2 | |
27078 | ac_shift=shift | |
27079 | ;; | |
4ee9c684 | 27080 | esac |
27081 | ||
27082 | case $ac_option in | |
27083 | # Handling of the options. | |
4ee9c684 | 27084 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
27085 | ac_cs_recheck=: ;; | |
cd9a469c | 27086 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
27087 | $as_echo "$ac_cs_version"; exit ;; | |
27088 | --debug | --debu | --deb | --de | --d | -d ) | |
4ee9c684 | 27089 | debug=: ;; |
27090 | --file | --fil | --fi | --f ) | |
27091 | $ac_shift | |
cd9a469c | 27092 | case $ac_optarg in |
27093 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27094 | esac | |
27095 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4ee9c684 | 27096 | ac_need_defaults=false;; |
27097 | --header | --heade | --head | --hea ) | |
27098 | $ac_shift | |
cd9a469c | 27099 | case $ac_optarg in |
27100 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27101 | esac | |
27102 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4ee9c684 | 27103 | ac_need_defaults=false;; |
cd9a469c | 27104 | --he | --h) |
27105 | # Conflict between --help and --header | |
27106 | as_fn_error "ambiguous option: \`$1' | |
27107 | Try \`$0 --help' for more information.";; | |
27108 | --help | --hel | -h ) | |
27109 | $as_echo "$ac_cs_usage"; exit ;; | |
4ee9c684 | 27110 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
27111 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
27112 | ac_cs_silent=: ;; | |
27113 | ||
27114 | # This is an error. | |
cd9a469c | 27115 | -*) as_fn_error "unrecognized option: \`$1' |
27116 | Try \`$0 --help' for more information." ;; | |
4ee9c684 | 27117 | |
cd9a469c | 27118 | *) as_fn_append ac_config_targets " $1" |
27119 | ac_need_defaults=false ;; | |
4ee9c684 | 27120 | |
27121 | esac | |
27122 | shift | |
27123 | done | |
27124 | ||
27125 | ac_configure_extra_args= | |
27126 | ||
27127 | if $ac_cs_silent; then | |
27128 | exec 6>/dev/null | |
27129 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
27130 | fi | |
27131 | ||
27132 | _ACEOF | |
cd9a469c | 27133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4ee9c684 | 27134 | if \$ac_cs_recheck; then |
cd9a469c | 27135 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
27136 | shift | |
27137 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
27138 | CONFIG_SHELL='$SHELL' | |
27139 | export CONFIG_SHELL | |
27140 | exec "\$@" | |
4ee9c684 | 27141 | fi |
27142 | ||
542f9784 | 27143 | _ACEOF |
cd9a469c | 27144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27145 | exec 5>>config.log | |
27146 | { | |
27147 | echo | |
27148 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
27149 | ## Running $as_me. ## | |
27150 | _ASBOX | |
27151 | $as_echo "$ac_log" | |
27152 | } >&5 | |
542f9784 | 27153 | |
cd9a469c | 27154 | _ACEOF |
27155 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
542f9784 | 27156 | # |
cd9a469c | 27157 | # INIT-COMMANDS |
542f9784 | 27158 | # |
27159 | ||
542f9784 | 27160 | srcdir="$srcdir" |
27161 | host="$host" | |
27162 | target="$target" | |
27163 | with_multisubdir="$with_multisubdir" | |
27164 | with_multisrctop="$with_multisrctop" | |
27165 | with_target_subdir="$with_target_subdir" | |
27166 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
27167 | multi_basedir="$multi_basedir" | |
27168 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
27169 | CC="$CC" | |
eaae6999 | 27170 | CXX="$CXX" |
27171 | GFORTRAN="$GFORTRAN" | |
542f9784 | 27172 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
27173 | ||
27174 | ||
27175 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
27176 | # if CDPATH is set. | |
27177 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27178 | ||
27179 | sed_quote_subst='$sed_quote_subst' | |
27180 | double_quote_subst='$double_quote_subst' | |
27181 | delay_variable_subst='$delay_variable_subst' | |
18ce903b | 27182 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
27183 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
27184 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
27185 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
27186 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
27187 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
27188 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
27189 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27190 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
27191 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
27192 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
27193 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
27194 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
27195 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27196 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
27197 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
27198 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
27199 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
27200 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
27201 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27202 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
27203 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
27204 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
27205 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
27206 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
27207 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
27208 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
27209 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
27210 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
27211 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
27212 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
27213 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
27214 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
27215 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
27216 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
27217 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
27218 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
27219 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27220 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27221 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
27222 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
27223 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
27224 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
27225 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
27226 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
27227 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
27228 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
27229 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
27230 | 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"`' | |
27231 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
27232 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
27233 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
27234 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
27235 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
27236 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
27237 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
27238 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
27239 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
27240 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
27241 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
27242 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
27243 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
27244 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
27245 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
27246 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
27247 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
27248 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
27249 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27250 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27251 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
27252 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
27253 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
27254 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
27255 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
27256 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
27257 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
27258 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
27259 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
27260 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
27261 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27262 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
27263 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
27264 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
27265 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
27266 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
27267 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
27268 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
27269 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
27270 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
27271 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
27272 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
27273 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
27274 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
27275 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
27276 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
27277 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
27278 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
27279 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
27280 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
27281 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
27282 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
27283 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
27284 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
27285 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
27286 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
27287 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
27288 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
27289 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27290 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27291 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
27292 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
27293 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
27294 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
27295 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
27296 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
27297 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
27298 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
27299 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
27300 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
27301 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
27302 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
27303 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
27304 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
27305 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
27306 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
27307 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
27308 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
27309 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27310 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27311 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27312 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
27313 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
27314 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27315 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
27316 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
27317 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
27318 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
27319 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
27320 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
27321 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27322 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27323 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
27324 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27325 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27326 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27327 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27328 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27329 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27330 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
27331 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27332 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27333 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27334 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
27335 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
27336 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
27337 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
27338 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
27339 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
27340 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
27341 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
27342 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
27343 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
27344 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
27345 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27346 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
27347 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
27348 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27349 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27350 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
27351 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
27352 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
27353 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
27354 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
27355 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
27356 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
542f9784 | 27357 | |
27358 | LTCC='$LTCC' | |
27359 | LTCFLAGS='$LTCFLAGS' | |
27360 | compiler='$compiler_DEFAULT' | |
27361 | ||
e6408286 | 27362 | # A function that is used when there is no print builtin or printf. |
27363 | func_fallback_echo () | |
27364 | { | |
27365 | eval 'cat <<_LTECHO_EOF | |
27366 | \$1 | |
27367 | _LTECHO_EOF' | |
27368 | } | |
27369 | ||
542f9784 | 27370 | # Quote evaled strings. |
18ce903b | 27371 | for var in SED \ |
542f9784 | 27372 | GREP \ |
27373 | EGREP \ | |
27374 | FGREP \ | |
18ce903b | 27375 | SHELL \ |
27376 | ECHO \ | |
542f9784 | 27377 | LD \ |
27378 | NM \ | |
27379 | LN_S \ | |
27380 | lt_SP2NL \ | |
27381 | lt_NL2SP \ | |
27382 | reload_flag \ | |
00aafda4 | 27383 | OBJDUMP \ |
542f9784 | 27384 | deplibs_check_method \ |
27385 | file_magic_cmd \ | |
27386 | AR \ | |
27387 | AR_FLAGS \ | |
27388 | STRIP \ | |
27389 | RANLIB \ | |
27390 | CC \ | |
27391 | CFLAGS \ | |
27392 | compiler \ | |
27393 | lt_cv_sys_global_symbol_pipe \ | |
27394 | lt_cv_sys_global_symbol_to_cdecl \ | |
27395 | lt_cv_sys_global_symbol_to_c_name_address \ | |
00aafda4 | 27396 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
542f9784 | 27397 | lt_prog_compiler_no_builtin_flag \ |
27398 | lt_prog_compiler_wl \ | |
27399 | lt_prog_compiler_pic \ | |
27400 | lt_prog_compiler_static \ | |
27401 | lt_cv_prog_compiler_c_o \ | |
27402 | need_locks \ | |
00aafda4 | 27403 | DSYMUTIL \ |
27404 | NMEDIT \ | |
27405 | LIPO \ | |
27406 | OTOOL \ | |
27407 | OTOOL64 \ | |
542f9784 | 27408 | shrext_cmds \ |
27409 | export_dynamic_flag_spec \ | |
27410 | whole_archive_flag_spec \ | |
27411 | compiler_needs_object \ | |
27412 | with_gnu_ld \ | |
27413 | allow_undefined_flag \ | |
27414 | no_undefined_flag \ | |
27415 | hardcode_libdir_flag_spec \ | |
27416 | hardcode_libdir_flag_spec_ld \ | |
27417 | hardcode_libdir_separator \ | |
27418 | fix_srcfile_path \ | |
27419 | exclude_expsyms \ | |
27420 | include_expsyms \ | |
27421 | file_list_spec \ | |
27422 | variables_saved_for_relink \ | |
27423 | libname_spec \ | |
27424 | library_names_spec \ | |
27425 | soname_spec \ | |
e6408286 | 27426 | install_override_mode \ |
542f9784 | 27427 | finish_eval \ |
27428 | old_striplib \ | |
27429 | striplib \ | |
00aafda4 | 27430 | compiler_lib_search_dirs \ |
542f9784 | 27431 | predep_objects \ |
27432 | postdep_objects \ | |
27433 | predeps \ | |
27434 | postdeps \ | |
27435 | compiler_lib_search_path \ | |
27436 | LD_FC \ | |
e6408286 | 27437 | reload_flag_FC \ |
542f9784 | 27438 | compiler_FC \ |
27439 | lt_prog_compiler_no_builtin_flag_FC \ | |
27440 | lt_prog_compiler_wl_FC \ | |
27441 | lt_prog_compiler_pic_FC \ | |
27442 | lt_prog_compiler_static_FC \ | |
27443 | lt_cv_prog_compiler_c_o_FC \ | |
27444 | export_dynamic_flag_spec_FC \ | |
27445 | whole_archive_flag_spec_FC \ | |
27446 | compiler_needs_object_FC \ | |
27447 | with_gnu_ld_FC \ | |
27448 | allow_undefined_flag_FC \ | |
27449 | no_undefined_flag_FC \ | |
27450 | hardcode_libdir_flag_spec_FC \ | |
27451 | hardcode_libdir_flag_spec_ld_FC \ | |
27452 | hardcode_libdir_separator_FC \ | |
27453 | fix_srcfile_path_FC \ | |
27454 | exclude_expsyms_FC \ | |
27455 | include_expsyms_FC \ | |
27456 | file_list_spec_FC \ | |
00aafda4 | 27457 | compiler_lib_search_dirs_FC \ |
542f9784 | 27458 | predep_objects_FC \ |
27459 | postdep_objects_FC \ | |
27460 | predeps_FC \ | |
27461 | postdeps_FC \ | |
27462 | compiler_lib_search_path_FC; do | |
e6408286 | 27463 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 27464 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 27465 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
542f9784 | 27466 | ;; |
27467 | *) | |
27468 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27469 | ;; | |
27470 | esac | |
27471 | done | |
27472 | ||
27473 | # Double-quote double-evaled strings. | |
27474 | for var in reload_cmds \ | |
27475 | old_postinstall_cmds \ | |
27476 | old_postuninstall_cmds \ | |
27477 | old_archive_cmds \ | |
27478 | extract_expsyms_cmds \ | |
27479 | old_archive_from_new_cmds \ | |
27480 | old_archive_from_expsyms_cmds \ | |
27481 | archive_cmds \ | |
27482 | archive_expsym_cmds \ | |
27483 | module_cmds \ | |
27484 | module_expsym_cmds \ | |
27485 | export_symbols_cmds \ | |
27486 | prelink_cmds \ | |
27487 | postinstall_cmds \ | |
27488 | postuninstall_cmds \ | |
27489 | finish_cmds \ | |
27490 | sys_lib_search_path_spec \ | |
27491 | sys_lib_dlsearch_path_spec \ | |
e6408286 | 27492 | reload_cmds_FC \ |
542f9784 | 27493 | old_archive_cmds_FC \ |
27494 | old_archive_from_new_cmds_FC \ | |
27495 | old_archive_from_expsyms_cmds_FC \ | |
27496 | archive_cmds_FC \ | |
27497 | archive_expsym_cmds_FC \ | |
27498 | module_cmds_FC \ | |
27499 | module_expsym_cmds_FC \ | |
27500 | export_symbols_cmds_FC \ | |
27501 | prelink_cmds_FC; do | |
e6408286 | 27502 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 27503 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 27504 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
542f9784 | 27505 | ;; |
27506 | *) | |
27507 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27508 | ;; | |
27509 | esac | |
27510 | done | |
27511 | ||
542f9784 | 27512 | ac_aux_dir='$ac_aux_dir' |
27513 | xsi_shell='$xsi_shell' | |
27514 | lt_shell_append='$lt_shell_append' | |
27515 | ||
27516 | # See if we are running on zsh, and set the options which allow our | |
27517 | # commands through without removal of \ escapes INIT. | |
27518 | if test -n "\${ZSH_VERSION+set}" ; then | |
27519 | setopt NO_GLOB_SUBST | |
27520 | fi | |
27521 | ||
27522 | ||
27523 | PACKAGE='$PACKAGE' | |
27524 | VERSION='$VERSION' | |
27525 | TIMESTAMP='$TIMESTAMP' | |
27526 | RM='$RM' | |
27527 | ofile='$ofile' | |
27528 | ||
27529 | ||
4ee9c684 | 27530 | |
4ee9c684 | 27531 | |
a106dabe | 27532 | |
4ee9c684 | 27533 | |
2069752c | 27534 | GCC="$GCC" |
27535 | CC="$CC" | |
27536 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
27537 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
27538 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
27539 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
27540 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
27541 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
27542 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
27543 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
27544 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
27545 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
27546 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
56c15991 | 27547 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
27548 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
2069752c | 27549 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
56c15991 | 27550 | |
27551 | ||
4ee9c684 | 27552 | _ACEOF |
27553 | ||
cd9a469c | 27554 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ff4425cf | 27555 | |
cd9a469c | 27556 | # Handling of arguments. |
4ee9c684 | 27557 | for ac_config_target in $ac_config_targets |
27558 | do | |
cd9a469c | 27559 | case $ac_config_target in |
27560 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
27561 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
27562 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
27563 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
27564 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
27565 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
87969c8c | 27566 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
cd9a469c | 27567 | |
27568 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
4ee9c684 | 27569 | esac |
27570 | done | |
27571 | ||
cd9a469c | 27572 | |
4ee9c684 | 27573 | # If the user did not use the arguments to specify the items to instantiate, |
27574 | # then the envvar interface is used. Set only those that are not. | |
27575 | # We use the long form for the default assignment because of an extremely | |
27576 | # bizarre bug on SunOS 4.1.3. | |
27577 | if $ac_need_defaults; then | |
27578 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
27579 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
27580 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
27581 | fi | |
27582 | ||
27583 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 27584 | # simply because there is no reason against having it here, and in addition, |
4ee9c684 | 27585 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 27586 | # Hook for its removal unless debugging. |
27587 | # Note that there is a small window in which the directory will not be cleaned: | |
27588 | # after its creation but before its name has been assigned to `$tmp'. | |
4ee9c684 | 27589 | $debug || |
27590 | { | |
cd9a469c | 27591 | tmp= |
27592 | trap 'exit_status=$? | |
27593 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
27594 | ' 0 | |
27595 | trap 'as_fn_exit 1' 1 2 13 15 | |
4ee9c684 | 27596 | } |
4ee9c684 | 27597 | # Create a (secure) tmp directory for tmp files. |
27598 | ||
27599 | { | |
cd9a469c | 27600 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
4ee9c684 | 27601 | test -n "$tmp" && test -d "$tmp" |
27602 | } || | |
27603 | { | |
cd9a469c | 27604 | tmp=./conf$$-$RANDOM |
27605 | (umask 077 && mkdir "$tmp") | |
27606 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
27607 | ||
27608 | # Set up the scripts for CONFIG_FILES section. | |
27609 | # No need to generate them if there are no CONFIG_FILES. | |
27610 | # This happens for instance with `./config.status config.h'. | |
27611 | if test -n "$CONFIG_FILES"; then | |
27612 | ||
27613 | ||
27614 | ac_cr=`echo X | tr X '\015'` | |
27615 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
27616 | # But we know of no other shell where ac_cr would be empty at this | |
27617 | # point, so we can use a bashism as a fallback. | |
27618 | if test "x$ac_cr" = x; then | |
27619 | eval ac_cr=\$\'\\r\' | |
27620 | fi | |
27621 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
27622 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
27623 | ac_cs_awk_cr='\r' | |
27624 | else | |
27625 | ac_cs_awk_cr=$ac_cr | |
27626 | fi | |
27627 | ||
27628 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
27629 | _ACEOF | |
27630 | ||
27631 | ||
4ee9c684 | 27632 | { |
cd9a469c | 27633 | echo "cat >conf$$subs.awk <<_ACEOF" && |
27634 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
27635 | echo "_ACEOF" | |
27636 | } >conf$$subs.sh || | |
27637 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27638 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
27639 | ac_delim='%!_!# ' | |
27640 | for ac_last_try in false false false false false :; do | |
27641 | . ./conf$$subs.sh || | |
27642 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27643 | ||
27644 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
27645 | if test $ac_delim_n = $ac_delim_num; then | |
27646 | break | |
27647 | elif $ac_last_try; then | |
27648 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27649 | else | |
27650 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
27651 | fi | |
27652 | done | |
27653 | rm -f conf$$subs.sh | |
27654 | ||
27655 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27656 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
27657 | _ACEOF | |
27658 | sed -n ' | |
27659 | h | |
27660 | s/^/S["/; s/!.*/"]=/ | |
27661 | p | |
27662 | g | |
27663 | s/^[^!]*!// | |
27664 | :repl | |
27665 | t repl | |
27666 | s/'"$ac_delim"'$// | |
27667 | t delim | |
27668 | :nl | |
27669 | h | |
27670 | s/\(.\{148\}\).*/\1/ | |
27671 | t more1 | |
27672 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
27673 | p | |
27674 | n | |
27675 | b repl | |
27676 | :more1 | |
27677 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
27678 | p | |
27679 | g | |
27680 | s/.\{148\}// | |
27681 | t nl | |
27682 | :delim | |
27683 | h | |
27684 | s/\(.\{148\}\).*/\1/ | |
27685 | t more2 | |
27686 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
27687 | p | |
27688 | b | |
27689 | :more2 | |
27690 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
27691 | p | |
27692 | g | |
27693 | s/.\{148\}// | |
27694 | t delim | |
27695 | ' <conf$$subs.awk | sed ' | |
27696 | /^[^""]/{ | |
27697 | N | |
27698 | s/\n// | |
27699 | } | |
27700 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
27701 | rm -f conf$$subs.awk | |
27702 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27703 | _ACAWK | |
27704 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
27705 | for (key in S) S_is_set[key] = 1 | |
27706 | FS = "\a" | |
27707 | ||
27708 | } | |
27709 | { | |
27710 | line = $ 0 | |
27711 | nfields = split(line, field, "@") | |
27712 | substed = 0 | |
27713 | len = length(field[1]) | |
27714 | for (i = 2; i < nfields; i++) { | |
27715 | key = field[i] | |
27716 | keylen = length(key) | |
27717 | if (S_is_set[key]) { | |
27718 | value = S[key] | |
27719 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
27720 | len += length(value) + length(field[++i]) | |
27721 | substed = 1 | |
27722 | } else | |
27723 | len += 1 + keylen | |
27724 | } | |
27725 | ||
27726 | print line | |
4ee9c684 | 27727 | } |
27728 | ||
cd9a469c | 27729 | _ACAWK |
27730 | _ACEOF | |
27731 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27732 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
27733 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
27734 | else | |
27735 | cat | |
27736 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
27737 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
82eaf560 | 27738 | _ACEOF |
27739 | ||
cd9a469c | 27740 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
27741 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
27742 | # trailing colons and then remove the whole line if VPATH becomes empty | |
27743 | # (actually we leave an empty line to preserve line numbers). | |
27744 | if test "x$srcdir" = x.; then | |
27745 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
27746 | s/:*\$(srcdir):*/:/ | |
27747 | s/:*\${srcdir}:*/:/ | |
27748 | s/:*@srcdir@:*/:/ | |
27749 | s/^\([^=]*=[ ]*\):*/\1/ | |
27750 | s/:*$// | |
27751 | s/^[^=]*=[ ]*$// | |
27752 | }' | |
27753 | fi | |
82eaf560 | 27754 | |
cd9a469c | 27755 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27756 | fi # test -n "$CONFIG_FILES" | |
4ee9c684 | 27757 | |
cd9a469c | 27758 | # Set up the scripts for CONFIG_HEADERS section. |
27759 | # No need to generate them if there are no CONFIG_HEADERS. | |
27760 | # This happens for instance with `./config.status Makefile'. | |
27761 | if test -n "$CONFIG_HEADERS"; then | |
27762 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
27763 | BEGIN { | |
27764 | _ACEOF | |
27765 | ||
27766 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
27767 | # here-document in config.status, that substitutes the proper values into | |
27768 | # config.h.in to produce config.h. | |
27769 | ||
27770 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
27771 | # handling of long lines. | |
27772 | ac_delim='%!_!# ' | |
27773 | for ac_last_try in false false :; do | |
27774 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
27775 | if test -z "$ac_t"; then | |
27776 | break | |
27777 | elif $ac_last_try; then | |
27778 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
27779 | else | |
27780 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ff4425cf | 27781 | fi |
cd9a469c | 27782 | done |
ce1a737c | 27783 | |
cd9a469c | 27784 | # For the awk script, D is an array of macro values keyed by name, |
27785 | # likewise P contains macro parameters if any. Preserve backslash | |
27786 | # newline sequences. | |
27787 | ||
27788 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
27789 | sed -n ' | |
27790 | s/.\{148\}/&'"$ac_delim"'/g | |
27791 | t rset | |
27792 | :rset | |
27793 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
27794 | t def | |
27795 | d | |
27796 | :def | |
27797 | s/\\$// | |
27798 | t bsnl | |
27799 | s/["\\]/\\&/g | |
27800 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
27801 | D["\1"]=" \3"/p | |
27802 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
27803 | d | |
27804 | :bsnl | |
27805 | s/["\\]/\\&/g | |
27806 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
27807 | D["\1"]=" \3\\\\\\n"\\/p | |
27808 | t cont | |
27809 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
27810 | t cont | |
27811 | d | |
27812 | :cont | |
27813 | n | |
27814 | s/.\{148\}/&'"$ac_delim"'/g | |
27815 | t clear | |
27816 | :clear | |
27817 | s/\\$// | |
27818 | t bsnlc | |
27819 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
27820 | d | |
27821 | :bsnlc | |
27822 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
27823 | b cont | |
27824 | ' <confdefs.h | sed ' | |
27825 | s/'"$ac_delim"'/"\\\ | |
27826 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
27827 | ||
27828 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27829 | for (key in D) D_is_set[key] = 1 | |
27830 | FS = "\a" | |
27831 | } | |
27832 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
27833 | line = \$ 0 | |
27834 | split(line, arg, " ") | |
27835 | if (arg[1] == "#") { | |
27836 | defundef = arg[2] | |
27837 | mac1 = arg[3] | |
27838 | } else { | |
27839 | defundef = substr(arg[1], 2) | |
27840 | mac1 = arg[2] | |
27841 | } | |
27842 | split(mac1, mac2, "(") #) | |
27843 | macro = mac2[1] | |
27844 | prefix = substr(line, 1, index(line, defundef) - 1) | |
27845 | if (D_is_set[macro]) { | |
27846 | # Preserve the white space surrounding the "#". | |
27847 | print prefix "define", macro P[macro] D[macro] | |
27848 | next | |
27849 | } else { | |
27850 | # Replace #undef with comments. This is necessary, for example, | |
27851 | # in the case of _POSIX_SOURCE, which is predefined and required | |
27852 | # on some systems where configure will not decide to define it. | |
27853 | if (defundef == "undef") { | |
27854 | print "/*", prefix defundef, macro, "*/" | |
27855 | next | |
27856 | } | |
27857 | } | |
27858 | } | |
27859 | { print } | |
27860 | _ACAWK | |
4ee9c684 | 27861 | _ACEOF |
cd9a469c | 27862 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27863 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
27864 | fi # test -n "$CONFIG_HEADERS" | |
27865 | ||
27866 | ||
27867 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
27868 | shift | |
27869 | for ac_tag | |
27870 | do | |
27871 | case $ac_tag in | |
27872 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
27873 | esac | |
27874 | case $ac_mode$ac_tag in | |
27875 | :[FHL]*:*);; | |
27876 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
27877 | :[FH]-) ac_tag=-:-;; | |
27878 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
27879 | esac | |
27880 | ac_save_IFS=$IFS | |
27881 | IFS=: | |
27882 | set x $ac_tag | |
27883 | IFS=$ac_save_IFS | |
27884 | shift | |
27885 | ac_file=$1 | |
27886 | shift | |
27887 | ||
27888 | case $ac_mode in | |
27889 | :L) ac_source=$1;; | |
27890 | :[FH]) | |
27891 | ac_file_inputs= | |
27892 | for ac_f | |
27893 | do | |
27894 | case $ac_f in | |
27895 | -) ac_f="$tmp/stdin";; | |
27896 | *) # Look for the file first in the build tree, then in the source tree | |
27897 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
27898 | # because $ac_f cannot contain `:'. | |
27899 | test -f "$ac_f" || | |
27900 | case $ac_f in | |
27901 | [\\/$]*) false;; | |
27902 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
27903 | esac || | |
27904 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
27905 | esac | |
27906 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
27907 | as_fn_append ac_file_inputs " '$ac_f'" | |
27908 | done | |
27909 | ||
27910 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
27911 | # use $as_me), people would be surprised to read: | |
27912 | # /* config.h. Generated by config.status. */ | |
27913 | configure_input='Generated from '` | |
27914 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
27915 | `' by configure.' | |
27916 | if test x"$ac_file" != x-; then | |
27917 | configure_input="$ac_file. $configure_input" | |
27918 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
27919 | $as_echo "$as_me: creating $ac_file" >&6;} | |
27920 | fi | |
27921 | # Neutralize special characters interpreted by sed in replacement strings. | |
27922 | case $configure_input in #( | |
27923 | *\&* | *\|* | *\\* ) | |
27924 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
27925 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
27926 | *) ac_sed_conf_input=$configure_input;; | |
27927 | esac | |
27928 | ||
27929 | case $ac_tag in | |
27930 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
27931 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
27932 | esac | |
27933 | ;; | |
4ee9c684 | 27934 | esac |
27935 | ||
cd9a469c | 27936 | ac_dir=`$as_dirname -- "$ac_file" || |
4ee9c684 | 27937 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27938 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
27939 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 27940 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
27941 | $as_echo X"$ac_file" | | |
27942 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27943 | s//\1/ | |
27944 | q | |
27945 | } | |
27946 | /^X\(\/\/\)[^/].*/{ | |
27947 | s//\1/ | |
27948 | q | |
27949 | } | |
27950 | /^X\(\/\/\)$/{ | |
27951 | s//\1/ | |
27952 | q | |
27953 | } | |
27954 | /^X\(\/\).*/{ | |
27955 | s//\1/ | |
27956 | q | |
27957 | } | |
27958 | s/.*/./; q'` | |
27959 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4ee9c684 | 27960 | ac_builddir=. |
27961 | ||
cd9a469c | 27962 | case "$ac_dir" in |
27963 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
27964 | *) | |
27965 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
27966 | # A ".." for each directory in $ac_dir_suffix. | |
27967 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
27968 | case $ac_top_builddir_sub in | |
27969 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
27970 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
27971 | esac ;; | |
27972 | esac | |
27973 | ac_abs_top_builddir=$ac_pwd | |
27974 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
27975 | # for backward compatibility: | |
27976 | ac_top_builddir=$ac_top_build_prefix | |
4ee9c684 | 27977 | |
27978 | case $srcdir in | |
cd9a469c | 27979 | .) # We are building in place. |
4ee9c684 | 27980 | ac_srcdir=. |
cd9a469c | 27981 | ac_top_srcdir=$ac_top_builddir_sub |
27982 | ac_abs_top_srcdir=$ac_pwd ;; | |
27983 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4ee9c684 | 27984 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 27985 | ac_top_srcdir=$srcdir |
27986 | ac_abs_top_srcdir=$srcdir ;; | |
27987 | *) # Relative name. | |
27988 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
27989 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
27990 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4ee9c684 | 27991 | esac |
cd9a469c | 27992 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
4ee9c684 | 27993 | |
4ee9c684 | 27994 | |
cd9a469c | 27995 | case $ac_mode in |
27996 | :F) | |
27997 | # | |
27998 | # CONFIG_FILE | |
27999 | # | |
4ee9c684 | 28000 | |
28001 | case $INSTALL in | |
28002 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 28003 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
28004 | esac | |
28005 | ac_MKDIR_P=$MKDIR_P | |
28006 | case $MKDIR_P in | |
28007 | [\\/$]* | ?:[\\/]* ) ;; | |
28008 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
4ee9c684 | 28009 | esac |
cd9a469c | 28010 | _ACEOF |
4ee9c684 | 28011 | |
cd9a469c | 28012 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28013 | # If the template does not know about datarootdir, expand it. | |
28014 | # FIXME: This hack should be removed a few years after 2.60. | |
28015 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
28016 | ac_sed_dataroot=' | |
28017 | /datarootdir/ { | |
28018 | p | |
28019 | q | |
28020 | } | |
28021 | /@datadir@/p | |
28022 | /@docdir@/p | |
28023 | /@infodir@/p | |
28024 | /@localedir@/p | |
28025 | /@mandir@/p' | |
28026 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
28027 | *datarootdir*) ac_datarootdir_seen=yes;; | |
28028 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
28029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
28030 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
28031 | _ACEOF | |
28032 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28033 | ac_datarootdir_hack=' | |
28034 | s&@datadir@&$datadir&g | |
28035 | s&@docdir@&$docdir&g | |
28036 | s&@infodir@&$infodir&g | |
28037 | s&@localedir@&$localedir&g | |
28038 | s&@mandir@&$mandir&g | |
28039 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
28040 | esac | |
a106dabe | 28041 | _ACEOF |
cd9a469c | 28042 | |
28043 | # Neutralize VPATH when `$srcdir' = `.'. | |
28044 | # Shell code in configure.ac might set extrasub. | |
28045 | # FIXME: do we really want to maintain this feature? | |
28046 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28047 | ac_sed_extra="$ac_vpsub | |
4ee9c684 | 28048 | $extrasub |
28049 | _ACEOF | |
cd9a469c | 28050 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4ee9c684 | 28051 | :t |
28052 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 28053 | s|@configure_input@|$ac_sed_conf_input|;t t |
28054 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
28055 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
28056 | s&@srcdir@&$ac_srcdir&;t t | |
28057 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
28058 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
28059 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
28060 | s&@builddir@&$ac_builddir&;t t | |
28061 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
28062 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
28063 | s&@INSTALL@&$ac_INSTALL&;t t | |
28064 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
28065 | $ac_datarootdir_hack | |
28066 | " | |
28067 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
28068 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
28069 | ||
28070 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
28071 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
28072 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
28073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
28074 | which seems to be undefined. Please make sure it is defined." >&5 | |
28075 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
28076 | which seems to be undefined. Please make sure it is defined." >&2;} | |
28077 | ||
28078 | rm -f "$tmp/stdin" | |
4ee9c684 | 28079 | case $ac_file in |
cd9a469c | 28080 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
28081 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
28082 | esac \ | |
28083 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
28084 | ;; | |
28085 | :H) | |
28086 | # | |
28087 | # CONFIG_HEADER | |
28088 | # | |
4ee9c684 | 28089 | if test x"$ac_file" != x-; then |
cd9a469c | 28090 | { |
28091 | $as_echo "/* $configure_input */" \ | |
28092 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
28093 | } >"$tmp/config.h" \ | |
28094 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
28095 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
28096 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
28097 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
4ee9c684 | 28098 | else |
cd9a469c | 28099 | rm -f "$ac_file" |
28100 | mv "$tmp/config.h" "$ac_file" \ | |
28101 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4ee9c684 | 28102 | fi |
28103 | else | |
cd9a469c | 28104 | $as_echo "/* $configure_input */" \ |
28105 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
28106 | || as_fn_error "could not create -" "$LINENO" 5 | |
4ee9c684 | 28107 | fi |
cd9a469c | 28108 | # Compute "$ac_file"'s index in $config_headers. |
28109 | _am_arg="$ac_file" | |
4ee9c684 | 28110 | _am_stamp_count=1 |
28111 | for _am_header in $config_headers :; do | |
28112 | case $_am_header in | |
cd9a469c | 28113 | $_am_arg | $_am_arg:* ) |
4ee9c684 | 28114 | break ;; |
28115 | * ) | |
28116 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
28117 | esac | |
28118 | done | |
cd9a469c | 28119 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
28120 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28121 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
28122 | X"$_am_arg" : 'X\(//\)$' \| \ | |
28123 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
28124 | $as_echo X"$_am_arg" | | |
28125 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28126 | s//\1/ | |
28127 | q | |
28128 | } | |
28129 | /^X\(\/\/\)[^/].*/{ | |
28130 | s//\1/ | |
28131 | q | |
28132 | } | |
28133 | /^X\(\/\/\)$/{ | |
28134 | s//\1/ | |
28135 | q | |
28136 | } | |
28137 | /^X\(\/\).*/{ | |
28138 | s//\1/ | |
28139 | q | |
28140 | } | |
28141 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
28142 | ;; | |
82eaf560 | 28143 | |
cd9a469c | 28144 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
28145 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
28146 | ;; | |
28147 | esac | |
4ee9c684 | 28148 | |
28149 | ||
cd9a469c | 28150 | case $ac_file$ac_mode in |
28151 | "default-1":C) | |
90973b19 | 28152 | # Only add multilib support code if we just rebuilt the top-level |
28153 | # Makefile. | |
28154 | case " $CONFIG_FILES " in | |
28155 | *" Makefile "*) | |
28156 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
28157 | ;; | |
28158 | esac ;; | |
cd9a469c | 28159 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
28160 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
28161 | # are listed without --file. Let's play safe and only enable the eval | |
28162 | # if we detect the quoting. | |
28163 | case $CONFIG_FILES in | |
28164 | *\'*) eval set x "$CONFIG_FILES" ;; | |
28165 | *) set x $CONFIG_FILES ;; | |
28166 | esac | |
28167 | shift | |
28168 | for mf | |
28169 | do | |
28170 | # Strip MF so we end up with the name of the file. | |
28171 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
28172 | # Check whether this is an Automake generated Makefile or not. | |
28173 | # We used to match only the files named `Makefile.in', but | |
28174 | # some people rename them; so instead we look at the file content. | |
28175 | # Grep'ing the first line is not enough: some people post-process | |
28176 | # each Makefile.in and add a new line on top of each file to say so. | |
28177 | # Grep'ing the whole file is not good either: AIX grep has a line | |
28178 | # limit of 2048, but all sed's we know have understand at least 4000. | |
28179 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
28180 | dirpart=`$as_dirname -- "$mf" || | |
2fd61f51 | 28181 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28182 | X"$mf" : 'X\(//\)[^/]' \| \ | |
28183 | X"$mf" : 'X\(//\)$' \| \ | |
cd9a469c | 28184 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
28185 | $as_echo X"$mf" | | |
28186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28187 | s//\1/ | |
28188 | q | |
28189 | } | |
28190 | /^X\(\/\/\)[^/].*/{ | |
28191 | s//\1/ | |
28192 | q | |
28193 | } | |
28194 | /^X\(\/\/\)$/{ | |
28195 | s//\1/ | |
28196 | q | |
28197 | } | |
28198 | /^X\(\/\).*/{ | |
28199 | s//\1/ | |
28200 | q | |
28201 | } | |
28202 | s/.*/./; q'` | |
28203 | else | |
28204 | continue | |
28205 | fi | |
28206 | # Extract the definition of DEPDIR, am__include, and am__quote | |
28207 | # from the Makefile without running `make'. | |
28208 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
28209 | test -z "$DEPDIR" && continue | |
28210 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
28211 | test -z "am__include" && continue | |
28212 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
28213 | # When using ansi2knr, U may be empty or an underscore; expand it | |
28214 | U=`sed -n 's/^U = //p' < "$mf"` | |
28215 | # Find all dependency output files, they are included files with | |
28216 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
28217 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
28218 | # expansion. | |
28219 | for file in `sed -n " | |
28220 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
28221 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
28222 | # Make sure the directory exists. | |
28223 | test -f "$dirpart/$file" && continue | |
28224 | fdir=`$as_dirname -- "$file" || | |
2fd61f51 | 28225 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28226 | X"$file" : 'X\(//\)[^/]' \| \ | |
28227 | X"$file" : 'X\(//\)$' \| \ | |
cd9a469c | 28228 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
28229 | $as_echo X"$file" | | |
28230 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28231 | s//\1/ | |
28232 | q | |
28233 | } | |
28234 | /^X\(\/\/\)[^/].*/{ | |
28235 | s//\1/ | |
28236 | q | |
28237 | } | |
28238 | /^X\(\/\/\)$/{ | |
28239 | s//\1/ | |
28240 | q | |
28241 | } | |
28242 | /^X\(\/\).*/{ | |
28243 | s//\1/ | |
28244 | q | |
28245 | } | |
28246 | s/.*/./; q'` | |
28247 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
28248 | # echo "creating $dirpart/$file" | |
28249 | echo '# dummy' > "$dirpart/$file" | |
2fd61f51 | 28250 | done |
2fd61f51 | 28251 | done |
cd9a469c | 28252 | } |
542f9784 | 28253 | ;; |
cd9a469c | 28254 | "libtool":C) |
542f9784 | 28255 | |
28256 | # See if we are running on zsh, and set the options which allow our | |
28257 | # commands through without removal of \ escapes. | |
28258 | if test -n "${ZSH_VERSION+set}" ; then | |
28259 | setopt NO_GLOB_SUBST | |
28260 | fi | |
28261 | ||
28262 | cfgfile="${ofile}T" | |
28263 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
28264 | $RM "$cfgfile" | |
28265 | ||
28266 | cat <<_LT_EOF >> "$cfgfile" | |
28267 | #! $SHELL | |
28268 | ||
28269 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
00aafda4 | 28270 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
542f9784 | 28271 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
28272 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
28273 | # | |
00aafda4 | 28274 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
e6408286 | 28275 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
00aafda4 | 28276 | # Written by Gordon Matzigkeit, 1996 |
542f9784 | 28277 | # |
00aafda4 | 28278 | # This file is part of GNU Libtool. |
542f9784 | 28279 | # |
00aafda4 | 28280 | # GNU Libtool is free software; you can redistribute it and/or |
28281 | # modify it under the terms of the GNU General Public License as | |
28282 | # published by the Free Software Foundation; either version 2 of | |
28283 | # the License, or (at your option) any later version. | |
542f9784 | 28284 | # |
00aafda4 | 28285 | # As a special exception to the GNU General Public License, |
28286 | # if you distribute this file as part of a program or library that | |
28287 | # is built using GNU Libtool, you may include this file under the | |
28288 | # same distribution terms that you use for the rest of that program. | |
542f9784 | 28289 | # |
00aafda4 | 28290 | # GNU Libtool is distributed in the hope that it will be useful, |
28291 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
28292 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
28293 | # GNU General Public License for more details. | |
542f9784 | 28294 | # |
00aafda4 | 28295 | # You should have received a copy of the GNU General Public License |
28296 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
28297 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
28298 | # obtained by writing to the Free Software Foundation, Inc., | |
28299 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
542f9784 | 28300 | |
28301 | ||
28302 | # The names of the tagged configurations supported by this script. | |
28303 | available_tags="FC " | |
28304 | ||
28305 | # ### BEGIN LIBTOOL CONFIG | |
28306 | ||
18ce903b | 28307 | # A sed program that does not truncate output. |
28308 | SED=$lt_SED | |
28309 | ||
28310 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
28311 | Xsed="\$SED -e 1s/^X//" | |
28312 | ||
28313 | # A grep program that handles long lines. | |
28314 | GREP=$lt_GREP | |
28315 | ||
28316 | # An ERE matcher. | |
28317 | EGREP=$lt_EGREP | |
28318 | ||
28319 | # A literal string matcher. | |
28320 | FGREP=$lt_FGREP | |
28321 | ||
28322 | # Shell to use when invoking shell scripts. | |
28323 | SHELL=$lt_SHELL | |
28324 | ||
28325 | # An echo program that protects backslashes. | |
28326 | ECHO=$lt_ECHO | |
28327 | ||
542f9784 | 28328 | # Which release of libtool.m4 was used? |
28329 | macro_version=$macro_version | |
28330 | macro_revision=$macro_revision | |
28331 | ||
28332 | # Whether or not to build shared libraries. | |
28333 | build_libtool_libs=$enable_shared | |
28334 | ||
28335 | # Whether or not to build static libraries. | |
28336 | build_old_libs=$enable_static | |
28337 | ||
28338 | # What type of objects to build. | |
28339 | pic_mode=$pic_mode | |
28340 | ||
28341 | # Whether or not to optimize for fast installation. | |
28342 | fast_install=$enable_fast_install | |
28343 | ||
28344 | # The host system. | |
28345 | host_alias=$host_alias | |
28346 | host=$host | |
28347 | host_os=$host_os | |
28348 | ||
28349 | # The build system. | |
28350 | build_alias=$build_alias | |
28351 | build=$build | |
28352 | build_os=$build_os | |
28353 | ||
542f9784 | 28354 | # A BSD- or MS-compatible name lister. |
28355 | NM=$lt_NM | |
28356 | ||
28357 | # Whether we need soft or hard links. | |
28358 | LN_S=$lt_LN_S | |
28359 | ||
28360 | # What is the maximum length of a command? | |
28361 | max_cmd_len=$max_cmd_len | |
28362 | ||
28363 | # Object file suffix (normally "o"). | |
28364 | objext=$ac_objext | |
28365 | ||
28366 | # Executable file suffix (normally ""). | |
28367 | exeext=$exeext | |
28368 | ||
28369 | # whether the shell understands "unset". | |
28370 | lt_unset=$lt_unset | |
28371 | ||
28372 | # turn spaces into newlines. | |
28373 | SP2NL=$lt_lt_SP2NL | |
28374 | ||
28375 | # turn newlines into spaces. | |
28376 | NL2SP=$lt_lt_NL2SP | |
28377 | ||
00aafda4 | 28378 | # An object symbol dumper. |
28379 | OBJDUMP=$lt_OBJDUMP | |
28380 | ||
542f9784 | 28381 | # Method to check whether dependent libraries are shared objects. |
28382 | deplibs_check_method=$lt_deplibs_check_method | |
28383 | ||
28384 | # Command to use when deplibs_check_method == "file_magic". | |
28385 | file_magic_cmd=$lt_file_magic_cmd | |
28386 | ||
28387 | # The archiver. | |
28388 | AR=$lt_AR | |
28389 | AR_FLAGS=$lt_AR_FLAGS | |
28390 | ||
28391 | # A symbol stripping program. | |
28392 | STRIP=$lt_STRIP | |
28393 | ||
28394 | # Commands used to install an old-style archive. | |
28395 | RANLIB=$lt_RANLIB | |
28396 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
28397 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
28398 | ||
e6408286 | 28399 | # Whether to use a lock for old archive extraction. |
28400 | lock_old_archive_extraction=$lock_old_archive_extraction | |
28401 | ||
542f9784 | 28402 | # A C compiler. |
28403 | LTCC=$lt_CC | |
28404 | ||
28405 | # LTCC compiler flags. | |
28406 | LTCFLAGS=$lt_CFLAGS | |
28407 | ||
28408 | # Take the output of nm and produce a listing of raw symbols and C names. | |
28409 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
28410 | ||
28411 | # Transform the output of nm in a proper C declaration. | |
28412 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
28413 | ||
28414 | # Transform the output of nm in a C name address pair. | |
28415 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
28416 | ||
00aafda4 | 28417 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
28418 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
28419 | ||
542f9784 | 28420 | # The name of the directory that contains temporary libtool files. |
28421 | objdir=$objdir | |
28422 | ||
542f9784 | 28423 | # Used to examine libraries when file_magic_cmd begins with "file". |
28424 | MAGIC_CMD=$MAGIC_CMD | |
28425 | ||
28426 | # Must we lock files when doing compilation? | |
28427 | need_locks=$lt_need_locks | |
28428 | ||
00aafda4 | 28429 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
28430 | DSYMUTIL=$lt_DSYMUTIL | |
28431 | ||
28432 | # Tool to change global to local symbols on Mac OS X. | |
28433 | NMEDIT=$lt_NMEDIT | |
28434 | ||
28435 | # Tool to manipulate fat objects and archives on Mac OS X. | |
28436 | LIPO=$lt_LIPO | |
28437 | ||
28438 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
28439 | OTOOL=$lt_OTOOL | |
28440 | ||
28441 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
28442 | OTOOL64=$lt_OTOOL64 | |
28443 | ||
542f9784 | 28444 | # Old archive suffix (normally "a"). |
28445 | libext=$libext | |
28446 | ||
28447 | # Shared library suffix (normally ".so"). | |
28448 | shrext_cmds=$lt_shrext_cmds | |
28449 | ||
28450 | # The commands to extract the exported symbol list from a shared archive. | |
28451 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
28452 | ||
28453 | # Variables whose values should be saved in libtool wrapper scripts and | |
28454 | # restored at link time. | |
28455 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
28456 | ||
28457 | # Do we need the "lib" prefix for modules? | |
28458 | need_lib_prefix=$need_lib_prefix | |
28459 | ||
28460 | # Do we need a version for libraries? | |
28461 | need_version=$need_version | |
28462 | ||
28463 | # Library versioning type. | |
28464 | version_type=$version_type | |
28465 | ||
28466 | # Shared library runtime path variable. | |
28467 | runpath_var=$runpath_var | |
28468 | ||
28469 | # Shared library path variable. | |
28470 | shlibpath_var=$shlibpath_var | |
28471 | ||
28472 | # Is shlibpath searched before the hard-coded library search path? | |
28473 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
28474 | ||
28475 | # Format of library name prefix. | |
28476 | libname_spec=$lt_libname_spec | |
28477 | ||
28478 | # List of archive names. First name is the real one, the rest are links. | |
28479 | # The last name is the one that the linker finds with -lNAME | |
28480 | library_names_spec=$lt_library_names_spec | |
28481 | ||
28482 | # The coded name of the library, if different from the real name. | |
28483 | soname_spec=$lt_soname_spec | |
28484 | ||
e6408286 | 28485 | # Permission mode override for installation of shared libraries. |
28486 | install_override_mode=$lt_install_override_mode | |
28487 | ||
542f9784 | 28488 | # Command to use after installation of a shared archive. |
28489 | postinstall_cmds=$lt_postinstall_cmds | |
28490 | ||
28491 | # Command to use after uninstallation of a shared archive. | |
28492 | postuninstall_cmds=$lt_postuninstall_cmds | |
28493 | ||
28494 | # Commands used to finish a libtool library installation in a directory. | |
28495 | finish_cmds=$lt_finish_cmds | |
28496 | ||
28497 | # As "finish_cmds", except a single script fragment to be evaled but | |
28498 | # not shown. | |
28499 | finish_eval=$lt_finish_eval | |
28500 | ||
28501 | # Whether we should hardcode library paths into libraries. | |
28502 | hardcode_into_libs=$hardcode_into_libs | |
28503 | ||
28504 | # Compile-time system search path for libraries. | |
28505 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
28506 | ||
28507 | # Run-time system search path for libraries. | |
28508 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
28509 | ||
28510 | # Whether dlopen is supported. | |
28511 | dlopen_support=$enable_dlopen | |
28512 | ||
28513 | # Whether dlopen of programs is supported. | |
28514 | dlopen_self=$enable_dlopen_self | |
28515 | ||
28516 | # Whether dlopen of statically linked programs is supported. | |
28517 | dlopen_self_static=$enable_dlopen_self_static | |
28518 | ||
28519 | # Commands to strip libraries. | |
28520 | old_striplib=$lt_old_striplib | |
28521 | striplib=$lt_striplib | |
28522 | ||
28523 | ||
28524 | # The linker used to build libraries. | |
28525 | LD=$lt_LD | |
28526 | ||
e6408286 | 28527 | # How to create reloadable object files. |
28528 | reload_flag=$lt_reload_flag | |
28529 | reload_cmds=$lt_reload_cmds | |
28530 | ||
542f9784 | 28531 | # Commands used to build an old-style archive. |
28532 | old_archive_cmds=$lt_old_archive_cmds | |
28533 | ||
28534 | # A language specific compiler. | |
28535 | CC=$lt_compiler | |
28536 | ||
28537 | # Is the compiler the GNU compiler? | |
28538 | with_gcc=$GCC | |
28539 | ||
28540 | # Compiler flag to turn off builtin functions. | |
28541 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
28542 | ||
28543 | # How to pass a linker flag through the compiler. | |
28544 | wl=$lt_lt_prog_compiler_wl | |
28545 | ||
28546 | # Additional compiler flags for building library objects. | |
28547 | pic_flag=$lt_lt_prog_compiler_pic | |
28548 | ||
28549 | # Compiler flag to prevent dynamic linking. | |
28550 | link_static_flag=$lt_lt_prog_compiler_static | |
28551 | ||
28552 | # Does compiler simultaneously support -c and -o options? | |
28553 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
28554 | ||
28555 | # Whether or not to add -lc for building shared libraries. | |
28556 | build_libtool_need_lc=$archive_cmds_need_lc | |
28557 | ||
28558 | # Whether or not to disallow shared libs when runtime libs are static. | |
28559 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
28560 | ||
28561 | # Compiler flag to allow reflexive dlopens. | |
28562 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
28563 | ||
28564 | # Compiler flag to generate shared objects directly from archives. | |
28565 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
28566 | ||
28567 | # Whether the compiler copes with passing no objects directly. | |
28568 | compiler_needs_object=$lt_compiler_needs_object | |
28569 | ||
28570 | # Create an old-style archive from a shared archive. | |
28571 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
28572 | ||
28573 | # Create a temporary old-style archive to link instead of a shared archive. | |
28574 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
28575 | ||
28576 | # Commands used to build a shared archive. | |
28577 | archive_cmds=$lt_archive_cmds | |
28578 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
28579 | ||
28580 | # Commands used to build a loadable module if different from building | |
28581 | # a shared archive. | |
28582 | module_cmds=$lt_module_cmds | |
28583 | module_expsym_cmds=$lt_module_expsym_cmds | |
28584 | ||
28585 | # Whether we are building with GNU ld or not. | |
28586 | with_gnu_ld=$lt_with_gnu_ld | |
28587 | ||
28588 | # Flag that allows shared libraries with undefined symbols to be built. | |
28589 | allow_undefined_flag=$lt_allow_undefined_flag | |
28590 | ||
28591 | # Flag that enforces no undefined symbols. | |
28592 | no_undefined_flag=$lt_no_undefined_flag | |
28593 | ||
28594 | # Flag to hardcode \$libdir into a binary during linking. | |
28595 | # This must work even if \$libdir does not exist | |
28596 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
28597 | ||
28598 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
28599 | # during linking. This must work even if \$libdir does not exist. | |
28600 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
28601 | ||
28602 | # Whether we need a single "-rpath" flag with a separated argument. | |
28603 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
28604 | ||
28605 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
28606 | # DIR into the resulting binary. | |
28607 | hardcode_direct=$hardcode_direct | |
28608 | ||
28609 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
28610 | # DIR into the resulting binary and the resulting library dependency is | |
28611 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
28612 | # library is relocated. | |
28613 | hardcode_direct_absolute=$hardcode_direct_absolute | |
28614 | ||
28615 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
28616 | # into the resulting binary. | |
28617 | hardcode_minus_L=$hardcode_minus_L | |
28618 | ||
28619 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
28620 | # into the resulting binary. | |
28621 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
28622 | ||
28623 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
28624 | # into the library and all subsequent libraries and executables linked | |
28625 | # against it. | |
28626 | hardcode_automatic=$hardcode_automatic | |
28627 | ||
28628 | # Set to yes if linker adds runtime paths of dependent libraries | |
28629 | # to runtime path list. | |
28630 | inherit_rpath=$inherit_rpath | |
28631 | ||
28632 | # Whether libtool must link a program against all its dependency libraries. | |
28633 | link_all_deplibs=$link_all_deplibs | |
28634 | ||
28635 | # Fix the shell variable \$srcfile for the compiler. | |
28636 | fix_srcfile_path=$lt_fix_srcfile_path | |
28637 | ||
28638 | # Set to "yes" if exported symbols are required. | |
28639 | always_export_symbols=$always_export_symbols | |
28640 | ||
28641 | # The commands to list exported symbols. | |
28642 | export_symbols_cmds=$lt_export_symbols_cmds | |
28643 | ||
28644 | # Symbols that should not be listed in the preloaded symbols. | |
28645 | exclude_expsyms=$lt_exclude_expsyms | |
28646 | ||
28647 | # Symbols that must always be exported. | |
28648 | include_expsyms=$lt_include_expsyms | |
28649 | ||
28650 | # Commands necessary for linking programs (against libraries) with templates. | |
28651 | prelink_cmds=$lt_prelink_cmds | |
28652 | ||
28653 | # Specify filename containing input files. | |
28654 | file_list_spec=$lt_file_list_spec | |
28655 | ||
28656 | # How to hardcode a shared library path into an executable. | |
28657 | hardcode_action=$hardcode_action | |
28658 | ||
00aafda4 | 28659 | # The directories searched by this compiler when creating a shared library. |
28660 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
28661 | ||
542f9784 | 28662 | # Dependencies to place before and after the objects being linked to |
28663 | # create a shared library. | |
28664 | predep_objects=$lt_predep_objects | |
28665 | postdep_objects=$lt_postdep_objects | |
28666 | predeps=$lt_predeps | |
28667 | postdeps=$lt_postdeps | |
28668 | ||
28669 | # The library search path used internally by the compiler when linking | |
28670 | # a shared library. | |
28671 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
28672 | ||
28673 | # ### END LIBTOOL CONFIG | |
28674 | ||
28675 | _LT_EOF | |
28676 | ||
28677 | case $host_os in | |
28678 | aix3*) | |
28679 | cat <<\_LT_EOF >> "$cfgfile" | |
28680 | # AIX sometimes has problems with the GCC collect2 program. For some | |
28681 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
28682 | # vanish in a puff of smoke. | |
28683 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
28684 | COLLECT_NAMES= | |
28685 | export COLLECT_NAMES | |
28686 | fi | |
28687 | _LT_EOF | |
28688 | ;; | |
28689 | esac | |
28690 | ||
28691 | ||
28692 | ltmain="$ac_aux_dir/ltmain.sh" | |
28693 | ||
28694 | ||
28695 | # We use sed instead of cat because bash on DJGPP gets confused if | |
28696 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
28697 | # text mode, it properly converts lines to CR/LF. This bash problem | |
28698 | # is reportedly fixed, but why not run on old versions too? | |
28699 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
28700 | || (rm -f "$cfgfile"; exit 1) | |
28701 | ||
28702 | case $xsi_shell in | |
28703 | yes) | |
28704 | cat << \_LT_EOF >> "$cfgfile" | |
00aafda4 | 28705 | |
542f9784 | 28706 | # func_dirname file append nondir_replacement |
28707 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
28708 | # otherwise set result to NONDIR_REPLACEMENT. | |
28709 | func_dirname () | |
28710 | { | |
28711 | case ${1} in | |
28712 | */*) func_dirname_result="${1%/*}${2}" ;; | |
28713 | * ) func_dirname_result="${3}" ;; | |
28714 | esac | |
28715 | } | |
28716 | ||
28717 | # func_basename file | |
28718 | func_basename () | |
28719 | { | |
28720 | func_basename_result="${1##*/}" | |
28721 | } | |
28722 | ||
00aafda4 | 28723 | # func_dirname_and_basename file append nondir_replacement |
28724 | # perform func_basename and func_dirname in a single function | |
28725 | # call: | |
28726 | # dirname: Compute the dirname of FILE. If nonempty, | |
28727 | # add APPEND to the result, otherwise set result | |
28728 | # to NONDIR_REPLACEMENT. | |
28729 | # value returned in "$func_dirname_result" | |
28730 | # basename: Compute filename of FILE. | |
28731 | # value retuned in "$func_basename_result" | |
28732 | # Implementation must be kept synchronized with func_dirname | |
28733 | # and func_basename. For efficiency, we do not delegate to | |
28734 | # those functions but instead duplicate the functionality here. | |
28735 | func_dirname_and_basename () | |
28736 | { | |
28737 | case ${1} in | |
28738 | */*) func_dirname_result="${1%/*}${2}" ;; | |
28739 | * ) func_dirname_result="${3}" ;; | |
28740 | esac | |
28741 | func_basename_result="${1##*/}" | |
28742 | } | |
28743 | ||
542f9784 | 28744 | # func_stripname prefix suffix name |
28745 | # strip PREFIX and SUFFIX off of NAME. | |
28746 | # PREFIX and SUFFIX must not contain globbing or regex special | |
28747 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
28748 | # dot (in which case that matches only a dot). | |
28749 | func_stripname () | |
28750 | { | |
28751 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
28752 | # positional parameters, so assign one to ordinary parameter first. | |
28753 | func_stripname_result=${3} | |
28754 | func_stripname_result=${func_stripname_result#"${1}"} | |
28755 | func_stripname_result=${func_stripname_result%"${2}"} | |
28756 | } | |
28757 | ||
28758 | # func_opt_split | |
28759 | func_opt_split () | |
28760 | { | |
28761 | func_opt_split_opt=${1%%=*} | |
28762 | func_opt_split_arg=${1#*=} | |
28763 | } | |
28764 | ||
28765 | # func_lo2o object | |
28766 | func_lo2o () | |
28767 | { | |
28768 | case ${1} in | |
28769 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
28770 | *) func_lo2o_result=${1} ;; | |
28771 | esac | |
28772 | } | |
00aafda4 | 28773 | |
28774 | # func_xform libobj-or-source | |
28775 | func_xform () | |
28776 | { | |
28777 | func_xform_result=${1%.*}.lo | |
28778 | } | |
28779 | ||
28780 | # func_arith arithmetic-term... | |
28781 | func_arith () | |
28782 | { | |
28783 | func_arith_result=$(( $* )) | |
28784 | } | |
28785 | ||
28786 | # func_len string | |
28787 | # STRING may not start with a hyphen. | |
28788 | func_len () | |
28789 | { | |
28790 | func_len_result=${#1} | |
28791 | } | |
28792 | ||
542f9784 | 28793 | _LT_EOF |
28794 | ;; | |
28795 | *) # Bourne compatible functions. | |
28796 | cat << \_LT_EOF >> "$cfgfile" | |
00aafda4 | 28797 | |
542f9784 | 28798 | # func_dirname file append nondir_replacement |
28799 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
28800 | # otherwise set result to NONDIR_REPLACEMENT. | |
28801 | func_dirname () | |
28802 | { | |
28803 | # Extract subdirectory from the argument. | |
e6408286 | 28804 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
542f9784 | 28805 | if test "X$func_dirname_result" = "X${1}"; then |
28806 | func_dirname_result="${3}" | |
28807 | else | |
28808 | func_dirname_result="$func_dirname_result${2}" | |
28809 | fi | |
28810 | } | |
28811 | ||
28812 | # func_basename file | |
28813 | func_basename () | |
28814 | { | |
e6408286 | 28815 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
542f9784 | 28816 | } |
28817 | ||
00aafda4 | 28818 | |
542f9784 | 28819 | # func_stripname prefix suffix name |
28820 | # strip PREFIX and SUFFIX off of NAME. | |
28821 | # PREFIX and SUFFIX must not contain globbing or regex special | |
28822 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
28823 | # dot (in which case that matches only a dot). | |
28824 | # func_strip_suffix prefix name | |
28825 | func_stripname () | |
28826 | { | |
28827 | case ${2} in | |
e6408286 | 28828 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
28829 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
542f9784 | 28830 | esac |
28831 | } | |
28832 | ||
28833 | # sed scripts: | |
28834 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
28835 | my_sed_long_arg='1s/^-[^=]*=//' | |
28836 | ||
28837 | # func_opt_split | |
28838 | func_opt_split () | |
28839 | { | |
e6408286 | 28840 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
28841 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
542f9784 | 28842 | } |
28843 | ||
28844 | # func_lo2o object | |
28845 | func_lo2o () | |
28846 | { | |
e6408286 | 28847 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
542f9784 | 28848 | } |
00aafda4 | 28849 | |
28850 | # func_xform libobj-or-source | |
28851 | func_xform () | |
28852 | { | |
e6408286 | 28853 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
00aafda4 | 28854 | } |
28855 | ||
28856 | # func_arith arithmetic-term... | |
28857 | func_arith () | |
28858 | { | |
28859 | func_arith_result=`expr "$@"` | |
28860 | } | |
28861 | ||
28862 | # func_len string | |
28863 | # STRING may not start with a hyphen. | |
28864 | func_len () | |
28865 | { | |
28866 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
28867 | } | |
28868 | ||
542f9784 | 28869 | _LT_EOF |
28870 | esac | |
28871 | ||
28872 | case $lt_shell_append in | |
28873 | yes) | |
28874 | cat << \_LT_EOF >> "$cfgfile" | |
28875 | ||
28876 | # func_append var value | |
28877 | # Append VALUE to the end of shell variable VAR. | |
28878 | func_append () | |
28879 | { | |
28880 | eval "$1+=\$2" | |
28881 | } | |
28882 | _LT_EOF | |
28883 | ;; | |
28884 | *) | |
28885 | cat << \_LT_EOF >> "$cfgfile" | |
28886 | ||
28887 | # func_append var value | |
28888 | # Append VALUE to the end of shell variable VAR. | |
28889 | func_append () | |
28890 | { | |
28891 | eval "$1=\$$1\$2" | |
28892 | } | |
00aafda4 | 28893 | |
542f9784 | 28894 | _LT_EOF |
28895 | ;; | |
28896 | esac | |
28897 | ||
28898 | ||
28899 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
28900 | || (rm -f "$cfgfile"; exit 1) | |
28901 | ||
28902 | mv -f "$cfgfile" "$ofile" || | |
28903 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
28904 | chmod +x "$ofile" | |
28905 | ||
28906 | ||
28907 | cat <<_LT_EOF >> "$ofile" | |
28908 | ||
28909 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
28910 | ||
28911 | # The linker used to build libraries. | |
28912 | LD=$lt_LD_FC | |
28913 | ||
e6408286 | 28914 | # How to create reloadable object files. |
28915 | reload_flag=$lt_reload_flag_FC | |
28916 | reload_cmds=$lt_reload_cmds_FC | |
28917 | ||
542f9784 | 28918 | # Commands used to build an old-style archive. |
28919 | old_archive_cmds=$lt_old_archive_cmds_FC | |
28920 | ||
28921 | # A language specific compiler. | |
28922 | CC=$lt_compiler_FC | |
28923 | ||
28924 | # Is the compiler the GNU compiler? | |
28925 | with_gcc=$GCC_FC | |
28926 | ||
28927 | # Compiler flag to turn off builtin functions. | |
28928 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
28929 | ||
28930 | # How to pass a linker flag through the compiler. | |
28931 | wl=$lt_lt_prog_compiler_wl_FC | |
28932 | ||
28933 | # Additional compiler flags for building library objects. | |
28934 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
28935 | ||
28936 | # Compiler flag to prevent dynamic linking. | |
28937 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
28938 | ||
28939 | # Does compiler simultaneously support -c and -o options? | |
28940 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
28941 | ||
28942 | # Whether or not to add -lc for building shared libraries. | |
28943 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
28944 | ||
28945 | # Whether or not to disallow shared libs when runtime libs are static. | |
28946 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
28947 | ||
28948 | # Compiler flag to allow reflexive dlopens. | |
28949 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
28950 | ||
28951 | # Compiler flag to generate shared objects directly from archives. | |
28952 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
28953 | ||
28954 | # Whether the compiler copes with passing no objects directly. | |
28955 | compiler_needs_object=$lt_compiler_needs_object_FC | |
28956 | ||
28957 | # Create an old-style archive from a shared archive. | |
28958 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
28959 | ||
28960 | # Create a temporary old-style archive to link instead of a shared archive. | |
28961 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
28962 | ||
28963 | # Commands used to build a shared archive. | |
28964 | archive_cmds=$lt_archive_cmds_FC | |
28965 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
28966 | ||
28967 | # Commands used to build a loadable module if different from building | |
28968 | # a shared archive. | |
28969 | module_cmds=$lt_module_cmds_FC | |
28970 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
28971 | ||
28972 | # Whether we are building with GNU ld or not. | |
28973 | with_gnu_ld=$lt_with_gnu_ld_FC | |
28974 | ||
28975 | # Flag that allows shared libraries with undefined symbols to be built. | |
28976 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
28977 | ||
28978 | # Flag that enforces no undefined symbols. | |
28979 | no_undefined_flag=$lt_no_undefined_flag_FC | |
28980 | ||
28981 | # Flag to hardcode \$libdir into a binary during linking. | |
28982 | # This must work even if \$libdir does not exist | |
28983 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
28984 | ||
28985 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
28986 | # during linking. This must work even if \$libdir does not exist. | |
28987 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
28988 | ||
28989 | # Whether we need a single "-rpath" flag with a separated argument. | |
28990 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
28991 | ||
28992 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
28993 | # DIR into the resulting binary. | |
28994 | hardcode_direct=$hardcode_direct_FC | |
28995 | ||
28996 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
28997 | # DIR into the resulting binary and the resulting library dependency is | |
28998 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
28999 | # library is relocated. | |
29000 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
29001 | ||
29002 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29003 | # into the resulting binary. | |
29004 | hardcode_minus_L=$hardcode_minus_L_FC | |
29005 | ||
29006 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29007 | # into the resulting binary. | |
29008 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
29009 | ||
29010 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29011 | # into the library and all subsequent libraries and executables linked | |
29012 | # against it. | |
29013 | hardcode_automatic=$hardcode_automatic_FC | |
29014 | ||
29015 | # Set to yes if linker adds runtime paths of dependent libraries | |
29016 | # to runtime path list. | |
29017 | inherit_rpath=$inherit_rpath_FC | |
29018 | ||
29019 | # Whether libtool must link a program against all its dependency libraries. | |
29020 | link_all_deplibs=$link_all_deplibs_FC | |
29021 | ||
29022 | # Fix the shell variable \$srcfile for the compiler. | |
29023 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
29024 | ||
29025 | # Set to "yes" if exported symbols are required. | |
29026 | always_export_symbols=$always_export_symbols_FC | |
29027 | ||
29028 | # The commands to list exported symbols. | |
29029 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
29030 | ||
29031 | # Symbols that should not be listed in the preloaded symbols. | |
29032 | exclude_expsyms=$lt_exclude_expsyms_FC | |
29033 | ||
29034 | # Symbols that must always be exported. | |
29035 | include_expsyms=$lt_include_expsyms_FC | |
29036 | ||
29037 | # Commands necessary for linking programs (against libraries) with templates. | |
29038 | prelink_cmds=$lt_prelink_cmds_FC | |
29039 | ||
29040 | # Specify filename containing input files. | |
29041 | file_list_spec=$lt_file_list_spec_FC | |
29042 | ||
29043 | # How to hardcode a shared library path into an executable. | |
29044 | hardcode_action=$hardcode_action_FC | |
29045 | ||
00aafda4 | 29046 | # The directories searched by this compiler when creating a shared library. |
29047 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
29048 | ||
542f9784 | 29049 | # Dependencies to place before and after the objects being linked to |
29050 | # create a shared library. | |
29051 | predep_objects=$lt_predep_objects_FC | |
29052 | postdep_objects=$lt_postdep_objects_FC | |
29053 | predeps=$lt_predeps_FC | |
29054 | postdeps=$lt_postdeps_FC | |
29055 | ||
29056 | # The library search path used internally by the compiler when linking | |
29057 | # a shared library. | |
29058 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
29059 | ||
29060 | # ### END LIBTOOL TAG CONFIG: FC | |
29061 | _LT_EOF | |
29062 | ||
2fd61f51 | 29063 | ;; |
cd9a469c | 29064 | "gstdint.h":C) |
2069752c | 29065 | if test "$GCC" = yes; then |
29066 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
29067 | else | |
29068 | echo "/* generated for $CC */" > tmp-stdint.h | |
29069 | fi | |
56c15991 | 29070 | |
2069752c | 29071 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29072 | ||
29073 | #ifndef GCC_GENERATED_STDINT_H | |
29074 | #define GCC_GENERATED_STDINT_H 1 | |
29075 | ||
29076 | #include <sys/types.h> | |
56c15991 | 29077 | EOF |
56c15991 | 29078 | |
2069752c | 29079 | if test "$acx_cv_header_stdint" != stdint.h; then |
29080 | echo "#include <stddef.h>" >> tmp-stdint.h | |
29081 | fi | |
29082 | if test "$acx_cv_header_stdint" != stddef.h; then | |
29083 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
29084 | fi | |
29085 | ||
29086 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29087 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
29088 | #ifdef __int8_t_defined | |
29089 | #define _INT8_T | |
29090 | #define _INT16_T | |
29091 | #define _INT32_T | |
29092 | #endif | |
29093 | #ifdef __uint32_t_defined | |
29094 | #define _UINT32_T | |
29095 | #endif | |
29096 | ||
29097 | EOF | |
29098 | ||
29099 | # ----------------- done header, emit basic int types ------------- | |
29100 | if test "$acx_cv_header_stdint" = stddef.h; then | |
29101 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29102 | ||
29103 | #ifndef _UINT8_T | |
29104 | #define _UINT8_T | |
29105 | #ifndef __uint8_t_defined | |
29106 | #define __uint8_t_defined | |
9ad2e3f3 | 29107 | #ifndef uint8_t |
2069752c | 29108 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
29109 | #endif | |
29110 | #endif | |
9ad2e3f3 | 29111 | #endif |
2069752c | 29112 | |
29113 | #ifndef _UINT16_T | |
29114 | #define _UINT16_T | |
29115 | #ifndef __uint16_t_defined | |
29116 | #define __uint16_t_defined | |
9ad2e3f3 | 29117 | #ifndef uint16_t |
2069752c | 29118 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
29119 | #endif | |
29120 | #endif | |
9ad2e3f3 | 29121 | #endif |
2069752c | 29122 | |
29123 | #ifndef _UINT32_T | |
29124 | #define _UINT32_T | |
29125 | #ifndef __uint32_t_defined | |
29126 | #define __uint32_t_defined | |
9ad2e3f3 | 29127 | #ifndef uint32_t |
2069752c | 29128 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
29129 | #endif | |
29130 | #endif | |
9ad2e3f3 | 29131 | #endif |
2069752c | 29132 | |
29133 | #ifndef _INT8_T | |
29134 | #define _INT8_T | |
29135 | #ifndef __int8_t_defined | |
29136 | #define __int8_t_defined | |
9ad2e3f3 | 29137 | #ifndef int8_t |
2069752c | 29138 | typedef $acx_cv_type_int8_t int8_t; |
29139 | #endif | |
29140 | #endif | |
9ad2e3f3 | 29141 | #endif |
2069752c | 29142 | |
29143 | #ifndef _INT16_T | |
29144 | #define _INT16_T | |
29145 | #ifndef __int16_t_defined | |
29146 | #define __int16_t_defined | |
9ad2e3f3 | 29147 | #ifndef int16_t |
2069752c | 29148 | typedef $acx_cv_type_int16_t int16_t; |
29149 | #endif | |
29150 | #endif | |
9ad2e3f3 | 29151 | #endif |
2069752c | 29152 | |
29153 | #ifndef _INT32_T | |
29154 | #define _INT32_T | |
29155 | #ifndef __int32_t_defined | |
29156 | #define __int32_t_defined | |
9ad2e3f3 | 29157 | #ifndef int32_t |
2069752c | 29158 | typedef $acx_cv_type_int32_t int32_t; |
29159 | #endif | |
29160 | #endif | |
9ad2e3f3 | 29161 | #endif |
2069752c | 29162 | EOF |
29163 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
29164 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29165 | ||
29166 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
29167 | #ifndef _INT8_T | |
29168 | #define _INT8_T | |
29169 | #endif | |
29170 | #ifndef _INT16_T | |
29171 | #define _INT16_T | |
29172 | #endif | |
29173 | #ifndef _INT32_T | |
29174 | #define _INT32_T | |
29175 | #endif | |
29176 | ||
29177 | #ifndef _UINT8_T | |
29178 | #define _UINT8_T | |
29179 | #ifndef __uint8_t_defined | |
29180 | #define __uint8_t_defined | |
9ad2e3f3 | 29181 | #ifndef uint8_t |
2069752c | 29182 | typedef u_int8_t uint8_t; |
29183 | #endif | |
29184 | #endif | |
9ad2e3f3 | 29185 | #endif |
2069752c | 29186 | |
29187 | #ifndef _UINT16_T | |
29188 | #define _UINT16_T | |
29189 | #ifndef __uint16_t_defined | |
29190 | #define __uint16_t_defined | |
9ad2e3f3 | 29191 | #ifndef uint16_t |
2069752c | 29192 | typedef u_int16_t uint16_t; |
29193 | #endif | |
29194 | #endif | |
9ad2e3f3 | 29195 | #endif |
2069752c | 29196 | |
29197 | #ifndef _UINT32_T | |
29198 | #define _UINT32_T | |
29199 | #ifndef __uint32_t_defined | |
29200 | #define __uint32_t_defined | |
9ad2e3f3 | 29201 | #ifndef uint32_t |
2069752c | 29202 | typedef u_int32_t uint32_t; |
29203 | #endif | |
29204 | #endif | |
9ad2e3f3 | 29205 | #endif |
2069752c | 29206 | EOF |
29207 | else | |
29208 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29209 | ||
29210 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
29211 | #ifndef _INT8_T | |
29212 | #define _INT8_T | |
29213 | #endif | |
29214 | #ifndef _INT16_T | |
29215 | #define _INT16_T | |
29216 | #endif | |
29217 | #ifndef _INT32_T | |
29218 | #define _INT32_T | |
29219 | #endif | |
29220 | #ifndef _UINT8_T | |
29221 | #define _UINT8_T | |
29222 | #endif | |
29223 | #ifndef _UINT16_T | |
29224 | #define _UINT16_T | |
29225 | #endif | |
29226 | #ifndef _UINT32_T | |
29227 | #define _UINT32_T | |
29228 | #endif | |
29229 | EOF | |
29230 | fi | |
29231 | ||
29232 | # ------------- done basic int types, emit int64_t types ------------ | |
29233 | if test "$ac_cv_type_uint64_t" = yes; then | |
29234 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29235 | ||
29236 | /* system headers have good uint64_t and int64_t */ | |
29237 | #ifndef _INT64_T | |
29238 | #define _INT64_T | |
29239 | #endif | |
29240 | #ifndef _UINT64_T | |
29241 | #define _UINT64_T | |
29242 | #endif | |
29243 | EOF | |
29244 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
29245 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29246 | ||
29247 | /* system headers have an u_int64_t (and int64_t) */ | |
29248 | #ifndef _INT64_T | |
29249 | #define _INT64_T | |
29250 | #endif | |
29251 | #ifndef _UINT64_T | |
29252 | #define _UINT64_T | |
29253 | #ifndef __uint64_t_defined | |
29254 | #define __uint64_t_defined | |
9ad2e3f3 | 29255 | #ifndef uint64_t |
2069752c | 29256 | typedef u_int64_t uint64_t; |
29257 | #endif | |
29258 | #endif | |
9ad2e3f3 | 29259 | #endif |
2069752c | 29260 | EOF |
29261 | elif test -n "$acx_cv_type_int64_t"; then | |
29262 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29263 | ||
29264 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
29265 | #ifndef _INT64_T | |
29266 | #define _INT64_T | |
9ad2e3f3 | 29267 | #ifndef int64_t |
2069752c | 29268 | typedef $acx_cv_type_int64_t int64_t; |
29269 | #endif | |
9ad2e3f3 | 29270 | #endif |
2069752c | 29271 | #ifndef _UINT64_T |
29272 | #define _UINT64_T | |
29273 | #ifndef __uint64_t_defined | |
29274 | #define __uint64_t_defined | |
9ad2e3f3 | 29275 | #ifndef uint64_t |
2069752c | 29276 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
29277 | #endif | |
29278 | #endif | |
9ad2e3f3 | 29279 | #endif |
2069752c | 29280 | EOF |
29281 | else | |
29282 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29283 | ||
29284 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
29285 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
29286 | #ifndef _INT64_T | |
29287 | #define _INT64_T | |
29288 | #ifndef __int64_t_defined | |
9ad2e3f3 | 29289 | #ifndef int64_t |
2069752c | 29290 | typedef long long int64_t; |
29291 | #endif | |
29292 | #endif | |
9ad2e3f3 | 29293 | #endif |
2069752c | 29294 | #ifndef _UINT64_T |
29295 | #define _UINT64_T | |
9ad2e3f3 | 29296 | #ifndef uint64_t |
2069752c | 29297 | typedef unsigned long long uint64_t; |
29298 | #endif | |
9ad2e3f3 | 29299 | #endif |
2069752c | 29300 | |
29301 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
29302 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
29303 | does not implement __extension__. But that compiler doesn't define | |
29304 | __GNUC_MINOR__. */ | |
29305 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
29306 | # define __extension__ | |
29307 | # endif | |
29308 | ||
29309 | # ifndef _INT64_T | |
29310 | # define _INT64_T | |
9ad2e3f3 | 29311 | # ifndef int64_t |
2069752c | 29312 | __extension__ typedef long long int64_t; |
29313 | # endif | |
9ad2e3f3 | 29314 | # endif |
2069752c | 29315 | # ifndef _UINT64_T |
29316 | # define _UINT64_T | |
9ad2e3f3 | 29317 | # ifndef uint64_t |
2069752c | 29318 | __extension__ typedef unsigned long long uint64_t; |
29319 | # endif | |
9ad2e3f3 | 29320 | # endif |
2069752c | 29321 | |
29322 | #elif !defined __STRICT_ANSI__ | |
29323 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
29324 | ||
29325 | # ifndef _INT64_T | |
29326 | # define _INT64_T | |
9ad2e3f3 | 29327 | # ifndef int64_t |
2069752c | 29328 | typedef __int64 int64_t; |
29329 | # endif | |
9ad2e3f3 | 29330 | # endif |
2069752c | 29331 | # ifndef _UINT64_T |
29332 | # define _UINT64_T | |
9ad2e3f3 | 29333 | # ifndef uint64_t |
2069752c | 29334 | typedef unsigned __int64 uint64_t; |
29335 | # endif | |
9ad2e3f3 | 29336 | # endif |
2069752c | 29337 | # endif /* compiler */ |
29338 | ||
29339 | #endif /* ANSI version */ | |
29340 | EOF | |
29341 | fi | |
29342 | ||
29343 | # ------------- done int64_t types, emit intptr types ------------ | |
29344 | if test "$ac_cv_type_uintptr_t" != yes; then | |
29345 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29346 | ||
29347 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
29348 | #ifndef __uintptr_t_defined | |
9ad2e3f3 | 29349 | #ifndef uintptr_t |
2069752c | 29350 | typedef u$acx_cv_type_intptr_t uintptr_t; |
29351 | #endif | |
9ad2e3f3 | 29352 | #endif |
2069752c | 29353 | #ifndef __intptr_t_defined |
9ad2e3f3 | 29354 | #ifndef intptr_t |
2069752c | 29355 | typedef $acx_cv_type_intptr_t intptr_t; |
29356 | #endif | |
9ad2e3f3 | 29357 | #endif |
2069752c | 29358 | EOF |
29359 | fi | |
29360 | ||
29361 | # ------------- done intptr types, emit int_least types ------------ | |
56c15991 | 29362 | if test "$ac_cv_type_int_least32_t" != yes; then |
2069752c | 29363 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
56c15991 | 29364 | |
29365 | /* Define int_least types */ | |
29366 | typedef int8_t int_least8_t; | |
29367 | typedef int16_t int_least16_t; | |
29368 | typedef int32_t int_least32_t; | |
2069752c | 29369 | #ifdef _INT64_T |
56c15991 | 29370 | typedef int64_t int_least64_t; |
2069752c | 29371 | #endif |
56c15991 | 29372 | |
29373 | typedef uint8_t uint_least8_t; | |
29374 | typedef uint16_t uint_least16_t; | |
29375 | typedef uint32_t uint_least32_t; | |
2069752c | 29376 | #ifdef _UINT64_T |
56c15991 | 29377 | typedef uint64_t uint_least64_t; |
2069752c | 29378 | #endif |
56c15991 | 29379 | EOF |
29380 | fi | |
29381 | ||
2069752c | 29382 | # ------------- done intptr types, emit int_fast types ------------ |
56c15991 | 29383 | if test "$ac_cv_type_int_fast32_t" != yes; then |
2069752c | 29384 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
56c15991 | 29385 | |
29386 | /* Define int_fast types. short is often slow */ | |
29387 | typedef int8_t int_fast8_t; | |
29388 | typedef int int_fast16_t; | |
29389 | typedef int32_t int_fast32_t; | |
2069752c | 29390 | #ifdef _INT64_T |
56c15991 | 29391 | typedef int64_t int_fast64_t; |
2069752c | 29392 | #endif |
56c15991 | 29393 | |
29394 | typedef uint8_t uint_fast8_t; | |
29395 | typedef unsigned int uint_fast16_t; | |
29396 | typedef uint32_t uint_fast32_t; | |
2069752c | 29397 | #ifdef _UINT64_T |
56c15991 | 29398 | typedef uint64_t uint_fast64_t; |
2069752c | 29399 | #endif |
29400 | EOF | |
29401 | fi | |
29402 | ||
29403 | if test "$ac_cv_type_uintmax_t" != yes; then | |
29404 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29405 | ||
29406 | /* Define intmax based on what we found */ | |
9ad2e3f3 | 29407 | #ifndef intmax_t |
2069752c | 29408 | #ifdef _INT64_T |
29409 | typedef int64_t intmax_t; | |
29410 | #else | |
29411 | typedef long intmax_t; | |
29412 | #endif | |
9ad2e3f3 | 29413 | #endif |
29414 | #ifndef uintmax_t | |
2069752c | 29415 | #ifdef _UINT64_T |
29416 | typedef uint64_t uintmax_t; | |
29417 | #else | |
29418 | typedef unsigned long uintmax_t; | |
29419 | #endif | |
9ad2e3f3 | 29420 | #endif |
56c15991 | 29421 | EOF |
29422 | fi | |
29423 | ||
2069752c | 29424 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29425 | ||
29426 | #endif /* GCC_GENERATED_STDINT_H */ | |
29427 | EOF | |
56c15991 | 29428 | |
2069752c | 29429 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
29430 | rm -f tmp-stdint.h | |
56c15991 | 29431 | else |
2069752c | 29432 | mv -f tmp-stdint.h gstdint.h |
56c15991 | 29433 | fi |
29434 | ||
29435 | ;; | |
cd9a469c | 29436 | |
4ee9c684 | 29437 | esac |
cd9a469c | 29438 | done # for ac_tag |
4ee9c684 | 29439 | |
4ee9c684 | 29440 | |
cd9a469c | 29441 | as_fn_exit 0 |
4ee9c684 | 29442 | _ACEOF |
4ee9c684 | 29443 | ac_clean_files=$ac_clean_files_save |
29444 | ||
cd9a469c | 29445 | test $ac_write_fail = 0 || |
29446 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
29447 | ||
4ee9c684 | 29448 | |
29449 | # configure is writing to config.log, and then calls config.status. | |
29450 | # config.status does its own redirection, appending to config.log. | |
29451 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
29452 | # by configure, so config.status won't be able to write to it; its | |
29453 | # output is simply discarded. So we exec the FD to /dev/null, | |
29454 | # effectively closing config.log, so it can be properly (re)opened and | |
29455 | # appended to by config.status. When coming back to configure, we | |
29456 | # need to make the FD available again. | |
29457 | if test "$no_create" != yes; then | |
29458 | ac_cs_success=: | |
29459 | ac_config_status_args= | |
29460 | test "$silent" = yes && | |
29461 | ac_config_status_args="$ac_config_status_args --quiet" | |
29462 | exec 5>/dev/null | |
29463 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
29464 | exec 5>>config.log | |
29465 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
29466 | # would make configure fail if this is the last instruction. | |
cd9a469c | 29467 | $ac_cs_success || as_fn_exit $? |
29468 | fi | |
29469 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
29470 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
29471 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4ee9c684 | 29472 | fi |
29473 |