]>
Commit | Line | Data |
---|---|---|
953ff289 DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
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. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
953ff289 DN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
43e02a8a RW |
199 | |
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
5213506e RW |
207 | test \$(( 1 + 1 )) = 2 || exit 1" |
208 | if (eval "$as_required") 2>/dev/null; then : | |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
953ff289 | 219 | do |
5213506e RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
5213506e RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
953ff289 | 274 | else |
5213506e RW |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
953ff289 | 279 | fi |
5213506e RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
22e05272 JM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
5213506e RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
22e05272 JM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
5213506e RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 415 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
416 | as_fn_error () |
417 | { | |
22e05272 JM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
953ff289 | 426 | |
5213506e RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
953ff289 DN |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
5213506e | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
953ff289 DN |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
5213506e RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
953ff289 | 445 | |
5213506e | 446 | as_me=`$as_basename -- "$0" || |
953ff289 DN |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
953ff289 | 464 | |
953ff289 DN |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
953ff289 | 472 | |
5213506e RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
953ff289 | 482 | sed ' |
5213506e RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
953ff289 | 487 | N |
5213506e RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
953ff289 | 490 | t loop |
5213506e | 491 | s/-\n.*// |
953ff289 | 492 | ' >$as_me.lineno && |
5213506e RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
953ff289 | 495 | |
22e05272 JM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
953ff289 DN |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
953ff289 DN |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
5213506e RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
953ff289 DN |
519 | esac |
520 | ||
5213506e RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
953ff289 | 524 | else |
5213506e RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
953ff289 | 527 | fi |
5213506e RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
953ff289 | 530 | as_ln_s='ln -s' |
5213506e RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 534 | # In both cases, we have to default to `cp -pR'. |
5213506e | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
5213506e RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
953ff289 | 541 | fi |
953ff289 | 542 | else |
22e05272 | 543 | as_ln_s='cp -pR' |
953ff289 | 544 | fi |
5213506e RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
953ff289 DN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
5213506e | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
953ff289 DN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
953ff289 DN |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
1cf3d07d SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
1cf3d07d | 566 | |
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
5213506e | 569 | |
953ff289 | 570 | # Name of the host. |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
953ff289 DN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
953ff289 DN |
575 | # |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
5213506e | 579 | ac_clean_files= |
953ff289 | 580 | ac_config_libobj_dir=. |
5213506e | 581 | LIBOBJS= |
953ff289 DN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
953ff289 DN |
586 | |
587 | # Identity of this package. | |
f1f3453e | 588 | PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library' |
953ff289 DN |
589 | PACKAGE_TARNAME='libgomp' |
590 | PACKAGE_VERSION='1.0' | |
f1f3453e | 591 | PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0' |
953ff289 | 592 | PACKAGE_BUGREPORT='' |
5213506e | 593 | PACKAGE_URL='http://www.gnu.org/software/libgomp/' |
953ff289 DN |
594 | |
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
5213506e | 598 | #ifdef HAVE_SYS_TYPES_H |
953ff289 DN |
599 | # include <sys/types.h> |
600 | #endif | |
5213506e | 601 | #ifdef HAVE_SYS_STAT_H |
953ff289 DN |
602 | # include <sys/stat.h> |
603 | #endif | |
5213506e | 604 | #ifdef STDC_HEADERS |
953ff289 DN |
605 | # include <stdlib.h> |
606 | # include <stddef.h> | |
607 | #else | |
5213506e | 608 | # ifdef HAVE_STDLIB_H |
953ff289 DN |
609 | # include <stdlib.h> |
610 | # endif | |
611 | #endif | |
5213506e RW |
612 | #ifdef HAVE_STRING_H |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
953ff289 DN |
614 | # include <memory.h> |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
5213506e | 618 | #ifdef HAVE_STRINGS_H |
953ff289 DN |
619 | # include <strings.h> |
620 | #endif | |
5213506e | 621 | #ifdef HAVE_INTTYPES_H |
953ff289 | 622 | # include <inttypes.h> |
953ff289 | 623 | #endif |
5213506e RW |
624 | #ifdef HAVE_STDINT_H |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
953ff289 DN |
628 | # include <unistd.h> |
629 | #endif" | |
630 | ||
b8d89b03 ML |
631 | ac_header_list= |
632 | ac_func_list= | |
5213506e RW |
633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
636 | LIBOBJS | |
3c36aa6b | 637 | get_gcc_base_ver |
5213506e RW |
638 | OMP_NEST_LOCK_25_KIND |
639 | OMP_LOCK_25_KIND | |
640 | OMP_NEST_LOCK_25_ALIGN | |
641 | OMP_NEST_LOCK_25_SIZE | |
642 | OMP_LOCK_25_ALIGN | |
643 | OMP_LOCK_25_SIZE | |
644 | OMP_NEST_LOCK_KIND | |
645 | OMP_LOCK_KIND | |
646 | OMP_NEST_LOCK_ALIGN | |
647 | OMP_NEST_LOCK_SIZE | |
648 | OMP_LOCK_ALIGN | |
649 | OMP_LOCK_SIZE | |
650 | USE_FORTRAN_FALSE | |
651 | USE_FORTRAN_TRUE | |
652 | link_gomp | |
653 | XLDFLAGS | |
654 | XCFLAGS | |
655 | config_path | |
6d28b933 RO |
656 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE |
657 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE | |
658 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE | |
659 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE | |
5213506e RW |
660 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE |
661 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE | |
662 | OPT_LDFLAGS | |
663 | SECTION_LDFLAGS | |
b2b40051 MJ |
664 | PLUGIN_HSA_FALSE |
665 | PLUGIN_HSA_TRUE | |
41dbbb37 TS |
666 | PLUGIN_NVPTX_FALSE |
667 | PLUGIN_NVPTX_TRUE | |
668 | offload_additional_lib_paths | |
669 | offload_additional_options | |
b2b40051 MJ |
670 | PLUGIN_HSA_LIBS |
671 | PLUGIN_HSA_LDFLAGS | |
672 | PLUGIN_HSA_CPPFLAGS | |
673 | PLUGIN_HSA | |
674 | HSA_RUNTIME_LIB | |
675 | HSA_RUNTIME_INCLUDE | |
41dbbb37 TS |
676 | PLUGIN_NVPTX_LIBS |
677 | PLUGIN_NVPTX_LDFLAGS | |
678 | PLUGIN_NVPTX_CPPFLAGS | |
679 | PLUGIN_NVPTX | |
680 | CUDA_DRIVER_LIB | |
681 | CUDA_DRIVER_INCLUDE | |
682 | offload_targets | |
5213506e RW |
683 | libtool_VERSION |
684 | ac_ct_FC | |
685 | FCFLAGS | |
686 | FC | |
687 | MAINT | |
688 | MAINTAINER_MODE_FALSE | |
689 | MAINTAINER_MODE_TRUE | |
690 | enable_static | |
691 | enable_shared | |
7de6ba7a | 692 | lt_host_flags |
5213506e RW |
693 | CPP |
694 | OTOOL64 | |
695 | OTOOL | |
696 | LIPO | |
697 | NMEDIT | |
698 | DSYMUTIL | |
5213506e RW |
699 | OBJDUMP |
700 | LN_S | |
701 | NM | |
702 | ac_ct_DUMPBIN | |
703 | DUMPBIN | |
704 | LD | |
705 | FGREP | |
706 | EGREP | |
707 | GREP | |
708 | SED | |
709 | LIBTOOL | |
710 | BUILD_INFO_FALSE | |
711 | BUILD_INFO_TRUE | |
712 | PERL | |
713 | RANLIB | |
714 | AR | |
715 | am__fastdepCC_FALSE | |
716 | am__fastdepCC_TRUE | |
717 | CCDEPMODE | |
f96b7f1f | 718 | am__nodep |
5213506e RW |
719 | AMDEPBACKSLASH |
720 | AMDEP_FALSE | |
721 | AMDEP_TRUE | |
722 | am__quote | |
723 | am__include | |
724 | DEPDIR | |
725 | OBJEXT | |
726 | EXEEXT | |
727 | ac_ct_CC | |
728 | CPPFLAGS | |
729 | LDFLAGS | |
730 | CFLAGS | |
731 | CC | |
732 | toolexeclibdir | |
733 | toolexecdir | |
734 | multi_basedir | |
22e05272 JM |
735 | AM_BACKSLASH |
736 | AM_DEFAULT_VERBOSITY | |
737 | AM_DEFAULT_V | |
738 | AM_V | |
5213506e RW |
739 | am__untar |
740 | am__tar | |
741 | AMTAR | |
742 | am__leading_dot | |
743 | SET_MAKE | |
744 | AWK | |
745 | mkdir_p | |
746 | MKDIR_P | |
747 | INSTALL_STRIP_PROGRAM | |
748 | STRIP | |
749 | install_sh | |
750 | MAKEINFO | |
751 | AUTOHEADER | |
752 | AUTOMAKE | |
753 | AUTOCONF | |
754 | ACLOCAL | |
755 | VERSION | |
756 | PACKAGE | |
757 | CYGPATH_W | |
758 | am__isrc | |
759 | INSTALL_DATA | |
760 | INSTALL_SCRIPT | |
761 | INSTALL_PROGRAM | |
762 | target_os | |
763 | target_vendor | |
764 | target_cpu | |
765 | target | |
766 | host_os | |
767 | host_vendor | |
768 | host_cpu | |
769 | host | |
770 | build_os | |
771 | build_vendor | |
772 | build_cpu | |
773 | build | |
774 | GENINSRC_FALSE | |
775 | GENINSRC_TRUE | |
776 | target_alias | |
777 | host_alias | |
778 | build_alias | |
779 | LIBS | |
780 | ECHO_T | |
781 | ECHO_N | |
782 | ECHO_C | |
783 | DEFS | |
784 | mandir | |
785 | localedir | |
786 | libdir | |
787 | psdir | |
788 | pdfdir | |
789 | dvidir | |
790 | htmldir | |
791 | infodir | |
792 | docdir | |
793 | oldincludedir | |
794 | includedir | |
795 | localstatedir | |
796 | sharedstatedir | |
797 | sysconfdir | |
798 | datadir | |
799 | datarootdir | |
800 | libexecdir | |
801 | sbindir | |
802 | bindir | |
803 | program_transform_name | |
804 | prefix | |
805 | exec_prefix | |
806 | PACKAGE_URL | |
807 | PACKAGE_BUGREPORT | |
808 | PACKAGE_STRING | |
809 | PACKAGE_VERSION | |
810 | PACKAGE_TARNAME | |
811 | PACKAGE_NAME | |
812 | PATH_SEPARATOR | |
813 | SHELL' | |
953ff289 | 814 | ac_subst_files='' |
5213506e RW |
815 | ac_user_opts=' |
816 | enable_option_checking | |
817 | enable_version_specific_runtime_libs | |
818 | enable_generated_files_in_srcdir | |
22e05272 | 819 | enable_silent_rules |
5213506e RW |
820 | enable_multilib |
821 | enable_dependency_tracking | |
822 | enable_shared | |
823 | enable_static | |
824 | with_pic | |
825 | enable_fast_install | |
826 | with_gnu_ld | |
827 | enable_libtool_lock | |
828 | enable_maintainer_mode | |
41dbbb37 TS |
829 | with_cuda_driver |
830 | with_cuda_driver_include | |
831 | with_cuda_driver_lib | |
b2b40051 MJ |
832 | with_hsa_runtime |
833 | with_hsa_runtime_include | |
834 | with_hsa_runtime_lib | |
5213506e RW |
835 | enable_linux_futex |
836 | enable_tls | |
837 | enable_symvers | |
efe33ced | 838 | enable_cet |
3c36aa6b | 839 | with_gcc_major_version_only |
5213506e RW |
840 | ' |
841 | ac_precious_vars='build_alias | |
842 | host_alias | |
843 | target_alias | |
844 | CPP | |
845 | CPPFLAGS | |
846 | FC | |
847 | FCFLAGS | |
848 | LDFLAGS | |
849 | LIBS' | |
850 | ||
953ff289 DN |
851 | |
852 | # Initialize some variables set by options. | |
853 | ac_init_help= | |
854 | ac_init_version=false | |
5213506e RW |
855 | ac_unrecognized_opts= |
856 | ac_unrecognized_sep= | |
953ff289 DN |
857 | # The variables have the same names as the options, with |
858 | # dashes changed to underlines. | |
859 | cache_file=/dev/null | |
860 | exec_prefix=NONE | |
861 | no_create= | |
862 | no_recursion= | |
863 | prefix=NONE | |
864 | program_prefix=NONE | |
865 | program_suffix=NONE | |
866 | program_transform_name=s,x,x, | |
867 | silent= | |
868 | site= | |
869 | srcdir= | |
870 | verbose= | |
871 | x_includes=NONE | |
872 | x_libraries=NONE | |
873 | ||
874 | # Installation directory options. | |
875 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
876 | # and all the variables that are supposed to be based on exec_prefix | |
877 | # by default will actually change. | |
878 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 879 | # (The list follows the same order as the GNU Coding Standards.) |
953ff289 DN |
880 | bindir='${exec_prefix}/bin' |
881 | sbindir='${exec_prefix}/sbin' | |
882 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
883 | datarootdir='${prefix}/share' |
884 | datadir='${datarootdir}' | |
953ff289 DN |
885 | sysconfdir='${prefix}/etc' |
886 | sharedstatedir='${prefix}/com' | |
887 | localstatedir='${prefix}/var' | |
953ff289 DN |
888 | includedir='${prefix}/include' |
889 | oldincludedir='/usr/include' | |
5213506e RW |
890 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
891 | infodir='${datarootdir}/info' | |
892 | htmldir='${docdir}' | |
893 | dvidir='${docdir}' | |
894 | pdfdir='${docdir}' | |
895 | psdir='${docdir}' | |
896 | libdir='${exec_prefix}/lib' | |
897 | localedir='${datarootdir}/locale' | |
898 | mandir='${datarootdir}/man' | |
953ff289 DN |
899 | |
900 | ac_prev= | |
5213506e | 901 | ac_dashdash= |
953ff289 DN |
902 | for ac_option |
903 | do | |
904 | # If the previous option needs an argument, assign it. | |
905 | if test -n "$ac_prev"; then | |
5213506e | 906 | eval $ac_prev=\$ac_option |
953ff289 DN |
907 | ac_prev= |
908 | continue | |
909 | fi | |
910 | ||
5213506e | 911 | case $ac_option in |
22e05272 JM |
912 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
913 | *=) ac_optarg= ;; | |
914 | *) ac_optarg=yes ;; | |
5213506e | 915 | esac |
953ff289 DN |
916 | |
917 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
918 | ||
5213506e RW |
919 | case $ac_dashdash$ac_option in |
920 | --) | |
921 | ac_dashdash=yes ;; | |
953ff289 DN |
922 | |
923 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
924 | ac_prev=bindir ;; | |
925 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
926 | bindir=$ac_optarg ;; | |
927 | ||
928 | -build | --build | --buil | --bui | --bu) | |
929 | ac_prev=build_alias ;; | |
930 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
931 | build_alias=$ac_optarg ;; | |
932 | ||
933 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
934 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
935 | ac_prev=cache_file ;; | |
936 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
937 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
938 | cache_file=$ac_optarg ;; | |
939 | ||
940 | --config-cache | -C) | |
941 | cache_file=config.cache ;; | |
942 | ||
5213506e | 943 | -datadir | --datadir | --datadi | --datad) |
953ff289 | 944 | ac_prev=datadir ;; |
5213506e | 945 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
953ff289 DN |
946 | datadir=$ac_optarg ;; |
947 | ||
5213506e RW |
948 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
949 | | --dataroo | --dataro | --datar) | |
950 | ac_prev=datarootdir ;; | |
951 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
952 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
953 | datarootdir=$ac_optarg ;; | |
954 | ||
953ff289 | 955 | -disable-* | --disable-*) |
5213506e | 956 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
953ff289 | 957 | # Reject names that are not valid shell variable names. |
5213506e | 958 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 959 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
960 | ac_useropt_orig=$ac_useropt |
961 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
962 | case $ac_user_opts in | |
963 | *" | |
964 | "enable_$ac_useropt" | |
965 | "*) ;; | |
966 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
967 | ac_unrecognized_sep=', ';; | |
968 | esac | |
969 | eval enable_$ac_useropt=no ;; | |
970 | ||
971 | -docdir | --docdir | --docdi | --doc | --do) | |
972 | ac_prev=docdir ;; | |
973 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
974 | docdir=$ac_optarg ;; | |
975 | ||
976 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
977 | ac_prev=dvidir ;; | |
978 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
979 | dvidir=$ac_optarg ;; | |
953ff289 DN |
980 | |
981 | -enable-* | --enable-*) | |
5213506e | 982 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
953ff289 | 983 | # Reject names that are not valid shell variable names. |
5213506e | 984 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 985 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
986 | ac_useropt_orig=$ac_useropt |
987 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
988 | case $ac_user_opts in | |
989 | *" | |
990 | "enable_$ac_useropt" | |
991 | "*) ;; | |
992 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
993 | ac_unrecognized_sep=', ';; | |
953ff289 | 994 | esac |
5213506e | 995 | eval enable_$ac_useropt=\$ac_optarg ;; |
953ff289 DN |
996 | |
997 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
998 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
999 | | --exec | --exe | --ex) | |
1000 | ac_prev=exec_prefix ;; | |
1001 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1002 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1003 | | --exec=* | --exe=* | --ex=*) | |
1004 | exec_prefix=$ac_optarg ;; | |
1005 | ||
1006 | -gas | --gas | --ga | --g) | |
1007 | # Obsolete; use --with-gas. | |
1008 | with_gas=yes ;; | |
1009 | ||
1010 | -help | --help | --hel | --he | -h) | |
1011 | ac_init_help=long ;; | |
1012 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1013 | ac_init_help=recursive ;; | |
1014 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1015 | ac_init_help=short ;; | |
1016 | ||
1017 | -host | --host | --hos | --ho) | |
1018 | ac_prev=host_alias ;; | |
1019 | -host=* | --host=* | --hos=* | --ho=*) | |
1020 | host_alias=$ac_optarg ;; | |
1021 | ||
5213506e RW |
1022 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1023 | ac_prev=htmldir ;; | |
1024 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1025 | | --ht=*) | |
1026 | htmldir=$ac_optarg ;; | |
1027 | ||
953ff289 DN |
1028 | -includedir | --includedir | --includedi | --included | --include \ |
1029 | | --includ | --inclu | --incl | --inc) | |
1030 | ac_prev=includedir ;; | |
1031 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1032 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1033 | includedir=$ac_optarg ;; | |
1034 | ||
1035 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1036 | ac_prev=infodir ;; | |
1037 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1038 | infodir=$ac_optarg ;; | |
1039 | ||
1040 | -libdir | --libdir | --libdi | --libd) | |
1041 | ac_prev=libdir ;; | |
1042 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1043 | libdir=$ac_optarg ;; | |
1044 | ||
1045 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1046 | | --libexe | --libex | --libe) | |
1047 | ac_prev=libexecdir ;; | |
1048 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1049 | | --libexe=* | --libex=* | --libe=*) | |
1050 | libexecdir=$ac_optarg ;; | |
1051 | ||
5213506e RW |
1052 | -localedir | --localedir | --localedi | --localed | --locale) |
1053 | ac_prev=localedir ;; | |
1054 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1055 | localedir=$ac_optarg ;; | |
1056 | ||
953ff289 | 1057 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1058 | | --localstate | --localstat | --localsta | --localst | --locals) |
953ff289 DN |
1059 | ac_prev=localstatedir ;; |
1060 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1061 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
953ff289 DN |
1062 | localstatedir=$ac_optarg ;; |
1063 | ||
1064 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1065 | ac_prev=mandir ;; | |
1066 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1067 | mandir=$ac_optarg ;; | |
1068 | ||
1069 | -nfp | --nfp | --nf) | |
1070 | # Obsolete; use --without-fp. | |
1071 | with_fp=no ;; | |
1072 | ||
1073 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1074 | | --no-cr | --no-c | -n) | |
1075 | no_create=yes ;; | |
1076 | ||
1077 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1078 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1079 | no_recursion=yes ;; | |
1080 | ||
1081 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1082 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1083 | | --oldin | --oldi | --old | --ol | --o) | |
1084 | ac_prev=oldincludedir ;; | |
1085 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1086 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1087 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1088 | oldincludedir=$ac_optarg ;; | |
1089 | ||
1090 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1091 | ac_prev=prefix ;; | |
1092 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1093 | prefix=$ac_optarg ;; | |
1094 | ||
1095 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1096 | | --program-pre | --program-pr | --program-p) | |
1097 | ac_prev=program_prefix ;; | |
1098 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1099 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1100 | program_prefix=$ac_optarg ;; | |
1101 | ||
1102 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1103 | | --program-suf | --program-su | --program-s) | |
1104 | ac_prev=program_suffix ;; | |
1105 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1106 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1107 | program_suffix=$ac_optarg ;; | |
1108 | ||
1109 | -program-transform-name | --program-transform-name \ | |
1110 | | --program-transform-nam | --program-transform-na \ | |
1111 | | --program-transform-n | --program-transform- \ | |
1112 | | --program-transform | --program-transfor \ | |
1113 | | --program-transfo | --program-transf \ | |
1114 | | --program-trans | --program-tran \ | |
1115 | | --progr-tra | --program-tr | --program-t) | |
1116 | ac_prev=program_transform_name ;; | |
1117 | -program-transform-name=* | --program-transform-name=* \ | |
1118 | | --program-transform-nam=* | --program-transform-na=* \ | |
1119 | | --program-transform-n=* | --program-transform-=* \ | |
1120 | | --program-transform=* | --program-transfor=* \ | |
1121 | | --program-transfo=* | --program-transf=* \ | |
1122 | | --program-trans=* | --program-tran=* \ | |
1123 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1124 | program_transform_name=$ac_optarg ;; | |
1125 | ||
5213506e RW |
1126 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1127 | ac_prev=pdfdir ;; | |
1128 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1129 | pdfdir=$ac_optarg ;; | |
1130 | ||
1131 | -psdir | --psdir | --psdi | --psd | --ps) | |
1132 | ac_prev=psdir ;; | |
1133 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1134 | psdir=$ac_optarg ;; | |
1135 | ||
953ff289 DN |
1136 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1137 | | -silent | --silent | --silen | --sile | --sil) | |
1138 | silent=yes ;; | |
1139 | ||
1140 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1141 | ac_prev=sbindir ;; | |
1142 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1143 | | --sbi=* | --sb=*) | |
1144 | sbindir=$ac_optarg ;; | |
1145 | ||
1146 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1147 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1148 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1149 | | --sha | --sh) | |
1150 | ac_prev=sharedstatedir ;; | |
1151 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1152 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1153 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1154 | | --sha=* | --sh=*) | |
1155 | sharedstatedir=$ac_optarg ;; | |
1156 | ||
1157 | -site | --site | --sit) | |
1158 | ac_prev=site ;; | |
1159 | -site=* | --site=* | --sit=*) | |
1160 | site=$ac_optarg ;; | |
1161 | ||
1162 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1163 | ac_prev=srcdir ;; | |
1164 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1165 | srcdir=$ac_optarg ;; | |
1166 | ||
1167 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1168 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1169 | ac_prev=sysconfdir ;; | |
1170 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1171 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1172 | sysconfdir=$ac_optarg ;; | |
1173 | ||
1174 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1175 | ac_prev=target_alias ;; | |
1176 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1177 | target_alias=$ac_optarg ;; | |
1178 | ||
1179 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1180 | verbose=yes ;; | |
1181 | ||
1182 | -version | --version | --versio | --versi | --vers | -V) | |
1183 | ac_init_version=: ;; | |
1184 | ||
1185 | -with-* | --with-*) | |
5213506e | 1186 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
953ff289 | 1187 | # Reject names that are not valid shell variable names. |
5213506e | 1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1189 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1190 | ac_useropt_orig=$ac_useropt |
1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1192 | case $ac_user_opts in | |
1193 | *" | |
1194 | "with_$ac_useropt" | |
1195 | "*) ;; | |
1196 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1197 | ac_unrecognized_sep=', ';; | |
953ff289 | 1198 | esac |
5213506e | 1199 | eval with_$ac_useropt=\$ac_optarg ;; |
953ff289 DN |
1200 | |
1201 | -without-* | --without-*) | |
5213506e | 1202 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
953ff289 | 1203 | # Reject names that are not valid shell variable names. |
5213506e | 1204 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1205 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1206 | ac_useropt_orig=$ac_useropt |
1207 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1208 | case $ac_user_opts in | |
1209 | *" | |
1210 | "with_$ac_useropt" | |
1211 | "*) ;; | |
1212 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1213 | ac_unrecognized_sep=', ';; | |
1214 | esac | |
1215 | eval with_$ac_useropt=no ;; | |
953ff289 DN |
1216 | |
1217 | --x) | |
1218 | # Obsolete; use --with-x. | |
1219 | with_x=yes ;; | |
1220 | ||
1221 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1222 | | --x-incl | --x-inc | --x-in | --x-i) | |
1223 | ac_prev=x_includes ;; | |
1224 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1225 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1226 | x_includes=$ac_optarg ;; | |
1227 | ||
1228 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1229 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1230 | ac_prev=x_libraries ;; | |
1231 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1232 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1233 | x_libraries=$ac_optarg ;; | |
1234 | ||
22e05272 JM |
1235 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1236 | Try \`$0 --help' for more information" | |
953ff289 DN |
1237 | ;; |
1238 | ||
1239 | *=*) | |
1240 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1241 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1242 | case $ac_envvar in #( |
1243 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1244 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1245 | esac |
1246 | eval $ac_envvar=\$ac_optarg | |
953ff289 DN |
1247 | export $ac_envvar ;; |
1248 | ||
1249 | *) | |
1250 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1251 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
953ff289 | 1252 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1253 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1254 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
953ff289 DN |
1255 | ;; |
1256 | ||
1257 | esac | |
1258 | done | |
1259 | ||
1260 | if test -n "$ac_prev"; then | |
1261 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1262 | as_fn_error $? "missing argument to $ac_option" |
953ff289 DN |
1263 | fi |
1264 | ||
5213506e RW |
1265 | if test -n "$ac_unrecognized_opts"; then |
1266 | case $enable_option_checking in | |
1267 | no) ;; | |
22e05272 | 1268 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1269 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
953ff289 | 1270 | esac |
5213506e | 1271 | fi |
953ff289 | 1272 | |
5213506e RW |
1273 | # Check all directory arguments for consistency. |
1274 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1275 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1276 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1277 | libdir localedir mandir | |
953ff289 | 1278 | do |
5213506e RW |
1279 | eval ac_val=\$$ac_var |
1280 | # Remove trailing slashes. | |
953ff289 | 1281 | case $ac_val in |
5213506e RW |
1282 | */ ) |
1283 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1284 | eval $ac_var=\$ac_val;; | |
953ff289 | 1285 | esac |
5213506e RW |
1286 | # Be sure to have absolute directory names. |
1287 | case $ac_val in | |
1288 | [\\/$]* | ?:[\\/]* ) continue;; | |
1289 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1290 | esac | |
22e05272 | 1291 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
953ff289 DN |
1292 | done |
1293 | ||
1294 | # There might be people who depend on the old broken behavior: `$host' | |
1295 | # used to hold the argument of --host etc. | |
1296 | # FIXME: To remove some day. | |
1297 | build=$build_alias | |
1298 | host=$host_alias | |
1299 | target=$target_alias | |
1300 | ||
1301 | # FIXME: To remove some day. | |
1302 | if test "x$host_alias" != x; then | |
1303 | if test "x$build_alias" = x; then | |
1304 | cross_compiling=maybe | |
953ff289 DN |
1305 | elif test "x$build_alias" != "x$host_alias"; then |
1306 | cross_compiling=yes | |
1307 | fi | |
1308 | fi | |
1309 | ||
1310 | ac_tool_prefix= | |
1311 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1312 | ||
1313 | test "$silent" = yes && exec 6>/dev/null | |
1314 | ||
1315 | ||
5213506e RW |
1316 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1317 | ac_ls_di=`ls -di .` && | |
1318 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1319 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1320 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1321 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1322 | |
1323 | ||
953ff289 DN |
1324 | # Find the source files, if location was not specified. |
1325 | if test -z "$srcdir"; then | |
1326 | ac_srcdir_defaulted=yes | |
5213506e RW |
1327 | # Try the directory containing this script, then the parent directory. |
1328 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1329 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1330 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1331 | X"$as_myself" : 'X\(//\)$' \| \ | |
1332 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1333 | $as_echo X"$as_myself" | | |
1334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1335 | s//\1/ | |
1336 | q | |
1337 | } | |
1338 | /^X\(\/\/\)[^/].*/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\/\)$/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | /^X\(\/\).*/{ | |
1347 | s//\1/ | |
1348 | q | |
1349 | } | |
1350 | s/.*/./; q'` | |
953ff289 | 1351 | srcdir=$ac_confdir |
5213506e | 1352 | if test ! -r "$srcdir/$ac_unique_file"; then |
953ff289 DN |
1353 | srcdir=.. |
1354 | fi | |
1355 | else | |
1356 | ac_srcdir_defaulted=no | |
1357 | fi | |
5213506e RW |
1358 | if test ! -r "$srcdir/$ac_unique_file"; then |
1359 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1360 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1361 | fi |
1362 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1363 | ac_abs_confdir=`( | |
22e05272 | 1364 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1365 | pwd)` |
1366 | # When building in place, set srcdir=. | |
1367 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1368 | srcdir=. | |
1369 | fi | |
1370 | # Remove unnecessary trailing slashes from srcdir. | |
1371 | # Double slashes in file names in object file debugging info | |
1372 | # mess up M-x gdb in Emacs. | |
1373 | case $srcdir in | |
1374 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1375 | esac | |
1376 | for ac_var in $ac_precious_vars; do | |
1377 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1378 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1379 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1380 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1381 | done | |
953ff289 DN |
1382 | |
1383 | # | |
1384 | # Report the --help message. | |
1385 | # | |
1386 | if test "$ac_init_help" = "long"; then | |
1387 | # Omit some internal or obsolete options to make the list less imposing. | |
1388 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1389 | cat <<_ACEOF | |
f1f3453e | 1390 | \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems. |
953ff289 DN |
1391 | |
1392 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1393 | ||
1394 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1395 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1396 | ||
1397 | Defaults for the options are specified in brackets. | |
1398 | ||
1399 | Configuration: | |
1400 | -h, --help display this help and exit | |
1401 | --help=short display options specific to this package | |
1402 | --help=recursive display the short help of all the included packages | |
1403 | -V, --version display version information and exit | |
22e05272 | 1404 | -q, --quiet, --silent do not print \`checking ...' messages |
953ff289 DN |
1405 | --cache-file=FILE cache test results in FILE [disabled] |
1406 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1407 | -n, --no-create do not create output files | |
1408 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1409 | ||
953ff289 DN |
1410 | Installation directories: |
1411 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1412 | [$ac_default_prefix] |
953ff289 | 1413 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1414 | [PREFIX] |
953ff289 DN |
1415 | |
1416 | By default, \`make install' will install all the files in | |
1417 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1418 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1419 | for instance \`--prefix=\$HOME'. | |
1420 | ||
1421 | For better control, use the options below. | |
1422 | ||
1423 | Fine tuning of the installation directories: | |
5213506e RW |
1424 | --bindir=DIR user executables [EPREFIX/bin] |
1425 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1426 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1427 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1428 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1429 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1430 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1431 | --includedir=DIR C header files [PREFIX/include] | |
1432 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1433 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1434 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1435 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1436 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1437 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1438 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp] | |
1439 | --htmldir=DIR html documentation [DOCDIR] | |
1440 | --dvidir=DIR dvi documentation [DOCDIR] | |
1441 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1442 | --psdir=DIR ps documentation [DOCDIR] | |
953ff289 DN |
1443 | _ACEOF |
1444 | ||
1445 | cat <<\_ACEOF | |
1446 | ||
1447 | Program names: | |
1448 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1449 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1450 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1451 | ||
1452 | System types: | |
1453 | --build=BUILD configure for building on BUILD [guessed] | |
1454 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1455 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1456 | _ACEOF | |
1457 | fi | |
1458 | ||
1459 | if test -n "$ac_init_help"; then | |
1460 | case $ac_init_help in | |
f1f3453e | 1461 | short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";; |
953ff289 DN |
1462 | esac |
1463 | cat <<\_ACEOF | |
1464 | ||
1465 | Optional Features: | |
5213506e | 1466 | --disable-option-checking ignore unrecognized --enable/--with options |
953ff289 DN |
1467 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1468 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1469 | --enable-version-specific-runtime-libs | |
1470 | Specify that runtime libraries should be installed | |
1471 | in a compiler-specific directory [default=no] | |
627ab4b8 TT |
1472 | --enable-generated-files-in-srcdir |
1473 | put copies of generated files in source dir intended | |
1474 | for creating source tarballs for users without | |
1475 | texinfo bison or flex. [default=no] | |
22e05272 JM |
1476 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1477 | --disable-silent-rules verbose build output (undo: "make V=0") | |
953ff289 | 1478 | --enable-multilib build many library versions (default) |
22e05272 JM |
1479 | --enable-dependency-tracking |
1480 | do not reject slow dependency extractors | |
1481 | --disable-dependency-tracking | |
1482 | speeds up one-time build | |
5213506e RW |
1483 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1484 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1485 | --enable-fast-install[=PKGS] |
1486 | optimize for fast installation [default=yes] | |
953ff289 | 1487 | --disable-libtool-lock avoid locking (might break parallel builds) |
22e05272 JM |
1488 | --enable-maintainer-mode |
1489 | enable make rules and dependencies not useful (and | |
1490 | sometimes confusing) to the casual installer | |
5213506e | 1491 | --enable-linux-futex use the Linux futex system call [default=default] |
2fb31455 | 1492 | --enable-tls Use thread-local storage [default=yes] |
953ff289 DN |
1493 | --enable-symvers=STYLE enables symbol versioning of the shared library |
1494 | [default=yes] | |
a0e1df88 | 1495 | --enable-cet enable Intel CET in target libraries [default=no] |
953ff289 DN |
1496 | |
1497 | Optional Packages: | |
1498 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1499 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1cf3d07d SE |
1500 | --with-pic try to use only PIC/non-PIC objects [default=use |
1501 | both] | |
1502 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
41dbbb37 TS |
1503 | --with-cuda-driver=PATH specify prefix directory for installed CUDA driver |
1504 | package. Equivalent to | |
1505 | --with-cuda-driver-include=PATH/include plus | |
1506 | --with-cuda-driver-lib=PATH/lib | |
1507 | --with-cuda-driver-include=PATH | |
1508 | specify directory for installed CUDA driver include | |
1509 | files | |
1510 | --with-cuda-driver-lib=PATH | |
1511 | specify directory for the installed CUDA driver | |
1512 | library | |
b2b40051 MJ |
1513 | --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time |
1514 | package. Equivalent to | |
1515 | --with-hsa-runtime-include=PATH/include plus | |
1516 | --with-hsa-runtime-lib=PATH/lib | |
1517 | --with-hsa-runtime-include=PATH | |
1518 | specify directory for installed HSA run-time include | |
1519 | files | |
1520 | --with-hsa-runtime-lib=PATH | |
1521 | specify directory for the installed HSA run-time | |
1522 | library | |
3c36aa6b JJ |
1523 | --with-gcc-major-version-only |
1524 | use only GCC major number in filesystem paths | |
953ff289 DN |
1525 | |
1526 | Some influential environment variables: | |
1527 | CC C compiler command | |
1528 | CFLAGS C compiler flags | |
1529 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1530 | nonstandard directory <lib dir> | |
5213506e | 1531 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1532 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1533 | you have headers in a nonstandard directory <include dir> |
1cf3d07d | 1534 | CPP C preprocessor |
953ff289 DN |
1535 | FC Fortran compiler command |
1536 | FCFLAGS Fortran compiler flags | |
953ff289 DN |
1537 | |
1538 | Use these variables to override the choices made by `configure' or to help | |
1539 | it to find libraries and programs with nonstandard names/locations. | |
1540 | ||
5213506e | 1541 | Report bugs to the package provider. |
f1f3453e | 1542 | GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. |
5213506e | 1543 | General help using GNU software: <http://www.gnu.org/gethelp/>. |
953ff289 | 1544 | _ACEOF |
5213506e | 1545 | ac_status=$? |
953ff289 DN |
1546 | fi |
1547 | ||
1548 | if test "$ac_init_help" = "recursive"; then | |
1549 | # If there are subdirs, report their specific --help. | |
953ff289 | 1550 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1551 | test -d "$ac_dir" || |
1552 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1553 | continue | |
953ff289 DN |
1554 | ac_builddir=. |
1555 | ||
5213506e RW |
1556 | case "$ac_dir" in |
1557 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1558 | *) | |
1559 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1560 | # A ".." for each directory in $ac_dir_suffix. | |
1561 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1562 | case $ac_top_builddir_sub in | |
1563 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1564 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1565 | esac ;; | |
1566 | esac | |
1567 | ac_abs_top_builddir=$ac_pwd | |
1568 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1569 | # for backward compatibility: | |
1570 | ac_top_builddir=$ac_top_build_prefix | |
953ff289 DN |
1571 | |
1572 | case $srcdir in | |
5213506e | 1573 | .) # We are building in place. |
953ff289 | 1574 | ac_srcdir=. |
5213506e RW |
1575 | ac_top_srcdir=$ac_top_builddir_sub |
1576 | ac_abs_top_srcdir=$ac_pwd ;; | |
1577 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
953ff289 | 1578 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1579 | ac_top_srcdir=$srcdir |
1580 | ac_abs_top_srcdir=$srcdir ;; | |
1581 | *) # Relative name. | |
1582 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1583 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1584 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
953ff289 | 1585 | esac |
5213506e RW |
1586 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1587 | ||
1588 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1589 | # Check for guested configure. | |
1590 | if test -f "$ac_srcdir/configure.gnu"; then | |
1591 | echo && | |
1592 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1593 | elif test -f "$ac_srcdir/configure"; then | |
1594 | echo && | |
1595 | $SHELL "$ac_srcdir/configure" --help=recursive | |
953ff289 | 1596 | else |
5213506e RW |
1597 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1598 | fi || ac_status=$? | |
1599 | cd "$ac_pwd" || { ac_status=$?; break; } | |
953ff289 DN |
1600 | done |
1601 | fi | |
1602 | ||
5213506e | 1603 | test -n "$ac_init_help" && exit $ac_status |
953ff289 DN |
1604 | if $ac_init_version; then |
1605 | cat <<\_ACEOF | |
f1f3453e | 1606 | GNU Offloading and Multi Processing Runtime Library configure 1.0 |
22e05272 | 1607 | generated by GNU Autoconf 2.69 |
953ff289 | 1608 | |
22e05272 | 1609 | Copyright (C) 2012 Free Software Foundation, Inc. |
953ff289 DN |
1610 | This configure script is free software; the Free Software Foundation |
1611 | gives unlimited permission to copy, distribute and modify it. | |
1612 | _ACEOF | |
5213506e | 1613 | exit |
953ff289 | 1614 | fi |
953ff289 | 1615 | |
5213506e RW |
1616 | ## ------------------------ ## |
1617 | ## Autoconf initialization. ## | |
1618 | ## ------------------------ ## | |
953ff289 | 1619 | |
5213506e RW |
1620 | # ac_fn_c_try_compile LINENO |
1621 | # -------------------------- | |
1622 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1623 | ac_fn_c_try_compile () | |
953ff289 | 1624 | { |
5213506e RW |
1625 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1626 | rm -f conftest.$ac_objext | |
1627 | if { { ac_try="$ac_compile" | |
1628 | case "(($ac_try" in | |
1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1630 | *) ac_try_echo=$ac_try;; | |
1631 | esac | |
1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1633 | $as_echo "$ac_try_echo"; } >&5 | |
1634 | (eval "$ac_compile") 2>conftest.err | |
1635 | ac_status=$? | |
1636 | if test -s conftest.err; then | |
1637 | grep -v '^ *+' conftest.err >conftest.er1 | |
1638 | cat conftest.er1 >&5 | |
1639 | mv -f conftest.er1 conftest.err | |
1640 | fi | |
1641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1642 | test $ac_status = 0; } && { | |
1643 | test -z "$ac_c_werror_flag" || | |
1644 | test ! -s conftest.err | |
1645 | } && test -s conftest.$ac_objext; then : | |
1646 | ac_retval=0 | |
1647 | else | |
1648 | $as_echo "$as_me: failed program was:" >&5 | |
1649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1650 | |
5213506e RW |
1651 | ac_retval=1 |
1652 | fi | |
22e05272 JM |
1653 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1654 | as_fn_set_status $ac_retval | |
953ff289 | 1655 | |
5213506e | 1656 | } # ac_fn_c_try_compile |
953ff289 | 1657 | |
5213506e RW |
1658 | # ac_fn_c_try_link LINENO |
1659 | # ----------------------- | |
1660 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1661 | ac_fn_c_try_link () | |
1662 | { | |
1663 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1665 | if { { ac_try="$ac_link" | |
1666 | case "(($ac_try" in | |
1667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1668 | *) ac_try_echo=$ac_try;; | |
1669 | esac | |
1670 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1671 | $as_echo "$ac_try_echo"; } >&5 | |
1672 | (eval "$ac_link") 2>conftest.err | |
1673 | ac_status=$? | |
1674 | if test -s conftest.err; then | |
1675 | grep -v '^ *+' conftest.err >conftest.er1 | |
1676 | cat conftest.er1 >&5 | |
1677 | mv -f conftest.er1 conftest.err | |
1678 | fi | |
1679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1680 | test $ac_status = 0; } && { | |
1681 | test -z "$ac_c_werror_flag" || | |
1682 | test ! -s conftest.err | |
1683 | } && test -s conftest$ac_exeext && { | |
1684 | test "$cross_compiling" = yes || | |
22e05272 | 1685 | test -x conftest$ac_exeext |
5213506e RW |
1686 | }; 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 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1695 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1696 | # interfere with the next link command; also delete a directory that is | |
1697 | # left behind by Apple's compiler. We do this before executing the actions. | |
1698 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1699 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1700 | as_fn_set_status $ac_retval | |
953ff289 | 1701 | |
5213506e | 1702 | } # ac_fn_c_try_link |
953ff289 | 1703 | |
5213506e RW |
1704 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1705 | # ------------------------------------------------------- | |
1706 | # Tests whether HEADER exists and can be compiled using the include files in | |
1707 | # INCLUDES, setting the cache variable VAR accordingly. | |
1708 | ac_fn_c_check_header_compile () | |
1709 | { | |
1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1712 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1713 | if eval \${$3+:} false; then : |
5213506e RW |
1714 | $as_echo_n "(cached) " >&6 |
1715 | else | |
1716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1717 | /* end confdefs.h. */ | |
1718 | $4 | |
1719 | #include <$2> | |
1720 | _ACEOF | |
1721 | if ac_fn_c_try_compile "$LINENO"; then : | |
1722 | eval "$3=yes" | |
1723 | else | |
1724 | eval "$3=no" | |
1725 | fi | |
1726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1727 | fi | |
1728 | eval ac_res=\$$3 | |
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1730 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1731 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
953ff289 | 1732 | |
5213506e | 1733 | } # ac_fn_c_check_header_compile |
953ff289 | 1734 | |
5213506e RW |
1735 | # ac_fn_c_try_cpp LINENO |
1736 | # ---------------------- | |
1737 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1738 | ac_fn_c_try_cpp () | |
1739 | { | |
1740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1741 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1742 | case "(($ac_try" in | |
1743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1744 | *) ac_try_echo=$ac_try;; | |
1745 | esac | |
1746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1747 | $as_echo "$ac_try_echo"; } >&5 | |
1748 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1749 | ac_status=$? | |
1750 | if test -s conftest.err; then | |
1751 | grep -v '^ *+' conftest.err >conftest.er1 | |
1752 | cat conftest.er1 >&5 | |
1753 | mv -f conftest.er1 conftest.err | |
1754 | fi | |
1755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1756 | test $ac_status = 0; } > conftest.i && { |
5213506e RW |
1757 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1758 | test ! -s conftest.err | |
1759 | }; then : | |
1760 | ac_retval=0 | |
1761 | else | |
1762 | $as_echo "$as_me: failed program was:" >&5 | |
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1764 | |
5213506e RW |
1765 | ac_retval=1 |
1766 | fi | |
22e05272 JM |
1767 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1768 | as_fn_set_status $ac_retval | |
953ff289 | 1769 | |
5213506e | 1770 | } # ac_fn_c_try_cpp |
953ff289 | 1771 | |
5213506e RW |
1772 | # ac_fn_c_try_run LINENO |
1773 | # ---------------------- | |
1774 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1775 | # that executables *can* be run. | |
1776 | ac_fn_c_try_run () | |
1777 | { | |
1778 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1779 | if { { ac_try="$ac_link" | |
1780 | case "(($ac_try" in | |
1781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1782 | *) ac_try_echo=$ac_try;; | |
1783 | esac | |
1784 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1785 | $as_echo "$ac_try_echo"; } >&5 | |
1786 | (eval "$ac_link") 2>&5 | |
1787 | ac_status=$? | |
1788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1789 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1790 | { { case "(($ac_try" in | |
1791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1792 | *) ac_try_echo=$ac_try;; | |
1793 | esac | |
1794 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1795 | $as_echo "$ac_try_echo"; } >&5 | |
1796 | (eval "$ac_try") 2>&5 | |
1797 | ac_status=$? | |
1798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1799 | test $ac_status = 0; }; }; then : | |
1800 | ac_retval=0 | |
1801 | else | |
1802 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1803 | $as_echo "$as_me: failed program was:" >&5 | |
1804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1805 | |
5213506e RW |
1806 | ac_retval=$ac_status |
1807 | fi | |
1808 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1809 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1810 | as_fn_set_status $ac_retval | |
953ff289 | 1811 | |
5213506e | 1812 | } # ac_fn_c_try_run |
953ff289 | 1813 | |
5213506e RW |
1814 | # ac_fn_c_check_func LINENO FUNC VAR |
1815 | # ---------------------------------- | |
1816 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1817 | ac_fn_c_check_func () | |
953ff289 | 1818 | { |
5213506e RW |
1819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1821 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1822 | if eval \${$3+:} false; then : |
5213506e RW |
1823 | $as_echo_n "(cached) " >&6 |
1824 | else | |
1825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1826 | /* end confdefs.h. */ | |
1827 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1829 | #define $2 innocuous_$2 | |
953ff289 | 1830 | |
5213506e RW |
1831 | /* System header to define __stub macros and hopefully few prototypes, |
1832 | which can conflict with char $2 (); below. | |
1833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1834 | <limits.h> exists even on freestanding compilers. */ | |
953ff289 | 1835 | |
5213506e RW |
1836 | #ifdef __STDC__ |
1837 | # include <limits.h> | |
1838 | #else | |
1839 | # include <assert.h> | |
1840 | #endif | |
953ff289 | 1841 | |
5213506e | 1842 | #undef $2 |
953ff289 | 1843 | |
5213506e RW |
1844 | /* Override any GCC internal prototype to avoid an error. |
1845 | Use char because int might match the return type of a GCC | |
1846 | builtin and then its argument prototype would still apply. */ | |
1847 | #ifdef __cplusplus | |
1848 | extern "C" | |
1849 | #endif | |
1850 | char $2 (); | |
1851 | /* The GNU C library defines this for functions which it implements | |
1852 | to always fail with ENOSYS. Some functions are actually named | |
1853 | something starting with __ and the normal name is an alias. */ | |
1854 | #if defined __stub_$2 || defined __stub___$2 | |
1855 | choke me | |
1856 | #endif | |
953ff289 | 1857 | |
5213506e RW |
1858 | int |
1859 | main () | |
1860 | { | |
1861 | return $2 (); | |
1862 | ; | |
1863 | return 0; | |
1864 | } | |
953ff289 | 1865 | _ACEOF |
5213506e RW |
1866 | if ac_fn_c_try_link "$LINENO"; then : |
1867 | eval "$3=yes" | |
1868 | else | |
1869 | eval "$3=no" | |
1870 | fi | |
1871 | rm -f core conftest.err conftest.$ac_objext \ | |
1872 | conftest$ac_exeext conftest.$ac_ext | |
1873 | fi | |
1874 | eval ac_res=\$$3 | |
1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1876 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1877 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
953ff289 | 1878 | |
5213506e | 1879 | } # ac_fn_c_check_func |
953ff289 | 1880 | |
5213506e RW |
1881 | # ac_fn_fc_try_compile LINENO |
1882 | # --------------------------- | |
1883 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1884 | ac_fn_fc_try_compile () | |
1885 | { | |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1887 | rm -f conftest.$ac_objext | |
1888 | if { { ac_try="$ac_compile" | |
1889 | case "(($ac_try" in | |
1890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1891 | *) ac_try_echo=$ac_try;; | |
1892 | esac | |
1893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1894 | $as_echo "$ac_try_echo"; } >&5 | |
1895 | (eval "$ac_compile") 2>conftest.err | |
1896 | ac_status=$? | |
1897 | if test -s conftest.err; then | |
1898 | grep -v '^ *+' conftest.err >conftest.er1 | |
1899 | cat conftest.er1 >&5 | |
1900 | mv -f conftest.er1 conftest.err | |
1901 | fi | |
1902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1903 | test $ac_status = 0; } && { | |
1904 | test -z "$ac_fc_werror_flag" || | |
1905 | test ! -s conftest.err | |
1906 | } && test -s conftest.$ac_objext; then : | |
1907 | ac_retval=0 | |
1908 | else | |
1909 | $as_echo "$as_me: failed program was:" >&5 | |
1910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
953ff289 | 1911 | |
5213506e RW |
1912 | ac_retval=1 |
1913 | fi | |
22e05272 JM |
1914 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1915 | as_fn_set_status $ac_retval | |
953ff289 | 1916 | |
5213506e | 1917 | } # ac_fn_fc_try_compile |
953ff289 | 1918 | |
5213506e RW |
1919 | # ac_fn_fc_try_link LINENO |
1920 | # ------------------------ | |
1921 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1922 | ac_fn_fc_try_link () | |
1923 | { | |
1924 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1926 | if { { ac_try="$ac_link" | |
1927 | case "(($ac_try" in | |
1928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1929 | *) ac_try_echo=$ac_try;; | |
1930 | esac | |
1931 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1932 | $as_echo "$ac_try_echo"; } >&5 | |
1933 | (eval "$ac_link") 2>conftest.err | |
1934 | ac_status=$? | |
1935 | if test -s conftest.err; then | |
1936 | grep -v '^ *+' conftest.err >conftest.er1 | |
1937 | cat conftest.er1 >&5 | |
1938 | mv -f conftest.er1 conftest.err | |
1939 | fi | |
1940 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1941 | test $ac_status = 0; } && { | |
1942 | test -z "$ac_fc_werror_flag" || | |
1943 | test ! -s conftest.err | |
1944 | } && test -s conftest$ac_exeext && { | |
1945 | test "$cross_compiling" = yes || | |
22e05272 | 1946 | test -x conftest$ac_exeext |
5213506e RW |
1947 | }; 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 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1956 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1957 | # interfere with the next link command; also delete a directory that is | |
1958 | # left behind by Apple's compiler. We do this before executing the actions. | |
1959 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1960 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1961 | as_fn_set_status $ac_retval | |
953ff289 | 1962 | |
5213506e | 1963 | } # ac_fn_fc_try_link |
953ff289 | 1964 | |
5213506e RW |
1965 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1966 | # ------------------------------------------------------- | |
1967 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1968 | # the include files in INCLUDES and setting the cache variable VAR | |
1969 | # accordingly. | |
1970 | ac_fn_c_check_header_mongrel () | |
1971 | { | |
1972 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1973 | if eval \${$3+:} false; then : |
5213506e RW |
1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1975 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1976 | if eval \${$3+:} false; then : |
5213506e RW |
1977 | $as_echo_n "(cached) " >&6 |
1978 | fi | |
1979 | eval ac_res=\$$3 | |
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1981 | $as_echo "$ac_res" >&6; } | |
1982 | else | |
1983 | # Is the header compilable? | |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1985 | $as_echo_n "checking $2 usability... " >&6; } | |
1986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1987 | /* end confdefs.h. */ | |
1988 | $4 | |
1989 | #include <$2> | |
953ff289 | 1990 | _ACEOF |
5213506e RW |
1991 | if ac_fn_c_try_compile "$LINENO"; then : |
1992 | ac_header_compiler=yes | |
1993 | else | |
1994 | ac_header_compiler=no | |
953ff289 | 1995 | fi |
5213506e RW |
1996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1998 | $as_echo "$ac_header_compiler" >&6; } | |
953ff289 | 1999 | |
5213506e RW |
2000 | # Is the header present? |
2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2002 | $as_echo_n "checking $2 presence... " >&6; } | |
2003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2004 | /* end confdefs.h. */ | |
2005 | #include <$2> | |
2006 | _ACEOF | |
2007 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2008 | ac_header_preproc=yes | |
953ff289 | 2009 | else |
5213506e | 2010 | ac_header_preproc=no |
953ff289 | 2011 | fi |
22e05272 | 2012 | rm -f conftest.err conftest.i conftest.$ac_ext |
5213506e RW |
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2014 | $as_echo "$ac_header_preproc" >&6; } | |
953ff289 | 2015 | |
5213506e RW |
2016 | # So? What about this header? |
2017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2018 | yes:no: ) | |
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2020 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2022 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2023 | ;; | |
2024 | no:yes:* ) | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2026 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2028 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2030 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2032 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2034 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2035 | ;; | |
2036 | esac | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2038 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2039 | if eval \${$3+:} false; then : |
5213506e RW |
2040 | $as_echo_n "(cached) " >&6 |
2041 | else | |
2042 | eval "$3=\$ac_header_compiler" | |
953ff289 | 2043 | fi |
5213506e RW |
2044 | eval ac_res=\$$3 |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2046 | $as_echo "$ac_res" >&6; } | |
2047 | fi | |
22e05272 | 2048 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
953ff289 | 2049 | |
5213506e | 2050 | } # ac_fn_c_check_header_mongrel |
953ff289 | 2051 | |
5213506e RW |
2052 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2053 | # ------------------------------------------- | |
2054 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2055 | # variable VAR accordingly. | |
2056 | ac_fn_c_check_type () | |
2057 | { | |
2058 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2060 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2061 | if eval \${$3+:} false; then : |
5213506e RW |
2062 | $as_echo_n "(cached) " >&6 |
2063 | else | |
2064 | eval "$3=no" | |
2065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2066 | /* end confdefs.h. */ | |
2067 | $4 | |
2068 | int | |
2069 | main () | |
2070 | { | |
2071 | if (sizeof ($2)) | |
2072 | return 0; | |
2073 | ; | |
2074 | return 0; | |
2075 | } | |
2076 | _ACEOF | |
2077 | if ac_fn_c_try_compile "$LINENO"; then : | |
2078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2079 | /* end confdefs.h. */ | |
2080 | $4 | |
2081 | int | |
2082 | main () | |
2083 | { | |
2084 | if (sizeof (($2))) | |
2085 | return 0; | |
2086 | ; | |
2087 | return 0; | |
2088 | } | |
2089 | _ACEOF | |
2090 | if ac_fn_c_try_compile "$LINENO"; then : | |
953ff289 | 2091 | |
5213506e RW |
2092 | else |
2093 | eval "$3=yes" | |
2094 | fi | |
2095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2096 | fi | |
2097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2098 | fi | |
2099 | eval ac_res=\$$3 | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2101 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2102 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
953ff289 | 2103 | |
5213506e | 2104 | } # ac_fn_c_check_type |
953ff289 | 2105 | |
5213506e RW |
2106 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2107 | # -------------------------------------------- | |
2108 | # Tries to find the compile-time value of EXPR in a program that includes | |
2109 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2110 | # computed | |
2111 | ac_fn_c_compute_int () | |
2112 | { | |
2113 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2114 | if test "$cross_compiling" = yes; then | |
2115 | # Depending upon the size, compute the lo and hi bounds. | |
2116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2117 | /* end confdefs.h. */ | |
2118 | $4 | |
2119 | int | |
2120 | main () | |
2121 | { | |
2122 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
2123 | test_array [0] = 0; |
2124 | return test_array [0]; | |
953ff289 | 2125 | |
5213506e RW |
2126 | ; |
2127 | return 0; | |
2128 | } | |
2129 | _ACEOF | |
2130 | if ac_fn_c_try_compile "$LINENO"; then : | |
2131 | ac_lo=0 ac_mid=0 | |
2132 | while :; do | |
2133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2134 | /* end confdefs.h. */ | |
2135 | $4 | |
2136 | int | |
2137 | main () | |
2138 | { | |
2139 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2140 | test_array [0] = 0; |
2141 | return test_array [0]; | |
953ff289 | 2142 | |
5213506e RW |
2143 | ; |
2144 | return 0; | |
2145 | } | |
2146 | _ACEOF | |
2147 | if ac_fn_c_try_compile "$LINENO"; then : | |
2148 | ac_hi=$ac_mid; break | |
2149 | else | |
2150 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2151 | if test $ac_lo -le $ac_mid; then | |
2152 | ac_lo= ac_hi= | |
2153 | break | |
2154 | fi | |
2155 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2156 | fi | |
2157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2158 | done | |
2159 | else | |
2160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2161 | /* end confdefs.h. */ | |
2162 | $4 | |
2163 | int | |
2164 | main () | |
2165 | { | |
2166 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2167 | test_array [0] = 0; |
2168 | return test_array [0]; | |
953ff289 | 2169 | |
5213506e RW |
2170 | ; |
2171 | return 0; | |
2172 | } | |
2173 | _ACEOF | |
2174 | if ac_fn_c_try_compile "$LINENO"; then : | |
2175 | ac_hi=-1 ac_mid=-1 | |
2176 | while :; do | |
2177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2178 | /* end confdefs.h. */ | |
2179 | $4 | |
2180 | int | |
2181 | main () | |
2182 | { | |
2183 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2184 | test_array [0] = 0; |
2185 | return test_array [0]; | |
953ff289 | 2186 | |
5213506e RW |
2187 | ; |
2188 | return 0; | |
2189 | } | |
2190 | _ACEOF | |
2191 | if ac_fn_c_try_compile "$LINENO"; then : | |
2192 | ac_lo=$ac_mid; break | |
2193 | else | |
2194 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2195 | if test $ac_mid -le $ac_hi; then | |
2196 | ac_lo= ac_hi= | |
2197 | break | |
2198 | fi | |
2199 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2200 | fi | |
2201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2202 | done | |
2203 | else | |
2204 | ac_lo= ac_hi= | |
2205 | fi | |
2206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2207 | fi | |
2208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2209 | # Binary search between lo and hi bounds. | |
2210 | while test "x$ac_lo" != "x$ac_hi"; do | |
2211 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2213 | /* end confdefs.h. */ | |
2214 | $4 | |
2215 | int | |
2216 | main () | |
2217 | { | |
2218 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2219 | test_array [0] = 0; |
2220 | return test_array [0]; | |
953ff289 | 2221 | |
5213506e RW |
2222 | ; |
2223 | return 0; | |
2224 | } | |
2225 | _ACEOF | |
2226 | if ac_fn_c_try_compile "$LINENO"; then : | |
2227 | ac_hi=$ac_mid | |
2228 | else | |
2229 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2230 | fi | |
2231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2232 | done | |
2233 | case $ac_lo in #(( | |
2234 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2235 | '') ac_retval=1 ;; | |
2236 | esac | |
2237 | else | |
2238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2239 | /* end confdefs.h. */ | |
2240 | $4 | |
2241 | static long int longval () { return $2; } | |
2242 | static unsigned long int ulongval () { return $2; } | |
2243 | #include <stdio.h> | |
2244 | #include <stdlib.h> | |
2245 | int | |
2246 | main () | |
2247 | { | |
953ff289 | 2248 | |
5213506e RW |
2249 | FILE *f = fopen ("conftest.val", "w"); |
2250 | if (! f) | |
2251 | return 1; | |
2252 | if (($2) < 0) | |
2253 | { | |
2254 | long int i = longval (); | |
2255 | if (i != ($2)) | |
2256 | return 1; | |
2257 | fprintf (f, "%ld", i); | |
2258 | } | |
2259 | else | |
2260 | { | |
2261 | unsigned long int i = ulongval (); | |
2262 | if (i != ($2)) | |
2263 | return 1; | |
2264 | fprintf (f, "%lu", i); | |
2265 | } | |
2266 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2267 | on some platforms. */ | |
2268 | return ferror (f) || fclose (f) != 0; | |
953ff289 | 2269 | |
5213506e RW |
2270 | ; |
2271 | return 0; | |
2272 | } | |
2273 | _ACEOF | |
2274 | if ac_fn_c_try_run "$LINENO"; then : | |
2275 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2276 | else | |
2277 | ac_retval=1 | |
2278 | fi | |
2279 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2280 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2281 | rm -f conftest.val | |
953ff289 | 2282 | |
5213506e | 2283 | fi |
22e05272 JM |
2284 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2285 | as_fn_set_status $ac_retval | |
953ff289 | 2286 | |
5213506e RW |
2287 | } # ac_fn_c_compute_int |
2288 | cat >config.log <<_ACEOF | |
2289 | This file contains any messages produced by compilers while | |
2290 | running configure, to aid debugging if configure makes a mistake. | |
953ff289 | 2291 | |
f1f3453e | 2292 | It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was |
22e05272 | 2293 | generated by GNU Autoconf 2.69. Invocation command line was |
953ff289 | 2294 | |
5213506e | 2295 | $ $0 $@ |
953ff289 | 2296 | |
5213506e RW |
2297 | _ACEOF |
2298 | exec 5>>config.log | |
2299 | { | |
2300 | cat <<_ASUNAME | |
2301 | ## --------- ## | |
2302 | ## Platform. ## | |
2303 | ## --------- ## | |
953ff289 | 2304 | |
5213506e RW |
2305 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2306 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2307 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2308 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2309 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
953ff289 | 2310 | |
5213506e RW |
2311 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2312 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
953ff289 | 2313 | |
5213506e RW |
2314 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2315 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2316 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2317 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2318 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2319 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2320 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
953ff289 | 2321 | |
5213506e | 2322 | _ASUNAME |
953ff289 | 2323 | |
5213506e RW |
2324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2325 | for as_dir in $PATH | |
2326 | do | |
2327 | IFS=$as_save_IFS | |
2328 | test -z "$as_dir" && as_dir=. | |
2329 | $as_echo "PATH: $as_dir" | |
2330 | done | |
2331 | IFS=$as_save_IFS | |
953ff289 | 2332 | |
5213506e | 2333 | } >&5 |
953ff289 | 2334 | |
5213506e | 2335 | cat >&5 <<_ACEOF |
18c04407 RW |
2336 | |
2337 | ||
5213506e RW |
2338 | ## ----------- ## |
2339 | ## Core tests. ## | |
2340 | ## ----------- ## | |
18c04407 | 2341 | |
5213506e | 2342 | _ACEOF |
953ff289 DN |
2343 | |
2344 | ||
5213506e RW |
2345 | # Keep a trace of the command line. |
2346 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2347 | # Strip out --silent because we don't want to record it for future runs. | |
2348 | # Also quote any args containing shell meta-characters. | |
2349 | # Make two passes to allow for proper duplicate-argument suppression. | |
2350 | ac_configure_args= | |
2351 | ac_configure_args0= | |
2352 | ac_configure_args1= | |
2353 | ac_must_keep_next=false | |
2354 | for ac_pass in 1 2 | |
2355 | do | |
2356 | for ac_arg | |
2357 | do | |
2358 | case $ac_arg in | |
2359 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2360 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2361 | | -silent | --silent | --silen | --sile | --sil) | |
2362 | continue ;; | |
2363 | *\'*) | |
2364 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2365 | esac | |
2366 | case $ac_pass in | |
2367 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2368 | 2) | |
2369 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2370 | if test $ac_must_keep_next = true; then | |
2371 | ac_must_keep_next=false # Got value, back to normal. | |
2372 | else | |
2373 | case $ac_arg in | |
2374 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2375 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2376 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2377 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2378 | case "$ac_configure_args0 " in | |
2379 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2380 | esac | |
2381 | ;; | |
2382 | -* ) ac_must_keep_next=true ;; | |
2383 | esac | |
2384 | fi | |
2385 | as_fn_append ac_configure_args " '$ac_arg'" | |
2386 | ;; | |
2387 | esac | |
2388 | done | |
2389 | done | |
2390 | { ac_configure_args0=; unset ac_configure_args0;} | |
2391 | { ac_configure_args1=; unset ac_configure_args1;} | |
953ff289 | 2392 | |
5213506e RW |
2393 | # When interrupted or exit'd, cleanup temporary files, and complete |
2394 | # config.log. We remove comments because anyway the quotes in there | |
2395 | # would cause problems or look ugly. | |
2396 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2397 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2398 | trap 'exit_status=$? | |
2399 | # Save into config.log some information that might help in debugging. | |
2400 | { | |
2401 | echo | |
953ff289 | 2402 | |
22e05272 | 2403 | $as_echo "## ---------------- ## |
5213506e | 2404 | ## Cache variables. ## |
22e05272 | 2405 | ## ---------------- ##" |
5213506e RW |
2406 | echo |
2407 | # The following way of writing the cache mishandles newlines in values, | |
2408 | ( | |
2409 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2410 | eval ac_val=\$$ac_var | |
2411 | case $ac_val in #( | |
2412 | *${as_nl}*) | |
2413 | case $ac_var in #( | |
2414 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2415 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2416 | esac | |
2417 | case $ac_var in #( | |
2418 | _ | IFS | as_nl) ;; #( | |
2419 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2420 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2421 | esac ;; | |
2422 | esac | |
2423 | done | |
2424 | (set) 2>&1 | | |
2425 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2426 | *${as_nl}ac_space=\ *) | |
2427 | sed -n \ | |
2428 | "s/'\''/'\''\\\\'\'''\''/g; | |
2429 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2430 | ;; #( | |
2431 | *) | |
2432 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2433 | ;; | |
2434 | esac | | |
2435 | sort | |
2436 | ) | |
2437 | echo | |
953ff289 | 2438 | |
22e05272 | 2439 | $as_echo "## ----------------- ## |
5213506e | 2440 | ## Output variables. ## |
22e05272 | 2441 | ## ----------------- ##" |
5213506e RW |
2442 | echo |
2443 | for ac_var in $ac_subst_vars | |
2444 | do | |
2445 | eval ac_val=\$$ac_var | |
2446 | case $ac_val in | |
2447 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2448 | esac | |
2449 | $as_echo "$ac_var='\''$ac_val'\''" | |
2450 | done | sort | |
2451 | echo | |
953ff289 | 2452 | |
5213506e | 2453 | if test -n "$ac_subst_files"; then |
22e05272 | 2454 | $as_echo "## ------------------- ## |
5213506e | 2455 | ## File substitutions. ## |
22e05272 | 2456 | ## ------------------- ##" |
5213506e RW |
2457 | echo |
2458 | for ac_var in $ac_subst_files | |
2459 | do | |
2460 | eval ac_val=\$$ac_var | |
2461 | case $ac_val in | |
2462 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2463 | esac | |
2464 | $as_echo "$ac_var='\''$ac_val'\''" | |
2465 | done | sort | |
2466 | echo | |
2467 | fi | |
953ff289 | 2468 | |
5213506e | 2469 | if test -s confdefs.h; then |
22e05272 | 2470 | $as_echo "## ----------- ## |
5213506e | 2471 | ## confdefs.h. ## |
22e05272 | 2472 | ## ----------- ##" |
5213506e RW |
2473 | echo |
2474 | cat confdefs.h | |
2475 | echo | |
2476 | fi | |
2477 | test "$ac_signal" != 0 && | |
2478 | $as_echo "$as_me: caught signal $ac_signal" | |
2479 | $as_echo "$as_me: exit $exit_status" | |
2480 | } >&5 | |
2481 | rm -f core *.core core.conftest.* && | |
2482 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2483 | exit $exit_status | |
2484 | ' 0 | |
2485 | for ac_signal in 1 2 13 15; do | |
2486 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2487 | done | |
2488 | ac_signal=0 | |
953ff289 | 2489 | |
5213506e RW |
2490 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2491 | rm -f -r conftest* confdefs.h | |
2492 | ||
2493 | $as_echo "/* confdefs.h */" > confdefs.h | |
2494 | ||
2495 | # Predefined preprocessor variables. | |
2496 | ||
2497 | cat >>confdefs.h <<_ACEOF | |
2498 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2499 | _ACEOF | |
2500 | ||
2501 | cat >>confdefs.h <<_ACEOF | |
2502 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2503 | _ACEOF | |
2504 | ||
2505 | cat >>confdefs.h <<_ACEOF | |
2506 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2507 | _ACEOF | |
2508 | ||
2509 | cat >>confdefs.h <<_ACEOF | |
2510 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2511 | _ACEOF | |
2512 | ||
2513 | cat >>confdefs.h <<_ACEOF | |
2514 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2515 | _ACEOF | |
2516 | ||
2517 | cat >>confdefs.h <<_ACEOF | |
2518 | #define PACKAGE_URL "$PACKAGE_URL" | |
2519 | _ACEOF | |
2520 | ||
2521 | ||
2522 | # Let the site file select an alternate cache file if it wants to. | |
2523 | # Prefer an explicitly selected file to automatically selected ones. | |
2524 | ac_site_file1=NONE | |
2525 | ac_site_file2=NONE | |
2526 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2527 | # We do not want a PATH search for config.site. |
2528 | case $CONFIG_SITE in #(( | |
2529 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2530 | */*) ac_site_file1=$CONFIG_SITE;; | |
2531 | *) ac_site_file1=./$CONFIG_SITE;; | |
2532 | esac | |
5213506e RW |
2533 | elif test "x$prefix" != xNONE; then |
2534 | ac_site_file1=$prefix/share/config.site | |
2535 | ac_site_file2=$prefix/etc/config.site | |
2536 | else | |
2537 | ac_site_file1=$ac_default_prefix/share/config.site | |
2538 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2539 | fi | |
2540 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2541 | do | |
2542 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2543 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2545 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2546 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2547 | . "$ac_site_file" \ |
2548 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2549 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2550 | as_fn_error $? "failed to load site script $ac_site_file | |
2551 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
2552 | fi |
2553 | done | |
2554 | ||
2555 | if test -r "$cache_file"; then | |
22e05272 JM |
2556 | # Some versions of bash will fail to source /dev/null (special files |
2557 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2558 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2560 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2561 | case $cache_file in | |
2562 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2563 | *) . "./$cache_file";; | |
2564 | esac | |
2565 | fi | |
2566 | else | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2568 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2569 | >$cache_file | |
2570 | fi | |
2571 | ||
b8d89b03 ML |
2572 | as_fn_append ac_header_list " unistd.h" |
2573 | as_fn_append ac_func_list " secure_getenv" | |
2574 | as_fn_append ac_func_list " __secure_getenv" | |
2575 | as_fn_append ac_func_list " getuid" | |
2576 | as_fn_append ac_func_list " geteuid" | |
2577 | as_fn_append ac_func_list " getgid" | |
2578 | as_fn_append ac_func_list " getegid" | |
5213506e RW |
2579 | # Check that the precious variables saved in the cache have kept the same |
2580 | # value. | |
2581 | ac_cache_corrupted=false | |
2582 | for ac_var in $ac_precious_vars; do | |
2583 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2584 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2585 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2586 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2587 | case $ac_old_set,$ac_new_set in | |
2588 | set,) | |
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2590 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2591 | ac_cache_corrupted=: ;; | |
2592 | ,set) | |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2594 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2595 | ac_cache_corrupted=: ;; | |
2596 | ,);; | |
2597 | *) | |
2598 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2599 | # differences in whitespace do not lead to failure. | |
2600 | ac_old_val_w=`echo x $ac_old_val` | |
2601 | ac_new_val_w=`echo x $ac_new_val` | |
2602 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2604 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2605 | ac_cache_corrupted=: | |
2606 | else | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2608 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2609 | eval $ac_var=\$ac_old_val | |
2610 | fi | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2612 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2614 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2615 | fi;; | |
2616 | esac | |
2617 | # Pass precious variables to config.status. | |
2618 | if test "$ac_new_set" = set; then | |
2619 | case $ac_new_val in | |
2620 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2621 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2622 | esac | |
2623 | case " $ac_configure_args " in | |
2624 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2625 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2626 | esac | |
2627 | fi | |
2628 | done | |
2629 | if $ac_cache_corrupted; then | |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2631 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2633 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2634 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
5213506e RW |
2635 | fi |
2636 | ## -------------------- ## | |
2637 | ## Main body of script. ## | |
2638 | ## -------------------- ## | |
2639 | ||
2640 | ac_ext=c | |
2641 | ac_cpp='$CPP $CPPFLAGS' | |
2642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2645 | ||
2646 | ||
2647 | ||
2648 | ||
2649 | ||
2650 | ac_config_headers="$ac_config_headers config.h" | |
2651 | ||
2652 | ||
2653 | # ------- | |
2654 | # Options | |
2655 | # ------- | |
2656 | ||
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 | |
2658 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2659 | # Check whether --enable-version-specific-runtime-libs was given. | |
2660 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2661 | enableval=$enable_version_specific_runtime_libs; | |
953ff289 DN |
2662 | case "$enableval" in |
2663 | yes|no) ;; | |
22e05272 | 2664 | *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; |
953ff289 DN |
2665 | esac |
2666 | ||
2667 | else | |
2668 | enable_version_specific_runtime_libs=no | |
5213506e RW |
2669 | fi |
2670 | ||
953ff289 | 2671 | |
5213506e RW |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 |
2673 | $as_echo "$enable_version_specific_runtime_libs" >&6; } | |
953ff289 | 2674 | |
627ab4b8 TT |
2675 | # We would like our source tree to be readonly. However when releases or |
2676 | # pre-releases are generated, the flex/bison generated files as well as the | |
2677 | # various formats of manuals need to be included along with the rest of the | |
2678 | # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
2679 | # just that. | |
5213506e RW |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 |
2681 | $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } | |
2682 | # Check whether --enable-generated-files-in-srcdir was given. | |
2683 | if test "${enable_generated_files_in_srcdir+set}" = set; then : | |
2684 | enableval=$enable_generated_files_in_srcdir; | |
627ab4b8 TT |
2685 | case "$enableval" in |
2686 | yes|no) ;; | |
22e05272 | 2687 | *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; |
627ab4b8 TT |
2688 | esac |
2689 | ||
2690 | else | |
2691 | enable_generated_files_in_srcdir=no | |
5213506e | 2692 | fi |
627ab4b8 TT |
2693 | |
2694 | ||
5213506e RW |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 |
2696 | $as_echo "$enable_generated_files_in_srcdir" >&6; } | |
2697 | if test "$enable_generated_files_in_srcdir" = yes; then | |
627ab4b8 TT |
2698 | GENINSRC_TRUE= |
2699 | GENINSRC_FALSE='#' | |
2700 | else | |
2701 | GENINSRC_TRUE='#' | |
2702 | GENINSRC_FALSE= | |
2703 | fi | |
2704 | ||
2705 | ||
2706 | ||
953ff289 DN |
2707 | # ------- |
2708 | # ------- | |
2709 | ||
2710 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2711 | # | |
2712 | # You will slowly go insane if you do not grok the following fact: when | |
2713 | # building this library, the top-level /target/ becomes the library's /host/. | |
2714 | # | |
2715 | # configure then causes --target to default to --host, exactly like any | |
2716 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2717 | # always be the same. This makes sense both for native and cross compilers | |
2718 | # just think about it for a little while. :-) | |
2719 | # | |
2720 | # Also, if this library is being configured as part of a cross compiler, the | |
2721 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2722 | # | |
2723 | # Do not delete or change the following two lines. For why, see | |
2724 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
2725 | ac_aux_dir= | |
5213506e | 2726 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2727 | if test -f "$ac_dir/install-sh"; then |
2728 | ac_aux_dir=$ac_dir | |
2729 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2730 | break | |
2731 | elif test -f "$ac_dir/install.sh"; then | |
2732 | ac_aux_dir=$ac_dir | |
2733 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2734 | break | |
2735 | elif test -f "$ac_dir/shtool"; then | |
2736 | ac_aux_dir=$ac_dir | |
2737 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2738 | break | |
2739 | fi | |
953ff289 DN |
2740 | done |
2741 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2742 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
953ff289 | 2743 | fi |
5213506e RW |
2744 | |
2745 | # These three variables are undocumented and unsupported, | |
2746 | # and are intended to be withdrawn in a future Autoconf release. | |
2747 | # They can cause serious problems if a builder's source tree is in a directory | |
2748 | # whose full name contains unusual characters. | |
2749 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2750 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2751 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2752 | ||
953ff289 DN |
2753 | |
2754 | # Make sure we can run config.sub. | |
5213506e | 2755 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2756 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2757 | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2759 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2760 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2761 | $as_echo_n "(cached) " >&6 |
2762 | else | |
2763 | ac_build_alias=$build_alias | |
2764 | test "x$ac_build_alias" = x && | |
2765 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2766 | test "x$ac_build_alias" = x && | |
22e05272 | 2767 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2768 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2769 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2770 | |
2771 | fi | |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2773 | $as_echo "$ac_cv_build" >&6; } | |
2774 | case $ac_cv_build in | |
2775 | *-*-*) ;; | |
22e05272 | 2776 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2777 | esac |
953ff289 | 2778 | build=$ac_cv_build |
5213506e RW |
2779 | ac_save_IFS=$IFS; IFS='-' |
2780 | set x $ac_cv_build | |
2781 | shift | |
2782 | build_cpu=$1 | |
2783 | build_vendor=$2 | |
2784 | shift; shift | |
2785 | # Remember, the first character of IFS is used to create $*, | |
2786 | # except with old shells: | |
2787 | build_os=$* | |
2788 | IFS=$ac_save_IFS | |
2789 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2790 | |
2791 | ||
5213506e RW |
2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2793 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2794 | if ${ac_cv_host+:} false; then : |
5213506e | 2795 | $as_echo_n "(cached) " >&6 |
953ff289 | 2796 | else |
5213506e RW |
2797 | if test "x$host_alias" = x; then |
2798 | ac_cv_host=$ac_cv_build | |
2799 | else | |
2800 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2801 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2802 | fi |
953ff289 DN |
2803 | |
2804 | fi | |
5213506e RW |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2806 | $as_echo "$ac_cv_host" >&6; } | |
2807 | case $ac_cv_host in | |
2808 | *-*-*) ;; | |
22e05272 | 2809 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2810 | esac |
953ff289 | 2811 | host=$ac_cv_host |
5213506e RW |
2812 | ac_save_IFS=$IFS; IFS='-' |
2813 | set x $ac_cv_host | |
2814 | shift | |
2815 | host_cpu=$1 | |
2816 | host_vendor=$2 | |
2817 | shift; shift | |
2818 | # Remember, the first character of IFS is used to create $*, | |
2819 | # except with old shells: | |
2820 | host_os=$* | |
2821 | IFS=$ac_save_IFS | |
2822 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2823 | |
2824 | ||
5213506e RW |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2826 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2827 | if ${ac_cv_target+:} false; then : |
5213506e RW |
2828 | $as_echo_n "(cached) " >&6 |
2829 | else | |
2830 | if test "x$target_alias" = x; then | |
2831 | ac_cv_target=$ac_cv_host | |
953ff289 | 2832 | else |
5213506e | 2833 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
22e05272 | 2834 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2835 | fi |
953ff289 DN |
2836 | |
2837 | fi | |
5213506e RW |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2839 | $as_echo "$ac_cv_target" >&6; } | |
2840 | case $ac_cv_target in | |
2841 | *-*-*) ;; | |
22e05272 | 2842 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2843 | esac |
953ff289 | 2844 | target=$ac_cv_target |
5213506e RW |
2845 | ac_save_IFS=$IFS; IFS='-' |
2846 | set x $ac_cv_target | |
2847 | shift | |
2848 | target_cpu=$1 | |
2849 | target_vendor=$2 | |
2850 | shift; shift | |
2851 | # Remember, the first character of IFS is used to create $*, | |
2852 | # except with old shells: | |
2853 | target_os=$* | |
2854 | IFS=$ac_save_IFS | |
2855 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
953ff289 DN |
2856 | |
2857 | ||
2858 | # The aliases save the names the user supplied, while $host etc. | |
2859 | # will get canonicalized. | |
2860 | test -n "$target_alias" && | |
2861 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2862 | NONENONEs,x,x, && | |
2863 | program_prefix=${target_alias}- | |
5213506e | 2864 | |
953ff289 DN |
2865 | target_alias=${target_alias-$host_alias} |
2866 | ||
2867 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
2868 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2869 | # 1.9.0: minimum required version | |
2870 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
2871 | # of other PACKAGE_* variables will, however, and there's nothing | |
2872 | # we can do about that; they come from AC_INIT). | |
2873 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
2874 | # file in the top srcdir, etc, etc), so stop complaining. | |
13917ae3 | 2875 | # no-dist: we don't want 'dist' and related rules. |
953ff289 DN |
2876 | # -Wall: turns on all automake warnings... |
2877 | # -Wno-portability: ...except this one, since GNU make is required. | |
2878 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
22e05272 | 2879 | am__api_version='1.15' |
5213506e | 2880 | |
953ff289 DN |
2881 | # Find a good install program. We prefer a C program (faster), |
2882 | # so one script is as good as another. But avoid the broken or | |
2883 | # incompatible versions: | |
2884 | # SysV /etc/install, /usr/sbin/install | |
2885 | # SunOS /usr/etc/install | |
2886 | # IRIX /sbin/install | |
2887 | # AIX /bin/install | |
2888 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2889 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2890 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2891 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2892 | # OS/2's system install, which has a completely different semantic | |
2893 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 2894 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2896 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
953ff289 | 2897 | if test -z "$INSTALL"; then |
22e05272 | 2898 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2899 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
2900 | else |
2901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2902 | for as_dir in $PATH | |
2903 | do | |
2904 | IFS=$as_save_IFS | |
2905 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2906 | # Account for people who put trailing slashes in PATH elements. |
2907 | case $as_dir/ in #(( | |
2908 | ./ | .// | /[cC]/* | \ | |
953ff289 | 2909 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2910 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
953ff289 DN |
2911 | /usr/ucb/* ) ;; |
2912 | *) | |
2913 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2914 | # Don't use installbsd from OSF since it installs stuff as root | |
2915 | # by default. | |
2916 | for ac_prog in ginstall scoinst install; do | |
2917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2918 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
953ff289 DN |
2919 | if test $ac_prog = install && |
2920 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2921 | # AIX install. It has an incompatible calling convention. | |
2922 | : | |
2923 | elif test $ac_prog = install && | |
2924 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2925 | # program-specific install script used by HP pwplus--don't use. | |
2926 | : | |
2927 | else | |
38d24731 RW |
2928 | rm -rf conftest.one conftest.two conftest.dir |
2929 | echo one > conftest.one | |
2930 | echo two > conftest.two | |
2931 | mkdir conftest.dir | |
2932 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2933 | test -s conftest.one && test -s conftest.two && | |
2934 | test -s conftest.dir/conftest.one && | |
2935 | test -s conftest.dir/conftest.two | |
2936 | then | |
2937 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2938 | break 3 | |
2939 | fi | |
953ff289 DN |
2940 | fi |
2941 | fi | |
2942 | done | |
2943 | done | |
2944 | ;; | |
2945 | esac | |
5213506e RW |
2946 | |
2947 | done | |
2948 | IFS=$as_save_IFS | |
953ff289 | 2949 | |
38d24731 | 2950 | rm -rf conftest.one conftest.two conftest.dir |
953ff289 DN |
2951 | |
2952 | fi | |
2953 | if test "${ac_cv_path_install+set}" = set; then | |
2954 | INSTALL=$ac_cv_path_install | |
2955 | else | |
38d24731 RW |
2956 | # As a last resort, use the slow shell script. Don't cache a |
2957 | # value for INSTALL within a source directory, because that will | |
953ff289 | 2958 | # break other packages using the cache if that directory is |
38d24731 | 2959 | # removed, or if the value is a relative name. |
953ff289 DN |
2960 | INSTALL=$ac_install_sh |
2961 | fi | |
2962 | fi | |
5213506e RW |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2964 | $as_echo "$INSTALL" >&6; } | |
953ff289 DN |
2965 | |
2966 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2967 | # It thinks the first close brace ends the variable substitution. | |
2968 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2969 | ||
2970 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2971 | ||
2972 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2973 | ||
5213506e RW |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2975 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5213506e RW |
2976 | # Reject unsafe characters in $srcdir or the absolute working directory |
2977 | # name. Accept space and tab only in the latter. | |
2978 | am_lf=' | |
2979 | ' | |
2980 | case `pwd` in | |
2981 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 2982 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
5213506e RW |
2983 | esac |
2984 | case $srcdir in | |
2985 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 2986 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
5213506e RW |
2987 | esac |
2988 | ||
22e05272 | 2989 | # Do 'set' in a subshell so we don't clobber the current shell's |
953ff289 DN |
2990 | # arguments. Must try -L first in case configure is actually a |
2991 | # symlink; some systems play weird games with the mod time of symlinks | |
2992 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2993 | # directory). | |
2994 | if ( | |
22e05272 JM |
2995 | am_has_slept=no |
2996 | for am_try in 1 2; do | |
2997 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2998 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2999 | if test "$*" = "X"; then | |
3000 | # -L didn't work. | |
3001 | set X `ls -t "$srcdir/configure" conftest.file` | |
3002 | fi | |
3003 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3004 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3005 | ||
3006 | # If neither matched, then we have a broken ls. This can happen | |
3007 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3008 | # broken ls alias from the environment. This has actually | |
3009 | # happened. Such a system could not be considered "sane". | |
3010 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3011 | alias in your environment" "$LINENO" 5 | |
3012 | fi | |
3013 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3014 | break | |
3015 | fi | |
3016 | # Just in case. | |
3017 | sleep 1 | |
3018 | am_has_slept=yes | |
3019 | done | |
953ff289 DN |
3020 | test "$2" = conftest.file |
3021 | ) | |
3022 | then | |
3023 | # Ok. | |
3024 | : | |
3025 | else | |
22e05272 | 3026 | as_fn_error $? "newly created file is older than distributed files! |
5213506e | 3027 | Check your system clock" "$LINENO" 5 |
953ff289 | 3028 | fi |
5213506e RW |
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3030 | $as_echo "yes" >&6; } | |
22e05272 JM |
3031 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3032 | # generated files are strictly newer. | |
3033 | am_sleep_pid= | |
3034 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3035 | ( sleep 1 ) & | |
3036 | am_sleep_pid=$! | |
3037 | fi | |
3038 | ||
3039 | rm -f conftest.file | |
3040 | ||
953ff289 | 3041 | test "$program_prefix" != NONE && |
5213506e | 3042 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
953ff289 DN |
3043 | # Use a double $ so make ignores it. |
3044 | test "$program_suffix" != NONE && | |
5213506e RW |
3045 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3046 | # Double any \ or $. | |
953ff289 | 3047 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
3048 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3049 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
953ff289 | 3050 | |
22e05272 JM |
3051 | # Expand $ac_aux_dir to an absolute path. |
3052 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
953ff289 | 3053 | |
5213506e RW |
3054 | if test x"${MISSING+set}" != xset; then |
3055 | case $am_aux_dir in | |
3056 | *\ * | *\ *) | |
3057 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3058 | *) | |
3059 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3060 | esac | |
3061 | fi | |
953ff289 | 3062 | # Use eval to expand $SHELL |
22e05272 JM |
3063 | if eval "$MISSING --is-lightweight"; then |
3064 | am_missing_run="$MISSING " | |
953ff289 DN |
3065 | else |
3066 | am_missing_run= | |
22e05272 JM |
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3068 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
5213506e RW |
3069 | fi |
3070 | ||
22e05272 | 3071 | if test x"${install_sh+set}" != xset; then |
5213506e RW |
3072 | case $am_aux_dir in |
3073 | *\ * | *\ *) | |
3074 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3075 | *) | |
3076 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3077 | esac | |
3078 | fi | |
3079 | ||
22e05272 JM |
3080 | # Installed binaries are usually stripped using 'strip' when the user |
3081 | # run "make install-strip". However 'strip' might not be the right | |
5213506e | 3082 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 3083 | # will honor the 'STRIP' environment variable to overrule this program. |
5213506e RW |
3084 | if test "$cross_compiling" != no; then |
3085 | if test -n "$ac_tool_prefix"; then | |
3086 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3087 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3089 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3090 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e RW |
3091 | $as_echo_n "(cached) " >&6 |
3092 | else | |
3093 | if test -n "$STRIP"; then | |
3094 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3095 | else | |
3096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3097 | for as_dir in $PATH | |
3098 | do | |
3099 | IFS=$as_save_IFS | |
3100 | test -z "$as_dir" && as_dir=. | |
3101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3103 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3105 | break 2 | |
3106 | fi | |
3107 | done | |
3108 | done | |
3109 | IFS=$as_save_IFS | |
3110 | ||
3111 | fi | |
3112 | fi | |
3113 | STRIP=$ac_cv_prog_STRIP | |
3114 | if test -n "$STRIP"; then | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3116 | $as_echo "$STRIP" >&6; } | |
3117 | else | |
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3119 | $as_echo "no" >&6; } | |
3120 | fi | |
3121 | ||
3122 | ||
3123 | fi | |
3124 | if test -z "$ac_cv_prog_STRIP"; then | |
3125 | ac_ct_STRIP=$STRIP | |
3126 | # Extract the first word of "strip", so it can be a program name with args. | |
3127 | set dummy strip; ac_word=$2 | |
3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3129 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3130 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e RW |
3131 | $as_echo_n "(cached) " >&6 |
3132 | else | |
3133 | if test -n "$ac_ct_STRIP"; then | |
3134 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3135 | else | |
3136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3137 | for as_dir in $PATH | |
3138 | do | |
3139 | IFS=$as_save_IFS | |
3140 | test -z "$as_dir" && as_dir=. | |
3141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3143 | ac_cv_prog_ac_ct_STRIP="strip" |
3144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3145 | break 2 | |
3146 | fi | |
3147 | done | |
3148 | done | |
3149 | IFS=$as_save_IFS | |
3150 | ||
3151 | fi | |
3152 | fi | |
3153 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3154 | if test -n "$ac_ct_STRIP"; then | |
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3156 | $as_echo "$ac_ct_STRIP" >&6; } | |
3157 | else | |
3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3159 | $as_echo "no" >&6; } | |
3160 | fi | |
3161 | ||
3162 | if test "x$ac_ct_STRIP" = x; then | |
3163 | STRIP=":" | |
3164 | else | |
3165 | case $cross_compiling:$ac_tool_warned in | |
3166 | yes:) | |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3168 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3169 | ac_tool_warned=yes ;; | |
3170 | esac | |
3171 | STRIP=$ac_ct_STRIP | |
3172 | fi | |
3173 | else | |
3174 | STRIP="$ac_cv_prog_STRIP" | |
3175 | fi | |
3176 | ||
3177 | fi | |
3178 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3179 | ||
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3181 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3182 | if test -z "$MKDIR_P"; then | |
22e05272 | 3183 | if ${ac_cv_path_mkdir+:} false; then : |
5213506e RW |
3184 | $as_echo_n "(cached) " >&6 |
3185 | else | |
3186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3187 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3188 | do | |
3189 | IFS=$as_save_IFS | |
3190 | test -z "$as_dir" && as_dir=. | |
3191 | for ac_prog in mkdir gmkdir; do | |
3192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3193 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5213506e RW |
3194 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3195 | 'mkdir (GNU coreutils) '* | \ | |
3196 | 'mkdir (coreutils) '* | \ | |
3197 | 'mkdir (fileutils) '4.1*) | |
3198 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3199 | break 3;; | |
3200 | esac | |
3201 | done | |
3202 | done | |
953ff289 | 3203 | done |
5213506e RW |
3204 | IFS=$as_save_IFS |
3205 | ||
3206 | fi | |
3207 | ||
22e05272 | 3208 | test -d ./--version && rmdir ./--version |
5213506e RW |
3209 | if test "${ac_cv_path_mkdir+set}" = set; then |
3210 | MKDIR_P="$ac_cv_path_mkdir -p" | |
953ff289 | 3211 | else |
5213506e RW |
3212 | # As a last resort, use the slow shell script. Don't cache a |
3213 | # value for MKDIR_P within a source directory, because that will | |
3214 | # break other packages using the cache if that directory is | |
3215 | # removed, or if the value is a relative name. | |
5213506e | 3216 | MKDIR_P="$ac_install_sh -d" |
953ff289 DN |
3217 | fi |
3218 | fi | |
5213506e RW |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3220 | $as_echo "$MKDIR_P" >&6; } | |
3221 | ||
953ff289 DN |
3222 | for ac_prog in gawk mawk nawk awk |
3223 | do | |
3224 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3225 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3227 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3228 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e | 3229 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3230 | else |
3231 | if test -n "$AWK"; then | |
3232 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3233 | else | |
3234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3235 | for as_dir in $PATH | |
3236 | do | |
3237 | IFS=$as_save_IFS | |
3238 | test -z "$as_dir" && as_dir=. | |
5213506e | 3239 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3241 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 3242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3243 | break 2 |
3244 | fi | |
3245 | done | |
5213506e RW |
3246 | done |
3247 | IFS=$as_save_IFS | |
953ff289 DN |
3248 | |
3249 | fi | |
3250 | fi | |
3251 | AWK=$ac_cv_prog_AWK | |
3252 | if test -n "$AWK"; then | |
5213506e RW |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3254 | $as_echo "$AWK" >&6; } | |
953ff289 | 3255 | else |
5213506e RW |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3257 | $as_echo "no" >&6; } | |
953ff289 DN |
3258 | fi |
3259 | ||
5213506e | 3260 | |
953ff289 DN |
3261 | test -n "$AWK" && break |
3262 | done | |
3263 | ||
5213506e RW |
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3265 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3266 | set x ${MAKE-make} | |
3267 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3268 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e | 3269 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3270 | else |
3271 | cat >conftest.make <<\_ACEOF | |
5213506e | 3272 | SHELL = /bin/sh |
953ff289 | 3273 | all: |
5213506e | 3274 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
953ff289 | 3275 | _ACEOF |
22e05272 | 3276 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
3277 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3278 | *@@@%%%=?*=@@@%%%*) | |
3279 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3280 | *) | |
3281 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3282 | esac | |
953ff289 DN |
3283 | rm -f conftest.make |
3284 | fi | |
5213506e RW |
3285 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3287 | $as_echo "yes" >&6; } | |
953ff289 DN |
3288 | SET_MAKE= |
3289 | else | |
5213506e RW |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3291 | $as_echo "no" >&6; } | |
953ff289 DN |
3292 | SET_MAKE="MAKE=${MAKE-make}" |
3293 | fi | |
3294 | ||
3295 | rm -rf .tst 2>/dev/null | |
3296 | mkdir .tst 2>/dev/null | |
3297 | if test -d .tst; then | |
3298 | am__leading_dot=. | |
3299 | else | |
3300 | am__leading_dot=_ | |
3301 | fi | |
3302 | rmdir .tst 2>/dev/null | |
3303 | ||
22e05272 JM |
3304 | # Check whether --enable-silent-rules was given. |
3305 | if test "${enable_silent_rules+set}" = set; then : | |
3306 | enableval=$enable_silent_rules; | |
3307 | fi | |
3308 | ||
3309 | case $enable_silent_rules in # ((( | |
3310 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3311 | no) AM_DEFAULT_VERBOSITY=1;; | |
3312 | *) AM_DEFAULT_VERBOSITY=1;; | |
3313 | esac | |
3314 | am_make=${MAKE-make} | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3316 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3317 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3318 | $as_echo_n "(cached) " >&6 | |
3319 | else | |
3320 | if $as_echo 'TRUE=$(BAR$(V)) | |
3321 | BAR0=false | |
3322 | BAR1=true | |
3323 | V=1 | |
3324 | am__doit: | |
3325 | @$(TRUE) | |
3326 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3327 | am_cv_make_support_nested_variables=yes | |
3328 | else | |
3329 | am_cv_make_support_nested_variables=no | |
3330 | fi | |
3331 | fi | |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3333 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3334 | if test $am_cv_make_support_nested_variables = yes; then | |
3335 | AM_V='$(V)' | |
3336 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3337 | else | |
3338 | AM_V=$AM_DEFAULT_VERBOSITY | |
3339 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3340 | fi | |
3341 | AM_BACKSLASH='\' | |
3342 | ||
5213506e RW |
3343 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3344 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3345 | # is not polluted with repeated "-I." | |
3346 | am__isrc=' -I$(srcdir)' | |
3347 | # test to see if srcdir already configured | |
3348 | if test -f $srcdir/config.status; then | |
22e05272 | 3349 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5213506e | 3350 | fi |
953ff289 DN |
3351 | fi |
3352 | ||
3353 | # test whether we have cygpath | |
3354 | if test -z "$CYGPATH_W"; then | |
3355 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3356 | CYGPATH_W='cygpath -w' | |
3357 | else | |
3358 | CYGPATH_W=echo | |
3359 | fi | |
3360 | fi | |
3361 | ||
3362 | ||
3363 | # Define the identity of the package. | |
3364 | PACKAGE='libgomp' | |
3365 | VERSION='1.0' | |
3366 | ||
3367 | ||
3368 | cat >>confdefs.h <<_ACEOF | |
3369 | #define PACKAGE "$PACKAGE" | |
3370 | _ACEOF | |
3371 | ||
3372 | ||
3373 | cat >>confdefs.h <<_ACEOF | |
3374 | #define VERSION "$VERSION" | |
3375 | _ACEOF | |
3376 | ||
3377 | # Some tools Automake needs. | |
3378 | ||
3379 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3380 | ||
3381 | ||
3382 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3383 | ||
3384 | ||
3385 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3386 | ||
3387 | ||
3388 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3389 | ||
3390 | ||
3391 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3392 | ||
22e05272 JM |
3393 | # For better backward compatibility. To be removed once Automake 1.9.x |
3394 | # dies out for good. For more background, see: | |
3395 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3396 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3397 | mkdir_p='$(MKDIR_P)' | |
3398 | ||
3399 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3400 | # system "awk" is bad on some platforms. | |
f96b7f1f AM |
3401 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3402 | # in the wild :-( We should find a proper way to deprecate it ... | |
3403 | AMTAR='$${TAR-tar}' | |
953ff289 | 3404 | |
22e05272 JM |
3405 | |
3406 | # We'll loop over all known methods to create a tar archive until one works. | |
3407 | _am_tools='gnutar pax cpio none' | |
3408 | ||
f96b7f1f | 3409 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
953ff289 DN |
3410 | |
3411 | ||
3412 | ||
3413 | ||
3414 | ||
22e05272 JM |
3415 | |
3416 | # POSIX will say in a future version that running "rm -f" with no argument | |
3417 | # is OK; and we want to be able to make that assumption in our Makefile | |
3418 | # recipes. So use an aggressive probe to check that the usage we want is | |
3419 | # actually supported "in the wild" to an acceptable degree. | |
3420 | # See automake bug#10828. | |
3421 | # To make any issue more visible, cause the running configure to be aborted | |
3422 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3423 | # user can still override this though. | |
3424 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3425 | cat >&2 <<'END' | |
3426 | Oops! | |
3427 | ||
3428 | Your 'rm' program seems unable to run without file operands specified | |
3429 | on the command line, even when the '-f' option is present. This is contrary | |
3430 | to the behaviour of most rm programs out there, and not conforming with | |
3431 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3432 | ||
3433 | Please tell bug-automake@gnu.org about your system, including the value | |
3434 | of your $PATH and any error possibly output before this message. This | |
3435 | can help us improve future automake versions. | |
3436 | ||
3437 | END | |
3438 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3439 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3440 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3441 | echo >&2 | |
3442 | else | |
3443 | cat >&2 <<'END' | |
3444 | Aborting the configuration process, to ensure you take notice of the issue. | |
3445 | ||
3446 | You can download and install GNU coreutils to get an 'rm' implementation | |
3447 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3448 | ||
3449 | If you want to complete the configuration process using your problematic | |
3450 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3451 | to "yes", and re-run configure. | |
3452 | ||
3453 | END | |
3454 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3455 | fi | |
3456 | fi | |
3457 | ||
953ff289 | 3458 | # Default to --enable-multilib |
5213506e RW |
3459 | # Check whether --enable-multilib was given. |
3460 | if test "${enable_multilib+set}" = set; then : | |
3461 | enableval=$enable_multilib; case "$enableval" in | |
953ff289 DN |
3462 | yes) multilib=yes ;; |
3463 | no) multilib=no ;; | |
22e05272 | 3464 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
953ff289 DN |
3465 | esac |
3466 | else | |
3467 | multilib=yes | |
5213506e RW |
3468 | fi |
3469 | ||
953ff289 DN |
3470 | |
3471 | # We may get other options which we leave undocumented: | |
3472 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3473 | # See config-ml.in if you want the gory details. | |
3474 | ||
3475 | if test "$srcdir" = "."; then | |
3476 | if test "$with_target_subdir" != "."; then | |
3477 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3478 | else | |
3479 | multi_basedir="$srcdir/$with_multisrctop.." | |
3480 | fi | |
3481 | else | |
3482 | multi_basedir="$srcdir/.." | |
3483 | fi | |
3484 | ||
3485 | ||
5b043f08 GK |
3486 | # Even if the default multilib is not a cross compilation, |
3487 | # it may be that some of the other multilibs are. | |
3488 | if test $cross_compiling = no && test $multilib = yes \ | |
3489 | && test "x${with_multisubdir}" != x ; then | |
3490 | cross_compiling=maybe | |
3491 | fi | |
3492 | ||
5213506e | 3493 | ac_config_commands="$ac_config_commands default-1" |
953ff289 DN |
3494 | |
3495 | ||
3496 | # Calculate toolexeclibdir | |
3497 | # Also toolexecdir, though it's only used in toolexeclibdir | |
3498 | case ${enable_version_specific_runtime_libs} in | |
3499 | yes) | |
3500 | # Need the gcc compiler version to know where to install libraries | |
3501 | # and header files if --enable-version-specific-runtime-libs option | |
3502 | # is selected. | |
3503 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
3504 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
3505 | ;; | |
3506 | no) | |
3507 | if test -n "$with_cross_host" && | |
3508 | test x"$with_cross_host" != x"no"; then | |
3509 | # Install a library built with a cross compiler in tooldir, not libdir. | |
3510 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
3511 | toolexeclibdir='$(toolexecdir)/lib' | |
3512 | else | |
3513 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
3514 | toolexeclibdir='$(libdir)' | |
3515 | fi | |
3516 | multi_os_directory=`$CC -print-multi-os-directory` | |
3517 | case $multi_os_directory in | |
3518 | .) ;; # Avoid trailing /. | |
3519 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
3520 | esac | |
3521 | ;; | |
3522 | esac | |
3523 | ||
3524 | ||
3525 | ||
3526 | # Check the compiler. | |
3527 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
3528 | # We must force CC to /not/ be precious variables; otherwise | |
3529 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
3530 | # As a side effect, we have to subst CFLAGS ourselves. | |
3531 | ||
3532 | ||
3533 | ||
3534 | ac_ext=c | |
3535 | ac_cpp='$CPP $CPPFLAGS' | |
3536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3539 | if test -n "$ac_tool_prefix"; then | |
3540 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3541 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3543 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3544 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3545 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3546 | else |
3547 | if test -n "$CC"; then | |
3548 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3549 | else | |
3550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3551 | for as_dir in $PATH | |
3552 | do | |
3553 | IFS=$as_save_IFS | |
3554 | test -z "$as_dir" && as_dir=. | |
5213506e | 3555 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3556 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3557 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3559 | break 2 |
3560 | fi | |
3561 | done | |
5213506e RW |
3562 | done |
3563 | IFS=$as_save_IFS | |
953ff289 DN |
3564 | |
3565 | fi | |
3566 | fi | |
3567 | CC=$ac_cv_prog_CC | |
3568 | if test -n "$CC"; then | |
5213506e RW |
3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3570 | $as_echo "$CC" >&6; } | |
953ff289 | 3571 | else |
5213506e RW |
3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3573 | $as_echo "no" >&6; } | |
953ff289 DN |
3574 | fi |
3575 | ||
5213506e | 3576 | |
953ff289 DN |
3577 | fi |
3578 | if test -z "$ac_cv_prog_CC"; then | |
3579 | ac_ct_CC=$CC | |
3580 | # Extract the first word of "gcc", so it can be a program name with args. | |
3581 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3583 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3584 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3585 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3586 | else |
3587 | if test -n "$ac_ct_CC"; then | |
3588 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3589 | else | |
3590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3591 | for as_dir in $PATH | |
3592 | do | |
3593 | IFS=$as_save_IFS | |
3594 | test -z "$as_dir" && as_dir=. | |
5213506e | 3595 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3596 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3597 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3599 | break 2 |
3600 | fi | |
3601 | done | |
5213506e RW |
3602 | done |
3603 | IFS=$as_save_IFS | |
953ff289 DN |
3604 | |
3605 | fi | |
3606 | fi | |
3607 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3608 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3610 | $as_echo "$ac_ct_CC" >&6; } | |
953ff289 | 3611 | else |
5213506e RW |
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3613 | $as_echo "no" >&6; } | |
953ff289 DN |
3614 | fi |
3615 | ||
5213506e RW |
3616 | if test "x$ac_ct_CC" = x; then |
3617 | CC="" | |
3618 | else | |
3619 | case $cross_compiling:$ac_tool_warned in | |
3620 | yes:) | |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3622 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3623 | ac_tool_warned=yes ;; | |
3624 | esac | |
3625 | CC=$ac_ct_CC | |
3626 | fi | |
953ff289 DN |
3627 | else |
3628 | CC="$ac_cv_prog_CC" | |
3629 | fi | |
3630 | ||
3631 | if test -z "$CC"; then | |
5213506e RW |
3632 | if test -n "$ac_tool_prefix"; then |
3633 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
953ff289 | 3634 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3636 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3637 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3638 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3639 | else |
3640 | if test -n "$CC"; then | |
3641 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3642 | else | |
3643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3644 | for as_dir in $PATH | |
3645 | do | |
3646 | IFS=$as_save_IFS | |
3647 | test -z "$as_dir" && as_dir=. | |
5213506e | 3648 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3650 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3652 | break 2 |
3653 | fi | |
3654 | done | |
5213506e RW |
3655 | done |
3656 | IFS=$as_save_IFS | |
953ff289 DN |
3657 | |
3658 | fi | |
3659 | fi | |
3660 | CC=$ac_cv_prog_CC | |
3661 | if test -n "$CC"; then | |
5213506e RW |
3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3663 | $as_echo "$CC" >&6; } | |
953ff289 | 3664 | else |
5213506e RW |
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3666 | $as_echo "no" >&6; } | |
953ff289 DN |
3667 | fi |
3668 | ||
953ff289 | 3669 | |
5213506e | 3670 | fi |
953ff289 DN |
3671 | fi |
3672 | if test -z "$CC"; then | |
3673 | # Extract the first word of "cc", so it can be a program name with args. | |
3674 | set dummy cc; ac_word=$2 | |
5213506e RW |
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3676 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3677 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3678 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3679 | else |
3680 | if test -n "$CC"; then | |
3681 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3682 | else | |
3683 | ac_prog_rejected=no | |
3684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3685 | for as_dir in $PATH | |
3686 | do | |
3687 | IFS=$as_save_IFS | |
3688 | test -z "$as_dir" && as_dir=. | |
5213506e | 3689 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 DN |
3691 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3692 | ac_prog_rejected=yes | |
3693 | continue | |
3694 | fi | |
3695 | ac_cv_prog_CC="cc" | |
5213506e | 3696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3697 | break 2 |
3698 | fi | |
3699 | done | |
5213506e RW |
3700 | done |
3701 | IFS=$as_save_IFS | |
953ff289 DN |
3702 | |
3703 | if test $ac_prog_rejected = yes; then | |
3704 | # We found a bogon in the path, so make sure we never use it. | |
3705 | set dummy $ac_cv_prog_CC | |
3706 | shift | |
3707 | if test $# != 0; then | |
3708 | # We chose a different compiler from the bogus one. | |
3709 | # However, it has the same basename, so the bogon will be chosen | |
3710 | # first if we set CC to just the basename; use the full file name. | |
3711 | shift | |
3712 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3713 | fi | |
3714 | fi | |
3715 | fi | |
3716 | fi | |
3717 | CC=$ac_cv_prog_CC | |
3718 | if test -n "$CC"; then | |
5213506e RW |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3720 | $as_echo "$CC" >&6; } | |
953ff289 | 3721 | else |
5213506e RW |
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3723 | $as_echo "no" >&6; } | |
953ff289 DN |
3724 | fi |
3725 | ||
5213506e | 3726 | |
953ff289 DN |
3727 | fi |
3728 | if test -z "$CC"; then | |
3729 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3730 | for ac_prog in cl.exe |
953ff289 DN |
3731 | do |
3732 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3733 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3735 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3736 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3737 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3738 | else |
3739 | if test -n "$CC"; then | |
3740 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3741 | else | |
3742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3743 | for as_dir in $PATH | |
3744 | do | |
3745 | IFS=$as_save_IFS | |
3746 | test -z "$as_dir" && as_dir=. | |
5213506e | 3747 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3749 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3751 | break 2 |
3752 | fi | |
3753 | done | |
5213506e RW |
3754 | done |
3755 | IFS=$as_save_IFS | |
953ff289 DN |
3756 | |
3757 | fi | |
3758 | fi | |
3759 | CC=$ac_cv_prog_CC | |
3760 | if test -n "$CC"; then | |
5213506e RW |
3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3762 | $as_echo "$CC" >&6; } | |
953ff289 | 3763 | else |
5213506e RW |
3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3765 | $as_echo "no" >&6; } | |
953ff289 DN |
3766 | fi |
3767 | ||
5213506e | 3768 | |
953ff289 DN |
3769 | test -n "$CC" && break |
3770 | done | |
3771 | fi | |
3772 | if test -z "$CC"; then | |
3773 | ac_ct_CC=$CC | |
5213506e | 3774 | for ac_prog in cl.exe |
953ff289 DN |
3775 | do |
3776 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3777 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3779 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3780 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3781 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
3782 | else |
3783 | if test -n "$ac_ct_CC"; then | |
3784 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3785 | else | |
3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3787 | for as_dir in $PATH | |
3788 | do | |
3789 | IFS=$as_save_IFS | |
3790 | test -z "$as_dir" && as_dir=. | |
5213506e | 3791 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 3793 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
3795 | break 2 |
3796 | fi | |
3797 | done | |
5213506e RW |
3798 | done |
3799 | IFS=$as_save_IFS | |
953ff289 DN |
3800 | |
3801 | fi | |
3802 | fi | |
3803 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3804 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3806 | $as_echo "$ac_ct_CC" >&6; } | |
953ff289 | 3807 | else |
5213506e RW |
3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3809 | $as_echo "no" >&6; } | |
953ff289 DN |
3810 | fi |
3811 | ||
5213506e | 3812 | |
953ff289 DN |
3813 | test -n "$ac_ct_CC" && break |
3814 | done | |
3815 | ||
5213506e RW |
3816 | if test "x$ac_ct_CC" = x; then |
3817 | CC="" | |
3818 | else | |
3819 | case $cross_compiling:$ac_tool_warned in | |
3820 | yes:) | |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3822 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3823 | ac_tool_warned=yes ;; | |
3824 | esac | |
3825 | CC=$ac_ct_CC | |
3826 | fi | |
953ff289 DN |
3827 | fi |
3828 | ||
3829 | fi | |
3830 | ||
3831 | ||
5213506e RW |
3832 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3833 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3834 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3835 | See \`config.log' for more details" "$LINENO" 5; } | |
953ff289 DN |
3836 | |
3837 | # Provide some information about the compiler. | |
5213506e RW |
3838 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3839 | set X $ac_compile | |
3840 | ac_compiler=$2 | |
3841 | for ac_option in --version -v -V -qversion; do | |
3842 | { { ac_try="$ac_compiler $ac_option >&5" | |
3843 | case "(($ac_try" in | |
3844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3845 | *) ac_try_echo=$ac_try;; | |
3846 | esac | |
3847 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3848 | $as_echo "$ac_try_echo"; } >&5 | |
3849 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
953ff289 | 3850 | ac_status=$? |
5213506e RW |
3851 | if test -s conftest.err; then |
3852 | sed '10a\ | |
3853 | ... rest of stderr output deleted ... | |
3854 | 10q' conftest.err >conftest.er1 | |
3855 | cat conftest.er1 >&5 | |
5213506e | 3856 | fi |
22e05272 | 3857 | rm -f conftest.er1 conftest.err |
5213506e RW |
3858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3859 | test $ac_status = 0; } | |
3860 | done | |
953ff289 | 3861 | |
5213506e | 3862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
3863 | /* end confdefs.h. */ |
3864 | ||
3865 | int | |
3866 | main () | |
3867 | { | |
3868 | ||
3869 | ; | |
3870 | return 0; | |
3871 | } | |
3872 | _ACEOF | |
3873 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 3874 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
953ff289 DN |
3875 | # Try to create an executable without -o first, disregard a.out. |
3876 | # It will help us diagnose broken compilers, and finding out an intuition | |
3877 | # of exeext. | |
22e05272 JM |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3879 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
3880 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3881 | ||
3882 | # The possible output files: | |
3883 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3884 | ||
3885 | ac_rmfiles= | |
3886 | for ac_file in $ac_files | |
3887 | do | |
3888 | case $ac_file in | |
3889 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3890 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3891 | esac | |
3892 | done | |
3893 | rm -f $ac_rmfiles | |
3894 | ||
3895 | if { { ac_try="$ac_link_default" | |
3896 | case "(($ac_try" in | |
3897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3898 | *) ac_try_echo=$ac_try;; | |
3899 | esac | |
3900 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3901 | $as_echo "$ac_try_echo"; } >&5 | |
3902 | (eval "$ac_link_default") 2>&5 | |
3903 | ac_status=$? | |
3904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3905 | test $ac_status = 0; }; then : | |
3906 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3907 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3908 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3909 | # so that the user can short-circuit this test for compilers unknown to | |
3910 | # Autoconf. | |
3911 | for ac_file in $ac_files '' | |
953ff289 DN |
3912 | do |
3913 | test -f "$ac_file" || continue | |
3914 | case $ac_file in | |
5213506e | 3915 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
953ff289 DN |
3916 | ;; |
3917 | [ab].out ) | |
3918 | # We found the default executable, but exeext='' is most | |
3919 | # certainly right. | |
3920 | break;; | |
3921 | *.* ) | |
5213506e RW |
3922 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3923 | then :; else | |
3924 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3925 | fi | |
3926 | # We set ac_cv_exeext here because the later test for it is not | |
3927 | # safe: cross compilers may not add the suffix if given an `-o' | |
3928 | # argument, so we may need to know it at that point already. | |
3929 | # Even if this section looks crufty: it has the advantage of | |
3930 | # actually working. | |
953ff289 DN |
3931 | break;; |
3932 | * ) | |
3933 | break;; | |
3934 | esac | |
3935 | done | |
5213506e RW |
3936 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3937 | ||
953ff289 | 3938 | else |
5213506e RW |
3939 | ac_file='' |
3940 | fi | |
5213506e | 3941 | if test -z "$ac_file"; then : |
22e05272 JM |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3943 | $as_echo "no" >&6; } | |
3944 | $as_echo "$as_me: failed program was:" >&5 | |
953ff289 DN |
3945 | sed 's/^/| /' conftest.$ac_ext >&5 |
3946 | ||
5213506e RW |
3947 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3949 | as_fn_error 77 "C compiler cannot create executables |
3950 | See \`config.log' for more details" "$LINENO" 5; } | |
3951 | else | |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3953 | $as_echo "yes" >&6; } | |
953ff289 | 3954 | fi |
22e05272 JM |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3956 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3958 | $as_echo "$ac_file" >&6; } | |
953ff289 | 3959 | ac_exeext=$ac_cv_exeext |
953ff289 | 3960 | |
22e05272 | 3961 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
953ff289 | 3962 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3964 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3965 | if { { ac_try="$ac_link" | |
3966 | case "(($ac_try" in | |
3967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3968 | *) ac_try_echo=$ac_try;; | |
3969 | esac | |
3970 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3971 | $as_echo "$ac_try_echo"; } >&5 | |
3972 | (eval "$ac_link") 2>&5 | |
953ff289 | 3973 | ac_status=$? |
5213506e RW |
3974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3975 | test $ac_status = 0; }; then : | |
953ff289 DN |
3976 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3977 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3978 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3979 | # `rm'. | |
3980 | for ac_file in conftest.exe conftest conftest.*; do | |
3981 | test -f "$ac_file" || continue | |
3982 | case $ac_file in | |
5213506e | 3983 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
953ff289 | 3984 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
953ff289 DN |
3985 | break;; |
3986 | * ) break;; | |
3987 | esac | |
3988 | done | |
3989 | else | |
5213506e RW |
3990 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3991 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3992 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3993 | See \`config.log' for more details" "$LINENO" 5; } | |
953ff289 | 3994 | fi |
22e05272 | 3995 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3997 | $as_echo "$ac_cv_exeext" >&6; } | |
953ff289 DN |
3998 | |
3999 | rm -f conftest.$ac_ext | |
4000 | EXEEXT=$ac_cv_exeext | |
4001 | ac_exeext=$EXEEXT | |
22e05272 JM |
4002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4003 | /* end confdefs.h. */ | |
4004 | #include <stdio.h> | |
4005 | int | |
4006 | main () | |
4007 | { | |
4008 | FILE *f = fopen ("conftest.out", "w"); | |
4009 | return ferror (f) || fclose (f) != 0; | |
4010 | ||
4011 | ; | |
4012 | return 0; | |
4013 | } | |
4014 | _ACEOF | |
4015 | ac_clean_files="$ac_clean_files conftest.out" | |
4016 | # Check that the compiler produces executables we can run. If not, either | |
4017 | # the compiler is broken, or we cross compile. | |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4019 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4020 | if test "$cross_compiling" != yes; then | |
4021 | { { ac_try="$ac_link" | |
4022 | case "(($ac_try" in | |
4023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4024 | *) ac_try_echo=$ac_try;; | |
4025 | esac | |
4026 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4027 | $as_echo "$ac_try_echo"; } >&5 | |
4028 | (eval "$ac_link") 2>&5 | |
4029 | ac_status=$? | |
4030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4031 | test $ac_status = 0; } | |
4032 | if { ac_try='./conftest$ac_cv_exeext' | |
4033 | { { case "(($ac_try" in | |
4034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4035 | *) ac_try_echo=$ac_try;; | |
4036 | esac | |
4037 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4038 | $as_echo "$ac_try_echo"; } >&5 | |
4039 | (eval "$ac_try") 2>&5 | |
4040 | ac_status=$? | |
4041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4042 | test $ac_status = 0; }; }; then | |
4043 | cross_compiling=no | |
4044 | else | |
4045 | if test "$cross_compiling" = maybe; then | |
4046 | cross_compiling=yes | |
4047 | else | |
4048 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4049 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4050 | as_fn_error $? "cannot run C compiled programs. | |
4051 | If you meant to cross compile, use \`--host'. | |
4052 | See \`config.log' for more details" "$LINENO" 5; } | |
4053 | fi | |
4054 | fi | |
4055 | fi | |
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4057 | $as_echo "$cross_compiling" >&6; } | |
4058 | ||
4059 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4060 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4062 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4063 | if ${ac_cv_objext+:} false; then : |
5213506e | 4064 | $as_echo_n "(cached) " >&6 |
953ff289 | 4065 | else |
5213506e | 4066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
4067 | /* end confdefs.h. */ |
4068 | ||
4069 | int | |
4070 | main () | |
4071 | { | |
4072 | ||
4073 | ; | |
4074 | return 0; | |
4075 | } | |
4076 | _ACEOF | |
4077 | rm -f conftest.o conftest.obj | |
5213506e RW |
4078 | if { { ac_try="$ac_compile" |
4079 | case "(($ac_try" in | |
4080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4081 | *) ac_try_echo=$ac_try;; | |
4082 | esac | |
4083 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4084 | $as_echo "$ac_try_echo"; } >&5 | |
4085 | (eval "$ac_compile") 2>&5 | |
4086 | ac_status=$? | |
4087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4088 | test $ac_status = 0; }; then : | |
4089 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4090 | test -f "$ac_file" || continue; | |
953ff289 | 4091 | case $ac_file in |
5213506e | 4092 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
953ff289 DN |
4093 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4094 | break;; | |
4095 | esac | |
4096 | done | |
4097 | else | |
5213506e | 4098 | $as_echo "$as_me: failed program was:" >&5 |
953ff289 DN |
4099 | sed 's/^/| /' conftest.$ac_ext >&5 |
4100 | ||
5213506e RW |
4101 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4102 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4103 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4104 | See \`config.log' for more details" "$LINENO" 5; } | |
953ff289 | 4105 | fi |
953ff289 DN |
4106 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4107 | fi | |
5213506e RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4109 | $as_echo "$ac_cv_objext" >&6; } | |
953ff289 DN |
4110 | OBJEXT=$ac_cv_objext |
4111 | ac_objext=$OBJEXT | |
5213506e RW |
4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4113 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4114 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4115 | $as_echo_n "(cached) " >&6 |
953ff289 | 4116 | else |
5213506e | 4117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
4118 | /* end confdefs.h. */ |
4119 | ||
4120 | int | |
4121 | main () | |
4122 | { | |
4123 | #ifndef __GNUC__ | |
4124 | choke me | |
4125 | #endif | |
4126 | ||
4127 | ; | |
4128 | return 0; | |
4129 | } | |
4130 | _ACEOF | |
5213506e | 4131 | if ac_fn_c_try_compile "$LINENO"; then : |
953ff289 DN |
4132 | ac_compiler_gnu=yes |
4133 | else | |
5213506e | 4134 | ac_compiler_gnu=no |
953ff289 | 4135 | fi |
5213506e | 4136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
953ff289 DN |
4137 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4138 | ||
4139 | fi | |
5213506e RW |
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4141 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4142 | if test $ac_compiler_gnu = yes; then | |
4143 | GCC=yes | |
4144 | else | |
4145 | GCC= | |
4146 | fi | |
953ff289 DN |
4147 | ac_test_CFLAGS=${CFLAGS+set} |
4148 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4150 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4151 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4152 | $as_echo_n "(cached) " >&6 |
4153 | else | |
4154 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4155 | ac_c_werror_flag=yes | |
4156 | ac_cv_prog_cc_g=no | |
4157 | CFLAGS="-g" | |
4158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
953ff289 DN |
4159 | /* end confdefs.h. */ |
4160 | ||
4161 | int | |
4162 | main () | |
4163 | { | |
4164 | ||
4165 | ; | |
4166 | return 0; | |
4167 | } | |
4168 | _ACEOF | |
5213506e | 4169 | if ac_fn_c_try_compile "$LINENO"; then : |
953ff289 DN |
4170 | ac_cv_prog_cc_g=yes |
4171 | else | |
5213506e RW |
4172 | CFLAGS="" |
4173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4174 | /* end confdefs.h. */ | |
4175 | ||
4176 | int | |
4177 | main () | |
4178 | { | |
4179 | ||
4180 | ; | |
4181 | return 0; | |
4182 | } | |
4183 | _ACEOF | |
4184 | if ac_fn_c_try_compile "$LINENO"; then : | |
4185 | ||
4186 | else | |
4187 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4188 | CFLAGS="-g" | |
4189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4190 | /* end confdefs.h. */ | |
4191 | ||
4192 | int | |
4193 | main () | |
4194 | { | |
953ff289 | 4195 | |
5213506e RW |
4196 | ; |
4197 | return 0; | |
4198 | } | |
4199 | _ACEOF | |
4200 | if ac_fn_c_try_compile "$LINENO"; then : | |
4201 | ac_cv_prog_cc_g=yes | |
953ff289 | 4202 | fi |
5213506e | 4203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
953ff289 | 4204 | fi |
5213506e RW |
4205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4206 | fi | |
4207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4208 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4209 | fi | |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4211 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
953ff289 DN |
4212 | if test "$ac_test_CFLAGS" = set; then |
4213 | CFLAGS=$ac_save_CFLAGS | |
4214 | elif test $ac_cv_prog_cc_g = yes; then | |
4215 | if test "$GCC" = yes; then | |
4216 | CFLAGS="-g -O2" | |
4217 | else | |
4218 | CFLAGS="-g" | |
4219 | fi | |
4220 | else | |
4221 | if test "$GCC" = yes; then | |
4222 | CFLAGS="-O2" | |
4223 | else | |
4224 | CFLAGS= | |
4225 | fi | |
4226 | fi | |
5213506e RW |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4228 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4229 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4230 | $as_echo_n "(cached) " >&6 |
953ff289 | 4231 | else |
5213506e | 4232 | ac_cv_prog_cc_c89=no |
953ff289 | 4233 | ac_save_CC=$CC |
5213506e | 4234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
953ff289 DN |
4235 | /* end confdefs.h. */ |
4236 | #include <stdarg.h> | |
4237 | #include <stdio.h> | |
22e05272 | 4238 | struct stat; |
953ff289 DN |
4239 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4240 | struct buf { int x; }; | |
4241 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4242 | static char *e (p, i) | |
4243 | char **p; | |
4244 | int i; | |
4245 | { | |
4246 | return p[i]; | |
4247 | } | |
4248 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4249 | { | |
4250 | char *s; | |
4251 | va_list v; | |
4252 | va_start (v,p); | |
4253 | s = g (p, va_arg (v,int)); | |
4254 | va_end (v); | |
4255 | return s; | |
4256 | } | |
4257 | ||
4258 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4259 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4260 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4261 | as 'x'. The following induces an error, until -std is added to get |
953ff289 DN |
4262 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4263 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4264 | that's true only with -std. */ |
953ff289 DN |
4265 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4266 | ||
5213506e RW |
4267 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4268 | inside strings and character constants. */ | |
4269 | #define FOO(x) 'x' | |
4270 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4271 | ||
953ff289 DN |
4272 | int test (int i, double x); |
4273 | struct s1 {int (*f) (int a);}; | |
4274 | struct s2 {int (*f) (double a);}; | |
4275 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4276 | int argc; | |
4277 | char **argv; | |
4278 | int | |
4279 | main () | |
4280 | { | |
4281 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4282 | ; | |
4283 | return 0; | |
4284 | } | |
4285 | _ACEOF | |
5213506e RW |
4286 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4287 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
953ff289 DN |
4288 | do |
4289 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4290 | if ac_fn_c_try_compile "$LINENO"; then : |
4291 | ac_cv_prog_cc_c89=$ac_arg | |
953ff289 | 4292 | fi |
5213506e RW |
4293 | rm -f core conftest.err conftest.$ac_objext |
4294 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
953ff289 | 4295 | done |
5213506e | 4296 | rm -f conftest.$ac_ext |
953ff289 DN |
4297 | CC=$ac_save_CC |
4298 | ||
4299 | fi | |
5213506e RW |
4300 | # AC_CACHE_VAL |
4301 | case "x$ac_cv_prog_cc_c89" in | |
4302 | x) | |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4304 | $as_echo "none needed" >&6; } ;; | |
4305 | xno) | |
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4307 | $as_echo "unsupported" >&6; } ;; | |
953ff289 | 4308 | *) |
5213506e RW |
4309 | CC="$CC $ac_cv_prog_cc_c89" |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4311 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
953ff289 | 4312 | esac |
5213506e | 4313 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
953ff289 | 4314 | |
953ff289 DN |
4315 | fi |
4316 | ||
953ff289 DN |
4317 | ac_ext=c |
4318 | ac_cpp='$CPP $CPPFLAGS' | |
4319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22e05272 JM |
4322 | |
4323 | ac_ext=c | |
4324 | ac_cpp='$CPP $CPPFLAGS' | |
4325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4329 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4330 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4331 | $as_echo_n "(cached) " >&6 | |
4332 | else | |
4333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4334 | /* end confdefs.h. */ | |
4335 | ||
4336 | int | |
4337 | main () | |
4338 | { | |
4339 | ||
4340 | ; | |
4341 | return 0; | |
4342 | } | |
4343 | _ACEOF | |
4344 | # Make sure it works both with $CC and with simple cc. | |
4345 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4346 | # compilers refuse to overwrite an existing .o file with -o, | |
4347 | # though they will create one. | |
4348 | am_cv_prog_cc_c_o=yes | |
4349 | for am_i in 1 2; do | |
4350 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4351 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4352 | ac_status=$? | |
4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4354 | (exit $ac_status); } \ | |
4355 | && test -f conftest2.$ac_objext; then | |
4356 | : OK | |
4357 | else | |
4358 | am_cv_prog_cc_c_o=no | |
4359 | break | |
4360 | fi | |
4361 | done | |
4362 | rm -f core conftest* | |
4363 | unset am_i | |
4364 | fi | |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4366 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4367 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4368 | # Losing compiler, so override with the script. | |
4369 | # FIXME: It is wrong to rewrite CC. | |
4370 | # But if we don't then we get into trouble of one sort or another. | |
4371 | # A longer-term fix would be to have automake use am__CC in this case, | |
4372 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4373 | CC="$am_aux_dir/compile $CC" | |
4374 | fi | |
4375 | ac_ext=c | |
4376 | ac_cpp='$CPP $CPPFLAGS' | |
4377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4380 | ||
953ff289 DN |
4381 | DEPDIR="${am__leading_dot}deps" |
4382 | ||
5213506e | 4383 | ac_config_commands="$ac_config_commands depfiles" |
953ff289 DN |
4384 | |
4385 | ||
4386 | am_make=${MAKE-make} | |
4387 | cat > confinc << 'END' | |
4388 | am__doit: | |
5213506e | 4389 | @echo this is the am__doit target |
953ff289 DN |
4390 | .PHONY: am__doit |
4391 | END | |
4392 | # If we don't find an include directive, just comment out the code. | |
5213506e RW |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
4394 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
953ff289 DN |
4395 | am__include="#" |
4396 | am__quote= | |
4397 | _am_result=none | |
4398 | # First try GNU make style include. | |
4399 | echo "include confinc" > confmf | |
22e05272 | 4400 | # Ignore all kinds of additional output from 'make'. |
5213506e RW |
4401 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4402 | *the\ am__doit\ target*) | |
4403 | am__include=include | |
4404 | am__quote= | |
4405 | _am_result=GNU | |
4406 | ;; | |
4407 | esac | |
953ff289 DN |
4408 | # Now try BSD make style include. |
4409 | if test "$am__include" = "#"; then | |
4410 | echo '.include "confinc"' > confmf | |
5213506e RW |
4411 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4412 | *the\ am__doit\ target*) | |
4413 | am__include=.include | |
4414 | am__quote="\"" | |
4415 | _am_result=BSD | |
4416 | ;; | |
4417 | esac | |
953ff289 DN |
4418 | fi |
4419 | ||
4420 | ||
5213506e RW |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4422 | $as_echo "$_am_result" >&6; } | |
953ff289 DN |
4423 | rm -f confinc confmf |
4424 | ||
5213506e RW |
4425 | # Check whether --enable-dependency-tracking was given. |
4426 | if test "${enable_dependency_tracking+set}" = set; then : | |
4427 | enableval=$enable_dependency_tracking; | |
4428 | fi | |
953ff289 | 4429 | |
953ff289 DN |
4430 | if test "x$enable_dependency_tracking" != xno; then |
4431 | am_depcomp="$ac_aux_dir/depcomp" | |
4432 | AMDEPBACKSLASH='\' | |
f96b7f1f | 4433 | am__nodep='_no' |
953ff289 | 4434 | fi |
5213506e | 4435 | if test "x$enable_dependency_tracking" != xno; then |
953ff289 DN |
4436 | AMDEP_TRUE= |
4437 | AMDEP_FALSE='#' | |
4438 | else | |
4439 | AMDEP_TRUE='#' | |
4440 | AMDEP_FALSE= | |
4441 | fi | |
4442 | ||
4443 | ||
4444 | ||
953ff289 DN |
4445 | depcc="$CC" am_compiler_list= |
4446 | ||
5213506e RW |
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4448 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4449 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
5213506e | 4450 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4451 | else |
4452 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4453 | # We make a subdir and do the tests there. Otherwise we can end up | |
4454 | # making bogus files that we don't know about and never remove. For | |
4455 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4456 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4457 | # in D". | |
f96b7f1f | 4458 | rm -rf conftest.dir |
953ff289 DN |
4459 | mkdir conftest.dir |
4460 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4461 | # using a relative directory. | |
4462 | cp "$am_depcomp" conftest.dir | |
4463 | cd conftest.dir | |
4464 | # We will build objects and dependencies in a subdirectory because | |
4465 | # it helps to detect inapplicable dependency modes. For instance | |
4466 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4467 | # side effect of compilation, but ICC will put the dependencies in | |
4468 | # the current directory while Tru64 will put them in the object | |
4469 | # directory. | |
4470 | mkdir sub | |
4471 | ||
4472 | am_cv_CC_dependencies_compiler_type=none | |
4473 | if test "$am_compiler_list" = ""; then | |
4474 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4475 | fi | |
5213506e RW |
4476 | am__universal=false |
4477 | case " $depcc " in #( | |
4478 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4479 | esac | |
4480 | ||
953ff289 DN |
4481 | for depmode in $am_compiler_list; do |
4482 | # Setup a source with many dependencies, because some compilers | |
4483 | # like to wrap large dependency lists on column 80 (with \), and | |
4484 | # we should not choose a depcomp mode which is confused by this. | |
4485 | # | |
4486 | # We need to recreate these files for each test, as the compiler may | |
4487 | # overwrite some of them when testing with obscure command lines. | |
4488 | # This happens at least with the AIX C compiler. | |
4489 | : > sub/conftest.c | |
4490 | for i in 1 2 3 4 5 6; do | |
4491 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4492 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4493 | # Solaris 10 /bin/sh. | |
4494 | echo '/* dummy */' > sub/conftst$i.h | |
953ff289 DN |
4495 | done |
4496 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4497 | ||
22e05272 | 4498 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5213506e | 4499 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4500 | # handle '-M -o', and we need to detect this. Also, some Intel |
4501 | # versions had trouble with output in subdirs. | |
5213506e RW |
4502 | am__obj=sub/conftest.${OBJEXT-o} |
4503 | am__minus_obj="-o $am__obj" | |
953ff289 | 4504 | case $depmode in |
5213506e RW |
4505 | gcc) |
4506 | # This depmode causes a compiler race in universal mode. | |
4507 | test "$am__universal" = false || continue | |
4508 | ;; | |
953ff289 | 4509 | nosideeffect) |
22e05272 JM |
4510 | # After this tag, mechanisms are not by side-effect, so they'll |
4511 | # only be used when explicitly requested. | |
953ff289 DN |
4512 | if test "x$enable_dependency_tracking" = xyes; then |
4513 | continue | |
4514 | else | |
4515 | break | |
4516 | fi | |
4517 | ;; | |
f96b7f1f | 4518 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4519 | # This compiler won't grok '-c -o', but also, the minuso test has |
5213506e RW |
4520 | # not run yet. These depmodes are late enough in the game, and |
4521 | # so weak that their functioning should not be impacted. | |
4522 | am__obj=conftest.${OBJEXT-o} | |
4523 | am__minus_obj= | |
4524 | ;; | |
953ff289 DN |
4525 | none) break ;; |
4526 | esac | |
953ff289 | 4527 | if depmode=$depmode \ |
5213506e | 4528 | source=sub/conftest.c object=$am__obj \ |
953ff289 | 4529 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4530 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
953ff289 | 4531 | >/dev/null 2>conftest.err && |
5213506e | 4532 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
953ff289 | 4533 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4534 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
953ff289 DN |
4535 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4536 | # icc doesn't choke on unknown options, it will just issue warnings | |
4537 | # or remarks (even with -Werror). So we grep stderr for any message | |
4538 | # that says an option was ignored or not supported. | |
4539 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4540 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4541 | # The diagnosis changed in icc 8.0: | |
4542 | # icc: Command line remark: option '-MP' not supported | |
4543 | if (grep 'ignoring option' conftest.err || | |
4544 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4545 | am_cv_CC_dependencies_compiler_type=$depmode | |
4546 | break | |
4547 | fi | |
4548 | fi | |
4549 | done | |
4550 | ||
4551 | cd .. | |
4552 | rm -rf conftest.dir | |
4553 | else | |
4554 | am_cv_CC_dependencies_compiler_type=none | |
4555 | fi | |
4556 | ||
4557 | fi | |
5213506e RW |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4559 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
953ff289 DN |
4560 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4561 | ||
5213506e | 4562 | if |
953ff289 DN |
4563 | test "x$enable_dependency_tracking" != xno \ |
4564 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4565 | am__fastdepCC_TRUE= | |
4566 | am__fastdepCC_FALSE='#' | |
4567 | else | |
4568 | am__fastdepCC_TRUE='#' | |
4569 | am__fastdepCC_FALSE= | |
4570 | fi | |
4571 | ||
4572 | ||
4573 | ||
4574 | ||
4575 | ||
4576 | ||
4577 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
4578 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
4579 | # in both places for now and restore CFLAGS at the end of config. | |
4580 | save_CFLAGS="$CFLAGS" | |
4581 | ||
4582 | # Add -Wall -Werror if we are using GCC. | |
4583 | if test "x$GCC" = "xyes"; then | |
4584 | XCFLAGS="$XCFLAGS -Wall -Werror" | |
4585 | fi | |
4586 | ||
4587 | # Find other programs we need. | |
4588 | if test -n "$ac_tool_prefix"; then | |
4589 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4590 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
4591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4592 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4593 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 4594 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4595 | else |
4596 | if test -n "$AR"; then | |
4597 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4598 | else | |
4599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4600 | for as_dir in $PATH | |
4601 | do | |
4602 | IFS=$as_save_IFS | |
4603 | test -z "$as_dir" && as_dir=. | |
5213506e | 4604 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4605 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4606 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 4607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4608 | break 2 |
4609 | fi | |
4610 | done | |
5213506e RW |
4611 | done |
4612 | IFS=$as_save_IFS | |
953ff289 DN |
4613 | |
4614 | fi | |
4615 | fi | |
4616 | AR=$ac_cv_prog_AR | |
4617 | if test -n "$AR"; then | |
5213506e RW |
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4619 | $as_echo "$AR" >&6; } | |
953ff289 | 4620 | else |
5213506e RW |
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4622 | $as_echo "no" >&6; } | |
953ff289 DN |
4623 | fi |
4624 | ||
5213506e | 4625 | |
953ff289 DN |
4626 | fi |
4627 | if test -z "$ac_cv_prog_AR"; then | |
4628 | ac_ct_AR=$AR | |
4629 | # Extract the first word of "ar", so it can be a program name with args. | |
4630 | set dummy ar; ac_word=$2 | |
5213506e RW |
4631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4632 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4633 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 4634 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4635 | else |
4636 | if test -n "$ac_ct_AR"; then | |
4637 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4638 | else | |
4639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4640 | for as_dir in $PATH | |
4641 | do | |
4642 | IFS=$as_save_IFS | |
4643 | test -z "$as_dir" && as_dir=. | |
5213506e | 4644 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4646 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 4647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4648 | break 2 |
4649 | fi | |
4650 | done | |
5213506e RW |
4651 | done |
4652 | IFS=$as_save_IFS | |
953ff289 DN |
4653 | |
4654 | fi | |
4655 | fi | |
4656 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4657 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
4659 | $as_echo "$ac_ct_AR" >&6; } | |
953ff289 | 4660 | else |
5213506e RW |
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4662 | $as_echo "no" >&6; } | |
953ff289 DN |
4663 | fi |
4664 | ||
5213506e RW |
4665 | if test "x$ac_ct_AR" = x; then |
4666 | AR="" | |
4667 | else | |
4668 | case $cross_compiling:$ac_tool_warned in | |
4669 | yes:) | |
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4671 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4672 | ac_tool_warned=yes ;; | |
4673 | esac | |
4674 | AR=$ac_ct_AR | |
4675 | fi | |
953ff289 DN |
4676 | else |
4677 | AR="$ac_cv_prog_AR" | |
4678 | fi | |
4679 | ||
4680 | if test -n "$ac_tool_prefix"; then | |
4681 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4682 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4684 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4685 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 4686 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4687 | else |
4688 | if test -n "$RANLIB"; then | |
4689 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4690 | else | |
4691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4692 | for as_dir in $PATH | |
4693 | do | |
4694 | IFS=$as_save_IFS | |
4695 | test -z "$as_dir" && as_dir=. | |
5213506e | 4696 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4698 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 4699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4700 | break 2 |
4701 | fi | |
4702 | done | |
5213506e RW |
4703 | done |
4704 | IFS=$as_save_IFS | |
953ff289 DN |
4705 | |
4706 | fi | |
4707 | fi | |
4708 | RANLIB=$ac_cv_prog_RANLIB | |
4709 | if test -n "$RANLIB"; then | |
5213506e RW |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4711 | $as_echo "$RANLIB" >&6; } | |
953ff289 | 4712 | else |
5213506e RW |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4714 | $as_echo "no" >&6; } | |
953ff289 DN |
4715 | fi |
4716 | ||
5213506e | 4717 | |
953ff289 DN |
4718 | fi |
4719 | if test -z "$ac_cv_prog_RANLIB"; then | |
4720 | ac_ct_RANLIB=$RANLIB | |
4721 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4722 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4724 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4725 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 4726 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4727 | else |
4728 | if test -n "$ac_ct_RANLIB"; then | |
4729 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4730 | else | |
4731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4732 | for as_dir in $PATH | |
4733 | do | |
4734 | IFS=$as_save_IFS | |
4735 | test -z "$as_dir" && as_dir=. | |
5213506e | 4736 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4738 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 4739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4740 | break 2 |
4741 | fi | |
4742 | done | |
5213506e RW |
4743 | done |
4744 | IFS=$as_save_IFS | |
953ff289 | 4745 | |
953ff289 DN |
4746 | fi |
4747 | fi | |
4748 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4749 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4751 | $as_echo "$ac_ct_RANLIB" >&6; } | |
953ff289 | 4752 | else |
5213506e RW |
4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4754 | $as_echo "no" >&6; } | |
953ff289 DN |
4755 | fi |
4756 | ||
5213506e RW |
4757 | if test "x$ac_ct_RANLIB" = x; then |
4758 | RANLIB="ranlib-not-found-in-path-error" | |
4759 | else | |
4760 | case $cross_compiling:$ac_tool_warned in | |
4761 | yes:) | |
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4764 | ac_tool_warned=yes ;; | |
4765 | esac | |
4766 | RANLIB=$ac_ct_RANLIB | |
4767 | fi | |
953ff289 DN |
4768 | else |
4769 | RANLIB="$ac_cv_prog_RANLIB" | |
4770 | fi | |
4771 | ||
4772 | # Extract the first word of "perl", so it can be a program name with args. | |
4773 | set dummy perl; ac_word=$2 | |
5213506e RW |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4775 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4776 | if ${ac_cv_path_PERL+:} false; then : |
5213506e | 4777 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4778 | else |
4779 | case $PERL in | |
4780 | [\\/]* | ?:[\\/]*) | |
4781 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
4782 | ;; | |
4783 | *) | |
4784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4785 | for as_dir in $PATH | |
4786 | do | |
4787 | IFS=$as_save_IFS | |
4788 | test -z "$as_dir" && as_dir=. | |
5213506e | 4789 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 4791 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 4792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
4793 | break 2 |
4794 | fi | |
4795 | done | |
5213506e RW |
4796 | done |
4797 | IFS=$as_save_IFS | |
953ff289 DN |
4798 | |
4799 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" | |
4800 | ;; | |
4801 | esac | |
4802 | fi | |
4803 | PERL=$ac_cv_path_PERL | |
953ff289 | 4804 | if test -n "$PERL"; then |
5213506e RW |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
4806 | $as_echo "$PERL" >&6; } | |
953ff289 | 4807 | else |
5213506e RW |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4809 | $as_echo "no" >&6; } | |
953ff289 DN |
4810 | fi |
4811 | ||
5213506e RW |
4812 | |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4814 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4815 | set x ${MAKE-make} | |
4816 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 4817 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e | 4818 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
4819 | else |
4820 | cat >conftest.make <<\_ACEOF | |
5213506e | 4821 | SHELL = /bin/sh |
953ff289 | 4822 | all: |
5213506e | 4823 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
953ff289 | 4824 | _ACEOF |
22e05272 | 4825 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
4826 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4827 | *@@@%%%=?*=@@@%%%*) | |
4828 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4829 | *) | |
4830 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4831 | esac | |
953ff289 DN |
4832 | rm -f conftest.make |
4833 | fi | |
5213506e RW |
4834 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4836 | $as_echo "yes" >&6; } | |
953ff289 DN |
4837 | SET_MAKE= |
4838 | else | |
5213506e RW |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4840 | $as_echo "no" >&6; } | |
953ff289 DN |
4841 | SET_MAKE="MAKE=${MAKE-make}" |
4842 | fi | |
4843 | ||
953ff289 DN |
4844 | |
4845 | ||
748b9d7c DF |
4846 | # See if makeinfo has been installed and is modern enough |
4847 | # that we can use it. | |
4848 | ||
4849 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
4850 | set dummy makeinfo; ac_word=$2 | |
5213506e RW |
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4852 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4853 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 4854 | $as_echo_n "(cached) " >&6 |
748b9d7c DF |
4855 | else |
4856 | if test -n "$MAKEINFO"; then | |
4857 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
4858 | else | |
4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4860 | for as_dir in $PATH | |
4861 | do | |
4862 | IFS=$as_save_IFS | |
4863 | test -z "$as_dir" && as_dir=. | |
5213506e | 4864 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
748b9d7c | 4866 | ac_cv_prog_MAKEINFO="makeinfo" |
5213506e | 4867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
748b9d7c DF |
4868 | break 2 |
4869 | fi | |
4870 | done | |
5213506e RW |
4871 | done |
4872 | IFS=$as_save_IFS | |
748b9d7c DF |
4873 | |
4874 | fi | |
4875 | fi | |
4876 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
4877 | if test -n "$MAKEINFO"; then | |
5213506e RW |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
4879 | $as_echo "$MAKEINFO" >&6; } | |
748b9d7c | 4880 | else |
5213506e RW |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4882 | $as_echo "no" >&6; } | |
748b9d7c DF |
4883 | fi |
4884 | ||
5213506e | 4885 | |
748b9d7c DF |
4886 | if test -n "$MAKEINFO"; then |
4887 | # Found it, now check the version. | |
5213506e RW |
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 |
4889 | $as_echo_n "checking for modern makeinfo... " >&6; } | |
22e05272 | 4890 | if ${gcc_cv_prog_makeinfo_modern+:} false; then : |
5213506e | 4891 | $as_echo_n "(cached) " >&6 |
748b9d7c DF |
4892 | else |
4893 | ac_prog_version=`eval $MAKEINFO --version 2>&1 | | |
4894 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
4895 | ||
4896 | case $ac_prog_version in | |
4897 | '') gcc_cv_prog_makeinfo_modern=no;; | |
a7415017 | 4898 | 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; |
748b9d7c DF |
4899 | *) gcc_cv_prog_makeinfo_modern=no;; |
4900 | esac | |
4901 | ||
4902 | fi | |
5213506e RW |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 |
4904 | $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } | |
748b9d7c DF |
4905 | else |
4906 | gcc_cv_prog_makeinfo_modern=no | |
4907 | fi | |
1cf3d07d SE |
4908 | if test $gcc_cv_prog_makeinfo_modern = no; then |
4909 | MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" | |
4910 | fi | |
748b9d7c | 4911 | |
5213506e | 4912 | if test $gcc_cv_prog_makeinfo_modern = "yes"; then |
748b9d7c DF |
4913 | BUILD_INFO_TRUE= |
4914 | BUILD_INFO_FALSE='#' | |
4915 | else | |
4916 | BUILD_INFO_TRUE='#' | |
4917 | BUILD_INFO_FALSE= | |
4918 | fi | |
4919 | ||
4920 | ||
4921 | ||
953ff289 | 4922 | # Configure libtool |
6b4a97ed PG |
4923 | case `pwd` in |
4924 | *\ * | *\ *) | |
5213506e RW |
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4926 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6b4a97ed | 4927 | esac |
1cf3d07d SE |
4928 | |
4929 | ||
1cf3d07d | 4930 | |
43e02a8a RW |
4931 | macro_version='2.2.7a' |
4932 | macro_revision='1.3134' | |
1cf3d07d SE |
4933 | |
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
953ff289 | 4939 | |
1cf3d07d SE |
4940 | |
4941 | ||
4942 | ||
4943 | ||
4944 | ||
4945 | ||
6b4a97ed | 4946 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 4947 | |
43e02a8a RW |
4948 | # Backslashify metacharacters that are still active within |
4949 | # double-quoted strings. | |
4950 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4951 | ||
4952 | # Same as above, but do not quote variable references. | |
4953 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4954 | ||
4955 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4956 | # double_quote_subst'ed string. | |
4957 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4958 | ||
4959 | # Sed substitution to delay expansion of an escaped single quote. | |
4960 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4961 | ||
4962 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4963 | no_glob_subst='s/\*/\\\*/g' | |
4964 | ||
4965 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4966 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4967 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4968 | ||
4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4970 | $as_echo_n "checking how to print strings... " >&6; } | |
4971 | # Test print first, because it will be a builtin if present. | |
4972 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
4973 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4974 | ECHO='print -r --' | |
4975 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4976 | ECHO='printf %s\n' | |
4977 | else | |
4978 | # Use this function as a fallback that always works. | |
4979 | func_fallback_echo () | |
4980 | { | |
4981 | eval 'cat <<_LTECHO_EOF | |
4982 | $1 | |
4983 | _LTECHO_EOF' | |
4984 | } | |
4985 | ECHO='func_fallback_echo' | |
4986 | fi | |
4987 | ||
4988 | # func_echo_all arg... | |
4989 | # Invoke $ECHO with all args, space-separated. | |
4990 | func_echo_all () | |
4991 | { | |
4992 | $ECHO "" | |
4993 | } | |
4994 | ||
4995 | case "$ECHO" in | |
4996 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4997 | $as_echo "printf" >&6; } ;; | |
4998 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4999 | $as_echo "print -r" >&6; } ;; | |
5000 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5001 | $as_echo "cat" >&6; } ;; | |
5002 | esac | |
5003 | ||
5004 | ||
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5213506e RW |
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5018 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 5019 | if ${ac_cv_path_SED+:} false; then : |
5213506e RW |
5020 | $as_echo_n "(cached) " >&6 |
5021 | else | |
5022 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5023 | for ac_i in 1 2 3 4 5 6 7; do | |
5024 | ac_script="$ac_script$as_nl$ac_script" | |
5025 | done | |
5026 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5027 | { ac_script=; unset ac_script;} | |
5028 | if test -z "$SED"; then | |
5029 | ac_path_SED_found=false | |
5030 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1cf3d07d SE |
5032 | for as_dir in $PATH |
5033 | do | |
5034 | IFS=$as_save_IFS | |
5035 | test -z "$as_dir" && as_dir=. | |
5213506e | 5036 | for ac_prog in sed gsed; do |
1cf3d07d | 5037 | for ac_exec_ext in '' $ac_executable_extensions; do |
5213506e | 5038 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 5039 | as_fn_executable_p "$ac_path_SED" || continue |
5213506e RW |
5040 | # Check for GNU ac_path_SED and select it if it is found. |
5041 | # Check for GNU $ac_path_SED | |
5042 | case `"$ac_path_SED" --version 2>&1` in | |
5043 | *GNU*) | |
5044 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5045 | *) | |
5046 | ac_count=0 | |
5047 | $as_echo_n 0123456789 >"conftest.in" | |
5048 | while : | |
5049 | do | |
5050 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5051 | mv "conftest.tmp" "conftest.in" | |
5052 | cp "conftest.in" "conftest.nl" | |
5053 | $as_echo '' >> "conftest.nl" | |
5054 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5055 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5056 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5057 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5058 | # Best one so far, save it but keep looking for a better one | |
5059 | ac_cv_path_SED="$ac_path_SED" | |
5060 | ac_path_SED_max=$ac_count | |
5061 | fi | |
5062 | # 10*(2^10) chars as input seems more than enough | |
5063 | test $ac_count -gt 10 && break | |
5064 | done | |
5065 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5066 | esac | |
5067 | ||
5068 | $ac_path_SED_found && break 3 | |
1cf3d07d SE |
5069 | done |
5070 | done | |
5213506e | 5071 | done |
1cf3d07d | 5072 | IFS=$as_save_IFS |
5213506e | 5073 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 5074 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
1cf3d07d | 5075 | fi |
5213506e RW |
5076 | else |
5077 | ac_cv_path_SED=$SED | |
1cf3d07d SE |
5078 | fi |
5079 | ||
5213506e RW |
5080 | fi |
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5082 | $as_echo "$ac_cv_path_SED" >&6; } | |
5083 | SED="$ac_cv_path_SED" | |
5084 | rm -f conftest.sed | |
1cf3d07d SE |
5085 | |
5086 | test -z "$SED" && SED=sed | |
5087 | Xsed="$SED -e 1s/^X//" | |
5088 | ||
5089 | ||
5090 | ||
5091 | ||
5092 | ||
5093 | ||
5094 | ||
5095 | ||
5096 | ||
5097 | ||
5098 | ||
5213506e RW |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5100 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 5101 | if ${ac_cv_path_GREP+:} false; then : |
5213506e RW |
5102 | $as_echo_n "(cached) " >&6 |
5103 | else | |
5104 | if test -z "$GREP"; then | |
5105 | ac_path_GREP_found=false | |
5106 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5108 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5109 | do | |
5110 | IFS=$as_save_IFS | |
5111 | test -z "$as_dir" && as_dir=. | |
5112 | for ac_prog in grep ggrep; do | |
5113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5114 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5115 | as_fn_executable_p "$ac_path_GREP" || continue |
5213506e RW |
5116 | # Check for GNU ac_path_GREP and select it if it is found. |
5117 | # Check for GNU $ac_path_GREP | |
5118 | case `"$ac_path_GREP" --version 2>&1` in | |
5119 | *GNU*) | |
5120 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5121 | *) | |
5122 | ac_count=0 | |
5123 | $as_echo_n 0123456789 >"conftest.in" | |
5124 | while : | |
5125 | do | |
5126 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5127 | mv "conftest.tmp" "conftest.in" | |
5128 | cp "conftest.in" "conftest.nl" | |
5129 | $as_echo 'GREP' >> "conftest.nl" | |
5130 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5131 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5132 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5133 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5134 | # Best one so far, save it but keep looking for a better one | |
5135 | ac_cv_path_GREP="$ac_path_GREP" | |
5136 | ac_path_GREP_max=$ac_count | |
5137 | fi | |
5138 | # 10*(2^10) chars as input seems more than enough | |
5139 | test $ac_count -gt 10 && break | |
5140 | done | |
5141 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5142 | esac | |
5143 | ||
5144 | $ac_path_GREP_found && break 3 | |
5145 | done | |
5146 | done | |
5147 | done | |
5148 | IFS=$as_save_IFS | |
5149 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 5150 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
5151 | fi |
5152 | else | |
5153 | ac_cv_path_GREP=$GREP | |
5154 | fi | |
5155 | ||
5156 | fi | |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5158 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5159 | GREP="$ac_cv_path_GREP" | |
5160 | ||
5161 | ||
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5163 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 5164 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 5165 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 5166 | else |
5213506e RW |
5167 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
5168 | then ac_cv_path_EGREP="$GREP -E" | |
5169 | else | |
5170 | if test -z "$EGREP"; then | |
5171 | ac_path_EGREP_found=false | |
5172 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5174 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5175 | do | |
5176 | IFS=$as_save_IFS | |
5177 | test -z "$as_dir" && as_dir=. | |
5178 | for ac_prog in egrep; do | |
5179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5180 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5181 | as_fn_executable_p "$ac_path_EGREP" || continue |
5213506e RW |
5182 | # Check for GNU ac_path_EGREP and select it if it is found. |
5183 | # Check for GNU $ac_path_EGREP | |
5184 | case `"$ac_path_EGREP" --version 2>&1` in | |
5185 | *GNU*) | |
5186 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5187 | *) | |
5188 | ac_count=0 | |
5189 | $as_echo_n 0123456789 >"conftest.in" | |
5190 | while : | |
5191 | do | |
5192 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5193 | mv "conftest.tmp" "conftest.in" | |
5194 | cp "conftest.in" "conftest.nl" | |
5195 | $as_echo 'EGREP' >> "conftest.nl" | |
5196 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5197 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5198 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5199 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5200 | # Best one so far, save it but keep looking for a better one | |
5201 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5202 | ac_path_EGREP_max=$ac_count | |
1cf3d07d | 5203 | fi |
5213506e RW |
5204 | # 10*(2^10) chars as input seems more than enough |
5205 | test $ac_count -gt 10 && break | |
5206 | done | |
5207 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5208 | esac | |
5209 | ||
5210 | $ac_path_EGREP_found && break 3 | |
5211 | done | |
5212 | done | |
5213 | done | |
5214 | IFS=$as_save_IFS | |
5215 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 5216 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
5217 | fi |
5218 | else | |
5219 | ac_cv_path_EGREP=$EGREP | |
5220 | fi | |
5221 | ||
5222 | fi | |
1cf3d07d | 5223 | fi |
5213506e RW |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5225 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5226 | EGREP="$ac_cv_path_EGREP" | |
1cf3d07d SE |
5227 | |
5228 | ||
5213506e RW |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5230 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 5231 | if ${ac_cv_path_FGREP+:} false; then : |
5213506e | 5232 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 5233 | else |
5213506e RW |
5234 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5235 | then ac_cv_path_FGREP="$GREP -F" | |
5236 | else | |
5237 | if test -z "$FGREP"; then | |
5238 | ac_path_FGREP_found=false | |
5239 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5241 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5242 | do | |
5243 | IFS=$as_save_IFS | |
5244 | test -z "$as_dir" && as_dir=. | |
5245 | for ac_prog in fgrep; do | |
5246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5247 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5248 | as_fn_executable_p "$ac_path_FGREP" || continue |
5213506e RW |
5249 | # Check for GNU ac_path_FGREP and select it if it is found. |
5250 | # Check for GNU $ac_path_FGREP | |
5251 | case `"$ac_path_FGREP" --version 2>&1` in | |
5252 | *GNU*) | |
5253 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5254 | *) | |
5255 | ac_count=0 | |
5256 | $as_echo_n 0123456789 >"conftest.in" | |
5257 | while : | |
5258 | do | |
5259 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5260 | mv "conftest.tmp" "conftest.in" | |
5261 | cp "conftest.in" "conftest.nl" | |
5262 | $as_echo 'FGREP' >> "conftest.nl" | |
5263 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5264 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5265 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5266 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5267 | # Best one so far, save it but keep looking for a better one | |
5268 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5269 | ac_path_FGREP_max=$ac_count | |
1cf3d07d | 5270 | fi |
5213506e RW |
5271 | # 10*(2^10) chars as input seems more than enough |
5272 | test $ac_count -gt 10 && break | |
5273 | done | |
5274 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5275 | esac | |
5276 | ||
5277 | $ac_path_FGREP_found && break 3 | |
5278 | done | |
5279 | done | |
5280 | done | |
5281 | IFS=$as_save_IFS | |
5282 | if test -z "$ac_cv_path_FGREP"; then | |
22e05272 | 5283 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5213506e RW |
5284 | fi |
5285 | else | |
5286 | ac_cv_path_FGREP=$FGREP | |
5287 | fi | |
5288 | ||
5289 | fi | |
1cf3d07d | 5290 | fi |
5213506e RW |
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5292 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5293 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
5294 | |
5295 | ||
5296 | test -z "$GREP" && GREP=grep | |
5297 | ||
5298 | ||
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | ||
5305 | ||
5306 | ||
5307 | ||
5308 | ||
5309 | ||
5310 | ||
5311 | ||
5312 | ||
5313 | ||
5314 | ||
5315 | ||
5213506e RW |
5316 | # Check whether --with-gnu-ld was given. |
5317 | if test "${with_gnu_ld+set}" = set; then : | |
5318 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
953ff289 DN |
5319 | else |
5320 | with_gnu_ld=no | |
5213506e RW |
5321 | fi |
5322 | ||
953ff289 DN |
5323 | ac_prog=ld |
5324 | if test "$GCC" = yes; then | |
5325 | # Check if gcc -print-prog-name=ld gives a path. | |
5213506e RW |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5327 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
953ff289 DN |
5328 | case $host in |
5329 | *-*-mingw*) | |
5330 | # gcc leaves a trailing carriage return which upsets mingw | |
5331 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5332 | *) | |
5333 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5334 | esac | |
5335 | case $ac_prog in | |
5336 | # Accept absolute paths. | |
1cf3d07d | 5337 | [\\/]* | ?:[\\/]*) |
953ff289 | 5338 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
5339 | # Canonicalize the pathname of ld |
5340 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5341 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5342 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
953ff289 DN |
5343 | done |
5344 | test -z "$LD" && LD="$ac_prog" | |
5345 | ;; | |
5346 | "") | |
5347 | # If it fails, then pretend we aren't using GCC. | |
5348 | ac_prog=ld | |
5349 | ;; | |
5350 | *) | |
5351 | # If it is relative, then search for the first ld in PATH. | |
5352 | with_gnu_ld=unknown | |
5353 | ;; | |
5354 | esac | |
5355 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5357 | $as_echo_n "checking for GNU ld... " >&6; } | |
953ff289 | 5358 | else |
5213506e RW |
5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5360 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
953ff289 | 5361 | fi |
22e05272 | 5362 | if ${lt_cv_path_LD+:} false; then : |
5213506e | 5363 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
5364 | else |
5365 | if test -z "$LD"; then | |
1cf3d07d | 5366 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
953ff289 | 5367 | for ac_dir in $PATH; do |
1cf3d07d | 5368 | IFS="$lt_save_ifs" |
953ff289 DN |
5369 | test -z "$ac_dir" && ac_dir=. |
5370 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5371 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5372 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1cf3d07d | 5373 | # but apparently some variants of GNU ld only accept -v. |
953ff289 | 5374 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
5375 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5376 | *GNU* | *'with BFD'*) | |
953ff289 | 5377 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
5378 | ;; |
5379 | *) | |
953ff289 | 5380 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
5381 | ;; |
5382 | esac | |
953ff289 DN |
5383 | fi |
5384 | done | |
1cf3d07d | 5385 | IFS="$lt_save_ifs" |
953ff289 DN |
5386 | else |
5387 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5388 | fi | |
5389 | fi | |
5390 | ||
5391 | LD="$lt_cv_path_LD" | |
5392 | if test -n "$LD"; then | |
5213506e RW |
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5394 | $as_echo "$LD" >&6; } | |
953ff289 | 5395 | else |
5213506e RW |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5397 | $as_echo "no" >&6; } | |
953ff289 | 5398 | fi |
22e05272 | 5399 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5213506e RW |
5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5401 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 5402 | if ${lt_cv_prog_gnu_ld+:} false; then : |
5213506e | 5403 | $as_echo_n "(cached) " >&6 |
953ff289 | 5404 | else |
1cf3d07d SE |
5405 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5406 | case `$LD -v 2>&1 </dev/null` in | |
5407 | *GNU* | *'with BFD'*) | |
953ff289 | 5408 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
5409 | ;; |
5410 | *) | |
953ff289 | 5411 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
5412 | ;; |
5413 | esac | |
953ff289 | 5414 | fi |
5213506e RW |
5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5416 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
953ff289 DN |
5417 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5418 | ||
5419 | ||
953ff289 | 5420 | |
1cf3d07d SE |
5421 | |
5422 | ||
5423 | ||
5424 | ||
5425 | ||
5426 | ||
5213506e RW |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5428 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 5429 | if ${lt_cv_path_NM+:} false; then : |
5213506e | 5430 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
5431 | else |
5432 | if test -n "$NM"; then | |
5433 | # Let the user override the test. | |
5434 | lt_cv_path_NM="$NM" | |
5435 | else | |
1cf3d07d SE |
5436 | lt_nm_to_check="${ac_tool_prefix}nm" |
5437 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5438 | lt_nm_to_check="$lt_nm_to_check nm" | |
5439 | fi | |
5440 | for lt_tmp_nm in $lt_nm_to_check; do | |
5441 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5442 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5443 | IFS="$lt_save_ifs" | |
5444 | test -z "$ac_dir" && ac_dir=. | |
5445 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5446 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5447 | # Check to see if the nm accepts a BSD-compat flag. | |
5448 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5449 | # nm: unknown option "B" ignored | |
5450 | # Tru64's nm complains that /dev/null is an invalid object file | |
5451 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5452 | */dev/null* | *'Invalid file or object type'*) | |
5453 | lt_cv_path_NM="$tmp_nm -B" | |
5454 | break | |
5455 | ;; | |
5456 | *) | |
5457 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5458 | */dev/null*) | |
5459 | lt_cv_path_NM="$tmp_nm -p" | |
5460 | break | |
5461 | ;; | |
5462 | *) | |
5463 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5464 | continue # so that we can try to find one that supports BSD flags | |
5465 | ;; | |
5466 | esac | |
5467 | ;; | |
5468 | esac | |
5469 | fi | |
5470 | done | |
5471 | IFS="$lt_save_ifs" | |
5472 | done | |
5473 | : ${lt_cv_path_NM=no} | |
5474 | fi | |
5475 | fi | |
5213506e RW |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5477 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
5478 | if test "$lt_cv_path_NM" != "no"; then |
5479 | NM="$lt_cv_path_NM" | |
5480 | else | |
5481 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
43e02a8a RW |
5482 | if test -n "$DUMPBIN"; then : |
5483 | # Let the user override the test. | |
5484 | else | |
5485 | if test -n "$ac_tool_prefix"; then | |
5486 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
5487 | do |
5488 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5489 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5491 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5492 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
5213506e | 5493 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5494 | else |
5495 | if test -n "$DUMPBIN"; then | |
5496 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5497 | else | |
5498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5499 | for as_dir in $PATH | |
5500 | do | |
5501 | IFS=$as_save_IFS | |
5502 | test -z "$as_dir" && as_dir=. | |
5213506e | 5503 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5504 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 5505 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 5506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5507 | break 2 |
5508 | fi | |
5509 | done | |
5213506e RW |
5510 | done |
5511 | IFS=$as_save_IFS | |
1cf3d07d SE |
5512 | |
5513 | fi | |
5514 | fi | |
5515 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5516 | if test -n "$DUMPBIN"; then | |
5213506e RW |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5518 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 5519 | else |
5213506e RW |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5521 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5522 | fi |
5523 | ||
5213506e | 5524 | |
1cf3d07d SE |
5525 | test -n "$DUMPBIN" && break |
5526 | done | |
5527 | fi | |
5528 | if test -z "$DUMPBIN"; then | |
5529 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 5530 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
5531 | do |
5532 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5533 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5535 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5536 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5213506e | 5537 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5538 | else |
5539 | if test -n "$ac_ct_DUMPBIN"; then | |
5540 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5541 | else | |
5542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5543 | for as_dir in $PATH | |
5544 | do | |
5545 | IFS=$as_save_IFS | |
5546 | test -z "$as_dir" && as_dir=. | |
5213506e | 5547 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 5549 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 5550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
5551 | break 2 |
5552 | fi | |
5553 | done | |
5213506e RW |
5554 | done |
5555 | IFS=$as_save_IFS | |
1cf3d07d SE |
5556 | |
5557 | fi | |
953ff289 | 5558 | fi |
1cf3d07d SE |
5559 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5560 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5562 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 5563 | else |
5213506e RW |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5565 | $as_echo "no" >&6; } | |
1cf3d07d SE |
5566 | fi |
5567 | ||
5213506e | 5568 | |
1cf3d07d SE |
5569 | test -n "$ac_ct_DUMPBIN" && break |
5570 | done | |
1cf3d07d | 5571 | |
5213506e RW |
5572 | if test "x$ac_ct_DUMPBIN" = x; then |
5573 | DUMPBIN=":" | |
5574 | else | |
5575 | case $cross_compiling:$ac_tool_warned in | |
5576 | yes:) | |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5578 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5579 | ac_tool_warned=yes ;; | |
5580 | esac | |
5581 | DUMPBIN=$ac_ct_DUMPBIN | |
5582 | fi | |
1cf3d07d SE |
5583 | fi |
5584 | ||
43e02a8a RW |
5585 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5586 | *COFF*) | |
5587 | DUMPBIN="$DUMPBIN -symbols" | |
5588 | ;; | |
5589 | *) | |
5590 | DUMPBIN=: | |
5591 | ;; | |
5592 | esac | |
5593 | fi | |
1cf3d07d SE |
5594 | |
5595 | if test "$DUMPBIN" != ":"; then | |
5596 | NM="$DUMPBIN" | |
5597 | fi | |
953ff289 | 5598 | fi |
1cf3d07d SE |
5599 | test -z "$NM" && NM=nm |
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | ||
953ff289 | 5605 | |
5213506e RW |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5607 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 5608 | if ${lt_cv_nm_interface+:} false; then : |
5213506e | 5609 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5610 | else |
5611 | lt_cv_nm_interface="BSD nm" | |
5612 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 5613 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
5614 | (eval "$ac_compile" 2>conftest.err) |
5615 | cat conftest.err >&5 | |
43e02a8a | 5616 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
5617 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5618 | cat conftest.err >&5 | |
43e02a8a | 5619 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
5620 | cat conftest.out >&5 |
5621 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5622 | lt_cv_nm_interface="MS dumpbin" | |
5623 | fi | |
5624 | rm -f conftest* | |
5625 | fi | |
5213506e RW |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5627 | $as_echo "$lt_cv_nm_interface" >&6; } | |
953ff289 | 5628 | |
5213506e RW |
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5630 | $as_echo_n "checking whether ln -s works... " >&6; } | |
953ff289 DN |
5631 | LN_S=$as_ln_s |
5632 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5634 | $as_echo "yes" >&6; } | |
953ff289 | 5635 | else |
5213506e RW |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5637 | $as_echo "no, using $LN_S" >&6; } | |
953ff289 DN |
5638 | fi |
5639 | ||
1cf3d07d | 5640 | # find the maximum length of command line arguments |
5213506e RW |
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5642 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 5643 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
5213506e | 5644 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5645 | else |
5646 | i=0 | |
5647 | teststring="ABCD" | |
5648 | ||
5649 | case $build_os in | |
5650 | msdosdjgpp*) | |
5651 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5652 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5653 | # during glob expansion). Even if it were fixed, the result of this | |
5654 | # check would be larger than it should be. | |
5655 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5656 | ;; | |
5657 | ||
5658 | gnu*) | |
5659 | # Under GNU Hurd, this test is not required because there is | |
5660 | # no limit to the length of command line arguments. | |
5661 | # Libtool will interpret -1 as no limit whatsoever | |
5662 | lt_cv_sys_max_cmd_len=-1; | |
5663 | ;; | |
5664 | ||
6b4a97ed | 5665 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
5666 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5667 | # about 5 minutes as the teststring grows exponentially. | |
5668 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5669 | # you end up with a "frozen" computer, even though with patience | |
5670 | # the test eventually succeeds (with a max line length of 256k). | |
5671 | # Instead, let's just punt: use the minimum linelength reported by | |
5672 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5673 | lt_cv_sys_max_cmd_len=8192; | |
5674 | ;; | |
5675 | ||
43e02a8a RW |
5676 | mint*) |
5677 | # On MiNT this can take a long time and run out of memory. | |
5678 | lt_cv_sys_max_cmd_len=8192; | |
5679 | ;; | |
5680 | ||
1cf3d07d SE |
5681 | amigaos*) |
5682 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5683 | # So we just punt and use a minimum line length of 8192. | |
5684 | lt_cv_sys_max_cmd_len=8192; | |
5685 | ;; | |
5686 | ||
5687 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5688 | # This has been around since 386BSD, at least. Likely further. | |
5689 | if test -x /sbin/sysctl; then | |
5690 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5691 | elif test -x /usr/sbin/sysctl; then | |
5692 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5693 | else | |
5694 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5695 | fi | |
5696 | # And add a safety zone | |
5697 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5698 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5699 | ;; | |
5700 | ||
5701 | interix*) | |
5702 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5703 | lt_cv_sys_max_cmd_len=196608 | |
5704 | ;; | |
5705 | ||
5706 | osf*) | |
5707 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5708 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5709 | # nice to cause kernel panics so lets avoid the loop below. | |
5710 | # First set a reasonable default. | |
5711 | lt_cv_sys_max_cmd_len=16384 | |
5712 | # | |
5713 | if test -x /sbin/sysconfig; then | |
5714 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5715 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5716 | esac | |
5717 | fi | |
5718 | ;; | |
5719 | sco3.2v5*) | |
5720 | lt_cv_sys_max_cmd_len=102400 | |
5721 | ;; | |
5722 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5723 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5724 | if test -n "$kargmax"; then | |
5725 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5726 | else | |
5727 | lt_cv_sys_max_cmd_len=32768 | |
5728 | fi | |
5729 | ;; | |
5730 | *) | |
6b4a97ed PG |
5731 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5732 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
5733 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5734 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5735 | else | |
5736 | # Make teststring a little bigger before we do anything with it. | |
5737 | # a 1K string should be a reasonable start. | |
5738 | for i in 1 2 3 4 5 6 7 8 ; do | |
5739 | teststring=$teststring$teststring | |
5740 | done | |
5741 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5742 | # If test is not a shell built-in, we'll probably end up computing a | |
5743 | # maximum length that is only half of the actual maximum length, but | |
5744 | # we can't tell. | |
43e02a8a RW |
5745 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5746 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
5747 | test $i != 17 # 1/2 MB should be enough |
5748 | do | |
5749 | i=`expr $i + 1` | |
5750 | teststring=$teststring$teststring | |
5751 | done | |
5752 | # Only check the string length outside the loop. | |
5753 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5754 | teststring= | |
5755 | # Add a significant safety factor because C++ compilers can tack on | |
5756 | # massive amounts of additional arguments before passing them to the | |
5757 | # linker. It appears as though 1/2 is a usable value. | |
5758 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5759 | fi | |
1cf3d07d SE |
5760 | ;; |
5761 | esac | |
5762 | ||
5763 | fi | |
5764 | ||
5765 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5213506e RW |
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5767 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
1cf3d07d | 5768 | else |
5213506e RW |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5770 | $as_echo "none" >&6; } | |
1cf3d07d SE |
5771 | fi |
5772 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5773 | ||
5774 | ||
5775 | ||
5776 | ||
5777 | ||
5778 | ||
1cf3d07d SE |
5779 | : ${CP="cp -f"} |
5780 | : ${MV="mv -f"} | |
5781 | : ${RM="rm -f"} | |
5782 | ||
5213506e RW |
5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5784 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
5785 | # Try some XSI features |
5786 | xsi_shell=no | |
5787 | ( _lt_dummy="a/b/c" | |
5788 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6b4a97ed PG |
5789 | = c,a/b,, \ |
5790 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5791 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 5792 | && xsi_shell=yes |
5213506e RW |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5794 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
5795 | |
5796 | ||
5213506e RW |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5798 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
5799 | lt_shell_append=no |
5800 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5801 | >/dev/null 2>&1 \ | |
5802 | && lt_shell_append=yes | |
5213506e RW |
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5804 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
5805 | |
5806 | ||
5807 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5808 | lt_unset=unset | |
5809 | else | |
5810 | lt_unset=false | |
5811 | fi | |
5812 | ||
5813 | ||
5814 | ||
5815 | ||
5816 | ||
5817 | # test EBCDIC or ASCII | |
5818 | case `echo X|tr X '\101'` in | |
5819 | A) # ASCII based system | |
5820 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5821 | lt_SP2NL='tr \040 \012' | |
5822 | lt_NL2SP='tr \015\012 \040\040' | |
5823 | ;; | |
5824 | *) # EBCDIC based system | |
5825 | lt_SP2NL='tr \100 \n' | |
5826 | lt_NL2SP='tr \r\n \100\100' | |
5827 | ;; | |
5828 | esac | |
5829 | ||
5830 | ||
5831 | ||
5832 | ||
5833 | ||
5834 | ||
5835 | ||
5836 | ||
5837 | ||
5213506e RW |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5839 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 5840 | if ${lt_cv_ld_reload_flag+:} false; then : |
5213506e | 5841 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
5842 | else |
5843 | lt_cv_ld_reload_flag='-r' | |
5844 | fi | |
5213506e RW |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5846 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
5847 | reload_flag=$lt_cv_ld_reload_flag |
5848 | case $reload_flag in | |
5849 | "" | " "*) ;; | |
5850 | *) reload_flag=" $reload_flag" ;; | |
5851 | esac | |
5852 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5853 | case $host_os in | |
5854 | darwin*) | |
5855 | if test "$GCC" = yes; then | |
5856 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5857 | else | |
5858 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5859 | fi | |
5860 | ;; | |
5861 | esac | |
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
6b4a97ed PG |
5871 | if test -n "$ac_tool_prefix"; then |
5872 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5873 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5875 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5876 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 5877 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
5878 | else |
5879 | if test -n "$OBJDUMP"; then | |
5880 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5881 | else | |
5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5883 | for as_dir in $PATH | |
5884 | do | |
5885 | IFS=$as_save_IFS | |
5886 | test -z "$as_dir" && as_dir=. | |
5213506e | 5887 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 5889 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 5890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
5891 | break 2 |
5892 | fi | |
5893 | done | |
5213506e RW |
5894 | done |
5895 | IFS=$as_save_IFS | |
6b4a97ed PG |
5896 | |
5897 | fi | |
5898 | fi | |
5899 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5900 | if test -n "$OBJDUMP"; then | |
5213506e RW |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5902 | $as_echo "$OBJDUMP" >&6; } | |
6b4a97ed | 5903 | else |
5213506e RW |
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5905 | $as_echo "no" >&6; } | |
6b4a97ed PG |
5906 | fi |
5907 | ||
5213506e | 5908 | |
6b4a97ed PG |
5909 | fi |
5910 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5911 | ac_ct_OBJDUMP=$OBJDUMP | |
5912 | # Extract the first word of "objdump", so it can be a program name with args. | |
5913 | set dummy objdump; ac_word=$2 | |
5213506e RW |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5915 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5916 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5213506e | 5917 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
5918 | else |
5919 | if test -n "$ac_ct_OBJDUMP"; then | |
5920 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5921 | else | |
5922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5923 | for as_dir in $PATH | |
5924 | do | |
5925 | IFS=$as_save_IFS | |
5926 | test -z "$as_dir" && as_dir=. | |
5213506e | 5927 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 5929 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 5930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
5931 | break 2 |
5932 | fi | |
5933 | done | |
5213506e RW |
5934 | done |
5935 | IFS=$as_save_IFS | |
6b4a97ed | 5936 | |
6b4a97ed PG |
5937 | fi |
5938 | fi | |
5939 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5940 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5942 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6b4a97ed | 5943 | else |
5213506e RW |
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5945 | $as_echo "no" >&6; } | |
6b4a97ed PG |
5946 | fi |
5947 | ||
5213506e RW |
5948 | if test "x$ac_ct_OBJDUMP" = x; then |
5949 | OBJDUMP="false" | |
5950 | else | |
5951 | case $cross_compiling:$ac_tool_warned in | |
5952 | yes:) | |
5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5954 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5955 | ac_tool_warned=yes ;; | |
5956 | esac | |
5957 | OBJDUMP=$ac_ct_OBJDUMP | |
5958 | fi | |
6b4a97ed PG |
5959 | else |
5960 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5961 | fi | |
5962 | ||
5963 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | ||
5971 | ||
1cf3d07d | 5972 | |
5213506e RW |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5974 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 5975 | if ${lt_cv_deplibs_check_method+:} false; then : |
5213506e | 5976 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
5977 | else |
5978 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5979 | lt_cv_file_magic_test_file= | |
5980 | lt_cv_deplibs_check_method='unknown' | |
5981 | # Need to set the preceding variable on all platforms that support | |
5982 | # interlibrary dependencies. | |
5983 | # 'none' -- dependencies not supported. | |
5984 | # `unknown' -- same as none, but documents that we really don't know. | |
5985 | # 'pass_all' -- all dependencies passed with no checks. | |
5986 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
5987 | # 'file_magic [[regex]]' -- check by looking for files in library path |
5988 | # which responds to the $file_magic_cmd with a given extended regex. | |
953ff289 DN |
5989 | # If you have `file' or equivalent on your system and you're not sure |
5990 | # whether `pass_all' will *always* work, you probably want this one. | |
5991 | ||
5992 | case $host_os in | |
d653fdfb | 5993 | aix[4-9]*) |
953ff289 DN |
5994 | lt_cv_deplibs_check_method=pass_all |
5995 | ;; | |
5996 | ||
5997 | beos*) | |
5998 | lt_cv_deplibs_check_method=pass_all | |
5999 | ;; | |
6000 | ||
1cf3d07d | 6001 | bsdi[45]*) |
953ff289 DN |
6002 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
6003 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6004 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6005 | ;; | |
6006 | ||
1cf3d07d SE |
6007 | cygwin*) |
6008 | # func_win32_libid is a shell function defined in ltmain.sh | |
6009 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6010 | lt_cv_file_magic_cmd='func_win32_libid' | |
6011 | ;; | |
6012 | ||
6013 | mingw* | pw32*) | |
6014 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6015 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6016 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
6017 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6018 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
6019 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6020 | lt_cv_file_magic_cmd='func_win32_libid' | |
6021 | else | |
6022 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6023 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6024 | fi | |
953ff289 DN |
6025 | ;; |
6026 | ||
43e02a8a | 6027 | cegcc*) |
6b4a97ed PG |
6028 | # use the weaker test based on 'objdump'. See mingw*. |
6029 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6030 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6031 | ;; | |
6032 | ||
953ff289 | 6033 | darwin* | rhapsody*) |
953ff289 DN |
6034 | lt_cv_deplibs_check_method=pass_all |
6035 | ;; | |
6036 | ||
1cf3d07d SE |
6037 | freebsd* | dragonfly*) |
6038 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
953ff289 DN |
6039 | case $host_cpu in |
6040 | i*86 ) | |
6041 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6042 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 6043 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
953ff289 DN |
6044 | lt_cv_file_magic_cmd=/usr/bin/file |
6045 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6046 | ;; | |
6047 | esac | |
6048 | else | |
6049 | lt_cv_deplibs_check_method=pass_all | |
6050 | fi | |
6051 | ;; | |
6052 | ||
6053 | gnu*) | |
6054 | lt_cv_deplibs_check_method=pass_all | |
6055 | ;; | |
6056 | ||
43e02a8a RW |
6057 | haiku*) |
6058 | lt_cv_deplibs_check_method=pass_all | |
6059 | ;; | |
6060 | ||
1cf3d07d SE |
6061 | hpux10.20* | hpux11*) |
6062 | lt_cv_file_magic_cmd=/usr/bin/file | |
953ff289 | 6063 | case $host_cpu in |
953ff289 DN |
6064 | ia64*) |
6065 | 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 |
6066 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
6067 | ;; | |
1cf3d07d | 6068 | hppa*64*) |
43e02a8a | 6069 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
1cf3d07d | 6070 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
953ff289 DN |
6071 | ;; |
6072 | *) | |
43e02a8a | 6073 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d | 6074 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
953ff289 DN |
6075 | ;; |
6076 | esac | |
1cf3d07d SE |
6077 | ;; |
6078 | ||
6079 | interix[3-9]*) | |
6080 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6081 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6082 | ;; | |
6083 | ||
6084 | irix5* | irix6* | nonstopux*) | |
6085 | case $LD in | |
6086 | *-32|*"-32 ") libmagic=32-bit;; | |
6087 | *-n32|*"-n32 ") libmagic=N32;; | |
6088 | *-64|*"-64 ") libmagic=64-bit;; | |
6089 | *) libmagic=never-match;; | |
6090 | esac | |
953ff289 DN |
6091 | lt_cv_deplibs_check_method=pass_all |
6092 | ;; | |
6093 | ||
6094 | # This must be Linux ELF. | |
7a9d3fe8 | 6095 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
953ff289 DN |
6096 | lt_cv_deplibs_check_method=pass_all |
6097 | ;; | |
6098 | ||
1cf3d07d SE |
6099 | netbsd*) |
6100 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6101 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
953ff289 | 6102 | else |
1cf3d07d | 6103 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
953ff289 DN |
6104 | fi |
6105 | ;; | |
6106 | ||
1cf3d07d | 6107 | newos6*) |
953ff289 DN |
6108 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
6109 | lt_cv_file_magic_cmd=/usr/bin/file | |
6110 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6111 | ;; | |
6112 | ||
1cf3d07d SE |
6113 | *nto* | *qnx*) |
6114 | lt_cv_deplibs_check_method=pass_all | |
6115 | ;; | |
6116 | ||
6117 | openbsd*) | |
6118 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6119 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6120 | else | |
6121 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6122 | fi | |
6123 | ;; | |
6124 | ||
953ff289 | 6125 | osf3* | osf4* | osf5*) |
953ff289 DN |
6126 | lt_cv_deplibs_check_method=pass_all |
6127 | ;; | |
6128 | ||
1cf3d07d | 6129 | rdos*) |
953ff289 DN |
6130 | lt_cv_deplibs_check_method=pass_all |
6131 | ;; | |
6132 | ||
6133 | solaris*) | |
6134 | lt_cv_deplibs_check_method=pass_all | |
953ff289 DN |
6135 | ;; |
6136 | ||
1cf3d07d | 6137 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
953ff289 DN |
6138 | lt_cv_deplibs_check_method=pass_all |
6139 | ;; | |
6140 | ||
1cf3d07d | 6141 | sysv4 | sysv4.3*) |
953ff289 | 6142 | case $host_vendor in |
953ff289 DN |
6143 | motorola) |
6144 | 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]' | |
6145 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6146 | ;; | |
1cf3d07d SE |
6147 | ncr) |
6148 | lt_cv_deplibs_check_method=pass_all | |
6149 | ;; | |
6150 | sequent) | |
6151 | lt_cv_file_magic_cmd='/bin/file' | |
6152 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6153 | ;; | |
6154 | sni) | |
6155 | lt_cv_file_magic_cmd='/bin/file' | |
6156 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6157 | lt_cv_file_magic_test_file=/lib/libc.so | |
6158 | ;; | |
6159 | siemens) | |
6160 | lt_cv_deplibs_check_method=pass_all | |
6161 | ;; | |
6162 | pc) | |
6163 | lt_cv_deplibs_check_method=pass_all | |
6164 | ;; | |
953ff289 DN |
6165 | esac |
6166 | ;; | |
1cf3d07d SE |
6167 | |
6168 | tpf*) | |
6169 | lt_cv_deplibs_check_method=pass_all | |
6170 | ;; | |
953ff289 DN |
6171 | esac |
6172 | ||
6173 | fi | |
5213506e RW |
6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6175 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
953ff289 DN |
6176 | file_magic_cmd=$lt_cv_file_magic_cmd |
6177 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 6178 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
953ff289 DN |
6179 | |
6180 | ||
6181 | ||
6182 | ||
6183 | ||
953ff289 | 6184 | |
953ff289 | 6185 | |
953ff289 | 6186 | |
953ff289 | 6187 | |
953ff289 | 6188 | |
953ff289 | 6189 | |
953ff289 DN |
6190 | |
6191 | if test -n "$ac_tool_prefix"; then | |
1cf3d07d SE |
6192 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6193 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6195 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6196 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 6197 | $as_echo_n "(cached) " >&6 |
953ff289 | 6198 | else |
1cf3d07d SE |
6199 | if test -n "$AR"; then |
6200 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
953ff289 DN |
6201 | else |
6202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6203 | for as_dir in $PATH | |
6204 | do | |
6205 | IFS=$as_save_IFS | |
6206 | test -z "$as_dir" && as_dir=. | |
5213506e | 6207 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 6209 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 6210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6211 | break 2 |
6212 | fi | |
6213 | done | |
5213506e RW |
6214 | done |
6215 | IFS=$as_save_IFS | |
953ff289 DN |
6216 | |
6217 | fi | |
6218 | fi | |
1cf3d07d SE |
6219 | AR=$ac_cv_prog_AR |
6220 | if test -n "$AR"; then | |
5213506e RW |
6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6222 | $as_echo "$AR" >&6; } | |
953ff289 | 6223 | else |
5213506e RW |
6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6225 | $as_echo "no" >&6; } | |
953ff289 DN |
6226 | fi |
6227 | ||
5213506e | 6228 | |
953ff289 | 6229 | fi |
1cf3d07d SE |
6230 | if test -z "$ac_cv_prog_AR"; then |
6231 | ac_ct_AR=$AR | |
6232 | # Extract the first word of "ar", so it can be a program name with args. | |
6233 | set dummy ar; ac_word=$2 | |
5213506e RW |
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6235 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6236 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 6237 | $as_echo_n "(cached) " >&6 |
953ff289 | 6238 | else |
1cf3d07d SE |
6239 | if test -n "$ac_ct_AR"; then |
6240 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
953ff289 DN |
6241 | else |
6242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6243 | for as_dir in $PATH | |
6244 | do | |
6245 | IFS=$as_save_IFS | |
6246 | test -z "$as_dir" && as_dir=. | |
5213506e | 6247 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6248 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 6249 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 6250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6251 | break 2 |
6252 | fi | |
6253 | done | |
5213506e RW |
6254 | done |
6255 | IFS=$as_save_IFS | |
953ff289 | 6256 | |
953ff289 DN |
6257 | fi |
6258 | fi | |
1cf3d07d SE |
6259 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6260 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6262 | $as_echo "$ac_ct_AR" >&6; } | |
953ff289 | 6263 | else |
5213506e RW |
6264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6265 | $as_echo "no" >&6; } | |
953ff289 DN |
6266 | fi |
6267 | ||
5213506e RW |
6268 | if test "x$ac_ct_AR" = x; then |
6269 | AR="false" | |
6270 | else | |
6271 | case $cross_compiling:$ac_tool_warned in | |
6272 | yes:) | |
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6274 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6275 | ac_tool_warned=yes ;; | |
6276 | esac | |
6277 | AR=$ac_ct_AR | |
6278 | fi | |
953ff289 | 6279 | else |
1cf3d07d | 6280 | AR="$ac_cv_prog_AR" |
953ff289 DN |
6281 | fi |
6282 | ||
1cf3d07d SE |
6283 | test -z "$AR" && AR=ar |
6284 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6285 | ||
6286 | ||
6287 | ||
6288 | ||
6289 | ||
6290 | ||
6291 | ||
6292 | ||
6293 | ||
6294 | ||
6295 | ||
953ff289 DN |
6296 | if test -n "$ac_tool_prefix"; then |
6297 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6298 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6300 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6301 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 6302 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
6303 | else |
6304 | if test -n "$STRIP"; then | |
6305 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6306 | else | |
6307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6308 | for as_dir in $PATH | |
6309 | do | |
6310 | IFS=$as_save_IFS | |
6311 | test -z "$as_dir" && as_dir=. | |
5213506e | 6312 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 6314 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 6315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6316 | break 2 |
6317 | fi | |
6318 | done | |
5213506e RW |
6319 | done |
6320 | IFS=$as_save_IFS | |
953ff289 DN |
6321 | |
6322 | fi | |
6323 | fi | |
6324 | STRIP=$ac_cv_prog_STRIP | |
6325 | if test -n "$STRIP"; then | |
5213506e RW |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6327 | $as_echo "$STRIP" >&6; } | |
953ff289 | 6328 | else |
5213506e RW |
6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6330 | $as_echo "no" >&6; } | |
953ff289 DN |
6331 | fi |
6332 | ||
5213506e | 6333 | |
953ff289 DN |
6334 | fi |
6335 | if test -z "$ac_cv_prog_STRIP"; then | |
6336 | ac_ct_STRIP=$STRIP | |
6337 | # Extract the first word of "strip", so it can be a program name with args. | |
6338 | set dummy strip; ac_word=$2 | |
5213506e RW |
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6340 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6341 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 6342 | $as_echo_n "(cached) " >&6 |
953ff289 DN |
6343 | else |
6344 | if test -n "$ac_ct_STRIP"; then | |
6345 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6346 | else | |
6347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6348 | for as_dir in $PATH | |
6349 | do | |
6350 | IFS=$as_save_IFS | |
6351 | test -z "$as_dir" && as_dir=. | |
5213506e | 6352 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6353 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
953ff289 | 6354 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 6355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
953ff289 DN |
6356 | break 2 |
6357 | fi | |
6358 | done | |
5213506e RW |
6359 | done |
6360 | IFS=$as_save_IFS | |
953ff289 | 6361 | |
953ff289 DN |
6362 | fi |
6363 | fi | |
6364 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6365 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6367 | $as_echo "$ac_ct_STRIP" >&6; } | |
953ff289 | 6368 | else |
5213506e RW |
6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6370 | $as_echo "no" >&6; } | |
953ff289 DN |
6371 | fi |
6372 | ||
5213506e RW |
6373 | if test "x$ac_ct_STRIP" = x; then |
6374 | STRIP=":" | |
6375 | else | |
6376 | case $cross_compiling:$ac_tool_warned in | |
6377 | yes:) | |
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6379 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6380 | ac_tool_warned=yes ;; | |
6381 | esac | |
6382 | STRIP=$ac_ct_STRIP | |
6383 | fi | |
953ff289 DN |
6384 | else |
6385 | STRIP="$ac_cv_prog_STRIP" | |
6386 | fi | |
6387 | ||
1cf3d07d | 6388 | test -z "$STRIP" && STRIP=: |
953ff289 DN |
6389 | |
6390 | ||
953ff289 | 6391 | |
953ff289 DN |
6392 | |
6393 | ||
953ff289 | 6394 | |
1cf3d07d SE |
6395 | if test -n "$ac_tool_prefix"; then |
6396 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6397 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6399 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6400 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 6401 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6402 | else |
6403 | if test -n "$RANLIB"; then | |
6404 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6405 | else | |
6406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6407 | for as_dir in $PATH | |
6408 | do | |
6409 | IFS=$as_save_IFS | |
6410 | test -z "$as_dir" && as_dir=. | |
5213506e | 6411 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 6413 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 6414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
6415 | break 2 |
6416 | fi | |
6417 | done | |
5213506e RW |
6418 | done |
6419 | IFS=$as_save_IFS | |
1cf3d07d SE |
6420 | |
6421 | fi | |
6422 | fi | |
6423 | RANLIB=$ac_cv_prog_RANLIB | |
6424 | if test -n "$RANLIB"; then | |
5213506e RW |
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6426 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 6427 | else |
5213506e RW |
6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6429 | $as_echo "no" >&6; } | |
1cf3d07d SE |
6430 | fi |
6431 | ||
5213506e | 6432 | |
1cf3d07d SE |
6433 | fi |
6434 | if test -z "$ac_cv_prog_RANLIB"; then | |
6435 | ac_ct_RANLIB=$RANLIB | |
6436 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6437 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6439 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6440 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 6441 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6442 | else |
6443 | if test -n "$ac_ct_RANLIB"; then | |
6444 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6445 | else | |
6446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6447 | for as_dir in $PATH | |
6448 | do | |
6449 | IFS=$as_save_IFS | |
6450 | test -z "$as_dir" && as_dir=. | |
5213506e | 6451 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 6453 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 6454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
6455 | break 2 |
6456 | fi | |
6457 | done | |
5213506e RW |
6458 | done |
6459 | IFS=$as_save_IFS | |
1cf3d07d | 6460 | |
1cf3d07d SE |
6461 | fi |
6462 | fi | |
6463 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6464 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
6465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6466 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 6467 | else |
5213506e RW |
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6469 | $as_echo "no" >&6; } | |
1cf3d07d SE |
6470 | fi |
6471 | ||
5213506e RW |
6472 | if test "x$ac_ct_RANLIB" = x; then |
6473 | RANLIB=":" | |
6474 | else | |
6475 | case $cross_compiling:$ac_tool_warned in | |
6476 | yes:) | |
6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6478 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6479 | ac_tool_warned=yes ;; | |
6480 | esac | |
6481 | RANLIB=$ac_ct_RANLIB | |
6482 | fi | |
1cf3d07d SE |
6483 | else |
6484 | RANLIB="$ac_cv_prog_RANLIB" | |
6485 | fi | |
6486 | ||
6487 | test -z "$RANLIB" && RANLIB=: | |
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | # Determine commands to create old-style static archives. | |
6b4a97ed | 6495 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
6496 | old_postinstall_cmds='chmod 644 $oldlib' |
6497 | old_postuninstall_cmds= | |
6498 | ||
6499 | if test -n "$RANLIB"; then | |
6500 | case $host_os in | |
6501 | openbsd*) | |
6502 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6503 | ;; | |
6504 | *) | |
6505 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6506 | ;; | |
6507 | esac | |
6508 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6509 | fi | |
6510 | ||
43e02a8a RW |
6511 | case $host_os in |
6512 | darwin*) | |
6513 | lock_old_archive_extraction=yes ;; | |
6514 | *) | |
6515 | lock_old_archive_extraction=no ;; | |
6516 | esac | |
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
1cf3d07d SE |
6523 | |
6524 | ||
6525 | ||
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | # If no C compiler was specified, use CC. | |
6557 | LTCC=${LTCC-"$CC"} | |
6558 | ||
6559 | # If no C compiler flags were specified, use CFLAGS. | |
6560 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6561 | ||
6562 | # Allow CC to be a program name with arguments. | |
6563 | compiler=$CC | |
6564 | ||
6565 | ||
6566 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6568 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 6569 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 6570 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6571 | else |
6572 | ||
6573 | # These are sane defaults that work on at least a few old systems. | |
6574 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6575 | ||
6576 | # Character class describing NM global symbol codes. | |
6577 | symcode='[BCDEGRST]' | |
6578 | ||
6579 | # Regexp to match symbols that can be accessed directly from C. | |
6580 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6581 | ||
6582 | # Define system-specific variables. | |
6583 | case $host_os in | |
6584 | aix*) | |
6585 | symcode='[BCDT]' | |
6586 | ;; | |
6b4a97ed | 6587 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
6588 | symcode='[ABCDGISTW]' |
6589 | ;; | |
6590 | hpux*) | |
6591 | if test "$host_cpu" = ia64; then | |
6592 | symcode='[ABCDEGRST]' | |
6593 | fi | |
6594 | ;; | |
6595 | irix* | nonstopux*) | |
6596 | symcode='[BCDEGRST]' | |
6597 | ;; | |
6598 | osf*) | |
6599 | symcode='[BCDEGQRST]' | |
6600 | ;; | |
6601 | solaris*) | |
6602 | symcode='[BDRT]' | |
6603 | ;; | |
6604 | sco3.2v5*) | |
6605 | symcode='[DT]' | |
6606 | ;; | |
6607 | sysv4.2uw2*) | |
6608 | symcode='[DT]' | |
6609 | ;; | |
6610 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6611 | symcode='[ABDT]' | |
6612 | ;; | |
6613 | sysv4) | |
6614 | symcode='[DFNSTU]' | |
6615 | ;; | |
6616 | esac | |
6617 | ||
6618 | # If we're using GNU nm, then use its standard symbol codes. | |
6619 | case `$NM -V 2>&1` in | |
6620 | *GNU* | *'with BFD'*) | |
6621 | symcode='[ABCDGIRSTW]' ;; | |
6622 | esac | |
6623 | ||
6624 | # Transform an extracted symbol line into a proper C declaration. | |
6625 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6626 | # so use this general approach. | |
6627 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6628 | ||
6629 | # Transform an extracted symbol line into symbol name and symbol address | |
6630 | 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 | 6631 | 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 |
6632 | |
6633 | # Handle CRLF in mingw tool chain | |
6634 | opt_cr= | |
6635 | case $build_os in | |
6636 | mingw*) | |
6637 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6638 | ;; | |
6639 | esac | |
6640 | ||
6641 | # Try without a prefix underscore, then with it. | |
6642 | for ac_symprfx in "" "_"; do | |
6643 | ||
6644 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6645 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6646 | ||
6647 | # Write the raw and C identifiers. | |
6648 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6649 | # Fake it for dumpbin and say T for any non-static function | |
6650 | # and D for any global variable. | |
6651 | # Also find C++ and __fastcall symbols from MSVC++, | |
6652 | # which start with @ or ?. | |
6653 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6654 | " {last_section=section; section=\$ 3};"\ | |
6655 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6656 | " \$ 0!~/External *\|/{next};"\ | |
6657 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6658 | " {if(hide[section]) next};"\ | |
6659 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6660 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6661 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6662 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6663 | " ' prfx=^$ac_symprfx" | |
6664 | else | |
6665 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6666 | fi | |
6667 | ||
6668 | # Check to see that the pipe works correctly. | |
6669 | pipe_works=no | |
6670 | ||
6671 | rm -f conftest* | |
6672 | cat > conftest.$ac_ext <<_LT_EOF | |
6673 | #ifdef __cplusplus | |
6674 | extern "C" { | |
6675 | #endif | |
6676 | char nm_test_var; | |
6677 | void nm_test_func(void); | |
6678 | void nm_test_func(void){} | |
6679 | #ifdef __cplusplus | |
6680 | } | |
6681 | #endif | |
6682 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6683 | _LT_EOF | |
6684 | ||
5213506e | 6685 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6686 | (eval $ac_compile) 2>&5 |
6687 | ac_status=$? | |
5213506e RW |
6688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6689 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6690 | # Now try to grab the symbols. |
6691 | nlist=conftest.nm | |
43e02a8a RW |
6692 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6693 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 6694 | ac_status=$? |
5213506e RW |
6695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6696 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
6697 | # Try sorting and uniquifying the output. |
6698 | if sort "$nlist" | uniq > "$nlist"T; then | |
6699 | mv -f "$nlist"T "$nlist" | |
6700 | else | |
6701 | rm -f "$nlist"T | |
6702 | fi | |
6703 | ||
6704 | # Make sure that we snagged all the symbols we need. | |
6705 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6706 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6707 | cat <<_LT_EOF > conftest.$ac_ext | |
6708 | #ifdef __cplusplus | |
6709 | extern "C" { | |
6710 | #endif | |
6711 | ||
6712 | _LT_EOF | |
6713 | # Now generate the symbol file. | |
6714 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6715 | ||
6716 | cat <<_LT_EOF >> conftest.$ac_ext | |
6717 | ||
6718 | /* The mapping between symbol names and symbols. */ | |
6719 | const struct { | |
6720 | const char *name; | |
6721 | void *address; | |
6722 | } | |
6723 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6724 | { | |
6725 | { "@PROGRAM@", (void *) 0 }, | |
6726 | _LT_EOF | |
6727 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6728 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6729 | {0, (void *) 0} | |
6730 | }; | |
6731 | ||
6732 | /* This works around a problem in FreeBSD linker */ | |
6733 | #ifdef FREEBSD_WORKAROUND | |
6734 | static const void *lt_preloaded_setup() { | |
6735 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6736 | } | |
6737 | #endif | |
6738 | ||
6739 | #ifdef __cplusplus | |
6740 | } | |
6741 | #endif | |
6742 | _LT_EOF | |
6743 | # Now try linking the two files. | |
6744 | mv conftest.$ac_objext conftstm.$ac_objext | |
6745 | lt_save_LIBS="$LIBS" | |
6746 | lt_save_CFLAGS="$CFLAGS" | |
6747 | LIBS="conftstm.$ac_objext" | |
6748 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 6749 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
6750 | (eval $ac_link) 2>&5 |
6751 | ac_status=$? | |
5213506e RW |
6752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6753 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
6754 | pipe_works=yes |
6755 | fi | |
6756 | LIBS="$lt_save_LIBS" | |
6757 | CFLAGS="$lt_save_CFLAGS" | |
6758 | else | |
6759 | echo "cannot find nm_test_func in $nlist" >&5 | |
6760 | fi | |
6761 | else | |
6762 | echo "cannot find nm_test_var in $nlist" >&5 | |
6763 | fi | |
6764 | else | |
6765 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6766 | fi | |
6767 | else | |
6768 | echo "$progname: failed program was:" >&5 | |
6769 | cat conftest.$ac_ext >&5 | |
6770 | fi | |
6b4a97ed | 6771 | rm -rf conftest* conftst* |
1cf3d07d SE |
6772 | |
6773 | # Do not use the global_symbol_pipe unless it works. | |
6774 | if test "$pipe_works" = yes; then | |
6775 | break | |
6776 | else | |
6777 | lt_cv_sys_global_symbol_pipe= | |
6778 | fi | |
6779 | done | |
6780 | ||
6781 | fi | |
6782 | ||
6783 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6784 | lt_cv_sys_global_symbol_to_cdecl= | |
6785 | fi | |
6786 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6788 | $as_echo "failed" >&6; } | |
1cf3d07d | 6789 | else |
5213506e RW |
6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6791 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
6792 | fi |
6793 | ||
6794 | ||
6795 | ||
6796 | ||
6797 | ||
6798 | ||
6799 | ||
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6b4a97ed PG |
6808 | |
6809 | ||
6810 | ||
6811 | ||
6812 | ||
1cf3d07d SE |
6813 | |
6814 | ||
6815 | ||
5213506e RW |
6816 | # Check whether --enable-libtool-lock was given. |
6817 | if test "${enable_libtool_lock+set}" = set; then : | |
6818 | enableval=$enable_libtool_lock; | |
6819 | fi | |
1cf3d07d | 6820 | |
1cf3d07d SE |
6821 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6822 | ||
6823 | # Some flags need to be propagated to the compiler or linker for good | |
953ff289 DN |
6824 | # libtool support. |
6825 | case $host in | |
1cf3d07d | 6826 | ia64-*-hpux*) |
953ff289 | 6827 | # Find out which ABI we are using. |
1cf3d07d | 6828 | echo 'int i;' > conftest.$ac_ext |
5213506e | 6829 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
953ff289 DN |
6830 | (eval $ac_compile) 2>&5 |
6831 | ac_status=$? | |
5213506e RW |
6832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6833 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6834 | case `/usr/bin/file conftest.$ac_objext` in |
6835 | *ELF-32*) | |
6836 | HPUX_IA64_MODE="32" | |
6837 | ;; | |
6838 | *ELF-64*) | |
6839 | HPUX_IA64_MODE="64" | |
6840 | ;; | |
6841 | esac | |
6842 | fi | |
6843 | rm -rf conftest* | |
6844 | ;; | |
6845 | *-*-irix6*) | |
6846 | # Find out which ABI we are using. | |
43e02a8a | 6847 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 6848 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6849 | (eval $ac_compile) 2>&5 |
6850 | ac_status=$? | |
5213506e RW |
6851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6852 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6853 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6854 | case `/usr/bin/file conftest.$ac_objext` in | |
6855 | *32-bit*) | |
6856 | LD="${LD-ld} -melf32bsmip" | |
6857 | ;; | |
6858 | *N32*) | |
6859 | LD="${LD-ld} -melf32bmipn32" | |
6860 | ;; | |
6861 | *64-bit*) | |
6862 | LD="${LD-ld} -melf64bmip" | |
6863 | ;; | |
6864 | esac | |
6865 | else | |
6866 | case `/usr/bin/file conftest.$ac_objext` in | |
6867 | *32-bit*) | |
6868 | LD="${LD-ld} -32" | |
6869 | ;; | |
6870 | *N32*) | |
6871 | LD="${LD-ld} -n32" | |
6872 | ;; | |
6873 | *64-bit*) | |
6874 | LD="${LD-ld} -64" | |
6875 | ;; | |
6876 | esac | |
6877 | fi | |
6878 | fi | |
6879 | rm -rf conftest* | |
6880 | ;; | |
6881 | ||
3cbe17f7 | 6882 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d SE |
6883 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6884 | # Find out which ABI we are using. | |
6885 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6886 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6887 | (eval $ac_compile) 2>&5 |
6888 | ac_status=$? | |
5213506e RW |
6889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6890 | test $ac_status = 0; }; then | |
1cf3d07d SE |
6891 | case `/usr/bin/file conftest.o` in |
6892 | *32-bit*) | |
6893 | case $host in | |
6894 | x86_64-*kfreebsd*-gnu) | |
6895 | LD="${LD-ld} -m elf_i386_fbsd" | |
6896 | ;; | |
6897 | x86_64-*linux*) | |
e6d5f8c9 L |
6898 | case `/usr/bin/file conftest.o` in |
6899 | *x86-64*) | |
6900 | LD="${LD-ld} -m elf32_x86_64" | |
6901 | ;; | |
6902 | *) | |
6903 | LD="${LD-ld} -m elf_i386" | |
6904 | ;; | |
6905 | esac | |
1cf3d07d | 6906 | ;; |
3cbe17f7 AM |
6907 | powerpc64le-*linux*) |
6908 | LD="${LD-ld} -m elf32lppclinux" | |
6909 | ;; | |
6910 | powerpc64-*linux*) | |
1cf3d07d SE |
6911 | LD="${LD-ld} -m elf32ppclinux" |
6912 | ;; | |
6913 | s390x-*linux*) | |
6914 | LD="${LD-ld} -m elf_s390" | |
6915 | ;; | |
6916 | sparc64-*linux*) | |
6917 | LD="${LD-ld} -m elf32_sparc" | |
6918 | ;; | |
6919 | esac | |
6920 | ;; | |
6921 | *64-bit*) | |
6922 | case $host in | |
6923 | x86_64-*kfreebsd*-gnu) | |
6924 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6925 | ;; | |
6926 | x86_64-*linux*) | |
6927 | LD="${LD-ld} -m elf_x86_64" | |
6928 | ;; | |
3cbe17f7 AM |
6929 | powerpcle-*linux*) |
6930 | LD="${LD-ld} -m elf64lppc" | |
6931 | ;; | |
6932 | powerpc-*linux*) | |
1cf3d07d SE |
6933 | LD="${LD-ld} -m elf64ppc" |
6934 | ;; | |
6935 | s390*-*linux*|s390*-*tpf*) | |
6936 | LD="${LD-ld} -m elf64_s390" | |
6937 | ;; | |
6938 | sparc*-*linux*) | |
6939 | LD="${LD-ld} -m elf64_sparc" | |
6940 | ;; | |
6941 | esac | |
6942 | ;; | |
6943 | esac | |
6944 | fi | |
6945 | rm -rf conftest* | |
6946 | ;; | |
6947 | ||
6948 | *-*-sco3.2v5*) | |
6949 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6950 | SAVE_CFLAGS="$CFLAGS" | |
6951 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6953 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 6954 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 6955 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
6956 | else |
6957 | ac_ext=c | |
6958 | ac_cpp='$CPP $CPPFLAGS' | |
6959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6962 | ||
5213506e | 6963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
6964 | /* end confdefs.h. */ |
6965 | ||
6966 | int | |
6967 | main () | |
6968 | { | |
6969 | ||
6970 | ; | |
6971 | return 0; | |
6972 | } | |
6973 | _ACEOF | |
5213506e | 6974 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
6975 | lt_cv_cc_needs_belf=yes |
6976 | else | |
5213506e | 6977 | lt_cv_cc_needs_belf=no |
1cf3d07d | 6978 | fi |
5213506e RW |
6979 | rm -f core conftest.err conftest.$ac_objext \ |
6980 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
6981 | ac_ext=c |
6982 | ac_cpp='$CPP $CPPFLAGS' | |
6983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6986 | ||
6987 | fi | |
5213506e RW |
6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6989 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
1cf3d07d SE |
6990 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6991 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6992 | CFLAGS="$SAVE_CFLAGS" | |
6993 | fi | |
6994 | ;; | |
6995 | sparc*-*solaris*) | |
6996 | # Find out which ABI we are using. | |
6997 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 6998 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
6999 | (eval $ac_compile) 2>&5 |
7000 | ac_status=$? | |
5213506e RW |
7001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7002 | test $ac_status = 0; }; then | |
1cf3d07d SE |
7003 | case `/usr/bin/file conftest.o` in |
7004 | *64-bit*) | |
7005 | case $lt_cv_prog_gnu_ld in | |
7006 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6b4a97ed PG |
7007 | *) |
7008 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7009 | LD="${LD-ld} -64" | |
7010 | fi | |
7011 | ;; | |
1cf3d07d SE |
7012 | esac |
7013 | ;; | |
7014 | esac | |
7015 | fi | |
7016 | rm -rf conftest* | |
7017 | ;; | |
7018 | esac | |
7019 | ||
7020 | need_locks="$enable_libtool_lock" | |
7021 | ||
6b4a97ed PG |
7022 | |
7023 | case $host_os in | |
7024 | rhapsody* | darwin*) | |
7025 | if test -n "$ac_tool_prefix"; then | |
7026 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7027 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7029 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7030 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 7031 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 7032 | else |
6b4a97ed PG |
7033 | if test -n "$DSYMUTIL"; then |
7034 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7035 | else | |
7036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7037 | for as_dir in $PATH | |
1cf3d07d | 7038 | do |
6b4a97ed PG |
7039 | IFS=$as_save_IFS |
7040 | test -z "$as_dir" && as_dir=. | |
5213506e | 7041 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7043 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 7044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed | 7045 | break 2 |
1cf3d07d | 7046 | fi |
6b4a97ed | 7047 | done |
5213506e RW |
7048 | done |
7049 | IFS=$as_save_IFS | |
6b4a97ed PG |
7050 | |
7051 | fi | |
7052 | fi | |
7053 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7054 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7056 | $as_echo "$DSYMUTIL" >&6; } | |
6b4a97ed | 7057 | else |
5213506e RW |
7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7059 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7060 | fi |
7061 | ||
5213506e | 7062 | |
6b4a97ed PG |
7063 | fi |
7064 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7065 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7066 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7067 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7069 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7070 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 7071 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7072 | else |
7073 | if test -n "$ac_ct_DSYMUTIL"; then | |
7074 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7075 | else | |
7076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7077 | for as_dir in $PATH | |
7078 | do | |
7079 | IFS=$as_save_IFS | |
7080 | test -z "$as_dir" && as_dir=. | |
5213506e | 7081 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7083 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 7084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7085 | break 2 |
7086 | fi | |
7087 | done | |
5213506e RW |
7088 | done |
7089 | IFS=$as_save_IFS | |
6b4a97ed | 7090 | |
6b4a97ed PG |
7091 | fi |
7092 | fi | |
7093 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7094 | if test -n "$ac_ct_DSYMUTIL"; then | |
5213506e RW |
7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7096 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6b4a97ed | 7097 | else |
5213506e RW |
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7099 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7100 | fi |
7101 | ||
5213506e RW |
7102 | if test "x$ac_ct_DSYMUTIL" = x; then |
7103 | DSYMUTIL=":" | |
7104 | else | |
7105 | case $cross_compiling:$ac_tool_warned in | |
7106 | yes:) | |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7108 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7109 | ac_tool_warned=yes ;; | |
7110 | esac | |
7111 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7112 | fi | |
6b4a97ed PG |
7113 | else |
7114 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7115 | fi | |
7116 | ||
7117 | if test -n "$ac_tool_prefix"; then | |
7118 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7119 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7121 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7122 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 7123 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7124 | else |
7125 | if test -n "$NMEDIT"; then | |
7126 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7127 | else | |
7128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7129 | for as_dir in $PATH | |
7130 | do | |
7131 | IFS=$as_save_IFS | |
7132 | test -z "$as_dir" && as_dir=. | |
5213506e | 7133 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7135 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 7136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7137 | break 2 |
7138 | fi | |
7139 | done | |
5213506e RW |
7140 | done |
7141 | IFS=$as_save_IFS | |
6b4a97ed PG |
7142 | |
7143 | fi | |
7144 | fi | |
7145 | NMEDIT=$ac_cv_prog_NMEDIT | |
7146 | if test -n "$NMEDIT"; then | |
5213506e RW |
7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7148 | $as_echo "$NMEDIT" >&6; } | |
6b4a97ed | 7149 | else |
5213506e RW |
7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7151 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7152 | fi |
7153 | ||
5213506e | 7154 | |
6b4a97ed PG |
7155 | fi |
7156 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7157 | ac_ct_NMEDIT=$NMEDIT | |
7158 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7159 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7161 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7162 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 7163 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7164 | else |
7165 | if test -n "$ac_ct_NMEDIT"; then | |
7166 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7167 | else | |
7168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7169 | for as_dir in $PATH | |
7170 | do | |
7171 | IFS=$as_save_IFS | |
7172 | test -z "$as_dir" && as_dir=. | |
5213506e | 7173 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7175 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 7176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7177 | break 2 |
7178 | fi | |
7179 | done | |
5213506e RW |
7180 | done |
7181 | IFS=$as_save_IFS | |
6b4a97ed | 7182 | |
6b4a97ed PG |
7183 | fi |
7184 | fi | |
7185 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7186 | if test -n "$ac_ct_NMEDIT"; then | |
5213506e RW |
7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7188 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6b4a97ed | 7189 | else |
5213506e RW |
7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7191 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7192 | fi |
7193 | ||
5213506e RW |
7194 | if test "x$ac_ct_NMEDIT" = x; then |
7195 | NMEDIT=":" | |
7196 | else | |
7197 | case $cross_compiling:$ac_tool_warned in | |
7198 | yes:) | |
7199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7200 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7201 | ac_tool_warned=yes ;; | |
7202 | esac | |
7203 | NMEDIT=$ac_ct_NMEDIT | |
7204 | fi | |
6b4a97ed PG |
7205 | else |
7206 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7207 | fi | |
7208 | ||
7209 | if test -n "$ac_tool_prefix"; then | |
7210 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7211 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7213 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7214 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 7215 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7216 | else |
7217 | if test -n "$LIPO"; then | |
7218 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7219 | else | |
7220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7221 | for as_dir in $PATH | |
7222 | do | |
7223 | IFS=$as_save_IFS | |
7224 | test -z "$as_dir" && as_dir=. | |
5213506e | 7225 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7227 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 7228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7229 | break 2 |
7230 | fi | |
7231 | done | |
5213506e RW |
7232 | done |
7233 | IFS=$as_save_IFS | |
6b4a97ed PG |
7234 | |
7235 | fi | |
7236 | fi | |
7237 | LIPO=$ac_cv_prog_LIPO | |
7238 | if test -n "$LIPO"; then | |
5213506e RW |
7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7240 | $as_echo "$LIPO" >&6; } | |
6b4a97ed | 7241 | else |
5213506e RW |
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7243 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7244 | fi |
7245 | ||
5213506e | 7246 | |
6b4a97ed PG |
7247 | fi |
7248 | if test -z "$ac_cv_prog_LIPO"; then | |
7249 | ac_ct_LIPO=$LIPO | |
7250 | # Extract the first word of "lipo", so it can be a program name with args. | |
7251 | set dummy lipo; ac_word=$2 | |
5213506e RW |
7252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7253 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7254 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 7255 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7256 | else |
7257 | if test -n "$ac_ct_LIPO"; then | |
7258 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7259 | else | |
7260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7261 | for as_dir in $PATH | |
7262 | do | |
7263 | IFS=$as_save_IFS | |
7264 | test -z "$as_dir" && as_dir=. | |
5213506e | 7265 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7267 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 7268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7269 | break 2 |
7270 | fi | |
7271 | done | |
5213506e RW |
7272 | done |
7273 | IFS=$as_save_IFS | |
6b4a97ed | 7274 | |
6b4a97ed PG |
7275 | fi |
7276 | fi | |
7277 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7278 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7280 | $as_echo "$ac_ct_LIPO" >&6; } | |
6b4a97ed | 7281 | else |
5213506e RW |
7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7283 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7284 | fi |
7285 | ||
5213506e RW |
7286 | if test "x$ac_ct_LIPO" = x; then |
7287 | LIPO=":" | |
7288 | else | |
7289 | case $cross_compiling:$ac_tool_warned in | |
7290 | yes:) | |
7291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7292 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7293 | ac_tool_warned=yes ;; | |
7294 | esac | |
7295 | LIPO=$ac_ct_LIPO | |
7296 | fi | |
6b4a97ed PG |
7297 | else |
7298 | LIPO="$ac_cv_prog_LIPO" | |
7299 | fi | |
7300 | ||
7301 | if test -n "$ac_tool_prefix"; then | |
7302 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7303 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5213506e RW |
7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7305 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7306 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 7307 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7308 | else |
7309 | if test -n "$OTOOL"; then | |
7310 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7311 | else | |
7312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7313 | for as_dir in $PATH | |
7314 | do | |
7315 | IFS=$as_save_IFS | |
7316 | test -z "$as_dir" && as_dir=. | |
5213506e | 7317 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7319 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
5213506e | 7320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7321 | break 2 |
7322 | fi | |
7323 | done | |
5213506e RW |
7324 | done |
7325 | IFS=$as_save_IFS | |
6b4a97ed PG |
7326 | |
7327 | fi | |
7328 | fi | |
7329 | OTOOL=$ac_cv_prog_OTOOL | |
7330 | if test -n "$OTOOL"; then | |
5213506e RW |
7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7332 | $as_echo "$OTOOL" >&6; } | |
6b4a97ed | 7333 | else |
5213506e RW |
7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7335 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7336 | fi |
7337 | ||
5213506e | 7338 | |
6b4a97ed PG |
7339 | fi |
7340 | if test -z "$ac_cv_prog_OTOOL"; then | |
7341 | ac_ct_OTOOL=$OTOOL | |
7342 | # Extract the first word of "otool", so it can be a program name with args. | |
7343 | set dummy otool; ac_word=$2 | |
5213506e RW |
7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7345 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7346 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 7347 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7348 | else |
7349 | if test -n "$ac_ct_OTOOL"; then | |
7350 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7351 | else | |
7352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7353 | for as_dir in $PATH | |
7354 | do | |
7355 | IFS=$as_save_IFS | |
7356 | test -z "$as_dir" && as_dir=. | |
5213506e | 7357 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7359 | ac_cv_prog_ac_ct_OTOOL="otool" |
5213506e | 7360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7361 | break 2 |
7362 | fi | |
7363 | done | |
5213506e RW |
7364 | done |
7365 | IFS=$as_save_IFS | |
6b4a97ed | 7366 | |
6b4a97ed PG |
7367 | fi |
7368 | fi | |
7369 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7370 | if test -n "$ac_ct_OTOOL"; then | |
5213506e RW |
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7372 | $as_echo "$ac_ct_OTOOL" >&6; } | |
6b4a97ed | 7373 | else |
5213506e RW |
7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7375 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7376 | fi |
7377 | ||
5213506e RW |
7378 | if test "x$ac_ct_OTOOL" = x; then |
7379 | OTOOL=":" | |
7380 | else | |
7381 | case $cross_compiling:$ac_tool_warned in | |
7382 | yes:) | |
7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7384 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7385 | ac_tool_warned=yes ;; | |
7386 | esac | |
7387 | OTOOL=$ac_ct_OTOOL | |
7388 | fi | |
6b4a97ed PG |
7389 | else |
7390 | OTOOL="$ac_cv_prog_OTOOL" | |
7391 | fi | |
7392 | ||
7393 | if test -n "$ac_tool_prefix"; then | |
7394 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7395 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5213506e RW |
7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7397 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7398 | if ${ac_cv_prog_OTOOL64+:} false; then : |
5213506e | 7399 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7400 | else |
7401 | if test -n "$OTOOL64"; then | |
7402 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7403 | else | |
7404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7405 | for as_dir in $PATH | |
7406 | do | |
7407 | IFS=$as_save_IFS | |
7408 | test -z "$as_dir" && as_dir=. | |
5213506e | 7409 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7410 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7411 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
5213506e | 7412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7413 | break 2 |
7414 | fi | |
7415 | done | |
5213506e RW |
7416 | done |
7417 | IFS=$as_save_IFS | |
6b4a97ed PG |
7418 | |
7419 | fi | |
7420 | fi | |
7421 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7422 | if test -n "$OTOOL64"; then | |
5213506e RW |
7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7424 | $as_echo "$OTOOL64" >&6; } | |
6b4a97ed | 7425 | else |
5213506e RW |
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7427 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7428 | fi |
7429 | ||
5213506e | 7430 | |
6b4a97ed PG |
7431 | fi |
7432 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7433 | ac_ct_OTOOL64=$OTOOL64 | |
7434 | # Extract the first word of "otool64", so it can be a program name with args. | |
7435 | set dummy otool64; ac_word=$2 | |
5213506e RW |
7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7437 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7438 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
5213506e | 7439 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7440 | else |
7441 | if test -n "$ac_ct_OTOOL64"; then | |
7442 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7443 | else | |
7444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7445 | for as_dir in $PATH | |
7446 | do | |
7447 | IFS=$as_save_IFS | |
7448 | test -z "$as_dir" && as_dir=. | |
5213506e | 7449 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7450 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b4a97ed | 7451 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
5213506e | 7452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6b4a97ed PG |
7453 | break 2 |
7454 | fi | |
7455 | done | |
5213506e RW |
7456 | done |
7457 | IFS=$as_save_IFS | |
6b4a97ed | 7458 | |
6b4a97ed PG |
7459 | fi |
7460 | fi | |
7461 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7462 | if test -n "$ac_ct_OTOOL64"; then | |
5213506e RW |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7464 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6b4a97ed | 7465 | else |
5213506e RW |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7467 | $as_echo "no" >&6; } | |
6b4a97ed PG |
7468 | fi |
7469 | ||
5213506e RW |
7470 | if test "x$ac_ct_OTOOL64" = x; then |
7471 | OTOOL64=":" | |
7472 | else | |
7473 | case $cross_compiling:$ac_tool_warned in | |
7474 | yes:) | |
7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7476 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7477 | ac_tool_warned=yes ;; | |
7478 | esac | |
7479 | OTOOL64=$ac_ct_OTOOL64 | |
7480 | fi | |
6b4a97ed PG |
7481 | else |
7482 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7483 | fi | |
7484 | ||
7485 | ||
7486 | ||
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
7492 | ||
7493 | ||
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | ||
7502 | ||
7503 | ||
7504 | ||
7505 | ||
7506 | ||
7507 | ||
7508 | ||
7509 | ||
7510 | ||
5213506e RW |
7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7512 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 7513 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
5213506e | 7514 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7515 | else |
7516 | lt_cv_apple_cc_single_mod=no | |
7517 | if test -z "${LT_MULTI_MODULE}"; then | |
7518 | # By default we will add the -single_module flag. You can override | |
7519 | # by either setting the environment variable LT_MULTI_MODULE | |
7520 | # non-empty at configure time, or by adding -multi_module to the | |
7521 | # link flags. | |
7522 | rm -rf libconftest.dylib* | |
7523 | echo "int foo(void){return 1;}" > conftest.c | |
7524 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7525 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7526 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7527 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7528 | _lt_result=$? | |
7529 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7530 | lt_cv_apple_cc_single_mod=yes | |
7531 | else | |
7532 | cat conftest.err >&5 | |
7533 | fi | |
7534 | rm -rf libconftest.dylib* | |
7535 | rm -f conftest.* | |
7536 | fi | |
7537 | fi | |
5213506e RW |
7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7539 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7541 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 7542 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
5213506e | 7543 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7544 | else |
7545 | lt_cv_ld_exported_symbols_list=no | |
7546 | save_LDFLAGS=$LDFLAGS | |
7547 | echo "_main" > conftest.sym | |
7548 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5213506e | 7549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6b4a97ed PG |
7550 | /* end confdefs.h. */ |
7551 | ||
7552 | int | |
7553 | main () | |
7554 | { | |
7555 | ||
7556 | ; | |
7557 | return 0; | |
7558 | } | |
7559 | _ACEOF | |
5213506e | 7560 | if ac_fn_c_try_link "$LINENO"; then : |
6b4a97ed PG |
7561 | lt_cv_ld_exported_symbols_list=yes |
7562 | else | |
5213506e | 7563 | lt_cv_ld_exported_symbols_list=no |
6b4a97ed | 7564 | fi |
5213506e RW |
7565 | rm -f core conftest.err conftest.$ac_objext \ |
7566 | conftest$ac_exeext conftest.$ac_ext | |
6b4a97ed PG |
7567 | LDFLAGS="$save_LDFLAGS" |
7568 | ||
7569 | fi | |
5213506e RW |
7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7571 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
43e02a8a RW |
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7573 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 7574 | if ${lt_cv_ld_force_load+:} false; then : |
43e02a8a RW |
7575 | $as_echo_n "(cached) " >&6 |
7576 | else | |
7577 | lt_cv_ld_force_load=no | |
7578 | cat > conftest.c << _LT_EOF | |
7579 | int forced_loaded() { return 2;} | |
7580 | _LT_EOF | |
7581 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7582 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7583 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7584 | $AR cru libconftest.a conftest.o 2>&5 | |
7585 | cat > conftest.c << _LT_EOF | |
7586 | int main() { return 0;} | |
7587 | _LT_EOF | |
7588 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7589 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7590 | _lt_result=$? | |
7591 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7592 | lt_cv_ld_force_load=yes | |
7593 | else | |
7594 | cat conftest.err >&5 | |
7595 | fi | |
7596 | rm -f conftest.err libconftest.a conftest conftest.c | |
7597 | rm -rf conftest.dSYM | |
7598 | ||
7599 | fi | |
7600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7601 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
6b4a97ed PG |
7602 | case $host_os in |
7603 | rhapsody* | darwin1.[012]) | |
7604 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7605 | darwin1.*) | |
7606 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7607 | darwin*) # darwin 5.x on | |
7608 | # if running on 10.5 or later, the deployment target defaults | |
7609 | # to the OS version, if on x86, and 10.4, the deployment | |
7610 | # target defaults to 10.4. Don't you love it? | |
7611 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7612 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7613 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
ebf6d33b | 7614 | 10.[012][,.]*) |
6b4a97ed PG |
7615 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7616 | 10.*) | |
7617 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7618 | esac | |
7619 | ;; | |
7620 | esac | |
7621 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7622 | _lt_dar_single_mod='$single_module' | |
7623 | fi | |
7624 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7625 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7626 | else | |
7627 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7628 | fi | |
43e02a8a | 7629 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
6b4a97ed PG |
7630 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7631 | else | |
7632 | _lt_dsymutil= | |
7633 | fi | |
7634 | ;; | |
7635 | esac | |
7636 | ||
7637 | ac_ext=c | |
7638 | ac_cpp='$CPP $CPPFLAGS' | |
7639 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7640 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7641 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7643 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6b4a97ed PG |
7644 | # On Suns, sometimes $CPP names a directory. |
7645 | if test -n "$CPP" && test -d "$CPP"; then | |
7646 | CPP= | |
7647 | fi | |
7648 | if test -z "$CPP"; then | |
22e05272 | 7649 | if ${ac_cv_prog_CPP+:} false; then : |
5213506e | 7650 | $as_echo_n "(cached) " >&6 |
6b4a97ed PG |
7651 | else |
7652 | # Double quotes because CPP needs to be expanded | |
7653 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7654 | do | |
7655 | ac_preproc_ok=false | |
7656 | for ac_c_preproc_warn_flag in '' yes | |
7657 | do | |
7658 | # Use a header file that comes with gcc, so configuring glibc | |
7659 | # with a fresh cross-compiler works. | |
7660 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7661 | # <limits.h> exists even on freestanding compilers. | |
7662 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7663 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 7664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6b4a97ed PG |
7665 | /* end confdefs.h. */ |
7666 | #ifdef __STDC__ | |
7667 | # include <limits.h> | |
7668 | #else | |
7669 | # include <assert.h> | |
7670 | #endif | |
7671 | Syntax error | |
7672 | _ACEOF | |
5213506e | 7673 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d | 7674 | |
5213506e | 7675 | else |
1cf3d07d SE |
7676 | # Broken: fails on valid input. |
7677 | continue | |
7678 | fi | |
22e05272 | 7679 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d | 7680 | |
5213506e | 7681 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 7682 | # can be detected and how. |
5213506e | 7683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7684 | /* end confdefs.h. */ |
7685 | #include <ac_nonexistent.h> | |
7686 | _ACEOF | |
5213506e | 7687 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
7688 | # Broken: success on invalid input. |
7689 | continue | |
7690 | else | |
1cf3d07d SE |
7691 | # Passes both tests. |
7692 | ac_preproc_ok=: | |
7693 | break | |
7694 | fi | |
22e05272 | 7695 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d SE |
7696 | |
7697 | done | |
7698 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 7699 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e | 7700 | if $ac_preproc_ok; then : |
1cf3d07d SE |
7701 | break |
7702 | fi | |
7703 | ||
7704 | done | |
7705 | ac_cv_prog_CPP=$CPP | |
7706 | ||
7707 | fi | |
7708 | CPP=$ac_cv_prog_CPP | |
7709 | else | |
7710 | ac_cv_prog_CPP=$CPP | |
7711 | fi | |
5213506e RW |
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7713 | $as_echo "$CPP" >&6; } | |
1cf3d07d SE |
7714 | ac_preproc_ok=false |
7715 | for ac_c_preproc_warn_flag in '' yes | |
7716 | do | |
7717 | # Use a header file that comes with gcc, so configuring glibc | |
7718 | # with a fresh cross-compiler works. | |
7719 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7720 | # <limits.h> exists even on freestanding compilers. | |
7721 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7722 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 7723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7724 | /* end confdefs.h. */ |
7725 | #ifdef __STDC__ | |
7726 | # include <limits.h> | |
7727 | #else | |
7728 | # include <assert.h> | |
7729 | #endif | |
7730 | Syntax error | |
7731 | _ACEOF | |
5213506e | 7732 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d | 7733 | |
5213506e | 7734 | else |
1cf3d07d SE |
7735 | # Broken: fails on valid input. |
7736 | continue | |
7737 | fi | |
22e05272 | 7738 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d | 7739 | |
5213506e | 7740 | # OK, works on sane cases. Now check whether nonexistent headers |
1cf3d07d | 7741 | # can be detected and how. |
5213506e | 7742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7743 | /* end confdefs.h. */ |
7744 | #include <ac_nonexistent.h> | |
7745 | _ACEOF | |
5213506e | 7746 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
7747 | # Broken: success on invalid input. |
7748 | continue | |
7749 | else | |
1cf3d07d SE |
7750 | # Passes both tests. |
7751 | ac_preproc_ok=: | |
7752 | break | |
7753 | fi | |
22e05272 | 7754 | rm -f conftest.err conftest.i conftest.$ac_ext |
1cf3d07d SE |
7755 | |
7756 | done | |
7757 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 7758 | rm -f conftest.i conftest.err conftest.$ac_ext |
5213506e RW |
7759 | if $ac_preproc_ok; then : |
7760 | ||
1cf3d07d | 7761 | else |
5213506e RW |
7762 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7763 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
7764 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7765 | See \`config.log' for more details" "$LINENO" 5; } | |
1cf3d07d SE |
7766 | fi |
7767 | ||
7768 | ac_ext=c | |
7769 | ac_cpp='$CPP $CPPFLAGS' | |
7770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7773 | ||
7774 | ||
5213506e RW |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7776 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 7777 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 7778 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 7779 | else |
5213506e | 7780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7781 | /* end confdefs.h. */ |
7782 | #include <stdlib.h> | |
7783 | #include <stdarg.h> | |
7784 | #include <string.h> | |
7785 | #include <float.h> | |
7786 | ||
7787 | int | |
7788 | main () | |
7789 | { | |
7790 | ||
7791 | ; | |
7792 | return 0; | |
7793 | } | |
7794 | _ACEOF | |
5213506e | 7795 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d SE |
7796 | ac_cv_header_stdc=yes |
7797 | else | |
5213506e | 7798 | ac_cv_header_stdc=no |
1cf3d07d | 7799 | fi |
5213506e | 7800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
7801 | |
7802 | if test $ac_cv_header_stdc = yes; then | |
7803 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5213506e | 7804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7805 | /* end confdefs.h. */ |
7806 | #include <string.h> | |
7807 | ||
7808 | _ACEOF | |
7809 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
7810 | $EGREP "memchr" >/dev/null 2>&1; then : |
7811 | ||
1cf3d07d SE |
7812 | else |
7813 | ac_cv_header_stdc=no | |
7814 | fi | |
7815 | rm -f conftest* | |
7816 | ||
7817 | fi | |
7818 | ||
7819 | if test $ac_cv_header_stdc = yes; then | |
7820 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5213506e | 7821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7822 | /* end confdefs.h. */ |
7823 | #include <stdlib.h> | |
7824 | ||
7825 | _ACEOF | |
7826 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
7827 | $EGREP "free" >/dev/null 2>&1; then : |
7828 | ||
1cf3d07d SE |
7829 | else |
7830 | ac_cv_header_stdc=no | |
7831 | fi | |
7832 | rm -f conftest* | |
7833 | ||
7834 | fi | |
7835 | ||
7836 | if test $ac_cv_header_stdc = yes; then | |
7837 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5213506e | 7838 | if test "$cross_compiling" = yes; then : |
1cf3d07d SE |
7839 | : |
7840 | else | |
5213506e | 7841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
7842 | /* end confdefs.h. */ |
7843 | #include <ctype.h> | |
5213506e | 7844 | #include <stdlib.h> |
1cf3d07d SE |
7845 | #if ((' ' & 0x0FF) == 0x020) |
7846 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7847 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7848 | #else | |
7849 | # define ISLOWER(c) \ | |
7850 | (('a' <= (c) && (c) <= 'i') \ | |
7851 | || ('j' <= (c) && (c) <= 'r') \ | |
7852 | || ('s' <= (c) && (c) <= 'z')) | |
7853 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7854 | #endif | |
7855 | ||
7856 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7857 | int | |
7858 | main () | |
7859 | { | |
7860 | int i; | |
7861 | for (i = 0; i < 256; i++) | |
7862 | if (XOR (islower (i), ISLOWER (i)) | |
7863 | || toupper (i) != TOUPPER (i)) | |
5213506e RW |
7864 | return 2; |
7865 | return 0; | |
1cf3d07d SE |
7866 | } |
7867 | _ACEOF | |
5213506e | 7868 | if ac_fn_c_try_run "$LINENO"; then : |
1cf3d07d | 7869 | |
5213506e RW |
7870 | else |
7871 | ac_cv_header_stdc=no | |
1cf3d07d | 7872 | fi |
5213506e RW |
7873 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7874 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1cf3d07d | 7875 | fi |
5213506e | 7876 | |
1cf3d07d SE |
7877 | fi |
7878 | fi | |
5213506e RW |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7880 | $as_echo "$ac_cv_header_stdc" >&6; } | |
1cf3d07d SE |
7881 | if test $ac_cv_header_stdc = yes; then |
7882 | ||
5213506e | 7883 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
1cf3d07d SE |
7884 | |
7885 | fi | |
7886 | ||
7887 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
1cf3d07d SE |
7888 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7889 | inttypes.h stdint.h unistd.h | |
5213506e RW |
7890 | do : |
7891 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7892 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7893 | " | |
22e05272 | 7894 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
1cf3d07d | 7895 | cat >>confdefs.h <<_ACEOF |
5213506e | 7896 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1cf3d07d SE |
7897 | _ACEOF |
7898 | ||
7899 | fi | |
7900 | ||
7901 | done | |
7902 | ||
7903 | ||
1cf3d07d | 7904 | for ac_header in dlfcn.h |
5213506e RW |
7905 | do : |
7906 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7907 | " | |
22e05272 | 7908 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
1cf3d07d | 7909 | cat >>confdefs.h <<_ACEOF |
5213506e | 7910 | #define HAVE_DLFCN_H 1 |
1cf3d07d SE |
7911 | _ACEOF |
7912 | ||
7913 | fi | |
7914 | ||
7915 | done | |
7916 | ||
7917 | ||
7918 | ||
43e02a8a RW |
7919 | |
7920 | ||
6b4a97ed PG |
7921 | # Set options |
7922 | ||
7923 | ||
7924 | ||
7925 | enable_dlopen=no | |
7926 | ||
7927 | ||
7928 | enable_win32_dll=no | |
7929 | ||
7930 | ||
5213506e RW |
7931 | # Check whether --enable-shared was given. |
7932 | if test "${enable_shared+set}" = set; then : | |
7933 | enableval=$enable_shared; p=${PACKAGE-default} | |
6b4a97ed PG |
7934 | case $enableval in |
7935 | yes) enable_shared=yes ;; | |
7936 | no) enable_shared=no ;; | |
7937 | *) | |
7938 | enable_shared=no | |
7939 | # Look at the argument we got. We use all the common list separators. | |
7940 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7941 | for pkg in $enableval; do | |
7942 | IFS="$lt_save_ifs" | |
7943 | if test "X$pkg" = "X$p"; then | |
7944 | enable_shared=yes | |
7945 | fi | |
7946 | done | |
7947 | IFS="$lt_save_ifs" | |
7948 | ;; | |
7949 | esac | |
7950 | else | |
7951 | enable_shared=yes | |
5213506e RW |
7952 | fi |
7953 | ||
6b4a97ed PG |
7954 | |
7955 | ||
7956 | ||
7957 | ||
7958 | ||
7959 | ||
7960 | ||
7961 | ||
5213506e RW |
7962 | # Check whether --enable-static was given. |
7963 | if test "${enable_static+set}" = set; then : | |
7964 | enableval=$enable_static; p=${PACKAGE-default} | |
6b4a97ed PG |
7965 | case $enableval in |
7966 | yes) enable_static=yes ;; | |
7967 | no) enable_static=no ;; | |
7968 | *) | |
7969 | enable_static=no | |
7970 | # Look at the argument we got. We use all the common list separators. | |
7971 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7972 | for pkg in $enableval; do | |
7973 | IFS="$lt_save_ifs" | |
7974 | if test "X$pkg" = "X$p"; then | |
7975 | enable_static=yes | |
7976 | fi | |
7977 | done | |
7978 | IFS="$lt_save_ifs" | |
7979 | ;; | |
7980 | esac | |
7981 | else | |
7982 | enable_static=yes | |
5213506e RW |
7983 | fi |
7984 | ||
6b4a97ed PG |
7985 | |
7986 | ||
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
5213506e RW |
7994 | # Check whether --with-pic was given. |
7995 | if test "${with_pic+set}" = set; then : | |
7996 | withval=$with_pic; pic_mode="$withval" | |
6b4a97ed PG |
7997 | else |
7998 | pic_mode=default | |
5213506e RW |
7999 | fi |
8000 | ||
6b4a97ed PG |
8001 | |
8002 | test -z "$pic_mode" && pic_mode=default | |
8003 | ||
8004 | ||
8005 | ||
8006 | ||
8007 | ||
8008 | ||
8009 | ||
5213506e RW |
8010 | # Check whether --enable-fast-install was given. |
8011 | if test "${enable_fast_install+set}" = set; then : | |
8012 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6b4a97ed PG |
8013 | case $enableval in |
8014 | yes) enable_fast_install=yes ;; | |
8015 | no) enable_fast_install=no ;; | |
8016 | *) | |
8017 | enable_fast_install=no | |
8018 | # Look at the argument we got. We use all the common list separators. | |
8019 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8020 | for pkg in $enableval; do | |
8021 | IFS="$lt_save_ifs" | |
8022 | if test "X$pkg" = "X$p"; then | |
8023 | enable_fast_install=yes | |
8024 | fi | |
8025 | done | |
8026 | IFS="$lt_save_ifs" | |
8027 | ;; | |
8028 | esac | |
8029 | else | |
8030 | enable_fast_install=yes | |
5213506e RW |
8031 | fi |
8032 | ||
6b4a97ed PG |
8033 | |
8034 | ||
8035 | ||
8036 | ||
8037 | ||
8038 | ||
8039 | ||
8040 | ||
8041 | ||
8042 | ||
1cf3d07d SE |
8043 | # This can be used to rebuild libtool when needed |
8044 | LIBTOOL_DEPS="$ltmain" | |
8045 | ||
8046 | # Always use our own libtool. | |
8047 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | ||
43e02a8a | 8071 | |
1cf3d07d SE |
8072 | |
8073 | ||
8074 | test -z "$LN_S" && LN_S="ln -s" | |
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | if test -n "${ZSH_VERSION+set}" ; then | |
8090 | setopt NO_GLOB_SUBST | |
8091 | fi | |
8092 | ||
5213506e RW |
8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8094 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 8095 | if ${lt_cv_objdir+:} false; then : |
5213506e | 8096 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8097 | else |
8098 | rm -f .libs 2>/dev/null | |
8099 | mkdir .libs 2>/dev/null | |
8100 | if test -d .libs; then | |
8101 | lt_cv_objdir=.libs | |
8102 | else | |
8103 | # MS-DOS does not allow filenames that begin with a dot. | |
8104 | lt_cv_objdir=_libs | |
8105 | fi | |
8106 | rmdir .libs 2>/dev/null | |
8107 | fi | |
5213506e RW |
8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8109 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
8110 | objdir=$lt_cv_objdir |
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | cat >>confdefs.h <<_ACEOF | |
8117 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8118 | _ACEOF | |
8119 | ||
8120 | ||
8121 | ||
8122 | ||
1cf3d07d SE |
8123 | case $host_os in |
8124 | aix3*) | |
8125 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8126 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8127 | # vanish in a puff of smoke. | |
8128 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8129 | COLLECT_NAMES= | |
8130 | export COLLECT_NAMES | |
8131 | fi | |
8132 | ;; | |
8133 | esac | |
8134 | ||
1cf3d07d SE |
8135 | # Global variables: |
8136 | ofile=libtool | |
8137 | can_build_shared=yes | |
8138 | ||
8139 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8140 | # which needs '.lib'). | |
8141 | libext=a | |
8142 | ||
8143 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8144 | ||
8145 | old_CC="$CC" | |
8146 | old_CFLAGS="$CFLAGS" | |
8147 | ||
8148 | # Set sane defaults for various variables | |
8149 | test -z "$CC" && CC=cc | |
8150 | test -z "$LTCC" && LTCC=$CC | |
8151 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8152 | test -z "$LD" && LD=ld | |
8153 | test -z "$ac_objext" && ac_objext=o | |
8154 | ||
8155 | for cc_temp in $compiler""; do | |
8156 | case $cc_temp in | |
8157 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8158 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8159 | \-*) ;; | |
8160 | *) break;; | |
8161 | esac | |
8162 | done | |
43e02a8a | 8163 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
8164 | |
8165 | ||
8166 | # Only perform the check for file, if the check method requires it | |
8167 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8168 | case $deplibs_check_method in | |
8169 | file_magic*) | |
8170 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8172 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 8173 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 8174 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8175 | else |
8176 | case $MAGIC_CMD in | |
8177 | [\\/*] | ?:[\\/]*) | |
8178 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8179 | ;; | |
8180 | *) | |
8181 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8182 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8183 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8184 | for ac_dir in $ac_dummy; do | |
8185 | IFS="$lt_save_ifs" | |
8186 | test -z "$ac_dir" && ac_dir=. | |
8187 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8188 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8189 | if test -n "$file_magic_test_file"; then | |
8190 | case $deplibs_check_method in | |
8191 | "file_magic "*) | |
8192 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8193 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8194 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8195 | $EGREP "$file_magic_regex" > /dev/null; then | |
8196 | : | |
8197 | else | |
8198 | cat <<_LT_EOF 1>&2 | |
8199 | ||
8200 | *** Warning: the command libtool uses to detect shared libraries, | |
8201 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8202 | *** The result is that libtool may fail to recognize shared libraries | |
8203 | *** as such. This will affect the creation of libtool libraries that | |
8204 | *** depend on shared libraries, but programs linked with such libtool | |
8205 | *** libraries will work regardless of this problem. Nevertheless, you | |
8206 | *** may want to report the problem to your system manager and/or to | |
8207 | *** bug-libtool@gnu.org | |
8208 | ||
8209 | _LT_EOF | |
8210 | fi ;; | |
8211 | esac | |
8212 | fi | |
8213 | break | |
8214 | fi | |
8215 | done | |
8216 | IFS="$lt_save_ifs" | |
8217 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8218 | ;; | |
8219 | esac | |
8220 | fi | |
8221 | ||
8222 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8223 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8225 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 8226 | else |
5213506e RW |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8228 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8229 | fi |
8230 | ||
8231 | ||
8232 | ||
8233 | ||
8234 | ||
8235 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8236 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8238 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 8239 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 8240 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8241 | else |
8242 | case $MAGIC_CMD in | |
8243 | [\\/*] | ?:[\\/]*) | |
8244 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8245 | ;; | |
8246 | *) | |
8247 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8248 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8249 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8250 | for ac_dir in $ac_dummy; do | |
8251 | IFS="$lt_save_ifs" | |
8252 | test -z "$ac_dir" && ac_dir=. | |
8253 | if test -f $ac_dir/file; then | |
8254 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8255 | if test -n "$file_magic_test_file"; then | |
8256 | case $deplibs_check_method in | |
8257 | "file_magic "*) | |
8258 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8259 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8260 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8261 | $EGREP "$file_magic_regex" > /dev/null; then | |
8262 | : | |
8263 | else | |
8264 | cat <<_LT_EOF 1>&2 | |
8265 | ||
8266 | *** Warning: the command libtool uses to detect shared libraries, | |
8267 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8268 | *** The result is that libtool may fail to recognize shared libraries | |
8269 | *** as such. This will affect the creation of libtool libraries that | |
8270 | *** depend on shared libraries, but programs linked with such libtool | |
8271 | *** libraries will work regardless of this problem. Nevertheless, you | |
8272 | *** may want to report the problem to your system manager and/or to | |
8273 | *** bug-libtool@gnu.org | |
8274 | ||
8275 | _LT_EOF | |
8276 | fi ;; | |
8277 | esac | |
8278 | fi | |
8279 | break | |
8280 | fi | |
8281 | done | |
8282 | IFS="$lt_save_ifs" | |
8283 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8284 | ;; | |
8285 | esac | |
8286 | fi | |
8287 | ||
8288 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8289 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
8290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8291 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 8292 | else |
5213506e RW |
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8294 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8295 | fi |
8296 | ||
8297 | ||
8298 | else | |
8299 | MAGIC_CMD=: | |
8300 | fi | |
8301 | fi | |
8302 | ||
8303 | fi | |
8304 | ;; | |
8305 | esac | |
8306 | ||
8307 | # Use C for the default configuration in the libtool script | |
8308 | ||
8309 | lt_save_CC="$CC" | |
8310 | ac_ext=c | |
8311 | ac_cpp='$CPP $CPPFLAGS' | |
8312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8315 | ||
8316 | ||
8317 | # Source file extension for C test sources. | |
8318 | ac_ext=c | |
8319 | ||
8320 | # Object file extension for compiled C test sources. | |
8321 | objext=o | |
8322 | objext=$objext | |
8323 | ||
8324 | # Code to be used in simple compile tests | |
8325 | lt_simple_compile_test_code="int some_variable = 0;" | |
8326 | ||
8327 | # Code to be used in simple link tests | |
8328 | lt_simple_link_test_code='int main(){return(0);}' | |
8329 | ||
8330 | ||
8331 | ||
8332 | ||
8333 | ||
8334 | ||
8335 | ||
8336 | # If no C compiler was specified, use CC. | |
8337 | LTCC=${LTCC-"$CC"} | |
8338 | ||
8339 | # If no C compiler flags were specified, use CFLAGS. | |
8340 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8341 | ||
8342 | # Allow CC to be a program name with arguments. | |
8343 | compiler=$CC | |
8344 | ||
8345 | # Save the default compiler, since it gets overwritten when the other | |
8346 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8347 | compiler_DEFAULT=$CC | |
8348 | ||
8349 | # save warnings/boilerplate of simple test code | |
8350 | ac_outfile=conftest.$ac_objext | |
8351 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8352 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8353 | _lt_compiler_boilerplate=`cat conftest.err` | |
8354 | $RM conftest* | |
8355 | ||
8356 | ac_outfile=conftest.$ac_objext | |
8357 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8358 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8359 | _lt_linker_boilerplate=`cat conftest.err` | |
6b4a97ed | 8360 | $RM -r conftest* |
1cf3d07d SE |
8361 | |
8362 | ||
8363 | ## CAVEAT EMPTOR: | |
8364 | ## There is no encapsulation within the following macros, do not change | |
8365 | ## the running order or otherwise move them around unless you know exactly | |
8366 | ## what you are doing... | |
8367 | if test -n "$compiler"; then | |
8368 | ||
8369 | lt_prog_compiler_no_builtin_flag= | |
8370 | ||
8371 | if test "$GCC" = yes; then | |
43e02a8a RW |
8372 | case $cc_basename in |
8373 | nvcc*) | |
8374 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8375 | *) | |
8376 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8377 | esac | |
1cf3d07d | 8378 | |
5213506e RW |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8380 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 8381 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 8382 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8383 | else |
8384 | lt_cv_prog_compiler_rtti_exceptions=no | |
8385 | ac_outfile=conftest.$ac_objext | |
8386 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8387 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8388 | # Insert the option either (1) after the last *FLAGS variable, or | |
8389 | # (2) before a word containing "conftest.", or (3) at the end. | |
8390 | # Note that $ac_compile itself does not contain backslashes and begins | |
8391 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8392 | # The option is referenced via a variable to avoid confusing sed. | |
8393 | lt_compile=`echo "$ac_compile" | $SED \ | |
8394 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8395 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8396 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8397 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8398 | (eval "$lt_compile" 2>conftest.err) |
8399 | ac_status=$? | |
8400 | cat conftest.err >&5 | |
43e02a8a | 8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8402 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8403 | # The compiler can only warn and ignore the option if not recognized | |
8404 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 8405 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
8406 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8407 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8408 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8409 | fi | |
8410 | fi | |
8411 | $RM conftest* | |
8412 | ||
8413 | fi | |
5213506e RW |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8415 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
8416 | |
8417 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8418 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8419 | else | |
8420 | : | |
8421 | fi | |
8422 | ||
8423 | fi | |
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | lt_prog_compiler_wl= | |
8431 | lt_prog_compiler_pic= | |
8432 | lt_prog_compiler_static= | |
8433 | ||
5213506e RW |
8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8435 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
8436 | |
8437 | if test "$GCC" = yes; then | |
8438 | lt_prog_compiler_wl='-Wl,' | |
8439 | lt_prog_compiler_static='-static' | |
8440 | ||
8441 | case $host_os in | |
8442 | aix*) | |
8443 | # All AIX code is PIC. | |
8444 | if test "$host_cpu" = ia64; then | |
8445 | # AIX 5 now supports IA64 processor | |
8446 | lt_prog_compiler_static='-Bstatic' | |
8447 | fi | |
6608378b | 8448 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
8449 | ;; |
8450 | ||
8451 | amigaos*) | |
6b4a97ed PG |
8452 | case $host_cpu in |
8453 | powerpc) | |
8454 | # see comment about AmigaOS4 .so support | |
8455 | lt_prog_compiler_pic='-fPIC' | |
8456 | ;; | |
8457 | m68k) | |
8458 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8459 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8460 | # like `-m68040'. | |
8461 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8462 | ;; | |
8463 | esac | |
1cf3d07d SE |
8464 | ;; |
8465 | ||
8466 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8467 | # PIC is the default for these OSes. | |
8468 | ;; | |
8469 | ||
6b4a97ed | 8470 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
8471 | # This hack is so that the source file can tell whether it is being |
8472 | # built for inclusion in a dll (and should export symbols for example). | |
8473 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8474 | # (--disable-auto-import) libraries | |
8475 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8476 | ;; | |
8477 | ||
8478 | darwin* | rhapsody*) | |
8479 | # PIC is the default on this platform | |
8480 | # Common symbols not allowed in MH_DYLIB files | |
8481 | lt_prog_compiler_pic='-fno-common' | |
8482 | ;; | |
8483 | ||
43e02a8a RW |
8484 | haiku*) |
8485 | # PIC is the default for Haiku. | |
8486 | # The "-static" flag exists, but is broken. | |
8487 | lt_prog_compiler_static= | |
8488 | ;; | |
8489 | ||
1cf3d07d | 8490 | hpux*) |
6b4a97ed PG |
8491 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8492 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8493 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 8494 | case $host_cpu in |
6b4a97ed | 8495 | hppa*64*) |
1cf3d07d SE |
8496 | # +Z the default |
8497 | ;; | |
8498 | *) | |
8499 | lt_prog_compiler_pic='-fPIC' | |
8500 | ;; | |
8501 | esac | |
8502 | ;; | |
8503 | ||
8504 | interix[3-9]*) | |
8505 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8506 | # Instead, we relocate shared libraries at runtime. | |
8507 | ;; | |
8508 | ||
8509 | msdosdjgpp*) | |
8510 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8511 | # on systems that don't support them. | |
8512 | lt_prog_compiler_can_build_shared=no | |
8513 | enable_shared=no | |
8514 | ;; | |
8515 | ||
8516 | *nto* | *qnx*) | |
8517 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8518 | # it will coredump. | |
8519 | lt_prog_compiler_pic='-fPIC -shared' | |
8520 | ;; | |
8521 | ||
8522 | sysv4*MP*) | |
8523 | if test -d /usr/nec; then | |
8524 | lt_prog_compiler_pic=-Kconform_pic | |
8525 | fi | |
8526 | ;; | |
8527 | ||
8528 | *) | |
8529 | lt_prog_compiler_pic='-fPIC' | |
8530 | ;; | |
8531 | esac | |
43e02a8a RW |
8532 | |
8533 | case $cc_basename in | |
8534 | nvcc*) # Cuda Compiler Driver 2.2 | |
8535 | lt_prog_compiler_wl='-Xlinker ' | |
8536 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8537 | ;; | |
8538 | esac | |
1cf3d07d SE |
8539 | else |
8540 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8541 | case $host_os in | |
8542 | aix*) | |
8543 | lt_prog_compiler_wl='-Wl,' | |
8544 | if test "$host_cpu" = ia64; then | |
8545 | # AIX 5 now supports IA64 processor | |
8546 | lt_prog_compiler_static='-Bstatic' | |
8547 | else | |
8548 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8549 | fi | |
8550 | ;; | |
1cf3d07d | 8551 | |
6b4a97ed | 8552 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
8553 | # This hack is so that the source file can tell whether it is being |
8554 | # built for inclusion in a dll (and should export symbols for example). | |
8555 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8556 | ;; | |
8557 | ||
8558 | hpux9* | hpux10* | hpux11*) | |
8559 | lt_prog_compiler_wl='-Wl,' | |
8560 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8561 | # not for PA HP-UX. | |
8562 | case $host_cpu in | |
8563 | hppa*64*|ia64*) | |
8564 | # +Z the default | |
8565 | ;; | |
8566 | *) | |
8567 | lt_prog_compiler_pic='+Z' | |
8568 | ;; | |
8569 | esac | |
8570 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8571 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8572 | ;; | |
8573 | ||
8574 | irix5* | irix6* | nonstopux*) | |
8575 | lt_prog_compiler_wl='-Wl,' | |
8576 | # PIC (with -KPIC) is the default. | |
8577 | lt_prog_compiler_static='-non_shared' | |
8578 | ;; | |
8579 | ||
7a9d3fe8 | 8580 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 8581 | case $cc_basename in |
6b4a97ed PG |
8582 | # old Intel for x86_64 which still supported -KPIC. |
8583 | ecc*) | |
1cf3d07d SE |
8584 | lt_prog_compiler_wl='-Wl,' |
8585 | lt_prog_compiler_pic='-KPIC' | |
8586 | lt_prog_compiler_static='-static' | |
8587 | ;; | |
6b4a97ed PG |
8588 | # icc used to be incompatible with GCC. |
8589 | # ICC 10 doesn't accept -KPIC any more. | |
8590 | icc* | ifort*) | |
8591 | lt_prog_compiler_wl='-Wl,' | |
8592 | lt_prog_compiler_pic='-fPIC' | |
8593 | lt_prog_compiler_static='-static' | |
8594 | ;; | |
8595 | # Lahey Fortran 8.1. | |
8596 | lf95*) | |
8597 | lt_prog_compiler_wl='-Wl,' | |
8598 | lt_prog_compiler_pic='--shared' | |
8599 | lt_prog_compiler_static='--static' | |
8600 | ;; | |
43e02a8a | 8601 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
8602 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8603 | # which looks to be a dead project) | |
8604 | lt_prog_compiler_wl='-Wl,' | |
8605 | lt_prog_compiler_pic='-fpic' | |
8606 | lt_prog_compiler_static='-Bstatic' | |
8607 | ;; | |
8608 | ccc*) | |
8609 | lt_prog_compiler_wl='-Wl,' | |
8610 | # All Alpha code is PIC. | |
8611 | lt_prog_compiler_static='-non_shared' | |
8612 | ;; | |
43e02a8a RW |
8613 | xl* | bgxl* | bgf* | mpixl*) |
8614 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
6b4a97ed PG |
8615 | lt_prog_compiler_wl='-Wl,' |
8616 | lt_prog_compiler_pic='-qpic' | |
8617 | lt_prog_compiler_static='-qstaticlink' | |
8618 | ;; | |
1cf3d07d SE |
8619 | *) |
8620 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
8621 | *Sun\ F* | *Sun*Fortran*) |
8622 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
8623 | lt_prog_compiler_pic='-KPIC' |
8624 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 8625 | lt_prog_compiler_wl='' |
1cf3d07d | 8626 | ;; |
43e02a8a RW |
8627 | *Sun\ C*) |
8628 | # Sun C 5.9 | |
1cf3d07d SE |
8629 | lt_prog_compiler_pic='-KPIC' |
8630 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 8631 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
8632 | ;; |
8633 | esac | |
8634 | ;; | |
8635 | esac | |
8636 | ;; | |
8637 | ||
8638 | newsos6) | |
8639 | lt_prog_compiler_pic='-KPIC' | |
8640 | lt_prog_compiler_static='-Bstatic' | |
8641 | ;; | |
8642 | ||
8643 | *nto* | *qnx*) | |
8644 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8645 | # it will coredump. | |
8646 | lt_prog_compiler_pic='-fPIC -shared' | |
8647 | ;; | |
8648 | ||
8649 | osf3* | osf4* | osf5*) | |
8650 | lt_prog_compiler_wl='-Wl,' | |
8651 | # All OSF/1 code is PIC. | |
8652 | lt_prog_compiler_static='-non_shared' | |
8653 | ;; | |
8654 | ||
8655 | rdos*) | |
8656 | lt_prog_compiler_static='-non_shared' | |
8657 | ;; | |
8658 | ||
8659 | solaris*) | |
8660 | lt_prog_compiler_pic='-KPIC' | |
8661 | lt_prog_compiler_static='-Bstatic' | |
8662 | case $cc_basename in | |
8663 | f77* | f90* | f95*) | |
8664 | lt_prog_compiler_wl='-Qoption ld ';; | |
8665 | *) | |
8666 | lt_prog_compiler_wl='-Wl,';; | |
8667 | esac | |
8668 | ;; | |
8669 | ||
8670 | sunos4*) | |
8671 | lt_prog_compiler_wl='-Qoption ld ' | |
8672 | lt_prog_compiler_pic='-PIC' | |
8673 | lt_prog_compiler_static='-Bstatic' | |
8674 | ;; | |
8675 | ||
8676 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8677 | lt_prog_compiler_wl='-Wl,' | |
8678 | lt_prog_compiler_pic='-KPIC' | |
8679 | lt_prog_compiler_static='-Bstatic' | |
8680 | ;; | |
8681 | ||
8682 | sysv4*MP*) | |
8683 | if test -d /usr/nec ;then | |
8684 | lt_prog_compiler_pic='-Kconform_pic' | |
8685 | lt_prog_compiler_static='-Bstatic' | |
8686 | fi | |
8687 | ;; | |
8688 | ||
8689 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8690 | lt_prog_compiler_wl='-Wl,' | |
8691 | lt_prog_compiler_pic='-KPIC' | |
8692 | lt_prog_compiler_static='-Bstatic' | |
8693 | ;; | |
8694 | ||
8695 | unicos*) | |
8696 | lt_prog_compiler_wl='-Wl,' | |
8697 | lt_prog_compiler_can_build_shared=no | |
8698 | ;; | |
8699 | ||
8700 | uts4*) | |
8701 | lt_prog_compiler_pic='-pic' | |
8702 | lt_prog_compiler_static='-Bstatic' | |
8703 | ;; | |
8704 | ||
8705 | *) | |
8706 | lt_prog_compiler_can_build_shared=no | |
8707 | ;; | |
8708 | esac | |
8709 | fi | |
8710 | ||
8711 | case $host_os in | |
8712 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8713 | *djgpp*) | |
8714 | lt_prog_compiler_pic= | |
8715 | ;; | |
8716 | *) | |
8717 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8718 | ;; | |
8719 | esac | |
5213506e RW |
8720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8721 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
8722 | |
8723 | ||
8724 | ||
8725 | ||
8726 | ||
8727 | ||
8728 | # | |
8729 | # Check to make sure the PIC flag actually works. | |
8730 | # | |
8731 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8733 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 8734 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 8735 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8736 | else |
6b4a97ed | 8737 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
8738 | ac_outfile=conftest.$ac_objext |
8739 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8740 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8741 | # Insert the option either (1) after the last *FLAGS variable, or | |
8742 | # (2) before a word containing "conftest.", or (3) at the end. | |
8743 | # Note that $ac_compile itself does not contain backslashes and begins | |
8744 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8745 | # The option is referenced via a variable to avoid confusing sed. | |
8746 | lt_compile=`echo "$ac_compile" | $SED \ | |
8747 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8748 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8749 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8750 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8751 | (eval "$lt_compile" 2>conftest.err) |
8752 | ac_status=$? | |
8753 | cat conftest.err >&5 | |
43e02a8a | 8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8755 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8756 | # The compiler can only warn and ignore the option if not recognized | |
8757 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 8758 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
8759 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8760 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 8761 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
8762 | fi |
8763 | fi | |
8764 | $RM conftest* | |
8765 | ||
8766 | fi | |
5213506e RW |
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8768 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 8769 | |
6b4a97ed | 8770 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
8771 | case $lt_prog_compiler_pic in |
8772 | "" | " "*) ;; | |
8773 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8774 | esac | |
8775 | else | |
8776 | lt_prog_compiler_pic= | |
8777 | lt_prog_compiler_can_build_shared=no | |
8778 | fi | |
8779 | ||
8780 | fi | |
8781 | ||
8782 | ||
8783 | ||
8784 | ||
8785 | ||
8786 | ||
8787 | # | |
8788 | # Check to make sure the static flag actually works. | |
8789 | # | |
8790 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8792 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 8793 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 8794 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8795 | else |
6b4a97ed | 8796 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
8797 | save_LDFLAGS="$LDFLAGS" |
8798 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8799 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8800 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8801 | # The linker can only warn and ignore the option if not recognized | |
8802 | # So say no if there are warnings | |
8803 | if test -s conftest.err; then | |
8804 | # Append any errors to the config.log. | |
8805 | cat conftest.err 1>&5 | |
43e02a8a | 8806 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
8807 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8808 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 8809 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8810 | fi |
8811 | else | |
6b4a97ed | 8812 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8813 | fi |
8814 | fi | |
6b4a97ed | 8815 | $RM -r conftest* |
1cf3d07d SE |
8816 | LDFLAGS="$save_LDFLAGS" |
8817 | ||
8818 | fi | |
5213506e RW |
8819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8820 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 8821 | |
6b4a97ed | 8822 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
8823 | : |
8824 | else | |
8825 | lt_prog_compiler_static= | |
8826 | fi | |
8827 | ||
8828 | ||
8829 | ||
8830 | ||
8831 | ||
8832 | ||
8833 | ||
5213506e RW |
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8835 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8836 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 8837 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8838 | else |
8839 | lt_cv_prog_compiler_c_o=no | |
8840 | $RM -r conftest 2>/dev/null | |
8841 | mkdir conftest | |
8842 | cd conftest | |
8843 | mkdir out | |
8844 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8845 | ||
8846 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8847 | # Insert the option either (1) after the last *FLAGS variable, or | |
8848 | # (2) before a word containing "conftest.", or (3) at the end. | |
8849 | # Note that $ac_compile itself does not contain backslashes and begins | |
8850 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8851 | lt_compile=`echo "$ac_compile" | $SED \ | |
8852 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8853 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8854 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8855 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8856 | (eval "$lt_compile" 2>out/conftest.err) |
8857 | ac_status=$? | |
8858 | cat out/conftest.err >&5 | |
43e02a8a | 8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8860 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8861 | then | |
8862 | # The compiler can only warn and ignore the option if not recognized | |
8863 | # So say no if there are warnings | |
43e02a8a | 8864 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
8865 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8866 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8867 | lt_cv_prog_compiler_c_o=yes | |
8868 | fi | |
8869 | fi | |
8870 | chmod u+w . 2>&5 | |
8871 | $RM conftest* | |
8872 | # SGI C++ compiler will create directory out/ii_files/ for | |
8873 | # template instantiation | |
8874 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8875 | $RM out/* && rmdir out | |
8876 | cd .. | |
8877 | $RM -r conftest | |
8878 | $RM conftest* | |
8879 | ||
8880 | fi | |
5213506e RW |
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8882 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8883 | |
8884 | ||
8885 | ||
8886 | ||
8887 | ||
8888 | ||
5213506e RW |
8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8890 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8891 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 8892 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8893 | else |
8894 | lt_cv_prog_compiler_c_o=no | |
8895 | $RM -r conftest 2>/dev/null | |
8896 | mkdir conftest | |
8897 | cd conftest | |
8898 | mkdir out | |
8899 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8900 | ||
8901 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8902 | # Insert the option either (1) after the last *FLAGS variable, or | |
8903 | # (2) before a word containing "conftest.", or (3) at the end. | |
8904 | # Note that $ac_compile itself does not contain backslashes and begins | |
8905 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8906 | lt_compile=`echo "$ac_compile" | $SED \ | |
8907 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8908 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8909 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 8910 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
8911 | (eval "$lt_compile" 2>out/conftest.err) |
8912 | ac_status=$? | |
8913 | cat out/conftest.err >&5 | |
43e02a8a | 8914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
8915 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8916 | then | |
8917 | # The compiler can only warn and ignore the option if not recognized | |
8918 | # So say no if there are warnings | |
43e02a8a | 8919 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
8920 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8921 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8922 | lt_cv_prog_compiler_c_o=yes | |
8923 | fi | |
8924 | fi | |
8925 | chmod u+w . 2>&5 | |
8926 | $RM conftest* | |
8927 | # SGI C++ compiler will create directory out/ii_files/ for | |
8928 | # template instantiation | |
8929 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8930 | $RM out/* && rmdir out | |
8931 | cd .. | |
8932 | $RM -r conftest | |
8933 | $RM conftest* | |
8934 | ||
8935 | fi | |
5213506e RW |
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8937 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
8938 | |
8939 | ||
8940 | ||
8941 | ||
8942 | hard_links="nottested" | |
8943 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8944 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8946 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
8947 | hard_links=yes |
8948 | $RM conftest* | |
8949 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8950 | touch conftest.a | |
8951 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8952 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
8953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8954 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 8955 | if test "$hard_links" = no; then |
5213506e RW |
8956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8957 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
8958 | need_locks=warn |
8959 | fi | |
8960 | else | |
8961 | need_locks=no | |
8962 | fi | |
8963 | ||
8964 | ||
8965 | ||
8966 | ||
8967 | ||
8968 | ||
5213506e RW |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8970 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
8971 | |
8972 | runpath_var= | |
8973 | allow_undefined_flag= | |
8974 | always_export_symbols=no | |
8975 | archive_cmds= | |
8976 | archive_expsym_cmds= | |
8977 | compiler_needs_object=no | |
8978 | enable_shared_with_static_runtimes=no | |
8979 | export_dynamic_flag_spec= | |
8980 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8981 | hardcode_automatic=no | |
8982 | hardcode_direct=no | |
8983 | hardcode_direct_absolute=no | |
8984 | hardcode_libdir_flag_spec= | |
8985 | hardcode_libdir_flag_spec_ld= | |
8986 | hardcode_libdir_separator= | |
8987 | hardcode_minus_L=no | |
8988 | hardcode_shlibpath_var=unsupported | |
8989 | inherit_rpath=no | |
8990 | link_all_deplibs=unknown | |
8991 | module_cmds= | |
8992 | module_expsym_cmds= | |
8993 | old_archive_from_new_cmds= | |
8994 | old_archive_from_expsyms_cmds= | |
8995 | thread_safe_flag_spec= | |
8996 | whole_archive_flag_spec= | |
8997 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8998 | # included in the symbol list | |
8999 | include_expsyms= | |
9000 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9001 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9002 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9003 | # as well as any symbol that contains `d'. | |
6b4a97ed | 9004 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
9005 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9006 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9007 | # the symbol is explicitly referenced. Since portable code cannot | |
9008 | # rely on this symbol name, it's probably fine to never include it in | |
9009 | # preloaded symbol tables. | |
6b4a97ed | 9010 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
9011 | extract_expsyms_cmds= |
9012 | ||
9013 | case $host_os in | |
6b4a97ed | 9014 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9015 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9016 | # When not using gcc, we currently assume that we are using | |
9017 | # Microsoft Visual C++. | |
9018 | if test "$GCC" != yes; then | |
9019 | with_gnu_ld=no | |
9020 | fi | |
9021 | ;; | |
9022 | interix*) | |
9023 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9024 | with_gnu_ld=yes | |
9025 | ;; | |
9026 | openbsd*) | |
9027 | with_gnu_ld=no | |
9028 | ;; | |
9029 | esac | |
9030 | ||
9031 | ld_shlibs=yes | |
43e02a8a RW |
9032 | |
9033 | # On some targets, GNU ld is compatible enough with the native linker | |
9034 | # that we're better off using the native interface for both. | |
9035 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 9036 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
9037 | case $host_os in |
9038 | aix*) | |
9039 | # The AIX port of GNU ld has always aspired to compatibility | |
9040 | # with the native linker. However, as the warning in the GNU ld | |
9041 | # block says, versions before 2.19.5* couldn't really create working | |
9042 | # shared libraries, regardless of the interface used. | |
9043 | case `$LD -v 2>&1` in | |
9044 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9045 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9046 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9047 | *) | |
9048 | lt_use_gnu_ld_interface=yes | |
9049 | ;; | |
9050 | esac | |
9051 | ;; | |
9052 | *) | |
9053 | lt_use_gnu_ld_interface=yes | |
9054 | ;; | |
9055 | esac | |
9056 | fi | |
9057 | ||
9058 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
9059 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9060 | wlarc='${wl}' | |
9061 | ||
9062 | # Set some defaults for GNU ld with shared library support. These | |
9063 | # are reset later if shared libraries are not supported. Putting them | |
9064 | # here allows them to be overridden if necessary. | |
9065 | runpath_var=LD_RUN_PATH | |
9066 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9067 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9068 | # ancient GNU ld didn't support --whole-archive et. al. | |
9069 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9070 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9071 | else | |
9072 | whole_archive_flag_spec= | |
9073 | fi | |
9074 | supports_anon_versioning=no | |
9075 | case `$LD -v 2>&1` in | |
43e02a8a | 9076 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
9077 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9078 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9079 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9080 | *\ 2.11.*) ;; # other 2.11 versions | |
9081 | *) supports_anon_versioning=yes ;; | |
9082 | esac | |
9083 | ||
9084 | # See if GNU ld supports shared libraries. | |
9085 | case $host_os in | |
d653fdfb | 9086 | aix[3-9]*) |
1cf3d07d SE |
9087 | # On AIX/PPC, the GNU linker is very broken |
9088 | if test "$host_cpu" != ia64; then | |
9089 | ld_shlibs=no | |
9090 | cat <<_LT_EOF 1>&2 | |
9091 | ||
43e02a8a | 9092 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
9093 | *** to be unable to reliably create shared libraries on AIX. |
9094 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
9095 | *** really care for shared libraries, you may want to install binutils |
9096 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9097 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
9098 | |
9099 | _LT_EOF | |
9100 | fi | |
9101 | ;; | |
9102 | ||
9103 | amigaos*) | |
6b4a97ed PG |
9104 | case $host_cpu in |
9105 | powerpc) | |
9106 | # see comment about AmigaOS4 .so support | |
9107 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9108 | archive_expsym_cmds='' | |
9109 | ;; | |
9110 | m68k) | |
9111 | 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)' | |
9112 | hardcode_libdir_flag_spec='-L$libdir' | |
9113 | hardcode_minus_L=yes | |
9114 | ;; | |
9115 | esac | |
1cf3d07d SE |
9116 | ;; |
9117 | ||
9118 | beos*) | |
9119 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9120 | allow_undefined_flag=unsupported | |
9121 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9122 | # support --undefined. This deserves some investigation. FIXME | |
9123 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9124 | else | |
9125 | ld_shlibs=no | |
9126 | fi | |
9127 | ;; | |
9128 | ||
6b4a97ed | 9129 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9130 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9131 | # as there is no search path for DLLs. | |
9132 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 9133 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
9134 | allow_undefined_flag=unsupported |
9135 | always_export_symbols=no | |
9136 | enable_shared_with_static_runtimes=yes | |
9137 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9138 | ||
9139 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9140 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9141 | # If the export-symbols file already is a .def file (1st line | |
9142 | # is EXPORTS), use it as is; otherwise, prepend... | |
9143 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9144 | cp $export_symbols $output_objdir/$soname.def; | |
9145 | else | |
9146 | echo EXPORTS > $output_objdir/$soname.def; | |
9147 | cat $export_symbols >> $output_objdir/$soname.def; | |
9148 | fi~ | |
9149 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9150 | else | |
9151 | ld_shlibs=no | |
9152 | fi | |
9153 | ;; | |
9154 | ||
43e02a8a RW |
9155 | haiku*) |
9156 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9157 | link_all_deplibs=yes | |
9158 | ;; | |
9159 | ||
1cf3d07d SE |
9160 | interix[3-9]*) |
9161 | hardcode_direct=no | |
9162 | hardcode_shlibpath_var=no | |
9163 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9164 | export_dynamic_flag_spec='${wl}-E' | |
9165 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9166 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9167 | # default) and relocated if they conflict, which is a slow very memory | |
9168 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9169 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9170 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9171 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9172 | 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' | |
9173 | ;; | |
9174 | ||
7a9d3fe8 | 9175 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
9176 | tmp_diet=no |
9177 | if test "$host_os" = linux-dietlibc; then | |
9178 | case $cc_basename in | |
9179 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9180 | esac | |
9181 | fi | |
9182 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9183 | && test "$tmp_diet" = no | |
9184 | then | |
a699d672 | 9185 | tmp_addflag=' $pic_flag' |
6b4a97ed | 9186 | tmp_sharedflag='-shared' |
1cf3d07d SE |
9187 | case $cc_basename,$host_cpu in |
9188 | pgcc*) # Portland Group C compiler | |
43e02a8a | 9189 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
9190 | tmp_addflag=' $pic_flag' |
9191 | ;; | |
43e02a8a RW |
9192 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9193 | # Portland Group f77 and f90 compilers | |
9194 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
1cf3d07d SE |
9195 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9196 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9197 | tmp_addflag=' -i_dynamic' ;; | |
9198 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9199 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9200 | ifc* | ifort*) # Intel Fortran compiler | |
9201 | tmp_addflag=' -nofor_main' ;; | |
6b4a97ed PG |
9202 | lf95*) # Lahey Fortran 8.1 |
9203 | whole_archive_flag_spec= | |
9204 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 9205 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
6b4a97ed PG |
9206 | tmp_sharedflag='-qmkshrobj' |
9207 | tmp_addflag= ;; | |
43e02a8a RW |
9208 | nvcc*) # Cuda Compiler Driver 2.2 |
9209 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9210 | compiler_needs_object=yes | |
9211 | ;; | |
1cf3d07d SE |
9212 | esac |
9213 | case `$CC -V 2>&1 | sed 5q` in | |
9214 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 9215 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
9216 | compiler_needs_object=yes |
9217 | tmp_sharedflag='-G' ;; | |
9218 | *Sun\ F*) # Sun Fortran 8.3 | |
9219 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
9220 | esac |
9221 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9222 | ||
9223 | if test "x$supports_anon_versioning" = xyes; then | |
9224 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9225 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9226 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9227 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9228 | fi | |
6b4a97ed PG |
9229 | |
9230 | case $cc_basename in | |
43e02a8a | 9231 | xlf* | bgf* | bgxlf* | mpixlf*) |
6b4a97ed PG |
9232 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9233 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9234 | hardcode_libdir_flag_spec= | |
9235 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9236 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9237 | if test "x$supports_anon_versioning" = xyes; then | |
9238 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9239 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9240 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9241 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9242 | fi | |
9243 | ;; | |
9244 | esac | |
1cf3d07d SE |
9245 | else |
9246 | ld_shlibs=no | |
9247 | fi | |
9248 | ;; | |
9249 | ||
9250 | netbsd*) | |
9251 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9252 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9253 | wlarc= | |
9254 | else | |
9255 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9256 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9257 | fi | |
9258 | ;; | |
9259 | ||
9260 | solaris*) | |
9261 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9262 | ld_shlibs=no | |
9263 | cat <<_LT_EOF 1>&2 | |
9264 | ||
9265 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9266 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9267 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9268 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9269 | *** your PATH or compiler configuration so that the native linker is | |
9270 | *** used, and then restart. | |
9271 | ||
9272 | _LT_EOF | |
9273 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9274 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9275 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9276 | else | |
9277 | ld_shlibs=no | |
9278 | fi | |
9279 | ;; | |
9280 | ||
9281 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9282 | case `$LD -v 2>&1` in | |
9283 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9284 | ld_shlibs=no | |
9285 | cat <<_LT_EOF 1>&2 | |
9286 | ||
9287 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9288 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9289 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9290 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9291 | *** your PATH or compiler configuration so that the native linker is | |
9292 | *** used, and then restart. | |
9293 | ||
9294 | _LT_EOF | |
9295 | ;; | |
9296 | *) | |
9297 | # For security reasons, it is highly recommended that you always | |
9298 | # use absolute paths for naming shared libraries, and exclude the | |
9299 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9300 | # requires that you compile everything twice, which is a pain. | |
9301 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9302 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9303 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9304 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9305 | else | |
9306 | ld_shlibs=no | |
9307 | fi | |
9308 | ;; | |
9309 | esac | |
9310 | ;; | |
9311 | ||
9312 | sunos4*) | |
9313 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9314 | wlarc= | |
9315 | hardcode_direct=yes | |
9316 | hardcode_shlibpath_var=no | |
9317 | ;; | |
9318 | ||
9319 | *) | |
9320 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9321 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9322 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9323 | else | |
9324 | ld_shlibs=no | |
9325 | fi | |
9326 | ;; | |
9327 | esac | |
9328 | ||
9329 | if test "$ld_shlibs" = no; then | |
9330 | runpath_var= | |
9331 | hardcode_libdir_flag_spec= | |
9332 | export_dynamic_flag_spec= | |
9333 | whole_archive_flag_spec= | |
9334 | fi | |
9335 | else | |
9336 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9337 | case $host_os in | |
9338 | aix3*) | |
9339 | allow_undefined_flag=unsupported | |
9340 | always_export_symbols=yes | |
9341 | 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' | |
9342 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9343 | # are no directories specified by -L. | |
9344 | hardcode_minus_L=yes | |
9345 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9346 | # Neither direct hardcoding nor static linking is supported with a | |
9347 | # broken collect2. | |
9348 | hardcode_direct=unsupported | |
9349 | fi | |
9350 | ;; | |
9351 | ||
d653fdfb | 9352 | aix[4-9]*) |
1cf3d07d SE |
9353 | if test "$host_cpu" = ia64; then |
9354 | # On IA64, the linker does run time linking by default, so we don't | |
9355 | # have to do anything special. | |
9356 | aix_use_runtimelinking=no | |
9357 | exp_sym_flag='-Bexport' | |
9358 | no_entry_flag="" | |
9359 | else | |
9360 | # If we're using GNU nm, then we don't want the "-C" option. | |
9361 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
9362 | # Also, AIX nm treats weak defined symbols like other global |
9363 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 9364 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 9365 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d | 9366 | else |
6cfe90e6 | 9367 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d SE |
9368 | fi |
9369 | aix_use_runtimelinking=no | |
9370 | ||
9371 | # Test if we are trying to use run time linking or normal | |
9372 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9373 | # need to do runtime linking. | |
d653fdfb | 9374 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
9375 | for ld_flag in $LDFLAGS; do |
9376 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9377 | aix_use_runtimelinking=yes | |
9378 | break | |
9379 | fi | |
9380 | done | |
9381 | ;; | |
9382 | esac | |
9383 | ||
9384 | exp_sym_flag='-bexport' | |
9385 | no_entry_flag='-bnoentry' | |
9386 | fi | |
9387 | ||
9388 | # When large executables or shared objects are built, AIX ld can | |
9389 | # have problems creating the table of contents. If linking a library | |
9390 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9391 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9392 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9393 | ||
9394 | archive_cmds='' | |
9395 | hardcode_direct=yes | |
9396 | hardcode_direct_absolute=yes | |
9397 | hardcode_libdir_separator=':' | |
9398 | link_all_deplibs=yes | |
9399 | file_list_spec='${wl}-f,' | |
9400 | ||
9401 | if test "$GCC" = yes; then | |
9402 | case $host_os in aix4.[012]|aix4.[012].*) | |
9403 | # We only want to do this on AIX 4.2 and lower, the check | |
9404 | # below for broken collect2 doesn't work under 4.3+ | |
9405 | collect2name=`${CC} -print-prog-name=collect2` | |
9406 | if test -f "$collect2name" && | |
9407 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9408 | then | |
9409 | # We have reworked collect2 | |
9410 | : | |
9411 | else | |
9412 | # We have old collect2 | |
9413 | hardcode_direct=unsupported | |
9414 | # It fails to find uninstalled libraries when the uninstalled | |
9415 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9416 | # to unsupported forces relinking | |
9417 | hardcode_minus_L=yes | |
9418 | hardcode_libdir_flag_spec='-L$libdir' | |
9419 | hardcode_libdir_separator= | |
9420 | fi | |
9421 | ;; | |
9422 | esac | |
9423 | shared_flag='-shared' | |
9424 | if test "$aix_use_runtimelinking" = yes; then | |
9425 | shared_flag="$shared_flag "'${wl}-G' | |
9426 | fi | |
9427 | else | |
9428 | # not using gcc | |
9429 | if test "$host_cpu" = ia64; then | |
9430 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9431 | # chokes on -Wl,-G. The following line is correct: | |
9432 | shared_flag='-G' | |
9433 | else | |
9434 | if test "$aix_use_runtimelinking" = yes; then | |
9435 | shared_flag='${wl}-G' | |
9436 | else | |
9437 | shared_flag='${wl}-bM:SRE' | |
9438 | fi | |
9439 | fi | |
9440 | fi | |
9441 | ||
6b4a97ed | 9442 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
9443 | # It seems that -bexpall does not export symbols beginning with |
9444 | # underscore (_), so it is better to generate a list of symbols to export. | |
9445 | always_export_symbols=yes | |
9446 | if test "$aix_use_runtimelinking" = yes; then | |
9447 | # Warning - without using the other runtime loading flags (-brtl), | |
9448 | # -berok will link without error, but may produce a broken library. | |
9449 | allow_undefined_flag='-berok' | |
9450 | # Determine the default libpath from the value encoded in an | |
9451 | # empty executable. | |
5213506e | 9452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
9453 | /* end confdefs.h. */ |
9454 | ||
9455 | int | |
9456 | main () | |
9457 | { | |
9458 | ||
9459 | ; | |
9460 | return 0; | |
9461 | } | |
9462 | _ACEOF | |
5213506e | 9463 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
9464 | |
9465 | lt_aix_libpath_sed=' | |
9466 | /Import File Strings/,/^$/ { | |
9467 | /^0/ { | |
9468 | s/^0 *\(.*\)$/\1/ | |
9469 | p | |
9470 | } | |
9471 | }' | |
9472 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9473 | # Check for a 64-bit object if we didn't find anything. | |
9474 | if test -z "$aix_libpath"; then | |
9475 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9476 | fi | |
1cf3d07d | 9477 | fi |
5213506e RW |
9478 | rm -f core conftest.err conftest.$ac_objext \ |
9479 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9480 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9481 | ||
9482 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 9483 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1cf3d07d SE |
9484 | else |
9485 | if test "$host_cpu" = ia64; then | |
9486 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9487 | allow_undefined_flag="-z nodefs" | |
9488 | 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" | |
9489 | else | |
9490 | # Determine the default libpath from the value encoded in an | |
9491 | # empty executable. | |
5213506e | 9492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
9493 | /* end confdefs.h. */ |
9494 | ||
9495 | int | |
9496 | main () | |
9497 | { | |
9498 | ||
9499 | ; | |
9500 | return 0; | |
9501 | } | |
9502 | _ACEOF | |
5213506e | 9503 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
9504 | |
9505 | lt_aix_libpath_sed=' | |
9506 | /Import File Strings/,/^$/ { | |
9507 | /^0/ { | |
9508 | s/^0 *\(.*\)$/\1/ | |
9509 | p | |
9510 | } | |
9511 | }' | |
9512 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9513 | # Check for a 64-bit object if we didn't find anything. | |
9514 | if test -z "$aix_libpath"; then | |
9515 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9516 | fi | |
1cf3d07d | 9517 | fi |
5213506e RW |
9518 | rm -f core conftest.err conftest.$ac_objext \ |
9519 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9520 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9521 | ||
9522 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9523 | # Warning - without using the other run time loading flags, | |
9524 | # -berok will link without error, but may produce a broken library. | |
9525 | no_undefined_flag=' ${wl}-bernotok' | |
9526 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
9527 | if test "$with_gnu_ld" = yes; then |
9528 | # We only use this code for GNU lds that support --whole-archive. | |
9529 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9530 | else | |
9531 | # Exported symbols can be pulled into shared objects from archives | |
9532 | whole_archive_flag_spec='$convenience' | |
9533 | fi | |
1cf3d07d SE |
9534 | archive_cmds_need_lc=yes |
9535 | # This is similar to how AIX traditionally builds its shared libraries. | |
9536 | 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' | |
9537 | fi | |
9538 | fi | |
9539 | ;; | |
9540 | ||
9541 | amigaos*) | |
6b4a97ed PG |
9542 | case $host_cpu in |
9543 | powerpc) | |
9544 | # see comment about AmigaOS4 .so support | |
9545 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9546 | archive_expsym_cmds='' | |
9547 | ;; | |
9548 | m68k) | |
9549 | 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)' | |
9550 | hardcode_libdir_flag_spec='-L$libdir' | |
9551 | hardcode_minus_L=yes | |
9552 | ;; | |
9553 | esac | |
1cf3d07d SE |
9554 | ;; |
9555 | ||
9556 | bsdi[45]*) | |
9557 | export_dynamic_flag_spec=-rdynamic | |
9558 | ;; | |
9559 | ||
6b4a97ed | 9560 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9561 | # When not using gcc, we currently assume that we are using |
9562 | # Microsoft Visual C++. | |
9563 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9564 | # no search path for DLLs. | |
9565 | hardcode_libdir_flag_spec=' ' | |
9566 | allow_undefined_flag=unsupported | |
9567 | # Tell ltmain to make .lib files, not .a files. | |
9568 | libext=lib | |
9569 | # Tell ltmain to make .dll files, not .so files. | |
9570 | shrext_cmds=".dll" | |
9571 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 9572 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
9573 | # The linker will automatically build a .lib file if we build a DLL. |
9574 | old_archive_from_new_cmds='true' | |
9575 | # FIXME: Should let the user specify the lib program. | |
9576 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9577 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9578 | enable_shared_with_static_runtimes=yes | |
9579 | ;; | |
9580 | ||
9581 | darwin* | rhapsody*) | |
1cf3d07d | 9582 | |
6b4a97ed PG |
9583 | |
9584 | archive_cmds_need_lc=no | |
9585 | hardcode_direct=no | |
9586 | hardcode_automatic=yes | |
9587 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
9588 | if test "$lt_cv_ld_force_load" = "yes"; then |
9589 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
9590 | else | |
9591 | whole_archive_flag_spec='' | |
9592 | fi | |
6b4a97ed PG |
9593 | link_all_deplibs=yes |
9594 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9595 | case $cc_basename in | |
9596 | ifort*) _lt_dar_can_shared=yes ;; | |
9597 | *) _lt_dar_can_shared=$GCC ;; | |
9598 | esac | |
9599 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 9600 | output_verbose_link_cmd=func_echo_all |
6b4a97ed PG |
9601 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9602 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9603 | 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}" | |
9604 | 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}" | |
9605 | ||
9606 | else | |
9607 | ld_shlibs=no | |
9608 | fi | |
9609 | ||
1cf3d07d SE |
9610 | ;; |
9611 | ||
9612 | dgux*) | |
9613 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9614 | hardcode_libdir_flag_spec='-L$libdir' | |
9615 | hardcode_shlibpath_var=no | |
9616 | ;; | |
9617 | ||
1cf3d07d SE |
9618 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9619 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9620 | # does not break anything, and helps significantly (at the cost of a little | |
9621 | # extra space). | |
9622 | freebsd2.2*) | |
9623 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9624 | hardcode_libdir_flag_spec='-R$libdir' | |
9625 | hardcode_direct=yes | |
9626 | hardcode_shlibpath_var=no | |
9627 | ;; | |
9628 | ||
9629 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 9630 | freebsd2.*) |
1cf3d07d SE |
9631 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9632 | hardcode_direct=yes | |
9633 | hardcode_minus_L=yes | |
9634 | hardcode_shlibpath_var=no | |
9635 | ;; | |
9636 | ||
9637 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9638 | freebsd* | dragonfly*) | |
9639 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9640 | hardcode_libdir_flag_spec='-R$libdir' | |
9641 | hardcode_direct=yes | |
9642 | hardcode_shlibpath_var=no | |
9643 | ;; | |
9644 | ||
9645 | hpux9*) | |
9646 | if test "$GCC" = yes; then | |
9647 | 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' | |
9648 | else | |
9649 | 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' | |
9650 | fi | |
9651 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9652 | hardcode_libdir_separator=: | |
9653 | hardcode_direct=yes | |
9654 | ||
9655 | # hardcode_minus_L: Not really in the search PATH, | |
9656 | # but as the default location of the library. | |
9657 | hardcode_minus_L=yes | |
9658 | export_dynamic_flag_spec='${wl}-E' | |
9659 | ;; | |
9660 | ||
9661 | hpux10*) | |
43e02a8a | 9662 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
9663 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9664 | else | |
9665 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9666 | fi | |
9667 | if test "$with_gnu_ld" = no; then | |
9668 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9669 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9670 | hardcode_libdir_separator=: | |
9671 | hardcode_direct=yes | |
9672 | hardcode_direct_absolute=yes | |
9673 | export_dynamic_flag_spec='${wl}-E' | |
9674 | # hardcode_minus_L: Not really in the search PATH, | |
9675 | # but as the default location of the library. | |
9676 | hardcode_minus_L=yes | |
9677 | fi | |
9678 | ;; | |
9679 | ||
9680 | hpux11*) | |
43e02a8a | 9681 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
9682 | case $host_cpu in |
9683 | hppa*64*) | |
9684 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9685 | ;; | |
9686 | ia64*) | |
6b4a97ed | 9687 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9688 | ;; |
9689 | *) | |
9690 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9691 | ;; | |
9692 | esac | |
9693 | else | |
9694 | case $host_cpu in | |
9695 | hppa*64*) | |
9696 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9697 | ;; | |
9698 | ia64*) | |
9699 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9700 | ;; | |
9701 | *) | |
43e02a8a RW |
9702 | |
9703 | # Older versions of the 11.00 compiler do not understand -b yet | |
9704 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9706 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 9707 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
9708 | $as_echo_n "(cached) " >&6 |
9709 | else | |
9710 | lt_cv_prog_compiler__b=no | |
9711 | save_LDFLAGS="$LDFLAGS" | |
9712 | LDFLAGS="$LDFLAGS -b" | |
9713 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9714 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9715 | # The linker can only warn and ignore the option if not recognized | |
9716 | # So say no if there are warnings | |
9717 | if test -s conftest.err; then | |
9718 | # Append any errors to the config.log. | |
9719 | cat conftest.err 1>&5 | |
9720 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9721 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9722 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9723 | lt_cv_prog_compiler__b=yes | |
9724 | fi | |
9725 | else | |
9726 | lt_cv_prog_compiler__b=yes | |
9727 | fi | |
9728 | fi | |
9729 | $RM -r conftest* | |
9730 | LDFLAGS="$save_LDFLAGS" | |
9731 | ||
9732 | fi | |
9733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9734 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9735 | ||
9736 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9737 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9738 | else | |
9739 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9740 | fi | |
9741 | ||
1cf3d07d SE |
9742 | ;; |
9743 | esac | |
9744 | fi | |
9745 | if test "$with_gnu_ld" = no; then | |
9746 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9747 | hardcode_libdir_separator=: | |
9748 | ||
9749 | case $host_cpu in | |
9750 | hppa*64*|ia64*) | |
9751 | hardcode_direct=no | |
9752 | hardcode_shlibpath_var=no | |
9753 | ;; | |
9754 | *) | |
9755 | hardcode_direct=yes | |
9756 | hardcode_direct_absolute=yes | |
9757 | export_dynamic_flag_spec='${wl}-E' | |
9758 | ||
9759 | # hardcode_minus_L: Not really in the search PATH, | |
9760 | # but as the default location of the library. | |
9761 | hardcode_minus_L=yes | |
9762 | ;; | |
9763 | esac | |
9764 | fi | |
9765 | ;; | |
9766 | ||
9767 | irix5* | irix6* | nonstopux*) | |
9768 | if test "$GCC" = yes; then | |
43e02a8a | 9769 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
9770 | # Try to use the -exported_symbol ld option, if it does not |
9771 | # work, assume that -exports_file does not work either and | |
9772 | # implicitly export all symbols. | |
9773 | save_LDFLAGS="$LDFLAGS" | |
9774 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
5213506e RW |
9775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9776 | /* end confdefs.h. */ | |
1cf3d07d SE |
9777 | int foo(void) {} |
9778 | _ACEOF | |
5213506e | 9779 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 9780 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
1cf3d07d | 9781 | |
1cf3d07d | 9782 | fi |
5213506e RW |
9783 | rm -f core conftest.err conftest.$ac_objext \ |
9784 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
9785 | LDFLAGS="$save_LDFLAGS" |
9786 | else | |
43e02a8a RW |
9787 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
9788 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
1cf3d07d SE |
9789 | fi |
9790 | archive_cmds_need_lc='no' | |
9791 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9792 | hardcode_libdir_separator=: | |
9793 | inherit_rpath=yes | |
9794 | link_all_deplibs=yes | |
9795 | ;; | |
9796 | ||
9797 | netbsd*) | |
9798 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9799 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9800 | else | |
9801 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9802 | fi | |
9803 | hardcode_libdir_flag_spec='-R$libdir' | |
9804 | hardcode_direct=yes | |
9805 | hardcode_shlibpath_var=no | |
9806 | ;; | |
9807 | ||
9808 | newsos6) | |
9809 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9810 | hardcode_direct=yes | |
9811 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9812 | hardcode_libdir_separator=: | |
9813 | hardcode_shlibpath_var=no | |
9814 | ;; | |
9815 | ||
9816 | *nto* | *qnx*) | |
9817 | ;; | |
9818 | ||
9819 | openbsd*) | |
6b4a97ed PG |
9820 | if test -f /usr/libexec/ld.so; then |
9821 | hardcode_direct=yes | |
9822 | hardcode_shlibpath_var=no | |
9823 | hardcode_direct_absolute=yes | |
9824 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 9825 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6b4a97ed | 9826 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 9827 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6b4a97ed PG |
9828 | export_dynamic_flag_spec='${wl}-E' |
9829 | else | |
9830 | case $host_os in | |
9831 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9832 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9833 | hardcode_libdir_flag_spec='-R$libdir' | |
9834 | ;; | |
9835 | *) | |
9836 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9837 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9838 | ;; | |
9839 | esac | |
9840 | fi | |
9841 | else | |
9842 | ld_shlibs=no | |
1cf3d07d SE |
9843 | fi |
9844 | ;; | |
9845 | ||
9846 | os2*) | |
9847 | hardcode_libdir_flag_spec='-L$libdir' | |
9848 | hardcode_minus_L=yes | |
9849 | allow_undefined_flag=unsupported | |
43e02a8a | 9850 | 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' |
1cf3d07d SE |
9851 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9852 | ;; | |
9853 | ||
9854 | osf3*) | |
9855 | if test "$GCC" = yes; then | |
9856 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 9857 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
9858 | else |
9859 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 9860 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
9861 | fi |
9862 | archive_cmds_need_lc='no' | |
9863 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9864 | hardcode_libdir_separator=: | |
9865 | ;; | |
9866 | ||
9867 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9868 | if test "$GCC" = yes; then | |
9869 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 9870 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
9871 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9872 | else | |
9873 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 9874 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d | 9875 | 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~ |
43e02a8a | 9876 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
1cf3d07d SE |
9877 | |
9878 | # Both c and cxx compiler support -rpath directly | |
9879 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9880 | fi | |
9881 | archive_cmds_need_lc='no' | |
9882 | hardcode_libdir_separator=: | |
9883 | ;; | |
9884 | ||
9885 | solaris*) | |
9886 | no_undefined_flag=' -z defs' | |
9887 | if test "$GCC" = yes; then | |
9888 | wlarc='${wl}' | |
9889 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9890 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9891 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9892 | else | |
9893 | case `$CC -V 2>&1` in | |
9894 | *"Compilers 5.0"*) | |
9895 | wlarc='' | |
9896 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9897 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9898 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9899 | ;; | |
9900 | *) | |
9901 | wlarc='${wl}' | |
9902 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9903 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9904 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9905 | ;; | |
9906 | esac | |
9907 | fi | |
9908 | hardcode_libdir_flag_spec='-R$libdir' | |
9909 | hardcode_shlibpath_var=no | |
9910 | case $host_os in | |
9911 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9912 | *) | |
9913 | # The compiler driver will combine and reorder linker options, | |
9914 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9915 | # but is careful enough not to reorder. | |
9916 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9917 | if test "$GCC" = yes; then | |
9918 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9919 | else | |
9920 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9921 | fi | |
9922 | ;; | |
9923 | esac | |
9924 | link_all_deplibs=yes | |
9925 | ;; | |
9926 | ||
9927 | sunos4*) | |
9928 | if test "x$host_vendor" = xsequent; then | |
9929 | # Use $CC to link under sequent, because it throws in some extra .o | |
9930 | # files that make .init and .fini sections work. | |
9931 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9932 | else | |
9933 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9934 | fi | |
9935 | hardcode_libdir_flag_spec='-L$libdir' | |
9936 | hardcode_direct=yes | |
9937 | hardcode_minus_L=yes | |
9938 | hardcode_shlibpath_var=no | |
9939 | ;; | |
9940 | ||
9941 | sysv4) | |
9942 | case $host_vendor in | |
9943 | sni) | |
9944 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9945 | hardcode_direct=yes # is this really true??? | |
9946 | ;; | |
9947 | siemens) | |
9948 | ## LD is ld it makes a PLAMLIB | |
9949 | ## CC just makes a GrossModule. | |
9950 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9951 | reload_cmds='$CC -r -o $output$reload_objs' | |
9952 | hardcode_direct=no | |
9953 | ;; | |
9954 | motorola) | |
9955 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9956 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9957 | ;; | |
9958 | esac | |
9959 | runpath_var='LD_RUN_PATH' | |
9960 | hardcode_shlibpath_var=no | |
9961 | ;; | |
9962 | ||
9963 | sysv4.3*) | |
9964 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9965 | hardcode_shlibpath_var=no | |
9966 | export_dynamic_flag_spec='-Bexport' | |
9967 | ;; | |
9968 | ||
9969 | sysv4*MP*) | |
9970 | if test -d /usr/nec; then | |
9971 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9972 | hardcode_shlibpath_var=no | |
9973 | runpath_var=LD_RUN_PATH | |
9974 | hardcode_runpath_var=yes | |
9975 | ld_shlibs=yes | |
9976 | fi | |
9977 | ;; | |
9978 | ||
9979 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9980 | no_undefined_flag='${wl}-z,text' | |
9981 | archive_cmds_need_lc=no | |
9982 | hardcode_shlibpath_var=no | |
9983 | runpath_var='LD_RUN_PATH' | |
9984 | ||
9985 | if test "$GCC" = yes; then | |
9986 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9987 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9988 | else | |
9989 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9990 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9991 | fi | |
9992 | ;; | |
9993 | ||
9994 | sysv5* | sco3.2v5* | sco5v6*) | |
9995 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9996 | # link with -lc, and that would cause any symbols used from libc to | |
9997 | # always be unresolved, which means just about no library would | |
9998 | # ever link correctly. If we're not using GNU ld we use -z text | |
9999 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10000 | # as -z defs. | |
10001 | no_undefined_flag='${wl}-z,text' | |
10002 | allow_undefined_flag='${wl}-z,nodefs' | |
10003 | archive_cmds_need_lc=no | |
10004 | hardcode_shlibpath_var=no | |
10005 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10006 | hardcode_libdir_separator=':' | |
10007 | link_all_deplibs=yes | |
10008 | export_dynamic_flag_spec='${wl}-Bexport' | |
10009 | runpath_var='LD_RUN_PATH' | |
10010 | ||
10011 | if test "$GCC" = yes; then | |
10012 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10013 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10014 | else | |
10015 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10016 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10017 | fi | |
10018 | ;; | |
10019 | ||
10020 | uts4*) | |
10021 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10022 | hardcode_libdir_flag_spec='-L$libdir' | |
10023 | hardcode_shlibpath_var=no | |
10024 | ;; | |
10025 | ||
10026 | *) | |
10027 | ld_shlibs=no | |
10028 | ;; | |
10029 | esac | |
10030 | ||
10031 | if test x$host_vendor = xsni; then | |
10032 | case $host in | |
10033 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10034 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10035 | ;; | |
10036 | esac | |
10037 | fi | |
10038 | fi | |
10039 | ||
5213506e RW |
10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10041 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
10042 | test "$ld_shlibs" = no && can_build_shared=no |
10043 | ||
10044 | with_gnu_ld=$with_gnu_ld | |
10045 | ||
10046 | ||
10047 | ||
10048 | ||
10049 | ||
10050 | ||
10051 | ||
10052 | ||
10053 | ||
10054 | ||
10055 | ||
10056 | ||
10057 | ||
10058 | ||
10059 | ||
10060 | # | |
10061 | # Do we need to explicitly link libc? | |
10062 | # | |
10063 | case "x$archive_cmds_need_lc" in | |
10064 | x|xyes) | |
10065 | # Assume -lc should be added | |
10066 | archive_cmds_need_lc=yes | |
10067 | ||
10068 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10069 | case $archive_cmds in | |
10070 | *'~'*) | |
10071 | # FIXME: we may have to deal with multi-command sequences. | |
10072 | ;; | |
10073 | '$CC '*) | |
10074 | # Test whether the compiler implicitly links with -lc since on some | |
10075 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10076 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10078 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 10079 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 10080 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
10081 | else |
10082 | $RM conftest* | |
10083 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 10084 | |
5213506e | 10085 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
10086 | (eval $ac_compile) 2>&5 |
10087 | ac_status=$? | |
5213506e RW |
10088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10089 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
10090 | soname=conftest |
10091 | lib=conftest | |
10092 | libobjs=conftest.$ac_objext | |
10093 | deplibs= | |
10094 | wl=$lt_prog_compiler_wl | |
10095 | pic_flag=$lt_prog_compiler_pic | |
10096 | compiler_flags=-v | |
10097 | linker_flags=-v | |
10098 | verstring= | |
10099 | output_objdir=. | |
10100 | libname=conftest | |
10101 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10102 | allow_undefined_flag= | |
5213506e | 10103 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
10104 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10105 | ac_status=$? | |
5213506e RW |
10106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10107 | test $ac_status = 0; } | |
baafc534 RW |
10108 | then |
10109 | lt_cv_archive_cmds_need_lc=no | |
10110 | else | |
10111 | lt_cv_archive_cmds_need_lc=yes | |
10112 | fi | |
10113 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10114 | else | |
10115 | cat conftest.err 1>&5 | |
10116 | fi | |
10117 | $RM conftest* | |
10118 | ||
10119 | fi | |
5213506e RW |
10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10121 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 10122 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
10123 | ;; |
10124 | esac | |
10125 | fi | |
10126 | ;; | |
10127 | esac | |
10128 | ||
10129 | ||
10130 | ||
10131 | ||
10132 | ||
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | ||
10167 | ||
10168 | ||
10169 | ||
10170 | ||
10171 | ||
10172 | ||
10173 | ||
10174 | ||
10175 | ||
10176 | ||
10177 | ||
10178 | ||
10179 | ||
10180 | ||
10181 | ||
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | ||
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
10222 | ||
10223 | ||
10224 | ||
10225 | ||
10226 | ||
10227 | ||
10228 | ||
10229 | ||
10230 | ||
10231 | ||
10232 | ||
10233 | ||
10234 | ||
10235 | ||
10236 | ||
10237 | ||
10238 | ||
10239 | ||
10240 | ||
10241 | ||
10242 | ||
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
10248 | ||
10249 | ||
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | ||
10259 | ||
10260 | ||
10261 | ||
10262 | ||
10263 | ||
10264 | ||
10265 | ||
10266 | ||
10267 | ||
10268 | ||
10269 | ||
10270 | ||
10271 | ||
10272 | ||
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
5213506e RW |
10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10286 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
6b4a97ed PG |
10287 | |
10288 | if test "$GCC" = yes; then | |
1cf3d07d SE |
10289 | case $host_os in |
10290 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10291 | *) lt_awk_arg="/^libraries:/" ;; | |
10292 | esac | |
43e02a8a RW |
10293 | case $host_os in |
10294 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10295 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10296 | esac | |
10297 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10298 | case $lt_search_path_spec in | |
10299 | *\;*) | |
1cf3d07d SE |
10300 | # if the path contains ";" then we assume it to be the separator |
10301 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10302 | # assumed that no part of a normal pathname contains ";" but that should | |
10303 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
10304 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10305 | ;; | |
10306 | *) | |
10307 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10308 | ;; | |
10309 | esac | |
1cf3d07d SE |
10310 | # Ok, now we have the path, separated by spaces, we can step through it |
10311 | # and add multilib dir if necessary. | |
10312 | lt_tmp_lt_search_path_spec= | |
10313 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10314 | for lt_sys_path in $lt_search_path_spec; do | |
10315 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10316 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10317 | else | |
10318 | test -d "$lt_sys_path" && \ | |
10319 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10320 | fi | |
10321 | done | |
43e02a8a | 10322 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
10323 | BEGIN {RS=" "; FS="/|\n";} { |
10324 | lt_foo=""; | |
10325 | lt_count=0; | |
10326 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10327 | if ($lt_i != "" && $lt_i != ".") { | |
10328 | if ($lt_i == "..") { | |
10329 | lt_count++; | |
10330 | } else { | |
10331 | if (lt_count == 0) { | |
10332 | lt_foo="/" $lt_i lt_foo; | |
10333 | } else { | |
10334 | lt_count--; | |
10335 | } | |
10336 | } | |
10337 | } | |
10338 | } | |
10339 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10340 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10341 | }'` | |
43e02a8a RW |
10342 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10343 | # for these hosts. | |
10344 | case $host_os in | |
10345 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10346 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10347 | esac | |
10348 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
10349 | else |
10350 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10351 | fi | |
10352 | library_names_spec= | |
10353 | libname_spec='lib$name' | |
10354 | soname_spec= | |
10355 | shrext_cmds=".so" | |
10356 | postinstall_cmds= | |
10357 | postuninstall_cmds= | |
10358 | finish_cmds= | |
10359 | finish_eval= | |
10360 | shlibpath_var= | |
10361 | shlibpath_overrides_runpath=unknown | |
10362 | version_type=none | |
10363 | dynamic_linker="$host_os ld.so" | |
10364 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10365 | need_lib_prefix=unknown | |
10366 | hardcode_into_libs=no | |
10367 | ||
10368 | # when you set need_version to no, make sure it does not cause -set_version | |
10369 | # flags to be left without arguments | |
10370 | need_version=unknown | |
10371 | ||
10372 | case $host_os in | |
10373 | aix3*) | |
10374 | version_type=linux | |
10375 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10376 | shlibpath_var=LIBPATH | |
10377 | ||
10378 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10379 | soname_spec='${libname}${release}${shared_ext}$major' | |
10380 | ;; | |
10381 | ||
d653fdfb | 10382 | aix[4-9]*) |
1cf3d07d SE |
10383 | version_type=linux |
10384 | need_lib_prefix=no | |
10385 | need_version=no | |
10386 | hardcode_into_libs=yes | |
10387 | if test "$host_cpu" = ia64; then | |
10388 | # AIX 5 supports IA64 | |
10389 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10390 | shlibpath_var=LD_LIBRARY_PATH | |
10391 | else | |
10392 | # With GCC up to 2.95.x, collect2 would create an import file | |
10393 | # for dependence libraries. The import file would start with | |
10394 | # the line `#! .'. This would cause the generated library to | |
10395 | # depend on `.', always an invalid library. This was fixed in | |
10396 | # development snapshots of GCC prior to 3.0. | |
10397 | case $host_os in | |
10398 | aix4 | aix4.[01] | aix4.[01].*) | |
10399 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10400 | echo ' yes ' | |
10401 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10402 | : | |
10403 | else | |
10404 | can_build_shared=no | |
10405 | fi | |
10406 | ;; | |
10407 | esac | |
10408 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10409 | # soname into executable. Probably we can add versioning support to | |
10410 | # collect2, so additional links can be useful in future. | |
10411 | if test "$aix_use_runtimelinking" = yes; then | |
10412 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10413 | # instead of lib<name>.a to let people know that these are not | |
10414 | # typical AIX shared libraries. | |
10415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10416 | else | |
10417 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10418 | # and later when we are not doing run time linking. | |
10419 | library_names_spec='${libname}${release}.a $libname.a' | |
10420 | soname_spec='${libname}${release}${shared_ext}$major' | |
10421 | fi | |
10422 | shlibpath_var=LIBPATH | |
10423 | fi | |
10424 | ;; | |
10425 | ||
10426 | amigaos*) | |
6b4a97ed PG |
10427 | case $host_cpu in |
10428 | powerpc) | |
10429 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10430 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10432 | ;; | |
10433 | m68k) | |
1cf3d07d SE |
10434 | library_names_spec='$libname.ixlibrary $libname.a' |
10435 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 10436 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
6b4a97ed PG |
10437 | ;; |
10438 | esac | |
1cf3d07d SE |
10439 | ;; |
10440 | ||
10441 | beos*) | |
10442 | library_names_spec='${libname}${shared_ext}' | |
10443 | dynamic_linker="$host_os ld.so" | |
10444 | shlibpath_var=LIBRARY_PATH | |
10445 | ;; | |
10446 | ||
10447 | bsdi[45]*) | |
10448 | version_type=linux | |
10449 | need_version=no | |
10450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10451 | soname_spec='${libname}${release}${shared_ext}$major' | |
10452 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10453 | shlibpath_var=LD_LIBRARY_PATH | |
10454 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10455 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10456 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10457 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10458 | # libtool to hard-code these into programs | |
10459 | ;; | |
10460 | ||
6b4a97ed | 10461 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10462 | version_type=windows |
10463 | shrext_cmds=".dll" | |
10464 | need_version=no | |
10465 | need_lib_prefix=no | |
10466 | ||
6b4a97ed PG |
10467 | case $GCC,$host_os in |
10468 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
10469 | library_names_spec='$libname.dll.a' |
10470 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10471 | postinstall_cmds='base_file=`basename \${file}`~ | |
10472 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10473 | dldir=$destdir/`dirname \$dlpath`~ | |
10474 | test -d \$dldir || mkdir -p \$dldir~ | |
10475 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10476 | chmod a+x \$dldir/$dlname~ | |
10477 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10478 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10479 | fi' | |
10480 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10481 | dlpath=$dir/\$dldll~ | |
10482 | $RM \$dlpath' | |
10483 | shlibpath_overrides_runpath=yes | |
10484 | ||
10485 | case $host_os in | |
10486 | cygwin*) | |
10487 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10488 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
10489 | |
10490 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 10491 | ;; |
6b4a97ed | 10492 | mingw* | cegcc*) |
1cf3d07d SE |
10493 | # MinGW DLLs use traditional 'lib' prefix |
10494 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
10495 | ;; |
10496 | pw32*) | |
10497 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10498 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10499 | ;; | |
10500 | esac | |
10501 | ;; | |
10502 | ||
10503 | *) | |
10504 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10505 | ;; | |
10506 | esac | |
10507 | dynamic_linker='Win32 ld.exe' | |
10508 | # FIXME: first we should search . and the directory the executable is in | |
10509 | shlibpath_var=PATH | |
10510 | ;; | |
10511 | ||
10512 | darwin* | rhapsody*) | |
10513 | dynamic_linker="$host_os dyld" | |
10514 | version_type=darwin | |
10515 | need_lib_prefix=no | |
10516 | need_version=no | |
10517 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10518 | soname_spec='${libname}${release}${major}$shared_ext' | |
10519 | shlibpath_overrides_runpath=yes | |
10520 | shlibpath_var=DYLD_LIBRARY_PATH | |
10521 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10522 | ||
10523 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10524 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10525 | ;; | |
10526 | ||
10527 | dgux*) | |
10528 | version_type=linux | |
10529 | need_lib_prefix=no | |
10530 | need_version=no | |
10531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10532 | soname_spec='${libname}${release}${shared_ext}$major' | |
10533 | shlibpath_var=LD_LIBRARY_PATH | |
10534 | ;; | |
10535 | ||
1cf3d07d SE |
10536 | freebsd* | dragonfly*) |
10537 | # DragonFly does not have aout. When/if they implement a new | |
10538 | # versioning mechanism, adjust this. | |
10539 | if test -x /usr/bin/objformat; then | |
10540 | objformat=`/usr/bin/objformat` | |
10541 | else | |
10542 | case $host_os in | |
c6084f68 | 10543 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
10544 | *) objformat=elf ;; |
10545 | esac | |
10546 | fi | |
10547 | version_type=freebsd-$objformat | |
10548 | case $version_type in | |
10549 | freebsd-elf*) | |
10550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10551 | need_version=no | |
10552 | need_lib_prefix=no | |
10553 | ;; | |
10554 | freebsd-*) | |
10555 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10556 | need_version=yes | |
10557 | ;; | |
10558 | esac | |
10559 | shlibpath_var=LD_LIBRARY_PATH | |
10560 | case $host_os in | |
c6084f68 | 10561 | freebsd2.*) |
1cf3d07d SE |
10562 | shlibpath_overrides_runpath=yes |
10563 | ;; | |
10564 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10565 | shlibpath_overrides_runpath=yes | |
10566 | hardcode_into_libs=yes | |
10567 | ;; | |
10568 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10569 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10570 | shlibpath_overrides_runpath=no | |
10571 | hardcode_into_libs=yes | |
10572 | ;; | |
10573 | *) # from 4.6 on, and DragonFly | |
10574 | shlibpath_overrides_runpath=yes | |
10575 | hardcode_into_libs=yes | |
10576 | ;; | |
10577 | esac | |
10578 | ;; | |
10579 | ||
10580 | gnu*) | |
10581 | version_type=linux | |
10582 | need_lib_prefix=no | |
10583 | need_version=no | |
10584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10585 | soname_spec='${libname}${release}${shared_ext}$major' | |
10586 | shlibpath_var=LD_LIBRARY_PATH | |
10587 | hardcode_into_libs=yes | |
10588 | ;; | |
10589 | ||
43e02a8a RW |
10590 | haiku*) |
10591 | version_type=linux | |
10592 | need_lib_prefix=no | |
10593 | need_version=no | |
10594 | dynamic_linker="$host_os runtime_loader" | |
10595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10596 | soname_spec='${libname}${release}${shared_ext}$major' | |
10597 | shlibpath_var=LIBRARY_PATH | |
10598 | shlibpath_overrides_runpath=yes | |
10599 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10600 | hardcode_into_libs=yes | |
10601 | ;; | |
10602 | ||
1cf3d07d SE |
10603 | hpux9* | hpux10* | hpux11*) |
10604 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10605 | # link against other versions. | |
10606 | version_type=sunos | |
10607 | need_lib_prefix=no | |
10608 | need_version=no | |
10609 | case $host_cpu in | |
10610 | ia64*) | |
10611 | shrext_cmds='.so' | |
10612 | hardcode_into_libs=yes | |
10613 | dynamic_linker="$host_os dld.so" | |
10614 | shlibpath_var=LD_LIBRARY_PATH | |
10615 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10617 | soname_spec='${libname}${release}${shared_ext}$major' | |
10618 | if test "X$HPUX_IA64_MODE" = X32; then | |
10619 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10620 | else | |
10621 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10622 | fi | |
10623 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10624 | ;; | |
10625 | hppa*64*) | |
10626 | shrext_cmds='.sl' | |
10627 | hardcode_into_libs=yes | |
10628 | dynamic_linker="$host_os dld.sl" | |
10629 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10630 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10632 | soname_spec='${libname}${release}${shared_ext}$major' | |
10633 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10634 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10635 | ;; | |
10636 | *) | |
10637 | shrext_cmds='.sl' | |
10638 | dynamic_linker="$host_os dld.sl" | |
10639 | shlibpath_var=SHLIB_PATH | |
10640 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10642 | soname_spec='${libname}${release}${shared_ext}$major' | |
10643 | ;; | |
10644 | esac | |
43e02a8a | 10645 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 10646 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
10647 | # or fails outright, so override atomically: |
10648 | install_override_mode=555 | |
1cf3d07d SE |
10649 | ;; |
10650 | ||
10651 | interix[3-9]*) | |
10652 | version_type=linux | |
10653 | need_lib_prefix=no | |
10654 | need_version=no | |
10655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10656 | soname_spec='${libname}${release}${shared_ext}$major' | |
10657 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10658 | shlibpath_var=LD_LIBRARY_PATH | |
10659 | shlibpath_overrides_runpath=no | |
10660 | hardcode_into_libs=yes | |
10661 | ;; | |
10662 | ||
10663 | irix5* | irix6* | nonstopux*) | |
10664 | case $host_os in | |
10665 | nonstopux*) version_type=nonstopux ;; | |
10666 | *) | |
10667 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10668 | version_type=linux | |
10669 | else | |
10670 | version_type=irix | |
10671 | fi ;; | |
10672 | esac | |
10673 | need_lib_prefix=no | |
10674 | need_version=no | |
10675 | soname_spec='${libname}${release}${shared_ext}$major' | |
10676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10677 | case $host_os in | |
10678 | irix5* | nonstopux*) | |
10679 | libsuff= shlibsuff= | |
10680 | ;; | |
10681 | *) | |
10682 | case $LD in # libtool.m4 will add one of these switches to LD | |
10683 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10684 | libsuff= shlibsuff= libmagic=32-bit;; | |
10685 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10686 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10687 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10688 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10689 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10690 | esac | |
10691 | ;; | |
10692 | esac | |
10693 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10694 | shlibpath_overrides_runpath=no | |
10695 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10696 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10697 | hardcode_into_libs=yes | |
10698 | ;; | |
10699 | ||
10700 | # No shared lib support for Linux oldld, aout, or coff. | |
10701 | linux*oldld* | linux*aout* | linux*coff*) | |
10702 | dynamic_linker=no | |
10703 | ;; | |
10704 | ||
10705 | # This must be Linux ELF. | |
7a9d3fe8 | 10706 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
10707 | version_type=linux |
10708 | need_lib_prefix=no | |
10709 | need_version=no | |
10710 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10711 | soname_spec='${libname}${release}${shared_ext}$major' | |
10712 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10713 | shlibpath_var=LD_LIBRARY_PATH | |
10714 | shlibpath_overrides_runpath=no | |
baafc534 | 10715 | |
1cf3d07d | 10716 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 10717 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 10718 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
10719 | else |
10720 | lt_cv_shlibpath_overrides_runpath=no | |
10721 | save_LDFLAGS=$LDFLAGS | |
10722 | save_libdir=$libdir | |
10723 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10724 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
5213506e | 10725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10726 | /* end confdefs.h. */ |
10727 | ||
10728 | int | |
10729 | main () | |
10730 | { | |
10731 | ||
10732 | ; | |
10733 | return 0; | |
10734 | } | |
10735 | _ACEOF | |
5213506e RW |
10736 | if ac_fn_c_try_link "$LINENO"; then : |
10737 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 10738 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 10739 | fi |
1cf3d07d | 10740 | fi |
5213506e RW |
10741 | rm -f core conftest.err conftest.$ac_objext \ |
10742 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
10743 | LDFLAGS=$save_LDFLAGS |
10744 | libdir=$save_libdir | |
10745 | ||
10746 | fi | |
10747 | ||
10748 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
10749 | |
10750 | # This implies no fast_install, which is unacceptable. | |
10751 | # Some rework will be needed to allow for fast_install | |
10752 | # before this can be enabled. | |
10753 | hardcode_into_libs=yes | |
10754 | ||
10755 | # Append ld.so.conf contents to the search path | |
10756 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 10757 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
10758 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10759 | fi | |
10760 | ||
10761 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10762 | # powerpc, because MkLinux only supported shared libraries with the | |
10763 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10764 | # most powerpc-linux boxes support dynamic linking these days and | |
10765 | # people can always --disable-shared, the test was removed, and we | |
10766 | # assume the GNU/Linux dynamic linker is in use. | |
10767 | dynamic_linker='GNU/Linux ld.so' | |
10768 | ;; | |
10769 | ||
10770 | netbsd*) | |
10771 | version_type=sunos | |
10772 | need_lib_prefix=no | |
10773 | need_version=no | |
10774 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10776 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10777 | dynamic_linker='NetBSD (a.out) ld.so' | |
10778 | else | |
10779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10780 | soname_spec='${libname}${release}${shared_ext}$major' | |
10781 | dynamic_linker='NetBSD ld.elf_so' | |
10782 | fi | |
10783 | shlibpath_var=LD_LIBRARY_PATH | |
10784 | shlibpath_overrides_runpath=yes | |
10785 | hardcode_into_libs=yes | |
10786 | ;; | |
10787 | ||
10788 | newsos6) | |
10789 | version_type=linux | |
10790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10791 | shlibpath_var=LD_LIBRARY_PATH | |
10792 | shlibpath_overrides_runpath=yes | |
10793 | ;; | |
10794 | ||
10795 | *nto* | *qnx*) | |
10796 | version_type=qnx | |
10797 | need_lib_prefix=no | |
10798 | need_version=no | |
10799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10800 | soname_spec='${libname}${release}${shared_ext}$major' | |
10801 | shlibpath_var=LD_LIBRARY_PATH | |
10802 | shlibpath_overrides_runpath=no | |
10803 | hardcode_into_libs=yes | |
10804 | dynamic_linker='ldqnx.so' | |
10805 | ;; | |
10806 | ||
10807 | openbsd*) | |
10808 | version_type=sunos | |
10809 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10810 | need_lib_prefix=no | |
10811 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10812 | case $host_os in | |
10813 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10814 | *) need_version=no ;; | |
10815 | esac | |
10816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10817 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10818 | shlibpath_var=LD_LIBRARY_PATH | |
10819 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10820 | case $host_os in | |
10821 | openbsd2.[89] | openbsd2.[89].*) | |
10822 | shlibpath_overrides_runpath=no | |
10823 | ;; | |
10824 | *) | |
10825 | shlibpath_overrides_runpath=yes | |
10826 | ;; | |
10827 | esac | |
10828 | else | |
10829 | shlibpath_overrides_runpath=yes | |
10830 | fi | |
10831 | ;; | |
10832 | ||
10833 | os2*) | |
10834 | libname_spec='$name' | |
10835 | shrext_cmds=".dll" | |
10836 | need_lib_prefix=no | |
10837 | library_names_spec='$libname${shared_ext} $libname.a' | |
10838 | dynamic_linker='OS/2 ld.exe' | |
10839 | shlibpath_var=LIBPATH | |
10840 | ;; | |
10841 | ||
10842 | osf3* | osf4* | osf5*) | |
10843 | version_type=osf | |
10844 | need_lib_prefix=no | |
10845 | need_version=no | |
10846 | soname_spec='${libname}${release}${shared_ext}$major' | |
10847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10848 | shlibpath_var=LD_LIBRARY_PATH | |
10849 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10850 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10851 | ;; | |
10852 | ||
10853 | rdos*) | |
10854 | dynamic_linker=no | |
10855 | ;; | |
10856 | ||
10857 | solaris*) | |
10858 | version_type=linux | |
10859 | need_lib_prefix=no | |
10860 | need_version=no | |
10861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10862 | soname_spec='${libname}${release}${shared_ext}$major' | |
10863 | shlibpath_var=LD_LIBRARY_PATH | |
10864 | shlibpath_overrides_runpath=yes | |
10865 | hardcode_into_libs=yes | |
10866 | # ldd complains unless libraries are executable | |
10867 | postinstall_cmds='chmod +x $lib' | |
10868 | ;; | |
10869 | ||
10870 | sunos4*) | |
10871 | version_type=sunos | |
10872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10873 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10874 | shlibpath_var=LD_LIBRARY_PATH | |
10875 | shlibpath_overrides_runpath=yes | |
10876 | if test "$with_gnu_ld" = yes; then | |
10877 | need_lib_prefix=no | |
10878 | fi | |
10879 | need_version=yes | |
10880 | ;; | |
10881 | ||
10882 | sysv4 | sysv4.3*) | |
10883 | version_type=linux | |
10884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10885 | soname_spec='${libname}${release}${shared_ext}$major' | |
10886 | shlibpath_var=LD_LIBRARY_PATH | |
10887 | case $host_vendor in | |
10888 | sni) | |
10889 | shlibpath_overrides_runpath=no | |
10890 | need_lib_prefix=no | |
10891 | runpath_var=LD_RUN_PATH | |
10892 | ;; | |
10893 | siemens) | |
10894 | need_lib_prefix=no | |
10895 | ;; | |
10896 | motorola) | |
10897 | need_lib_prefix=no | |
10898 | need_version=no | |
10899 | shlibpath_overrides_runpath=no | |
10900 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10901 | ;; | |
10902 | esac | |
10903 | ;; | |
10904 | ||
10905 | sysv4*MP*) | |
10906 | if test -d /usr/nec ;then | |
10907 | version_type=linux | |
10908 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10909 | soname_spec='$libname${shared_ext}.$major' | |
10910 | shlibpath_var=LD_LIBRARY_PATH | |
10911 | fi | |
10912 | ;; | |
10913 | ||
10914 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10915 | version_type=freebsd-elf | |
10916 | need_lib_prefix=no | |
10917 | need_version=no | |
10918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10919 | soname_spec='${libname}${release}${shared_ext}$major' | |
10920 | shlibpath_var=LD_LIBRARY_PATH | |
10921 | shlibpath_overrides_runpath=yes | |
10922 | hardcode_into_libs=yes | |
10923 | if test "$with_gnu_ld" = yes; then | |
10924 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10925 | else | |
10926 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10927 | case $host_os in | |
10928 | sco3.2v5*) | |
10929 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10930 | ;; | |
10931 | esac | |
10932 | fi | |
10933 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10934 | ;; | |
10935 | ||
10936 | tpf*) | |
10937 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10938 | version_type=linux | |
10939 | need_lib_prefix=no | |
10940 | need_version=no | |
6b4a97ed | 10941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
10942 | shlibpath_var=LD_LIBRARY_PATH |
10943 | shlibpath_overrides_runpath=no | |
10944 | hardcode_into_libs=yes | |
10945 | ;; | |
10946 | ||
10947 | uts4*) | |
10948 | version_type=linux | |
10949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10950 | soname_spec='${libname}${release}${shared_ext}$major' | |
10951 | shlibpath_var=LD_LIBRARY_PATH | |
10952 | ;; | |
10953 | ||
10954 | *) | |
10955 | dynamic_linker=no | |
10956 | ;; | |
10957 | esac | |
5213506e RW |
10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10959 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
10960 | test "$dynamic_linker" = no && can_build_shared=no |
10961 | ||
10962 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10963 | if test "$GCC" = yes; then | |
10964 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10965 | fi | |
10966 | ||
6b4a97ed PG |
10967 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10968 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10969 | fi | |
10970 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10971 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10972 | fi | |
10973 | ||
1cf3d07d SE |
10974 | |
10975 | ||
10976 | ||
10977 | ||
10978 | ||
10979 | ||
10980 | ||
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
10991 | ||
10992 | ||
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | ||
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
43e02a8a RW |
11054 | |
11055 | ||
11056 | ||
11057 | ||
11058 | ||
1cf3d07d SE |
11059 | |
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
5213506e RW |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11066 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
11067 | hardcode_action= |
11068 | if test -n "$hardcode_libdir_flag_spec" || | |
11069 | test -n "$runpath_var" || | |
11070 | test "X$hardcode_automatic" = "Xyes" ; then | |
11071 | ||
11072 | # We can hardcode non-existent directories. | |
11073 | if test "$hardcode_direct" != no && | |
11074 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11075 | # have to relink, otherwise we might link with an installed library | |
11076 | # when we should be linking with a yet-to-be-installed one | |
11077 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11078 | test "$hardcode_minus_L" != no; then | |
11079 | # Linking always hardcodes the temporary library directory. | |
11080 | hardcode_action=relink | |
11081 | else | |
11082 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11083 | hardcode_action=immediate | |
11084 | fi | |
11085 | else | |
11086 | # We cannot hardcode anything, or else we can only hardcode existing | |
11087 | # directories. | |
11088 | hardcode_action=unsupported | |
11089 | fi | |
5213506e RW |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11091 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
11092 | |
11093 | if test "$hardcode_action" = relink || | |
11094 | test "$inherit_rpath" = yes; then | |
11095 | # Fast installation is not supported | |
11096 | enable_fast_install=no | |
11097 | elif test "$shlibpath_overrides_runpath" = yes || | |
11098 | test "$enable_shared" = no; then | |
11099 | # Fast installation is not necessary | |
11100 | enable_fast_install=needless | |
11101 | fi | |
11102 | ||
11103 | ||
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | if test "x$enable_dlopen" != xyes; then | |
11109 | enable_dlopen=unknown | |
11110 | enable_dlopen_self=unknown | |
11111 | enable_dlopen_self_static=unknown | |
11112 | else | |
11113 | lt_cv_dlopen=no | |
11114 | lt_cv_dlopen_libs= | |
11115 | ||
11116 | case $host_os in | |
11117 | beos*) | |
11118 | lt_cv_dlopen="load_add_on" | |
11119 | lt_cv_dlopen_libs= | |
11120 | lt_cv_dlopen_self=yes | |
11121 | ;; | |
11122 | ||
6b4a97ed | 11123 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11124 | lt_cv_dlopen="LoadLibrary" |
11125 | lt_cv_dlopen_libs= | |
11126 | ;; | |
11127 | ||
11128 | cygwin*) | |
11129 | lt_cv_dlopen="dlopen" | |
11130 | lt_cv_dlopen_libs= | |
11131 | ;; | |
11132 | ||
11133 | darwin*) | |
11134 | # if libdl is installed we need to link against it | |
5213506e RW |
11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11136 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11137 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 11138 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11139 | else |
11140 | ac_check_lib_save_LIBS=$LIBS | |
11141 | LIBS="-ldl $LIBS" | |
5213506e | 11142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11143 | /* end confdefs.h. */ |
11144 | ||
5213506e RW |
11145 | /* Override any GCC internal prototype to avoid an error. |
11146 | Use char because int might match the return type of a GCC | |
11147 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11148 | #ifdef __cplusplus |
11149 | extern "C" | |
11150 | #endif | |
1cf3d07d SE |
11151 | char dlopen (); |
11152 | int | |
11153 | main () | |
11154 | { | |
5213506e | 11155 | return dlopen (); |
1cf3d07d SE |
11156 | ; |
11157 | return 0; | |
11158 | } | |
11159 | _ACEOF | |
5213506e | 11160 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11161 | ac_cv_lib_dl_dlopen=yes |
11162 | else | |
5213506e | 11163 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 11164 | fi |
5213506e RW |
11165 | rm -f core conftest.err conftest.$ac_objext \ |
11166 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11167 | LIBS=$ac_check_lib_save_LIBS |
11168 | fi | |
5213506e RW |
11169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11170 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11171 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
11172 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11173 | else | |
11174 | ||
11175 | lt_cv_dlopen="dyld" | |
11176 | lt_cv_dlopen_libs= | |
11177 | lt_cv_dlopen_self=yes | |
11178 | ||
11179 | fi | |
11180 | ||
11181 | ;; | |
11182 | ||
11183 | *) | |
5213506e | 11184 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 11185 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
11186 | lt_cv_dlopen="shl_load" |
11187 | else | |
5213506e RW |
11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11189 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 11190 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 11191 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11192 | else |
11193 | ac_check_lib_save_LIBS=$LIBS | |
11194 | LIBS="-ldld $LIBS" | |
5213506e | 11195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11196 | /* end confdefs.h. */ |
11197 | ||
5213506e RW |
11198 | /* Override any GCC internal prototype to avoid an error. |
11199 | Use char because int might match the return type of a GCC | |
11200 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11201 | #ifdef __cplusplus |
11202 | extern "C" | |
11203 | #endif | |
1cf3d07d SE |
11204 | char shl_load (); |
11205 | int | |
11206 | main () | |
11207 | { | |
5213506e | 11208 | return shl_load (); |
1cf3d07d SE |
11209 | ; |
11210 | return 0; | |
11211 | } | |
11212 | _ACEOF | |
5213506e | 11213 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11214 | ac_cv_lib_dld_shl_load=yes |
11215 | else | |
5213506e | 11216 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 11217 | fi |
5213506e RW |
11218 | rm -f core conftest.err conftest.$ac_objext \ |
11219 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11220 | LIBS=$ac_check_lib_save_LIBS |
11221 | fi | |
5213506e RW |
11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11223 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 11224 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
6b4a97ed | 11225 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 11226 | else |
5213506e | 11227 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 11228 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
11229 | lt_cv_dlopen="dlopen" |
11230 | else | |
5213506e RW |
11231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11232 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11233 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 11234 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11235 | else |
11236 | ac_check_lib_save_LIBS=$LIBS | |
11237 | LIBS="-ldl $LIBS" | |
5213506e | 11238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11239 | /* end confdefs.h. */ |
11240 | ||
5213506e RW |
11241 | /* Override any GCC internal prototype to avoid an error. |
11242 | Use char because int might match the return type of a GCC | |
11243 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11244 | #ifdef __cplusplus |
11245 | extern "C" | |
11246 | #endif | |
1cf3d07d SE |
11247 | char dlopen (); |
11248 | int | |
11249 | main () | |
11250 | { | |
5213506e | 11251 | return dlopen (); |
1cf3d07d SE |
11252 | ; |
11253 | return 0; | |
11254 | } | |
11255 | _ACEOF | |
5213506e | 11256 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11257 | ac_cv_lib_dl_dlopen=yes |
11258 | else | |
5213506e | 11259 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 11260 | fi |
5213506e RW |
11261 | rm -f core conftest.err conftest.$ac_objext \ |
11262 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11263 | LIBS=$ac_check_lib_save_LIBS |
11264 | fi | |
5213506e RW |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11266 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11267 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
11268 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11269 | else | |
5213506e RW |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11271 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 11272 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 11273 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11274 | else |
11275 | ac_check_lib_save_LIBS=$LIBS | |
11276 | LIBS="-lsvld $LIBS" | |
5213506e | 11277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11278 | /* end confdefs.h. */ |
11279 | ||
5213506e RW |
11280 | /* Override any GCC internal prototype to avoid an error. |
11281 | Use char because int might match the return type of a GCC | |
11282 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11283 | #ifdef __cplusplus |
11284 | extern "C" | |
11285 | #endif | |
1cf3d07d SE |
11286 | char dlopen (); |
11287 | int | |
11288 | main () | |
11289 | { | |
5213506e | 11290 | return dlopen (); |
1cf3d07d SE |
11291 | ; |
11292 | return 0; | |
11293 | } | |
11294 | _ACEOF | |
5213506e | 11295 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11296 | ac_cv_lib_svld_dlopen=yes |
11297 | else | |
5213506e | 11298 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 11299 | fi |
5213506e RW |
11300 | rm -f core conftest.err conftest.$ac_objext \ |
11301 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11302 | LIBS=$ac_check_lib_save_LIBS |
11303 | fi | |
5213506e RW |
11304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11305 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 11306 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
11307 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11308 | else | |
5213506e RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11310 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 11311 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 11312 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11313 | else |
11314 | ac_check_lib_save_LIBS=$LIBS | |
11315 | LIBS="-ldld $LIBS" | |
5213506e | 11316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
11317 | /* end confdefs.h. */ |
11318 | ||
5213506e RW |
11319 | /* Override any GCC internal prototype to avoid an error. |
11320 | Use char because int might match the return type of a GCC | |
11321 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
11322 | #ifdef __cplusplus |
11323 | extern "C" | |
11324 | #endif | |
1cf3d07d SE |
11325 | char dld_link (); |
11326 | int | |
11327 | main () | |
11328 | { | |
5213506e | 11329 | return dld_link (); |
1cf3d07d SE |
11330 | ; |
11331 | return 0; | |
11332 | } | |
11333 | _ACEOF | |
5213506e | 11334 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11335 | ac_cv_lib_dld_dld_link=yes |
11336 | else | |
5213506e | 11337 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 11338 | fi |
5213506e RW |
11339 | rm -f core conftest.err conftest.$ac_objext \ |
11340 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11341 | LIBS=$ac_check_lib_save_LIBS |
11342 | fi | |
5213506e RW |
11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11344 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 11345 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
6b4a97ed | 11346 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
11347 | fi |
11348 | ||
11349 | ||
11350 | fi | |
11351 | ||
11352 | ||
11353 | fi | |
11354 | ||
11355 | ||
11356 | fi | |
11357 | ||
11358 | ||
11359 | fi | |
11360 | ||
11361 | ||
11362 | fi | |
11363 | ||
11364 | ;; | |
11365 | esac | |
11366 | ||
11367 | if test "x$lt_cv_dlopen" != xno; then | |
11368 | enable_dlopen=yes | |
11369 | else | |
11370 | enable_dlopen=no | |
11371 | fi | |
11372 | ||
11373 | case $lt_cv_dlopen in | |
11374 | dlopen) | |
11375 | save_CPPFLAGS="$CPPFLAGS" | |
11376 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11377 | ||
11378 | save_LDFLAGS="$LDFLAGS" | |
11379 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11380 | ||
11381 | save_LIBS="$LIBS" | |
11382 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11383 | ||
5213506e RW |
11384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11385 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 11386 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 11387 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11388 | else |
11389 | if test "$cross_compiling" = yes; then : | |
11390 | lt_cv_dlopen_self=cross | |
11391 | else | |
11392 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11393 | lt_status=$lt_dlunknown | |
11394 | cat > conftest.$ac_ext <<_LT_EOF | |
22e05272 | 11395 | #line 11395 "configure" |
1cf3d07d SE |
11396 | #include "confdefs.h" |
11397 | ||
11398 | #if HAVE_DLFCN_H | |
11399 | #include <dlfcn.h> | |
11400 | #endif | |
11401 | ||
11402 | #include <stdio.h> | |
11403 | ||
11404 | #ifdef RTLD_GLOBAL | |
11405 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11406 | #else | |
11407 | # ifdef DL_GLOBAL | |
11408 | # define LT_DLGLOBAL DL_GLOBAL | |
11409 | # else | |
11410 | # define LT_DLGLOBAL 0 | |
11411 | # endif | |
11412 | #endif | |
11413 | ||
11414 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11415 | find out it does not work in some platform. */ | |
11416 | #ifndef LT_DLLAZY_OR_NOW | |
11417 | # ifdef RTLD_LAZY | |
11418 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11419 | # else | |
11420 | # ifdef DL_LAZY | |
11421 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11422 | # else | |
11423 | # ifdef RTLD_NOW | |
11424 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11425 | # else | |
11426 | # ifdef DL_NOW | |
11427 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11428 | # else | |
11429 | # define LT_DLLAZY_OR_NOW 0 | |
11430 | # endif | |
11431 | # endif | |
11432 | # endif | |
11433 | # endif | |
11434 | #endif | |
11435 | ||
43e02a8a RW |
11436 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11437 | correspondingly for the symbols needed. */ | |
11438 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11439 | void fnord () __attribute__((visibility("default"))); | |
11440 | #endif | |
11441 | ||
11442 | void fnord () { int i=42; } | |
1cf3d07d SE |
11443 | int main () |
11444 | { | |
11445 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11446 | int status = $lt_dlunknown; | |
11447 | ||
11448 | if (self) | |
11449 | { | |
11450 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
11451 | else |
11452 | { | |
11453 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11454 | else puts (dlerror ()); | |
11455 | } | |
1cf3d07d SE |
11456 | /* dlclose (self); */ |
11457 | } | |
11458 | else | |
11459 | puts (dlerror ()); | |
11460 | ||
6b4a97ed | 11461 | return status; |
1cf3d07d SE |
11462 | } |
11463 | _LT_EOF | |
5213506e | 11464 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
11465 | (eval $ac_link) 2>&5 |
11466 | ac_status=$? | |
5213506e RW |
11467 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11468 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
11469 | (./conftest; exit; ) >&5 2>/dev/null |
11470 | lt_status=$? | |
11471 | case x$lt_status in | |
11472 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11473 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11474 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11475 | esac | |
11476 | else : | |
11477 | # compilation failed | |
11478 | lt_cv_dlopen_self=no | |
11479 | fi | |
11480 | fi | |
11481 | rm -fr conftest* | |
11482 | ||
11483 | ||
11484 | fi | |
5213506e RW |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11486 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
11487 | |
11488 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11489 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11491 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 11492 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 11493 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11494 | else |
11495 | if test "$cross_compiling" = yes; then : | |
11496 | lt_cv_dlopen_self_static=cross | |
11497 | else | |
11498 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11499 | lt_status=$lt_dlunknown | |
11500 | cat > conftest.$ac_ext <<_LT_EOF | |
22e05272 | 11501 | #line 11501 "configure" |
1cf3d07d SE |
11502 | #include "confdefs.h" |
11503 | ||
11504 | #if HAVE_DLFCN_H | |
11505 | #include <dlfcn.h> | |
11506 | #endif | |
11507 | ||
11508 | #include <stdio.h> | |
11509 | ||
11510 | #ifdef RTLD_GLOBAL | |
11511 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11512 | #else | |
11513 | # ifdef DL_GLOBAL | |
11514 | # define LT_DLGLOBAL DL_GLOBAL | |
11515 | # else | |
11516 | # define LT_DLGLOBAL 0 | |
11517 | # endif | |
11518 | #endif | |
11519 | ||
11520 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11521 | find out it does not work in some platform. */ | |
11522 | #ifndef LT_DLLAZY_OR_NOW | |
11523 | # ifdef RTLD_LAZY | |
11524 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11525 | # else | |
11526 | # ifdef DL_LAZY | |
11527 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11528 | # else | |
11529 | # ifdef RTLD_NOW | |
11530 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11531 | # else | |
11532 | # ifdef DL_NOW | |
11533 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11534 | # else | |
11535 | # define LT_DLLAZY_OR_NOW 0 | |
11536 | # endif | |
11537 | # endif | |
11538 | # endif | |
11539 | # endif | |
11540 | #endif | |
11541 | ||
43e02a8a RW |
11542 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11543 | correspondingly for the symbols needed. */ | |
11544 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11545 | void fnord () __attribute__((visibility("default"))); | |
11546 | #endif | |
11547 | ||
11548 | void fnord () { int i=42; } | |
1cf3d07d SE |
11549 | int main () |
11550 | { | |
11551 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11552 | int status = $lt_dlunknown; | |
11553 | ||
11554 | if (self) | |
11555 | { | |
11556 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
11557 | else |
11558 | { | |
11559 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11560 | else puts (dlerror ()); | |
11561 | } | |
1cf3d07d SE |
11562 | /* dlclose (self); */ |
11563 | } | |
11564 | else | |
11565 | puts (dlerror ()); | |
11566 | ||
6b4a97ed | 11567 | return status; |
1cf3d07d SE |
11568 | } |
11569 | _LT_EOF | |
5213506e | 11570 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
11571 | (eval $ac_link) 2>&5 |
11572 | ac_status=$? | |
5213506e RW |
11573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11574 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
11575 | (./conftest; exit; ) >&5 2>/dev/null |
11576 | lt_status=$? | |
11577 | case x$lt_status in | |
11578 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11579 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11580 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11581 | esac | |
11582 | else : | |
11583 | # compilation failed | |
11584 | lt_cv_dlopen_self_static=no | |
11585 | fi | |
11586 | fi | |
11587 | rm -fr conftest* | |
11588 | ||
11589 | ||
11590 | fi | |
5213506e RW |
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11592 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
11593 | fi |
11594 | ||
11595 | CPPFLAGS="$save_CPPFLAGS" | |
11596 | LDFLAGS="$save_LDFLAGS" | |
11597 | LIBS="$save_LIBS" | |
11598 | ;; | |
11599 | esac | |
11600 | ||
11601 | case $lt_cv_dlopen_self in | |
11602 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11603 | *) enable_dlopen_self=unknown ;; | |
11604 | esac | |
11605 | ||
11606 | case $lt_cv_dlopen_self_static in | |
11607 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11608 | *) enable_dlopen_self_static=unknown ;; | |
11609 | esac | |
11610 | fi | |
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | striplib= | |
11629 | old_striplib= | |
5213506e RW |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11631 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
11632 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11633 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11634 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
11635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11636 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
11637 | else |
11638 | # FIXME - insert some real tests, host_os isn't really good enough | |
11639 | case $host_os in | |
11640 | darwin*) | |
11641 | if test -n "$STRIP" ; then | |
11642 | striplib="$STRIP -x" | |
11643 | old_striplib="$STRIP -S" | |
5213506e RW |
11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11645 | $as_echo "yes" >&6; } | |
1cf3d07d | 11646 | else |
5213506e RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11648 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11649 | fi |
11650 | ;; | |
11651 | *) | |
5213506e RW |
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11653 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11654 | ;; |
11655 | esac | |
11656 | fi | |
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | # Report which library types will actually be built | |
5213506e RW |
11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11671 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11673 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 11674 | |
5213506e RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11676 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
11677 | test "$can_build_shared" = "no" && enable_shared=no |
11678 | ||
11679 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11680 | # are all built from PIC. | |
11681 | case $host_os in | |
11682 | aix3*) | |
11683 | test "$enable_shared" = yes && enable_static=no | |
11684 | if test -n "$RANLIB"; then | |
11685 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11686 | postinstall_cmds='$RANLIB $lib' | |
11687 | fi | |
11688 | ;; | |
11689 | ||
d653fdfb | 11690 | aix[4-9]*) |
1cf3d07d SE |
11691 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11692 | test "$enable_shared" = yes && enable_static=no | |
11693 | fi | |
11694 | ;; | |
11695 | esac | |
5213506e RW |
11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11697 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 11698 | |
5213506e RW |
11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11700 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
11701 | # Make sure either enable_shared or enable_static is yes. |
11702 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11704 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
11705 | |
11706 | ||
11707 | ||
11708 | ||
11709 | fi | |
11710 | ac_ext=c | |
11711 | ac_cpp='$CPP $CPPFLAGS' | |
11712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11715 | ||
11716 | CC="$lt_save_CC" | |
11717 | ||
11718 | ||
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | ||
5213506e | 11730 | ac_config_commands="$ac_config_commands libtool" |
1cf3d07d SE |
11731 | |
11732 | ||
11733 | ||
11734 | ||
11735 | # Only expand once: | |
11736 | ||
11737 | ||
11738 | ||
11739 | ||
11740 | ||
7de6ba7a DK |
11741 | case $host in |
11742 | *-cygwin* | *-mingw*) | |
11743 | # 'host' will be top-level target in the case of a target lib, | |
11744 | # we must compare to with_cross_host to decide if this is a native | |
11745 | # or cross-compiler and select where to install dlls appropriately. | |
11746 | if test -n "$with_cross_host" && | |
11747 | test x"$with_cross_host" != x"no"; then | |
11748 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
11749 | else | |
11750 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
11751 | fi | |
11752 | ;; | |
11753 | *) | |
11754 | lt_host_flags= | |
11755 | ;; | |
11756 | esac | |
11757 | ||
11758 | ||
11759 | ||
11760 | ||
11761 | ||
11762 | ||
5213506e RW |
11763 | |
11764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11765 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11766 | # Check whether --enable-maintainer-mode was given. | |
11767 | if test "${enable_maintainer_mode+set}" = set; then : | |
11768 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
1cf3d07d SE |
11769 | else |
11770 | USE_MAINTAINER_MODE=no | |
5213506e | 11771 | fi |
1cf3d07d | 11772 | |
5213506e RW |
11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11774 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11775 | if test $USE_MAINTAINER_MODE = yes; then | |
1cf3d07d SE |
11776 | MAINTAINER_MODE_TRUE= |
11777 | MAINTAINER_MODE_FALSE='#' | |
11778 | else | |
11779 | MAINTAINER_MODE_TRUE='#' | |
11780 | MAINTAINER_MODE_FALSE= | |
11781 | fi | |
11782 | ||
11783 | MAINT=$MAINTAINER_MODE_TRUE | |
11784 | ||
11785 | ||
11786 | ||
1ec601bf FXC |
11787 | # Create a spec file, so that compile/link tests don't fail |
11788 | test -f libgfortran.spec || touch libgfortran.spec | |
11789 | FCFLAGS="$FCFLAGS -L." | |
11790 | ||
1cf3d07d SE |
11791 | # We need gfortran to compile parts of the library |
11792 | # We can't use AC_PROG_FC because it expects a fully working gfortran. | |
11793 | #AC_PROG_FC(gfortran) | |
0046b1a7 RW |
11794 | case `echo $GFORTRAN` in |
11795 | -* | no* ) | |
11796 | FC=no ;; | |
11797 | *) | |
2122aa97 PB |
11798 | set dummy $GFORTRAN; ac_word=$2 |
11799 | if test -x "$ac_word"; then | |
d0709b6a PB |
11800 | FC="$GFORTRAN" |
11801 | else | |
11802 | FC=no | |
11803 | fi ;; | |
0046b1a7 | 11804 | esac |
5213506e RW |
11805 | ac_ext=${ac_fc_srcext-f} |
11806 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
11807 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
11808 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11809 | if test -n "$ac_tool_prefix"; then | |
11810 | for ac_prog in gfortran | |
11811 | do | |
11812 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11813 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11815 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11816 | if ${ac_cv_prog_FC+:} false; then : |
5213506e | 11817 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11818 | else |
11819 | if test -n "$FC"; then | |
11820 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
11821 | else | |
11822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11823 | for as_dir in $PATH | |
11824 | do | |
11825 | IFS=$as_save_IFS | |
11826 | test -z "$as_dir" && as_dir=. | |
5213506e | 11827 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 11829 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 11830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
11831 | break 2 |
11832 | fi | |
11833 | done | |
5213506e RW |
11834 | done |
11835 | IFS=$as_save_IFS | |
1cf3d07d SE |
11836 | |
11837 | fi | |
11838 | fi | |
11839 | FC=$ac_cv_prog_FC | |
11840 | if test -n "$FC"; then | |
5213506e RW |
11841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
11842 | $as_echo "$FC" >&6; } | |
1cf3d07d | 11843 | else |
5213506e RW |
11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11845 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11846 | fi |
11847 | ||
5213506e | 11848 | |
1cf3d07d SE |
11849 | test -n "$FC" && break |
11850 | done | |
11851 | fi | |
11852 | if test -z "$FC"; then | |
11853 | ac_ct_FC=$FC | |
11854 | for ac_prog in gfortran | |
11855 | do | |
11856 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11857 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11859 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11860 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
5213506e | 11861 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11862 | else |
11863 | if test -n "$ac_ct_FC"; then | |
11864 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
11865 | else | |
11866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11867 | for as_dir in $PATH | |
11868 | do | |
11869 | IFS=$as_save_IFS | |
11870 | test -z "$as_dir" && as_dir=. | |
5213506e | 11871 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11872 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 11873 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 11874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
11875 | break 2 |
11876 | fi | |
11877 | done | |
5213506e RW |
11878 | done |
11879 | IFS=$as_save_IFS | |
1cf3d07d SE |
11880 | |
11881 | fi | |
11882 | fi | |
11883 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
11884 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
11885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
11886 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 11887 | else |
5213506e RW |
11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11889 | $as_echo "no" >&6; } | |
1cf3d07d SE |
11890 | fi |
11891 | ||
5213506e | 11892 | |
1cf3d07d SE |
11893 | test -n "$ac_ct_FC" && break |
11894 | done | |
11895 | ||
5213506e RW |
11896 | if test "x$ac_ct_FC" = x; then |
11897 | FC="" | |
11898 | else | |
11899 | case $cross_compiling:$ac_tool_warned in | |
11900 | yes:) | |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11902 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11903 | ac_tool_warned=yes ;; | |
11904 | esac | |
11905 | FC=$ac_ct_FC | |
11906 | fi | |
1cf3d07d SE |
11907 | fi |
11908 | ||
11909 | ||
11910 | # Provide some information about the compiler. | |
5213506e RW |
11911 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
11912 | set X $ac_compile | |
11913 | ac_compiler=$2 | |
11914 | for ac_option in --version -v -V -qversion; do | |
11915 | { { ac_try="$ac_compiler $ac_option >&5" | |
11916 | case "(($ac_try" in | |
11917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11918 | *) ac_try_echo=$ac_try;; | |
11919 | esac | |
11920 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11921 | $as_echo "$ac_try_echo"; } >&5 | |
11922 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 11923 | ac_status=$? |
5213506e RW |
11924 | if test -s conftest.err; then |
11925 | sed '10a\ | |
11926 | ... rest of stderr output deleted ... | |
11927 | 10q' conftest.err >conftest.er1 | |
11928 | cat conftest.er1 >&5 | |
5213506e | 11929 | fi |
22e05272 | 11930 | rm -f conftest.er1 conftest.err |
5213506e RW |
11931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11932 | test $ac_status = 0; } | |
11933 | done | |
1cf3d07d SE |
11934 | rm -f a.out |
11935 | ||
11936 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
11937 | # input file. (Note that this only needs to work for GNU compilers.) | |
11938 | ac_save_ext=$ac_ext | |
11939 | ac_ext=F | |
5213506e RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
11941 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
22e05272 | 11942 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
5213506e | 11943 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 11944 | else |
5213506e | 11945 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
11946 | program main |
11947 | #ifndef __GNUC__ | |
11948 | choke me | |
11949 | #endif | |
11950 | ||
11951 | end | |
11952 | _ACEOF | |
5213506e | 11953 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
11954 | ac_compiler_gnu=yes |
11955 | else | |
5213506e | 11956 | ac_compiler_gnu=no |
1cf3d07d | 11957 | fi |
5213506e | 11958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
11959 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
11960 | ||
11961 | fi | |
5213506e RW |
11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
11963 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 11964 | ac_ext=$ac_save_ext |
5213506e RW |
11965 | ac_test_FCFLAGS=${FCFLAGS+set} |
11966 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 11967 | FCFLAGS= |
5213506e RW |
11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
11969 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
22e05272 | 11970 | if ${ac_cv_prog_fc_g+:} false; then : |
5213506e | 11971 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
11972 | else |
11973 | FCFLAGS=-g | |
5213506e | 11974 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
11975 | program main |
11976 | ||
11977 | end | |
11978 | _ACEOF | |
5213506e | 11979 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
11980 | ac_cv_prog_fc_g=yes |
11981 | else | |
5213506e | 11982 | ac_cv_prog_fc_g=no |
1cf3d07d | 11983 | fi |
5213506e | 11984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
11985 | |
11986 | fi | |
5213506e RW |
11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
11988 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
11989 | if test "$ac_test_FCFLAGS" = set; then | |
11990 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
11991 | elif test $ac_cv_prog_fc_g = yes; then |
11992 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11993 | FCFLAGS="-g -O2" | |
11994 | else | |
11995 | FCFLAGS="-g" | |
11996 | fi | |
11997 | else | |
11998 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
11999 | FCFLAGS="-O2" | |
12000 | else | |
12001 | FCFLAGS= | |
12002 | fi | |
12003 | fi | |
12004 | ||
22e05272 JM |
12005 | if test $ac_compiler_gnu = yes; then |
12006 | GFC=yes | |
12007 | else | |
12008 | GFC= | |
12009 | fi | |
1cf3d07d SE |
12010 | ac_ext=c |
12011 | ac_cpp='$CPP $CPPFLAGS' | |
12012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12015 | ||
43e02a8a | 12016 | ac_ext=${ac_fc_srcext-f} |
5213506e RW |
12017 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
12018 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d | 12019 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
1cf3d07d | 12020 | |
1cf3d07d SE |
12021 | |
12022 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
12023 | _lt_disable_FC=yes | |
12024 | fi | |
12025 | ||
1cf3d07d SE |
12026 | archive_cmds_need_lc_FC=no |
12027 | allow_undefined_flag_FC= | |
12028 | always_export_symbols_FC=no | |
12029 | archive_expsym_cmds_FC= | |
12030 | export_dynamic_flag_spec_FC= | |
12031 | hardcode_direct_FC=no | |
12032 | hardcode_direct_absolute_FC=no | |
12033 | hardcode_libdir_flag_spec_FC= | |
12034 | hardcode_libdir_flag_spec_ld_FC= | |
12035 | hardcode_libdir_separator_FC= | |
12036 | hardcode_minus_L_FC=no | |
12037 | hardcode_automatic_FC=no | |
12038 | inherit_rpath_FC=no | |
12039 | module_cmds_FC= | |
12040 | module_expsym_cmds_FC= | |
12041 | link_all_deplibs_FC=unknown | |
12042 | old_archive_cmds_FC=$old_archive_cmds | |
43e02a8a RW |
12043 | reload_flag_FC=$reload_flag |
12044 | reload_cmds_FC=$reload_cmds | |
1cf3d07d SE |
12045 | no_undefined_flag_FC= |
12046 | whole_archive_flag_spec_FC= | |
12047 | enable_shared_with_static_runtimes_FC=no | |
12048 | ||
12049 | # Source file extension for fc test sources. | |
12050 | ac_ext=${ac_fc_srcext-f} | |
12051 | ||
12052 | # Object file extension for compiled fc test sources. | |
12053 | objext=o | |
12054 | objext_FC=$objext | |
12055 | ||
12056 | # No sense in running all these tests if we already determined that | |
12057 | # the FC compiler isn't working. Some variables (like enable_shared) | |
12058 | # are currently assumed to apply to all compilers on this platform, | |
12059 | # and will be corrupted by setting them based on a non-working compiler. | |
12060 | if test "$_lt_disable_FC" != yes; then | |
12061 | # Code to be used in simple compile tests | |
12062 | lt_simple_compile_test_code="\ | |
12063 | subroutine t | |
12064 | return | |
12065 | end | |
12066 | " | |
12067 | ||
12068 | # Code to be used in simple link tests | |
12069 | lt_simple_link_test_code="\ | |
12070 | program t | |
12071 | end | |
12072 | " | |
12073 | ||
12074 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12075 | ||
12076 | ||
12077 | ||
12078 | ||
12079 | ||
12080 | ||
12081 | # If no C compiler was specified, use CC. | |
12082 | LTCC=${LTCC-"$CC"} | |
12083 | ||
12084 | # If no C compiler flags were specified, use CFLAGS. | |
12085 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12086 | ||
12087 | # Allow CC to be a program name with arguments. | |
12088 | compiler=$CC | |
12089 | ||
12090 | ||
12091 | # save warnings/boilerplate of simple test code | |
12092 | ac_outfile=conftest.$ac_objext | |
12093 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12094 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12095 | _lt_compiler_boilerplate=`cat conftest.err` | |
12096 | $RM conftest* | |
12097 | ||
12098 | ac_outfile=conftest.$ac_objext | |
12099 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12100 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12101 | _lt_linker_boilerplate=`cat conftest.err` | |
6b4a97ed | 12102 | $RM -r conftest* |
1cf3d07d SE |
12103 | |
12104 | ||
12105 | # Allow CC to be a program name with arguments. | |
12106 | lt_save_CC="$CC" | |
6b4a97ed | 12107 | lt_save_GCC=$GCC |
1cf3d07d SE |
12108 | CC=${FC-"f95"} |
12109 | compiler=$CC | |
6b4a97ed PG |
12110 | GCC=$ac_cv_fc_compiler_gnu |
12111 | ||
1cf3d07d SE |
12112 | compiler_FC=$CC |
12113 | for cc_temp in $compiler""; do | |
12114 | case $cc_temp in | |
12115 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12116 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12117 | \-*) ;; | |
12118 | *) break;; | |
12119 | esac | |
12120 | done | |
43e02a8a | 12121 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
12122 | |
12123 | ||
12124 | if test -n "$compiler"; then | |
5213506e RW |
12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12126 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12128 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 12129 | |
5213506e RW |
12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12131 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
12132 | test "$can_build_shared" = "no" && enable_shared=no |
12133 | ||
12134 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12135 | # are all built from PIC. | |
12136 | case $host_os in | |
12137 | aix3*) | |
12138 | test "$enable_shared" = yes && enable_static=no | |
12139 | if test -n "$RANLIB"; then | |
12140 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12141 | postinstall_cmds='$RANLIB $lib' | |
12142 | fi | |
12143 | ;; | |
d653fdfb | 12144 | aix[4-9]*) |
1cf3d07d SE |
12145 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
12146 | test "$enable_shared" = yes && enable_static=no | |
12147 | fi | |
12148 | ;; | |
12149 | esac | |
5213506e RW |
12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12151 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 12152 | |
5213506e RW |
12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12154 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
12155 | # Make sure either enable_shared or enable_static is yes. |
12156 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12158 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
12159 | |
12160 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
12161 | LD_FC="$LD" | |
12162 | ||
12163 | ## CAVEAT EMPTOR: | |
12164 | ## There is no encapsulation within the following macros, do not change | |
12165 | ## the running order or otherwise move them around unless you know exactly | |
12166 | ## what you are doing... | |
12167 | # Dependencies to place before and after the object being linked: | |
12168 | predep_objects_FC= | |
12169 | postdep_objects_FC= | |
12170 | predeps_FC= | |
12171 | postdeps_FC= | |
12172 | compiler_lib_search_path_FC= | |
12173 | ||
12174 | cat > conftest.$ac_ext <<_LT_EOF | |
12175 | subroutine foo | |
12176 | implicit none | |
12177 | integer a | |
12178 | a=0 | |
12179 | return | |
12180 | end | |
12181 | _LT_EOF | |
12182 | ||
5213506e | 12183 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
12184 | (eval $ac_compile) 2>&5 |
12185 | ac_status=$? | |
5213506e RW |
12186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12187 | test $ac_status = 0; }; then | |
1cf3d07d SE |
12188 | # Parse the compiler output and extract the necessary |
12189 | # objects, libraries and library flags. | |
12190 | ||
12191 | # Sentinel used to keep track of whether or not we are before | |
12192 | # the conftest object file. | |
12193 | pre_test_object_deps_done=no | |
12194 | ||
6b4a97ed | 12195 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
12196 | case $p in |
12197 | ||
12198 | -L* | -R* | -l*) | |
12199 | # Some compilers place space between "-{L,R}" and the path. | |
12200 | # Remove the space. | |
12201 | if test $p = "-L" || | |
12202 | test $p = "-R"; then | |
12203 | prev=$p | |
12204 | continue | |
12205 | else | |
12206 | prev= | |
12207 | fi | |
12208 | ||
12209 | if test "$pre_test_object_deps_done" = no; then | |
12210 | case $p in | |
12211 | -L* | -R*) | |
12212 | # Internal compiler library paths should come after those | |
12213 | # provided the user. The postdeps already come after the | |
12214 | # user supplied libs so there is no need to process them. | |
12215 | if test -z "$compiler_lib_search_path_FC"; then | |
12216 | compiler_lib_search_path_FC="${prev}${p}" | |
12217 | else | |
12218 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
12219 | fi | |
12220 | ;; | |
12221 | # The "-l" case would never come before the object being | |
12222 | # linked, so don't bother handling this case. | |
12223 | esac | |
12224 | else | |
12225 | if test -z "$postdeps_FC"; then | |
12226 | postdeps_FC="${prev}${p}" | |
12227 | else | |
12228 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
12229 | fi | |
12230 | fi | |
12231 | ;; | |
12232 | ||
12233 | *.$objext) | |
12234 | # This assumes that the test object file only shows up | |
12235 | # once in the compiler output. | |
12236 | if test "$p" = "conftest.$objext"; then | |
12237 | pre_test_object_deps_done=yes | |
12238 | continue | |
12239 | fi | |
12240 | ||
12241 | if test "$pre_test_object_deps_done" = no; then | |
12242 | if test -z "$predep_objects_FC"; then | |
12243 | predep_objects_FC="$p" | |
12244 | else | |
12245 | predep_objects_FC="$predep_objects_FC $p" | |
12246 | fi | |
12247 | else | |
12248 | if test -z "$postdep_objects_FC"; then | |
12249 | postdep_objects_FC="$p" | |
12250 | else | |
12251 | postdep_objects_FC="$postdep_objects_FC $p" | |
12252 | fi | |
12253 | fi | |
12254 | ;; | |
12255 | ||
12256 | *) ;; # Ignore the rest. | |
12257 | ||
12258 | esac | |
12259 | done | |
12260 | ||
12261 | # Clean up. | |
12262 | rm -f a.out a.exe | |
12263 | else | |
12264 | echo "libtool.m4: error: problem compiling FC test program" | |
12265 | fi | |
12266 | ||
12267 | $RM -f confest.$objext | |
12268 | ||
12269 | # PORTME: override above test on systems where it is broken | |
12270 | ||
12271 | ||
12272 | case " $postdeps_FC " in | |
12273 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
12274 | esac | |
6b4a97ed PG |
12275 | compiler_lib_search_dirs_FC= |
12276 | if test -n "${compiler_lib_search_path_FC}"; then | |
12277 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12278 | fi | |
12279 | ||
12280 | ||
12281 | ||
12282 | ||
12283 | ||
1cf3d07d SE |
12284 | |
12285 | ||
12286 | ||
12287 | ||
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | lt_prog_compiler_wl_FC= | |
12311 | lt_prog_compiler_pic_FC= | |
12312 | lt_prog_compiler_static_FC= | |
12313 | ||
5213506e RW |
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
12315 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
12316 | |
12317 | if test "$GCC" = yes; then | |
12318 | lt_prog_compiler_wl_FC='-Wl,' | |
12319 | lt_prog_compiler_static_FC='-static' | |
12320 | ||
12321 | case $host_os in | |
12322 | aix*) | |
12323 | # All AIX code is PIC. | |
12324 | if test "$host_cpu" = ia64; then | |
12325 | # AIX 5 now supports IA64 processor | |
12326 | lt_prog_compiler_static_FC='-Bstatic' | |
12327 | fi | |
6608378b | 12328 | lt_prog_compiler_pic_FC='-fPIC' |
1cf3d07d SE |
12329 | ;; |
12330 | ||
12331 | amigaos*) | |
6b4a97ed PG |
12332 | case $host_cpu in |
12333 | powerpc) | |
12334 | # see comment about AmigaOS4 .so support | |
12335 | lt_prog_compiler_pic_FC='-fPIC' | |
12336 | ;; | |
12337 | m68k) | |
12338 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12339 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12340 | # like `-m68040'. | |
12341 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
12342 | ;; | |
12343 | esac | |
1cf3d07d SE |
12344 | ;; |
12345 | ||
12346 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12347 | # PIC is the default for these OSes. | |
12348 | ;; | |
12349 | ||
6b4a97ed | 12350 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
12351 | # This hack is so that the source file can tell whether it is being |
12352 | # built for inclusion in a dll (and should export symbols for example). | |
12353 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12354 | # (--disable-auto-import) libraries | |
12355 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
12356 | ;; | |
12357 | ||
12358 | darwin* | rhapsody*) | |
12359 | # PIC is the default on this platform | |
12360 | # Common symbols not allowed in MH_DYLIB files | |
12361 | lt_prog_compiler_pic_FC='-fno-common' | |
12362 | ;; | |
12363 | ||
43e02a8a RW |
12364 | haiku*) |
12365 | # PIC is the default for Haiku. | |
12366 | # The "-static" flag exists, but is broken. | |
12367 | lt_prog_compiler_static_FC= | |
12368 | ;; | |
12369 | ||
1cf3d07d | 12370 | hpux*) |
6b4a97ed PG |
12371 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
12372 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12373 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 12374 | case $host_cpu in |
6b4a97ed | 12375 | hppa*64*) |
1cf3d07d SE |
12376 | # +Z the default |
12377 | ;; | |
12378 | *) | |
12379 | lt_prog_compiler_pic_FC='-fPIC' | |
12380 | ;; | |
12381 | esac | |
12382 | ;; | |
12383 | ||
12384 | interix[3-9]*) | |
12385 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12386 | # Instead, we relocate shared libraries at runtime. | |
12387 | ;; | |
12388 | ||
12389 | msdosdjgpp*) | |
12390 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
12391 | # on systems that don't support them. | |
12392 | lt_prog_compiler_can_build_shared_FC=no | |
12393 | enable_shared=no | |
12394 | ;; | |
12395 | ||
12396 | *nto* | *qnx*) | |
12397 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12398 | # it will coredump. | |
12399 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
12400 | ;; | |
12401 | ||
12402 | sysv4*MP*) | |
12403 | if test -d /usr/nec; then | |
12404 | lt_prog_compiler_pic_FC=-Kconform_pic | |
12405 | fi | |
12406 | ;; | |
12407 | ||
12408 | *) | |
12409 | lt_prog_compiler_pic_FC='-fPIC' | |
12410 | ;; | |
12411 | esac | |
43e02a8a RW |
12412 | |
12413 | case $cc_basename in | |
12414 | nvcc*) # Cuda Compiler Driver 2.2 | |
12415 | lt_prog_compiler_wl_FC='-Xlinker ' | |
12416 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
12417 | ;; | |
12418 | esac | |
1cf3d07d SE |
12419 | else |
12420 | # PORTME Check for flag to pass linker flags through the system compiler. | |
12421 | case $host_os in | |
12422 | aix*) | |
12423 | lt_prog_compiler_wl_FC='-Wl,' | |
12424 | if test "$host_cpu" = ia64; then | |
12425 | # AIX 5 now supports IA64 processor | |
12426 | lt_prog_compiler_static_FC='-Bstatic' | |
12427 | else | |
12428 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
12429 | fi | |
12430 | ;; | |
1cf3d07d | 12431 | |
6b4a97ed | 12432 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
12433 | # This hack is so that the source file can tell whether it is being |
12434 | # built for inclusion in a dll (and should export symbols for example). | |
12435 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
12436 | ;; | |
12437 | ||
12438 | hpux9* | hpux10* | hpux11*) | |
12439 | lt_prog_compiler_wl_FC='-Wl,' | |
12440 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12441 | # not for PA HP-UX. | |
12442 | case $host_cpu in | |
12443 | hppa*64*|ia64*) | |
12444 | # +Z the default | |
12445 | ;; | |
12446 | *) | |
12447 | lt_prog_compiler_pic_FC='+Z' | |
12448 | ;; | |
12449 | esac | |
12450 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
12451 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
12452 | ;; | |
12453 | ||
12454 | irix5* | irix6* | nonstopux*) | |
12455 | lt_prog_compiler_wl_FC='-Wl,' | |
12456 | # PIC (with -KPIC) is the default. | |
12457 | lt_prog_compiler_static_FC='-non_shared' | |
12458 | ;; | |
12459 | ||
7a9d3fe8 | 12460 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 12461 | case $cc_basename in |
6b4a97ed PG |
12462 | # old Intel for x86_64 which still supported -KPIC. |
12463 | ecc*) | |
1cf3d07d SE |
12464 | lt_prog_compiler_wl_FC='-Wl,' |
12465 | lt_prog_compiler_pic_FC='-KPIC' | |
12466 | lt_prog_compiler_static_FC='-static' | |
12467 | ;; | |
6b4a97ed PG |
12468 | # icc used to be incompatible with GCC. |
12469 | # ICC 10 doesn't accept -KPIC any more. | |
12470 | icc* | ifort*) | |
12471 | lt_prog_compiler_wl_FC='-Wl,' | |
12472 | lt_prog_compiler_pic_FC='-fPIC' | |
12473 | lt_prog_compiler_static_FC='-static' | |
12474 | ;; | |
12475 | # Lahey Fortran 8.1. | |
12476 | lf95*) | |
12477 | lt_prog_compiler_wl_FC='-Wl,' | |
12478 | lt_prog_compiler_pic_FC='--shared' | |
12479 | lt_prog_compiler_static_FC='--static' | |
12480 | ;; | |
43e02a8a | 12481 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
12482 | # Portland Group compilers (*not* the Pentium gcc compiler, |
12483 | # which looks to be a dead project) | |
12484 | lt_prog_compiler_wl_FC='-Wl,' | |
12485 | lt_prog_compiler_pic_FC='-fpic' | |
12486 | lt_prog_compiler_static_FC='-Bstatic' | |
12487 | ;; | |
12488 | ccc*) | |
12489 | lt_prog_compiler_wl_FC='-Wl,' | |
12490 | # All Alpha code is PIC. | |
12491 | lt_prog_compiler_static_FC='-non_shared' | |
12492 | ;; | |
43e02a8a RW |
12493 | xl* | bgxl* | bgf* | mpixl*) |
12494 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
6b4a97ed PG |
12495 | lt_prog_compiler_wl_FC='-Wl,' |
12496 | lt_prog_compiler_pic_FC='-qpic' | |
12497 | lt_prog_compiler_static_FC='-qstaticlink' | |
12498 | ;; | |
1cf3d07d SE |
12499 | *) |
12500 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
12501 | *Sun\ F* | *Sun*Fortran*) |
12502 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
12503 | lt_prog_compiler_pic_FC='-KPIC' |
12504 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 12505 | lt_prog_compiler_wl_FC='' |
1cf3d07d | 12506 | ;; |
43e02a8a RW |
12507 | *Sun\ C*) |
12508 | # Sun C 5.9 | |
1cf3d07d SE |
12509 | lt_prog_compiler_pic_FC='-KPIC' |
12510 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 12511 | lt_prog_compiler_wl_FC='-Wl,' |
1cf3d07d SE |
12512 | ;; |
12513 | esac | |
12514 | ;; | |
12515 | esac | |
12516 | ;; | |
12517 | ||
12518 | newsos6) | |
12519 | lt_prog_compiler_pic_FC='-KPIC' | |
12520 | lt_prog_compiler_static_FC='-Bstatic' | |
12521 | ;; | |
12522 | ||
12523 | *nto* | *qnx*) | |
12524 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12525 | # it will coredump. | |
12526 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
12527 | ;; | |
12528 | ||
12529 | osf3* | osf4* | osf5*) | |
12530 | lt_prog_compiler_wl_FC='-Wl,' | |
12531 | # All OSF/1 code is PIC. | |
12532 | lt_prog_compiler_static_FC='-non_shared' | |
12533 | ;; | |
12534 | ||
12535 | rdos*) | |
12536 | lt_prog_compiler_static_FC='-non_shared' | |
12537 | ;; | |
12538 | ||
12539 | solaris*) | |
12540 | lt_prog_compiler_pic_FC='-KPIC' | |
12541 | lt_prog_compiler_static_FC='-Bstatic' | |
12542 | case $cc_basename in | |
12543 | f77* | f90* | f95*) | |
12544 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
12545 | *) | |
12546 | lt_prog_compiler_wl_FC='-Wl,';; | |
12547 | esac | |
12548 | ;; | |
12549 | ||
12550 | sunos4*) | |
12551 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
12552 | lt_prog_compiler_pic_FC='-PIC' | |
12553 | lt_prog_compiler_static_FC='-Bstatic' | |
12554 | ;; | |
12555 | ||
12556 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
12557 | lt_prog_compiler_wl_FC='-Wl,' | |
12558 | lt_prog_compiler_pic_FC='-KPIC' | |
12559 | lt_prog_compiler_static_FC='-Bstatic' | |
12560 | ;; | |
12561 | ||
12562 | sysv4*MP*) | |
12563 | if test -d /usr/nec ;then | |
12564 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
12565 | lt_prog_compiler_static_FC='-Bstatic' | |
12566 | fi | |
12567 | ;; | |
12568 | ||
12569 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12570 | lt_prog_compiler_wl_FC='-Wl,' | |
12571 | lt_prog_compiler_pic_FC='-KPIC' | |
12572 | lt_prog_compiler_static_FC='-Bstatic' | |
12573 | ;; | |
12574 | ||
12575 | unicos*) | |
12576 | lt_prog_compiler_wl_FC='-Wl,' | |
12577 | lt_prog_compiler_can_build_shared_FC=no | |
12578 | ;; | |
12579 | ||
12580 | uts4*) | |
12581 | lt_prog_compiler_pic_FC='-pic' | |
12582 | lt_prog_compiler_static_FC='-Bstatic' | |
12583 | ;; | |
12584 | ||
12585 | *) | |
12586 | lt_prog_compiler_can_build_shared_FC=no | |
12587 | ;; | |
12588 | esac | |
12589 | fi | |
12590 | ||
12591 | case $host_os in | |
12592 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12593 | *djgpp*) | |
12594 | lt_prog_compiler_pic_FC= | |
12595 | ;; | |
12596 | *) | |
12597 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
12598 | ;; | |
12599 | esac | |
5213506e RW |
12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
12601 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
12602 | |
12603 | ||
12604 | ||
12605 | # | |
12606 | # Check to make sure the PIC flag actually works. | |
12607 | # | |
12608 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
12610 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
22e05272 | 12611 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
5213506e | 12612 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 12613 | else |
6b4a97ed | 12614 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
12615 | ac_outfile=conftest.$ac_objext |
12616 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12617 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
12618 | # Insert the option either (1) after the last *FLAGS variable, or | |
12619 | # (2) before a word containing "conftest.", or (3) at the end. | |
12620 | # Note that $ac_compile itself does not contain backslashes and begins | |
12621 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12622 | # The option is referenced via a variable to avoid confusing sed. | |
12623 | lt_compile=`echo "$ac_compile" | $SED \ | |
12624 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12625 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12626 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 12627 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
12628 | (eval "$lt_compile" 2>conftest.err) |
12629 | ac_status=$? | |
12630 | cat conftest.err >&5 | |
43e02a8a | 12631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
12632 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12633 | # The compiler can only warn and ignore the option if not recognized | |
12634 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 12635 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
12636 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12637 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 12638 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
12639 | fi |
12640 | fi | |
12641 | $RM conftest* | |
12642 | ||
12643 | fi | |
5213506e RW |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
12645 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 12646 | |
6b4a97ed | 12647 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
12648 | case $lt_prog_compiler_pic_FC in |
12649 | "" | " "*) ;; | |
12650 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
12651 | esac | |
12652 | else | |
12653 | lt_prog_compiler_pic_FC= | |
12654 | lt_prog_compiler_can_build_shared_FC=no | |
12655 | fi | |
12656 | ||
12657 | fi | |
12658 | ||
12659 | ||
12660 | ||
12661 | # | |
12662 | # Check to make sure the static flag actually works. | |
12663 | # | |
12664 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12666 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 12667 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
5213506e | 12668 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 12669 | else |
6b4a97ed | 12670 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
12671 | save_LDFLAGS="$LDFLAGS" |
12672 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12673 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12674 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12675 | # The linker can only warn and ignore the option if not recognized | |
12676 | # So say no if there are warnings | |
12677 | if test -s conftest.err; then | |
12678 | # Append any errors to the config.log. | |
12679 | cat conftest.err 1>&5 | |
43e02a8a | 12680 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
12681 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12682 | if diff conftest.exp conftest.er2 >/dev/null; then | |
6b4a97ed | 12683 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
12684 | fi |
12685 | else | |
6b4a97ed | 12686 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
12687 | fi |
12688 | fi | |
6b4a97ed | 12689 | $RM -r conftest* |
1cf3d07d SE |
12690 | LDFLAGS="$save_LDFLAGS" |
12691 | ||
12692 | fi | |
5213506e RW |
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
12694 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 12695 | |
6b4a97ed | 12696 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
12697 | : |
12698 | else | |
12699 | lt_prog_compiler_static_FC= | |
12700 | fi | |
12701 | ||
12702 | ||
12703 | ||
12704 | ||
5213506e RW |
12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12706 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 12707 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 12708 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12709 | else |
12710 | lt_cv_prog_compiler_c_o_FC=no | |
12711 | $RM -r conftest 2>/dev/null | |
12712 | mkdir conftest | |
12713 | cd conftest | |
12714 | mkdir out | |
12715 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12716 | ||
12717 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12718 | # Insert the option either (1) after the last *FLAGS variable, or | |
12719 | # (2) before a word containing "conftest.", or (3) at the end. | |
12720 | # Note that $ac_compile itself does not contain backslashes and begins | |
12721 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12722 | lt_compile=`echo "$ac_compile" | $SED \ | |
12723 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12724 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12725 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 12726 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
12727 | (eval "$lt_compile" 2>out/conftest.err) |
12728 | ac_status=$? | |
12729 | cat out/conftest.err >&5 | |
43e02a8a | 12730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
12731 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12732 | then | |
12733 | # The compiler can only warn and ignore the option if not recognized | |
12734 | # So say no if there are warnings | |
43e02a8a | 12735 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
12736 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12737 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12738 | lt_cv_prog_compiler_c_o_FC=yes | |
12739 | fi | |
12740 | fi | |
12741 | chmod u+w . 2>&5 | |
12742 | $RM conftest* | |
12743 | # SGI C++ compiler will create directory out/ii_files/ for | |
12744 | # template instantiation | |
12745 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12746 | $RM out/* && rmdir out | |
12747 | cd .. | |
12748 | $RM -r conftest | |
12749 | $RM conftest* | |
12750 | ||
12751 | fi | |
5213506e RW |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12753 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
12754 | |
12755 | ||
12756 | ||
5213506e RW |
12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12758 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 12759 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 12760 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12761 | else |
12762 | lt_cv_prog_compiler_c_o_FC=no | |
12763 | $RM -r conftest 2>/dev/null | |
12764 | mkdir conftest | |
12765 | cd conftest | |
12766 | mkdir out | |
12767 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12768 | ||
12769 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12770 | # Insert the option either (1) after the last *FLAGS variable, or | |
12771 | # (2) before a word containing "conftest.", or (3) at the end. | |
12772 | # Note that $ac_compile itself does not contain backslashes and begins | |
12773 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12774 | lt_compile=`echo "$ac_compile" | $SED \ | |
12775 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12776 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12777 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 12778 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
12779 | (eval "$lt_compile" 2>out/conftest.err) |
12780 | ac_status=$? | |
12781 | cat out/conftest.err >&5 | |
43e02a8a | 12782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
12783 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12784 | then | |
12785 | # The compiler can only warn and ignore the option if not recognized | |
12786 | # So say no if there are warnings | |
43e02a8a | 12787 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
12788 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12789 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12790 | lt_cv_prog_compiler_c_o_FC=yes | |
12791 | fi | |
12792 | fi | |
12793 | chmod u+w . 2>&5 | |
12794 | $RM conftest* | |
12795 | # SGI C++ compiler will create directory out/ii_files/ for | |
12796 | # template instantiation | |
12797 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12798 | $RM out/* && rmdir out | |
12799 | cd .. | |
12800 | $RM -r conftest | |
12801 | $RM conftest* | |
12802 | ||
12803 | fi | |
5213506e RW |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
12805 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
12806 | |
12807 | ||
12808 | ||
12809 | ||
12810 | hard_links="nottested" | |
12811 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
12812 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
12813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
12814 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
12815 | hard_links=yes |
12816 | $RM conftest* | |
12817 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12818 | touch conftest.a | |
12819 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12820 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
12822 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 12823 | if test "$hard_links" = no; then |
5213506e RW |
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12825 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
12826 | need_locks=warn |
12827 | fi | |
12828 | else | |
12829 | need_locks=no | |
12830 | fi | |
12831 | ||
12832 | ||
12833 | ||
5213506e RW |
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12835 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
12836 | |
12837 | runpath_var= | |
12838 | allow_undefined_flag_FC= | |
12839 | always_export_symbols_FC=no | |
12840 | archive_cmds_FC= | |
12841 | archive_expsym_cmds_FC= | |
12842 | compiler_needs_object_FC=no | |
12843 | enable_shared_with_static_runtimes_FC=no | |
12844 | export_dynamic_flag_spec_FC= | |
12845 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12846 | hardcode_automatic_FC=no | |
12847 | hardcode_direct_FC=no | |
12848 | hardcode_direct_absolute_FC=no | |
12849 | hardcode_libdir_flag_spec_FC= | |
12850 | hardcode_libdir_flag_spec_ld_FC= | |
12851 | hardcode_libdir_separator_FC= | |
12852 | hardcode_minus_L_FC=no | |
12853 | hardcode_shlibpath_var_FC=unsupported | |
12854 | inherit_rpath_FC=no | |
12855 | link_all_deplibs_FC=unknown | |
12856 | module_cmds_FC= | |
12857 | module_expsym_cmds_FC= | |
12858 | old_archive_from_new_cmds_FC= | |
12859 | old_archive_from_expsyms_cmds_FC= | |
12860 | thread_safe_flag_spec_FC= | |
12861 | whole_archive_flag_spec_FC= | |
12862 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12863 | # included in the symbol list | |
12864 | include_expsyms_FC= | |
12865 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
12866 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12867 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12868 | # as well as any symbol that contains `d'. | |
6b4a97ed | 12869 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
12870 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
12871 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12872 | # the symbol is explicitly referenced. Since portable code cannot | |
12873 | # rely on this symbol name, it's probably fine to never include it in | |
12874 | # preloaded symbol tables. | |
6b4a97ed | 12875 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
12876 | extract_expsyms_cmds= |
12877 | ||
12878 | case $host_os in | |
6b4a97ed | 12879 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12880 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
12881 | # When not using gcc, we currently assume that we are using | |
12882 | # Microsoft Visual C++. | |
12883 | if test "$GCC" != yes; then | |
12884 | with_gnu_ld=no | |
12885 | fi | |
12886 | ;; | |
12887 | interix*) | |
12888 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
12889 | with_gnu_ld=yes | |
12890 | ;; | |
12891 | openbsd*) | |
12892 | with_gnu_ld=no | |
12893 | ;; | |
12894 | esac | |
12895 | ||
12896 | ld_shlibs_FC=yes | |
43e02a8a RW |
12897 | |
12898 | # On some targets, GNU ld is compatible enough with the native linker | |
12899 | # that we're better off using the native interface for both. | |
12900 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 12901 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
12902 | case $host_os in |
12903 | aix*) | |
12904 | # The AIX port of GNU ld has always aspired to compatibility | |
12905 | # with the native linker. However, as the warning in the GNU ld | |
12906 | # block says, versions before 2.19.5* couldn't really create working | |
12907 | # shared libraries, regardless of the interface used. | |
12908 | case `$LD -v 2>&1` in | |
12909 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
12910 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
12911 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
12912 | *) | |
12913 | lt_use_gnu_ld_interface=yes | |
12914 | ;; | |
12915 | esac | |
12916 | ;; | |
12917 | *) | |
12918 | lt_use_gnu_ld_interface=yes | |
12919 | ;; | |
12920 | esac | |
12921 | fi | |
12922 | ||
12923 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
12924 | # If archive_cmds runs LD, not CC, wlarc should be empty |
12925 | wlarc='${wl}' | |
12926 | ||
12927 | # Set some defaults for GNU ld with shared library support. These | |
12928 | # are reset later if shared libraries are not supported. Putting them | |
12929 | # here allows them to be overridden if necessary. | |
12930 | runpath_var=LD_RUN_PATH | |
12931 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
12932 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
12933 | # ancient GNU ld didn't support --whole-archive et. al. | |
12934 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
12935 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12936 | else | |
12937 | whole_archive_flag_spec_FC= | |
12938 | fi | |
12939 | supports_anon_versioning=no | |
12940 | case `$LD -v 2>&1` in | |
43e02a8a | 12941 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
12942 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
12943 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
12944 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
12945 | *\ 2.11.*) ;; # other 2.11 versions | |
12946 | *) supports_anon_versioning=yes ;; | |
12947 | esac | |
12948 | ||
12949 | # See if GNU ld supports shared libraries. | |
12950 | case $host_os in | |
d653fdfb | 12951 | aix[3-9]*) |
1cf3d07d SE |
12952 | # On AIX/PPC, the GNU linker is very broken |
12953 | if test "$host_cpu" != ia64; then | |
12954 | ld_shlibs_FC=no | |
12955 | cat <<_LT_EOF 1>&2 | |
12956 | ||
43e02a8a | 12957 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
12958 | *** to be unable to reliably create shared libraries on AIX. |
12959 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
12960 | *** really care for shared libraries, you may want to install binutils |
12961 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
12962 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
12963 | |
12964 | _LT_EOF | |
12965 | fi | |
12966 | ;; | |
12967 | ||
12968 | amigaos*) | |
6b4a97ed PG |
12969 | case $host_cpu in |
12970 | powerpc) | |
12971 | # see comment about AmigaOS4 .so support | |
12972 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12973 | archive_expsym_cmds_FC='' | |
12974 | ;; | |
12975 | m68k) | |
12976 | 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)' | |
12977 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
12978 | hardcode_minus_L_FC=yes | |
12979 | ;; | |
12980 | esac | |
1cf3d07d SE |
12981 | ;; |
12982 | ||
12983 | beos*) | |
12984 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12985 | allow_undefined_flag_FC=unsupported | |
12986 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12987 | # support --undefined. This deserves some investigation. FIXME | |
12988 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12989 | else | |
12990 | ld_shlibs_FC=no | |
12991 | fi | |
12992 | ;; | |
12993 | ||
6b4a97ed | 12994 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12995 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
12996 | # as there is no search path for DLLs. | |
12997 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
43e02a8a | 12998 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
1cf3d07d SE |
12999 | allow_undefined_flag_FC=unsupported |
13000 | always_export_symbols_FC=no | |
13001 | enable_shared_with_static_runtimes_FC=yes | |
13002 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
13003 | ||
13004 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13005 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13006 | # If the export-symbols file already is a .def file (1st line | |
13007 | # is EXPORTS), use it as is; otherwise, prepend... | |
13008 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13009 | cp $export_symbols $output_objdir/$soname.def; | |
13010 | else | |
13011 | echo EXPORTS > $output_objdir/$soname.def; | |
13012 | cat $export_symbols >> $output_objdir/$soname.def; | |
13013 | fi~ | |
13014 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13015 | else | |
13016 | ld_shlibs_FC=no | |
13017 | fi | |
13018 | ;; | |
13019 | ||
43e02a8a RW |
13020 | haiku*) |
13021 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13022 | link_all_deplibs_FC=yes | |
13023 | ;; | |
13024 | ||
1cf3d07d SE |
13025 | interix[3-9]*) |
13026 | hardcode_direct_FC=no | |
13027 | hardcode_shlibpath_var_FC=no | |
13028 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
13029 | export_dynamic_flag_spec_FC='${wl}-E' | |
13030 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13031 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13032 | # default) and relocated if they conflict, which is a slow very memory | |
13033 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13034 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13035 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13036 | 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' | |
13037 | 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' | |
13038 | ;; | |
13039 | ||
7a9d3fe8 | 13040 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
13041 | tmp_diet=no |
13042 | if test "$host_os" = linux-dietlibc; then | |
13043 | case $cc_basename in | |
13044 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
13045 | esac | |
13046 | fi | |
13047 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
13048 | && test "$tmp_diet" = no | |
13049 | then | |
a699d672 | 13050 | tmp_addflag=' $pic_flag' |
6b4a97ed | 13051 | tmp_sharedflag='-shared' |
1cf3d07d SE |
13052 | case $cc_basename,$host_cpu in |
13053 | pgcc*) # Portland Group C compiler | |
43e02a8a | 13054 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
13055 | tmp_addflag=' $pic_flag' |
13056 | ;; | |
43e02a8a RW |
13057 | pgf77* | pgf90* | pgf95* | pgfortran*) |
13058 | # Portland Group f77 and f90 compilers | |
13059 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
1cf3d07d SE |
13060 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13061 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13062 | tmp_addflag=' -i_dynamic' ;; | |
13063 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13064 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13065 | ifc* | ifort*) # Intel Fortran compiler | |
13066 | tmp_addflag=' -nofor_main' ;; | |
6b4a97ed PG |
13067 | lf95*) # Lahey Fortran 8.1 |
13068 | whole_archive_flag_spec_FC= | |
13069 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 13070 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
6b4a97ed PG |
13071 | tmp_sharedflag='-qmkshrobj' |
13072 | tmp_addflag= ;; | |
43e02a8a RW |
13073 | nvcc*) # Cuda Compiler Driver 2.2 |
13074 | whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
13075 | compiler_needs_object_FC=yes | |
13076 | ;; | |
1cf3d07d SE |
13077 | esac |
13078 | case `$CC -V 2>&1 | sed 5q` in | |
13079 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 13080 | whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
13081 | compiler_needs_object_FC=yes |
13082 | tmp_sharedflag='-G' ;; | |
13083 | *Sun\ F*) # Sun Fortran 8.3 | |
13084 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
13085 | esac |
13086 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13087 | ||
13088 | if test "x$supports_anon_versioning" = xyes; then | |
13089 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
13090 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13091 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13092 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13093 | fi | |
6b4a97ed PG |
13094 | |
13095 | case $cc_basename in | |
43e02a8a | 13096 | xlf* | bgf* | bgxlf* | mpixlf*) |
6b4a97ed PG |
13097 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
13098 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
13099 | hardcode_libdir_flag_spec_FC= | |
13100 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
13101 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
13102 | if test "x$supports_anon_versioning" = xyes; then | |
13103 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
13104 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13105 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13106 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
13107 | fi | |
13108 | ;; | |
13109 | esac | |
1cf3d07d SE |
13110 | else |
13111 | ld_shlibs_FC=no | |
13112 | fi | |
13113 | ;; | |
13114 | ||
13115 | netbsd*) | |
13116 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13117 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13118 | wlarc= | |
13119 | else | |
13120 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13121 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13122 | fi | |
13123 | ;; | |
13124 | ||
13125 | solaris*) | |
13126 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
13127 | ld_shlibs_FC=no | |
13128 | cat <<_LT_EOF 1>&2 | |
13129 | ||
13130 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13131 | *** create shared libraries on Solaris systems. Therefore, libtool | |
13132 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13133 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
13134 | *** your PATH or compiler configuration so that the native linker is | |
13135 | *** used, and then restart. | |
13136 | ||
13137 | _LT_EOF | |
13138 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13139 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13140 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13141 | else | |
13142 | ld_shlibs_FC=no | |
13143 | fi | |
13144 | ;; | |
13145 | ||
13146 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
13147 | case `$LD -v 2>&1` in | |
13148 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
13149 | ld_shlibs_FC=no | |
13150 | cat <<_LT_EOF 1>&2 | |
13151 | ||
13152 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
13153 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
13154 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13155 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
13156 | *** your PATH or compiler configuration so that the native linker is | |
13157 | *** used, and then restart. | |
13158 | ||
13159 | _LT_EOF | |
13160 | ;; | |
13161 | *) | |
13162 | # For security reasons, it is highly recommended that you always | |
13163 | # use absolute paths for naming shared libraries, and exclude the | |
13164 | # DT_RUNPATH tag from executables and libraries. But doing so | |
13165 | # requires that you compile everything twice, which is a pain. | |
13166 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13167 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13168 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13169 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13170 | else | |
13171 | ld_shlibs_FC=no | |
13172 | fi | |
13173 | ;; | |
13174 | esac | |
13175 | ;; | |
13176 | ||
13177 | sunos4*) | |
13178 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13179 | wlarc= | |
13180 | hardcode_direct_FC=yes | |
13181 | hardcode_shlibpath_var_FC=no | |
13182 | ;; | |
13183 | ||
13184 | *) | |
13185 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13186 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13187 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13188 | else | |
13189 | ld_shlibs_FC=no | |
13190 | fi | |
13191 | ;; | |
13192 | esac | |
13193 | ||
13194 | if test "$ld_shlibs_FC" = no; then | |
13195 | runpath_var= | |
13196 | hardcode_libdir_flag_spec_FC= | |
13197 | export_dynamic_flag_spec_FC= | |
13198 | whole_archive_flag_spec_FC= | |
13199 | fi | |
13200 | else | |
13201 | # PORTME fill in a description of your system's linker (not GNU ld) | |
13202 | case $host_os in | |
13203 | aix3*) | |
13204 | allow_undefined_flag_FC=unsupported | |
13205 | always_export_symbols_FC=yes | |
13206 | 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' | |
13207 | # Note: this linker hardcodes the directories in LIBPATH if there | |
13208 | # are no directories specified by -L. | |
13209 | hardcode_minus_L_FC=yes | |
13210 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13211 | # Neither direct hardcoding nor static linking is supported with a | |
13212 | # broken collect2. | |
13213 | hardcode_direct_FC=unsupported | |
13214 | fi | |
13215 | ;; | |
13216 | ||
d653fdfb | 13217 | aix[4-9]*) |
1cf3d07d SE |
13218 | if test "$host_cpu" = ia64; then |
13219 | # On IA64, the linker does run time linking by default, so we don't | |
13220 | # have to do anything special. | |
13221 | aix_use_runtimelinking=no | |
13222 | exp_sym_flag='-Bexport' | |
13223 | no_entry_flag="" | |
13224 | else | |
13225 | # If we're using GNU nm, then we don't want the "-C" option. | |
13226 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
13227 | # Also, AIX nm treats weak defined symbols like other global |
13228 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 13229 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 13230 | export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d | 13231 | else |
3e0fb1a3 | 13232 | export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d SE |
13233 | fi |
13234 | aix_use_runtimelinking=no | |
13235 | ||
13236 | # Test if we are trying to use run time linking or normal | |
13237 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13238 | # need to do runtime linking. | |
d653fdfb | 13239 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
13240 | for ld_flag in $LDFLAGS; do |
13241 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13242 | aix_use_runtimelinking=yes | |
13243 | break | |
13244 | fi | |
13245 | done | |
13246 | ;; | |
13247 | esac | |
13248 | ||
13249 | exp_sym_flag='-bexport' | |
13250 | no_entry_flag='-bnoentry' | |
13251 | fi | |
13252 | ||
13253 | # When large executables or shared objects are built, AIX ld can | |
13254 | # have problems creating the table of contents. If linking a library | |
13255 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13256 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13257 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13258 | ||
13259 | archive_cmds_FC='' | |
13260 | hardcode_direct_FC=yes | |
13261 | hardcode_direct_absolute_FC=yes | |
13262 | hardcode_libdir_separator_FC=':' | |
13263 | link_all_deplibs_FC=yes | |
13264 | file_list_spec_FC='${wl}-f,' | |
13265 | ||
13266 | if test "$GCC" = yes; then | |
13267 | case $host_os in aix4.[012]|aix4.[012].*) | |
13268 | # We only want to do this on AIX 4.2 and lower, the check | |
13269 | # below for broken collect2 doesn't work under 4.3+ | |
13270 | collect2name=`${CC} -print-prog-name=collect2` | |
13271 | if test -f "$collect2name" && | |
13272 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13273 | then | |
13274 | # We have reworked collect2 | |
13275 | : | |
13276 | else | |
13277 | # We have old collect2 | |
13278 | hardcode_direct_FC=unsupported | |
13279 | # It fails to find uninstalled libraries when the uninstalled | |
13280 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13281 | # to unsupported forces relinking | |
13282 | hardcode_minus_L_FC=yes | |
13283 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13284 | hardcode_libdir_separator_FC= | |
13285 | fi | |
13286 | ;; | |
13287 | esac | |
13288 | shared_flag='-shared' | |
13289 | if test "$aix_use_runtimelinking" = yes; then | |
13290 | shared_flag="$shared_flag "'${wl}-G' | |
13291 | fi | |
13292 | else | |
13293 | # not using gcc | |
13294 | if test "$host_cpu" = ia64; then | |
13295 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13296 | # chokes on -Wl,-G. The following line is correct: | |
13297 | shared_flag='-G' | |
13298 | else | |
13299 | if test "$aix_use_runtimelinking" = yes; then | |
13300 | shared_flag='${wl}-G' | |
13301 | else | |
13302 | shared_flag='${wl}-bM:SRE' | |
13303 | fi | |
13304 | fi | |
13305 | fi | |
13306 | ||
6b4a97ed | 13307 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
13308 | # It seems that -bexpall does not export symbols beginning with |
13309 | # underscore (_), so it is better to generate a list of symbols to export. | |
13310 | always_export_symbols_FC=yes | |
13311 | if test "$aix_use_runtimelinking" = yes; then | |
13312 | # Warning - without using the other runtime loading flags (-brtl), | |
13313 | # -berok will link without error, but may produce a broken library. | |
13314 | allow_undefined_flag_FC='-berok' | |
13315 | # Determine the default libpath from the value encoded in an | |
13316 | # empty executable. | |
5213506e | 13317 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13318 | program main |
13319 | ||
13320 | end | |
13321 | _ACEOF | |
5213506e | 13322 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
13323 | |
13324 | lt_aix_libpath_sed=' | |
13325 | /Import File Strings/,/^$/ { | |
13326 | /^0/ { | |
13327 | s/^0 *\(.*\)$/\1/ | |
13328 | p | |
13329 | } | |
13330 | }' | |
13331 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13332 | # Check for a 64-bit object if we didn't find anything. | |
13333 | if test -z "$aix_libpath"; then | |
13334 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13335 | fi | |
1cf3d07d | 13336 | fi |
5213506e RW |
13337 | rm -f core conftest.err conftest.$ac_objext \ |
13338 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13339 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13340 | ||
13341 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 13342 | archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1cf3d07d SE |
13343 | else |
13344 | if test "$host_cpu" = ia64; then | |
13345 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
13346 | allow_undefined_flag_FC="-z nodefs" | |
13347 | 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" | |
13348 | else | |
13349 | # Determine the default libpath from the value encoded in an | |
13350 | # empty executable. | |
5213506e | 13351 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13352 | program main |
13353 | ||
13354 | end | |
13355 | _ACEOF | |
5213506e | 13356 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
13357 | |
13358 | lt_aix_libpath_sed=' | |
13359 | /Import File Strings/,/^$/ { | |
13360 | /^0/ { | |
13361 | s/^0 *\(.*\)$/\1/ | |
13362 | p | |
13363 | } | |
13364 | }' | |
13365 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13366 | # Check for a 64-bit object if we didn't find anything. | |
13367 | if test -z "$aix_libpath"; then | |
13368 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13369 | fi | |
1cf3d07d | 13370 | fi |
5213506e RW |
13371 | rm -f core conftest.err conftest.$ac_objext \ |
13372 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13373 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
13374 | ||
13375 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13376 | # Warning - without using the other run time loading flags, | |
13377 | # -berok will link without error, but may produce a broken library. | |
13378 | no_undefined_flag_FC=' ${wl}-bernotok' | |
13379 | allow_undefined_flag_FC=' ${wl}-berok' | |
43e02a8a RW |
13380 | if test "$with_gnu_ld" = yes; then |
13381 | # We only use this code for GNU lds that support --whole-archive. | |
13382 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13383 | else | |
13384 | # Exported symbols can be pulled into shared objects from archives | |
13385 | whole_archive_flag_spec_FC='$convenience' | |
13386 | fi | |
1cf3d07d SE |
13387 | archive_cmds_need_lc_FC=yes |
13388 | # This is similar to how AIX traditionally builds its shared libraries. | |
13389 | 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' | |
13390 | fi | |
13391 | fi | |
953ff289 | 13392 | ;; |
1cf3d07d SE |
13393 | |
13394 | amigaos*) | |
6b4a97ed PG |
13395 | case $host_cpu in |
13396 | powerpc) | |
13397 | # see comment about AmigaOS4 .so support | |
13398 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13399 | archive_expsym_cmds_FC='' | |
13400 | ;; | |
13401 | m68k) | |
13402 | 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)' | |
13403 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13404 | hardcode_minus_L_FC=yes | |
13405 | ;; | |
13406 | esac | |
953ff289 | 13407 | ;; |
1cf3d07d SE |
13408 | |
13409 | bsdi[45]*) | |
13410 | export_dynamic_flag_spec_FC=-rdynamic | |
953ff289 | 13411 | ;; |
1cf3d07d | 13412 | |
6b4a97ed | 13413 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
13414 | # When not using gcc, we currently assume that we are using |
13415 | # Microsoft Visual C++. | |
13416 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13417 | # no search path for DLLs. | |
13418 | hardcode_libdir_flag_spec_FC=' ' | |
13419 | allow_undefined_flag_FC=unsupported | |
13420 | # Tell ltmain to make .lib files, not .a files. | |
13421 | libext=lib | |
13422 | # Tell ltmain to make .dll files, not .so files. | |
13423 | shrext_cmds=".dll" | |
13424 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 13425 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
13426 | # The linker will automatically build a .lib file if we build a DLL. |
13427 | old_archive_from_new_cmds_FC='true' | |
13428 | # FIXME: Should let the user specify the lib program. | |
13429 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
13430 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
13431 | enable_shared_with_static_runtimes_FC=yes | |
953ff289 | 13432 | ;; |
1cf3d07d SE |
13433 | |
13434 | darwin* | rhapsody*) | |
1cf3d07d | 13435 | |
6b4a97ed PG |
13436 | |
13437 | archive_cmds_need_lc_FC=no | |
13438 | hardcode_direct_FC=no | |
13439 | hardcode_automatic_FC=yes | |
13440 | hardcode_shlibpath_var_FC=unsupported | |
43e02a8a RW |
13441 | if test "$lt_cv_ld_force_load" = "yes"; then |
13442 | whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13443 | else | |
13444 | whole_archive_flag_spec_FC='' | |
13445 | fi | |
6b4a97ed PG |
13446 | link_all_deplibs_FC=yes |
13447 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
13448 | case $cc_basename in | |
13449 | ifort*) _lt_dar_can_shared=yes ;; | |
13450 | *) _lt_dar_can_shared=$GCC ;; | |
13451 | esac | |
13452 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 13453 | output_verbose_link_cmd=func_echo_all |
6b4a97ed PG |
13454 | 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}" |
13455 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13456 | 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}" | |
13457 | 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}" | |
13458 | ||
13459 | else | |
13460 | ld_shlibs_FC=no | |
13461 | fi | |
13462 | ||
953ff289 | 13463 | ;; |
1cf3d07d SE |
13464 | |
13465 | dgux*) | |
13466 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13467 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13468 | hardcode_shlibpath_var_FC=no | |
953ff289 | 13469 | ;; |
953ff289 | 13470 | |
1cf3d07d SE |
13471 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
13472 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
13473 | # does not break anything, and helps significantly (at the cost of a little | |
13474 | # extra space). | |
13475 | freebsd2.2*) | |
13476 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
13477 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13478 | hardcode_direct_FC=yes | |
13479 | hardcode_shlibpath_var_FC=no | |
953ff289 | 13480 | ;; |
953ff289 | 13481 | |
1cf3d07d | 13482 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
c6084f68 | 13483 | freebsd2.*) |
1cf3d07d SE |
13484 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13485 | hardcode_direct_FC=yes | |
13486 | hardcode_minus_L_FC=yes | |
13487 | hardcode_shlibpath_var_FC=no | |
13488 | ;; | |
13489 | ||
13490 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
13491 | freebsd* | dragonfly*) | |
13492 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13493 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13494 | hardcode_direct_FC=yes | |
13495 | hardcode_shlibpath_var_FC=no | |
13496 | ;; | |
13497 | ||
13498 | hpux9*) | |
13499 | if test "$GCC" = yes; then | |
13500 | 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' | |
13501 | else | |
13502 | 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' | |
13503 | fi | |
13504 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13505 | hardcode_libdir_separator_FC=: | |
13506 | hardcode_direct_FC=yes | |
13507 | ||
13508 | # hardcode_minus_L: Not really in the search PATH, | |
13509 | # but as the default location of the library. | |
13510 | hardcode_minus_L_FC=yes | |
13511 | export_dynamic_flag_spec_FC='${wl}-E' | |
13512 | ;; | |
13513 | ||
13514 | hpux10*) | |
43e02a8a | 13515 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
13516 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
13517 | else | |
13518 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
13519 | fi | |
13520 | if test "$with_gnu_ld" = no; then | |
13521 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13522 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
13523 | hardcode_libdir_separator_FC=: | |
13524 | hardcode_direct_FC=yes | |
13525 | hardcode_direct_absolute_FC=yes | |
13526 | export_dynamic_flag_spec_FC='${wl}-E' | |
13527 | # hardcode_minus_L: Not really in the search PATH, | |
13528 | # but as the default location of the library. | |
13529 | hardcode_minus_L_FC=yes | |
13530 | fi | |
13531 | ;; | |
13532 | ||
13533 | hpux11*) | |
43e02a8a | 13534 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
13535 | case $host_cpu in |
13536 | hppa*64*) | |
13537 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13538 | ;; | |
13539 | ia64*) | |
6b4a97ed | 13540 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
13541 | ;; |
13542 | *) | |
13543 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13544 | ;; | |
13545 | esac | |
13546 | else | |
13547 | case $host_cpu in | |
13548 | hppa*64*) | |
13549 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13550 | ;; | |
13551 | ia64*) | |
13552 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
13553 | ;; | |
13554 | *) | |
43e02a8a | 13555 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
13556 | ;; |
13557 | esac | |
13558 | fi | |
13559 | if test "$with_gnu_ld" = no; then | |
13560 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
13561 | hardcode_libdir_separator_FC=: | |
13562 | ||
13563 | case $host_cpu in | |
13564 | hppa*64*|ia64*) | |
13565 | hardcode_direct_FC=no | |
13566 | hardcode_shlibpath_var_FC=no | |
13567 | ;; | |
13568 | *) | |
13569 | hardcode_direct_FC=yes | |
13570 | hardcode_direct_absolute_FC=yes | |
13571 | export_dynamic_flag_spec_FC='${wl}-E' | |
13572 | ||
13573 | # hardcode_minus_L: Not really in the search PATH, | |
13574 | # but as the default location of the library. | |
13575 | hardcode_minus_L_FC=yes | |
13576 | ;; | |
13577 | esac | |
13578 | fi | |
13579 | ;; | |
13580 | ||
13581 | irix5* | irix6* | nonstopux*) | |
13582 | if test "$GCC" = yes; then | |
43e02a8a | 13583 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
13584 | # Try to use the -exported_symbol ld option, if it does not |
13585 | # work, assume that -exports_file does not work either and | |
13586 | # implicitly export all symbols. | |
13587 | save_LDFLAGS="$LDFLAGS" | |
13588 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
5213506e | 13589 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13590 | int foo(void) {} |
13591 | _ACEOF | |
5213506e | 13592 | if ac_fn_fc_try_link "$LINENO"; then : |
43e02a8a | 13593 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
1cf3d07d | 13594 | |
1cf3d07d | 13595 | fi |
5213506e RW |
13596 | rm -f core conftest.err conftest.$ac_objext \ |
13597 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13598 | LDFLAGS="$save_LDFLAGS" |
13599 | else | |
43e02a8a RW |
13600 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
13601 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
1cf3d07d SE |
13602 | fi |
13603 | archive_cmds_need_lc_FC='no' | |
13604 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13605 | hardcode_libdir_separator_FC=: | |
13606 | inherit_rpath_FC=yes | |
13607 | link_all_deplibs_FC=yes | |
13608 | ;; | |
13609 | ||
13610 | netbsd*) | |
13611 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13612 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
13613 | else | |
13614 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
13615 | fi | |
13616 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13617 | hardcode_direct_FC=yes | |
13618 | hardcode_shlibpath_var_FC=no | |
13619 | ;; | |
13620 | ||
13621 | newsos6) | |
13622 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13623 | hardcode_direct_FC=yes | |
13624 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13625 | hardcode_libdir_separator_FC=: | |
13626 | hardcode_shlibpath_var_FC=no | |
13627 | ;; | |
13628 | ||
13629 | *nto* | *qnx*) | |
13630 | ;; | |
13631 | ||
13632 | openbsd*) | |
6b4a97ed PG |
13633 | if test -f /usr/libexec/ld.so; then |
13634 | hardcode_direct_FC=yes | |
13635 | hardcode_shlibpath_var_FC=no | |
13636 | hardcode_direct_absolute_FC=yes | |
13637 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 13638 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6b4a97ed | 13639 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 13640 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
6b4a97ed PG |
13641 | export_dynamic_flag_spec_FC='${wl}-E' |
13642 | else | |
13643 | case $host_os in | |
13644 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
13645 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13646 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13647 | ;; | |
13648 | *) | |
13649 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
13650 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
13651 | ;; | |
13652 | esac | |
13653 | fi | |
13654 | else | |
13655 | ld_shlibs_FC=no | |
1cf3d07d SE |
13656 | fi |
13657 | ;; | |
13658 | ||
13659 | os2*) | |
13660 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13661 | hardcode_minus_L_FC=yes | |
13662 | allow_undefined_flag_FC=unsupported | |
43e02a8a | 13663 | 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' |
1cf3d07d SE |
13664 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
13665 | ;; | |
13666 | ||
13667 | osf3*) | |
13668 | if test "$GCC" = yes; then | |
13669 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 13670 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
13671 | else |
13672 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 13673 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
13674 | fi |
13675 | archive_cmds_need_lc_FC='no' | |
13676 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13677 | hardcode_libdir_separator_FC=: | |
13678 | ;; | |
13679 | ||
13680 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
13681 | if test "$GCC" = yes; then | |
13682 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 13683 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
13684 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
13685 | else | |
13686 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 13687 | archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d | 13688 | 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~ |
43e02a8a | 13689 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
1cf3d07d SE |
13690 | |
13691 | # Both c and cxx compiler support -rpath directly | |
13692 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
13693 | fi | |
13694 | archive_cmds_need_lc_FC='no' | |
13695 | hardcode_libdir_separator_FC=: | |
13696 | ;; | |
13697 | ||
13698 | solaris*) | |
13699 | no_undefined_flag_FC=' -z defs' | |
13700 | if test "$GCC" = yes; then | |
13701 | wlarc='${wl}' | |
13702 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13703 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13704 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13705 | else | |
13706 | case `$CC -V 2>&1` in | |
13707 | *"Compilers 5.0"*) | |
13708 | wlarc='' | |
13709 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13710 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13711 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
13712 | ;; | |
13713 | *) | |
13714 | wlarc='${wl}' | |
13715 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13716 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13717 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13718 | ;; | |
13719 | esac | |
13720 | fi | |
13721 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
13722 | hardcode_shlibpath_var_FC=no | |
13723 | case $host_os in | |
13724 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13725 | *) | |
13726 | # The compiler driver will combine and reorder linker options, | |
13727 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
13728 | # but is careful enough not to reorder. | |
13729 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13730 | if test "$GCC" = yes; then | |
13731 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13732 | else | |
13733 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
13734 | fi | |
13735 | ;; | |
13736 | esac | |
13737 | link_all_deplibs_FC=yes | |
13738 | ;; | |
13739 | ||
13740 | sunos4*) | |
13741 | if test "x$host_vendor" = xsequent; then | |
13742 | # Use $CC to link under sequent, because it throws in some extra .o | |
13743 | # files that make .init and .fini sections work. | |
13744 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13745 | else | |
13746 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
13747 | fi | |
13748 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13749 | hardcode_direct_FC=yes | |
13750 | hardcode_minus_L_FC=yes | |
13751 | hardcode_shlibpath_var_FC=no | |
13752 | ;; | |
13753 | ||
13754 | sysv4) | |
13755 | case $host_vendor in | |
13756 | sni) | |
13757 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13758 | hardcode_direct_FC=yes # is this really true??? | |
13759 | ;; | |
13760 | siemens) | |
13761 | ## LD is ld it makes a PLAMLIB | |
13762 | ## CC just makes a GrossModule. | |
13763 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
13764 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
13765 | hardcode_direct_FC=no | |
13766 | ;; | |
13767 | motorola) | |
13768 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13769 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
13770 | ;; | |
953ff289 | 13771 | esac |
1cf3d07d SE |
13772 | runpath_var='LD_RUN_PATH' |
13773 | hardcode_shlibpath_var_FC=no | |
13774 | ;; | |
13775 | ||
13776 | sysv4.3*) | |
13777 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13778 | hardcode_shlibpath_var_FC=no | |
13779 | export_dynamic_flag_spec_FC='-Bexport' | |
13780 | ;; | |
13781 | ||
13782 | sysv4*MP*) | |
13783 | if test -d /usr/nec; then | |
13784 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13785 | hardcode_shlibpath_var_FC=no | |
13786 | runpath_var=LD_RUN_PATH | |
13787 | hardcode_runpath_var=yes | |
13788 | ld_shlibs_FC=yes | |
13789 | fi | |
13790 | ;; | |
13791 | ||
13792 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13793 | no_undefined_flag_FC='${wl}-z,text' | |
13794 | archive_cmds_need_lc_FC=no | |
13795 | hardcode_shlibpath_var_FC=no | |
13796 | runpath_var='LD_RUN_PATH' | |
13797 | ||
13798 | if test "$GCC" = yes; then | |
13799 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13800 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13801 | else | |
13802 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13803 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13804 | fi | |
13805 | ;; | |
13806 | ||
13807 | sysv5* | sco3.2v5* | sco5v6*) | |
13808 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13809 | # link with -lc, and that would cause any symbols used from libc to | |
13810 | # always be unresolved, which means just about no library would | |
13811 | # ever link correctly. If we're not using GNU ld we use -z text | |
13812 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13813 | # as -z defs. | |
13814 | no_undefined_flag_FC='${wl}-z,text' | |
13815 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
13816 | archive_cmds_need_lc_FC=no | |
13817 | hardcode_shlibpath_var_FC=no | |
13818 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
13819 | hardcode_libdir_separator_FC=':' | |
13820 | link_all_deplibs_FC=yes | |
13821 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
13822 | runpath_var='LD_RUN_PATH' | |
13823 | ||
13824 | if test "$GCC" = yes; then | |
13825 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13826 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13827 | else | |
13828 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13829 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13830 | fi | |
13831 | ;; | |
13832 | ||
13833 | uts4*) | |
13834 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13835 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13836 | hardcode_shlibpath_var_FC=no | |
13837 | ;; | |
13838 | ||
13839 | *) | |
13840 | ld_shlibs_FC=no | |
953ff289 | 13841 | ;; |
1cf3d07d SE |
13842 | esac |
13843 | ||
13844 | if test x$host_vendor = xsni; then | |
953ff289 | 13845 | case $host in |
1cf3d07d SE |
13846 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13847 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
13848 | ;; | |
953ff289 | 13849 | esac |
1cf3d07d | 13850 | fi |
953ff289 | 13851 | fi |
953ff289 | 13852 | |
5213506e RW |
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
13854 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d | 13855 | test "$ld_shlibs_FC" = no && can_build_shared=no |
953ff289 | 13856 | |
1cf3d07d | 13857 | with_gnu_ld_FC=$with_gnu_ld |
953ff289 | 13858 | |
953ff289 | 13859 | |
953ff289 | 13860 | |
953ff289 | 13861 | |
1cf3d07d SE |
13862 | |
13863 | ||
13864 | # | |
13865 | # Do we need to explicitly link libc? | |
13866 | # | |
13867 | case "x$archive_cmds_need_lc_FC" in | |
13868 | x|xyes) | |
13869 | # Assume -lc should be added | |
13870 | archive_cmds_need_lc_FC=yes | |
13871 | ||
13872 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13873 | case $archive_cmds_FC in | |
13874 | *'~'*) | |
13875 | # FIXME: we may have to deal with multi-command sequences. | |
13876 | ;; | |
13877 | '$CC '*) | |
13878 | # Test whether the compiler implicitly links with -lc since on some | |
13879 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13880 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
13881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
13882 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 13883 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
5213506e | 13884 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
13885 | else |
13886 | $RM conftest* | |
13887 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 13888 | |
5213506e | 13889 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d | 13890 | (eval $ac_compile) 2>&5 |
953ff289 | 13891 | ac_status=$? |
5213506e RW |
13892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13893 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
13894 | soname=conftest |
13895 | lib=conftest | |
13896 | libobjs=conftest.$ac_objext | |
13897 | deplibs= | |
13898 | wl=$lt_prog_compiler_wl_FC | |
13899 | pic_flag=$lt_prog_compiler_pic_FC | |
13900 | compiler_flags=-v | |
13901 | linker_flags=-v | |
13902 | verstring= | |
13903 | output_objdir=. | |
13904 | libname=conftest | |
13905 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
13906 | allow_undefined_flag_FC= | |
5213506e | 13907 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 13908 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
953ff289 | 13909 | ac_status=$? |
5213506e RW |
13910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13911 | test $ac_status = 0; } | |
baafc534 RW |
13912 | then |
13913 | lt_cv_archive_cmds_need_lc_FC=no | |
13914 | else | |
13915 | lt_cv_archive_cmds_need_lc_FC=yes | |
13916 | fi | |
13917 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
13918 | else | |
13919 | cat conftest.err 1>&5 | |
13920 | fi | |
13921 | $RM conftest* | |
13922 | ||
13923 | fi | |
5213506e RW |
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
13925 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 13926 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
13927 | ;; |
13928 | esac | |
953ff289 DN |
13929 | fi |
13930 | ;; | |
1cf3d07d SE |
13931 | esac |
13932 | ||
953ff289 DN |
13933 | |
13934 | ||
953ff289 DN |
13935 | |
13936 | ||
953ff289 | 13937 | |
953ff289 | 13938 | |
953ff289 | 13939 | |
953ff289 | 13940 | |
953ff289 DN |
13941 | |
13942 | ||
953ff289 | 13943 | |
953ff289 | 13944 | |
953ff289 DN |
13945 | |
13946 | ||
13947 | ||
13948 | ||
13949 | ||
13950 | ||
13951 | ||
13952 | ||
13953 | ||
c41303c6 RH |
13954 | |
13955 | ||
c41303c6 | 13956 | |
c41303c6 RH |
13957 | |
13958 | ||
13959 | ||
953ff289 | 13960 | |
953ff289 | 13961 | |
953ff289 | 13962 | |
953ff289 | 13963 | |
953ff289 | 13964 | |
953ff289 DN |
13965 | |
13966 | ||
953ff289 | 13967 | |
953ff289 | 13968 | |
953ff289 | 13969 | |
953ff289 | 13970 | |
953ff289 | 13971 | |
953ff289 | 13972 | |
953ff289 | 13973 | |
1cf3d07d SE |
13974 | |
13975 | ||
13976 | ||
13977 | ||
13978 | ||
13979 | ||
13980 | ||
13981 | ||
13982 | ||
13983 | ||
13984 | ||
13985 | ||
13986 | ||
13987 | ||
13988 | ||
13989 | ||
13990 | ||
13991 | ||
13992 | ||
13993 | ||
13994 | ||
13995 | ||
5213506e RW |
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
13997 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
6b4a97ed | 13998 | |
1cf3d07d SE |
13999 | library_names_spec= |
14000 | libname_spec='lib$name' | |
14001 | soname_spec= | |
14002 | shrext_cmds=".so" | |
14003 | postinstall_cmds= | |
14004 | postuninstall_cmds= | |
14005 | finish_cmds= | |
14006 | finish_eval= | |
14007 | shlibpath_var= | |
14008 | shlibpath_overrides_runpath=unknown | |
14009 | version_type=none | |
14010 | dynamic_linker="$host_os ld.so" | |
14011 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14012 | need_lib_prefix=unknown | |
14013 | hardcode_into_libs=no | |
14014 | ||
14015 | # when you set need_version to no, make sure it does not cause -set_version | |
14016 | # flags to be left without arguments | |
14017 | need_version=unknown | |
14018 | ||
14019 | case $host_os in | |
14020 | aix3*) | |
14021 | version_type=linux | |
14022 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14023 | shlibpath_var=LIBPATH | |
14024 | ||
14025 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14026 | soname_spec='${libname}${release}${shared_ext}$major' | |
14027 | ;; | |
14028 | ||
d653fdfb | 14029 | aix[4-9]*) |
1cf3d07d SE |
14030 | version_type=linux |
14031 | need_lib_prefix=no | |
14032 | need_version=no | |
14033 | hardcode_into_libs=yes | |
14034 | if test "$host_cpu" = ia64; then | |
14035 | # AIX 5 supports IA64 | |
14036 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14037 | shlibpath_var=LD_LIBRARY_PATH | |
953ff289 | 14038 | else |
1cf3d07d SE |
14039 | # With GCC up to 2.95.x, collect2 would create an import file |
14040 | # for dependence libraries. The import file would start with | |
14041 | # the line `#! .'. This would cause the generated library to | |
14042 | # depend on `.', always an invalid library. This was fixed in | |
14043 | # development snapshots of GCC prior to 3.0. | |
14044 | case $host_os in | |
14045 | aix4 | aix4.[01] | aix4.[01].*) | |
14046 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14047 | echo ' yes ' | |
14048 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14049 | : | |
14050 | else | |
14051 | can_build_shared=no | |
14052 | fi | |
14053 | ;; | |
14054 | esac | |
14055 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14056 | # soname into executable. Probably we can add versioning support to | |
14057 | # collect2, so additional links can be useful in future. | |
14058 | if test "$aix_use_runtimelinking" = yes; then | |
14059 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14060 | # instead of lib<name>.a to let people know that these are not | |
14061 | # typical AIX shared libraries. | |
14062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14063 | else | |
14064 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14065 | # and later when we are not doing run time linking. | |
14066 | library_names_spec='${libname}${release}.a $libname.a' | |
14067 | soname_spec='${libname}${release}${shared_ext}$major' | |
14068 | fi | |
14069 | shlibpath_var=LIBPATH | |
953ff289 | 14070 | fi |
1cf3d07d SE |
14071 | ;; |
14072 | ||
14073 | amigaos*) | |
6b4a97ed PG |
14074 | case $host_cpu in |
14075 | powerpc) | |
14076 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14077 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14079 | ;; | |
14080 | m68k) | |
1cf3d07d SE |
14081 | library_names_spec='$libname.ixlibrary $libname.a' |
14082 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 14083 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
6b4a97ed PG |
14084 | ;; |
14085 | esac | |
1cf3d07d | 14086 | ;; |
953ff289 | 14087 | |
1cf3d07d SE |
14088 | beos*) |
14089 | library_names_spec='${libname}${shared_ext}' | |
14090 | dynamic_linker="$host_os ld.so" | |
14091 | shlibpath_var=LIBRARY_PATH | |
14092 | ;; | |
953ff289 | 14093 | |
1cf3d07d SE |
14094 | bsdi[45]*) |
14095 | version_type=linux | |
14096 | need_version=no | |
14097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14098 | soname_spec='${libname}${release}${shared_ext}$major' | |
14099 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14100 | shlibpath_var=LD_LIBRARY_PATH | |
14101 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14102 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14103 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14104 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14105 | # libtool to hard-code these into programs | |
14106 | ;; | |
953ff289 | 14107 | |
6b4a97ed | 14108 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14109 | version_type=windows |
14110 | shrext_cmds=".dll" | |
14111 | need_version=no | |
14112 | need_lib_prefix=no | |
14113 | ||
6b4a97ed PG |
14114 | case $GCC,$host_os in |
14115 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
14116 | library_names_spec='$libname.dll.a' |
14117 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14118 | postinstall_cmds='base_file=`basename \${file}`~ | |
14119 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14120 | dldir=$destdir/`dirname \$dlpath`~ | |
14121 | test -d \$dldir || mkdir -p \$dldir~ | |
14122 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14123 | chmod a+x \$dldir/$dlname~ | |
14124 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14125 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14126 | fi' | |
14127 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14128 | dlpath=$dir/\$dldll~ | |
14129 | $RM \$dlpath' | |
14130 | shlibpath_overrides_runpath=yes | |
14131 | ||
14132 | case $host_os in | |
14133 | cygwin*) | |
14134 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14135 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 14136 | |
1cf3d07d | 14137 | ;; |
6b4a97ed | 14138 | mingw* | cegcc*) |
1cf3d07d SE |
14139 | # MinGW DLLs use traditional 'lib' prefix |
14140 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
14141 | ;; |
14142 | pw32*) | |
14143 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14144 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14145 | ;; | |
14146 | esac | |
14147 | ;; | |
953ff289 | 14148 | |
1cf3d07d SE |
14149 | *) |
14150 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14151 | ;; | |
14152 | esac | |
14153 | dynamic_linker='Win32 ld.exe' | |
14154 | # FIXME: first we should search . and the directory the executable is in | |
14155 | shlibpath_var=PATH | |
14156 | ;; | |
953ff289 | 14157 | |
1cf3d07d SE |
14158 | darwin* | rhapsody*) |
14159 | dynamic_linker="$host_os dyld" | |
14160 | version_type=darwin | |
14161 | need_lib_prefix=no | |
14162 | need_version=no | |
14163 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14164 | soname_spec='${libname}${release}${major}$shared_ext' | |
14165 | shlibpath_overrides_runpath=yes | |
14166 | shlibpath_var=DYLD_LIBRARY_PATH | |
14167 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14168 | ||
14169 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14170 | ;; | |
14171 | ||
14172 | dgux*) | |
14173 | version_type=linux | |
14174 | need_lib_prefix=no | |
14175 | need_version=no | |
14176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14177 | soname_spec='${libname}${release}${shared_ext}$major' | |
14178 | shlibpath_var=LD_LIBRARY_PATH | |
14179 | ;; | |
14180 | ||
1cf3d07d SE |
14181 | freebsd* | dragonfly*) |
14182 | # DragonFly does not have aout. When/if they implement a new | |
14183 | # versioning mechanism, adjust this. | |
14184 | if test -x /usr/bin/objformat; then | |
14185 | objformat=`/usr/bin/objformat` | |
953ff289 | 14186 | else |
1cf3d07d | 14187 | case $host_os in |
c6084f68 | 14188 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
14189 | *) objformat=elf ;; |
14190 | esac | |
953ff289 | 14191 | fi |
1cf3d07d SE |
14192 | version_type=freebsd-$objformat |
14193 | case $version_type in | |
14194 | freebsd-elf*) | |
14195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14196 | need_version=no | |
14197 | need_lib_prefix=no | |
14198 | ;; | |
14199 | freebsd-*) | |
14200 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14201 | need_version=yes | |
14202 | ;; | |
14203 | esac | |
14204 | shlibpath_var=LD_LIBRARY_PATH | |
14205 | case $host_os in | |
c6084f68 | 14206 | freebsd2.*) |
1cf3d07d SE |
14207 | shlibpath_overrides_runpath=yes |
14208 | ;; | |
14209 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14210 | shlibpath_overrides_runpath=yes | |
14211 | hardcode_into_libs=yes | |
14212 | ;; | |
14213 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14214 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14215 | shlibpath_overrides_runpath=no | |
14216 | hardcode_into_libs=yes | |
14217 | ;; | |
14218 | *) # from 4.6 on, and DragonFly | |
14219 | shlibpath_overrides_runpath=yes | |
14220 | hardcode_into_libs=yes | |
14221 | ;; | |
14222 | esac | |
14223 | ;; | |
953ff289 | 14224 | |
1cf3d07d SE |
14225 | gnu*) |
14226 | version_type=linux | |
14227 | need_lib_prefix=no | |
14228 | need_version=no | |
14229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14230 | soname_spec='${libname}${release}${shared_ext}$major' | |
14231 | shlibpath_var=LD_LIBRARY_PATH | |
14232 | hardcode_into_libs=yes | |
14233 | ;; | |
953ff289 | 14234 | |
43e02a8a RW |
14235 | haiku*) |
14236 | version_type=linux | |
14237 | need_lib_prefix=no | |
14238 | need_version=no | |
14239 | dynamic_linker="$host_os runtime_loader" | |
14240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14241 | soname_spec='${libname}${release}${shared_ext}$major' | |
14242 | shlibpath_var=LIBRARY_PATH | |
14243 | shlibpath_overrides_runpath=yes | |
14244 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14245 | hardcode_into_libs=yes | |
14246 | ;; | |
14247 | ||
1cf3d07d SE |
14248 | hpux9* | hpux10* | hpux11*) |
14249 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14250 | # link against other versions. | |
14251 | version_type=sunos | |
14252 | need_lib_prefix=no | |
14253 | need_version=no | |
14254 | case $host_cpu in | |
14255 | ia64*) | |
14256 | shrext_cmds='.so' | |
14257 | hardcode_into_libs=yes | |
14258 | dynamic_linker="$host_os dld.so" | |
14259 | shlibpath_var=LD_LIBRARY_PATH | |
14260 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14262 | soname_spec='${libname}${release}${shared_ext}$major' | |
14263 | if test "X$HPUX_IA64_MODE" = X32; then | |
14264 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14265 | else | |
14266 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14267 | fi | |
14268 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14269 | ;; | |
14270 | hppa*64*) | |
14271 | shrext_cmds='.sl' | |
14272 | hardcode_into_libs=yes | |
14273 | dynamic_linker="$host_os dld.sl" | |
14274 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14275 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14277 | soname_spec='${libname}${release}${shared_ext}$major' | |
14278 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14279 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14280 | ;; | |
14281 | *) | |
14282 | shrext_cmds='.sl' | |
14283 | dynamic_linker="$host_os dld.sl" | |
14284 | shlibpath_var=SHLIB_PATH | |
14285 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14287 | soname_spec='${libname}${release}${shared_ext}$major' | |
14288 | ;; | |
14289 | esac | |
43e02a8a | 14290 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 14291 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
14292 | # or fails outright, so override atomically: |
14293 | install_override_mode=555 | |
1cf3d07d SE |
14294 | ;; |
14295 | ||
14296 | interix[3-9]*) | |
14297 | version_type=linux | |
14298 | need_lib_prefix=no | |
14299 | need_version=no | |
14300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14301 | soname_spec='${libname}${release}${shared_ext}$major' | |
14302 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14303 | shlibpath_var=LD_LIBRARY_PATH | |
14304 | shlibpath_overrides_runpath=no | |
14305 | hardcode_into_libs=yes | |
14306 | ;; | |
14307 | ||
14308 | irix5* | irix6* | nonstopux*) | |
14309 | case $host_os in | |
14310 | nonstopux*) version_type=nonstopux ;; | |
14311 | *) | |
14312 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14313 | version_type=linux | |
14314 | else | |
14315 | version_type=irix | |
14316 | fi ;; | |
14317 | esac | |
14318 | need_lib_prefix=no | |
14319 | need_version=no | |
14320 | soname_spec='${libname}${release}${shared_ext}$major' | |
14321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14322 | case $host_os in | |
14323 | irix5* | nonstopux*) | |
14324 | libsuff= shlibsuff= | |
14325 | ;; | |
14326 | *) | |
14327 | case $LD in # libtool.m4 will add one of these switches to LD | |
14328 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14329 | libsuff= shlibsuff= libmagic=32-bit;; | |
14330 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14331 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14332 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14333 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14334 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14335 | esac | |
14336 | ;; | |
14337 | esac | |
14338 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14339 | shlibpath_overrides_runpath=no | |
14340 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14341 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14342 | hardcode_into_libs=yes | |
14343 | ;; | |
14344 | ||
14345 | # No shared lib support for Linux oldld, aout, or coff. | |
14346 | linux*oldld* | linux*aout* | linux*coff*) | |
14347 | dynamic_linker=no | |
14348 | ;; | |
14349 | ||
14350 | # This must be Linux ELF. | |
7a9d3fe8 | 14351 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
14352 | version_type=linux |
14353 | need_lib_prefix=no | |
14354 | need_version=no | |
14355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14356 | soname_spec='${libname}${release}${shared_ext}$major' | |
14357 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14358 | shlibpath_var=LD_LIBRARY_PATH | |
14359 | shlibpath_overrides_runpath=no | |
baafc534 | 14360 | |
1cf3d07d | 14361 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 14362 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 14363 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
14364 | else |
14365 | lt_cv_shlibpath_overrides_runpath=no | |
14366 | save_LDFLAGS=$LDFLAGS | |
14367 | save_libdir=$libdir | |
14368 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
14369 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
5213506e | 14370 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14371 | program main |
14372 | ||
14373 | end | |
953ff289 | 14374 | _ACEOF |
5213506e RW |
14375 | if ac_fn_fc_try_link "$LINENO"; then : |
14376 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 14377 | lt_cv_shlibpath_overrides_runpath=yes |
953ff289 | 14378 | fi |
953ff289 | 14379 | fi |
5213506e RW |
14380 | rm -f core conftest.err conftest.$ac_objext \ |
14381 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
14382 | LDFLAGS=$save_LDFLAGS |
14383 | libdir=$save_libdir | |
14384 | ||
14385 | fi | |
14386 | ||
14387 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
14388 | |
14389 | # This implies no fast_install, which is unacceptable. | |
14390 | # Some rework will be needed to allow for fast_install | |
14391 | # before this can be enabled. | |
14392 | hardcode_into_libs=yes | |
14393 | ||
14394 | # Append ld.so.conf contents to the search path | |
14395 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 14396 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
14397 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
14398 | fi | |
953ff289 | 14399 | |
1cf3d07d SE |
14400 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14401 | # powerpc, because MkLinux only supported shared libraries with the | |
14402 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14403 | # most powerpc-linux boxes support dynamic linking these days and | |
14404 | # people can always --disable-shared, the test was removed, and we | |
14405 | # assume the GNU/Linux dynamic linker is in use. | |
14406 | dynamic_linker='GNU/Linux ld.so' | |
14407 | ;; | |
953ff289 | 14408 | |
1cf3d07d SE |
14409 | netbsd*) |
14410 | version_type=sunos | |
14411 | need_lib_prefix=no | |
14412 | need_version=no | |
14413 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14415 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14416 | dynamic_linker='NetBSD (a.out) ld.so' | |
14417 | else | |
14418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14419 | soname_spec='${libname}${release}${shared_ext}$major' | |
14420 | dynamic_linker='NetBSD ld.elf_so' | |
14421 | fi | |
14422 | shlibpath_var=LD_LIBRARY_PATH | |
14423 | shlibpath_overrides_runpath=yes | |
14424 | hardcode_into_libs=yes | |
14425 | ;; | |
953ff289 | 14426 | |
1cf3d07d SE |
14427 | newsos6) |
14428 | version_type=linux | |
14429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14430 | shlibpath_var=LD_LIBRARY_PATH | |
14431 | shlibpath_overrides_runpath=yes | |
14432 | ;; | |
14433 | ||
14434 | *nto* | *qnx*) | |
14435 | version_type=qnx | |
14436 | need_lib_prefix=no | |
14437 | need_version=no | |
14438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14439 | soname_spec='${libname}${release}${shared_ext}$major' | |
14440 | shlibpath_var=LD_LIBRARY_PATH | |
14441 | shlibpath_overrides_runpath=no | |
14442 | hardcode_into_libs=yes | |
14443 | dynamic_linker='ldqnx.so' | |
14444 | ;; | |
14445 | ||
14446 | openbsd*) | |
14447 | version_type=sunos | |
14448 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14449 | need_lib_prefix=no | |
14450 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14451 | case $host_os in | |
14452 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14453 | *) need_version=no ;; | |
14454 | esac | |
14455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14456 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14457 | shlibpath_var=LD_LIBRARY_PATH | |
14458 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14459 | case $host_os in | |
14460 | openbsd2.[89] | openbsd2.[89].*) | |
14461 | shlibpath_overrides_runpath=no | |
14462 | ;; | |
14463 | *) | |
14464 | shlibpath_overrides_runpath=yes | |
14465 | ;; | |
14466 | esac | |
953ff289 | 14467 | else |
1cf3d07d | 14468 | shlibpath_overrides_runpath=yes |
953ff289 | 14469 | fi |
1cf3d07d | 14470 | ;; |
953ff289 | 14471 | |
1cf3d07d SE |
14472 | os2*) |
14473 | libname_spec='$name' | |
14474 | shrext_cmds=".dll" | |
14475 | need_lib_prefix=no | |
14476 | library_names_spec='$libname${shared_ext} $libname.a' | |
14477 | dynamic_linker='OS/2 ld.exe' | |
14478 | shlibpath_var=LIBPATH | |
14479 | ;; | |
14480 | ||
14481 | osf3* | osf4* | osf5*) | |
14482 | version_type=osf | |
14483 | need_lib_prefix=no | |
14484 | need_version=no | |
14485 | soname_spec='${libname}${release}${shared_ext}$major' | |
14486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14487 | shlibpath_var=LD_LIBRARY_PATH | |
14488 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14489 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14490 | ;; | |
14491 | ||
14492 | rdos*) | |
14493 | dynamic_linker=no | |
14494 | ;; | |
14495 | ||
14496 | solaris*) | |
14497 | version_type=linux | |
14498 | need_lib_prefix=no | |
14499 | need_version=no | |
14500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14501 | soname_spec='${libname}${release}${shared_ext}$major' | |
14502 | shlibpath_var=LD_LIBRARY_PATH | |
14503 | shlibpath_overrides_runpath=yes | |
14504 | hardcode_into_libs=yes | |
14505 | # ldd complains unless libraries are executable | |
14506 | postinstall_cmds='chmod +x $lib' | |
14507 | ;; | |
14508 | ||
14509 | sunos4*) | |
14510 | version_type=sunos | |
14511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14512 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14513 | shlibpath_var=LD_LIBRARY_PATH | |
14514 | shlibpath_overrides_runpath=yes | |
14515 | if test "$with_gnu_ld" = yes; then | |
14516 | need_lib_prefix=no | |
14517 | fi | |
14518 | need_version=yes | |
14519 | ;; | |
14520 | ||
14521 | sysv4 | sysv4.3*) | |
14522 | version_type=linux | |
14523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14524 | soname_spec='${libname}${release}${shared_ext}$major' | |
14525 | shlibpath_var=LD_LIBRARY_PATH | |
14526 | case $host_vendor in | |
14527 | sni) | |
14528 | shlibpath_overrides_runpath=no | |
14529 | need_lib_prefix=no | |
14530 | runpath_var=LD_RUN_PATH | |
14531 | ;; | |
14532 | siemens) | |
14533 | need_lib_prefix=no | |
14534 | ;; | |
14535 | motorola) | |
14536 | need_lib_prefix=no | |
14537 | need_version=no | |
14538 | shlibpath_overrides_runpath=no | |
14539 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14540 | ;; | |
14541 | esac | |
14542 | ;; | |
14543 | ||
14544 | sysv4*MP*) | |
14545 | if test -d /usr/nec ;then | |
14546 | version_type=linux | |
14547 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14548 | soname_spec='$libname${shared_ext}.$major' | |
14549 | shlibpath_var=LD_LIBRARY_PATH | |
14550 | fi | |
14551 | ;; | |
14552 | ||
14553 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14554 | version_type=freebsd-elf | |
14555 | need_lib_prefix=no | |
14556 | need_version=no | |
14557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14558 | soname_spec='${libname}${release}${shared_ext}$major' | |
14559 | shlibpath_var=LD_LIBRARY_PATH | |
14560 | shlibpath_overrides_runpath=yes | |
14561 | hardcode_into_libs=yes | |
14562 | if test "$with_gnu_ld" = yes; then | |
14563 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14564 | else | |
14565 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14566 | case $host_os in | |
14567 | sco3.2v5*) | |
14568 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14569 | ;; | |
14570 | esac | |
14571 | fi | |
14572 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14573 | ;; | |
14574 | ||
14575 | tpf*) | |
14576 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14577 | version_type=linux | |
14578 | need_lib_prefix=no | |
14579 | need_version=no | |
6b4a97ed | 14580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
14581 | shlibpath_var=LD_LIBRARY_PATH |
14582 | shlibpath_overrides_runpath=no | |
14583 | hardcode_into_libs=yes | |
14584 | ;; | |
14585 | ||
14586 | uts4*) | |
14587 | version_type=linux | |
14588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14589 | soname_spec='${libname}${release}${shared_ext}$major' | |
14590 | shlibpath_var=LD_LIBRARY_PATH | |
14591 | ;; | |
14592 | ||
14593 | *) | |
14594 | dynamic_linker=no | |
14595 | ;; | |
14596 | esac | |
5213506e RW |
14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
14598 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
14599 | test "$dynamic_linker" = no && can_build_shared=no |
14600 | ||
5213506e RW |
14601 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
14602 | if test "$GCC" = yes; then | |
14603 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14604 | fi | |
876080ff | 14605 | |
5213506e RW |
14606 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14607 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14608 | fi | |
14609 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14610 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
876080ff JJ |
14611 | fi |
14612 | ||
953ff289 DN |
14613 | |
14614 | ||
953ff289 | 14615 | |
953ff289 DN |
14616 | |
14617 | ||
a68ab351 | 14618 | |
a68ab351 | 14619 | |
a68ab351 | 14620 | |
953ff289 | 14621 | |
953ff289 | 14622 | |
953ff289 | 14623 | |
953ff289 | 14624 | |
953ff289 | 14625 | |
953ff289 | 14626 | |
953ff289 | 14627 | |
953ff289 | 14628 | |
953ff289 DN |
14629 | |
14630 | ||
14631 | ||
14632 | ||
14633 | ||
953ff289 | 14634 | |
953ff289 | 14635 | |
953ff289 | 14636 | |
953ff289 | 14637 | |
953ff289 DN |
14638 | |
14639 | ||
14640 | ||
14641 | ||
953ff289 DN |
14642 | |
14643 | ||
03b8fe49 | 14644 | |
43e02a8a RW |
14645 | |
14646 | ||
03b8fe49 | 14647 | |
03b8fe49 | 14648 | |
03b8fe49 | 14649 | |
5213506e RW |
14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
14651 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14652 | hardcode_action_FC= | |
14653 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
14654 | test -n "$runpath_var_FC" || | |
14655 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
03b8fe49 | 14656 | |
5213506e RW |
14657 | # We can hardcode non-existent directories. |
14658 | if test "$hardcode_direct_FC" != no && | |
14659 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14660 | # have to relink, otherwise we might link with an installed library | |
14661 | # when we should be linking with a yet-to-be-installed one | |
14662 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
14663 | test "$hardcode_minus_L_FC" != no; then | |
14664 | # Linking always hardcodes the temporary library directory. | |
14665 | hardcode_action_FC=relink | |
14666 | else | |
14667 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14668 | hardcode_action_FC=immediate | |
14669 | fi | |
03b8fe49 | 14670 | else |
5213506e RW |
14671 | # We cannot hardcode anything, or else we can only hardcode existing |
14672 | # directories. | |
14673 | hardcode_action_FC=unsupported | |
14674 | fi | |
14675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 | |
14676 | $as_echo "$hardcode_action_FC" >&6; } | |
03b8fe49 | 14677 | |
5213506e RW |
14678 | if test "$hardcode_action_FC" = relink || |
14679 | test "$inherit_rpath_FC" = yes; then | |
14680 | # Fast installation is not supported | |
14681 | enable_fast_install=no | |
14682 | elif test "$shlibpath_overrides_runpath" = yes || | |
14683 | test "$enable_shared" = no; then | |
14684 | # Fast installation is not necessary | |
14685 | enable_fast_install=needless | |
03b8fe49 | 14686 | fi |
03b8fe49 | 14687 | |
03b8fe49 | 14688 | |
03b8fe49 | 14689 | |
03b8fe49 | 14690 | |
03b8fe49 | 14691 | |
03b8fe49 | 14692 | |
03b8fe49 | 14693 | |
5213506e | 14694 | fi # test -n "$compiler" |
03b8fe49 | 14695 | |
5213506e RW |
14696 | GCC=$lt_save_GCC |
14697 | CC="$lt_save_CC" | |
14698 | fi # test "$_lt_disable_FC" != yes | |
03b8fe49 | 14699 | |
5213506e RW |
14700 | ac_ext=c |
14701 | ac_cpp='$CPP $CPPFLAGS' | |
14702 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14703 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14704 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14705 | ||
14706 | ||
1ec601bf | 14707 | FCFLAGS="$FCFLAGS -Wall -L../libgfortran" |
5213506e RW |
14708 | |
14709 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
14710 | libtool_VERSION=1:0:0 | |
03b8fe49 | 14711 | |
5213506e RW |
14712 | |
14713 | # Check header files. | |
14714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
14715 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 14716 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 14717 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 14718 | else |
5213506e | 14719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
03b8fe49 | 14720 | /* end confdefs.h. */ |
03b8fe49 | 14721 | #include <stdlib.h> |
5213506e RW |
14722 | #include <stdarg.h> |
14723 | #include <string.h> | |
14724 | #include <float.h> | |
14725 | ||
03b8fe49 PB |
14726 | int |
14727 | main () | |
14728 | { | |
14729 | ||
03b8fe49 PB |
14730 | ; |
14731 | return 0; | |
14732 | } | |
14733 | _ACEOF | |
5213506e RW |
14734 | if ac_fn_c_try_compile "$LINENO"; then : |
14735 | ac_cv_header_stdc=yes | |
03b8fe49 | 14736 | else |
5213506e | 14737 | ac_cv_header_stdc=no |
03b8fe49 | 14738 | fi |
5213506e | 14739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
03b8fe49 | 14740 | |
5213506e RW |
14741 | if test $ac_cv_header_stdc = yes; then |
14742 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14744 | /* end confdefs.h. */ |
5213506e | 14745 | #include <string.h> |
03b8fe49 | 14746 | |
03b8fe49 | 14747 | _ACEOF |
5213506e RW |
14748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14749 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14750 | ||
03b8fe49 | 14751 | else |
5213506e RW |
14752 | ac_cv_header_stdc=no |
14753 | fi | |
14754 | rm -f conftest* | |
03b8fe49 | 14755 | |
03b8fe49 | 14756 | fi |
03b8fe49 | 14757 | |
5213506e RW |
14758 | if test $ac_cv_header_stdc = yes; then |
14759 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14761 | /* end confdefs.h. */ |
5213506e | 14762 | #include <stdlib.h> |
03b8fe49 | 14763 | |
03b8fe49 | 14764 | _ACEOF |
5213506e RW |
14765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14766 | $EGREP "free" >/dev/null 2>&1; then : | |
14767 | ||
14768 | else | |
14769 | ac_cv_header_stdc=no | |
14770 | fi | |
14771 | rm -f conftest* | |
14772 | ||
14773 | fi | |
14774 | ||
14775 | if test $ac_cv_header_stdc = yes; then | |
14776 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14777 | if test "$cross_compiling" = yes; then : | |
14778 | : | |
14779 | else | |
14780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14781 | /* end confdefs.h. */ |
5213506e RW |
14782 | #include <ctype.h> |
14783 | #include <stdlib.h> | |
14784 | #if ((' ' & 0x0FF) == 0x020) | |
14785 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14786 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14787 | #else | |
14788 | # define ISLOWER(c) \ | |
14789 | (('a' <= (c) && (c) <= 'i') \ | |
14790 | || ('j' <= (c) && (c) <= 'r') \ | |
14791 | || ('s' <= (c) && (c) <= 'z')) | |
14792 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
14793 | #endif | |
03b8fe49 | 14794 | |
5213506e | 14795 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
03b8fe49 PB |
14796 | int |
14797 | main () | |
14798 | { | |
5213506e RW |
14799 | int i; |
14800 | for (i = 0; i < 256; i++) | |
14801 | if (XOR (islower (i), ISLOWER (i)) | |
14802 | || toupper (i) != TOUPPER (i)) | |
14803 | return 2; | |
03b8fe49 PB |
14804 | return 0; |
14805 | } | |
14806 | _ACEOF | |
5213506e | 14807 | if ac_fn_c_try_run "$LINENO"; then : |
03b8fe49 | 14808 | |
03b8fe49 | 14809 | else |
5213506e RW |
14810 | ac_cv_header_stdc=no |
14811 | fi | |
14812 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14813 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14814 | fi | |
03b8fe49 | 14815 | |
03b8fe49 | 14816 | fi |
03b8fe49 | 14817 | fi |
5213506e RW |
14818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14819 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14820 | if test $ac_cv_header_stdc = yes; then | |
14821 | ||
14822 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
14823 | ||
14824 | fi | |
14825 | ||
14826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
14827 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
22e05272 | 14828 | if ${ac_cv_header_time+:} false; then : |
5213506e RW |
14829 | $as_echo_n "(cached) " >&6 |
14830 | else | |
14831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
03b8fe49 | 14832 | /* end confdefs.h. */ |
5213506e RW |
14833 | #include <sys/types.h> |
14834 | #include <sys/time.h> | |
14835 | #include <time.h> | |
03b8fe49 PB |
14836 | |
14837 | int | |
14838 | main () | |
14839 | { | |
5213506e RW |
14840 | if ((struct tm *) 0) |
14841 | return 0; | |
03b8fe49 PB |
14842 | ; |
14843 | return 0; | |
14844 | } | |
14845 | _ACEOF | |
5213506e RW |
14846 | if ac_fn_c_try_compile "$LINENO"; then : |
14847 | ac_cv_header_time=yes | |
03b8fe49 | 14848 | else |
5213506e RW |
14849 | ac_cv_header_time=no |
14850 | fi | |
14851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14852 | fi | |
14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
14854 | $as_echo "$ac_cv_header_time" >&6; } | |
14855 | if test $ac_cv_header_time = yes; then | |
14856 | ||
14857 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
03b8fe49 | 14858 | |
03b8fe49 | 14859 | fi |
5213506e RW |
14860 | |
14861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
14862 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
22e05272 | 14863 | if ${gcc_cv_header_string+:} false; then : |
5213506e | 14864 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 14865 | else |
5213506e | 14866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
03b8fe49 | 14867 | /* end confdefs.h. */ |
5213506e RW |
14868 | #include <string.h> |
14869 | #include <strings.h> | |
03b8fe49 PB |
14870 | int |
14871 | main () | |
14872 | { | |
14873 | ||
03b8fe49 PB |
14874 | ; |
14875 | return 0; | |
14876 | } | |
14877 | _ACEOF | |
5213506e RW |
14878 | if ac_fn_c_try_compile "$LINENO"; then : |
14879 | gcc_cv_header_string=yes | |
03b8fe49 | 14880 | else |
5213506e | 14881 | gcc_cv_header_string=no |
03b8fe49 | 14882 | fi |
5213506e | 14883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
03b8fe49 | 14884 | fi |
5213506e RW |
14885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
14886 | $as_echo "$gcc_cv_header_string" >&6; } | |
14887 | if test $gcc_cv_header_string = yes; then | |
14888 | ||
14889 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
14890 | ||
03b8fe49 | 14891 | fi |
5213506e | 14892 | |
6d9d1eeb | 14893 | for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h |
5213506e RW |
14894 | do : |
14895 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14896 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22e05272 | 14897 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5213506e RW |
14898 | cat >>confdefs.h <<_ACEOF |
14899 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
03b8fe49 | 14900 | _ACEOF |
03b8fe49 | 14901 | |
5213506e | 14902 | fi |
03b8fe49 | 14903 | |
5213506e | 14904 | done |
03b8fe49 | 14905 | |
03b8fe49 | 14906 | |
5213506e RW |
14907 | |
14908 | ||
14909 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
14910 | ||
14911 | acx_cv_header_stdint=stddef.h | |
14912 | acx_cv_header_stdint_kind="(already complete)" | |
14913 | for i in stdint.h $inttype_headers; do | |
14914 | unset ac_cv_type_uintptr_t | |
14915 | unset ac_cv_type_uintmax_t | |
14916 | unset ac_cv_type_int_least32_t | |
14917 | unset ac_cv_type_int_fast32_t | |
14918 | unset ac_cv_type_uint64_t | |
14919 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
14920 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
14921 | #include <$i> | |
14922 | " | |
22e05272 | 14923 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
5213506e RW |
14924 | acx_cv_header_stdint=$i |
14925 | else | |
14926 | continue | |
14927 | fi | |
14928 | ||
14929 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
14930 | #include <$i> | |
14931 | " | |
22e05272 | 14932 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
5213506e RW |
14933 | |
14934 | else | |
14935 | acx_cv_header_stdint_kind="(mostly complete)" | |
14936 | fi | |
14937 | ||
14938 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> | |
14939 | #include <$i> | |
14940 | " | |
22e05272 | 14941 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
5213506e RW |
14942 | |
14943 | else | |
14944 | acx_cv_header_stdint_kind="(mostly complete)" | |
14945 | fi | |
14946 | ||
14947 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> | |
14948 | #include <$i> | |
14949 | " | |
22e05272 | 14950 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
5213506e | 14951 | |
03b8fe49 | 14952 | else |
5213506e RW |
14953 | acx_cv_header_stdint_kind="(mostly complete)" |
14954 | fi | |
03b8fe49 | 14955 | |
5213506e RW |
14956 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
14957 | #include <$i> | |
14958 | " | |
22e05272 | 14959 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
5213506e RW |
14960 | |
14961 | else | |
14962 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
03b8fe49 | 14963 | fi |
5213506e RW |
14964 | |
14965 | break | |
14966 | done | |
14967 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14968 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
14969 | for i in stdint.h $inttype_headers; do | |
14970 | unset ac_cv_type_uintptr_t | |
14971 | unset ac_cv_type_uint32_t | |
14972 | unset ac_cv_type_uint64_t | |
14973 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
14974 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
14975 | #include <$i> | |
14976 | " | |
22e05272 | 14977 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
5213506e | 14978 | acx_cv_header_stdint=$i |
03b8fe49 | 14979 | else |
5213506e RW |
14980 | continue |
14981 | fi | |
03b8fe49 | 14982 | |
5213506e RW |
14983 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
14984 | #include <$i> | |
14985 | " | |
22e05272 | 14986 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
03b8fe49 | 14987 | |
5213506e | 14988 | fi |
03b8fe49 | 14989 | |
5213506e RW |
14990 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
14991 | #include <$i> | |
14992 | " | |
22e05272 | 14993 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
03b8fe49 | 14994 | |
5213506e | 14995 | fi |
03b8fe49 | 14996 | |
5213506e RW |
14997 | break |
14998 | done | |
14999 | fi | |
15000 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15001 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
15002 | for i in sys/types.h $inttype_headers; do | |
15003 | unset ac_cv_type_u_int32_t | |
15004 | unset ac_cv_type_u_int64_t | |
15005 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
15006 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
15007 | #include <$i> | |
15008 | " | |
22e05272 | 15009 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
5213506e | 15010 | acx_cv_header_stdint=$i |
03b8fe49 | 15011 | else |
5213506e RW |
15012 | continue |
15013 | fi | |
15014 | ||
15015 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> | |
15016 | #include <$i> | |
15017 | " | |
22e05272 | 15018 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
03b8fe49 | 15019 | |
03b8fe49 | 15020 | fi |
03b8fe49 | 15021 | |
5213506e RW |
15022 | break |
15023 | done | |
03b8fe49 | 15024 | fi |
5213506e RW |
15025 | if test "$acx_cv_header_stdint" = stddef.h; then |
15026 | acx_cv_header_stdint_kind="(using manual detection)" | |
03b8fe49 | 15027 | fi |
03b8fe49 | 15028 | |
5213506e RW |
15029 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
15030 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
15031 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
15032 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
15033 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
03b8fe49 | 15034 | |
5213506e | 15035 | # ----------------- Summarize what we found so far |
03b8fe49 | 15036 | |
5213506e RW |
15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
15038 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
15039 | ||
15040 | case `$as_basename -- gstdint.h || | |
15041 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
15042 | Xgstdint.h : 'X\(//\)$' \| \ | |
15043 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
15044 | $as_echo X/gstdint.h | | |
15045 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15046 | s//\1/ | |
15047 | q | |
15048 | } | |
15049 | /^X\/\(\/\/\)$/{ | |
15050 | s//\1/ | |
15051 | q | |
15052 | } | |
15053 | /^X\/\(\/\).*/{ | |
15054 | s//\1/ | |
15055 | q | |
15056 | } | |
15057 | s/.*/./; q'` in | |
15058 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
15059 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15060 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
15061 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
15062 | *) ;; | |
03b8fe49 | 15063 | esac |
03b8fe49 | 15064 | |
5213506e RW |
15065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
15066 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
03b8fe49 | 15067 | |
5213506e | 15068 | # ----------------- done included file, check C basic types -------- |
03b8fe49 | 15069 | |
5213506e RW |
15070 | # Lacking an uintptr_t? Test size of void * |
15071 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
15072 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
15073 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15074 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15075 | # This bug is HP SR number 8606223364. | |
15076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15077 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 15078 | if ${ac_cv_sizeof_void_p+:} false; then : |
5213506e | 15079 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 15080 | else |
5213506e | 15081 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
03b8fe49 | 15082 | |
5213506e RW |
15083 | else |
15084 | if test "$ac_cv_type_void_p" = yes; then | |
15085 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15086 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15087 | as_fn_error 77 "cannot compute sizeof (void *) |
15088 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
15089 | else |
15090 | ac_cv_sizeof_void_p=0 | |
15091 | fi | |
03b8fe49 | 15092 | fi |
5213506e | 15093 | |
03b8fe49 | 15094 | fi |
5213506e RW |
15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
15096 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
03b8fe49 | 15097 | |
03b8fe49 | 15098 | |
5213506e RW |
15099 | |
15100 | cat >>confdefs.h <<_ACEOF | |
15101 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
03b8fe49 | 15102 | _ACEOF |
03b8fe49 | 15103 | |
5213506e RW |
15104 | ;; |
15105 | esac | |
03b8fe49 | 15106 | |
5213506e RW |
15107 | # Lacking an uint64_t? Test size of long |
15108 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
15109 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
15110 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15111 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15112 | # This bug is HP SR number 8606223364. | |
15113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
15114 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 15115 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e | 15116 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 15117 | else |
5213506e | 15118 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
03b8fe49 | 15119 | |
03b8fe49 | 15120 | else |
5213506e RW |
15121 | if test "$ac_cv_type_long" = yes; then |
15122 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15123 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15124 | as_fn_error 77 "cannot compute sizeof (long) |
15125 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
15126 | else |
15127 | ac_cv_sizeof_long=0 | |
15128 | fi | |
15129 | fi | |
03b8fe49 | 15130 | |
5213506e RW |
15131 | fi |
15132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
15133 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
03b8fe49 | 15134 | |
03b8fe49 | 15135 | |
5213506e RW |
15136 | |
15137 | cat >>confdefs.h <<_ACEOF | |
15138 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
03b8fe49 | 15139 | _ACEOF |
03b8fe49 | 15140 | |
5213506e RW |
15141 | ;; |
15142 | esac | |
03b8fe49 | 15143 | |
5213506e RW |
15144 | if test $acx_cv_header_stdint = stddef.h; then |
15145 | # Lacking a good header? Test size of everything and deduce all types. | |
15146 | # The cast to long int works around a bug in the HP C Compiler | |
15147 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15148 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15149 | # This bug is HP SR number 8606223364. | |
15150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
15151 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 15152 | if ${ac_cv_sizeof_int+:} false; then : |
5213506e | 15153 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 15154 | else |
5213506e RW |
15155 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
15156 | ||
15157 | else | |
15158 | if test "$ac_cv_type_int" = yes; then | |
15159 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15160 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15161 | as_fn_error 77 "cannot compute sizeof (int) |
15162 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
15163 | else |
15164 | ac_cv_sizeof_int=0 | |
15165 | fi | |
15166 | fi | |
15167 | ||
15168 | fi | |
15169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
15170 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
15171 | ||
15172 | ||
15173 | ||
15174 | cat >>confdefs.h <<_ACEOF | |
15175 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15176 | _ACEOF | |
03b8fe49 | 15177 | |
5213506e RW |
15178 | |
15179 | # The cast to long int works around a bug in the HP C Compiler | |
15180 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15181 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15182 | # This bug is HP SR number 8606223364. | |
15183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
15184 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 15185 | if ${ac_cv_sizeof_short+:} false; then : |
5213506e | 15186 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 15187 | else |
5213506e | 15188 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
03b8fe49 | 15189 | |
5213506e RW |
15190 | else |
15191 | if test "$ac_cv_type_short" = yes; then | |
15192 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15194 | as_fn_error 77 "cannot compute sizeof (short) |
15195 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
15196 | else |
15197 | ac_cv_sizeof_short=0 | |
15198 | fi | |
03b8fe49 | 15199 | fi |
5213506e | 15200 | |
03b8fe49 | 15201 | fi |
5213506e RW |
15202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
15203 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
03b8fe49 | 15204 | |
03b8fe49 | 15205 | |
5213506e RW |
15206 | |
15207 | cat >>confdefs.h <<_ACEOF | |
15208 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
03b8fe49 | 15209 | _ACEOF |
5213506e RW |
15210 | |
15211 | ||
15212 | # The cast to long int works around a bug in the HP C Compiler | |
15213 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15214 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15215 | # This bug is HP SR number 8606223364. | |
15216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
15217 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 15218 | if ${ac_cv_sizeof_char+:} false; then : |
5213506e | 15219 | $as_echo_n "(cached) " >&6 |
03b8fe49 | 15220 | else |
5213506e | 15221 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : |
03b8fe49 | 15222 | |
03b8fe49 | 15223 | else |
5213506e RW |
15224 | if test "$ac_cv_type_char" = yes; then |
15225 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15226 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15227 | as_fn_error 77 "cannot compute sizeof (char) |
15228 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
15229 | else |
15230 | ac_cv_sizeof_char=0 | |
15231 | fi | |
15232 | fi | |
03b8fe49 | 15233 | |
5213506e RW |
15234 | fi |
15235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
15236 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
03b8fe49 | 15237 | |
03b8fe49 | 15238 | |
5213506e RW |
15239 | |
15240 | cat >>confdefs.h <<_ACEOF | |
15241 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
03b8fe49 | 15242 | _ACEOF |
03b8fe49 | 15243 | |
5213506e RW |
15244 | |
15245 | ||
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
15247 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
15248 | case "$ac_cv_sizeof_char" in | |
15249 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 15250 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
5213506e RW |
15251 | esac |
15252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
15253 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
15254 | ||
15255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
15256 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
15257 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
15258 | 2:*) acx_cv_type_int16_t=int ;; | |
15259 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 15260 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
5213506e RW |
15261 | esac |
15262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
15263 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
15264 | ||
15265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
15266 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
15267 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
15268 | 4:*) acx_cv_type_int32_t=int ;; | |
15269 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 15270 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
5213506e RW |
15271 | esac |
15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
15273 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
03b8fe49 | 15274 | fi |
5213506e RW |
15275 | |
15276 | # These tests are here to make the output prettier | |
15277 | ||
15278 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
15279 | case "$ac_cv_sizeof_long" in | |
15280 | 8) acx_cv_type_int64_t=long ;; | |
15281 | esac | |
15282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
15283 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
15284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
15285 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
03b8fe49 | 15286 | fi |
5213506e RW |
15287 | |
15288 | # Now we can use the above types | |
15289 | ||
15290 | if test "$ac_cv_type_uintptr_t" != yes; then | |
15291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
15292 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
15293 | case $ac_cv_sizeof_void_p in | |
15294 | 2) acx_cv_type_intptr_t=int16_t ;; | |
15295 | 4) acx_cv_type_intptr_t=int32_t ;; | |
15296 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 15297 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
5213506e RW |
15298 | esac |
15299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
15300 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
03b8fe49 | 15301 | fi |
03b8fe49 | 15302 | |
5213506e RW |
15303 | # ----------------- done all checks, emit header ------------- |
15304 | ac_config_commands="$ac_config_commands gstdint.h" | |
15305 | ||
15306 | ||
15307 | ||
15308 | ||
5213506e | 15309 | XPCFLAGS="" |
cd93945d SH |
15310 | case "$host" in |
15311 | *-*-rtems*) | |
15312 | # RTEMS supports Pthreads, but the library is not available at GCC build time. | |
15313 | ;; | |
44a7d18d TS |
15314 | nvptx*-*-*) |
15315 | # NVPTX does not support Pthreads, has its own code replacement. | |
6103184e | 15316 | libgomp_use_pthreads=no |
9e38af5c AM |
15317 | # NVPTX is an accelerator-only target |
15318 | libgomp_offloaded_only=yes | |
44a7d18d | 15319 | ;; |
cd93945d SH |
15320 | *) |
15321 | # Check to see if -pthread or -lpthread is needed. Prefer the former. | |
15322 | # In case the pthread.h system header is not found, this test will fail. | |
15323 | CFLAGS="$CFLAGS -pthread" | |
15324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e RW |
15325 | /* end confdefs.h. */ |
15326 | #include <pthread.h> | |
cd93945d | 15327 | void *g(void *d) { return NULL; } |
a68ab351 JJ |
15328 | int |
15329 | main () | |
15330 | { | |
5213506e | 15331 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
15332 | ; |
15333 | return 0; | |
15334 | } | |
15335 | _ACEOF | |
5213506e RW |
15336 | if ac_fn_c_try_link "$LINENO"; then : |
15337 | XPCFLAGS=" -Wc,-pthread" | |
15338 | else | |
15339 | CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" | |
cd93945d | 15340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a68ab351 | 15341 | /* end confdefs.h. */ |
5213506e | 15342 | #include <pthread.h> |
cd93945d | 15343 | void *g(void *d) { return NULL; } |
a68ab351 JJ |
15344 | int |
15345 | main () | |
15346 | { | |
5213506e | 15347 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
15348 | ; |
15349 | return 0; | |
15350 | } | |
15351 | _ACEOF | |
5213506e | 15352 | if ac_fn_c_try_link "$LINENO"; then : |
a68ab351 | 15353 | |
a68ab351 | 15354 | else |
22e05272 | 15355 | as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5 |
5213506e RW |
15356 | fi |
15357 | rm -f core conftest.err conftest.$ac_objext \ | |
15358 | conftest$ac_exeext conftest.$ac_ext | |
15359 | fi | |
15360 | rm -f core conftest.err conftest.$ac_objext \ | |
15361 | conftest$ac_exeext conftest.$ac_ext | |
cd93945d | 15362 | esac |
a68ab351 | 15363 | |
6103184e AM |
15364 | if test x$libgomp_use_pthreads != xno; then |
15365 | ||
15366 | $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h | |
15367 | ||
15368 | fi | |
15369 | ||
9e38af5c AM |
15370 | if test x$libgomp_offloaded_only = xyes; then |
15371 | ||
15372 | $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h | |
15373 | ||
15374 | fi | |
15375 | ||
41dbbb37 TS |
15376 | # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*- |
15377 | # | |
14e335ed | 15378 | # Copyright (C) 2014-2018 Free Software Foundation, Inc. |
41dbbb37 TS |
15379 | # |
15380 | # Contributed by Mentor Embedded. | |
15381 | # | |
15382 | # This file is part of the GNU Offloading and Multi Processing Library | |
15383 | # (libgomp). | |
15384 | # | |
15385 | # Libgomp is free software; you can redistribute it and/or modify it | |
15386 | # under the terms of the GNU General Public License as published by | |
15387 | # the Free Software Foundation; either version 3, or (at your option) | |
15388 | # any later version. | |
15389 | # | |
15390 | # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY | |
15391 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
15392 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
15393 | # more details. | |
15394 | # | |
15395 | # Under Section 7 of GPL version 3, you are granted additional | |
15396 | # permissions described in the GCC Runtime Library Exception, version | |
15397 | # 3.1, as published by the Free Software Foundation. | |
15398 | # | |
15399 | # You should have received a copy of the GNU General Public License and | |
15400 | # a copy of the GCC Runtime Library Exception along with this program; | |
15401 | # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | |
15402 | # <http://www.gnu.org/licenses/>. | |
15403 | ||
15404 | offload_targets= | |
15405 | ||
85c64bbe BS |
15406 | plugin_support=yes |
15407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | |
15408 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | |
22e05272 | 15409 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
85c64bbe BS |
15410 | $as_echo_n "(cached) " >&6 |
15411 | else | |
15412 | ac_check_lib_save_LIBS=$LIBS | |
15413 | LIBS="-ldl $LIBS" | |
15414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15415 | /* end confdefs.h. */ | |
15416 | ||
15417 | /* Override any GCC internal prototype to avoid an error. | |
15418 | Use char because int might match the return type of a GCC | |
15419 | builtin and then its argument prototype would still apply. */ | |
15420 | #ifdef __cplusplus | |
15421 | extern "C" | |
15422 | #endif | |
15423 | char dlsym (); | |
15424 | int | |
15425 | main () | |
15426 | { | |
15427 | return dlsym (); | |
15428 | ; | |
15429 | return 0; | |
15430 | } | |
15431 | _ACEOF | |
15432 | if ac_fn_c_try_link "$LINENO"; then : | |
15433 | ac_cv_lib_dl_dlsym=yes | |
15434 | else | |
15435 | ac_cv_lib_dl_dlsym=no | |
15436 | fi | |
15437 | rm -f core conftest.err conftest.$ac_objext \ | |
15438 | conftest$ac_exeext conftest.$ac_ext | |
15439 | LIBS=$ac_check_lib_save_LIBS | |
15440 | fi | |
15441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | |
15442 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | |
22e05272 | 15443 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
85c64bbe BS |
15444 | cat >>confdefs.h <<_ACEOF |
15445 | #define HAVE_LIBDL 1 | |
15446 | _ACEOF | |
15447 | ||
15448 | LIBS="-ldl $LIBS" | |
15449 | ||
15450 | else | |
15451 | plugin_support=no | |
15452 | fi | |
15453 | ||
15454 | if test x"$plugin_support" = xyes; then | |
15455 | ||
15456 | $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h | |
15457 | ||
41dbbb37 | 15458 | elif test "x${enable_offload_targets-no}" != xno; then |
22e05272 | 15459 | as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5 |
41dbbb37 TS |
15460 | fi |
15461 | ||
b8d89b03 ML |
15462 | |
15463 | ||
15464 | for ac_header in $ac_header_list | |
15465 | do : | |
15466 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15467 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
15468 | " | |
22e05272 | 15469 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
b8d89b03 ML |
15470 | cat >>confdefs.h <<_ACEOF |
15471 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15472 | _ACEOF | |
15473 | ||
15474 | fi | |
15475 | ||
15476 | done | |
15477 | ||
15478 | ||
15479 | ||
15480 | ||
15481 | ||
15482 | ||
15483 | ||
15484 | for ac_func in $ac_func_list | |
15485 | do : | |
15486 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15487 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 15488 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
b8d89b03 ML |
15489 | cat >>confdefs.h <<_ACEOF |
15490 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15491 | _ACEOF | |
15492 | ||
15493 | fi | |
15494 | done | |
15495 | ||
15496 | ||
15497 | ||
15498 | ||
15499 | ||
15500 | ||
15501 | ||
15502 | ||
15503 | ||
15504 | ||
15505 | ||
15506 | ||
15507 | ||
15508 | ||
15509 | ||
15510 | ||
41dbbb37 TS |
15511 | # Look for the CUDA driver package. |
15512 | CUDA_DRIVER_INCLUDE= | |
15513 | CUDA_DRIVER_LIB= | |
15514 | ||
15515 | ||
15516 | CUDA_DRIVER_CPPFLAGS= | |
15517 | CUDA_DRIVER_LDFLAGS= | |
15518 | ||
15519 | # Check whether --with-cuda-driver was given. | |
15520 | if test "${with_cuda_driver+set}" = set; then : | |
15521 | withval=$with_cuda_driver; | |
85c64bbe BS |
15522 | fi |
15523 | ||
41dbbb37 TS |
15524 | |
15525 | # Check whether --with-cuda-driver-include was given. | |
15526 | if test "${with_cuda_driver_include+set}" = set; then : | |
15527 | withval=$with_cuda_driver_include; | |
15528 | fi | |
15529 | ||
15530 | ||
15531 | # Check whether --with-cuda-driver-lib was given. | |
15532 | if test "${with_cuda_driver_lib+set}" = set; then : | |
15533 | withval=$with_cuda_driver_lib; | |
15534 | fi | |
15535 | ||
2393d337 | 15536 | case "x$with_cuda_driver" in |
09940090 TV |
15537 | x) ;; |
15538 | xno) | |
15539 | CUDA_DRIVER_INCLUDE=no | |
15540 | CUDA_DRIVER_LIB=no | |
15541 | ;; | |
2393d337 JJ |
15542 | *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include |
15543 | CUDA_DRIVER_LIB=$with_cuda_driver/lib | |
15544 | ;; | |
15545 | esac | |
41dbbb37 TS |
15546 | if test "x$with_cuda_driver_include" != x; then |
15547 | CUDA_DRIVER_INCLUDE=$with_cuda_driver_include | |
15548 | fi | |
15549 | if test "x$with_cuda_driver_lib" != x; then | |
15550 | CUDA_DRIVER_LIB=$with_cuda_driver_lib | |
15551 | fi | |
09940090 TV |
15552 | if test "x$CUDA_DRIVER_INCLUDE" != x \ |
15553 | && test "x$CUDA_DRIVER_INCLUDE" != xno; then | |
41dbbb37 TS |
15554 | CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE |
15555 | fi | |
09940090 TV |
15556 | if test "x$CUDA_DRIVER_LIB" != x \ |
15557 | && test "x$CUDA_DRIVER_LIB" != xno; then | |
41dbbb37 TS |
15558 | CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB |
15559 | fi | |
15560 | ||
15561 | PLUGIN_NVPTX=0 | |
15562 | PLUGIN_NVPTX_CPPFLAGS= | |
15563 | PLUGIN_NVPTX_LDFLAGS= | |
15564 | PLUGIN_NVPTX_LIBS= | |
2393d337 | 15565 | PLUGIN_NVPTX_DYNAMIC=0 |
41dbbb37 TS |
15566 | |
15567 | ||
15568 | ||
15569 | ||
15570 | ||
b2b40051 MJ |
15571 | # Look for HSA run-time, its includes and libraries |
15572 | ||
15573 | HSA_RUNTIME_INCLUDE= | |
15574 | HSA_RUNTIME_LIB= | |
15575 | ||
15576 | ||
15577 | HSA_RUNTIME_CPPFLAGS= | |
15578 | HSA_RUNTIME_LDFLAGS= | |
15579 | ||
15580 | ||
15581 | # Check whether --with-hsa-runtime was given. | |
15582 | if test "${with_hsa_runtime+set}" = set; then : | |
15583 | withval=$with_hsa_runtime; | |
15584 | fi | |
15585 | ||
15586 | ||
15587 | # Check whether --with-hsa-runtime-include was given. | |
15588 | if test "${with_hsa_runtime_include+set}" = set; then : | |
15589 | withval=$with_hsa_runtime_include; | |
15590 | fi | |
15591 | ||
15592 | ||
15593 | # Check whether --with-hsa-runtime-lib was given. | |
15594 | if test "${with_hsa_runtime_lib+set}" = set; then : | |
15595 | withval=$with_hsa_runtime_lib; | |
15596 | fi | |
15597 | ||
15598 | if test "x$with_hsa_runtime" != x; then | |
15599 | HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include | |
15600 | HSA_RUNTIME_LIB=$with_hsa_runtime/lib | |
15601 | fi | |
15602 | if test "x$with_hsa_runtime_include" != x; then | |
15603 | HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include | |
15604 | fi | |
15605 | if test "x$with_hsa_runtime_lib" != x; then | |
15606 | HSA_RUNTIME_LIB=$with_hsa_runtime_lib | |
15607 | fi | |
15608 | if test "x$HSA_RUNTIME_INCLUDE" != x; then | |
15609 | HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE | |
15610 | fi | |
15611 | if test "x$HSA_RUNTIME_LIB" != x; then | |
15612 | HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB | |
15613 | fi | |
15614 | ||
b2b40051 MJ |
15615 | PLUGIN_HSA=0 |
15616 | PLUGIN_HSA_CPPFLAGS= | |
15617 | PLUGIN_HSA_LDFLAGS= | |
15618 | PLUGIN_HSA_LIBS= | |
15619 | ||
15620 | ||
15621 | ||
15622 | ||
15623 | ||
41dbbb37 TS |
15624 | # Get offload targets and path to install tree of offloading compiler. |
15625 | offload_additional_options= | |
15626 | offload_additional_lib_paths= | |
15627 | ||
15628 | ||
15629 | if test x"$enable_offload_targets" != x; then | |
15630 | for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do | |
15631 | tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'` | |
15632 | tgt=`echo $tgt | sed 's/=.*//'` | |
41d809d3 | 15633 | tgt_name= |
41dbbb37 TS |
15634 | case $tgt in |
15635 | *-intelmic-* | *-intelmicemul-*) | |
15636 | tgt_name=intelmic | |
15637 | ;; | |
15638 | nvptx*) | |
15639 | tgt_name=nvptx | |
15640 | PLUGIN_NVPTX=$tgt | |
09940090 TV |
15641 | if test "x$CUDA_DRIVER_LIB" != xno \ |
15642 | && test "x$CUDA_DRIVER_LIB" != xno; then | |
15643 | PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS | |
15644 | PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS | |
15645 | PLUGIN_NVPTX_LIBS='-lcuda' | |
15646 | ||
15647 | PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS | |
15648 | CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS" | |
15649 | PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS | |
15650 | LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS" | |
15651 | PLUGIN_NVPTX_save_LIBS=$LIBS | |
15652 | LIBS="$PLUGIN_NVPTX_LIBS $LIBS" | |
15653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
41dbbb37 TS |
15654 | /* end confdefs.h. */ |
15655 | #include "cuda.h" | |
15656 | int | |
15657 | main () | |
15658 | { | |
15659 | CUresult r = cuCtxPushCurrent (NULL); | |
15660 | ; | |
15661 | return 0; | |
15662 | } | |
15663 | _ACEOF | |
15664 | if ac_fn_c_try_link "$LINENO"; then : | |
15665 | PLUGIN_NVPTX=1 | |
15666 | fi | |
15667 | rm -f core conftest.err conftest.$ac_objext \ | |
15668 | conftest$ac_exeext conftest.$ac_ext | |
09940090 TV |
15669 | CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS |
15670 | LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS | |
15671 | LIBS=$PLUGIN_NVPTX_save_LIBS | |
15672 | fi | |
41dbbb37 TS |
15673 | case $PLUGIN_NVPTX in |
15674 | nvptx*) | |
09940090 TV |
15675 | if (test "x$CUDA_DRIVER_INCLUDE" = x \ |
15676 | || test "x$CUDA_DRIVER_INCLUDE" = xno) \ | |
15677 | && (test "x$CUDA_DRIVER_LIB" = x \ | |
15678 | || test "x$CUDA_DRIVER_LIB" = xno); then | |
2393d337 JJ |
15679 | PLUGIN_NVPTX=1 |
15680 | PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda' | |
15681 | PLUGIN_NVPTX_LIBS='-ldl' | |
15682 | PLUGIN_NVPTX_DYNAMIC=1 | |
15683 | else | |
15684 | PLUGIN_NVPTX=0 | |
22e05272 | 15685 | as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5 |
2393d337 JJ |
15686 | fi |
15687 | ;; | |
41dbbb37 TS |
15688 | esac |
15689 | ;; | |
b2b40051 MJ |
15690 | hsa*) |
15691 | case "${target}" in | |
15692 | x86_64-*-*) | |
15693 | case " ${CC} ${CFLAGS} " in | |
15694 | *" -m32 "*) | |
15695 | PLUGIN_HSA=0 | |
15696 | ;; | |
15697 | *) | |
15698 | tgt_name=hsa | |
15699 | PLUGIN_HSA=$tgt | |
15700 | PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS | |
b8d89b03 ML |
15701 | PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS" |
15702 | PLUGIN_HSA_LIBS="-ldl" | |
b2b40051 MJ |
15703 | |
15704 | PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS | |
15705 | CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS" | |
15706 | PLUGIN_HSA_save_LDFLAGS=$LDFLAGS | |
15707 | LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS" | |
15708 | PLUGIN_HSA_save_LIBS=$LIBS | |
15709 | LIBS="$PLUGIN_HSA_LIBS $LIBS" | |
15710 | ||
b8d89b03 | 15711 | PLUGIN_HSA=1 |
b2b40051 MJ |
15712 | CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS |
15713 | LDFLAGS=$PLUGIN_HSA_save_LDFLAGS | |
15714 | LIBS=$PLUGIN_HSA_save_LIBS | |
15715 | case $PLUGIN_HSA in | |
15716 | hsa*) | |
15717 | HSA_PLUGIN=0 | |
22e05272 | 15718 | as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5 |
b2b40051 MJ |
15719 | ;; |
15720 | esac | |
15721 | ;; | |
15722 | esac | |
15723 | ;; | |
15724 | *-*-*) | |
15725 | PLUGIN_HSA=0 | |
15726 | ;; | |
15727 | esac | |
15728 | ;; | |
41dbbb37 | 15729 | *) |
22e05272 | 15730 | as_fn_error $? "unknown offload target specified" "$LINENO" 5 |
41dbbb37 TS |
15731 | ;; |
15732 | esac | |
41d809d3 TS |
15733 | if test x"$tgt_name" = x; then |
15734 | # Don't configure libgomp for this offloading target if we don't build | |
15735 | # the corresponding plugin. | |
15736 | continue | |
15737 | elif test x"$offload_targets" = x; then | |
41dbbb37 TS |
15738 | offload_targets=$tgt_name |
15739 | else | |
15740 | offload_targets=$offload_targets,$tgt_name | |
15741 | fi | |
4a88d9b7 TS |
15742 | if test "$tgt_name" = hsa; then |
15743 | # Offloading compilation is all handled by the target compiler. | |
15744 | : | |
15745 | elif test x"$tgt_dir" != x; then | |
41dbbb37 TS |
15746 | offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin" |
15747 | offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32" | |
15748 | else | |
15749 | offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)" | |
15750 | offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir" | |
15751 | fi | |
15752 | done | |
15753 | fi | |
15754 | ||
15755 | cat >>confdefs.h <<_ACEOF | |
15756 | #define OFFLOAD_TARGETS "$offload_targets" | |
15757 | _ACEOF | |
15758 | ||
15759 | if test $PLUGIN_NVPTX = 1; then | |
15760 | PLUGIN_NVPTX_TRUE= | |
15761 | PLUGIN_NVPTX_FALSE='#' | |
15762 | else | |
15763 | PLUGIN_NVPTX_TRUE='#' | |
15764 | PLUGIN_NVPTX_FALSE= | |
15765 | fi | |
15766 | ||
15767 | ||
15768 | cat >>confdefs.h <<_ACEOF | |
15769 | #define PLUGIN_NVPTX $PLUGIN_NVPTX | |
15770 | _ACEOF | |
15771 | ||
2393d337 JJ |
15772 | |
15773 | cat >>confdefs.h <<_ACEOF | |
15774 | #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC | |
15775 | _ACEOF | |
15776 | ||
b2b40051 MJ |
15777 | if test $PLUGIN_HSA = 1; then |
15778 | PLUGIN_HSA_TRUE= | |
15779 | PLUGIN_HSA_FALSE='#' | |
15780 | else | |
15781 | PLUGIN_HSA_TRUE='#' | |
15782 | PLUGIN_HSA_FALSE= | |
15783 | fi | |
15784 | ||
15785 | ||
15786 | cat >>confdefs.h <<_ACEOF | |
15787 | #define PLUGIN_HSA $PLUGIN_HSA | |
15788 | _ACEOF | |
15789 | ||
41dbbb37 | 15790 | |
b8d89b03 ML |
15791 | if test "$HSA_RUNTIME_LIB" != ""; then |
15792 | HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/" | |
15793 | fi | |
15794 | ||
15795 | ||
15796 | cat >>confdefs.h <<_ACEOF | |
15797 | #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB" | |
15798 | _ACEOF | |
15799 | ||
15800 | ||
41dbbb37 | 15801 | |
5213506e RW |
15802 | # Check for functions needed. |
15803 | for ac_func in getloadavg clock_gettime strtoull | |
15804 | do : | |
15805 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15806 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 15807 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5213506e RW |
15808 | cat >>confdefs.h <<_ACEOF |
15809 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
a68ab351 | 15810 | _ACEOF |
a68ab351 | 15811 | |
5213506e RW |
15812 | fi |
15813 | done | |
15814 | ||
28567c40 JJ |
15815 | for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc |
15816 | do : | |
15817 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15818 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15819 | eval as_val=\$$as_ac_var | |
15820 | if test "x$as_val" = x""yes; then : | |
15821 | cat >>confdefs.h <<_ACEOF | |
15822 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15823 | _ACEOF | |
15824 | ||
15825 | fi | |
15826 | done | |
15827 | ||
5213506e RW |
15828 | |
15829 | # Check for broken semaphore implementation on darwin. | |
15830 | # sem_init returns: sem_init error: Function not implemented. | |
15831 | case "$host" in | |
15832 | *-darwin*) | |
15833 | ||
15834 | $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h | |
15835 | ||
15836 | ;; | |
15837 | esac | |
15838 | ||
13c41b2e SH |
15839 | # RTEMS specific checks |
15840 | case "$host" in | |
15841 | *-*-rtems*) | |
15842 | ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h> | |
15843 | " | |
22e05272 | 15844 | if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then : |
13c41b2e SH |
15845 | |
15846 | cat >>confdefs.h <<_ACEOF | |
15847 | #define HAVE_STRUCT__MUTEX_CONTROL 1 | |
15848 | _ACEOF | |
15849 | ||
15850 | ||
15851 | fi | |
15852 | ||
15853 | ;; | |
15854 | esac | |
15855 | ||
5213506e RW |
15856 | # Check whether --enable-linux-futex was given. |
15857 | if test "${enable_linux_futex+set}" = set; then : | |
15858 | enableval=$enable_linux_futex; | |
15859 | case "$enableval" in | |
15860 | yes|no|default) ;; | |
22e05272 | 15861 | *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;; |
5213506e RW |
15862 | esac |
15863 | ||
15864 | else | |
15865 | enable_linux_futex=default | |
15866 | fi | |
a68ab351 | 15867 | |
a68ab351 | 15868 | |
5213506e RW |
15869 | case "$target" in |
15870 | *-linux*) | |
15871 | case "$enable_linux_futex" in | |
15872 | default) | |
15873 | # If headers don't have gettid/futex syscalls definition, then | |
15874 | # default to no, otherwise there will be compile time failures. | |
15875 | # Otherwise, default to yes. If we don't detect we are | |
15876 | # compiled/linked against NPTL and not cross-compiling, check | |
15877 | # if programs are run by default against NPTL and if not, issue | |
15878 | # a warning. | |
15879 | enable_linux_futex=no | |
15880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15881 | /* end confdefs.h. */ | |
15882 | #include <sys/syscall.h> | |
15883 | int lk; | |
a68ab351 JJ |
15884 | int |
15885 | main () | |
15886 | { | |
5213506e | 15887 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); |
a68ab351 JJ |
15888 | ; |
15889 | return 0; | |
15890 | } | |
15891 | _ACEOF | |
5213506e RW |
15892 | if ac_fn_c_try_link "$LINENO"; then : |
15893 | save_LIBS="$LIBS" | |
15894 | LIBS="-lpthread $LIBS" | |
15895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15896 | /* end confdefs.h. */ |
5213506e RW |
15897 | #ifndef _GNU_SOURCE |
15898 | #define _GNU_SOURCE 1 | |
15899 | #endif | |
15900 | #include <pthread.h> | |
15901 | pthread_t th; void *status; | |
a68ab351 JJ |
15902 | int |
15903 | main () | |
15904 | { | |
5213506e | 15905 | pthread_tryjoin_np (th, &status); |
a68ab351 JJ |
15906 | ; |
15907 | return 0; | |
15908 | } | |
15909 | _ACEOF | |
5213506e RW |
15910 | if ac_fn_c_try_link "$LINENO"; then : |
15911 | enable_linux_futex=yes | |
a68ab351 | 15912 | else |
5213506e RW |
15913 | if test x$cross_compiling = xno; then |
15914 | if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ | |
15915 | | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else | |
15916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls. | |
15917 | If so, please configure with --disable-linux-futex" >&5 | |
15918 | $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. | |
15919 | If so, please configure with --disable-linux-futex" >&2;} | |
15920 | fi | |
15921 | fi | |
15922 | enable_linux_futex=yes | |
a68ab351 | 15923 | fi |
5213506e RW |
15924 | rm -f core conftest.err conftest.$ac_objext \ |
15925 | conftest$ac_exeext conftest.$ac_ext | |
15926 | LIBS="$save_LIBS" | |
15927 | fi | |
15928 | rm -f core conftest.err conftest.$ac_objext \ | |
15929 | conftest$ac_exeext conftest.$ac_ext | |
15930 | ;; | |
15931 | yes) | |
15932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 15933 | /* end confdefs.h. */ |
5213506e RW |
15934 | #include <sys/syscall.h> |
15935 | int lk; | |
a68ab351 JJ |
15936 | int |
15937 | main () | |
15938 | { | |
5213506e | 15939 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); |
a68ab351 JJ |
15940 | ; |
15941 | return 0; | |
15942 | } | |
15943 | _ACEOF | |
5213506e | 15944 | if ac_fn_c_try_link "$LINENO"; then : |
a68ab351 | 15945 | |
5213506e | 15946 | else |
22e05272 | 15947 | as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5 |
a68ab351 | 15948 | fi |
5213506e RW |
15949 | rm -f core conftest.err conftest.$ac_objext \ |
15950 | conftest$ac_exeext conftest.$ac_ext | |
15951 | ;; | |
15952 | esac | |
15953 | ;; | |
15954 | *) | |
15955 | enable_linux_futex=no | |
15956 | ;; | |
15957 | esac | |
15958 | if test x$enable_linux_futex = xyes; then | |
15959 | : | |
a68ab351 | 15960 | fi |
a68ab351 | 15961 | |
5213506e RW |
15962 | |
15963 | # Check for pthread_{,attr_}[sg]etaffinity_np. | |
15964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15965 | /* end confdefs.h. */ | |
15966 | #define _GNU_SOURCE | |
15967 | #include <pthread.h> | |
a68ab351 JJ |
15968 | int |
15969 | main () | |
15970 | { | |
5213506e RW |
15971 | cpu_set_t cpuset; |
15972 | pthread_attr_t attr; | |
15973 | pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
15974 | if (CPU_ISSET (0, &cpuset)) | |
15975 | CPU_SET (1, &cpuset); | |
15976 | else | |
15977 | CPU_ZERO (&cpuset); | |
15978 | pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); | |
15979 | pthread_attr_init (&attr); | |
15980 | pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
15981 | pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); | |
a68ab351 JJ |
15982 | ; |
15983 | return 0; | |
15984 | } | |
15985 | _ACEOF | |
5213506e RW |
15986 | if ac_fn_c_try_link "$LINENO"; then : |
15987 | ||
15988 | $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h | |
15989 | ||
15990 | fi | |
15991 | rm -f core conftest.err conftest.$ac_objext \ | |
15992 | conftest$ac_exeext conftest.$ac_ext | |
15993 | ||
15994 | # At least for glibc, clock_gettime is in librt. But don't pull that | |
15995 | # in if it still doesn't give us the function we want. | |
15996 | if test $ac_cv_func_clock_gettime = no; then | |
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
15998 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 15999 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
5213506e RW |
16000 | $as_echo_n "(cached) " >&6 |
16001 | else | |
16002 | ac_check_lib_save_LIBS=$LIBS | |
16003 | LIBS="-lrt $LIBS" | |
16004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16005 | /* end confdefs.h. */ |
16006 | ||
5213506e RW |
16007 | /* Override any GCC internal prototype to avoid an error. |
16008 | Use char because int might match the return type of a GCC | |
16009 | builtin and then its argument prototype would still apply. */ | |
16010 | #ifdef __cplusplus | |
16011 | extern "C" | |
16012 | #endif | |
16013 | char clock_gettime (); | |
a68ab351 JJ |
16014 | int |
16015 | main () | |
16016 | { | |
5213506e | 16017 | return clock_gettime (); |
a68ab351 JJ |
16018 | ; |
16019 | return 0; | |
16020 | } | |
16021 | _ACEOF | |
5213506e RW |
16022 | if ac_fn_c_try_link "$LINENO"; then : |
16023 | ac_cv_lib_rt_clock_gettime=yes | |
a68ab351 | 16024 | else |
5213506e RW |
16025 | ac_cv_lib_rt_clock_gettime=no |
16026 | fi | |
16027 | rm -f core conftest.err conftest.$ac_objext \ | |
16028 | conftest$ac_exeext conftest.$ac_ext | |
16029 | LIBS=$ac_check_lib_save_LIBS | |
16030 | fi | |
16031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
16032 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 16033 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
5213506e RW |
16034 | LIBS="-lrt $LIBS" |
16035 | ||
16036 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
a68ab351 | 16037 | |
a68ab351 | 16038 | fi |
5213506e RW |
16039 | |
16040 | fi | |
16041 | ||
28567c40 JJ |
16042 | # Check for uname. |
16043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16044 | /* end confdefs.h. */ | |
16045 | #include <string.h> | |
16046 | #include <stdlib.h> | |
16047 | #include <sys/utsname.h> | |
16048 | int | |
16049 | main () | |
16050 | { | |
16051 | struct utsname buf; | |
16052 | volatile size_t len = 0; | |
16053 | if (!uname (buf)) | |
16054 | len = strlen (buf.nodename); | |
16055 | ; | |
16056 | return 0; | |
16057 | } | |
16058 | _ACEOF | |
16059 | if ac_fn_c_try_compile "$LINENO"; then : | |
16060 | ||
16061 | $as_echo "#define HAVE_UNAME 1" >>confdefs.h | |
16062 | ||
16063 | fi | |
16064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16065 | ||
16066 | # Check for gethostname. | |
16067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16068 | /* end confdefs.h. */ | |
16069 | #include <unistd.h> | |
16070 | int | |
16071 | main () | |
16072 | { | |
16073 | ||
16074 | char buf[256]; | |
16075 | if (gethostname (buf, sizeof (buf) - 1) == 0) | |
16076 | buf[255] = '\0'; | |
16077 | ||
16078 | ; | |
16079 | return 0; | |
16080 | } | |
16081 | _ACEOF | |
16082 | if ac_fn_c_try_compile "$LINENO"; then : | |
16083 | ||
16084 | $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h | |
16085 | ||
16086 | fi | |
16087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16088 | ||
16089 | # Check for getpid. | |
16090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16091 | /* end confdefs.h. */ | |
16092 | #include <unistd.h> | |
16093 | int | |
16094 | main () | |
16095 | { | |
16096 | int pid = getpid (); | |
16097 | ; | |
16098 | return 0; | |
16099 | } | |
16100 | _ACEOF | |
16101 | if ac_fn_c_try_compile "$LINENO"; then : | |
16102 | ||
16103 | $as_echo "#define HAVE_GETPID 1" >>confdefs.h | |
16104 | ||
16105 | fi | |
16106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16107 | ||
5213506e RW |
16108 | # See if we support thread-local storage. |
16109 | ||
16110 | ||
16111 | # Check whether --enable-tls was given. | |
16112 | if test "${enable_tls+set}" = set; then : | |
16113 | enableval=$enable_tls; | |
16114 | case "$enableval" in | |
16115 | yes|no) ;; | |
22e05272 | 16116 | *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; |
5213506e RW |
16117 | esac |
16118 | ||
16119 | else | |
16120 | enable_tls=yes | |
16121 | fi | |
16122 | ||
16123 | ||
16124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 | |
16125 | $as_echo_n "checking whether the target supports thread-local storage... " >&6; } | |
22e05272 | 16126 | if ${gcc_cv_have_tls+:} false; then : |
5213506e | 16127 | $as_echo_n "(cached) " >&6 |
a68ab351 | 16128 | else |
a68ab351 | 16129 | |
5213506e RW |
16130 | if test "$cross_compiling" = yes; then : |
16131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16132 | /* end confdefs.h. */ | |
16133 | __thread int a; int b; int main() { return a = b; } | |
16134 | _ACEOF | |
16135 | if ac_fn_c_try_link "$LINENO"; then : | |
16136 | chktls_save_LDFLAGS="$LDFLAGS" | |
16137 | case $host in | |
16138 | *-*-linux*) | |
16139 | LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" | |
16140 | ;; | |
16141 | esac | |
16142 | chktls_save_CFLAGS="$CFLAGS" | |
16143 | CFLAGS="-fPIC $CFLAGS" | |
16144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16145 | /* end confdefs.h. */ | |
16146 | int f() { return 0; } | |
a68ab351 | 16147 | _ACEOF |
5213506e RW |
16148 | if ac_fn_c_try_link "$LINENO"; then : |
16149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 16150 | /* end confdefs.h. */ |
5213506e RW |
16151 | __thread int a; int b; int f() { return a = b; } |
16152 | _ACEOF | |
16153 | if ac_fn_c_try_link "$LINENO"; then : | |
16154 | gcc_cv_have_tls=yes | |
16155 | else | |
16156 | gcc_cv_have_tls=no | |
16157 | fi | |
16158 | rm -f core conftest.err conftest.$ac_objext \ | |
16159 | conftest$ac_exeext conftest.$ac_ext | |
16160 | else | |
16161 | gcc_cv_have_tls=yes | |
16162 | fi | |
16163 | rm -f core conftest.err conftest.$ac_objext \ | |
16164 | conftest$ac_exeext conftest.$ac_ext | |
16165 | CFLAGS="$chktls_save_CFLAGS" | |
16166 | LDFLAGS="$chktls_save_LDFLAGS" | |
16167 | else | |
16168 | gcc_cv_have_tls=no | |
16169 | fi | |
16170 | rm -f core conftest.err conftest.$ac_objext \ | |
16171 | conftest$ac_exeext conftest.$ac_ext | |
a68ab351 | 16172 | |
a68ab351 | 16173 | |
5213506e RW |
16174 | else |
16175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16176 | /* end confdefs.h. */ | |
16177 | __thread int a; int b; int main() { return a = b; } | |
a68ab351 | 16178 | _ACEOF |
5213506e RW |
16179 | if ac_fn_c_try_run "$LINENO"; then : |
16180 | chktls_save_LDFLAGS="$LDFLAGS" | |
16181 | LDFLAGS="-static $LDFLAGS" | |
16182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16183 | /* end confdefs.h. */ | |
16184 | int main() { return 0; } | |
a68ab351 | 16185 | _ACEOF |
5213506e RW |
16186 | if ac_fn_c_try_link "$LINENO"; then : |
16187 | if test "$cross_compiling" = yes; then : | |
16188 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16189 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16190 | as_fn_error $? "cannot run test program while cross compiling |
16191 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
16192 | else |
16193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 | 16194 | /* end confdefs.h. */ |
5213506e RW |
16195 | __thread int a; int b; int main() { return a = b; } |
16196 | _ACEOF | |
16197 | if ac_fn_c_try_run "$LINENO"; then : | |
16198 | gcc_cv_have_tls=yes | |
16199 | else | |
16200 | gcc_cv_have_tls=no | |
16201 | fi | |
16202 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16203 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16204 | fi | |
a68ab351 | 16205 | |
5213506e RW |
16206 | else |
16207 | gcc_cv_have_tls=yes | |
16208 | fi | |
16209 | rm -f core conftest.err conftest.$ac_objext \ | |
16210 | conftest$ac_exeext conftest.$ac_ext | |
16211 | LDFLAGS="$chktls_save_LDFLAGS" | |
16212 | if test $gcc_cv_have_tls = yes; then | |
16213 | chktls_save_CFLAGS="$CFLAGS" | |
16214 | thread_CFLAGS=failed | |
16215 | for flag in '' '-pthread' '-lpthread'; do | |
16216 | CFLAGS="$flag $chktls_save_CFLAGS" | |
16217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16218 | /* end confdefs.h. */ | |
16219 | #include <pthread.h> | |
16220 | void *g(void *d) { return NULL; } | |
a68ab351 JJ |
16221 | int |
16222 | main () | |
16223 | { | |
5213506e | 16224 | pthread_t t; pthread_create(&t,NULL,g,NULL); |
a68ab351 JJ |
16225 | ; |
16226 | return 0; | |
16227 | } | |
16228 | _ACEOF | |
5213506e RW |
16229 | if ac_fn_c_try_link "$LINENO"; then : |
16230 | thread_CFLAGS="$flag" | |
a68ab351 | 16231 | fi |
5213506e RW |
16232 | rm -f core conftest.err conftest.$ac_objext \ |
16233 | conftest$ac_exeext conftest.$ac_ext | |
16234 | if test "X$thread_CFLAGS" != Xfailed; then | |
16235 | break | |
16236 | fi | |
16237 | done | |
16238 | CFLAGS="$chktls_save_CFLAGS" | |
16239 | if test "X$thread_CFLAGS" != Xfailed; then | |
16240 | CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" | |
75bc9e5e | 16241 | if test "$cross_compiling" = yes; then : |
5213506e RW |
16242 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
16243 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16244 | as_fn_error $? "cannot run test program while cross compiling |
16245 | See \`config.log' for more details" "$LINENO" 5; } | |
a68ab351 | 16246 | else |
5213506e | 16247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a68ab351 | 16248 | /* end confdefs.h. */ |
5213506e RW |
16249 | #include <pthread.h> |
16250 | __thread int a; | |
dbd34b89 | 16251 | static int *volatile a_in_other_thread; |
5213506e RW |
16252 | static void * |
16253 | thread_func (void *arg) | |
16254 | { | |
16255 | a_in_other_thread = &a; | |
16256 | return (void *)0; | |
16257 | } | |
a68ab351 JJ |
16258 | int |
16259 | main () | |
16260 | { | |
5213506e RW |
16261 | pthread_t thread; |
16262 | void *thread_retval; | |
dbd34b89 IS |
16263 | int *volatile a_in_main_thread; |
16264 | a_in_main_thread = &a; | |
5213506e RW |
16265 | if (pthread_create (&thread, (pthread_attr_t *)0, |
16266 | thread_func, (void *)0)) | |
16267 | return 0; | |
5213506e RW |
16268 | if (pthread_join (thread, &thread_retval)) |
16269 | return 0; | |
16270 | return (a_in_other_thread == a_in_main_thread); | |
a68ab351 JJ |
16271 | ; |
16272 | return 0; | |
16273 | } | |
16274 | _ACEOF | |
5213506e RW |
16275 | if ac_fn_c_try_run "$LINENO"; then : |
16276 | gcc_cv_have_tls=yes | |
a68ab351 | 16277 | else |
5213506e RW |
16278 | gcc_cv_have_tls=no |
16279 | fi | |
16280 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16281 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16282 | fi | |
16283 | ||
16284 | CFLAGS="$chktls_save_CFLAGS" | |
16285 | fi | |
16286 | fi | |
16287 | else | |
16288 | gcc_cv_have_tls=no | |
16289 | fi | |
16290 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16291 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16292 | fi | |
a68ab351 | 16293 | |
a68ab351 | 16294 | fi |
5213506e RW |
16295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 |
16296 | $as_echo "$gcc_cv_have_tls" >&6; } | |
16297 | if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then | |
16298 | ||
16299 | $as_echo "#define HAVE_TLS 1" >>confdefs.h | |
16300 | ||
16301 | fi | |
16302 | ||
f50eecba VR |
16303 | # See if we have emulated thread-local storage. |
16304 | ||
16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 | |
16306 | $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } | |
22e05272 | 16307 | if ${gcc_cv_use_emutls+:} false; then : |
f50eecba VR |
16308 | $as_echo_n "(cached) " >&6 |
16309 | else | |
16310 | ||
16311 | gcc_cv_use_emutls=no | |
16312 | echo '__thread int a; int b; int main() { return a = b; }' > conftest.c | |
16313 | if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' | |
16314 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16315 | (eval $ac_try) 2>&5 | |
16316 | ac_status=$? | |
16317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16318 | test $ac_status = 0; }; }; then | |
16319 | if grep __emutls_get_address conftest.s > /dev/null; then | |
16320 | gcc_cv_use_emutls=yes | |
16321 | fi | |
16322 | fi | |
16323 | rm -f conftest.* | |
16324 | ||
16325 | fi | |
16326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 | |
16327 | $as_echo "$gcc_cv_use_emutls" >&6; } | |
16328 | if test "$gcc_cv_use_emutls" = "yes" ; then | |
16329 | ||
16330 | $as_echo "#define USE_EMUTLS 1" >>confdefs.h | |
16331 | ||
16332 | fi | |
16333 | ||
451c19c4 | 16334 | # See what sort of export controls are available. |
5213506e RW |
16335 | |
16336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 | |
16337 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 16338 | if ${libgomp_cv_have_attribute_visibility+:} false; then : |
5213506e | 16339 | $as_echo_n "(cached) " >&6 |
a68ab351 | 16340 | else |
a68ab351 | 16341 | |
5213506e RW |
16342 | save_CFLAGS="$CFLAGS" |
16343 | CFLAGS="$CFLAGS -Werror" | |
16344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16345 | /* end confdefs.h. */ | |
16346 | void __attribute__((visibility("hidden"))) foo(void) { } | |
a68ab351 JJ |
16347 | int |
16348 | main () | |
16349 | { | |
16350 | ||
a68ab351 JJ |
16351 | ; |
16352 | return 0; | |
16353 | } | |
16354 | _ACEOF | |
5213506e RW |
16355 | if ac_fn_c_try_compile "$LINENO"; then : |
16356 | libgomp_cv_have_attribute_visibility=yes | |
a68ab351 | 16357 | else |
5213506e | 16358 | libgomp_cv_have_attribute_visibility=no |
a68ab351 | 16359 | fi |
5213506e RW |
16360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16361 | CFLAGS="$save_CFLAGS" | |
a68ab351 | 16362 | fi |
5213506e RW |
16363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5 |
16364 | $as_echo "$libgomp_cv_have_attribute_visibility" >&6; } | |
16365 | if test $libgomp_cv_have_attribute_visibility = yes; then | |
16366 | ||
16367 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h | |
16368 | ||
16369 | fi | |
16370 | ||
16371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 | |
16372 | $as_echo_n "checking whether the target supports dllexport... " >&6; } | |
22e05272 | 16373 | if ${libgomp_cv_have_attribute_dllexport+:} false; then : |
5213506e RW |
16374 | $as_echo_n "(cached) " >&6 |
16375 | else | |
a68ab351 | 16376 | |
5213506e RW |
16377 | save_CFLAGS="$CFLAGS" |
16378 | CFLAGS="$CFLAGS -Werror" | |
16379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16380 | /* end confdefs.h. */ | |
16381 | void __attribute__((dllexport)) foo(void) { } | |
a68ab351 JJ |
16382 | int |
16383 | main () | |
16384 | { | |
a68ab351 JJ |
16385 | |
16386 | ; | |
16387 | return 0; | |
16388 | } | |
16389 | _ACEOF | |
5213506e RW |
16390 | if ac_fn_c_try_compile "$LINENO"; then : |
16391 | libgomp_cv_have_attribute_dllexport=yes | |
16392 | else | |
16393 | libgomp_cv_have_attribute_dllexport=no | |
16394 | fi | |
16395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16396 | CFLAGS="$save_CFLAGS" | |
16397 | fi | |
16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5 | |
16399 | $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; } | |
16400 | if test $libgomp_cv_have_attribute_dllexport = yes; then | |
16401 | ||
16402 | $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h | |
16403 | ||
16404 | fi | |
16405 | ||
16406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 | |
16407 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 16408 | if ${libgomp_cv_have_attribute_alias+:} false; then : |
5213506e RW |
16409 | $as_echo_n "(cached) " >&6 |
16410 | else | |
16411 | ||
16412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16413 | /* end confdefs.h. */ |
16414 | ||
5213506e RW |
16415 | void foo(void) { } |
16416 | extern void bar(void) __attribute__((alias("foo"))); | |
a68ab351 JJ |
16417 | int |
16418 | main () | |
16419 | { | |
5213506e | 16420 | bar(); |
a68ab351 JJ |
16421 | ; |
16422 | return 0; | |
16423 | } | |
16424 | _ACEOF | |
5213506e RW |
16425 | if ac_fn_c_try_link "$LINENO"; then : |
16426 | libgomp_cv_have_attribute_alias=yes | |
a68ab351 | 16427 | else |
5213506e RW |
16428 | libgomp_cv_have_attribute_alias=no |
16429 | fi | |
16430 | rm -f core conftest.err conftest.$ac_objext \ | |
16431 | conftest$ac_exeext conftest.$ac_ext | |
16432 | fi | |
16433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5 | |
16434 | $as_echo "$libgomp_cv_have_attribute_alias" >&6; } | |
16435 | if test $libgomp_cv_have_attribute_alias = yes; then | |
16436 | ||
16437 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h | |
16438 | ||
16439 | fi | |
16440 | ||
16441 | ||
16442 | # Check whether --with-gnu-ld was given. | |
16443 | if test "${with_gnu_ld+set}" = set; then : | |
16444 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
16445 | else | |
16446 | with_gnu_ld=no | |
16447 | fi | |
a68ab351 | 16448 | |
5213506e RW |
16449 | ac_prog=ld |
16450 | if test "$GCC" = yes; then | |
16451 | # Check if gcc -print-prog-name=ld gives a path. | |
16452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
16453 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
16454 | case $host in | |
16455 | *-*-mingw*) | |
16456 | # gcc leaves a trailing carriage return which upsets mingw | |
16457 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
16458 | *) | |
16459 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
16460 | esac | |
16461 | case $ac_prog in | |
16462 | # Accept absolute paths. | |
16463 | [\\/]* | ?:[\\/]*) | |
16464 | re_direlt='/[^/][^/]*/\.\./' | |
16465 | # Canonicalize the pathname of ld | |
16466 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
16467 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
16468 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
16469 | done | |
16470 | test -z "$LD" && LD="$ac_prog" | |
16471 | ;; | |
16472 | "") | |
16473 | # If it fails, then pretend we aren't using GCC. | |
16474 | ac_prog=ld | |
16475 | ;; | |
16476 | *) | |
16477 | # If it is relative, then search for the first ld in PATH. | |
16478 | with_gnu_ld=unknown | |
16479 | ;; | |
16480 | esac | |
16481 | elif test "$with_gnu_ld" = yes; then | |
16482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
16483 | $as_echo_n "checking for GNU ld... " >&6; } | |
16484 | else | |
16485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
16486 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a68ab351 | 16487 | fi |
22e05272 | 16488 | if ${lt_cv_path_LD+:} false; then : |
5213506e RW |
16489 | $as_echo_n "(cached) " >&6 |
16490 | else | |
16491 | if test -z "$LD"; then | |
16492 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
16493 | for ac_dir in $PATH; do | |
16494 | IFS="$lt_save_ifs" | |
16495 | test -z "$ac_dir" && ac_dir=. | |
16496 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
16497 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
16498 | # Check to see if the program is GNU ld. I'd rather use --version, | |
16499 | # but apparently some variants of GNU ld only accept -v. | |
16500 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
16501 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
16502 | *GNU* | *'with BFD'*) | |
16503 | test "$with_gnu_ld" != no && break | |
16504 | ;; | |
16505 | *) | |
16506 | test "$with_gnu_ld" != yes && break | |
16507 | ;; | |
16508 | esac | |
16509 | fi | |
a68ab351 | 16510 | done |
5213506e | 16511 | IFS="$lt_save_ifs" |
a68ab351 | 16512 | else |
5213506e RW |
16513 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
16514 | fi | |
16515 | fi | |
16516 | ||
16517 | LD="$lt_cv_path_LD" | |
16518 | if test -n "$LD"; then | |
16519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
16520 | $as_echo "$LD" >&6; } | |
16521 | else | |
16522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16523 | $as_echo "no" >&6; } | |
16524 | fi | |
22e05272 | 16525 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5213506e RW |
16526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
16527 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 16528 | if ${lt_cv_prog_gnu_ld+:} false; then : |
5213506e RW |
16529 | $as_echo_n "(cached) " >&6 |
16530 | else | |
16531 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
16532 | case `$LD -v 2>&1 </dev/null` in | |
16533 | *GNU* | *'with BFD'*) | |
16534 | lt_cv_prog_gnu_ld=yes | |
16535 | ;; | |
16536 | *) | |
16537 | lt_cv_prog_gnu_ld=no | |
16538 | ;; | |
16539 | esac | |
16540 | fi | |
16541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
16542 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
16543 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
16544 | ||
16545 | ||
16546 | ||
16547 | ||
16548 | ||
16549 | ||
16550 | ||
16551 | # If we're not using GNU ld, then there's no point in even trying these | |
16552 | # tests. Check for that first. We should have already tested for gld | |
16553 | # by now (in libtool), but require it now just to be safe... | |
16554 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
16555 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
16556 | ||
16557 | ||
16558 | ||
16559 | # The name set by libtool depends on the version of libtool. Shame on us | |
16560 | # for depending on an impl detail, but c'est la vie. Older versions used | |
16561 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
16562 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
16563 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
16564 | # set (hence we're using an older libtool), then set it. | |
16565 | if test x${with_gnu_ld+set} != xset; then | |
16566 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
16567 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
16568 | with_gnu_ld=no | |
16569 | else | |
16570 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
16571 | fi | |
16572 | fi | |
16573 | ||
16574 | # Start by getting the version number. I think the libtool test already | |
16575 | # does some of this, but throws away the result. | |
16576 | libgomp_ld_is_gold=no | |
16577 | if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then | |
16578 | libgomp_ld_is_gold=yes | |
16579 | fi | |
16580 | ||
c82852f7 | 16581 | ldver=`$LD --version 2>/dev/null | |
89c74f4a | 16582 | sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'` |
5213506e RW |
16583 | |
16584 | libgomp_gnu_ld_version=`echo $ldver | \ | |
16585 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
16586 | ||
16587 | # Set --gc-sections. | |
16588 | if test "$with_gnu_ld" = "notbroken"; then | |
16589 | # GNU ld it is! Joy and bunny rabbits! | |
16590 | ||
16591 | # All these tests are for C++; save the language and the compiler flags. | |
16592 | # Need to do this so that g++ won't try to link in libstdc++ | |
16593 | ac_test_CFLAGS="${CFLAGS+set}" | |
16594 | ac_save_CFLAGS="$CFLAGS" | |
16595 | CFLAGS='-x c++ -Wl,--gc-sections' | |
16596 | ||
16597 | # Check for -Wl,--gc-sections | |
16598 | # XXX This test is broken at the moment, as symbols required for linking | |
16599 | # are now in libsupc++ (not built yet). In addition, this test has | |
16600 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
16601 | # really work at the moment (keeps on discarding used sections, first | |
16602 | # .eh_frame and now some of the glibc sections for iconv). | |
16603 | # Bzzzzt. Thanks for playing, maybe next time. | |
16604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 | |
16605 | $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } | |
16606 | if test "$cross_compiling" = yes; then : | |
16607 | ac_sectionLDflags=yes | |
16608 | else | |
16609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16610 | /* end confdefs.h. */ | |
16611 | ||
16612 | int main(void) | |
16613 | { | |
16614 | try { throw 1; } | |
16615 | catch (...) { }; | |
16616 | return 0; | |
16617 | } | |
a68ab351 | 16618 | |
a68ab351 | 16619 | _ACEOF |
5213506e RW |
16620 | if ac_fn_c_try_run "$LINENO"; then : |
16621 | ac_sectionLDflags=yes | |
16622 | else | |
16623 | ac_sectionLDflags=no | |
16624 | fi | |
16625 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16626 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16627 | fi | |
16628 | ||
16629 | if test "$ac_test_CFLAGS" = set; then | |
16630 | CFLAGS="$ac_save_CFLAGS" | |
16631 | else | |
16632 | # this is the suspicious part | |
16633 | CFLAGS='' | |
16634 | fi | |
16635 | if test "$ac_sectionLDflags" = "yes"; then | |
16636 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
16637 | fi | |
16638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 | |
16639 | $as_echo "$ac_sectionLDflags" >&6; } | |
16640 | fi | |
16641 | ||
16642 | # Set linker optimization flags. | |
16643 | if test x"$with_gnu_ld" = x"yes"; then | |
16644 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
16645 | fi | |
16646 | ||
16647 | ||
16648 | ||
16649 | ||
16650 | ||
16651 | ||
16652 | # Check whether --enable-symvers was given. | |
16653 | if test "${enable_symvers+set}" = set; then : | |
16654 | enableval=$enable_symvers; | |
16655 | case "$enableval" in | |
bddd6626 | 16656 | yes|no|gnu*|sun) ;; |
22e05272 | 16657 | *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; |
5213506e RW |
16658 | esac |
16659 | ||
16660 | else | |
16661 | enable_symvers=yes | |
16662 | fi | |
16663 | ||
16664 | ||
16665 | ||
16666 | # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we | |
16667 | # don't know enough about $LD to do tricks... | |
16668 | ||
bf382f5f RO |
16669 | |
16670 | # Turn a 'yes' into a suitable default. | |
16671 | if test x$enable_symvers = xyes ; then | |
16672 | # FIXME The following test is too strict, in theory. | |
16673 | if test $enable_shared = no || test "x$LD" = x; then | |
16674 | enable_symvers=no | |
6d28b933 | 16675 | else |
bf382f5f RO |
16676 | if test $with_gnu_ld = yes ; then |
16677 | enable_symvers=gnu | |
16678 | else | |
16679 | case ${target_os} in | |
16680 | # Sun symbol versioning exists since Solaris 2.5. | |
16681 | solaris2.[5-9]* | solaris2.1[0-9]*) | |
16682 | enable_symvers=sun ;; | |
16683 | *) | |
16684 | enable_symvers=no ;; | |
16685 | esac | |
16686 | fi | |
6d28b933 RO |
16687 | fi |
16688 | fi | |
16689 | ||
16690 | # Check if 'sun' was requested on non-Solaris 2 platforms. | |
16691 | if test x$enable_symvers = xsun ; then | |
16692 | case ${target_os} in | |
16693 | solaris2*) | |
16694 | # All fine. | |
16695 | ;; | |
16696 | *) | |
16697 | # Unlikely to work. | |
16698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 | |
16699 | $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} | |
16700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 | |
16701 | $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} | |
16702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16703 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16704 | enable_symvers=no | |
16705 | ;; | |
16706 | esac | |
5213506e RW |
16707 | fi |
16708 | ||
16709 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
16710 | if test $enable_symvers != no; then | |
16711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 | |
16712 | $as_echo_n "checking for shared libgcc... " >&6; } | |
16713 | ac_save_CFLAGS="$CFLAGS" | |
16714 | CFLAGS=' -lgcc_s' | |
16715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16716 | /* end confdefs.h. */ |
16717 | ||
16718 | int | |
16719 | main () | |
16720 | { | |
5213506e | 16721 | return 0; |
a68ab351 JJ |
16722 | ; |
16723 | return 0; | |
16724 | } | |
16725 | _ACEOF | |
5213506e RW |
16726 | if ac_fn_c_try_link "$LINENO"; then : |
16727 | libgomp_shared_libgcc=yes | |
16728 | else | |
16729 | libgomp_shared_libgcc=no | |
16730 | fi | |
16731 | rm -f core conftest.err conftest.$ac_objext \ | |
16732 | conftest$ac_exeext conftest.$ac_ext | |
16733 | CFLAGS="$ac_save_CFLAGS" | |
16734 | if test $libgomp_shared_libgcc = no; then | |
16735 | cat > conftest.c <<EOF | |
16736 | int main (void) { return 0; } | |
16737 | EOF | |
16738 | libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
16739 | -shared -shared-libgcc -o conftest.so \ | |
16740 | conftest.c -v 2>&1 >/dev/null \ | |
16741 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
16742 | rm -f conftest.c conftest.so | |
16743 | if test x${libgomp_libgcc_s_suffix+set} = xset; then | |
16744 | CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" | |
16745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16746 | /* end confdefs.h. */ |
16747 | ||
16748 | int | |
16749 | main () | |
16750 | { | |
5213506e | 16751 | return 0; |
a68ab351 JJ |
16752 | ; |
16753 | return 0; | |
16754 | } | |
16755 | _ACEOF | |
5213506e RW |
16756 | if ac_fn_c_try_link "$LINENO"; then : |
16757 | libgomp_shared_libgcc=yes | |
16758 | fi | |
16759 | rm -f core conftest.err conftest.$ac_objext \ | |
16760 | conftest$ac_exeext conftest.$ac_ext | |
16761 | CFLAGS="$ac_save_CFLAGS" | |
16762 | fi | |
16763 | fi | |
16764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5 | |
16765 | $as_echo "$libgomp_shared_libgcc" >&6; } | |
16766 | fi | |
16767 | ||
16768 | # For GNU ld, we need at least this version. The format is described in | |
16769 | # LIBGOMP_CHECK_LINKER_FEATURES above. | |
16770 | libgomp_min_gnu_ld_version=21400 | |
16771 | # XXXXXXXXXXX libgomp_gnu_ld_version=21390 | |
a68ab351 | 16772 | |
5213506e RW |
16773 | # Check to see if unspecified "yes" value can win, given results above. |
16774 | # Change "yes" into either "no" or a style name. | |
6d28b933 RO |
16775 | if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then |
16776 | if test $with_gnu_ld = yes; then | |
5213506e RW |
16777 | if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then |
16778 | enable_symvers=gnu | |
16779 | elif test $libgomp_ld_is_gold = yes ; then | |
16780 | enable_symvers=gnu | |
16781 | else | |
16782 | # The right tools, the right setup, but too old. Fallbacks? | |
16783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 | |
16784 | $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} | |
16785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
16786 | $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
16787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 | |
16788 | $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
16789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 | |
16790 | $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
16791 | if test $libgomp_gnu_ld_version -ge 21200 ; then | |
16792 | # Globbing fix is present, proper block support is not. | |
16793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16794 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16795 | enable_symvers=no | |
16796 | else | |
16797 | # 2.11 or older. | |
16798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16799 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16800 | enable_symvers=no | |
16801 | fi | |
16802 | fi | |
6d28b933 RO |
16803 | elif test $enable_symvers = sun; then |
16804 | : All interesting versions of Sun ld support sun style symbol versioning. | |
5213506e RW |
16805 | else |
16806 | # just fail for now | |
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
16808 | $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
16809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 | |
16810 | $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
16811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
16812 | $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
16813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
16814 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
16815 | enable_symvers=no | |
16816 | fi | |
a68ab351 | 16817 | fi |
5213506e RW |
16818 | |
16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5 | |
16820 | $as_echo_n "checking whether the target supports .symver directive... " >&6; } | |
22e05272 | 16821 | if ${libgomp_cv_have_as_symver_directive+:} false; then : |
5213506e | 16822 | $as_echo_n "(cached) " >&6 |
a68ab351 | 16823 | else |
a68ab351 | 16824 | |
5213506e | 16825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a68ab351 | 16826 | /* end confdefs.h. */ |
5213506e | 16827 | void foo (void); __asm (".symver foo, bar@SYMVER"); |
a68ab351 JJ |
16828 | int |
16829 | main () | |
16830 | { | |
a68ab351 JJ |
16831 | |
16832 | ; | |
16833 | return 0; | |
16834 | } | |
16835 | _ACEOF | |
5213506e RW |
16836 | if ac_fn_c_try_compile "$LINENO"; then : |
16837 | libgomp_cv_have_as_symver_directive=yes | |
a68ab351 | 16838 | else |
5213506e RW |
16839 | libgomp_cv_have_as_symver_directive=no |
16840 | fi | |
16841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16842 | fi | |
16843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5 | |
16844 | $as_echo "$libgomp_cv_have_as_symver_directive" >&6; } | |
16845 | if test $libgomp_cv_have_as_symver_directive = yes; then | |
16846 | ||
16847 | $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h | |
a68ab351 | 16848 | |
a68ab351 | 16849 | fi |
5213506e RW |
16850 | |
16851 | if test $enable_symvers != no; then | |
16852 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= | |
16853 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' | |
a68ab351 | 16854 | else |
5213506e RW |
16855 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' |
16856 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= | |
16857 | fi | |
a68ab351 | 16858 | |
6d28b933 RO |
16859 | if test $enable_symvers = gnu; then |
16860 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE= | |
16861 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' | |
16862 | else | |
16863 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' | |
16864 | LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE= | |
16865 | fi | |
16866 | ||
16867 | if test $enable_symvers = sun; then | |
16868 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE= | |
16869 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' | |
16870 | else | |
16871 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' | |
16872 | LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE= | |
16873 | fi | |
16874 | ||
5213506e RW |
16875 | { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 |
16876 | $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
a68ab351 | 16877 | |
6d28b933 RO |
16878 | if test $enable_symvers != no ; then |
16879 | case ${target_os} in | |
16880 | # The Solaris 2 runtime linker doesn't support the GNU extension of | |
16881 | # binding the same symbol to different versions | |
16882 | solaris2*) | |
cc2de92d | 16883 | ;; |
6d28b933 RO |
16884 | # Other platforms with GNU symbol versioning (GNU/Linux, more?) do. |
16885 | *) | |
16886 | ||
16887 | $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h | |
16888 | ||
cc2de92d | 16889 | ;; |
6d28b933 | 16890 | esac |
6d28b933 RO |
16891 | fi |
16892 | ||
16893 | ||
5213506e RW |
16894 | if test $enable_symvers = gnu; then |
16895 | ||
16896 | $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h | |
a68ab351 JJ |
16897 | |
16898 | fi | |
5213506e RW |
16899 | |
16900 | # Get target configury. | |
16901 | . ${srcdir}/configure.tgt | |
16902 | CFLAGS="$save_CFLAGS $XCFLAGS" | |
16903 | ||
16904 | # Check for __sync_val_compare_and_swap, but only after the target has | |
16905 | # had a chance to set XCFLAGS. | |
16906 | ||
16907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
16908 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } | |
22e05272 | 16909 | if ${libgomp_cv_have_sync_builtins+:} false; then : |
5213506e RW |
16910 | $as_echo_n "(cached) " >&6 |
16911 | else | |
16912 | ||
16913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a68ab351 JJ |
16914 | /* end confdefs.h. */ |
16915 | ||
16916 | int | |
16917 | main () | |
16918 | { | |
289a9f86 | 16919 | int foo; __sync_val_compare_and_swap(&foo, 0, 1); |
a68ab351 JJ |
16920 | ; |
16921 | return 0; | |
16922 | } | |
16923 | _ACEOF | |
5213506e RW |
16924 | if ac_fn_c_try_link "$LINENO"; then : |
16925 | libgomp_cv_have_sync_builtins=yes | |
16926 | else | |
16927 | libgomp_cv_have_sync_builtins=no | |
16928 | fi | |
16929 | rm -f core conftest.err conftest.$ac_objext \ | |
16930 | conftest$ac_exeext conftest.$ac_ext | |
16931 | fi | |
16932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5 | |
16933 | $as_echo "$libgomp_cv_have_sync_builtins" >&6; } | |
16934 | if test $libgomp_cv_have_sync_builtins = yes; then | |
a68ab351 | 16935 | |
5213506e RW |
16936 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h |
16937 | ||
16938 | fi | |
16939 | ||
16940 | XCFLAGS="$XCFLAGS$XPCFLAGS" | |
16941 | ||
efe33ced IT |
16942 | # Add CET specific flags if CET is enabled |
16943 | # Check whether --enable-cet was given. | |
16944 | if test "${enable_cet+set}" = set; then : | |
16945 | enableval=$enable_cet; | |
16946 | case "$enableval" in | |
a0e1df88 | 16947 | yes|no|auto) ;; |
22e05272 | 16948 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
efe33ced IT |
16949 | esac |
16950 | ||
16951 | else | |
a0e1df88 | 16952 | enable_cet=no |
efe33ced IT |
16953 | fi |
16954 | ||
16955 | ||
14e335ed IT |
16956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
16957 | $as_echo_n "checking for CET support... " >&6; } | |
16958 | ||
efe33ced IT |
16959 | case "$host" in |
16960 | i[34567]86-*-linux* | x86_64-*-linux*) | |
16961 | case "$enable_cet" in | |
a0e1df88 | 16962 | auto) |
14e335ed IT |
16963 | # Check if target supports multi-byte NOPs |
16964 | # and if assembler supports CET insn. | |
efe33ced IT |
16965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16966 | /* end confdefs.h. */ | |
16967 | ||
16968 | int | |
16969 | main () | |
16970 | { | |
14e335ed IT |
16971 | |
16972 | #if !defined(__SSE2__) | |
16973 | #error target does not support multi-byte NOPs | |
16974 | #else | |
efe33ced | 16975 | asm ("setssbsy"); |
14e335ed IT |
16976 | #endif |
16977 | ||
efe33ced IT |
16978 | ; |
16979 | return 0; | |
16980 | } | |
16981 | _ACEOF | |
16982 | if ac_fn_c_try_compile "$LINENO"; then : | |
16983 | enable_cet=yes | |
16984 | else | |
16985 | enable_cet=no | |
16986 | fi | |
16987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16988 | ;; | |
16989 | yes) | |
16990 | # Check if assembler supports CET. | |
16991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16992 | /* end confdefs.h. */ | |
16993 | ||
16994 | int | |
16995 | main () | |
16996 | { | |
16997 | asm ("setssbsy"); | |
16998 | ; | |
16999 | return 0; | |
17000 | } | |
17001 | _ACEOF | |
17002 | if ac_fn_c_try_compile "$LINENO"; then : | |
17003 | ||
17004 | else | |
22e05272 | 17005 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
efe33ced IT |
17006 | fi |
17007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17008 | ;; | |
17009 | esac | |
17010 | ;; | |
17011 | *) | |
17012 | enable_cet=no | |
17013 | ;; | |
17014 | esac | |
17015 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 17016 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
17017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17018 | $as_echo "yes" >&6; } | |
17019 | else | |
17020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17021 | $as_echo "no" >&6; } | |
efe33ced IT |
17022 | fi |
17023 | ||
17024 | XCFLAGS="$XCFLAGS $CET_FLAGS" | |
17025 | FCFLAGS="$FCFLAGS $CET_FLAGS" | |
17026 | ||
5213506e RW |
17027 | |
17028 | ||
17029 | ||
17030 | ||
17031 | # Cleanup and exit. | |
17032 | CFLAGS="$save_CFLAGS" | |
17033 | cat >confcache <<\_ACEOF | |
17034 | # This file is a shell script that caches the results of configure | |
17035 | # tests run on this system so they can be shared between configure | |
17036 | # scripts and configure runs, see configure's option --config-cache. | |
17037 | # It is not useful on other systems. If it contains results you don't | |
17038 | # want to keep, you may remove or edit it. | |
17039 | # | |
17040 | # config.status only pays attention to the cache file if you give it | |
17041 | # the --recheck option to rerun configure. | |
17042 | # | |
17043 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17044 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17045 | # following values. | |
a68ab351 | 17046 | |
a68ab351 | 17047 | _ACEOF |
5213506e RW |
17048 | |
17049 | # The following way of writing the cache mishandles newlines in values, | |
17050 | # but we know of no workaround that is simple, portable, and efficient. | |
17051 | # So, we kill variables containing newlines. | |
17052 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17053 | # and sets the high bit in the cache file unless we assign to the vars. | |
17054 | ( | |
17055 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17056 | eval ac_val=\$$ac_var | |
17057 | case $ac_val in #( | |
17058 | *${as_nl}*) | |
17059 | case $ac_var in #( | |
17060 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17061 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17062 | esac | |
17063 | case $ac_var in #( | |
17064 | _ | IFS | as_nl) ;; #( | |
17065 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17066 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17067 | esac ;; | |
17068 | esac | |
17069 | done | |
17070 | ||
17071 | (set) 2>&1 | | |
17072 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
17073 | *${as_nl}ac_space=\ *) | |
17074 | # `set' does not quote correctly, so add quotes: double-quote | |
17075 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
17076 | sed -n \ | |
17077 | "s/'/'\\\\''/g; | |
17078 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17079 | ;; #( | |
17080 | *) | |
17081 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17082 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
17083 | ;; | |
17084 | esac | | |
17085 | sort | |
17086 | ) | | |
17087 | sed ' | |
17088 | /^ac_cv_env_/b end | |
17089 | t clear | |
17090 | :clear | |
17091 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17092 | t end | |
17093 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17094 | :end' >>confcache | |
17095 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17096 | if test -w "$cache_file"; then | |
22e05272 | 17097 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
17098 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17099 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
17100 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17101 | cat confcache >"$cache_file" | |
17102 | else | |
17103 | case $cache_file in #( | |
17104 | */* | ?:*) | |
17105 | mv -f confcache "$cache_file"$$ && | |
17106 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17107 | *) | |
17108 | mv -f confcache "$cache_file" ;; | |
17109 | esac | |
17110 | fi | |
17111 | fi | |
5213506e RW |
17112 | else |
17113 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
17114 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
17115 | fi | |
17116 | fi | |
17117 | rm -f confcache | |
17118 | ||
17119 | if test ${multilib} = yes; then | |
17120 | multilib_arg="--enable-multilib" | |
a68ab351 | 17121 | else |
5213506e RW |
17122 | multilib_arg= |
17123 | fi | |
17124 | ||
17125 | # Set up the set of libraries that we need to link against for libgomp. | |
de14871c | 17126 | # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread, |
5213506e RW |
17127 | # which will force linkage against -lpthread (or equivalent for the system). |
17128 | # That's not 100% ideal, but about the best we can do easily. | |
17129 | if test $enable_shared = yes; then | |
17130 | link_gomp="-lgomp %{static: $LIBS}" | |
17131 | else | |
17132 | link_gomp="-lgomp $LIBS" | |
17133 | fi | |
17134 | ||
17135 | ||
17136 | if test "$ac_cv_fc_compiler_gnu" = yes; then | |
17137 | USE_FORTRAN_TRUE= | |
17138 | USE_FORTRAN_FALSE='#' | |
17139 | else | |
17140 | USE_FORTRAN_TRUE='#' | |
17141 | USE_FORTRAN_FALSE= | |
17142 | fi | |
17143 | ||
17144 | ||
17145 | # ??? 2006-01-24: Paulo committed to asking autoconf folk to document | |
17146 | # and export AC_COMPUTE_INT. If that happens, then we'll need to remove | |
17147 | # the underscore here and update the PREREQ. If it doesn't, then we'll | |
17148 | # need to copy this macro to our acinclude.m4. | |
17149 | save_CFLAGS="$CFLAGS" | |
17150 | for i in $config_path; do | |
17151 | if test -f $srcdir/config/$i/omp-lock.h; then | |
17152 | CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h" | |
17153 | break | |
17154 | fi | |
17155 | done | |
a68ab351 | 17156 | |
5213506e | 17157 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then : |
a68ab351 | 17158 | |
5213506e | 17159 | else |
22e05272 | 17160 | as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5 |
5213506e | 17161 | fi |
a68ab351 | 17162 | |
a68ab351 | 17163 | |
5213506e | 17164 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then : |
a68ab351 | 17165 | |
5213506e | 17166 | fi |
a68ab351 | 17167 | |
a68ab351 | 17168 | |
5213506e | 17169 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then : |
a68ab351 | 17170 | |
a68ab351 | 17171 | fi |
a68ab351 | 17172 | |
a68ab351 | 17173 | |
5213506e | 17174 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then : |
a68ab351 | 17175 | |
a68ab351 | 17176 | fi |
a68ab351 | 17177 | |
a68ab351 | 17178 | |
5213506e | 17179 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then : |
a68ab351 | 17180 | |
a68ab351 | 17181 | else |
22e05272 | 17182 | as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5 |
5213506e RW |
17183 | fi |
17184 | ||
17185 | ||
17186 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then : | |
a68ab351 JJ |
17187 | |
17188 | fi | |
5213506e RW |
17189 | |
17190 | ||
17191 | if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then : | |
17192 | ||
a68ab351 | 17193 | fi |
5213506e RW |
17194 | |
17195 | ||
17196 | if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then : | |
17197 | ||
a68ab351 | 17198 | fi |
5213506e RW |
17199 | |
17200 | ||
a68ab351 JJ |
17201 | |
17202 | # If the lock fits in an integer, then arrange for Fortran to use that | |
17203 | # integer. If it doesn't, then arrange for Fortran to use a pointer. | |
17204 | # Except that we don't have a way at present to multi-lib the installed | |
17205 | # Fortran modules, so we assume 8 bytes for pointers, regardless of the | |
17206 | # actual target. | |
17207 | OMP_LOCK_KIND=$OMP_LOCK_SIZE | |
17208 | OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE | |
17209 | if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then | |
17210 | OMP_LOCK_KIND=8 | |
17211 | fi | |
17212 | if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then | |
17213 | OMP_NEST_LOCK_KIND=8 | |
17214 | fi | |
17215 | OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE | |
17216 | OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE | |
17217 | if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then | |
17218 | OMP_LOCK_25_KIND=8 | |
17219 | fi | |
17220 | if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then | |
17221 | OMP_NEST_LOCK_25_KIND=8 | |
17222 | fi | |
17223 | ||
17224 | ||
17225 | ||
17226 | ||
17227 | ||
17228 | ||
03b8fe49 PB |
17229 | |
17230 | ||
17231 | ||
17232 | ||
17233 | ||
17234 | ||
17235 | ||
17236 | CFLAGS="$save_CFLAGS" | |
17237 | ||
3c36aa6b JJ |
17238 | # Determine what GCC version number to use in filesystem paths. |
17239 | ||
17240 | get_gcc_base_ver="cat" | |
17241 | ||
17242 | # Check whether --with-gcc-major-version-only was given. | |
17243 | if test "${with_gcc_major_version_only+set}" = set; then : | |
17244 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 17245 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
17246 | fi |
17247 | ||
17248 | fi | |
17249 | ||
17250 | ||
17251 | ||
17252 | ||
5213506e | 17253 | ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" |
03b8fe49 | 17254 | |
5213506e | 17255 | ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" |
953ff289 | 17256 | |
41dbbb37 TS |
17257 | ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" |
17258 | ||
953ff289 DN |
17259 | cat >confcache <<\_ACEOF |
17260 | # This file is a shell script that caches the results of configure | |
17261 | # tests run on this system so they can be shared between configure | |
17262 | # scripts and configure runs, see configure's option --config-cache. | |
17263 | # It is not useful on other systems. If it contains results you don't | |
17264 | # want to keep, you may remove or edit it. | |
17265 | # | |
17266 | # config.status only pays attention to the cache file if you give it | |
17267 | # the --recheck option to rerun configure. | |
17268 | # | |
17269 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17270 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17271 | # following values. | |
17272 | ||
17273 | _ACEOF | |
17274 | ||
17275 | # The following way of writing the cache mishandles newlines in values, | |
17276 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 17277 | # So, we kill variables containing newlines. |
953ff289 DN |
17278 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17279 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
17280 | ( |
17281 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17282 | eval ac_val=\$$ac_var | |
17283 | case $ac_val in #( | |
17284 | *${as_nl}*) | |
17285 | case $ac_var in #( | |
17286 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17287 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17288 | esac | |
17289 | case $ac_var in #( | |
17290 | _ | IFS | as_nl) ;; #( | |
17291 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17292 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17293 | esac ;; | |
17294 | esac | |
17295 | done | |
17296 | ||
953ff289 | 17297 | (set) 2>&1 | |
5213506e RW |
17298 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17299 | *${as_nl}ac_space=\ *) | |
17300 | # `set' does not quote correctly, so add quotes: double-quote | |
17301 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
953ff289 DN |
17302 | sed -n \ |
17303 | "s/'/'\\\\''/g; | |
17304 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 17305 | ;; #( |
953ff289 DN |
17306 | *) |
17307 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 17308 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
953ff289 | 17309 | ;; |
5213506e RW |
17310 | esac | |
17311 | sort | |
17312 | ) | | |
953ff289 | 17313 | sed ' |
5213506e | 17314 | /^ac_cv_env_/b end |
953ff289 | 17315 | t clear |
5213506e | 17316 | :clear |
953ff289 DN |
17317 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17318 | t end | |
5213506e RW |
17319 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17320 | :end' >>confcache | |
17321 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17322 | if test -w "$cache_file"; then | |
22e05272 | 17323 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17325 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
17326 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17327 | cat confcache >"$cache_file" | |
17328 | else | |
17329 | case $cache_file in #( | |
17330 | */* | ?:*) | |
17331 | mv -f confcache "$cache_file"$$ && | |
17332 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17333 | *) | |
17334 | mv -f confcache "$cache_file" ;; | |
17335 | esac | |
17336 | fi | |
17337 | fi | |
953ff289 | 17338 | else |
5213506e RW |
17339 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17340 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
953ff289 DN |
17341 | fi |
17342 | fi | |
17343 | rm -f confcache | |
17344 | ||
17345 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17346 | # Let make expand exec_prefix. | |
17347 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17348 | ||
953ff289 DN |
17349 | DEFS=-DHAVE_CONFIG_H |
17350 | ||
17351 | ac_libobjs= | |
17352 | ac_ltlibobjs= | |
22e05272 | 17353 | U= |
953ff289 DN |
17354 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17355 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
17356 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17357 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17358 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17359 | # will be set to the directory where LIBOBJS objects are built. | |
17360 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17361 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
953ff289 DN |
17362 | done |
17363 | LIBOBJS=$ac_libobjs | |
17364 | ||
17365 | LTLIBOBJS=$ac_ltlibobjs | |
17366 | ||
17367 | ||
627ab4b8 | 17368 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then |
22e05272 | 17369 | as_fn_error $? "conditional \"GENINSRC\" was never defined. |
5213506e RW |
17370 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17371 | fi | |
22e05272 JM |
17372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17373 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17374 | if test -n "$am_sleep_pid"; then | |
17375 | # Hide warnings about reused PIDs. | |
17376 | wait $am_sleep_pid 2>/dev/null | |
17377 | fi | |
17378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17379 | $as_echo "done" >&6; } | |
5213506e RW |
17380 | if test -n "$EXEEXT"; then |
17381 | am__EXEEXT_TRUE= | |
17382 | am__EXEEXT_FALSE='#' | |
17383 | else | |
17384 | am__EXEEXT_TRUE='#' | |
17385 | am__EXEEXT_FALSE= | |
627ab4b8 | 17386 | fi |
5213506e | 17387 | |
953ff289 | 17388 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 17389 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 17390 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
953ff289 DN |
17391 | fi |
17392 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 17393 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 17394 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
953ff289 | 17395 | fi |
748b9d7c | 17396 | if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then |
22e05272 | 17397 | as_fn_error $? "conditional \"BUILD_INFO\" was never defined. |
5213506e | 17398 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
748b9d7c | 17399 | fi |
c41303c6 | 17400 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 17401 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 17402 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
c41303c6 | 17403 | fi |
41dbbb37 | 17404 | if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then |
22e05272 | 17405 | as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined. |
41dbbb37 TS |
17406 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17407 | fi | |
b2b40051 | 17408 | if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then |
22e05272 | 17409 | as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined. |
b2b40051 MJ |
17410 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17411 | fi | |
953ff289 | 17412 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then |
22e05272 | 17413 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. |
5213506e | 17414 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
953ff289 | 17415 | fi |
6d28b933 | 17416 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then |
22e05272 | 17417 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined. |
6d28b933 RO |
17418 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17419 | fi | |
17420 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then | |
22e05272 | 17421 | as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined. |
6d28b933 RO |
17422 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17423 | fi | |
953ff289 | 17424 | if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then |
22e05272 | 17425 | as_fn_error $? "conditional \"USE_FORTRAN\" was never defined. |
5213506e | 17426 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
953ff289 DN |
17427 | fi |
17428 | ||
22e05272 | 17429 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 17430 | ac_write_fail=0 |
953ff289 DN |
17431 | ac_clean_files_save=$ac_clean_files |
17432 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
17433 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17434 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17435 | as_write_fail=0 | |
17436 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
953ff289 DN |
17437 | #! $SHELL |
17438 | # Generated by $as_me. | |
17439 | # Run this file to recreate the current configuration. | |
17440 | # Compiler output produced by configure, useful for debugging | |
17441 | # configure, is in config.log if it exists. | |
17442 | ||
17443 | debug=false | |
17444 | ac_cs_recheck=false | |
17445 | ac_cs_silent=false | |
953ff289 | 17446 | |
5213506e RW |
17447 | SHELL=\${CONFIG_SHELL-$SHELL} |
17448 | export SHELL | |
17449 | _ASEOF | |
17450 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17451 | ## -------------------- ## | |
17452 | ## M4sh Initialization. ## | |
17453 | ## -------------------- ## | |
17454 | ||
17455 | # Be more Bourne compatible | |
17456 | DUALCASE=1; export DUALCASE # for MKS sh | |
17457 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
953ff289 DN |
17458 | emulate sh |
17459 | NULLCMD=: | |
5213506e | 17460 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
953ff289 DN |
17461 | # is contrary to our usage. Disable this feature. |
17462 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
17463 | setopt NO_GLOB_SUBST |
17464 | else | |
17465 | case `(set -o) 2>/dev/null` in #( | |
17466 | *posix*) : | |
17467 | set -o posix ;; #( | |
17468 | *) : | |
17469 | ;; | |
17470 | esac | |
953ff289 | 17471 | fi |
953ff289 | 17472 | |
5213506e RW |
17473 | |
17474 | as_nl=' | |
17475 | ' | |
17476 | export as_nl | |
17477 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17478 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17479 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17480 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17481 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17482 | # but without wasting forks for bash or zsh. | |
17483 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17484 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17485 | as_echo='print -r --' | |
17486 | as_echo_n='print -rn --' | |
17487 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17488 | as_echo='printf %s\n' | |
17489 | as_echo_n='printf %s' | |
17490 | else | |
17491 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17492 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17493 | as_echo_n='/usr/ucb/echo -n' | |
17494 | else | |
17495 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17496 | as_echo_n_body='eval | |
17497 | arg=$1; | |
17498 | case $arg in #( | |
17499 | *"$as_nl"*) | |
17500 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17501 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17502 | esac; | |
17503 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17504 | ' | |
17505 | export as_echo_n_body | |
17506 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17507 | fi | |
17508 | export as_echo_body | |
17509 | as_echo='sh -c $as_echo_body as_echo' | |
17510 | fi | |
17511 | ||
17512 | # The user is always right. | |
17513 | if test "${PATH_SEPARATOR+set}" != set; then | |
17514 | PATH_SEPARATOR=: | |
17515 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17516 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17517 | PATH_SEPARATOR=';' | |
17518 | } | |
953ff289 DN |
17519 | fi |
17520 | ||
17521 | ||
5213506e RW |
17522 | # IFS |
17523 | # We need space, tab and new line, in precisely that order. Quoting is | |
17524 | # there to prevent editors from complaining about space-tab. | |
17525 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17526 | # splitting by setting IFS to empty value.) | |
17527 | IFS=" "" $as_nl" | |
17528 | ||
17529 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 17530 | as_myself= |
5213506e RW |
17531 | case $0 in #(( |
17532 | *[\\/]* ) as_myself=$0 ;; | |
17533 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17534 | for as_dir in $PATH | |
17535 | do | |
17536 | IFS=$as_save_IFS | |
17537 | test -z "$as_dir" && as_dir=. | |
17538 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17539 | done | |
17540 | IFS=$as_save_IFS | |
17541 | ||
17542 | ;; | |
17543 | esac | |
17544 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17545 | # in which case we are not to be found in the path. | |
17546 | if test "x$as_myself" = x; then | |
17547 | as_myself=$0 | |
17548 | fi | |
17549 | if test ! -f "$as_myself"; then | |
17550 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17551 | exit 1 | |
17552 | fi | |
17553 | ||
17554 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17555 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17556 | # suppresses any "Segmentation fault" message there. '((' could | |
17557 | # trigger a bug in pdksh 5.2.14. | |
17558 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17559 | do eval test x\${$as_var+set} = xset \ | |
17560 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17561 | done | |
953ff289 DN |
17562 | PS1='$ ' |
17563 | PS2='> ' | |
17564 | PS4='+ ' | |
17565 | ||
17566 | # NLS nuisances. | |
5213506e RW |
17567 | LC_ALL=C |
17568 | export LC_ALL | |
17569 | LANGUAGE=C | |
17570 | export LANGUAGE | |
17571 | ||
17572 | # CDPATH. | |
17573 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17574 | ||
17575 | ||
22e05272 JM |
17576 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17577 | # ---------------------------------------- | |
5213506e RW |
17578 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17579 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 17580 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
17581 | as_fn_error () |
17582 | { | |
22e05272 JM |
17583 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17584 | if test "$4"; then | |
17585 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17586 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
953ff289 | 17587 | fi |
22e05272 | 17588 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
17589 | as_fn_exit $as_status |
17590 | } # as_fn_error | |
17591 | ||
17592 | ||
17593 | # as_fn_set_status STATUS | |
17594 | # ----------------------- | |
17595 | # Set $? to STATUS, without forking. | |
17596 | as_fn_set_status () | |
17597 | { | |
17598 | return $1 | |
17599 | } # as_fn_set_status | |
17600 | ||
17601 | # as_fn_exit STATUS | |
17602 | # ----------------- | |
17603 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17604 | as_fn_exit () | |
17605 | { | |
17606 | set +e | |
17607 | as_fn_set_status $1 | |
17608 | exit $1 | |
17609 | } # as_fn_exit | |
17610 | ||
17611 | # as_fn_unset VAR | |
17612 | # --------------- | |
17613 | # Portably unset VAR. | |
17614 | as_fn_unset () | |
17615 | { | |
17616 | { eval $1=; unset $1;} | |
17617 | } | |
17618 | as_unset=as_fn_unset | |
17619 | # as_fn_append VAR VALUE | |
17620 | # ---------------------- | |
17621 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17622 | # advantage of any shell optimizations that allow amortized linear growth over | |
17623 | # repeated appends, instead of the typical quadratic growth present in naive | |
17624 | # implementations. | |
17625 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17626 | eval 'as_fn_append () | |
17627 | { | |
17628 | eval $1+=\$2 | |
17629 | }' | |
17630 | else | |
17631 | as_fn_append () | |
17632 | { | |
17633 | eval $1=\$$1\$2 | |
17634 | } | |
17635 | fi # as_fn_append | |
17636 | ||
17637 | # as_fn_arith ARG... | |
17638 | # ------------------ | |
17639 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17640 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17641 | # must be portable across $(()) and expr. | |
17642 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17643 | eval 'as_fn_arith () | |
17644 | { | |
17645 | as_val=$(( $* )) | |
17646 | }' | |
17647 | else | |
17648 | as_fn_arith () | |
17649 | { | |
17650 | as_val=`expr "$@" || test $? -eq 1` | |
17651 | } | |
17652 | fi # as_fn_arith | |
17653 | ||
953ff289 | 17654 | |
5213506e RW |
17655 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17656 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
953ff289 DN |
17657 | as_expr=expr |
17658 | else | |
17659 | as_expr=false | |
17660 | fi | |
17661 | ||
5213506e | 17662 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
953ff289 DN |
17663 | as_basename=basename |
17664 | else | |
17665 | as_basename=false | |
17666 | fi | |
17667 | ||
5213506e RW |
17668 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17669 | as_dirname=dirname | |
17670 | else | |
17671 | as_dirname=false | |
17672 | fi | |
953ff289 | 17673 | |
5213506e | 17674 | as_me=`$as_basename -- "$0" || |
953ff289 DN |
17675 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17676 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
17677 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
17678 | $as_echo X/"$0" | | |
17679 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17680 | s//\1/ | |
17681 | q | |
17682 | } | |
17683 | /^X\/\(\/\/\)$/{ | |
17684 | s//\1/ | |
17685 | q | |
17686 | } | |
17687 | /^X\/\(\/\).*/{ | |
17688 | s//\1/ | |
17689 | q | |
17690 | } | |
17691 | s/.*/./; q'` | |
953ff289 | 17692 | |
953ff289 DN |
17693 | # Avoid depending upon Character Ranges. |
17694 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17695 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17696 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17697 | as_cr_digits='0123456789' | |
17698 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17699 | ||
5213506e RW |
17700 | ECHO_C= ECHO_N= ECHO_T= |
17701 | case `echo -n x` in #((((( | |
17702 | -n*) | |
17703 | case `echo 'xy\c'` in | |
17704 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17705 | xy) ECHO_C='\c';; | |
17706 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17707 | ECHO_T=' ';; | |
17708 | esac;; | |
17709 | *) | |
17710 | ECHO_N='-n';; | |
953ff289 DN |
17711 | esac |
17712 | ||
5213506e RW |
17713 | rm -f conf$$ conf$$.exe conf$$.file |
17714 | if test -d conf$$.dir; then | |
17715 | rm -f conf$$.dir/conf$$.file | |
953ff289 | 17716 | else |
5213506e RW |
17717 | rm -f conf$$.dir |
17718 | mkdir conf$$.dir 2>/dev/null | |
953ff289 | 17719 | fi |
5213506e RW |
17720 | if (echo >conf$$.file) 2>/dev/null; then |
17721 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
953ff289 | 17722 | as_ln_s='ln -s' |
5213506e RW |
17723 | # ... but there are two gotchas: |
17724 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17725 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 17726 | # In both cases, we have to default to `cp -pR'. |
5213506e | 17727 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 17728 | as_ln_s='cp -pR' |
5213506e RW |
17729 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17730 | as_ln_s=ln | |
17731 | else | |
22e05272 | 17732 | as_ln_s='cp -pR' |
953ff289 | 17733 | fi |
953ff289 | 17734 | else |
22e05272 | 17735 | as_ln_s='cp -pR' |
953ff289 | 17736 | fi |
5213506e RW |
17737 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17738 | rmdir conf$$.dir 2>/dev/null | |
17739 | ||
17740 | ||
17741 | # as_fn_mkdir_p | |
17742 | # ------------- | |
17743 | # Create "$as_dir" as a directory, including parents if necessary. | |
17744 | as_fn_mkdir_p () | |
17745 | { | |
17746 | ||
17747 | case $as_dir in #( | |
17748 | -*) as_dir=./$as_dir;; | |
17749 | esac | |
17750 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17751 | as_dirs= | |
17752 | while :; do | |
17753 | case $as_dir in #( | |
17754 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17755 | *) as_qdir=$as_dir;; | |
17756 | esac | |
17757 | as_dirs="'$as_qdir' $as_dirs" | |
17758 | as_dir=`$as_dirname -- "$as_dir" || | |
17759 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17760 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17761 | X"$as_dir" : 'X\(//\)$' \| \ | |
17762 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17763 | $as_echo X"$as_dir" | | |
17764 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17765 | s//\1/ | |
17766 | q | |
17767 | } | |
17768 | /^X\(\/\/\)[^/].*/{ | |
17769 | s//\1/ | |
17770 | q | |
17771 | } | |
17772 | /^X\(\/\/\)$/{ | |
17773 | s//\1/ | |
17774 | q | |
17775 | } | |
17776 | /^X\(\/\).*/{ | |
17777 | s//\1/ | |
17778 | q | |
17779 | } | |
17780 | s/.*/./; q'` | |
17781 | test -d "$as_dir" && break | |
17782 | done | |
17783 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 17784 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 17785 | |
953ff289 | 17786 | |
5213506e | 17787 | } # as_fn_mkdir_p |
953ff289 | 17788 | if mkdir -p . 2>/dev/null; then |
5213506e | 17789 | as_mkdir_p='mkdir -p "$as_dir"' |
953ff289 DN |
17790 | else |
17791 | test -d ./-p && rmdir ./-p | |
17792 | as_mkdir_p=false | |
17793 | fi | |
17794 | ||
22e05272 JM |
17795 | |
17796 | # as_fn_executable_p FILE | |
17797 | # ----------------------- | |
17798 | # Test if FILE is an executable regular file. | |
17799 | as_fn_executable_p () | |
17800 | { | |
17801 | test -f "$1" && test -x "$1" | |
17802 | } # as_fn_executable_p | |
17803 | as_test_x='test -x' | |
17804 | as_executable_p=as_fn_executable_p | |
953ff289 DN |
17805 | |
17806 | # Sed expression to map a string onto a valid CPP name. | |
17807 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17808 | ||
5213506e RW |
17809 | # Sed expression to map a string onto a valid variable name. |
17810 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
953ff289 | 17811 | |
953ff289 DN |
17812 | |
17813 | exec 6>&1 | |
5213506e RW |
17814 | ## ----------------------------------- ## |
17815 | ## Main body of $CONFIG_STATUS script. ## | |
17816 | ## ----------------------------------- ## | |
17817 | _ASEOF | |
17818 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17819 | ||
17820 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17821 | # Save the log message, to keep $0 and so on meaningful, and to | |
953ff289 | 17822 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
17823 | # values after options handling. |
17824 | ac_log=" | |
f1f3453e | 17825 | This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was |
22e05272 | 17826 | generated by GNU Autoconf 2.69. Invocation command line was |
953ff289 DN |
17827 | |
17828 | CONFIG_FILES = $CONFIG_FILES | |
17829 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17830 | CONFIG_LINKS = $CONFIG_LINKS | |
17831 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17832 | $ $0 $@ | |
17833 | ||
5213506e RW |
17834 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17835 | " | |
17836 | ||
953ff289 DN |
17837 | _ACEOF |
17838 | ||
5213506e RW |
17839 | case $ac_config_files in *" |
17840 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17841 | esac | |
953ff289 | 17842 | |
5213506e RW |
17843 | case $ac_config_headers in *" |
17844 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17845 | esac | |
953ff289 | 17846 | |
953ff289 | 17847 | |
5213506e RW |
17848 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17849 | # Files that config.status was made for. | |
17850 | config_files="$ac_config_files" | |
17851 | config_headers="$ac_config_headers" | |
17852 | config_commands="$ac_config_commands" | |
953ff289 | 17853 | |
5213506e | 17854 | _ACEOF |
953ff289 | 17855 | |
5213506e | 17856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 | 17857 | ac_cs_usage="\ |
5213506e RW |
17858 | \`$as_me' instantiates files and other configuration actions |
17859 | from templates according to the current configuration. Unless the files | |
17860 | and actions are specified as TAGs, all are instantiated by default. | |
953ff289 | 17861 | |
5213506e | 17862 | Usage: $0 [OPTION]... [TAG]... |
953ff289 DN |
17863 | |
17864 | -h, --help print this help, then exit | |
5213506e | 17865 | -V, --version print version number and configuration settings, then exit |
22e05272 | 17866 | --config print configuration, then exit |
5213506e RW |
17867 | -q, --quiet, --silent |
17868 | do not print progress messages | |
953ff289 DN |
17869 | -d, --debug don't remove temporary files |
17870 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
17871 | --file=FILE[:TEMPLATE] |
17872 | instantiate the configuration file FILE | |
17873 | --header=FILE[:TEMPLATE] | |
17874 | instantiate the configuration header FILE | |
953ff289 DN |
17875 | |
17876 | Configuration files: | |
17877 | $config_files | |
17878 | ||
17879 | Configuration headers: | |
17880 | $config_headers | |
17881 | ||
17882 | Configuration commands: | |
17883 | $config_commands | |
17884 | ||
5213506e | 17885 | Report bugs to the package provider. |
f1f3453e | 17886 | GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. |
5213506e | 17887 | General help using GNU software: <http://www.gnu.org/gethelp/>." |
953ff289 | 17888 | |
5213506e RW |
17889 | _ACEOF |
17890 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 17891 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
953ff289 | 17892 | ac_cs_version="\\ |
f1f3453e | 17893 | GNU Offloading and Multi Processing Runtime Library config.status 1.0 |
22e05272 JM |
17894 | configured by $0, generated by GNU Autoconf 2.69, |
17895 | with options \\"\$ac_cs_config\\" | |
953ff289 | 17896 | |
22e05272 | 17897 | Copyright (C) 2012 Free Software Foundation, Inc. |
953ff289 DN |
17898 | This config.status script is free software; the Free Software Foundation |
17899 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
17900 | |
17901 | ac_pwd='$ac_pwd' | |
17902 | srcdir='$srcdir' | |
17903 | INSTALL='$INSTALL' | |
17904 | MKDIR_P='$MKDIR_P' | |
17905 | AWK='$AWK' | |
17906 | test -n "\$AWK" || AWK=awk | |
953ff289 DN |
17907 | _ACEOF |
17908 | ||
5213506e RW |
17909 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17910 | # The default lists apply if the user does not specify any file. | |
953ff289 DN |
17911 | ac_need_defaults=: |
17912 | while test $# != 0 | |
17913 | do | |
17914 | case $1 in | |
22e05272 | 17915 | --*=?*) |
5213506e RW |
17916 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17917 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
953ff289 DN |
17918 | ac_shift=: |
17919 | ;; | |
22e05272 JM |
17920 | --*=) |
17921 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17922 | ac_optarg= | |
17923 | ac_shift=: | |
17924 | ;; | |
5213506e | 17925 | *) |
953ff289 DN |
17926 | ac_option=$1 |
17927 | ac_optarg=$2 | |
17928 | ac_shift=shift | |
17929 | ;; | |
953ff289 DN |
17930 | esac |
17931 | ||
17932 | case $ac_option in | |
17933 | # Handling of the options. | |
953ff289 DN |
17934 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17935 | ac_cs_recheck=: ;; | |
5213506e RW |
17936 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17937 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
17938 | --config | --confi | --conf | --con | --co | --c ) |
17939 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 17940 | --debug | --debu | --deb | --de | --d | -d ) |
953ff289 DN |
17941 | debug=: ;; |
17942 | --file | --fil | --fi | --f ) | |
17943 | $ac_shift | |
5213506e RW |
17944 | case $ac_optarg in |
17945 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 17946 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
17947 | esac |
17948 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
953ff289 DN |
17949 | ac_need_defaults=false;; |
17950 | --header | --heade | --head | --hea ) | |
17951 | $ac_shift | |
5213506e RW |
17952 | case $ac_optarg in |
17953 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17954 | esac | |
17955 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
953ff289 | 17956 | ac_need_defaults=false;; |
5213506e RW |
17957 | --he | --h) |
17958 | # Conflict between --help and --header | |
22e05272 | 17959 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
17960 | Try \`$0 --help' for more information.";; |
17961 | --help | --hel | -h ) | |
17962 | $as_echo "$ac_cs_usage"; exit ;; | |
953ff289 DN |
17963 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17964 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17965 | ac_cs_silent=: ;; | |
17966 | ||
17967 | # This is an error. | |
22e05272 | 17968 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 17969 | Try \`$0 --help' for more information." ;; |
953ff289 | 17970 | |
5213506e RW |
17971 | *) as_fn_append ac_config_targets " $1" |
17972 | ac_need_defaults=false ;; | |
953ff289 DN |
17973 | |
17974 | esac | |
17975 | shift | |
17976 | done | |
17977 | ||
17978 | ac_configure_extra_args= | |
17979 | ||
17980 | if $ac_cs_silent; then | |
17981 | exec 6>/dev/null | |
17982 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17983 | fi | |
17984 | ||
17985 | _ACEOF | |
5213506e | 17986 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
953ff289 | 17987 | if \$ac_cs_recheck; then |
22e05272 | 17988 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
17989 | shift |
17990 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17991 | CONFIG_SHELL='$SHELL' | |
17992 | export CONFIG_SHELL | |
17993 | exec "\$@" | |
953ff289 DN |
17994 | fi |
17995 | ||
17996 | _ACEOF | |
5213506e RW |
17997 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17998 | exec 5>>config.log | |
17999 | { | |
18000 | echo | |
18001 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18002 | ## Running $as_me. ## | |
18003 | _ASBOX | |
18004 | $as_echo "$ac_log" | |
18005 | } >&5 | |
953ff289 | 18006 | |
5213506e RW |
18007 | _ACEOF |
18008 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
953ff289 | 18009 | # |
5213506e | 18010 | # INIT-COMMANDS |
953ff289 DN |
18011 | # |
18012 | ||
953ff289 DN |
18013 | srcdir="$srcdir" |
18014 | host="$host" | |
18015 | target="$target" | |
18016 | with_multisubdir="$with_multisubdir" | |
18017 | with_multisrctop="$with_multisrctop" | |
18018 | with_target_subdir="$with_target_subdir" | |
18019 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
18020 | multi_basedir="$multi_basedir" | |
18021 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
18022 | CC="$CC" | |
396b7fa4 JM |
18023 | CXX="$CXX" |
18024 | GFORTRAN="$GFORTRAN" | |
22e05272 | 18025 | GDC="$GDC" |
953ff289 DN |
18026 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
18027 | ||
1cf3d07d SE |
18028 | |
18029 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18030 | # if CDPATH is set. | |
18031 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18032 | ||
18033 | sed_quote_subst='$sed_quote_subst' | |
18034 | double_quote_subst='$double_quote_subst' | |
18035 | delay_variable_subst='$delay_variable_subst' | |
43e02a8a RW |
18036 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
18037 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18038 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18039 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18040 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18041 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18042 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18043 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18044 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18045 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18046 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18047 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18048 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18049 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18050 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18051 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18052 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18053 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18054 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18055 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18056 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18057 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18058 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18059 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18060 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18061 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18062 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18063 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18064 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18065 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18066 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18067 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18068 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18069 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18070 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18071 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18072 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18073 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18074 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18075 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18076 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18077 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18078 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18079 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18080 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18081 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18082 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18083 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18084 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18085 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18086 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18087 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18088 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18089 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18090 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18091 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18092 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18093 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18094 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18095 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18096 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18097 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18098 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18099 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18100 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18101 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18102 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18103 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18104 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18105 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18106 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18107 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18108 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18109 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18110 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18111 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18112 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18113 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18114 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18115 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18116 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
18117 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18118 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18119 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18120 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18121 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18122 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18123 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18124 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18125 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
18126 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18127 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18128 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18129 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18130 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18131 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18132 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18133 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18134 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18135 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18136 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18137 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18138 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18139 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18140 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18141 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18142 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18143 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18144 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18145 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18146 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18147 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18148 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18149 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18150 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18151 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18152 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18153 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18154 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18155 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18156 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
18157 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18158 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18159 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18160 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18161 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18162 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
18163 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
18164 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18165 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18166 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
18167 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
18168 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
18169 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
18170 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
18171 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
18172 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
18173 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
18174 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
18175 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18176 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18177 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
18178 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18179 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18180 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18181 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18182 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18183 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18184 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
18185 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
18186 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
18187 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18188 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
18189 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
18190 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
18191 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
18192 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
18193 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
18194 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
18195 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
18196 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
18197 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
18198 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
18199 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18200 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
18201 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
18202 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
18203 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
18204 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
18205 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
18206 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
18207 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
18208 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
18209 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
18210 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
18211 | |
18212 | LTCC='$LTCC' | |
18213 | LTCFLAGS='$LTCFLAGS' | |
18214 | compiler='$compiler_DEFAULT' | |
18215 | ||
43e02a8a RW |
18216 | # A function that is used when there is no print builtin or printf. |
18217 | func_fallback_echo () | |
18218 | { | |
18219 | eval 'cat <<_LTECHO_EOF | |
18220 | \$1 | |
18221 | _LTECHO_EOF' | |
18222 | } | |
18223 | ||
1cf3d07d | 18224 | # Quote evaled strings. |
43e02a8a RW |
18225 | for var in SHELL \ |
18226 | ECHO \ | |
18227 | SED \ | |
1cf3d07d SE |
18228 | GREP \ |
18229 | EGREP \ | |
18230 | FGREP \ | |
18231 | LD \ | |
18232 | NM \ | |
18233 | LN_S \ | |
18234 | lt_SP2NL \ | |
18235 | lt_NL2SP \ | |
18236 | reload_flag \ | |
6b4a97ed | 18237 | OBJDUMP \ |
1cf3d07d SE |
18238 | deplibs_check_method \ |
18239 | file_magic_cmd \ | |
18240 | AR \ | |
18241 | AR_FLAGS \ | |
18242 | STRIP \ | |
18243 | RANLIB \ | |
18244 | CC \ | |
18245 | CFLAGS \ | |
18246 | compiler \ | |
18247 | lt_cv_sys_global_symbol_pipe \ | |
18248 | lt_cv_sys_global_symbol_to_cdecl \ | |
18249 | lt_cv_sys_global_symbol_to_c_name_address \ | |
6b4a97ed | 18250 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
18251 | lt_prog_compiler_no_builtin_flag \ |
18252 | lt_prog_compiler_wl \ | |
18253 | lt_prog_compiler_pic \ | |
18254 | lt_prog_compiler_static \ | |
18255 | lt_cv_prog_compiler_c_o \ | |
18256 | need_locks \ | |
6b4a97ed PG |
18257 | DSYMUTIL \ |
18258 | NMEDIT \ | |
18259 | LIPO \ | |
18260 | OTOOL \ | |
18261 | OTOOL64 \ | |
1cf3d07d SE |
18262 | shrext_cmds \ |
18263 | export_dynamic_flag_spec \ | |
18264 | whole_archive_flag_spec \ | |
18265 | compiler_needs_object \ | |
18266 | with_gnu_ld \ | |
18267 | allow_undefined_flag \ | |
18268 | no_undefined_flag \ | |
18269 | hardcode_libdir_flag_spec \ | |
18270 | hardcode_libdir_flag_spec_ld \ | |
18271 | hardcode_libdir_separator \ | |
18272 | fix_srcfile_path \ | |
18273 | exclude_expsyms \ | |
18274 | include_expsyms \ | |
18275 | file_list_spec \ | |
18276 | variables_saved_for_relink \ | |
18277 | libname_spec \ | |
18278 | library_names_spec \ | |
18279 | soname_spec \ | |
43e02a8a | 18280 | install_override_mode \ |
1cf3d07d SE |
18281 | finish_eval \ |
18282 | old_striplib \ | |
18283 | striplib \ | |
6b4a97ed | 18284 | compiler_lib_search_dirs \ |
1cf3d07d SE |
18285 | predep_objects \ |
18286 | postdep_objects \ | |
18287 | predeps \ | |
18288 | postdeps \ | |
18289 | compiler_lib_search_path \ | |
18290 | LD_FC \ | |
43e02a8a | 18291 | reload_flag_FC \ |
1cf3d07d SE |
18292 | compiler_FC \ |
18293 | lt_prog_compiler_no_builtin_flag_FC \ | |
18294 | lt_prog_compiler_wl_FC \ | |
18295 | lt_prog_compiler_pic_FC \ | |
18296 | lt_prog_compiler_static_FC \ | |
18297 | lt_cv_prog_compiler_c_o_FC \ | |
18298 | export_dynamic_flag_spec_FC \ | |
18299 | whole_archive_flag_spec_FC \ | |
18300 | compiler_needs_object_FC \ | |
18301 | with_gnu_ld_FC \ | |
18302 | allow_undefined_flag_FC \ | |
18303 | no_undefined_flag_FC \ | |
18304 | hardcode_libdir_flag_spec_FC \ | |
18305 | hardcode_libdir_flag_spec_ld_FC \ | |
18306 | hardcode_libdir_separator_FC \ | |
18307 | fix_srcfile_path_FC \ | |
18308 | exclude_expsyms_FC \ | |
18309 | include_expsyms_FC \ | |
18310 | file_list_spec_FC \ | |
6b4a97ed | 18311 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
18312 | predep_objects_FC \ |
18313 | postdep_objects_FC \ | |
18314 | predeps_FC \ | |
18315 | postdeps_FC \ | |
18316 | compiler_lib_search_path_FC; do | |
43e02a8a | 18317 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 18318 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 18319 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
18320 | ;; |
18321 | *) | |
18322 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18323 | ;; | |
18324 | esac | |
18325 | done | |
18326 | ||
18327 | # Double-quote double-evaled strings. | |
18328 | for var in reload_cmds \ | |
18329 | old_postinstall_cmds \ | |
18330 | old_postuninstall_cmds \ | |
18331 | old_archive_cmds \ | |
18332 | extract_expsyms_cmds \ | |
18333 | old_archive_from_new_cmds \ | |
18334 | old_archive_from_expsyms_cmds \ | |
18335 | archive_cmds \ | |
18336 | archive_expsym_cmds \ | |
18337 | module_cmds \ | |
18338 | module_expsym_cmds \ | |
18339 | export_symbols_cmds \ | |
18340 | prelink_cmds \ | |
18341 | postinstall_cmds \ | |
18342 | postuninstall_cmds \ | |
18343 | finish_cmds \ | |
18344 | sys_lib_search_path_spec \ | |
18345 | sys_lib_dlsearch_path_spec \ | |
43e02a8a | 18346 | reload_cmds_FC \ |
1cf3d07d SE |
18347 | old_archive_cmds_FC \ |
18348 | old_archive_from_new_cmds_FC \ | |
18349 | old_archive_from_expsyms_cmds_FC \ | |
18350 | archive_cmds_FC \ | |
18351 | archive_expsym_cmds_FC \ | |
18352 | module_cmds_FC \ | |
18353 | module_expsym_cmds_FC \ | |
18354 | export_symbols_cmds_FC \ | |
18355 | prelink_cmds_FC; do | |
43e02a8a | 18356 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 18357 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 18358 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
18359 | ;; |
18360 | *) | |
18361 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18362 | ;; | |
18363 | esac | |
18364 | done | |
18365 | ||
1cf3d07d SE |
18366 | ac_aux_dir='$ac_aux_dir' |
18367 | xsi_shell='$xsi_shell' | |
18368 | lt_shell_append='$lt_shell_append' | |
18369 | ||
18370 | # See if we are running on zsh, and set the options which allow our | |
18371 | # commands through without removal of \ escapes INIT. | |
18372 | if test -n "\${ZSH_VERSION+set}" ; then | |
18373 | setopt NO_GLOB_SUBST | |
18374 | fi | |
18375 | ||
18376 | ||
18377 | PACKAGE='$PACKAGE' | |
18378 | VERSION='$VERSION' | |
18379 | TIMESTAMP='$TIMESTAMP' | |
18380 | RM='$RM' | |
18381 | ofile='$ofile' | |
18382 | ||
18383 | ||
18384 | ||
18385 | ||
18386 | ||
18387 | ||
18cbfd85 PB |
18388 | GCC="$GCC" |
18389 | CC="$CC" | |
18390 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
18391 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
18392 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
18393 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
18394 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
18395 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
18396 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
18397 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
18398 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
18399 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
18400 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
18401 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
18402 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
18403 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
18404 | ||
18405 | ||
953ff289 DN |
18406 | _ACEOF |
18407 | ||
5213506e | 18408 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 | 18409 | |
5213506e | 18410 | # Handling of arguments. |
953ff289 DN |
18411 | for ac_config_target in $ac_config_targets |
18412 | do | |
5213506e RW |
18413 | case $ac_config_target in |
18414 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
18415 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
18416 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
18417 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
18418 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
18419 | "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;; | |
18420 | "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; | |
18421 | "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; | |
18422 | "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; | |
18423 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18424 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
18425 | "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; | |
41dbbb37 | 18426 | "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;; |
5213506e | 18427 | |
22e05272 | 18428 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
953ff289 DN |
18429 | esac |
18430 | done | |
18431 | ||
5213506e | 18432 | |
953ff289 DN |
18433 | # If the user did not use the arguments to specify the items to instantiate, |
18434 | # then the envvar interface is used. Set only those that are not. | |
18435 | # We use the long form for the default assignment because of an extremely | |
18436 | # bizarre bug on SunOS 4.1.3. | |
18437 | if $ac_need_defaults; then | |
18438 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18439 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18440 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18441 | fi | |
18442 | ||
18443 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 18444 | # simply because there is no reason against having it here, and in addition, |
953ff289 | 18445 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
18446 | # Hook for its removal unless debugging. |
18447 | # Note that there is a small window in which the directory will not be cleaned: | |
18448 | # after its creation but before its name has been assigned to `$tmp'. | |
953ff289 DN |
18449 | $debug || |
18450 | { | |
22e05272 | 18451 | tmp= ac_tmp= |
5213506e | 18452 | trap 'exit_status=$? |
22e05272 JM |
18453 | : "${ac_tmp:=$tmp}" |
18454 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
18455 | ' 0 |
18456 | trap 'as_fn_exit 1' 1 2 13 15 | |
953ff289 | 18457 | } |
953ff289 DN |
18458 | # Create a (secure) tmp directory for tmp files. |
18459 | ||
18460 | { | |
5213506e | 18461 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 18462 | test -d "$tmp" |
953ff289 DN |
18463 | } || |
18464 | { | |
5213506e RW |
18465 | tmp=./conf$$-$RANDOM |
18466 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
18467 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18468 | ac_tmp=$tmp | |
5213506e RW |
18469 | |
18470 | # Set up the scripts for CONFIG_FILES section. | |
18471 | # No need to generate them if there are no CONFIG_FILES. | |
18472 | # This happens for instance with `./config.status config.h'. | |
18473 | if test -n "$CONFIG_FILES"; then | |
18474 | ||
18475 | ||
18476 | ac_cr=`echo X | tr X '\015'` | |
18477 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18478 | # But we know of no other shell where ac_cr would be empty at this | |
18479 | # point, so we can use a bashism as a fallback. | |
18480 | if test "x$ac_cr" = x; then | |
18481 | eval ac_cr=\$\'\\r\' | |
18482 | fi | |
18483 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18484 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 18485 | ac_cs_awk_cr='\\r' |
5213506e RW |
18486 | else |
18487 | ac_cs_awk_cr=$ac_cr | |
18488 | fi | |
18489 | ||
22e05272 | 18490 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
18491 | _ACEOF |
18492 | ||
18493 | ||
953ff289 | 18494 | { |
5213506e RW |
18495 | echo "cat >conf$$subs.awk <<_ACEOF" && |
18496 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18497 | echo "_ACEOF" | |
18498 | } >conf$$subs.sh || | |
22e05272 JM |
18499 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18500 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
18501 | ac_delim='%!_!# ' |
18502 | for ac_last_try in false false false false false :; do | |
18503 | . ./conf$$subs.sh || | |
22e05272 | 18504 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
18505 | |
18506 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18507 | if test $ac_delim_n = $ac_delim_num; then | |
18508 | break | |
18509 | elif $ac_last_try; then | |
22e05272 | 18510 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
18511 | else |
18512 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18513 | fi | |
18514 | done | |
18515 | rm -f conf$$subs.sh | |
18516 | ||
18517 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18518 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
18519 | _ACEOF |
18520 | sed -n ' | |
18521 | h | |
18522 | s/^/S["/; s/!.*/"]=/ | |
18523 | p | |
18524 | g | |
18525 | s/^[^!]*!// | |
18526 | :repl | |
18527 | t repl | |
18528 | s/'"$ac_delim"'$// | |
18529 | t delim | |
18530 | :nl | |
18531 | h | |
22e05272 | 18532 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
18533 | t more1 |
18534 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18535 | p | |
18536 | n | |
18537 | b repl | |
18538 | :more1 | |
18539 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18540 | p | |
18541 | g | |
18542 | s/.\{148\}// | |
18543 | t nl | |
18544 | :delim | |
18545 | h | |
22e05272 | 18546 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
18547 | t more2 |
18548 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18549 | p | |
18550 | b | |
18551 | :more2 | |
18552 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18553 | p | |
18554 | g | |
18555 | s/.\{148\}// | |
18556 | t delim | |
18557 | ' <conf$$subs.awk | sed ' | |
18558 | /^[^""]/{ | |
18559 | N | |
18560 | s/\n// | |
953ff289 | 18561 | } |
5213506e RW |
18562 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
18563 | rm -f conf$$subs.awk | |
18564 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18565 | _ACAWK | |
22e05272 | 18566 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
18567 | for (key in S) S_is_set[key] = 1 |
18568 | FS = "\a" | |
953ff289 | 18569 | |
5213506e RW |
18570 | } |
18571 | { | |
18572 | line = $ 0 | |
18573 | nfields = split(line, field, "@") | |
18574 | substed = 0 | |
18575 | len = length(field[1]) | |
18576 | for (i = 2; i < nfields; i++) { | |
18577 | key = field[i] | |
18578 | keylen = length(key) | |
18579 | if (S_is_set[key]) { | |
18580 | value = S[key] | |
18581 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18582 | len += length(value) + length(field[++i]) | |
18583 | substed = 1 | |
18584 | } else | |
18585 | len += 1 + keylen | |
18586 | } | |
953ff289 | 18587 | |
5213506e RW |
18588 | print line |
18589 | } | |
953ff289 | 18590 | |
5213506e RW |
18591 | _ACAWK |
18592 | _ACEOF | |
18593 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18594 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18595 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18596 | else | |
18597 | cat | |
22e05272 JM |
18598 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18599 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
18600 | _ACEOF |
18601 | ||
22e05272 JM |
18602 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18603 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
18604 | # trailing colons and then remove the whole line if VPATH becomes empty |
18605 | # (actually we leave an empty line to preserve line numbers). | |
18606 | if test "x$srcdir" = x.; then | |
22e05272 JM |
18607 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18608 | h | |
18609 | s/// | |
18610 | s/^/:/ | |
18611 | s/[ ]*$/:/ | |
18612 | s/:\$(srcdir):/:/g | |
18613 | s/:\${srcdir}:/:/g | |
18614 | s/:@srcdir@:/:/g | |
18615 | s/^:*// | |
5213506e | 18616 | s/:*$// |
22e05272 JM |
18617 | x |
18618 | s/\(=[ ]*\).*/\1/ | |
18619 | G | |
18620 | s/\n// | |
5213506e RW |
18621 | s/^[^=]*=[ ]*$// |
18622 | }' | |
18623 | fi | |
953ff289 | 18624 | |
5213506e RW |
18625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18626 | fi # test -n "$CONFIG_FILES" | |
953ff289 | 18627 | |
5213506e RW |
18628 | # Set up the scripts for CONFIG_HEADERS section. |
18629 | # No need to generate them if there are no CONFIG_HEADERS. | |
18630 | # This happens for instance with `./config.status Makefile'. | |
18631 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 18632 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e | 18633 | BEGIN { |
953ff289 DN |
18634 | _ACEOF |
18635 | ||
5213506e RW |
18636 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18637 | # here-document in config.status, that substitutes the proper values into | |
18638 | # config.h.in to produce config.h. | |
18639 | ||
18640 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18641 | # handling of long lines. | |
18642 | ac_delim='%!_!# ' | |
18643 | for ac_last_try in false false :; do | |
22e05272 JM |
18644 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18645 | if test -z "$ac_tt"; then | |
5213506e RW |
18646 | break |
18647 | elif $ac_last_try; then | |
22e05272 | 18648 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
18649 | else |
18650 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
953ff289 | 18651 | fi |
5213506e | 18652 | done |
953ff289 | 18653 | |
5213506e RW |
18654 | # For the awk script, D is an array of macro values keyed by name, |
18655 | # likewise P contains macro parameters if any. Preserve backslash | |
18656 | # newline sequences. | |
18657 | ||
18658 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18659 | sed -n ' | |
18660 | s/.\{148\}/&'"$ac_delim"'/g | |
18661 | t rset | |
18662 | :rset | |
18663 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18664 | t def | |
18665 | d | |
18666 | :def | |
18667 | s/\\$// | |
18668 | t bsnl | |
18669 | s/["\\]/\\&/g | |
18670 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18671 | D["\1"]=" \3"/p | |
18672 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18673 | d | |
18674 | :bsnl | |
18675 | s/["\\]/\\&/g | |
18676 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18677 | D["\1"]=" \3\\\\\\n"\\/p | |
18678 | t cont | |
18679 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18680 | t cont | |
18681 | d | |
18682 | :cont | |
18683 | n | |
18684 | s/.\{148\}/&'"$ac_delim"'/g | |
18685 | t clear | |
18686 | :clear | |
18687 | s/\\$// | |
18688 | t bsnlc | |
18689 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18690 | d | |
18691 | :bsnlc | |
18692 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18693 | b cont | |
18694 | ' <confdefs.h | sed ' | |
18695 | s/'"$ac_delim"'/"\\\ | |
18696 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18697 | ||
18698 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18699 | for (key in D) D_is_set[key] = 1 | |
18700 | FS = "\a" | |
18701 | } | |
18702 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18703 | line = \$ 0 | |
18704 | split(line, arg, " ") | |
18705 | if (arg[1] == "#") { | |
18706 | defundef = arg[2] | |
18707 | mac1 = arg[3] | |
18708 | } else { | |
18709 | defundef = substr(arg[1], 2) | |
18710 | mac1 = arg[2] | |
18711 | } | |
18712 | split(mac1, mac2, "(") #) | |
18713 | macro = mac2[1] | |
18714 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18715 | if (D_is_set[macro]) { | |
18716 | # Preserve the white space surrounding the "#". | |
18717 | print prefix "define", macro P[macro] D[macro] | |
18718 | next | |
18719 | } else { | |
18720 | # Replace #undef with comments. This is necessary, for example, | |
18721 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18722 | # on some systems where configure will not decide to define it. | |
18723 | if (defundef == "undef") { | |
18724 | print "/*", prefix defundef, macro, "*/" | |
18725 | next | |
18726 | } | |
18727 | } | |
18728 | } | |
18729 | { print } | |
18730 | _ACAWK | |
953ff289 | 18731 | _ACEOF |
5213506e | 18732 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 18733 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
18734 | fi # test -n "$CONFIG_HEADERS" |
18735 | ||
18736 | ||
18737 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18738 | shift | |
18739 | for ac_tag | |
18740 | do | |
18741 | case $ac_tag in | |
18742 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18743 | esac | |
18744 | case $ac_mode$ac_tag in | |
18745 | :[FHL]*:*);; | |
22e05272 | 18746 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
18747 | :[FH]-) ac_tag=-:-;; |
18748 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18749 | esac | |
18750 | ac_save_IFS=$IFS | |
18751 | IFS=: | |
18752 | set x $ac_tag | |
18753 | IFS=$ac_save_IFS | |
18754 | shift | |
18755 | ac_file=$1 | |
18756 | shift | |
18757 | ||
18758 | case $ac_mode in | |
18759 | :L) ac_source=$1;; | |
18760 | :[FH]) | |
18761 | ac_file_inputs= | |
18762 | for ac_f | |
18763 | do | |
18764 | case $ac_f in | |
22e05272 | 18765 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
18766 | *) # Look for the file first in the build tree, then in the source tree |
18767 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18768 | # because $ac_f cannot contain `:'. | |
18769 | test -f "$ac_f" || | |
18770 | case $ac_f in | |
18771 | [\\/$]*) false;; | |
18772 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18773 | esac || | |
22e05272 | 18774 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
18775 | esac |
18776 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18777 | as_fn_append ac_file_inputs " '$ac_f'" | |
18778 | done | |
18779 | ||
18780 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18781 | # use $as_me), people would be surprised to read: | |
18782 | # /* config.h. Generated by config.status. */ | |
18783 | configure_input='Generated from '` | |
18784 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18785 | `' by configure.' | |
18786 | if test x"$ac_file" != x-; then | |
18787 | configure_input="$ac_file. $configure_input" | |
18788 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18789 | $as_echo "$as_me: creating $ac_file" >&6;} | |
18790 | fi | |
18791 | # Neutralize special characters interpreted by sed in replacement strings. | |
18792 | case $configure_input in #( | |
18793 | *\&* | *\|* | *\\* ) | |
18794 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18795 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18796 | *) ac_sed_conf_input=$configure_input;; | |
18797 | esac | |
18798 | ||
18799 | case $ac_tag in | |
22e05272 JM |
18800 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18801 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
18802 | esac |
18803 | ;; | |
953ff289 DN |
18804 | esac |
18805 | ||
5213506e | 18806 | ac_dir=`$as_dirname -- "$ac_file" || |
953ff289 DN |
18807 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18808 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18809 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
18810 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18811 | $as_echo X"$ac_file" | | |
18812 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18813 | s//\1/ | |
18814 | q | |
18815 | } | |
18816 | /^X\(\/\/\)[^/].*/{ | |
18817 | s//\1/ | |
18818 | q | |
18819 | } | |
18820 | /^X\(\/\/\)$/{ | |
18821 | s//\1/ | |
18822 | q | |
18823 | } | |
18824 | /^X\(\/\).*/{ | |
18825 | s//\1/ | |
18826 | q | |
18827 | } | |
18828 | s/.*/./; q'` | |
18829 | as_dir="$ac_dir"; as_fn_mkdir_p | |
953ff289 DN |
18830 | ac_builddir=. |
18831 | ||
5213506e RW |
18832 | case "$ac_dir" in |
18833 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18834 | *) | |
18835 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18836 | # A ".." for each directory in $ac_dir_suffix. | |
18837 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18838 | case $ac_top_builddir_sub in | |
18839 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18840 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18841 | esac ;; | |
18842 | esac | |
18843 | ac_abs_top_builddir=$ac_pwd | |
18844 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18845 | # for backward compatibility: | |
18846 | ac_top_builddir=$ac_top_build_prefix | |
953ff289 DN |
18847 | |
18848 | case $srcdir in | |
5213506e | 18849 | .) # We are building in place. |
953ff289 | 18850 | ac_srcdir=. |
5213506e RW |
18851 | ac_top_srcdir=$ac_top_builddir_sub |
18852 | ac_abs_top_srcdir=$ac_pwd ;; | |
18853 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
953ff289 | 18854 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
18855 | ac_top_srcdir=$srcdir |
18856 | ac_abs_top_srcdir=$srcdir ;; | |
18857 | *) # Relative name. | |
18858 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18859 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18860 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
953ff289 | 18861 | esac |
5213506e | 18862 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
953ff289 | 18863 | |
953ff289 | 18864 | |
5213506e RW |
18865 | case $ac_mode in |
18866 | :F) | |
18867 | # | |
18868 | # CONFIG_FILE | |
18869 | # | |
953ff289 DN |
18870 | |
18871 | case $INSTALL in | |
18872 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 18873 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
953ff289 | 18874 | esac |
5213506e RW |
18875 | ac_MKDIR_P=$MKDIR_P |
18876 | case $MKDIR_P in | |
18877 | [\\/$]* | ?:[\\/]* ) ;; | |
18878 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
18879 | esac | |
18880 | _ACEOF | |
953ff289 | 18881 | |
5213506e RW |
18882 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18883 | # If the template does not know about datarootdir, expand it. | |
18884 | # FIXME: This hack should be removed a few years after 2.60. | |
18885 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18886 | ac_sed_dataroot=' | |
18887 | /datarootdir/ { | |
18888 | p | |
18889 | q | |
18890 | } | |
18891 | /@datadir@/p | |
18892 | /@docdir@/p | |
18893 | /@infodir@/p | |
18894 | /@localedir@/p | |
18895 | /@mandir@/p' | |
18896 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18897 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18898 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18900 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18901 | _ACEOF | |
18902 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18903 | ac_datarootdir_hack=' | |
18904 | s&@datadir@&$datadir&g | |
18905 | s&@docdir@&$docdir&g | |
18906 | s&@infodir@&$infodir&g | |
18907 | s&@localedir@&$localedir&g | |
18908 | s&@mandir@&$mandir&g | |
18909 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18910 | esac | |
953ff289 | 18911 | _ACEOF |
5213506e RW |
18912 | |
18913 | # Neutralize VPATH when `$srcdir' = `.'. | |
18914 | # Shell code in configure.ac might set extrasub. | |
18915 | # FIXME: do we really want to maintain this feature? | |
18916 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18917 | ac_sed_extra="$ac_vpsub | |
953ff289 DN |
18918 | $extrasub |
18919 | _ACEOF | |
5213506e | 18920 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
953ff289 DN |
18921 | :t |
18922 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
18923 | s|@configure_input@|$ac_sed_conf_input|;t t |
18924 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18925 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18926 | s&@srcdir@&$ac_srcdir&;t t | |
18927 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18928 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18929 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18930 | s&@builddir@&$ac_builddir&;t t | |
18931 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18932 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18933 | s&@INSTALL@&$ac_INSTALL&;t t | |
18934 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18935 | $ac_datarootdir_hack | |
18936 | " | |
22e05272 JM |
18937 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18938 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
18939 | |
18940 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
18941 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18942 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
18943 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 18944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 18945 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 18946 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 18947 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 18948 | |
22e05272 | 18949 | rm -f "$ac_tmp/stdin" |
953ff289 | 18950 | case $ac_file in |
22e05272 JM |
18951 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18952 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 18953 | esac \ |
22e05272 | 18954 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
18955 | ;; |
18956 | :H) | |
18957 | # | |
18958 | # CONFIG_HEADER | |
18959 | # | |
953ff289 | 18960 | if test x"$ac_file" != x-; then |
5213506e RW |
18961 | { |
18962 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
18963 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
18964 | } >"$ac_tmp/config.h" \ | |
18965 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
18966 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
18967 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
18968 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
953ff289 | 18969 | else |
5213506e | 18970 | rm -f "$ac_file" |
22e05272 JM |
18971 | mv "$ac_tmp/config.h" "$ac_file" \ |
18972 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
953ff289 DN |
18973 | fi |
18974 | else | |
5213506e | 18975 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
18976 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
18977 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
953ff289 | 18978 | fi |
5213506e RW |
18979 | # Compute "$ac_file"'s index in $config_headers. |
18980 | _am_arg="$ac_file" | |
953ff289 DN |
18981 | _am_stamp_count=1 |
18982 | for _am_header in $config_headers :; do | |
18983 | case $_am_header in | |
5213506e | 18984 | $_am_arg | $_am_arg:* ) |
953ff289 DN |
18985 | break ;; |
18986 | * ) | |
18987 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18988 | esac | |
18989 | done | |
5213506e RW |
18990 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
18991 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18992 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18993 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18994 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18995 | $as_echo X"$_am_arg" | | |
18996 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18997 | s//\1/ | |
18998 | q | |
18999 | } | |
19000 | /^X\(\/\/\)[^/].*/{ | |
19001 | s//\1/ | |
19002 | q | |
19003 | } | |
19004 | /^X\(\/\/\)$/{ | |
19005 | s//\1/ | |
19006 | q | |
19007 | } | |
19008 | /^X\(\/\).*/{ | |
19009 | s//\1/ | |
19010 | q | |
19011 | } | |
19012 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19013 | ;; | |
953ff289 | 19014 | |
5213506e RW |
19015 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19016 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19017 | ;; | |
19018 | esac | |
953ff289 DN |
19019 | |
19020 | ||
5213506e RW |
19021 | case $ac_file$ac_mode in |
19022 | "default-1":C) | |
953ff289 DN |
19023 | # Only add multilib support code if we just rebuilt the top-level |
19024 | # Makefile. | |
19025 | case " $CONFIG_FILES " in | |
19026 | *" Makefile "*) | |
19027 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
19028 | ;; | |
19029 | esac ;; | |
5213506e | 19030 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 19031 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
19032 | # are listed without --file. Let's play safe and only enable the eval |
19033 | # if we detect the quoting. | |
19034 | case $CONFIG_FILES in | |
19035 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19036 | *) set x $CONFIG_FILES ;; | |
19037 | esac | |
19038 | shift | |
19039 | for mf | |
19040 | do | |
19041 | # Strip MF so we end up with the name of the file. | |
19042 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19043 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 19044 | # We used to match only the files named 'Makefile.in', but |
5213506e RW |
19045 | # some people rename them; so instead we look at the file content. |
19046 | # Grep'ing the first line is not enough: some people post-process | |
19047 | # each Makefile.in and add a new line on top of each file to say so. | |
19048 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19049 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19050 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19051 | dirpart=`$as_dirname -- "$mf" || | |
953ff289 DN |
19052 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19053 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19054 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
19055 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
19056 | $as_echo X"$mf" | | |
19057 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19058 | s//\1/ | |
19059 | q | |
19060 | } | |
19061 | /^X\(\/\/\)[^/].*/{ | |
19062 | s//\1/ | |
19063 | q | |
19064 | } | |
19065 | /^X\(\/\/\)$/{ | |
19066 | s//\1/ | |
19067 | q | |
19068 | } | |
19069 | /^X\(\/\).*/{ | |
19070 | s//\1/ | |
19071 | q | |
19072 | } | |
19073 | s/.*/./; q'` | |
19074 | else | |
19075 | continue | |
19076 | fi | |
19077 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 19078 | # from the Makefile without running 'make'. |
5213506e RW |
19079 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
19080 | test -z "$DEPDIR" && continue | |
19081 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 19082 | test -z "$am__include" && continue |
5213506e | 19083 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
5213506e RW |
19084 | # Find all dependency output files, they are included files with |
19085 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19086 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19087 | # expansion. | |
19088 | for file in `sed -n " | |
19089 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 19090 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
5213506e RW |
19091 | # Make sure the directory exists. |
19092 | test -f "$dirpart/$file" && continue | |
19093 | fdir=`$as_dirname -- "$file" || | |
953ff289 DN |
19094 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19095 | X"$file" : 'X\(//\)[^/]' \| \ | |
19096 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
19097 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
19098 | $as_echo X"$file" | | |
19099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19100 | s//\1/ | |
19101 | q | |
19102 | } | |
19103 | /^X\(\/\/\)[^/].*/{ | |
19104 | s//\1/ | |
19105 | q | |
19106 | } | |
19107 | /^X\(\/\/\)$/{ | |
19108 | s//\1/ | |
19109 | q | |
19110 | } | |
19111 | /^X\(\/\).*/{ | |
19112 | s//\1/ | |
19113 | q | |
19114 | } | |
19115 | s/.*/./; q'` | |
19116 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19117 | # echo "creating $dirpart/$file" | |
19118 | echo '# dummy' > "$dirpart/$file" | |
953ff289 | 19119 | done |
953ff289 | 19120 | done |
5213506e | 19121 | } |
1cf3d07d | 19122 | ;; |
5213506e | 19123 | "libtool":C) |
1cf3d07d SE |
19124 | |
19125 | # See if we are running on zsh, and set the options which allow our | |
19126 | # commands through without removal of \ escapes. | |
19127 | if test -n "${ZSH_VERSION+set}" ; then | |
19128 | setopt NO_GLOB_SUBST | |
19129 | fi | |
19130 | ||
19131 | cfgfile="${ofile}T" | |
19132 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19133 | $RM "$cfgfile" | |
19134 | ||
19135 | cat <<_LT_EOF >> "$cfgfile" | |
19136 | #! $SHELL | |
19137 | ||
19138 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
6b4a97ed | 19139 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
19140 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19141 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19142 | # | |
6b4a97ed | 19143 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 19144 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
6b4a97ed | 19145 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 19146 | # |
6b4a97ed | 19147 | # This file is part of GNU Libtool. |
1cf3d07d | 19148 | # |
6b4a97ed PG |
19149 | # GNU Libtool is free software; you can redistribute it and/or |
19150 | # modify it under the terms of the GNU General Public License as | |
19151 | # published by the Free Software Foundation; either version 2 of | |
19152 | # the License, or (at your option) any later version. | |
1cf3d07d | 19153 | # |
6b4a97ed PG |
19154 | # As a special exception to the GNU General Public License, |
19155 | # if you distribute this file as part of a program or library that | |
19156 | # is built using GNU Libtool, you may include this file under the | |
19157 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 19158 | # |
6b4a97ed PG |
19159 | # GNU Libtool is distributed in the hope that it will be useful, |
19160 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19161 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19162 | # GNU General Public License for more details. | |
1cf3d07d | 19163 | # |
6b4a97ed PG |
19164 | # You should have received a copy of the GNU General Public License |
19165 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19166 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19167 | # obtained by writing to the Free Software Foundation, Inc., | |
19168 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
19169 | |
19170 | ||
19171 | # The names of the tagged configurations supported by this script. | |
19172 | available_tags="FC " | |
19173 | ||
19174 | # ### BEGIN LIBTOOL CONFIG | |
19175 | ||
19176 | # Which release of libtool.m4 was used? | |
19177 | macro_version=$macro_version | |
19178 | macro_revision=$macro_revision | |
19179 | ||
19180 | # Whether or not to build shared libraries. | |
19181 | build_libtool_libs=$enable_shared | |
19182 | ||
19183 | # Whether or not to build static libraries. | |
19184 | build_old_libs=$enable_static | |
19185 | ||
19186 | # What type of objects to build. | |
19187 | pic_mode=$pic_mode | |
19188 | ||
19189 | # Whether or not to optimize for fast installation. | |
19190 | fast_install=$enable_fast_install | |
19191 | ||
43e02a8a RW |
19192 | # Shell to use when invoking shell scripts. |
19193 | SHELL=$lt_SHELL | |
19194 | ||
19195 | # An echo program that protects backslashes. | |
19196 | ECHO=$lt_ECHO | |
19197 | ||
1cf3d07d SE |
19198 | # The host system. |
19199 | host_alias=$host_alias | |
19200 | host=$host | |
19201 | host_os=$host_os | |
19202 | ||
19203 | # The build system. | |
19204 | build_alias=$build_alias | |
19205 | build=$build | |
19206 | build_os=$build_os | |
19207 | ||
19208 | # A sed program that does not truncate output. | |
19209 | SED=$lt_SED | |
19210 | ||
19211 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19212 | Xsed="\$SED -e 1s/^X//" | |
19213 | ||
19214 | # A grep program that handles long lines. | |
19215 | GREP=$lt_GREP | |
19216 | ||
19217 | # An ERE matcher. | |
19218 | EGREP=$lt_EGREP | |
19219 | ||
19220 | # A literal string matcher. | |
19221 | FGREP=$lt_FGREP | |
19222 | ||
19223 | # A BSD- or MS-compatible name lister. | |
19224 | NM=$lt_NM | |
19225 | ||
19226 | # Whether we need soft or hard links. | |
19227 | LN_S=$lt_LN_S | |
19228 | ||
19229 | # What is the maximum length of a command? | |
19230 | max_cmd_len=$max_cmd_len | |
19231 | ||
19232 | # Object file suffix (normally "o"). | |
19233 | objext=$ac_objext | |
19234 | ||
19235 | # Executable file suffix (normally ""). | |
19236 | exeext=$exeext | |
19237 | ||
19238 | # whether the shell understands "unset". | |
19239 | lt_unset=$lt_unset | |
19240 | ||
19241 | # turn spaces into newlines. | |
19242 | SP2NL=$lt_lt_SP2NL | |
19243 | ||
19244 | # turn newlines into spaces. | |
19245 | NL2SP=$lt_lt_NL2SP | |
19246 | ||
6b4a97ed PG |
19247 | # An object symbol dumper. |
19248 | OBJDUMP=$lt_OBJDUMP | |
19249 | ||
1cf3d07d SE |
19250 | # Method to check whether dependent libraries are shared objects. |
19251 | deplibs_check_method=$lt_deplibs_check_method | |
19252 | ||
19253 | # Command to use when deplibs_check_method == "file_magic". | |
19254 | file_magic_cmd=$lt_file_magic_cmd | |
19255 | ||
19256 | # The archiver. | |
19257 | AR=$lt_AR | |
19258 | AR_FLAGS=$lt_AR_FLAGS | |
19259 | ||
19260 | # A symbol stripping program. | |
19261 | STRIP=$lt_STRIP | |
19262 | ||
19263 | # Commands used to install an old-style archive. | |
19264 | RANLIB=$lt_RANLIB | |
19265 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19266 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19267 | ||
43e02a8a RW |
19268 | # Whether to use a lock for old archive extraction. |
19269 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19270 | ||
1cf3d07d SE |
19271 | # A C compiler. |
19272 | LTCC=$lt_CC | |
19273 | ||
19274 | # LTCC compiler flags. | |
19275 | LTCFLAGS=$lt_CFLAGS | |
19276 | ||
19277 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19278 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19279 | ||
19280 | # Transform the output of nm in a proper C declaration. | |
19281 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19282 | ||
19283 | # Transform the output of nm in a C name address pair. | |
19284 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19285 | ||
6b4a97ed PG |
19286 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
19287 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19288 | ||
1cf3d07d SE |
19289 | # The name of the directory that contains temporary libtool files. |
19290 | objdir=$objdir | |
19291 | ||
1cf3d07d SE |
19292 | # Used to examine libraries when file_magic_cmd begins with "file". |
19293 | MAGIC_CMD=$MAGIC_CMD | |
19294 | ||
19295 | # Must we lock files when doing compilation? | |
19296 | need_locks=$lt_need_locks | |
19297 | ||
6b4a97ed PG |
19298 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19299 | DSYMUTIL=$lt_DSYMUTIL | |
19300 | ||
19301 | # Tool to change global to local symbols on Mac OS X. | |
19302 | NMEDIT=$lt_NMEDIT | |
19303 | ||
19304 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19305 | LIPO=$lt_LIPO | |
19306 | ||
19307 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19308 | OTOOL=$lt_OTOOL | |
19309 | ||
19310 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19311 | OTOOL64=$lt_OTOOL64 | |
19312 | ||
1cf3d07d SE |
19313 | # Old archive suffix (normally "a"). |
19314 | libext=$libext | |
19315 | ||
19316 | # Shared library suffix (normally ".so"). | |
19317 | shrext_cmds=$lt_shrext_cmds | |
19318 | ||
19319 | # The commands to extract the exported symbol list from a shared archive. | |
19320 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19321 | ||
19322 | # Variables whose values should be saved in libtool wrapper scripts and | |
19323 | # restored at link time. | |
19324 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19325 | ||
19326 | # Do we need the "lib" prefix for modules? | |
19327 | need_lib_prefix=$need_lib_prefix | |
19328 | ||
19329 | # Do we need a version for libraries? | |
19330 | need_version=$need_version | |
19331 | ||
19332 | # Library versioning type. | |
19333 | version_type=$version_type | |
19334 | ||
19335 | # Shared library runtime path variable. | |
19336 | runpath_var=$runpath_var | |
19337 | ||
19338 | # Shared library path variable. | |
19339 | shlibpath_var=$shlibpath_var | |
19340 | ||
19341 | # Is shlibpath searched before the hard-coded library search path? | |
19342 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19343 | ||
19344 | # Format of library name prefix. | |
19345 | libname_spec=$lt_libname_spec | |
19346 | ||
19347 | # List of archive names. First name is the real one, the rest are links. | |
19348 | # The last name is the one that the linker finds with -lNAME | |
19349 | library_names_spec=$lt_library_names_spec | |
19350 | ||
19351 | # The coded name of the library, if different from the real name. | |
19352 | soname_spec=$lt_soname_spec | |
19353 | ||
43e02a8a RW |
19354 | # Permission mode override for installation of shared libraries. |
19355 | install_override_mode=$lt_install_override_mode | |
19356 | ||
1cf3d07d SE |
19357 | # Command to use after installation of a shared archive. |
19358 | postinstall_cmds=$lt_postinstall_cmds | |
19359 | ||
19360 | # Command to use after uninstallation of a shared archive. | |
19361 | postuninstall_cmds=$lt_postuninstall_cmds | |
19362 | ||
19363 | # Commands used to finish a libtool library installation in a directory. | |
19364 | finish_cmds=$lt_finish_cmds | |
19365 | ||
19366 | # As "finish_cmds", except a single script fragment to be evaled but | |
19367 | # not shown. | |
19368 | finish_eval=$lt_finish_eval | |
19369 | ||
19370 | # Whether we should hardcode library paths into libraries. | |
19371 | hardcode_into_libs=$hardcode_into_libs | |
19372 | ||
19373 | # Compile-time system search path for libraries. | |
19374 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19375 | ||
19376 | # Run-time system search path for libraries. | |
19377 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19378 | ||
19379 | # Whether dlopen is supported. | |
19380 | dlopen_support=$enable_dlopen | |
19381 | ||
19382 | # Whether dlopen of programs is supported. | |
19383 | dlopen_self=$enable_dlopen_self | |
19384 | ||
19385 | # Whether dlopen of statically linked programs is supported. | |
19386 | dlopen_self_static=$enable_dlopen_self_static | |
19387 | ||
19388 | # Commands to strip libraries. | |
19389 | old_striplib=$lt_old_striplib | |
19390 | striplib=$lt_striplib | |
19391 | ||
19392 | ||
19393 | # The linker used to build libraries. | |
19394 | LD=$lt_LD | |
19395 | ||
43e02a8a RW |
19396 | # How to create reloadable object files. |
19397 | reload_flag=$lt_reload_flag | |
19398 | reload_cmds=$lt_reload_cmds | |
19399 | ||
1cf3d07d SE |
19400 | # Commands used to build an old-style archive. |
19401 | old_archive_cmds=$lt_old_archive_cmds | |
19402 | ||
19403 | # A language specific compiler. | |
19404 | CC=$lt_compiler | |
19405 | ||
19406 | # Is the compiler the GNU compiler? | |
19407 | with_gcc=$GCC | |
19408 | ||
19409 | # Compiler flag to turn off builtin functions. | |
19410 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19411 | ||
19412 | # How to pass a linker flag through the compiler. | |
19413 | wl=$lt_lt_prog_compiler_wl | |
19414 | ||
19415 | # Additional compiler flags for building library objects. | |
19416 | pic_flag=$lt_lt_prog_compiler_pic | |
19417 | ||
19418 | # Compiler flag to prevent dynamic linking. | |
19419 | link_static_flag=$lt_lt_prog_compiler_static | |
19420 | ||
19421 | # Does compiler simultaneously support -c and -o options? | |
19422 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19423 | ||
19424 | # Whether or not to add -lc for building shared libraries. | |
19425 | build_libtool_need_lc=$archive_cmds_need_lc | |
19426 | ||
19427 | # Whether or not to disallow shared libs when runtime libs are static. | |
19428 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19429 | ||
19430 | # Compiler flag to allow reflexive dlopens. | |
19431 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19432 | ||
19433 | # Compiler flag to generate shared objects directly from archives. | |
19434 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19435 | ||
19436 | # Whether the compiler copes with passing no objects directly. | |
19437 | compiler_needs_object=$lt_compiler_needs_object | |
19438 | ||
19439 | # Create an old-style archive from a shared archive. | |
19440 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19441 | ||
19442 | # Create a temporary old-style archive to link instead of a shared archive. | |
19443 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19444 | ||
19445 | # Commands used to build a shared archive. | |
19446 | archive_cmds=$lt_archive_cmds | |
19447 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19448 | ||
19449 | # Commands used to build a loadable module if different from building | |
19450 | # a shared archive. | |
19451 | module_cmds=$lt_module_cmds | |
19452 | module_expsym_cmds=$lt_module_expsym_cmds | |
19453 | ||
19454 | # Whether we are building with GNU ld or not. | |
19455 | with_gnu_ld=$lt_with_gnu_ld | |
19456 | ||
19457 | # Flag that allows shared libraries with undefined symbols to be built. | |
19458 | allow_undefined_flag=$lt_allow_undefined_flag | |
19459 | ||
19460 | # Flag that enforces no undefined symbols. | |
19461 | no_undefined_flag=$lt_no_undefined_flag | |
19462 | ||
19463 | # Flag to hardcode \$libdir into a binary during linking. | |
19464 | # This must work even if \$libdir does not exist | |
19465 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19466 | ||
19467 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19468 | # during linking. This must work even if \$libdir does not exist. | |
19469 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19470 | ||
19471 | # Whether we need a single "-rpath" flag with a separated argument. | |
19472 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19473 | ||
19474 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19475 | # DIR into the resulting binary. | |
19476 | hardcode_direct=$hardcode_direct | |
19477 | ||
19478 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19479 | # DIR into the resulting binary and the resulting library dependency is | |
19480 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19481 | # library is relocated. | |
19482 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19483 | ||
19484 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19485 | # into the resulting binary. | |
19486 | hardcode_minus_L=$hardcode_minus_L | |
19487 | ||
19488 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19489 | # into the resulting binary. | |
19490 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19491 | ||
19492 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19493 | # into the library and all subsequent libraries and executables linked | |
19494 | # against it. | |
19495 | hardcode_automatic=$hardcode_automatic | |
19496 | ||
19497 | # Set to yes if linker adds runtime paths of dependent libraries | |
19498 | # to runtime path list. | |
19499 | inherit_rpath=$inherit_rpath | |
19500 | ||
19501 | # Whether libtool must link a program against all its dependency libraries. | |
19502 | link_all_deplibs=$link_all_deplibs | |
19503 | ||
19504 | # Fix the shell variable \$srcfile for the compiler. | |
19505 | fix_srcfile_path=$lt_fix_srcfile_path | |
19506 | ||
19507 | # Set to "yes" if exported symbols are required. | |
19508 | always_export_symbols=$always_export_symbols | |
19509 | ||
19510 | # The commands to list exported symbols. | |
19511 | export_symbols_cmds=$lt_export_symbols_cmds | |
19512 | ||
19513 | # Symbols that should not be listed in the preloaded symbols. | |
19514 | exclude_expsyms=$lt_exclude_expsyms | |
19515 | ||
19516 | # Symbols that must always be exported. | |
19517 | include_expsyms=$lt_include_expsyms | |
19518 | ||
19519 | # Commands necessary for linking programs (against libraries) with templates. | |
19520 | prelink_cmds=$lt_prelink_cmds | |
19521 | ||
19522 | # Specify filename containing input files. | |
19523 | file_list_spec=$lt_file_list_spec | |
19524 | ||
19525 | # How to hardcode a shared library path into an executable. | |
19526 | hardcode_action=$hardcode_action | |
19527 | ||
6b4a97ed PG |
19528 | # The directories searched by this compiler when creating a shared library. |
19529 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19530 | ||
1cf3d07d SE |
19531 | # Dependencies to place before and after the objects being linked to |
19532 | # create a shared library. | |
19533 | predep_objects=$lt_predep_objects | |
19534 | postdep_objects=$lt_postdep_objects | |
19535 | predeps=$lt_predeps | |
19536 | postdeps=$lt_postdeps | |
19537 | ||
19538 | # The library search path used internally by the compiler when linking | |
19539 | # a shared library. | |
19540 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19541 | ||
19542 | # ### END LIBTOOL CONFIG | |
19543 | ||
19544 | _LT_EOF | |
19545 | ||
19546 | case $host_os in | |
19547 | aix3*) | |
19548 | cat <<\_LT_EOF >> "$cfgfile" | |
19549 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19550 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19551 | # vanish in a puff of smoke. | |
19552 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19553 | COLLECT_NAMES= | |
19554 | export COLLECT_NAMES | |
19555 | fi | |
19556 | _LT_EOF | |
19557 | ;; | |
19558 | esac | |
19559 | ||
19560 | ||
19561 | ltmain="$ac_aux_dir/ltmain.sh" | |
19562 | ||
19563 | ||
19564 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19565 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19566 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19567 | # is reportedly fixed, but why not run on old versions too? | |
19568 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19569 | || (rm -f "$cfgfile"; exit 1) | |
19570 | ||
19571 | case $xsi_shell in | |
19572 | yes) | |
19573 | cat << \_LT_EOF >> "$cfgfile" | |
6b4a97ed | 19574 | |
1cf3d07d SE |
19575 | # func_dirname file append nondir_replacement |
19576 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19577 | # otherwise set result to NONDIR_REPLACEMENT. | |
19578 | func_dirname () | |
19579 | { | |
19580 | case ${1} in | |
19581 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19582 | * ) func_dirname_result="${3}" ;; | |
19583 | esac | |
19584 | } | |
19585 | ||
19586 | # func_basename file | |
19587 | func_basename () | |
19588 | { | |
19589 | func_basename_result="${1##*/}" | |
19590 | } | |
19591 | ||
6b4a97ed PG |
19592 | # func_dirname_and_basename file append nondir_replacement |
19593 | # perform func_basename and func_dirname in a single function | |
19594 | # call: | |
19595 | # dirname: Compute the dirname of FILE. If nonempty, | |
19596 | # add APPEND to the result, otherwise set result | |
19597 | # to NONDIR_REPLACEMENT. | |
19598 | # value returned in "$func_dirname_result" | |
19599 | # basename: Compute filename of FILE. | |
19600 | # value retuned in "$func_basename_result" | |
19601 | # Implementation must be kept synchronized with func_dirname | |
19602 | # and func_basename. For efficiency, we do not delegate to | |
19603 | # those functions but instead duplicate the functionality here. | |
19604 | func_dirname_and_basename () | |
19605 | { | |
19606 | case ${1} in | |
19607 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19608 | * ) func_dirname_result="${3}" ;; | |
19609 | esac | |
19610 | func_basename_result="${1##*/}" | |
19611 | } | |
19612 | ||
1cf3d07d SE |
19613 | # func_stripname prefix suffix name |
19614 | # strip PREFIX and SUFFIX off of NAME. | |
19615 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19616 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19617 | # dot (in which case that matches only a dot). | |
19618 | func_stripname () | |
19619 | { | |
19620 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19621 | # positional parameters, so assign one to ordinary parameter first. | |
19622 | func_stripname_result=${3} | |
19623 | func_stripname_result=${func_stripname_result#"${1}"} | |
19624 | func_stripname_result=${func_stripname_result%"${2}"} | |
19625 | } | |
19626 | ||
19627 | # func_opt_split | |
19628 | func_opt_split () | |
19629 | { | |
19630 | func_opt_split_opt=${1%%=*} | |
19631 | func_opt_split_arg=${1#*=} | |
19632 | } | |
19633 | ||
19634 | # func_lo2o object | |
19635 | func_lo2o () | |
19636 | { | |
19637 | case ${1} in | |
19638 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19639 | *) func_lo2o_result=${1} ;; | |
19640 | esac | |
19641 | } | |
6b4a97ed PG |
19642 | |
19643 | # func_xform libobj-or-source | |
19644 | func_xform () | |
19645 | { | |
19646 | func_xform_result=${1%.*}.lo | |
19647 | } | |
19648 | ||
19649 | # func_arith arithmetic-term... | |
19650 | func_arith () | |
19651 | { | |
19652 | func_arith_result=$(( $* )) | |
19653 | } | |
19654 | ||
19655 | # func_len string | |
19656 | # STRING may not start with a hyphen. | |
19657 | func_len () | |
19658 | { | |
19659 | func_len_result=${#1} | |
19660 | } | |
19661 | ||
1cf3d07d SE |
19662 | _LT_EOF |
19663 | ;; | |
19664 | *) # Bourne compatible functions. | |
19665 | cat << \_LT_EOF >> "$cfgfile" | |
6b4a97ed | 19666 | |
1cf3d07d SE |
19667 | # func_dirname file append nondir_replacement |
19668 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19669 | # otherwise set result to NONDIR_REPLACEMENT. | |
19670 | func_dirname () | |
19671 | { | |
19672 | # Extract subdirectory from the argument. | |
43e02a8a | 19673 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
19674 | if test "X$func_dirname_result" = "X${1}"; then |
19675 | func_dirname_result="${3}" | |
19676 | else | |
19677 | func_dirname_result="$func_dirname_result${2}" | |
19678 | fi | |
19679 | } | |
19680 | ||
19681 | # func_basename file | |
19682 | func_basename () | |
19683 | { | |
43e02a8a | 19684 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
19685 | } |
19686 | ||
6b4a97ed | 19687 | |
1cf3d07d SE |
19688 | # func_stripname prefix suffix name |
19689 | # strip PREFIX and SUFFIX off of NAME. | |
19690 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19691 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19692 | # dot (in which case that matches only a dot). | |
19693 | # func_strip_suffix prefix name | |
19694 | func_stripname () | |
19695 | { | |
19696 | case ${2} in | |
43e02a8a RW |
19697 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
19698 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
19699 | esac |
19700 | } | |
19701 | ||
19702 | # sed scripts: | |
19703 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19704 | my_sed_long_arg='1s/^-[^=]*=//' | |
19705 | ||
19706 | # func_opt_split | |
19707 | func_opt_split () | |
19708 | { | |
43e02a8a RW |
19709 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
19710 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
19711 | } |
19712 | ||
19713 | # func_lo2o object | |
19714 | func_lo2o () | |
19715 | { | |
43e02a8a | 19716 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 19717 | } |
6b4a97ed PG |
19718 | |
19719 | # func_xform libobj-or-source | |
19720 | func_xform () | |
19721 | { | |
43e02a8a | 19722 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
6b4a97ed PG |
19723 | } |
19724 | ||
19725 | # func_arith arithmetic-term... | |
19726 | func_arith () | |
19727 | { | |
19728 | func_arith_result=`expr "$@"` | |
19729 | } | |
19730 | ||
19731 | # func_len string | |
19732 | # STRING may not start with a hyphen. | |
19733 | func_len () | |
19734 | { | |
19735 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19736 | } | |
19737 | ||
1cf3d07d SE |
19738 | _LT_EOF |
19739 | esac | |
19740 | ||
19741 | case $lt_shell_append in | |
19742 | yes) | |
19743 | cat << \_LT_EOF >> "$cfgfile" | |
19744 | ||
19745 | # func_append var value | |
19746 | # Append VALUE to the end of shell variable VAR. | |
19747 | func_append () | |
19748 | { | |
19749 | eval "$1+=\$2" | |
19750 | } | |
19751 | _LT_EOF | |
19752 | ;; | |
19753 | *) | |
19754 | cat << \_LT_EOF >> "$cfgfile" | |
19755 | ||
19756 | # func_append var value | |
19757 | # Append VALUE to the end of shell variable VAR. | |
19758 | func_append () | |
19759 | { | |
19760 | eval "$1=\$$1\$2" | |
19761 | } | |
6b4a97ed | 19762 | |
1cf3d07d SE |
19763 | _LT_EOF |
19764 | ;; | |
19765 | esac | |
19766 | ||
19767 | ||
19768 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19769 | || (rm -f "$cfgfile"; exit 1) | |
19770 | ||
19771 | mv -f "$cfgfile" "$ofile" || | |
19772 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19773 | chmod +x "$ofile" | |
19774 | ||
19775 | ||
19776 | cat <<_LT_EOF >> "$ofile" | |
19777 | ||
19778 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
19779 | ||
19780 | # The linker used to build libraries. | |
19781 | LD=$lt_LD_FC | |
19782 | ||
43e02a8a RW |
19783 | # How to create reloadable object files. |
19784 | reload_flag=$lt_reload_flag_FC | |
19785 | reload_cmds=$lt_reload_cmds_FC | |
19786 | ||
1cf3d07d SE |
19787 | # Commands used to build an old-style archive. |
19788 | old_archive_cmds=$lt_old_archive_cmds_FC | |
19789 | ||
19790 | # A language specific compiler. | |
19791 | CC=$lt_compiler_FC | |
19792 | ||
19793 | # Is the compiler the GNU compiler? | |
19794 | with_gcc=$GCC_FC | |
19795 | ||
19796 | # Compiler flag to turn off builtin functions. | |
19797 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
19798 | ||
19799 | # How to pass a linker flag through the compiler. | |
19800 | wl=$lt_lt_prog_compiler_wl_FC | |
19801 | ||
19802 | # Additional compiler flags for building library objects. | |
19803 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
19804 | ||
19805 | # Compiler flag to prevent dynamic linking. | |
19806 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
19807 | ||
19808 | # Does compiler simultaneously support -c and -o options? | |
19809 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
19810 | ||
19811 | # Whether or not to add -lc for building shared libraries. | |
19812 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
19813 | ||
19814 | # Whether or not to disallow shared libs when runtime libs are static. | |
19815 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
19816 | ||
19817 | # Compiler flag to allow reflexive dlopens. | |
19818 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
19819 | ||
19820 | # Compiler flag to generate shared objects directly from archives. | |
19821 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
19822 | ||
19823 | # Whether the compiler copes with passing no objects directly. | |
19824 | compiler_needs_object=$lt_compiler_needs_object_FC | |
19825 | ||
19826 | # Create an old-style archive from a shared archive. | |
19827 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
19828 | ||
19829 | # Create a temporary old-style archive to link instead of a shared archive. | |
19830 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
19831 | ||
19832 | # Commands used to build a shared archive. | |
19833 | archive_cmds=$lt_archive_cmds_FC | |
19834 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
19835 | ||
19836 | # Commands used to build a loadable module if different from building | |
19837 | # a shared archive. | |
19838 | module_cmds=$lt_module_cmds_FC | |
19839 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
19840 | ||
19841 | # Whether we are building with GNU ld or not. | |
19842 | with_gnu_ld=$lt_with_gnu_ld_FC | |
19843 | ||
19844 | # Flag that allows shared libraries with undefined symbols to be built. | |
19845 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
19846 | ||
19847 | # Flag that enforces no undefined symbols. | |
19848 | no_undefined_flag=$lt_no_undefined_flag_FC | |
19849 | ||
19850 | # Flag to hardcode \$libdir into a binary during linking. | |
19851 | # This must work even if \$libdir does not exist | |
19852 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
19853 | ||
19854 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19855 | # during linking. This must work even if \$libdir does not exist. | |
19856 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
19857 | ||
19858 | # Whether we need a single "-rpath" flag with a separated argument. | |
19859 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
19860 | ||
19861 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19862 | # DIR into the resulting binary. | |
19863 | hardcode_direct=$hardcode_direct_FC | |
19864 | ||
19865 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19866 | # DIR into the resulting binary and the resulting library dependency is | |
19867 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19868 | # library is relocated. | |
19869 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
19870 | ||
19871 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19872 | # into the resulting binary. | |
19873 | hardcode_minus_L=$hardcode_minus_L_FC | |
19874 | ||
19875 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19876 | # into the resulting binary. | |
19877 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
19878 | ||
19879 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19880 | # into the library and all subsequent libraries and executables linked | |
19881 | # against it. | |
19882 | hardcode_automatic=$hardcode_automatic_FC | |
19883 | ||
19884 | # Set to yes if linker adds runtime paths of dependent libraries | |
19885 | # to runtime path list. | |
19886 | inherit_rpath=$inherit_rpath_FC | |
19887 | ||
19888 | # Whether libtool must link a program against all its dependency libraries. | |
19889 | link_all_deplibs=$link_all_deplibs_FC | |
19890 | ||
19891 | # Fix the shell variable \$srcfile for the compiler. | |
19892 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
19893 | ||
19894 | # Set to "yes" if exported symbols are required. | |
19895 | always_export_symbols=$always_export_symbols_FC | |
19896 | ||
19897 | # The commands to list exported symbols. | |
19898 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
19899 | ||
19900 | # Symbols that should not be listed in the preloaded symbols. | |
19901 | exclude_expsyms=$lt_exclude_expsyms_FC | |
19902 | ||
19903 | # Symbols that must always be exported. | |
19904 | include_expsyms=$lt_include_expsyms_FC | |
19905 | ||
19906 | # Commands necessary for linking programs (against libraries) with templates. | |
19907 | prelink_cmds=$lt_prelink_cmds_FC | |
19908 | ||
19909 | # Specify filename containing input files. | |
19910 | file_list_spec=$lt_file_list_spec_FC | |
19911 | ||
19912 | # How to hardcode a shared library path into an executable. | |
19913 | hardcode_action=$hardcode_action_FC | |
19914 | ||
6b4a97ed PG |
19915 | # The directories searched by this compiler when creating a shared library. |
19916 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
19917 | ||
1cf3d07d SE |
19918 | # Dependencies to place before and after the objects being linked to |
19919 | # create a shared library. | |
19920 | predep_objects=$lt_predep_objects_FC | |
19921 | postdep_objects=$lt_postdep_objects_FC | |
19922 | predeps=$lt_predeps_FC | |
19923 | postdeps=$lt_postdeps_FC | |
19924 | ||
19925 | # The library search path used internally by the compiler when linking | |
19926 | # a shared library. | |
19927 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
19928 | ||
19929 | # ### END LIBTOOL TAG CONFIG: FC | |
19930 | _LT_EOF | |
19931 | ||
18cbfd85 | 19932 | ;; |
5213506e | 19933 | "gstdint.h":C) |
18cbfd85 PB |
19934 | if test "$GCC" = yes; then |
19935 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
19936 | else | |
19937 | echo "/* generated for $CC */" > tmp-stdint.h | |
19938 | fi | |
19939 | ||
19940 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19941 | ||
19942 | #ifndef GCC_GENERATED_STDINT_H | |
19943 | #define GCC_GENERATED_STDINT_H 1 | |
19944 | ||
19945 | #include <sys/types.h> | |
19946 | EOF | |
19947 | ||
19948 | if test "$acx_cv_header_stdint" != stdint.h; then | |
19949 | echo "#include <stddef.h>" >> tmp-stdint.h | |
19950 | fi | |
19951 | if test "$acx_cv_header_stdint" != stddef.h; then | |
19952 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
19953 | fi | |
19954 | ||
19955 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19956 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
19957 | #ifdef __int8_t_defined | |
19958 | #define _INT8_T | |
19959 | #define _INT16_T | |
19960 | #define _INT32_T | |
19961 | #endif | |
19962 | #ifdef __uint32_t_defined | |
19963 | #define _UINT32_T | |
19964 | #endif | |
19965 | ||
19966 | EOF | |
19967 | ||
19968 | # ----------------- done header, emit basic int types ------------- | |
19969 | if test "$acx_cv_header_stdint" = stddef.h; then | |
19970 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19971 | ||
19972 | #ifndef _UINT8_T | |
19973 | #define _UINT8_T | |
1cf3d07d SE |
19974 | #ifndef __uint8_t_defined |
19975 | #define __uint8_t_defined | |
b9497ab5 | 19976 | #ifndef uint8_t |
18cbfd85 PB |
19977 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
19978 | #endif | |
1cf3d07d | 19979 | #endif |
b9497ab5 | 19980 | #endif |
18cbfd85 PB |
19981 | |
19982 | #ifndef _UINT16_T | |
19983 | #define _UINT16_T | |
1cf3d07d SE |
19984 | #ifndef __uint16_t_defined |
19985 | #define __uint16_t_defined | |
b9497ab5 | 19986 | #ifndef uint16_t |
18cbfd85 PB |
19987 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
19988 | #endif | |
1cf3d07d | 19989 | #endif |
b9497ab5 | 19990 | #endif |
18cbfd85 PB |
19991 | |
19992 | #ifndef _UINT32_T | |
19993 | #define _UINT32_T | |
1cf3d07d SE |
19994 | #ifndef __uint32_t_defined |
19995 | #define __uint32_t_defined | |
b9497ab5 | 19996 | #ifndef uint32_t |
18cbfd85 PB |
19997 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
19998 | #endif | |
1cf3d07d | 19999 | #endif |
b9497ab5 | 20000 | #endif |
18cbfd85 PB |
20001 | |
20002 | #ifndef _INT8_T | |
20003 | #define _INT8_T | |
1cf3d07d SE |
20004 | #ifndef __int8_t_defined |
20005 | #define __int8_t_defined | |
b9497ab5 | 20006 | #ifndef int8_t |
18cbfd85 PB |
20007 | typedef $acx_cv_type_int8_t int8_t; |
20008 | #endif | |
1cf3d07d | 20009 | #endif |
b9497ab5 | 20010 | #endif |
18cbfd85 PB |
20011 | |
20012 | #ifndef _INT16_T | |
20013 | #define _INT16_T | |
1cf3d07d SE |
20014 | #ifndef __int16_t_defined |
20015 | #define __int16_t_defined | |
b9497ab5 | 20016 | #ifndef int16_t |
18cbfd85 PB |
20017 | typedef $acx_cv_type_int16_t int16_t; |
20018 | #endif | |
1cf3d07d | 20019 | #endif |
b9497ab5 | 20020 | #endif |
18cbfd85 PB |
20021 | |
20022 | #ifndef _INT32_T | |
20023 | #define _INT32_T | |
1cf3d07d SE |
20024 | #ifndef __int32_t_defined |
20025 | #define __int32_t_defined | |
b9497ab5 | 20026 | #ifndef int32_t |
18cbfd85 PB |
20027 | typedef $acx_cv_type_int32_t int32_t; |
20028 | #endif | |
1cf3d07d | 20029 | #endif |
b9497ab5 | 20030 | #endif |
18cbfd85 PB |
20031 | EOF |
20032 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
20033 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20034 | ||
20035 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
20036 | #ifndef _INT8_T | |
20037 | #define _INT8_T | |
20038 | #endif | |
20039 | #ifndef _INT16_T | |
20040 | #define _INT16_T | |
20041 | #endif | |
20042 | #ifndef _INT32_T | |
20043 | #define _INT32_T | |
20044 | #endif | |
20045 | ||
20046 | #ifndef _UINT8_T | |
20047 | #define _UINT8_T | |
1cf3d07d SE |
20048 | #ifndef __uint8_t_defined |
20049 | #define __uint8_t_defined | |
b9497ab5 | 20050 | #ifndef uint8_t |
18cbfd85 PB |
20051 | typedef u_int8_t uint8_t; |
20052 | #endif | |
1cf3d07d | 20053 | #endif |
b9497ab5 | 20054 | #endif |
18cbfd85 PB |
20055 | |
20056 | #ifndef _UINT16_T | |
20057 | #define _UINT16_T | |
1cf3d07d SE |
20058 | #ifndef __uint16_t_defined |
20059 | #define __uint16_t_defined | |
b9497ab5 | 20060 | #ifndef uint16_t |
18cbfd85 PB |
20061 | typedef u_int16_t uint16_t; |
20062 | #endif | |
1cf3d07d | 20063 | #endif |
b9497ab5 | 20064 | #endif |
18cbfd85 PB |
20065 | |
20066 | #ifndef _UINT32_T | |
20067 | #define _UINT32_T | |
1cf3d07d SE |
20068 | #ifndef __uint32_t_defined |
20069 | #define __uint32_t_defined | |
b9497ab5 | 20070 | #ifndef uint32_t |
18cbfd85 PB |
20071 | typedef u_int32_t uint32_t; |
20072 | #endif | |
1cf3d07d | 20073 | #endif |
b9497ab5 | 20074 | #endif |
18cbfd85 PB |
20075 | EOF |
20076 | else | |
20077 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20078 | ||
20079 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
20080 | #ifndef _INT8_T | |
20081 | #define _INT8_T | |
20082 | #endif | |
20083 | #ifndef _INT16_T | |
20084 | #define _INT16_T | |
20085 | #endif | |
20086 | #ifndef _INT32_T | |
20087 | #define _INT32_T | |
20088 | #endif | |
20089 | #ifndef _UINT8_T | |
20090 | #define _UINT8_T | |
20091 | #endif | |
20092 | #ifndef _UINT16_T | |
20093 | #define _UINT16_T | |
20094 | #endif | |
20095 | #ifndef _UINT32_T | |
20096 | #define _UINT32_T | |
20097 | #endif | |
20098 | EOF | |
20099 | fi | |
20100 | ||
20101 | # ------------- done basic int types, emit int64_t types ------------ | |
20102 | if test "$ac_cv_type_uint64_t" = yes; then | |
20103 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20104 | ||
20105 | /* system headers have good uint64_t and int64_t */ | |
20106 | #ifndef _INT64_T | |
20107 | #define _INT64_T | |
20108 | #endif | |
20109 | #ifndef _UINT64_T | |
20110 | #define _UINT64_T | |
20111 | #endif | |
20112 | EOF | |
20113 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
20114 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20115 | ||
20116 | /* system headers have an u_int64_t (and int64_t) */ | |
20117 | #ifndef _INT64_T | |
20118 | #define _INT64_T | |
20119 | #endif | |
20120 | #ifndef _UINT64_T | |
20121 | #define _UINT64_T | |
1cf3d07d SE |
20122 | #ifndef __uint64_t_defined |
20123 | #define __uint64_t_defined | |
b9497ab5 | 20124 | #ifndef uint64_t |
18cbfd85 PB |
20125 | typedef u_int64_t uint64_t; |
20126 | #endif | |
1cf3d07d | 20127 | #endif |
b9497ab5 | 20128 | #endif |
18cbfd85 PB |
20129 | EOF |
20130 | elif test -n "$acx_cv_type_int64_t"; then | |
20131 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20132 | ||
20133 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
20134 | #ifndef _INT64_T | |
20135 | #define _INT64_T | |
b9497ab5 | 20136 | #ifndef int64_t |
18cbfd85 PB |
20137 | typedef $acx_cv_type_int64_t int64_t; |
20138 | #endif | |
b9497ab5 | 20139 | #endif |
18cbfd85 PB |
20140 | #ifndef _UINT64_T |
20141 | #define _UINT64_T | |
1cf3d07d SE |
20142 | #ifndef __uint64_t_defined |
20143 | #define __uint64_t_defined | |
b9497ab5 | 20144 | #ifndef uint64_t |
18cbfd85 PB |
20145 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
20146 | #endif | |
1cf3d07d | 20147 | #endif |
b9497ab5 | 20148 | #endif |
18cbfd85 PB |
20149 | EOF |
20150 | else | |
20151 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20152 | ||
20153 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
20154 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
20155 | #ifndef _INT64_T | |
20156 | #define _INT64_T | |
1cf3d07d | 20157 | #ifndef __int64_t_defined |
b9497ab5 | 20158 | #ifndef int64_t |
18cbfd85 PB |
20159 | typedef long long int64_t; |
20160 | #endif | |
1cf3d07d | 20161 | #endif |
b9497ab5 | 20162 | #endif |
18cbfd85 PB |
20163 | #ifndef _UINT64_T |
20164 | #define _UINT64_T | |
b9497ab5 | 20165 | #ifndef uint64_t |
18cbfd85 PB |
20166 | typedef unsigned long long uint64_t; |
20167 | #endif | |
b9497ab5 | 20168 | #endif |
18cbfd85 PB |
20169 | |
20170 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
20171 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
20172 | does not implement __extension__. But that compiler doesn't define | |
20173 | __GNUC_MINOR__. */ | |
20174 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
20175 | # define __extension__ | |
20176 | # endif | |
20177 | ||
20178 | # ifndef _INT64_T | |
20179 | # define _INT64_T | |
b9497ab5 | 20180 | # ifndef int64_t |
18cbfd85 PB |
20181 | __extension__ typedef long long int64_t; |
20182 | # endif | |
b9497ab5 | 20183 | # endif |
18cbfd85 PB |
20184 | # ifndef _UINT64_T |
20185 | # define _UINT64_T | |
b9497ab5 | 20186 | # ifndef uint64_t |
18cbfd85 PB |
20187 | __extension__ typedef unsigned long long uint64_t; |
20188 | # endif | |
b9497ab5 | 20189 | # endif |
18cbfd85 PB |
20190 | |
20191 | #elif !defined __STRICT_ANSI__ | |
20192 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
20193 | ||
20194 | # ifndef _INT64_T | |
20195 | # define _INT64_T | |
b9497ab5 | 20196 | # ifndef int64_t |
18cbfd85 PB |
20197 | typedef __int64 int64_t; |
20198 | # endif | |
b9497ab5 | 20199 | # endif |
18cbfd85 PB |
20200 | # ifndef _UINT64_T |
20201 | # define _UINT64_T | |
b9497ab5 | 20202 | # ifndef uint64_t |
18cbfd85 PB |
20203 | typedef unsigned __int64 uint64_t; |
20204 | # endif | |
b9497ab5 | 20205 | # endif |
18cbfd85 PB |
20206 | # endif /* compiler */ |
20207 | ||
20208 | #endif /* ANSI version */ | |
20209 | EOF | |
20210 | fi | |
20211 | ||
20212 | # ------------- done int64_t types, emit intptr types ------------ | |
20213 | if test "$ac_cv_type_uintptr_t" != yes; then | |
20214 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20215 | ||
20216 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
1cf3d07d | 20217 | #ifndef __uintptr_t_defined |
b9497ab5 | 20218 | #ifndef uintptr_t |
18cbfd85 | 20219 | typedef u$acx_cv_type_intptr_t uintptr_t; |
1cf3d07d | 20220 | #endif |
b9497ab5 | 20221 | #endif |
1cf3d07d | 20222 | #ifndef __intptr_t_defined |
b9497ab5 | 20223 | #ifndef intptr_t |
18cbfd85 | 20224 | typedef $acx_cv_type_intptr_t intptr_t; |
1cf3d07d | 20225 | #endif |
b9497ab5 | 20226 | #endif |
18cbfd85 PB |
20227 | EOF |
20228 | fi | |
20229 | ||
20230 | # ------------- done intptr types, emit int_least types ------------ | |
20231 | if test "$ac_cv_type_int_least32_t" != yes; then | |
20232 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20233 | ||
20234 | /* Define int_least types */ | |
20235 | typedef int8_t int_least8_t; | |
20236 | typedef int16_t int_least16_t; | |
20237 | typedef int32_t int_least32_t; | |
20238 | #ifdef _INT64_T | |
20239 | typedef int64_t int_least64_t; | |
20240 | #endif | |
20241 | ||
20242 | typedef uint8_t uint_least8_t; | |
20243 | typedef uint16_t uint_least16_t; | |
20244 | typedef uint32_t uint_least32_t; | |
20245 | #ifdef _UINT64_T | |
20246 | typedef uint64_t uint_least64_t; | |
20247 | #endif | |
20248 | EOF | |
20249 | fi | |
20250 | ||
20251 | # ------------- done intptr types, emit int_fast types ------------ | |
20252 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
20253 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20254 | ||
20255 | /* Define int_fast types. short is often slow */ | |
20256 | typedef int8_t int_fast8_t; | |
20257 | typedef int int_fast16_t; | |
20258 | typedef int32_t int_fast32_t; | |
20259 | #ifdef _INT64_T | |
20260 | typedef int64_t int_fast64_t; | |
20261 | #endif | |
20262 | ||
20263 | typedef uint8_t uint_fast8_t; | |
20264 | typedef unsigned int uint_fast16_t; | |
20265 | typedef uint32_t uint_fast32_t; | |
20266 | #ifdef _UINT64_T | |
20267 | typedef uint64_t uint_fast64_t; | |
20268 | #endif | |
20269 | EOF | |
20270 | fi | |
20271 | ||
20272 | if test "$ac_cv_type_uintmax_t" != yes; then | |
20273 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20274 | ||
20275 | /* Define intmax based on what we found */ | |
b9497ab5 | 20276 | #ifndef intmax_t |
18cbfd85 PB |
20277 | #ifdef _INT64_T |
20278 | typedef int64_t intmax_t; | |
20279 | #else | |
20280 | typedef long intmax_t; | |
20281 | #endif | |
b9497ab5 RO |
20282 | #endif |
20283 | #ifndef uintmax_t | |
18cbfd85 PB |
20284 | #ifdef _UINT64_T |
20285 | typedef uint64_t uintmax_t; | |
20286 | #else | |
20287 | typedef unsigned long uintmax_t; | |
20288 | #endif | |
b9497ab5 | 20289 | #endif |
18cbfd85 PB |
20290 | EOF |
20291 | fi | |
20292 | ||
20293 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20294 | ||
20295 | #endif /* GCC_GENERATED_STDINT_H */ | |
20296 | EOF | |
20297 | ||
20298 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
20299 | rm -f tmp-stdint.h | |
20300 | else | |
20301 | mv -f tmp-stdint.h gstdint.h | |
20302 | fi | |
20303 | ||
953ff289 | 20304 | ;; |
5213506e | 20305 | |
953ff289 | 20306 | esac |
5213506e | 20307 | done # for ac_tag |
953ff289 | 20308 | |
953ff289 | 20309 | |
5213506e | 20310 | as_fn_exit 0 |
953ff289 | 20311 | _ACEOF |
953ff289 DN |
20312 | ac_clean_files=$ac_clean_files_save |
20313 | ||
5213506e | 20314 | test $ac_write_fail = 0 || |
22e05272 | 20315 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 20316 | |
953ff289 DN |
20317 | |
20318 | # configure is writing to config.log, and then calls config.status. | |
20319 | # config.status does its own redirection, appending to config.log. | |
20320 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20321 | # by configure, so config.status won't be able to write to it; its | |
20322 | # output is simply discarded. So we exec the FD to /dev/null, | |
20323 | # effectively closing config.log, so it can be properly (re)opened and | |
20324 | # appended to by config.status. When coming back to configure, we | |
20325 | # need to make the FD available again. | |
20326 | if test "$no_create" != yes; then | |
20327 | ac_cs_success=: | |
20328 | ac_config_status_args= | |
20329 | test "$silent" = yes && | |
20330 | ac_config_status_args="$ac_config_status_args --quiet" | |
20331 | exec 5>/dev/null | |
20332 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20333 | exec 5>>config.log | |
20334 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20335 | # would make configure fail if this is the last instruction. | |
22e05272 | 20336 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
20337 | fi |
20338 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20340 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
953ff289 DN |
20341 | fi |
20342 |