]>
Commit | Line | Data |
---|---|---|
953ff289 DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
5213506e RW |
3 | # Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0. |
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. | |
953ff289 | 8 | # |
953ff289 DN |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
953ff289 | 14 | |
5213506e RW |
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 : | |
953ff289 DN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
953ff289 DN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
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 | |
953ff289 | 31 | fi |
953ff289 | 32 | |
5213506e RW |
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 | } | |
953ff289 DN |
79 | fi |
80 | ||
81 | ||
5213506e RW |
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 | |
953ff289 DN |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
5213506e RW |
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 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
953ff289 | 184 | do |
5213506e RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
953ff289 | 228 | else |
5213506e RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
953ff289 | 233 | fi |
5213506e RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
953ff289 | 372 | |
5213506e RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
953ff289 DN |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
5213506e | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
953ff289 DN |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
5213506e RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
953ff289 | 391 | |
5213506e | 392 | as_me=`$as_basename -- "$0" || |
953ff289 DN |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
953ff289 | 410 | |
953ff289 DN |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
953ff289 | 418 | |
5213506e RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
953ff289 | 428 | sed ' |
5213506e RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
953ff289 | 433 | N |
5213506e RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
953ff289 | 436 | t loop |
5213506e | 437 | s/-\n.*// |
953ff289 | 438 | ' >$as_me.lineno && |
5213506e RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
953ff289 DN |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
953ff289 DN |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
5213506e RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
953ff289 DN |
461 | esac |
462 | ||
5213506e RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
953ff289 | 466 | else |
5213506e RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
953ff289 | 469 | fi |
5213506e RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
953ff289 | 472 | as_ln_s='ln -s' |
5213506e RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
953ff289 | 483 | fi |
953ff289 DN |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
5213506e RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
953ff289 DN |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
5213506e | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
953ff289 DN |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
5213506e RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
953ff289 DN |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
1cf3d07d SE |
527 | |
528 | # Check that we are running under the correct shell. | |
529 | SHELL=${CONFIG_SHELL-/bin/sh} | |
530 | ||
531 | case X$lt_ECHO in | |
532 | X*--fallback-echo) | |
533 | # Remove one level of quotation (which was required for Make). | |
534 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
535 | ;; | |
536 | esac | |
537 | ||
538 | ECHO=${lt_ECHO-echo} | |
539 | if test "X$1" = X--no-reexec; then | |
540 | # Discard the --no-reexec flag, and continue. | |
541 | shift | |
542 | elif test "X$1" = X--fallback-echo; then | |
543 | # Avoid inline document here, it may be left over | |
544 | : | |
545 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
546 | # Yippee, $ECHO works! | |
547 | : | |
548 | else | |
549 | # Restart under the correct shell. | |
550 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
551 | fi | |
552 | ||
553 | if test "X$1" = X--fallback-echo; then | |
554 | # used as fallback echo | |
555 | shift | |
556 | cat <<_LT_EOF | |
557 | $* | |
558 | _LT_EOF | |
559 | exit 0 | |
560 | fi | |
561 | ||
562 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
563 | # if CDPATH is set. | |
564 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
565 | ||
566 | if test -z "$lt_ECHO"; then | |
567 | if test "X${echo_test_string+set}" != Xset; then | |
568 | # find a string as large as possible, as long as the shell can cope with it | |
569 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
570 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
571 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
572 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
573 | then | |
574 | break | |
575 | fi | |
576 | done | |
577 | fi | |
578 | ||
579 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
580 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
581 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
582 | : | |
583 | else | |
584 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
585 | # backslashes. This makes it impossible to quote backslashes using | |
586 | # echo "$something" | sed 's/\\/\\\\/g' | |
587 | # | |
588 | # So, first we look for a working echo in the user's PATH. | |
589 | ||
590 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
591 | for dir in $PATH /usr/ucb; do | |
592 | IFS="$lt_save_ifs" | |
593 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
594 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
595 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
596 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
597 | ECHO="$dir/echo" | |
598 | break | |
599 | fi | |
600 | done | |
601 | IFS="$lt_save_ifs" | |
602 | ||
603 | if test "X$ECHO" = Xecho; then | |
604 | # We didn't find a better echo, so look for alternatives. | |
605 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
606 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
607 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
608 | # This shell has a builtin print -r that does the trick. | |
609 | ECHO='print -r' | |
610 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
611 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
612 | # If we have ksh, try running configure again with it. | |
613 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
614 | export ORIGINAL_CONFIG_SHELL | |
615 | CONFIG_SHELL=/bin/ksh | |
616 | export CONFIG_SHELL | |
617 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
618 | else | |
619 | # Try using printf. | |
620 | ECHO='printf %s\n' | |
621 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
622 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
623 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
624 | # Cool, printf works | |
625 | : | |
626 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
627 | test "X$echo_testing_string" = 'X\t' && | |
628 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
629 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
630 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
631 | export CONFIG_SHELL | |
632 | SHELL="$CONFIG_SHELL" | |
633 | export SHELL | |
634 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
635 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
636 | test "X$echo_testing_string" = 'X\t' && | |
637 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
638 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
640 | else | |
641 | # maybe with a smaller string... | |
642 | prev=: | |
643 | ||
644 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
645 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
646 | then | |
647 | break | |
648 | fi | |
649 | prev="$cmd" | |
650 | done | |
651 | ||
652 | if test "$prev" != 'sed 50q "$0"'; then | |
653 | echo_test_string=`eval $prev` | |
654 | export echo_test_string | |
655 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
656 | else | |
657 | # Oops. We lost completely, so just stick with echo. | |
658 | ECHO=echo | |
659 | fi | |
660 | fi | |
661 | fi | |
662 | fi | |
663 | fi | |
664 | fi | |
665 | ||
666 | # Copy echo and quote the copy suitably for passing to libtool from | |
667 | # the Makefile, instead of quoting the original, which is used later. | |
668 | lt_ECHO=$ECHO | |
669 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
670 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
671 | fi | |
672 | ||
673 | ||
674 | ||
675 | ||
5213506e RW |
676 | exec 7<&0 </dev/null 6>&1 |
677 | ||
953ff289 DN |
678 | # Name of the host. |
679 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
680 | # so uname gets run too. | |
681 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
682 | ||
953ff289 DN |
683 | # |
684 | # Initializations. | |
685 | # | |
686 | ac_default_prefix=/usr/local | |
5213506e | 687 | ac_clean_files= |
953ff289 | 688 | ac_config_libobj_dir=. |
5213506e | 689 | LIBOBJS= |
953ff289 DN |
690 | cross_compiling=no |
691 | subdirs= | |
692 | MFLAGS= | |
693 | MAKEFLAGS= | |
953ff289 DN |
694 | |
695 | # Identity of this package. | |
696 | PACKAGE_NAME='GNU OpenMP Runtime Library' | |
697 | PACKAGE_TARNAME='libgomp' | |
698 | PACKAGE_VERSION='1.0' | |
699 | PACKAGE_STRING='GNU OpenMP Runtime Library 1.0' | |
700 | PACKAGE_BUGREPORT='' | |
5213506e | 701 | PACKAGE_URL='http://www.gnu.org/software/libgomp/' |
953ff289 DN |
702 | |
703 | # Factoring default headers for most tests. | |
704 | ac_includes_default="\ | |
705 | #include <stdio.h> | |
5213506e | 706 | #ifdef HAVE_SYS_TYPES_H |
953ff289 DN |
707 | # include <sys/types.h> |
708 | #endif | |
5213506e | 709 | #ifdef HAVE_SYS_STAT_H |
953ff289 DN |
710 | # include <sys/stat.h> |
711 | #endif | |
5213506e | 712 | #ifdef STDC_HEADERS |
953ff289 DN |
713 | # include <stdlib.h> |
714 | # include <stddef.h> | |
715 | #else | |
5213506e | 716 | # ifdef HAVE_STDLIB_H |
953ff289 DN |
717 | # include <stdlib.h> |
718 | # endif | |
719 | #endif | |
5213506e RW |
720 | #ifdef HAVE_STRING_H |
721 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
953ff289 DN |
722 | # include <memory.h> |
723 | # endif | |
724 | # include <string.h> | |
725 | #endif | |
5213506e | 726 | #ifdef HAVE_STRINGS_H |
953ff289 DN |
727 | # include <strings.h> |
728 | #endif | |
5213506e | 729 | #ifdef HAVE_INTTYPES_H |
953ff289 | 730 | # include <inttypes.h> |
953ff289 | 731 | #endif |
5213506e RW |
732 | #ifdef HAVE_STDINT_H |
733 | # include <stdint.h> | |
734 | #endif | |
735 | #ifdef HAVE_UNISTD_H | |
953ff289 DN |
736 | # include <unistd.h> |
737 | #endif" | |
738 | ||
5213506e RW |
739 | ac_subst_vars='am__EXEEXT_FALSE |
740 | am__EXEEXT_TRUE | |
741 | LTLIBOBJS | |
742 | LIBOBJS | |
743 | OMP_NEST_LOCK_25_KIND | |
744 | OMP_LOCK_25_KIND | |
745 | OMP_NEST_LOCK_25_ALIGN | |
746 | OMP_NEST_LOCK_25_SIZE | |
747 | OMP_LOCK_25_ALIGN | |
748 | OMP_LOCK_25_SIZE | |
749 | OMP_NEST_LOCK_KIND | |
750 | OMP_LOCK_KIND | |
751 | OMP_NEST_LOCK_ALIGN | |
752 | OMP_NEST_LOCK_SIZE | |
753 | OMP_LOCK_ALIGN | |
754 | OMP_LOCK_SIZE | |
755 | USE_FORTRAN_FALSE | |
756 | USE_FORTRAN_TRUE | |
757 | link_gomp | |
758 | XLDFLAGS | |
759 | XCFLAGS | |
760 | config_path | |
761 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE | |
762 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE | |
763 | OPT_LDFLAGS | |
764 | SECTION_LDFLAGS | |
765 | libtool_VERSION | |
766 | ac_ct_FC | |
767 | FCFLAGS | |
768 | FC | |
769 | MAINT | |
770 | MAINTAINER_MODE_FALSE | |
771 | MAINTAINER_MODE_TRUE | |
772 | enable_static | |
773 | enable_shared | |
774 | CPP | |
775 | OTOOL64 | |
776 | OTOOL | |
777 | LIPO | |
778 | NMEDIT | |
779 | DSYMUTIL | |
780 | lt_ECHO | |
781 | OBJDUMP | |
782 | LN_S | |
783 | NM | |
784 | ac_ct_DUMPBIN | |
785 | DUMPBIN | |
786 | LD | |
787 | FGREP | |
788 | EGREP | |
789 | GREP | |
790 | SED | |
791 | LIBTOOL | |
792 | BUILD_INFO_FALSE | |
793 | BUILD_INFO_TRUE | |
794 | PERL | |
795 | RANLIB | |
796 | AR | |
797 | am__fastdepCC_FALSE | |
798 | am__fastdepCC_TRUE | |
799 | CCDEPMODE | |
800 | AMDEPBACKSLASH | |
801 | AMDEP_FALSE | |
802 | AMDEP_TRUE | |
803 | am__quote | |
804 | am__include | |
805 | DEPDIR | |
806 | OBJEXT | |
807 | EXEEXT | |
808 | ac_ct_CC | |
809 | CPPFLAGS | |
810 | LDFLAGS | |
811 | CFLAGS | |
812 | CC | |
813 | toolexeclibdir | |
814 | toolexecdir | |
815 | multi_basedir | |
816 | am__untar | |
817 | am__tar | |
818 | AMTAR | |
819 | am__leading_dot | |
820 | SET_MAKE | |
821 | AWK | |
822 | mkdir_p | |
823 | MKDIR_P | |
824 | INSTALL_STRIP_PROGRAM | |
825 | STRIP | |
826 | install_sh | |
827 | MAKEINFO | |
828 | AUTOHEADER | |
829 | AUTOMAKE | |
830 | AUTOCONF | |
831 | ACLOCAL | |
832 | VERSION | |
833 | PACKAGE | |
834 | CYGPATH_W | |
835 | am__isrc | |
836 | INSTALL_DATA | |
837 | INSTALL_SCRIPT | |
838 | INSTALL_PROGRAM | |
839 | target_os | |
840 | target_vendor | |
841 | target_cpu | |
842 | target | |
843 | host_os | |
844 | host_vendor | |
845 | host_cpu | |
846 | host | |
847 | build_os | |
848 | build_vendor | |
849 | build_cpu | |
850 | build | |
851 | GENINSRC_FALSE | |
852 | GENINSRC_TRUE | |
853 | target_alias | |
854 | host_alias | |
855 | build_alias | |
856 | LIBS | |
857 | ECHO_T | |
858 | ECHO_N | |
859 | ECHO_C | |
860 | DEFS | |
861 | mandir | |
862 | localedir | |
863 | libdir | |
864 | psdir | |
865 | pdfdir | |
866 | dvidir | |
867 | htmldir | |
868 | infodir | |
869 | docdir | |
870 | oldincludedir | |
871 | includedir | |
872 | localstatedir | |
873 | sharedstatedir | |
874 | sysconfdir | |
875 | datadir | |
876 | datarootdir | |
877 | libexecdir | |
878 | sbindir | |
879 | bindir | |
880 | program_transform_name | |
881 | prefix | |
882 | exec_prefix | |
883 | PACKAGE_URL | |
884 | PACKAGE_BUGREPORT | |
885 | PACKAGE_STRING | |
886 | PACKAGE_VERSION | |
887 | PACKAGE_TARNAME | |
888 | PACKAGE_NAME | |
889 | PATH_SEPARATOR | |
890 | SHELL' | |
953ff289 | 891 | ac_subst_files='' |
5213506e RW |
892 | ac_user_opts=' |
893 | enable_option_checking | |
894 | enable_version_specific_runtime_libs | |
895 | enable_generated_files_in_srcdir | |
896 | enable_multilib | |
897 | enable_dependency_tracking | |
898 | enable_shared | |
899 | enable_static | |
900 | with_pic | |
901 | enable_fast_install | |
902 | with_gnu_ld | |
903 | enable_libtool_lock | |
904 | enable_maintainer_mode | |
905 | enable_linux_futex | |
906 | enable_tls | |
907 | enable_symvers | |
908 | ' | |
909 | ac_precious_vars='build_alias | |
910 | host_alias | |
911 | target_alias | |
912 | CPP | |
913 | CPPFLAGS | |
914 | FC | |
915 | FCFLAGS | |
916 | LDFLAGS | |
917 | LIBS' | |
918 | ||
953ff289 DN |
919 | |
920 | # Initialize some variables set by options. | |
921 | ac_init_help= | |
922 | ac_init_version=false | |
5213506e RW |
923 | ac_unrecognized_opts= |
924 | ac_unrecognized_sep= | |
953ff289 DN |
925 | # The variables have the same names as the options, with |
926 | # dashes changed to underlines. | |
927 | cache_file=/dev/null | |
928 | exec_prefix=NONE | |
929 | no_create= | |
930 | no_recursion= | |
931 | prefix=NONE | |
932 | program_prefix=NONE | |
933 | program_suffix=NONE | |
934 | program_transform_name=s,x,x, | |
935 | silent= | |
936 | site= | |
937 | srcdir= | |
938 | verbose= | |
939 | x_includes=NONE | |
940 | x_libraries=NONE | |
941 | ||
942 | # Installation directory options. | |
943 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
944 | # and all the variables that are supposed to be based on exec_prefix | |
945 | # by default will actually change. | |
946 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 947 | # (The list follows the same order as the GNU Coding Standards.) |
953ff289 DN |
948 | bindir='${exec_prefix}/bin' |
949 | sbindir='${exec_prefix}/sbin' | |
950 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
951 | datarootdir='${prefix}/share' |
952 | datadir='${datarootdir}' | |
953ff289 DN |
953 | sysconfdir='${prefix}/etc' |
954 | sharedstatedir='${prefix}/com' | |
955 | localstatedir='${prefix}/var' | |
953ff289 DN |
956 | includedir='${prefix}/include' |
957 | oldincludedir='/usr/include' | |
5213506e RW |
958 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
959 | infodir='${datarootdir}/info' | |
960 | htmldir='${docdir}' | |
961 | dvidir='${docdir}' | |
962 | pdfdir='${docdir}' | |
963 | psdir='${docdir}' | |
964 | libdir='${exec_prefix}/lib' | |
965 | localedir='${datarootdir}/locale' | |
966 | mandir='${datarootdir}/man' | |
953ff289 DN |
967 | |
968 | ac_prev= | |
5213506e | 969 | ac_dashdash= |
953ff289 DN |
970 | for ac_option |
971 | do | |
972 | # If the previous option needs an argument, assign it. | |
973 | if test -n "$ac_prev"; then | |
5213506e | 974 | eval $ac_prev=\$ac_option |
953ff289 DN |
975 | ac_prev= |
976 | continue | |
977 | fi | |
978 | ||
5213506e RW |
979 | case $ac_option in |
980 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
981 | *) ac_optarg=yes ;; | |
982 | esac | |
953ff289 DN |
983 | |
984 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
985 | ||
5213506e RW |
986 | case $ac_dashdash$ac_option in |
987 | --) | |
988 | ac_dashdash=yes ;; | |
953ff289 DN |
989 | |
990 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
991 | ac_prev=bindir ;; | |
992 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
993 | bindir=$ac_optarg ;; | |
994 | ||
995 | -build | --build | --buil | --bui | --bu) | |
996 | ac_prev=build_alias ;; | |
997 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
998 | build_alias=$ac_optarg ;; | |
999 | ||
1000 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1001 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1002 | ac_prev=cache_file ;; | |
1003 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1004 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1005 | cache_file=$ac_optarg ;; | |
1006 | ||
1007 | --config-cache | -C) | |
1008 | cache_file=config.cache ;; | |
1009 | ||
5213506e | 1010 | -datadir | --datadir | --datadi | --datad) |
953ff289 | 1011 | ac_prev=datadir ;; |
5213506e | 1012 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
953ff289 DN |
1013 | datadir=$ac_optarg ;; |
1014 | ||
5213506e RW |
1015 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1016 | | --dataroo | --dataro | --datar) | |
1017 | ac_prev=datarootdir ;; | |
1018 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1019 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1020 | datarootdir=$ac_optarg ;; | |
1021 | ||
953ff289 | 1022 | -disable-* | --disable-*) |
5213506e | 1023 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
953ff289 | 1024 | # Reject names that are not valid shell variable names. |
5213506e RW |
1025 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1026 | as_fn_error "invalid feature name: $ac_useropt" | |
1027 | ac_useropt_orig=$ac_useropt | |
1028 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1029 | case $ac_user_opts in | |
1030 | *" | |
1031 | "enable_$ac_useropt" | |
1032 | "*) ;; | |
1033 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1034 | ac_unrecognized_sep=', ';; | |
1035 | esac | |
1036 | eval enable_$ac_useropt=no ;; | |
1037 | ||
1038 | -docdir | --docdir | --docdi | --doc | --do) | |
1039 | ac_prev=docdir ;; | |
1040 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1041 | docdir=$ac_optarg ;; | |
1042 | ||
1043 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1044 | ac_prev=dvidir ;; | |
1045 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1046 | dvidir=$ac_optarg ;; | |
953ff289 DN |
1047 | |
1048 | -enable-* | --enable-*) | |
5213506e | 1049 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
953ff289 | 1050 | # Reject names that are not valid shell variable names. |
5213506e RW |
1051 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1052 | as_fn_error "invalid feature name: $ac_useropt" | |
1053 | ac_useropt_orig=$ac_useropt | |
1054 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1055 | case $ac_user_opts in | |
1056 | *" | |
1057 | "enable_$ac_useropt" | |
1058 | "*) ;; | |
1059 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1060 | ac_unrecognized_sep=', ';; | |
953ff289 | 1061 | esac |
5213506e | 1062 | eval enable_$ac_useropt=\$ac_optarg ;; |
953ff289 DN |
1063 | |
1064 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1065 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1066 | | --exec | --exe | --ex) | |
1067 | ac_prev=exec_prefix ;; | |
1068 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1069 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1070 | | --exec=* | --exe=* | --ex=*) | |
1071 | exec_prefix=$ac_optarg ;; | |
1072 | ||
1073 | -gas | --gas | --ga | --g) | |
1074 | # Obsolete; use --with-gas. | |
1075 | with_gas=yes ;; | |
1076 | ||
1077 | -help | --help | --hel | --he | -h) | |
1078 | ac_init_help=long ;; | |
1079 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1080 | ac_init_help=recursive ;; | |
1081 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1082 | ac_init_help=short ;; | |
1083 | ||
1084 | -host | --host | --hos | --ho) | |
1085 | ac_prev=host_alias ;; | |
1086 | -host=* | --host=* | --hos=* | --ho=*) | |
1087 | host_alias=$ac_optarg ;; | |
1088 | ||
5213506e RW |
1089 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1090 | ac_prev=htmldir ;; | |
1091 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1092 | | --ht=*) | |
1093 | htmldir=$ac_optarg ;; | |
1094 | ||
953ff289 DN |
1095 | -includedir | --includedir | --includedi | --included | --include \ |
1096 | | --includ | --inclu | --incl | --inc) | |
1097 | ac_prev=includedir ;; | |
1098 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1099 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1100 | includedir=$ac_optarg ;; | |
1101 | ||
1102 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1103 | ac_prev=infodir ;; | |
1104 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1105 | infodir=$ac_optarg ;; | |
1106 | ||
1107 | -libdir | --libdir | --libdi | --libd) | |
1108 | ac_prev=libdir ;; | |
1109 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1110 | libdir=$ac_optarg ;; | |
1111 | ||
1112 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1113 | | --libexe | --libex | --libe) | |
1114 | ac_prev=libexecdir ;; | |
1115 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1116 | | --libexe=* | --libex=* | --libe=*) | |
1117 | libexecdir=$ac_optarg ;; | |
1118 | ||
5213506e RW |
1119 | -localedir | --localedir | --localedi | --localed | --locale) |
1120 | ac_prev=localedir ;; | |
1121 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1122 | localedir=$ac_optarg ;; | |
1123 | ||
953ff289 | 1124 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1125 | | --localstate | --localstat | --localsta | --localst | --locals) |
953ff289 DN |
1126 | ac_prev=localstatedir ;; |
1127 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1128 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
953ff289 DN |
1129 | localstatedir=$ac_optarg ;; |
1130 | ||
1131 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1132 | ac_prev=mandir ;; | |
1133 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1134 | mandir=$ac_optarg ;; | |
1135 | ||
1136 | -nfp | --nfp | --nf) | |
1137 | # Obsolete; use --without-fp. | |
1138 | with_fp=no ;; | |
1139 | ||
1140 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1141 | | --no-cr | --no-c | -n) | |
1142 | no_create=yes ;; | |
1143 | ||
1144 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1145 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1146 | no_recursion=yes ;; | |
1147 | ||
1148 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1149 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1150 | | --oldin | --oldi | --old | --ol | --o) | |
1151 | ac_prev=oldincludedir ;; | |
1152 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1153 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1154 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1155 | oldincludedir=$ac_optarg ;; | |
1156 | ||
1157 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1158 | ac_prev=prefix ;; | |
1159 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1160 | prefix=$ac_optarg ;; | |
1161 | ||
1162 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1163 | | --program-pre | --program-pr | --program-p) | |
1164 | ac_prev=program_prefix ;; | |
1165 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1166 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1167 | program_prefix=$ac_optarg ;; | |
1168 | ||
1169 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1170 | | --program-suf | --program-su | --program-s) | |
1171 | ac_prev=program_suffix ;; | |
1172 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1173 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1174 | program_suffix=$ac_optarg ;; | |
1175 | ||
1176 | -program-transform-name | --program-transform-name \ | |
1177 | | --program-transform-nam | --program-transform-na \ | |
1178 | | --program-transform-n | --program-transform- \ | |
1179 | | --program-transform | --program-transfor \ | |
1180 | | --program-transfo | --program-transf \ | |
1181 | | --program-trans | --program-tran \ | |
1182 | | --progr-tra | --program-tr | --program-t) | |
1183 | ac_prev=program_transform_name ;; | |
1184 | -program-transform-name=* | --program-transform-name=* \ | |
1185 | | --program-transform-nam=* | --program-transform-na=* \ | |
1186 | | --program-transform-n=* | --program-transform-=* \ | |
1187 | | --program-transform=* | --program-transfor=* \ | |
1188 | | --program-transfo=* | --program-transf=* \ | |
1189 | | --program-trans=* | --program-tran=* \ | |
1190 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1191 | program_transform_name=$ac_optarg ;; | |
1192 | ||
5213506e RW |
1193 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1194 | ac_prev=pdfdir ;; | |
1195 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1196 | pdfdir=$ac_optarg ;; | |
1197 | ||
1198 | -psdir | --psdir | --psdi | --psd | --ps) | |
1199 | ac_prev=psdir ;; | |
1200 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1201 | psdir=$ac_optarg ;; | |
1202 | ||
953ff289 DN |
1203 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1204 | | -silent | --silent | --silen | --sile | --sil) | |
1205 | silent=yes ;; | |
1206 | ||
1207 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1208 | ac_prev=sbindir ;; | |
1209 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1210 | | --sbi=* | --sb=*) | |
1211 | sbindir=$ac_optarg ;; | |
1212 | ||
1213 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1214 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1215 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1216 | | --sha | --sh) | |
1217 | ac_prev=sharedstatedir ;; | |
1218 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1219 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1220 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1221 | | --sha=* | --sh=*) | |
1222 | sharedstatedir=$ac_optarg ;; | |
1223 | ||
1224 | -site | --site | --sit) | |
1225 | ac_prev=site ;; | |
1226 | -site=* | --site=* | --sit=*) | |
1227 | site=$ac_optarg ;; | |
1228 | ||
1229 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1230 | ac_prev=srcdir ;; | |
1231 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1232 | srcdir=$ac_optarg ;; | |
1233 | ||
1234 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1235 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1236 | ac_prev=sysconfdir ;; | |
1237 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1238 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1239 | sysconfdir=$ac_optarg ;; | |
1240 | ||
1241 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1242 | ac_prev=target_alias ;; | |
1243 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1244 | target_alias=$ac_optarg ;; | |
1245 | ||
1246 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1247 | verbose=yes ;; | |
1248 | ||
1249 | -version | --version | --versio | --versi | --vers | -V) | |
1250 | ac_init_version=: ;; | |
1251 | ||
1252 | -with-* | --with-*) | |
5213506e | 1253 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
953ff289 | 1254 | # Reject names that are not valid shell variable names. |
5213506e RW |
1255 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1256 | as_fn_error "invalid package name: $ac_useropt" | |
1257 | ac_useropt_orig=$ac_useropt | |
1258 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1259 | case $ac_user_opts in | |
1260 | *" | |
1261 | "with_$ac_useropt" | |
1262 | "*) ;; | |
1263 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1264 | ac_unrecognized_sep=', ';; | |
953ff289 | 1265 | esac |
5213506e | 1266 | eval with_$ac_useropt=\$ac_optarg ;; |
953ff289 DN |
1267 | |
1268 | -without-* | --without-*) | |
5213506e | 1269 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
953ff289 | 1270 | # Reject names that are not valid shell variable names. |
5213506e RW |
1271 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1272 | as_fn_error "invalid package name: $ac_useropt" | |
1273 | ac_useropt_orig=$ac_useropt | |
1274 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1275 | case $ac_user_opts in | |
1276 | *" | |
1277 | "with_$ac_useropt" | |
1278 | "*) ;; | |
1279 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1280 | ac_unrecognized_sep=', ';; | |
1281 | esac | |
1282 | eval with_$ac_useropt=no ;; | |
953ff289 DN |
1283 | |
1284 | --x) | |
1285 | # Obsolete; use --with-x. | |
1286 | with_x=yes ;; | |
1287 | ||
1288 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1289 | | --x-incl | --x-inc | --x-in | --x-i) | |
1290 | ac_prev=x_includes ;; | |
1291 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1292 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1293 | x_includes=$ac_optarg ;; | |
1294 | ||
1295 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1296 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1297 | ac_prev=x_libraries ;; | |
1298 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1299 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1300 | x_libraries=$ac_optarg ;; | |
1301 | ||
5213506e RW |
1302 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1303 | Try \`$0 --help' for more information." | |
953ff289 DN |
1304 | ;; |
1305 | ||
1306 | *=*) | |
1307 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1308 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1309 | case $ac_envvar in #( |
1310 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1311 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1312 | esac | |
1313 | eval $ac_envvar=\$ac_optarg | |
953ff289 DN |
1314 | export $ac_envvar ;; |
1315 | ||
1316 | *) | |
1317 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1318 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
953ff289 | 1319 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1320 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
953ff289 DN |
1321 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1322 | ;; | |
1323 | ||
1324 | esac | |
1325 | done | |
1326 | ||
1327 | if test -n "$ac_prev"; then | |
1328 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
5213506e | 1329 | as_fn_error "missing argument to $ac_option" |
953ff289 DN |
1330 | fi |
1331 | ||
5213506e RW |
1332 | if test -n "$ac_unrecognized_opts"; then |
1333 | case $enable_option_checking in | |
1334 | no) ;; | |
1335 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1336 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
953ff289 | 1337 | esac |
5213506e | 1338 | fi |
953ff289 | 1339 | |
5213506e RW |
1340 | # Check all directory arguments for consistency. |
1341 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1342 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1343 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1344 | libdir localedir mandir | |
953ff289 | 1345 | do |
5213506e RW |
1346 | eval ac_val=\$$ac_var |
1347 | # Remove trailing slashes. | |
953ff289 | 1348 | case $ac_val in |
5213506e RW |
1349 | */ ) |
1350 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1351 | eval $ac_var=\$ac_val;; | |
953ff289 | 1352 | esac |
5213506e RW |
1353 | # Be sure to have absolute directory names. |
1354 | case $ac_val in | |
1355 | [\\/$]* | ?:[\\/]* ) continue;; | |
1356 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1357 | esac | |
1358 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
953ff289 DN |
1359 | done |
1360 | ||
1361 | # There might be people who depend on the old broken behavior: `$host' | |
1362 | # used to hold the argument of --host etc. | |
1363 | # FIXME: To remove some day. | |
1364 | build=$build_alias | |
1365 | host=$host_alias | |
1366 | target=$target_alias | |
1367 | ||
1368 | # FIXME: To remove some day. | |
1369 | if test "x$host_alias" != x; then | |
1370 | if test "x$build_alias" = x; then | |
1371 | cross_compiling=maybe | |
5213506e | 1372 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
953ff289 DN |
1373 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1374 | elif test "x$build_alias" != "x$host_alias"; then | |
1375 | cross_compiling=yes | |
1376 | fi | |
1377 | fi | |
1378 | ||
1379 | ac_tool_prefix= | |
1380 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1381 | ||
1382 | test "$silent" = yes && exec 6>/dev/null | |
1383 | ||
1384 | ||
5213506e RW |
1385 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1386 | ac_ls_di=`ls -di .` && | |
1387 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1388 | as_fn_error "working directory cannot be determined" | |
1389 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1390 | as_fn_error "pwd does not report name of working directory" | |
1391 | ||
1392 | ||
953ff289 DN |
1393 | # Find the source files, if location was not specified. |
1394 | if test -z "$srcdir"; then | |
1395 | ac_srcdir_defaulted=yes | |
5213506e RW |
1396 | # Try the directory containing this script, then the parent directory. |
1397 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1398 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1399 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1400 | X"$as_myself" : 'X\(//\)$' \| \ | |
1401 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1402 | $as_echo X"$as_myself" | | |
1403 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1404 | s//\1/ | |
1405 | q | |
1406 | } | |
1407 | /^X\(\/\/\)[^/].*/{ | |
1408 | s//\1/ | |
1409 | q | |
1410 | } | |
1411 | /^X\(\/\/\)$/{ | |
1412 | s//\1/ | |
1413 | q | |
1414 | } | |
1415 | /^X\(\/\).*/{ | |
1416 | s//\1/ | |
1417 | q | |
1418 | } | |
1419 | s/.*/./; q'` | |
953ff289 | 1420 | srcdir=$ac_confdir |
5213506e | 1421 | if test ! -r "$srcdir/$ac_unique_file"; then |
953ff289 DN |
1422 | srcdir=.. |
1423 | fi | |
1424 | else | |
1425 | ac_srcdir_defaulted=no | |
1426 | fi | |
5213506e RW |
1427 | if test ! -r "$srcdir/$ac_unique_file"; then |
1428 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1429 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1430 | fi | |
1431 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1432 | ac_abs_confdir=`( | |
1433 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1434 | pwd)` | |
1435 | # When building in place, set srcdir=. | |
1436 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1437 | srcdir=. | |
1438 | fi | |
1439 | # Remove unnecessary trailing slashes from srcdir. | |
1440 | # Double slashes in file names in object file debugging info | |
1441 | # mess up M-x gdb in Emacs. | |
1442 | case $srcdir in | |
1443 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1444 | esac | |
1445 | for ac_var in $ac_precious_vars; do | |
1446 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1447 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1448 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1449 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1450 | done | |
953ff289 DN |
1451 | |
1452 | # | |
1453 | # Report the --help message. | |
1454 | # | |
1455 | if test "$ac_init_help" = "long"; then | |
1456 | # Omit some internal or obsolete options to make the list less imposing. | |
1457 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1458 | cat <<_ACEOF | |
1459 | \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems. | |
1460 | ||
1461 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1462 | ||
1463 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1464 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1465 | ||
1466 | Defaults for the options are specified in brackets. | |
1467 | ||
1468 | Configuration: | |
1469 | -h, --help display this help and exit | |
1470 | --help=short display options specific to this package | |
1471 | --help=recursive display the short help of all the included packages | |
1472 | -V, --version display version information and exit | |
1473 | -q, --quiet, --silent do not print \`checking...' messages | |
1474 | --cache-file=FILE cache test results in FILE [disabled] | |
1475 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1476 | -n, --no-create do not create output files | |
1477 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1478 | ||
953ff289 DN |
1479 | Installation directories: |
1480 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1481 | [$ac_default_prefix] |
953ff289 | 1482 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1483 | [PREFIX] |
953ff289 DN |
1484 | |
1485 | By default, \`make install' will install all the files in | |
1486 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1487 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1488 | for instance \`--prefix=\$HOME'. | |
1489 | ||
1490 | For better control, use the options below. | |
1491 | ||
1492 | Fine tuning of the installation directories: | |
5213506e RW |
1493 | --bindir=DIR user executables [EPREFIX/bin] |
1494 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1495 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1496 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1497 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1498 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1499 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1500 | --includedir=DIR C header files [PREFIX/include] | |
1501 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1502 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1503 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1504 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1505 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1506 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1507 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp] | |
1508 | --htmldir=DIR html documentation [DOCDIR] | |
1509 | --dvidir=DIR dvi documentation [DOCDIR] | |
1510 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1511 | --psdir=DIR ps documentation [DOCDIR] | |
953ff289 DN |
1512 | _ACEOF |
1513 | ||
1514 | cat <<\_ACEOF | |
1515 | ||
1516 | Program names: | |
1517 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1518 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1519 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1520 | ||
1521 | System types: | |
1522 | --build=BUILD configure for building on BUILD [guessed] | |
1523 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1524 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1525 | _ACEOF | |
1526 | fi | |
1527 | ||
1528 | if test -n "$ac_init_help"; then | |
1529 | case $ac_init_help in | |
1530 | short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";; | |
1531 | esac | |
1532 | cat <<\_ACEOF | |
1533 | ||
1534 | Optional Features: | |
5213506e | 1535 | --disable-option-checking ignore unrecognized --enable/--with options |
953ff289 DN |
1536 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1537 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1538 | --enable-version-specific-runtime-libs | |
1539 | Specify that runtime libraries should be installed | |
1540 | in a compiler-specific directory [default=no] | |
627ab4b8 TT |
1541 | --enable-generated-files-in-srcdir |
1542 | put copies of generated files in source dir intended | |
1543 | for creating source tarballs for users without | |
1544 | texinfo bison or flex. [default=no] | |
953ff289 DN |
1545 | --enable-multilib build many library versions (default) |
1546 | --disable-dependency-tracking speeds up one-time build | |
1547 | --enable-dependency-tracking do not reject slow dependency extractors | |
5213506e RW |
1548 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1549 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1550 | --enable-fast-install[=PKGS] |
1551 | optimize for fast installation [default=yes] | |
953ff289 | 1552 | --disable-libtool-lock avoid locking (might break parallel builds) |
c41303c6 RH |
1553 | --enable-maintainer-mode enable make rules and dependencies not useful |
1554 | (and sometimes confusing) to the casual installer | |
5213506e | 1555 | --enable-linux-futex use the Linux futex system call [default=default] |
2fb31455 | 1556 | --enable-tls Use thread-local storage [default=yes] |
953ff289 DN |
1557 | --enable-symvers=STYLE enables symbol versioning of the shared library |
1558 | [default=yes] | |
1559 | ||
1560 | Optional Packages: | |
1561 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1562 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1cf3d07d SE |
1563 | --with-pic try to use only PIC/non-PIC objects [default=use |
1564 | both] | |
1565 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
953ff289 DN |
1566 | |
1567 | Some influential environment variables: | |
1568 | CC C compiler command | |
1569 | CFLAGS C compiler flags | |
1570 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1571 | nonstandard directory <lib dir> | |
5213506e RW |
1572 | LIBS libraries to pass to the linker, e.g. -l<library> |
1573 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1574 | you have headers in a nonstandard directory <include dir> | |
1cf3d07d | 1575 | CPP C preprocessor |
953ff289 DN |
1576 | FC Fortran compiler command |
1577 | FCFLAGS Fortran compiler flags | |
953ff289 DN |
1578 | |
1579 | Use these variables to override the choices made by `configure' or to help | |
1580 | it to find libraries and programs with nonstandard names/locations. | |
1581 | ||
5213506e RW |
1582 | Report bugs to the package provider. |
1583 | GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>. | |
1584 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
953ff289 | 1585 | _ACEOF |
5213506e | 1586 | ac_status=$? |
953ff289 DN |
1587 | fi |
1588 | ||
1589 | if test "$ac_init_help" = "recursive"; then | |
1590 | # If there are subdirs, report their specific --help. | |
953ff289 | 1591 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1592 | test -d "$ac_dir" || |
1593 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1594 | continue | |
953ff289 DN |
1595 | ac_builddir=. |
1596 | ||
5213506e RW |
1597 | case "$ac_dir" in |
1598 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1599 | *) | |
1600 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1601 | # A ".." for each directory in $ac_dir_suffix. | |
1602 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1603 | case $ac_top_builddir_sub in | |
1604 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1605 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1606 | esac ;; | |
1607 | esac | |
1608 | ac_abs_top_builddir=$ac_pwd | |
1609 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1610 | # for backward compatibility: | |
1611 | ac_top_builddir=$ac_top_build_prefix | |
953ff289 DN |
1612 | |
1613 | case $srcdir in | |
5213506e | 1614 | .) # We are building in place. |
953ff289 | 1615 | ac_srcdir=. |
5213506e RW |
1616 | ac_top_srcdir=$ac_top_builddir_sub |
1617 | ac_abs_top_srcdir=$ac_pwd ;; | |
1618 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
953ff289 | 1619 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1620 | ac_top_srcdir=$srcdir |
1621 | ac_abs_top_srcdir=$srcdir ;; | |
1622 | *) # Relative name. | |
1623 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1624 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1625 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
953ff289 | 1626 | esac |
5213506e RW |
1627 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1628 | ||
1629 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1630 | # Check for guested configure. | |
1631 | if test -f "$ac_srcdir/configure.gnu"; then | |
1632 | echo && | |
1633 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1634 | elif test -f "$ac_srcdir/configure"; then | |
1635 | echo && | |
1636 | $SHELL "$ac_srcdir/configure" --help=recursive | |
953ff289 | 1637 | else |
5213506e RW |
1638 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1639 | fi || ac_status=$? | |
1640 | cd "$ac_pwd" || { ac_status=$?; break; } | |
953ff289 DN |
1641 | done |
1642 | fi | |
1643 | ||
5213506e | 1644 | test -n "$ac_init_help" && exit $ac_status |
953ff289 DN |
1645 | if $ac_init_version; then |
1646 | cat <<\_ACEOF | |
1647 | GNU OpenMP Runtime Library configure 1.0 | |
5213506e | 1648 | generated by GNU Autoconf 2.64 |
953ff289 | 1649 | |
5213506e | 1650 | Copyright (C) 2009 Free Software Foundation, Inc. |
953ff289 DN |
1651 | This configure script is free software; the Free Software Foundation |
1652 | gives unlimited permission to copy, distribute and modify it. | |
1653 | _ACEOF | |
5213506e | 1654 | exit |
953ff289 | 1655 | fi |
953ff289 | 1656 | |
5213506e RW |
1657 | ## ------------------------ ## |
1658 | ## Autoconf initialization. ## | |
1659 | ## ------------------------ ## | |
953ff289 | 1660 | |
5213506e RW |
1661 | # ac_fn_c_try_compile LINENO |
1662 | # -------------------------- | |
1663 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1664 | ac_fn_c_try_compile () | |
953ff289 | 1665 | { |
5213506e RW |
1666 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1667 | rm -f conftest.$ac_objext | |
1668 | if { { ac_try="$ac_compile" | |
1669 | case "(($ac_try" in | |
1670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1671 | *) ac_try_echo=$ac_try;; | |
1672 | esac | |
1673 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1674 | $as_echo "$ac_try_echo"; } >&5 | |
1675 | (eval "$ac_compile") 2>conftest.err | |
1676 | ac_status=$? | |
1677 | if test -s conftest.err; then | |
1678 | grep -v '^ *+' conftest.err >conftest.er1 | |
1679 | cat conftest.er1 >&5 | |
1680 | mv -f conftest.er1 conftest.err | |
1681 | fi | |
1682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1683 | test $ac_status = 0; } && { | |
1684 | test -z "$ac_c_werror_flag" || | |
1685 | test ! -s conftest.err | |
1686 | } && test -s conftest.$ac_objext; then : | |
1687 | ac_retval=0 | |
1688 | else | |
1689 | $as_echo "$as_me: failed program was:" >&5 | |
1690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1691 | |
5213506e RW |
1692 | ac_retval=1 |
1693 | fi | |
1694 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1695 | return $ac_retval | |
953ff289 | 1696 | |
5213506e | 1697 | } # ac_fn_c_try_compile |
953ff289 | 1698 | |
5213506e RW |
1699 | # ac_fn_c_try_link LINENO |
1700 | # ----------------------- | |
1701 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1702 | ac_fn_c_try_link () | |
1703 | { | |
1704 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1706 | if { { ac_try="$ac_link" | |
1707 | case "(($ac_try" in | |
1708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1709 | *) ac_try_echo=$ac_try;; | |
1710 | esac | |
1711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1712 | $as_echo "$ac_try_echo"; } >&5 | |
1713 | (eval "$ac_link") 2>conftest.err | |
1714 | ac_status=$? | |
1715 | if test -s conftest.err; then | |
1716 | grep -v '^ *+' conftest.err >conftest.er1 | |
1717 | cat conftest.er1 >&5 | |
1718 | mv -f conftest.er1 conftest.err | |
1719 | fi | |
1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1721 | test $ac_status = 0; } && { | |
1722 | test -z "$ac_c_werror_flag" || | |
1723 | test ! -s conftest.err | |
1724 | } && test -s conftest$ac_exeext && { | |
1725 | test "$cross_compiling" = yes || | |
1726 | $as_test_x conftest$ac_exeext | |
1727 | }; then : | |
1728 | ac_retval=0 | |
1729 | else | |
1730 | $as_echo "$as_me: failed program was:" >&5 | |
1731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1732 | |
5213506e RW |
1733 | ac_retval=1 |
1734 | fi | |
1735 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1736 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1737 | # interfere with the next link command; also delete a directory that is | |
1738 | # left behind by Apple's compiler. We do this before executing the actions. | |
1739 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1740 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1741 | return $ac_retval | |
953ff289 | 1742 | |
5213506e | 1743 | } # ac_fn_c_try_link |
953ff289 | 1744 | |
5213506e RW |
1745 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1746 | # ------------------------------------------------------- | |
1747 | # Tests whether HEADER exists and can be compiled using the include files in | |
1748 | # INCLUDES, setting the cache variable VAR accordingly. | |
1749 | ac_fn_c_check_header_compile () | |
1750 | { | |
1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1753 | $as_echo_n "checking for $2... " >&6; } | |
1754 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1755 | $as_echo_n "(cached) " >&6 | |
1756 | else | |
1757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1758 | /* end confdefs.h. */ | |
1759 | $4 | |
1760 | #include <$2> | |
1761 | _ACEOF | |
1762 | if ac_fn_c_try_compile "$LINENO"; then : | |
1763 | eval "$3=yes" | |
1764 | else | |
1765 | eval "$3=no" | |
1766 | fi | |
1767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1768 | fi | |
1769 | eval ac_res=\$$3 | |
1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1771 | $as_echo "$ac_res" >&6; } | |
1772 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
953ff289 | 1773 | |
5213506e | 1774 | } # ac_fn_c_check_header_compile |
953ff289 | 1775 | |
5213506e RW |
1776 | # ac_fn_c_try_cpp LINENO |
1777 | # ---------------------- | |
1778 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1779 | ac_fn_c_try_cpp () | |
1780 | { | |
1781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1782 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1783 | case "(($ac_try" in | |
1784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1785 | *) ac_try_echo=$ac_try;; | |
1786 | esac | |
1787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1788 | $as_echo "$ac_try_echo"; } >&5 | |
1789 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1790 | ac_status=$? | |
1791 | if test -s conftest.err; then | |
1792 | grep -v '^ *+' conftest.err >conftest.er1 | |
1793 | cat conftest.er1 >&5 | |
1794 | mv -f conftest.er1 conftest.err | |
1795 | fi | |
1796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1797 | test $ac_status = 0; } >/dev/null && { | |
1798 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1799 | test ! -s conftest.err | |
1800 | }; then : | |
1801 | ac_retval=0 | |
1802 | else | |
1803 | $as_echo "$as_me: failed program was:" >&5 | |
1804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1805 | |
5213506e RW |
1806 | ac_retval=1 |
1807 | fi | |
1808 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1809 | return $ac_retval | |
953ff289 | 1810 | |
5213506e | 1811 | } # ac_fn_c_try_cpp |
953ff289 | 1812 | |
5213506e RW |
1813 | # ac_fn_c_try_run LINENO |
1814 | # ---------------------- | |
1815 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1816 | # that executables *can* be run. | |
1817 | ac_fn_c_try_run () | |
1818 | { | |
1819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1820 | if { { ac_try="$ac_link" | |
1821 | case "(($ac_try" in | |
1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1823 | *) ac_try_echo=$ac_try;; | |
1824 | esac | |
1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1826 | $as_echo "$ac_try_echo"; } >&5 | |
1827 | (eval "$ac_link") 2>&5 | |
1828 | ac_status=$? | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1830 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1831 | { { case "(($ac_try" in | |
1832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1833 | *) ac_try_echo=$ac_try;; | |
1834 | esac | |
1835 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1836 | $as_echo "$ac_try_echo"; } >&5 | |
1837 | (eval "$ac_try") 2>&5 | |
1838 | ac_status=$? | |
1839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1840 | test $ac_status = 0; }; }; then : | |
1841 | ac_retval=0 | |
1842 | else | |
1843 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1844 | $as_echo "$as_me: failed program was:" >&5 | |
1845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1846 | |
5213506e RW |
1847 | ac_retval=$ac_status |
1848 | fi | |
1849 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1850 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1851 | return $ac_retval | |
953ff289 | 1852 | |
5213506e | 1853 | } # ac_fn_c_try_run |
953ff289 | 1854 | |
5213506e RW |
1855 | # ac_fn_c_check_func LINENO FUNC VAR |
1856 | # ---------------------------------- | |
1857 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1858 | ac_fn_c_check_func () | |
953ff289 | 1859 | { |
5213506e RW |
1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1862 | $as_echo_n "checking for $2... " >&6; } | |
1863 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1864 | $as_echo_n "(cached) " >&6 | |
1865 | else | |
1866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1867 | /* end confdefs.h. */ | |
1868 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1869 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1870 | #define $2 innocuous_$2 | |
953ff289 | 1871 | |
5213506e RW |
1872 | /* System header to define __stub macros and hopefully few prototypes, |
1873 | which can conflict with char $2 (); below. | |
1874 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1875 | <limits.h> exists even on freestanding compilers. */ | |
953ff289 | 1876 | |
5213506e RW |
1877 | #ifdef __STDC__ |
1878 | # include <limits.h> | |
1879 | #else | |
1880 | # include <assert.h> | |
1881 | #endif | |
953ff289 | 1882 | |
5213506e | 1883 | #undef $2 |
953ff289 | 1884 | |
5213506e RW |
1885 | /* Override any GCC internal prototype to avoid an error. |
1886 | Use char because int might match the return type of a GCC | |
1887 | builtin and then its argument prototype would still apply. */ | |
1888 | #ifdef __cplusplus | |
1889 | extern "C" | |
1890 | #endif | |
1891 | char $2 (); | |
1892 | /* The GNU C library defines this for functions which it implements | |
1893 | to always fail with ENOSYS. Some functions are actually named | |
1894 | something starting with __ and the normal name is an alias. */ | |
1895 | #if defined __stub_$2 || defined __stub___$2 | |
1896 | choke me | |
1897 | #endif | |
953ff289 | 1898 | |
5213506e RW |
1899 | int |
1900 | main () | |
1901 | { | |
1902 | return $2 (); | |
1903 | ; | |
1904 | return 0; | |
1905 | } | |
953ff289 | 1906 | _ACEOF |
5213506e RW |
1907 | if ac_fn_c_try_link "$LINENO"; then : |
1908 | eval "$3=yes" | |
1909 | else | |
1910 | eval "$3=no" | |
1911 | fi | |
1912 | rm -f core conftest.err conftest.$ac_objext \ | |
1913 | conftest$ac_exeext conftest.$ac_ext | |
1914 | fi | |
1915 | eval ac_res=\$$3 | |
1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1917 | $as_echo "$ac_res" >&6; } | |
1918 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
953ff289 | 1919 | |
5213506e | 1920 | } # ac_fn_c_check_func |
953ff289 | 1921 | |
5213506e RW |
1922 | # ac_fn_fc_try_compile LINENO |
1923 | # --------------------------- | |
1924 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1925 | ac_fn_fc_try_compile () | |
1926 | { | |
1927 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1928 | rm -f conftest.$ac_objext | |
1929 | if { { ac_try="$ac_compile" | |
1930 | case "(($ac_try" in | |
1931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1932 | *) ac_try_echo=$ac_try;; | |
1933 | esac | |
1934 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1935 | $as_echo "$ac_try_echo"; } >&5 | |
1936 | (eval "$ac_compile") 2>conftest.err | |
1937 | ac_status=$? | |
1938 | if test -s conftest.err; then | |
1939 | grep -v '^ *+' conftest.err >conftest.er1 | |
1940 | cat conftest.er1 >&5 | |
1941 | mv -f conftest.er1 conftest.err | |
1942 | fi | |
1943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1944 | test $ac_status = 0; } && { | |
1945 | test -z "$ac_fc_werror_flag" || | |
1946 | test ! -s conftest.err | |
1947 | } && test -s conftest.$ac_objext; then : | |
1948 | ac_retval=0 | |
1949 | else | |
1950 | $as_echo "$as_me: failed program was:" >&5 | |
1951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1952 | |
5213506e RW |
1953 | ac_retval=1 |
1954 | fi | |
1955 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1956 | return $ac_retval | |
953ff289 | 1957 | |
5213506e | 1958 | } # ac_fn_fc_try_compile |
953ff289 | 1959 | |
5213506e RW |
1960 | # ac_fn_fc_try_link LINENO |
1961 | # ------------------------ | |
1962 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1963 | ac_fn_fc_try_link () | |
1964 | { | |
1965 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1966 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1967 | if { { ac_try="$ac_link" | |
1968 | case "(($ac_try" in | |
1969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1970 | *) ac_try_echo=$ac_try;; | |
1971 | esac | |
1972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1973 | $as_echo "$ac_try_echo"; } >&5 | |
1974 | (eval "$ac_link") 2>conftest.err | |
1975 | ac_status=$? | |
1976 | if test -s conftest.err; then | |
1977 | grep -v '^ *+' conftest.err >conftest.er1 | |
1978 | cat conftest.er1 >&5 | |
1979 | mv -f conftest.er1 conftest.err | |
1980 | fi | |
1981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1982 | test $ac_status = 0; } && { | |
1983 | test -z "$ac_fc_werror_flag" || | |
1984 | test ! -s conftest.err | |
1985 | } && test -s conftest$ac_exeext && { | |
1986 | test "$cross_compiling" = yes || | |
1987 | $as_test_x conftest$ac_exeext | |
1988 | }; then : | |
1989 | ac_retval=0 | |
1990 | else | |
1991 | $as_echo "$as_me: failed program was:" >&5 | |
1992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1993 | |
5213506e RW |
1994 | ac_retval=1 |
1995 | fi | |
1996 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1997 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1998 | # interfere with the next link command; also delete a directory that is | |
1999 | # left behind by Apple's compiler. We do this before executing the actions. | |
2000 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2001 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2002 | return $ac_retval | |
953ff289 | 2003 | |
5213506e | 2004 | } # ac_fn_fc_try_link |
953ff289 | 2005 | |
5213506e RW |
2006 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
2007 | # ------------------------------------------------------- | |
2008 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2009 | # the include files in INCLUDES and setting the cache variable VAR | |
2010 | # accordingly. | |
2011 | ac_fn_c_check_header_mongrel () | |
2012 | { | |
2013 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2014 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2016 | $as_echo_n "checking for $2... " >&6; } | |
2017 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2018 | $as_echo_n "(cached) " >&6 | |
2019 | fi | |
2020 | eval ac_res=\$$3 | |
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2022 | $as_echo "$ac_res" >&6; } | |
2023 | else | |
2024 | # Is the header compilable? | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2026 | $as_echo_n "checking $2 usability... " >&6; } | |
2027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2028 | /* end confdefs.h. */ | |
2029 | $4 | |
2030 | #include <$2> | |
953ff289 | 2031 | _ACEOF |
5213506e RW |
2032 | if ac_fn_c_try_compile "$LINENO"; then : |
2033 | ac_header_compiler=yes | |
2034 | else | |
2035 | ac_header_compiler=no | |
953ff289 | 2036 | fi |
5213506e RW |
2037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2039 | $as_echo "$ac_header_compiler" >&6; } | |
953ff289 | 2040 | |
5213506e RW |
2041 | # Is the header present? |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2043 | $as_echo_n "checking $2 presence... " >&6; } | |
2044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2045 | /* end confdefs.h. */ | |
2046 | #include <$2> | |
2047 | _ACEOF | |
2048 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2049 | ac_header_preproc=yes | |
953ff289 | 2050 | else |
5213506e | 2051 | ac_header_preproc=no |
953ff289 | 2052 | fi |
5213506e RW |
2053 | rm -f conftest.err conftest.$ac_ext |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2055 | $as_echo "$ac_header_preproc" >&6; } | |
953ff289 | 2056 | |
5213506e RW |
2057 | # So? What about this header? |
2058 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2059 | yes:no: ) | |
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2061 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2063 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2064 | ;; | |
2065 | no:yes:* ) | |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2067 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2069 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2071 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2073 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2075 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2076 | ;; | |
2077 | esac | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2079 | $as_echo_n "checking for $2... " >&6; } | |
2080 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2081 | $as_echo_n "(cached) " >&6 | |
2082 | else | |
2083 | eval "$3=\$ac_header_compiler" | |
953ff289 | 2084 | fi |
5213506e RW |
2085 | eval ac_res=\$$3 |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2087 | $as_echo "$ac_res" >&6; } | |
2088 | fi | |
2089 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
953ff289 | 2090 | |
5213506e | 2091 | } # ac_fn_c_check_header_mongrel |
953ff289 | 2092 | |
5213506e RW |
2093 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2094 | # ------------------------------------------- | |
2095 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2096 | # variable VAR accordingly. | |
2097 | ac_fn_c_check_type () | |
2098 | { | |
2099 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2101 | $as_echo_n "checking for $2... " >&6; } | |
2102 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2103 | $as_echo_n "(cached) " >&6 | |
2104 | else | |
2105 | eval "$3=no" | |
2106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2107 | /* end confdefs.h. */ | |
2108 | $4 | |
2109 | int | |
2110 | main () | |
2111 | { | |
2112 | if (sizeof ($2)) | |
2113 | return 0; | |
2114 | ; | |
2115 | return 0; | |
2116 | } | |
2117 | _ACEOF | |
2118 | if ac_fn_c_try_compile "$LINENO"; then : | |
2119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2120 | /* end confdefs.h. */ | |
2121 | $4 | |
2122 | int | |
2123 | main () | |
2124 | { | |
2125 | if (sizeof (($2))) | |
2126 | return 0; | |
2127 | ; | |
2128 | return 0; | |
2129 | } | |
2130 | _ACEOF | |
2131 | if ac_fn_c_try_compile "$LINENO"; then : | |
953ff289 | 2132 | |
5213506e RW |
2133 | else |
2134 | eval "$3=yes" | |
2135 | fi | |
2136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2137 | fi | |
2138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2139 | fi | |
2140 | eval ac_res=\$$3 | |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2142 | $as_echo "$ac_res" >&6; } | |
2143 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
953ff289 | 2144 | |
5213506e | 2145 | } # ac_fn_c_check_type |
953ff289 | 2146 | |
5213506e RW |
2147 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2148 | # -------------------------------------------- | |
2149 | # Tries to find the compile-time value of EXPR in a program that includes | |
2150 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2151 | # computed | |
2152 | ac_fn_c_compute_int () | |
2153 | { | |
2154 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2155 | if test "$cross_compiling" = yes; then | |
2156 | # Depending upon the size, compute the lo and hi bounds. | |
2157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2158 | /* end confdefs.h. */ | |
2159 | $4 | |
2160 | int | |
2161 | main () | |
2162 | { | |
2163 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2164 | test_array [0] = 0 | |
953ff289 | 2165 | |
5213506e RW |
2166 | ; |
2167 | return 0; | |
2168 | } | |
2169 | _ACEOF | |
2170 | if ac_fn_c_try_compile "$LINENO"; then : | |
2171 | ac_lo=0 ac_mid=0 | |
2172 | while :; do | |
2173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2174 | /* end confdefs.h. */ | |
2175 | $4 | |
2176 | int | |
2177 | main () | |
2178 | { | |
2179 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2180 | test_array [0] = 0 | |
953ff289 | 2181 | |
5213506e RW |
2182 | ; |
2183 | return 0; | |
2184 | } | |
2185 | _ACEOF | |
2186 | if ac_fn_c_try_compile "$LINENO"; then : | |
2187 | ac_hi=$ac_mid; break | |
2188 | else | |
2189 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2190 | if test $ac_lo -le $ac_mid; then | |
2191 | ac_lo= ac_hi= | |
2192 | break | |
2193 | fi | |
2194 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2195 | fi | |
2196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2197 | done | |
2198 | else | |
2199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2200 | /* end confdefs.h. */ | |
2201 | $4 | |
2202 | int | |
2203 | main () | |
2204 | { | |
2205 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2206 | test_array [0] = 0 | |
953ff289 | 2207 | |
5213506e RW |
2208 | ; |
2209 | return 0; | |
2210 | } | |
2211 | _ACEOF | |
2212 | if ac_fn_c_try_compile "$LINENO"; then : | |
2213 | ac_hi=-1 ac_mid=-1 | |
2214 | while :; do | |
2215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2216 | /* end confdefs.h. */ | |
2217 | $4 | |
2218 | int | |
2219 | main () | |
2220 | { | |
2221 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2222 | test_array [0] = 0 | |
953ff289 | 2223 | |
5213506e RW |
2224 | ; |
2225 | return 0; | |
2226 | } | |
2227 | _ACEOF | |
2228 | if ac_fn_c_try_compile "$LINENO"; then : | |
2229 | ac_lo=$ac_mid; break | |
2230 | else | |
2231 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2232 | if test $ac_mid -le $ac_hi; then | |
2233 | ac_lo= ac_hi= | |
2234 | break | |
2235 | fi | |
2236 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2237 | fi | |
2238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2239 | done | |
2240 | else | |
2241 | ac_lo= ac_hi= | |
2242 | fi | |
2243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2244 | fi | |
2245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2246 | # Binary search between lo and hi bounds. | |
2247 | while test "x$ac_lo" != "x$ac_hi"; do | |
2248 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2250 | /* end confdefs.h. */ | |
2251 | $4 | |
2252 | int | |
2253 | main () | |
2254 | { | |
2255 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2256 | test_array [0] = 0 | |
953ff289 | 2257 | |
5213506e RW |
2258 | ; |
2259 | return 0; | |
2260 | } | |
2261 | _ACEOF | |
2262 | if ac_fn_c_try_compile "$LINENO"; then : | |
2263 | ac_hi=$ac_mid | |
2264 | else | |
2265 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2266 | fi | |
2267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2268 | done | |
2269 | case $ac_lo in #(( | |
2270 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2271 | '') ac_retval=1 ;; | |
2272 | esac | |
2273 | else | |
2274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2275 | /* end confdefs.h. */ | |
2276 | $4 | |
2277 | static long int longval () { return $2; } | |
2278 | static unsigned long int ulongval () { return $2; } | |
2279 | #include <stdio.h> | |
2280 | #include <stdlib.h> | |
2281 | int | |
2282 | main () | |
2283 | { | |
953ff289 | 2284 | |
5213506e RW |
2285 | FILE *f = fopen ("conftest.val", "w"); |
2286 | if (! f) | |
2287 | return 1; | |
2288 | if (($2) < 0) | |
2289 | { | |
2290 | long int i = longval (); | |
2291 | if (i != ($2)) | |
2292 | return 1; | |
2293 | fprintf (f, "%ld", i); | |
2294 | } | |
2295 | else | |
2296 | { | |
2297 | unsigned long int i = ulongval (); | |
2298 | if (i != ($2)) | |
2299 | return 1; | |
2300 | fprintf (f, "%lu", i); | |
2301 | } | |
2302 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2303 | on some platforms. */ | |
2304 | return ferror (f) || fclose (f) != 0; | |
953ff289 | 2305 | |
5213506e RW |
2306 | ; |
2307 | return 0; | |
2308 | } | |
2309 | _ACEOF | |
2310 | if ac_fn_c_try_run "$LINENO"; then : | |
2311 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2312 | else | |
2313 | ac_retval=1 | |
2314 | fi | |
2315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2316 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2317 | rm -f conftest.val | |
953ff289 | 2318 | |
5213506e RW |
2319 | fi |
2320 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2321 | return $ac_retval | |
953ff289 | 2322 | |
5213506e RW |
2323 | } # ac_fn_c_compute_int |
2324 | cat >config.log <<_ACEOF | |
2325 | This file contains any messages produced by compilers while | |
2326 | running configure, to aid debugging if configure makes a mistake. | |
953ff289 | 2327 | |
5213506e RW |
2328 | It was created by GNU OpenMP Runtime Library $as_me 1.0, which was |
2329 | generated by GNU Autoconf 2.64. Invocation command line was | |
953ff289 | 2330 | |
5213506e | 2331 | $ $0 $@ |
953ff289 | 2332 | |
5213506e RW |
2333 | _ACEOF |
2334 | exec 5>>config.log | |
2335 | { | |
2336 | cat <<_ASUNAME | |
2337 | ## --------- ## | |
2338 | ## Platform. ## | |
2339 | ## --------- ## | |
953ff289 | 2340 | |
5213506e RW |
2341 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2342 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2343 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2344 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2345 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
953ff289 | 2346 | |
5213506e RW |
2347 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2348 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
953ff289 | 2349 | |
5213506e RW |
2350 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2351 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2352 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2353 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2354 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2355 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2356 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
953ff289 | 2357 | |
5213506e | 2358 | _ASUNAME |
953ff289 | 2359 | |
5213506e RW |
2360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2361 | for as_dir in $PATH | |
2362 | do | |
2363 | IFS=$as_save_IFS | |
2364 | test -z "$as_dir" && as_dir=. | |
2365 | $as_echo "PATH: $as_dir" | |
2366 | done | |
2367 | IFS=$as_save_IFS | |
953ff289 | 2368 | |
5213506e | 2369 | } >&5 |
953ff289 | 2370 | |
5213506e | 2371 | cat >&5 <<_ACEOF |
18c04407 RW |
2372 | |
2373 | ||
5213506e RW |
2374 | ## ----------- ## |
2375 | ## Core tests. ## | |
2376 | ## ----------- ## | |
18c04407 | 2377 | |
5213506e | 2378 | _ACEOF |
953ff289 DN |
2379 | |
2380 | ||
5213506e RW |
2381 | # Keep a trace of the command line. |
2382 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2383 | # Strip out --silent because we don't want to record it for future runs. | |
2384 | # Also quote any args containing shell meta-characters. | |
2385 | # Make two passes to allow for proper duplicate-argument suppression. | |
2386 | ac_configure_args= | |
2387 | ac_configure_args0= | |
2388 | ac_configure_args1= | |
2389 | ac_must_keep_next=false | |
2390 | for ac_pass in 1 2 | |
2391 | do | |
2392 | for ac_arg | |
2393 | do | |
2394 | case $ac_arg in | |
2395 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2396 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2397 | | -silent | --silent | --silen | --sile | --sil) | |
2398 | continue ;; | |
2399 | *\'*) | |
2400 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2401 | esac | |
2402 | case $ac_pass in | |
2403 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2404 | 2) | |
2405 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2406 | if test $ac_must_keep_next = true; then | |
2407 | ac_must_keep_next=false # Got value, back to normal. | |
2408 | else | |
2409 | case $ac_arg in | |
2410 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2411 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2412 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2413 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2414 | case "$ac_configure_args0 " in | |
2415 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2416 | esac | |
2417 | ;; | |
2418 | -* ) ac_must_keep_next=true ;; | |
2419 | esac | |
2420 | fi | |
2421 | as_fn_append ac_configure_args " '$ac_arg'" | |
2422 | ;; | |
2423 | esac | |
2424 | done | |
2425 | done | |
2426 | { ac_configure_args0=; unset ac_configure_args0;} | |
2427 | { ac_configure_args1=; unset ac_configure_args1;} | |
953ff289 | 2428 | |
5213506e RW |
2429 | # When interrupted or exit'd, cleanup temporary files, and complete |
2430 | # config.log. We remove comments because anyway the quotes in there | |
2431 | # would cause problems or look ugly. | |
2432 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2433 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2434 | trap 'exit_status=$? | |
2435 | # Save into config.log some information that might help in debugging. | |
2436 | { | |
2437 | echo | |
953ff289 | 2438 | |
5213506e RW |
2439 | cat <<\_ASBOX |
2440 | ## ---------------- ## | |
2441 | ## Cache variables. ## | |
2442 | ## ---------------- ## | |
2443 | _ASBOX | |
2444 | echo | |
2445 | # The following way of writing the cache mishandles newlines in values, | |
2446 | ( | |
2447 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2448 | eval ac_val=\$$ac_var | |
2449 | case $ac_val in #( | |
2450 | *${as_nl}*) | |
2451 | case $ac_var in #( | |
2452 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2453 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2454 | esac | |
2455 | case $ac_var in #( | |
2456 | _ | IFS | as_nl) ;; #( | |
2457 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2458 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2459 | esac ;; | |
2460 | esac | |
2461 | done | |
2462 | (set) 2>&1 | | |
2463 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2464 | *${as_nl}ac_space=\ *) | |
2465 | sed -n \ | |
2466 | "s/'\''/'\''\\\\'\'''\''/g; | |
2467 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2468 | ;; #( | |
2469 | *) | |
2470 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2471 | ;; | |
2472 | esac | | |
2473 | sort | |
2474 | ) | |
2475 | echo | |
953ff289 | 2476 | |
5213506e RW |
2477 | cat <<\_ASBOX |
2478 | ## ----------------- ## | |
2479 | ## Output variables. ## | |
2480 | ## ----------------- ## | |
2481 | _ASBOX | |
2482 | echo | |
2483 | for ac_var in $ac_subst_vars | |
2484 | do | |
2485 | eval ac_val=\$$ac_var | |
2486 | case $ac_val in | |
2487 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2488 | esac | |
2489 | $as_echo "$ac_var='\''$ac_val'\''" | |
2490 | done | sort | |
2491 | echo | |
953ff289 | 2492 | |
5213506e RW |
2493 | if test -n "$ac_subst_files"; then |
2494 | cat <<\_ASBOX | |
2495 | ## ------------------- ## | |
2496 | ## File substitutions. ## | |
2497 | ## ------------------- ## | |
2498 | _ASBOX | |
2499 | echo | |
2500 | for ac_var in $ac_subst_files | |
2501 | do | |
2502 | eval ac_val=\$$ac_var | |
2503 | case $ac_val in | |
2504 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2505 | esac | |
2506 | $as_echo "$ac_var='\''$ac_val'\''" | |
2507 | done | sort | |
2508 | echo | |
2509 | fi | |
953ff289 | 2510 | |
5213506e RW |
2511 | if test -s confdefs.h; then |
2512 | cat <<\_ASBOX | |
2513 | ## ----------- ## | |
2514 | ## confdefs.h. ## | |
2515 | ## ----------- ## | |
2516 | _ASBOX | |
2517 | echo | |
2518 | cat confdefs.h | |
2519 | echo | |
2520 | fi | |
2521 | test "$ac_signal" != 0 && | |
2522 | $as_echo "$as_me: caught signal $ac_signal" | |
2523 | $as_echo "$as_me: exit $exit_status" | |
2524 | } >&5 | |
2525 | rm -f core *.core core.conftest.* && | |
2526 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2527 | exit $exit_status | |
2528 | ' 0 | |
2529 | for ac_signal in 1 2 13 15; do | |
2530 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2531 | done | |
2532 | ac_signal=0 | |
953ff289 | 2533 | |
5213506e RW |
2534 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2535 | rm -f -r conftest* confdefs.h | |
2536 | ||
2537 | $as_echo "/* confdefs.h */" > confdefs.h | |
2538 | ||
2539 | # Predefined preprocessor variables. | |
2540 | ||
2541 | cat >>confdefs.h <<_ACEOF | |
2542 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2543 | _ACEOF | |
2544 | ||
2545 | cat >>confdefs.h <<_ACEOF | |
2546 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2547 | _ACEOF | |
2548 | ||
2549 | cat >>confdefs.h <<_ACEOF | |
2550 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2551 | _ACEOF | |
2552 | ||
2553 | cat >>confdefs.h <<_ACEOF | |
2554 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2555 | _ACEOF | |
2556 | ||
2557 | cat >>confdefs.h <<_ACEOF | |
2558 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2559 | _ACEOF | |
2560 | ||
2561 | cat >>confdefs.h <<_ACEOF | |
2562 | #define PACKAGE_URL "$PACKAGE_URL" | |
2563 | _ACEOF | |
2564 | ||
2565 | ||
2566 | # Let the site file select an alternate cache file if it wants to. | |
2567 | # Prefer an explicitly selected file to automatically selected ones. | |
2568 | ac_site_file1=NONE | |
2569 | ac_site_file2=NONE | |
2570 | if test -n "$CONFIG_SITE"; then | |
2571 | ac_site_file1=$CONFIG_SITE | |
2572 | elif test "x$prefix" != xNONE; then | |
2573 | ac_site_file1=$prefix/share/config.site | |
2574 | ac_site_file2=$prefix/etc/config.site | |
2575 | else | |
2576 | ac_site_file1=$ac_default_prefix/share/config.site | |
2577 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2578 | fi | |
2579 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2580 | do | |
2581 | test "x$ac_site_file" = xNONE && continue | |
2582 | if test -r "$ac_site_file"; then | |
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2584 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2585 | sed 's/^/| /' "$ac_site_file" >&5 | |
2586 | . "$ac_site_file" | |
2587 | fi | |
2588 | done | |
2589 | ||
2590 | if test -r "$cache_file"; then | |
2591 | # Some versions of bash will fail to source /dev/null (special | |
2592 | # files actually), so we avoid doing that. | |
2593 | if test -f "$cache_file"; then | |
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2595 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2596 | case $cache_file in | |
2597 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2598 | *) . "./$cache_file";; | |
2599 | esac | |
2600 | fi | |
2601 | else | |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2603 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2604 | >$cache_file | |
2605 | fi | |
2606 | ||
2607 | # Check that the precious variables saved in the cache have kept the same | |
2608 | # value. | |
2609 | ac_cache_corrupted=false | |
2610 | for ac_var in $ac_precious_vars; do | |
2611 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2612 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2613 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2614 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2615 | case $ac_old_set,$ac_new_set in | |
2616 | set,) | |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2618 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2619 | ac_cache_corrupted=: ;; | |
2620 | ,set) | |
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2622 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2623 | ac_cache_corrupted=: ;; | |
2624 | ,);; | |
2625 | *) | |
2626 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2627 | # differences in whitespace do not lead to failure. | |
2628 | ac_old_val_w=`echo x $ac_old_val` | |
2629 | ac_new_val_w=`echo x $ac_new_val` | |
2630 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2632 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2633 | ac_cache_corrupted=: | |
2634 | else | |
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2636 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2637 | eval $ac_var=\$ac_old_val | |
2638 | fi | |
2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2640 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2642 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2643 | fi;; | |
2644 | esac | |
2645 | # Pass precious variables to config.status. | |
2646 | if test "$ac_new_set" = set; then | |
2647 | case $ac_new_val in | |
2648 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2649 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2650 | esac | |
2651 | case " $ac_configure_args " in | |
2652 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2653 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2654 | esac | |
2655 | fi | |
2656 | done | |
2657 | if $ac_cache_corrupted; then | |
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2659 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2661 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2662 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2663 | fi | |
2664 | ## -------------------- ## | |
2665 | ## Main body of script. ## | |
2666 | ## -------------------- ## | |
2667 | ||
2668 | ac_ext=c | |
2669 | ac_cpp='$CPP $CPPFLAGS' | |
2670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2673 | ||
2674 | ||
2675 | ||
2676 | ||
2677 | ||
2678 | ac_config_headers="$ac_config_headers config.h" | |
2679 | ||
2680 | ||
2681 | # ------- | |
2682 | # Options | |
2683 | # ------- | |
2684 | ||
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 | |
2686 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2687 | # Check whether --enable-version-specific-runtime-libs was given. | |
2688 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2689 | enableval=$enable_version_specific_runtime_libs; | |
953ff289 DN |
2690 | case "$enableval" in |
2691 | yes|no) ;; | |
5213506e | 2692 | *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; |
953ff289 DN |
2693 | esac |
2694 | ||
2695 | else | |
2696 | enable_version_specific_runtime_libs=no | |
5213506e RW |
2697 | fi |
2698 | ||
953ff289 | 2699 | |
5213506e RW |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 |
2701 | $as_echo "$enable_version_specific_runtime_libs" >&6; } | |
953ff289 | 2702 | |
627ab4b8 TT |
2703 | # We would like our source tree to be readonly. However when releases or |
2704 | # pre-releases are generated, the flex/bison generated files as well as the | |
2705 | # various formats of manuals need to be included along with the rest of the | |
2706 | # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
2707 | # just that. | |
5213506e RW |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 |
2709 | $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } | |
2710 | # Check whether --enable-generated-files-in-srcdir was given. | |
2711 | if test "${enable_generated_files_in_srcdir+set}" = set; then : | |
2712 | enableval=$enable_generated_files_in_srcdir; | |
627ab4b8 TT |
2713 | case "$enableval" in |
2714 | yes|no) ;; | |
5213506e | 2715 | *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; |
627ab4b8 TT |
2716 | esac |
2717 | ||
2718 | else | |
2719 | enable_generated_files_in_srcdir=no | |
5213506e | 2720 | fi |
627ab4b8 TT |
2721 | |
2722 | ||
5213506e RW |
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 |
2724 | $as_echo "$enable_generated_files_in_srcdir" >&6; } | |
2725 | if test "$enable_generated_files_in_srcdir" = yes; then | |
627ab4b8 TT |
2726 | GENINSRC_TRUE= |
2727 | GENINSRC_FALSE='#' | |
2728 | else | |
2729 | GENINSRC_TRUE='#' | |
2730 | GENINSRC_FALSE= | |
2731 | fi | |
2732 | ||
2733 | ||
2734 | ||
953ff289 DN |
2735 | # ------- |
2736 | # ------- | |
2737 | ||
2738 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2739 | # | |
2740 | # You will slowly go insane if you do not grok the following fact: when | |
2741 | # building this library, the top-level /target/ becomes the library's /host/. | |
2742 | # | |
2743 | # configure then causes --target to default to --host, exactly like any | |
2744 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2745 | # always be the same. This makes sense both for native and cross compilers | |
2746 | # just think about it for a little while. :-) | |
2747 | # | |
2748 | # Also, if this library is being configured as part of a cross compiler, the | |
2749 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2750 | # | |
2751 | # Do not delete or change the following two lines. For why, see | |
2752 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
2753 | ac_aux_dir= | |
5213506e RW |
2754 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2755 | for ac_t in install-sh install.sh shtool; do | |
2756 | if test -f "$ac_dir/$ac_t"; then | |
2757 | ac_aux_dir=$ac_dir | |
2758 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2759 | break 2 | |
2760 | fi | |
2761 | done | |
953ff289 DN |
2762 | done |
2763 | if test -z "$ac_aux_dir"; then | |
5213506e | 2764 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
953ff289 | 2765 | fi |
5213506e RW |
2766 | |
2767 | # These three variables are undocumented and unsupported, | |
2768 | # and are intended to be withdrawn in a future Autoconf release. | |
2769 | # They can cause serious problems if a builder's source tree is in a directory | |
2770 | # whose full name contains unusual characters. | |
2771 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2772 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2773 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2774 | ||
953ff289 DN |
2775 | |
2776 | # Make sure we can run config.sub. | |
5213506e RW |
2777 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2778 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2779 | ||
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2781 | $as_echo_n "checking build system type... " >&6; } | |
2782 | if test "${ac_cv_build+set}" = set; then : | |
2783 | $as_echo_n "(cached) " >&6 | |
2784 | else | |
2785 | ac_build_alias=$build_alias | |
2786 | test "x$ac_build_alias" = x && | |
2787 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2788 | test "x$ac_build_alias" = x && | |
2789 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2790 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2791 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2792 | ||
2793 | fi | |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2795 | $as_echo "$ac_cv_build" >&6; } | |
2796 | case $ac_cv_build in | |
2797 | *-*-*) ;; | |
2798 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2799 | esac | |
953ff289 | 2800 | build=$ac_cv_build |
5213506e RW |
2801 | ac_save_IFS=$IFS; IFS='-' |
2802 | set x $ac_cv_build | |
2803 | shift | |
2804 | build_cpu=$1 | |
2805 | build_vendor=$2 | |
2806 | shift; shift | |
2807 | # Remember, the first character of IFS is used to create $*, | |
2808 | # except with old shells: | |
2809 | build_os=$* | |
2810 | IFS=$ac_save_IFS | |
2811 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2812 | |
2813 | ||
5213506e RW |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2815 | $as_echo_n "checking host system type... " >&6; } | |
2816 | if test "${ac_cv_host+set}" = set; then : | |
2817 | $as_echo_n "(cached) " >&6 | |
953ff289 | 2818 | else |
5213506e RW |
2819 | if test "x$host_alias" = x; then |
2820 | ac_cv_host=$ac_cv_build | |
2821 | else | |
2822 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2823 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2824 | fi | |
953ff289 DN |
2825 | |
2826 | fi | |
5213506e RW |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2828 | $as_echo "$ac_cv_host" >&6; } | |
2829 | case $ac_cv_host in | |
2830 | *-*-*) ;; | |
2831 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2832 | esac | |
953ff289 | 2833 | host=$ac_cv_host |
5213506e RW |
2834 | ac_save_IFS=$IFS; IFS='-' |
2835 | set x $ac_cv_host | |
2836 | shift | |
2837 | host_cpu=$1 | |
2838 | host_vendor=$2 | |
2839 | shift; shift | |
2840 | # Remember, the first character of IFS is used to create $*, | |
2841 | # except with old shells: | |
2842 | host_os=$* | |
2843 | IFS=$ac_save_IFS | |
2844 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2845 | |
2846 | ||
5213506e RW |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2848 | $as_echo_n "checking target system type... " >&6; } | |
2849 | if test "${ac_cv_target+set}" = set; then : | |
2850 | $as_echo_n "(cached) " >&6 | |
2851 | else | |
2852 | if test "x$target_alias" = x; then | |
2853 | ac_cv_target=$ac_cv_host | |
953ff289 | 2854 | else |
5213506e RW |
2855 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2856 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2857 | fi | |
953ff289 DN |
2858 | |
2859 | fi | |
5213506e RW |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2861 | $as_echo "$ac_cv_target" >&6; } | |
2862 | case $ac_cv_target in | |
2863 | *-*-*) ;; | |
2864 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2865 | esac | |
953ff289 | 2866 | target=$ac_cv_target |
5213506e RW |
2867 | ac_save_IFS=$IFS; IFS='-' |
2868 | set x $ac_cv_target | |
2869 | shift | |
2870 | target_cpu=$1 | |
2871 | target_vendor=$2 | |
2872 | shift; shift | |
2873 | # Remember, the first character of IFS is used to create $*, | |
2874 | # except with old shells: | |
2875 | target_os=$* | |
2876 | IFS=$ac_save_IFS | |
2877 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2878 | |
2879 | ||
2880 | # The aliases save the names the user supplied, while $host etc. | |
2881 | # will get canonicalized. | |
2882 | test -n "$target_alias" && | |
2883 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2884 | NONENONEs,x,x, && | |
2885 | program_prefix=${target_alias}- | |
5213506e | 2886 | |
953ff289 DN |
2887 | target_alias=${target_alias-$host_alias} |
2888 | ||
2889 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
2890 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2891 | # 1.9.0: minimum required version | |
2892 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
2893 | # of other PACKAGE_* variables will, however, and there's nothing | |
2894 | # we can do about that; they come from AC_INIT). | |
2895 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
2896 | # file in the top srcdir, etc, etc), so stop complaining. | |
953ff289 DN |
2897 | # -Wall: turns on all automake warnings... |
2898 | # -Wno-portability: ...except this one, since GNU make is required. | |
2899 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
5213506e RW |
2900 | am__api_version='1.11' |
2901 | ||
953ff289 DN |
2902 | # Find a good install program. We prefer a C program (faster), |
2903 | # so one script is as good as another. But avoid the broken or | |
2904 | # incompatible versions: | |
2905 | # SysV /etc/install, /usr/sbin/install | |
2906 | # SunOS /usr/etc/install | |
2907 | # IRIX /sbin/install | |
2908 | # AIX /bin/install | |
2909 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2910 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2911 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2912 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2913 | # OS/2's system install, which has a completely different semantic | |
2914 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 2915 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2917 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
953ff289 | 2918 | if test -z "$INSTALL"; then |
5213506e RW |
2919 | if test "${ac_cv_path_install+set}" = set; then : |
2920 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
2921 | else |
2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2923 | for as_dir in $PATH | |
2924 | do | |
2925 | IFS=$as_save_IFS | |
2926 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2927 | # Account for people who put trailing slashes in PATH elements. |
2928 | case $as_dir/ in #(( | |
2929 | ./ | .// | /[cC]/* | \ | |
953ff289 | 2930 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2931 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
953ff289 DN |
2932 | /usr/ucb/* ) ;; |
2933 | *) | |
2934 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2935 | # Don't use installbsd from OSF since it installs stuff as root | |
2936 | # by default. | |
2937 | for ac_prog in ginstall scoinst install; do | |
2938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2939 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
953ff289 DN |
2940 | if test $ac_prog = install && |
2941 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2942 | # AIX install. It has an incompatible calling convention. | |
2943 | : | |
2944 | elif test $ac_prog = install && | |
2945 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2946 | # program-specific install script used by HP pwplus--don't use. | |
2947 | : | |
2948 | else | |
38d24731 RW |
2949 | rm -rf conftest.one conftest.two conftest.dir |
2950 | echo one > conftest.one | |
2951 | echo two > conftest.two | |
2952 | mkdir conftest.dir | |
2953 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2954 | test -s conftest.one && test -s conftest.two && | |
2955 | test -s conftest.dir/conftest.one && | |
2956 | test -s conftest.dir/conftest.two | |
2957 | then | |
2958 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2959 | break 3 | |
2960 | fi | |
953ff289 DN |
2961 | fi |
2962 | fi | |
2963 | done | |
2964 | done | |
2965 | ;; | |
2966 | esac | |
5213506e RW |
2967 | |
2968 | done | |
2969 | IFS=$as_save_IFS | |
953ff289 | 2970 | |
38d24731 | 2971 | rm -rf conftest.one conftest.two conftest.dir |
953ff289 DN |
2972 | |
2973 | fi | |
2974 | if test "${ac_cv_path_install+set}" = set; then | |
2975 | INSTALL=$ac_cv_path_install | |
2976 | else | |
38d24731 RW |
2977 | # As a last resort, use the slow shell script. Don't cache a |
2978 | # value for INSTALL within a source directory, because that will | |
953ff289 | 2979 | # break other packages using the cache if that directory is |
38d24731 | 2980 | # removed, or if the value is a relative name. |
953ff289 DN |
2981 | INSTALL=$ac_install_sh |
2982 | fi | |
2983 | fi | |
5213506e RW |
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2985 | $as_echo "$INSTALL" >&6; } | |
953ff289 DN |
2986 | |
2987 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2988 | # It thinks the first close brace ends the variable substitution. | |
2989 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2990 | ||
2991 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2992 | ||
2993 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2994 | ||
5213506e RW |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2996 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
953ff289 DN |
2997 | # Just in case |
2998 | sleep 1 | |
2999 | echo timestamp > conftest.file | |
5213506e RW |
3000 | # Reject unsafe characters in $srcdir or the absolute working directory |
3001 | # name. Accept space and tab only in the latter. | |
3002 | am_lf=' | |
3003 | ' | |
3004 | case `pwd` in | |
3005 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3006 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3007 | esac | |
3008 | case $srcdir in | |
3009 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3010 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3011 | esac | |
3012 | ||
953ff289 DN |
3013 | # Do `set' in a subshell so we don't clobber the current shell's |
3014 | # arguments. Must try -L first in case configure is actually a | |
3015 | # symlink; some systems play weird games with the mod time of symlinks | |
3016 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3017 | # directory). | |
3018 | if ( | |
5213506e | 3019 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
953ff289 DN |
3020 | if test "$*" = "X"; then |
3021 | # -L didn't work. | |
5213506e | 3022 | set X `ls -t "$srcdir/configure" conftest.file` |
953ff289 DN |
3023 | fi |
3024 | rm -f conftest.file | |
3025 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3026 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3027 | ||
3028 | # If neither matched, then we have a broken ls. This can happen | |
3029 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3030 | # broken ls alias from the environment. This has actually | |
3031 | # happened. Such a system could not be considered "sane". | |
5213506e RW |
3032 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3033 | alias in your environment" "$LINENO" 5 | |
953ff289 DN |
3034 | fi |
3035 | ||
3036 | test "$2" = conftest.file | |
3037 | ) | |
3038 | then | |
3039 | # Ok. | |
3040 | : | |
3041 | else | |
5213506e RW |
3042 | as_fn_error "newly created file is older than distributed files! |
3043 | Check your system clock" "$LINENO" 5 | |
953ff289 | 3044 | fi |
5213506e RW |
3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3046 | $as_echo "yes" >&6; } | |
953ff289 | 3047 | test "$program_prefix" != NONE && |
5213506e | 3048 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
953ff289 DN |
3049 | # Use a double $ so make ignores it. |
3050 | test "$program_suffix" != NONE && | |
5213506e RW |
3051 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3052 | # Double any \ or $. | |
953ff289 | 3053 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
3054 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3055 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
953ff289 DN |
3056 | |
3057 | # expand $ac_aux_dir to an absolute path | |
3058 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3059 | ||
5213506e RW |
3060 | if test x"${MISSING+set}" != xset; then |
3061 | case $am_aux_dir in | |
3062 | *\ * | *\ *) | |
3063 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3064 | *) | |
3065 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3066 | esac | |
3067 | fi | |
953ff289 DN |
3068 | # Use eval to expand $SHELL |
3069 | if eval "$MISSING --run true"; then | |
3070 | am_missing_run="$MISSING --run " | |
3071 | else | |
3072 | am_missing_run= | |
5213506e RW |
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3074 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3075 | fi | |
3076 | ||
3077 | if test x"${install_sh}" != xset; then | |
3078 | case $am_aux_dir in | |
3079 | *\ * | *\ *) | |
3080 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3081 | *) | |
3082 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3083 | esac | |
3084 | fi | |
3085 | ||
3086 | # Installed binaries are usually stripped using `strip' when the user | |
3087 | # run `make install-strip'. However `strip' might not be the right | |
3088 | # tool to use in cross-compilation environments, therefore Automake | |
3089 | # will honor the `STRIP' environment variable to overrule this program. | |
3090 | if test "$cross_compiling" != no; then | |
3091 | if test -n "$ac_tool_prefix"; then | |
3092 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3093 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3095 | $as_echo_n "checking for $ac_word... " >&6; } | |
3096 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3097 | $as_echo_n "(cached) " >&6 | |
3098 | else | |
3099 | if test -n "$STRIP"; then | |
3100 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3101 | else | |
3102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3103 | for as_dir in $PATH | |
3104 | do | |
3105 | IFS=$as_save_IFS | |
3106 | test -z "$as_dir" && as_dir=. | |
3107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3108 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3109 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3111 | break 2 | |
3112 | fi | |
3113 | done | |
3114 | done | |
3115 | IFS=$as_save_IFS | |
3116 | ||
3117 | fi | |
3118 | fi | |
3119 | STRIP=$ac_cv_prog_STRIP | |
3120 | if test -n "$STRIP"; then | |
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3122 | $as_echo "$STRIP" >&6; } | |
3123 | else | |
3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3125 | $as_echo "no" >&6; } | |
3126 | fi | |
3127 | ||
3128 | ||
3129 | fi | |
3130 | if test -z "$ac_cv_prog_STRIP"; then | |
3131 | ac_ct_STRIP=$STRIP | |
3132 | # Extract the first word of "strip", so it can be a program name with args. | |
3133 | set dummy 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_ac_ct_STRIP+set}" = set; then : | |
3137 | $as_echo_n "(cached) " >&6 | |
3138 | else | |
3139 | if test -n "$ac_ct_STRIP"; then | |
3140 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
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=. | |
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_ac_ct_STRIP="strip" | |
3150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3151 | break 2 | |
3152 | fi | |
3153 | done | |
3154 | done | |
3155 | IFS=$as_save_IFS | |
3156 | ||
3157 | fi | |
3158 | fi | |
3159 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3160 | if test -n "$ac_ct_STRIP"; then | |
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3162 | $as_echo "$ac_ct_STRIP" >&6; } | |
3163 | else | |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3165 | $as_echo "no" >&6; } | |
3166 | fi | |
3167 | ||
3168 | if test "x$ac_ct_STRIP" = x; then | |
3169 | STRIP=":" | |
3170 | else | |
3171 | case $cross_compiling:$ac_tool_warned in | |
3172 | yes:) | |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3174 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3175 | ac_tool_warned=yes ;; | |
3176 | esac | |
3177 | STRIP=$ac_ct_STRIP | |
3178 | fi | |
3179 | else | |
3180 | STRIP="$ac_cv_prog_STRIP" | |
3181 | fi | |
3182 | ||
3183 | fi | |
3184 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3185 | ||
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3187 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3188 | if test -z "$MKDIR_P"; then | |
3189 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3190 | $as_echo_n "(cached) " >&6 | |
3191 | else | |
3192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3193 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3194 | do | |
3195 | IFS=$as_save_IFS | |
3196 | test -z "$as_dir" && as_dir=. | |
3197 | for ac_prog in mkdir gmkdir; do | |
3198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3199 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3200 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3201 | 'mkdir (GNU coreutils) '* | \ | |
3202 | 'mkdir (coreutils) '* | \ | |
3203 | 'mkdir (fileutils) '4.1*) | |
3204 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3205 | break 3;; | |
3206 | esac | |
3207 | done | |
3208 | done | |
953ff289 | 3209 | done |
5213506e RW |
3210 | IFS=$as_save_IFS |
3211 | ||
3212 | fi | |
3213 | ||
3214 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3215 | MKDIR_P="$ac_cv_path_mkdir -p" | |
953ff289 | 3216 | else |
5213506e RW |
3217 | # As a last resort, use the slow shell script. Don't cache a |
3218 | # value for MKDIR_P within a source directory, because that will | |
3219 | # break other packages using the cache if that directory is | |
3220 | # removed, or if the value is a relative name. | |
3221 | test -d ./--version && rmdir ./--version | |
3222 | MKDIR_P="$ac_install_sh -d" | |
953ff289 DN |
3223 | fi |
3224 | fi | |
5213506e RW |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3226 | $as_echo "$MKDIR_P" >&6; } | |
3227 | ||
3228 | mkdir_p="$MKDIR_P" | |
3229 | case $mkdir_p in | |
3230 | [\\/$]* | ?:[\\/]*) ;; | |
3231 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3232 | esac | |
953ff289 DN |
3233 | |
3234 | for ac_prog in gawk mawk nawk awk | |
3235 | do | |
3236 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3237 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3239 | $as_echo_n "checking for $ac_word... " >&6; } | |
3240 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3241 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
3242 | else |
3243 | if test -n "$AWK"; then | |
3244 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3245 | else | |
3246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3247 | for as_dir in $PATH | |
3248 | do | |
3249 | IFS=$as_save_IFS | |
3250 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3251 | for ac_exec_ext in '' $ac_executable_extensions; do |
3252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 3253 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 3254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3255 | break 2 |
3256 | fi | |
3257 | done | |
5213506e RW |
3258 | done |
3259 | IFS=$as_save_IFS | |
953ff289 DN |
3260 | |
3261 | fi | |
3262 | fi | |
3263 | AWK=$ac_cv_prog_AWK | |
3264 | if test -n "$AWK"; then | |
5213506e RW |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3266 | $as_echo "$AWK" >&6; } | |
953ff289 | 3267 | else |
5213506e RW |
3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3269 | $as_echo "no" >&6; } | |
953ff289 DN |
3270 | fi |
3271 | ||
5213506e | 3272 | |
953ff289 DN |
3273 | test -n "$AWK" && break |
3274 | done | |
3275 | ||
5213506e RW |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3277 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3278 | set x ${MAKE-make} | |
3279 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3280 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3281 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
3282 | else |
3283 | cat >conftest.make <<\_ACEOF | |
5213506e | 3284 | SHELL = /bin/sh |
953ff289 | 3285 | all: |
5213506e | 3286 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
953ff289 DN |
3287 | _ACEOF |
3288 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5213506e RW |
3289 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3290 | *@@@%%%=?*=@@@%%%*) | |
3291 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3292 | *) | |
3293 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3294 | esac | |
953ff289 DN |
3295 | rm -f conftest.make |
3296 | fi | |
5213506e RW |
3297 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3299 | $as_echo "yes" >&6; } | |
953ff289 DN |
3300 | SET_MAKE= |
3301 | else | |
5213506e RW |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3303 | $as_echo "no" >&6; } | |
953ff289 DN |
3304 | SET_MAKE="MAKE=${MAKE-make}" |
3305 | fi | |
3306 | ||
3307 | rm -rf .tst 2>/dev/null | |
3308 | mkdir .tst 2>/dev/null | |
3309 | if test -d .tst; then | |
3310 | am__leading_dot=. | |
3311 | else | |
3312 | am__leading_dot=_ | |
3313 | fi | |
3314 | rmdir .tst 2>/dev/null | |
3315 | ||
5213506e RW |
3316 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3317 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3318 | # is not polluted with repeated "-I." | |
3319 | am__isrc=' -I$(srcdir)' | |
3320 | # test to see if srcdir already configured | |
3321 | if test -f $srcdir/config.status; then | |
3322 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3323 | fi | |
953ff289 DN |
3324 | fi |
3325 | ||
3326 | # test whether we have cygpath | |
3327 | if test -z "$CYGPATH_W"; then | |
3328 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3329 | CYGPATH_W='cygpath -w' | |
3330 | else | |
3331 | CYGPATH_W=echo | |
3332 | fi | |
3333 | fi | |
3334 | ||
3335 | ||
3336 | # Define the identity of the package. | |
3337 | PACKAGE='libgomp' | |
3338 | VERSION='1.0' | |
3339 | ||
3340 | ||
3341 | cat >>confdefs.h <<_ACEOF | |
3342 | #define PACKAGE "$PACKAGE" | |
3343 | _ACEOF | |
3344 | ||
3345 | ||
3346 | cat >>confdefs.h <<_ACEOF | |
3347 | #define VERSION "$VERSION" | |
3348 | _ACEOF | |
3349 | ||
3350 | # Some tools Automake needs. | |
3351 | ||
3352 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3353 | ||
3354 | ||
3355 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3356 | ||
3357 | ||
3358 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3359 | ||
3360 | ||
3361 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3362 | ||
3363 | ||
3364 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3365 | ||
5213506e RW |
3366 | # We need awk for the "check" target. The system "awk" is bad on |
3367 | # some platforms. | |
3368 | # Always define AMTAR for backward compatibility. | |
953ff289 DN |
3369 | |
3370 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3371 | ||
3372 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3373 | ||
3374 | ||
3375 | ||
3376 | ||
3377 | ||
3378 | # Default to --enable-multilib | |
5213506e RW |
3379 | # Check whether --enable-multilib was given. |
3380 | if test "${enable_multilib+set}" = set; then : | |
3381 | enableval=$enable_multilib; case "$enableval" in | |
953ff289 DN |
3382 | yes) multilib=yes ;; |
3383 | no) multilib=no ;; | |
5213506e | 3384 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; |
953ff289 DN |
3385 | esac |
3386 | else | |
3387 | multilib=yes | |
5213506e RW |
3388 | fi |
3389 | ||
953ff289 DN |
3390 | |
3391 | # We may get other options which we leave undocumented: | |
3392 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3393 | # See config-ml.in if you want the gory details. | |
3394 | ||
3395 | if test "$srcdir" = "."; then | |
3396 | if test "$with_target_subdir" != "."; then | |
3397 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3398 | else | |
3399 | multi_basedir="$srcdir/$with_multisrctop.." | |
3400 | fi | |
3401 | else | |
3402 | multi_basedir="$srcdir/.." | |
3403 | fi | |
3404 | ||
3405 | ||
5b043f08 GK |
3406 | # Even if the default multilib is not a cross compilation, |
3407 | # it may be that some of the other multilibs are. | |
3408 | if test $cross_compiling = no && test $multilib = yes \ | |
3409 | && test "x${with_multisubdir}" != x ; then | |
3410 | cross_compiling=maybe | |
3411 | fi | |
3412 | ||
5213506e | 3413 | ac_config_commands="$ac_config_commands default-1" |
953ff289 DN |
3414 | |
3415 | ||
3416 | # Calculate toolexeclibdir | |
3417 | # Also toolexecdir, though it's only used in toolexeclibdir | |
3418 | case ${enable_version_specific_runtime_libs} in | |
3419 | yes) | |
3420 | # Need the gcc compiler version to know where to install libraries | |
3421 | # and header files if --enable-version-specific-runtime-libs option | |
3422 | # is selected. | |
3423 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
3424 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
3425 | ;; | |
3426 | no) | |
3427 | if test -n "$with_cross_host" && | |
3428 | test x"$with_cross_host" != x"no"; then | |
3429 | # Install a library built with a cross compiler in tooldir, not libdir. | |
3430 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
3431 | toolexeclibdir='$(toolexecdir)/lib' | |
3432 | else | |
3433 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
3434 | toolexeclibdir='$(libdir)' | |
3435 | fi | |
3436 | multi_os_directory=`$CC -print-multi-os-directory` | |
3437 | case $multi_os_directory in | |
3438 | .) ;; # Avoid trailing /. | |
3439 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
3440 | esac | |
3441 | ;; | |
3442 | esac | |
3443 | ||
3444 | ||
3445 | ||
3446 | # Check the compiler. | |
3447 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
3448 | # We must force CC to /not/ be precious variables; otherwise | |
3449 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
3450 | # As a side effect, we have to subst CFLAGS ourselves. | |
3451 | ||
3452 | ||
3453 | ||
3454 | ac_ext=c | |
3455 | ac_cpp='$CPP $CPPFLAGS' | |
3456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3459 | if test -n "$ac_tool_prefix"; then | |
3460 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3461 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3463 | $as_echo_n "checking for $ac_word... " >&6; } | |
3464 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3465 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
3466 | else |
3467 | if test -n "$CC"; then | |
3468 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3469 | else | |
3470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3471 | for as_dir in $PATH | |
3472 | do | |
3473 | IFS=$as_save_IFS | |
3474 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3475 | for ac_exec_ext in '' $ac_executable_extensions; do |
3476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 3477 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3479 | break 2 |
3480 | fi | |
3481 | done | |
5213506e RW |
3482 | done |
3483 | IFS=$as_save_IFS | |
953ff289 DN |
3484 | |
3485 | fi | |
3486 | fi | |
3487 | CC=$ac_cv_prog_CC | |
3488 | if test -n "$CC"; then | |
5213506e RW |
3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3490 | $as_echo "$CC" >&6; } | |
953ff289 | 3491 | else |
5213506e RW |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3493 | $as_echo "no" >&6; } | |
953ff289 DN |
3494 | fi |
3495 | ||
5213506e | 3496 | |
953ff289 DN |
3497 | fi |
3498 | if test -z "$ac_cv_prog_CC"; then | |
3499 | ac_ct_CC=$CC | |
3500 | # Extract the first word of "gcc", so it can be a program name with args. | |
3501 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3503 | $as_echo_n "checking for $ac_word... " >&6; } | |
3504 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3505 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
3506 | else |
3507 | if test -n "$ac_ct_CC"; then | |
3508 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3509 | else | |
3510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3511 | for as_dir in $PATH | |
3512 | do | |
3513 | IFS=$as_save_IFS | |
3514 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3515 | for ac_exec_ext in '' $ac_executable_extensions; do |
3516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 3517 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3519 | break 2 |
3520 | fi | |
3521 | done | |
5213506e RW |
3522 | done |
3523 | IFS=$as_save_IFS | |
953ff289 DN |
3524 | |
3525 | fi | |
3526 | fi | |
3527 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3528 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3530 | $as_echo "$ac_ct_CC" >&6; } | |
953ff289 | 3531 | else |
5213506e RW |
3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3533 | $as_echo "no" >&6; } | |
953ff289 DN |
3534 | fi |
3535 | ||
5213506e RW |
3536 | if test "x$ac_ct_CC" = x; then |
3537 | CC="" | |
3538 | else | |
3539 | case $cross_compiling:$ac_tool_warned in | |
3540 | yes:) | |
3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3542 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3543 | ac_tool_warned=yes ;; | |
3544 | esac | |
3545 | CC=$ac_ct_CC | |
3546 | fi | |
953ff289 DN |
3547 | else |
3548 | CC="$ac_cv_prog_CC" | |
3549 | fi | |
3550 | ||
3551 | if test -z "$CC"; then | |
5213506e RW |
3552 | if test -n "$ac_tool_prefix"; then |
3553 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
953ff289 | 3554 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
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 | |
953ff289 DN |
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=. | |
5213506e RW |
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 | |
953ff289 | 3570 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3572 | break 2 |
3573 | fi | |
3574 | done | |
5213506e RW |
3575 | done |
3576 | IFS=$as_save_IFS | |
953ff289 DN |
3577 | |
3578 | fi | |
3579 | fi | |
3580 | CC=$ac_cv_prog_CC | |
3581 | if test -n "$CC"; then | |
5213506e RW |
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3583 | $as_echo "$CC" >&6; } | |
953ff289 | 3584 | else |
5213506e RW |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3586 | $as_echo "no" >&6; } | |
953ff289 DN |
3587 | fi |
3588 | ||
953ff289 | 3589 | |
5213506e | 3590 | fi |
953ff289 DN |
3591 | fi |
3592 | if test -z "$CC"; then | |
3593 | # Extract the first word of "cc", so it can be a program name with args. | |
3594 | set dummy cc; ac_word=$2 | |
5213506e RW |
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_CC+set}" = set; then : | |
3598 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
3599 | else |
3600 | if test -n "$CC"; then | |
3601 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3602 | else | |
3603 | ac_prog_rejected=no | |
3604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3605 | for as_dir in $PATH | |
3606 | do | |
3607 | IFS=$as_save_IFS | |
3608 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3609 | for ac_exec_ext in '' $ac_executable_extensions; do |
3610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 DN |
3611 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3612 | ac_prog_rejected=yes | |
3613 | continue | |
3614 | fi | |
3615 | ac_cv_prog_CC="cc" | |
5213506e | 3616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3617 | break 2 |
3618 | fi | |
3619 | done | |
5213506e RW |
3620 | done |
3621 | IFS=$as_save_IFS | |
953ff289 DN |
3622 | |
3623 | if test $ac_prog_rejected = yes; then | |
3624 | # We found a bogon in the path, so make sure we never use it. | |
3625 | set dummy $ac_cv_prog_CC | |
3626 | shift | |
3627 | if test $# != 0; then | |
3628 | # We chose a different compiler from the bogus one. | |
3629 | # However, it has the same basename, so the bogon will be chosen | |
3630 | # first if we set CC to just the basename; use the full file name. | |
3631 | shift | |
3632 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3633 | fi | |
3634 | fi | |
3635 | fi | |
3636 | fi | |
3637 | CC=$ac_cv_prog_CC | |
3638 | if test -n "$CC"; then | |
5213506e RW |
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3640 | $as_echo "$CC" >&6; } | |
953ff289 | 3641 | else |
5213506e RW |
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3643 | $as_echo "no" >&6; } | |
953ff289 DN |
3644 | fi |
3645 | ||
5213506e | 3646 | |
953ff289 DN |
3647 | fi |
3648 | if test -z "$CC"; then | |
3649 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3650 | for ac_prog in cl.exe |
953ff289 DN |
3651 | do |
3652 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3653 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3655 | $as_echo_n "checking for $ac_word... " >&6; } | |
3656 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3657 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
3658 | else |
3659 | if test -n "$CC"; then | |
3660 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3661 | else | |
3662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3663 | for as_dir in $PATH | |
3664 | do | |
3665 | IFS=$as_save_IFS | |
3666 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3667 | for ac_exec_ext in '' $ac_executable_extensions; do |
3668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 3669 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3671 | break 2 |
3672 | fi | |
3673 | done | |
5213506e RW |
3674 | done |
3675 | IFS=$as_save_IFS | |
953ff289 DN |
3676 | |
3677 | fi | |
3678 | fi | |
3679 | CC=$ac_cv_prog_CC | |
3680 | if test -n "$CC"; then | |
5213506e RW |
3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3682 | $as_echo "$CC" >&6; } | |
953ff289 | 3683 | else |
5213506e RW |
3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3685 | $as_echo "no" >&6; } | |
953ff289 DN |
3686 | fi |
3687 | ||
5213506e | 3688 | |
953ff289 DN |
3689 | test -n "$CC" && break |
3690 | done | |
3691 | fi | |
3692 | if test -z "$CC"; then | |
3693 | ac_ct_CC=$CC | |
5213506e | 3694 | for ac_prog in cl.exe |
953ff289 DN |
3695 | do |
3696 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3697 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3699 | $as_echo_n "checking for $ac_word... " >&6; } | |
3700 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3701 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
3702 | else |
3703 | if test -n "$ac_ct_CC"; then | |
3704 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3705 | else | |
3706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3707 | for as_dir in $PATH | |
3708 | do | |
3709 | IFS=$as_save_IFS | |
3710 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3711 | for ac_exec_ext in '' $ac_executable_extensions; do |
3712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 3713 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3715 | break 2 |
3716 | fi | |
3717 | done | |
5213506e RW |
3718 | done |
3719 | IFS=$as_save_IFS | |
953ff289 DN |
3720 | |
3721 | fi | |
3722 | fi | |
3723 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3724 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3726 | $as_echo "$ac_ct_CC" >&6; } | |
953ff289 | 3727 | else |
5213506e RW |
3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3729 | $as_echo "no" >&6; } | |
953ff289 DN |
3730 | fi |
3731 | ||
5213506e | 3732 | |
953ff289 DN |
3733 | test -n "$ac_ct_CC" && break |
3734 | done | |
3735 | ||
5213506e RW |
3736 | if test "x$ac_ct_CC" = x; then |
3737 | CC="" | |
3738 | else | |
3739 | case $cross_compiling:$ac_tool_warned in | |
3740 | yes:) | |
3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3742 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3743 | ac_tool_warned=yes ;; | |
3744 | esac | |
3745 | CC=$ac_ct_CC | |
3746 | fi | |
953ff289 DN |
3747 | fi |
3748 | ||
3749 | fi | |
3750 | ||
3751 | ||
5213506e RW |
3752 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3753 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3754 | as_fn_error "no acceptable C compiler found in \$PATH | |
3755 | See \`config.log' for more details." "$LINENO" 5; } | |
953ff289 DN |
3756 | |
3757 | # Provide some information about the compiler. | |
5213506e RW |
3758 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3759 | set X $ac_compile | |
3760 | ac_compiler=$2 | |
3761 | for ac_option in --version -v -V -qversion; do | |
3762 | { { ac_try="$ac_compiler $ac_option >&5" | |
3763 | case "(($ac_try" in | |
3764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3765 | *) ac_try_echo=$ac_try;; | |
3766 | esac | |
3767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3768 | $as_echo "$ac_try_echo"; } >&5 | |
3769 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
953ff289 | 3770 | ac_status=$? |
5213506e RW |
3771 | if test -s conftest.err; then |
3772 | sed '10a\ | |
3773 | ... rest of stderr output deleted ... | |
3774 | 10q' conftest.err >conftest.er1 | |
3775 | cat conftest.er1 >&5 | |
3776 | rm -f conftest.er1 conftest.err | |
3777 | fi | |
3778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3779 | test $ac_status = 0; } | |
3780 | done | |
953ff289 | 3781 | |
5213506e | 3782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
3783 | /* end confdefs.h. */ |
3784 | ||
3785 | int | |
3786 | main () | |
3787 | { | |
3788 | ||
3789 | ; | |
3790 | return 0; | |
3791 | } | |
3792 | _ACEOF | |
3793 | ac_clean_files_save=$ac_clean_files | |
5213506e | 3794 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
953ff289 DN |
3795 | # Try to create an executable without -o first, disregard a.out. |
3796 | # It will help us diagnose broken compilers, and finding out an intuition | |
3797 | # of exeext. | |
5213506e RW |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3799 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3800 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3801 | ||
3802 | # The possible output files: | |
3803 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3804 | ||
3805 | ac_rmfiles= | |
3806 | for ac_file in $ac_files | |
3807 | do | |
3808 | case $ac_file in | |
3809 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3810 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3811 | esac | |
3812 | done | |
3813 | rm -f $ac_rmfiles | |
3814 | ||
3815 | if { { ac_try="$ac_link_default" | |
3816 | case "(($ac_try" in | |
3817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3818 | *) ac_try_echo=$ac_try;; | |
3819 | esac | |
3820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3821 | $as_echo "$ac_try_echo"; } >&5 | |
3822 | (eval "$ac_link_default") 2>&5 | |
3823 | ac_status=$? | |
3824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3825 | test $ac_status = 0; }; then : | |
3826 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3827 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3828 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3829 | # so that the user can short-circuit this test for compilers unknown to | |
3830 | # Autoconf. | |
3831 | for ac_file in $ac_files '' | |
953ff289 DN |
3832 | do |
3833 | test -f "$ac_file" || continue | |
3834 | case $ac_file in | |
5213506e | 3835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
953ff289 DN |
3836 | ;; |
3837 | [ab].out ) | |
3838 | # We found the default executable, but exeext='' is most | |
3839 | # certainly right. | |
3840 | break;; | |
3841 | *.* ) | |
5213506e RW |
3842 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3843 | then :; else | |
3844 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3845 | fi | |
3846 | # We set ac_cv_exeext here because the later test for it is not | |
3847 | # safe: cross compilers may not add the suffix if given an `-o' | |
3848 | # argument, so we may need to know it at that point already. | |
3849 | # Even if this section looks crufty: it has the advantage of | |
3850 | # actually working. | |
953ff289 DN |
3851 | break;; |
3852 | * ) | |
3853 | break;; | |
3854 | esac | |
3855 | done | |
5213506e RW |
3856 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3857 | ||
953ff289 | 3858 | else |
5213506e RW |
3859 | ac_file='' |
3860 | fi | |
3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3862 | $as_echo "$ac_file" >&6; } | |
3863 | if test -z "$ac_file"; then : | |
3864 | $as_echo "$as_me: failed program was:" >&5 | |
953ff289 DN |
3865 | sed 's/^/| /' conftest.$ac_ext >&5 |
3866 | ||
5213506e RW |
3867 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3868 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3869 | { as_fn_set_status 77 | |
3870 | as_fn_error "C compiler cannot create executables | |
3871 | See \`config.log' for more details." "$LINENO" 5; }; } | |
953ff289 | 3872 | fi |
953ff289 | 3873 | ac_exeext=$ac_cv_exeext |
953ff289 | 3874 | |
5213506e | 3875 | # Check that the compiler produces executables we can run. If not, either |
953ff289 | 3876 | # the compiler is broken, or we cross compile. |
5213506e RW |
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3878 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
953ff289 DN |
3879 | # If not cross compiling, check that we can run a simple program. |
3880 | if test "$cross_compiling" != yes; then | |
3881 | if { ac_try='./$ac_file' | |
5213506e RW |
3882 | { { case "(($ac_try" in |
3883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3884 | *) ac_try_echo=$ac_try;; | |
3885 | esac | |
3886 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3887 | $as_echo "$ac_try_echo"; } >&5 | |
3888 | (eval "$ac_try") 2>&5 | |
953ff289 | 3889 | ac_status=$? |
5213506e RW |
3890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3891 | test $ac_status = 0; }; }; then | |
953ff289 DN |
3892 | cross_compiling=no |
3893 | else | |
3894 | if test "$cross_compiling" = maybe; then | |
3895 | cross_compiling=yes | |
3896 | else | |
5213506e RW |
3897 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3898 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3899 | as_fn_error "cannot run C compiled programs. | |
953ff289 | 3900 | If you meant to cross compile, use \`--host'. |
5213506e | 3901 | See \`config.log' for more details." "$LINENO" 5; } |
953ff289 DN |
3902 | fi |
3903 | fi | |
3904 | fi | |
5213506e RW |
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3906 | $as_echo "yes" >&6; } | |
953ff289 | 3907 | |
5213506e | 3908 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
953ff289 | 3909 | ac_clean_files=$ac_clean_files_save |
5213506e | 3910 | # Check that the compiler produces executables we can run. If not, either |
953ff289 | 3911 | # the compiler is broken, or we cross compile. |
5213506e RW |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3913 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3915 | $as_echo "$cross_compiling" >&6; } | |
3916 | ||
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3918 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3919 | if { { ac_try="$ac_link" | |
3920 | case "(($ac_try" in | |
3921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3922 | *) ac_try_echo=$ac_try;; | |
3923 | esac | |
3924 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3925 | $as_echo "$ac_try_echo"; } >&5 | |
3926 | (eval "$ac_link") 2>&5 | |
953ff289 | 3927 | ac_status=$? |
5213506e RW |
3928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3929 | test $ac_status = 0; }; then : | |
953ff289 DN |
3930 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3931 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3932 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3933 | # `rm'. | |
3934 | for ac_file in conftest.exe conftest conftest.*; do | |
3935 | test -f "$ac_file" || continue | |
3936 | case $ac_file in | |
5213506e | 3937 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
953ff289 | 3938 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
953ff289 DN |
3939 | break;; |
3940 | * ) break;; | |
3941 | esac | |
3942 | done | |
3943 | else | |
5213506e RW |
3944 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3945 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3946 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3947 | See \`config.log' for more details." "$LINENO" 5; } | |
953ff289 | 3948 | fi |
953ff289 | 3949 | rm -f conftest$ac_cv_exeext |
5213506e RW |
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3951 | $as_echo "$ac_cv_exeext" >&6; } | |
953ff289 DN |
3952 | |
3953 | rm -f conftest.$ac_ext | |
3954 | EXEEXT=$ac_cv_exeext | |
3955 | ac_exeext=$EXEEXT | |
5213506e RW |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3957 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3958 | if test "${ac_cv_objext+set}" = set; then : | |
3959 | $as_echo_n "(cached) " >&6 | |
953ff289 | 3960 | else |
5213506e | 3961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
3962 | /* end confdefs.h. */ |
3963 | ||
3964 | int | |
3965 | main () | |
3966 | { | |
3967 | ||
3968 | ; | |
3969 | return 0; | |
3970 | } | |
3971 | _ACEOF | |
3972 | rm -f conftest.o conftest.obj | |
5213506e RW |
3973 | if { { ac_try="$ac_compile" |
3974 | case "(($ac_try" in | |
3975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3976 | *) ac_try_echo=$ac_try;; | |
3977 | esac | |
3978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3979 | $as_echo "$ac_try_echo"; } >&5 | |
3980 | (eval "$ac_compile") 2>&5 | |
3981 | ac_status=$? | |
3982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3983 | test $ac_status = 0; }; then : | |
3984 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3985 | test -f "$ac_file" || continue; | |
953ff289 | 3986 | case $ac_file in |
5213506e | 3987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
953ff289 DN |
3988 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3989 | break;; | |
3990 | esac | |
3991 | done | |
3992 | else | |
5213506e | 3993 | $as_echo "$as_me: failed program was:" >&5 |
953ff289 DN |
3994 | sed 's/^/| /' conftest.$ac_ext >&5 |
3995 | ||
5213506e RW |
3996 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3997 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3998 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3999 | See \`config.log' for more details." "$LINENO" 5; } | |
953ff289 | 4000 | fi |
953ff289 DN |
4001 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4002 | fi | |
5213506e RW |
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4004 | $as_echo "$ac_cv_objext" >&6; } | |
953ff289 DN |
4005 | OBJEXT=$ac_cv_objext |
4006 | ac_objext=$OBJEXT | |
5213506e RW |
4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4008 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4009 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4010 | $as_echo_n "(cached) " >&6 | |
953ff289 | 4011 | else |
5213506e | 4012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
4013 | /* end confdefs.h. */ |
4014 | ||
4015 | int | |
4016 | main () | |
4017 | { | |
4018 | #ifndef __GNUC__ | |
4019 | choke me | |
4020 | #endif | |
4021 | ||
4022 | ; | |
4023 | return 0; | |
4024 | } | |
4025 | _ACEOF | |
5213506e | 4026 | if ac_fn_c_try_compile "$LINENO"; then : |
953ff289 DN |
4027 | ac_compiler_gnu=yes |
4028 | else | |
5213506e | 4029 | ac_compiler_gnu=no |
953ff289 | 4030 | fi |
5213506e | 4031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
953ff289 DN |
4032 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4033 | ||
4034 | fi | |
5213506e RW |
4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4036 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4037 | if test $ac_compiler_gnu = yes; then | |
4038 | GCC=yes | |
4039 | else | |
4040 | GCC= | |
4041 | fi | |
953ff289 DN |
4042 | ac_test_CFLAGS=${CFLAGS+set} |
4043 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4045 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4046 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4047 | $as_echo_n "(cached) " >&6 | |
4048 | else | |
4049 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4050 | ac_c_werror_flag=yes | |
4051 | ac_cv_prog_cc_g=no | |
4052 | CFLAGS="-g" | |
4053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
953ff289 DN |
4054 | /* end confdefs.h. */ |
4055 | ||
4056 | int | |
4057 | main () | |
4058 | { | |
4059 | ||
4060 | ; | |
4061 | return 0; | |
4062 | } | |
4063 | _ACEOF | |
5213506e | 4064 | if ac_fn_c_try_compile "$LINENO"; then : |
953ff289 DN |
4065 | ac_cv_prog_cc_g=yes |
4066 | else | |
5213506e RW |
4067 | CFLAGS="" |
4068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4069 | /* end confdefs.h. */ | |
4070 | ||
4071 | int | |
4072 | main () | |
4073 | { | |
4074 | ||
4075 | ; | |
4076 | return 0; | |
4077 | } | |
4078 | _ACEOF | |
4079 | if ac_fn_c_try_compile "$LINENO"; then : | |
4080 | ||
4081 | else | |
4082 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4083 | CFLAGS="-g" | |
4084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4085 | /* end confdefs.h. */ | |
4086 | ||
4087 | int | |
4088 | main () | |
4089 | { | |
953ff289 | 4090 | |
5213506e RW |
4091 | ; |
4092 | return 0; | |
4093 | } | |
4094 | _ACEOF | |
4095 | if ac_fn_c_try_compile "$LINENO"; then : | |
4096 | ac_cv_prog_cc_g=yes | |
953ff289 | 4097 | fi |
5213506e | 4098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
953ff289 | 4099 | fi |
5213506e RW |
4100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4101 | fi | |
4102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4103 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4104 | fi | |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4106 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
953ff289 DN |
4107 | if test "$ac_test_CFLAGS" = set; then |
4108 | CFLAGS=$ac_save_CFLAGS | |
4109 | elif test $ac_cv_prog_cc_g = yes; then | |
4110 | if test "$GCC" = yes; then | |
4111 | CFLAGS="-g -O2" | |
4112 | else | |
4113 | CFLAGS="-g" | |
4114 | fi | |
4115 | else | |
4116 | if test "$GCC" = yes; then | |
4117 | CFLAGS="-O2" | |
4118 | else | |
4119 | CFLAGS= | |
4120 | fi | |
4121 | fi | |
5213506e RW |
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4123 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4124 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4125 | $as_echo_n "(cached) " >&6 | |
953ff289 | 4126 | else |
5213506e | 4127 | ac_cv_prog_cc_c89=no |
953ff289 | 4128 | ac_save_CC=$CC |
5213506e | 4129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
4130 | /* end confdefs.h. */ |
4131 | #include <stdarg.h> | |
4132 | #include <stdio.h> | |
4133 | #include <sys/types.h> | |
4134 | #include <sys/stat.h> | |
4135 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4136 | struct buf { int x; }; | |
4137 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4138 | static char *e (p, i) | |
4139 | char **p; | |
4140 | int i; | |
4141 | { | |
4142 | return p[i]; | |
4143 | } | |
4144 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4145 | { | |
4146 | char *s; | |
4147 | va_list v; | |
4148 | va_start (v,p); | |
4149 | s = g (p, va_arg (v,int)); | |
4150 | va_end (v); | |
4151 | return s; | |
4152 | } | |
4153 | ||
4154 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4155 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4156 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4157 | as 'x'. The following induces an error, until -std is added to get |
953ff289 DN |
4158 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4159 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4160 | that's true only with -std. */ |
953ff289 DN |
4161 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4162 | ||
5213506e RW |
4163 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4164 | inside strings and character constants. */ | |
4165 | #define FOO(x) 'x' | |
4166 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4167 | ||
953ff289 DN |
4168 | int test (int i, double x); |
4169 | struct s1 {int (*f) (int a);}; | |
4170 | struct s2 {int (*f) (double a);}; | |
4171 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4172 | int argc; | |
4173 | char **argv; | |
4174 | int | |
4175 | main () | |
4176 | { | |
4177 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4178 | ; | |
4179 | return 0; | |
4180 | } | |
4181 | _ACEOF | |
5213506e RW |
4182 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4183 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
953ff289 DN |
4184 | do |
4185 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4186 | if ac_fn_c_try_compile "$LINENO"; then : |
4187 | ac_cv_prog_cc_c89=$ac_arg | |
953ff289 | 4188 | fi |
5213506e RW |
4189 | rm -f core conftest.err conftest.$ac_objext |
4190 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
953ff289 | 4191 | done |
5213506e | 4192 | rm -f conftest.$ac_ext |
953ff289 DN |
4193 | CC=$ac_save_CC |
4194 | ||
4195 | fi | |
5213506e RW |
4196 | # AC_CACHE_VAL |
4197 | case "x$ac_cv_prog_cc_c89" in | |
4198 | x) | |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4200 | $as_echo "none needed" >&6; } ;; | |
4201 | xno) | |
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4203 | $as_echo "unsupported" >&6; } ;; | |
953ff289 | 4204 | *) |
5213506e RW |
4205 | CC="$CC $ac_cv_prog_cc_c89" |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4207 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
953ff289 | 4208 | esac |
5213506e | 4209 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
953ff289 | 4210 | |
953ff289 DN |
4211 | fi |
4212 | ||
953ff289 DN |
4213 | ac_ext=c |
4214 | ac_cpp='$CPP $CPPFLAGS' | |
4215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4218 | DEPDIR="${am__leading_dot}deps" | |
4219 | ||
5213506e | 4220 | ac_config_commands="$ac_config_commands depfiles" |
953ff289 DN |
4221 | |
4222 | ||
4223 | am_make=${MAKE-make} | |
4224 | cat > confinc << 'END' | |
4225 | am__doit: | |
5213506e | 4226 | @echo this is the am__doit target |
953ff289 DN |
4227 | .PHONY: am__doit |
4228 | END | |
4229 | # If we don't find an include directive, just comment out the code. | |
5213506e RW |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
4231 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
953ff289 DN |
4232 | am__include="#" |
4233 | am__quote= | |
4234 | _am_result=none | |
4235 | # First try GNU make style include. | |
4236 | echo "include confinc" > confmf | |
5213506e RW |
4237 | # Ignore all kinds of additional output from `make'. |
4238 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4239 | *the\ am__doit\ target*) | |
4240 | am__include=include | |
4241 | am__quote= | |
4242 | _am_result=GNU | |
4243 | ;; | |
4244 | esac | |
953ff289 DN |
4245 | # Now try BSD make style include. |
4246 | if test "$am__include" = "#"; then | |
4247 | echo '.include "confinc"' > confmf | |
5213506e RW |
4248 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4249 | *the\ am__doit\ target*) | |
4250 | am__include=.include | |
4251 | am__quote="\"" | |
4252 | _am_result=BSD | |
4253 | ;; | |
4254 | esac | |
953ff289 DN |
4255 | fi |
4256 | ||
4257 | ||
5213506e RW |
4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4259 | $as_echo "$_am_result" >&6; } | |
953ff289 DN |
4260 | rm -f confinc confmf |
4261 | ||
5213506e RW |
4262 | # Check whether --enable-dependency-tracking was given. |
4263 | if test "${enable_dependency_tracking+set}" = set; then : | |
4264 | enableval=$enable_dependency_tracking; | |
4265 | fi | |
953ff289 | 4266 | |
953ff289 DN |
4267 | if test "x$enable_dependency_tracking" != xno; then |
4268 | am_depcomp="$ac_aux_dir/depcomp" | |
4269 | AMDEPBACKSLASH='\' | |
4270 | fi | |
5213506e | 4271 | if test "x$enable_dependency_tracking" != xno; then |
953ff289 DN |
4272 | AMDEP_TRUE= |
4273 | AMDEP_FALSE='#' | |
4274 | else | |
4275 | AMDEP_TRUE='#' | |
4276 | AMDEP_FALSE= | |
4277 | fi | |
4278 | ||
4279 | ||
4280 | ||
953ff289 DN |
4281 | depcc="$CC" am_compiler_list= |
4282 | ||
5213506e RW |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4284 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4285 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4286 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
4287 | else |
4288 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4289 | # We make a subdir and do the tests there. Otherwise we can end up | |
4290 | # making bogus files that we don't know about and never remove. For | |
4291 | # instance it was reported that on HP-UX the gcc test will end up | |
4292 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4293 | # in D'. | |
4294 | mkdir conftest.dir | |
4295 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4296 | # using a relative directory. | |
4297 | cp "$am_depcomp" conftest.dir | |
4298 | cd conftest.dir | |
4299 | # We will build objects and dependencies in a subdirectory because | |
4300 | # it helps to detect inapplicable dependency modes. For instance | |
4301 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4302 | # side effect of compilation, but ICC will put the dependencies in | |
4303 | # the current directory while Tru64 will put them in the object | |
4304 | # directory. | |
4305 | mkdir sub | |
4306 | ||
4307 | am_cv_CC_dependencies_compiler_type=none | |
4308 | if test "$am_compiler_list" = ""; then | |
4309 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4310 | fi | |
5213506e RW |
4311 | am__universal=false |
4312 | case " $depcc " in #( | |
4313 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4314 | esac | |
4315 | ||
953ff289 DN |
4316 | for depmode in $am_compiler_list; do |
4317 | # Setup a source with many dependencies, because some compilers | |
4318 | # like to wrap large dependency lists on column 80 (with \), and | |
4319 | # we should not choose a depcomp mode which is confused by this. | |
4320 | # | |
4321 | # We need to recreate these files for each test, as the compiler may | |
4322 | # overwrite some of them when testing with obscure command lines. | |
4323 | # This happens at least with the AIX C compiler. | |
4324 | : > sub/conftest.c | |
4325 | for i in 1 2 3 4 5 6; do | |
4326 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4327 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4328 | # Solaris 8's {/usr,}/bin/sh. | |
4329 | touch sub/conftst$i.h | |
4330 | done | |
4331 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4332 | ||
5213506e RW |
4333 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4334 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4335 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4336 | # versions had trouble with output in subdirs | |
4337 | am__obj=sub/conftest.${OBJEXT-o} | |
4338 | am__minus_obj="-o $am__obj" | |
953ff289 | 4339 | case $depmode in |
5213506e RW |
4340 | gcc) |
4341 | # This depmode causes a compiler race in universal mode. | |
4342 | test "$am__universal" = false || continue | |
4343 | ;; | |
953ff289 DN |
4344 | nosideeffect) |
4345 | # after this tag, mechanisms are not by side-effect, so they'll | |
4346 | # only be used when explicitly requested | |
4347 | if test "x$enable_dependency_tracking" = xyes; then | |
4348 | continue | |
4349 | else | |
4350 | break | |
4351 | fi | |
4352 | ;; | |
5213506e RW |
4353 | msvisualcpp | msvcmsys) |
4354 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4355 | # not run yet. These depmodes are late enough in the game, and | |
4356 | # so weak that their functioning should not be impacted. | |
4357 | am__obj=conftest.${OBJEXT-o} | |
4358 | am__minus_obj= | |
4359 | ;; | |
953ff289 DN |
4360 | none) break ;; |
4361 | esac | |
953ff289 | 4362 | if depmode=$depmode \ |
5213506e | 4363 | source=sub/conftest.c object=$am__obj \ |
953ff289 | 4364 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4365 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
953ff289 | 4366 | >/dev/null 2>conftest.err && |
5213506e | 4367 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
953ff289 | 4368 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4369 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
953ff289 DN |
4370 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4371 | # icc doesn't choke on unknown options, it will just issue warnings | |
4372 | # or remarks (even with -Werror). So we grep stderr for any message | |
4373 | # that says an option was ignored or not supported. | |
4374 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4375 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4376 | # The diagnosis changed in icc 8.0: | |
4377 | # icc: Command line remark: option '-MP' not supported | |
4378 | if (grep 'ignoring option' conftest.err || | |
4379 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4380 | am_cv_CC_dependencies_compiler_type=$depmode | |
4381 | break | |
4382 | fi | |
4383 | fi | |
4384 | done | |
4385 | ||
4386 | cd .. | |
4387 | rm -rf conftest.dir | |
4388 | else | |
4389 | am_cv_CC_dependencies_compiler_type=none | |
4390 | fi | |
4391 | ||
4392 | fi | |
5213506e RW |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4394 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
953ff289 DN |
4395 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4396 | ||
5213506e | 4397 | if |
953ff289 DN |
4398 | test "x$enable_dependency_tracking" != xno \ |
4399 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4400 | am__fastdepCC_TRUE= | |
4401 | am__fastdepCC_FALSE='#' | |
4402 | else | |
4403 | am__fastdepCC_TRUE='#' | |
4404 | am__fastdepCC_FALSE= | |
4405 | fi | |
4406 | ||
4407 | ||
4408 | ||
4409 | ||
4410 | ||
4411 | ||
4412 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
4413 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
4414 | # in both places for now and restore CFLAGS at the end of config. | |
4415 | save_CFLAGS="$CFLAGS" | |
4416 | ||
4417 | # Add -Wall -Werror if we are using GCC. | |
4418 | if test "x$GCC" = "xyes"; then | |
4419 | XCFLAGS="$XCFLAGS -Wall -Werror" | |
4420 | fi | |
4421 | ||
4422 | # Find other programs we need. | |
4423 | if test -n "$ac_tool_prefix"; then | |
4424 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4425 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4427 | $as_echo_n "checking for $ac_word... " >&6; } | |
4428 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4429 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
4430 | else |
4431 | if test -n "$AR"; then | |
4432 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4433 | else | |
4434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4435 | for as_dir in $PATH | |
4436 | do | |
4437 | IFS=$as_save_IFS | |
4438 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4439 | for ac_exec_ext in '' $ac_executable_extensions; do |
4440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 4441 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 4442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4443 | break 2 |
4444 | fi | |
4445 | done | |
5213506e RW |
4446 | done |
4447 | IFS=$as_save_IFS | |
953ff289 DN |
4448 | |
4449 | fi | |
4450 | fi | |
4451 | AR=$ac_cv_prog_AR | |
4452 | if test -n "$AR"; then | |
5213506e RW |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4454 | $as_echo "$AR" >&6; } | |
953ff289 | 4455 | else |
5213506e RW |
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4457 | $as_echo "no" >&6; } | |
953ff289 DN |
4458 | fi |
4459 | ||
5213506e | 4460 | |
953ff289 DN |
4461 | fi |
4462 | if test -z "$ac_cv_prog_AR"; then | |
4463 | ac_ct_AR=$AR | |
4464 | # Extract the first word of "ar", so it can be a program name with args. | |
4465 | set dummy ar; ac_word=$2 | |
5213506e RW |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4467 | $as_echo_n "checking for $ac_word... " >&6; } | |
4468 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4469 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
4470 | else |
4471 | if test -n "$ac_ct_AR"; then | |
4472 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4473 | else | |
4474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4475 | for as_dir in $PATH | |
4476 | do | |
4477 | IFS=$as_save_IFS | |
4478 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4479 | for ac_exec_ext in '' $ac_executable_extensions; do |
4480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 4481 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 4482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4483 | break 2 |
4484 | fi | |
4485 | done | |
5213506e RW |
4486 | done |
4487 | IFS=$as_save_IFS | |
953ff289 DN |
4488 | |
4489 | fi | |
4490 | fi | |
4491 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4492 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
4494 | $as_echo "$ac_ct_AR" >&6; } | |
953ff289 | 4495 | else |
5213506e RW |
4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4497 | $as_echo "no" >&6; } | |
953ff289 DN |
4498 | fi |
4499 | ||
5213506e RW |
4500 | if test "x$ac_ct_AR" = x; then |
4501 | AR="" | |
4502 | else | |
4503 | case $cross_compiling:$ac_tool_warned in | |
4504 | yes:) | |
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4506 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4507 | ac_tool_warned=yes ;; | |
4508 | esac | |
4509 | AR=$ac_ct_AR | |
4510 | fi | |
953ff289 DN |
4511 | else |
4512 | AR="$ac_cv_prog_AR" | |
4513 | fi | |
4514 | ||
4515 | if test -n "$ac_tool_prefix"; then | |
4516 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4517 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4519 | $as_echo_n "checking for $ac_word... " >&6; } | |
4520 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4521 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
4522 | else |
4523 | if test -n "$RANLIB"; then | |
4524 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4525 | else | |
4526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4527 | for as_dir in $PATH | |
4528 | do | |
4529 | IFS=$as_save_IFS | |
4530 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4531 | for ac_exec_ext in '' $ac_executable_extensions; do |
4532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 4533 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 4534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4535 | break 2 |
4536 | fi | |
4537 | done | |
5213506e RW |
4538 | done |
4539 | IFS=$as_save_IFS | |
953ff289 DN |
4540 | |
4541 | fi | |
4542 | fi | |
4543 | RANLIB=$ac_cv_prog_RANLIB | |
4544 | if test -n "$RANLIB"; then | |
5213506e RW |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4546 | $as_echo "$RANLIB" >&6; } | |
953ff289 | 4547 | else |
5213506e RW |
4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4549 | $as_echo "no" >&6; } | |
953ff289 DN |
4550 | fi |
4551 | ||
5213506e | 4552 | |
953ff289 DN |
4553 | fi |
4554 | if test -z "$ac_cv_prog_RANLIB"; then | |
4555 | ac_ct_RANLIB=$RANLIB | |
4556 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4557 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4559 | $as_echo_n "checking for $ac_word... " >&6; } | |
4560 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4561 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
4562 | else |
4563 | if test -n "$ac_ct_RANLIB"; then | |
4564 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4565 | else | |
4566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4567 | for as_dir in $PATH | |
4568 | do | |
4569 | IFS=$as_save_IFS | |
4570 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4571 | for ac_exec_ext in '' $ac_executable_extensions; do |
4572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 4573 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 4574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4575 | break 2 |
4576 | fi | |
4577 | done | |
5213506e RW |
4578 | done |
4579 | IFS=$as_save_IFS | |
953ff289 | 4580 | |
953ff289 DN |
4581 | fi |
4582 | fi | |
4583 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4584 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4586 | $as_echo "$ac_ct_RANLIB" >&6; } | |
953ff289 | 4587 | else |
5213506e RW |
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4589 | $as_echo "no" >&6; } | |
953ff289 DN |
4590 | fi |
4591 | ||
5213506e RW |
4592 | if test "x$ac_ct_RANLIB" = x; then |
4593 | RANLIB="ranlib-not-found-in-path-error" | |
4594 | else | |
4595 | case $cross_compiling:$ac_tool_warned in | |
4596 | yes:) | |
4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4598 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4599 | ac_tool_warned=yes ;; | |
4600 | esac | |
4601 | RANLIB=$ac_ct_RANLIB | |
4602 | fi | |
953ff289 DN |
4603 | else |
4604 | RANLIB="$ac_cv_prog_RANLIB" | |
4605 | fi | |
4606 | ||
4607 | # Extract the first word of "perl", so it can be a program name with args. | |
4608 | set dummy perl; ac_word=$2 | |
5213506e RW |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4610 | $as_echo_n "checking for $ac_word... " >&6; } | |
4611 | if test "${ac_cv_path_PERL+set}" = set; then : | |
4612 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
4613 | else |
4614 | case $PERL in | |
4615 | [\\/]* | ?:[\\/]*) | |
4616 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
4617 | ;; | |
4618 | *) | |
4619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4620 | for as_dir in $PATH | |
4621 | do | |
4622 | IFS=$as_save_IFS | |
4623 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4624 | for ac_exec_ext in '' $ac_executable_extensions; do |
4625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 4626 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 4627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4628 | break 2 |
4629 | fi | |
4630 | done | |
5213506e RW |
4631 | done |
4632 | IFS=$as_save_IFS | |
953ff289 DN |
4633 | |
4634 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" | |
4635 | ;; | |
4636 | esac | |
4637 | fi | |
4638 | PERL=$ac_cv_path_PERL | |
953ff289 | 4639 | if test -n "$PERL"; then |
5213506e RW |
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
4641 | $as_echo "$PERL" >&6; } | |
953ff289 | 4642 | else |
5213506e RW |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4644 | $as_echo "no" >&6; } | |
953ff289 DN |
4645 | fi |
4646 | ||
5213506e RW |
4647 | |
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4649 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4650 | set x ${MAKE-make} | |
4651 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4652 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4653 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
4654 | else |
4655 | cat >conftest.make <<\_ACEOF | |
5213506e | 4656 | SHELL = /bin/sh |
953ff289 | 4657 | all: |
5213506e | 4658 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
953ff289 DN |
4659 | _ACEOF |
4660 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5213506e RW |
4661 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4662 | *@@@%%%=?*=@@@%%%*) | |
4663 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4664 | *) | |
4665 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4666 | esac | |
953ff289 DN |
4667 | rm -f conftest.make |
4668 | fi | |
5213506e RW |
4669 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4671 | $as_echo "yes" >&6; } | |
953ff289 DN |
4672 | SET_MAKE= |
4673 | else | |
5213506e RW |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4675 | $as_echo "no" >&6; } | |
953ff289 DN |
4676 | SET_MAKE="MAKE=${MAKE-make}" |
4677 | fi | |
4678 | ||
953ff289 DN |
4679 | |
4680 | ||
748b9d7c DF |
4681 | # See if makeinfo has been installed and is modern enough |
4682 | # that we can use it. | |
4683 | ||
4684 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
4685 | set dummy makeinfo; ac_word=$2 | |
5213506e RW |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4687 | $as_echo_n "checking for $ac_word... " >&6; } | |
4688 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
4689 | $as_echo_n "(cached) " >&6 | |
748b9d7c DF |
4690 | else |
4691 | if test -n "$MAKEINFO"; then | |
4692 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
4693 | else | |
4694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4695 | for as_dir in $PATH | |
4696 | do | |
4697 | IFS=$as_save_IFS | |
4698 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4699 | for ac_exec_ext in '' $ac_executable_extensions; do |
4700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
748b9d7c | 4701 | ac_cv_prog_MAKEINFO="makeinfo" |
5213506e | 4702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
748b9d7c DF |
4703 | break 2 |
4704 | fi | |
4705 | done | |
5213506e RW |
4706 | done |
4707 | IFS=$as_save_IFS | |
748b9d7c DF |
4708 | |
4709 | fi | |
4710 | fi | |
4711 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
4712 | if test -n "$MAKEINFO"; then | |
5213506e RW |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
4714 | $as_echo "$MAKEINFO" >&6; } | |
748b9d7c | 4715 | else |
5213506e RW |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4717 | $as_echo "no" >&6; } | |
748b9d7c DF |
4718 | fi |
4719 | ||
5213506e | 4720 | |
748b9d7c DF |
4721 | if test -n "$MAKEINFO"; then |
4722 | # Found it, now check the version. | |
5213506e RW |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 |
4724 | $as_echo_n "checking for modern makeinfo... " >&6; } | |
4725 | if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then : | |
4726 | $as_echo_n "(cached) " >&6 | |
748b9d7c DF |
4727 | else |
4728 | ac_prog_version=`eval $MAKEINFO --version 2>&1 | | |
4729 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
4730 | ||
4731 | case $ac_prog_version in | |
4732 | '') gcc_cv_prog_makeinfo_modern=no;; | |
a7415017 | 4733 | 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; |
748b9d7c DF |
4734 | *) gcc_cv_prog_makeinfo_modern=no;; |
4735 | esac | |
4736 | ||
4737 | fi | |
5213506e RW |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 |
4739 | $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } | |
748b9d7c DF |
4740 | else |
4741 | gcc_cv_prog_makeinfo_modern=no | |
4742 | fi | |
1cf3d07d SE |
4743 | if test $gcc_cv_prog_makeinfo_modern = no; then |
4744 | MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" | |
4745 | fi | |
748b9d7c | 4746 | |
5213506e | 4747 | if test $gcc_cv_prog_makeinfo_modern = "yes"; then |
748b9d7c DF |
4748 | BUILD_INFO_TRUE= |
4749 | BUILD_INFO_FALSE='#' | |
4750 | else | |
4751 | BUILD_INFO_TRUE='#' | |
4752 | BUILD_INFO_FALSE= | |
4753 | fi | |
4754 | ||
4755 | ||
4756 | ||
953ff289 | 4757 | # Configure libtool |
6b4a97ed PG |
4758 | case `pwd` in |
4759 | *\ * | *\ *) | |
5213506e RW |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4761 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6b4a97ed | 4762 | esac |
1cf3d07d SE |
4763 | |
4764 | ||
1cf3d07d | 4765 | |
6b4a97ed PG |
4766 | macro_version='2.2.6' |
4767 | macro_revision='1.3012' | |
1cf3d07d SE |
4768 | |
4769 | ||
4770 | ||
4771 | ||
4772 | ||
4773 | ||
953ff289 | 4774 | |
1cf3d07d SE |
4775 | |
4776 | ||
4777 | ||
4778 | ||
4779 | ||
4780 | ||
6b4a97ed | 4781 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 4782 | |
5213506e RW |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4784 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4785 | if test "${ac_cv_path_SED+set}" = set; then : | |
4786 | $as_echo_n "(cached) " >&6 | |
4787 | else | |
4788 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4789 | for ac_i in 1 2 3 4 5 6 7; do | |
4790 | ac_script="$ac_script$as_nl$ac_script" | |
4791 | done | |
4792 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4793 | { ac_script=; unset ac_script;} | |
4794 | if test -z "$SED"; then | |
4795 | ac_path_SED_found=false | |
4796 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1cf3d07d SE |
4798 | for as_dir in $PATH |
4799 | do | |
4800 | IFS=$as_save_IFS | |
4801 | test -z "$as_dir" && as_dir=. | |
5213506e | 4802 | for ac_prog in sed gsed; do |
1cf3d07d | 4803 | for ac_exec_ext in '' $ac_executable_extensions; do |
5213506e RW |
4804 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4805 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4806 | # Check for GNU ac_path_SED and select it if it is found. | |
4807 | # Check for GNU $ac_path_SED | |
4808 | case `"$ac_path_SED" --version 2>&1` in | |
4809 | *GNU*) | |
4810 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4811 | *) | |
4812 | ac_count=0 | |
4813 | $as_echo_n 0123456789 >"conftest.in" | |
4814 | while : | |
4815 | do | |
4816 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4817 | mv "conftest.tmp" "conftest.in" | |
4818 | cp "conftest.in" "conftest.nl" | |
4819 | $as_echo '' >> "conftest.nl" | |
4820 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4821 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4822 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4823 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4824 | # Best one so far, save it but keep looking for a better one | |
4825 | ac_cv_path_SED="$ac_path_SED" | |
4826 | ac_path_SED_max=$ac_count | |
4827 | fi | |
4828 | # 10*(2^10) chars as input seems more than enough | |
4829 | test $ac_count -gt 10 && break | |
4830 | done | |
4831 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4832 | esac | |
4833 | ||
4834 | $ac_path_SED_found && break 3 | |
1cf3d07d SE |
4835 | done |
4836 | done | |
5213506e | 4837 | done |
1cf3d07d | 4838 | IFS=$as_save_IFS |
5213506e RW |
4839 | if test -z "$ac_cv_path_SED"; then |
4840 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
1cf3d07d | 4841 | fi |
5213506e RW |
4842 | else |
4843 | ac_cv_path_SED=$SED | |
1cf3d07d SE |
4844 | fi |
4845 | ||
5213506e RW |
4846 | fi |
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4848 | $as_echo "$ac_cv_path_SED" >&6; } | |
4849 | SED="$ac_cv_path_SED" | |
4850 | rm -f conftest.sed | |
1cf3d07d SE |
4851 | |
4852 | test -z "$SED" && SED=sed | |
4853 | Xsed="$SED -e 1s/^X//" | |
4854 | ||
4855 | ||
4856 | ||
4857 | ||
4858 | ||
4859 | ||
4860 | ||
4861 | ||
4862 | ||
4863 | ||
4864 | ||
5213506e RW |
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4866 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4867 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4868 | $as_echo_n "(cached) " >&6 | |
4869 | else | |
4870 | if test -z "$GREP"; then | |
4871 | ac_path_GREP_found=false | |
4872 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4874 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4875 | do | |
4876 | IFS=$as_save_IFS | |
4877 | test -z "$as_dir" && as_dir=. | |
4878 | for ac_prog in grep ggrep; do | |
4879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4880 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4881 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4882 | # Check for GNU ac_path_GREP and select it if it is found. | |
4883 | # Check for GNU $ac_path_GREP | |
4884 | case `"$ac_path_GREP" --version 2>&1` in | |
4885 | *GNU*) | |
4886 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4887 | *) | |
4888 | ac_count=0 | |
4889 | $as_echo_n 0123456789 >"conftest.in" | |
4890 | while : | |
4891 | do | |
4892 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4893 | mv "conftest.tmp" "conftest.in" | |
4894 | cp "conftest.in" "conftest.nl" | |
4895 | $as_echo 'GREP' >> "conftest.nl" | |
4896 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4897 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4898 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4899 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4900 | # Best one so far, save it but keep looking for a better one | |
4901 | ac_cv_path_GREP="$ac_path_GREP" | |
4902 | ac_path_GREP_max=$ac_count | |
4903 | fi | |
4904 | # 10*(2^10) chars as input seems more than enough | |
4905 | test $ac_count -gt 10 && break | |
4906 | done | |
4907 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4908 | esac | |
4909 | ||
4910 | $ac_path_GREP_found && break 3 | |
4911 | done | |
4912 | done | |
4913 | done | |
4914 | IFS=$as_save_IFS | |
4915 | if test -z "$ac_cv_path_GREP"; then | |
4916 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4917 | fi | |
4918 | else | |
4919 | ac_cv_path_GREP=$GREP | |
4920 | fi | |
4921 | ||
4922 | fi | |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4924 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4925 | GREP="$ac_cv_path_GREP" | |
4926 | ||
4927 | ||
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4929 | $as_echo_n "checking for egrep... " >&6; } | |
4930 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4931 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 4932 | else |
5213506e RW |
4933 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4934 | then ac_cv_path_EGREP="$GREP -E" | |
4935 | else | |
4936 | if test -z "$EGREP"; then | |
4937 | ac_path_EGREP_found=false | |
4938 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4940 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4941 | do | |
4942 | IFS=$as_save_IFS | |
4943 | test -z "$as_dir" && as_dir=. | |
4944 | for ac_prog in egrep; do | |
4945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4946 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4947 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4948 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4949 | # Check for GNU $ac_path_EGREP | |
4950 | case `"$ac_path_EGREP" --version 2>&1` in | |
4951 | *GNU*) | |
4952 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4953 | *) | |
4954 | ac_count=0 | |
4955 | $as_echo_n 0123456789 >"conftest.in" | |
4956 | while : | |
4957 | do | |
4958 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4959 | mv "conftest.tmp" "conftest.in" | |
4960 | cp "conftest.in" "conftest.nl" | |
4961 | $as_echo 'EGREP' >> "conftest.nl" | |
4962 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4963 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4964 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4965 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4966 | # Best one so far, save it but keep looking for a better one | |
4967 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4968 | ac_path_EGREP_max=$ac_count | |
1cf3d07d | 4969 | fi |
5213506e RW |
4970 | # 10*(2^10) chars as input seems more than enough |
4971 | test $ac_count -gt 10 && break | |
4972 | done | |
4973 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4974 | esac | |
4975 | ||
4976 | $ac_path_EGREP_found && break 3 | |
4977 | done | |
4978 | done | |
4979 | done | |
4980 | IFS=$as_save_IFS | |
4981 | if test -z "$ac_cv_path_EGREP"; then | |
4982 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4983 | fi | |
4984 | else | |
4985 | ac_cv_path_EGREP=$EGREP | |
4986 | fi | |
4987 | ||
4988 | fi | |
1cf3d07d | 4989 | fi |
5213506e RW |
4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4991 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4992 | EGREP="$ac_cv_path_EGREP" | |
1cf3d07d SE |
4993 | |
4994 | ||
5213506e RW |
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4996 | $as_echo_n "checking for fgrep... " >&6; } | |
4997 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
4998 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 4999 | else |
5213506e RW |
5000 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5001 | then ac_cv_path_FGREP="$GREP -F" | |
5002 | else | |
5003 | if test -z "$FGREP"; then | |
5004 | ac_path_FGREP_found=false | |
5005 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5007 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5008 | do | |
5009 | IFS=$as_save_IFS | |
5010 | test -z "$as_dir" && as_dir=. | |
5011 | for ac_prog in fgrep; do | |
5012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5013 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5014 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5015 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5016 | # Check for GNU $ac_path_FGREP | |
5017 | case `"$ac_path_FGREP" --version 2>&1` in | |
5018 | *GNU*) | |
5019 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5020 | *) | |
5021 | ac_count=0 | |
5022 | $as_echo_n 0123456789 >"conftest.in" | |
5023 | while : | |
5024 | do | |
5025 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5026 | mv "conftest.tmp" "conftest.in" | |
5027 | cp "conftest.in" "conftest.nl" | |
5028 | $as_echo 'FGREP' >> "conftest.nl" | |
5029 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5030 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5031 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5032 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5033 | # Best one so far, save it but keep looking for a better one | |
5034 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5035 | ac_path_FGREP_max=$ac_count | |
1cf3d07d | 5036 | fi |
5213506e RW |
5037 | # 10*(2^10) chars as input seems more than enough |
5038 | test $ac_count -gt 10 && break | |
5039 | done | |
5040 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5041 | esac | |
5042 | ||
5043 | $ac_path_FGREP_found && break 3 | |
5044 | done | |
5045 | done | |
5046 | done | |
5047 | IFS=$as_save_IFS | |
5048 | if test -z "$ac_cv_path_FGREP"; then | |
5049 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5050 | fi | |
5051 | else | |
5052 | ac_cv_path_FGREP=$FGREP | |
5053 | fi | |
5054 | ||
5055 | fi | |
1cf3d07d | 5056 | fi |
5213506e RW |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5058 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5059 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
5060 | |
5061 | ||
5062 | test -z "$GREP" && GREP=grep | |
5063 | ||
5064 | ||
5065 | ||
5066 | ||
5067 | ||
5068 | ||
5069 | ||
5070 | ||
5071 | ||
5072 | ||
5073 | ||
5074 | ||
5075 | ||
5076 | ||
5077 | ||
5078 | ||
5079 | ||
5080 | ||
5081 | ||
5213506e RW |
5082 | # Check whether --with-gnu-ld was given. |
5083 | if test "${with_gnu_ld+set}" = set; then : | |
5084 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
953ff289 DN |
5085 | else |
5086 | with_gnu_ld=no | |
5213506e RW |
5087 | fi |
5088 | ||
953ff289 DN |
5089 | ac_prog=ld |
5090 | if test "$GCC" = yes; then | |
5091 | # Check if gcc -print-prog-name=ld gives a path. | |
5213506e RW |
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5093 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
953ff289 DN |
5094 | case $host in |
5095 | *-*-mingw*) | |
5096 | # gcc leaves a trailing carriage return which upsets mingw | |
5097 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5098 | *) | |
5099 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5100 | esac | |
5101 | case $ac_prog in | |
5102 | # Accept absolute paths. | |
1cf3d07d | 5103 | [\\/]* | ?:[\\/]*) |
953ff289 | 5104 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
5105 | # Canonicalize the pathname of ld |
5106 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5107 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5108 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
953ff289 DN |
5109 | done |
5110 | test -z "$LD" && LD="$ac_prog" | |
5111 | ;; | |
5112 | "") | |
5113 | # If it fails, then pretend we aren't using GCC. | |
5114 | ac_prog=ld | |
5115 | ;; | |
5116 | *) | |
5117 | # If it is relative, then search for the first ld in PATH. | |
5118 | with_gnu_ld=unknown | |
5119 | ;; | |
5120 | esac | |
5121 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5123 | $as_echo_n "checking for GNU ld... " >&6; } | |
953ff289 | 5124 | else |
5213506e RW |
5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5126 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
953ff289 | 5127 | fi |
5213506e RW |
5128 | if test "${lt_cv_path_LD+set}" = set; then : |
5129 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
5130 | else |
5131 | if test -z "$LD"; then | |
1cf3d07d | 5132 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
953ff289 | 5133 | for ac_dir in $PATH; do |
1cf3d07d | 5134 | IFS="$lt_save_ifs" |
953ff289 DN |
5135 | test -z "$ac_dir" && ac_dir=. |
5136 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5137 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5138 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1cf3d07d | 5139 | # but apparently some variants of GNU ld only accept -v. |
953ff289 | 5140 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
5141 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5142 | *GNU* | *'with BFD'*) | |
953ff289 | 5143 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
5144 | ;; |
5145 | *) | |
953ff289 | 5146 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
5147 | ;; |
5148 | esac | |
953ff289 DN |
5149 | fi |
5150 | done | |
1cf3d07d | 5151 | IFS="$lt_save_ifs" |
953ff289 DN |
5152 | else |
5153 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5154 | fi | |
5155 | fi | |
5156 | ||
5157 | LD="$lt_cv_path_LD" | |
5158 | if test -n "$LD"; then | |
5213506e RW |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5160 | $as_echo "$LD" >&6; } | |
953ff289 | 5161 | else |
5213506e RW |
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5163 | $as_echo "no" >&6; } | |
953ff289 | 5164 | fi |
5213506e RW |
5165 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5167 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5168 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5169 | $as_echo_n "(cached) " >&6 | |
953ff289 | 5170 | else |
1cf3d07d SE |
5171 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5172 | case `$LD -v 2>&1 </dev/null` in | |
5173 | *GNU* | *'with BFD'*) | |
953ff289 | 5174 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
5175 | ;; |
5176 | *) | |
953ff289 | 5177 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
5178 | ;; |
5179 | esac | |
953ff289 | 5180 | fi |
5213506e RW |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5182 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
953ff289 DN |
5183 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5184 | ||
5185 | ||
953ff289 | 5186 | |
1cf3d07d SE |
5187 | |
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5213506e RW |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5194 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5195 | if test "${lt_cv_path_NM+set}" = set; then : | |
5196 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
5197 | else |
5198 | if test -n "$NM"; then | |
5199 | # Let the user override the test. | |
5200 | lt_cv_path_NM="$NM" | |
5201 | else | |
1cf3d07d SE |
5202 | lt_nm_to_check="${ac_tool_prefix}nm" |
5203 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5204 | lt_nm_to_check="$lt_nm_to_check nm" | |
5205 | fi | |
5206 | for lt_tmp_nm in $lt_nm_to_check; do | |
5207 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5208 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5209 | IFS="$lt_save_ifs" | |
5210 | test -z "$ac_dir" && ac_dir=. | |
5211 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5212 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5213 | # Check to see if the nm accepts a BSD-compat flag. | |
5214 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5215 | # nm: unknown option "B" ignored | |
5216 | # Tru64's nm complains that /dev/null is an invalid object file | |
5217 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5218 | */dev/null* | *'Invalid file or object type'*) | |
5219 | lt_cv_path_NM="$tmp_nm -B" | |
5220 | break | |
5221 | ;; | |
5222 | *) | |
5223 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5224 | */dev/null*) | |
5225 | lt_cv_path_NM="$tmp_nm -p" | |
5226 | break | |
5227 | ;; | |
5228 | *) | |
5229 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5230 | continue # so that we can try to find one that supports BSD flags | |
5231 | ;; | |
5232 | esac | |
5233 | ;; | |
5234 | esac | |
5235 | fi | |
5236 | done | |
5237 | IFS="$lt_save_ifs" | |
5238 | done | |
5239 | : ${lt_cv_path_NM=no} | |
5240 | fi | |
5241 | fi | |
5213506e RW |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5243 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
5244 | if test "$lt_cv_path_NM" != "no"; then |
5245 | NM="$lt_cv_path_NM" | |
5246 | else | |
5247 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5248 | if test -n "$ac_tool_prefix"; then | |
5249 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5250 | do | |
5251 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5252 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5254 | $as_echo_n "checking for $ac_word... " >&6; } | |
5255 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5256 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5257 | else |
5258 | if test -n "$DUMPBIN"; then | |
5259 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5260 | else | |
5261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5262 | for as_dir in $PATH | |
5263 | do | |
5264 | IFS=$as_save_IFS | |
5265 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5266 | for ac_exec_ext in '' $ac_executable_extensions; do |
5267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5268 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 5269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5270 | break 2 |
5271 | fi | |
5272 | done | |
5213506e RW |
5273 | done |
5274 | IFS=$as_save_IFS | |
1cf3d07d SE |
5275 | |
5276 | fi | |
5277 | fi | |
5278 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5279 | if test -n "$DUMPBIN"; then | |
5213506e RW |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5281 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 5282 | else |
5213506e RW |
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5284 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5285 | fi |
5286 | ||
5213506e | 5287 | |
1cf3d07d SE |
5288 | test -n "$DUMPBIN" && break |
5289 | done | |
5290 | fi | |
5291 | if test -z "$DUMPBIN"; then | |
5292 | ac_ct_DUMPBIN=$DUMPBIN | |
5293 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5294 | do | |
5295 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5296 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5298 | $as_echo_n "checking for $ac_word... " >&6; } | |
5299 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5300 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5301 | else |
5302 | if test -n "$ac_ct_DUMPBIN"; then | |
5303 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5304 | else | |
5305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5306 | for as_dir in $PATH | |
5307 | do | |
5308 | IFS=$as_save_IFS | |
5309 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5310 | for ac_exec_ext in '' $ac_executable_extensions; do |
5311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5312 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 5313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5314 | break 2 |
5315 | fi | |
5316 | done | |
5213506e RW |
5317 | done |
5318 | IFS=$as_save_IFS | |
1cf3d07d SE |
5319 | |
5320 | fi | |
953ff289 | 5321 | fi |
1cf3d07d SE |
5322 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5323 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5325 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 5326 | else |
5213506e RW |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5328 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5329 | fi |
5330 | ||
5213506e | 5331 | |
1cf3d07d SE |
5332 | test -n "$ac_ct_DUMPBIN" && break |
5333 | done | |
1cf3d07d | 5334 | |
5213506e RW |
5335 | if test "x$ac_ct_DUMPBIN" = x; then |
5336 | DUMPBIN=":" | |
5337 | else | |
5338 | case $cross_compiling:$ac_tool_warned in | |
5339 | yes:) | |
5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5341 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5342 | ac_tool_warned=yes ;; | |
5343 | esac | |
5344 | DUMPBIN=$ac_ct_DUMPBIN | |
5345 | fi | |
1cf3d07d SE |
5346 | fi |
5347 | ||
5348 | ||
5349 | if test "$DUMPBIN" != ":"; then | |
5350 | NM="$DUMPBIN" | |
5351 | fi | |
953ff289 | 5352 | fi |
1cf3d07d SE |
5353 | test -z "$NM" && NM=nm |
5354 | ||
5355 | ||
5356 | ||
5357 | ||
5358 | ||
953ff289 | 5359 | |
5213506e RW |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5361 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5362 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5363 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5364 | else |
5365 | lt_cv_nm_interface="BSD nm" | |
5366 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5213506e | 5367 | (eval echo "\"\$as_me:5367: $ac_compile\"" >&5) |
1cf3d07d SE |
5368 | (eval "$ac_compile" 2>conftest.err) |
5369 | cat conftest.err >&5 | |
5213506e | 5370 | (eval echo "\"\$as_me:5370: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
5371 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5372 | cat conftest.err >&5 | |
5213506e | 5373 | (eval echo "\"\$as_me:5373: output\"" >&5) |
1cf3d07d SE |
5374 | cat conftest.out >&5 |
5375 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5376 | lt_cv_nm_interface="MS dumpbin" | |
5377 | fi | |
5378 | rm -f conftest* | |
5379 | fi | |
5213506e RW |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5381 | $as_echo "$lt_cv_nm_interface" >&6; } | |
953ff289 | 5382 | |
5213506e RW |
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5384 | $as_echo_n "checking whether ln -s works... " >&6; } | |
953ff289 DN |
5385 | LN_S=$as_ln_s |
5386 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5388 | $as_echo "yes" >&6; } | |
953ff289 | 5389 | else |
5213506e RW |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5391 | $as_echo "no, using $LN_S" >&6; } | |
953ff289 DN |
5392 | fi |
5393 | ||
1cf3d07d | 5394 | # find the maximum length of command line arguments |
5213506e RW |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5396 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5397 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5398 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5399 | else |
5400 | i=0 | |
5401 | teststring="ABCD" | |
5402 | ||
5403 | case $build_os in | |
5404 | msdosdjgpp*) | |
5405 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5406 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5407 | # during glob expansion). Even if it were fixed, the result of this | |
5408 | # check would be larger than it should be. | |
5409 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5410 | ;; | |
5411 | ||
5412 | gnu*) | |
5413 | # Under GNU Hurd, this test is not required because there is | |
5414 | # no limit to the length of command line arguments. | |
5415 | # Libtool will interpret -1 as no limit whatsoever | |
5416 | lt_cv_sys_max_cmd_len=-1; | |
5417 | ;; | |
5418 | ||
6b4a97ed | 5419 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
5420 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5421 | # about 5 minutes as the teststring grows exponentially. | |
5422 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5423 | # you end up with a "frozen" computer, even though with patience | |
5424 | # the test eventually succeeds (with a max line length of 256k). | |
5425 | # Instead, let's just punt: use the minimum linelength reported by | |
5426 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5427 | lt_cv_sys_max_cmd_len=8192; | |
5428 | ;; | |
5429 | ||
5430 | amigaos*) | |
5431 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5432 | # So we just punt and use a minimum line length of 8192. | |
5433 | lt_cv_sys_max_cmd_len=8192; | |
5434 | ;; | |
5435 | ||
5436 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5437 | # This has been around since 386BSD, at least. Likely further. | |
5438 | if test -x /sbin/sysctl; then | |
5439 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5440 | elif test -x /usr/sbin/sysctl; then | |
5441 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5442 | else | |
5443 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5444 | fi | |
5445 | # And add a safety zone | |
5446 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5447 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5448 | ;; | |
5449 | ||
5450 | interix*) | |
5451 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5452 | lt_cv_sys_max_cmd_len=196608 | |
5453 | ;; | |
5454 | ||
5455 | osf*) | |
5456 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5457 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5458 | # nice to cause kernel panics so lets avoid the loop below. | |
5459 | # First set a reasonable default. | |
5460 | lt_cv_sys_max_cmd_len=16384 | |
5461 | # | |
5462 | if test -x /sbin/sysconfig; then | |
5463 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5464 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5465 | esac | |
5466 | fi | |
5467 | ;; | |
5468 | sco3.2v5*) | |
5469 | lt_cv_sys_max_cmd_len=102400 | |
5470 | ;; | |
5471 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5472 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5473 | if test -n "$kargmax"; then | |
5474 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5475 | else | |
5476 | lt_cv_sys_max_cmd_len=32768 | |
5477 | fi | |
5478 | ;; | |
5479 | *) | |
6b4a97ed PG |
5480 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5481 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
5482 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5483 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5484 | else | |
5485 | # Make teststring a little bigger before we do anything with it. | |
5486 | # a 1K string should be a reasonable start. | |
5487 | for i in 1 2 3 4 5 6 7 8 ; do | |
5488 | teststring=$teststring$teststring | |
5489 | done | |
5490 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5491 | # If test is not a shell built-in, we'll probably end up computing a | |
5492 | # maximum length that is only half of the actual maximum length, but | |
5493 | # we can't tell. | |
5494 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5495 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5496 | test $i != 17 # 1/2 MB should be enough | |
5497 | do | |
5498 | i=`expr $i + 1` | |
5499 | teststring=$teststring$teststring | |
5500 | done | |
5501 | # Only check the string length outside the loop. | |
5502 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5503 | teststring= | |
5504 | # Add a significant safety factor because C++ compilers can tack on | |
5505 | # massive amounts of additional arguments before passing them to the | |
5506 | # linker. It appears as though 1/2 is a usable value. | |
5507 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5508 | fi | |
1cf3d07d SE |
5509 | ;; |
5510 | esac | |
5511 | ||
5512 | fi | |
5513 | ||
5514 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5213506e RW |
5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5516 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
1cf3d07d | 5517 | else |
5213506e RW |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5519 | $as_echo "none" >&6; } | |
1cf3d07d SE |
5520 | fi |
5521 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
1cf3d07d SE |
5528 | : ${CP="cp -f"} |
5529 | : ${MV="mv -f"} | |
5530 | : ${RM="rm -f"} | |
5531 | ||
5213506e RW |
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5533 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
5534 | # Try some XSI features |
5535 | xsi_shell=no | |
5536 | ( _lt_dummy="a/b/c" | |
5537 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6b4a97ed PG |
5538 | = c,a/b,, \ |
5539 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5540 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 5541 | && xsi_shell=yes |
5213506e RW |
5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5543 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
5544 | |
5545 | ||
5213506e RW |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5547 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
5548 | lt_shell_append=no |
5549 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5550 | >/dev/null 2>&1 \ | |
5551 | && lt_shell_append=yes | |
5213506e RW |
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5553 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
5554 | |
5555 | ||
5556 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5557 | lt_unset=unset | |
5558 | else | |
5559 | lt_unset=false | |
5560 | fi | |
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | # test EBCDIC or ASCII | |
5567 | case `echo X|tr X '\101'` in | |
5568 | A) # ASCII based system | |
5569 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5570 | lt_SP2NL='tr \040 \012' | |
5571 | lt_NL2SP='tr \015\012 \040\040' | |
5572 | ;; | |
5573 | *) # EBCDIC based system | |
5574 | lt_SP2NL='tr \100 \n' | |
5575 | lt_NL2SP='tr \r\n \100\100' | |
5576 | ;; | |
5577 | esac | |
5578 | ||
5579 | ||
5580 | ||
5581 | ||
5582 | ||
5583 | ||
5584 | ||
5585 | ||
5586 | ||
5213506e RW |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5588 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5589 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5590 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
5591 | else |
5592 | lt_cv_ld_reload_flag='-r' | |
5593 | fi | |
5213506e RW |
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5595 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
5596 | reload_flag=$lt_cv_ld_reload_flag |
5597 | case $reload_flag in | |
5598 | "" | " "*) ;; | |
5599 | *) reload_flag=" $reload_flag" ;; | |
5600 | esac | |
5601 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5602 | case $host_os in | |
5603 | darwin*) | |
5604 | if test "$GCC" = yes; then | |
5605 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5606 | else | |
5607 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5608 | fi | |
5609 | ;; | |
5610 | esac | |
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
6b4a97ed PG |
5620 | if test -n "$ac_tool_prefix"; then |
5621 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5622 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5624 | $as_echo_n "checking for $ac_word... " >&6; } | |
5625 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5626 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
5627 | else |
5628 | if test -n "$OBJDUMP"; then | |
5629 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5630 | else | |
5631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5632 | for as_dir in $PATH | |
5633 | do | |
5634 | IFS=$as_save_IFS | |
5635 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5636 | for ac_exec_ext in '' $ac_executable_extensions; do |
5637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 5638 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 5639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
5640 | break 2 |
5641 | fi | |
5642 | done | |
5213506e RW |
5643 | done |
5644 | IFS=$as_save_IFS | |
6b4a97ed PG |
5645 | |
5646 | fi | |
5647 | fi | |
5648 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5649 | if test -n "$OBJDUMP"; then | |
5213506e RW |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5651 | $as_echo "$OBJDUMP" >&6; } | |
6b4a97ed | 5652 | else |
5213506e RW |
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5654 | $as_echo "no" >&6; } | |
6b4a97ed PG |
5655 | fi |
5656 | ||
5213506e | 5657 | |
6b4a97ed PG |
5658 | fi |
5659 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5660 | ac_ct_OBJDUMP=$OBJDUMP | |
5661 | # Extract the first word of "objdump", so it can be a program name with args. | |
5662 | set dummy objdump; ac_word=$2 | |
5213506e RW |
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5664 | $as_echo_n "checking for $ac_word... " >&6; } | |
5665 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5666 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
5667 | else |
5668 | if test -n "$ac_ct_OBJDUMP"; then | |
5669 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5670 | else | |
5671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5672 | for as_dir in $PATH | |
5673 | do | |
5674 | IFS=$as_save_IFS | |
5675 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5676 | for ac_exec_ext in '' $ac_executable_extensions; do |
5677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 5678 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 5679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
5680 | break 2 |
5681 | fi | |
5682 | done | |
5213506e RW |
5683 | done |
5684 | IFS=$as_save_IFS | |
6b4a97ed | 5685 | |
6b4a97ed PG |
5686 | fi |
5687 | fi | |
5688 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5689 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5691 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6b4a97ed | 5692 | else |
5213506e RW |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5694 | $as_echo "no" >&6; } | |
6b4a97ed PG |
5695 | fi |
5696 | ||
5213506e RW |
5697 | if test "x$ac_ct_OBJDUMP" = x; then |
5698 | OBJDUMP="false" | |
5699 | else | |
5700 | case $cross_compiling:$ac_tool_warned in | |
5701 | yes:) | |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5703 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5704 | ac_tool_warned=yes ;; | |
5705 | esac | |
5706 | OBJDUMP=$ac_ct_OBJDUMP | |
5707 | fi | |
6b4a97ed PG |
5708 | else |
5709 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5710 | fi | |
5711 | ||
5712 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5713 | ||
5714 | ||
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
1cf3d07d | 5721 | |
5213506e RW |
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5723 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5724 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
5725 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
5726 | else |
5727 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5728 | lt_cv_file_magic_test_file= | |
5729 | lt_cv_deplibs_check_method='unknown' | |
5730 | # Need to set the preceding variable on all platforms that support | |
5731 | # interlibrary dependencies. | |
5732 | # 'none' -- dependencies not supported. | |
5733 | # `unknown' -- same as none, but documents that we really don't know. | |
5734 | # 'pass_all' -- all dependencies passed with no checks. | |
5735 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
5736 | # 'file_magic [[regex]]' -- check by looking for files in library path |
5737 | # which responds to the $file_magic_cmd with a given extended regex. | |
953ff289 DN |
5738 | # If you have `file' or equivalent on your system and you're not sure |
5739 | # whether `pass_all' will *always* work, you probably want this one. | |
5740 | ||
5741 | case $host_os in | |
d653fdfb | 5742 | aix[4-9]*) |
953ff289 DN |
5743 | lt_cv_deplibs_check_method=pass_all |
5744 | ;; | |
5745 | ||
5746 | beos*) | |
5747 | lt_cv_deplibs_check_method=pass_all | |
5748 | ;; | |
5749 | ||
1cf3d07d | 5750 | bsdi[45]*) |
953ff289 DN |
5751 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5752 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5753 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5754 | ;; | |
5755 | ||
1cf3d07d SE |
5756 | cygwin*) |
5757 | # func_win32_libid is a shell function defined in ltmain.sh | |
5758 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5759 | lt_cv_file_magic_cmd='func_win32_libid' | |
5760 | ;; | |
5761 | ||
5762 | mingw* | pw32*) | |
5763 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5764 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5765 | # unless we find 'file', for example because we are cross-compiling. | |
5766 | if ( file / ) >/dev/null 2>&1; then | |
5767 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5768 | lt_cv_file_magic_cmd='func_win32_libid' | |
5769 | else | |
5770 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5771 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5772 | fi | |
953ff289 DN |
5773 | ;; |
5774 | ||
6b4a97ed PG |
5775 | cegcc) |
5776 | # use the weaker test based on 'objdump'. See mingw*. | |
5777 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5778 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5779 | ;; | |
5780 | ||
953ff289 | 5781 | darwin* | rhapsody*) |
953ff289 DN |
5782 | lt_cv_deplibs_check_method=pass_all |
5783 | ;; | |
5784 | ||
1cf3d07d SE |
5785 | freebsd* | dragonfly*) |
5786 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
953ff289 DN |
5787 | case $host_cpu in |
5788 | i*86 ) | |
5789 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5790 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 5791 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
953ff289 DN |
5792 | lt_cv_file_magic_cmd=/usr/bin/file |
5793 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5794 | ;; | |
5795 | esac | |
5796 | else | |
5797 | lt_cv_deplibs_check_method=pass_all | |
5798 | fi | |
5799 | ;; | |
5800 | ||
5801 | gnu*) | |
5802 | lt_cv_deplibs_check_method=pass_all | |
5803 | ;; | |
5804 | ||
1cf3d07d SE |
5805 | hpux10.20* | hpux11*) |
5806 | lt_cv_file_magic_cmd=/usr/bin/file | |
953ff289 | 5807 | case $host_cpu in |
953ff289 DN |
5808 | ia64*) |
5809 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
953ff289 DN |
5810 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5811 | ;; | |
1cf3d07d SE |
5812 | hppa*64*) |
5813 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
5814 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
953ff289 DN |
5815 | ;; |
5816 | *) | |
1cf3d07d SE |
5817 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
5818 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
953ff289 DN |
5819 | ;; |
5820 | esac | |
1cf3d07d SE |
5821 | ;; |
5822 | ||
5823 | interix[3-9]*) | |
5824 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5825 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5826 | ;; | |
5827 | ||
5828 | irix5* | irix6* | nonstopux*) | |
5829 | case $LD in | |
5830 | *-32|*"-32 ") libmagic=32-bit;; | |
5831 | *-n32|*"-n32 ") libmagic=N32;; | |
5832 | *-64|*"-64 ") libmagic=64-bit;; | |
5833 | *) libmagic=never-match;; | |
5834 | esac | |
953ff289 DN |
5835 | lt_cv_deplibs_check_method=pass_all |
5836 | ;; | |
5837 | ||
5838 | # This must be Linux ELF. | |
7a9d3fe8 | 5839 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
953ff289 DN |
5840 | lt_cv_deplibs_check_method=pass_all |
5841 | ;; | |
5842 | ||
1cf3d07d SE |
5843 | netbsd*) |
5844 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5845 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
953ff289 | 5846 | else |
1cf3d07d | 5847 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
953ff289 DN |
5848 | fi |
5849 | ;; | |
5850 | ||
1cf3d07d | 5851 | newos6*) |
953ff289 DN |
5852 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5853 | lt_cv_file_magic_cmd=/usr/bin/file | |
5854 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5855 | ;; | |
5856 | ||
1cf3d07d SE |
5857 | *nto* | *qnx*) |
5858 | lt_cv_deplibs_check_method=pass_all | |
5859 | ;; | |
5860 | ||
5861 | openbsd*) | |
5862 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5863 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5864 | else | |
5865 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5866 | fi | |
5867 | ;; | |
5868 | ||
953ff289 | 5869 | osf3* | osf4* | osf5*) |
953ff289 DN |
5870 | lt_cv_deplibs_check_method=pass_all |
5871 | ;; | |
5872 | ||
1cf3d07d | 5873 | rdos*) |
953ff289 DN |
5874 | lt_cv_deplibs_check_method=pass_all |
5875 | ;; | |
5876 | ||
5877 | solaris*) | |
5878 | lt_cv_deplibs_check_method=pass_all | |
953ff289 DN |
5879 | ;; |
5880 | ||
1cf3d07d | 5881 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
953ff289 DN |
5882 | lt_cv_deplibs_check_method=pass_all |
5883 | ;; | |
5884 | ||
1cf3d07d | 5885 | sysv4 | sysv4.3*) |
953ff289 | 5886 | case $host_vendor in |
953ff289 DN |
5887 | motorola) |
5888 | 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]' | |
5889 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5890 | ;; | |
1cf3d07d SE |
5891 | ncr) |
5892 | lt_cv_deplibs_check_method=pass_all | |
5893 | ;; | |
5894 | sequent) | |
5895 | lt_cv_file_magic_cmd='/bin/file' | |
5896 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5897 | ;; | |
5898 | sni) | |
5899 | lt_cv_file_magic_cmd='/bin/file' | |
5900 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5901 | lt_cv_file_magic_test_file=/lib/libc.so | |
5902 | ;; | |
5903 | siemens) | |
5904 | lt_cv_deplibs_check_method=pass_all | |
5905 | ;; | |
5906 | pc) | |
5907 | lt_cv_deplibs_check_method=pass_all | |
5908 | ;; | |
953ff289 DN |
5909 | esac |
5910 | ;; | |
1cf3d07d SE |
5911 | |
5912 | tpf*) | |
5913 | lt_cv_deplibs_check_method=pass_all | |
5914 | ;; | |
953ff289 DN |
5915 | esac |
5916 | ||
5917 | fi | |
5213506e RW |
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5919 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
953ff289 DN |
5920 | file_magic_cmd=$lt_cv_file_magic_cmd |
5921 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 5922 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
953ff289 DN |
5923 | |
5924 | ||
5925 | ||
5926 | ||
5927 | ||
953ff289 | 5928 | |
953ff289 | 5929 | |
953ff289 | 5930 | |
953ff289 | 5931 | |
953ff289 | 5932 | |
953ff289 | 5933 | |
953ff289 DN |
5934 | |
5935 | if test -n "$ac_tool_prefix"; then | |
1cf3d07d SE |
5936 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5937 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5939 | $as_echo_n "checking for $ac_word... " >&6; } | |
5940 | if test "${ac_cv_prog_AR+set}" = set; then : | |
5941 | $as_echo_n "(cached) " >&6 | |
953ff289 | 5942 | else |
1cf3d07d SE |
5943 | if test -n "$AR"; then |
5944 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
953ff289 DN |
5945 | else |
5946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5947 | for as_dir in $PATH | |
5948 | do | |
5949 | IFS=$as_save_IFS | |
5950 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5951 | for ac_exec_ext in '' $ac_executable_extensions; do |
5952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5953 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 5954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
5955 | break 2 |
5956 | fi | |
5957 | done | |
5213506e RW |
5958 | done |
5959 | IFS=$as_save_IFS | |
953ff289 DN |
5960 | |
5961 | fi | |
5962 | fi | |
1cf3d07d SE |
5963 | AR=$ac_cv_prog_AR |
5964 | if test -n "$AR"; then | |
5213506e RW |
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5966 | $as_echo "$AR" >&6; } | |
953ff289 | 5967 | else |
5213506e RW |
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5969 | $as_echo "no" >&6; } | |
953ff289 DN |
5970 | fi |
5971 | ||
5213506e | 5972 | |
953ff289 | 5973 | fi |
1cf3d07d SE |
5974 | if test -z "$ac_cv_prog_AR"; then |
5975 | ac_ct_AR=$AR | |
5976 | # Extract the first word of "ar", so it can be a program name with args. | |
5977 | set dummy ar; ac_word=$2 | |
5213506e RW |
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5979 | $as_echo_n "checking for $ac_word... " >&6; } | |
5980 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
5981 | $as_echo_n "(cached) " >&6 | |
953ff289 | 5982 | else |
1cf3d07d SE |
5983 | if test -n "$ac_ct_AR"; then |
5984 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
953ff289 DN |
5985 | else |
5986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5987 | for as_dir in $PATH | |
5988 | do | |
5989 | IFS=$as_save_IFS | |
5990 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5991 | for ac_exec_ext in '' $ac_executable_extensions; do |
5992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 5993 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 5994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
5995 | break 2 |
5996 | fi | |
5997 | done | |
5213506e RW |
5998 | done |
5999 | IFS=$as_save_IFS | |
953ff289 | 6000 | |
953ff289 DN |
6001 | fi |
6002 | fi | |
1cf3d07d SE |
6003 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6004 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6006 | $as_echo "$ac_ct_AR" >&6; } | |
953ff289 | 6007 | else |
5213506e RW |
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6009 | $as_echo "no" >&6; } | |
953ff289 DN |
6010 | fi |
6011 | ||
5213506e RW |
6012 | if test "x$ac_ct_AR" = x; then |
6013 | AR="false" | |
6014 | else | |
6015 | case $cross_compiling:$ac_tool_warned in | |
6016 | yes:) | |
6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6018 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6019 | ac_tool_warned=yes ;; | |
6020 | esac | |
6021 | AR=$ac_ct_AR | |
6022 | fi | |
953ff289 | 6023 | else |
1cf3d07d | 6024 | AR="$ac_cv_prog_AR" |
953ff289 DN |
6025 | fi |
6026 | ||
1cf3d07d SE |
6027 | test -z "$AR" && AR=ar |
6028 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6029 | ||
6030 | ||
6031 | ||
6032 | ||
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
953ff289 DN |
6040 | if test -n "$ac_tool_prefix"; then |
6041 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6042 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6044 | $as_echo_n "checking for $ac_word... " >&6; } | |
6045 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6046 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
6047 | else |
6048 | if test -n "$STRIP"; then | |
6049 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6050 | else | |
6051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6052 | for as_dir in $PATH | |
6053 | do | |
6054 | IFS=$as_save_IFS | |
6055 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6056 | for ac_exec_ext in '' $ac_executable_extensions; do |
6057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 6058 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 6059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6060 | break 2 |
6061 | fi | |
6062 | done | |
5213506e RW |
6063 | done |
6064 | IFS=$as_save_IFS | |
953ff289 DN |
6065 | |
6066 | fi | |
6067 | fi | |
6068 | STRIP=$ac_cv_prog_STRIP | |
6069 | if test -n "$STRIP"; then | |
5213506e RW |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6071 | $as_echo "$STRIP" >&6; } | |
953ff289 | 6072 | else |
5213506e RW |
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6074 | $as_echo "no" >&6; } | |
953ff289 DN |
6075 | fi |
6076 | ||
5213506e | 6077 | |
953ff289 DN |
6078 | fi |
6079 | if test -z "$ac_cv_prog_STRIP"; then | |
6080 | ac_ct_STRIP=$STRIP | |
6081 | # Extract the first word of "strip", so it can be a program name with args. | |
6082 | set dummy strip; ac_word=$2 | |
5213506e RW |
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6084 | $as_echo_n "checking for $ac_word... " >&6; } | |
6085 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6086 | $as_echo_n "(cached) " >&6 | |
953ff289 DN |
6087 | else |
6088 | if test -n "$ac_ct_STRIP"; then | |
6089 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6090 | else | |
6091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6092 | for as_dir in $PATH | |
6093 | do | |
6094 | IFS=$as_save_IFS | |
6095 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6096 | for ac_exec_ext in '' $ac_executable_extensions; do |
6097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
953ff289 | 6098 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 6099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6100 | break 2 |
6101 | fi | |
6102 | done | |
5213506e RW |
6103 | done |
6104 | IFS=$as_save_IFS | |
953ff289 | 6105 | |
953ff289 DN |
6106 | fi |
6107 | fi | |
6108 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6109 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6111 | $as_echo "$ac_ct_STRIP" >&6; } | |
953ff289 | 6112 | else |
5213506e RW |
6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6114 | $as_echo "no" >&6; } | |
953ff289 DN |
6115 | fi |
6116 | ||
5213506e RW |
6117 | if test "x$ac_ct_STRIP" = x; then |
6118 | STRIP=":" | |
6119 | else | |
6120 | case $cross_compiling:$ac_tool_warned in | |
6121 | yes:) | |
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6123 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6124 | ac_tool_warned=yes ;; | |
6125 | esac | |
6126 | STRIP=$ac_ct_STRIP | |
6127 | fi | |
953ff289 DN |
6128 | else |
6129 | STRIP="$ac_cv_prog_STRIP" | |
6130 | fi | |
6131 | ||
1cf3d07d | 6132 | test -z "$STRIP" && STRIP=: |
953ff289 DN |
6133 | |
6134 | ||
953ff289 | 6135 | |
953ff289 DN |
6136 | |
6137 | ||
953ff289 | 6138 | |
1cf3d07d SE |
6139 | if test -n "$ac_tool_prefix"; then |
6140 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6141 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6143 | $as_echo_n "checking for $ac_word... " >&6; } | |
6144 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6145 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
6146 | else |
6147 | if test -n "$RANLIB"; then | |
6148 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6149 | else | |
6150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6151 | for as_dir in $PATH | |
6152 | do | |
6153 | IFS=$as_save_IFS | |
6154 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6155 | for ac_exec_ext in '' $ac_executable_extensions; do |
6156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 6157 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 6158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
6159 | break 2 |
6160 | fi | |
6161 | done | |
5213506e RW |
6162 | done |
6163 | IFS=$as_save_IFS | |
1cf3d07d SE |
6164 | |
6165 | fi | |
6166 | fi | |
6167 | RANLIB=$ac_cv_prog_RANLIB | |
6168 | if test -n "$RANLIB"; then | |
5213506e RW |
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6170 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 6171 | else |
5213506e RW |
6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6173 | $as_echo "no" >&6; } | |
1cf3d07d SE |
6174 | fi |
6175 | ||
5213506e | 6176 | |
1cf3d07d SE |
6177 | fi |
6178 | if test -z "$ac_cv_prog_RANLIB"; then | |
6179 | ac_ct_RANLIB=$RANLIB | |
6180 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6181 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6183 | $as_echo_n "checking for $ac_word... " >&6; } | |
6184 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6185 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
6186 | else |
6187 | if test -n "$ac_ct_RANLIB"; then | |
6188 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6189 | else | |
6190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6191 | for as_dir in $PATH | |
6192 | do | |
6193 | IFS=$as_save_IFS | |
6194 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6195 | for ac_exec_ext in '' $ac_executable_extensions; do |
6196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 6197 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 6198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
6199 | break 2 |
6200 | fi | |
6201 | done | |
5213506e RW |
6202 | done |
6203 | IFS=$as_save_IFS | |
1cf3d07d | 6204 | |
1cf3d07d SE |
6205 | fi |
6206 | fi | |
6207 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6208 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
6209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6210 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 6211 | else |
5213506e RW |
6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6213 | $as_echo "no" >&6; } | |
1cf3d07d SE |
6214 | fi |
6215 | ||
5213506e RW |
6216 | if test "x$ac_ct_RANLIB" = x; then |
6217 | RANLIB=":" | |
6218 | else | |
6219 | case $cross_compiling:$ac_tool_warned in | |
6220 | yes:) | |
6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6222 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6223 | ac_tool_warned=yes ;; | |
6224 | esac | |
6225 | RANLIB=$ac_ct_RANLIB | |
6226 | fi | |
1cf3d07d SE |
6227 | else |
6228 | RANLIB="$ac_cv_prog_RANLIB" | |
6229 | fi | |
6230 | ||
6231 | test -z "$RANLIB" && RANLIB=: | |
6232 | ||
6233 | ||
6234 | ||
6235 | ||
6236 | ||
6237 | ||
6238 | # Determine commands to create old-style static archives. | |
6b4a97ed | 6239 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
6240 | old_postinstall_cmds='chmod 644 $oldlib' |
6241 | old_postuninstall_cmds= | |
6242 | ||
6243 | if test -n "$RANLIB"; then | |
6244 | case $host_os in | |
6245 | openbsd*) | |
6246 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6247 | ;; | |
6248 | *) | |
6249 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6250 | ;; | |
6251 | esac | |
6252 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6253 | fi | |
6254 | ||
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | ||
6260 | ||
6261 | ||
6262 | ||
6263 | ||
6264 | ||
6265 | ||
6266 | ||
6267 | ||
6268 | ||
6269 | ||
6270 | ||
6271 | ||
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | ||
6278 | ||
6279 | ||
6280 | ||
6281 | ||
6282 | ||
6283 | ||
6284 | ||
6285 | ||
6286 | ||
6287 | ||
6288 | # If no C compiler was specified, use CC. | |
6289 | LTCC=${LTCC-"$CC"} | |
6290 | ||
6291 | # If no C compiler flags were specified, use CFLAGS. | |
6292 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6293 | ||
6294 | # Allow CC to be a program name with arguments. | |
6295 | compiler=$CC | |
6296 | ||
6297 | ||
6298 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6300 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6301 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6302 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
6303 | else |
6304 | ||
6305 | # These are sane defaults that work on at least a few old systems. | |
6306 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6307 | ||
6308 | # Character class describing NM global symbol codes. | |
6309 | symcode='[BCDEGRST]' | |
6310 | ||
6311 | # Regexp to match symbols that can be accessed directly from C. | |
6312 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6313 | ||
6314 | # Define system-specific variables. | |
6315 | case $host_os in | |
6316 | aix*) | |
6317 | symcode='[BCDT]' | |
6318 | ;; | |
6b4a97ed | 6319 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
6320 | symcode='[ABCDGISTW]' |
6321 | ;; | |
6322 | hpux*) | |
6323 | if test "$host_cpu" = ia64; then | |
6324 | symcode='[ABCDEGRST]' | |
6325 | fi | |
6326 | ;; | |
6327 | irix* | nonstopux*) | |
6328 | symcode='[BCDEGRST]' | |
6329 | ;; | |
6330 | osf*) | |
6331 | symcode='[BCDEGQRST]' | |
6332 | ;; | |
6333 | solaris*) | |
6334 | symcode='[BDRT]' | |
6335 | ;; | |
6336 | sco3.2v5*) | |
6337 | symcode='[DT]' | |
6338 | ;; | |
6339 | sysv4.2uw2*) | |
6340 | symcode='[DT]' | |
6341 | ;; | |
6342 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6343 | symcode='[ABDT]' | |
6344 | ;; | |
6345 | sysv4) | |
6346 | symcode='[DFNSTU]' | |
6347 | ;; | |
6348 | esac | |
6349 | ||
6350 | # If we're using GNU nm, then use its standard symbol codes. | |
6351 | case `$NM -V 2>&1` in | |
6352 | *GNU* | *'with BFD'*) | |
6353 | symcode='[ABCDGIRSTW]' ;; | |
6354 | esac | |
6355 | ||
6356 | # Transform an extracted symbol line into a proper C declaration. | |
6357 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6358 | # so use this general approach. | |
6359 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6360 | ||
6361 | # Transform an extracted symbol line into symbol name and symbol address | |
6362 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6b4a97ed | 6363 | 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'" |
1cf3d07d SE |
6364 | |
6365 | # Handle CRLF in mingw tool chain | |
6366 | opt_cr= | |
6367 | case $build_os in | |
6368 | mingw*) | |
6369 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6370 | ;; | |
6371 | esac | |
6372 | ||
6373 | # Try without a prefix underscore, then with it. | |
6374 | for ac_symprfx in "" "_"; do | |
6375 | ||
6376 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6377 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6378 | ||
6379 | # Write the raw and C identifiers. | |
6380 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6381 | # Fake it for dumpbin and say T for any non-static function | |
6382 | # and D for any global variable. | |
6383 | # Also find C++ and __fastcall symbols from MSVC++, | |
6384 | # which start with @ or ?. | |
6385 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6386 | " {last_section=section; section=\$ 3};"\ | |
6387 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6388 | " \$ 0!~/External *\|/{next};"\ | |
6389 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6390 | " {if(hide[section]) next};"\ | |
6391 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6392 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6393 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6394 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6395 | " ' prfx=^$ac_symprfx" | |
6396 | else | |
6397 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6398 | fi | |
6399 | ||
6400 | # Check to see that the pipe works correctly. | |
6401 | pipe_works=no | |
6402 | ||
6403 | rm -f conftest* | |
6404 | cat > conftest.$ac_ext <<_LT_EOF | |
6405 | #ifdef __cplusplus | |
6406 | extern "C" { | |
6407 | #endif | |
6408 | char nm_test_var; | |
6409 | void nm_test_func(void); | |
6410 | void nm_test_func(void){} | |
6411 | #ifdef __cplusplus | |
6412 | } | |
6413 | #endif | |
6414 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6415 | _LT_EOF | |
6416 | ||
5213506e | 6417 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6418 | (eval $ac_compile) 2>&5 |
6419 | ac_status=$? | |
5213506e RW |
6420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6421 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6422 | # Now try to grab the symbols. |
6423 | nlist=conftest.nm | |
5213506e | 6424 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
1cf3d07d SE |
6425 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6426 | ac_status=$? | |
5213506e RW |
6427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6428 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
6429 | # Try sorting and uniquifying the output. |
6430 | if sort "$nlist" | uniq > "$nlist"T; then | |
6431 | mv -f "$nlist"T "$nlist" | |
6432 | else | |
6433 | rm -f "$nlist"T | |
6434 | fi | |
6435 | ||
6436 | # Make sure that we snagged all the symbols we need. | |
6437 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6438 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6439 | cat <<_LT_EOF > conftest.$ac_ext | |
6440 | #ifdef __cplusplus | |
6441 | extern "C" { | |
6442 | #endif | |
6443 | ||
6444 | _LT_EOF | |
6445 | # Now generate the symbol file. | |
6446 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6447 | ||
6448 | cat <<_LT_EOF >> conftest.$ac_ext | |
6449 | ||
6450 | /* The mapping between symbol names and symbols. */ | |
6451 | const struct { | |
6452 | const char *name; | |
6453 | void *address; | |
6454 | } | |
6455 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6456 | { | |
6457 | { "@PROGRAM@", (void *) 0 }, | |
6458 | _LT_EOF | |
6459 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6460 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6461 | {0, (void *) 0} | |
6462 | }; | |
6463 | ||
6464 | /* This works around a problem in FreeBSD linker */ | |
6465 | #ifdef FREEBSD_WORKAROUND | |
6466 | static const void *lt_preloaded_setup() { | |
6467 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6468 | } | |
6469 | #endif | |
6470 | ||
6471 | #ifdef __cplusplus | |
6472 | } | |
6473 | #endif | |
6474 | _LT_EOF | |
6475 | # Now try linking the two files. | |
6476 | mv conftest.$ac_objext conftstm.$ac_objext | |
6477 | lt_save_LIBS="$LIBS" | |
6478 | lt_save_CFLAGS="$CFLAGS" | |
6479 | LIBS="conftstm.$ac_objext" | |
6480 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 6481 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
6482 | (eval $ac_link) 2>&5 |
6483 | ac_status=$? | |
5213506e RW |
6484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6485 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
6486 | pipe_works=yes |
6487 | fi | |
6488 | LIBS="$lt_save_LIBS" | |
6489 | CFLAGS="$lt_save_CFLAGS" | |
6490 | else | |
6491 | echo "cannot find nm_test_func in $nlist" >&5 | |
6492 | fi | |
6493 | else | |
6494 | echo "cannot find nm_test_var in $nlist" >&5 | |
6495 | fi | |
6496 | else | |
6497 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6498 | fi | |
6499 | else | |
6500 | echo "$progname: failed program was:" >&5 | |
6501 | cat conftest.$ac_ext >&5 | |
6502 | fi | |
6b4a97ed | 6503 | rm -rf conftest* conftst* |
1cf3d07d SE |
6504 | |
6505 | # Do not use the global_symbol_pipe unless it works. | |
6506 | if test "$pipe_works" = yes; then | |
6507 | break | |
6508 | else | |
6509 | lt_cv_sys_global_symbol_pipe= | |
6510 | fi | |
6511 | done | |
6512 | ||
6513 | fi | |
6514 | ||
6515 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6516 | lt_cv_sys_global_symbol_to_cdecl= | |
6517 | fi | |
6518 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6520 | $as_echo "failed" >&6; } | |
1cf3d07d | 6521 | else |
5213506e RW |
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6523 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
6524 | fi |
6525 | ||
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6b4a97ed PG |
6540 | |
6541 | ||
6542 | ||
6543 | ||
6544 | ||
1cf3d07d SE |
6545 | |
6546 | ||
6547 | ||
5213506e RW |
6548 | # Check whether --enable-libtool-lock was given. |
6549 | if test "${enable_libtool_lock+set}" = set; then : | |
6550 | enableval=$enable_libtool_lock; | |
6551 | fi | |
1cf3d07d | 6552 | |
1cf3d07d SE |
6553 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6554 | ||
6555 | # Some flags need to be propagated to the compiler or linker for good | |
953ff289 DN |
6556 | # libtool support. |
6557 | case $host in | |
1cf3d07d | 6558 | ia64-*-hpux*) |
953ff289 | 6559 | # Find out which ABI we are using. |
1cf3d07d | 6560 | echo 'int i;' > conftest.$ac_ext |
5213506e | 6561 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
953ff289 DN |
6562 | (eval $ac_compile) 2>&5 |
6563 | ac_status=$? | |
5213506e RW |
6564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6565 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6566 | case `/usr/bin/file conftest.$ac_objext` in |
6567 | *ELF-32*) | |
6568 | HPUX_IA64_MODE="32" | |
6569 | ;; | |
6570 | *ELF-64*) | |
6571 | HPUX_IA64_MODE="64" | |
6572 | ;; | |
6573 | esac | |
6574 | fi | |
6575 | rm -rf conftest* | |
6576 | ;; | |
6577 | *-*-irix6*) | |
6578 | # Find out which ABI we are using. | |
5213506e RW |
6579 | echo '#line 6579 "configure"' > conftest.$ac_ext |
6580 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
1cf3d07d SE |
6581 | (eval $ac_compile) 2>&5 |
6582 | ac_status=$? | |
5213506e RW |
6583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6584 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6585 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6586 | case `/usr/bin/file conftest.$ac_objext` in | |
6587 | *32-bit*) | |
6588 | LD="${LD-ld} -melf32bsmip" | |
6589 | ;; | |
6590 | *N32*) | |
6591 | LD="${LD-ld} -melf32bmipn32" | |
6592 | ;; | |
6593 | *64-bit*) | |
6594 | LD="${LD-ld} -melf64bmip" | |
6595 | ;; | |
6596 | esac | |
6597 | else | |
6598 | case `/usr/bin/file conftest.$ac_objext` in | |
6599 | *32-bit*) | |
6600 | LD="${LD-ld} -32" | |
6601 | ;; | |
6602 | *N32*) | |
6603 | LD="${LD-ld} -n32" | |
6604 | ;; | |
6605 | *64-bit*) | |
6606 | LD="${LD-ld} -64" | |
6607 | ;; | |
6608 | esac | |
6609 | fi | |
6610 | fi | |
6611 | rm -rf conftest* | |
6612 | ;; | |
6613 | ||
6614 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6615 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6616 | # Find out which ABI we are using. | |
6617 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6618 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6619 | (eval $ac_compile) 2>&5 |
6620 | ac_status=$? | |
5213506e RW |
6621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6622 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6623 | case `/usr/bin/file conftest.o` in |
6624 | *32-bit*) | |
6625 | case $host in | |
6626 | x86_64-*kfreebsd*-gnu) | |
6627 | LD="${LD-ld} -m elf_i386_fbsd" | |
6628 | ;; | |
6629 | x86_64-*linux*) | |
6630 | LD="${LD-ld} -m elf_i386" | |
6631 | ;; | |
6632 | ppc64-*linux*|powerpc64-*linux*) | |
6633 | LD="${LD-ld} -m elf32ppclinux" | |
6634 | ;; | |
6635 | s390x-*linux*) | |
6636 | LD="${LD-ld} -m elf_s390" | |
6637 | ;; | |
6638 | sparc64-*linux*) | |
6639 | LD="${LD-ld} -m elf32_sparc" | |
6640 | ;; | |
6641 | esac | |
6642 | ;; | |
6643 | *64-bit*) | |
6644 | case $host in | |
6645 | x86_64-*kfreebsd*-gnu) | |
6646 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6647 | ;; | |
6648 | x86_64-*linux*) | |
6649 | LD="${LD-ld} -m elf_x86_64" | |
6650 | ;; | |
6651 | ppc*-*linux*|powerpc*-*linux*) | |
6652 | LD="${LD-ld} -m elf64ppc" | |
6653 | ;; | |
6654 | s390*-*linux*|s390*-*tpf*) | |
6655 | LD="${LD-ld} -m elf64_s390" | |
6656 | ;; | |
6657 | sparc*-*linux*) | |
6658 | LD="${LD-ld} -m elf64_sparc" | |
6659 | ;; | |
6660 | esac | |
6661 | ;; | |
6662 | esac | |
6663 | fi | |
6664 | rm -rf conftest* | |
6665 | ;; | |
6666 | ||
6667 | *-*-sco3.2v5*) | |
6668 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6669 | SAVE_CFLAGS="$CFLAGS" | |
6670 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6672 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6673 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6674 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
6675 | else |
6676 | ac_ext=c | |
6677 | ac_cpp='$CPP $CPPFLAGS' | |
6678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6681 | ||
5213506e | 6682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
6683 | /* end confdefs.h. */ |
6684 | ||
6685 | int | |
6686 | main () | |
6687 | { | |
6688 | ||
6689 | ; | |
6690 | return 0; | |
6691 | } | |
6692 | _ACEOF | |
5213506e | 6693 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
6694 | lt_cv_cc_needs_belf=yes |
6695 | else | |
5213506e | 6696 | lt_cv_cc_needs_belf=no |
1cf3d07d | 6697 | fi |
5213506e RW |
6698 | rm -f core conftest.err conftest.$ac_objext \ |
6699 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
6700 | ac_ext=c |
6701 | ac_cpp='$CPP $CPPFLAGS' | |
6702 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6703 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6704 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6705 | ||
6706 | fi | |
5213506e RW |
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6708 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
1cf3d07d SE |
6709 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6710 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6711 | CFLAGS="$SAVE_CFLAGS" | |
6712 | fi | |
6713 | ;; | |
6714 | sparc*-*solaris*) | |
6715 | # Find out which ABI we are using. | |
6716 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6717 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6718 | (eval $ac_compile) 2>&5 |
6719 | ac_status=$? | |
5213506e RW |
6720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6721 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6722 | case `/usr/bin/file conftest.o` in |
6723 | *64-bit*) | |
6724 | case $lt_cv_prog_gnu_ld in | |
6725 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6b4a97ed PG |
6726 | *) |
6727 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6728 | LD="${LD-ld} -64" | |
6729 | fi | |
6730 | ;; | |
1cf3d07d SE |
6731 | esac |
6732 | ;; | |
6733 | esac | |
6734 | fi | |
6735 | rm -rf conftest* | |
6736 | ;; | |
6737 | esac | |
6738 | ||
6739 | need_locks="$enable_libtool_lock" | |
6740 | ||
6b4a97ed PG |
6741 | |
6742 | case $host_os in | |
6743 | rhapsody* | darwin*) | |
6744 | if test -n "$ac_tool_prefix"; then | |
6745 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6746 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6748 | $as_echo_n "checking for $ac_word... " >&6; } | |
6749 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
6750 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 6751 | else |
6b4a97ed PG |
6752 | if test -n "$DSYMUTIL"; then |
6753 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6754 | else | |
6755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6756 | for as_dir in $PATH | |
1cf3d07d | 6757 | do |
6b4a97ed PG |
6758 | IFS=$as_save_IFS |
6759 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6760 | for ac_exec_ext in '' $ac_executable_extensions; do |
6761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 6762 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 6763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed | 6764 | break 2 |
1cf3d07d | 6765 | fi |
6b4a97ed | 6766 | done |
5213506e RW |
6767 | done |
6768 | IFS=$as_save_IFS | |
6b4a97ed PG |
6769 | |
6770 | fi | |
6771 | fi | |
6772 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6773 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
6775 | $as_echo "$DSYMUTIL" >&6; } | |
6b4a97ed | 6776 | else |
5213506e RW |
6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6778 | $as_echo "no" >&6; } | |
6b4a97ed PG |
6779 | fi |
6780 | ||
5213506e | 6781 | |
6b4a97ed PG |
6782 | fi |
6783 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6784 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6785 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6786 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6788 | $as_echo_n "checking for $ac_word... " >&6; } | |
6789 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
6790 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
6791 | else |
6792 | if test -n "$ac_ct_DSYMUTIL"; then | |
6793 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6794 | else | |
6795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6796 | for as_dir in $PATH | |
6797 | do | |
6798 | IFS=$as_save_IFS | |
6799 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6800 | for ac_exec_ext in '' $ac_executable_extensions; do |
6801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 6802 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 6803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
6804 | break 2 |
6805 | fi | |
6806 | done | |
5213506e RW |
6807 | done |
6808 | IFS=$as_save_IFS | |
6b4a97ed | 6809 | |
6b4a97ed PG |
6810 | fi |
6811 | fi | |
6812 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6813 | if test -n "$ac_ct_DSYMUTIL"; then | |
5213506e RW |
6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
6815 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6b4a97ed | 6816 | else |
5213506e RW |
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6818 | $as_echo "no" >&6; } | |
6b4a97ed PG |
6819 | fi |
6820 | ||
5213506e RW |
6821 | if test "x$ac_ct_DSYMUTIL" = x; then |
6822 | DSYMUTIL=":" | |
6823 | else | |
6824 | case $cross_compiling:$ac_tool_warned in | |
6825 | yes:) | |
6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6827 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6828 | ac_tool_warned=yes ;; | |
6829 | esac | |
6830 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6831 | fi | |
6b4a97ed PG |
6832 | else |
6833 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6834 | fi | |
6835 | ||
6836 | if test -n "$ac_tool_prefix"; then | |
6837 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6838 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6840 | $as_echo_n "checking for $ac_word... " >&6; } | |
6841 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
6842 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
6843 | else |
6844 | if test -n "$NMEDIT"; then | |
6845 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6846 | else | |
6847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6848 | for as_dir in $PATH | |
6849 | do | |
6850 | IFS=$as_save_IFS | |
6851 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6852 | for ac_exec_ext in '' $ac_executable_extensions; do |
6853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 6854 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 6855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
6856 | break 2 |
6857 | fi | |
6858 | done | |
5213506e RW |
6859 | done |
6860 | IFS=$as_save_IFS | |
6b4a97ed PG |
6861 | |
6862 | fi | |
6863 | fi | |
6864 | NMEDIT=$ac_cv_prog_NMEDIT | |
6865 | if test -n "$NMEDIT"; then | |
5213506e RW |
6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
6867 | $as_echo "$NMEDIT" >&6; } | |
6b4a97ed | 6868 | else |
5213506e RW |
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6870 | $as_echo "no" >&6; } | |
6b4a97ed PG |
6871 | fi |
6872 | ||
5213506e | 6873 | |
6b4a97ed PG |
6874 | fi |
6875 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6876 | ac_ct_NMEDIT=$NMEDIT | |
6877 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6878 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6880 | $as_echo_n "checking for $ac_word... " >&6; } | |
6881 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
6882 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
6883 | else |
6884 | if test -n "$ac_ct_NMEDIT"; then | |
6885 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6886 | else | |
6887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6888 | for as_dir in $PATH | |
6889 | do | |
6890 | IFS=$as_save_IFS | |
6891 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6892 | for ac_exec_ext in '' $ac_executable_extensions; do |
6893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 6894 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 6895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
6896 | break 2 |
6897 | fi | |
6898 | done | |
5213506e RW |
6899 | done |
6900 | IFS=$as_save_IFS | |
6b4a97ed | 6901 | |
6b4a97ed PG |
6902 | fi |
6903 | fi | |
6904 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6905 | if test -n "$ac_ct_NMEDIT"; then | |
5213506e RW |
6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
6907 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6b4a97ed | 6908 | else |
5213506e RW |
6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6910 | $as_echo "no" >&6; } | |
6b4a97ed PG |
6911 | fi |
6912 | ||
5213506e RW |
6913 | if test "x$ac_ct_NMEDIT" = x; then |
6914 | NMEDIT=":" | |
6915 | else | |
6916 | case $cross_compiling:$ac_tool_warned in | |
6917 | yes:) | |
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6919 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6920 | ac_tool_warned=yes ;; | |
6921 | esac | |
6922 | NMEDIT=$ac_ct_NMEDIT | |
6923 | fi | |
6b4a97ed PG |
6924 | else |
6925 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6926 | fi | |
6927 | ||
6928 | if test -n "$ac_tool_prefix"; then | |
6929 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6930 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6932 | $as_echo_n "checking for $ac_word... " >&6; } | |
6933 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
6934 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
6935 | else |
6936 | if test -n "$LIPO"; then | |
6937 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6938 | else | |
6939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6940 | for as_dir in $PATH | |
6941 | do | |
6942 | IFS=$as_save_IFS | |
6943 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6944 | for ac_exec_ext in '' $ac_executable_extensions; do |
6945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 6946 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 6947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
6948 | break 2 |
6949 | fi | |
6950 | done | |
5213506e RW |
6951 | done |
6952 | IFS=$as_save_IFS | |
6b4a97ed PG |
6953 | |
6954 | fi | |
6955 | fi | |
6956 | LIPO=$ac_cv_prog_LIPO | |
6957 | if test -n "$LIPO"; then | |
5213506e RW |
6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
6959 | $as_echo "$LIPO" >&6; } | |
6b4a97ed | 6960 | else |
5213506e RW |
6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6962 | $as_echo "no" >&6; } | |
6b4a97ed PG |
6963 | fi |
6964 | ||
5213506e | 6965 | |
6b4a97ed PG |
6966 | fi |
6967 | if test -z "$ac_cv_prog_LIPO"; then | |
6968 | ac_ct_LIPO=$LIPO | |
6969 | # Extract the first word of "lipo", so it can be a program name with args. | |
6970 | set dummy lipo; ac_word=$2 | |
5213506e RW |
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6972 | $as_echo_n "checking for $ac_word... " >&6; } | |
6973 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
6974 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
6975 | else |
6976 | if test -n "$ac_ct_LIPO"; then | |
6977 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6978 | else | |
6979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6980 | for as_dir in $PATH | |
6981 | do | |
6982 | IFS=$as_save_IFS | |
6983 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
6984 | for ac_exec_ext in '' $ac_executable_extensions; do |
6985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 6986 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 6987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
6988 | break 2 |
6989 | fi | |
6990 | done | |
5213506e RW |
6991 | done |
6992 | IFS=$as_save_IFS | |
6b4a97ed | 6993 | |
6b4a97ed PG |
6994 | fi |
6995 | fi | |
6996 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6997 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
6999 | $as_echo "$ac_ct_LIPO" >&6; } | |
6b4a97ed | 7000 | else |
5213506e RW |
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7002 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7003 | fi |
7004 | ||
5213506e RW |
7005 | if test "x$ac_ct_LIPO" = x; then |
7006 | LIPO=":" | |
7007 | else | |
7008 | case $cross_compiling:$ac_tool_warned in | |
7009 | yes:) | |
7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7011 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7012 | ac_tool_warned=yes ;; | |
7013 | esac | |
7014 | LIPO=$ac_ct_LIPO | |
7015 | fi | |
6b4a97ed PG |
7016 | else |
7017 | LIPO="$ac_cv_prog_LIPO" | |
7018 | fi | |
7019 | ||
7020 | if test -n "$ac_tool_prefix"; then | |
7021 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7022 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5213506e RW |
7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7024 | $as_echo_n "checking for $ac_word... " >&6; } | |
7025 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7026 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
7027 | else |
7028 | if test -n "$OTOOL"; then | |
7029 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7030 | else | |
7031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7032 | for as_dir in $PATH | |
7033 | do | |
7034 | IFS=$as_save_IFS | |
7035 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7036 | for ac_exec_ext in '' $ac_executable_extensions; do |
7037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 7038 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
5213506e | 7039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7040 | break 2 |
7041 | fi | |
7042 | done | |
5213506e RW |
7043 | done |
7044 | IFS=$as_save_IFS | |
6b4a97ed PG |
7045 | |
7046 | fi | |
7047 | fi | |
7048 | OTOOL=$ac_cv_prog_OTOOL | |
7049 | if test -n "$OTOOL"; then | |
5213506e RW |
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7051 | $as_echo "$OTOOL" >&6; } | |
6b4a97ed | 7052 | else |
5213506e RW |
7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7054 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7055 | fi |
7056 | ||
5213506e | 7057 | |
6b4a97ed PG |
7058 | fi |
7059 | if test -z "$ac_cv_prog_OTOOL"; then | |
7060 | ac_ct_OTOOL=$OTOOL | |
7061 | # Extract the first word of "otool", so it can be a program name with args. | |
7062 | set dummy otool; ac_word=$2 | |
5213506e RW |
7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7064 | $as_echo_n "checking for $ac_word... " >&6; } | |
7065 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7066 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
7067 | else |
7068 | if test -n "$ac_ct_OTOOL"; then | |
7069 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7070 | else | |
7071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7072 | for as_dir in $PATH | |
7073 | do | |
7074 | IFS=$as_save_IFS | |
7075 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7076 | for ac_exec_ext in '' $ac_executable_extensions; do |
7077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 7078 | ac_cv_prog_ac_ct_OTOOL="otool" |
5213506e | 7079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7080 | break 2 |
7081 | fi | |
7082 | done | |
5213506e RW |
7083 | done |
7084 | IFS=$as_save_IFS | |
6b4a97ed | 7085 | |
6b4a97ed PG |
7086 | fi |
7087 | fi | |
7088 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7089 | if test -n "$ac_ct_OTOOL"; then | |
5213506e RW |
7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7091 | $as_echo "$ac_ct_OTOOL" >&6; } | |
6b4a97ed | 7092 | else |
5213506e RW |
7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7094 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7095 | fi |
7096 | ||
5213506e RW |
7097 | if test "x$ac_ct_OTOOL" = x; then |
7098 | OTOOL=":" | |
7099 | else | |
7100 | case $cross_compiling:$ac_tool_warned in | |
7101 | yes:) | |
7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7103 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7104 | ac_tool_warned=yes ;; | |
7105 | esac | |
7106 | OTOOL=$ac_ct_OTOOL | |
7107 | fi | |
6b4a97ed PG |
7108 | else |
7109 | OTOOL="$ac_cv_prog_OTOOL" | |
7110 | fi | |
7111 | ||
7112 | if test -n "$ac_tool_prefix"; then | |
7113 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7114 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5213506e RW |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7116 | $as_echo_n "checking for $ac_word... " >&6; } | |
7117 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7118 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
7119 | else |
7120 | if test -n "$OTOOL64"; then | |
7121 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7122 | else | |
7123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7124 | for as_dir in $PATH | |
7125 | do | |
7126 | IFS=$as_save_IFS | |
7127 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7128 | for ac_exec_ext in '' $ac_executable_extensions; do |
7129 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 7130 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
5213506e | 7131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7132 | break 2 |
7133 | fi | |
7134 | done | |
5213506e RW |
7135 | done |
7136 | IFS=$as_save_IFS | |
6b4a97ed PG |
7137 | |
7138 | fi | |
7139 | fi | |
7140 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7141 | if test -n "$OTOOL64"; then | |
5213506e RW |
7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7143 | $as_echo "$OTOOL64" >&6; } | |
6b4a97ed | 7144 | else |
5213506e RW |
7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7146 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7147 | fi |
7148 | ||
5213506e | 7149 | |
6b4a97ed PG |
7150 | fi |
7151 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7152 | ac_ct_OTOOL64=$OTOOL64 | |
7153 | # Extract the first word of "otool64", so it can be a program name with args. | |
7154 | set dummy otool64; ac_word=$2 | |
5213506e RW |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7156 | $as_echo_n "checking for $ac_word... " >&6; } | |
7157 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7158 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
7159 | else |
7160 | if test -n "$ac_ct_OTOOL64"; then | |
7161 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7162 | else | |
7163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7164 | for as_dir in $PATH | |
7165 | do | |
7166 | IFS=$as_save_IFS | |
7167 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7168 | for ac_exec_ext in '' $ac_executable_extensions; do |
7169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6b4a97ed | 7170 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
5213506e | 7171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7172 | break 2 |
7173 | fi | |
7174 | done | |
5213506e RW |
7175 | done |
7176 | IFS=$as_save_IFS | |
6b4a97ed | 7177 | |
6b4a97ed PG |
7178 | fi |
7179 | fi | |
7180 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7181 | if test -n "$ac_ct_OTOOL64"; then | |
5213506e RW |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7183 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6b4a97ed | 7184 | else |
5213506e RW |
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7186 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7187 | fi |
7188 | ||
5213506e RW |
7189 | if test "x$ac_ct_OTOOL64" = x; then |
7190 | OTOOL64=":" | |
7191 | else | |
7192 | case $cross_compiling:$ac_tool_warned in | |
7193 | yes:) | |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7195 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7196 | ac_tool_warned=yes ;; | |
7197 | esac | |
7198 | OTOOL64=$ac_ct_OTOOL64 | |
7199 | fi | |
6b4a97ed PG |
7200 | else |
7201 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7202 | fi | |
7203 | ||
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | ||
7215 | ||
7216 | ||
7217 | ||
7218 | ||
7219 | ||
7220 | ||
7221 | ||
7222 | ||
7223 | ||
7224 | ||
7225 | ||
7226 | ||
7227 | ||
7228 | ||
7229 | ||
5213506e RW |
7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7231 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7232 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7233 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
7234 | else |
7235 | lt_cv_apple_cc_single_mod=no | |
7236 | if test -z "${LT_MULTI_MODULE}"; then | |
7237 | # By default we will add the -single_module flag. You can override | |
7238 | # by either setting the environment variable LT_MULTI_MODULE | |
7239 | # non-empty at configure time, or by adding -multi_module to the | |
7240 | # link flags. | |
7241 | rm -rf libconftest.dylib* | |
7242 | echo "int foo(void){return 1;}" > conftest.c | |
7243 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7244 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7245 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7246 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7247 | _lt_result=$? | |
7248 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7249 | lt_cv_apple_cc_single_mod=yes | |
7250 | else | |
7251 | cat conftest.err >&5 | |
7252 | fi | |
7253 | rm -rf libconftest.dylib* | |
7254 | rm -f conftest.* | |
7255 | fi | |
7256 | fi | |
5213506e RW |
7257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7258 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7260 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7261 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7262 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
7263 | else |
7264 | lt_cv_ld_exported_symbols_list=no | |
7265 | save_LDFLAGS=$LDFLAGS | |
7266 | echo "_main" > conftest.sym | |
7267 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5213506e | 7268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6b4a97ed PG |
7269 | /* end confdefs.h. */ |
7270 | ||
7271 | int | |
7272 | main () | |
7273 | { | |
7274 | ||
7275 | ; | |
7276 | return 0; | |
7277 | } | |
7278 | _ACEOF | |
5213506e | 7279 | if ac_fn_c_try_link "$LINENO"; then : |
6b4a97ed PG |
7280 | lt_cv_ld_exported_symbols_list=yes |
7281 | else | |
5213506e | 7282 | lt_cv_ld_exported_symbols_list=no |
6b4a97ed | 7283 | fi |
5213506e RW |
7284 | rm -f core conftest.err conftest.$ac_objext \ |
7285 | conftest$ac_exeext conftest.$ac_ext | |
6b4a97ed PG |
7286 | LDFLAGS="$save_LDFLAGS" |
7287 | ||
7288 | fi | |
5213506e RW |
7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7290 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6b4a97ed PG |
7291 | case $host_os in |
7292 | rhapsody* | darwin1.[012]) | |
7293 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7294 | darwin1.*) | |
7295 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7296 | darwin*) # darwin 5.x on | |
7297 | # if running on 10.5 or later, the deployment target defaults | |
7298 | # to the OS version, if on x86, and 10.4, the deployment | |
7299 | # target defaults to 10.4. Don't you love it? | |
7300 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7301 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7302 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7303 | 10.[012]*) | |
7304 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7305 | 10.*) | |
7306 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7307 | esac | |
7308 | ;; | |
7309 | esac | |
7310 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7311 | _lt_dar_single_mod='$single_module' | |
7312 | fi | |
7313 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7314 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7315 | else | |
7316 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7317 | fi | |
7318 | if test "$DSYMUTIL" != ":"; then | |
7319 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7320 | else | |
7321 | _lt_dsymutil= | |
7322 | fi | |
7323 | ;; | |
7324 | esac | |
7325 | ||
7326 | ac_ext=c | |
7327 | ac_cpp='$CPP $CPPFLAGS' | |
7328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7332 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6b4a97ed PG |
7333 | # On Suns, sometimes $CPP names a directory. |
7334 | if test -n "$CPP" && test -d "$CPP"; then | |
7335 | CPP= | |
7336 | fi | |
7337 | if test -z "$CPP"; then | |
5213506e RW |
7338 | if test "${ac_cv_prog_CPP+set}" = set; then : |
7339 | $as_echo_n "(cached) " >&6 | |
6b4a97ed PG |
7340 | else |
7341 | # Double quotes because CPP needs to be expanded | |
7342 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7343 | do | |
7344 | ac_preproc_ok=false | |
7345 | for ac_c_preproc_warn_flag in '' yes | |
7346 | do | |
7347 | # Use a header file that comes with gcc, so configuring glibc | |
7348 | # with a fresh cross-compiler works. | |
7349 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7350 | # <limits.h> exists even on freestanding compilers. | |
7351 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7352 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 7353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6b4a97ed PG |
7354 | /* end confdefs.h. */ |
7355 | #ifdef __STDC__ | |
7356 | # include <limits.h> | |
7357 | #else | |
7358 | # include <assert.h> | |
7359 | #endif | |
7360 | Syntax error | |
7361 | _ACEOF | |
5213506e | 7362 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d | 7363 | |
5213506e | 7364 | else |
1cf3d07d SE |
7365 | # Broken: fails on valid input. |
7366 | continue | |
7367 | fi | |
7368 | rm -f conftest.err conftest.$ac_ext | |
7369 | ||
5213506e | 7370 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 7371 | # can be detected and how. |
5213506e | 7372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7373 | /* end confdefs.h. */ |
7374 | #include <ac_nonexistent.h> | |
7375 | _ACEOF | |
5213506e | 7376 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
7377 | # Broken: success on invalid input. |
7378 | continue | |
7379 | else | |
1cf3d07d SE |
7380 | # Passes both tests. |
7381 | ac_preproc_ok=: | |
7382 | break | |
7383 | fi | |
7384 | rm -f conftest.err conftest.$ac_ext | |
7385 | ||
7386 | done | |
7387 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7388 | rm -f conftest.err conftest.$ac_ext | |
5213506e | 7389 | if $ac_preproc_ok; then : |
1cf3d07d SE |
7390 | break |
7391 | fi | |
7392 | ||
7393 | done | |
7394 | ac_cv_prog_CPP=$CPP | |
7395 | ||
7396 | fi | |
7397 | CPP=$ac_cv_prog_CPP | |
7398 | else | |
7399 | ac_cv_prog_CPP=$CPP | |
7400 | fi | |
5213506e RW |
7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7402 | $as_echo "$CPP" >&6; } | |
1cf3d07d SE |
7403 | ac_preproc_ok=false |
7404 | for ac_c_preproc_warn_flag in '' yes | |
7405 | do | |
7406 | # Use a header file that comes with gcc, so configuring glibc | |
7407 | # with a fresh cross-compiler works. | |
7408 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7409 | # <limits.h> exists even on freestanding compilers. | |
7410 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7411 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 7412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7413 | /* end confdefs.h. */ |
7414 | #ifdef __STDC__ | |
7415 | # include <limits.h> | |
7416 | #else | |
7417 | # include <assert.h> | |
7418 | #endif | |
7419 | Syntax error | |
7420 | _ACEOF | |
5213506e | 7421 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d | 7422 | |
5213506e | 7423 | else |
1cf3d07d SE |
7424 | # Broken: fails on valid input. |
7425 | continue | |
7426 | fi | |
7427 | rm -f conftest.err conftest.$ac_ext | |
7428 | ||
5213506e | 7429 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 7430 | # can be detected and how. |
5213506e | 7431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7432 | /* end confdefs.h. */ |
7433 | #include <ac_nonexistent.h> | |
7434 | _ACEOF | |
5213506e | 7435 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
7436 | # Broken: success on invalid input. |
7437 | continue | |
7438 | else | |
1cf3d07d SE |
7439 | # Passes both tests. |
7440 | ac_preproc_ok=: | |
7441 | break | |
7442 | fi | |
7443 | rm -f conftest.err conftest.$ac_ext | |
7444 | ||
7445 | done | |
7446 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7447 | rm -f conftest.err conftest.$ac_ext | |
5213506e RW |
7448 | if $ac_preproc_ok; then : |
7449 | ||
1cf3d07d | 7450 | else |
5213506e RW |
7451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7453 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
7454 | See \`config.log' for more details." "$LINENO" 5; } | |
1cf3d07d SE |
7455 | fi |
7456 | ||
7457 | ac_ext=c | |
7458 | ac_cpp='$CPP $CPPFLAGS' | |
7459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7462 | ||
7463 | ||
5213506e RW |
7464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7465 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7466 | if test "${ac_cv_header_stdc+set}" = set; then : | |
7467 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 7468 | else |
5213506e | 7469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7470 | /* end confdefs.h. */ |
7471 | #include <stdlib.h> | |
7472 | #include <stdarg.h> | |
7473 | #include <string.h> | |
7474 | #include <float.h> | |
7475 | ||
7476 | int | |
7477 | main () | |
7478 | { | |
7479 | ||
7480 | ; | |
7481 | return 0; | |
7482 | } | |
7483 | _ACEOF | |
5213506e | 7484 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d SE |
7485 | ac_cv_header_stdc=yes |
7486 | else | |
5213506e | 7487 | ac_cv_header_stdc=no |
1cf3d07d | 7488 | fi |
5213506e | 7489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
7490 | |
7491 | if test $ac_cv_header_stdc = yes; then | |
7492 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5213506e | 7493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7494 | /* end confdefs.h. */ |
7495 | #include <string.h> | |
7496 | ||
7497 | _ACEOF | |
7498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
7499 | $EGREP "memchr" >/dev/null 2>&1; then : |
7500 | ||
1cf3d07d SE |
7501 | else |
7502 | ac_cv_header_stdc=no | |
7503 | fi | |
7504 | rm -f conftest* | |
7505 | ||
7506 | fi | |
7507 | ||
7508 | if test $ac_cv_header_stdc = yes; then | |
7509 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5213506e | 7510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7511 | /* end confdefs.h. */ |
7512 | #include <stdlib.h> | |
7513 | ||
7514 | _ACEOF | |
7515 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
7516 | $EGREP "free" >/dev/null 2>&1; then : |
7517 | ||
1cf3d07d SE |
7518 | else |
7519 | ac_cv_header_stdc=no | |
7520 | fi | |
7521 | rm -f conftest* | |
7522 | ||
7523 | fi | |
7524 | ||
7525 | if test $ac_cv_header_stdc = yes; then | |
7526 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5213506e | 7527 | if test "$cross_compiling" = yes; then : |
1cf3d07d SE |
7528 | : |
7529 | else | |
5213506e | 7530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7531 | /* end confdefs.h. */ |
7532 | #include <ctype.h> | |
5213506e | 7533 | #include <stdlib.h> |
1cf3d07d SE |
7534 | #if ((' ' & 0x0FF) == 0x020) |
7535 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7536 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7537 | #else | |
7538 | # define ISLOWER(c) \ | |
7539 | (('a' <= (c) && (c) <= 'i') \ | |
7540 | || ('j' <= (c) && (c) <= 'r') \ | |
7541 | || ('s' <= (c) && (c) <= 'z')) | |
7542 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7543 | #endif | |
7544 | ||
7545 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7546 | int | |
7547 | main () | |
7548 | { | |
7549 | int i; | |
7550 | for (i = 0; i < 256; i++) | |
7551 | if (XOR (islower (i), ISLOWER (i)) | |
7552 | || toupper (i) != TOUPPER (i)) | |
5213506e RW |
7553 | return 2; |
7554 | return 0; | |
1cf3d07d SE |
7555 | } |
7556 | _ACEOF | |
5213506e | 7557 | if ac_fn_c_try_run "$LINENO"; then : |
1cf3d07d | 7558 | |
5213506e RW |
7559 | else |
7560 | ac_cv_header_stdc=no | |
1cf3d07d | 7561 | fi |
5213506e RW |
7562 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7563 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1cf3d07d | 7564 | fi |
5213506e | 7565 | |
1cf3d07d SE |
7566 | fi |
7567 | fi | |
5213506e RW |
7568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7569 | $as_echo "$ac_cv_header_stdc" >&6; } | |
1cf3d07d SE |
7570 | if test $ac_cv_header_stdc = yes; then |
7571 | ||
5213506e | 7572 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
1cf3d07d SE |
7573 | |
7574 | fi | |
7575 | ||
7576 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
1cf3d07d SE |
7577 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7578 | inttypes.h stdint.h unistd.h | |
5213506e RW |
7579 | do : |
7580 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7581 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7582 | " | |
7583 | eval as_val=\$$as_ac_Header | |
7584 | if test "x$as_val" = x""yes; then : | |
1cf3d07d | 7585 | cat >>confdefs.h <<_ACEOF |
5213506e | 7586 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1cf3d07d SE |
7587 | _ACEOF |
7588 | ||
7589 | fi | |
7590 | ||
7591 | done | |
7592 | ||
7593 | ||
1cf3d07d | 7594 | for ac_header in dlfcn.h |
5213506e RW |
7595 | do : |
7596 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7597 | " | |
7598 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
1cf3d07d | 7599 | cat >>confdefs.h <<_ACEOF |
5213506e | 7600 | #define HAVE_DLFCN_H 1 |
1cf3d07d SE |
7601 | _ACEOF |
7602 | ||
7603 | fi | |
7604 | ||
7605 | done | |
7606 | ||
7607 | ||
7608 | ||
6b4a97ed PG |
7609 | # Set options |
7610 | ||
7611 | ||
7612 | ||
7613 | enable_dlopen=no | |
7614 | ||
7615 | ||
7616 | enable_win32_dll=no | |
7617 | ||
7618 | ||
5213506e RW |
7619 | # Check whether --enable-shared was given. |
7620 | if test "${enable_shared+set}" = set; then : | |
7621 | enableval=$enable_shared; p=${PACKAGE-default} | |
6b4a97ed PG |
7622 | case $enableval in |
7623 | yes) enable_shared=yes ;; | |
7624 | no) enable_shared=no ;; | |
7625 | *) | |
7626 | enable_shared=no | |
7627 | # Look at the argument we got. We use all the common list separators. | |
7628 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7629 | for pkg in $enableval; do | |
7630 | IFS="$lt_save_ifs" | |
7631 | if test "X$pkg" = "X$p"; then | |
7632 | enable_shared=yes | |
7633 | fi | |
7634 | done | |
7635 | IFS="$lt_save_ifs" | |
7636 | ;; | |
7637 | esac | |
7638 | else | |
7639 | enable_shared=yes | |
5213506e RW |
7640 | fi |
7641 | ||
6b4a97ed PG |
7642 | |
7643 | ||
7644 | ||
7645 | ||
7646 | ||
7647 | ||
7648 | ||
7649 | ||
5213506e RW |
7650 | # Check whether --enable-static was given. |
7651 | if test "${enable_static+set}" = set; then : | |
7652 | enableval=$enable_static; p=${PACKAGE-default} | |
6b4a97ed PG |
7653 | case $enableval in |
7654 | yes) enable_static=yes ;; | |
7655 | no) enable_static=no ;; | |
7656 | *) | |
7657 | enable_static=no | |
7658 | # Look at the argument we got. We use all the common list separators. | |
7659 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7660 | for pkg in $enableval; do | |
7661 | IFS="$lt_save_ifs" | |
7662 | if test "X$pkg" = "X$p"; then | |
7663 | enable_static=yes | |
7664 | fi | |
7665 | done | |
7666 | IFS="$lt_save_ifs" | |
7667 | ;; | |
7668 | esac | |
7669 | else | |
7670 | enable_static=yes | |
5213506e RW |
7671 | fi |
7672 | ||
6b4a97ed PG |
7673 | |
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | ||
7681 | ||
5213506e RW |
7682 | # Check whether --with-pic was given. |
7683 | if test "${with_pic+set}" = set; then : | |
7684 | withval=$with_pic; pic_mode="$withval" | |
6b4a97ed PG |
7685 | else |
7686 | pic_mode=default | |
5213506e RW |
7687 | fi |
7688 | ||
6b4a97ed PG |
7689 | |
7690 | test -z "$pic_mode" && pic_mode=default | |
7691 | ||
7692 | ||
7693 | ||
7694 | ||
7695 | ||
7696 | ||
7697 | ||
5213506e RW |
7698 | # Check whether --enable-fast-install was given. |
7699 | if test "${enable_fast_install+set}" = set; then : | |
7700 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6b4a97ed PG |
7701 | case $enableval in |
7702 | yes) enable_fast_install=yes ;; | |
7703 | no) enable_fast_install=no ;; | |
7704 | *) | |
7705 | enable_fast_install=no | |
7706 | # Look at the argument we got. We use all the common list separators. | |
7707 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7708 | for pkg in $enableval; do | |
7709 | IFS="$lt_save_ifs" | |
7710 | if test "X$pkg" = "X$p"; then | |
7711 | enable_fast_install=yes | |
7712 | fi | |
7713 | done | |
7714 | IFS="$lt_save_ifs" | |
7715 | ;; | |
7716 | esac | |
7717 | else | |
7718 | enable_fast_install=yes | |
5213506e RW |
7719 | fi |
7720 | ||
6b4a97ed PG |
7721 | |
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | ||
7728 | ||
7729 | ||
7730 | ||
1cf3d07d SE |
7731 | # This can be used to rebuild libtool when needed |
7732 | LIBTOOL_DEPS="$ltmain" | |
7733 | ||
7734 | # Always use our own libtool. | |
7735 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7736 | ||
7737 | ||
7738 | ||
7739 | ||
7740 | ||
7741 | ||
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
7752 | ||
7753 | ||
7754 | ||
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | ||
7761 | test -z "$LN_S" && LN_S="ln -s" | |
7762 | ||
7763 | ||
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | ||
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | if test -n "${ZSH_VERSION+set}" ; then | |
7777 | setopt NO_GLOB_SUBST | |
7778 | fi | |
7779 | ||
5213506e RW |
7780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7781 | $as_echo_n "checking for objdir... " >&6; } | |
7782 | if test "${lt_cv_objdir+set}" = set; then : | |
7783 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7784 | else |
7785 | rm -f .libs 2>/dev/null | |
7786 | mkdir .libs 2>/dev/null | |
7787 | if test -d .libs; then | |
7788 | lt_cv_objdir=.libs | |
7789 | else | |
7790 | # MS-DOS does not allow filenames that begin with a dot. | |
7791 | lt_cv_objdir=_libs | |
7792 | fi | |
7793 | rmdir .libs 2>/dev/null | |
7794 | fi | |
5213506e RW |
7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7796 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
7797 | objdir=$lt_cv_objdir |
7798 | ||
7799 | ||
7800 | ||
7801 | ||
7802 | ||
7803 | cat >>confdefs.h <<_ACEOF | |
7804 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7805 | _ACEOF | |
7806 | ||
7807 | ||
7808 | ||
7809 | ||
7810 | ||
7811 | ||
7812 | ||
7813 | ||
7814 | ||
7815 | ||
7816 | ||
7817 | ||
7818 | ||
7819 | ||
7820 | ||
7821 | ||
7822 | ||
7823 | case $host_os in | |
7824 | aix3*) | |
7825 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7826 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7827 | # vanish in a puff of smoke. | |
7828 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7829 | COLLECT_NAMES= | |
7830 | export COLLECT_NAMES | |
7831 | fi | |
7832 | ;; | |
7833 | esac | |
7834 | ||
7835 | # Sed substitution that helps us do robust quoting. It backslashifies | |
7836 | # metacharacters that are still active within double-quoted strings. | |
7837 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
7838 | ||
7839 | # Same as above, but do not quote variable references. | |
7840 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7841 | ||
7842 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7843 | # double_quote_subst'ed string. | |
7844 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7845 | ||
7846 | # Sed substitution to delay expansion of an escaped single quote. | |
7847 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7848 | ||
7849 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7850 | no_glob_subst='s/\*/\\\*/g' | |
7851 | ||
7852 | # Global variables: | |
7853 | ofile=libtool | |
7854 | can_build_shared=yes | |
7855 | ||
7856 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7857 | # which needs '.lib'). | |
7858 | libext=a | |
7859 | ||
7860 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7861 | ||
7862 | old_CC="$CC" | |
7863 | old_CFLAGS="$CFLAGS" | |
7864 | ||
7865 | # Set sane defaults for various variables | |
7866 | test -z "$CC" && CC=cc | |
7867 | test -z "$LTCC" && LTCC=$CC | |
7868 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7869 | test -z "$LD" && LD=ld | |
7870 | test -z "$ac_objext" && ac_objext=o | |
7871 | ||
7872 | for cc_temp in $compiler""; do | |
7873 | case $cc_temp in | |
7874 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7875 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7876 | \-*) ;; | |
7877 | *) break;; | |
7878 | esac | |
7879 | done | |
7880 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7881 | ||
7882 | ||
7883 | # Only perform the check for file, if the check method requires it | |
7884 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7885 | case $deplibs_check_method in | |
7886 | file_magic*) | |
7887 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7889 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7890 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7891 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7892 | else |
7893 | case $MAGIC_CMD in | |
7894 | [\\/*] | ?:[\\/]*) | |
7895 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7896 | ;; | |
7897 | *) | |
7898 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7899 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7900 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7901 | for ac_dir in $ac_dummy; do | |
7902 | IFS="$lt_save_ifs" | |
7903 | test -z "$ac_dir" && ac_dir=. | |
7904 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7905 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7906 | if test -n "$file_magic_test_file"; then | |
7907 | case $deplibs_check_method in | |
7908 | "file_magic "*) | |
7909 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7910 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7911 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7912 | $EGREP "$file_magic_regex" > /dev/null; then | |
7913 | : | |
7914 | else | |
7915 | cat <<_LT_EOF 1>&2 | |
7916 | ||
7917 | *** Warning: the command libtool uses to detect shared libraries, | |
7918 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7919 | *** The result is that libtool may fail to recognize shared libraries | |
7920 | *** as such. This will affect the creation of libtool libraries that | |
7921 | *** depend on shared libraries, but programs linked with such libtool | |
7922 | *** libraries will work regardless of this problem. Nevertheless, you | |
7923 | *** may want to report the problem to your system manager and/or to | |
7924 | *** bug-libtool@gnu.org | |
7925 | ||
7926 | _LT_EOF | |
7927 | fi ;; | |
7928 | esac | |
7929 | fi | |
7930 | break | |
7931 | fi | |
7932 | done | |
7933 | IFS="$lt_save_ifs" | |
7934 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7935 | ;; | |
7936 | esac | |
7937 | fi | |
7938 | ||
7939 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7940 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7942 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 7943 | else |
5213506e RW |
7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7945 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7946 | fi |
7947 | ||
7948 | ||
7949 | ||
7950 | ||
7951 | ||
7952 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7953 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7955 | $as_echo_n "checking for file... " >&6; } | |
7956 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7957 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7958 | else |
7959 | case $MAGIC_CMD in | |
7960 | [\\/*] | ?:[\\/]*) | |
7961 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7962 | ;; | |
7963 | *) | |
7964 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7965 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7966 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7967 | for ac_dir in $ac_dummy; do | |
7968 | IFS="$lt_save_ifs" | |
7969 | test -z "$ac_dir" && ac_dir=. | |
7970 | if test -f $ac_dir/file; then | |
7971 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7972 | if test -n "$file_magic_test_file"; then | |
7973 | case $deplibs_check_method in | |
7974 | "file_magic "*) | |
7975 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7976 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7977 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7978 | $EGREP "$file_magic_regex" > /dev/null; then | |
7979 | : | |
7980 | else | |
7981 | cat <<_LT_EOF 1>&2 | |
7982 | ||
7983 | *** Warning: the command libtool uses to detect shared libraries, | |
7984 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7985 | *** The result is that libtool may fail to recognize shared libraries | |
7986 | *** as such. This will affect the creation of libtool libraries that | |
7987 | *** depend on shared libraries, but programs linked with such libtool | |
7988 | *** libraries will work regardless of this problem. Nevertheless, you | |
7989 | *** may want to report the problem to your system manager and/or to | |
7990 | *** bug-libtool@gnu.org | |
7991 | ||
7992 | _LT_EOF | |
7993 | fi ;; | |
7994 | esac | |
7995 | fi | |
7996 | break | |
7997 | fi | |
7998 | done | |
7999 | IFS="$lt_save_ifs" | |
8000 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8001 | ;; | |
8002 | esac | |
8003 | fi | |
8004 | ||
8005 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8006 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8008 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 8009 | else |
5213506e RW |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8011 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8012 | fi |
8013 | ||
8014 | ||
8015 | else | |
8016 | MAGIC_CMD=: | |
8017 | fi | |
8018 | fi | |
8019 | ||
8020 | fi | |
8021 | ;; | |
8022 | esac | |
8023 | ||
8024 | # Use C for the default configuration in the libtool script | |
8025 | ||
8026 | lt_save_CC="$CC" | |
8027 | ac_ext=c | |
8028 | ac_cpp='$CPP $CPPFLAGS' | |
8029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8032 | ||
8033 | ||
8034 | # Source file extension for C test sources. | |
8035 | ac_ext=c | |
8036 | ||
8037 | # Object file extension for compiled C test sources. | |
8038 | objext=o | |
8039 | objext=$objext | |
8040 | ||
8041 | # Code to be used in simple compile tests | |
8042 | lt_simple_compile_test_code="int some_variable = 0;" | |
8043 | ||
8044 | # Code to be used in simple link tests | |
8045 | lt_simple_link_test_code='int main(){return(0);}' | |
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | # If no C compiler was specified, use CC. | |
8054 | LTCC=${LTCC-"$CC"} | |
8055 | ||
8056 | # If no C compiler flags were specified, use CFLAGS. | |
8057 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8058 | ||
8059 | # Allow CC to be a program name with arguments. | |
8060 | compiler=$CC | |
8061 | ||
8062 | # Save the default compiler, since it gets overwritten when the other | |
8063 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8064 | compiler_DEFAULT=$CC | |
8065 | ||
8066 | # save warnings/boilerplate of simple test code | |
8067 | ac_outfile=conftest.$ac_objext | |
8068 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8069 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8070 | _lt_compiler_boilerplate=`cat conftest.err` | |
8071 | $RM conftest* | |
8072 | ||
8073 | ac_outfile=conftest.$ac_objext | |
8074 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8075 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8076 | _lt_linker_boilerplate=`cat conftest.err` | |
6b4a97ed | 8077 | $RM -r conftest* |
1cf3d07d SE |
8078 | |
8079 | ||
8080 | ## CAVEAT EMPTOR: | |
8081 | ## There is no encapsulation within the following macros, do not change | |
8082 | ## the running order or otherwise move them around unless you know exactly | |
8083 | ## what you are doing... | |
8084 | if test -n "$compiler"; then | |
8085 | ||
8086 | lt_prog_compiler_no_builtin_flag= | |
8087 | ||
8088 | if test "$GCC" = yes; then | |
8089 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8090 | ||
5213506e RW |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8092 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8093 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8094 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
8095 | else |
8096 | lt_cv_prog_compiler_rtti_exceptions=no | |
8097 | ac_outfile=conftest.$ac_objext | |
8098 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8099 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8100 | # Insert the option either (1) after the last *FLAGS variable, or | |
8101 | # (2) before a word containing "conftest.", or (3) at the end. | |
8102 | # Note that $ac_compile itself does not contain backslashes and begins | |
8103 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8104 | # The option is referenced via a variable to avoid confusing sed. | |
8105 | lt_compile=`echo "$ac_compile" | $SED \ | |
8106 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8107 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8108 | -e 's:$: $lt_compiler_flag:'` | |
5213506e | 8109 | (eval echo "\"\$as_me:8109: $lt_compile\"" >&5) |
1cf3d07d SE |
8110 | (eval "$lt_compile" 2>conftest.err) |
8111 | ac_status=$? | |
8112 | cat conftest.err >&5 | |
5213506e | 8113 | echo "$as_me:8113: \$? = $ac_status" >&5 |
1cf3d07d SE |
8114 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8115 | # The compiler can only warn and ignore the option if not recognized | |
8116 | # So say no if there are warnings other than the usual output. | |
8117 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8118 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8119 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8120 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8121 | fi | |
8122 | fi | |
8123 | $RM conftest* | |
8124 | ||
8125 | fi | |
5213506e RW |
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8127 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
8128 | |
8129 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8130 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8131 | else | |
8132 | : | |
8133 | fi | |
8134 | ||
8135 | fi | |
8136 | ||
8137 | ||
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | lt_prog_compiler_wl= | |
8143 | lt_prog_compiler_pic= | |
8144 | lt_prog_compiler_static= | |
8145 | ||
5213506e RW |
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8147 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
8148 | |
8149 | if test "$GCC" = yes; then | |
8150 | lt_prog_compiler_wl='-Wl,' | |
8151 | lt_prog_compiler_static='-static' | |
8152 | ||
8153 | case $host_os in | |
8154 | aix*) | |
8155 | # All AIX code is PIC. | |
8156 | if test "$host_cpu" = ia64; then | |
8157 | # AIX 5 now supports IA64 processor | |
8158 | lt_prog_compiler_static='-Bstatic' | |
8159 | fi | |
8160 | ;; | |
8161 | ||
8162 | amigaos*) | |
6b4a97ed PG |
8163 | case $host_cpu in |
8164 | powerpc) | |
8165 | # see comment about AmigaOS4 .so support | |
8166 | lt_prog_compiler_pic='-fPIC' | |
8167 | ;; | |
8168 | m68k) | |
8169 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8170 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8171 | # like `-m68040'. | |
8172 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8173 | ;; | |
8174 | esac | |
1cf3d07d SE |
8175 | ;; |
8176 | ||
8177 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8178 | # PIC is the default for these OSes. | |
8179 | ;; | |
8180 | ||
6b4a97ed | 8181 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
8182 | # This hack is so that the source file can tell whether it is being |
8183 | # built for inclusion in a dll (and should export symbols for example). | |
8184 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8185 | # (--disable-auto-import) libraries | |
8186 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8187 | ;; | |
8188 | ||
8189 | darwin* | rhapsody*) | |
8190 | # PIC is the default on this platform | |
8191 | # Common symbols not allowed in MH_DYLIB files | |
8192 | lt_prog_compiler_pic='-fno-common' | |
8193 | ;; | |
8194 | ||
8195 | hpux*) | |
6b4a97ed PG |
8196 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8197 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8198 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 8199 | case $host_cpu in |
6b4a97ed | 8200 | hppa*64*) |
1cf3d07d SE |
8201 | # +Z the default |
8202 | ;; | |
8203 | *) | |
8204 | lt_prog_compiler_pic='-fPIC' | |
8205 | ;; | |
8206 | esac | |
8207 | ;; | |
8208 | ||
8209 | interix[3-9]*) | |
8210 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8211 | # Instead, we relocate shared libraries at runtime. | |
8212 | ;; | |
8213 | ||
8214 | msdosdjgpp*) | |
8215 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8216 | # on systems that don't support them. | |
8217 | lt_prog_compiler_can_build_shared=no | |
8218 | enable_shared=no | |
8219 | ;; | |
8220 | ||
8221 | *nto* | *qnx*) | |
8222 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8223 | # it will coredump. | |
8224 | lt_prog_compiler_pic='-fPIC -shared' | |
8225 | ;; | |
8226 | ||
8227 | sysv4*MP*) | |
8228 | if test -d /usr/nec; then | |
8229 | lt_prog_compiler_pic=-Kconform_pic | |
8230 | fi | |
8231 | ;; | |
8232 | ||
8233 | *) | |
8234 | lt_prog_compiler_pic='-fPIC' | |
8235 | ;; | |
8236 | esac | |
8237 | else | |
8238 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8239 | case $host_os in | |
8240 | aix*) | |
8241 | lt_prog_compiler_wl='-Wl,' | |
8242 | if test "$host_cpu" = ia64; then | |
8243 | # AIX 5 now supports IA64 processor | |
8244 | lt_prog_compiler_static='-Bstatic' | |
8245 | else | |
8246 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8247 | fi | |
8248 | ;; | |
1cf3d07d | 8249 | |
6b4a97ed | 8250 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
8251 | # This hack is so that the source file can tell whether it is being |
8252 | # built for inclusion in a dll (and should export symbols for example). | |
8253 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8254 | ;; | |
8255 | ||
8256 | hpux9* | hpux10* | hpux11*) | |
8257 | lt_prog_compiler_wl='-Wl,' | |
8258 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8259 | # not for PA HP-UX. | |
8260 | case $host_cpu in | |
8261 | hppa*64*|ia64*) | |
8262 | # +Z the default | |
8263 | ;; | |
8264 | *) | |
8265 | lt_prog_compiler_pic='+Z' | |
8266 | ;; | |
8267 | esac | |
8268 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8269 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8270 | ;; | |
8271 | ||
8272 | irix5* | irix6* | nonstopux*) | |
8273 | lt_prog_compiler_wl='-Wl,' | |
8274 | # PIC (with -KPIC) is the default. | |
8275 | lt_prog_compiler_static='-non_shared' | |
8276 | ;; | |
8277 | ||
7a9d3fe8 | 8278 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 8279 | case $cc_basename in |
6b4a97ed PG |
8280 | # old Intel for x86_64 which still supported -KPIC. |
8281 | ecc*) | |
1cf3d07d SE |
8282 | lt_prog_compiler_wl='-Wl,' |
8283 | lt_prog_compiler_pic='-KPIC' | |
8284 | lt_prog_compiler_static='-static' | |
8285 | ;; | |
6b4a97ed PG |
8286 | # icc used to be incompatible with GCC. |
8287 | # ICC 10 doesn't accept -KPIC any more. | |
8288 | icc* | ifort*) | |
8289 | lt_prog_compiler_wl='-Wl,' | |
8290 | lt_prog_compiler_pic='-fPIC' | |
8291 | lt_prog_compiler_static='-static' | |
8292 | ;; | |
8293 | # Lahey Fortran 8.1. | |
8294 | lf95*) | |
8295 | lt_prog_compiler_wl='-Wl,' | |
8296 | lt_prog_compiler_pic='--shared' | |
8297 | lt_prog_compiler_static='--static' | |
8298 | ;; | |
1cf3d07d SE |
8299 | pgcc* | pgf77* | pgf90* | pgf95*) |
8300 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8301 | # which looks to be a dead project) | |
8302 | lt_prog_compiler_wl='-Wl,' | |
8303 | lt_prog_compiler_pic='-fpic' | |
8304 | lt_prog_compiler_static='-Bstatic' | |
8305 | ;; | |
8306 | ccc*) | |
8307 | lt_prog_compiler_wl='-Wl,' | |
8308 | # All Alpha code is PIC. | |
8309 | lt_prog_compiler_static='-non_shared' | |
8310 | ;; | |
6b4a97ed PG |
8311 | xl*) |
8312 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8313 | lt_prog_compiler_wl='-Wl,' | |
8314 | lt_prog_compiler_pic='-qpic' | |
8315 | lt_prog_compiler_static='-qstaticlink' | |
8316 | ;; | |
1cf3d07d SE |
8317 | *) |
8318 | case `$CC -V 2>&1 | sed 5q` in | |
8319 | *Sun\ C*) | |
8320 | # Sun C 5.9 | |
8321 | lt_prog_compiler_pic='-KPIC' | |
8322 | lt_prog_compiler_static='-Bstatic' | |
8323 | lt_prog_compiler_wl='-Wl,' | |
8324 | ;; | |
8325 | *Sun\ F*) | |
8326 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8327 | lt_prog_compiler_pic='-KPIC' | |
8328 | lt_prog_compiler_static='-Bstatic' | |
8329 | lt_prog_compiler_wl='' | |
8330 | ;; | |
8331 | esac | |
8332 | ;; | |
8333 | esac | |
8334 | ;; | |
8335 | ||
8336 | newsos6) | |
8337 | lt_prog_compiler_pic='-KPIC' | |
8338 | lt_prog_compiler_static='-Bstatic' | |
8339 | ;; | |
8340 | ||
8341 | *nto* | *qnx*) | |
8342 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8343 | # it will coredump. | |
8344 | lt_prog_compiler_pic='-fPIC -shared' | |
8345 | ;; | |
8346 | ||
8347 | osf3* | osf4* | osf5*) | |
8348 | lt_prog_compiler_wl='-Wl,' | |
8349 | # All OSF/1 code is PIC. | |
8350 | lt_prog_compiler_static='-non_shared' | |
8351 | ;; | |
8352 | ||
8353 | rdos*) | |
8354 | lt_prog_compiler_static='-non_shared' | |
8355 | ;; | |
8356 | ||
8357 | solaris*) | |
8358 | lt_prog_compiler_pic='-KPIC' | |
8359 | lt_prog_compiler_static='-Bstatic' | |
8360 | case $cc_basename in | |
8361 | f77* | f90* | f95*) | |
8362 | lt_prog_compiler_wl='-Qoption ld ';; | |
8363 | *) | |
8364 | lt_prog_compiler_wl='-Wl,';; | |
8365 | esac | |
8366 | ;; | |
8367 | ||
8368 | sunos4*) | |
8369 | lt_prog_compiler_wl='-Qoption ld ' | |
8370 | lt_prog_compiler_pic='-PIC' | |
8371 | lt_prog_compiler_static='-Bstatic' | |
8372 | ;; | |
8373 | ||
8374 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8375 | lt_prog_compiler_wl='-Wl,' | |
8376 | lt_prog_compiler_pic='-KPIC' | |
8377 | lt_prog_compiler_static='-Bstatic' | |
8378 | ;; | |
8379 | ||
8380 | sysv4*MP*) | |
8381 | if test -d /usr/nec ;then | |
8382 | lt_prog_compiler_pic='-Kconform_pic' | |
8383 | lt_prog_compiler_static='-Bstatic' | |
8384 | fi | |
8385 | ;; | |
8386 | ||
8387 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8388 | lt_prog_compiler_wl='-Wl,' | |
8389 | lt_prog_compiler_pic='-KPIC' | |
8390 | lt_prog_compiler_static='-Bstatic' | |
8391 | ;; | |
8392 | ||
8393 | unicos*) | |
8394 | lt_prog_compiler_wl='-Wl,' | |
8395 | lt_prog_compiler_can_build_shared=no | |
8396 | ;; | |
8397 | ||
8398 | uts4*) | |
8399 | lt_prog_compiler_pic='-pic' | |
8400 | lt_prog_compiler_static='-Bstatic' | |
8401 | ;; | |
8402 | ||
8403 | *) | |
8404 | lt_prog_compiler_can_build_shared=no | |
8405 | ;; | |
8406 | esac | |
8407 | fi | |
8408 | ||
8409 | case $host_os in | |
8410 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8411 | *djgpp*) | |
8412 | lt_prog_compiler_pic= | |
8413 | ;; | |
8414 | *) | |
8415 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8416 | ;; | |
8417 | esac | |
5213506e RW |
8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8419 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
8420 | |
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | # | |
8427 | # Check to make sure the PIC flag actually works. | |
8428 | # | |
8429 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8431 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8432 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8433 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 8434 | else |
6b4a97ed | 8435 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
8436 | ac_outfile=conftest.$ac_objext |
8437 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8438 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8439 | # Insert the option either (1) after the last *FLAGS variable, or | |
8440 | # (2) before a word containing "conftest.", or (3) at the end. | |
8441 | # Note that $ac_compile itself does not contain backslashes and begins | |
8442 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8443 | # The option is referenced via a variable to avoid confusing sed. | |
8444 | lt_compile=`echo "$ac_compile" | $SED \ | |
8445 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8446 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8447 | -e 's:$: $lt_compiler_flag:'` | |
5213506e | 8448 | (eval echo "\"\$as_me:8448: $lt_compile\"" >&5) |
1cf3d07d SE |
8449 | (eval "$lt_compile" 2>conftest.err) |
8450 | ac_status=$? | |
8451 | cat conftest.err >&5 | |
5213506e | 8452 | echo "$as_me:8452: \$? = $ac_status" >&5 |
1cf3d07d SE |
8453 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8454 | # The compiler can only warn and ignore the option if not recognized | |
8455 | # So say no if there are warnings other than the usual output. | |
8456 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8457 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8458 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 8459 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
8460 | fi |
8461 | fi | |
8462 | $RM conftest* | |
8463 | ||
8464 | fi | |
5213506e RW |
8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8466 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 8467 | |
6b4a97ed | 8468 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
8469 | case $lt_prog_compiler_pic in |
8470 | "" | " "*) ;; | |
8471 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8472 | esac | |
8473 | else | |
8474 | lt_prog_compiler_pic= | |
8475 | lt_prog_compiler_can_build_shared=no | |
8476 | fi | |
8477 | ||
8478 | fi | |
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | # | |
8486 | # Check to make sure the static flag actually works. | |
8487 | # | |
8488 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8490 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8491 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8492 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 8493 | else |
6b4a97ed | 8494 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
8495 | save_LDFLAGS="$LDFLAGS" |
8496 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8497 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8498 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8499 | # The linker can only warn and ignore the option if not recognized | |
8500 | # So say no if there are warnings | |
8501 | if test -s conftest.err; then | |
8502 | # Append any errors to the config.log. | |
8503 | cat conftest.err 1>&5 | |
8504 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8505 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8506 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 8507 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8508 | fi |
8509 | else | |
6b4a97ed | 8510 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8511 | fi |
8512 | fi | |
6b4a97ed | 8513 | $RM -r conftest* |
1cf3d07d SE |
8514 | LDFLAGS="$save_LDFLAGS" |
8515 | ||
8516 | fi | |
5213506e RW |
8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8518 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 8519 | |
6b4a97ed | 8520 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
8521 | : |
8522 | else | |
8523 | lt_prog_compiler_static= | |
8524 | fi | |
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
5213506e RW |
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8533 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8534 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8535 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
8536 | else |
8537 | lt_cv_prog_compiler_c_o=no | |
8538 | $RM -r conftest 2>/dev/null | |
8539 | mkdir conftest | |
8540 | cd conftest | |
8541 | mkdir out | |
8542 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8543 | ||
8544 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8545 | # Insert the option either (1) after the last *FLAGS variable, or | |
8546 | # (2) before a word containing "conftest.", or (3) at the end. | |
8547 | # Note that $ac_compile itself does not contain backslashes and begins | |
8548 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8549 | lt_compile=`echo "$ac_compile" | $SED \ | |
8550 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8551 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8552 | -e 's:$: $lt_compiler_flag:'` | |
5213506e | 8553 | (eval echo "\"\$as_me:8553: $lt_compile\"" >&5) |
1cf3d07d SE |
8554 | (eval "$lt_compile" 2>out/conftest.err) |
8555 | ac_status=$? | |
8556 | cat out/conftest.err >&5 | |
5213506e | 8557 | echo "$as_me:8557: \$? = $ac_status" >&5 |
1cf3d07d SE |
8558 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8559 | then | |
8560 | # The compiler can only warn and ignore the option if not recognized | |
8561 | # So say no if there are warnings | |
8562 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8563 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8564 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8565 | lt_cv_prog_compiler_c_o=yes | |
8566 | fi | |
8567 | fi | |
8568 | chmod u+w . 2>&5 | |
8569 | $RM conftest* | |
8570 | # SGI C++ compiler will create directory out/ii_files/ for | |
8571 | # template instantiation | |
8572 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8573 | $RM out/* && rmdir out | |
8574 | cd .. | |
8575 | $RM -r conftest | |
8576 | $RM conftest* | |
8577 | ||
8578 | fi | |
5213506e RW |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8580 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8581 | |
8582 | ||
8583 | ||
8584 | ||
8585 | ||
8586 | ||
5213506e RW |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8588 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8589 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8590 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
8591 | else |
8592 | lt_cv_prog_compiler_c_o=no | |
8593 | $RM -r conftest 2>/dev/null | |
8594 | mkdir conftest | |
8595 | cd conftest | |
8596 | mkdir out | |
8597 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8598 | ||
8599 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8600 | # Insert the option either (1) after the last *FLAGS variable, or | |
8601 | # (2) before a word containing "conftest.", or (3) at the end. | |
8602 | # Note that $ac_compile itself does not contain backslashes and begins | |
8603 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8604 | lt_compile=`echo "$ac_compile" | $SED \ | |
8605 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8606 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8607 | -e 's:$: $lt_compiler_flag:'` | |
5213506e | 8608 | (eval echo "\"\$as_me:8608: $lt_compile\"" >&5) |
1cf3d07d SE |
8609 | (eval "$lt_compile" 2>out/conftest.err) |
8610 | ac_status=$? | |
8611 | cat out/conftest.err >&5 | |
5213506e | 8612 | echo "$as_me:8612: \$? = $ac_status" >&5 |
1cf3d07d SE |
8613 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8614 | then | |
8615 | # The compiler can only warn and ignore the option if not recognized | |
8616 | # So say no if there are warnings | |
8617 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8618 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8619 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8620 | lt_cv_prog_compiler_c_o=yes | |
8621 | fi | |
8622 | fi | |
8623 | chmod u+w . 2>&5 | |
8624 | $RM conftest* | |
8625 | # SGI C++ compiler will create directory out/ii_files/ for | |
8626 | # template instantiation | |
8627 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8628 | $RM out/* && rmdir out | |
8629 | cd .. | |
8630 | $RM -r conftest | |
8631 | $RM conftest* | |
8632 | ||
8633 | fi | |
5213506e RW |
8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8635 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8636 | |
8637 | ||
8638 | ||
8639 | ||
8640 | hard_links="nottested" | |
8641 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8642 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8644 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
8645 | hard_links=yes |
8646 | $RM conftest* | |
8647 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8648 | touch conftest.a | |
8649 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8650 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8652 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 8653 | if test "$hard_links" = no; then |
5213506e RW |
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8655 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
8656 | need_locks=warn |
8657 | fi | |
8658 | else | |
8659 | need_locks=no | |
8660 | fi | |
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | ||
5213506e RW |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8668 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
8669 | |
8670 | runpath_var= | |
8671 | allow_undefined_flag= | |
8672 | always_export_symbols=no | |
8673 | archive_cmds= | |
8674 | archive_expsym_cmds= | |
8675 | compiler_needs_object=no | |
8676 | enable_shared_with_static_runtimes=no | |
8677 | export_dynamic_flag_spec= | |
8678 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8679 | hardcode_automatic=no | |
8680 | hardcode_direct=no | |
8681 | hardcode_direct_absolute=no | |
8682 | hardcode_libdir_flag_spec= | |
8683 | hardcode_libdir_flag_spec_ld= | |
8684 | hardcode_libdir_separator= | |
8685 | hardcode_minus_L=no | |
8686 | hardcode_shlibpath_var=unsupported | |
8687 | inherit_rpath=no | |
8688 | link_all_deplibs=unknown | |
8689 | module_cmds= | |
8690 | module_expsym_cmds= | |
8691 | old_archive_from_new_cmds= | |
8692 | old_archive_from_expsyms_cmds= | |
8693 | thread_safe_flag_spec= | |
8694 | whole_archive_flag_spec= | |
8695 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8696 | # included in the symbol list | |
8697 | include_expsyms= | |
8698 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8699 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8700 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8701 | # as well as any symbol that contains `d'. | |
6b4a97ed | 8702 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
8703 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8704 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8705 | # the symbol is explicitly referenced. Since portable code cannot | |
8706 | # rely on this symbol name, it's probably fine to never include it in | |
8707 | # preloaded symbol tables. | |
6b4a97ed | 8708 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
8709 | extract_expsyms_cmds= |
8710 | ||
8711 | case $host_os in | |
6b4a97ed | 8712 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8713 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8714 | # When not using gcc, we currently assume that we are using | |
8715 | # Microsoft Visual C++. | |
8716 | if test "$GCC" != yes; then | |
8717 | with_gnu_ld=no | |
8718 | fi | |
8719 | ;; | |
8720 | interix*) | |
8721 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8722 | with_gnu_ld=yes | |
8723 | ;; | |
8724 | openbsd*) | |
8725 | with_gnu_ld=no | |
8726 | ;; | |
8727 | esac | |
8728 | ||
8729 | ld_shlibs=yes | |
8730 | if test "$with_gnu_ld" = yes; then | |
8731 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8732 | wlarc='${wl}' | |
8733 | ||
8734 | # Set some defaults for GNU ld with shared library support. These | |
8735 | # are reset later if shared libraries are not supported. Putting them | |
8736 | # here allows them to be overridden if necessary. | |
8737 | runpath_var=LD_RUN_PATH | |
8738 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8739 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8740 | # ancient GNU ld didn't support --whole-archive et. al. | |
8741 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8742 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8743 | else | |
8744 | whole_archive_flag_spec= | |
8745 | fi | |
8746 | supports_anon_versioning=no | |
8747 | case `$LD -v 2>&1` in | |
8748 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8749 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8750 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8751 | *\ 2.11.*) ;; # other 2.11 versions | |
8752 | *) supports_anon_versioning=yes ;; | |
8753 | esac | |
8754 | ||
8755 | # See if GNU ld supports shared libraries. | |
8756 | case $host_os in | |
d653fdfb | 8757 | aix[3-9]*) |
1cf3d07d SE |
8758 | # On AIX/PPC, the GNU linker is very broken |
8759 | if test "$host_cpu" != ia64; then | |
8760 | ld_shlibs=no | |
8761 | cat <<_LT_EOF 1>&2 | |
8762 | ||
8763 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8764 | *** to be unable to reliably create shared libraries on AIX. | |
8765 | *** Therefore, libtool is disabling shared libraries support. If you | |
8766 | *** really care for shared libraries, you may want to modify your PATH | |
8767 | *** so that a non-GNU linker is found, and then restart. | |
8768 | ||
8769 | _LT_EOF | |
8770 | fi | |
8771 | ;; | |
8772 | ||
8773 | amigaos*) | |
6b4a97ed PG |
8774 | case $host_cpu in |
8775 | powerpc) | |
8776 | # see comment about AmigaOS4 .so support | |
8777 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8778 | archive_expsym_cmds='' | |
8779 | ;; | |
8780 | m68k) | |
8781 | 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)' | |
8782 | hardcode_libdir_flag_spec='-L$libdir' | |
8783 | hardcode_minus_L=yes | |
8784 | ;; | |
8785 | esac | |
1cf3d07d SE |
8786 | ;; |
8787 | ||
8788 | beos*) | |
8789 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8790 | allow_undefined_flag=unsupported | |
8791 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8792 | # support --undefined. This deserves some investigation. FIXME | |
8793 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8794 | else | |
8795 | ld_shlibs=no | |
8796 | fi | |
8797 | ;; | |
8798 | ||
6b4a97ed | 8799 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8800 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8801 | # as there is no search path for DLLs. | |
8802 | hardcode_libdir_flag_spec='-L$libdir' | |
8803 | allow_undefined_flag=unsupported | |
8804 | always_export_symbols=no | |
8805 | enable_shared_with_static_runtimes=yes | |
8806 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8807 | ||
8808 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8809 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8810 | # If the export-symbols file already is a .def file (1st line | |
8811 | # is EXPORTS), use it as is; otherwise, prepend... | |
8812 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8813 | cp $export_symbols $output_objdir/$soname.def; | |
8814 | else | |
8815 | echo EXPORTS > $output_objdir/$soname.def; | |
8816 | cat $export_symbols >> $output_objdir/$soname.def; | |
8817 | fi~ | |
8818 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8819 | else | |
8820 | ld_shlibs=no | |
8821 | fi | |
8822 | ;; | |
8823 | ||
8824 | interix[3-9]*) | |
8825 | hardcode_direct=no | |
8826 | hardcode_shlibpath_var=no | |
8827 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8828 | export_dynamic_flag_spec='${wl}-E' | |
8829 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8830 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8831 | # default) and relocated if they conflict, which is a slow very memory | |
8832 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8833 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8834 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8835 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8836 | 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' | |
8837 | ;; | |
8838 | ||
7a9d3fe8 | 8839 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
8840 | tmp_diet=no |
8841 | if test "$host_os" = linux-dietlibc; then | |
8842 | case $cc_basename in | |
8843 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8844 | esac | |
8845 | fi | |
8846 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8847 | && test "$tmp_diet" = no | |
8848 | then | |
8849 | tmp_addflag= | |
6b4a97ed | 8850 | tmp_sharedflag='-shared' |
1cf3d07d SE |
8851 | case $cc_basename,$host_cpu in |
8852 | pgcc*) # Portland Group C compiler | |
8853 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8854 | tmp_addflag=' $pic_flag' | |
8855 | ;; | |
8856 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8857 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8858 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8859 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8860 | tmp_addflag=' -i_dynamic' ;; | |
8861 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8862 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8863 | ifc* | ifort*) # Intel Fortran compiler | |
8864 | tmp_addflag=' -nofor_main' ;; | |
6b4a97ed PG |
8865 | lf95*) # Lahey Fortran 8.1 |
8866 | whole_archive_flag_spec= | |
8867 | tmp_sharedflag='--shared' ;; | |
8868 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8869 | tmp_sharedflag='-qmkshrobj' | |
8870 | tmp_addflag= ;; | |
1cf3d07d SE |
8871 | esac |
8872 | case `$CC -V 2>&1 | sed 5q` in | |
8873 | *Sun\ C*) # Sun C 5.9 | |
8874 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8875 | compiler_needs_object=yes | |
8876 | tmp_sharedflag='-G' ;; | |
8877 | *Sun\ F*) # Sun Fortran 8.3 | |
8878 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
8879 | esac |
8880 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8881 | ||
8882 | if test "x$supports_anon_versioning" = xyes; then | |
8883 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8884 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8885 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8886 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8887 | fi | |
6b4a97ed PG |
8888 | |
8889 | case $cc_basename in | |
8890 | xlf*) | |
8891 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8892 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8893 | hardcode_libdir_flag_spec= | |
8894 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8895 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8896 | if test "x$supports_anon_versioning" = xyes; then | |
8897 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8898 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8899 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8900 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8901 | fi | |
8902 | ;; | |
8903 | esac | |
1cf3d07d SE |
8904 | else |
8905 | ld_shlibs=no | |
8906 | fi | |
8907 | ;; | |
8908 | ||
8909 | netbsd*) | |
8910 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8911 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8912 | wlarc= | |
8913 | else | |
8914 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8915 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8916 | fi | |
8917 | ;; | |
8918 | ||
8919 | solaris*) | |
8920 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8921 | ld_shlibs=no | |
8922 | cat <<_LT_EOF 1>&2 | |
8923 | ||
8924 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8925 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8926 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8927 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8928 | *** your PATH or compiler configuration so that the native linker is | |
8929 | *** used, and then restart. | |
8930 | ||
8931 | _LT_EOF | |
8932 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8933 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8934 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8935 | else | |
8936 | ld_shlibs=no | |
8937 | fi | |
8938 | ;; | |
8939 | ||
8940 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8941 | case `$LD -v 2>&1` in | |
8942 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8943 | ld_shlibs=no | |
8944 | cat <<_LT_EOF 1>&2 | |
8945 | ||
8946 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8947 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8948 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8949 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8950 | *** your PATH or compiler configuration so that the native linker is | |
8951 | *** used, and then restart. | |
8952 | ||
8953 | _LT_EOF | |
8954 | ;; | |
8955 | *) | |
8956 | # For security reasons, it is highly recommended that you always | |
8957 | # use absolute paths for naming shared libraries, and exclude the | |
8958 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8959 | # requires that you compile everything twice, which is a pain. | |
8960 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8961 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8962 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8963 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8964 | else | |
8965 | ld_shlibs=no | |
8966 | fi | |
8967 | ;; | |
8968 | esac | |
8969 | ;; | |
8970 | ||
8971 | sunos4*) | |
8972 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8973 | wlarc= | |
8974 | hardcode_direct=yes | |
8975 | hardcode_shlibpath_var=no | |
8976 | ;; | |
8977 | ||
8978 | *) | |
8979 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8980 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8981 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8982 | else | |
8983 | ld_shlibs=no | |
8984 | fi | |
8985 | ;; | |
8986 | esac | |
8987 | ||
8988 | if test "$ld_shlibs" = no; then | |
8989 | runpath_var= | |
8990 | hardcode_libdir_flag_spec= | |
8991 | export_dynamic_flag_spec= | |
8992 | whole_archive_flag_spec= | |
8993 | fi | |
8994 | else | |
8995 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8996 | case $host_os in | |
8997 | aix3*) | |
8998 | allow_undefined_flag=unsupported | |
8999 | always_export_symbols=yes | |
9000 | 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' | |
9001 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9002 | # are no directories specified by -L. | |
9003 | hardcode_minus_L=yes | |
9004 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9005 | # Neither direct hardcoding nor static linking is supported with a | |
9006 | # broken collect2. | |
9007 | hardcode_direct=unsupported | |
9008 | fi | |
9009 | ;; | |
9010 | ||
d653fdfb | 9011 | aix[4-9]*) |
1cf3d07d SE |
9012 | if test "$host_cpu" = ia64; then |
9013 | # On IA64, the linker does run time linking by default, so we don't | |
9014 | # have to do anything special. | |
9015 | aix_use_runtimelinking=no | |
9016 | exp_sym_flag='-Bexport' | |
9017 | no_entry_flag="" | |
9018 | else | |
9019 | # If we're using GNU nm, then we don't want the "-C" option. | |
9020 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9021 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9022 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9023 | else | |
9024 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9025 | fi | |
9026 | aix_use_runtimelinking=no | |
9027 | ||
9028 | # Test if we are trying to use run time linking or normal | |
9029 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9030 | # need to do runtime linking. | |
d653fdfb | 9031 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
9032 | for ld_flag in $LDFLAGS; do |
9033 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9034 | aix_use_runtimelinking=yes | |
9035 | break | |
9036 | fi | |
9037 | done | |
9038 | ;; | |
9039 | esac | |
9040 | ||
9041 | exp_sym_flag='-bexport' | |
9042 | no_entry_flag='-bnoentry' | |
9043 | fi | |
9044 | ||
9045 | # When large executables or shared objects are built, AIX ld can | |
9046 | # have problems creating the table of contents. If linking a library | |
9047 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9048 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9049 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9050 | ||
9051 | archive_cmds='' | |
9052 | hardcode_direct=yes | |
9053 | hardcode_direct_absolute=yes | |
9054 | hardcode_libdir_separator=':' | |
9055 | link_all_deplibs=yes | |
9056 | file_list_spec='${wl}-f,' | |
9057 | ||
9058 | if test "$GCC" = yes; then | |
9059 | case $host_os in aix4.[012]|aix4.[012].*) | |
9060 | # We only want to do this on AIX 4.2 and lower, the check | |
9061 | # below for broken collect2 doesn't work under 4.3+ | |
9062 | collect2name=`${CC} -print-prog-name=collect2` | |
9063 | if test -f "$collect2name" && | |
9064 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9065 | then | |
9066 | # We have reworked collect2 | |
9067 | : | |
9068 | else | |
9069 | # We have old collect2 | |
9070 | hardcode_direct=unsupported | |
9071 | # It fails to find uninstalled libraries when the uninstalled | |
9072 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9073 | # to unsupported forces relinking | |
9074 | hardcode_minus_L=yes | |
9075 | hardcode_libdir_flag_spec='-L$libdir' | |
9076 | hardcode_libdir_separator= | |
9077 | fi | |
9078 | ;; | |
9079 | esac | |
9080 | shared_flag='-shared' | |
9081 | if test "$aix_use_runtimelinking" = yes; then | |
9082 | shared_flag="$shared_flag "'${wl}-G' | |
9083 | fi | |
9084 | else | |
9085 | # not using gcc | |
9086 | if test "$host_cpu" = ia64; then | |
9087 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9088 | # chokes on -Wl,-G. The following line is correct: | |
9089 | shared_flag='-G' | |
9090 | else | |
9091 | if test "$aix_use_runtimelinking" = yes; then | |
9092 | shared_flag='${wl}-G' | |
9093 | else | |
9094 | shared_flag='${wl}-bM:SRE' | |
9095 | fi | |
9096 | fi | |
9097 | fi | |
9098 | ||
6b4a97ed | 9099 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
9100 | # It seems that -bexpall does not export symbols beginning with |
9101 | # underscore (_), so it is better to generate a list of symbols to export. | |
9102 | always_export_symbols=yes | |
9103 | if test "$aix_use_runtimelinking" = yes; then | |
9104 | # Warning - without using the other runtime loading flags (-brtl), | |
9105 | # -berok will link without error, but may produce a broken library. | |
9106 | allow_undefined_flag='-berok' | |
9107 | # Determine the default libpath from the value encoded in an | |
9108 | # empty executable. | |
5213506e | 9109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
9110 | /* end confdefs.h. */ |
9111 | ||
9112 | int | |
9113 | main () | |
9114 | { | |
9115 | ||
9116 | ; | |
9117 | return 0; | |
9118 | } | |
9119 | _ACEOF | |
5213506e | 9120 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
9121 | |
9122 | lt_aix_libpath_sed=' | |
9123 | /Import File Strings/,/^$/ { | |
9124 | /^0/ { | |
9125 | s/^0 *\(.*\)$/\1/ | |
9126 | p | |
9127 | } | |
9128 | }' | |
9129 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9130 | # Check for a 64-bit object if we didn't find anything. | |
9131 | if test -z "$aix_libpath"; then | |
9132 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9133 | fi | |
1cf3d07d | 9134 | fi |
5213506e RW |
9135 | rm -f core conftest.err conftest.$ac_objext \ |
9136 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9137 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9138 | ||
9139 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9140 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9141 | else | |
9142 | if test "$host_cpu" = ia64; then | |
9143 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9144 | allow_undefined_flag="-z nodefs" | |
9145 | 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" | |
9146 | else | |
9147 | # Determine the default libpath from the value encoded in an | |
9148 | # empty executable. | |
5213506e | 9149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
9150 | /* end confdefs.h. */ |
9151 | ||
9152 | int | |
9153 | main () | |
9154 | { | |
9155 | ||
9156 | ; | |
9157 | return 0; | |
9158 | } | |
9159 | _ACEOF | |
5213506e | 9160 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
9161 | |
9162 | lt_aix_libpath_sed=' | |
9163 | /Import File Strings/,/^$/ { | |
9164 | /^0/ { | |
9165 | s/^0 *\(.*\)$/\1/ | |
9166 | p | |
9167 | } | |
9168 | }' | |
9169 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9170 | # Check for a 64-bit object if we didn't find anything. | |
9171 | if test -z "$aix_libpath"; then | |
9172 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9173 | fi | |
1cf3d07d | 9174 | fi |
5213506e RW |
9175 | rm -f core conftest.err conftest.$ac_objext \ |
9176 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9177 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9178 | ||
9179 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9180 | # Warning - without using the other run time loading flags, | |
9181 | # -berok will link without error, but may produce a broken library. | |
9182 | no_undefined_flag=' ${wl}-bernotok' | |
9183 | allow_undefined_flag=' ${wl}-berok' | |
9184 | # Exported symbols can be pulled into shared objects from archives | |
9185 | whole_archive_flag_spec='$convenience' | |
9186 | archive_cmds_need_lc=yes | |
9187 | # This is similar to how AIX traditionally builds its shared libraries. | |
9188 | 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' | |
9189 | fi | |
9190 | fi | |
9191 | ;; | |
9192 | ||
9193 | amigaos*) | |
6b4a97ed PG |
9194 | case $host_cpu in |
9195 | powerpc) | |
9196 | # see comment about AmigaOS4 .so support | |
9197 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9198 | archive_expsym_cmds='' | |
9199 | ;; | |
9200 | m68k) | |
9201 | 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)' | |
9202 | hardcode_libdir_flag_spec='-L$libdir' | |
9203 | hardcode_minus_L=yes | |
9204 | ;; | |
9205 | esac | |
1cf3d07d SE |
9206 | ;; |
9207 | ||
9208 | bsdi[45]*) | |
9209 | export_dynamic_flag_spec=-rdynamic | |
9210 | ;; | |
9211 | ||
6b4a97ed | 9212 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9213 | # When not using gcc, we currently assume that we are using |
9214 | # Microsoft Visual C++. | |
9215 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9216 | # no search path for DLLs. | |
9217 | hardcode_libdir_flag_spec=' ' | |
9218 | allow_undefined_flag=unsupported | |
9219 | # Tell ltmain to make .lib files, not .a files. | |
9220 | libext=lib | |
9221 | # Tell ltmain to make .dll files, not .so files. | |
9222 | shrext_cmds=".dll" | |
9223 | # FIXME: Setting linknames here is a bad hack. | |
9224 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9225 | # The linker will automatically build a .lib file if we build a DLL. | |
9226 | old_archive_from_new_cmds='true' | |
9227 | # FIXME: Should let the user specify the lib program. | |
9228 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9229 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9230 | enable_shared_with_static_runtimes=yes | |
9231 | ;; | |
9232 | ||
9233 | darwin* | rhapsody*) | |
1cf3d07d | 9234 | |
6b4a97ed PG |
9235 | |
9236 | archive_cmds_need_lc=no | |
9237 | hardcode_direct=no | |
9238 | hardcode_automatic=yes | |
9239 | hardcode_shlibpath_var=unsupported | |
9240 | whole_archive_flag_spec='' | |
9241 | link_all_deplibs=yes | |
9242 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9243 | case $cc_basename in | |
9244 | ifort*) _lt_dar_can_shared=yes ;; | |
9245 | *) _lt_dar_can_shared=$GCC ;; | |
9246 | esac | |
9247 | if test "$_lt_dar_can_shared" = "yes"; then | |
9248 | output_verbose_link_cmd=echo | |
9249 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9250 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9251 | 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}" | |
9252 | 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}" | |
9253 | ||
9254 | else | |
9255 | ld_shlibs=no | |
9256 | fi | |
9257 | ||
1cf3d07d SE |
9258 | ;; |
9259 | ||
9260 | dgux*) | |
9261 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9262 | hardcode_libdir_flag_spec='-L$libdir' | |
9263 | hardcode_shlibpath_var=no | |
9264 | ;; | |
9265 | ||
9266 | freebsd1*) | |
9267 | ld_shlibs=no | |
9268 | ;; | |
9269 | ||
9270 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9271 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9272 | # does not break anything, and helps significantly (at the cost of a little | |
9273 | # extra space). | |
9274 | freebsd2.2*) | |
9275 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9276 | hardcode_libdir_flag_spec='-R$libdir' | |
9277 | hardcode_direct=yes | |
9278 | hardcode_shlibpath_var=no | |
9279 | ;; | |
9280 | ||
9281 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9282 | freebsd2*) | |
9283 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9284 | hardcode_direct=yes | |
9285 | hardcode_minus_L=yes | |
9286 | hardcode_shlibpath_var=no | |
9287 | ;; | |
9288 | ||
9289 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9290 | freebsd* | dragonfly*) | |
9291 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9292 | hardcode_libdir_flag_spec='-R$libdir' | |
9293 | hardcode_direct=yes | |
9294 | hardcode_shlibpath_var=no | |
9295 | ;; | |
9296 | ||
9297 | hpux9*) | |
9298 | if test "$GCC" = yes; then | |
9299 | 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' | |
9300 | else | |
9301 | 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' | |
9302 | fi | |
9303 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9304 | hardcode_libdir_separator=: | |
9305 | hardcode_direct=yes | |
9306 | ||
9307 | # hardcode_minus_L: Not really in the search PATH, | |
9308 | # but as the default location of the library. | |
9309 | hardcode_minus_L=yes | |
9310 | export_dynamic_flag_spec='${wl}-E' | |
9311 | ;; | |
9312 | ||
9313 | hpux10*) | |
9314 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9315 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9316 | else | |
9317 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9318 | fi | |
9319 | if test "$with_gnu_ld" = no; then | |
9320 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9321 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9322 | hardcode_libdir_separator=: | |
9323 | hardcode_direct=yes | |
9324 | hardcode_direct_absolute=yes | |
9325 | export_dynamic_flag_spec='${wl}-E' | |
9326 | # hardcode_minus_L: Not really in the search PATH, | |
9327 | # but as the default location of the library. | |
9328 | hardcode_minus_L=yes | |
9329 | fi | |
9330 | ;; | |
9331 | ||
9332 | hpux11*) | |
9333 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9334 | case $host_cpu in | |
9335 | hppa*64*) | |
9336 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9337 | ;; | |
9338 | ia64*) | |
6b4a97ed | 9339 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9340 | ;; |
9341 | *) | |
9342 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9343 | ;; | |
9344 | esac | |
9345 | else | |
9346 | case $host_cpu in | |
9347 | hppa*64*) | |
9348 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9349 | ;; | |
9350 | ia64*) | |
9351 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9352 | ;; | |
9353 | *) | |
9354 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9355 | ;; | |
9356 | esac | |
9357 | fi | |
9358 | if test "$with_gnu_ld" = no; then | |
9359 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9360 | hardcode_libdir_separator=: | |
9361 | ||
9362 | case $host_cpu in | |
9363 | hppa*64*|ia64*) | |
9364 | hardcode_direct=no | |
9365 | hardcode_shlibpath_var=no | |
9366 | ;; | |
9367 | *) | |
9368 | hardcode_direct=yes | |
9369 | hardcode_direct_absolute=yes | |
9370 | export_dynamic_flag_spec='${wl}-E' | |
9371 | ||
9372 | # hardcode_minus_L: Not really in the search PATH, | |
9373 | # but as the default location of the library. | |
9374 | hardcode_minus_L=yes | |
9375 | ;; | |
9376 | esac | |
9377 | fi | |
9378 | ;; | |
9379 | ||
9380 | irix5* | irix6* | nonstopux*) | |
9381 | if test "$GCC" = yes; then | |
9382 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9383 | # Try to use the -exported_symbol ld option, if it does not | |
9384 | # work, assume that -exports_file does not work either and | |
9385 | # implicitly export all symbols. | |
9386 | save_LDFLAGS="$LDFLAGS" | |
9387 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
5213506e RW |
9388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9389 | /* end confdefs.h. */ | |
1cf3d07d SE |
9390 | int foo(void) {} |
9391 | _ACEOF | |
5213506e | 9392 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
9393 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
9394 | ||
1cf3d07d | 9395 | fi |
5213506e RW |
9396 | rm -f core conftest.err conftest.$ac_objext \ |
9397 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9398 | LDFLAGS="$save_LDFLAGS" |
9399 | else | |
9400 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9401 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9402 | fi | |
9403 | archive_cmds_need_lc='no' | |
9404 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9405 | hardcode_libdir_separator=: | |
9406 | inherit_rpath=yes | |
9407 | link_all_deplibs=yes | |
9408 | ;; | |
9409 | ||
9410 | netbsd*) | |
9411 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9412 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9413 | else | |
9414 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9415 | fi | |
9416 | hardcode_libdir_flag_spec='-R$libdir' | |
9417 | hardcode_direct=yes | |
9418 | hardcode_shlibpath_var=no | |
9419 | ;; | |
9420 | ||
9421 | newsos6) | |
9422 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9423 | hardcode_direct=yes | |
9424 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9425 | hardcode_libdir_separator=: | |
9426 | hardcode_shlibpath_var=no | |
9427 | ;; | |
9428 | ||
9429 | *nto* | *qnx*) | |
9430 | ;; | |
9431 | ||
9432 | openbsd*) | |
6b4a97ed PG |
9433 | if test -f /usr/libexec/ld.so; then |
9434 | hardcode_direct=yes | |
9435 | hardcode_shlibpath_var=no | |
9436 | hardcode_direct_absolute=yes | |
9437 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 9438 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6b4a97ed | 9439 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 9440 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6b4a97ed PG |
9441 | export_dynamic_flag_spec='${wl}-E' |
9442 | else | |
9443 | case $host_os in | |
9444 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9445 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9446 | hardcode_libdir_flag_spec='-R$libdir' | |
9447 | ;; | |
9448 | *) | |
9449 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9450 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9451 | ;; | |
9452 | esac | |
9453 | fi | |
9454 | else | |
9455 | ld_shlibs=no | |
1cf3d07d SE |
9456 | fi |
9457 | ;; | |
9458 | ||
9459 | os2*) | |
9460 | hardcode_libdir_flag_spec='-L$libdir' | |
9461 | hardcode_minus_L=yes | |
9462 | allow_undefined_flag=unsupported | |
9463 | 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' | |
9464 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9465 | ;; | |
9466 | ||
9467 | osf3*) | |
9468 | if test "$GCC" = yes; then | |
9469 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9470 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9471 | else | |
9472 | allow_undefined_flag=' -expect_unresolved \*' | |
9473 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9474 | fi | |
9475 | archive_cmds_need_lc='no' | |
9476 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9477 | hardcode_libdir_separator=: | |
9478 | ;; | |
9479 | ||
9480 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9481 | if test "$GCC" = yes; then | |
9482 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9483 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9484 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9485 | else | |
9486 | allow_undefined_flag=' -expect_unresolved \*' | |
9487 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9488 | 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~ | |
9489 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
9490 | ||
9491 | # Both c and cxx compiler support -rpath directly | |
9492 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9493 | fi | |
9494 | archive_cmds_need_lc='no' | |
9495 | hardcode_libdir_separator=: | |
9496 | ;; | |
9497 | ||
9498 | solaris*) | |
9499 | no_undefined_flag=' -z defs' | |
9500 | if test "$GCC" = yes; then | |
9501 | wlarc='${wl}' | |
9502 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9503 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9504 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9505 | else | |
9506 | case `$CC -V 2>&1` in | |
9507 | *"Compilers 5.0"*) | |
9508 | wlarc='' | |
9509 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9510 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9511 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9512 | ;; | |
9513 | *) | |
9514 | wlarc='${wl}' | |
9515 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9516 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9517 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9518 | ;; | |
9519 | esac | |
9520 | fi | |
9521 | hardcode_libdir_flag_spec='-R$libdir' | |
9522 | hardcode_shlibpath_var=no | |
9523 | case $host_os in | |
9524 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9525 | *) | |
9526 | # The compiler driver will combine and reorder linker options, | |
9527 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9528 | # but is careful enough not to reorder. | |
9529 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9530 | if test "$GCC" = yes; then | |
9531 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9532 | else | |
9533 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9534 | fi | |
9535 | ;; | |
9536 | esac | |
9537 | link_all_deplibs=yes | |
9538 | ;; | |
9539 | ||
9540 | sunos4*) | |
9541 | if test "x$host_vendor" = xsequent; then | |
9542 | # Use $CC to link under sequent, because it throws in some extra .o | |
9543 | # files that make .init and .fini sections work. | |
9544 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9545 | else | |
9546 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9547 | fi | |
9548 | hardcode_libdir_flag_spec='-L$libdir' | |
9549 | hardcode_direct=yes | |
9550 | hardcode_minus_L=yes | |
9551 | hardcode_shlibpath_var=no | |
9552 | ;; | |
9553 | ||
9554 | sysv4) | |
9555 | case $host_vendor in | |
9556 | sni) | |
9557 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9558 | hardcode_direct=yes # is this really true??? | |
9559 | ;; | |
9560 | siemens) | |
9561 | ## LD is ld it makes a PLAMLIB | |
9562 | ## CC just makes a GrossModule. | |
9563 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9564 | reload_cmds='$CC -r -o $output$reload_objs' | |
9565 | hardcode_direct=no | |
9566 | ;; | |
9567 | motorola) | |
9568 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9569 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9570 | ;; | |
9571 | esac | |
9572 | runpath_var='LD_RUN_PATH' | |
9573 | hardcode_shlibpath_var=no | |
9574 | ;; | |
9575 | ||
9576 | sysv4.3*) | |
9577 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9578 | hardcode_shlibpath_var=no | |
9579 | export_dynamic_flag_spec='-Bexport' | |
9580 | ;; | |
9581 | ||
9582 | sysv4*MP*) | |
9583 | if test -d /usr/nec; then | |
9584 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9585 | hardcode_shlibpath_var=no | |
9586 | runpath_var=LD_RUN_PATH | |
9587 | hardcode_runpath_var=yes | |
9588 | ld_shlibs=yes | |
9589 | fi | |
9590 | ;; | |
9591 | ||
9592 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9593 | no_undefined_flag='${wl}-z,text' | |
9594 | archive_cmds_need_lc=no | |
9595 | hardcode_shlibpath_var=no | |
9596 | runpath_var='LD_RUN_PATH' | |
9597 | ||
9598 | if test "$GCC" = yes; then | |
9599 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9600 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9601 | else | |
9602 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9603 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9604 | fi | |
9605 | ;; | |
9606 | ||
9607 | sysv5* | sco3.2v5* | sco5v6*) | |
9608 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9609 | # link with -lc, and that would cause any symbols used from libc to | |
9610 | # always be unresolved, which means just about no library would | |
9611 | # ever link correctly. If we're not using GNU ld we use -z text | |
9612 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9613 | # as -z defs. | |
9614 | no_undefined_flag='${wl}-z,text' | |
9615 | allow_undefined_flag='${wl}-z,nodefs' | |
9616 | archive_cmds_need_lc=no | |
9617 | hardcode_shlibpath_var=no | |
9618 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9619 | hardcode_libdir_separator=':' | |
9620 | link_all_deplibs=yes | |
9621 | export_dynamic_flag_spec='${wl}-Bexport' | |
9622 | runpath_var='LD_RUN_PATH' | |
9623 | ||
9624 | if test "$GCC" = yes; then | |
9625 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9626 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9627 | else | |
9628 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9629 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9630 | fi | |
9631 | ;; | |
9632 | ||
9633 | uts4*) | |
9634 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9635 | hardcode_libdir_flag_spec='-L$libdir' | |
9636 | hardcode_shlibpath_var=no | |
9637 | ;; | |
9638 | ||
9639 | *) | |
9640 | ld_shlibs=no | |
9641 | ;; | |
9642 | esac | |
9643 | ||
9644 | if test x$host_vendor = xsni; then | |
9645 | case $host in | |
9646 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9647 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9648 | ;; | |
9649 | esac | |
9650 | fi | |
9651 | fi | |
9652 | ||
5213506e RW |
9653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9654 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
9655 | test "$ld_shlibs" = no && can_build_shared=no |
9656 | ||
9657 | with_gnu_ld=$with_gnu_ld | |
9658 | ||
9659 | ||
9660 | ||
9661 | ||
9662 | ||
9663 | ||
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | ||
9669 | ||
9670 | ||
9671 | ||
9672 | ||
9673 | # | |
9674 | # Do we need to explicitly link libc? | |
9675 | # | |
9676 | case "x$archive_cmds_need_lc" in | |
9677 | x|xyes) | |
9678 | # Assume -lc should be added | |
9679 | archive_cmds_need_lc=yes | |
9680 | ||
9681 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9682 | case $archive_cmds in | |
9683 | *'~'*) | |
9684 | # FIXME: we may have to deal with multi-command sequences. | |
9685 | ;; | |
9686 | '$CC '*) | |
9687 | # Test whether the compiler implicitly links with -lc since on some | |
9688 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9689 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9691 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9692 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9693 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
9694 | else |
9695 | $RM conftest* | |
9696 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 9697 | |
5213506e | 9698 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
9699 | (eval $ac_compile) 2>&5 |
9700 | ac_status=$? | |
5213506e RW |
9701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9702 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
9703 | soname=conftest |
9704 | lib=conftest | |
9705 | libobjs=conftest.$ac_objext | |
9706 | deplibs= | |
9707 | wl=$lt_prog_compiler_wl | |
9708 | pic_flag=$lt_prog_compiler_pic | |
9709 | compiler_flags=-v | |
9710 | linker_flags=-v | |
9711 | verstring= | |
9712 | output_objdir=. | |
9713 | libname=conftest | |
9714 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9715 | allow_undefined_flag= | |
5213506e | 9716 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
9717 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9718 | ac_status=$? | |
5213506e RW |
9719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9720 | test $ac_status = 0; } | |
baafc534 RW |
9721 | then |
9722 | lt_cv_archive_cmds_need_lc=no | |
9723 | else | |
9724 | lt_cv_archive_cmds_need_lc=yes | |
9725 | fi | |
9726 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9727 | else | |
9728 | cat conftest.err 1>&5 | |
9729 | fi | |
9730 | $RM conftest* | |
9731 | ||
9732 | fi | |
5213506e RW |
9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9734 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 9735 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
9736 | ;; |
9737 | esac | |
9738 | fi | |
9739 | ;; | |
9740 | esac | |
9741 | ||
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | ||
9767 | ||
9768 | ||
9769 | ||
9770 | ||
9771 | ||
9772 | ||
9773 | ||
9774 | ||
9775 | ||
9776 | ||
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | ||
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
5213506e RW |
9898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9899 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
6b4a97ed PG |
9900 | |
9901 | if test "$GCC" = yes; then | |
1cf3d07d SE |
9902 | case $host_os in |
9903 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9904 | *) lt_awk_arg="/^libraries:/" ;; | |
9905 | esac | |
9906 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9907 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9908 | # if the path contains ";" then we assume it to be the separator | |
9909 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9910 | # assumed that no part of a normal pathname contains ";" but that should | |
9911 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9912 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9913 | else | |
9914 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9915 | fi | |
9916 | # Ok, now we have the path, separated by spaces, we can step through it | |
9917 | # and add multilib dir if necessary. | |
9918 | lt_tmp_lt_search_path_spec= | |
9919 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9920 | for lt_sys_path in $lt_search_path_spec; do | |
9921 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9922 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9923 | else | |
9924 | test -d "$lt_sys_path" && \ | |
9925 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9926 | fi | |
9927 | done | |
9928 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9929 | BEGIN {RS=" "; FS="/|\n";} { | |
9930 | lt_foo=""; | |
9931 | lt_count=0; | |
9932 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9933 | if ($lt_i != "" && $lt_i != ".") { | |
9934 | if ($lt_i == "..") { | |
9935 | lt_count++; | |
9936 | } else { | |
9937 | if (lt_count == 0) { | |
9938 | lt_foo="/" $lt_i lt_foo; | |
9939 | } else { | |
9940 | lt_count--; | |
9941 | } | |
9942 | } | |
9943 | } | |
9944 | } | |
9945 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9946 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9947 | }'` | |
9948 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9949 | else | |
9950 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9951 | fi | |
9952 | library_names_spec= | |
9953 | libname_spec='lib$name' | |
9954 | soname_spec= | |
9955 | shrext_cmds=".so" | |
9956 | postinstall_cmds= | |
9957 | postuninstall_cmds= | |
9958 | finish_cmds= | |
9959 | finish_eval= | |
9960 | shlibpath_var= | |
9961 | shlibpath_overrides_runpath=unknown | |
9962 | version_type=none | |
9963 | dynamic_linker="$host_os ld.so" | |
9964 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9965 | need_lib_prefix=unknown | |
9966 | hardcode_into_libs=no | |
9967 | ||
9968 | # when you set need_version to no, make sure it does not cause -set_version | |
9969 | # flags to be left without arguments | |
9970 | need_version=unknown | |
9971 | ||
9972 | case $host_os in | |
9973 | aix3*) | |
9974 | version_type=linux | |
9975 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9976 | shlibpath_var=LIBPATH | |
9977 | ||
9978 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9979 | soname_spec='${libname}${release}${shared_ext}$major' | |
9980 | ;; | |
9981 | ||
d653fdfb | 9982 | aix[4-9]*) |
1cf3d07d SE |
9983 | version_type=linux |
9984 | need_lib_prefix=no | |
9985 | need_version=no | |
9986 | hardcode_into_libs=yes | |
9987 | if test "$host_cpu" = ia64; then | |
9988 | # AIX 5 supports IA64 | |
9989 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9990 | shlibpath_var=LD_LIBRARY_PATH | |
9991 | else | |
9992 | # With GCC up to 2.95.x, collect2 would create an import file | |
9993 | # for dependence libraries. The import file would start with | |
9994 | # the line `#! .'. This would cause the generated library to | |
9995 | # depend on `.', always an invalid library. This was fixed in | |
9996 | # development snapshots of GCC prior to 3.0. | |
9997 | case $host_os in | |
9998 | aix4 | aix4.[01] | aix4.[01].*) | |
9999 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10000 | echo ' yes ' | |
10001 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10002 | : | |
10003 | else | |
10004 | can_build_shared=no | |
10005 | fi | |
10006 | ;; | |
10007 | esac | |
10008 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10009 | # soname into executable. Probably we can add versioning support to | |
10010 | # collect2, so additional links can be useful in future. | |
10011 | if test "$aix_use_runtimelinking" = yes; then | |
10012 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10013 | # instead of lib<name>.a to let people know that these are not | |
10014 | # typical AIX shared libraries. | |
10015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10016 | else | |
10017 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10018 | # and later when we are not doing run time linking. | |
10019 | library_names_spec='${libname}${release}.a $libname.a' | |
10020 | soname_spec='${libname}${release}${shared_ext}$major' | |
10021 | fi | |
10022 | shlibpath_var=LIBPATH | |
10023 | fi | |
10024 | ;; | |
10025 | ||
10026 | amigaos*) | |
6b4a97ed PG |
10027 | case $host_cpu in |
10028 | powerpc) | |
10029 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10030 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10032 | ;; | |
10033 | m68k) | |
1cf3d07d SE |
10034 | library_names_spec='$libname.ixlibrary $libname.a' |
10035 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10036 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' | |
6b4a97ed PG |
10037 | ;; |
10038 | esac | |
1cf3d07d SE |
10039 | ;; |
10040 | ||
10041 | beos*) | |
10042 | library_names_spec='${libname}${shared_ext}' | |
10043 | dynamic_linker="$host_os ld.so" | |
10044 | shlibpath_var=LIBRARY_PATH | |
10045 | ;; | |
10046 | ||
10047 | bsdi[45]*) | |
10048 | version_type=linux | |
10049 | need_version=no | |
10050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10051 | soname_spec='${libname}${release}${shared_ext}$major' | |
10052 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10053 | shlibpath_var=LD_LIBRARY_PATH | |
10054 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10055 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10056 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10057 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10058 | # libtool to hard-code these into programs | |
10059 | ;; | |
10060 | ||
6b4a97ed | 10061 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10062 | version_type=windows |
10063 | shrext_cmds=".dll" | |
10064 | need_version=no | |
10065 | need_lib_prefix=no | |
10066 | ||
6b4a97ed PG |
10067 | case $GCC,$host_os in |
10068 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
10069 | library_names_spec='$libname.dll.a' |
10070 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10071 | postinstall_cmds='base_file=`basename \${file}`~ | |
10072 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10073 | dldir=$destdir/`dirname \$dlpath`~ | |
10074 | test -d \$dldir || mkdir -p \$dldir~ | |
10075 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10076 | chmod a+x \$dldir/$dlname~ | |
10077 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10078 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10079 | fi' | |
10080 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10081 | dlpath=$dir/\$dldll~ | |
10082 | $RM \$dlpath' | |
10083 | shlibpath_overrides_runpath=yes | |
10084 | ||
10085 | case $host_os in | |
10086 | cygwin*) | |
10087 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10088 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10089 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10090 | ;; | |
6b4a97ed | 10091 | mingw* | cegcc*) |
1cf3d07d SE |
10092 | # MinGW DLLs use traditional 'lib' prefix |
10093 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10094 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10095 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10096 | # It is most probably a Windows format PATH printed by | |
10097 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10098 | # path with ; separators, and with drive letters. We can handle the | |
10099 | # drive letters (cygwin fileutils understands them), so leave them, | |
10100 | # especially as we might pass files found there to a mingw objdump, | |
10101 | # which wouldn't understand a cygwinified path. Ahh. | |
10102 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10103 | else | |
10104 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10105 | fi | |
10106 | ;; | |
10107 | pw32*) | |
10108 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10109 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10110 | ;; | |
10111 | esac | |
10112 | ;; | |
10113 | ||
10114 | *) | |
10115 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10116 | ;; | |
10117 | esac | |
10118 | dynamic_linker='Win32 ld.exe' | |
10119 | # FIXME: first we should search . and the directory the executable is in | |
10120 | shlibpath_var=PATH | |
10121 | ;; | |
10122 | ||
10123 | darwin* | rhapsody*) | |
10124 | dynamic_linker="$host_os dyld" | |
10125 | version_type=darwin | |
10126 | need_lib_prefix=no | |
10127 | need_version=no | |
10128 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10129 | soname_spec='${libname}${release}${major}$shared_ext' | |
10130 | shlibpath_overrides_runpath=yes | |
10131 | shlibpath_var=DYLD_LIBRARY_PATH | |
10132 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10133 | ||
10134 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10135 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10136 | ;; | |
10137 | ||
10138 | dgux*) | |
10139 | version_type=linux | |
10140 | need_lib_prefix=no | |
10141 | need_version=no | |
10142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10143 | soname_spec='${libname}${release}${shared_ext}$major' | |
10144 | shlibpath_var=LD_LIBRARY_PATH | |
10145 | ;; | |
10146 | ||
10147 | freebsd1*) | |
10148 | dynamic_linker=no | |
10149 | ;; | |
10150 | ||
10151 | freebsd* | dragonfly*) | |
10152 | # DragonFly does not have aout. When/if they implement a new | |
10153 | # versioning mechanism, adjust this. | |
10154 | if test -x /usr/bin/objformat; then | |
10155 | objformat=`/usr/bin/objformat` | |
10156 | else | |
10157 | case $host_os in | |
10158 | freebsd[123]*) objformat=aout ;; | |
10159 | *) objformat=elf ;; | |
10160 | esac | |
10161 | fi | |
10162 | version_type=freebsd-$objformat | |
10163 | case $version_type in | |
10164 | freebsd-elf*) | |
10165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10166 | need_version=no | |
10167 | need_lib_prefix=no | |
10168 | ;; | |
10169 | freebsd-*) | |
10170 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10171 | need_version=yes | |
10172 | ;; | |
10173 | esac | |
10174 | shlibpath_var=LD_LIBRARY_PATH | |
10175 | case $host_os in | |
10176 | freebsd2*) | |
10177 | shlibpath_overrides_runpath=yes | |
10178 | ;; | |
10179 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10180 | shlibpath_overrides_runpath=yes | |
10181 | hardcode_into_libs=yes | |
10182 | ;; | |
10183 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10184 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10185 | shlibpath_overrides_runpath=no | |
10186 | hardcode_into_libs=yes | |
10187 | ;; | |
10188 | *) # from 4.6 on, and DragonFly | |
10189 | shlibpath_overrides_runpath=yes | |
10190 | hardcode_into_libs=yes | |
10191 | ;; | |
10192 | esac | |
10193 | ;; | |
10194 | ||
10195 | gnu*) | |
10196 | version_type=linux | |
10197 | need_lib_prefix=no | |
10198 | need_version=no | |
10199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10200 | soname_spec='${libname}${release}${shared_ext}$major' | |
10201 | shlibpath_var=LD_LIBRARY_PATH | |
10202 | hardcode_into_libs=yes | |
10203 | ;; | |
10204 | ||
10205 | hpux9* | hpux10* | hpux11*) | |
10206 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10207 | # link against other versions. | |
10208 | version_type=sunos | |
10209 | need_lib_prefix=no | |
10210 | need_version=no | |
10211 | case $host_cpu in | |
10212 | ia64*) | |
10213 | shrext_cmds='.so' | |
10214 | hardcode_into_libs=yes | |
10215 | dynamic_linker="$host_os dld.so" | |
10216 | shlibpath_var=LD_LIBRARY_PATH | |
10217 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10219 | soname_spec='${libname}${release}${shared_ext}$major' | |
10220 | if test "X$HPUX_IA64_MODE" = X32; then | |
10221 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10222 | else | |
10223 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10224 | fi | |
10225 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10226 | ;; | |
10227 | hppa*64*) | |
10228 | shrext_cmds='.sl' | |
10229 | hardcode_into_libs=yes | |
10230 | dynamic_linker="$host_os dld.sl" | |
10231 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10232 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10234 | soname_spec='${libname}${release}${shared_ext}$major' | |
10235 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10236 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10237 | ;; | |
10238 | *) | |
10239 | shrext_cmds='.sl' | |
10240 | dynamic_linker="$host_os dld.sl" | |
10241 | shlibpath_var=SHLIB_PATH | |
10242 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10244 | soname_spec='${libname}${release}${shared_ext}$major' | |
10245 | ;; | |
10246 | esac | |
10247 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10248 | postinstall_cmds='chmod 555 $lib' | |
10249 | ;; | |
10250 | ||
10251 | interix[3-9]*) | |
10252 | version_type=linux | |
10253 | need_lib_prefix=no | |
10254 | need_version=no | |
10255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10256 | soname_spec='${libname}${release}${shared_ext}$major' | |
10257 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10258 | shlibpath_var=LD_LIBRARY_PATH | |
10259 | shlibpath_overrides_runpath=no | |
10260 | hardcode_into_libs=yes | |
10261 | ;; | |
10262 | ||
10263 | irix5* | irix6* | nonstopux*) | |
10264 | case $host_os in | |
10265 | nonstopux*) version_type=nonstopux ;; | |
10266 | *) | |
10267 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10268 | version_type=linux | |
10269 | else | |
10270 | version_type=irix | |
10271 | fi ;; | |
10272 | esac | |
10273 | need_lib_prefix=no | |
10274 | need_version=no | |
10275 | soname_spec='${libname}${release}${shared_ext}$major' | |
10276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10277 | case $host_os in | |
10278 | irix5* | nonstopux*) | |
10279 | libsuff= shlibsuff= | |
10280 | ;; | |
10281 | *) | |
10282 | case $LD in # libtool.m4 will add one of these switches to LD | |
10283 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10284 | libsuff= shlibsuff= libmagic=32-bit;; | |
10285 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10286 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10287 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10288 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10289 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10290 | esac | |
10291 | ;; | |
10292 | esac | |
10293 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10294 | shlibpath_overrides_runpath=no | |
10295 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10296 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10297 | hardcode_into_libs=yes | |
10298 | ;; | |
10299 | ||
10300 | # No shared lib support for Linux oldld, aout, or coff. | |
10301 | linux*oldld* | linux*aout* | linux*coff*) | |
10302 | dynamic_linker=no | |
10303 | ;; | |
10304 | ||
10305 | # This must be Linux ELF. | |
7a9d3fe8 | 10306 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
10307 | version_type=linux |
10308 | need_lib_prefix=no | |
10309 | need_version=no | |
10310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10311 | soname_spec='${libname}${release}${shared_ext}$major' | |
10312 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10313 | shlibpath_var=LD_LIBRARY_PATH | |
10314 | shlibpath_overrides_runpath=no | |
baafc534 | 10315 | |
1cf3d07d | 10316 | # Some binutils ld are patched to set DT_RUNPATH |
5213506e RW |
10317 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10318 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
10319 | else |
10320 | lt_cv_shlibpath_overrides_runpath=no | |
10321 | save_LDFLAGS=$LDFLAGS | |
10322 | save_libdir=$libdir | |
10323 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10324 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
5213506e | 10325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10326 | /* end confdefs.h. */ |
10327 | ||
10328 | int | |
10329 | main () | |
10330 | { | |
10331 | ||
10332 | ; | |
10333 | return 0; | |
10334 | } | |
10335 | _ACEOF | |
5213506e RW |
10336 | if ac_fn_c_try_link "$LINENO"; then : |
10337 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 10338 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 10339 | fi |
1cf3d07d | 10340 | fi |
5213506e RW |
10341 | rm -f core conftest.err conftest.$ac_objext \ |
10342 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
10343 | LDFLAGS=$save_LDFLAGS |
10344 | libdir=$save_libdir | |
10345 | ||
10346 | fi | |
10347 | ||
10348 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
10349 | |
10350 | # This implies no fast_install, which is unacceptable. | |
10351 | # Some rework will be needed to allow for fast_install | |
10352 | # before this can be enabled. | |
10353 | hardcode_into_libs=yes | |
10354 | ||
10355 | # Append ld.so.conf contents to the search path | |
10356 | if test -f /etc/ld.so.conf; then | |
6b4a97ed | 10357 | 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;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
10358 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10359 | fi | |
10360 | ||
10361 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10362 | # powerpc, because MkLinux only supported shared libraries with the | |
10363 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10364 | # most powerpc-linux boxes support dynamic linking these days and | |
10365 | # people can always --disable-shared, the test was removed, and we | |
10366 | # assume the GNU/Linux dynamic linker is in use. | |
10367 | dynamic_linker='GNU/Linux ld.so' | |
10368 | ;; | |
10369 | ||
10370 | netbsd*) | |
10371 | version_type=sunos | |
10372 | need_lib_prefix=no | |
10373 | need_version=no | |
10374 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10376 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10377 | dynamic_linker='NetBSD (a.out) ld.so' | |
10378 | else | |
10379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10380 | soname_spec='${libname}${release}${shared_ext}$major' | |
10381 | dynamic_linker='NetBSD ld.elf_so' | |
10382 | fi | |
10383 | shlibpath_var=LD_LIBRARY_PATH | |
10384 | shlibpath_overrides_runpath=yes | |
10385 | hardcode_into_libs=yes | |
10386 | ;; | |
10387 | ||
10388 | newsos6) | |
10389 | version_type=linux | |
10390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10391 | shlibpath_var=LD_LIBRARY_PATH | |
10392 | shlibpath_overrides_runpath=yes | |
10393 | ;; | |
10394 | ||
10395 | *nto* | *qnx*) | |
10396 | version_type=qnx | |
10397 | need_lib_prefix=no | |
10398 | need_version=no | |
10399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10400 | soname_spec='${libname}${release}${shared_ext}$major' | |
10401 | shlibpath_var=LD_LIBRARY_PATH | |
10402 | shlibpath_overrides_runpath=no | |
10403 | hardcode_into_libs=yes | |
10404 | dynamic_linker='ldqnx.so' | |
10405 | ;; | |
10406 | ||
10407 | openbsd*) | |
10408 | version_type=sunos | |
10409 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10410 | need_lib_prefix=no | |
10411 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10412 | case $host_os in | |
10413 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10414 | *) need_version=no ;; | |
10415 | esac | |
10416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10417 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10418 | shlibpath_var=LD_LIBRARY_PATH | |
10419 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10420 | case $host_os in | |
10421 | openbsd2.[89] | openbsd2.[89].*) | |
10422 | shlibpath_overrides_runpath=no | |
10423 | ;; | |
10424 | *) | |
10425 | shlibpath_overrides_runpath=yes | |
10426 | ;; | |
10427 | esac | |
10428 | else | |
10429 | shlibpath_overrides_runpath=yes | |
10430 | fi | |
10431 | ;; | |
10432 | ||
10433 | os2*) | |
10434 | libname_spec='$name' | |
10435 | shrext_cmds=".dll" | |
10436 | need_lib_prefix=no | |
10437 | library_names_spec='$libname${shared_ext} $libname.a' | |
10438 | dynamic_linker='OS/2 ld.exe' | |
10439 | shlibpath_var=LIBPATH | |
10440 | ;; | |
10441 | ||
10442 | osf3* | osf4* | osf5*) | |
10443 | version_type=osf | |
10444 | need_lib_prefix=no | |
10445 | need_version=no | |
10446 | soname_spec='${libname}${release}${shared_ext}$major' | |
10447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10448 | shlibpath_var=LD_LIBRARY_PATH | |
10449 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10450 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10451 | ;; | |
10452 | ||
10453 | rdos*) | |
10454 | dynamic_linker=no | |
10455 | ;; | |
10456 | ||
10457 | solaris*) | |
10458 | version_type=linux | |
10459 | need_lib_prefix=no | |
10460 | need_version=no | |
10461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10462 | soname_spec='${libname}${release}${shared_ext}$major' | |
10463 | shlibpath_var=LD_LIBRARY_PATH | |
10464 | shlibpath_overrides_runpath=yes | |
10465 | hardcode_into_libs=yes | |
10466 | # ldd complains unless libraries are executable | |
10467 | postinstall_cmds='chmod +x $lib' | |
10468 | ;; | |
10469 | ||
10470 | sunos4*) | |
10471 | version_type=sunos | |
10472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10473 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10474 | shlibpath_var=LD_LIBRARY_PATH | |
10475 | shlibpath_overrides_runpath=yes | |
10476 | if test "$with_gnu_ld" = yes; then | |
10477 | need_lib_prefix=no | |
10478 | fi | |
10479 | need_version=yes | |
10480 | ;; | |
10481 | ||
10482 | sysv4 | sysv4.3*) | |
10483 | version_type=linux | |
10484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10485 | soname_spec='${libname}${release}${shared_ext}$major' | |
10486 | shlibpath_var=LD_LIBRARY_PATH | |
10487 | case $host_vendor in | |
10488 | sni) | |
10489 | shlibpath_overrides_runpath=no | |
10490 | need_lib_prefix=no | |
10491 | runpath_var=LD_RUN_PATH | |
10492 | ;; | |
10493 | siemens) | |
10494 | need_lib_prefix=no | |
10495 | ;; | |
10496 | motorola) | |
10497 | need_lib_prefix=no | |
10498 | need_version=no | |
10499 | shlibpath_overrides_runpath=no | |
10500 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10501 | ;; | |
10502 | esac | |
10503 | ;; | |
10504 | ||
10505 | sysv4*MP*) | |
10506 | if test -d /usr/nec ;then | |
10507 | version_type=linux | |
10508 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10509 | soname_spec='$libname${shared_ext}.$major' | |
10510 | shlibpath_var=LD_LIBRARY_PATH | |
10511 | fi | |
10512 | ;; | |
10513 | ||
10514 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10515 | version_type=freebsd-elf | |
10516 | need_lib_prefix=no | |
10517 | need_version=no | |
10518 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10519 | soname_spec='${libname}${release}${shared_ext}$major' | |
10520 | shlibpath_var=LD_LIBRARY_PATH | |
10521 | shlibpath_overrides_runpath=yes | |
10522 | hardcode_into_libs=yes | |
10523 | if test "$with_gnu_ld" = yes; then | |
10524 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10525 | else | |
10526 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10527 | case $host_os in | |
10528 | sco3.2v5*) | |
10529 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10530 | ;; | |
10531 | esac | |
10532 | fi | |
10533 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10534 | ;; | |
10535 | ||
10536 | tpf*) | |
10537 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10538 | version_type=linux | |
10539 | need_lib_prefix=no | |
10540 | need_version=no | |
6b4a97ed | 10541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
10542 | shlibpath_var=LD_LIBRARY_PATH |
10543 | shlibpath_overrides_runpath=no | |
10544 | hardcode_into_libs=yes | |
10545 | ;; | |
10546 | ||
10547 | uts4*) | |
10548 | version_type=linux | |
10549 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10550 | soname_spec='${libname}${release}${shared_ext}$major' | |
10551 | shlibpath_var=LD_LIBRARY_PATH | |
10552 | ;; | |
10553 | ||
10554 | *) | |
10555 | dynamic_linker=no | |
10556 | ;; | |
10557 | esac | |
5213506e RW |
10558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10559 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
10560 | test "$dynamic_linker" = no && can_build_shared=no |
10561 | ||
10562 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10563 | if test "$GCC" = yes; then | |
10564 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10565 | fi | |
10566 | ||
6b4a97ed PG |
10567 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10568 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10569 | fi | |
10570 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10571 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10572 | fi | |
10573 | ||
1cf3d07d SE |
10574 | |
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
10606 | ||
10607 | ||
10608 | ||
10609 | ||
10610 | ||
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | ||
10642 | ||
10643 | ||
10644 | ||
10645 | ||
10646 | ||
10647 | ||
10648 | ||
10649 | ||
10650 | ||
10651 | ||
10652 | ||
10653 | ||
10654 | ||
10655 | ||
10656 | ||
10657 | ||
10658 | ||
10659 | ||
5213506e RW |
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10661 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
10662 | hardcode_action= |
10663 | if test -n "$hardcode_libdir_flag_spec" || | |
10664 | test -n "$runpath_var" || | |
10665 | test "X$hardcode_automatic" = "Xyes" ; then | |
10666 | ||
10667 | # We can hardcode non-existent directories. | |
10668 | if test "$hardcode_direct" != no && | |
10669 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10670 | # have to relink, otherwise we might link with an installed library | |
10671 | # when we should be linking with a yet-to-be-installed one | |
10672 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10673 | test "$hardcode_minus_L" != no; then | |
10674 | # Linking always hardcodes the temporary library directory. | |
10675 | hardcode_action=relink | |
10676 | else | |
10677 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10678 | hardcode_action=immediate | |
10679 | fi | |
10680 | else | |
10681 | # We cannot hardcode anything, or else we can only hardcode existing | |
10682 | # directories. | |
10683 | hardcode_action=unsupported | |
10684 | fi | |
5213506e RW |
10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10686 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
10687 | |
10688 | if test "$hardcode_action" = relink || | |
10689 | test "$inherit_rpath" = yes; then | |
10690 | # Fast installation is not supported | |
10691 | enable_fast_install=no | |
10692 | elif test "$shlibpath_overrides_runpath" = yes || | |
10693 | test "$enable_shared" = no; then | |
10694 | # Fast installation is not necessary | |
10695 | enable_fast_install=needless | |
10696 | fi | |
10697 | ||
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | if test "x$enable_dlopen" != xyes; then | |
10704 | enable_dlopen=unknown | |
10705 | enable_dlopen_self=unknown | |
10706 | enable_dlopen_self_static=unknown | |
10707 | else | |
10708 | lt_cv_dlopen=no | |
10709 | lt_cv_dlopen_libs= | |
10710 | ||
10711 | case $host_os in | |
10712 | beos*) | |
10713 | lt_cv_dlopen="load_add_on" | |
10714 | lt_cv_dlopen_libs= | |
10715 | lt_cv_dlopen_self=yes | |
10716 | ;; | |
10717 | ||
6b4a97ed | 10718 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10719 | lt_cv_dlopen="LoadLibrary" |
10720 | lt_cv_dlopen_libs= | |
10721 | ;; | |
10722 | ||
10723 | cygwin*) | |
10724 | lt_cv_dlopen="dlopen" | |
10725 | lt_cv_dlopen_libs= | |
10726 | ;; | |
10727 | ||
10728 | darwin*) | |
10729 | # if libdl is installed we need to link against it | |
5213506e RW |
10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10731 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10732 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10733 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10734 | else |
10735 | ac_check_lib_save_LIBS=$LIBS | |
10736 | LIBS="-ldl $LIBS" | |
5213506e | 10737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10738 | /* end confdefs.h. */ |
10739 | ||
5213506e RW |
10740 | /* Override any GCC internal prototype to avoid an error. |
10741 | Use char because int might match the return type of a GCC | |
10742 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10743 | #ifdef __cplusplus |
10744 | extern "C" | |
10745 | #endif | |
1cf3d07d SE |
10746 | char dlopen (); |
10747 | int | |
10748 | main () | |
10749 | { | |
5213506e | 10750 | return dlopen (); |
1cf3d07d SE |
10751 | ; |
10752 | return 0; | |
10753 | } | |
10754 | _ACEOF | |
5213506e | 10755 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10756 | ac_cv_lib_dl_dlopen=yes |
10757 | else | |
5213506e | 10758 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 10759 | fi |
5213506e RW |
10760 | rm -f core conftest.err conftest.$ac_objext \ |
10761 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10762 | LIBS=$ac_check_lib_save_LIBS |
10763 | fi | |
5213506e RW |
10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10765 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10766 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
1cf3d07d SE |
10767 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10768 | else | |
10769 | ||
10770 | lt_cv_dlopen="dyld" | |
10771 | lt_cv_dlopen_libs= | |
10772 | lt_cv_dlopen_self=yes | |
10773 | ||
10774 | fi | |
10775 | ||
10776 | ;; | |
10777 | ||
10778 | *) | |
5213506e RW |
10779 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
10780 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
1cf3d07d SE |
10781 | lt_cv_dlopen="shl_load" |
10782 | else | |
5213506e RW |
10783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10784 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10785 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10786 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10787 | else |
10788 | ac_check_lib_save_LIBS=$LIBS | |
10789 | LIBS="-ldld $LIBS" | |
5213506e | 10790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10791 | /* end confdefs.h. */ |
10792 | ||
5213506e RW |
10793 | /* Override any GCC internal prototype to avoid an error. |
10794 | Use char because int might match the return type of a GCC | |
10795 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10796 | #ifdef __cplusplus |
10797 | extern "C" | |
10798 | #endif | |
1cf3d07d SE |
10799 | char shl_load (); |
10800 | int | |
10801 | main () | |
10802 | { | |
5213506e | 10803 | return shl_load (); |
1cf3d07d SE |
10804 | ; |
10805 | return 0; | |
10806 | } | |
10807 | _ACEOF | |
5213506e | 10808 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10809 | ac_cv_lib_dld_shl_load=yes |
10810 | else | |
5213506e | 10811 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 10812 | fi |
5213506e RW |
10813 | rm -f core conftest.err conftest.$ac_objext \ |
10814 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10815 | LIBS=$ac_check_lib_save_LIBS |
10816 | fi | |
5213506e RW |
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10818 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10819 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
6b4a97ed | 10820 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 10821 | else |
5213506e RW |
10822 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
10823 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
1cf3d07d SE |
10824 | lt_cv_dlopen="dlopen" |
10825 | else | |
5213506e RW |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10827 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10828 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10829 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10830 | else |
10831 | ac_check_lib_save_LIBS=$LIBS | |
10832 | LIBS="-ldl $LIBS" | |
5213506e | 10833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10834 | /* end confdefs.h. */ |
10835 | ||
5213506e RW |
10836 | /* Override any GCC internal prototype to avoid an error. |
10837 | Use char because int might match the return type of a GCC | |
10838 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10839 | #ifdef __cplusplus |
10840 | extern "C" | |
10841 | #endif | |
1cf3d07d SE |
10842 | char dlopen (); |
10843 | int | |
10844 | main () | |
10845 | { | |
5213506e | 10846 | return dlopen (); |
1cf3d07d SE |
10847 | ; |
10848 | return 0; | |
10849 | } | |
10850 | _ACEOF | |
5213506e | 10851 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10852 | ac_cv_lib_dl_dlopen=yes |
10853 | else | |
5213506e | 10854 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 10855 | fi |
5213506e RW |
10856 | rm -f core conftest.err conftest.$ac_objext \ |
10857 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10858 | LIBS=$ac_check_lib_save_LIBS |
10859 | fi | |
5213506e RW |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10861 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10862 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
1cf3d07d SE |
10863 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10864 | else | |
5213506e RW |
10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10866 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10867 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10868 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10869 | else |
10870 | ac_check_lib_save_LIBS=$LIBS | |
10871 | LIBS="-lsvld $LIBS" | |
5213506e | 10872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10873 | /* end confdefs.h. */ |
10874 | ||
5213506e RW |
10875 | /* Override any GCC internal prototype to avoid an error. |
10876 | Use char because int might match the return type of a GCC | |
10877 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10878 | #ifdef __cplusplus |
10879 | extern "C" | |
10880 | #endif | |
1cf3d07d SE |
10881 | char dlopen (); |
10882 | int | |
10883 | main () | |
10884 | { | |
5213506e | 10885 | return dlopen (); |
1cf3d07d SE |
10886 | ; |
10887 | return 0; | |
10888 | } | |
10889 | _ACEOF | |
5213506e | 10890 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10891 | ac_cv_lib_svld_dlopen=yes |
10892 | else | |
5213506e | 10893 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 10894 | fi |
5213506e RW |
10895 | rm -f core conftest.err conftest.$ac_objext \ |
10896 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10897 | LIBS=$ac_check_lib_save_LIBS |
10898 | fi | |
5213506e RW |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10900 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10901 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
1cf3d07d SE |
10902 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10903 | else | |
5213506e RW |
10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10905 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10906 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
10907 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10908 | else |
10909 | ac_check_lib_save_LIBS=$LIBS | |
10910 | LIBS="-ldld $LIBS" | |
5213506e | 10911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10912 | /* end confdefs.h. */ |
10913 | ||
5213506e RW |
10914 | /* Override any GCC internal prototype to avoid an error. |
10915 | Use char because int might match the return type of a GCC | |
10916 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
10917 | #ifdef __cplusplus |
10918 | extern "C" | |
10919 | #endif | |
1cf3d07d SE |
10920 | char dld_link (); |
10921 | int | |
10922 | main () | |
10923 | { | |
5213506e | 10924 | return dld_link (); |
1cf3d07d SE |
10925 | ; |
10926 | return 0; | |
10927 | } | |
10928 | _ACEOF | |
5213506e | 10929 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10930 | ac_cv_lib_dld_dld_link=yes |
10931 | else | |
5213506e | 10932 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 10933 | fi |
5213506e RW |
10934 | rm -f core conftest.err conftest.$ac_objext \ |
10935 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10936 | LIBS=$ac_check_lib_save_LIBS |
10937 | fi | |
5213506e RW |
10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10939 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10940 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
6b4a97ed | 10941 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
10942 | fi |
10943 | ||
10944 | ||
10945 | fi | |
10946 | ||
10947 | ||
10948 | fi | |
10949 | ||
10950 | ||
10951 | fi | |
10952 | ||
10953 | ||
10954 | fi | |
10955 | ||
10956 | ||
10957 | fi | |
10958 | ||
10959 | ;; | |
10960 | esac | |
10961 | ||
10962 | if test "x$lt_cv_dlopen" != xno; then | |
10963 | enable_dlopen=yes | |
10964 | else | |
10965 | enable_dlopen=no | |
10966 | fi | |
10967 | ||
10968 | case $lt_cv_dlopen in | |
10969 | dlopen) | |
10970 | save_CPPFLAGS="$CPPFLAGS" | |
10971 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10972 | ||
10973 | save_LDFLAGS="$LDFLAGS" | |
10974 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10975 | ||
10976 | save_LIBS="$LIBS" | |
10977 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10978 | ||
5213506e RW |
10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10980 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10981 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
10982 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
10983 | else |
10984 | if test "$cross_compiling" = yes; then : | |
10985 | lt_cv_dlopen_self=cross | |
10986 | else | |
10987 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10988 | lt_status=$lt_dlunknown | |
10989 | cat > conftest.$ac_ext <<_LT_EOF | |
5213506e | 10990 | #line 10990 "configure" |
1cf3d07d SE |
10991 | #include "confdefs.h" |
10992 | ||
10993 | #if HAVE_DLFCN_H | |
10994 | #include <dlfcn.h> | |
10995 | #endif | |
10996 | ||
10997 | #include <stdio.h> | |
10998 | ||
10999 | #ifdef RTLD_GLOBAL | |
11000 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11001 | #else | |
11002 | # ifdef DL_GLOBAL | |
11003 | # define LT_DLGLOBAL DL_GLOBAL | |
11004 | # else | |
11005 | # define LT_DLGLOBAL 0 | |
11006 | # endif | |
11007 | #endif | |
11008 | ||
11009 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11010 | find out it does not work in some platform. */ | |
11011 | #ifndef LT_DLLAZY_OR_NOW | |
11012 | # ifdef RTLD_LAZY | |
11013 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11014 | # else | |
11015 | # ifdef DL_LAZY | |
11016 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11017 | # else | |
11018 | # ifdef RTLD_NOW | |
11019 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11020 | # else | |
11021 | # ifdef DL_NOW | |
11022 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11023 | # else | |
11024 | # define LT_DLLAZY_OR_NOW 0 | |
11025 | # endif | |
11026 | # endif | |
11027 | # endif | |
11028 | # endif | |
11029 | #endif | |
11030 | ||
1cf3d07d SE |
11031 | void fnord() { int i=42;} |
11032 | int main () | |
11033 | { | |
11034 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11035 | int status = $lt_dlunknown; | |
11036 | ||
11037 | if (self) | |
11038 | { | |
11039 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11040 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11041 | /* dlclose (self); */ | |
11042 | } | |
11043 | else | |
11044 | puts (dlerror ()); | |
11045 | ||
6b4a97ed | 11046 | return status; |
1cf3d07d SE |
11047 | } |
11048 | _LT_EOF | |
5213506e | 11049 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
11050 | (eval $ac_link) 2>&5 |
11051 | ac_status=$? | |
5213506e RW |
11052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11053 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
11054 | (./conftest; exit; ) >&5 2>/dev/null |
11055 | lt_status=$? | |
11056 | case x$lt_status in | |
11057 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11058 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11059 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11060 | esac | |
11061 | else : | |
11062 | # compilation failed | |
11063 | lt_cv_dlopen_self=no | |
11064 | fi | |
11065 | fi | |
11066 | rm -fr conftest* | |
11067 | ||
11068 | ||
11069 | fi | |
5213506e RW |
11070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11071 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
11072 | |
11073 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11074 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11076 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11077 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11078 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
11079 | else |
11080 | if test "$cross_compiling" = yes; then : | |
11081 | lt_cv_dlopen_self_static=cross | |
11082 | else | |
11083 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11084 | lt_status=$lt_dlunknown | |
11085 | cat > conftest.$ac_ext <<_LT_EOF | |
5213506e | 11086 | #line 11086 "configure" |
1cf3d07d SE |
11087 | #include "confdefs.h" |
11088 | ||
11089 | #if HAVE_DLFCN_H | |
11090 | #include <dlfcn.h> | |
11091 | #endif | |
11092 | ||
11093 | #include <stdio.h> | |
11094 | ||
11095 | #ifdef RTLD_GLOBAL | |
11096 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11097 | #else | |
11098 | # ifdef DL_GLOBAL | |
11099 | # define LT_DLGLOBAL DL_GLOBAL | |
11100 | # else | |
11101 | # define LT_DLGLOBAL 0 | |
11102 | # endif | |
11103 | #endif | |
11104 | ||
11105 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11106 | find out it does not work in some platform. */ | |
11107 | #ifndef LT_DLLAZY_OR_NOW | |
11108 | # ifdef RTLD_LAZY | |
11109 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11110 | # else | |
11111 | # ifdef DL_LAZY | |
11112 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11113 | # else | |
11114 | # ifdef RTLD_NOW | |
11115 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11116 | # else | |
11117 | # ifdef DL_NOW | |
11118 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11119 | # else | |
11120 | # define LT_DLLAZY_OR_NOW 0 | |
11121 | # endif | |
11122 | # endif | |
11123 | # endif | |
11124 | # endif | |
11125 | #endif | |
11126 | ||
1cf3d07d SE |
11127 | void fnord() { int i=42;} |
11128 | int main () | |
11129 | { | |
11130 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11131 | int status = $lt_dlunknown; | |
11132 | ||
11133 | if (self) | |
11134 | { | |
11135 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11136 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11137 | /* dlclose (self); */ | |
11138 | } | |
11139 | else | |
11140 | puts (dlerror ()); | |
11141 | ||
6b4a97ed | 11142 | return status; |
1cf3d07d SE |
11143 | } |
11144 | _LT_EOF | |
5213506e | 11145 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
11146 | (eval $ac_link) 2>&5 |
11147 | ac_status=$? | |
5213506e RW |
11148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11149 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
11150 | (./conftest; exit; ) >&5 2>/dev/null |
11151 | lt_status=$? | |
11152 | case x$lt_status in | |
11153 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11154 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11155 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11156 | esac | |
11157 | else : | |
11158 | # compilation failed | |
11159 | lt_cv_dlopen_self_static=no | |
11160 | fi | |
11161 | fi | |
11162 | rm -fr conftest* | |
11163 | ||
11164 | ||
11165 | fi | |
5213506e RW |
11166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11167 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
11168 | fi |
11169 | ||
11170 | CPPFLAGS="$save_CPPFLAGS" | |
11171 | LDFLAGS="$save_LDFLAGS" | |
11172 | LIBS="$save_LIBS" | |
11173 | ;; | |
11174 | esac | |
11175 | ||
11176 | case $lt_cv_dlopen_self in | |
11177 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11178 | *) enable_dlopen_self=unknown ;; | |
11179 | esac | |
11180 | ||
11181 | case $lt_cv_dlopen_self_static in | |
11182 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11183 | *) enable_dlopen_self_static=unknown ;; | |
11184 | esac | |
11185 | fi | |
11186 | ||
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | striplib= | |
11204 | old_striplib= | |
5213506e RW |
11205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11206 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
11207 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11208 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11209 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
11210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11211 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
11212 | else |
11213 | # FIXME - insert some real tests, host_os isn't really good enough | |
11214 | case $host_os in | |
11215 | darwin*) | |
11216 | if test -n "$STRIP" ; then | |
11217 | striplib="$STRIP -x" | |
11218 | old_striplib="$STRIP -S" | |
5213506e RW |
11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11220 | $as_echo "yes" >&6; } | |
1cf3d07d | 11221 | else |
5213506e RW |
11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11223 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11224 | fi |
11225 | ;; | |
11226 | *) | |
5213506e RW |
11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11228 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11229 | ;; |
11230 | esac | |
11231 | fi | |
11232 | ||
11233 | ||
11234 | ||
11235 | ||
11236 | ||
11237 | ||
11238 | ||
11239 | ||
11240 | ||
11241 | ||
11242 | ||
11243 | ||
11244 | # Report which library types will actually be built | |
5213506e RW |
11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11246 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11248 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 11249 | |
5213506e RW |
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11251 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
11252 | test "$can_build_shared" = "no" && enable_shared=no |
11253 | ||
11254 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11255 | # are all built from PIC. | |
11256 | case $host_os in | |
11257 | aix3*) | |
11258 | test "$enable_shared" = yes && enable_static=no | |
11259 | if test -n "$RANLIB"; then | |
11260 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11261 | postinstall_cmds='$RANLIB $lib' | |
11262 | fi | |
11263 | ;; | |
11264 | ||
d653fdfb | 11265 | aix[4-9]*) |
1cf3d07d SE |
11266 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11267 | test "$enable_shared" = yes && enable_static=no | |
11268 | fi | |
11269 | ;; | |
11270 | esac | |
5213506e RW |
11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11272 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 11273 | |
5213506e RW |
11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11275 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
11276 | # Make sure either enable_shared or enable_static is yes. |
11277 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11279 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
11280 | |
11281 | ||
11282 | ||
11283 | ||
11284 | fi | |
11285 | ac_ext=c | |
11286 | ac_cpp='$CPP $CPPFLAGS' | |
11287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11290 | ||
11291 | CC="$lt_save_CC" | |
11292 | ||
11293 | ||
11294 | ||
11295 | ||
11296 | ||
11297 | ||
11298 | ||
11299 | ||
11300 | ||
11301 | ||
11302 | ||
11303 | ||
11304 | ||
5213506e | 11305 | ac_config_commands="$ac_config_commands libtool" |
1cf3d07d SE |
11306 | |
11307 | ||
11308 | ||
11309 | ||
11310 | # Only expand once: | |
11311 | ||
11312 | ||
11313 | ||
11314 | ||
11315 | ||
5213506e RW |
11316 | |
11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11318 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11319 | # Check whether --enable-maintainer-mode was given. | |
11320 | if test "${enable_maintainer_mode+set}" = set; then : | |
11321 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
1cf3d07d SE |
11322 | else |
11323 | USE_MAINTAINER_MODE=no | |
5213506e | 11324 | fi |
1cf3d07d | 11325 | |
5213506e RW |
11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11327 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11328 | if test $USE_MAINTAINER_MODE = yes; then | |
1cf3d07d SE |
11329 | MAINTAINER_MODE_TRUE= |
11330 | MAINTAINER_MODE_FALSE='#' | |
11331 | else | |
11332 | MAINTAINER_MODE_TRUE='#' | |
11333 | MAINTAINER_MODE_FALSE= | |
11334 | fi | |
11335 | ||
11336 | MAINT=$MAINTAINER_MODE_TRUE | |
11337 | ||
11338 | ||
11339 | ||
11340 | # We need gfortran to compile parts of the library | |
11341 | # We can't use AC_PROG_FC because it expects a fully working gfortran. | |
11342 | #AC_PROG_FC(gfortran) | |
11343 | FC="$GFORTRAN" | |
5213506e RW |
11344 | ac_ext=${ac_fc_srcext-f} |
11345 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
11346 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
11347 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11348 | if test -n "$ac_tool_prefix"; then | |
11349 | for ac_prog in gfortran | |
11350 | do | |
11351 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11352 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11354 | $as_echo_n "checking for $ac_word... " >&6; } | |
11355 | if test "${ac_cv_prog_FC+set}" = set; then : | |
11356 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
11357 | else |
11358 | if test -n "$FC"; then | |
11359 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
11360 | else | |
11361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11362 | for as_dir in $PATH | |
11363 | do | |
11364 | IFS=$as_save_IFS | |
11365 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11366 | for ac_exec_ext in '' $ac_executable_extensions; do |
11367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 11368 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 11369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
11370 | break 2 |
11371 | fi | |
11372 | done | |
5213506e RW |
11373 | done |
11374 | IFS=$as_save_IFS | |
1cf3d07d SE |
11375 | |
11376 | fi | |
11377 | fi | |
11378 | FC=$ac_cv_prog_FC | |
11379 | if test -n "$FC"; then | |
5213506e RW |
11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
11381 | $as_echo "$FC" >&6; } | |
1cf3d07d | 11382 | else |
5213506e RW |
11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11384 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11385 | fi |
11386 | ||
5213506e | 11387 | |
1cf3d07d SE |
11388 | test -n "$FC" && break |
11389 | done | |
11390 | fi | |
11391 | if test -z "$FC"; then | |
11392 | ac_ct_FC=$FC | |
11393 | for ac_prog in gfortran | |
11394 | do | |
11395 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11396 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11398 | $as_echo_n "checking for $ac_word... " >&6; } | |
11399 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : | |
11400 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
11401 | else |
11402 | if test -n "$ac_ct_FC"; then | |
11403 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
11404 | else | |
11405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11406 | for as_dir in $PATH | |
11407 | do | |
11408 | IFS=$as_save_IFS | |
11409 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11410 | for ac_exec_ext in '' $ac_executable_extensions; do |
11411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 11412 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 11413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
11414 | break 2 |
11415 | fi | |
11416 | done | |
5213506e RW |
11417 | done |
11418 | IFS=$as_save_IFS | |
1cf3d07d SE |
11419 | |
11420 | fi | |
11421 | fi | |
11422 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
11423 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
11425 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 11426 | else |
5213506e RW |
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11428 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11429 | fi |
11430 | ||
5213506e | 11431 | |
1cf3d07d SE |
11432 | test -n "$ac_ct_FC" && break |
11433 | done | |
11434 | ||
5213506e RW |
11435 | if test "x$ac_ct_FC" = x; then |
11436 | FC="" | |
11437 | else | |
11438 | case $cross_compiling:$ac_tool_warned in | |
11439 | yes:) | |
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11442 | ac_tool_warned=yes ;; | |
11443 | esac | |
11444 | FC=$ac_ct_FC | |
11445 | fi | |
1cf3d07d SE |
11446 | fi |
11447 | ||
11448 | ||
11449 | # Provide some information about the compiler. | |
5213506e RW |
11450 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
11451 | set X $ac_compile | |
11452 | ac_compiler=$2 | |
11453 | for ac_option in --version -v -V -qversion; do | |
11454 | { { ac_try="$ac_compiler $ac_option >&5" | |
11455 | case "(($ac_try" in | |
11456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11457 | *) ac_try_echo=$ac_try;; | |
11458 | esac | |
11459 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11460 | $as_echo "$ac_try_echo"; } >&5 | |
11461 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 11462 | ac_status=$? |
5213506e RW |
11463 | if test -s conftest.err; then |
11464 | sed '10a\ | |
11465 | ... rest of stderr output deleted ... | |
11466 | 10q' conftest.err >conftest.er1 | |
11467 | cat conftest.er1 >&5 | |
11468 | rm -f conftest.er1 conftest.err | |
11469 | fi | |
11470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11471 | test $ac_status = 0; } | |
11472 | done | |
1cf3d07d SE |
11473 | rm -f a.out |
11474 | ||
11475 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
11476 | # input file. (Note that this only needs to work for GNU compilers.) | |
11477 | ac_save_ext=$ac_ext | |
11478 | ac_ext=F | |
5213506e RW |
11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
11480 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
11481 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then : | |
11482 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 11483 | else |
5213506e | 11484 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
11485 | program main |
11486 | #ifndef __GNUC__ | |
11487 | choke me | |
11488 | #endif | |
11489 | ||
11490 | end | |
11491 | _ACEOF | |
5213506e | 11492 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
11493 | ac_compiler_gnu=yes |
11494 | else | |
5213506e | 11495 | ac_compiler_gnu=no |
1cf3d07d | 11496 | fi |
5213506e | 11497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
11498 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
11499 | ||
11500 | fi | |
5213506e RW |
11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
11502 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 11503 | ac_ext=$ac_save_ext |
5213506e RW |
11504 | ac_test_FCFLAGS=${FCFLAGS+set} |
11505 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 11506 | FCFLAGS= |
5213506e RW |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
11508 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
11509 | if test "${ac_cv_prog_fc_g+set}" = set; then : | |
11510 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
11511 | else |
11512 | FCFLAGS=-g | |
5213506e | 11513 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
11514 | program main |
11515 | ||
11516 | end | |
11517 | _ACEOF | |
5213506e | 11518 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
11519 | ac_cv_prog_fc_g=yes |
11520 | else | |
5213506e | 11521 | ac_cv_prog_fc_g=no |
1cf3d07d | 11522 | fi |
5213506e | 11523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
11524 | |
11525 | fi | |
5213506e RW |
11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
11527 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
11528 | if test "$ac_test_FCFLAGS" = set; then | |
11529 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
11530 | elif test $ac_cv_prog_fc_g = yes; then |
11531 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11532 | FCFLAGS="-g -O2" | |
11533 | else | |
11534 | FCFLAGS="-g" | |
11535 | fi | |
11536 | else | |
11537 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11538 | FCFLAGS="-O2" | |
11539 | else | |
11540 | FCFLAGS= | |
11541 | fi | |
11542 | fi | |
11543 | ||
11544 | ac_ext=c | |
11545 | ac_cpp='$CPP $CPPFLAGS' | |
11546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11549 | ||
11550 | ||
5213506e RW |
11551 | ac_ext=${ac_fc_srcext-f} |
11552 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
11553 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
11554 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11555 | if test -n "$ac_tool_prefix"; then | |
5213506e | 11556 | for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 |
1cf3d07d SE |
11557 | do |
11558 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11559 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
11560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11561 | $as_echo_n "checking for $ac_word... " >&6; } | |
11562 | if test "${ac_cv_prog_FC+set}" = set; then : | |
11563 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
11564 | else |
11565 | if test -n "$FC"; then | |
11566 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
11567 | else | |
11568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11569 | for as_dir in $PATH | |
11570 | do | |
11571 | IFS=$as_save_IFS | |
11572 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11573 | for ac_exec_ext in '' $ac_executable_extensions; do |
11574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 11575 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 11576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
11577 | break 2 |
11578 | fi | |
11579 | done | |
5213506e RW |
11580 | done |
11581 | IFS=$as_save_IFS | |
1cf3d07d SE |
11582 | |
11583 | fi | |
11584 | fi | |
11585 | FC=$ac_cv_prog_FC | |
11586 | if test -n "$FC"; then | |
5213506e RW |
11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
11588 | $as_echo "$FC" >&6; } | |
1cf3d07d | 11589 | else |
5213506e RW |
11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11591 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11592 | fi |
11593 | ||
5213506e | 11594 | |
1cf3d07d SE |
11595 | test -n "$FC" && break |
11596 | done | |
11597 | fi | |
11598 | if test -z "$FC"; then | |
11599 | ac_ct_FC=$FC | |
5213506e | 11600 | for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 |
1cf3d07d SE |
11601 | do |
11602 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11603 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11605 | $as_echo_n "checking for $ac_word... " >&6; } | |
11606 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : | |
11607 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
11608 | else |
11609 | if test -n "$ac_ct_FC"; then | |
11610 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
11611 | else | |
11612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11613 | for as_dir in $PATH | |
11614 | do | |
11615 | IFS=$as_save_IFS | |
11616 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11617 | for ac_exec_ext in '' $ac_executable_extensions; do |
11618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 11619 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 11620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
11621 | break 2 |
11622 | fi | |
11623 | done | |
5213506e RW |
11624 | done |
11625 | IFS=$as_save_IFS | |
1cf3d07d SE |
11626 | |
11627 | fi | |
11628 | fi | |
11629 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
11630 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
11632 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 11633 | else |
5213506e RW |
11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11635 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11636 | fi |
11637 | ||
5213506e | 11638 | |
1cf3d07d SE |
11639 | test -n "$ac_ct_FC" && break |
11640 | done | |
11641 | ||
5213506e RW |
11642 | if test "x$ac_ct_FC" = x; then |
11643 | FC="" | |
11644 | else | |
11645 | case $cross_compiling:$ac_tool_warned in | |
11646 | yes:) | |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11648 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11649 | ac_tool_warned=yes ;; | |
11650 | esac | |
11651 | FC=$ac_ct_FC | |
11652 | fi | |
1cf3d07d SE |
11653 | fi |
11654 | ||
11655 | ||
11656 | # Provide some information about the compiler. | |
5213506e RW |
11657 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
11658 | set X $ac_compile | |
11659 | ac_compiler=$2 | |
11660 | for ac_option in --version -v -V -qversion; do | |
11661 | { { ac_try="$ac_compiler $ac_option >&5" | |
11662 | case "(($ac_try" in | |
11663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11664 | *) ac_try_echo=$ac_try;; | |
11665 | esac | |
11666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11667 | $as_echo "$ac_try_echo"; } >&5 | |
11668 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 11669 | ac_status=$? |
5213506e RW |
11670 | if test -s conftest.err; then |
11671 | sed '10a\ | |
11672 | ... rest of stderr output deleted ... | |
11673 | 10q' conftest.err >conftest.er1 | |
11674 | cat conftest.er1 >&5 | |
11675 | rm -f conftest.er1 conftest.err | |
11676 | fi | |
11677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11678 | test $ac_status = 0; } | |
11679 | done | |
1cf3d07d SE |
11680 | rm -f a.out |
11681 | ||
11682 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
11683 | # input file. (Note that this only needs to work for GNU compilers.) | |
11684 | ac_save_ext=$ac_ext | |
11685 | ac_ext=F | |
5213506e RW |
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
11687 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
11688 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then : | |
11689 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 11690 | else |
5213506e | 11691 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
11692 | program main |
11693 | #ifndef __GNUC__ | |
11694 | choke me | |
11695 | #endif | |
11696 | ||
11697 | end | |
11698 | _ACEOF | |
5213506e | 11699 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
11700 | ac_compiler_gnu=yes |
11701 | else | |
5213506e | 11702 | ac_compiler_gnu=no |
1cf3d07d | 11703 | fi |
5213506e | 11704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
11705 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
11706 | ||
11707 | fi | |
5213506e RW |
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
11709 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 11710 | ac_ext=$ac_save_ext |
5213506e RW |
11711 | ac_test_FCFLAGS=${FCFLAGS+set} |
11712 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 11713 | FCFLAGS= |
5213506e RW |
11714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
11715 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
11716 | if test "${ac_cv_prog_fc_g+set}" = set; then : | |
11717 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
11718 | else |
11719 | FCFLAGS=-g | |
5213506e | 11720 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
11721 | program main |
11722 | ||
11723 | end | |
11724 | _ACEOF | |
5213506e | 11725 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
11726 | ac_cv_prog_fc_g=yes |
11727 | else | |
5213506e | 11728 | ac_cv_prog_fc_g=no |
1cf3d07d | 11729 | fi |
5213506e | 11730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
11731 | |
11732 | fi | |
5213506e RW |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
11734 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
11735 | if test "$ac_test_FCFLAGS" = set; then | |
11736 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
11737 | elif test $ac_cv_prog_fc_g = yes; then |
11738 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11739 | FCFLAGS="-g -O2" | |
11740 | else | |
11741 | FCFLAGS="-g" | |
11742 | fi | |
11743 | else | |
11744 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11745 | FCFLAGS="-O2" | |
11746 | else | |
11747 | FCFLAGS= | |
11748 | fi | |
11749 | fi | |
11750 | ||
11751 | ac_ext=c | |
11752 | ac_cpp='$CPP $CPPFLAGS' | |
11753 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11754 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11755 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11756 | ||
11757 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
11758 | _lt_disable_FC=yes | |
11759 | fi | |
11760 | ||
11761 | ||
11762 | ||
5213506e RW |
11763 | ac_ext=${ac_fc_srcext-f} |
11764 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
11765 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
11766 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11767 | ||
11768 | ||
11769 | archive_cmds_need_lc_FC=no | |
11770 | allow_undefined_flag_FC= | |
11771 | always_export_symbols_FC=no | |
11772 | archive_expsym_cmds_FC= | |
11773 | export_dynamic_flag_spec_FC= | |
11774 | hardcode_direct_FC=no | |
11775 | hardcode_direct_absolute_FC=no | |
11776 | hardcode_libdir_flag_spec_FC= | |
11777 | hardcode_libdir_flag_spec_ld_FC= | |
11778 | hardcode_libdir_separator_FC= | |
11779 | hardcode_minus_L_FC=no | |
11780 | hardcode_automatic_FC=no | |
11781 | inherit_rpath_FC=no | |
11782 | module_cmds_FC= | |
11783 | module_expsym_cmds_FC= | |
11784 | link_all_deplibs_FC=unknown | |
11785 | old_archive_cmds_FC=$old_archive_cmds | |
11786 | no_undefined_flag_FC= | |
11787 | whole_archive_flag_spec_FC= | |
11788 | enable_shared_with_static_runtimes_FC=no | |
11789 | ||
11790 | # Source file extension for fc test sources. | |
11791 | ac_ext=${ac_fc_srcext-f} | |
11792 | ||
11793 | # Object file extension for compiled fc test sources. | |
11794 | objext=o | |
11795 | objext_FC=$objext | |
11796 | ||
11797 | # No sense in running all these tests if we already determined that | |
11798 | # the FC compiler isn't working. Some variables (like enable_shared) | |
11799 | # are currently assumed to apply to all compilers on this platform, | |
11800 | # and will be corrupted by setting them based on a non-working compiler. | |
11801 | if test "$_lt_disable_FC" != yes; then | |
11802 | # Code to be used in simple compile tests | |
11803 | lt_simple_compile_test_code="\ | |
11804 | subroutine t | |
11805 | return | |
11806 | end | |
11807 | " | |
11808 | ||
11809 | # Code to be used in simple link tests | |
11810 | lt_simple_link_test_code="\ | |
11811 | program t | |
11812 | end | |
11813 | " | |
11814 | ||
11815 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11816 | ||
11817 | ||
11818 | ||
11819 | ||
11820 | ||
11821 | ||
11822 | # If no C compiler was specified, use CC. | |
11823 | LTCC=${LTCC-"$CC"} | |
11824 | ||
11825 | # If no C compiler flags were specified, use CFLAGS. | |
11826 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
11827 | ||
11828 | # Allow CC to be a program name with arguments. | |
11829 | compiler=$CC | |
11830 | ||
11831 | ||
11832 | # save warnings/boilerplate of simple test code | |
11833 | ac_outfile=conftest.$ac_objext | |
11834 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11835 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11836 | _lt_compiler_boilerplate=`cat conftest.err` | |
11837 | $RM conftest* | |
11838 | ||
11839 | ac_outfile=conftest.$ac_objext | |
11840 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11841 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11842 | _lt_linker_boilerplate=`cat conftest.err` | |
6b4a97ed | 11843 | $RM -r conftest* |
1cf3d07d SE |
11844 | |
11845 | ||
11846 | # Allow CC to be a program name with arguments. | |
11847 | lt_save_CC="$CC" | |
6b4a97ed | 11848 | lt_save_GCC=$GCC |
1cf3d07d SE |
11849 | CC=${FC-"f95"} |
11850 | compiler=$CC | |
6b4a97ed PG |
11851 | GCC=$ac_cv_fc_compiler_gnu |
11852 | ||
1cf3d07d SE |
11853 | compiler_FC=$CC |
11854 | for cc_temp in $compiler""; do | |
11855 | case $cc_temp in | |
11856 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11857 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11858 | \-*) ;; | |
11859 | *) break;; | |
11860 | esac | |
11861 | done | |
11862 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
11863 | ||
11864 | ||
11865 | if test -n "$compiler"; then | |
5213506e RW |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11867 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11869 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 11870 | |
5213506e RW |
11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11872 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
11873 | test "$can_build_shared" = "no" && enable_shared=no |
11874 | ||
11875 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11876 | # are all built from PIC. | |
11877 | case $host_os in | |
11878 | aix3*) | |
11879 | test "$enable_shared" = yes && enable_static=no | |
11880 | if test -n "$RANLIB"; then | |
11881 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11882 | postinstall_cmds='$RANLIB $lib' | |
11883 | fi | |
11884 | ;; | |
d653fdfb | 11885 | aix[4-9]*) |
1cf3d07d SE |
11886 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11887 | test "$enable_shared" = yes && enable_static=no | |
11888 | fi | |
11889 | ;; | |
11890 | esac | |
5213506e RW |
11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11892 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 11893 | |
5213506e RW |
11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11895 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
11896 | # Make sure either enable_shared or enable_static is yes. |
11897 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11899 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
11900 | |
11901 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
11902 | LD_FC="$LD" | |
11903 | ||
11904 | ## CAVEAT EMPTOR: | |
11905 | ## There is no encapsulation within the following macros, do not change | |
11906 | ## the running order or otherwise move them around unless you know exactly | |
11907 | ## what you are doing... | |
11908 | # Dependencies to place before and after the object being linked: | |
11909 | predep_objects_FC= | |
11910 | postdep_objects_FC= | |
11911 | predeps_FC= | |
11912 | postdeps_FC= | |
11913 | compiler_lib_search_path_FC= | |
11914 | ||
11915 | cat > conftest.$ac_ext <<_LT_EOF | |
11916 | subroutine foo | |
11917 | implicit none | |
11918 | integer a | |
11919 | a=0 | |
11920 | return | |
11921 | end | |
11922 | _LT_EOF | |
11923 | ||
5213506e | 11924 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
11925 | (eval $ac_compile) 2>&5 |
11926 | ac_status=$? | |
5213506e RW |
11927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11928 | test $ac_status = 0; }; then | |
1cf3d07d SE |
11929 | # Parse the compiler output and extract the necessary |
11930 | # objects, libraries and library flags. | |
11931 | ||
11932 | # Sentinel used to keep track of whether or not we are before | |
11933 | # the conftest object file. | |
11934 | pre_test_object_deps_done=no | |
11935 | ||
6b4a97ed | 11936 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
11937 | case $p in |
11938 | ||
11939 | -L* | -R* | -l*) | |
11940 | # Some compilers place space between "-{L,R}" and the path. | |
11941 | # Remove the space. | |
11942 | if test $p = "-L" || | |
11943 | test $p = "-R"; then | |
11944 | prev=$p | |
11945 | continue | |
11946 | else | |
11947 | prev= | |
11948 | fi | |
11949 | ||
11950 | if test "$pre_test_object_deps_done" = no; then | |
11951 | case $p in | |
11952 | -L* | -R*) | |
11953 | # Internal compiler library paths should come after those | |
11954 | # provided the user. The postdeps already come after the | |
11955 | # user supplied libs so there is no need to process them. | |
11956 | if test -z "$compiler_lib_search_path_FC"; then | |
11957 | compiler_lib_search_path_FC="${prev}${p}" | |
11958 | else | |
11959 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
11960 | fi | |
11961 | ;; | |
11962 | # The "-l" case would never come before the object being | |
11963 | # linked, so don't bother handling this case. | |
11964 | esac | |
11965 | else | |
11966 | if test -z "$postdeps_FC"; then | |
11967 | postdeps_FC="${prev}${p}" | |
11968 | else | |
11969 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
11970 | fi | |
11971 | fi | |
11972 | ;; | |
11973 | ||
11974 | *.$objext) | |
11975 | # This assumes that the test object file only shows up | |
11976 | # once in the compiler output. | |
11977 | if test "$p" = "conftest.$objext"; then | |
11978 | pre_test_object_deps_done=yes | |
11979 | continue | |
11980 | fi | |
11981 | ||
11982 | if test "$pre_test_object_deps_done" = no; then | |
11983 | if test -z "$predep_objects_FC"; then | |
11984 | predep_objects_FC="$p" | |
11985 | else | |
11986 | predep_objects_FC="$predep_objects_FC $p" | |
11987 | fi | |
11988 | else | |
11989 | if test -z "$postdep_objects_FC"; then | |
11990 | postdep_objects_FC="$p" | |
11991 | else | |
11992 | postdep_objects_FC="$postdep_objects_FC $p" | |
11993 | fi | |
11994 | fi | |
11995 | ;; | |
11996 | ||
11997 | *) ;; # Ignore the rest. | |
11998 | ||
11999 | esac | |
12000 | done | |
12001 | ||
12002 | # Clean up. | |
12003 | rm -f a.out a.exe | |
12004 | else | |
12005 | echo "libtool.m4: error: problem compiling FC test program" | |
12006 | fi | |
12007 | ||
12008 | $RM -f confest.$objext | |
12009 | ||
12010 | # PORTME: override above test on systems where it is broken | |
12011 | ||
12012 | ||
12013 | case " $postdeps_FC " in | |
12014 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
12015 | esac | |
6b4a97ed PG |
12016 | compiler_lib_search_dirs_FC= |
12017 | if test -n "${compiler_lib_search_path_FC}"; then | |
12018 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12019 | fi | |
12020 | ||
12021 | ||
12022 | ||
12023 | ||
12024 | ||
1cf3d07d SE |
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 | lt_prog_compiler_wl_FC= | |
12052 | lt_prog_compiler_pic_FC= | |
12053 | lt_prog_compiler_static_FC= | |
12054 | ||
5213506e RW |
12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
12056 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
12057 | |
12058 | if test "$GCC" = yes; then | |
12059 | lt_prog_compiler_wl_FC='-Wl,' | |
12060 | lt_prog_compiler_static_FC='-static' | |
12061 | ||
12062 | case $host_os in | |
12063 | aix*) | |
12064 | # All AIX code is PIC. | |
12065 | if test "$host_cpu" = ia64; then | |
12066 | # AIX 5 now supports IA64 processor | |
12067 | lt_prog_compiler_static_FC='-Bstatic' | |
12068 | fi | |
12069 | ;; | |
12070 | ||
12071 | amigaos*) | |
6b4a97ed PG |
12072 | case $host_cpu in |
12073 | powerpc) | |
12074 | # see comment about AmigaOS4 .so support | |
12075 | lt_prog_compiler_pic_FC='-fPIC' | |
12076 | ;; | |
12077 | m68k) | |
12078 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12079 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12080 | # like `-m68040'. | |
12081 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
12082 | ;; | |
12083 | esac | |
1cf3d07d SE |
12084 | ;; |
12085 | ||
12086 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12087 | # PIC is the default for these OSes. | |
12088 | ;; | |
12089 | ||
6b4a97ed | 12090 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
12091 | # This hack is so that the source file can tell whether it is being |
12092 | # built for inclusion in a dll (and should export symbols for example). | |
12093 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12094 | # (--disable-auto-import) libraries | |
12095 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
12096 | ;; | |
12097 | ||
12098 | darwin* | rhapsody*) | |
12099 | # PIC is the default on this platform | |
12100 | # Common symbols not allowed in MH_DYLIB files | |
12101 | lt_prog_compiler_pic_FC='-fno-common' | |
12102 | ;; | |
12103 | ||
12104 | hpux*) | |
6b4a97ed PG |
12105 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
12106 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12107 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 12108 | case $host_cpu in |
6b4a97ed | 12109 | hppa*64*) |
1cf3d07d SE |
12110 | # +Z the default |
12111 | ;; | |
12112 | *) | |
12113 | lt_prog_compiler_pic_FC='-fPIC' | |
12114 | ;; | |
12115 | esac | |
12116 | ;; | |
12117 | ||
12118 | interix[3-9]*) | |
12119 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12120 | # Instead, we relocate shared libraries at runtime. | |
12121 | ;; | |
12122 | ||
12123 | msdosdjgpp*) | |
12124 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
12125 | # on systems that don't support them. | |
12126 | lt_prog_compiler_can_build_shared_FC=no | |
12127 | enable_shared=no | |
12128 | ;; | |
12129 | ||
12130 | *nto* | *qnx*) | |
12131 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12132 | # it will coredump. | |
12133 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
12134 | ;; | |
12135 | ||
12136 | sysv4*MP*) | |
12137 | if test -d /usr/nec; then | |
12138 | lt_prog_compiler_pic_FC=-Kconform_pic | |
12139 | fi | |
12140 | ;; | |
12141 | ||
12142 | *) | |
12143 | lt_prog_compiler_pic_FC='-fPIC' | |
12144 | ;; | |
12145 | esac | |
12146 | else | |
12147 | # PORTME Check for flag to pass linker flags through the system compiler. | |
12148 | case $host_os in | |
12149 | aix*) | |
12150 | lt_prog_compiler_wl_FC='-Wl,' | |
12151 | if test "$host_cpu" = ia64; then | |
12152 | # AIX 5 now supports IA64 processor | |
12153 | lt_prog_compiler_static_FC='-Bstatic' | |
12154 | else | |
12155 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
12156 | fi | |
12157 | ;; | |
1cf3d07d | 12158 | |
6b4a97ed | 12159 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
12160 | # This hack is so that the source file can tell whether it is being |
12161 | # built for inclusion in a dll (and should export symbols for example). | |
12162 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
12163 | ;; | |
12164 | ||
12165 | hpux9* | hpux10* | hpux11*) | |
12166 | lt_prog_compiler_wl_FC='-Wl,' | |
12167 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12168 | # not for PA HP-UX. | |
12169 | case $host_cpu in | |
12170 | hppa*64*|ia64*) | |
12171 | # +Z the default | |
12172 | ;; | |
12173 | *) | |
12174 | lt_prog_compiler_pic_FC='+Z' | |
12175 | ;; | |
12176 | esac | |
12177 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
12178 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
12179 | ;; | |
12180 | ||
12181 | irix5* | irix6* | nonstopux*) | |
12182 | lt_prog_compiler_wl_FC='-Wl,' | |
12183 | # PIC (with -KPIC) is the default. | |
12184 | lt_prog_compiler_static_FC='-non_shared' | |
12185 | ;; | |
12186 | ||
7a9d3fe8 | 12187 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 12188 | case $cc_basename in |
6b4a97ed PG |
12189 | # old Intel for x86_64 which still supported -KPIC. |
12190 | ecc*) | |
1cf3d07d SE |
12191 | lt_prog_compiler_wl_FC='-Wl,' |
12192 | lt_prog_compiler_pic_FC='-KPIC' | |
12193 | lt_prog_compiler_static_FC='-static' | |
12194 | ;; | |
6b4a97ed PG |
12195 | # icc used to be incompatible with GCC. |
12196 | # ICC 10 doesn't accept -KPIC any more. | |
12197 | icc* | ifort*) | |
12198 | lt_prog_compiler_wl_FC='-Wl,' | |
12199 | lt_prog_compiler_pic_FC='-fPIC' | |
12200 | lt_prog_compiler_static_FC='-static' | |
12201 | ;; | |
12202 | # Lahey Fortran 8.1. | |
12203 | lf95*) | |
12204 | lt_prog_compiler_wl_FC='-Wl,' | |
12205 | lt_prog_compiler_pic_FC='--shared' | |
12206 | lt_prog_compiler_static_FC='--static' | |
12207 | ;; | |
1cf3d07d SE |
12208 | pgcc* | pgf77* | pgf90* | pgf95*) |
12209 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
12210 | # which looks to be a dead project) | |
12211 | lt_prog_compiler_wl_FC='-Wl,' | |
12212 | lt_prog_compiler_pic_FC='-fpic' | |
12213 | lt_prog_compiler_static_FC='-Bstatic' | |
12214 | ;; | |
12215 | ccc*) | |
12216 | lt_prog_compiler_wl_FC='-Wl,' | |
12217 | # All Alpha code is PIC. | |
12218 | lt_prog_compiler_static_FC='-non_shared' | |
12219 | ;; | |
6b4a97ed PG |
12220 | xl*) |
12221 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
12222 | lt_prog_compiler_wl_FC='-Wl,' | |
12223 | lt_prog_compiler_pic_FC='-qpic' | |
12224 | lt_prog_compiler_static_FC='-qstaticlink' | |
12225 | ;; | |
1cf3d07d SE |
12226 | *) |
12227 | case `$CC -V 2>&1 | sed 5q` in | |
12228 | *Sun\ C*) | |
12229 | # Sun C 5.9 | |
12230 | lt_prog_compiler_pic_FC='-KPIC' | |
12231 | lt_prog_compiler_static_FC='-Bstatic' | |
12232 | lt_prog_compiler_wl_FC='-Wl,' | |
12233 | ;; | |
12234 | *Sun\ F*) | |
12235 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
12236 | lt_prog_compiler_pic_FC='-KPIC' | |
12237 | lt_prog_compiler_static_FC='-Bstatic' | |
12238 | lt_prog_compiler_wl_FC='' | |
12239 | ;; | |
12240 | esac | |
12241 | ;; | |
12242 | esac | |
12243 | ;; | |
12244 | ||
12245 | newsos6) | |
12246 | lt_prog_compiler_pic_FC='-KPIC' | |
12247 | lt_prog_compiler_static_FC='-Bstatic' | |
12248 | ;; | |
12249 | ||
12250 | *nto* | *qnx*) | |
12251 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12252 | # it will coredump. | |
12253 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
12254 | ;; | |
12255 | ||
12256 | osf3* | osf4* | osf5*) | |
12257 | lt_prog_compiler_wl_FC='-Wl,' | |
12258 | # All OSF/1 code is PIC. | |
12259 | lt_prog_compiler_static_FC='-non_shared' | |
12260 | ;; | |
12261 | ||
12262 | rdos*) | |
12263 | lt_prog_compiler_static_FC='-non_shared' | |
12264 | ;; | |
12265 | ||
12266 | solaris*) | |
12267 | lt_prog_compiler_pic_FC='-KPIC' | |
12268 | lt_prog_compiler_static_FC='-Bstatic' | |
12269 | case $cc_basename in | |
12270 | f77* | f90* | f95*) | |
12271 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
12272 | *) | |
12273 | lt_prog_compiler_wl_FC='-Wl,';; | |
12274 | esac | |
12275 | ;; | |
12276 | ||
12277 | sunos4*) | |
12278 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
12279 | lt_prog_compiler_pic_FC='-PIC' | |
12280 | lt_prog_compiler_static_FC='-Bstatic' | |
12281 | ;; | |
12282 | ||
12283 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
12284 | lt_prog_compiler_wl_FC='-Wl,' | |
12285 | lt_prog_compiler_pic_FC='-KPIC' | |
12286 | lt_prog_compiler_static_FC='-Bstatic' | |
12287 | ;; | |
12288 | ||
12289 | sysv4*MP*) | |
12290 | if test -d /usr/nec ;then | |
12291 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
12292 | lt_prog_compiler_static_FC='-Bstatic' | |
12293 | fi | |
12294 | ;; | |
12295 | ||
12296 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12297 | lt_prog_compiler_wl_FC='-Wl,' | |
12298 | lt_prog_compiler_pic_FC='-KPIC' | |
12299 | lt_prog_compiler_static_FC='-Bstatic' | |
12300 | ;; | |
12301 | ||
12302 | unicos*) | |
12303 | lt_prog_compiler_wl_FC='-Wl,' | |
12304 | lt_prog_compiler_can_build_shared_FC=no | |
12305 | ;; | |
12306 | ||
12307 | uts4*) | |
12308 | lt_prog_compiler_pic_FC='-pic' | |
12309 | lt_prog_compiler_static_FC='-Bstatic' | |
12310 | ;; | |
12311 | ||
12312 | *) | |
12313 | lt_prog_compiler_can_build_shared_FC=no | |
12314 | ;; | |
12315 | esac | |
12316 | fi | |
12317 | ||
12318 | case $host_os in | |
12319 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12320 | *djgpp*) | |
12321 | lt_prog_compiler_pic_FC= | |
12322 | ;; | |
12323 | *) | |
12324 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
12325 | ;; | |
12326 | esac | |
5213506e RW |
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
12328 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
12329 | |
12330 | ||
12331 | ||
12332 | # | |
12333 | # Check to make sure the PIC flag actually works. | |
12334 | # | |
12335 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
12337 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
12338 | if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then : | |
12339 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 12340 | else |
6b4a97ed | 12341 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
12342 | ac_outfile=conftest.$ac_objext |
12343 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12344 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
12345 | # Insert the option either (1) after the last *FLAGS variable, or | |
12346 | # (2) before a word containing "conftest.", or (3) at the end. | |
12347 | # Note that $ac_compile itself does not contain backslashes and begins | |
12348 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12349 | # The option is referenced via a variable to avoid confusing sed. | |
12350 | lt_compile=`echo "$ac_compile" | $SED \ | |
12351 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12352 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12353 | -e 's:$: $lt_compiler_flag:'` | |
5213506e | 12354 | (eval echo "\"\$as_me:12354: $lt_compile\"" >&5) |
1cf3d07d SE |
12355 | (eval "$lt_compile" 2>conftest.err) |
12356 | ac_status=$? | |
12357 | cat conftest.err >&5 | |
5213506e | 12358 | echo "$as_me:12358: \$? = $ac_status" >&5 |
1cf3d07d SE |
12359 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12360 | # The compiler can only warn and ignore the option if not recognized | |
12361 | # So say no if there are warnings other than the usual output. | |
12362 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12363 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12364 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 12365 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
12366 | fi |
12367 | fi | |
12368 | $RM conftest* | |
12369 | ||
12370 | fi | |
5213506e RW |
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
12372 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 12373 | |
6b4a97ed | 12374 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
12375 | case $lt_prog_compiler_pic_FC in |
12376 | "" | " "*) ;; | |
12377 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
12378 | esac | |
12379 | else | |
12380 | lt_prog_compiler_pic_FC= | |
12381 | lt_prog_compiler_can_build_shared_FC=no | |
12382 | fi | |
12383 | ||
12384 | fi | |
12385 | ||
12386 | ||
12387 | ||
12388 | # | |
12389 | # Check to make sure the static flag actually works. | |
12390 | # | |
12391 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
12392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12393 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
12394 | if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then : | |
12395 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 12396 | else |
6b4a97ed | 12397 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
12398 | save_LDFLAGS="$LDFLAGS" |
12399 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12400 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12401 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12402 | # The linker can only warn and ignore the option if not recognized | |
12403 | # So say no if there are warnings | |
12404 | if test -s conftest.err; then | |
12405 | # Append any errors to the config.log. | |
12406 | cat conftest.err 1>&5 | |
12407 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12408 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12409 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 12410 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
12411 | fi |
12412 | else | |
6b4a97ed | 12413 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
12414 | fi |
12415 | fi | |
6b4a97ed | 12416 | $RM -r conftest* |
1cf3d07d SE |
12417 | LDFLAGS="$save_LDFLAGS" |
12418 | ||
12419 | fi | |
5213506e RW |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
12421 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 12422 | |
6b4a97ed | 12423 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
12424 | : |
12425 | else | |
12426 | lt_prog_compiler_static_FC= | |
12427 | fi | |
12428 | ||
12429 | ||
12430 | ||
12431 | ||
5213506e RW |
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12433 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12434 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then : | |
12435 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
12436 | else |
12437 | lt_cv_prog_compiler_c_o_FC=no | |
12438 | $RM -r conftest 2>/dev/null | |
12439 | mkdir conftest | |
12440 | cd conftest | |
12441 | mkdir out | |
12442 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12443 | ||
12444 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12445 | # Insert the option either (1) after the last *FLAGS variable, or | |
12446 | # (2) before a word containing "conftest.", or (3) at the end. | |
12447 | # Note that $ac_compile itself does not contain backslashes and begins | |
12448 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12449 | lt_compile=`echo "$ac_compile" | $SED \ | |
12450 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12451 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12452 | -e 's:$: $lt_compiler_flag:'` | |
5213506e | 12453 | (eval echo "\"\$as_me:12453: $lt_compile\"" >&5) |
1cf3d07d SE |
12454 | (eval "$lt_compile" 2>out/conftest.err) |
12455 | ac_status=$? | |
12456 | cat out/conftest.err >&5 | |
5213506e | 12457 | echo "$as_me:12457: \$? = $ac_status" >&5 |
1cf3d07d SE |
12458 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12459 | then | |
12460 | # The compiler can only warn and ignore the option if not recognized | |
12461 | # So say no if there are warnings | |
12462 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12463 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12464 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12465 | lt_cv_prog_compiler_c_o_FC=yes | |
12466 | fi | |
12467 | fi | |
12468 | chmod u+w . 2>&5 | |
12469 | $RM conftest* | |
12470 | # SGI C++ compiler will create directory out/ii_files/ for | |
12471 | # template instantiation | |
12472 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12473 | $RM out/* && rmdir out | |
12474 | cd .. | |
12475 | $RM -r conftest | |
12476 | $RM conftest* | |
12477 | ||
12478 | fi | |
5213506e RW |
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12480 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
12481 | |
12482 | ||
12483 | ||
5213506e RW |
12484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12485 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12486 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then : | |
12487 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
12488 | else |
12489 | lt_cv_prog_compiler_c_o_FC=no | |
12490 | $RM -r conftest 2>/dev/null | |
12491 | mkdir conftest | |
12492 | cd conftest | |
12493 | mkdir out | |
12494 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12495 | ||
12496 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12497 | # Insert the option either (1) after the last *FLAGS variable, or | |
12498 | # (2) before a word containing "conftest.", or (3) at the end. | |
12499 | # Note that $ac_compile itself does not contain backslashes and begins | |
12500 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12501 | lt_compile=`echo "$ac_compile" | $SED \ | |
12502 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12503 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12504 | -e 's:$: $lt_compiler_flag:'` | |
5213506e | 12505 | (eval echo "\"\$as_me:12505: $lt_compile\"" >&5) |
1cf3d07d SE |
12506 | (eval "$lt_compile" 2>out/conftest.err) |
12507 | ac_status=$? | |
12508 | cat out/conftest.err >&5 | |
5213506e | 12509 | echo "$as_me:12509: \$? = $ac_status" >&5 |
1cf3d07d SE |
12510 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12511 | then | |
12512 | # The compiler can only warn and ignore the option if not recognized | |
12513 | # So say no if there are warnings | |
12514 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12515 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12516 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12517 | lt_cv_prog_compiler_c_o_FC=yes | |
12518 | fi | |
12519 | fi | |
12520 | chmod u+w . 2>&5 | |
12521 | $RM conftest* | |
12522 | # SGI C++ compiler will create directory out/ii_files/ for | |
12523 | # template instantiation | |
12524 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12525 | $RM out/* && rmdir out | |
12526 | cd .. | |
12527 | $RM -r conftest | |
12528 | $RM conftest* | |
12529 | ||
12530 | fi | |
5213506e RW |
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12532 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
12533 | |
12534 | ||
12535 | ||
12536 | ||
12537 | hard_links="nottested" | |
12538 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
12539 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
12541 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
12542 | hard_links=yes |
12543 | $RM conftest* | |
12544 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12545 | touch conftest.a | |
12546 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12547 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
12549 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 12550 | if test "$hard_links" = no; then |
5213506e RW |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12552 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
12553 | need_locks=warn |
12554 | fi | |
12555 | else | |
12556 | need_locks=no | |
12557 | fi | |
12558 | ||
12559 | ||
12560 | ||
5213506e RW |
12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12562 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
12563 | |
12564 | runpath_var= | |
12565 | allow_undefined_flag_FC= | |
12566 | always_export_symbols_FC=no | |
12567 | archive_cmds_FC= | |
12568 | archive_expsym_cmds_FC= | |
12569 | compiler_needs_object_FC=no | |
12570 | enable_shared_with_static_runtimes_FC=no | |
12571 | export_dynamic_flag_spec_FC= | |
12572 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12573 | hardcode_automatic_FC=no | |
12574 | hardcode_direct_FC=no | |
12575 | hardcode_direct_absolute_FC=no | |
12576 | hardcode_libdir_flag_spec_FC= | |
12577 | hardcode_libdir_flag_spec_ld_FC= | |
12578 | hardcode_libdir_separator_FC= | |
12579 | hardcode_minus_L_FC=no | |
12580 | hardcode_shlibpath_var_FC=unsupported | |
12581 | inherit_rpath_FC=no | |
12582 | link_all_deplibs_FC=unknown | |
12583 | module_cmds_FC= | |
12584 | module_expsym_cmds_FC= | |
12585 | old_archive_from_new_cmds_FC= | |
12586 | old_archive_from_expsyms_cmds_FC= | |
12587 | thread_safe_flag_spec_FC= | |
12588 | whole_archive_flag_spec_FC= | |
12589 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12590 | # included in the symbol list | |
12591 | include_expsyms_FC= | |
12592 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
12593 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12594 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12595 | # as well as any symbol that contains `d'. | |
6b4a97ed | 12596 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
12597 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
12598 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12599 | # the symbol is explicitly referenced. Since portable code cannot | |
12600 | # rely on this symbol name, it's probably fine to never include it in | |
12601 | # preloaded symbol tables. | |
6b4a97ed | 12602 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
12603 | extract_expsyms_cmds= |
12604 | ||
12605 | case $host_os in | |
6b4a97ed | 12606 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12607 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
12608 | # When not using gcc, we currently assume that we are using | |
12609 | # Microsoft Visual C++. | |
12610 | if test "$GCC" != yes; then | |
12611 | with_gnu_ld=no | |
12612 | fi | |
12613 | ;; | |
12614 | interix*) | |
12615 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
12616 | with_gnu_ld=yes | |
12617 | ;; | |
12618 | openbsd*) | |
12619 | with_gnu_ld=no | |
12620 | ;; | |
12621 | esac | |
12622 | ||
12623 | ld_shlibs_FC=yes | |
12624 | if test "$with_gnu_ld" = yes; then | |
12625 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12626 | wlarc='${wl}' | |
12627 | ||
12628 | # Set some defaults for GNU ld with shared library support. These | |
12629 | # are reset later if shared libraries are not supported. Putting them | |
12630 | # here allows them to be overridden if necessary. | |
12631 | runpath_var=LD_RUN_PATH | |
12632 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12633 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
12634 | # ancient GNU ld didn't support --whole-archive et. al. | |
12635 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
12636 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12637 | else | |
12638 | whole_archive_flag_spec_FC= | |
12639 | fi | |
12640 | supports_anon_versioning=no | |
12641 | case `$LD -v 2>&1` in | |
12642 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
12643 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
12644 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
12645 | *\ 2.11.*) ;; # other 2.11 versions | |
12646 | *) supports_anon_versioning=yes ;; | |
12647 | esac | |
12648 | ||
12649 | # See if GNU ld supports shared libraries. | |
12650 | case $host_os in | |
d653fdfb | 12651 | aix[3-9]*) |
1cf3d07d SE |
12652 | # On AIX/PPC, the GNU linker is very broken |
12653 | if test "$host_cpu" != ia64; then | |
12654 | ld_shlibs_FC=no | |
12655 | cat <<_LT_EOF 1>&2 | |
12656 | ||
12657 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
12658 | *** to be unable to reliably create shared libraries on AIX. | |
12659 | *** Therefore, libtool is disabling shared libraries support. If you | |
12660 | *** really care for shared libraries, you may want to modify your PATH | |
12661 | *** so that a non-GNU linker is found, and then restart. | |
12662 | ||
12663 | _LT_EOF | |
12664 | fi | |
12665 | ;; | |
12666 | ||
12667 | amigaos*) | |
6b4a97ed PG |
12668 | case $host_cpu in |
12669 | powerpc) | |
12670 | # see comment about AmigaOS4 .so support | |
12671 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12672 | archive_expsym_cmds_FC='' | |
12673 | ;; | |
12674 | m68k) | |
12675 | 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)' | |
12676 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12677 | hardcode_minus_L_FC=yes | |
12678 | ;; | |
12679 | esac | |
1cf3d07d SE |
12680 | ;; |
12681 | ||
12682 | beos*) | |
12683 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12684 | allow_undefined_flag_FC=unsupported | |
12685 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12686 | # support --undefined. This deserves some investigation. FIXME | |
12687 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12688 | else | |
12689 | ld_shlibs_FC=no | |
12690 | fi | |
12691 | ;; | |
12692 | ||
6b4a97ed | 12693 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12694 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
12695 | # as there is no search path for DLLs. | |
12696 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12697 | allow_undefined_flag_FC=unsupported | |
12698 | always_export_symbols_FC=no | |
12699 | enable_shared_with_static_runtimes_FC=yes | |
12700 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
12701 | ||
12702 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12703 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12704 | # If the export-symbols file already is a .def file (1st line | |
12705 | # is EXPORTS), use it as is; otherwise, prepend... | |
12706 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12707 | cp $export_symbols $output_objdir/$soname.def; | |
12708 | else | |
12709 | echo EXPORTS > $output_objdir/$soname.def; | |
12710 | cat $export_symbols >> $output_objdir/$soname.def; | |
12711 | fi~ | |
12712 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12713 | else | |
12714 | ld_shlibs_FC=no | |
12715 | fi | |
12716 | ;; | |
12717 | ||
12718 | interix[3-9]*) | |
12719 | hardcode_direct_FC=no | |
12720 | hardcode_shlibpath_var_FC=no | |
12721 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
12722 | export_dynamic_flag_spec_FC='${wl}-E' | |
12723 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12724 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12725 | # default) and relocated if they conflict, which is a slow very memory | |
12726 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12727 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12728 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12729 | 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' | |
12730 | 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' | |
12731 | ;; | |
12732 | ||
7a9d3fe8 | 12733 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
12734 | tmp_diet=no |
12735 | if test "$host_os" = linux-dietlibc; then | |
12736 | case $cc_basename in | |
12737 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
12738 | esac | |
12739 | fi | |
12740 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
12741 | && test "$tmp_diet" = no | |
12742 | then | |
12743 | tmp_addflag= | |
6b4a97ed | 12744 | tmp_sharedflag='-shared' |
1cf3d07d SE |
12745 | case $cc_basename,$host_cpu in |
12746 | pgcc*) # Portland Group C compiler | |
12747 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12748 | tmp_addflag=' $pic_flag' | |
12749 | ;; | |
12750 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
12751 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12752 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
12753 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
12754 | tmp_addflag=' -i_dynamic' ;; | |
12755 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
12756 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
12757 | ifc* | ifort*) # Intel Fortran compiler | |
12758 | tmp_addflag=' -nofor_main' ;; | |
6b4a97ed PG |
12759 | lf95*) # Lahey Fortran 8.1 |
12760 | whole_archive_flag_spec_FC= | |
12761 | tmp_sharedflag='--shared' ;; | |
12762 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
12763 | tmp_sharedflag='-qmkshrobj' | |
12764 | tmp_addflag= ;; | |
1cf3d07d SE |
12765 | esac |
12766 | case `$CC -V 2>&1 | sed 5q` in | |
12767 | *Sun\ C*) # Sun C 5.9 | |
12768 | whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12769 | compiler_needs_object_FC=yes | |
12770 | tmp_sharedflag='-G' ;; | |
12771 | *Sun\ F*) # Sun Fortran 8.3 | |
12772 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
12773 | esac |
12774 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12775 | ||
12776 | if test "x$supports_anon_versioning" = xyes; then | |
12777 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
12778 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12779 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12780 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12781 | fi | |
6b4a97ed PG |
12782 | |
12783 | case $cc_basename in | |
12784 | xlf*) | |
12785 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
12786 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
12787 | hardcode_libdir_flag_spec_FC= | |
12788 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
12789 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
12790 | if test "x$supports_anon_versioning" = xyes; then | |
12791 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
12792 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12793 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12794 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
12795 | fi | |
12796 | ;; | |
12797 | esac | |
1cf3d07d SE |
12798 | else |
12799 | ld_shlibs_FC=no | |
12800 | fi | |
12801 | ;; | |
12802 | ||
12803 | netbsd*) | |
12804 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12805 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
12806 | wlarc= | |
12807 | else | |
12808 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12809 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12810 | fi | |
12811 | ;; | |
12812 | ||
12813 | solaris*) | |
12814 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
12815 | ld_shlibs_FC=no | |
12816 | cat <<_LT_EOF 1>&2 | |
12817 | ||
12818 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
12819 | *** create shared libraries on Solaris systems. Therefore, libtool | |
12820 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12821 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
12822 | *** your PATH or compiler configuration so that the native linker is | |
12823 | *** used, and then restart. | |
12824 | ||
12825 | _LT_EOF | |
12826 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12827 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12828 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12829 | else | |
12830 | ld_shlibs_FC=no | |
12831 | fi | |
12832 | ;; | |
12833 | ||
12834 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
12835 | case `$LD -v 2>&1` in | |
12836 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
12837 | ld_shlibs_FC=no | |
12838 | cat <<_LT_EOF 1>&2 | |
12839 | ||
12840 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
12841 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
12842 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12843 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
12844 | *** your PATH or compiler configuration so that the native linker is | |
12845 | *** used, and then restart. | |
12846 | ||
12847 | _LT_EOF | |
12848 | ;; | |
12849 | *) | |
12850 | # For security reasons, it is highly recommended that you always | |
12851 | # use absolute paths for naming shared libraries, and exclude the | |
12852 | # DT_RUNPATH tag from executables and libraries. But doing so | |
12853 | # requires that you compile everything twice, which is a pain. | |
12854 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12855 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12856 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12857 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12858 | else | |
12859 | ld_shlibs_FC=no | |
12860 | fi | |
12861 | ;; | |
12862 | esac | |
12863 | ;; | |
12864 | ||
12865 | sunos4*) | |
12866 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12867 | wlarc= | |
12868 | hardcode_direct_FC=yes | |
12869 | hardcode_shlibpath_var_FC=no | |
12870 | ;; | |
12871 | ||
12872 | *) | |
12873 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12874 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12875 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12876 | else | |
12877 | ld_shlibs_FC=no | |
12878 | fi | |
12879 | ;; | |
12880 | esac | |
12881 | ||
12882 | if test "$ld_shlibs_FC" = no; then | |
12883 | runpath_var= | |
12884 | hardcode_libdir_flag_spec_FC= | |
12885 | export_dynamic_flag_spec_FC= | |
12886 | whole_archive_flag_spec_FC= | |
12887 | fi | |
12888 | else | |
12889 | # PORTME fill in a description of your system's linker (not GNU ld) | |
12890 | case $host_os in | |
12891 | aix3*) | |
12892 | allow_undefined_flag_FC=unsupported | |
12893 | always_export_symbols_FC=yes | |
12894 | 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' | |
12895 | # Note: this linker hardcodes the directories in LIBPATH if there | |
12896 | # are no directories specified by -L. | |
12897 | hardcode_minus_L_FC=yes | |
12898 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
12899 | # Neither direct hardcoding nor static linking is supported with a | |
12900 | # broken collect2. | |
12901 | hardcode_direct_FC=unsupported | |
12902 | fi | |
12903 | ;; | |
12904 | ||
d653fdfb | 12905 | aix[4-9]*) |
1cf3d07d SE |
12906 | if test "$host_cpu" = ia64; then |
12907 | # On IA64, the linker does run time linking by default, so we don't | |
12908 | # have to do anything special. | |
12909 | aix_use_runtimelinking=no | |
12910 | exp_sym_flag='-Bexport' | |
12911 | no_entry_flag="" | |
12912 | else | |
12913 | # If we're using GNU nm, then we don't want the "-C" option. | |
12914 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12915 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
12916 | export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12917 | else | |
12918 | export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12919 | fi | |
12920 | aix_use_runtimelinking=no | |
12921 | ||
12922 | # Test if we are trying to use run time linking or normal | |
12923 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12924 | # need to do runtime linking. | |
d653fdfb | 12925 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
12926 | for ld_flag in $LDFLAGS; do |
12927 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
12928 | aix_use_runtimelinking=yes | |
12929 | break | |
12930 | fi | |
12931 | done | |
12932 | ;; | |
12933 | esac | |
12934 | ||
12935 | exp_sym_flag='-bexport' | |
12936 | no_entry_flag='-bnoentry' | |
12937 | fi | |
12938 | ||
12939 | # When large executables or shared objects are built, AIX ld can | |
12940 | # have problems creating the table of contents. If linking a library | |
12941 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12942 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12943 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12944 | ||
12945 | archive_cmds_FC='' | |
12946 | hardcode_direct_FC=yes | |
12947 | hardcode_direct_absolute_FC=yes | |
12948 | hardcode_libdir_separator_FC=':' | |
12949 | link_all_deplibs_FC=yes | |
12950 | file_list_spec_FC='${wl}-f,' | |
12951 | ||
12952 | if test "$GCC" = yes; then | |
12953 | case $host_os in aix4.[012]|aix4.[012].*) | |
12954 | # We only want to do this on AIX 4.2 and lower, the check | |
12955 | # below for broken collect2 doesn't work under 4.3+ | |
12956 | collect2name=`${CC} -print-prog-name=collect2` | |
12957 | if test -f "$collect2name" && | |
12958 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12959 | then | |
12960 | # We have reworked collect2 | |
12961 | : | |
12962 | else | |
12963 | # We have old collect2 | |
12964 | hardcode_direct_FC=unsupported | |
12965 | # It fails to find uninstalled libraries when the uninstalled | |
12966 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12967 | # to unsupported forces relinking | |
12968 | hardcode_minus_L_FC=yes | |
12969 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12970 | hardcode_libdir_separator_FC= | |
12971 | fi | |
12972 | ;; | |
12973 | esac | |
12974 | shared_flag='-shared' | |
12975 | if test "$aix_use_runtimelinking" = yes; then | |
12976 | shared_flag="$shared_flag "'${wl}-G' | |
12977 | fi | |
12978 | else | |
12979 | # not using gcc | |
12980 | if test "$host_cpu" = ia64; then | |
12981 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12982 | # chokes on -Wl,-G. The following line is correct: | |
12983 | shared_flag='-G' | |
12984 | else | |
12985 | if test "$aix_use_runtimelinking" = yes; then | |
12986 | shared_flag='${wl}-G' | |
12987 | else | |
12988 | shared_flag='${wl}-bM:SRE' | |
12989 | fi | |
12990 | fi | |
12991 | fi | |
12992 | ||
6b4a97ed | 12993 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
12994 | # It seems that -bexpall does not export symbols beginning with |
12995 | # underscore (_), so it is better to generate a list of symbols to export. | |
12996 | always_export_symbols_FC=yes | |
12997 | if test "$aix_use_runtimelinking" = yes; then | |
12998 | # Warning - without using the other runtime loading flags (-brtl), | |
12999 | # -berok will link without error, but may produce a broken library. | |
13000 | allow_undefined_flag_FC='-berok' | |
13001 | # Determine the default libpath from the value encoded in an | |
13002 | # empty executable. | |
5213506e | 13003 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13004 | program main |
13005 | ||
13006 | end | |
13007 | _ACEOF | |
5213506e | 13008 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
13009 | |
13010 | lt_aix_libpath_sed=' | |
13011 | /Import File Strings/,/^$/ { | |
13012 | /^0/ { | |
13013 | s/^0 *\(.*\)$/\1/ | |
13014 | p | |
13015 | } | |
13016 | }' | |
13017 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13018 | # Check for a 64-bit object if we didn't find anything. | |
13019 | if test -z "$aix_libpath"; then | |
13020 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13021 | fi | |
1cf3d07d | 13022 | fi |
5213506e RW |
13023 | rm -f core conftest.err conftest.$ac_objext \ |
13024 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13025 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13026 | ||
13027 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13028 | 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
13029 | else | |
13030 | if test "$host_cpu" = ia64; then | |
13031 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
13032 | allow_undefined_flag_FC="-z nodefs" | |
13033 | 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" | |
13034 | else | |
13035 | # Determine the default libpath from the value encoded in an | |
13036 | # empty executable. | |
5213506e | 13037 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13038 | program main |
13039 | ||
13040 | end | |
13041 | _ACEOF | |
5213506e | 13042 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
13043 | |
13044 | lt_aix_libpath_sed=' | |
13045 | /Import File Strings/,/^$/ { | |
13046 | /^0/ { | |
13047 | s/^0 *\(.*\)$/\1/ | |
13048 | p | |
13049 | } | |
13050 | }' | |
13051 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13052 | # Check for a 64-bit object if we didn't find anything. | |
13053 | if test -z "$aix_libpath"; then | |
13054 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13055 | fi | |
1cf3d07d | 13056 | fi |
5213506e RW |
13057 | rm -f core conftest.err conftest.$ac_objext \ |
13058 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13059 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13060 | ||
13061 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13062 | # Warning - without using the other run time loading flags, | |
13063 | # -berok will link without error, but may produce a broken library. | |
13064 | no_undefined_flag_FC=' ${wl}-bernotok' | |
13065 | allow_undefined_flag_FC=' ${wl}-berok' | |
13066 | # Exported symbols can be pulled into shared objects from archives | |
13067 | whole_archive_flag_spec_FC='$convenience' | |
13068 | archive_cmds_need_lc_FC=yes | |
13069 | # This is similar to how AIX traditionally builds its shared libraries. | |
13070 | 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' | |
13071 | fi | |
13072 | fi | |
953ff289 | 13073 | ;; |
1cf3d07d SE |
13074 | |
13075 | amigaos*) | |
6b4a97ed PG |
13076 | case $host_cpu in |
13077 | powerpc) | |
13078 | # see comment about AmigaOS4 .so support | |
13079 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13080 | archive_expsym_cmds_FC='' | |
13081 | ;; | |
13082 | m68k) | |
13083 | 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)' | |
13084 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13085 | hardcode_minus_L_FC=yes | |
13086 | ;; | |
13087 | esac | |
953ff289 | 13088 | ;; |
1cf3d07d SE |
13089 | |
13090 | bsdi[45]*) | |
13091 | export_dynamic_flag_spec_FC=-rdynamic | |
953ff289 | 13092 | ;; |
1cf3d07d | 13093 | |
6b4a97ed | 13094 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
13095 | # When not using gcc, we currently assume that we are using |
13096 | # Microsoft Visual C++. | |
13097 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13098 | # no search path for DLLs. | |
13099 | hardcode_libdir_flag_spec_FC=' ' | |
13100 | allow_undefined_flag_FC=unsupported | |
13101 | # Tell ltmain to make .lib files, not .a files. | |
13102 | libext=lib | |
13103 | # Tell ltmain to make .dll files, not .so files. | |
13104 | shrext_cmds=".dll" | |
13105 | # FIXME: Setting linknames here is a bad hack. | |
13106 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
13107 | # The linker will automatically build a .lib file if we build a DLL. | |
13108 | old_archive_from_new_cmds_FC='true' | |
13109 | # FIXME: Should let the user specify the lib program. | |
13110 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
13111 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
13112 | enable_shared_with_static_runtimes_FC=yes | |
953ff289 | 13113 | ;; |
1cf3d07d SE |
13114 | |
13115 | darwin* | rhapsody*) | |
1cf3d07d | 13116 | |
6b4a97ed PG |
13117 | |
13118 | archive_cmds_need_lc_FC=no | |
13119 | hardcode_direct_FC=no | |
13120 | hardcode_automatic_FC=yes | |
13121 | hardcode_shlibpath_var_FC=unsupported | |
13122 | whole_archive_flag_spec_FC='' | |
13123 | link_all_deplibs_FC=yes | |
13124 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
13125 | case $cc_basename in | |
13126 | ifort*) _lt_dar_can_shared=yes ;; | |
13127 | *) _lt_dar_can_shared=$GCC ;; | |
13128 | esac | |
13129 | if test "$_lt_dar_can_shared" = "yes"; then | |
13130 | output_verbose_link_cmd=echo | |
13131 | 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}" | |
13132 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13133 | 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}" | |
13134 | 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}" | |
13135 | ||
13136 | else | |
13137 | ld_shlibs_FC=no | |
13138 | fi | |
13139 | ||
953ff289 | 13140 | ;; |
1cf3d07d SE |
13141 | |
13142 | dgux*) | |
13143 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13144 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13145 | hardcode_shlibpath_var_FC=no | |
953ff289 | 13146 | ;; |
953ff289 | 13147 | |
1cf3d07d SE |
13148 | freebsd1*) |
13149 | ld_shlibs_FC=no | |
953ff289 | 13150 | ;; |
1cf3d07d SE |
13151 | |
13152 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
13153 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
13154 | # does not break anything, and helps significantly (at the cost of a little | |
13155 | # extra space). | |
13156 | freebsd2.2*) | |
13157 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
13158 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13159 | hardcode_direct_FC=yes | |
13160 | hardcode_shlibpath_var_FC=no | |
953ff289 | 13161 | ;; |
953ff289 | 13162 | |
1cf3d07d SE |
13163 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
13164 | freebsd2*) | |
13165 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13166 | hardcode_direct_FC=yes | |
13167 | hardcode_minus_L_FC=yes | |
13168 | hardcode_shlibpath_var_FC=no | |
13169 | ;; | |
13170 | ||
13171 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
13172 | freebsd* | dragonfly*) | |
13173 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13174 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13175 | hardcode_direct_FC=yes | |
13176 | hardcode_shlibpath_var_FC=no | |
13177 | ;; | |
13178 | ||
13179 | hpux9*) | |
13180 | if test "$GCC" = yes; then | |
13181 | 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' | |
13182 | else | |
13183 | 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' | |
13184 | fi | |
13185 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13186 | hardcode_libdir_separator_FC=: | |
13187 | hardcode_direct_FC=yes | |
13188 | ||
13189 | # hardcode_minus_L: Not really in the search PATH, | |
13190 | # but as the default location of the library. | |
13191 | hardcode_minus_L_FC=yes | |
13192 | export_dynamic_flag_spec_FC='${wl}-E' | |
13193 | ;; | |
13194 | ||
13195 | hpux10*) | |
13196 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
13197 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13198 | else | |
13199 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
13200 | fi | |
13201 | if test "$with_gnu_ld" = no; then | |
13202 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13203 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
13204 | hardcode_libdir_separator_FC=: | |
13205 | hardcode_direct_FC=yes | |
13206 | hardcode_direct_absolute_FC=yes | |
13207 | export_dynamic_flag_spec_FC='${wl}-E' | |
13208 | # hardcode_minus_L: Not really in the search PATH, | |
13209 | # but as the default location of the library. | |
13210 | hardcode_minus_L_FC=yes | |
13211 | fi | |
13212 | ;; | |
13213 | ||
13214 | hpux11*) | |
13215 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
13216 | case $host_cpu in | |
13217 | hppa*64*) | |
13218 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13219 | ;; | |
13220 | ia64*) | |
6b4a97ed | 13221 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
13222 | ;; |
13223 | *) | |
13224 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13225 | ;; | |
13226 | esac | |
13227 | else | |
13228 | case $host_cpu in | |
13229 | hppa*64*) | |
13230 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13231 | ;; | |
13232 | ia64*) | |
13233 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
13234 | ;; | |
13235 | *) | |
13236 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13237 | ;; | |
13238 | esac | |
13239 | fi | |
13240 | if test "$with_gnu_ld" = no; then | |
13241 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13242 | hardcode_libdir_separator_FC=: | |
13243 | ||
13244 | case $host_cpu in | |
13245 | hppa*64*|ia64*) | |
13246 | hardcode_direct_FC=no | |
13247 | hardcode_shlibpath_var_FC=no | |
13248 | ;; | |
13249 | *) | |
13250 | hardcode_direct_FC=yes | |
13251 | hardcode_direct_absolute_FC=yes | |
13252 | export_dynamic_flag_spec_FC='${wl}-E' | |
13253 | ||
13254 | # hardcode_minus_L: Not really in the search PATH, | |
13255 | # but as the default location of the library. | |
13256 | hardcode_minus_L_FC=yes | |
13257 | ;; | |
13258 | esac | |
13259 | fi | |
13260 | ;; | |
13261 | ||
13262 | irix5* | irix6* | nonstopux*) | |
13263 | if test "$GCC" = yes; then | |
13264 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13265 | # Try to use the -exported_symbol ld option, if it does not | |
13266 | # work, assume that -exports_file does not work either and | |
13267 | # implicitly export all symbols. | |
13268 | save_LDFLAGS="$LDFLAGS" | |
13269 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
5213506e | 13270 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13271 | int foo(void) {} |
13272 | _ACEOF | |
5213506e | 13273 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
13274 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
13275 | ||
1cf3d07d | 13276 | fi |
5213506e RW |
13277 | rm -f core conftest.err conftest.$ac_objext \ |
13278 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13279 | LDFLAGS="$save_LDFLAGS" |
13280 | else | |
13281 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
13282 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
13283 | fi | |
13284 | archive_cmds_need_lc_FC='no' | |
13285 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13286 | hardcode_libdir_separator_FC=: | |
13287 | inherit_rpath_FC=yes | |
13288 | link_all_deplibs_FC=yes | |
13289 | ;; | |
13290 | ||
13291 | netbsd*) | |
13292 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13293 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
13294 | else | |
13295 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
13296 | fi | |
13297 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13298 | hardcode_direct_FC=yes | |
13299 | hardcode_shlibpath_var_FC=no | |
13300 | ;; | |
13301 | ||
13302 | newsos6) | |
13303 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13304 | hardcode_direct_FC=yes | |
13305 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13306 | hardcode_libdir_separator_FC=: | |
13307 | hardcode_shlibpath_var_FC=no | |
13308 | ;; | |
13309 | ||
13310 | *nto* | *qnx*) | |
13311 | ;; | |
13312 | ||
13313 | openbsd*) | |
6b4a97ed PG |
13314 | if test -f /usr/libexec/ld.so; then |
13315 | hardcode_direct_FC=yes | |
13316 | hardcode_shlibpath_var_FC=no | |
13317 | hardcode_direct_absolute_FC=yes | |
13318 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 13319 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6b4a97ed | 13320 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 13321 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
6b4a97ed PG |
13322 | export_dynamic_flag_spec_FC='${wl}-E' |
13323 | else | |
13324 | case $host_os in | |
13325 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
13326 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13327 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13328 | ;; | |
13329 | *) | |
13330 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
13331 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
13332 | ;; | |
13333 | esac | |
13334 | fi | |
13335 | else | |
13336 | ld_shlibs_FC=no | |
1cf3d07d SE |
13337 | fi |
13338 | ;; | |
13339 | ||
13340 | os2*) | |
13341 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13342 | hardcode_minus_L_FC=yes | |
13343 | allow_undefined_flag_FC=unsupported | |
13344 | 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' | |
13345 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
13346 | ;; | |
13347 | ||
13348 | osf3*) | |
13349 | if test "$GCC" = yes; then | |
13350 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
13351 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13352 | else | |
13353 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
13354 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
13355 | fi | |
13356 | archive_cmds_need_lc_FC='no' | |
13357 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13358 | hardcode_libdir_separator_FC=: | |
13359 | ;; | |
13360 | ||
13361 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
13362 | if test "$GCC" = yes; then | |
13363 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
13364 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13365 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13366 | else | |
13367 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
13368 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
13369 | 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~ | |
13370 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
13371 | ||
13372 | # Both c and cxx compiler support -rpath directly | |
13373 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
13374 | fi | |
13375 | archive_cmds_need_lc_FC='no' | |
13376 | hardcode_libdir_separator_FC=: | |
13377 | ;; | |
13378 | ||
13379 | solaris*) | |
13380 | no_undefined_flag_FC=' -z defs' | |
13381 | if test "$GCC" = yes; then | |
13382 | wlarc='${wl}' | |
13383 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13384 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13385 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13386 | else | |
13387 | case `$CC -V 2>&1` in | |
13388 | *"Compilers 5.0"*) | |
13389 | wlarc='' | |
13390 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13391 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13392 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
13393 | ;; | |
13394 | *) | |
13395 | wlarc='${wl}' | |
13396 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13397 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13398 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13399 | ;; | |
13400 | esac | |
13401 | fi | |
13402 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13403 | hardcode_shlibpath_var_FC=no | |
13404 | case $host_os in | |
13405 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13406 | *) | |
13407 | # The compiler driver will combine and reorder linker options, | |
13408 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
13409 | # but is careful enough not to reorder. | |
13410 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13411 | if test "$GCC" = yes; then | |
13412 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13413 | else | |
13414 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
13415 | fi | |
13416 | ;; | |
13417 | esac | |
13418 | link_all_deplibs_FC=yes | |
13419 | ;; | |
13420 | ||
13421 | sunos4*) | |
13422 | if test "x$host_vendor" = xsequent; then | |
13423 | # Use $CC to link under sequent, because it throws in some extra .o | |
13424 | # files that make .init and .fini sections work. | |
13425 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13426 | else | |
13427 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
13428 | fi | |
13429 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13430 | hardcode_direct_FC=yes | |
13431 | hardcode_minus_L_FC=yes | |
13432 | hardcode_shlibpath_var_FC=no | |
13433 | ;; | |
13434 | ||
13435 | sysv4) | |
13436 | case $host_vendor in | |
13437 | sni) | |
13438 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13439 | hardcode_direct_FC=yes # is this really true??? | |
13440 | ;; | |
13441 | siemens) | |
13442 | ## LD is ld it makes a PLAMLIB | |
13443 | ## CC just makes a GrossModule. | |
13444 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
13445 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
13446 | hardcode_direct_FC=no | |
13447 | ;; | |
13448 | motorola) | |
13449 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13450 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
13451 | ;; | |
953ff289 | 13452 | esac |
1cf3d07d SE |
13453 | runpath_var='LD_RUN_PATH' |
13454 | hardcode_shlibpath_var_FC=no | |
13455 | ;; | |
13456 | ||
13457 | sysv4.3*) | |
13458 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13459 | hardcode_shlibpath_var_FC=no | |
13460 | export_dynamic_flag_spec_FC='-Bexport' | |
13461 | ;; | |
13462 | ||
13463 | sysv4*MP*) | |
13464 | if test -d /usr/nec; then | |
13465 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13466 | hardcode_shlibpath_var_FC=no | |
13467 | runpath_var=LD_RUN_PATH | |
13468 | hardcode_runpath_var=yes | |
13469 | ld_shlibs_FC=yes | |
13470 | fi | |
13471 | ;; | |
13472 | ||
13473 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13474 | no_undefined_flag_FC='${wl}-z,text' | |
13475 | archive_cmds_need_lc_FC=no | |
13476 | hardcode_shlibpath_var_FC=no | |
13477 | runpath_var='LD_RUN_PATH' | |
13478 | ||
13479 | if test "$GCC" = yes; then | |
13480 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13481 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13482 | else | |
13483 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13484 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13485 | fi | |
13486 | ;; | |
13487 | ||
13488 | sysv5* | sco3.2v5* | sco5v6*) | |
13489 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13490 | # link with -lc, and that would cause any symbols used from libc to | |
13491 | # always be unresolved, which means just about no library would | |
13492 | # ever link correctly. If we're not using GNU ld we use -z text | |
13493 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13494 | # as -z defs. | |
13495 | no_undefined_flag_FC='${wl}-z,text' | |
13496 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
13497 | archive_cmds_need_lc_FC=no | |
13498 | hardcode_shlibpath_var_FC=no | |
13499 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
13500 | hardcode_libdir_separator_FC=':' | |
13501 | link_all_deplibs_FC=yes | |
13502 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
13503 | runpath_var='LD_RUN_PATH' | |
13504 | ||
13505 | if test "$GCC" = yes; then | |
13506 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13507 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13508 | else | |
13509 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13510 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13511 | fi | |
13512 | ;; | |
13513 | ||
13514 | uts4*) | |
13515 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13516 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13517 | hardcode_shlibpath_var_FC=no | |
13518 | ;; | |
13519 | ||
13520 | *) | |
13521 | ld_shlibs_FC=no | |
953ff289 | 13522 | ;; |
1cf3d07d SE |
13523 | esac |
13524 | ||
13525 | if test x$host_vendor = xsni; then | |
953ff289 | 13526 | case $host in |
1cf3d07d SE |
13527 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13528 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
13529 | ;; | |
953ff289 | 13530 | esac |
1cf3d07d | 13531 | fi |
953ff289 | 13532 | fi |
953ff289 | 13533 | |
5213506e RW |
13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
13535 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d | 13536 | test "$ld_shlibs_FC" = no && can_build_shared=no |
953ff289 | 13537 | |
1cf3d07d | 13538 | with_gnu_ld_FC=$with_gnu_ld |
953ff289 | 13539 | |
953ff289 | 13540 | |
953ff289 | 13541 | |
953ff289 | 13542 | |
1cf3d07d SE |
13543 | |
13544 | ||
13545 | # | |
13546 | # Do we need to explicitly link libc? | |
13547 | # | |
13548 | case "x$archive_cmds_need_lc_FC" in | |
13549 | x|xyes) | |
13550 | # Assume -lc should be added | |
13551 | archive_cmds_need_lc_FC=yes | |
13552 | ||
13553 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13554 | case $archive_cmds_FC in | |
13555 | *'~'*) | |
13556 | # FIXME: we may have to deal with multi-command sequences. | |
13557 | ;; | |
13558 | '$CC '*) | |
13559 | # Test whether the compiler implicitly links with -lc since on some | |
13560 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13561 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
13563 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13564 | if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then : | |
13565 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
13566 | else |
13567 | $RM conftest* | |
13568 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 13569 | |
5213506e | 13570 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d | 13571 | (eval $ac_compile) 2>&5 |
953ff289 | 13572 | ac_status=$? |
5213506e RW |
13573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13574 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
13575 | soname=conftest |
13576 | lib=conftest | |
13577 | libobjs=conftest.$ac_objext | |
13578 | deplibs= | |
13579 | wl=$lt_prog_compiler_wl_FC | |
13580 | pic_flag=$lt_prog_compiler_pic_FC | |
13581 | compiler_flags=-v | |
13582 | linker_flags=-v | |
13583 | verstring= | |
13584 | output_objdir=. | |
13585 | libname=conftest | |
13586 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
13587 | allow_undefined_flag_FC= | |
5213506e | 13588 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 13589 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
953ff289 | 13590 | ac_status=$? |
5213506e RW |
13591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13592 | test $ac_status = 0; } | |
baafc534 RW |
13593 | then |
13594 | lt_cv_archive_cmds_need_lc_FC=no | |
13595 | else | |
13596 | lt_cv_archive_cmds_need_lc_FC=yes | |
13597 | fi | |
13598 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
13599 | else | |
13600 | cat conftest.err 1>&5 | |
13601 | fi | |
13602 | $RM conftest* | |
13603 | ||
13604 | fi | |
5213506e RW |
13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
13606 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 13607 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
13608 | ;; |
13609 | esac | |
953ff289 DN |
13610 | fi |
13611 | ;; | |
1cf3d07d SE |
13612 | esac |
13613 | ||
953ff289 DN |
13614 | |
13615 | ||
953ff289 DN |
13616 | |
13617 | ||
953ff289 | 13618 | |
953ff289 | 13619 | |
953ff289 | 13620 | |
953ff289 | 13621 | |
953ff289 DN |
13622 | |
13623 | ||
953ff289 | 13624 | |
953ff289 | 13625 | |
953ff289 DN |
13626 | |
13627 | ||
13628 | ||
13629 | ||
13630 | ||
13631 | ||
13632 | ||
13633 | ||
13634 | ||
c41303c6 RH |
13635 | |
13636 | ||
c41303c6 | 13637 | |
c41303c6 RH |
13638 | |
13639 | ||
13640 | ||
953ff289 | 13641 | |
953ff289 | 13642 | |
953ff289 | 13643 | |
953ff289 | 13644 | |
953ff289 | 13645 | |
953ff289 DN |
13646 | |
13647 | ||
953ff289 | 13648 | |
953ff289 | 13649 | |
953ff289 | 13650 | |
953ff289 | 13651 | |
953ff289 | 13652 | |
953ff289 | 13653 | |
953ff289 | 13654 | |
1cf3d07d SE |
13655 | |
13656 | ||
13657 | ||
13658 | ||
13659 | ||
13660 | ||
13661 | ||
13662 | ||
13663 | ||
13664 | ||
13665 | ||
13666 | ||
13667 | ||
13668 | ||
13669 | ||
13670 | ||
13671 | ||
13672 | ||
13673 | ||
13674 | ||
13675 | ||
13676 | ||
5213506e RW |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
13678 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
6b4a97ed | 13679 | |
1cf3d07d SE |
13680 | library_names_spec= |
13681 | libname_spec='lib$name' | |
13682 | soname_spec= | |
13683 | shrext_cmds=".so" | |
13684 | postinstall_cmds= | |
13685 | postuninstall_cmds= | |
13686 | finish_cmds= | |
13687 | finish_eval= | |
13688 | shlibpath_var= | |
13689 | shlibpath_overrides_runpath=unknown | |
13690 | version_type=none | |
13691 | dynamic_linker="$host_os ld.so" | |
13692 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13693 | need_lib_prefix=unknown | |
13694 | hardcode_into_libs=no | |
13695 | ||
13696 | # when you set need_version to no, make sure it does not cause -set_version | |
13697 | # flags to be left without arguments | |
13698 | need_version=unknown | |
13699 | ||
13700 | case $host_os in | |
13701 | aix3*) | |
13702 | version_type=linux | |
13703 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13704 | shlibpath_var=LIBPATH | |
13705 | ||
13706 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13707 | soname_spec='${libname}${release}${shared_ext}$major' | |
13708 | ;; | |
13709 | ||
d653fdfb | 13710 | aix[4-9]*) |
1cf3d07d SE |
13711 | version_type=linux |
13712 | need_lib_prefix=no | |
13713 | need_version=no | |
13714 | hardcode_into_libs=yes | |
13715 | if test "$host_cpu" = ia64; then | |
13716 | # AIX 5 supports IA64 | |
13717 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13718 | shlibpath_var=LD_LIBRARY_PATH | |
953ff289 | 13719 | else |
1cf3d07d SE |
13720 | # With GCC up to 2.95.x, collect2 would create an import file |
13721 | # for dependence libraries. The import file would start with | |
13722 | # the line `#! .'. This would cause the generated library to | |
13723 | # depend on `.', always an invalid library. This was fixed in | |
13724 | # development snapshots of GCC prior to 3.0. | |
13725 | case $host_os in | |
13726 | aix4 | aix4.[01] | aix4.[01].*) | |
13727 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13728 | echo ' yes ' | |
13729 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13730 | : | |
13731 | else | |
13732 | can_build_shared=no | |
13733 | fi | |
13734 | ;; | |
13735 | esac | |
13736 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13737 | # soname into executable. Probably we can add versioning support to | |
13738 | # collect2, so additional links can be useful in future. | |
13739 | if test "$aix_use_runtimelinking" = yes; then | |
13740 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13741 | # instead of lib<name>.a to let people know that these are not | |
13742 | # typical AIX shared libraries. | |
13743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13744 | else | |
13745 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13746 | # and later when we are not doing run time linking. | |
13747 | library_names_spec='${libname}${release}.a $libname.a' | |
13748 | soname_spec='${libname}${release}${shared_ext}$major' | |
13749 | fi | |
13750 | shlibpath_var=LIBPATH | |
953ff289 | 13751 | fi |
1cf3d07d SE |
13752 | ;; |
13753 | ||
13754 | amigaos*) | |
6b4a97ed PG |
13755 | case $host_cpu in |
13756 | powerpc) | |
13757 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13758 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13760 | ;; | |
13761 | m68k) | |
1cf3d07d SE |
13762 | library_names_spec='$libname.ixlibrary $libname.a' |
13763 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13764 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' | |
6b4a97ed PG |
13765 | ;; |
13766 | esac | |
1cf3d07d | 13767 | ;; |
953ff289 | 13768 | |
1cf3d07d SE |
13769 | beos*) |
13770 | library_names_spec='${libname}${shared_ext}' | |
13771 | dynamic_linker="$host_os ld.so" | |
13772 | shlibpath_var=LIBRARY_PATH | |
13773 | ;; | |
953ff289 | 13774 | |
1cf3d07d SE |
13775 | bsdi[45]*) |
13776 | version_type=linux | |
13777 | need_version=no | |
13778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13779 | soname_spec='${libname}${release}${shared_ext}$major' | |
13780 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13781 | shlibpath_var=LD_LIBRARY_PATH | |
13782 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13783 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13784 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13785 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13786 | # libtool to hard-code these into programs | |
13787 | ;; | |
953ff289 | 13788 | |
6b4a97ed | 13789 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
13790 | version_type=windows |
13791 | shrext_cmds=".dll" | |
13792 | need_version=no | |
13793 | need_lib_prefix=no | |
13794 | ||
6b4a97ed PG |
13795 | case $GCC,$host_os in |
13796 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
13797 | library_names_spec='$libname.dll.a' |
13798 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13799 | postinstall_cmds='base_file=`basename \${file}`~ | |
13800 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13801 | dldir=$destdir/`dirname \$dlpath`~ | |
13802 | test -d \$dldir || mkdir -p \$dldir~ | |
13803 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13804 | chmod a+x \$dldir/$dlname~ | |
13805 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13806 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13807 | fi' | |
13808 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13809 | dlpath=$dir/\$dldll~ | |
13810 | $RM \$dlpath' | |
13811 | shlibpath_overrides_runpath=yes | |
13812 | ||
13813 | case $host_os in | |
13814 | cygwin*) | |
13815 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13816 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13817 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13818 | ;; | |
6b4a97ed | 13819 | mingw* | cegcc*) |
1cf3d07d SE |
13820 | # MinGW DLLs use traditional 'lib' prefix |
13821 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13822 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13823 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13824 | # It is most probably a Windows format PATH printed by | |
13825 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13826 | # path with ; separators, and with drive letters. We can handle the | |
13827 | # drive letters (cygwin fileutils understands them), so leave them, | |
13828 | # especially as we might pass files found there to a mingw objdump, | |
13829 | # which wouldn't understand a cygwinified path. Ahh. | |
13830 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13831 | else | |
13832 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13833 | fi | |
13834 | ;; | |
13835 | pw32*) | |
13836 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13837 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13838 | ;; | |
13839 | esac | |
13840 | ;; | |
953ff289 | 13841 | |
1cf3d07d SE |
13842 | *) |
13843 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13844 | ;; | |
13845 | esac | |
13846 | dynamic_linker='Win32 ld.exe' | |
13847 | # FIXME: first we should search . and the directory the executable is in | |
13848 | shlibpath_var=PATH | |
13849 | ;; | |
953ff289 | 13850 | |
1cf3d07d SE |
13851 | darwin* | rhapsody*) |
13852 | dynamic_linker="$host_os dyld" | |
13853 | version_type=darwin | |
13854 | need_lib_prefix=no | |
13855 | need_version=no | |
13856 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13857 | soname_spec='${libname}${release}${major}$shared_ext' | |
13858 | shlibpath_overrides_runpath=yes | |
13859 | shlibpath_var=DYLD_LIBRARY_PATH | |
13860 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
13861 | ||
13862 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
13863 | ;; | |
13864 | ||
13865 | dgux*) | |
13866 | version_type=linux | |
13867 | need_lib_prefix=no | |
13868 | need_version=no | |
13869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13870 | soname_spec='${libname}${release}${shared_ext}$major' | |
13871 | shlibpath_var=LD_LIBRARY_PATH | |
13872 | ;; | |
13873 | ||
13874 | freebsd1*) | |
13875 | dynamic_linker=no | |
13876 | ;; | |
13877 | ||
13878 | freebsd* | dragonfly*) | |
13879 | # DragonFly does not have aout. When/if they implement a new | |
13880 | # versioning mechanism, adjust this. | |
13881 | if test -x /usr/bin/objformat; then | |
13882 | objformat=`/usr/bin/objformat` | |
953ff289 | 13883 | else |
1cf3d07d SE |
13884 | case $host_os in |
13885 | freebsd[123]*) objformat=aout ;; | |
13886 | *) objformat=elf ;; | |
13887 | esac | |
953ff289 | 13888 | fi |
1cf3d07d SE |
13889 | version_type=freebsd-$objformat |
13890 | case $version_type in | |
13891 | freebsd-elf*) | |
13892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13893 | need_version=no | |
13894 | need_lib_prefix=no | |
13895 | ;; | |
13896 | freebsd-*) | |
13897 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13898 | need_version=yes | |
13899 | ;; | |
13900 | esac | |
13901 | shlibpath_var=LD_LIBRARY_PATH | |
13902 | case $host_os in | |
13903 | freebsd2*) | |
13904 | shlibpath_overrides_runpath=yes | |
13905 | ;; | |
13906 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13907 | shlibpath_overrides_runpath=yes | |
13908 | hardcode_into_libs=yes | |
13909 | ;; | |
13910 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13911 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13912 | shlibpath_overrides_runpath=no | |
13913 | hardcode_into_libs=yes | |
13914 | ;; | |
13915 | *) # from 4.6 on, and DragonFly | |
13916 | shlibpath_overrides_runpath=yes | |
13917 | hardcode_into_libs=yes | |
13918 | ;; | |
13919 | esac | |
13920 | ;; | |
953ff289 | 13921 | |
1cf3d07d SE |
13922 | gnu*) |
13923 | version_type=linux | |
13924 | need_lib_prefix=no | |
13925 | need_version=no | |
13926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13927 | soname_spec='${libname}${release}${shared_ext}$major' | |
13928 | shlibpath_var=LD_LIBRARY_PATH | |
13929 | hardcode_into_libs=yes | |
13930 | ;; | |
953ff289 | 13931 | |
1cf3d07d SE |
13932 | hpux9* | hpux10* | hpux11*) |
13933 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13934 | # link against other versions. | |
13935 | version_type=sunos | |
13936 | need_lib_prefix=no | |
13937 | need_version=no | |
13938 | case $host_cpu in | |
13939 | ia64*) | |
13940 | shrext_cmds='.so' | |
13941 | hardcode_into_libs=yes | |
13942 | dynamic_linker="$host_os dld.so" | |
13943 | shlibpath_var=LD_LIBRARY_PATH | |
13944 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13946 | soname_spec='${libname}${release}${shared_ext}$major' | |
13947 | if test "X$HPUX_IA64_MODE" = X32; then | |
13948 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13949 | else | |
13950 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13951 | fi | |
13952 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13953 | ;; | |
13954 | hppa*64*) | |
13955 | shrext_cmds='.sl' | |
13956 | hardcode_into_libs=yes | |
13957 | dynamic_linker="$host_os dld.sl" | |
13958 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13959 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13961 | soname_spec='${libname}${release}${shared_ext}$major' | |
13962 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13963 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13964 | ;; | |
13965 | *) | |
13966 | shrext_cmds='.sl' | |
13967 | dynamic_linker="$host_os dld.sl" | |
13968 | shlibpath_var=SHLIB_PATH | |
13969 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13971 | soname_spec='${libname}${release}${shared_ext}$major' | |
13972 | ;; | |
13973 | esac | |
13974 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13975 | postinstall_cmds='chmod 555 $lib' | |
13976 | ;; | |
13977 | ||
13978 | interix[3-9]*) | |
13979 | version_type=linux | |
13980 | need_lib_prefix=no | |
13981 | need_version=no | |
13982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13983 | soname_spec='${libname}${release}${shared_ext}$major' | |
13984 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13985 | shlibpath_var=LD_LIBRARY_PATH | |
13986 | shlibpath_overrides_runpath=no | |
13987 | hardcode_into_libs=yes | |
13988 | ;; | |
13989 | ||
13990 | irix5* | irix6* | nonstopux*) | |
13991 | case $host_os in | |
13992 | nonstopux*) version_type=nonstopux ;; | |
13993 | *) | |
13994 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13995 | version_type=linux | |
13996 | else | |
13997 | version_type=irix | |
13998 | fi ;; | |
13999 | esac | |
14000 | need_lib_prefix=no | |
14001 | need_version=no | |
14002 | soname_spec='${libname}${release}${shared_ext}$major' | |
14003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14004 | case $host_os in | |
14005 | irix5* | nonstopux*) | |
14006 | libsuff= shlibsuff= | |
14007 | ;; | |
14008 | *) | |
14009 | case $LD in # libtool.m4 will add one of these switches to LD | |
14010 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14011 | libsuff= shlibsuff= libmagic=32-bit;; | |
14012 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14013 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14014 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14015 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14016 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14017 | esac | |
14018 | ;; | |
14019 | esac | |
14020 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14021 | shlibpath_overrides_runpath=no | |
14022 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14023 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14024 | hardcode_into_libs=yes | |
14025 | ;; | |
14026 | ||
14027 | # No shared lib support for Linux oldld, aout, or coff. | |
14028 | linux*oldld* | linux*aout* | linux*coff*) | |
14029 | dynamic_linker=no | |
14030 | ;; | |
14031 | ||
14032 | # This must be Linux ELF. | |
7a9d3fe8 | 14033 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
14034 | version_type=linux |
14035 | need_lib_prefix=no | |
14036 | need_version=no | |
14037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14038 | soname_spec='${libname}${release}${shared_ext}$major' | |
14039 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14040 | shlibpath_var=LD_LIBRARY_PATH | |
14041 | shlibpath_overrides_runpath=no | |
baafc534 | 14042 | |
1cf3d07d | 14043 | # Some binutils ld are patched to set DT_RUNPATH |
5213506e RW |
14044 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
14045 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
14046 | else |
14047 | lt_cv_shlibpath_overrides_runpath=no | |
14048 | save_LDFLAGS=$LDFLAGS | |
14049 | save_libdir=$libdir | |
14050 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
14051 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
5213506e | 14052 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14053 | program main |
14054 | ||
14055 | end | |
953ff289 | 14056 | _ACEOF |
5213506e RW |
14057 | if ac_fn_fc_try_link "$LINENO"; then : |
14058 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 14059 | lt_cv_shlibpath_overrides_runpath=yes |
953ff289 | 14060 | fi |
953ff289 | 14061 | fi |
5213506e RW |
14062 | rm -f core conftest.err conftest.$ac_objext \ |
14063 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
14064 | LDFLAGS=$save_LDFLAGS |
14065 | libdir=$save_libdir | |
14066 | ||
14067 | fi | |
14068 | ||
14069 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
14070 | |
14071 | # This implies no fast_install, which is unacceptable. | |
14072 | # Some rework will be needed to allow for fast_install | |
14073 | # before this can be enabled. | |
14074 | hardcode_into_libs=yes | |
14075 | ||
14076 | # Append ld.so.conf contents to the search path | |
14077 | if test -f /etc/ld.so.conf; then | |
6b4a97ed | 14078 | 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;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
14079 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
14080 | fi | |
953ff289 | 14081 | |
1cf3d07d SE |
14082 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14083 | # powerpc, because MkLinux only supported shared libraries with the | |
14084 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14085 | # most powerpc-linux boxes support dynamic linking these days and | |
14086 | # people can always --disable-shared, the test was removed, and we | |
14087 | # assume the GNU/Linux dynamic linker is in use. | |
14088 | dynamic_linker='GNU/Linux ld.so' | |
14089 | ;; | |
953ff289 | 14090 | |
1cf3d07d SE |
14091 | netbsd*) |
14092 | version_type=sunos | |
14093 | need_lib_prefix=no | |
14094 | need_version=no | |
14095 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14097 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14098 | dynamic_linker='NetBSD (a.out) ld.so' | |
14099 | else | |
14100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14101 | soname_spec='${libname}${release}${shared_ext}$major' | |
14102 | dynamic_linker='NetBSD ld.elf_so' | |
14103 | fi | |
14104 | shlibpath_var=LD_LIBRARY_PATH | |
14105 | shlibpath_overrides_runpath=yes | |
14106 | hardcode_into_libs=yes | |
14107 | ;; | |
953ff289 | 14108 | |
1cf3d07d SE |
14109 | newsos6) |
14110 | version_type=linux | |
14111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14112 | shlibpath_var=LD_LIBRARY_PATH | |
14113 | shlibpath_overrides_runpath=yes | |
14114 | ;; | |
14115 | ||
14116 | *nto* | *qnx*) | |
14117 | version_type=qnx | |
14118 | need_lib_prefix=no | |
14119 | need_version=no | |
14120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14121 | soname_spec='${libname}${release}${shared_ext}$major' | |
14122 | shlibpath_var=LD_LIBRARY_PATH | |
14123 | shlibpath_overrides_runpath=no | |
14124 | hardcode_into_libs=yes | |
14125 | dynamic_linker='ldqnx.so' | |
14126 | ;; | |
14127 | ||
14128 | openbsd*) | |
14129 | version_type=sunos | |
14130 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14131 | need_lib_prefix=no | |
14132 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14133 | case $host_os in | |
14134 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14135 | *) need_version=no ;; | |
14136 | esac | |
14137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14138 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14139 | shlibpath_var=LD_LIBRARY_PATH | |
14140 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14141 | case $host_os in | |
14142 | openbsd2.[89] | openbsd2.[89].*) | |
14143 | shlibpath_overrides_runpath=no | |
14144 | ;; | |
14145 | *) | |
14146 | shlibpath_overrides_runpath=yes | |
14147 | ;; | |
14148 | esac | |
953ff289 | 14149 | else |
1cf3d07d | 14150 | shlibpath_overrides_runpath=yes |
953ff289 | 14151 | fi |
1cf3d07d | 14152 | ;; |
953ff289 | 14153 | |
1cf3d07d SE |
14154 | os2*) |
14155 | libname_spec='$name' | |
14156 | shrext_cmds=".dll" | |
14157 | need_lib_prefix=no | |
14158 | library_names_spec='$libname${shared_ext} $libname.a' | |
14159 | dynamic_linker='OS/2 ld.exe' | |
14160 | shlibpath_var=LIBPATH | |
14161 | ;; | |
14162 | ||
14163 | osf3* | osf4* | osf5*) | |
14164 | version_type=osf | |
14165 | need_lib_prefix=no | |
14166 | need_version=no | |
14167 | soname_spec='${libname}${release}${shared_ext}$major' | |
14168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14169 | shlibpath_var=LD_LIBRARY_PATH | |
14170 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14171 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14172 | ;; | |
14173 | ||
14174 | rdos*) | |
14175 | dynamic_linker=no | |
14176 | ;; | |
14177 | ||
14178 | solaris*) | |
14179 | version_type=linux | |
14180 | need_lib_prefix=no | |
14181 | need_version=no | |
14182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14183 | soname_spec='${libname}${release}${shared_ext}$major' | |
14184 | shlibpath_var=LD_LIBRARY_PATH | |
14185 | shlibpath_overrides_runpath=yes | |
14186 | hardcode_into_libs=yes | |
14187 | # ldd complains unless libraries are executable | |
14188 | postinstall_cmds='chmod +x $lib' | |
14189 | ;; | |
14190 | ||
14191 | sunos4*) | |
14192 | version_type=sunos | |
14193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14194 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14195 | shlibpath_var=LD_LIBRARY_PATH | |
14196 | shlibpath_overrides_runpath=yes | |
14197 | if test "$with_gnu_ld" = yes; then | |
14198 | need_lib_prefix=no | |
14199 | fi | |
14200 | need_version=yes | |
14201 | ;; | |
14202 | ||
14203 | sysv4 | sysv4.3*) | |
14204 | version_type=linux | |
14205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14206 | soname_spec='${libname}${release}${shared_ext}$major' | |
14207 | shlibpath_var=LD_LIBRARY_PATH | |
14208 | case $host_vendor in | |
14209 | sni) | |
14210 | shlibpath_overrides_runpath=no | |
14211 | need_lib_prefix=no | |
14212 | runpath_var=LD_RUN_PATH | |
14213 | ;; | |
14214 | siemens) | |
14215 | need_lib_prefix=no | |
14216 | ;; | |
14217 | motorola) | |
14218 | need_lib_prefix=no | |
14219 | need_version=no | |
14220 | shlibpath_overrides_runpath=no | |
14221 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14222 | ;; | |
14223 | esac | |
14224 | ;; | |
14225 | ||
14226 | sysv4*MP*) | |
14227 | if test -d /usr/nec ;then | |
14228 | version_type=linux | |
14229 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14230 | soname_spec='$libname${shared_ext}.$major' | |
14231 | shlibpath_var=LD_LIBRARY_PATH | |
14232 | fi | |
14233 | ;; | |
14234 | ||
14235 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14236 | version_type=freebsd-elf | |
14237 | need_lib_prefix=no | |
14238 | need_version=no | |
14239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14240 | soname_spec='${libname}${release}${shared_ext}$major' | |
14241 | shlibpath_var=LD_LIBRARY_PATH | |
14242 | shlibpath_overrides_runpath=yes | |
14243 | hardcode_into_libs=yes | |
14244 | if test "$with_gnu_ld" = yes; then | |
14245 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14246 | else | |
14247 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14248 | case $host_os in | |
14249 | sco3.2v5*) | |
14250 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14251 | ;; | |
14252 | esac | |
14253 | fi | |
14254 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14255 | ;; | |
14256 | ||
14257 | tpf*) | |
14258 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14259 | version_type=linux | |
14260 | need_lib_prefix=no | |
14261 | need_version=no | |
6b4a97ed | 14262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
14263 | shlibpath_var=LD_LIBRARY_PATH |
14264 | shlibpath_overrides_runpath=no | |
14265 | hardcode_into_libs=yes | |
14266 | ;; | |
14267 | ||
14268 | uts4*) | |
14269 | version_type=linux | |
14270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14271 | soname_spec='${libname}${release}${shared_ext}$major' | |
14272 | shlibpath_var=LD_LIBRARY_PATH | |
14273 | ;; | |
14274 | ||
14275 | *) | |
14276 | dynamic_linker=no | |
14277 | ;; | |
14278 | esac | |
5213506e RW |
14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
14280 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
14281 | test "$dynamic_linker" = no && can_build_shared=no |
14282 | ||
5213506e RW |
14283 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
14284 | if test "$GCC" = yes; then | |
14285 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14286 | fi | |
876080ff | 14287 | |
5213506e RW |
14288 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14289 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14290 | fi | |
14291 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14292 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
876080ff JJ |
14293 | fi |
14294 | ||
953ff289 DN |
14295 | |
14296 | ||
953ff289 | 14297 | |
953ff289 DN |
14298 | |
14299 | ||
a68ab351 | 14300 | |
a68ab351 | 14301 | |
a68ab351 | 14302 | |
953ff289 | 14303 | |
953ff289 | 14304 | |
953ff289 | 14305 | |
953ff289 | 14306 | |
953ff289 | 14307 | |
953ff289 | 14308 | |
953ff289 | 14309 | |
953ff289 | 14310 | |
953ff289 DN |
14311 | |
14312 | ||
14313 | ||
14314 | ||
14315 | ||
953ff289 | 14316 | |
953ff289 | 14317 | |
953ff289 | 14318 | |
953ff289 | 14319 | |
953ff289 DN |
14320 | |
14321 | ||
14322 | ||
14323 | ||
953ff289 DN |
14324 | |
14325 | ||
03b8fe49 | 14326 | |
03b8fe49 | 14327 | |
03b8fe49 | 14328 | |
03b8fe49 | 14329 | |
5213506e RW |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
14331 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14332 | hardcode_action_FC= | |
14333 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
14334 | test -n "$runpath_var_FC" || | |
14335 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
03b8fe49 | 14336 | |
5213506e RW |
14337 | # We can hardcode non-existent directories. |
14338 | if test "$hardcode_direct_FC" != no && | |
14339 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14340 | # have to relink, otherwise we might link with an installed library | |
14341 | # when we should be linking with a yet-to-be-installed one | |
14342 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
14343 | test "$hardcode_minus_L_FC" != no; then | |
14344 | # Linking always hardcodes the temporary library directory. | |
14345 | hardcode_action_FC=relink | |
14346 | else | |
14347 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14348 | hardcode_action_FC=immediate | |
14349 | fi | |
03b8fe49 | 14350 | else |
5213506e RW |
14351 | # We cannot hardcode anything, or else we can only hardcode existing |
14352 | # directories. | |
14353 | hardcode_action_FC=unsupported | |
14354 | fi | |
14355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 | |
14356 | $as_echo "$hardcode_action_FC" >&6; } | |
03b8fe49 | 14357 | |
5213506e RW |
14358 | if test "$hardcode_action_FC" = relink || |
14359 | test "$inherit_rpath_FC" = yes; then | |
14360 | # Fast installation is not supported | |
14361 | enable_fast_install=no | |
14362 | elif test "$shlibpath_overrides_runpath" = yes || | |
14363 | test "$enable_shared" = no; then | |
14364 | # Fast installation is not necessary | |
14365 | enable_fast_install=needless | |
03b8fe49 | 14366 | fi |
03b8fe49 | 14367 | |
03b8fe49 | 14368 | |
03b8fe49 | 14369 | |
03b8fe49 | 14370 | |
03b8fe49 | 14371 | |
03b8fe49 | 14372 | |
03b8fe49 | 14373 | |
5213506e | 14374 | fi # test -n "$compiler" |
03b8fe49 | 14375 | |
5213506e RW |
14376 | GCC=$lt_save_GCC |
14377 | CC="$lt_save_CC" | |
14378 | fi # test "$_lt_disable_FC" != yes | |
03b8fe49 | 14379 | |
5213506e RW |
14380 | ac_ext=c |
14381 | ac_cpp='$CPP $CPPFLAGS' | |
14382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14385 | ||
14386 | ||
14387 | FCFLAGS="$FCFLAGS -Wall" | |
14388 | ||
14389 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
14390 | libtool_VERSION=1:0:0 | |
03b8fe49 | 14391 | |
5213506e RW |
14392 | |
14393 | # Check header files. | |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
14395 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
14396 | if test "${ac_cv_header_stdc+set}" = set; then : | |
14397 | $as_echo_n "(cached) " >&6 | |
03b8fe49 | 14398 | else |
5213506e | 14399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
03b8fe49 | 14400 | /* end confdefs.h. */ |
03b8fe49 | 14401 | #include <stdlib.h> |
5213506e RW |
14402 | #include <stdarg.h> |
14403 | #include <string.h> | |
14404 | #include <float.h> | |
14405 | ||
03b8fe49 PB |
14406 | int |
14407 | main () | |
14408 | { | |
14409 | ||
03b8fe49 PB |
14410 | ; |
14411 | return 0; | |
14412 | } | |
14413 | _ACEOF | |
5213506e RW |
14414 | if ac_fn_c_try_compile "$LINENO"; then : |
14415 | ac_cv_header_stdc=yes | |
03b8fe49 | 14416 | else |
5213506e | 14417 | ac_cv_header_stdc=no |
03b8fe49 | 14418 | fi |
5213506e | 14419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
03b8fe49 | 14420 | |
5213506e RW |
14421 | if test $ac_cv_header_stdc = yes; then |
14422 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14424 | /* end confdefs.h. */ |
5213506e | 14425 | #include <string.h> |
03b8fe49 | 14426 | |
03b8fe49 | 14427 | _ACEOF |
5213506e RW |
14428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14429 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14430 | ||
03b8fe49 | 14431 | else |
5213506e RW |
14432 | ac_cv_header_stdc=no |
14433 | fi | |
14434 | rm -f conftest* | |
03b8fe49 | 14435 | |
03b8fe49 | 14436 | fi |
03b8fe49 | 14437 | |
5213506e RW |
14438 | if test $ac_cv_header_stdc = yes; then |
14439 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14441 | /* end confdefs.h. */ |
5213506e | 14442 | #include <stdlib.h> |
03b8fe49 | 14443 | |
03b8fe49 | 14444 | _ACEOF |
5213506e RW |
14445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14446 | $EGREP "free" >/dev/null 2>&1; then : | |
14447 | ||
14448 | else | |
14449 | ac_cv_header_stdc=no | |
14450 | fi | |
14451 | rm -f conftest* | |
14452 | ||
14453 | fi | |
14454 | ||
14455 | if test $ac_cv_header_stdc = yes; then | |
14456 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14457 | if test "$cross_compiling" = yes; then : | |
14458 | : | |
14459 | else | |
14460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14461 | /* end confdefs.h. */ |
5213506e RW |
14462 | #include <ctype.h> |
14463 | #include <stdlib.h> | |
14464 | #if ((' ' & 0x0FF) == 0x020) | |
14465 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14466 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14467 | #else | |
14468 | # define ISLOWER(c) \ | |
14469 | (('a' <= (c) && (c) <= 'i') \ | |
14470 | || ('j' <= (c) && (c) <= 'r') \ | |
14471 | || ('s' <= (c) && (c) <= 'z')) | |
14472 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
14473 | #endif | |
03b8fe49 | 14474 | |
5213506e | 14475 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
03b8fe49 PB |
14476 | int |
14477 | main () | |
14478 | { | |
5213506e RW |
14479 | int i; |
14480 | for (i = 0; i < 256; i++) | |
14481 | if (XOR (islower (i), ISLOWER (i)) | |
14482 | || toupper (i) != TOUPPER (i)) | |
14483 | return 2; | |
03b8fe49 PB |
14484 | return 0; |
14485 | } | |
14486 | _ACEOF | |
5213506e | 14487 | if ac_fn_c_try_run "$LINENO"; then : |
03b8fe49 | 14488 | |
03b8fe49 | 14489 | else |
5213506e RW |
14490 | ac_cv_header_stdc=no |
14491 | fi | |
14492 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14493 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14494 | fi | |
03b8fe49 | 14495 | |
03b8fe49 | 14496 | fi |
03b8fe49 | 14497 | fi |
5213506e RW |
14498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14499 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14500 | if test $ac_cv_header_stdc = yes; then | |
14501 | ||
14502 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
14503 | ||
14504 | fi | |
14505 | ||
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
14507 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
14508 | if test "${ac_cv_header_time+set}" = set; then : | |
14509 | $as_echo_n "(cached) " >&6 | |
14510 | else | |
14511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14512 | /* end confdefs.h. */ |
5213506e RW |
14513 | #include <sys/types.h> |
14514 | #include <sys/time.h> | |
14515 | #include <time.h> | |
03b8fe49 PB |
14516 | |
14517 | int | |
14518 | main () | |
14519 | { | |
5213506e RW |
14520 | if ((struct tm *) 0) |
14521 | return 0; | |
03b8fe49 PB |
14522 | ; |
14523 | return 0; | |
14524 | } | |
14525 | _ACEOF | |
5213506e RW |
14526 | if ac_fn_c_try_compile "$LINENO"; then : |
14527 | ac_cv_header_time=yes | |
03b8fe49 | 14528 | else |
5213506e RW |
14529 | ac_cv_header_time=no |
14530 | fi | |
14531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14532 | fi | |
14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
14534 | $as_echo "$ac_cv_header_time" >&6; } | |
14535 | if test $ac_cv_header_time = yes; then | |
14536 | ||
14537 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
03b8fe49 | 14538 | |
03b8fe49 | 14539 | fi |
5213506e RW |
14540 | |
14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
14542 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
14543 | if test "${gcc_cv_header_string+set}" = set; then : | |
14544 | $as_echo_n "(cached) " >&6 | |
03b8fe49 | 14545 | else |
5213506e | 14546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
03b8fe49 | 14547 | /* end confdefs.h. */ |
5213506e RW |
14548 | #include <string.h> |
14549 | #include <strings.h> | |
03b8fe49 PB |
14550 | int |
14551 | main () | |
14552 | { | |
14553 | ||
03b8fe49 PB |
14554 | ; |
14555 | return 0; | |
14556 | } | |
14557 | _ACEOF | |
5213506e RW |
14558 | if ac_fn_c_try_compile "$LINENO"; then : |
14559 | gcc_cv_header_string=yes | |
03b8fe49 | 14560 | else |
5213506e | 14561 | gcc_cv_header_string=no |
03b8fe49 | 14562 | fi |
5213506e | 14563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
03b8fe49 | 14564 | fi |
5213506e RW |
14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
14566 | $as_echo "$gcc_cv_header_string" >&6; } | |
14567 | if test $gcc_cv_header_string = yes; then | |
14568 | ||
14569 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
14570 | ||
03b8fe49 | 14571 | fi |
5213506e RW |
14572 | |
14573 | for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h | |
14574 | do : | |
14575 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14576 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14577 | eval as_val=\$$as_ac_Header | |
14578 | if test "x$as_val" = x""yes; then : | |
14579 | cat >>confdefs.h <<_ACEOF | |
14580 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
03b8fe49 | 14581 | _ACEOF |
03b8fe49 | 14582 | |
5213506e | 14583 | fi |
03b8fe49 | 14584 | |
5213506e | 14585 | done |
03b8fe49 | 14586 | |
03b8fe49 | 14587 | |
5213506e RW |
14588 | |
14589 | ||
14590 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
14591 | ||
14592 | acx_cv_header_stdint=stddef.h | |
14593 | acx_cv_header_stdint_kind="(already complete)" | |
14594 | for i in stdint.h $inttype_headers; do | |
14595 | unset ac_cv_type_uintptr_t | |
14596 | unset ac_cv_type_uintmax_t | |
14597 | unset ac_cv_type_int_least32_t | |
14598 | unset ac_cv_type_int_fast32_t | |
14599 | unset ac_cv_type_uint64_t | |
14600 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
14601 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
14602 | #include <$i> | |
14603 | " | |
14604 | if test "x$ac_cv_type_uintmax_t" = x""yes; then : | |
14605 | acx_cv_header_stdint=$i | |
14606 | else | |
14607 | continue | |
14608 | fi | |
14609 | ||
14610 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
14611 | #include <$i> | |
14612 | " | |
14613 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
14614 | ||
14615 | else | |
14616 | acx_cv_header_stdint_kind="(mostly complete)" | |
14617 | fi | |
14618 | ||
14619 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> | |
14620 | #include <$i> | |
14621 | " | |
14622 | if test "x$ac_cv_type_int_least32_t" = x""yes; then : | |
14623 | ||
14624 | else | |
14625 | acx_cv_header_stdint_kind="(mostly complete)" | |
14626 | fi | |
14627 | ||
14628 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> | |
14629 | #include <$i> | |
14630 | " | |
14631 | if test "x$ac_cv_type_int_fast32_t" = x""yes; then : | |
14632 | ||
03b8fe49 | 14633 | else |
5213506e RW |
14634 | acx_cv_header_stdint_kind="(mostly complete)" |
14635 | fi | |
03b8fe49 | 14636 | |
5213506e RW |
14637 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
14638 | #include <$i> | |
14639 | " | |
14640 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
14641 | ||
14642 | else | |
14643 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
03b8fe49 | 14644 | fi |
5213506e RW |
14645 | |
14646 | break | |
14647 | done | |
14648 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14649 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
14650 | for i in stdint.h $inttype_headers; do | |
14651 | unset ac_cv_type_uintptr_t | |
14652 | unset ac_cv_type_uint32_t | |
14653 | unset ac_cv_type_uint64_t | |
14654 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
14655 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
14656 | #include <$i> | |
14657 | " | |
14658 | if test "x$ac_cv_type_uint32_t" = x""yes; then : | |
14659 | acx_cv_header_stdint=$i | |
03b8fe49 | 14660 | else |
5213506e RW |
14661 | continue |
14662 | fi | |
03b8fe49 | 14663 | |
5213506e RW |
14664 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
14665 | #include <$i> | |
14666 | " | |
14667 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
03b8fe49 | 14668 | |
5213506e | 14669 | fi |
03b8fe49 | 14670 | |
5213506e RW |
14671 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
14672 | #include <$i> | |
14673 | " | |
14674 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
03b8fe49 | 14675 | |
5213506e | 14676 | fi |
03b8fe49 | 14677 | |
5213506e RW |
14678 | break |
14679 | done | |
14680 | fi | |
14681 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14682 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
14683 | for i in sys/types.h $inttype_headers; do | |
14684 | unset ac_cv_type_u_int32_t | |
14685 | unset ac_cv_type_u_int64_t | |
14686 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
14687 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
14688 | #include <$i> | |
14689 | " | |
14690 | if test "x$ac_cv_type_u_int32_t" = x""yes; then : | |
14691 | acx_cv_header_stdint=$i | |
03b8fe49 | 14692 | else |
5213506e RW |
14693 | continue |
14694 | fi | |
14695 | ||
14696 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> | |
14697 | #include <$i> | |
14698 | " | |
14699 | if test "x$ac_cv_type_u_int64_t" = x""yes; then : | |
03b8fe49 | 14700 | |
03b8fe49 | 14701 | fi |
03b8fe49 | 14702 | |
5213506e RW |
14703 | break |
14704 | done | |
03b8fe49 | 14705 | fi |
5213506e RW |
14706 | if test "$acx_cv_header_stdint" = stddef.h; then |
14707 | acx_cv_header_stdint_kind="(using manual detection)" | |
03b8fe49 | 14708 | fi |
03b8fe49 | 14709 | |
5213506e RW |
14710 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
14711 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
14712 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
14713 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
14714 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
03b8fe49 | 14715 | |
5213506e | 14716 | # ----------------- Summarize what we found so far |
03b8fe49 | 14717 | |
5213506e RW |
14718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
14719 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
14720 | ||
14721 | case `$as_basename -- gstdint.h || | |
14722 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
14723 | Xgstdint.h : 'X\(//\)$' \| \ | |
14724 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
14725 | $as_echo X/gstdint.h | | |
14726 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14727 | s//\1/ | |
14728 | q | |
14729 | } | |
14730 | /^X\/\(\/\/\)$/{ | |
14731 | s//\1/ | |
14732 | q | |
14733 | } | |
14734 | /^X\/\(\/\).*/{ | |
14735 | s//\1/ | |
14736 | q | |
14737 | } | |
14738 | s/.*/./; q'` in | |
14739 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
14740 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
14741 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
14742 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
14743 | *) ;; | |
03b8fe49 | 14744 | esac |
03b8fe49 | 14745 | |
5213506e RW |
14746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
14747 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
03b8fe49 | 14748 | |
5213506e | 14749 | # ----------------- done included file, check C basic types -------- |
03b8fe49 | 14750 | |
5213506e RW |
14751 | # Lacking an uintptr_t? Test size of void * |
14752 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
14753 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
14754 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14755 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14756 | # This bug is HP SR number 8606223364. | |
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
14758 | $as_echo_n "checking size of void *... " >&6; } | |
14759 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
14760 | $as_echo_n "(cached) " >&6 | |
03b8fe49 | 14761 | else |
5213506e | 14762 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
03b8fe49 | 14763 | |
5213506e RW |
14764 | else |
14765 | if test "$ac_cv_type_void_p" = yes; then | |
14766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14768 | { as_fn_set_status 77 | |
14769 | as_fn_error "cannot compute sizeof (void *) | |
14770 | See \`config.log' for more details." "$LINENO" 5; }; } | |
14771 | else | |
14772 | ac_cv_sizeof_void_p=0 | |
14773 | fi | |
03b8fe49 | 14774 | fi |
5213506e | 14775 | |
03b8fe49 | 14776 | fi |
5213506e RW |
14777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
14778 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
03b8fe49 | 14779 | |
03b8fe49 | 14780 | |
5213506e RW |
14781 | |
14782 | cat >>confdefs.h <<_ACEOF | |
14783 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
03b8fe49 | 14784 | _ACEOF |
03b8fe49 | 14785 | |
5213506e RW |
14786 | ;; |
14787 | esac | |
03b8fe49 | 14788 | |
5213506e RW |
14789 | # Lacking an uint64_t? Test size of long |
14790 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
14791 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
14792 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14793 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14794 | # This bug is HP SR number 8606223364. | |
14795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
14796 | $as_echo_n "checking size of long... " >&6; } | |
14797 | if test "${ac_cv_sizeof_long+set}" = set; then : | |
14798 | $as_echo_n "(cached) " >&6 | |
03b8fe49 | 14799 | else |
5213506e | 14800 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
03b8fe49 | 14801 | |
03b8fe49 | 14802 | else |
5213506e RW |
14803 | if test "$ac_cv_type_long" = yes; then |
14804 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14805 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14806 | { as_fn_set_status 77 | |
14807 | as_fn_error "cannot compute sizeof (long) | |
14808 | See \`config.log' for more details." "$LINENO" 5; }; } | |
14809 | else | |
14810 | ac_cv_sizeof_long=0 | |
14811 | fi | |
14812 | fi | |
03b8fe49 | 14813 | |
5213506e RW |
14814 | fi |
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
14816 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
03b8fe49 | 14817 | |
03b8fe49 | 14818 | |
5213506e RW |
14819 | |
14820 | cat >>confdefs.h <<_ACEOF | |
14821 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
03b8fe49 | 14822 | _ACEOF |
03b8fe49 | 14823 | |
5213506e RW |
14824 | ;; |
14825 | esac | |
03b8fe49 | 14826 | |
5213506e RW |
14827 | if test $acx_cv_header_stdint = stddef.h; then |
14828 | # Lacking a good header? Test size of everything and deduce all types. | |
14829 | # The cast to long int works around a bug in the HP C Compiler | |
14830 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14831 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14832 | # This bug is HP SR number 8606223364. | |
14833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
14834 | $as_echo_n "checking size of int... " >&6; } | |
14835 | if test "${ac_cv_sizeof_int+set}" = set; then : | |
14836 | $as_echo_n "(cached) " >&6 | |
03b8fe49 | 14837 | else |
5213506e RW |
14838 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
14839 | ||
14840 | else | |
14841 | if test "$ac_cv_type_int" = yes; then | |
14842 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14843 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14844 | { as_fn_set_status 77 | |
14845 | as_fn_error "cannot compute sizeof (int) | |
14846 | See \`config.log' for more details." "$LINENO" 5; }; } | |
14847 | else | |
14848 | ac_cv_sizeof_int=0 | |
14849 | fi | |
14850 | fi | |
14851 | ||
14852 | fi | |
14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
14854 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
14855 | ||
14856 | ||
14857 | ||
14858 | cat >>confdefs.h <<_ACEOF | |
14859 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14860 | _ACEOF | |
03b8fe49 | 14861 | |
5213506e RW |
14862 | |
14863 | # The cast to long int works around a bug in the HP C Compiler | |
14864 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14865 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14866 | # This bug is HP SR number 8606223364. | |
14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
14868 | $as_echo_n "checking size of short... " >&6; } | |
14869 | if test "${ac_cv_sizeof_short+set}" = set; then : | |
14870 | $as_echo_n "(cached) " >&6 | |
03b8fe49 | 14871 | else |
5213506e | 14872 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
03b8fe49 | 14873 | |
5213506e RW |
14874 | else |
14875 | if test "$ac_cv_type_short" = yes; then | |
14876 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14877 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14878 | { as_fn_set_status 77 | |
14879 | as_fn_error "cannot compute sizeof (short) | |
14880 | See \`config.log' for more details." "$LINENO" 5; }; } | |
14881 | else | |
14882 | ac_cv_sizeof_short=0 | |
14883 | fi | |
03b8fe49 | 14884 | fi |
5213506e | 14885 | |
03b8fe49 | 14886 | fi |
5213506e RW |
14887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
14888 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
03b8fe49 | 14889 | |
03b8fe49 | 14890 | |
5213506e RW |
14891 | |
14892 | cat >>confdefs.h <<_ACEOF | |
14893 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
03b8fe49 | 14894 | _ACEOF |
5213506e RW |
14895 | |
14896 | ||
14897 | # The cast to long int works around a bug in the HP C Compiler | |
14898 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14899 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14900 | # This bug is HP SR number 8606223364. | |
14901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
14902 | $as_echo_n "checking size of char... " >&6; } | |
14903 | if test "${ac_cv_sizeof_char+set}" = set; then : | |
14904 | $as_echo_n "(cached) " >&6 | |
03b8fe49 | 14905 | else |
5213506e | 14906 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : |
03b8fe49 | 14907 | |
03b8fe49 | 14908 | else |
5213506e RW |
14909 | if test "$ac_cv_type_char" = yes; then |
14910 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14911 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14912 | { as_fn_set_status 77 | |
14913 | as_fn_error "cannot compute sizeof (char) | |
14914 | See \`config.log' for more details." "$LINENO" 5; }; } | |
14915 | else | |
14916 | ac_cv_sizeof_char=0 | |
14917 | fi | |
14918 | fi | |
03b8fe49 | 14919 | |
5213506e RW |
14920 | fi |
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
14922 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
03b8fe49 | 14923 | |
03b8fe49 | 14924 | |
5213506e RW |
14925 | |
14926 | cat >>confdefs.h <<_ACEOF | |
14927 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
03b8fe49 | 14928 | _ACEOF |
03b8fe49 | 14929 | |
5213506e RW |
14930 | |
14931 | ||
14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
14933 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
14934 | case "$ac_cv_sizeof_char" in | |
14935 | 1) acx_cv_type_int8_t=char ;; | |
14936 | *) { as_fn_set_status please report a bug | |
14937 | as_fn_error "no 8-bit type" "$LINENO" 5; } | |
14938 | esac | |
14939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
14940 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
14941 | ||
14942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
14943 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
14944 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
14945 | 2:*) acx_cv_type_int16_t=int ;; | |
14946 | *:2) acx_cv_type_int16_t=short ;; | |
14947 | *) { as_fn_set_status please report a bug | |
14948 | as_fn_error "no 16-bit type" "$LINENO" 5; } | |
14949 | esac | |
14950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
14951 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
14952 | ||
14953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
14954 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
14955 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
14956 | 4:*) acx_cv_type_int32_t=int ;; | |
14957 | *:4) acx_cv_type_int32_t=long ;; | |
14958 | *) { as_fn_set_status please report a bug | |
14959 | as_fn_error "no 32-bit type" "$LINENO" 5; } | |
14960 | esac | |
14961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
14962 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
03b8fe49 | 14963 | fi |
5213506e RW |
14964 | |
14965 | # These tests are here to make the output prettier | |
14966 | ||
14967 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
14968 | case "$ac_cv_sizeof_long" in | |
14969 | 8) acx_cv_type_int64_t=long ;; | |
14970 | esac | |
14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
14972 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
14973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
14974 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
03b8fe49 | 14975 | fi |
5213506e RW |
14976 | |
14977 | # Now we can use the above types | |
14978 | ||
14979 | if test "$ac_cv_type_uintptr_t" != yes; then | |
14980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
14981 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
14982 | case $ac_cv_sizeof_void_p in | |
14983 | 2) acx_cv_type_intptr_t=int16_t ;; | |
14984 | 4) acx_cv_type_intptr_t=int32_t ;; | |
14985 | 8) acx_cv_type_intptr_t=int64_t ;; | |
14986 | *) { as_fn_set_status please report a bug | |
14987 | as_fn_error "no equivalent for intptr_t" "$LINENO" 5; } | |
14988 | esac | |
14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
14990 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
03b8fe49 | 14991 | fi |
03b8fe49 | 14992 | |
5213506e RW |
14993 | # ----------------- done all checks, emit header ------------- |
14994 | ac_config_commands="$ac_config_commands gstdint.h" | |
14995 | ||
14996 | ||
14997 | ||
14998 | ||
14999 | # Check to see if -pthread or -lpthread is needed. Prefer the former. | |
15000 | # In case the pthread.h system header is not found, this test will fail. | |
15001 | XPCFLAGS="" | |
15002 | CFLAGS="$CFLAGS -pthread" | |
15003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15004 | /* end confdefs.h. */ | |
15005 | #include <pthread.h> | |
15006 | void *g(void *d) { return NULL; } | |
a68ab351 JJ |
15007 | int |
15008 | main () | |
15009 | { | |
5213506e | 15010 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
15011 | ; |
15012 | return 0; | |
15013 | } | |
15014 | _ACEOF | |
5213506e RW |
15015 | if ac_fn_c_try_link "$LINENO"; then : |
15016 | XPCFLAGS=" -Wc,-pthread" | |
15017 | else | |
15018 | CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" | |
15019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15020 | /* end confdefs.h. */ |
5213506e RW |
15021 | #include <pthread.h> |
15022 | void *g(void *d) { return NULL; } | |
a68ab351 JJ |
15023 | int |
15024 | main () | |
15025 | { | |
5213506e | 15026 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
15027 | ; |
15028 | return 0; | |
15029 | } | |
15030 | _ACEOF | |
5213506e | 15031 | if ac_fn_c_try_link "$LINENO"; then : |
a68ab351 | 15032 | |
a68ab351 | 15033 | else |
5213506e RW |
15034 | as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5 |
15035 | fi | |
15036 | rm -f core conftest.err conftest.$ac_objext \ | |
15037 | conftest$ac_exeext conftest.$ac_ext | |
15038 | fi | |
15039 | rm -f core conftest.err conftest.$ac_objext \ | |
15040 | conftest$ac_exeext conftest.$ac_ext | |
a68ab351 | 15041 | |
5213506e RW |
15042 | # Check for functions needed. |
15043 | for ac_func in getloadavg clock_gettime strtoull | |
15044 | do : | |
15045 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15046 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15047 | eval as_val=\$$as_ac_var | |
15048 | if test "x$as_val" = x""yes; then : | |
15049 | cat >>confdefs.h <<_ACEOF | |
15050 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
a68ab351 | 15051 | _ACEOF |
a68ab351 | 15052 | |
5213506e RW |
15053 | fi |
15054 | done | |
15055 | ||
15056 | ||
15057 | # Check for broken semaphore implementation on darwin. | |
15058 | # sem_init returns: sem_init error: Function not implemented. | |
15059 | case "$host" in | |
15060 | *-darwin*) | |
15061 | ||
15062 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | |
15063 | ||
15064 | ;; | |
15065 | esac | |
15066 | ||
15067 | # Check whether --enable-linux-futex was given. | |
15068 | if test "${enable_linux_futex+set}" = set; then : | |
15069 | enableval=$enable_linux_futex; | |
15070 | case "$enableval" in | |
15071 | yes|no|default) ;; | |
15072 | *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;; | |
15073 | esac | |
15074 | ||
15075 | else | |
15076 | enable_linux_futex=default | |
15077 | fi | |
a68ab351 | 15078 | |
a68ab351 | 15079 | |
5213506e RW |
15080 | case "$target" in |
15081 | *-linux*) | |
15082 | case "$enable_linux_futex" in | |
15083 | default) | |
15084 | # If headers don't have gettid/futex syscalls definition, then | |
15085 | # default to no, otherwise there will be compile time failures. | |
15086 | # Otherwise, default to yes. If we don't detect we are | |
15087 | # compiled/linked against NPTL and not cross-compiling, check | |
15088 | # if programs are run by default against NPTL and if not, issue | |
15089 | # a warning. | |
15090 | enable_linux_futex=no | |
15091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15092 | /* end confdefs.h. */ | |
15093 | #include <sys/syscall.h> | |
15094 | int lk; | |
a68ab351 JJ |
15095 | int |
15096 | main () | |
15097 | { | |
5213506e | 15098 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); |
a68ab351 JJ |
15099 | ; |
15100 | return 0; | |
15101 | } | |
15102 | _ACEOF | |
5213506e RW |
15103 | if ac_fn_c_try_link "$LINENO"; then : |
15104 | save_LIBS="$LIBS" | |
15105 | LIBS="-lpthread $LIBS" | |
15106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15107 | /* end confdefs.h. */ |
5213506e RW |
15108 | #ifndef _GNU_SOURCE |
15109 | #define _GNU_SOURCE 1 | |
15110 | #endif | |
15111 | #include <pthread.h> | |
15112 | pthread_t th; void *status; | |
a68ab351 JJ |
15113 | int |
15114 | main () | |
15115 | { | |
5213506e | 15116 | pthread_tryjoin_np (th, &status); |
a68ab351 JJ |
15117 | ; |
15118 | return 0; | |
15119 | } | |
15120 | _ACEOF | |
5213506e RW |
15121 | if ac_fn_c_try_link "$LINENO"; then : |
15122 | enable_linux_futex=yes | |
a68ab351 | 15123 | else |
5213506e RW |
15124 | if test x$cross_compiling = xno; then |
15125 | if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ | |
15126 | | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else | |
15127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls. | |
15128 | If so, please configure with --disable-linux-futex" >&5 | |
15129 | $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. | |
15130 | If so, please configure with --disable-linux-futex" >&2;} | |
15131 | fi | |
15132 | fi | |
15133 | enable_linux_futex=yes | |
a68ab351 | 15134 | fi |
5213506e RW |
15135 | rm -f core conftest.err conftest.$ac_objext \ |
15136 | conftest$ac_exeext conftest.$ac_ext | |
15137 | LIBS="$save_LIBS" | |
15138 | fi | |
15139 | rm -f core conftest.err conftest.$ac_objext \ | |
15140 | conftest$ac_exeext conftest.$ac_ext | |
15141 | ;; | |
15142 | yes) | |
15143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15144 | /* end confdefs.h. */ |
5213506e RW |
15145 | #include <sys/syscall.h> |
15146 | int lk; | |
a68ab351 JJ |
15147 | int |
15148 | main () | |
15149 | { | |
5213506e | 15150 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); |
a68ab351 JJ |
15151 | ; |
15152 | return 0; | |
15153 | } | |
15154 | _ACEOF | |
5213506e | 15155 | if ac_fn_c_try_link "$LINENO"; then : |
a68ab351 | 15156 | |
5213506e RW |
15157 | else |
15158 | as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5 | |
a68ab351 | 15159 | fi |
5213506e RW |
15160 | rm -f core conftest.err conftest.$ac_objext \ |
15161 | conftest$ac_exeext conftest.$ac_ext | |
15162 | ;; | |
15163 | esac | |
15164 | ;; | |
15165 | *) | |
15166 | enable_linux_futex=no | |
15167 | ;; | |
15168 | esac | |
15169 | if test x$enable_linux_futex = xyes; then | |
15170 | : | |
a68ab351 | 15171 | fi |
a68ab351 | 15172 | |
5213506e RW |
15173 | |
15174 | # Check for pthread_{,attr_}[sg]etaffinity_np. | |
15175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15176 | /* end confdefs.h. */ | |
15177 | #define _GNU_SOURCE | |
15178 | #include <pthread.h> | |
a68ab351 JJ |
15179 | int |
15180 | main () | |
15181 | { | |
5213506e RW |
15182 | cpu_set_t cpuset; |
15183 | pthread_attr_t attr; | |
15184 | pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
15185 | if (CPU_ISSET (0, &cpuset)) | |
15186 | CPU_SET (1, &cpuset); | |
15187 | else | |
15188 | CPU_ZERO (&cpuset); | |
15189 | pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
15190 | pthread_attr_init (&attr); | |
15191 | pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
15192 | pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
a68ab351 JJ |
15193 | ; |
15194 | return 0; | |
15195 | } | |
15196 | _ACEOF | |
5213506e RW |
15197 | if ac_fn_c_try_link "$LINENO"; then : |
15198 | ||
15199 | $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h | |
15200 | ||
15201 | fi | |
15202 | rm -f core conftest.err conftest.$ac_objext \ | |
15203 | conftest$ac_exeext conftest.$ac_ext | |
15204 | ||
15205 | # At least for glibc, clock_gettime is in librt. But don't pull that | |
15206 | # in if it still doesn't give us the function we want. | |
15207 | if test $ac_cv_func_clock_gettime = no; then | |
15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
15209 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
15210 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
15211 | $as_echo_n "(cached) " >&6 | |
15212 | else | |
15213 | ac_check_lib_save_LIBS=$LIBS | |
15214 | LIBS="-lrt $LIBS" | |
15215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
15216 | /* end confdefs.h. */ |
15217 | ||
5213506e RW |
15218 | /* Override any GCC internal prototype to avoid an error. |
15219 | Use char because int might match the return type of a GCC | |
15220 | builtin and then its argument prototype would still apply. */ | |
15221 | #ifdef __cplusplus | |
15222 | extern "C" | |
15223 | #endif | |
15224 | char clock_gettime (); | |
a68ab351 JJ |
15225 | int |
15226 | main () | |
15227 | { | |
5213506e | 15228 | return clock_gettime (); |
a68ab351 JJ |
15229 | ; |
15230 | return 0; | |
15231 | } | |
15232 | _ACEOF | |
5213506e RW |
15233 | if ac_fn_c_try_link "$LINENO"; then : |
15234 | ac_cv_lib_rt_clock_gettime=yes | |
a68ab351 | 15235 | else |
5213506e RW |
15236 | ac_cv_lib_rt_clock_gettime=no |
15237 | fi | |
15238 | rm -f core conftest.err conftest.$ac_objext \ | |
15239 | conftest$ac_exeext conftest.$ac_ext | |
15240 | LIBS=$ac_check_lib_save_LIBS | |
15241 | fi | |
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
15243 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15244 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
15245 | LIBS="-lrt $LIBS" | |
15246 | ||
15247 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
a68ab351 | 15248 | |
a68ab351 | 15249 | fi |
5213506e RW |
15250 | |
15251 | fi | |
15252 | ||
15253 | # See if we support thread-local storage. | |
15254 | ||
15255 | ||
15256 | # Check whether --enable-tls was given. | |
15257 | if test "${enable_tls+set}" = set; then : | |
15258 | enableval=$enable_tls; | |
15259 | case "$enableval" in | |
15260 | yes|no) ;; | |
15261 | *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; | |
15262 | esac | |
15263 | ||
15264 | else | |
15265 | enable_tls=yes | |
15266 | fi | |
15267 | ||
15268 | ||
15269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 | |
15270 | $as_echo_n "checking whether the target supports thread-local storage... " >&6; } | |
15271 | if test "${gcc_cv_have_tls+set}" = set; then : | |
15272 | $as_echo_n "(cached) " >&6 | |
a68ab351 | 15273 | else |
a68ab351 | 15274 | |
5213506e RW |
15275 | if test "$cross_compiling" = yes; then : |
15276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15277 | /* end confdefs.h. */ | |
15278 | __thread int a; int b; int main() { return a = b; } | |
15279 | _ACEOF | |
15280 | if ac_fn_c_try_link "$LINENO"; then : | |
15281 | chktls_save_LDFLAGS="$LDFLAGS" | |
15282 | case $host in | |
15283 | *-*-linux*) | |
15284 | LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" | |
15285 | ;; | |
15286 | esac | |
15287 | chktls_save_CFLAGS="$CFLAGS" | |
15288 | CFLAGS="-fPIC $CFLAGS" | |
15289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15290 | /* end confdefs.h. */ | |
15291 | int f() { return 0; } | |
a68ab351 | 15292 | _ACEOF |
5213506e RW |
15293 | if ac_fn_c_try_link "$LINENO"; then : |
15294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15295 | /* end confdefs.h. */ |
5213506e RW |
15296 | __thread int a; int b; int f() { return a = b; } |
15297 | _ACEOF | |
15298 | if ac_fn_c_try_link "$LINENO"; then : | |
15299 | gcc_cv_have_tls=yes | |
15300 | else | |
15301 | gcc_cv_have_tls=no | |
15302 | fi | |
15303 | rm -f core conftest.err conftest.$ac_objext \ | |
15304 | conftest$ac_exeext conftest.$ac_ext | |
15305 | else | |
15306 | gcc_cv_have_tls=yes | |
15307 | fi | |
15308 | rm -f core conftest.err conftest.$ac_objext \ | |
15309 | conftest$ac_exeext conftest.$ac_ext | |
15310 | CFLAGS="$chktls_save_CFLAGS" | |
15311 | LDFLAGS="$chktls_save_LDFLAGS" | |
15312 | else | |
15313 | gcc_cv_have_tls=no | |
15314 | fi | |
15315 | rm -f core conftest.err conftest.$ac_objext \ | |
15316 | conftest$ac_exeext conftest.$ac_ext | |
a68ab351 | 15317 | |
a68ab351 | 15318 | |
5213506e RW |
15319 | else |
15320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15321 | /* end confdefs.h. */ | |
15322 | __thread int a; int b; int main() { return a = b; } | |
a68ab351 | 15323 | _ACEOF |
5213506e RW |
15324 | if ac_fn_c_try_run "$LINENO"; then : |
15325 | chktls_save_LDFLAGS="$LDFLAGS" | |
15326 | LDFLAGS="-static $LDFLAGS" | |
15327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15328 | /* end confdefs.h. */ | |
15329 | int main() { return 0; } | |
a68ab351 | 15330 | _ACEOF |
5213506e RW |
15331 | if ac_fn_c_try_link "$LINENO"; then : |
15332 | if test "$cross_compiling" = yes; then : | |
15333 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15335 | as_fn_error "cannot run test program while cross compiling | |
15336 | See \`config.log' for more details." "$LINENO" 5; } | |
15337 | else | |
15338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15339 | /* end confdefs.h. */ |
5213506e RW |
15340 | __thread int a; int b; int main() { return a = b; } |
15341 | _ACEOF | |
15342 | if ac_fn_c_try_run "$LINENO"; then : | |
15343 | gcc_cv_have_tls=yes | |
15344 | else | |
15345 | gcc_cv_have_tls=no | |
15346 | fi | |
15347 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15348 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15349 | fi | |
a68ab351 | 15350 | |
5213506e RW |
15351 | else |
15352 | gcc_cv_have_tls=yes | |
15353 | fi | |
15354 | rm -f core conftest.err conftest.$ac_objext \ | |
15355 | conftest$ac_exeext conftest.$ac_ext | |
15356 | LDFLAGS="$chktls_save_LDFLAGS" | |
15357 | if test $gcc_cv_have_tls = yes; then | |
15358 | chktls_save_CFLAGS="$CFLAGS" | |
15359 | thread_CFLAGS=failed | |
15360 | for flag in '' '-pthread' '-lpthread'; do | |
15361 | CFLAGS="$flag $chktls_save_CFLAGS" | |
15362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15363 | /* end confdefs.h. */ | |
15364 | #include <pthread.h> | |
15365 | void *g(void *d) { return NULL; } | |
a68ab351 JJ |
15366 | int |
15367 | main () | |
15368 | { | |
5213506e | 15369 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
15370 | ; |
15371 | return 0; | |
15372 | } | |
15373 | _ACEOF | |
5213506e RW |
15374 | if ac_fn_c_try_link "$LINENO"; then : |
15375 | thread_CFLAGS="$flag" | |
a68ab351 | 15376 | fi |
5213506e RW |
15377 | rm -f core conftest.err conftest.$ac_objext \ |
15378 | conftest$ac_exeext conftest.$ac_ext | |
15379 | if test "X$thread_CFLAGS" != Xfailed; then | |
15380 | break | |
15381 | fi | |
15382 | done | |
15383 | CFLAGS="$chktls_save_CFLAGS" | |
15384 | if test "X$thread_CFLAGS" != Xfailed; then | |
15385 | CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" | |
15386 | if test "$cross_compiling" = yes; then : | |
15387 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15388 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15389 | as_fn_error "cannot run test program while cross compiling | |
15390 | See \`config.log' for more details." "$LINENO" 5; } | |
a68ab351 | 15391 | else |
5213506e | 15392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a68ab351 | 15393 | /* end confdefs.h. */ |
5213506e RW |
15394 | #include <pthread.h> |
15395 | __thread int a; | |
15396 | static int *a_in_other_thread; | |
15397 | static void * | |
15398 | thread_func (void *arg) | |
15399 | { | |
15400 | a_in_other_thread = &a; | |
15401 | return (void *)0; | |
15402 | } | |
a68ab351 JJ |
15403 | int |
15404 | main () | |
15405 | { | |
5213506e RW |
15406 | pthread_t thread; |
15407 | void *thread_retval; | |
15408 | int *a_in_main_thread; | |
15409 | if (pthread_create (&thread, (pthread_attr_t *)0, | |
15410 | thread_func, (void *)0)) | |
15411 | return 0; | |
15412 | a_in_main_thread = &a; | |
15413 | if (pthread_join (thread, &thread_retval)) | |
15414 | return 0; | |
15415 | return (a_in_other_thread == a_in_main_thread); | |
a68ab351 JJ |
15416 | ; |
15417 | return 0; | |
15418 | } | |
15419 | _ACEOF | |
5213506e RW |
15420 | if ac_fn_c_try_run "$LINENO"; then : |
15421 | gcc_cv_have_tls=yes | |
a68ab351 | 15422 | else |
5213506e RW |
15423 | gcc_cv_have_tls=no |
15424 | fi | |
15425 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15426 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15427 | fi | |
15428 | ||
15429 | CFLAGS="$chktls_save_CFLAGS" | |
15430 | fi | |
15431 | fi | |
15432 | else | |
15433 | gcc_cv_have_tls=no | |
15434 | fi | |
15435 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15436 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15437 | fi | |
a68ab351 | 15438 | |
a68ab351 | 15439 | fi |
5213506e RW |
15440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 |
15441 | $as_echo "$gcc_cv_have_tls" >&6; } | |
15442 | if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then | |
15443 | ||
15444 | $as_echo "#define HAVE_TLS 1" >>confdefs.h | |
15445 | ||
15446 | fi | |
15447 | ||
15448 | # See what sort of export controls are availible. | |
15449 | ||
15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 | |
15451 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
15452 | if test "${libgomp_cv_have_attribute_visibility+set}" = set; then : | |
15453 | $as_echo_n "(cached) " >&6 | |
a68ab351 | 15454 | else |
a68ab351 | 15455 | |
5213506e RW |
15456 | save_CFLAGS="$CFLAGS" |
15457 | CFLAGS="$CFLAGS -Werror" | |
15458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15459 | /* end confdefs.h. */ | |
15460 | void __attribute__((visibility("hidden"))) foo(void) { } | |
a68ab351 JJ |
15461 | int |
15462 | main () | |
15463 | { | |
15464 | ||
a68ab351 JJ |
15465 | ; |
15466 | return 0; | |
15467 | } | |
15468 | _ACEOF | |
5213506e RW |
15469 | if ac_fn_c_try_compile "$LINENO"; then : |
15470 | libgomp_cv_have_attribute_visibility=yes | |
a68ab351 | 15471 | else |
5213506e | 15472 | libgomp_cv_have_attribute_visibility=no |
a68ab351 | 15473 | fi |
5213506e RW |
15474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15475 | CFLAGS="$save_CFLAGS" | |
a68ab351 | 15476 | fi |
5213506e RW |
15477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5 |
15478 | $as_echo "$libgomp_cv_have_attribute_visibility" >&6; } | |
15479 | if test $libgomp_cv_have_attribute_visibility = yes; then | |
15480 | ||
15481 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h | |
15482 | ||
15483 | fi | |
15484 | ||
15485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 | |
15486 | $as_echo_n "checking whether the target supports dllexport... " >&6; } | |
15487 | if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then : | |
15488 | $as_echo_n "(cached) " >&6 | |
15489 | else | |
a68ab351 | 15490 | |
5213506e RW |
15491 | save_CFLAGS="$CFLAGS" |
15492 | CFLAGS="$CFLAGS -Werror" | |
15493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15494 | /* end confdefs.h. */ | |
15495 | void __attribute__((dllexport)) foo(void) { } | |
a68ab351 JJ |
15496 | int |
15497 | main () | |
15498 | { | |
a68ab351 JJ |
15499 | |
15500 | ; | |
15501 | return 0; | |
15502 | } | |
15503 | _ACEOF | |
5213506e RW |
15504 | if ac_fn_c_try_compile "$LINENO"; then : |
15505 | libgomp_cv_have_attribute_dllexport=yes | |
15506 | else | |
15507 | libgomp_cv_have_attribute_dllexport=no | |
15508 | fi | |
15509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15510 | CFLAGS="$save_CFLAGS" | |
15511 | fi | |
15512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5 | |
15513 | $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; } | |
15514 | if test $libgomp_cv_have_attribute_dllexport = yes; then | |
15515 | ||
15516 | $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h | |
15517 | ||
15518 | fi | |
15519 | ||
15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 | |
15521 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
15522 | if test "${libgomp_cv_have_attribute_alias+set}" = set; then : | |
15523 | $as_echo_n "(cached) " >&6 | |
15524 | else | |
15525 | ||
15526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
15527 | /* end confdefs.h. */ |
15528 | ||
5213506e RW |
15529 | void foo(void) { } |
15530 | extern void bar(void) __attribute__((alias("foo"))); | |
a68ab351 JJ |
15531 | int |
15532 | main () | |
15533 | { | |
5213506e | 15534 | bar(); |
a68ab351 JJ |
15535 | ; |
15536 | return 0; | |
15537 | } | |
15538 | _ACEOF | |
5213506e RW |
15539 | if ac_fn_c_try_link "$LINENO"; then : |
15540 | libgomp_cv_have_attribute_alias=yes | |
a68ab351 | 15541 | else |
5213506e RW |
15542 | libgomp_cv_have_attribute_alias=no |
15543 | fi | |
15544 | rm -f core conftest.err conftest.$ac_objext \ | |
15545 | conftest$ac_exeext conftest.$ac_ext | |
15546 | fi | |
15547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5 | |
15548 | $as_echo "$libgomp_cv_have_attribute_alias" >&6; } | |
15549 | if test $libgomp_cv_have_attribute_alias = yes; then | |
15550 | ||
15551 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h | |
15552 | ||
15553 | fi | |
15554 | ||
15555 | ||
15556 | # Check whether --with-gnu-ld was given. | |
15557 | if test "${with_gnu_ld+set}" = set; then : | |
15558 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
15559 | else | |
15560 | with_gnu_ld=no | |
15561 | fi | |
a68ab351 | 15562 | |
5213506e RW |
15563 | ac_prog=ld |
15564 | if test "$GCC" = yes; then | |
15565 | # Check if gcc -print-prog-name=ld gives a path. | |
15566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
15567 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
15568 | case $host in | |
15569 | *-*-mingw*) | |
15570 | # gcc leaves a trailing carriage return which upsets mingw | |
15571 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
15572 | *) | |
15573 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
15574 | esac | |
15575 | case $ac_prog in | |
15576 | # Accept absolute paths. | |
15577 | [\\/]* | ?:[\\/]*) | |
15578 | re_direlt='/[^/][^/]*/\.\./' | |
15579 | # Canonicalize the pathname of ld | |
15580 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
15581 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
15582 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
15583 | done | |
15584 | test -z "$LD" && LD="$ac_prog" | |
15585 | ;; | |
15586 | "") | |
15587 | # If it fails, then pretend we aren't using GCC. | |
15588 | ac_prog=ld | |
15589 | ;; | |
15590 | *) | |
15591 | # If it is relative, then search for the first ld in PATH. | |
15592 | with_gnu_ld=unknown | |
15593 | ;; | |
15594 | esac | |
15595 | elif test "$with_gnu_ld" = yes; then | |
15596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
15597 | $as_echo_n "checking for GNU ld... " >&6; } | |
15598 | else | |
15599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
15600 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a68ab351 | 15601 | fi |
5213506e RW |
15602 | if test "${lt_cv_path_LD+set}" = set; then : |
15603 | $as_echo_n "(cached) " >&6 | |
15604 | else | |
15605 | if test -z "$LD"; then | |
15606 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
15607 | for ac_dir in $PATH; do | |
15608 | IFS="$lt_save_ifs" | |
15609 | test -z "$ac_dir" && ac_dir=. | |
15610 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
15611 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
15612 | # Check to see if the program is GNU ld. I'd rather use --version, | |
15613 | # but apparently some variants of GNU ld only accept -v. | |
15614 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
15615 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
15616 | *GNU* | *'with BFD'*) | |
15617 | test "$with_gnu_ld" != no && break | |
15618 | ;; | |
15619 | *) | |
15620 | test "$with_gnu_ld" != yes && break | |
15621 | ;; | |
15622 | esac | |
15623 | fi | |
a68ab351 | 15624 | done |
5213506e | 15625 | IFS="$lt_save_ifs" |
a68ab351 | 15626 | else |
5213506e RW |
15627 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
15628 | fi | |
15629 | fi | |
15630 | ||
15631 | LD="$lt_cv_path_LD" | |
15632 | if test -n "$LD"; then | |
15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
15634 | $as_echo "$LD" >&6; } | |
15635 | else | |
15636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15637 | $as_echo "no" >&6; } | |
15638 | fi | |
15639 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
15640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
15641 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
15642 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
15643 | $as_echo_n "(cached) " >&6 | |
15644 | else | |
15645 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
15646 | case `$LD -v 2>&1 </dev/null` in | |
15647 | *GNU* | *'with BFD'*) | |
15648 | lt_cv_prog_gnu_ld=yes | |
15649 | ;; | |
15650 | *) | |
15651 | lt_cv_prog_gnu_ld=no | |
15652 | ;; | |
15653 | esac | |
15654 | fi | |
15655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
15656 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
15657 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
15658 | ||
15659 | ||
15660 | ||
15661 | ||
15662 | ||
15663 | ||
15664 | ||
15665 | # If we're not using GNU ld, then there's no point in even trying these | |
15666 | # tests. Check for that first. We should have already tested for gld | |
15667 | # by now (in libtool), but require it now just to be safe... | |
15668 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
15669 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
15670 | ||
15671 | ||
15672 | ||
15673 | # The name set by libtool depends on the version of libtool. Shame on us | |
15674 | # for depending on an impl detail, but c'est la vie. Older versions used | |
15675 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
15676 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
15677 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
15678 | # set (hence we're using an older libtool), then set it. | |
15679 | if test x${with_gnu_ld+set} != xset; then | |
15680 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
15681 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
15682 | with_gnu_ld=no | |
15683 | else | |
15684 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
15685 | fi | |
15686 | fi | |
15687 | ||
15688 | # Start by getting the version number. I think the libtool test already | |
15689 | # does some of this, but throws away the result. | |
15690 | libgomp_ld_is_gold=no | |
15691 | if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then | |
15692 | libgomp_ld_is_gold=yes | |
15693 | fi | |
15694 | ||
15695 | ldver=`$LD --version 2>/dev/null | head -1 | \ | |
15696 | sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` | |
15697 | ||
15698 | libgomp_gnu_ld_version=`echo $ldver | \ | |
15699 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
15700 | ||
15701 | # Set --gc-sections. | |
15702 | if test "$with_gnu_ld" = "notbroken"; then | |
15703 | # GNU ld it is! Joy and bunny rabbits! | |
15704 | ||
15705 | # All these tests are for C++; save the language and the compiler flags. | |
15706 | # Need to do this so that g++ won't try to link in libstdc++ | |
15707 | ac_test_CFLAGS="${CFLAGS+set}" | |
15708 | ac_save_CFLAGS="$CFLAGS" | |
15709 | CFLAGS='-x c++ -Wl,--gc-sections' | |
15710 | ||
15711 | # Check for -Wl,--gc-sections | |
15712 | # XXX This test is broken at the moment, as symbols required for linking | |
15713 | # are now in libsupc++ (not built yet). In addition, this test has | |
15714 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
15715 | # really work at the moment (keeps on discarding used sections, first | |
15716 | # .eh_frame and now some of the glibc sections for iconv). | |
15717 | # Bzzzzt. Thanks for playing, maybe next time. | |
15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 | |
15719 | $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } | |
15720 | if test "$cross_compiling" = yes; then : | |
15721 | ac_sectionLDflags=yes | |
15722 | else | |
15723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15724 | /* end confdefs.h. */ | |
15725 | ||
15726 | int main(void) | |
15727 | { | |
15728 | try { throw 1; } | |
15729 | catch (...) { }; | |
15730 | return 0; | |
15731 | } | |
a68ab351 | 15732 | |
a68ab351 | 15733 | _ACEOF |
5213506e RW |
15734 | if ac_fn_c_try_run "$LINENO"; then : |
15735 | ac_sectionLDflags=yes | |
15736 | else | |
15737 | ac_sectionLDflags=no | |
15738 | fi | |
15739 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15740 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15741 | fi | |
15742 | ||
15743 | if test "$ac_test_CFLAGS" = set; then | |
15744 | CFLAGS="$ac_save_CFLAGS" | |
15745 | else | |
15746 | # this is the suspicious part | |
15747 | CFLAGS='' | |
15748 | fi | |
15749 | if test "$ac_sectionLDflags" = "yes"; then | |
15750 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
15751 | fi | |
15752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 | |
15753 | $as_echo "$ac_sectionLDflags" >&6; } | |
15754 | fi | |
15755 | ||
15756 | # Set linker optimization flags. | |
15757 | if test x"$with_gnu_ld" = x"yes"; then | |
15758 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
15759 | fi | |
15760 | ||
15761 | ||
15762 | ||
15763 | ||
15764 | ||
15765 | ||
15766 | # Check whether --enable-symvers was given. | |
15767 | if test "${enable_symvers+set}" = set; then : | |
15768 | enableval=$enable_symvers; | |
15769 | case "$enableval" in | |
15770 | yes|no|gnu) ;; | |
15771 | *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; | |
15772 | esac | |
15773 | ||
15774 | else | |
15775 | enable_symvers=yes | |
15776 | fi | |
15777 | ||
15778 | ||
15779 | ||
15780 | # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we | |
15781 | # don't know enough about $LD to do tricks... | |
15782 | ||
15783 | # FIXME The following test is too strict, in theory. | |
15784 | if test $enable_shared = no || | |
15785 | test "x$LD" = x || | |
15786 | test x$libgomp_gnu_ld_version = x; then | |
15787 | enable_symvers=no | |
15788 | fi | |
15789 | ||
15790 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
15791 | if test $enable_symvers != no; then | |
15792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 | |
15793 | $as_echo_n "checking for shared libgcc... " >&6; } | |
15794 | ac_save_CFLAGS="$CFLAGS" | |
15795 | CFLAGS=' -lgcc_s' | |
15796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
15797 | /* end confdefs.h. */ |
15798 | ||
15799 | int | |
15800 | main () | |
15801 | { | |
5213506e | 15802 | return 0; |
a68ab351 JJ |
15803 | ; |
15804 | return 0; | |
15805 | } | |
15806 | _ACEOF | |
5213506e RW |
15807 | if ac_fn_c_try_link "$LINENO"; then : |
15808 | libgomp_shared_libgcc=yes | |
15809 | else | |
15810 | libgomp_shared_libgcc=no | |
15811 | fi | |
15812 | rm -f core conftest.err conftest.$ac_objext \ | |
15813 | conftest$ac_exeext conftest.$ac_ext | |
15814 | CFLAGS="$ac_save_CFLAGS" | |
15815 | if test $libgomp_shared_libgcc = no; then | |
15816 | cat > conftest.c <<EOF | |
15817 | int main (void) { return 0; } | |
15818 | EOF | |
15819 | libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
15820 | -shared -shared-libgcc -o conftest.so \ | |
15821 | conftest.c -v 2>&1 >/dev/null \ | |
15822 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
15823 | rm -f conftest.c conftest.so | |
15824 | if test x${libgomp_libgcc_s_suffix+set} = xset; then | |
15825 | CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" | |
15826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
15827 | /* end confdefs.h. */ |
15828 | ||
15829 | int | |
15830 | main () | |
15831 | { | |
5213506e | 15832 | return 0; |
a68ab351 JJ |
15833 | ; |
15834 | return 0; | |
15835 | } | |
15836 | _ACEOF | |
5213506e RW |
15837 | if ac_fn_c_try_link "$LINENO"; then : |
15838 | libgomp_shared_libgcc=yes | |
15839 | fi | |
15840 | rm -f core conftest.err conftest.$ac_objext \ | |
15841 | conftest$ac_exeext conftest.$ac_ext | |
15842 | CFLAGS="$ac_save_CFLAGS" | |
15843 | fi | |
15844 | fi | |
15845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5 | |
15846 | $as_echo "$libgomp_shared_libgcc" >&6; } | |
15847 | fi | |
15848 | ||
15849 | # For GNU ld, we need at least this version. The format is described in | |
15850 | # LIBGOMP_CHECK_LINKER_FEATURES above. | |
15851 | libgomp_min_gnu_ld_version=21400 | |
15852 | # XXXXXXXXXXX libgomp_gnu_ld_version=21390 | |
a68ab351 | 15853 | |
5213506e RW |
15854 | # Check to see if unspecified "yes" value can win, given results above. |
15855 | # Change "yes" into either "no" or a style name. | |
15856 | if test $enable_symvers = yes; then | |
15857 | if test $with_gnu_ld = yes && | |
15858 | test $libgomp_shared_libgcc = yes; | |
15859 | then | |
15860 | if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then | |
15861 | enable_symvers=gnu | |
15862 | elif test $libgomp_ld_is_gold = yes ; then | |
15863 | enable_symvers=gnu | |
15864 | else | |
15865 | # The right tools, the right setup, but too old. Fallbacks? | |
15866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 | |
15867 | $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} | |
15868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
15869 | $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
15870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 | |
15871 | $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 | |
15873 | $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
15874 | if test $libgomp_gnu_ld_version -ge 21200 ; then | |
15875 | # Globbing fix is present, proper block support is not. | |
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
15877 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
15878 | enable_symvers=no | |
15879 | else | |
15880 | # 2.11 or older. | |
15881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
15882 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
15883 | enable_symvers=no | |
15884 | fi | |
15885 | fi | |
15886 | else | |
15887 | # just fail for now | |
15888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
15889 | $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
15890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 | |
15891 | $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
15892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
15893 | $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
15895 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
15896 | enable_symvers=no | |
15897 | fi | |
a68ab351 | 15898 | fi |
5213506e RW |
15899 | |
15900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5 | |
15901 | $as_echo_n "checking whether the target supports .symver directive... " >&6; } | |
15902 | if test "${libgomp_cv_have_as_symver_directive+set}" = set; then : | |
15903 | $as_echo_n "(cached) " >&6 | |
a68ab351 | 15904 | else |
a68ab351 | 15905 | |
5213506e | 15906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a68ab351 | 15907 | /* end confdefs.h. */ |
5213506e | 15908 | void foo (void); __asm (".symver foo, bar@SYMVER"); |
a68ab351 JJ |
15909 | int |
15910 | main () | |
15911 | { | |
a68ab351 JJ |
15912 | |
15913 | ; | |
15914 | return 0; | |
15915 | } | |
15916 | _ACEOF | |
5213506e RW |
15917 | if ac_fn_c_try_compile "$LINENO"; then : |
15918 | libgomp_cv_have_as_symver_directive=yes | |
a68ab351 | 15919 | else |
5213506e RW |
15920 | libgomp_cv_have_as_symver_directive=no |
15921 | fi | |
15922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15923 | fi | |
15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5 | |
15925 | $as_echo "$libgomp_cv_have_as_symver_directive" >&6; } | |
15926 | if test $libgomp_cv_have_as_symver_directive = yes; then | |
15927 | ||
15928 | $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h | |
a68ab351 | 15929 | |
a68ab351 | 15930 | fi |
5213506e RW |
15931 | |
15932 | if test $enable_symvers != no; then | |
15933 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= | |
15934 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' | |
a68ab351 | 15935 | else |
5213506e RW |
15936 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' |
15937 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= | |
15938 | fi | |
a68ab351 | 15939 | |
5213506e RW |
15940 | { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 |
15941 | $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
a68ab351 | 15942 | |
a68ab351 | 15943 | |
5213506e RW |
15944 | if test $enable_symvers = gnu; then |
15945 | ||
15946 | $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h | |
a68ab351 JJ |
15947 | |
15948 | fi | |
5213506e RW |
15949 | |
15950 | # Get target configury. | |
15951 | . ${srcdir}/configure.tgt | |
15952 | CFLAGS="$save_CFLAGS $XCFLAGS" | |
15953 | ||
15954 | # Check for __sync_val_compare_and_swap, but only after the target has | |
15955 | # had a chance to set XCFLAGS. | |
15956 | ||
15957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
15958 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } | |
15959 | if test "${libgomp_cv_have_sync_builtins+set}" = set; then : | |
15960 | $as_echo_n "(cached) " >&6 | |
15961 | else | |
15962 | ||
15963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
15964 | /* end confdefs.h. */ |
15965 | ||
15966 | int | |
15967 | main () | |
15968 | { | |
5213506e | 15969 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); |
a68ab351 JJ |
15970 | ; |
15971 | return 0; | |
15972 | } | |
15973 | _ACEOF | |
5213506e RW |
15974 | if ac_fn_c_try_link "$LINENO"; then : |
15975 | libgomp_cv_have_sync_builtins=yes | |
15976 | else | |
15977 | libgomp_cv_have_sync_builtins=no | |
15978 | fi | |
15979 | rm -f core conftest.err conftest.$ac_objext \ | |
15980 | conftest$ac_exeext conftest.$ac_ext | |
15981 | fi | |
15982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5 | |
15983 | $as_echo "$libgomp_cv_have_sync_builtins" >&6; } | |
15984 | if test $libgomp_cv_have_sync_builtins = yes; then | |
a68ab351 | 15985 | |
5213506e RW |
15986 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h |
15987 | ||
15988 | fi | |
15989 | ||
15990 | XCFLAGS="$XCFLAGS$XPCFLAGS" | |
15991 | ||
15992 | ||
15993 | ||
15994 | ||
15995 | ||
15996 | # Cleanup and exit. | |
15997 | CFLAGS="$save_CFLAGS" | |
15998 | cat >confcache <<\_ACEOF | |
15999 | # This file is a shell script that caches the results of configure | |
16000 | # tests run on this system so they can be shared between configure | |
16001 | # scripts and configure runs, see configure's option --config-cache. | |
16002 | # It is not useful on other systems. If it contains results you don't | |
16003 | # want to keep, you may remove or edit it. | |
16004 | # | |
16005 | # config.status only pays attention to the cache file if you give it | |
16006 | # the --recheck option to rerun configure. | |
16007 | # | |
16008 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16009 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16010 | # following values. | |
a68ab351 | 16011 | |
a68ab351 | 16012 | _ACEOF |
5213506e RW |
16013 | |
16014 | # The following way of writing the cache mishandles newlines in values, | |
16015 | # but we know of no workaround that is simple, portable, and efficient. | |
16016 | # So, we kill variables containing newlines. | |
16017 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16018 | # and sets the high bit in the cache file unless we assign to the vars. | |
16019 | ( | |
16020 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16021 | eval ac_val=\$$ac_var | |
16022 | case $ac_val in #( | |
16023 | *${as_nl}*) | |
16024 | case $ac_var in #( | |
16025 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16026 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16027 | esac | |
16028 | case $ac_var in #( | |
16029 | _ | IFS | as_nl) ;; #( | |
16030 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16031 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16032 | esac ;; | |
16033 | esac | |
16034 | done | |
16035 | ||
16036 | (set) 2>&1 | | |
16037 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16038 | *${as_nl}ac_space=\ *) | |
16039 | # `set' does not quote correctly, so add quotes: double-quote | |
16040 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16041 | sed -n \ | |
16042 | "s/'/'\\\\''/g; | |
16043 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16044 | ;; #( | |
16045 | *) | |
16046 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16047 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16048 | ;; | |
16049 | esac | | |
16050 | sort | |
16051 | ) | | |
16052 | sed ' | |
16053 | /^ac_cv_env_/b end | |
16054 | t clear | |
16055 | :clear | |
16056 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16057 | t end | |
16058 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16059 | :end' >>confcache | |
16060 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16061 | if test -w "$cache_file"; then | |
16062 | test "x$cache_file" != "x/dev/null" && | |
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
16064 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
16065 | cat confcache >$cache_file | |
16066 | else | |
16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16068 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16069 | fi | |
16070 | fi | |
16071 | rm -f confcache | |
16072 | ||
16073 | if test ${multilib} = yes; then | |
16074 | multilib_arg="--enable-multilib" | |
a68ab351 | 16075 | else |
5213506e RW |
16076 | multilib_arg= |
16077 | fi | |
16078 | ||
16079 | # Set up the set of libraries that we need to link against for libgomp. | |
16080 | # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp, | |
16081 | # which will force linkage against -lpthread (or equivalent for the system). | |
16082 | # That's not 100% ideal, but about the best we can do easily. | |
16083 | if test $enable_shared = yes; then | |
16084 | link_gomp="-lgomp %{static: $LIBS}" | |
16085 | else | |
16086 | link_gomp="-lgomp $LIBS" | |
16087 | fi | |
16088 | ||
16089 | ||
16090 | if test "$ac_cv_fc_compiler_gnu" = yes; then | |
16091 | USE_FORTRAN_TRUE= | |
16092 | USE_FORTRAN_FALSE='#' | |
16093 | else | |
16094 | USE_FORTRAN_TRUE='#' | |
16095 | USE_FORTRAN_FALSE= | |
16096 | fi | |
16097 | ||
16098 | ||
16099 | # ??? 2006-01-24: Paulo committed to asking autoconf folk to document | |
16100 | # and export AC_COMPUTE_INT. If that happens, then we'll need to remove | |
16101 | # the underscore here and update the PREREQ. If it doesn't, then we'll | |
16102 | # need to copy this macro to our acinclude.m4. | |
16103 | save_CFLAGS="$CFLAGS" | |
16104 | for i in $config_path; do | |
16105 | if test -f $srcdir/config/$i/omp-lock.h; then | |
16106 | CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h" | |
16107 | break | |
16108 | fi | |
16109 | done | |
a68ab351 | 16110 | |
5213506e | 16111 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then : |
a68ab351 | 16112 | |
5213506e RW |
16113 | else |
16114 | as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5 | |
16115 | fi | |
a68ab351 | 16116 | |
a68ab351 | 16117 | |
5213506e | 16118 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then : |
a68ab351 | 16119 | |
5213506e | 16120 | fi |
a68ab351 | 16121 | |
a68ab351 | 16122 | |
5213506e | 16123 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then : |
a68ab351 | 16124 | |
a68ab351 | 16125 | fi |
a68ab351 | 16126 | |
a68ab351 | 16127 | |
5213506e | 16128 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then : |
a68ab351 | 16129 | |
a68ab351 | 16130 | fi |
a68ab351 | 16131 | |
a68ab351 | 16132 | |
5213506e | 16133 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then : |
a68ab351 | 16134 | |
a68ab351 | 16135 | else |
5213506e RW |
16136 | as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5 |
16137 | fi | |
16138 | ||
16139 | ||
16140 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then : | |
a68ab351 JJ |
16141 | |
16142 | fi | |
5213506e RW |
16143 | |
16144 | ||
16145 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then : | |
16146 | ||
a68ab351 | 16147 | fi |
5213506e RW |
16148 | |
16149 | ||
16150 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then : | |
16151 | ||
a68ab351 | 16152 | fi |
5213506e RW |
16153 | |
16154 | ||
a68ab351 JJ |
16155 | |
16156 | # If the lock fits in an integer, then arrange for Fortran to use that | |
16157 | # integer. If it doesn't, then arrange for Fortran to use a pointer. | |
16158 | # Except that we don't have a way at present to multi-lib the installed | |
16159 | # Fortran modules, so we assume 8 bytes for pointers, regardless of the | |
16160 | # actual target. | |
16161 | OMP_LOCK_KIND=$OMP_LOCK_SIZE | |
16162 | OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE | |
16163 | if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then | |
16164 | OMP_LOCK_KIND=8 | |
16165 | fi | |
16166 | if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then | |
16167 | OMP_NEST_LOCK_KIND=8 | |
16168 | fi | |
16169 | OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE | |
16170 | OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE | |
16171 | if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then | |
16172 | OMP_LOCK_25_KIND=8 | |
16173 | fi | |
16174 | if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then | |
16175 | OMP_NEST_LOCK_25_KIND=8 | |
16176 | fi | |
16177 | ||
16178 | ||
16179 | ||
16180 | ||
16181 | ||
16182 | ||
03b8fe49 PB |
16183 | |
16184 | ||
16185 | ||
16186 | ||
16187 | ||
16188 | ||
16189 | ||
16190 | CFLAGS="$save_CFLAGS" | |
16191 | ||
5213506e | 16192 | ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" |
03b8fe49 | 16193 | |
5213506e | 16194 | ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" |
953ff289 DN |
16195 | |
16196 | cat >confcache <<\_ACEOF | |
16197 | # This file is a shell script that caches the results of configure | |
16198 | # tests run on this system so they can be shared between configure | |
16199 | # scripts and configure runs, see configure's option --config-cache. | |
16200 | # It is not useful on other systems. If it contains results you don't | |
16201 | # want to keep, you may remove or edit it. | |
16202 | # | |
16203 | # config.status only pays attention to the cache file if you give it | |
16204 | # the --recheck option to rerun configure. | |
16205 | # | |
16206 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16207 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16208 | # following values. | |
16209 | ||
16210 | _ACEOF | |
16211 | ||
16212 | # The following way of writing the cache mishandles newlines in values, | |
16213 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 16214 | # So, we kill variables containing newlines. |
953ff289 DN |
16215 | # Ultrix sh set writes to stderr and can't be redirected directly, |
16216 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
16217 | ( |
16218 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16219 | eval ac_val=\$$ac_var | |
16220 | case $ac_val in #( | |
16221 | *${as_nl}*) | |
16222 | case $ac_var in #( | |
16223 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16224 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16225 | esac | |
16226 | case $ac_var in #( | |
16227 | _ | IFS | as_nl) ;; #( | |
16228 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16229 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16230 | esac ;; | |
16231 | esac | |
16232 | done | |
16233 | ||
953ff289 | 16234 | (set) 2>&1 | |
5213506e RW |
16235 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
16236 | *${as_nl}ac_space=\ *) | |
16237 | # `set' does not quote correctly, so add quotes: double-quote | |
16238 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
953ff289 DN |
16239 | sed -n \ |
16240 | "s/'/'\\\\''/g; | |
16241 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 16242 | ;; #( |
953ff289 DN |
16243 | *) |
16244 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 16245 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
953ff289 | 16246 | ;; |
5213506e RW |
16247 | esac | |
16248 | sort | |
16249 | ) | | |
953ff289 | 16250 | sed ' |
5213506e | 16251 | /^ac_cv_env_/b end |
953ff289 | 16252 | t clear |
5213506e | 16253 | :clear |
953ff289 DN |
16254 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
16255 | t end | |
5213506e RW |
16256 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
16257 | :end' >>confcache | |
16258 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16259 | if test -w "$cache_file"; then | |
16260 | test "x$cache_file" != "x/dev/null" && | |
16261 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
16262 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
953ff289 DN |
16263 | cat confcache >$cache_file |
16264 | else | |
5213506e RW |
16265 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
16266 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
953ff289 DN |
16267 | fi |
16268 | fi | |
16269 | rm -f confcache | |
16270 | ||
16271 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16272 | # Let make expand exec_prefix. | |
16273 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16274 | ||
953ff289 DN |
16275 | DEFS=-DHAVE_CONFIG_H |
16276 | ||
16277 | ac_libobjs= | |
16278 | ac_ltlibobjs= | |
16279 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16280 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
16281 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
16282 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16283 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16284 | # will be set to the directory where LIBOBJS objects are built. | |
16285 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16286 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
953ff289 DN |
16287 | done |
16288 | LIBOBJS=$ac_libobjs | |
16289 | ||
16290 | LTLIBOBJS=$ac_ltlibobjs | |
16291 | ||
16292 | ||
627ab4b8 | 16293 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then |
5213506e RW |
16294 | as_fn_error "conditional \"GENINSRC\" was never defined. |
16295 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16296 | fi | |
16297 | if test -n "$EXEEXT"; then | |
16298 | am__EXEEXT_TRUE= | |
16299 | am__EXEEXT_FALSE='#' | |
16300 | else | |
16301 | am__EXEEXT_TRUE='#' | |
16302 | am__EXEEXT_FALSE= | |
627ab4b8 | 16303 | fi |
5213506e | 16304 | |
953ff289 | 16305 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
5213506e RW |
16306 | as_fn_error "conditional \"AMDEP\" was never defined. |
16307 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
953ff289 DN |
16308 | fi |
16309 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5213506e RW |
16310 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
16311 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
953ff289 | 16312 | fi |
748b9d7c | 16313 | if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then |
5213506e RW |
16314 | as_fn_error "conditional \"BUILD_INFO\" was never defined. |
16315 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
748b9d7c | 16316 | fi |
c41303c6 | 16317 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5213506e RW |
16318 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
16319 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c41303c6 | 16320 | fi |
953ff289 | 16321 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then |
5213506e RW |
16322 | as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. |
16323 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
953ff289 DN |
16324 | fi |
16325 | if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then | |
5213506e RW |
16326 | as_fn_error "conditional \"USE_FORTRAN\" was never defined. |
16327 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
953ff289 DN |
16328 | fi |
16329 | ||
16330 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 16331 | ac_write_fail=0 |
953ff289 DN |
16332 | ac_clean_files_save=$ac_clean_files |
16333 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
16335 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16336 | as_write_fail=0 | |
16337 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
953ff289 DN |
16338 | #! $SHELL |
16339 | # Generated by $as_me. | |
16340 | # Run this file to recreate the current configuration. | |
16341 | # Compiler output produced by configure, useful for debugging | |
16342 | # configure, is in config.log if it exists. | |
16343 | ||
16344 | debug=false | |
16345 | ac_cs_recheck=false | |
16346 | ac_cs_silent=false | |
953ff289 | 16347 | |
5213506e RW |
16348 | SHELL=\${CONFIG_SHELL-$SHELL} |
16349 | export SHELL | |
16350 | _ASEOF | |
16351 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16352 | ## -------------------- ## | |
16353 | ## M4sh Initialization. ## | |
16354 | ## -------------------- ## | |
16355 | ||
16356 | # Be more Bourne compatible | |
16357 | DUALCASE=1; export DUALCASE # for MKS sh | |
16358 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
953ff289 DN |
16359 | emulate sh |
16360 | NULLCMD=: | |
5213506e | 16361 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
953ff289 DN |
16362 | # is contrary to our usage. Disable this feature. |
16363 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
16364 | setopt NO_GLOB_SUBST |
16365 | else | |
16366 | case `(set -o) 2>/dev/null` in #( | |
16367 | *posix*) : | |
16368 | set -o posix ;; #( | |
16369 | *) : | |
16370 | ;; | |
16371 | esac | |
953ff289 | 16372 | fi |
953ff289 | 16373 | |
5213506e RW |
16374 | |
16375 | as_nl=' | |
16376 | ' | |
16377 | export as_nl | |
16378 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16379 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16380 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16381 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16382 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16383 | # but without wasting forks for bash or zsh. | |
16384 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16385 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16386 | as_echo='print -r --' | |
16387 | as_echo_n='print -rn --' | |
16388 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16389 | as_echo='printf %s\n' | |
16390 | as_echo_n='printf %s' | |
16391 | else | |
16392 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16393 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16394 | as_echo_n='/usr/ucb/echo -n' | |
16395 | else | |
16396 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16397 | as_echo_n_body='eval | |
16398 | arg=$1; | |
16399 | case $arg in #( | |
16400 | *"$as_nl"*) | |
16401 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16402 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16403 | esac; | |
16404 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16405 | ' | |
16406 | export as_echo_n_body | |
16407 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16408 | fi | |
16409 | export as_echo_body | |
16410 | as_echo='sh -c $as_echo_body as_echo' | |
16411 | fi | |
16412 | ||
16413 | # The user is always right. | |
16414 | if test "${PATH_SEPARATOR+set}" != set; then | |
16415 | PATH_SEPARATOR=: | |
16416 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16417 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16418 | PATH_SEPARATOR=';' | |
16419 | } | |
953ff289 DN |
16420 | fi |
16421 | ||
16422 | ||
5213506e RW |
16423 | # IFS |
16424 | # We need space, tab and new line, in precisely that order. Quoting is | |
16425 | # there to prevent editors from complaining about space-tab. | |
16426 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16427 | # splitting by setting IFS to empty value.) | |
16428 | IFS=" "" $as_nl" | |
16429 | ||
16430 | # Find who we are. Look in the path if we contain no directory separator. | |
16431 | case $0 in #(( | |
16432 | *[\\/]* ) as_myself=$0 ;; | |
16433 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16434 | for as_dir in $PATH | |
16435 | do | |
16436 | IFS=$as_save_IFS | |
16437 | test -z "$as_dir" && as_dir=. | |
16438 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16439 | done | |
16440 | IFS=$as_save_IFS | |
16441 | ||
16442 | ;; | |
16443 | esac | |
16444 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16445 | # in which case we are not to be found in the path. | |
16446 | if test "x$as_myself" = x; then | |
16447 | as_myself=$0 | |
16448 | fi | |
16449 | if test ! -f "$as_myself"; then | |
16450 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16451 | exit 1 | |
16452 | fi | |
16453 | ||
16454 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16455 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16456 | # suppresses any "Segmentation fault" message there. '((' could | |
16457 | # trigger a bug in pdksh 5.2.14. | |
16458 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16459 | do eval test x\${$as_var+set} = xset \ | |
16460 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16461 | done | |
953ff289 DN |
16462 | PS1='$ ' |
16463 | PS2='> ' | |
16464 | PS4='+ ' | |
16465 | ||
16466 | # NLS nuisances. | |
5213506e RW |
16467 | LC_ALL=C |
16468 | export LC_ALL | |
16469 | LANGUAGE=C | |
16470 | export LANGUAGE | |
16471 | ||
16472 | # CDPATH. | |
16473 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16474 | ||
16475 | ||
16476 | # as_fn_error ERROR [LINENO LOG_FD] | |
16477 | # --------------------------------- | |
16478 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16479 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16480 | # script with status $?, using 1 if that was 0. | |
16481 | as_fn_error () | |
16482 | { | |
16483 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
16484 | if test "$3"; then | |
16485 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16486 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
953ff289 | 16487 | fi |
5213506e RW |
16488 | $as_echo "$as_me: error: $1" >&2 |
16489 | as_fn_exit $as_status | |
16490 | } # as_fn_error | |
16491 | ||
16492 | ||
16493 | # as_fn_set_status STATUS | |
16494 | # ----------------------- | |
16495 | # Set $? to STATUS, without forking. | |
16496 | as_fn_set_status () | |
16497 | { | |
16498 | return $1 | |
16499 | } # as_fn_set_status | |
16500 | ||
16501 | # as_fn_exit STATUS | |
16502 | # ----------------- | |
16503 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16504 | as_fn_exit () | |
16505 | { | |
16506 | set +e | |
16507 | as_fn_set_status $1 | |
16508 | exit $1 | |
16509 | } # as_fn_exit | |
16510 | ||
16511 | # as_fn_unset VAR | |
16512 | # --------------- | |
16513 | # Portably unset VAR. | |
16514 | as_fn_unset () | |
16515 | { | |
16516 | { eval $1=; unset $1;} | |
16517 | } | |
16518 | as_unset=as_fn_unset | |
16519 | # as_fn_append VAR VALUE | |
16520 | # ---------------------- | |
16521 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16522 | # advantage of any shell optimizations that allow amortized linear growth over | |
16523 | # repeated appends, instead of the typical quadratic growth present in naive | |
16524 | # implementations. | |
16525 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16526 | eval 'as_fn_append () | |
16527 | { | |
16528 | eval $1+=\$2 | |
16529 | }' | |
16530 | else | |
16531 | as_fn_append () | |
16532 | { | |
16533 | eval $1=\$$1\$2 | |
16534 | } | |
16535 | fi # as_fn_append | |
16536 | ||
16537 | # as_fn_arith ARG... | |
16538 | # ------------------ | |
16539 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16540 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16541 | # must be portable across $(()) and expr. | |
16542 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16543 | eval 'as_fn_arith () | |
16544 | { | |
16545 | as_val=$(( $* )) | |
16546 | }' | |
16547 | else | |
16548 | as_fn_arith () | |
16549 | { | |
16550 | as_val=`expr "$@" || test $? -eq 1` | |
16551 | } | |
16552 | fi # as_fn_arith | |
16553 | ||
953ff289 | 16554 | |
5213506e RW |
16555 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16556 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
953ff289 DN |
16557 | as_expr=expr |
16558 | else | |
16559 | as_expr=false | |
16560 | fi | |
16561 | ||
5213506e | 16562 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
953ff289 DN |
16563 | as_basename=basename |
16564 | else | |
16565 | as_basename=false | |
16566 | fi | |
16567 | ||
5213506e RW |
16568 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16569 | as_dirname=dirname | |
16570 | else | |
16571 | as_dirname=false | |
16572 | fi | |
953ff289 | 16573 | |
5213506e | 16574 | as_me=`$as_basename -- "$0" || |
953ff289 DN |
16575 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16576 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
16577 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
16578 | $as_echo X/"$0" | | |
16579 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16580 | s//\1/ | |
16581 | q | |
16582 | } | |
16583 | /^X\/\(\/\/\)$/{ | |
16584 | s//\1/ | |
16585 | q | |
16586 | } | |
16587 | /^X\/\(\/\).*/{ | |
16588 | s//\1/ | |
16589 | q | |
16590 | } | |
16591 | s/.*/./; q'` | |
953ff289 | 16592 | |
953ff289 DN |
16593 | # Avoid depending upon Character Ranges. |
16594 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16595 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16596 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16597 | as_cr_digits='0123456789' | |
16598 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16599 | ||
5213506e RW |
16600 | ECHO_C= ECHO_N= ECHO_T= |
16601 | case `echo -n x` in #((((( | |
16602 | -n*) | |
16603 | case `echo 'xy\c'` in | |
16604 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16605 | xy) ECHO_C='\c';; | |
16606 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16607 | ECHO_T=' ';; | |
16608 | esac;; | |
16609 | *) | |
16610 | ECHO_N='-n';; | |
953ff289 DN |
16611 | esac |
16612 | ||
5213506e RW |
16613 | rm -f conf$$ conf$$.exe conf$$.file |
16614 | if test -d conf$$.dir; then | |
16615 | rm -f conf$$.dir/conf$$.file | |
953ff289 | 16616 | else |
5213506e RW |
16617 | rm -f conf$$.dir |
16618 | mkdir conf$$.dir 2>/dev/null | |
953ff289 | 16619 | fi |
5213506e RW |
16620 | if (echo >conf$$.file) 2>/dev/null; then |
16621 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
953ff289 | 16622 | as_ln_s='ln -s' |
5213506e RW |
16623 | # ... but there are two gotchas: |
16624 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16625 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16626 | # In both cases, we have to default to `cp -p'. | |
16627 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16628 | as_ln_s='cp -p' | |
16629 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16630 | as_ln_s=ln | |
16631 | else | |
16632 | as_ln_s='cp -p' | |
953ff289 | 16633 | fi |
953ff289 DN |
16634 | else |
16635 | as_ln_s='cp -p' | |
16636 | fi | |
5213506e RW |
16637 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
16638 | rmdir conf$$.dir 2>/dev/null | |
16639 | ||
16640 | ||
16641 | # as_fn_mkdir_p | |
16642 | # ------------- | |
16643 | # Create "$as_dir" as a directory, including parents if necessary. | |
16644 | as_fn_mkdir_p () | |
16645 | { | |
16646 | ||
16647 | case $as_dir in #( | |
16648 | -*) as_dir=./$as_dir;; | |
16649 | esac | |
16650 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16651 | as_dirs= | |
16652 | while :; do | |
16653 | case $as_dir in #( | |
16654 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16655 | *) as_qdir=$as_dir;; | |
16656 | esac | |
16657 | as_dirs="'$as_qdir' $as_dirs" | |
16658 | as_dir=`$as_dirname -- "$as_dir" || | |
16659 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16660 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16661 | X"$as_dir" : 'X\(//\)$' \| \ | |
16662 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16663 | $as_echo X"$as_dir" | | |
16664 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16665 | s//\1/ | |
16666 | q | |
16667 | } | |
16668 | /^X\(\/\/\)[^/].*/{ | |
16669 | s//\1/ | |
16670 | q | |
16671 | } | |
16672 | /^X\(\/\/\)$/{ | |
16673 | s//\1/ | |
16674 | q | |
16675 | } | |
16676 | /^X\(\/\).*/{ | |
16677 | s//\1/ | |
16678 | q | |
16679 | } | |
16680 | s/.*/./; q'` | |
16681 | test -d "$as_dir" && break | |
16682 | done | |
16683 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
16684 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
16685 | ||
953ff289 | 16686 | |
5213506e | 16687 | } # as_fn_mkdir_p |
953ff289 | 16688 | if mkdir -p . 2>/dev/null; then |
5213506e | 16689 | as_mkdir_p='mkdir -p "$as_dir"' |
953ff289 DN |
16690 | else |
16691 | test -d ./-p && rmdir ./-p | |
16692 | as_mkdir_p=false | |
16693 | fi | |
16694 | ||
5213506e RW |
16695 | if test -x / >/dev/null 2>&1; then |
16696 | as_test_x='test -x' | |
16697 | else | |
16698 | if ls -dL / >/dev/null 2>&1; then | |
16699 | as_ls_L_option=L | |
16700 | else | |
16701 | as_ls_L_option= | |
16702 | fi | |
16703 | as_test_x=' | |
16704 | eval sh -c '\'' | |
16705 | if test -d "$1"; then | |
16706 | test -d "$1/."; | |
16707 | else | |
16708 | case $1 in #( | |
16709 | -*)set "./$1";; | |
16710 | esac; | |
16711 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
16712 | ???[sx]*):;;*)false;;esac;fi | |
16713 | '\'' sh | |
16714 | ' | |
16715 | fi | |
16716 | as_executable_p=$as_test_x | |
953ff289 DN |
16717 | |
16718 | # Sed expression to map a string onto a valid CPP name. | |
16719 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16720 | ||
5213506e RW |
16721 | # Sed expression to map a string onto a valid variable name. |
16722 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
953ff289 | 16723 | |
953ff289 DN |
16724 | |
16725 | exec 6>&1 | |
5213506e RW |
16726 | ## ----------------------------------- ## |
16727 | ## Main body of $CONFIG_STATUS script. ## | |
16728 | ## ----------------------------------- ## | |
16729 | _ASEOF | |
16730 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16731 | ||
16732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16733 | # Save the log message, to keep $0 and so on meaningful, and to | |
953ff289 | 16734 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
16735 | # values after options handling. |
16736 | ac_log=" | |
953ff289 | 16737 | This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was |
5213506e | 16738 | generated by GNU Autoconf 2.64. Invocation command line was |
953ff289 DN |
16739 | |
16740 | CONFIG_FILES = $CONFIG_FILES | |
16741 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16742 | CONFIG_LINKS = $CONFIG_LINKS | |
16743 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16744 | $ $0 $@ | |
16745 | ||
5213506e RW |
16746 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16747 | " | |
16748 | ||
953ff289 DN |
16749 | _ACEOF |
16750 | ||
5213506e RW |
16751 | case $ac_config_files in *" |
16752 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16753 | esac | |
953ff289 | 16754 | |
5213506e RW |
16755 | case $ac_config_headers in *" |
16756 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16757 | esac | |
953ff289 | 16758 | |
953ff289 | 16759 | |
5213506e RW |
16760 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16761 | # Files that config.status was made for. | |
16762 | config_files="$ac_config_files" | |
16763 | config_headers="$ac_config_headers" | |
16764 | config_commands="$ac_config_commands" | |
953ff289 | 16765 | |
5213506e | 16766 | _ACEOF |
953ff289 | 16767 | |
5213506e | 16768 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 | 16769 | ac_cs_usage="\ |
5213506e RW |
16770 | \`$as_me' instantiates files and other configuration actions |
16771 | from templates according to the current configuration. Unless the files | |
16772 | and actions are specified as TAGs, all are instantiated by default. | |
953ff289 | 16773 | |
5213506e | 16774 | Usage: $0 [OPTION]... [TAG]... |
953ff289 DN |
16775 | |
16776 | -h, --help print this help, then exit | |
5213506e RW |
16777 | -V, --version print version number and configuration settings, then exit |
16778 | -q, --quiet, --silent | |
16779 | do not print progress messages | |
953ff289 DN |
16780 | -d, --debug don't remove temporary files |
16781 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
16782 | --file=FILE[:TEMPLATE] |
16783 | instantiate the configuration file FILE | |
16784 | --header=FILE[:TEMPLATE] | |
16785 | instantiate the configuration header FILE | |
953ff289 DN |
16786 | |
16787 | Configuration files: | |
16788 | $config_files | |
16789 | ||
16790 | Configuration headers: | |
16791 | $config_headers | |
16792 | ||
16793 | Configuration commands: | |
16794 | $config_commands | |
16795 | ||
5213506e RW |
16796 | Report bugs to the package provider. |
16797 | GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>. | |
16798 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
953ff289 | 16799 | |
5213506e RW |
16800 | _ACEOF |
16801 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
953ff289 DN |
16802 | ac_cs_version="\\ |
16803 | GNU OpenMP Runtime Library config.status 1.0 | |
5213506e RW |
16804 | configured by $0, generated by GNU Autoconf 2.64, |
16805 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
953ff289 | 16806 | |
5213506e | 16807 | Copyright (C) 2009 Free Software Foundation, Inc. |
953ff289 DN |
16808 | This config.status script is free software; the Free Software Foundation |
16809 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
16810 | |
16811 | ac_pwd='$ac_pwd' | |
16812 | srcdir='$srcdir' | |
16813 | INSTALL='$INSTALL' | |
16814 | MKDIR_P='$MKDIR_P' | |
16815 | AWK='$AWK' | |
16816 | test -n "\$AWK" || AWK=awk | |
953ff289 DN |
16817 | _ACEOF |
16818 | ||
5213506e RW |
16819 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16820 | # The default lists apply if the user does not specify any file. | |
953ff289 DN |
16821 | ac_need_defaults=: |
16822 | while test $# != 0 | |
16823 | do | |
16824 | case $1 in | |
16825 | --*=*) | |
5213506e RW |
16826 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16827 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
953ff289 DN |
16828 | ac_shift=: |
16829 | ;; | |
5213506e | 16830 | *) |
953ff289 DN |
16831 | ac_option=$1 |
16832 | ac_optarg=$2 | |
16833 | ac_shift=shift | |
16834 | ;; | |
953ff289 DN |
16835 | esac |
16836 | ||
16837 | case $ac_option in | |
16838 | # Handling of the options. | |
953ff289 DN |
16839 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
16840 | ac_cs_recheck=: ;; | |
5213506e RW |
16841 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
16842 | $as_echo "$ac_cs_version"; exit ;; | |
16843 | --debug | --debu | --deb | --de | --d | -d ) | |
953ff289 DN |
16844 | debug=: ;; |
16845 | --file | --fil | --fi | --f ) | |
16846 | $ac_shift | |
5213506e RW |
16847 | case $ac_optarg in |
16848 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16849 | esac | |
16850 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
953ff289 DN |
16851 | ac_need_defaults=false;; |
16852 | --header | --heade | --head | --hea ) | |
16853 | $ac_shift | |
5213506e RW |
16854 | case $ac_optarg in |
16855 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16856 | esac | |
16857 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
953ff289 | 16858 | ac_need_defaults=false;; |
5213506e RW |
16859 | --he | --h) |
16860 | # Conflict between --help and --header | |
16861 | as_fn_error "ambiguous option: \`$1' | |
16862 | Try \`$0 --help' for more information.";; | |
16863 | --help | --hel | -h ) | |
16864 | $as_echo "$ac_cs_usage"; exit ;; | |
953ff289 DN |
16865 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16866 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16867 | ac_cs_silent=: ;; | |
16868 | ||
16869 | # This is an error. | |
5213506e RW |
16870 | -*) as_fn_error "unrecognized option: \`$1' |
16871 | Try \`$0 --help' for more information." ;; | |
953ff289 | 16872 | |
5213506e RW |
16873 | *) as_fn_append ac_config_targets " $1" |
16874 | ac_need_defaults=false ;; | |
953ff289 DN |
16875 | |
16876 | esac | |
16877 | shift | |
16878 | done | |
16879 | ||
16880 | ac_configure_extra_args= | |
16881 | ||
16882 | if $ac_cs_silent; then | |
16883 | exec 6>/dev/null | |
16884 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16885 | fi | |
16886 | ||
16887 | _ACEOF | |
5213506e | 16888 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
953ff289 | 16889 | if \$ac_cs_recheck; then |
5213506e RW |
16890 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
16891 | shift | |
16892 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16893 | CONFIG_SHELL='$SHELL' | |
16894 | export CONFIG_SHELL | |
16895 | exec "\$@" | |
953ff289 DN |
16896 | fi |
16897 | ||
16898 | _ACEOF | |
5213506e RW |
16899 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16900 | exec 5>>config.log | |
16901 | { | |
16902 | echo | |
16903 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16904 | ## Running $as_me. ## | |
16905 | _ASBOX | |
16906 | $as_echo "$ac_log" | |
16907 | } >&5 | |
953ff289 | 16908 | |
5213506e RW |
16909 | _ACEOF |
16910 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
953ff289 | 16911 | # |
5213506e | 16912 | # INIT-COMMANDS |
953ff289 DN |
16913 | # |
16914 | ||
953ff289 DN |
16915 | srcdir="$srcdir" |
16916 | host="$host" | |
16917 | target="$target" | |
16918 | with_multisubdir="$with_multisubdir" | |
16919 | with_multisrctop="$with_multisrctop" | |
16920 | with_target_subdir="$with_target_subdir" | |
16921 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
16922 | multi_basedir="$multi_basedir" | |
16923 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
16924 | CC="$CC" | |
396b7fa4 JM |
16925 | CXX="$CXX" |
16926 | GFORTRAN="$GFORTRAN" | |
16927 | GCJ="$GCJ" | |
953ff289 DN |
16928 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
16929 | ||
1cf3d07d SE |
16930 | |
16931 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16932 | # if CDPATH is set. | |
16933 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16934 | ||
16935 | sed_quote_subst='$sed_quote_subst' | |
16936 | double_quote_subst='$double_quote_subst' | |
16937 | delay_variable_subst='$delay_variable_subst' | |
16938 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
16939 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
16940 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
16941 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
16942 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
16943 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
16944 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
16945 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
16946 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
16947 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
16948 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
16949 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
16950 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
16951 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
16952 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16953 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16954 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16955 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
16956 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
16957 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
16958 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
16959 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
16960 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
16961 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
16962 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
16963 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
16964 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16965 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed | 16966 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
16967 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
16968 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
16969 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
16970 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
16971 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
16972 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
16973 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16974 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16975 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16976 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
16977 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
16978 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
16979 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
16980 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
16981 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
16982 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed | 16983 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
16984 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
16985 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
16986 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
16987 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
16988 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16989 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
16990 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
16991 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
16992 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
16993 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed PG |
16994 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
16995 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
16996 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
16997 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
16998 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
1cf3d07d SE |
16999 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
17000 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17001 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17002 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
17003 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
17004 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17005 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17006 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
17007 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17008 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17009 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17010 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17011 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17012 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17013 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17014 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17015 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17016 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17017 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17018 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
17019 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
17020 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
17021 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
17022 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17023 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
17024 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17025 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
17026 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17027 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
17028 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17029 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17030 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17031 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17032 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17033 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
17034 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
17035 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17036 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
17037 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17038 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17039 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17040 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17041 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17042 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17043 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17044 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17045 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17046 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
17047 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
17048 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17049 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17050 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
17051 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
17052 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
17053 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17054 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
17055 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed | 17056 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
17057 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
17058 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
17059 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17060 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17061 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17062 | LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17063 | old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17064 | compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17065 | GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17066 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17067 | lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17068 | lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17069 | lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17070 | lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17071 | archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17072 | enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17073 | export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17074 | whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17075 | compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17076 | old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17077 | old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17078 | archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17079 | archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17080 | module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17081 | module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17082 | with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17083 | allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17084 | no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17085 | hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17086 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17087 | hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17088 | hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17089 | hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17090 | hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17091 | hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17092 | hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17093 | inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17094 | link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17095 | fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17096 | always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17097 | export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17098 | exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17099 | include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17100 | prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17101 | file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17102 | hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
6b4a97ed | 17103 | compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
17104 | predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' |
17105 | postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17106 | predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17107 | postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17108 | compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`' | |
17109 | ||
17110 | LTCC='$LTCC' | |
17111 | LTCFLAGS='$LTCFLAGS' | |
17112 | compiler='$compiler_DEFAULT' | |
17113 | ||
17114 | # Quote evaled strings. | |
17115 | for var in SED \ | |
17116 | GREP \ | |
17117 | EGREP \ | |
17118 | FGREP \ | |
17119 | LD \ | |
17120 | NM \ | |
17121 | LN_S \ | |
17122 | lt_SP2NL \ | |
17123 | lt_NL2SP \ | |
17124 | reload_flag \ | |
6b4a97ed | 17125 | OBJDUMP \ |
1cf3d07d SE |
17126 | deplibs_check_method \ |
17127 | file_magic_cmd \ | |
17128 | AR \ | |
17129 | AR_FLAGS \ | |
17130 | STRIP \ | |
17131 | RANLIB \ | |
17132 | CC \ | |
17133 | CFLAGS \ | |
17134 | compiler \ | |
17135 | lt_cv_sys_global_symbol_pipe \ | |
17136 | lt_cv_sys_global_symbol_to_cdecl \ | |
17137 | lt_cv_sys_global_symbol_to_c_name_address \ | |
6b4a97ed | 17138 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
17139 | SHELL \ |
17140 | ECHO \ | |
17141 | lt_prog_compiler_no_builtin_flag \ | |
17142 | lt_prog_compiler_wl \ | |
17143 | lt_prog_compiler_pic \ | |
17144 | lt_prog_compiler_static \ | |
17145 | lt_cv_prog_compiler_c_o \ | |
17146 | need_locks \ | |
6b4a97ed PG |
17147 | DSYMUTIL \ |
17148 | NMEDIT \ | |
17149 | LIPO \ | |
17150 | OTOOL \ | |
17151 | OTOOL64 \ | |
1cf3d07d SE |
17152 | shrext_cmds \ |
17153 | export_dynamic_flag_spec \ | |
17154 | whole_archive_flag_spec \ | |
17155 | compiler_needs_object \ | |
17156 | with_gnu_ld \ | |
17157 | allow_undefined_flag \ | |
17158 | no_undefined_flag \ | |
17159 | hardcode_libdir_flag_spec \ | |
17160 | hardcode_libdir_flag_spec_ld \ | |
17161 | hardcode_libdir_separator \ | |
17162 | fix_srcfile_path \ | |
17163 | exclude_expsyms \ | |
17164 | include_expsyms \ | |
17165 | file_list_spec \ | |
17166 | variables_saved_for_relink \ | |
17167 | libname_spec \ | |
17168 | library_names_spec \ | |
17169 | soname_spec \ | |
17170 | finish_eval \ | |
17171 | old_striplib \ | |
17172 | striplib \ | |
6b4a97ed | 17173 | compiler_lib_search_dirs \ |
1cf3d07d SE |
17174 | predep_objects \ |
17175 | postdep_objects \ | |
17176 | predeps \ | |
17177 | postdeps \ | |
17178 | compiler_lib_search_path \ | |
17179 | LD_FC \ | |
17180 | compiler_FC \ | |
17181 | lt_prog_compiler_no_builtin_flag_FC \ | |
17182 | lt_prog_compiler_wl_FC \ | |
17183 | lt_prog_compiler_pic_FC \ | |
17184 | lt_prog_compiler_static_FC \ | |
17185 | lt_cv_prog_compiler_c_o_FC \ | |
17186 | export_dynamic_flag_spec_FC \ | |
17187 | whole_archive_flag_spec_FC \ | |
17188 | compiler_needs_object_FC \ | |
17189 | with_gnu_ld_FC \ | |
17190 | allow_undefined_flag_FC \ | |
17191 | no_undefined_flag_FC \ | |
17192 | hardcode_libdir_flag_spec_FC \ | |
17193 | hardcode_libdir_flag_spec_ld_FC \ | |
17194 | hardcode_libdir_separator_FC \ | |
17195 | fix_srcfile_path_FC \ | |
17196 | exclude_expsyms_FC \ | |
17197 | include_expsyms_FC \ | |
17198 | file_list_spec_FC \ | |
6b4a97ed | 17199 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
17200 | predep_objects_FC \ |
17201 | postdep_objects_FC \ | |
17202 | predeps_FC \ | |
17203 | postdeps_FC \ | |
17204 | compiler_lib_search_path_FC; do | |
17205 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17206 | *[\\\\\\\`\\"\\\$]*) | |
17207 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17208 | ;; | |
17209 | *) | |
17210 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17211 | ;; | |
17212 | esac | |
17213 | done | |
17214 | ||
17215 | # Double-quote double-evaled strings. | |
17216 | for var in reload_cmds \ | |
17217 | old_postinstall_cmds \ | |
17218 | old_postuninstall_cmds \ | |
17219 | old_archive_cmds \ | |
17220 | extract_expsyms_cmds \ | |
17221 | old_archive_from_new_cmds \ | |
17222 | old_archive_from_expsyms_cmds \ | |
17223 | archive_cmds \ | |
17224 | archive_expsym_cmds \ | |
17225 | module_cmds \ | |
17226 | module_expsym_cmds \ | |
17227 | export_symbols_cmds \ | |
17228 | prelink_cmds \ | |
17229 | postinstall_cmds \ | |
17230 | postuninstall_cmds \ | |
17231 | finish_cmds \ | |
17232 | sys_lib_search_path_spec \ | |
17233 | sys_lib_dlsearch_path_spec \ | |
17234 | old_archive_cmds_FC \ | |
17235 | old_archive_from_new_cmds_FC \ | |
17236 | old_archive_from_expsyms_cmds_FC \ | |
17237 | archive_cmds_FC \ | |
17238 | archive_expsym_cmds_FC \ | |
17239 | module_cmds_FC \ | |
17240 | module_expsym_cmds_FC \ | |
17241 | export_symbols_cmds_FC \ | |
17242 | prelink_cmds_FC; do | |
17243 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17244 | *[\\\\\\\`\\"\\\$]*) | |
17245 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17246 | ;; | |
17247 | *) | |
17248 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17249 | ;; | |
17250 | esac | |
17251 | done | |
17252 | ||
17253 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
17254 | case \$lt_ECHO in | |
17255 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
17256 | ;; | |
17257 | esac | |
17258 | ||
17259 | ac_aux_dir='$ac_aux_dir' | |
17260 | xsi_shell='$xsi_shell' | |
17261 | lt_shell_append='$lt_shell_append' | |
17262 | ||
17263 | # See if we are running on zsh, and set the options which allow our | |
17264 | # commands through without removal of \ escapes INIT. | |
17265 | if test -n "\${ZSH_VERSION+set}" ; then | |
17266 | setopt NO_GLOB_SUBST | |
17267 | fi | |
17268 | ||
17269 | ||
17270 | PACKAGE='$PACKAGE' | |
17271 | VERSION='$VERSION' | |
17272 | TIMESTAMP='$TIMESTAMP' | |
17273 | RM='$RM' | |
17274 | ofile='$ofile' | |
17275 | ||
17276 | ||
17277 | ||
17278 | ||
17279 | ||
17280 | ||
18cbfd85 PB |
17281 | GCC="$GCC" |
17282 | CC="$CC" | |
17283 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
17284 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
17285 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
17286 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
17287 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
17288 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
17289 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
17290 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
17291 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
17292 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
17293 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
17294 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
17295 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
17296 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
17297 | ||
17298 | ||
953ff289 DN |
17299 | _ACEOF |
17300 | ||
5213506e | 17301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 | 17302 | |
5213506e | 17303 | # Handling of arguments. |
953ff289 DN |
17304 | for ac_config_target in $ac_config_targets |
17305 | do | |
5213506e RW |
17306 | case $ac_config_target in |
17307 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
17308 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
17309 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
17310 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
17311 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
17312 | "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;; | |
17313 | "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; | |
17314 | "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; | |
17315 | "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; | |
17316 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17317 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
17318 | "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; | |
17319 | ||
17320 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
953ff289 DN |
17321 | esac |
17322 | done | |
17323 | ||
5213506e | 17324 | |
953ff289 DN |
17325 | # If the user did not use the arguments to specify the items to instantiate, |
17326 | # then the envvar interface is used. Set only those that are not. | |
17327 | # We use the long form for the default assignment because of an extremely | |
17328 | # bizarre bug on SunOS 4.1.3. | |
17329 | if $ac_need_defaults; then | |
17330 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17331 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
17332 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17333 | fi | |
17334 | ||
17335 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 17336 | # simply because there is no reason against having it here, and in addition, |
953ff289 | 17337 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
17338 | # Hook for its removal unless debugging. |
17339 | # Note that there is a small window in which the directory will not be cleaned: | |
17340 | # after its creation but before its name has been assigned to `$tmp'. | |
953ff289 DN |
17341 | $debug || |
17342 | { | |
5213506e RW |
17343 | tmp= |
17344 | trap 'exit_status=$? | |
17345 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
17346 | ' 0 | |
17347 | trap 'as_fn_exit 1' 1 2 13 15 | |
953ff289 | 17348 | } |
953ff289 DN |
17349 | # Create a (secure) tmp directory for tmp files. |
17350 | ||
17351 | { | |
5213506e | 17352 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
953ff289 DN |
17353 | test -n "$tmp" && test -d "$tmp" |
17354 | } || | |
17355 | { | |
5213506e RW |
17356 | tmp=./conf$$-$RANDOM |
17357 | (umask 077 && mkdir "$tmp") | |
17358 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
17359 | ||
17360 | # Set up the scripts for CONFIG_FILES section. | |
17361 | # No need to generate them if there are no CONFIG_FILES. | |
17362 | # This happens for instance with `./config.status config.h'. | |
17363 | if test -n "$CONFIG_FILES"; then | |
17364 | ||
17365 | ||
17366 | ac_cr=`echo X | tr X '\015'` | |
17367 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17368 | # But we know of no other shell where ac_cr would be empty at this | |
17369 | # point, so we can use a bashism as a fallback. | |
17370 | if test "x$ac_cr" = x; then | |
17371 | eval ac_cr=\$\'\\r\' | |
17372 | fi | |
17373 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17374 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17375 | ac_cs_awk_cr='\r' | |
17376 | else | |
17377 | ac_cs_awk_cr=$ac_cr | |
17378 | fi | |
17379 | ||
17380 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
17381 | _ACEOF | |
17382 | ||
17383 | ||
953ff289 | 17384 | { |
5213506e RW |
17385 | echo "cat >conf$$subs.awk <<_ACEOF" && |
17386 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17387 | echo "_ACEOF" | |
17388 | } >conf$$subs.sh || | |
17389 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17390 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
17391 | ac_delim='%!_!# ' | |
17392 | for ac_last_try in false false false false false :; do | |
17393 | . ./conf$$subs.sh || | |
17394 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17395 | ||
17396 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17397 | if test $ac_delim_n = $ac_delim_num; then | |
17398 | break | |
17399 | elif $ac_last_try; then | |
17400 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17401 | else | |
17402 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17403 | fi | |
17404 | done | |
17405 | rm -f conf$$subs.sh | |
17406 | ||
17407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17408 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
17409 | _ACEOF | |
17410 | sed -n ' | |
17411 | h | |
17412 | s/^/S["/; s/!.*/"]=/ | |
17413 | p | |
17414 | g | |
17415 | s/^[^!]*!// | |
17416 | :repl | |
17417 | t repl | |
17418 | s/'"$ac_delim"'$// | |
17419 | t delim | |
17420 | :nl | |
17421 | h | |
17422 | s/\(.\{148\}\).*/\1/ | |
17423 | t more1 | |
17424 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17425 | p | |
17426 | n | |
17427 | b repl | |
17428 | :more1 | |
17429 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17430 | p | |
17431 | g | |
17432 | s/.\{148\}// | |
17433 | t nl | |
17434 | :delim | |
17435 | h | |
17436 | s/\(.\{148\}\).*/\1/ | |
17437 | t more2 | |
17438 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17439 | p | |
17440 | b | |
17441 | :more2 | |
17442 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17443 | p | |
17444 | g | |
17445 | s/.\{148\}// | |
17446 | t delim | |
17447 | ' <conf$$subs.awk | sed ' | |
17448 | /^[^""]/{ | |
17449 | N | |
17450 | s/\n// | |
953ff289 | 17451 | } |
5213506e RW |
17452 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
17453 | rm -f conf$$subs.awk | |
17454 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17455 | _ACAWK | |
17456 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
17457 | for (key in S) S_is_set[key] = 1 | |
17458 | FS = "\a" | |
953ff289 | 17459 | |
5213506e RW |
17460 | } |
17461 | { | |
17462 | line = $ 0 | |
17463 | nfields = split(line, field, "@") | |
17464 | substed = 0 | |
17465 | len = length(field[1]) | |
17466 | for (i = 2; i < nfields; i++) { | |
17467 | key = field[i] | |
17468 | keylen = length(key) | |
17469 | if (S_is_set[key]) { | |
17470 | value = S[key] | |
17471 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17472 | len += length(value) + length(field[++i]) | |
17473 | substed = 1 | |
17474 | } else | |
17475 | len += 1 + keylen | |
17476 | } | |
953ff289 | 17477 | |
5213506e RW |
17478 | print line |
17479 | } | |
953ff289 | 17480 | |
5213506e RW |
17481 | _ACAWK |
17482 | _ACEOF | |
17483 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17484 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17485 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17486 | else | |
17487 | cat | |
17488 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
17489 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
17490 | _ACEOF | |
17491 | ||
17492 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
17493 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
17494 | # trailing colons and then remove the whole line if VPATH becomes empty | |
17495 | # (actually we leave an empty line to preserve line numbers). | |
17496 | if test "x$srcdir" = x.; then | |
17497 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
17498 | s/:*\$(srcdir):*/:/ | |
17499 | s/:*\${srcdir}:*/:/ | |
17500 | s/:*@srcdir@:*/:/ | |
17501 | s/^\([^=]*=[ ]*\):*/\1/ | |
17502 | s/:*$// | |
17503 | s/^[^=]*=[ ]*$// | |
17504 | }' | |
17505 | fi | |
953ff289 | 17506 | |
5213506e RW |
17507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17508 | fi # test -n "$CONFIG_FILES" | |
953ff289 | 17509 | |
5213506e RW |
17510 | # Set up the scripts for CONFIG_HEADERS section. |
17511 | # No need to generate them if there are no CONFIG_HEADERS. | |
17512 | # This happens for instance with `./config.status Makefile'. | |
17513 | if test -n "$CONFIG_HEADERS"; then | |
17514 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
17515 | BEGIN { | |
953ff289 DN |
17516 | _ACEOF |
17517 | ||
5213506e RW |
17518 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
17519 | # here-document in config.status, that substitutes the proper values into | |
17520 | # config.h.in to produce config.h. | |
17521 | ||
17522 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
17523 | # handling of long lines. | |
17524 | ac_delim='%!_!# ' | |
17525 | for ac_last_try in false false :; do | |
17526 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
17527 | if test -z "$ac_t"; then | |
17528 | break | |
17529 | elif $ac_last_try; then | |
17530 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
17531 | else | |
17532 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
953ff289 | 17533 | fi |
5213506e | 17534 | done |
953ff289 | 17535 | |
5213506e RW |
17536 | # For the awk script, D is an array of macro values keyed by name, |
17537 | # likewise P contains macro parameters if any. Preserve backslash | |
17538 | # newline sequences. | |
17539 | ||
17540 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
17541 | sed -n ' | |
17542 | s/.\{148\}/&'"$ac_delim"'/g | |
17543 | t rset | |
17544 | :rset | |
17545 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17546 | t def | |
17547 | d | |
17548 | :def | |
17549 | s/\\$// | |
17550 | t bsnl | |
17551 | s/["\\]/\\&/g | |
17552 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17553 | D["\1"]=" \3"/p | |
17554 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17555 | d | |
17556 | :bsnl | |
17557 | s/["\\]/\\&/g | |
17558 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17559 | D["\1"]=" \3\\\\\\n"\\/p | |
17560 | t cont | |
17561 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17562 | t cont | |
17563 | d | |
17564 | :cont | |
17565 | n | |
17566 | s/.\{148\}/&'"$ac_delim"'/g | |
17567 | t clear | |
17568 | :clear | |
17569 | s/\\$// | |
17570 | t bsnlc | |
17571 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17572 | d | |
17573 | :bsnlc | |
17574 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17575 | b cont | |
17576 | ' <confdefs.h | sed ' | |
17577 | s/'"$ac_delim"'/"\\\ | |
17578 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17579 | ||
17580 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17581 | for (key in D) D_is_set[key] = 1 | |
17582 | FS = "\a" | |
17583 | } | |
17584 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17585 | line = \$ 0 | |
17586 | split(line, arg, " ") | |
17587 | if (arg[1] == "#") { | |
17588 | defundef = arg[2] | |
17589 | mac1 = arg[3] | |
17590 | } else { | |
17591 | defundef = substr(arg[1], 2) | |
17592 | mac1 = arg[2] | |
17593 | } | |
17594 | split(mac1, mac2, "(") #) | |
17595 | macro = mac2[1] | |
17596 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17597 | if (D_is_set[macro]) { | |
17598 | # Preserve the white space surrounding the "#". | |
17599 | print prefix "define", macro P[macro] D[macro] | |
17600 | next | |
17601 | } else { | |
17602 | # Replace #undef with comments. This is necessary, for example, | |
17603 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17604 | # on some systems where configure will not decide to define it. | |
17605 | if (defundef == "undef") { | |
17606 | print "/*", prefix defundef, macro, "*/" | |
17607 | next | |
17608 | } | |
17609 | } | |
17610 | } | |
17611 | { print } | |
17612 | _ACAWK | |
953ff289 | 17613 | _ACEOF |
5213506e RW |
17614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17615 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
17616 | fi # test -n "$CONFIG_HEADERS" | |
17617 | ||
17618 | ||
17619 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
17620 | shift | |
17621 | for ac_tag | |
17622 | do | |
17623 | case $ac_tag in | |
17624 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17625 | esac | |
17626 | case $ac_mode$ac_tag in | |
17627 | :[FHL]*:*);; | |
17628 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
17629 | :[FH]-) ac_tag=-:-;; | |
17630 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17631 | esac | |
17632 | ac_save_IFS=$IFS | |
17633 | IFS=: | |
17634 | set x $ac_tag | |
17635 | IFS=$ac_save_IFS | |
17636 | shift | |
17637 | ac_file=$1 | |
17638 | shift | |
17639 | ||
17640 | case $ac_mode in | |
17641 | :L) ac_source=$1;; | |
17642 | :[FH]) | |
17643 | ac_file_inputs= | |
17644 | for ac_f | |
17645 | do | |
17646 | case $ac_f in | |
17647 | -) ac_f="$tmp/stdin";; | |
17648 | *) # Look for the file first in the build tree, then in the source tree | |
17649 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17650 | # because $ac_f cannot contain `:'. | |
17651 | test -f "$ac_f" || | |
17652 | case $ac_f in | |
17653 | [\\/$]*) false;; | |
17654 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17655 | esac || | |
17656 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
17657 | esac | |
17658 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17659 | as_fn_append ac_file_inputs " '$ac_f'" | |
17660 | done | |
17661 | ||
17662 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17663 | # use $as_me), people would be surprised to read: | |
17664 | # /* config.h. Generated by config.status. */ | |
17665 | configure_input='Generated from '` | |
17666 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17667 | `' by configure.' | |
17668 | if test x"$ac_file" != x-; then | |
17669 | configure_input="$ac_file. $configure_input" | |
17670 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17671 | $as_echo "$as_me: creating $ac_file" >&6;} | |
17672 | fi | |
17673 | # Neutralize special characters interpreted by sed in replacement strings. | |
17674 | case $configure_input in #( | |
17675 | *\&* | *\|* | *\\* ) | |
17676 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17677 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17678 | *) ac_sed_conf_input=$configure_input;; | |
17679 | esac | |
17680 | ||
17681 | case $ac_tag in | |
17682 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
17683 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
17684 | esac | |
17685 | ;; | |
953ff289 DN |
17686 | esac |
17687 | ||
5213506e | 17688 | ac_dir=`$as_dirname -- "$ac_file" || |
953ff289 DN |
17689 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17690 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17691 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
17692 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
17693 | $as_echo X"$ac_file" | | |
17694 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17695 | s//\1/ | |
17696 | q | |
17697 | } | |
17698 | /^X\(\/\/\)[^/].*/{ | |
17699 | s//\1/ | |
17700 | q | |
17701 | } | |
17702 | /^X\(\/\/\)$/{ | |
17703 | s//\1/ | |
17704 | q | |
17705 | } | |
17706 | /^X\(\/\).*/{ | |
17707 | s//\1/ | |
17708 | q | |
17709 | } | |
17710 | s/.*/./; q'` | |
17711 | as_dir="$ac_dir"; as_fn_mkdir_p | |
953ff289 DN |
17712 | ac_builddir=. |
17713 | ||
5213506e RW |
17714 | case "$ac_dir" in |
17715 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17716 | *) | |
17717 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17718 | # A ".." for each directory in $ac_dir_suffix. | |
17719 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17720 | case $ac_top_builddir_sub in | |
17721 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17722 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17723 | esac ;; | |
17724 | esac | |
17725 | ac_abs_top_builddir=$ac_pwd | |
17726 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17727 | # for backward compatibility: | |
17728 | ac_top_builddir=$ac_top_build_prefix | |
953ff289 DN |
17729 | |
17730 | case $srcdir in | |
5213506e | 17731 | .) # We are building in place. |
953ff289 | 17732 | ac_srcdir=. |
5213506e RW |
17733 | ac_top_srcdir=$ac_top_builddir_sub |
17734 | ac_abs_top_srcdir=$ac_pwd ;; | |
17735 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
953ff289 | 17736 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
17737 | ac_top_srcdir=$srcdir |
17738 | ac_abs_top_srcdir=$srcdir ;; | |
17739 | *) # Relative name. | |
17740 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17741 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17742 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
953ff289 | 17743 | esac |
5213506e | 17744 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
953ff289 | 17745 | |
953ff289 | 17746 | |
5213506e RW |
17747 | case $ac_mode in |
17748 | :F) | |
17749 | # | |
17750 | # CONFIG_FILE | |
17751 | # | |
953ff289 DN |
17752 | |
17753 | case $INSTALL in | |
17754 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 17755 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
953ff289 | 17756 | esac |
5213506e RW |
17757 | ac_MKDIR_P=$MKDIR_P |
17758 | case $MKDIR_P in | |
17759 | [\\/$]* | ?:[\\/]* ) ;; | |
17760 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17761 | esac | |
17762 | _ACEOF | |
953ff289 | 17763 | |
5213506e RW |
17764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17765 | # If the template does not know about datarootdir, expand it. | |
17766 | # FIXME: This hack should be removed a few years after 2.60. | |
17767 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17768 | ac_sed_dataroot=' | |
17769 | /datarootdir/ { | |
17770 | p | |
17771 | q | |
17772 | } | |
17773 | /@datadir@/p | |
17774 | /@docdir@/p | |
17775 | /@infodir@/p | |
17776 | /@localedir@/p | |
17777 | /@mandir@/p' | |
17778 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17779 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17780 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17782 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17783 | _ACEOF | |
17784 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17785 | ac_datarootdir_hack=' | |
17786 | s&@datadir@&$datadir&g | |
17787 | s&@docdir@&$docdir&g | |
17788 | s&@infodir@&$infodir&g | |
17789 | s&@localedir@&$localedir&g | |
17790 | s&@mandir@&$mandir&g | |
17791 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17792 | esac | |
953ff289 | 17793 | _ACEOF |
5213506e RW |
17794 | |
17795 | # Neutralize VPATH when `$srcdir' = `.'. | |
17796 | # Shell code in configure.ac might set extrasub. | |
17797 | # FIXME: do we really want to maintain this feature? | |
17798 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17799 | ac_sed_extra="$ac_vpsub | |
953ff289 DN |
17800 | $extrasub |
17801 | _ACEOF | |
5213506e | 17802 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 DN |
17803 | :t |
17804 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
17805 | s|@configure_input@|$ac_sed_conf_input|;t t |
17806 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17807 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17808 | s&@srcdir@&$ac_srcdir&;t t | |
17809 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17810 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17811 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17812 | s&@builddir@&$ac_builddir&;t t | |
17813 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17814 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17815 | s&@INSTALL@&$ac_INSTALL&;t t | |
17816 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
17817 | $ac_datarootdir_hack | |
17818 | " | |
17819 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
17820 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17821 | ||
17822 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17823 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
17824 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
17825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17826 | which seems to be undefined. Please make sure it is defined." >&5 | |
17827 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17828 | which seems to be undefined. Please make sure it is defined." >&2;} | |
17829 | ||
17830 | rm -f "$tmp/stdin" | |
953ff289 | 17831 | case $ac_file in |
5213506e RW |
17832 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
17833 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
17834 | esac \ | |
17835 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17836 | ;; | |
17837 | :H) | |
17838 | # | |
17839 | # CONFIG_HEADER | |
17840 | # | |
953ff289 | 17841 | if test x"$ac_file" != x-; then |
5213506e RW |
17842 | { |
17843 | $as_echo "/* $configure_input */" \ | |
17844 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
17845 | } >"$tmp/config.h" \ | |
17846 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17847 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
17848 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
17849 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
953ff289 | 17850 | else |
5213506e RW |
17851 | rm -f "$ac_file" |
17852 | mv "$tmp/config.h" "$ac_file" \ | |
17853 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
953ff289 DN |
17854 | fi |
17855 | else | |
5213506e RW |
17856 | $as_echo "/* $configure_input */" \ |
17857 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
17858 | || as_fn_error "could not create -" "$LINENO" 5 | |
953ff289 | 17859 | fi |
5213506e RW |
17860 | # Compute "$ac_file"'s index in $config_headers. |
17861 | _am_arg="$ac_file" | |
953ff289 DN |
17862 | _am_stamp_count=1 |
17863 | for _am_header in $config_headers :; do | |
17864 | case $_am_header in | |
5213506e | 17865 | $_am_arg | $_am_arg:* ) |
953ff289 DN |
17866 | break ;; |
17867 | * ) | |
17868 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17869 | esac | |
17870 | done | |
5213506e RW |
17871 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
17872 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17873 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
17874 | X"$_am_arg" : 'X\(//\)$' \| \ | |
17875 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
17876 | $as_echo X"$_am_arg" | | |
17877 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17878 | s//\1/ | |
17879 | q | |
17880 | } | |
17881 | /^X\(\/\/\)[^/].*/{ | |
17882 | s//\1/ | |
17883 | q | |
17884 | } | |
17885 | /^X\(\/\/\)$/{ | |
17886 | s//\1/ | |
17887 | q | |
17888 | } | |
17889 | /^X\(\/\).*/{ | |
17890 | s//\1/ | |
17891 | q | |
17892 | } | |
17893 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17894 | ;; | |
953ff289 | 17895 | |
5213506e RW |
17896 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
17897 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17898 | ;; | |
17899 | esac | |
953ff289 DN |
17900 | |
17901 | ||
5213506e RW |
17902 | case $ac_file$ac_mode in |
17903 | "default-1":C) | |
953ff289 DN |
17904 | # Only add multilib support code if we just rebuilt the top-level |
17905 | # Makefile. | |
17906 | case " $CONFIG_FILES " in | |
17907 | *" Makefile "*) | |
17908 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
17909 | ;; | |
17910 | esac ;; | |
5213506e RW |
17911 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
17912 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
17913 | # are listed without --file. Let's play safe and only enable the eval | |
17914 | # if we detect the quoting. | |
17915 | case $CONFIG_FILES in | |
17916 | *\'*) eval set x "$CONFIG_FILES" ;; | |
17917 | *) set x $CONFIG_FILES ;; | |
17918 | esac | |
17919 | shift | |
17920 | for mf | |
17921 | do | |
17922 | # Strip MF so we end up with the name of the file. | |
17923 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17924 | # Check whether this is an Automake generated Makefile or not. | |
17925 | # We used to match only the files named `Makefile.in', but | |
17926 | # some people rename them; so instead we look at the file content. | |
17927 | # Grep'ing the first line is not enough: some people post-process | |
17928 | # each Makefile.in and add a new line on top of each file to say so. | |
17929 | # Grep'ing the whole file is not good either: AIX grep has a line | |
17930 | # limit of 2048, but all sed's we know have understand at least 4000. | |
17931 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
17932 | dirpart=`$as_dirname -- "$mf" || | |
953ff289 DN |
17933 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17934 | X"$mf" : 'X\(//\)[^/]' \| \ | |
17935 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
17936 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
17937 | $as_echo X"$mf" | | |
17938 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17939 | s//\1/ | |
17940 | q | |
17941 | } | |
17942 | /^X\(\/\/\)[^/].*/{ | |
17943 | s//\1/ | |
17944 | q | |
17945 | } | |
17946 | /^X\(\/\/\)$/{ | |
17947 | s//\1/ | |
17948 | q | |
17949 | } | |
17950 | /^X\(\/\).*/{ | |
17951 | s//\1/ | |
17952 | q | |
17953 | } | |
17954 | s/.*/./; q'` | |
17955 | else | |
17956 | continue | |
17957 | fi | |
17958 | # Extract the definition of DEPDIR, am__include, and am__quote | |
17959 | # from the Makefile without running `make'. | |
17960 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
17961 | test -z "$DEPDIR" && continue | |
17962 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
17963 | test -z "am__include" && continue | |
17964 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
17965 | # When using ansi2knr, U may be empty or an underscore; expand it | |
17966 | U=`sed -n 's/^U = //p' < "$mf"` | |
17967 | # Find all dependency output files, they are included files with | |
17968 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17969 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
17970 | # expansion. | |
17971 | for file in `sed -n " | |
17972 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
17973 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
17974 | # Make sure the directory exists. | |
17975 | test -f "$dirpart/$file" && continue | |
17976 | fdir=`$as_dirname -- "$file" || | |
953ff289 DN |
17977 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17978 | X"$file" : 'X\(//\)[^/]' \| \ | |
17979 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
17980 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
17981 | $as_echo X"$file" | | |
17982 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17983 | s//\1/ | |
17984 | q | |
17985 | } | |
17986 | /^X\(\/\/\)[^/].*/{ | |
17987 | s//\1/ | |
17988 | q | |
17989 | } | |
17990 | /^X\(\/\/\)$/{ | |
17991 | s//\1/ | |
17992 | q | |
17993 | } | |
17994 | /^X\(\/\).*/{ | |
17995 | s//\1/ | |
17996 | q | |
17997 | } | |
17998 | s/.*/./; q'` | |
17999 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
18000 | # echo "creating $dirpart/$file" | |
18001 | echo '# dummy' > "$dirpart/$file" | |
953ff289 | 18002 | done |
953ff289 | 18003 | done |
5213506e | 18004 | } |
1cf3d07d | 18005 | ;; |
5213506e | 18006 | "libtool":C) |
1cf3d07d SE |
18007 | |
18008 | # See if we are running on zsh, and set the options which allow our | |
18009 | # commands through without removal of \ escapes. | |
18010 | if test -n "${ZSH_VERSION+set}" ; then | |
18011 | setopt NO_GLOB_SUBST | |
18012 | fi | |
18013 | ||
18014 | cfgfile="${ofile}T" | |
18015 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18016 | $RM "$cfgfile" | |
18017 | ||
18018 | cat <<_LT_EOF >> "$cfgfile" | |
18019 | #! $SHELL | |
18020 | ||
18021 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
6b4a97ed | 18022 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
18023 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18024 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18025 | # | |
6b4a97ed PG |
18026 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
18027 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
18028 | # Written by Gordon Matzigkeit, 1996 | |
1cf3d07d | 18029 | # |
6b4a97ed | 18030 | # This file is part of GNU Libtool. |
1cf3d07d | 18031 | # |
6b4a97ed PG |
18032 | # GNU Libtool is free software; you can redistribute it and/or |
18033 | # modify it under the terms of the GNU General Public License as | |
18034 | # published by the Free Software Foundation; either version 2 of | |
18035 | # the License, or (at your option) any later version. | |
1cf3d07d | 18036 | # |
6b4a97ed PG |
18037 | # As a special exception to the GNU General Public License, |
18038 | # if you distribute this file as part of a program or library that | |
18039 | # is built using GNU Libtool, you may include this file under the | |
18040 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 18041 | # |
6b4a97ed PG |
18042 | # GNU Libtool is distributed in the hope that it will be useful, |
18043 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18044 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18045 | # GNU General Public License for more details. | |
1cf3d07d | 18046 | # |
6b4a97ed PG |
18047 | # You should have received a copy of the GNU General Public License |
18048 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18049 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18050 | # obtained by writing to the Free Software Foundation, Inc., | |
18051 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
18052 | |
18053 | ||
18054 | # The names of the tagged configurations supported by this script. | |
18055 | available_tags="FC " | |
18056 | ||
18057 | # ### BEGIN LIBTOOL CONFIG | |
18058 | ||
18059 | # Which release of libtool.m4 was used? | |
18060 | macro_version=$macro_version | |
18061 | macro_revision=$macro_revision | |
18062 | ||
18063 | # Whether or not to build shared libraries. | |
18064 | build_libtool_libs=$enable_shared | |
18065 | ||
18066 | # Whether or not to build static libraries. | |
18067 | build_old_libs=$enable_static | |
18068 | ||
18069 | # What type of objects to build. | |
18070 | pic_mode=$pic_mode | |
18071 | ||
18072 | # Whether or not to optimize for fast installation. | |
18073 | fast_install=$enable_fast_install | |
18074 | ||
18075 | # The host system. | |
18076 | host_alias=$host_alias | |
18077 | host=$host | |
18078 | host_os=$host_os | |
18079 | ||
18080 | # The build system. | |
18081 | build_alias=$build_alias | |
18082 | build=$build | |
18083 | build_os=$build_os | |
18084 | ||
18085 | # A sed program that does not truncate output. | |
18086 | SED=$lt_SED | |
18087 | ||
18088 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18089 | Xsed="\$SED -e 1s/^X//" | |
18090 | ||
18091 | # A grep program that handles long lines. | |
18092 | GREP=$lt_GREP | |
18093 | ||
18094 | # An ERE matcher. | |
18095 | EGREP=$lt_EGREP | |
18096 | ||
18097 | # A literal string matcher. | |
18098 | FGREP=$lt_FGREP | |
18099 | ||
18100 | # A BSD- or MS-compatible name lister. | |
18101 | NM=$lt_NM | |
18102 | ||
18103 | # Whether we need soft or hard links. | |
18104 | LN_S=$lt_LN_S | |
18105 | ||
18106 | # What is the maximum length of a command? | |
18107 | max_cmd_len=$max_cmd_len | |
18108 | ||
18109 | # Object file suffix (normally "o"). | |
18110 | objext=$ac_objext | |
18111 | ||
18112 | # Executable file suffix (normally ""). | |
18113 | exeext=$exeext | |
18114 | ||
18115 | # whether the shell understands "unset". | |
18116 | lt_unset=$lt_unset | |
18117 | ||
18118 | # turn spaces into newlines. | |
18119 | SP2NL=$lt_lt_SP2NL | |
18120 | ||
18121 | # turn newlines into spaces. | |
18122 | NL2SP=$lt_lt_NL2SP | |
18123 | ||
18124 | # How to create reloadable object files. | |
18125 | reload_flag=$lt_reload_flag | |
18126 | reload_cmds=$lt_reload_cmds | |
18127 | ||
6b4a97ed PG |
18128 | # An object symbol dumper. |
18129 | OBJDUMP=$lt_OBJDUMP | |
18130 | ||
1cf3d07d SE |
18131 | # Method to check whether dependent libraries are shared objects. |
18132 | deplibs_check_method=$lt_deplibs_check_method | |
18133 | ||
18134 | # Command to use when deplibs_check_method == "file_magic". | |
18135 | file_magic_cmd=$lt_file_magic_cmd | |
18136 | ||
18137 | # The archiver. | |
18138 | AR=$lt_AR | |
18139 | AR_FLAGS=$lt_AR_FLAGS | |
18140 | ||
18141 | # A symbol stripping program. | |
18142 | STRIP=$lt_STRIP | |
18143 | ||
18144 | # Commands used to install an old-style archive. | |
18145 | RANLIB=$lt_RANLIB | |
18146 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18147 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18148 | ||
18149 | # A C compiler. | |
18150 | LTCC=$lt_CC | |
18151 | ||
18152 | # LTCC compiler flags. | |
18153 | LTCFLAGS=$lt_CFLAGS | |
18154 | ||
18155 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18156 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18157 | ||
18158 | # Transform the output of nm in a proper C declaration. | |
18159 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18160 | ||
18161 | # Transform the output of nm in a C name address pair. | |
18162 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18163 | ||
6b4a97ed PG |
18164 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
18165 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18166 | ||
1cf3d07d SE |
18167 | # The name of the directory that contains temporary libtool files. |
18168 | objdir=$objdir | |
18169 | ||
18170 | # Shell to use when invoking shell scripts. | |
18171 | SHELL=$lt_SHELL | |
18172 | ||
18173 | # An echo program that does not interpret backslashes. | |
18174 | ECHO=$lt_ECHO | |
18175 | ||
18176 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18177 | MAGIC_CMD=$MAGIC_CMD | |
18178 | ||
18179 | # Must we lock files when doing compilation? | |
18180 | need_locks=$lt_need_locks | |
18181 | ||
6b4a97ed PG |
18182 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
18183 | DSYMUTIL=$lt_DSYMUTIL | |
18184 | ||
18185 | # Tool to change global to local symbols on Mac OS X. | |
18186 | NMEDIT=$lt_NMEDIT | |
18187 | ||
18188 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18189 | LIPO=$lt_LIPO | |
18190 | ||
18191 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18192 | OTOOL=$lt_OTOOL | |
18193 | ||
18194 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18195 | OTOOL64=$lt_OTOOL64 | |
18196 | ||
1cf3d07d SE |
18197 | # Old archive suffix (normally "a"). |
18198 | libext=$libext | |
18199 | ||
18200 | # Shared library suffix (normally ".so"). | |
18201 | shrext_cmds=$lt_shrext_cmds | |
18202 | ||
18203 | # The commands to extract the exported symbol list from a shared archive. | |
18204 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18205 | ||
18206 | # Variables whose values should be saved in libtool wrapper scripts and | |
18207 | # restored at link time. | |
18208 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
18209 | ||
18210 | # Do we need the "lib" prefix for modules? | |
18211 | need_lib_prefix=$need_lib_prefix | |
18212 | ||
18213 | # Do we need a version for libraries? | |
18214 | need_version=$need_version | |
18215 | ||
18216 | # Library versioning type. | |
18217 | version_type=$version_type | |
18218 | ||
18219 | # Shared library runtime path variable. | |
18220 | runpath_var=$runpath_var | |
18221 | ||
18222 | # Shared library path variable. | |
18223 | shlibpath_var=$shlibpath_var | |
18224 | ||
18225 | # Is shlibpath searched before the hard-coded library search path? | |
18226 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18227 | ||
18228 | # Format of library name prefix. | |
18229 | libname_spec=$lt_libname_spec | |
18230 | ||
18231 | # List of archive names. First name is the real one, the rest are links. | |
18232 | # The last name is the one that the linker finds with -lNAME | |
18233 | library_names_spec=$lt_library_names_spec | |
18234 | ||
18235 | # The coded name of the library, if different from the real name. | |
18236 | soname_spec=$lt_soname_spec | |
18237 | ||
18238 | # Command to use after installation of a shared archive. | |
18239 | postinstall_cmds=$lt_postinstall_cmds | |
18240 | ||
18241 | # Command to use after uninstallation of a shared archive. | |
18242 | postuninstall_cmds=$lt_postuninstall_cmds | |
18243 | ||
18244 | # Commands used to finish a libtool library installation in a directory. | |
18245 | finish_cmds=$lt_finish_cmds | |
18246 | ||
18247 | # As "finish_cmds", except a single script fragment to be evaled but | |
18248 | # not shown. | |
18249 | finish_eval=$lt_finish_eval | |
18250 | ||
18251 | # Whether we should hardcode library paths into libraries. | |
18252 | hardcode_into_libs=$hardcode_into_libs | |
18253 | ||
18254 | # Compile-time system search path for libraries. | |
18255 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18256 | ||
18257 | # Run-time system search path for libraries. | |
18258 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18259 | ||
18260 | # Whether dlopen is supported. | |
18261 | dlopen_support=$enable_dlopen | |
18262 | ||
18263 | # Whether dlopen of programs is supported. | |
18264 | dlopen_self=$enable_dlopen_self | |
18265 | ||
18266 | # Whether dlopen of statically linked programs is supported. | |
18267 | dlopen_self_static=$enable_dlopen_self_static | |
18268 | ||
18269 | # Commands to strip libraries. | |
18270 | old_striplib=$lt_old_striplib | |
18271 | striplib=$lt_striplib | |
18272 | ||
18273 | ||
18274 | # The linker used to build libraries. | |
18275 | LD=$lt_LD | |
18276 | ||
18277 | # Commands used to build an old-style archive. | |
18278 | old_archive_cmds=$lt_old_archive_cmds | |
18279 | ||
18280 | # A language specific compiler. | |
18281 | CC=$lt_compiler | |
18282 | ||
18283 | # Is the compiler the GNU compiler? | |
18284 | with_gcc=$GCC | |
18285 | ||
18286 | # Compiler flag to turn off builtin functions. | |
18287 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18288 | ||
18289 | # How to pass a linker flag through the compiler. | |
18290 | wl=$lt_lt_prog_compiler_wl | |
18291 | ||
18292 | # Additional compiler flags for building library objects. | |
18293 | pic_flag=$lt_lt_prog_compiler_pic | |
18294 | ||
18295 | # Compiler flag to prevent dynamic linking. | |
18296 | link_static_flag=$lt_lt_prog_compiler_static | |
18297 | ||
18298 | # Does compiler simultaneously support -c and -o options? | |
18299 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18300 | ||
18301 | # Whether or not to add -lc for building shared libraries. | |
18302 | build_libtool_need_lc=$archive_cmds_need_lc | |
18303 | ||
18304 | # Whether or not to disallow shared libs when runtime libs are static. | |
18305 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18306 | ||
18307 | # Compiler flag to allow reflexive dlopens. | |
18308 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18309 | ||
18310 | # Compiler flag to generate shared objects directly from archives. | |
18311 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18312 | ||
18313 | # Whether the compiler copes with passing no objects directly. | |
18314 | compiler_needs_object=$lt_compiler_needs_object | |
18315 | ||
18316 | # Create an old-style archive from a shared archive. | |
18317 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18318 | ||
18319 | # Create a temporary old-style archive to link instead of a shared archive. | |
18320 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18321 | ||
18322 | # Commands used to build a shared archive. | |
18323 | archive_cmds=$lt_archive_cmds | |
18324 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18325 | ||
18326 | # Commands used to build a loadable module if different from building | |
18327 | # a shared archive. | |
18328 | module_cmds=$lt_module_cmds | |
18329 | module_expsym_cmds=$lt_module_expsym_cmds | |
18330 | ||
18331 | # Whether we are building with GNU ld or not. | |
18332 | with_gnu_ld=$lt_with_gnu_ld | |
18333 | ||
18334 | # Flag that allows shared libraries with undefined symbols to be built. | |
18335 | allow_undefined_flag=$lt_allow_undefined_flag | |
18336 | ||
18337 | # Flag that enforces no undefined symbols. | |
18338 | no_undefined_flag=$lt_no_undefined_flag | |
18339 | ||
18340 | # Flag to hardcode \$libdir into a binary during linking. | |
18341 | # This must work even if \$libdir does not exist | |
18342 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18343 | ||
18344 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18345 | # during linking. This must work even if \$libdir does not exist. | |
18346 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
18347 | ||
18348 | # Whether we need a single "-rpath" flag with a separated argument. | |
18349 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18350 | ||
18351 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18352 | # DIR into the resulting binary. | |
18353 | hardcode_direct=$hardcode_direct | |
18354 | ||
18355 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18356 | # DIR into the resulting binary and the resulting library dependency is | |
18357 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18358 | # library is relocated. | |
18359 | hardcode_direct_absolute=$hardcode_direct_absolute | |
18360 | ||
18361 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18362 | # into the resulting binary. | |
18363 | hardcode_minus_L=$hardcode_minus_L | |
18364 | ||
18365 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18366 | # into the resulting binary. | |
18367 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18368 | ||
18369 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18370 | # into the library and all subsequent libraries and executables linked | |
18371 | # against it. | |
18372 | hardcode_automatic=$hardcode_automatic | |
18373 | ||
18374 | # Set to yes if linker adds runtime paths of dependent libraries | |
18375 | # to runtime path list. | |
18376 | inherit_rpath=$inherit_rpath | |
18377 | ||
18378 | # Whether libtool must link a program against all its dependency libraries. | |
18379 | link_all_deplibs=$link_all_deplibs | |
18380 | ||
18381 | # Fix the shell variable \$srcfile for the compiler. | |
18382 | fix_srcfile_path=$lt_fix_srcfile_path | |
18383 | ||
18384 | # Set to "yes" if exported symbols are required. | |
18385 | always_export_symbols=$always_export_symbols | |
18386 | ||
18387 | # The commands to list exported symbols. | |
18388 | export_symbols_cmds=$lt_export_symbols_cmds | |
18389 | ||
18390 | # Symbols that should not be listed in the preloaded symbols. | |
18391 | exclude_expsyms=$lt_exclude_expsyms | |
18392 | ||
18393 | # Symbols that must always be exported. | |
18394 | include_expsyms=$lt_include_expsyms | |
18395 | ||
18396 | # Commands necessary for linking programs (against libraries) with templates. | |
18397 | prelink_cmds=$lt_prelink_cmds | |
18398 | ||
18399 | # Specify filename containing input files. | |
18400 | file_list_spec=$lt_file_list_spec | |
18401 | ||
18402 | # How to hardcode a shared library path into an executable. | |
18403 | hardcode_action=$hardcode_action | |
18404 | ||
6b4a97ed PG |
18405 | # The directories searched by this compiler when creating a shared library. |
18406 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
18407 | ||
1cf3d07d SE |
18408 | # Dependencies to place before and after the objects being linked to |
18409 | # create a shared library. | |
18410 | predep_objects=$lt_predep_objects | |
18411 | postdep_objects=$lt_postdep_objects | |
18412 | predeps=$lt_predeps | |
18413 | postdeps=$lt_postdeps | |
18414 | ||
18415 | # The library search path used internally by the compiler when linking | |
18416 | # a shared library. | |
18417 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
18418 | ||
18419 | # ### END LIBTOOL CONFIG | |
18420 | ||
18421 | _LT_EOF | |
18422 | ||
18423 | case $host_os in | |
18424 | aix3*) | |
18425 | cat <<\_LT_EOF >> "$cfgfile" | |
18426 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18427 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18428 | # vanish in a puff of smoke. | |
18429 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18430 | COLLECT_NAMES= | |
18431 | export COLLECT_NAMES | |
18432 | fi | |
18433 | _LT_EOF | |
18434 | ;; | |
18435 | esac | |
18436 | ||
18437 | ||
18438 | ltmain="$ac_aux_dir/ltmain.sh" | |
18439 | ||
18440 | ||
18441 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18442 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18443 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18444 | # is reportedly fixed, but why not run on old versions too? | |
18445 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
18446 | || (rm -f "$cfgfile"; exit 1) | |
18447 | ||
18448 | case $xsi_shell in | |
18449 | yes) | |
18450 | cat << \_LT_EOF >> "$cfgfile" | |
6b4a97ed | 18451 | |
1cf3d07d SE |
18452 | # func_dirname file append nondir_replacement |
18453 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18454 | # otherwise set result to NONDIR_REPLACEMENT. | |
18455 | func_dirname () | |
18456 | { | |
18457 | case ${1} in | |
18458 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18459 | * ) func_dirname_result="${3}" ;; | |
18460 | esac | |
18461 | } | |
18462 | ||
18463 | # func_basename file | |
18464 | func_basename () | |
18465 | { | |
18466 | func_basename_result="${1##*/}" | |
18467 | } | |
18468 | ||
6b4a97ed PG |
18469 | # func_dirname_and_basename file append nondir_replacement |
18470 | # perform func_basename and func_dirname in a single function | |
18471 | # call: | |
18472 | # dirname: Compute the dirname of FILE. If nonempty, | |
18473 | # add APPEND to the result, otherwise set result | |
18474 | # to NONDIR_REPLACEMENT. | |
18475 | # value returned in "$func_dirname_result" | |
18476 | # basename: Compute filename of FILE. | |
18477 | # value retuned in "$func_basename_result" | |
18478 | # Implementation must be kept synchronized with func_dirname | |
18479 | # and func_basename. For efficiency, we do not delegate to | |
18480 | # those functions but instead duplicate the functionality here. | |
18481 | func_dirname_and_basename () | |
18482 | { | |
18483 | case ${1} in | |
18484 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18485 | * ) func_dirname_result="${3}" ;; | |
18486 | esac | |
18487 | func_basename_result="${1##*/}" | |
18488 | } | |
18489 | ||
1cf3d07d SE |
18490 | # func_stripname prefix suffix name |
18491 | # strip PREFIX and SUFFIX off of NAME. | |
18492 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18493 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18494 | # dot (in which case that matches only a dot). | |
18495 | func_stripname () | |
18496 | { | |
18497 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18498 | # positional parameters, so assign one to ordinary parameter first. | |
18499 | func_stripname_result=${3} | |
18500 | func_stripname_result=${func_stripname_result#"${1}"} | |
18501 | func_stripname_result=${func_stripname_result%"${2}"} | |
18502 | } | |
18503 | ||
18504 | # func_opt_split | |
18505 | func_opt_split () | |
18506 | { | |
18507 | func_opt_split_opt=${1%%=*} | |
18508 | func_opt_split_arg=${1#*=} | |
18509 | } | |
18510 | ||
18511 | # func_lo2o object | |
18512 | func_lo2o () | |
18513 | { | |
18514 | case ${1} in | |
18515 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18516 | *) func_lo2o_result=${1} ;; | |
18517 | esac | |
18518 | } | |
6b4a97ed PG |
18519 | |
18520 | # func_xform libobj-or-source | |
18521 | func_xform () | |
18522 | { | |
18523 | func_xform_result=${1%.*}.lo | |
18524 | } | |
18525 | ||
18526 | # func_arith arithmetic-term... | |
18527 | func_arith () | |
18528 | { | |
18529 | func_arith_result=$(( $* )) | |
18530 | } | |
18531 | ||
18532 | # func_len string | |
18533 | # STRING may not start with a hyphen. | |
18534 | func_len () | |
18535 | { | |
18536 | func_len_result=${#1} | |
18537 | } | |
18538 | ||
1cf3d07d SE |
18539 | _LT_EOF |
18540 | ;; | |
18541 | *) # Bourne compatible functions. | |
18542 | cat << \_LT_EOF >> "$cfgfile" | |
6b4a97ed | 18543 | |
1cf3d07d SE |
18544 | # func_dirname file append nondir_replacement |
18545 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18546 | # otherwise set result to NONDIR_REPLACEMENT. | |
18547 | func_dirname () | |
18548 | { | |
18549 | # Extract subdirectory from the argument. | |
18550 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
18551 | if test "X$func_dirname_result" = "X${1}"; then | |
18552 | func_dirname_result="${3}" | |
18553 | else | |
18554 | func_dirname_result="$func_dirname_result${2}" | |
18555 | fi | |
18556 | } | |
18557 | ||
18558 | # func_basename file | |
18559 | func_basename () | |
18560 | { | |
18561 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
18562 | } | |
18563 | ||
6b4a97ed | 18564 | |
1cf3d07d SE |
18565 | # func_stripname prefix suffix name |
18566 | # strip PREFIX and SUFFIX off of NAME. | |
18567 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18568 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18569 | # dot (in which case that matches only a dot). | |
18570 | # func_strip_suffix prefix name | |
18571 | func_stripname () | |
18572 | { | |
18573 | case ${2} in | |
18574 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
18575 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
18576 | *) func_stripname_result=`$ECHO "X${3}" \ | |
18577 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
18578 | esac | |
18579 | } | |
18580 | ||
18581 | # sed scripts: | |
18582 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18583 | my_sed_long_arg='1s/^-[^=]*=//' | |
18584 | ||
18585 | # func_opt_split | |
18586 | func_opt_split () | |
18587 | { | |
18588 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
18589 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
18590 | } | |
18591 | ||
18592 | # func_lo2o object | |
18593 | func_lo2o () | |
18594 | { | |
18595 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
18596 | } | |
6b4a97ed PG |
18597 | |
18598 | # func_xform libobj-or-source | |
18599 | func_xform () | |
18600 | { | |
18601 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
18602 | } | |
18603 | ||
18604 | # func_arith arithmetic-term... | |
18605 | func_arith () | |
18606 | { | |
18607 | func_arith_result=`expr "$@"` | |
18608 | } | |
18609 | ||
18610 | # func_len string | |
18611 | # STRING may not start with a hyphen. | |
18612 | func_len () | |
18613 | { | |
18614 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18615 | } | |
18616 | ||
1cf3d07d SE |
18617 | _LT_EOF |
18618 | esac | |
18619 | ||
18620 | case $lt_shell_append in | |
18621 | yes) | |
18622 | cat << \_LT_EOF >> "$cfgfile" | |
18623 | ||
18624 | # func_append var value | |
18625 | # Append VALUE to the end of shell variable VAR. | |
18626 | func_append () | |
18627 | { | |
18628 | eval "$1+=\$2" | |
18629 | } | |
18630 | _LT_EOF | |
18631 | ;; | |
18632 | *) | |
18633 | cat << \_LT_EOF >> "$cfgfile" | |
18634 | ||
18635 | # func_append var value | |
18636 | # Append VALUE to the end of shell variable VAR. | |
18637 | func_append () | |
18638 | { | |
18639 | eval "$1=\$$1\$2" | |
18640 | } | |
6b4a97ed | 18641 | |
1cf3d07d SE |
18642 | _LT_EOF |
18643 | ;; | |
18644 | esac | |
18645 | ||
18646 | ||
18647 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18648 | || (rm -f "$cfgfile"; exit 1) | |
18649 | ||
18650 | mv -f "$cfgfile" "$ofile" || | |
18651 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18652 | chmod +x "$ofile" | |
18653 | ||
18654 | ||
18655 | cat <<_LT_EOF >> "$ofile" | |
18656 | ||
18657 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
18658 | ||
18659 | # The linker used to build libraries. | |
18660 | LD=$lt_LD_FC | |
18661 | ||
18662 | # Commands used to build an old-style archive. | |
18663 | old_archive_cmds=$lt_old_archive_cmds_FC | |
18664 | ||
18665 | # A language specific compiler. | |
18666 | CC=$lt_compiler_FC | |
18667 | ||
18668 | # Is the compiler the GNU compiler? | |
18669 | with_gcc=$GCC_FC | |
18670 | ||
18671 | # Compiler flag to turn off builtin functions. | |
18672 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
18673 | ||
18674 | # How to pass a linker flag through the compiler. | |
18675 | wl=$lt_lt_prog_compiler_wl_FC | |
18676 | ||
18677 | # Additional compiler flags for building library objects. | |
18678 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
18679 | ||
18680 | # Compiler flag to prevent dynamic linking. | |
18681 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
18682 | ||
18683 | # Does compiler simultaneously support -c and -o options? | |
18684 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
18685 | ||
18686 | # Whether or not to add -lc for building shared libraries. | |
18687 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
18688 | ||
18689 | # Whether or not to disallow shared libs when runtime libs are static. | |
18690 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
18691 | ||
18692 | # Compiler flag to allow reflexive dlopens. | |
18693 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
18694 | ||
18695 | # Compiler flag to generate shared objects directly from archives. | |
18696 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
18697 | ||
18698 | # Whether the compiler copes with passing no objects directly. | |
18699 | compiler_needs_object=$lt_compiler_needs_object_FC | |
18700 | ||
18701 | # Create an old-style archive from a shared archive. | |
18702 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
18703 | ||
18704 | # Create a temporary old-style archive to link instead of a shared archive. | |
18705 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
18706 | ||
18707 | # Commands used to build a shared archive. | |
18708 | archive_cmds=$lt_archive_cmds_FC | |
18709 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
18710 | ||
18711 | # Commands used to build a loadable module if different from building | |
18712 | # a shared archive. | |
18713 | module_cmds=$lt_module_cmds_FC | |
18714 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
18715 | ||
18716 | # Whether we are building with GNU ld or not. | |
18717 | with_gnu_ld=$lt_with_gnu_ld_FC | |
18718 | ||
18719 | # Flag that allows shared libraries with undefined symbols to be built. | |
18720 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
18721 | ||
18722 | # Flag that enforces no undefined symbols. | |
18723 | no_undefined_flag=$lt_no_undefined_flag_FC | |
18724 | ||
18725 | # Flag to hardcode \$libdir into a binary during linking. | |
18726 | # This must work even if \$libdir does not exist | |
18727 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
18728 | ||
18729 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18730 | # during linking. This must work even if \$libdir does not exist. | |
18731 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
18732 | ||
18733 | # Whether we need a single "-rpath" flag with a separated argument. | |
18734 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
18735 | ||
18736 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18737 | # DIR into the resulting binary. | |
18738 | hardcode_direct=$hardcode_direct_FC | |
18739 | ||
18740 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18741 | # DIR into the resulting binary and the resulting library dependency is | |
18742 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18743 | # library is relocated. | |
18744 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
18745 | ||
18746 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18747 | # into the resulting binary. | |
18748 | hardcode_minus_L=$hardcode_minus_L_FC | |
18749 | ||
18750 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18751 | # into the resulting binary. | |
18752 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
18753 | ||
18754 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18755 | # into the library and all subsequent libraries and executables linked | |
18756 | # against it. | |
18757 | hardcode_automatic=$hardcode_automatic_FC | |
18758 | ||
18759 | # Set to yes if linker adds runtime paths of dependent libraries | |
18760 | # to runtime path list. | |
18761 | inherit_rpath=$inherit_rpath_FC | |
18762 | ||
18763 | # Whether libtool must link a program against all its dependency libraries. | |
18764 | link_all_deplibs=$link_all_deplibs_FC | |
18765 | ||
18766 | # Fix the shell variable \$srcfile for the compiler. | |
18767 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
18768 | ||
18769 | # Set to "yes" if exported symbols are required. | |
18770 | always_export_symbols=$always_export_symbols_FC | |
18771 | ||
18772 | # The commands to list exported symbols. | |
18773 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
18774 | ||
18775 | # Symbols that should not be listed in the preloaded symbols. | |
18776 | exclude_expsyms=$lt_exclude_expsyms_FC | |
18777 | ||
18778 | # Symbols that must always be exported. | |
18779 | include_expsyms=$lt_include_expsyms_FC | |
18780 | ||
18781 | # Commands necessary for linking programs (against libraries) with templates. | |
18782 | prelink_cmds=$lt_prelink_cmds_FC | |
18783 | ||
18784 | # Specify filename containing input files. | |
18785 | file_list_spec=$lt_file_list_spec_FC | |
18786 | ||
18787 | # How to hardcode a shared library path into an executable. | |
18788 | hardcode_action=$hardcode_action_FC | |
18789 | ||
6b4a97ed PG |
18790 | # The directories searched by this compiler when creating a shared library. |
18791 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
18792 | ||
1cf3d07d SE |
18793 | # Dependencies to place before and after the objects being linked to |
18794 | # create a shared library. | |
18795 | predep_objects=$lt_predep_objects_FC | |
18796 | postdep_objects=$lt_postdep_objects_FC | |
18797 | predeps=$lt_predeps_FC | |
18798 | postdeps=$lt_postdeps_FC | |
18799 | ||
18800 | # The library search path used internally by the compiler when linking | |
18801 | # a shared library. | |
18802 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
18803 | ||
18804 | # ### END LIBTOOL TAG CONFIG: FC | |
18805 | _LT_EOF | |
18806 | ||
18cbfd85 | 18807 | ;; |
5213506e | 18808 | "gstdint.h":C) |
18cbfd85 PB |
18809 | if test "$GCC" = yes; then |
18810 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
18811 | else | |
18812 | echo "/* generated for $CC */" > tmp-stdint.h | |
18813 | fi | |
18814 | ||
18815 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18816 | ||
18817 | #ifndef GCC_GENERATED_STDINT_H | |
18818 | #define GCC_GENERATED_STDINT_H 1 | |
18819 | ||
18820 | #include <sys/types.h> | |
18821 | EOF | |
18822 | ||
18823 | if test "$acx_cv_header_stdint" != stdint.h; then | |
18824 | echo "#include <stddef.h>" >> tmp-stdint.h | |
18825 | fi | |
18826 | if test "$acx_cv_header_stdint" != stddef.h; then | |
18827 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
18828 | fi | |
18829 | ||
18830 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18831 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
18832 | #ifdef __int8_t_defined | |
18833 | #define _INT8_T | |
18834 | #define _INT16_T | |
18835 | #define _INT32_T | |
18836 | #endif | |
18837 | #ifdef __uint32_t_defined | |
18838 | #define _UINT32_T | |
18839 | #endif | |
18840 | ||
18841 | EOF | |
18842 | ||
18843 | # ----------------- done header, emit basic int types ------------- | |
18844 | if test "$acx_cv_header_stdint" = stddef.h; then | |
18845 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18846 | ||
18847 | #ifndef _UINT8_T | |
18848 | #define _UINT8_T | |
1cf3d07d SE |
18849 | #ifndef __uint8_t_defined |
18850 | #define __uint8_t_defined | |
18cbfd85 PB |
18851 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
18852 | #endif | |
1cf3d07d | 18853 | #endif |
18cbfd85 PB |
18854 | |
18855 | #ifndef _UINT16_T | |
18856 | #define _UINT16_T | |
1cf3d07d SE |
18857 | #ifndef __uint16_t_defined |
18858 | #define __uint16_t_defined | |
18cbfd85 PB |
18859 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
18860 | #endif | |
1cf3d07d | 18861 | #endif |
18cbfd85 PB |
18862 | |
18863 | #ifndef _UINT32_T | |
18864 | #define _UINT32_T | |
1cf3d07d SE |
18865 | #ifndef __uint32_t_defined |
18866 | #define __uint32_t_defined | |
18cbfd85 PB |
18867 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
18868 | #endif | |
1cf3d07d | 18869 | #endif |
18cbfd85 PB |
18870 | |
18871 | #ifndef _INT8_T | |
18872 | #define _INT8_T | |
1cf3d07d SE |
18873 | #ifndef __int8_t_defined |
18874 | #define __int8_t_defined | |
18cbfd85 PB |
18875 | typedef $acx_cv_type_int8_t int8_t; |
18876 | #endif | |
1cf3d07d | 18877 | #endif |
18cbfd85 PB |
18878 | |
18879 | #ifndef _INT16_T | |
18880 | #define _INT16_T | |
1cf3d07d SE |
18881 | #ifndef __int16_t_defined |
18882 | #define __int16_t_defined | |
18cbfd85 PB |
18883 | typedef $acx_cv_type_int16_t int16_t; |
18884 | #endif | |
1cf3d07d | 18885 | #endif |
18cbfd85 PB |
18886 | |
18887 | #ifndef _INT32_T | |
18888 | #define _INT32_T | |
1cf3d07d SE |
18889 | #ifndef __int32_t_defined |
18890 | #define __int32_t_defined | |
18cbfd85 PB |
18891 | typedef $acx_cv_type_int32_t int32_t; |
18892 | #endif | |
1cf3d07d | 18893 | #endif |
18cbfd85 PB |
18894 | EOF |
18895 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
18896 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18897 | ||
18898 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
18899 | #ifndef _INT8_T | |
18900 | #define _INT8_T | |
18901 | #endif | |
18902 | #ifndef _INT16_T | |
18903 | #define _INT16_T | |
18904 | #endif | |
18905 | #ifndef _INT32_T | |
18906 | #define _INT32_T | |
18907 | #endif | |
18908 | ||
18909 | #ifndef _UINT8_T | |
18910 | #define _UINT8_T | |
1cf3d07d SE |
18911 | #ifndef __uint8_t_defined |
18912 | #define __uint8_t_defined | |
18cbfd85 PB |
18913 | typedef u_int8_t uint8_t; |
18914 | #endif | |
1cf3d07d | 18915 | #endif |
18cbfd85 PB |
18916 | |
18917 | #ifndef _UINT16_T | |
18918 | #define _UINT16_T | |
1cf3d07d SE |
18919 | #ifndef __uint16_t_defined |
18920 | #define __uint16_t_defined | |
18cbfd85 PB |
18921 | typedef u_int16_t uint16_t; |
18922 | #endif | |
1cf3d07d | 18923 | #endif |
18cbfd85 PB |
18924 | |
18925 | #ifndef _UINT32_T | |
18926 | #define _UINT32_T | |
1cf3d07d SE |
18927 | #ifndef __uint32_t_defined |
18928 | #define __uint32_t_defined | |
18cbfd85 PB |
18929 | typedef u_int32_t uint32_t; |
18930 | #endif | |
1cf3d07d | 18931 | #endif |
18cbfd85 PB |
18932 | EOF |
18933 | else | |
18934 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18935 | ||
18936 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
18937 | #ifndef _INT8_T | |
18938 | #define _INT8_T | |
18939 | #endif | |
18940 | #ifndef _INT16_T | |
18941 | #define _INT16_T | |
18942 | #endif | |
18943 | #ifndef _INT32_T | |
18944 | #define _INT32_T | |
18945 | #endif | |
18946 | #ifndef _UINT8_T | |
18947 | #define _UINT8_T | |
18948 | #endif | |
18949 | #ifndef _UINT16_T | |
18950 | #define _UINT16_T | |
18951 | #endif | |
18952 | #ifndef _UINT32_T | |
18953 | #define _UINT32_T | |
18954 | #endif | |
18955 | EOF | |
18956 | fi | |
18957 | ||
18958 | # ------------- done basic int types, emit int64_t types ------------ | |
18959 | if test "$ac_cv_type_uint64_t" = yes; then | |
18960 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18961 | ||
18962 | /* system headers have good uint64_t and int64_t */ | |
18963 | #ifndef _INT64_T | |
18964 | #define _INT64_T | |
18965 | #endif | |
18966 | #ifndef _UINT64_T | |
18967 | #define _UINT64_T | |
18968 | #endif | |
18969 | EOF | |
18970 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
18971 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18972 | ||
18973 | /* system headers have an u_int64_t (and int64_t) */ | |
18974 | #ifndef _INT64_T | |
18975 | #define _INT64_T | |
18976 | #endif | |
18977 | #ifndef _UINT64_T | |
18978 | #define _UINT64_T | |
1cf3d07d SE |
18979 | #ifndef __uint64_t_defined |
18980 | #define __uint64_t_defined | |
18cbfd85 PB |
18981 | typedef u_int64_t uint64_t; |
18982 | #endif | |
1cf3d07d | 18983 | #endif |
18cbfd85 PB |
18984 | EOF |
18985 | elif test -n "$acx_cv_type_int64_t"; then | |
18986 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18987 | ||
18988 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
18989 | #ifndef _INT64_T | |
18990 | #define _INT64_T | |
18991 | typedef $acx_cv_type_int64_t int64_t; | |
18992 | #endif | |
18993 | #ifndef _UINT64_T | |
18994 | #define _UINT64_T | |
1cf3d07d SE |
18995 | #ifndef __uint64_t_defined |
18996 | #define __uint64_t_defined | |
18cbfd85 PB |
18997 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
18998 | #endif | |
1cf3d07d | 18999 | #endif |
18cbfd85 PB |
19000 | EOF |
19001 | else | |
19002 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19003 | ||
19004 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
19005 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
19006 | #ifndef _INT64_T | |
19007 | #define _INT64_T | |
1cf3d07d | 19008 | #ifndef __int64_t_defined |
18cbfd85 PB |
19009 | typedef long long int64_t; |
19010 | #endif | |
1cf3d07d | 19011 | #endif |
18cbfd85 PB |
19012 | #ifndef _UINT64_T |
19013 | #define _UINT64_T | |
19014 | typedef unsigned long long uint64_t; | |
19015 | #endif | |
19016 | ||
19017 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
19018 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
19019 | does not implement __extension__. But that compiler doesn't define | |
19020 | __GNUC_MINOR__. */ | |
19021 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
19022 | # define __extension__ | |
19023 | # endif | |
19024 | ||
19025 | # ifndef _INT64_T | |
19026 | # define _INT64_T | |
19027 | __extension__ typedef long long int64_t; | |
19028 | # endif | |
19029 | # ifndef _UINT64_T | |
19030 | # define _UINT64_T | |
19031 | __extension__ typedef unsigned long long uint64_t; | |
19032 | # endif | |
19033 | ||
19034 | #elif !defined __STRICT_ANSI__ | |
19035 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
19036 | ||
19037 | # ifndef _INT64_T | |
19038 | # define _INT64_T | |
19039 | typedef __int64 int64_t; | |
19040 | # endif | |
19041 | # ifndef _UINT64_T | |
19042 | # define _UINT64_T | |
19043 | typedef unsigned __int64 uint64_t; | |
19044 | # endif | |
19045 | # endif /* compiler */ | |
19046 | ||
19047 | #endif /* ANSI version */ | |
19048 | EOF | |
19049 | fi | |
19050 | ||
19051 | # ------------- done int64_t types, emit intptr types ------------ | |
19052 | if test "$ac_cv_type_uintptr_t" != yes; then | |
19053 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19054 | ||
19055 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
1cf3d07d | 19056 | #ifndef __uintptr_t_defined |
18cbfd85 | 19057 | typedef u$acx_cv_type_intptr_t uintptr_t; |
1cf3d07d SE |
19058 | #endif |
19059 | #ifndef __intptr_t_defined | |
18cbfd85 | 19060 | typedef $acx_cv_type_intptr_t intptr_t; |
1cf3d07d | 19061 | #endif |
18cbfd85 PB |
19062 | EOF |
19063 | fi | |
19064 | ||
19065 | # ------------- done intptr types, emit int_least types ------------ | |
19066 | if test "$ac_cv_type_int_least32_t" != yes; then | |
19067 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19068 | ||
19069 | /* Define int_least types */ | |
19070 | typedef int8_t int_least8_t; | |
19071 | typedef int16_t int_least16_t; | |
19072 | typedef int32_t int_least32_t; | |
19073 | #ifdef _INT64_T | |
19074 | typedef int64_t int_least64_t; | |
19075 | #endif | |
19076 | ||
19077 | typedef uint8_t uint_least8_t; | |
19078 | typedef uint16_t uint_least16_t; | |
19079 | typedef uint32_t uint_least32_t; | |
19080 | #ifdef _UINT64_T | |
19081 | typedef uint64_t uint_least64_t; | |
19082 | #endif | |
19083 | EOF | |
19084 | fi | |
19085 | ||
19086 | # ------------- done intptr types, emit int_fast types ------------ | |
19087 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
19088 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19089 | ||
19090 | /* Define int_fast types. short is often slow */ | |
19091 | typedef int8_t int_fast8_t; | |
19092 | typedef int int_fast16_t; | |
19093 | typedef int32_t int_fast32_t; | |
19094 | #ifdef _INT64_T | |
19095 | typedef int64_t int_fast64_t; | |
19096 | #endif | |
19097 | ||
19098 | typedef uint8_t uint_fast8_t; | |
19099 | typedef unsigned int uint_fast16_t; | |
19100 | typedef uint32_t uint_fast32_t; | |
19101 | #ifdef _UINT64_T | |
19102 | typedef uint64_t uint_fast64_t; | |
19103 | #endif | |
19104 | EOF | |
19105 | fi | |
19106 | ||
19107 | if test "$ac_cv_type_uintmax_t" != yes; then | |
19108 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19109 | ||
19110 | /* Define intmax based on what we found */ | |
19111 | #ifdef _INT64_T | |
19112 | typedef int64_t intmax_t; | |
19113 | #else | |
19114 | typedef long intmax_t; | |
19115 | #endif | |
19116 | #ifdef _UINT64_T | |
19117 | typedef uint64_t uintmax_t; | |
19118 | #else | |
19119 | typedef unsigned long uintmax_t; | |
19120 | #endif | |
19121 | EOF | |
19122 | fi | |
19123 | ||
19124 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19125 | ||
19126 | #endif /* GCC_GENERATED_STDINT_H */ | |
19127 | EOF | |
19128 | ||
19129 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
19130 | rm -f tmp-stdint.h | |
19131 | else | |
19132 | mv -f tmp-stdint.h gstdint.h | |
19133 | fi | |
19134 | ||
953ff289 | 19135 | ;; |
5213506e | 19136 | |
953ff289 | 19137 | esac |
5213506e | 19138 | done # for ac_tag |
953ff289 | 19139 | |
953ff289 | 19140 | |
5213506e | 19141 | as_fn_exit 0 |
953ff289 | 19142 | _ACEOF |
953ff289 DN |
19143 | ac_clean_files=$ac_clean_files_save |
19144 | ||
5213506e RW |
19145 | test $ac_write_fail = 0 || |
19146 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
19147 | ||
953ff289 DN |
19148 | |
19149 | # configure is writing to config.log, and then calls config.status. | |
19150 | # config.status does its own redirection, appending to config.log. | |
19151 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19152 | # by configure, so config.status won't be able to write to it; its | |
19153 | # output is simply discarded. So we exec the FD to /dev/null, | |
19154 | # effectively closing config.log, so it can be properly (re)opened and | |
19155 | # appended to by config.status. When coming back to configure, we | |
19156 | # need to make the FD available again. | |
19157 | if test "$no_create" != yes; then | |
19158 | ac_cs_success=: | |
19159 | ac_config_status_args= | |
19160 | test "$silent" = yes && | |
19161 | ac_config_status_args="$ac_config_status_args --quiet" | |
19162 | exec 5>/dev/null | |
19163 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19164 | exec 5>>config.log | |
19165 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19166 | # would make configure fail if this is the last instruction. | |
5213506e RW |
19167 | $ac_cs_success || as_fn_exit $? |
19168 | fi | |
19169 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19171 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
953ff289 DN |
19172 | fi |
19173 |