]>
Commit | Line | Data |
---|---|---|
7a938933 ILT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.64 for package-unused version-unused. | |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
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 : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
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 | |
31 | fi | |
32 | ||
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 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
121 | PS1='$ ' | |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
126 | LC_ALL=C | |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1 | |
173 | ||
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
181 | if (eval "$as_required") 2>/dev/null; then : | |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
192 | do | |
193 | IFS=$as_save_IFS | |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
236 | else | |
237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
241 | fi | |
242 | exit 1 | |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
380 | ||
381 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
383 | as_expr=expr | |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
389 | as_basename=basename | |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
399 | ||
400 | as_me=`$as_basename -- "$0" || | |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
402 | X"$0" : 'X\(//\)$' \| \ | |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
418 | ||
419 | # Avoid depending upon Character Ranges. | |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
425 | ||
426 | ||
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
436 | sed ' | |
437 | s/[$]LINENO.*/&-/ | |
438 | t lineno | |
439 | b | |
440 | :lineno | |
441 | N | |
442 | :loop | |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
444 | t loop | |
445 | s/-\n.*// | |
446 | ' >$as_me.lineno && | |
447 | chmod +x "$as_me.lineno" || | |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
449 | ||
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
452 | # original and so on. Autoconf is especially sensitive to this). | |
453 | . "./$as_me.lineno" | |
454 | # Exit status is that of the last command. | |
455 | exit | |
456 | } | |
457 | ||
458 | ECHO_C= ECHO_N= ECHO_T= | |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
469 | esac | |
470 | ||
471 | rm -f conf$$ conf$$.exe conf$$.file | |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
474 | else | |
475 | rm -f conf$$.dir | |
476 | mkdir conf$$.dir 2>/dev/null | |
477 | fi | |
478 | if (echo >conf$$.file) 2>/dev/null; then | |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s='ln -s' | |
481 | # ... but there are two gotchas: | |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
491 | fi | |
492 | else | |
493 | as_ln_s='cp -p' | |
494 | fi | |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
496 | rmdir conf$$.dir 2>/dev/null | |
497 | ||
498 | if mkdir -p . 2>/dev/null; then | |
499 | as_mkdir_p='mkdir -p "$as_dir"' | |
500 | else | |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
505 | if test -x / >/dev/null 2>&1; then | |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
527 | ||
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | |
535 | ||
536 | ||
537 | exec 7<&0 </dev/null 6>&1 | |
538 | ||
539 | # Name of the host. | |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
544 | # | |
545 | # Initializations. | |
546 | # | |
547 | ac_default_prefix=/usr/local | |
548 | ac_clean_files= | |
549 | ac_config_libobj_dir=. | |
550 | LIBOBJS= | |
551 | cross_compiling=no | |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
555 | ||
556 | # Identity of this package. | |
557 | PACKAGE_NAME='package-unused' | |
558 | PACKAGE_TARNAME='libgo' | |
559 | PACKAGE_VERSION='version-unused' | |
560 | PACKAGE_STRING='package-unused version-unused' | |
561 | PACKAGE_BUGREPORT='' | |
562 | PACKAGE_URL='' | |
563 | ||
564 | ac_unique_file="Makefile.am" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
568 | #ifdef HAVE_SYS_TYPES_H | |
569 | # include <sys/types.h> | |
570 | #endif | |
571 | #ifdef HAVE_SYS_STAT_H | |
572 | # include <sys/stat.h> | |
573 | #endif | |
574 | #ifdef STDC_HEADERS | |
575 | # include <stdlib.h> | |
576 | # include <stddef.h> | |
577 | #else | |
578 | # ifdef HAVE_STDLIB_H | |
579 | # include <stdlib.h> | |
580 | # endif | |
581 | #endif | |
582 | #ifdef HAVE_STRING_H | |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
584 | # include <memory.h> | |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
588 | #ifdef HAVE_STRINGS_H | |
589 | # include <strings.h> | |
590 | #endif | |
591 | #ifdef HAVE_INTTYPES_H | |
592 | # include <inttypes.h> | |
593 | #endif | |
594 | #ifdef HAVE_STDINT_H | |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
598 | # include <unistd.h> | |
599 | #endif" | |
600 | ||
601 | ac_subst_vars='am__EXEEXT_FALSE | |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
476013d6 ILT |
605 | HAVE_STAT_TIMESPEC_FALSE |
606 | HAVE_STAT_TIMESPEC_TRUE | |
207c35fa ILT |
607 | STRUCT_EPOLL_EVENT_FD_OFFSET |
608 | SIZEOF_STRUCT_EPOLL_EVENT | |
9d465faf | 609 | MATH_FLAG |
7a938933 | 610 | STRINGOPS_FLAG |
0b3189e7 ILT |
611 | HAVE_WAIT4_FALSE |
612 | HAVE_WAIT4_TRUE | |
8955c80a ILT |
613 | HAVE_STRERROR_R_FALSE |
614 | HAVE_STRERROR_R_TRUE | |
7a938933 ILT |
615 | HAVE_SYS_MMAN_H_FALSE |
616 | HAVE_SYS_MMAN_H_TRUE | |
6c94a9fa ILT |
617 | PTHREAD_LIBS |
618 | PTHREAD_CFLAGS | |
f2ee78b8 | 619 | NET_LIBS |
505b439a | 620 | MATH_LIBS |
4c46b5f0 ILT |
621 | GOC_IS_LLGO_FALSE |
622 | GOC_IS_LLGO_TRUE | |
a2bf11d1 | 623 | GO_SPLIT_STACK |
7a938933 ILT |
624 | USING_SPLIT_STACK_FALSE |
625 | USING_SPLIT_STACK_TRUE | |
626 | SPLIT_STACK | |
08934aed | 627 | HWCAP_CFLAGS |
90630d19 | 628 | OSCFLAGS |
de27caac ILT |
629 | GO_SYSCALL_OS_ARCH_FILE |
630 | GO_SYSCALL_OS_FILE | |
631 | GO_LIBCALL_OS_ARCH_FILE | |
632 | GO_LIBCALL_OS_FILE | |
a8464243 ILT |
633 | ALLGOARCHFAMILY |
634 | ALLGOARCH | |
635 | GOARCH_MINFRAMESIZE | |
636 | GOARCH_HUGEPAGESIZE | |
637 | GOARCH_INT64ALIGN | |
638 | GOARCH_PCQUANTUM | |
639 | GOARCH_PHYSPAGESIZE | |
640 | GOARCH_CACHELINESIZE | |
641 | GOARCH_BIGENDIAN | |
642 | GOARCH_FAMILY | |
c3b5b97b | 643 | GOARCH |
7134cf28 | 644 | USE_DEJAGNU |
a8464243 | 645 | ALLGOOS |
c3b5b97b | 646 | GOOS |
22b955cc ILT |
647 | LIBGO_IS_BSD_FALSE |
648 | LIBGO_IS_BSD_TRUE | |
f163907e ILT |
649 | LIBGO_IS_AIX_FALSE |
650 | LIBGO_IS_AIX_TRUE | |
f2ee78b8 ILT |
651 | LIBGO_IS_SOLARIS_FALSE |
652 | LIBGO_IS_SOLARIS_TRUE | |
7a938933 ILT |
653 | LIBGO_IS_RTEMS_FALSE |
654 | LIBGO_IS_RTEMS_TRUE | |
f038dae6 ILT |
655 | LIBGO_IS_DRAGONFLY_FALSE |
656 | LIBGO_IS_DRAGONFLY_TRUE | |
4ccad563 ILT |
657 | LIBGO_IS_OPENBSD_FALSE |
658 | LIBGO_IS_OPENBSD_TRUE | |
df4aa89a ILT |
659 | LIBGO_IS_NETBSD_FALSE |
660 | LIBGO_IS_NETBSD_TRUE | |
7a938933 ILT |
661 | LIBGO_IS_LINUX_FALSE |
662 | LIBGO_IS_LINUX_TRUE | |
654d2ec0 ILT |
663 | LIBGO_IS_IRIX_FALSE |
664 | LIBGO_IS_IRIX_TRUE | |
7a938933 ILT |
665 | LIBGO_IS_FREEBSD_FALSE |
666 | LIBGO_IS_FREEBSD_TRUE | |
667 | LIBGO_IS_DARWIN_FALSE | |
668 | LIBGO_IS_DARWIN_TRUE | |
18c70075 | 669 | go_include |
9a85ed03 | 670 | LIBATOMIC |
5302cd02 ILT |
671 | USE_LIBFFI_FALSE |
672 | USE_LIBFFI_TRUE | |
7a938933 ILT |
673 | LIBFFIINCS |
674 | LIBFFI | |
317ea7c0 | 675 | nover_glibgo_toolexeclibdir |
7a938933 ILT |
676 | glibgo_toolexeclibdir |
677 | glibgo_toolexecdir | |
7a938933 ILT |
678 | WERROR |
679 | WARN_FLAGS | |
d983a802 | 680 | CC_FOR_BUILD |
7a938933 ILT |
681 | enable_static |
682 | enable_shared | |
061793a4 | 683 | CPP |
7a938933 ILT |
684 | OTOOL64 |
685 | OTOOL | |
686 | LIPO | |
687 | NMEDIT | |
688 | DSYMUTIL | |
689 | AR | |
690 | OBJDUMP | |
691 | LN_S | |
692 | NM | |
693 | ac_ct_DUMPBIN | |
694 | DUMPBIN | |
695 | LIBTOOL | |
696 | OBJCOPY | |
697 | RANLIB | |
698 | LD | |
699 | FGREP | |
700 | EGREP | |
701 | GREP | |
061793a4 | 702 | SED |
7a938933 ILT |
703 | MAINT |
704 | MAINTAINER_MODE_FALSE | |
705 | MAINTAINER_MODE_TRUE | |
706 | GOCFLAGS | |
707 | GOC | |
708 | am__fastdepCC_FALSE | |
709 | am__fastdepCC_TRUE | |
710 | CCDEPMODE | |
44c925bd | 711 | am__nodep |
7a938933 ILT |
712 | AMDEPBACKSLASH |
713 | AMDEP_FALSE | |
714 | AMDEP_TRUE | |
715 | am__quote | |
716 | am__include | |
717 | DEPDIR | |
718 | OBJEXT | |
719 | EXEEXT | |
720 | ac_ct_CC | |
721 | CPPFLAGS | |
722 | LDFLAGS | |
723 | CFLAGS | |
724 | CC | |
725 | am__untar | |
726 | am__tar | |
727 | AMTAR | |
728 | am__leading_dot | |
729 | SET_MAKE | |
730 | AWK | |
731 | mkdir_p | |
732 | MKDIR_P | |
733 | INSTALL_STRIP_PROGRAM | |
734 | STRIP | |
735 | install_sh | |
736 | MAKEINFO | |
737 | AUTOHEADER | |
738 | AUTOMAKE | |
739 | AUTOCONF | |
740 | ACLOCAL | |
741 | VERSION | |
742 | PACKAGE | |
743 | CYGPATH_W | |
744 | am__isrc | |
745 | INSTALL_DATA | |
746 | INSTALL_SCRIPT | |
747 | INSTALL_PROGRAM | |
748 | target_os | |
749 | target_vendor | |
750 | target_cpu | |
751 | target | |
752 | host_os | |
753 | host_vendor | |
754 | host_cpu | |
755 | host | |
756 | build_os | |
757 | build_vendor | |
758 | build_cpu | |
759 | build | |
760 | multi_basedir | |
761 | libtool_VERSION | |
762 | target_alias | |
763 | host_alias | |
764 | build_alias | |
765 | LIBS | |
766 | ECHO_T | |
767 | ECHO_N | |
768 | ECHO_C | |
769 | DEFS | |
770 | mandir | |
771 | localedir | |
772 | libdir | |
773 | psdir | |
774 | pdfdir | |
775 | dvidir | |
776 | htmldir | |
777 | infodir | |
778 | docdir | |
779 | oldincludedir | |
780 | includedir | |
781 | localstatedir | |
782 | sharedstatedir | |
783 | sysconfdir | |
784 | datadir | |
785 | datarootdir | |
786 | libexecdir | |
787 | sbindir | |
788 | bindir | |
789 | program_transform_name | |
790 | prefix | |
791 | exec_prefix | |
792 | PACKAGE_URL | |
793 | PACKAGE_BUGREPORT | |
794 | PACKAGE_STRING | |
795 | PACKAGE_VERSION | |
796 | PACKAGE_TARNAME | |
797 | PACKAGE_NAME | |
798 | PATH_SEPARATOR | |
799 | SHELL' | |
800 | ac_subst_files='' | |
801 | ac_user_opts=' | |
802 | enable_option_checking | |
803 | enable_multilib | |
804 | enable_dependency_tracking | |
805 | enable_maintainer_mode | |
806 | with_gnu_ld | |
807 | enable_shared | |
808 | enable_static | |
809 | with_pic | |
810 | enable_fast_install | |
811 | enable_libtool_lock | |
0d4668c1 | 812 | enable_werror |
7a938933 ILT |
813 | enable_version_specific_runtime_libs |
814 | with_libffi | |
9a85ed03 | 815 | with_libatomic |
54f0deb0 | 816 | with_system_libunwind |
7a938933 ILT |
817 | ' |
818 | ac_precious_vars='build_alias | |
819 | host_alias | |
820 | target_alias | |
821 | CPP | |
822 | CPPFLAGS' | |
823 | ||
824 | ||
825 | # Initialize some variables set by options. | |
826 | ac_init_help= | |
827 | ac_init_version=false | |
828 | ac_unrecognized_opts= | |
829 | ac_unrecognized_sep= | |
830 | # The variables have the same names as the options, with | |
831 | # dashes changed to underlines. | |
832 | cache_file=/dev/null | |
833 | exec_prefix=NONE | |
834 | no_create= | |
835 | no_recursion= | |
836 | prefix=NONE | |
837 | program_prefix=NONE | |
838 | program_suffix=NONE | |
839 | program_transform_name=s,x,x, | |
840 | silent= | |
841 | site= | |
842 | srcdir= | |
843 | verbose= | |
844 | x_includes=NONE | |
845 | x_libraries=NONE | |
846 | ||
847 | # Installation directory options. | |
848 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
849 | # and all the variables that are supposed to be based on exec_prefix | |
850 | # by default will actually change. | |
851 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
852 | # (The list follows the same order as the GNU Coding Standards.) | |
853 | bindir='${exec_prefix}/bin' | |
854 | sbindir='${exec_prefix}/sbin' | |
855 | libexecdir='${exec_prefix}/libexec' | |
856 | datarootdir='${prefix}/share' | |
857 | datadir='${datarootdir}' | |
858 | sysconfdir='${prefix}/etc' | |
859 | sharedstatedir='${prefix}/com' | |
860 | localstatedir='${prefix}/var' | |
861 | includedir='${prefix}/include' | |
862 | oldincludedir='/usr/include' | |
863 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
864 | infodir='${datarootdir}/info' | |
865 | htmldir='${docdir}' | |
866 | dvidir='${docdir}' | |
867 | pdfdir='${docdir}' | |
868 | psdir='${docdir}' | |
869 | libdir='${exec_prefix}/lib' | |
870 | localedir='${datarootdir}/locale' | |
871 | mandir='${datarootdir}/man' | |
872 | ||
873 | ac_prev= | |
874 | ac_dashdash= | |
875 | for ac_option | |
876 | do | |
877 | # If the previous option needs an argument, assign it. | |
878 | if test -n "$ac_prev"; then | |
879 | eval $ac_prev=\$ac_option | |
880 | ac_prev= | |
881 | continue | |
882 | fi | |
883 | ||
884 | case $ac_option in | |
885 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
886 | *) ac_optarg=yes ;; | |
887 | esac | |
888 | ||
889 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
890 | ||
891 | case $ac_dashdash$ac_option in | |
892 | --) | |
893 | ac_dashdash=yes ;; | |
894 | ||
895 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
896 | ac_prev=bindir ;; | |
897 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
898 | bindir=$ac_optarg ;; | |
899 | ||
900 | -build | --build | --buil | --bui | --bu) | |
901 | ac_prev=build_alias ;; | |
902 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
903 | build_alias=$ac_optarg ;; | |
904 | ||
905 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
906 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
907 | ac_prev=cache_file ;; | |
908 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
909 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
910 | cache_file=$ac_optarg ;; | |
911 | ||
912 | --config-cache | -C) | |
913 | cache_file=config.cache ;; | |
914 | ||
915 | -datadir | --datadir | --datadi | --datad) | |
916 | ac_prev=datadir ;; | |
917 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
918 | datadir=$ac_optarg ;; | |
919 | ||
920 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
921 | | --dataroo | --dataro | --datar) | |
922 | ac_prev=datarootdir ;; | |
923 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
924 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
925 | datarootdir=$ac_optarg ;; | |
926 | ||
927 | -disable-* | --disable-*) | |
928 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
929 | # Reject names that are not valid shell variable names. | |
930 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
931 | as_fn_error "invalid feature name: $ac_useropt" | |
932 | ac_useropt_orig=$ac_useropt | |
933 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
934 | case $ac_user_opts in | |
935 | *" | |
936 | "enable_$ac_useropt" | |
937 | "*) ;; | |
938 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
939 | ac_unrecognized_sep=', ';; | |
940 | esac | |
941 | eval enable_$ac_useropt=no ;; | |
942 | ||
943 | -docdir | --docdir | --docdi | --doc | --do) | |
944 | ac_prev=docdir ;; | |
945 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
946 | docdir=$ac_optarg ;; | |
947 | ||
948 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
949 | ac_prev=dvidir ;; | |
950 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
951 | dvidir=$ac_optarg ;; | |
952 | ||
953 | -enable-* | --enable-*) | |
954 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
955 | # Reject names that are not valid shell variable names. | |
956 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
957 | as_fn_error "invalid feature name: $ac_useropt" | |
958 | ac_useropt_orig=$ac_useropt | |
959 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
960 | case $ac_user_opts in | |
961 | *" | |
962 | "enable_$ac_useropt" | |
963 | "*) ;; | |
964 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
965 | ac_unrecognized_sep=', ';; | |
966 | esac | |
967 | eval enable_$ac_useropt=\$ac_optarg ;; | |
968 | ||
969 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
970 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
971 | | --exec | --exe | --ex) | |
972 | ac_prev=exec_prefix ;; | |
973 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
974 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
975 | | --exec=* | --exe=* | --ex=*) | |
976 | exec_prefix=$ac_optarg ;; | |
977 | ||
978 | -gas | --gas | --ga | --g) | |
979 | # Obsolete; use --with-gas. | |
980 | with_gas=yes ;; | |
981 | ||
982 | -help | --help | --hel | --he | -h) | |
983 | ac_init_help=long ;; | |
984 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
985 | ac_init_help=recursive ;; | |
986 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
987 | ac_init_help=short ;; | |
988 | ||
989 | -host | --host | --hos | --ho) | |
990 | ac_prev=host_alias ;; | |
991 | -host=* | --host=* | --hos=* | --ho=*) | |
992 | host_alias=$ac_optarg ;; | |
993 | ||
994 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
995 | ac_prev=htmldir ;; | |
996 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
997 | | --ht=*) | |
998 | htmldir=$ac_optarg ;; | |
999 | ||
1000 | -includedir | --includedir | --includedi | --included | --include \ | |
1001 | | --includ | --inclu | --incl | --inc) | |
1002 | ac_prev=includedir ;; | |
1003 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1004 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1005 | includedir=$ac_optarg ;; | |
1006 | ||
1007 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1008 | ac_prev=infodir ;; | |
1009 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1010 | infodir=$ac_optarg ;; | |
1011 | ||
1012 | -libdir | --libdir | --libdi | --libd) | |
1013 | ac_prev=libdir ;; | |
1014 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1015 | libdir=$ac_optarg ;; | |
1016 | ||
1017 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1018 | | --libexe | --libex | --libe) | |
1019 | ac_prev=libexecdir ;; | |
1020 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1021 | | --libexe=* | --libex=* | --libe=*) | |
1022 | libexecdir=$ac_optarg ;; | |
1023 | ||
1024 | -localedir | --localedir | --localedi | --localed | --locale) | |
1025 | ac_prev=localedir ;; | |
1026 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1027 | localedir=$ac_optarg ;; | |
1028 | ||
1029 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1030 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1031 | ac_prev=localstatedir ;; | |
1032 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1033 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1034 | localstatedir=$ac_optarg ;; | |
1035 | ||
1036 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1037 | ac_prev=mandir ;; | |
1038 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1039 | mandir=$ac_optarg ;; | |
1040 | ||
1041 | -nfp | --nfp | --nf) | |
1042 | # Obsolete; use --without-fp. | |
1043 | with_fp=no ;; | |
1044 | ||
1045 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1046 | | --no-cr | --no-c | -n) | |
1047 | no_create=yes ;; | |
1048 | ||
1049 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1050 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1051 | no_recursion=yes ;; | |
1052 | ||
1053 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1054 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1055 | | --oldin | --oldi | --old | --ol | --o) | |
1056 | ac_prev=oldincludedir ;; | |
1057 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1058 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1059 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1060 | oldincludedir=$ac_optarg ;; | |
1061 | ||
1062 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1063 | ac_prev=prefix ;; | |
1064 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1065 | prefix=$ac_optarg ;; | |
1066 | ||
1067 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1068 | | --program-pre | --program-pr | --program-p) | |
1069 | ac_prev=program_prefix ;; | |
1070 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1071 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1072 | program_prefix=$ac_optarg ;; | |
1073 | ||
1074 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1075 | | --program-suf | --program-su | --program-s) | |
1076 | ac_prev=program_suffix ;; | |
1077 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1078 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1079 | program_suffix=$ac_optarg ;; | |
1080 | ||
1081 | -program-transform-name | --program-transform-name \ | |
1082 | | --program-transform-nam | --program-transform-na \ | |
1083 | | --program-transform-n | --program-transform- \ | |
1084 | | --program-transform | --program-transfor \ | |
1085 | | --program-transfo | --program-transf \ | |
1086 | | --program-trans | --program-tran \ | |
1087 | | --progr-tra | --program-tr | --program-t) | |
1088 | ac_prev=program_transform_name ;; | |
1089 | -program-transform-name=* | --program-transform-name=* \ | |
1090 | | --program-transform-nam=* | --program-transform-na=* \ | |
1091 | | --program-transform-n=* | --program-transform-=* \ | |
1092 | | --program-transform=* | --program-transfor=* \ | |
1093 | | --program-transfo=* | --program-transf=* \ | |
1094 | | --program-trans=* | --program-tran=* \ | |
1095 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1096 | program_transform_name=$ac_optarg ;; | |
1097 | ||
1098 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1099 | ac_prev=pdfdir ;; | |
1100 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1101 | pdfdir=$ac_optarg ;; | |
1102 | ||
1103 | -psdir | --psdir | --psdi | --psd | --ps) | |
1104 | ac_prev=psdir ;; | |
1105 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1106 | psdir=$ac_optarg ;; | |
1107 | ||
1108 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1109 | | -silent | --silent | --silen | --sile | --sil) | |
1110 | silent=yes ;; | |
1111 | ||
1112 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1113 | ac_prev=sbindir ;; | |
1114 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1115 | | --sbi=* | --sb=*) | |
1116 | sbindir=$ac_optarg ;; | |
1117 | ||
1118 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1119 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1120 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1121 | | --sha | --sh) | |
1122 | ac_prev=sharedstatedir ;; | |
1123 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1124 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1125 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1126 | | --sha=* | --sh=*) | |
1127 | sharedstatedir=$ac_optarg ;; | |
1128 | ||
1129 | -site | --site | --sit) | |
1130 | ac_prev=site ;; | |
1131 | -site=* | --site=* | --sit=*) | |
1132 | site=$ac_optarg ;; | |
1133 | ||
1134 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1135 | ac_prev=srcdir ;; | |
1136 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1137 | srcdir=$ac_optarg ;; | |
1138 | ||
1139 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1140 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1141 | ac_prev=sysconfdir ;; | |
1142 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1143 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1144 | sysconfdir=$ac_optarg ;; | |
1145 | ||
1146 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1147 | ac_prev=target_alias ;; | |
1148 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1149 | target_alias=$ac_optarg ;; | |
1150 | ||
1151 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1152 | verbose=yes ;; | |
1153 | ||
1154 | -version | --version | --versio | --versi | --vers | -V) | |
1155 | ac_init_version=: ;; | |
1156 | ||
1157 | -with-* | --with-*) | |
1158 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1159 | # Reject names that are not valid shell variable names. | |
1160 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1161 | as_fn_error "invalid package name: $ac_useropt" | |
1162 | ac_useropt_orig=$ac_useropt | |
1163 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1164 | case $ac_user_opts in | |
1165 | *" | |
1166 | "with_$ac_useropt" | |
1167 | "*) ;; | |
1168 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1169 | ac_unrecognized_sep=', ';; | |
1170 | esac | |
1171 | eval with_$ac_useropt=\$ac_optarg ;; | |
1172 | ||
1173 | -without-* | --without-*) | |
1174 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1175 | # Reject names that are not valid shell variable names. | |
1176 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1177 | as_fn_error "invalid package name: $ac_useropt" | |
1178 | ac_useropt_orig=$ac_useropt | |
1179 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1180 | case $ac_user_opts in | |
1181 | *" | |
1182 | "with_$ac_useropt" | |
1183 | "*) ;; | |
1184 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1185 | ac_unrecognized_sep=', ';; | |
1186 | esac | |
1187 | eval with_$ac_useropt=no ;; | |
1188 | ||
1189 | --x) | |
1190 | # Obsolete; use --with-x. | |
1191 | with_x=yes ;; | |
1192 | ||
1193 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1194 | | --x-incl | --x-inc | --x-in | --x-i) | |
1195 | ac_prev=x_includes ;; | |
1196 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1197 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1198 | x_includes=$ac_optarg ;; | |
1199 | ||
1200 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1201 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1202 | ac_prev=x_libraries ;; | |
1203 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1204 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1205 | x_libraries=$ac_optarg ;; | |
1206 | ||
1207 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1208 | Try \`$0 --help' for more information." | |
1209 | ;; | |
1210 | ||
1211 | *=*) | |
1212 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1213 | # Reject names that are not valid shell variable names. | |
1214 | case $ac_envvar in #( | |
1215 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1216 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1217 | esac | |
1218 | eval $ac_envvar=\$ac_optarg | |
1219 | export $ac_envvar ;; | |
1220 | ||
1221 | *) | |
1222 | # FIXME: should be removed in autoconf 3.0. | |
1223 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1224 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1225 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1226 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1227 | ;; | |
1228 | ||
1229 | esac | |
1230 | done | |
1231 | ||
1232 | if test -n "$ac_prev"; then | |
1233 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1234 | as_fn_error "missing argument to $ac_option" | |
1235 | fi | |
1236 | ||
1237 | if test -n "$ac_unrecognized_opts"; then | |
1238 | case $enable_option_checking in | |
1239 | no) ;; | |
1240 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1241 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1242 | esac | |
1243 | fi | |
1244 | ||
1245 | # Check all directory arguments for consistency. | |
1246 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1247 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1248 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1249 | libdir localedir mandir | |
1250 | do | |
1251 | eval ac_val=\$$ac_var | |
1252 | # Remove trailing slashes. | |
1253 | case $ac_val in | |
1254 | */ ) | |
1255 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1256 | eval $ac_var=\$ac_val;; | |
1257 | esac | |
1258 | # Be sure to have absolute directory names. | |
1259 | case $ac_val in | |
1260 | [\\/$]* | ?:[\\/]* ) continue;; | |
1261 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1262 | esac | |
1263 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1264 | done | |
1265 | ||
1266 | # There might be people who depend on the old broken behavior: `$host' | |
1267 | # used to hold the argument of --host etc. | |
1268 | # FIXME: To remove some day. | |
1269 | build=$build_alias | |
1270 | host=$host_alias | |
1271 | target=$target_alias | |
1272 | ||
1273 | # FIXME: To remove some day. | |
1274 | if test "x$host_alias" != x; then | |
1275 | if test "x$build_alias" = x; then | |
1276 | cross_compiling=maybe | |
1277 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1278 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1279 | elif test "x$build_alias" != "x$host_alias"; then | |
1280 | cross_compiling=yes | |
1281 | fi | |
1282 | fi | |
1283 | ||
1284 | ac_tool_prefix= | |
1285 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1286 | ||
1287 | test "$silent" = yes && exec 6>/dev/null | |
1288 | ||
1289 | ||
1290 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1291 | ac_ls_di=`ls -di .` && | |
1292 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1293 | as_fn_error "working directory cannot be determined" | |
1294 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1295 | as_fn_error "pwd does not report name of working directory" | |
1296 | ||
1297 | ||
1298 | # Find the source files, if location was not specified. | |
1299 | if test -z "$srcdir"; then | |
1300 | ac_srcdir_defaulted=yes | |
1301 | # Try the directory containing this script, then the parent directory. | |
1302 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1303 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1304 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1305 | X"$as_myself" : 'X\(//\)$' \| \ | |
1306 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1307 | $as_echo X"$as_myself" | | |
1308 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1309 | s//\1/ | |
1310 | q | |
1311 | } | |
1312 | /^X\(\/\/\)[^/].*/{ | |
1313 | s//\1/ | |
1314 | q | |
1315 | } | |
1316 | /^X\(\/\/\)$/{ | |
1317 | s//\1/ | |
1318 | q | |
1319 | } | |
1320 | /^X\(\/\).*/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | s/.*/./; q'` | |
1325 | srcdir=$ac_confdir | |
1326 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1327 | srcdir=.. | |
1328 | fi | |
1329 | else | |
1330 | ac_srcdir_defaulted=no | |
1331 | fi | |
1332 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1333 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1334 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1335 | fi | |
1336 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1337 | ac_abs_confdir=`( | |
1338 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1339 | pwd)` | |
1340 | # When building in place, set srcdir=. | |
1341 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1342 | srcdir=. | |
1343 | fi | |
1344 | # Remove unnecessary trailing slashes from srcdir. | |
1345 | # Double slashes in file names in object file debugging info | |
1346 | # mess up M-x gdb in Emacs. | |
1347 | case $srcdir in | |
1348 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1349 | esac | |
1350 | for ac_var in $ac_precious_vars; do | |
1351 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1352 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1353 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1354 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1355 | done | |
1356 | ||
1357 | # | |
1358 | # Report the --help message. | |
1359 | # | |
1360 | if test "$ac_init_help" = "long"; then | |
1361 | # Omit some internal or obsolete options to make the list less imposing. | |
1362 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1363 | cat <<_ACEOF | |
1364 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1365 | ||
1366 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1367 | ||
1368 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1369 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1370 | ||
1371 | Defaults for the options are specified in brackets. | |
1372 | ||
1373 | Configuration: | |
1374 | -h, --help display this help and exit | |
1375 | --help=short display options specific to this package | |
1376 | --help=recursive display the short help of all the included packages | |
1377 | -V, --version display version information and exit | |
1378 | -q, --quiet, --silent do not print \`checking...' messages | |
1379 | --cache-file=FILE cache test results in FILE [disabled] | |
1380 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1381 | -n, --no-create do not create output files | |
1382 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1383 | ||
1384 | Installation directories: | |
1385 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1386 | [$ac_default_prefix] | |
1387 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1388 | [PREFIX] | |
1389 | ||
1390 | By default, \`make install' will install all the files in | |
1391 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1392 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1393 | for instance \`--prefix=\$HOME'. | |
1394 | ||
1395 | For better control, use the options below. | |
1396 | ||
1397 | Fine tuning of the installation directories: | |
1398 | --bindir=DIR user executables [EPREFIX/bin] | |
1399 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1400 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1401 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1402 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1403 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1404 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1405 | --includedir=DIR C header files [PREFIX/include] | |
1406 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1407 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1408 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1409 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1410 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1411 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1412 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgo] | |
1413 | --htmldir=DIR html documentation [DOCDIR] | |
1414 | --dvidir=DIR dvi documentation [DOCDIR] | |
1415 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1416 | --psdir=DIR ps documentation [DOCDIR] | |
1417 | _ACEOF | |
1418 | ||
1419 | cat <<\_ACEOF | |
1420 | ||
1421 | Program names: | |
1422 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1423 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1424 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1425 | ||
1426 | System types: | |
1427 | --build=BUILD configure for building on BUILD [guessed] | |
1428 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1429 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1430 | _ACEOF | |
1431 | fi | |
1432 | ||
1433 | if test -n "$ac_init_help"; then | |
1434 | case $ac_init_help in | |
1435 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1436 | esac | |
1437 | cat <<\_ACEOF | |
1438 | ||
1439 | Optional Features: | |
1440 | --disable-option-checking ignore unrecognized --enable/--with options | |
1441 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1442 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1443 | --enable-multilib build many library versions (default) | |
1444 | --disable-dependency-tracking speeds up one-time build | |
1445 | --enable-dependency-tracking do not reject slow dependency extractors | |
1446 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1447 | (and sometimes confusing) to the casual installer | |
1448 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1449 | --enable-static[=PKGS] build static libraries [default=yes] | |
1450 | --enable-fast-install[=PKGS] | |
1451 | optimize for fast installation [default=yes] | |
1452 | --disable-libtool-lock avoid locking (might break parallel builds) | |
0d4668c1 | 1453 | --enable-werror turns on -Werror [default=yes] |
7a938933 ILT |
1454 | --enable-version-specific-runtime-libs |
1455 | Specify that runtime libraries should be installed | |
1456 | in a compiler-specific directory | |
1457 | ||
1458 | Optional Packages: | |
1459 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1460 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1461 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1462 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1463 | both] | |
1464 | --without-libffi don't use libffi | |
9a85ed03 | 1465 | --without-libatomic don't use libatomic |
54f0deb0 | 1466 | --with-system-libunwind use installed libunwind |
7a938933 ILT |
1467 | |
1468 | Some influential environment variables: | |
1469 | CC C compiler command | |
1470 | CFLAGS C compiler flags | |
1471 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1472 | nonstandard directory <lib dir> | |
1473 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1474 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1475 | you have headers in a nonstandard directory <include dir> | |
1476 | GOC Go compiler command | |
1477 | GOCFLAGS Go compiler flags | |
1478 | CPP C preprocessor | |
1479 | ||
1480 | Use these variables to override the choices made by `configure' or to help | |
1481 | it to find libraries and programs with nonstandard names/locations. | |
1482 | ||
1483 | Report bugs to the package provider. | |
1484 | _ACEOF | |
1485 | ac_status=$? | |
1486 | fi | |
1487 | ||
1488 | if test "$ac_init_help" = "recursive"; then | |
1489 | # If there are subdirs, report their specific --help. | |
1490 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1491 | test -d "$ac_dir" || | |
1492 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1493 | continue | |
1494 | ac_builddir=. | |
1495 | ||
1496 | case "$ac_dir" in | |
1497 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1498 | *) | |
1499 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1500 | # A ".." for each directory in $ac_dir_suffix. | |
1501 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1502 | case $ac_top_builddir_sub in | |
1503 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1504 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1505 | esac ;; | |
1506 | esac | |
1507 | ac_abs_top_builddir=$ac_pwd | |
1508 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1509 | # for backward compatibility: | |
1510 | ac_top_builddir=$ac_top_build_prefix | |
1511 | ||
1512 | case $srcdir in | |
1513 | .) # We are building in place. | |
1514 | ac_srcdir=. | |
1515 | ac_top_srcdir=$ac_top_builddir_sub | |
1516 | ac_abs_top_srcdir=$ac_pwd ;; | |
1517 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1518 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1519 | ac_top_srcdir=$srcdir | |
1520 | ac_abs_top_srcdir=$srcdir ;; | |
1521 | *) # Relative name. | |
1522 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1523 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1524 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1525 | esac | |
1526 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1527 | ||
1528 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1529 | # Check for guested configure. | |
1530 | if test -f "$ac_srcdir/configure.gnu"; then | |
1531 | echo && | |
1532 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1533 | elif test -f "$ac_srcdir/configure"; then | |
1534 | echo && | |
1535 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1536 | else | |
1537 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1538 | fi || ac_status=$? | |
1539 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1540 | done | |
1541 | fi | |
1542 | ||
1543 | test -n "$ac_init_help" && exit $ac_status | |
1544 | if $ac_init_version; then | |
1545 | cat <<\_ACEOF | |
1546 | package-unused configure version-unused | |
1547 | generated by GNU Autoconf 2.64 | |
1548 | ||
1549 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1550 | This configure script is free software; the Free Software Foundation | |
1551 | gives unlimited permission to copy, distribute and modify it. | |
1552 | _ACEOF | |
1553 | exit | |
1554 | fi | |
1555 | ||
1556 | ## ------------------------ ## | |
1557 | ## Autoconf initialization. ## | |
1558 | ## ------------------------ ## | |
1559 | ||
1560 | # ac_fn_c_try_compile LINENO | |
1561 | # -------------------------- | |
1562 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1563 | ac_fn_c_try_compile () | |
1564 | { | |
1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1566 | rm -f conftest.$ac_objext | |
1567 | if { { ac_try="$ac_compile" | |
1568 | case "(($ac_try" in | |
1569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1570 | *) ac_try_echo=$ac_try;; | |
1571 | esac | |
1572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1573 | $as_echo "$ac_try_echo"; } >&5 | |
1574 | (eval "$ac_compile") 2>conftest.err | |
1575 | ac_status=$? | |
1576 | if test -s conftest.err; then | |
1577 | grep -v '^ *+' conftest.err >conftest.er1 | |
1578 | cat conftest.er1 >&5 | |
1579 | mv -f conftest.er1 conftest.err | |
1580 | fi | |
1581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1582 | test $ac_status = 0; } && { | |
1583 | test -z "$ac_c_werror_flag" || | |
1584 | test ! -s conftest.err | |
1585 | } && test -s conftest.$ac_objext; then : | |
1586 | ac_retval=0 | |
1587 | else | |
1588 | $as_echo "$as_me: failed program was:" >&5 | |
1589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1590 | ||
1591 | ac_retval=1 | |
1592 | fi | |
1593 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1594 | return $ac_retval | |
1595 | ||
1596 | } # ac_fn_c_try_compile | |
1597 | ||
061793a4 ILT |
1598 | # ac_fn_c_try_link LINENO |
1599 | # ----------------------- | |
1600 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1601 | ac_fn_c_try_link () | |
7a938933 ILT |
1602 | { |
1603 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
061793a4 ILT |
1604 | rm -f conftest.$ac_objext conftest$ac_exeext |
1605 | if { { ac_try="$ac_link" | |
7a938933 ILT |
1606 | case "(($ac_try" in |
1607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1608 | *) ac_try_echo=$ac_try;; | |
1609 | esac | |
1610 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1611 | $as_echo "$ac_try_echo"; } >&5 | |
061793a4 | 1612 | (eval "$ac_link") 2>conftest.err |
7a938933 ILT |
1613 | ac_status=$? |
1614 | if test -s conftest.err; then | |
1615 | grep -v '^ *+' conftest.err >conftest.er1 | |
1616 | cat conftest.er1 >&5 | |
1617 | mv -f conftest.er1 conftest.err | |
1618 | fi | |
1619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
061793a4 ILT |
1620 | test $ac_status = 0; } && { |
1621 | test -z "$ac_c_werror_flag" || | |
7a938933 | 1622 | test ! -s conftest.err |
061793a4 ILT |
1623 | } && test -s conftest$ac_exeext && { |
1624 | test "$cross_compiling" = yes || | |
1625 | $as_test_x conftest$ac_exeext | |
7a938933 ILT |
1626 | }; then : |
1627 | ac_retval=0 | |
1628 | else | |
1629 | $as_echo "$as_me: failed program was:" >&5 | |
1630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1631 | ||
061793a4 | 1632 | ac_retval=1 |
7a938933 | 1633 | fi |
061793a4 ILT |
1634 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1635 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1636 | # interfere with the next link command; also delete a directory that is | |
1637 | # left behind by Apple's compiler. We do this before executing the actions. | |
7a938933 ILT |
1638 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1639 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1640 | return $ac_retval | |
1641 | ||
061793a4 | 1642 | } # ac_fn_c_try_link |
7a938933 ILT |
1643 | |
1644 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1645 | # ------------------------------------------------------- | |
1646 | # Tests whether HEADER exists and can be compiled using the include files in | |
1647 | # INCLUDES, setting the cache variable VAR accordingly. | |
1648 | ac_fn_c_check_header_compile () | |
1649 | { | |
1650 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1652 | $as_echo_n "checking for $2... " >&6; } | |
1653 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1654 | $as_echo_n "(cached) " >&6 | |
1655 | else | |
1656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1657 | /* end confdefs.h. */ | |
1658 | $4 | |
1659 | #include <$2> | |
1660 | _ACEOF | |
1661 | if ac_fn_c_try_compile "$LINENO"; then : | |
1662 | eval "$3=yes" | |
1663 | else | |
1664 | eval "$3=no" | |
1665 | fi | |
1666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1667 | fi | |
1668 | eval ac_res=\$$3 | |
1669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1670 | $as_echo "$ac_res" >&6; } | |
1671 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1672 | ||
1673 | } # ac_fn_c_check_header_compile | |
1674 | ||
061793a4 ILT |
1675 | # ac_fn_c_try_cpp LINENO |
1676 | # ---------------------- | |
1677 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1678 | ac_fn_c_try_cpp () | |
7a938933 ILT |
1679 | { |
1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
061793a4 | 1681 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
7a938933 ILT |
1682 | case "(($ac_try" in |
1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1684 | *) ac_try_echo=$ac_try;; | |
1685 | esac | |
1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1687 | $as_echo "$ac_try_echo"; } >&5 | |
061793a4 | 1688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
7a938933 ILT |
1689 | ac_status=$? |
1690 | if test -s conftest.err; then | |
1691 | grep -v '^ *+' conftest.err >conftest.er1 | |
1692 | cat conftest.er1 >&5 | |
1693 | mv -f conftest.er1 conftest.err | |
1694 | fi | |
1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
061793a4 ILT |
1696 | test $ac_status = 0; } >/dev/null && { |
1697 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7a938933 ILT |
1698 | test ! -s conftest.err |
1699 | }; then : | |
1700 | ac_retval=0 | |
1701 | else | |
1702 | $as_echo "$as_me: failed program was:" >&5 | |
1703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1704 | ||
061793a4 ILT |
1705 | ac_retval=1 |
1706 | fi | |
1707 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1708 | return $ac_retval | |
1709 | ||
1710 | } # ac_fn_c_try_cpp | |
1711 | ||
1712 | # ac_fn_c_try_run LINENO | |
1713 | # ---------------------- | |
1714 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1715 | # that executables *can* be run. | |
1716 | ac_fn_c_try_run () | |
1717 | { | |
1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1719 | if { { ac_try="$ac_link" | |
1720 | case "(($ac_try" in | |
1721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1722 | *) ac_try_echo=$ac_try;; | |
1723 | esac | |
1724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1725 | $as_echo "$ac_try_echo"; } >&5 | |
1726 | (eval "$ac_link") 2>&5 | |
1727 | ac_status=$? | |
1728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1729 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1730 | { { case "(($ac_try" in | |
1731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1732 | *) ac_try_echo=$ac_try;; | |
1733 | esac | |
1734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1735 | $as_echo "$ac_try_echo"; } >&5 | |
1736 | (eval "$ac_try") 2>&5 | |
1737 | ac_status=$? | |
1738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1739 | test $ac_status = 0; }; }; then : | |
1740 | ac_retval=0 | |
1741 | else | |
1742 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1743 | $as_echo "$as_me: failed program was:" >&5 | |
1744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1745 | ||
1746 | ac_retval=$ac_status | |
7a938933 ILT |
1747 | fi |
1748 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1749 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1750 | return $ac_retval | |
1751 | ||
061793a4 | 1752 | } # ac_fn_c_try_run |
7a938933 ILT |
1753 | |
1754 | # ac_fn_c_check_func LINENO FUNC VAR | |
1755 | # ---------------------------------- | |
1756 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1757 | ac_fn_c_check_func () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1761 | $as_echo_n "checking for $2... " >&6; } | |
1762 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1763 | $as_echo_n "(cached) " >&6 | |
1764 | else | |
1765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1766 | /* end confdefs.h. */ | |
1767 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1768 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1769 | #define $2 innocuous_$2 | |
1770 | ||
1771 | /* System header to define __stub macros and hopefully few prototypes, | |
1772 | which can conflict with char $2 (); below. | |
1773 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1774 | <limits.h> exists even on freestanding compilers. */ | |
1775 | ||
1776 | #ifdef __STDC__ | |
1777 | # include <limits.h> | |
1778 | #else | |
1779 | # include <assert.h> | |
1780 | #endif | |
1781 | ||
1782 | #undef $2 | |
1783 | ||
1784 | /* Override any GCC internal prototype to avoid an error. | |
1785 | Use char because int might match the return type of a GCC | |
1786 | builtin and then its argument prototype would still apply. */ | |
1787 | #ifdef __cplusplus | |
1788 | extern "C" | |
1789 | #endif | |
1790 | char $2 (); | |
1791 | /* The GNU C library defines this for functions which it implements | |
1792 | to always fail with ENOSYS. Some functions are actually named | |
1793 | something starting with __ and the normal name is an alias. */ | |
1794 | #if defined __stub_$2 || defined __stub___$2 | |
1795 | choke me | |
1796 | #endif | |
1797 | ||
1798 | int | |
1799 | main () | |
1800 | { | |
1801 | return $2 (); | |
1802 | ; | |
1803 | return 0; | |
1804 | } | |
1805 | _ACEOF | |
1806 | if ac_fn_c_try_link "$LINENO"; then : | |
1807 | eval "$3=yes" | |
1808 | else | |
1809 | eval "$3=no" | |
1810 | fi | |
1811 | rm -f core conftest.err conftest.$ac_objext \ | |
1812 | conftest$ac_exeext conftest.$ac_ext | |
1813 | fi | |
1814 | eval ac_res=\$$3 | |
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1816 | $as_echo "$ac_res" >&6; } | |
1817 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1818 | ||
1819 | } # ac_fn_c_check_func | |
1820 | ||
1821 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1822 | # ------------------------------------------------------- | |
1823 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1824 | # the include files in INCLUDES and setting the cache variable VAR | |
1825 | # accordingly. | |
1826 | ac_fn_c_check_header_mongrel () | |
1827 | { | |
1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1829 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1831 | $as_echo_n "checking for $2... " >&6; } | |
1832 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1833 | $as_echo_n "(cached) " >&6 | |
1834 | fi | |
1835 | eval ac_res=\$$3 | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1837 | $as_echo "$ac_res" >&6; } | |
1838 | else | |
1839 | # Is the header compilable? | |
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1841 | $as_echo_n "checking $2 usability... " >&6; } | |
1842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1843 | /* end confdefs.h. */ | |
1844 | $4 | |
1845 | #include <$2> | |
1846 | _ACEOF | |
1847 | if ac_fn_c_try_compile "$LINENO"; then : | |
1848 | ac_header_compiler=yes | |
1849 | else | |
1850 | ac_header_compiler=no | |
1851 | fi | |
1852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1854 | $as_echo "$ac_header_compiler" >&6; } | |
1855 | ||
1856 | # Is the header present? | |
1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1858 | $as_echo_n "checking $2 presence... " >&6; } | |
1859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1860 | /* end confdefs.h. */ | |
1861 | #include <$2> | |
1862 | _ACEOF | |
1863 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1864 | ac_header_preproc=yes | |
1865 | else | |
1866 | ac_header_preproc=no | |
1867 | fi | |
1868 | rm -f conftest.err conftest.$ac_ext | |
1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1870 | $as_echo "$ac_header_preproc" >&6; } | |
1871 | ||
1872 | # So? What about this header? | |
1873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1874 | yes:no: ) | |
1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1876 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1878 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1879 | ;; | |
1880 | no:yes:* ) | |
1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1882 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1884 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1886 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1888 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1890 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1891 | ;; | |
1892 | esac | |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1894 | $as_echo_n "checking for $2... " >&6; } | |
1895 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1896 | $as_echo_n "(cached) " >&6 | |
1897 | else | |
1898 | eval "$3=\$ac_header_compiler" | |
1899 | fi | |
1900 | eval ac_res=\$$3 | |
1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1902 | $as_echo "$ac_res" >&6; } | |
1903 | fi | |
1904 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1905 | ||
1906 | } # ac_fn_c_check_header_mongrel | |
1907 | ||
1908 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1909 | # ------------------------------------------- | |
1910 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1911 | # variable VAR accordingly. | |
1912 | ac_fn_c_check_type () | |
1913 | { | |
1914 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1916 | $as_echo_n "checking for $2... " >&6; } | |
1917 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1918 | $as_echo_n "(cached) " >&6 | |
1919 | else | |
1920 | eval "$3=no" | |
1921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1922 | /* end confdefs.h. */ | |
1923 | $4 | |
1924 | int | |
1925 | main () | |
1926 | { | |
1927 | if (sizeof ($2)) | |
1928 | return 0; | |
1929 | ; | |
1930 | return 0; | |
1931 | } | |
1932 | _ACEOF | |
1933 | if ac_fn_c_try_compile "$LINENO"; then : | |
1934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1935 | /* end confdefs.h. */ | |
1936 | $4 | |
1937 | int | |
1938 | main () | |
1939 | { | |
1940 | if (sizeof (($2))) | |
1941 | return 0; | |
1942 | ; | |
1943 | return 0; | |
1944 | } | |
1945 | _ACEOF | |
1946 | if ac_fn_c_try_compile "$LINENO"; then : | |
1947 | ||
1948 | else | |
1949 | eval "$3=yes" | |
1950 | fi | |
1951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1952 | fi | |
1953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1954 | fi | |
1955 | eval ac_res=\$$3 | |
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1957 | $as_echo "$ac_res" >&6; } | |
1958 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1959 | ||
1960 | } # ac_fn_c_check_type | |
207c35fa ILT |
1961 | |
1962 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1963 | # -------------------------------------------- | |
1964 | # Tries to find the compile-time value of EXPR in a program that includes | |
1965 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1966 | # computed | |
1967 | ac_fn_c_compute_int () | |
1968 | { | |
1969 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1970 | if test "$cross_compiling" = yes; then | |
1971 | # Depending upon the size, compute the lo and hi bounds. | |
1972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1973 | /* end confdefs.h. */ | |
1974 | $4 | |
1975 | int | |
1976 | main () | |
1977 | { | |
1978 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1979 | test_array [0] = 0 | |
1980 | ||
1981 | ; | |
1982 | return 0; | |
1983 | } | |
1984 | _ACEOF | |
1985 | if ac_fn_c_try_compile "$LINENO"; then : | |
1986 | ac_lo=0 ac_mid=0 | |
1987 | while :; do | |
1988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1989 | /* end confdefs.h. */ | |
1990 | $4 | |
1991 | int | |
1992 | main () | |
1993 | { | |
1994 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1995 | test_array [0] = 0 | |
1996 | ||
1997 | ; | |
1998 | return 0; | |
1999 | } | |
2000 | _ACEOF | |
2001 | if ac_fn_c_try_compile "$LINENO"; then : | |
2002 | ac_hi=$ac_mid; break | |
2003 | else | |
2004 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2005 | if test $ac_lo -le $ac_mid; then | |
2006 | ac_lo= ac_hi= | |
2007 | break | |
2008 | fi | |
2009 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2010 | fi | |
2011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2012 | done | |
2013 | else | |
2014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2015 | /* end confdefs.h. */ | |
2016 | $4 | |
2017 | int | |
2018 | main () | |
2019 | { | |
2020 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2021 | test_array [0] = 0 | |
2022 | ||
2023 | ; | |
2024 | return 0; | |
2025 | } | |
2026 | _ACEOF | |
2027 | if ac_fn_c_try_compile "$LINENO"; then : | |
2028 | ac_hi=-1 ac_mid=-1 | |
2029 | while :; do | |
2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2031 | /* end confdefs.h. */ | |
2032 | $4 | |
2033 | int | |
2034 | main () | |
2035 | { | |
2036 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2037 | test_array [0] = 0 | |
2038 | ||
2039 | ; | |
2040 | return 0; | |
2041 | } | |
2042 | _ACEOF | |
2043 | if ac_fn_c_try_compile "$LINENO"; then : | |
2044 | ac_lo=$ac_mid; break | |
2045 | else | |
2046 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2047 | if test $ac_mid -le $ac_hi; then | |
2048 | ac_lo= ac_hi= | |
2049 | break | |
2050 | fi | |
2051 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2052 | fi | |
2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2054 | done | |
2055 | else | |
2056 | ac_lo= ac_hi= | |
2057 | fi | |
2058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2059 | fi | |
2060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2061 | # Binary search between lo and hi bounds. | |
2062 | while test "x$ac_lo" != "x$ac_hi"; do | |
2063 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2065 | /* end confdefs.h. */ | |
2066 | $4 | |
2067 | int | |
2068 | main () | |
2069 | { | |
2070 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2071 | test_array [0] = 0 | |
2072 | ||
2073 | ; | |
2074 | return 0; | |
2075 | } | |
2076 | _ACEOF | |
2077 | if ac_fn_c_try_compile "$LINENO"; then : | |
2078 | ac_hi=$ac_mid | |
2079 | else | |
2080 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2081 | fi | |
2082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2083 | done | |
2084 | case $ac_lo in #(( | |
2085 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2086 | '') ac_retval=1 ;; | |
2087 | esac | |
2088 | else | |
2089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2090 | /* end confdefs.h. */ | |
2091 | $4 | |
2092 | static long int longval () { return $2; } | |
2093 | static unsigned long int ulongval () { return $2; } | |
2094 | #include <stdio.h> | |
2095 | #include <stdlib.h> | |
2096 | int | |
2097 | main () | |
2098 | { | |
2099 | ||
2100 | FILE *f = fopen ("conftest.val", "w"); | |
2101 | if (! f) | |
2102 | return 1; | |
2103 | if (($2) < 0) | |
2104 | { | |
2105 | long int i = longval (); | |
2106 | if (i != ($2)) | |
2107 | return 1; | |
2108 | fprintf (f, "%ld", i); | |
2109 | } | |
2110 | else | |
2111 | { | |
2112 | unsigned long int i = ulongval (); | |
2113 | if (i != ($2)) | |
2114 | return 1; | |
2115 | fprintf (f, "%lu", i); | |
2116 | } | |
2117 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2118 | on some platforms. */ | |
2119 | return ferror (f) || fclose (f) != 0; | |
2120 | ||
2121 | ; | |
2122 | return 0; | |
2123 | } | |
2124 | _ACEOF | |
2125 | if ac_fn_c_try_run "$LINENO"; then : | |
2126 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2127 | else | |
2128 | ac_retval=1 | |
2129 | fi | |
2130 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2131 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2132 | rm -f conftest.val | |
2133 | ||
2134 | fi | |
2135 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2136 | return $ac_retval | |
2137 | ||
2138 | } # ac_fn_c_compute_int | |
7a938933 ILT |
2139 | cat >config.log <<_ACEOF |
2140 | This file contains any messages produced by compilers while | |
2141 | running configure, to aid debugging if configure makes a mistake. | |
2142 | ||
2143 | It was created by package-unused $as_me version-unused, which was | |
2144 | generated by GNU Autoconf 2.64. Invocation command line was | |
2145 | ||
2146 | $ $0 $@ | |
2147 | ||
2148 | _ACEOF | |
2149 | exec 5>>config.log | |
2150 | { | |
2151 | cat <<_ASUNAME | |
2152 | ## --------- ## | |
2153 | ## Platform. ## | |
2154 | ## --------- ## | |
2155 | ||
2156 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2157 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2158 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2159 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2160 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2161 | ||
2162 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2163 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2164 | ||
2165 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2166 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2167 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2168 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2169 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2170 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2171 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2172 | ||
2173 | _ASUNAME | |
2174 | ||
2175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2176 | for as_dir in $PATH | |
2177 | do | |
2178 | IFS=$as_save_IFS | |
2179 | test -z "$as_dir" && as_dir=. | |
2180 | $as_echo "PATH: $as_dir" | |
2181 | done | |
2182 | IFS=$as_save_IFS | |
2183 | ||
2184 | } >&5 | |
2185 | ||
2186 | cat >&5 <<_ACEOF | |
2187 | ||
2188 | ||
2189 | ## ----------- ## | |
2190 | ## Core tests. ## | |
2191 | ## ----------- ## | |
2192 | ||
2193 | _ACEOF | |
2194 | ||
2195 | ||
2196 | # Keep a trace of the command line. | |
2197 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2198 | # Strip out --silent because we don't want to record it for future runs. | |
2199 | # Also quote any args containing shell meta-characters. | |
2200 | # Make two passes to allow for proper duplicate-argument suppression. | |
2201 | ac_configure_args= | |
2202 | ac_configure_args0= | |
2203 | ac_configure_args1= | |
2204 | ac_must_keep_next=false | |
2205 | for ac_pass in 1 2 | |
2206 | do | |
2207 | for ac_arg | |
2208 | do | |
2209 | case $ac_arg in | |
2210 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2211 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2212 | | -silent | --silent | --silen | --sile | --sil) | |
2213 | continue ;; | |
2214 | *\'*) | |
2215 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2216 | esac | |
2217 | case $ac_pass in | |
2218 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2219 | 2) | |
2220 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2221 | if test $ac_must_keep_next = true; then | |
2222 | ac_must_keep_next=false # Got value, back to normal. | |
2223 | else | |
2224 | case $ac_arg in | |
2225 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2226 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2227 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2228 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2229 | case "$ac_configure_args0 " in | |
2230 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2231 | esac | |
2232 | ;; | |
2233 | -* ) ac_must_keep_next=true ;; | |
2234 | esac | |
2235 | fi | |
2236 | as_fn_append ac_configure_args " '$ac_arg'" | |
2237 | ;; | |
2238 | esac | |
2239 | done | |
2240 | done | |
2241 | { ac_configure_args0=; unset ac_configure_args0;} | |
2242 | { ac_configure_args1=; unset ac_configure_args1;} | |
2243 | ||
2244 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2245 | # config.log. We remove comments because anyway the quotes in there | |
2246 | # would cause problems or look ugly. | |
2247 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2248 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2249 | trap 'exit_status=$? | |
2250 | # Save into config.log some information that might help in debugging. | |
2251 | { | |
2252 | echo | |
2253 | ||
2254 | cat <<\_ASBOX | |
2255 | ## ---------------- ## | |
2256 | ## Cache variables. ## | |
2257 | ## ---------------- ## | |
2258 | _ASBOX | |
2259 | echo | |
2260 | # The following way of writing the cache mishandles newlines in values, | |
2261 | ( | |
2262 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2263 | eval ac_val=\$$ac_var | |
2264 | case $ac_val in #( | |
2265 | *${as_nl}*) | |
2266 | case $ac_var in #( | |
2267 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2268 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2269 | esac | |
2270 | case $ac_var in #( | |
2271 | _ | IFS | as_nl) ;; #( | |
2272 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2273 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2274 | esac ;; | |
2275 | esac | |
2276 | done | |
2277 | (set) 2>&1 | | |
2278 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2279 | *${as_nl}ac_space=\ *) | |
2280 | sed -n \ | |
2281 | "s/'\''/'\''\\\\'\'''\''/g; | |
2282 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2283 | ;; #( | |
2284 | *) | |
2285 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2286 | ;; | |
2287 | esac | | |
2288 | sort | |
2289 | ) | |
2290 | echo | |
2291 | ||
2292 | cat <<\_ASBOX | |
2293 | ## ----------------- ## | |
2294 | ## Output variables. ## | |
2295 | ## ----------------- ## | |
2296 | _ASBOX | |
2297 | echo | |
2298 | for ac_var in $ac_subst_vars | |
2299 | do | |
2300 | eval ac_val=\$$ac_var | |
2301 | case $ac_val in | |
2302 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2303 | esac | |
2304 | $as_echo "$ac_var='\''$ac_val'\''" | |
2305 | done | sort | |
2306 | echo | |
2307 | ||
2308 | if test -n "$ac_subst_files"; then | |
2309 | cat <<\_ASBOX | |
2310 | ## ------------------- ## | |
2311 | ## File substitutions. ## | |
2312 | ## ------------------- ## | |
2313 | _ASBOX | |
2314 | echo | |
2315 | for ac_var in $ac_subst_files | |
2316 | do | |
2317 | eval ac_val=\$$ac_var | |
2318 | case $ac_val in | |
2319 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2320 | esac | |
2321 | $as_echo "$ac_var='\''$ac_val'\''" | |
2322 | done | sort | |
2323 | echo | |
2324 | fi | |
2325 | ||
2326 | if test -s confdefs.h; then | |
2327 | cat <<\_ASBOX | |
2328 | ## ----------- ## | |
2329 | ## confdefs.h. ## | |
2330 | ## ----------- ## | |
2331 | _ASBOX | |
2332 | echo | |
2333 | cat confdefs.h | |
2334 | echo | |
2335 | fi | |
2336 | test "$ac_signal" != 0 && | |
2337 | $as_echo "$as_me: caught signal $ac_signal" | |
2338 | $as_echo "$as_me: exit $exit_status" | |
2339 | } >&5 | |
2340 | rm -f core *.core core.conftest.* && | |
2341 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2342 | exit $exit_status | |
2343 | ' 0 | |
2344 | for ac_signal in 1 2 13 15; do | |
2345 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2346 | done | |
2347 | ac_signal=0 | |
2348 | ||
2349 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2350 | rm -f -r conftest* confdefs.h | |
2351 | ||
2352 | $as_echo "/* confdefs.h */" > confdefs.h | |
2353 | ||
2354 | # Predefined preprocessor variables. | |
2355 | ||
2356 | cat >>confdefs.h <<_ACEOF | |
2357 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2358 | _ACEOF | |
2359 | ||
2360 | cat >>confdefs.h <<_ACEOF | |
2361 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2362 | _ACEOF | |
2363 | ||
2364 | cat >>confdefs.h <<_ACEOF | |
2365 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2366 | _ACEOF | |
2367 | ||
2368 | cat >>confdefs.h <<_ACEOF | |
2369 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2370 | _ACEOF | |
2371 | ||
2372 | cat >>confdefs.h <<_ACEOF | |
2373 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2374 | _ACEOF | |
2375 | ||
2376 | cat >>confdefs.h <<_ACEOF | |
2377 | #define PACKAGE_URL "$PACKAGE_URL" | |
2378 | _ACEOF | |
2379 | ||
2380 | ||
2381 | # Let the site file select an alternate cache file if it wants to. | |
2382 | # Prefer an explicitly selected file to automatically selected ones. | |
2383 | ac_site_file1=NONE | |
2384 | ac_site_file2=NONE | |
2385 | if test -n "$CONFIG_SITE"; then | |
2386 | ac_site_file1=$CONFIG_SITE | |
2387 | elif test "x$prefix" != xNONE; then | |
2388 | ac_site_file1=$prefix/share/config.site | |
2389 | ac_site_file2=$prefix/etc/config.site | |
2390 | else | |
2391 | ac_site_file1=$ac_default_prefix/share/config.site | |
2392 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2393 | fi | |
2394 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2395 | do | |
2396 | test "x$ac_site_file" = xNONE && continue | |
2397 | if test -r "$ac_site_file"; then | |
2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2399 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2400 | sed 's/^/| /' "$ac_site_file" >&5 | |
2401 | . "$ac_site_file" | |
2402 | fi | |
2403 | done | |
2404 | ||
2405 | if test -r "$cache_file"; then | |
2406 | # Some versions of bash will fail to source /dev/null (special | |
2407 | # files actually), so we avoid doing that. | |
2408 | if test -f "$cache_file"; then | |
2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2410 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2411 | case $cache_file in | |
2412 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2413 | *) . "./$cache_file";; | |
2414 | esac | |
2415 | fi | |
2416 | else | |
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2418 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2419 | >$cache_file | |
2420 | fi | |
2421 | ||
2422 | # Check that the precious variables saved in the cache have kept the same | |
2423 | # value. | |
2424 | ac_cache_corrupted=false | |
2425 | for ac_var in $ac_precious_vars; do | |
2426 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2427 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2428 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2429 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2430 | case $ac_old_set,$ac_new_set in | |
2431 | set,) | |
2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2433 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2434 | ac_cache_corrupted=: ;; | |
2435 | ,set) | |
2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2437 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2438 | ac_cache_corrupted=: ;; | |
2439 | ,);; | |
2440 | *) | |
2441 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2442 | # differences in whitespace do not lead to failure. | |
2443 | ac_old_val_w=`echo x $ac_old_val` | |
2444 | ac_new_val_w=`echo x $ac_new_val` | |
2445 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2447 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2448 | ac_cache_corrupted=: | |
2449 | else | |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2451 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2452 | eval $ac_var=\$ac_old_val | |
2453 | fi | |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2455 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2457 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2458 | fi;; | |
2459 | esac | |
2460 | # Pass precious variables to config.status. | |
2461 | if test "$ac_new_set" = set; then | |
2462 | case $ac_new_val in | |
2463 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2464 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2465 | esac | |
2466 | case " $ac_configure_args " in | |
2467 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2468 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2469 | esac | |
2470 | fi | |
2471 | done | |
2472 | if $ac_cache_corrupted; then | |
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2474 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2476 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2477 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2478 | fi | |
2479 | ## -------------------- ## | |
2480 | ## Main body of script. ## | |
2481 | ## -------------------- ## | |
2482 | ||
2483 | ac_ext=c | |
2484 | ac_cpp='$CPP $CPPFLAGS' | |
2485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2488 | ||
2489 | ||
2490 | ||
54f0deb0 ILT |
2491 | |
2492 | ||
2493 | ||
7a938933 ILT |
2494 | ac_config_headers="$ac_config_headers config.h" |
2495 | ||
2496 | ||
1a2f01ef | 2497 | libtool_VERSION=13:0:0 |
7a938933 ILT |
2498 | |
2499 | ||
2500 | # Default to --enable-multilib | |
2501 | # Check whether --enable-multilib was given. | |
2502 | if test "${enable_multilib+set}" = set; then : | |
2503 | enableval=$enable_multilib; case "$enableval" in | |
2504 | yes) multilib=yes ;; | |
2505 | no) multilib=no ;; | |
2506 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; | |
2507 | esac | |
2508 | else | |
2509 | multilib=yes | |
2510 | fi | |
2511 | ||
2512 | ||
2513 | # We may get other options which we leave undocumented: | |
2514 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2515 | # See config-ml.in if you want the gory details. | |
2516 | ||
2517 | if test "$srcdir" = "."; then | |
2518 | if test "$with_target_subdir" != "."; then | |
2519 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2520 | else | |
2521 | multi_basedir="$srcdir/$with_multisrctop.." | |
2522 | fi | |
2523 | else | |
2524 | multi_basedir="$srcdir/.." | |
2525 | fi | |
2526 | ||
2527 | ||
2528 | # Even if the default multilib is not a cross compilation, | |
2529 | # it may be that some of the other multilibs are. | |
2530 | if test $cross_compiling = no && test $multilib = yes \ | |
2531 | && test "x${with_multisubdir}" != x ; then | |
2532 | cross_compiling=maybe | |
2533 | fi | |
2534 | ||
2535 | ac_config_commands="$ac_config_commands default-1" | |
2536 | ||
2537 | ||
2538 | ac_aux_dir= | |
2539 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2540 | for ac_t in install-sh install.sh shtool; do | |
2541 | if test -f "$ac_dir/$ac_t"; then | |
2542 | ac_aux_dir=$ac_dir | |
2543 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2544 | break 2 | |
2545 | fi | |
2546 | done | |
2547 | done | |
2548 | if test -z "$ac_aux_dir"; then | |
2549 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2550 | fi | |
2551 | ||
2552 | # These three variables are undocumented and unsupported, | |
2553 | # and are intended to be withdrawn in a future Autoconf release. | |
2554 | # They can cause serious problems if a builder's source tree is in a directory | |
2555 | # whose full name contains unusual characters. | |
2556 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2557 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2558 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2559 | ||
2560 | ||
2561 | # Make sure we can run config.sub. | |
2562 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2563 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2564 | ||
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2566 | $as_echo_n "checking build system type... " >&6; } | |
2567 | if test "${ac_cv_build+set}" = set; then : | |
2568 | $as_echo_n "(cached) " >&6 | |
2569 | else | |
2570 | ac_build_alias=$build_alias | |
2571 | test "x$ac_build_alias" = x && | |
2572 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2573 | test "x$ac_build_alias" = x && | |
2574 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2575 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2576 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2577 | ||
2578 | fi | |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2580 | $as_echo "$ac_cv_build" >&6; } | |
2581 | case $ac_cv_build in | |
2582 | *-*-*) ;; | |
2583 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2584 | esac | |
2585 | build=$ac_cv_build | |
2586 | ac_save_IFS=$IFS; IFS='-' | |
2587 | set x $ac_cv_build | |
2588 | shift | |
2589 | build_cpu=$1 | |
2590 | build_vendor=$2 | |
2591 | shift; shift | |
2592 | # Remember, the first character of IFS is used to create $*, | |
2593 | # except with old shells: | |
2594 | build_os=$* | |
2595 | IFS=$ac_save_IFS | |
2596 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2597 | ||
2598 | ||
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2600 | $as_echo_n "checking host system type... " >&6; } | |
2601 | if test "${ac_cv_host+set}" = set; then : | |
2602 | $as_echo_n "(cached) " >&6 | |
2603 | else | |
2604 | if test "x$host_alias" = x; then | |
2605 | ac_cv_host=$ac_cv_build | |
2606 | else | |
2607 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2608 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2609 | fi | |
2610 | ||
2611 | fi | |
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2613 | $as_echo "$ac_cv_host" >&6; } | |
2614 | case $ac_cv_host in | |
2615 | *-*-*) ;; | |
2616 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2617 | esac | |
2618 | host=$ac_cv_host | |
2619 | ac_save_IFS=$IFS; IFS='-' | |
2620 | set x $ac_cv_host | |
2621 | shift | |
2622 | host_cpu=$1 | |
2623 | host_vendor=$2 | |
2624 | shift; shift | |
2625 | # Remember, the first character of IFS is used to create $*, | |
2626 | # except with old shells: | |
2627 | host_os=$* | |
2628 | IFS=$ac_save_IFS | |
2629 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2630 | ||
2631 | ||
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2633 | $as_echo_n "checking target system type... " >&6; } | |
2634 | if test "${ac_cv_target+set}" = set; then : | |
2635 | $as_echo_n "(cached) " >&6 | |
2636 | else | |
2637 | if test "x$target_alias" = x; then | |
2638 | ac_cv_target=$ac_cv_host | |
2639 | else | |
2640 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2641 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2642 | fi | |
2643 | ||
2644 | fi | |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2646 | $as_echo "$ac_cv_target" >&6; } | |
2647 | case $ac_cv_target in | |
2648 | *-*-*) ;; | |
2649 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2650 | esac | |
2651 | target=$ac_cv_target | |
2652 | ac_save_IFS=$IFS; IFS='-' | |
2653 | set x $ac_cv_target | |
2654 | shift | |
2655 | target_cpu=$1 | |
2656 | target_vendor=$2 | |
2657 | shift; shift | |
2658 | # Remember, the first character of IFS is used to create $*, | |
2659 | # except with old shells: | |
2660 | target_os=$* | |
2661 | IFS=$ac_save_IFS | |
2662 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2663 | ||
2664 | ||
2665 | # The aliases save the names the user supplied, while $host etc. | |
2666 | # will get canonicalized. | |
2667 | test -n "$target_alias" && | |
2668 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2669 | NONENONEs,x,x, && | |
2670 | program_prefix=${target_alias}- | |
2671 | ||
2672 | target_alias=${target_alias-$host_alias} | |
2673 | ||
2674 | am__api_version='1.11' | |
2675 | ||
2676 | # Find a good install program. We prefer a C program (faster), | |
2677 | # so one script is as good as another. But avoid the broken or | |
2678 | # incompatible versions: | |
2679 | # SysV /etc/install, /usr/sbin/install | |
2680 | # SunOS /usr/etc/install | |
2681 | # IRIX /sbin/install | |
2682 | # AIX /bin/install | |
2683 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2684 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2685 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2686 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2687 | # OS/2's system install, which has a completely different semantic | |
2688 | # ./install, which can be erroneously created by make from ./install.sh. | |
2689 | # Reject install programs that cannot install multiple files. | |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2691 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2692 | if test -z "$INSTALL"; then | |
2693 | if test "${ac_cv_path_install+set}" = set; then : | |
2694 | $as_echo_n "(cached) " >&6 | |
2695 | else | |
2696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2697 | for as_dir in $PATH | |
2698 | do | |
2699 | IFS=$as_save_IFS | |
2700 | test -z "$as_dir" && as_dir=. | |
2701 | # Account for people who put trailing slashes in PATH elements. | |
2702 | case $as_dir/ in #(( | |
2703 | ./ | .// | /[cC]/* | \ | |
2704 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2705 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2706 | /usr/ucb/* ) ;; | |
2707 | *) | |
2708 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2709 | # Don't use installbsd from OSF since it installs stuff as root | |
2710 | # by default. | |
2711 | for ac_prog in ginstall scoinst install; do | |
2712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2713 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2714 | if test $ac_prog = install && | |
2715 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2716 | # AIX install. It has an incompatible calling convention. | |
2717 | : | |
2718 | elif test $ac_prog = install && | |
2719 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2720 | # program-specific install script used by HP pwplus--don't use. | |
2721 | : | |
2722 | else | |
2723 | rm -rf conftest.one conftest.two conftest.dir | |
2724 | echo one > conftest.one | |
2725 | echo two > conftest.two | |
2726 | mkdir conftest.dir | |
2727 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2728 | test -s conftest.one && test -s conftest.two && | |
2729 | test -s conftest.dir/conftest.one && | |
2730 | test -s conftest.dir/conftest.two | |
2731 | then | |
2732 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2733 | break 3 | |
2734 | fi | |
2735 | fi | |
2736 | fi | |
2737 | done | |
2738 | done | |
2739 | ;; | |
2740 | esac | |
2741 | ||
2742 | done | |
2743 | IFS=$as_save_IFS | |
2744 | ||
2745 | rm -rf conftest.one conftest.two conftest.dir | |
2746 | ||
2747 | fi | |
2748 | if test "${ac_cv_path_install+set}" = set; then | |
2749 | INSTALL=$ac_cv_path_install | |
2750 | else | |
2751 | # As a last resort, use the slow shell script. Don't cache a | |
2752 | # value for INSTALL within a source directory, because that will | |
2753 | # break other packages using the cache if that directory is | |
2754 | # removed, or if the value is a relative name. | |
2755 | INSTALL=$ac_install_sh | |
2756 | fi | |
2757 | fi | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2759 | $as_echo "$INSTALL" >&6; } | |
2760 | ||
2761 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2762 | # It thinks the first close brace ends the variable substitution. | |
2763 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2764 | ||
2765 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2766 | ||
2767 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2768 | ||
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2770 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2771 | # Just in case | |
2772 | sleep 1 | |
2773 | echo timestamp > conftest.file | |
2774 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2775 | # name. Accept space and tab only in the latter. | |
2776 | am_lf=' | |
2777 | ' | |
2778 | case `pwd` in | |
2779 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2780 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2781 | esac | |
2782 | case $srcdir in | |
2783 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2784 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2785 | esac | |
2786 | ||
2787 | # Do `set' in a subshell so we don't clobber the current shell's | |
2788 | # arguments. Must try -L first in case configure is actually a | |
2789 | # symlink; some systems play weird games with the mod time of symlinks | |
2790 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2791 | # directory). | |
2792 | if ( | |
2793 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2794 | if test "$*" = "X"; then | |
2795 | # -L didn't work. | |
2796 | set X `ls -t "$srcdir/configure" conftest.file` | |
2797 | fi | |
2798 | rm -f conftest.file | |
2799 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2800 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2801 | ||
2802 | # If neither matched, then we have a broken ls. This can happen | |
2803 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2804 | # broken ls alias from the environment. This has actually | |
2805 | # happened. Such a system could not be considered "sane". | |
2806 | as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
2807 | alias in your environment" "$LINENO" 5 | |
2808 | fi | |
2809 | ||
2810 | test "$2" = conftest.file | |
2811 | ) | |
2812 | then | |
2813 | # Ok. | |
2814 | : | |
2815 | else | |
2816 | as_fn_error "newly created file is older than distributed files! | |
2817 | Check your system clock" "$LINENO" 5 | |
2818 | fi | |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2820 | $as_echo "yes" >&6; } | |
2821 | test "$program_prefix" != NONE && | |
2822 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2823 | # Use a double $ so make ignores it. | |
2824 | test "$program_suffix" != NONE && | |
2825 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2826 | # Double any \ or $. | |
2827 | # By default was `s,x,x', remove it if useless. | |
2828 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2829 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2830 | ||
2831 | # expand $ac_aux_dir to an absolute path | |
2832 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2833 | ||
2834 | if test x"${MISSING+set}" != xset; then | |
2835 | case $am_aux_dir in | |
2836 | *\ * | *\ *) | |
2837 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2838 | *) | |
2839 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2840 | esac | |
2841 | fi | |
2842 | # Use eval to expand $SHELL | |
2843 | if eval "$MISSING --run true"; then | |
2844 | am_missing_run="$MISSING --run " | |
2845 | else | |
2846 | am_missing_run= | |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2848 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2849 | fi | |
2850 | ||
2851 | if test x"${install_sh}" != xset; then | |
2852 | case $am_aux_dir in | |
2853 | *\ * | *\ *) | |
2854 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2855 | *) | |
2856 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2857 | esac | |
2858 | fi | |
2859 | ||
2860 | # Installed binaries are usually stripped using `strip' when the user | |
2861 | # run `make install-strip'. However `strip' might not be the right | |
2862 | # tool to use in cross-compilation environments, therefore Automake | |
2863 | # will honor the `STRIP' environment variable to overrule this program. | |
2864 | if test "$cross_compiling" != no; then | |
2865 | if test -n "$ac_tool_prefix"; then | |
2866 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2867 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2869 | $as_echo_n "checking for $ac_word... " >&6; } | |
2870 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2871 | $as_echo_n "(cached) " >&6 | |
2872 | else | |
2873 | if test -n "$STRIP"; then | |
2874 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2875 | else | |
2876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2877 | for as_dir in $PATH | |
2878 | do | |
2879 | IFS=$as_save_IFS | |
2880 | test -z "$as_dir" && as_dir=. | |
2881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2883 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2885 | break 2 | |
2886 | fi | |
2887 | done | |
2888 | done | |
2889 | IFS=$as_save_IFS | |
2890 | ||
2891 | fi | |
2892 | fi | |
2893 | STRIP=$ac_cv_prog_STRIP | |
2894 | if test -n "$STRIP"; then | |
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2896 | $as_echo "$STRIP" >&6; } | |
2897 | else | |
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2899 | $as_echo "no" >&6; } | |
2900 | fi | |
2901 | ||
2902 | ||
2903 | fi | |
2904 | if test -z "$ac_cv_prog_STRIP"; then | |
2905 | ac_ct_STRIP=$STRIP | |
2906 | # Extract the first word of "strip", so it can be a program name with args. | |
2907 | set dummy strip; ac_word=$2 | |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2909 | $as_echo_n "checking for $ac_word... " >&6; } | |
2910 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2911 | $as_echo_n "(cached) " >&6 | |
2912 | else | |
2913 | if test -n "$ac_ct_STRIP"; then | |
2914 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2915 | else | |
2916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2917 | for as_dir in $PATH | |
2918 | do | |
2919 | IFS=$as_save_IFS | |
2920 | test -z "$as_dir" && as_dir=. | |
2921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2923 | ac_cv_prog_ac_ct_STRIP="strip" | |
2924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2925 | break 2 | |
2926 | fi | |
2927 | done | |
2928 | done | |
2929 | IFS=$as_save_IFS | |
2930 | ||
2931 | fi | |
2932 | fi | |
2933 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2934 | if test -n "$ac_ct_STRIP"; then | |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2936 | $as_echo "$ac_ct_STRIP" >&6; } | |
2937 | else | |
2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2939 | $as_echo "no" >&6; } | |
2940 | fi | |
2941 | ||
2942 | if test "x$ac_ct_STRIP" = x; then | |
2943 | STRIP=":" | |
2944 | else | |
2945 | case $cross_compiling:$ac_tool_warned in | |
2946 | yes:) | |
2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2948 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2949 | ac_tool_warned=yes ;; | |
2950 | esac | |
2951 | STRIP=$ac_ct_STRIP | |
2952 | fi | |
2953 | else | |
2954 | STRIP="$ac_cv_prog_STRIP" | |
2955 | fi | |
2956 | ||
2957 | fi | |
2958 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2959 | ||
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2961 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2962 | if test -z "$MKDIR_P"; then | |
2963 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
2964 | $as_echo_n "(cached) " >&6 | |
2965 | else | |
2966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2967 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2968 | do | |
2969 | IFS=$as_save_IFS | |
2970 | test -z "$as_dir" && as_dir=. | |
2971 | for ac_prog in mkdir gmkdir; do | |
2972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2973 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2974 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2975 | 'mkdir (GNU coreutils) '* | \ | |
2976 | 'mkdir (coreutils) '* | \ | |
2977 | 'mkdir (fileutils) '4.1*) | |
2978 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2979 | break 3;; | |
2980 | esac | |
2981 | done | |
2982 | done | |
2983 | done | |
2984 | IFS=$as_save_IFS | |
2985 | ||
2986 | fi | |
2987 | ||
2988 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2989 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2990 | else | |
2991 | # As a last resort, use the slow shell script. Don't cache a | |
2992 | # value for MKDIR_P within a source directory, because that will | |
2993 | # break other packages using the cache if that directory is | |
2994 | # removed, or if the value is a relative name. | |
2995 | test -d ./--version && rmdir ./--version | |
2996 | MKDIR_P="$ac_install_sh -d" | |
2997 | fi | |
2998 | fi | |
2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3000 | $as_echo "$MKDIR_P" >&6; } | |
3001 | ||
3002 | mkdir_p="$MKDIR_P" | |
3003 | case $mkdir_p in | |
3004 | [\\/$]* | ?:[\\/]*) ;; | |
3005 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3006 | esac | |
3007 | ||
3008 | for ac_prog in gawk mawk nawk awk | |
3009 | do | |
3010 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3011 | set dummy $ac_prog; ac_word=$2 | |
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3013 | $as_echo_n "checking for $ac_word... " >&6; } | |
3014 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3015 | $as_echo_n "(cached) " >&6 | |
3016 | else | |
3017 | if test -n "$AWK"; then | |
3018 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3019 | else | |
3020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3021 | for as_dir in $PATH | |
3022 | do | |
3023 | IFS=$as_save_IFS | |
3024 | test -z "$as_dir" && as_dir=. | |
3025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3027 | ac_cv_prog_AWK="$ac_prog" | |
3028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3029 | break 2 | |
3030 | fi | |
3031 | done | |
3032 | done | |
3033 | IFS=$as_save_IFS | |
3034 | ||
3035 | fi | |
3036 | fi | |
3037 | AWK=$ac_cv_prog_AWK | |
3038 | if test -n "$AWK"; then | |
3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3040 | $as_echo "$AWK" >&6; } | |
3041 | else | |
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3043 | $as_echo "no" >&6; } | |
3044 | fi | |
3045 | ||
3046 | ||
3047 | test -n "$AWK" && break | |
3048 | done | |
3049 | ||
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3051 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3052 | set x ${MAKE-make} | |
3053 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3054 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3055 | $as_echo_n "(cached) " >&6 | |
3056 | else | |
3057 | cat >conftest.make <<\_ACEOF | |
3058 | SHELL = /bin/sh | |
3059 | all: | |
3060 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3061 | _ACEOF | |
3062 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3063 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3064 | *@@@%%%=?*=@@@%%%*) | |
3065 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3066 | *) | |
3067 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3068 | esac | |
3069 | rm -f conftest.make | |
3070 | fi | |
3071 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3073 | $as_echo "yes" >&6; } | |
3074 | SET_MAKE= | |
3075 | else | |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3077 | $as_echo "no" >&6; } | |
3078 | SET_MAKE="MAKE=${MAKE-make}" | |
3079 | fi | |
3080 | ||
3081 | rm -rf .tst 2>/dev/null | |
3082 | mkdir .tst 2>/dev/null | |
3083 | if test -d .tst; then | |
3084 | am__leading_dot=. | |
3085 | else | |
3086 | am__leading_dot=_ | |
3087 | fi | |
3088 | rmdir .tst 2>/dev/null | |
3089 | ||
3090 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3091 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3092 | # is not polluted with repeated "-I." | |
3093 | am__isrc=' -I$(srcdir)' | |
3094 | # test to see if srcdir already configured | |
3095 | if test -f $srcdir/config.status; then | |
3096 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3097 | fi | |
3098 | fi | |
3099 | ||
3100 | # test whether we have cygpath | |
3101 | if test -z "$CYGPATH_W"; then | |
3102 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3103 | CYGPATH_W='cygpath -w' | |
3104 | else | |
3105 | CYGPATH_W=echo | |
3106 | fi | |
3107 | fi | |
3108 | ||
3109 | ||
3110 | # Define the identity of the package. | |
3111 | PACKAGE='libgo' | |
3112 | VERSION='version-unused' | |
3113 | ||
3114 | ||
3115 | # Some tools Automake needs. | |
3116 | ||
3117 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3118 | ||
3119 | ||
3120 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3121 | ||
3122 | ||
3123 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3124 | ||
3125 | ||
3126 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3127 | ||
3128 | ||
3129 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3130 | ||
3131 | # We need awk for the "check" target. The system "awk" is bad on | |
3132 | # some platforms. | |
44c925bd ILT |
3133 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3134 | # in the wild :-( We should find a proper way to deprecate it ... | |
3135 | AMTAR='$${TAR-tar}' | |
7a938933 | 3136 | |
44c925bd | 3137 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
7a938933 ILT |
3138 | |
3139 | ||
3140 | ||
3141 | ||
3142 | ||
3143 | ||
3144 | ||
3145 | ||
3146 | ||
3147 | ||
3148 | ac_ext=c | |
3149 | ac_cpp='$CPP $CPPFLAGS' | |
3150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3153 | if test -n "$ac_tool_prefix"; then | |
3154 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3155 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3157 | $as_echo_n "checking for $ac_word... " >&6; } | |
3158 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3159 | $as_echo_n "(cached) " >&6 | |
3160 | else | |
3161 | if test -n "$CC"; then | |
3162 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3163 | else | |
3164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3165 | for as_dir in $PATH | |
3166 | do | |
3167 | IFS=$as_save_IFS | |
3168 | test -z "$as_dir" && as_dir=. | |
3169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3171 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3173 | break 2 | |
3174 | fi | |
3175 | done | |
3176 | done | |
3177 | IFS=$as_save_IFS | |
3178 | ||
3179 | fi | |
3180 | fi | |
3181 | CC=$ac_cv_prog_CC | |
3182 | if test -n "$CC"; then | |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3184 | $as_echo "$CC" >&6; } | |
3185 | else | |
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3187 | $as_echo "no" >&6; } | |
3188 | fi | |
3189 | ||
3190 | ||
3191 | fi | |
3192 | if test -z "$ac_cv_prog_CC"; then | |
3193 | ac_ct_CC=$CC | |
3194 | # Extract the first word of "gcc", so it can be a program name with args. | |
3195 | set dummy gcc; ac_word=$2 | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3197 | $as_echo_n "checking for $ac_word... " >&6; } | |
3198 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3199 | $as_echo_n "(cached) " >&6 | |
3200 | else | |
3201 | if test -n "$ac_ct_CC"; then | |
3202 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3203 | else | |
3204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3205 | for as_dir in $PATH | |
3206 | do | |
3207 | IFS=$as_save_IFS | |
3208 | test -z "$as_dir" && as_dir=. | |
3209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3211 | ac_cv_prog_ac_ct_CC="gcc" | |
3212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3213 | break 2 | |
3214 | fi | |
3215 | done | |
3216 | done | |
3217 | IFS=$as_save_IFS | |
3218 | ||
3219 | fi | |
3220 | fi | |
3221 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3222 | if test -n "$ac_ct_CC"; then | |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3224 | $as_echo "$ac_ct_CC" >&6; } | |
3225 | else | |
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3227 | $as_echo "no" >&6; } | |
3228 | fi | |
3229 | ||
3230 | if test "x$ac_ct_CC" = x; then | |
3231 | CC="" | |
3232 | else | |
3233 | case $cross_compiling:$ac_tool_warned in | |
3234 | yes:) | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3236 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3237 | ac_tool_warned=yes ;; | |
3238 | esac | |
3239 | CC=$ac_ct_CC | |
3240 | fi | |
3241 | else | |
3242 | CC="$ac_cv_prog_CC" | |
3243 | fi | |
3244 | ||
3245 | if test -z "$CC"; then | |
3246 | if test -n "$ac_tool_prefix"; then | |
3247 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3248 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3250 | $as_echo_n "checking for $ac_word... " >&6; } | |
3251 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3252 | $as_echo_n "(cached) " >&6 | |
3253 | else | |
3254 | if test -n "$CC"; then | |
3255 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3256 | else | |
3257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3258 | for as_dir in $PATH | |
3259 | do | |
3260 | IFS=$as_save_IFS | |
3261 | test -z "$as_dir" && as_dir=. | |
3262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3263 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3264 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3266 | break 2 | |
3267 | fi | |
3268 | done | |
3269 | done | |
3270 | IFS=$as_save_IFS | |
3271 | ||
3272 | fi | |
3273 | fi | |
3274 | CC=$ac_cv_prog_CC | |
3275 | if test -n "$CC"; then | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3277 | $as_echo "$CC" >&6; } | |
3278 | else | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3280 | $as_echo "no" >&6; } | |
3281 | fi | |
3282 | ||
3283 | ||
3284 | fi | |
3285 | fi | |
3286 | if test -z "$CC"; then | |
3287 | # Extract the first word of "cc", so it can be a program name with args. | |
3288 | set dummy cc; ac_word=$2 | |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3290 | $as_echo_n "checking for $ac_word... " >&6; } | |
3291 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3292 | $as_echo_n "(cached) " >&6 | |
3293 | else | |
3294 | if test -n "$CC"; then | |
3295 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3296 | else | |
3297 | ac_prog_rejected=no | |
3298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3299 | for as_dir in $PATH | |
3300 | do | |
3301 | IFS=$as_save_IFS | |
3302 | test -z "$as_dir" && as_dir=. | |
3303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3304 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3305 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3306 | ac_prog_rejected=yes | |
3307 | continue | |
3308 | fi | |
3309 | ac_cv_prog_CC="cc" | |
3310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3311 | break 2 | |
3312 | fi | |
3313 | done | |
3314 | done | |
3315 | IFS=$as_save_IFS | |
3316 | ||
3317 | if test $ac_prog_rejected = yes; then | |
3318 | # We found a bogon in the path, so make sure we never use it. | |
3319 | set dummy $ac_cv_prog_CC | |
3320 | shift | |
3321 | if test $# != 0; then | |
3322 | # We chose a different compiler from the bogus one. | |
3323 | # However, it has the same basename, so the bogon will be chosen | |
3324 | # first if we set CC to just the basename; use the full file name. | |
3325 | shift | |
3326 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3327 | fi | |
3328 | fi | |
3329 | fi | |
3330 | fi | |
3331 | CC=$ac_cv_prog_CC | |
3332 | if test -n "$CC"; then | |
3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3334 | $as_echo "$CC" >&6; } | |
3335 | else | |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3337 | $as_echo "no" >&6; } | |
3338 | fi | |
3339 | ||
3340 | ||
3341 | fi | |
3342 | if test -z "$CC"; then | |
3343 | if test -n "$ac_tool_prefix"; then | |
3344 | for ac_prog in cl.exe | |
3345 | do | |
3346 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3347 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3349 | $as_echo_n "checking for $ac_word... " >&6; } | |
3350 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3351 | $as_echo_n "(cached) " >&6 | |
3352 | else | |
3353 | if test -n "$CC"; then | |
3354 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3355 | else | |
3356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3357 | for as_dir in $PATH | |
3358 | do | |
3359 | IFS=$as_save_IFS | |
3360 | test -z "$as_dir" && as_dir=. | |
3361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3363 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3365 | break 2 | |
3366 | fi | |
3367 | done | |
3368 | done | |
3369 | IFS=$as_save_IFS | |
3370 | ||
3371 | fi | |
3372 | fi | |
3373 | CC=$ac_cv_prog_CC | |
3374 | if test -n "$CC"; then | |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3376 | $as_echo "$CC" >&6; } | |
3377 | else | |
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3379 | $as_echo "no" >&6; } | |
3380 | fi | |
3381 | ||
3382 | ||
3383 | test -n "$CC" && break | |
3384 | done | |
3385 | fi | |
3386 | if test -z "$CC"; then | |
3387 | ac_ct_CC=$CC | |
3388 | for ac_prog in cl.exe | |
3389 | do | |
3390 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3391 | set dummy $ac_prog; ac_word=$2 | |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3393 | $as_echo_n "checking for $ac_word... " >&6; } | |
3394 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3395 | $as_echo_n "(cached) " >&6 | |
3396 | else | |
3397 | if test -n "$ac_ct_CC"; then | |
3398 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3399 | else | |
3400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3401 | for as_dir in $PATH | |
3402 | do | |
3403 | IFS=$as_save_IFS | |
3404 | test -z "$as_dir" && as_dir=. | |
3405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3407 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3409 | break 2 | |
3410 | fi | |
3411 | done | |
3412 | done | |
3413 | IFS=$as_save_IFS | |
3414 | ||
3415 | fi | |
3416 | fi | |
3417 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3418 | if test -n "$ac_ct_CC"; then | |
3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3420 | $as_echo "$ac_ct_CC" >&6; } | |
3421 | else | |
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3423 | $as_echo "no" >&6; } | |
3424 | fi | |
3425 | ||
3426 | ||
3427 | test -n "$ac_ct_CC" && break | |
3428 | done | |
3429 | ||
3430 | if test "x$ac_ct_CC" = x; then | |
3431 | CC="" | |
3432 | else | |
3433 | case $cross_compiling:$ac_tool_warned in | |
3434 | yes:) | |
3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3436 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3437 | ac_tool_warned=yes ;; | |
3438 | esac | |
3439 | CC=$ac_ct_CC | |
3440 | fi | |
3441 | fi | |
3442 | ||
3443 | fi | |
3444 | ||
3445 | ||
3446 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3447 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3448 | as_fn_error "no acceptable C compiler found in \$PATH | |
3449 | See \`config.log' for more details." "$LINENO" 5; } | |
3450 | ||
3451 | # Provide some information about the compiler. | |
3452 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3453 | set X $ac_compile | |
3454 | ac_compiler=$2 | |
3455 | for ac_option in --version -v -V -qversion; do | |
3456 | { { ac_try="$ac_compiler $ac_option >&5" | |
3457 | case "(($ac_try" in | |
3458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3459 | *) ac_try_echo=$ac_try;; | |
3460 | esac | |
3461 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3462 | $as_echo "$ac_try_echo"; } >&5 | |
3463 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3464 | ac_status=$? | |
3465 | if test -s conftest.err; then | |
3466 | sed '10a\ | |
3467 | ... rest of stderr output deleted ... | |
3468 | 10q' conftest.err >conftest.er1 | |
3469 | cat conftest.er1 >&5 | |
3470 | rm -f conftest.er1 conftest.err | |
3471 | fi | |
3472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3473 | test $ac_status = 0; } | |
3474 | done | |
3475 | ||
3476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3477 | /* end confdefs.h. */ | |
54f0deb0 | 3478 | |
7a938933 ILT |
3479 | int |
3480 | main () | |
3481 | { | |
3482 | ||
3483 | ; | |
3484 | return 0; | |
3485 | } | |
3486 | _ACEOF | |
3487 | ac_clean_files_save=$ac_clean_files | |
3488 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
3489 | # Try to create an executable without -o first, disregard a.out. | |
3490 | # It will help us diagnose broken compilers, and finding out an intuition | |
3491 | # of exeext. | |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3493 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3494 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3495 | ||
3496 | # The possible output files: | |
3497 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3498 | ||
3499 | ac_rmfiles= | |
3500 | for ac_file in $ac_files | |
3501 | do | |
3502 | case $ac_file in | |
3503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3504 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3505 | esac | |
3506 | done | |
3507 | rm -f $ac_rmfiles | |
3508 | ||
3509 | if { { ac_try="$ac_link_default" | |
3510 | case "(($ac_try" in | |
3511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3512 | *) ac_try_echo=$ac_try;; | |
3513 | esac | |
3514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3515 | $as_echo "$ac_try_echo"; } >&5 | |
3516 | (eval "$ac_link_default") 2>&5 | |
3517 | ac_status=$? | |
3518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3519 | test $ac_status = 0; }; then : | |
3520 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3521 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3522 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3523 | # so that the user can short-circuit this test for compilers unknown to | |
3524 | # Autoconf. | |
3525 | for ac_file in $ac_files '' | |
3526 | do | |
3527 | test -f "$ac_file" || continue | |
3528 | case $ac_file in | |
3529 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3530 | ;; | |
3531 | [ab].out ) | |
3532 | # We found the default executable, but exeext='' is most | |
3533 | # certainly right. | |
3534 | break;; | |
3535 | *.* ) | |
3536 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3537 | then :; else | |
3538 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3539 | fi | |
3540 | # We set ac_cv_exeext here because the later test for it is not | |
3541 | # safe: cross compilers may not add the suffix if given an `-o' | |
3542 | # argument, so we may need to know it at that point already. | |
3543 | # Even if this section looks crufty: it has the advantage of | |
3544 | # actually working. | |
3545 | break;; | |
3546 | * ) | |
3547 | break;; | |
3548 | esac | |
3549 | done | |
3550 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3551 | ||
3552 | else | |
3553 | ac_file='' | |
3554 | fi | |
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3556 | $as_echo "$ac_file" >&6; } | |
3557 | if test -z "$ac_file"; then : | |
3558 | $as_echo "$as_me: failed program was:" >&5 | |
3559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3560 | ||
3561 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3562 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3563 | { as_fn_set_status 77 | |
3564 | as_fn_error "C compiler cannot create executables | |
3565 | See \`config.log' for more details." "$LINENO" 5; }; } | |
3566 | fi | |
3567 | ac_exeext=$ac_cv_exeext | |
3568 | ||
3569 | # Check that the compiler produces executables we can run. If not, either | |
3570 | # the compiler is broken, or we cross compile. | |
3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3572 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3573 | # If not cross compiling, check that we can run a simple program. | |
3574 | if test "$cross_compiling" != yes; then | |
3575 | if { ac_try='./$ac_file' | |
3576 | { { case "(($ac_try" in | |
3577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3578 | *) ac_try_echo=$ac_try;; | |
3579 | esac | |
3580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3581 | $as_echo "$ac_try_echo"; } >&5 | |
3582 | (eval "$ac_try") 2>&5 | |
3583 | ac_status=$? | |
3584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3585 | test $ac_status = 0; }; }; then | |
3586 | cross_compiling=no | |
3587 | else | |
3588 | if test "$cross_compiling" = maybe; then | |
3589 | cross_compiling=yes | |
3590 | else | |
3591 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3592 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3593 | as_fn_error "cannot run C compiled programs. | |
3594 | If you meant to cross compile, use \`--host'. | |
3595 | See \`config.log' for more details." "$LINENO" 5; } | |
3596 | fi | |
3597 | fi | |
3598 | fi | |
3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3600 | $as_echo "yes" >&6; } | |
3601 | ||
3602 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out | |
3603 | ac_clean_files=$ac_clean_files_save | |
3604 | # Check that the compiler produces executables we can run. If not, either | |
3605 | # the compiler is broken, or we cross compile. | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3607 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3609 | $as_echo "$cross_compiling" >&6; } | |
3610 | ||
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3612 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3613 | if { { ac_try="$ac_link" | |
3614 | case "(($ac_try" in | |
3615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3616 | *) ac_try_echo=$ac_try;; | |
3617 | esac | |
3618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3619 | $as_echo "$ac_try_echo"; } >&5 | |
3620 | (eval "$ac_link") 2>&5 | |
3621 | ac_status=$? | |
3622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3623 | test $ac_status = 0; }; then : | |
3624 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3625 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3626 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3627 | # `rm'. | |
3628 | for ac_file in conftest.exe conftest conftest.*; do | |
3629 | test -f "$ac_file" || continue | |
3630 | case $ac_file in | |
3631 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3632 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3633 | break;; | |
3634 | * ) break;; | |
3635 | esac | |
3636 | done | |
3637 | else | |
3638 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3639 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3640 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3641 | See \`config.log' for more details." "$LINENO" 5; } | |
3642 | fi | |
3643 | rm -f conftest$ac_cv_exeext | |
3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3645 | $as_echo "$ac_cv_exeext" >&6; } | |
3646 | ||
3647 | rm -f conftest.$ac_ext | |
3648 | EXEEXT=$ac_cv_exeext | |
3649 | ac_exeext=$EXEEXT | |
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3651 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3652 | if test "${ac_cv_objext+set}" = set; then : | |
3653 | $as_echo_n "(cached) " >&6 | |
3654 | else | |
3655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3656 | /* end confdefs.h. */ | |
3657 | ||
3658 | int | |
3659 | main () | |
3660 | { | |
3661 | ||
3662 | ; | |
3663 | return 0; | |
3664 | } | |
3665 | _ACEOF | |
3666 | rm -f conftest.o conftest.obj | |
3667 | if { { ac_try="$ac_compile" | |
3668 | case "(($ac_try" in | |
3669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3670 | *) ac_try_echo=$ac_try;; | |
3671 | esac | |
3672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3673 | $as_echo "$ac_try_echo"; } >&5 | |
3674 | (eval "$ac_compile") 2>&5 | |
3675 | ac_status=$? | |
3676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3677 | test $ac_status = 0; }; then : | |
3678 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3679 | test -f "$ac_file" || continue; | |
3680 | case $ac_file in | |
3681 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3682 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3683 | break;; | |
3684 | esac | |
3685 | done | |
3686 | else | |
3687 | $as_echo "$as_me: failed program was:" >&5 | |
3688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3689 | ||
3690 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3692 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3693 | See \`config.log' for more details." "$LINENO" 5; } | |
3694 | fi | |
3695 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3696 | fi | |
3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3698 | $as_echo "$ac_cv_objext" >&6; } | |
3699 | OBJEXT=$ac_cv_objext | |
3700 | ac_objext=$OBJEXT | |
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3702 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3703 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3704 | $as_echo_n "(cached) " >&6 | |
3705 | else | |
3706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3707 | /* end confdefs.h. */ | |
3708 | ||
3709 | int | |
3710 | main () | |
3711 | { | |
3712 | #ifndef __GNUC__ | |
3713 | choke me | |
3714 | #endif | |
3715 | ||
3716 | ; | |
3717 | return 0; | |
3718 | } | |
3719 | _ACEOF | |
3720 | if ac_fn_c_try_compile "$LINENO"; then : | |
3721 | ac_compiler_gnu=yes | |
3722 | else | |
3723 | ac_compiler_gnu=no | |
3724 | fi | |
3725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3726 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3727 | ||
3728 | fi | |
3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3730 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3731 | if test $ac_compiler_gnu = yes; then | |
3732 | GCC=yes | |
3733 | else | |
3734 | GCC= | |
3735 | fi | |
3736 | ac_test_CFLAGS=${CFLAGS+set} | |
3737 | ac_save_CFLAGS=$CFLAGS | |
3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3739 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3740 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3741 | $as_echo_n "(cached) " >&6 | |
3742 | else | |
3743 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3744 | ac_c_werror_flag=yes | |
3745 | ac_cv_prog_cc_g=no | |
3746 | CFLAGS="-g" | |
3747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3748 | /* end confdefs.h. */ | |
3749 | ||
3750 | int | |
3751 | main () | |
3752 | { | |
3753 | ||
3754 | ; | |
3755 | return 0; | |
3756 | } | |
3757 | _ACEOF | |
3758 | if ac_fn_c_try_compile "$LINENO"; then : | |
3759 | ac_cv_prog_cc_g=yes | |
3760 | else | |
3761 | CFLAGS="" | |
3762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3763 | /* end confdefs.h. */ | |
3764 | ||
3765 | int | |
3766 | main () | |
3767 | { | |
3768 | ||
3769 | ; | |
3770 | return 0; | |
3771 | } | |
3772 | _ACEOF | |
3773 | if ac_fn_c_try_compile "$LINENO"; then : | |
3774 | ||
3775 | else | |
3776 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3777 | CFLAGS="-g" | |
3778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3779 | /* end confdefs.h. */ | |
3780 | ||
3781 | int | |
3782 | main () | |
3783 | { | |
3784 | ||
3785 | ; | |
3786 | return 0; | |
3787 | } | |
3788 | _ACEOF | |
3789 | if ac_fn_c_try_compile "$LINENO"; then : | |
3790 | ac_cv_prog_cc_g=yes | |
3791 | fi | |
3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3793 | fi | |
3794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3795 | fi | |
3796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3797 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3798 | fi | |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3800 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3801 | if test "$ac_test_CFLAGS" = set; then | |
3802 | CFLAGS=$ac_save_CFLAGS | |
3803 | elif test $ac_cv_prog_cc_g = yes; then | |
3804 | if test "$GCC" = yes; then | |
3805 | CFLAGS="-g -O2" | |
3806 | else | |
3807 | CFLAGS="-g" | |
3808 | fi | |
3809 | else | |
3810 | if test "$GCC" = yes; then | |
3811 | CFLAGS="-O2" | |
3812 | else | |
3813 | CFLAGS= | |
3814 | fi | |
3815 | fi | |
3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3817 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3818 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3819 | $as_echo_n "(cached) " >&6 | |
3820 | else | |
3821 | ac_cv_prog_cc_c89=no | |
3822 | ac_save_CC=$CC | |
3823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3824 | /* end confdefs.h. */ | |
3825 | #include <stdarg.h> | |
3826 | #include <stdio.h> | |
3827 | #include <sys/types.h> | |
3828 | #include <sys/stat.h> | |
3829 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3830 | struct buf { int x; }; | |
3831 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3832 | static char *e (p, i) | |
3833 | char **p; | |
3834 | int i; | |
3835 | { | |
3836 | return p[i]; | |
3837 | } | |
3838 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3839 | { | |
3840 | char *s; | |
3841 | va_list v; | |
3842 | va_start (v,p); | |
3843 | s = g (p, va_arg (v,int)); | |
3844 | va_end (v); | |
3845 | return s; | |
3846 | } | |
3847 | ||
3848 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3849 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3850 | These don't provoke an error unfortunately, instead are silently treated | |
3851 | as 'x'. The following induces an error, until -std is added to get | |
3852 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3853 | array size at least. It's necessary to write '\x00'==0 to get something | |
3854 | that's true only with -std. */ | |
3855 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3856 | ||
3857 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3858 | inside strings and character constants. */ | |
3859 | #define FOO(x) 'x' | |
3860 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3861 | ||
3862 | int test (int i, double x); | |
3863 | struct s1 {int (*f) (int a);}; | |
3864 | struct s2 {int (*f) (double a);}; | |
3865 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3866 | int argc; | |
3867 | char **argv; | |
3868 | int | |
3869 | main () | |
3870 | { | |
3871 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3872 | ; | |
3873 | return 0; | |
3874 | } | |
3875 | _ACEOF | |
3876 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3877 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3878 | do | |
3879 | CC="$ac_save_CC $ac_arg" | |
3880 | if ac_fn_c_try_compile "$LINENO"; then : | |
3881 | ac_cv_prog_cc_c89=$ac_arg | |
3882 | fi | |
3883 | rm -f core conftest.err conftest.$ac_objext | |
3884 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3885 | done | |
3886 | rm -f conftest.$ac_ext | |
3887 | CC=$ac_save_CC | |
3888 | ||
3889 | fi | |
3890 | # AC_CACHE_VAL | |
3891 | case "x$ac_cv_prog_cc_c89" in | |
3892 | x) | |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3894 | $as_echo "none needed" >&6; } ;; | |
3895 | xno) | |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3897 | $as_echo "unsupported" >&6; } ;; | |
3898 | *) | |
3899 | CC="$CC $ac_cv_prog_cc_c89" | |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3901 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3902 | esac | |
3903 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3904 | ||
3905 | fi | |
3906 | ||
3907 | ac_ext=c | |
3908 | ac_cpp='$CPP $CPPFLAGS' | |
3909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3912 | DEPDIR="${am__leading_dot}deps" | |
3913 | ||
3914 | ac_config_commands="$ac_config_commands depfiles" | |
3915 | ||
3916 | ||
3917 | am_make=${MAKE-make} | |
3918 | cat > confinc << 'END' | |
3919 | am__doit: | |
3920 | @echo this is the am__doit target | |
3921 | .PHONY: am__doit | |
3922 | END | |
3923 | # If we don't find an include directive, just comment out the code. | |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3925 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3926 | am__include="#" | |
3927 | am__quote= | |
3928 | _am_result=none | |
3929 | # First try GNU make style include. | |
3930 | echo "include confinc" > confmf | |
3931 | # Ignore all kinds of additional output from `make'. | |
3932 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3933 | *the\ am__doit\ target*) | |
3934 | am__include=include | |
3935 | am__quote= | |
3936 | _am_result=GNU | |
3937 | ;; | |
3938 | esac | |
3939 | # Now try BSD make style include. | |
3940 | if test "$am__include" = "#"; then | |
3941 | echo '.include "confinc"' > confmf | |
3942 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3943 | *the\ am__doit\ target*) | |
3944 | am__include=.include | |
3945 | am__quote="\"" | |
3946 | _am_result=BSD | |
3947 | ;; | |
3948 | esac | |
3949 | fi | |
3950 | ||
3951 | ||
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3953 | $as_echo "$_am_result" >&6; } | |
3954 | rm -f confinc confmf | |
3955 | ||
3956 | # Check whether --enable-dependency-tracking was given. | |
3957 | if test "${enable_dependency_tracking+set}" = set; then : | |
3958 | enableval=$enable_dependency_tracking; | |
3959 | fi | |
3960 | ||
3961 | if test "x$enable_dependency_tracking" != xno; then | |
3962 | am_depcomp="$ac_aux_dir/depcomp" | |
3963 | AMDEPBACKSLASH='\' | |
44c925bd | 3964 | am__nodep='_no' |
7a938933 ILT |
3965 | fi |
3966 | if test "x$enable_dependency_tracking" != xno; then | |
3967 | AMDEP_TRUE= | |
3968 | AMDEP_FALSE='#' | |
3969 | else | |
3970 | AMDEP_TRUE='#' | |
3971 | AMDEP_FALSE= | |
3972 | fi | |
3973 | ||
3974 | ||
3975 | ||
3976 | depcc="$CC" am_compiler_list= | |
3977 | ||
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3979 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3980 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3981 | $as_echo_n "(cached) " >&6 | |
3982 | else | |
3983 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3984 | # We make a subdir and do the tests there. Otherwise we can end up | |
3985 | # making bogus files that we don't know about and never remove. For | |
3986 | # instance it was reported that on HP-UX the gcc test will end up | |
3987 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3988 | # in D'. | |
44c925bd | 3989 | rm -rf conftest.dir |
7a938933 ILT |
3990 | mkdir conftest.dir |
3991 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3992 | # using a relative directory. | |
3993 | cp "$am_depcomp" conftest.dir | |
3994 | cd conftest.dir | |
3995 | # We will build objects and dependencies in a subdirectory because | |
3996 | # it helps to detect inapplicable dependency modes. For instance | |
3997 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3998 | # side effect of compilation, but ICC will put the dependencies in | |
3999 | # the current directory while Tru64 will put them in the object | |
4000 | # directory. | |
4001 | mkdir sub | |
4002 | ||
4003 | am_cv_CC_dependencies_compiler_type=none | |
4004 | if test "$am_compiler_list" = ""; then | |
4005 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4006 | fi | |
4007 | am__universal=false | |
4008 | case " $depcc " in #( | |
4009 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4010 | esac | |
4011 | ||
4012 | for depmode in $am_compiler_list; do | |
4013 | # Setup a source with many dependencies, because some compilers | |
4014 | # like to wrap large dependency lists on column 80 (with \), and | |
4015 | # we should not choose a depcomp mode which is confused by this. | |
4016 | # | |
4017 | # We need to recreate these files for each test, as the compiler may | |
4018 | # overwrite some of them when testing with obscure command lines. | |
4019 | # This happens at least with the AIX C compiler. | |
4020 | : > sub/conftest.c | |
4021 | for i in 1 2 3 4 5 6; do | |
4022 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4023 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4024 | # Solaris 8's {/usr,}/bin/sh. | |
4025 | touch sub/conftst$i.h | |
4026 | done | |
4027 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4028 | ||
4029 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4030 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4031 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4032 | # versions had trouble with output in subdirs | |
4033 | am__obj=sub/conftest.${OBJEXT-o} | |
4034 | am__minus_obj="-o $am__obj" | |
4035 | case $depmode in | |
4036 | gcc) | |
4037 | # This depmode causes a compiler race in universal mode. | |
4038 | test "$am__universal" = false || continue | |
4039 | ;; | |
4040 | nosideeffect) | |
4041 | # after this tag, mechanisms are not by side-effect, so they'll | |
4042 | # only be used when explicitly requested | |
4043 | if test "x$enable_dependency_tracking" = xyes; then | |
4044 | continue | |
4045 | else | |
4046 | break | |
4047 | fi | |
4048 | ;; | |
44c925bd | 4049 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
7a938933 ILT |
4050 | # This compiler won't grok `-c -o', but also, the minuso test has |
4051 | # not run yet. These depmodes are late enough in the game, and | |
4052 | # so weak that their functioning should not be impacted. | |
4053 | am__obj=conftest.${OBJEXT-o} | |
4054 | am__minus_obj= | |
4055 | ;; | |
4056 | none) break ;; | |
4057 | esac | |
4058 | if depmode=$depmode \ | |
4059 | source=sub/conftest.c object=$am__obj \ | |
4060 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4061 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4062 | >/dev/null 2>conftest.err && | |
4063 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4064 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4065 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4066 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4067 | # icc doesn't choke on unknown options, it will just issue warnings | |
4068 | # or remarks (even with -Werror). So we grep stderr for any message | |
4069 | # that says an option was ignored or not supported. | |
4070 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4071 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4072 | # The diagnosis changed in icc 8.0: | |
4073 | # icc: Command line remark: option '-MP' not supported | |
4074 | if (grep 'ignoring option' conftest.err || | |
4075 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4076 | am_cv_CC_dependencies_compiler_type=$depmode | |
4077 | break | |
4078 | fi | |
4079 | fi | |
4080 | done | |
4081 | ||
4082 | cd .. | |
4083 | rm -rf conftest.dir | |
4084 | else | |
4085 | am_cv_CC_dependencies_compiler_type=none | |
4086 | fi | |
4087 | ||
4088 | fi | |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4090 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4091 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4092 | ||
4093 | if | |
4094 | test "x$enable_dependency_tracking" != xno \ | |
4095 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4096 | am__fastdepCC_TRUE= | |
4097 | am__fastdepCC_FALSE='#' | |
4098 | else | |
4099 | am__fastdepCC_TRUE='#' | |
4100 | am__fastdepCC_FALSE= | |
4101 | fi | |
4102 | ||
4103 | ||
4104 | ac_ext=go | |
4105 | ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5' | |
4106 | ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4107 | ac_compile_gnu=yes | |
4108 | if test -n "$ac_tool_prefix"; then | |
4109 | # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. | |
4110 | set dummy ${ac_tool_prefix}gccgo; ac_word=$2 | |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4112 | $as_echo_n "checking for $ac_word... " >&6; } | |
4113 | if test "${ac_cv_prog_GOC+set}" = set; then : | |
4114 | $as_echo_n "(cached) " >&6 | |
4115 | else | |
4116 | if test -n "$GOC"; then | |
4117 | ac_cv_prog_GOC="$GOC" # Let the user override the test. | |
4118 | else | |
4119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4120 | for as_dir in $PATH | |
4121 | do | |
4122 | IFS=$as_save_IFS | |
4123 | test -z "$as_dir" && as_dir=. | |
4124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4126 | ac_cv_prog_GOC="${ac_tool_prefix}gccgo" | |
4127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4128 | break 2 | |
4129 | fi | |
4130 | done | |
4131 | done | |
4132 | IFS=$as_save_IFS | |
4133 | ||
4134 | fi | |
4135 | fi | |
4136 | GOC=$ac_cv_prog_GOC | |
4137 | if test -n "$GOC"; then | |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 | |
4139 | $as_echo "$GOC" >&6; } | |
4140 | else | |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4142 | $as_echo "no" >&6; } | |
4143 | fi | |
4144 | ||
4145 | ||
4146 | fi | |
4147 | if test -z "$ac_cv_prog_GOC"; then | |
4148 | ac_ct_GOC=$GOC | |
4149 | # Extract the first word of "gccgo", so it can be a program name with args. | |
4150 | set dummy gccgo; ac_word=$2 | |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4152 | $as_echo_n "checking for $ac_word... " >&6; } | |
4153 | if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then : | |
4154 | $as_echo_n "(cached) " >&6 | |
4155 | else | |
4156 | if test -n "$ac_ct_GOC"; then | |
4157 | ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test. | |
4158 | else | |
4159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4160 | for as_dir in $PATH | |
4161 | do | |
4162 | IFS=$as_save_IFS | |
4163 | test -z "$as_dir" && as_dir=. | |
4164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4166 | ac_cv_prog_ac_ct_GOC="gccgo" | |
4167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4168 | break 2 | |
4169 | fi | |
4170 | done | |
4171 | done | |
4172 | IFS=$as_save_IFS | |
4173 | ||
4174 | fi | |
4175 | fi | |
4176 | ac_ct_GOC=$ac_cv_prog_ac_ct_GOC | |
4177 | if test -n "$ac_ct_GOC"; then | |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5 | |
4179 | $as_echo "$ac_ct_GOC" >&6; } | |
4180 | else | |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4182 | $as_echo "no" >&6; } | |
4183 | fi | |
4184 | ||
4185 | if test "x$ac_ct_GOC" = x; then | |
4186 | GOC="" | |
4187 | else | |
4188 | case $cross_compiling:$ac_tool_warned in | |
4189 | yes:) | |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4191 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4192 | ac_tool_warned=yes ;; | |
4193 | esac | |
4194 | GOC=$ac_ct_GOC | |
4195 | fi | |
4196 | else | |
4197 | GOC="$ac_cv_prog_GOC" | |
4198 | fi | |
4199 | ||
4200 | if test -z "$GOC"; then | |
4201 | if test -n "$ac_tool_prefix"; then | |
4202 | # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. | |
4203 | set dummy ${ac_tool_prefix}gccgo; ac_word=$2 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4205 | $as_echo_n "checking for $ac_word... " >&6; } | |
4206 | if test "${ac_cv_prog_GOC+set}" = set; then : | |
4207 | $as_echo_n "(cached) " >&6 | |
4208 | else | |
4209 | if test -n "$GOC"; then | |
4210 | ac_cv_prog_GOC="$GOC" # Let the user override the test. | |
4211 | else | |
4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4213 | for as_dir in $PATH | |
4214 | do | |
4215 | IFS=$as_save_IFS | |
4216 | test -z "$as_dir" && as_dir=. | |
4217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4219 | ac_cv_prog_GOC="$ac_tool_prefix}gccgo" | |
4220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4221 | break 2 | |
4222 | fi | |
4223 | done | |
4224 | done | |
4225 | IFS=$as_save_IFS | |
4226 | ||
4227 | fi | |
4228 | fi | |
4229 | GOC=$ac_cv_prog_GOC | |
4230 | if test -n "$GOC"; then | |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 | |
4232 | $as_echo "$GOC" >&6; } | |
4233 | else | |
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4235 | $as_echo "no" >&6; } | |
4236 | fi | |
4237 | ||
4238 | ||
4239 | fi | |
4240 | fi | |
4241 | if test -z "$GOC"; then | |
4242 | # Extract the first word of "gccgo", so it can be a program name with args. | |
4243 | set dummy gccgo; ac_word=$2 | |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4245 | $as_echo_n "checking for $ac_word... " >&6; } | |
4246 | if test "${ac_cv_prog_GOC+set}" = set; then : | |
4247 | $as_echo_n "(cached) " >&6 | |
4248 | else | |
4249 | if test -n "$GOC"; then | |
4250 | ac_cv_prog_GOC="$GOC" # Let the user override the test. | |
4251 | else | |
4252 | ac_prog_rejected=no | |
4253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4254 | for as_dir in $PATH | |
4255 | do | |
4256 | IFS=$as_save_IFS | |
4257 | test -z "$as_dir" && as_dir=. | |
4258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4260 | if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then | |
4261 | ac_prog_rejected=yes | |
4262 | continue | |
4263 | fi | |
4264 | ac_cv_prog_GOC="gccgo" | |
4265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4266 | break 2 | |
4267 | fi | |
4268 | done | |
4269 | done | |
4270 | IFS=$as_save_IFS | |
4271 | ||
4272 | if test $ac_prog_rejected = yes; then | |
4273 | # We found a bogon in the path, so make sure we never use it. | |
4274 | set dummy $ac_cv_prog_GOC | |
4275 | shift | |
4276 | if test $# != 0; then | |
4277 | # We chose a different compiler from the bogus one. | |
4278 | # However, it has the same basename, so the bogon will be chosen | |
4279 | # first if we set GOC to just the basename; use the full file name. | |
4280 | shift | |
4281 | ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@" | |
4282 | fi | |
4283 | fi | |
4284 | fi | |
4285 | fi | |
4286 | GOC=$ac_cv_prog_GOC | |
4287 | if test -n "$GOC"; then | |
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 | |
4289 | $as_echo "$GOC" >&6; } | |
4290 | else | |
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4292 | $as_echo "no" >&6; } | |
4293 | fi | |
4294 | ||
4295 | ||
4296 | fi | |
4297 | ||
4298 | ||
4299 | # Provide some information about the compiler. | |
4300 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5 | |
4301 | set X $ac_compile | |
4302 | ac_compiler=$2 | |
4303 | { { ac_try="$ac_compiler --version >&5" | |
4304 | case "(($ac_try" in | |
4305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4306 | *) ac_try_echo=$ac_try;; | |
4307 | esac | |
4308 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4309 | $as_echo "$ac_try_echo"; } >&5 | |
4310 | (eval "$ac_compiler --version >&5") 2>conftest.err | |
4311 | ac_status=$? | |
4312 | if test -s conftest.err; then | |
4313 | sed '10a\ | |
4314 | ... rest of stderr output deleted ... | |
4315 | 10q' conftest.err >conftest.er1 | |
4316 | cat conftest.er1 >&5 | |
4317 | rm -f conftest.er1 conftest.err | |
4318 | fi | |
4319 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4320 | test $ac_status = 0; } | |
4321 | GOCFLAGS="-g -O2" | |
4322 | ac_ext=c | |
4323 | ac_cpp='$CPP $CPPFLAGS' | |
4324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4327 | ||
4328 | ||
4329 | ||
4330 | ||
4331 | ||
f163907e ILT |
4332 | case ${host} in |
4333 | *-*-aix*) | |
4334 | # static hash tables crashes on AIX when libgo is built with O2 | |
4335 | CFLAGS="$CFLAGS -fno-section-anchors" | |
4336 | GOCFLAGS="$GOCFLAGS -fno-section-anchors" | |
4337 | ;; | |
4338 | esac | |
4339 | ||
7a938933 ILT |
4340 | |
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
4342 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4343 | # Check whether --enable-maintainer-mode was given. | |
4344 | if test "${enable_maintainer_mode+set}" = set; then : | |
4345 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4346 | else | |
4347 | USE_MAINTAINER_MODE=no | |
4348 | fi | |
4349 | ||
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4351 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4352 | if test $USE_MAINTAINER_MODE = yes; then | |
4353 | MAINTAINER_MODE_TRUE= | |
4354 | MAINTAINER_MODE_FALSE='#' | |
4355 | else | |
4356 | MAINTAINER_MODE_TRUE='#' | |
4357 | MAINTAINER_MODE_FALSE= | |
4358 | fi | |
4359 | ||
4360 | MAINT=$MAINTAINER_MODE_TRUE | |
4361 | ||
4362 | ||
4363 | ||
061793a4 ILT |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4365 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4366 | if test "${ac_cv_path_SED+set}" = set; then : | |
7a938933 ILT |
4367 | $as_echo_n "(cached) " >&6 |
4368 | else | |
061793a4 ILT |
4369 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4370 | for ac_i in 1 2 3 4 5 6 7; do | |
4371 | ac_script="$ac_script$as_nl$ac_script" | |
4372 | done | |
4373 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4374 | { ac_script=; unset ac_script;} | |
4375 | if test -z "$SED"; then | |
4376 | ac_path_SED_found=false | |
4377 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4379 | for as_dir in $PATH | |
7a938933 | 4380 | do |
061793a4 ILT |
4381 | IFS=$as_save_IFS |
4382 | test -z "$as_dir" && as_dir=. | |
4383 | for ac_prog in sed gsed; do | |
4384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4385 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4386 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4387 | # Check for GNU ac_path_SED and select it if it is found. | |
4388 | # Check for GNU $ac_path_SED | |
4389 | case `"$ac_path_SED" --version 2>&1` in | |
4390 | *GNU*) | |
4391 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4392 | *) | |
4393 | ac_count=0 | |
4394 | $as_echo_n 0123456789 >"conftest.in" | |
4395 | while : | |
4396 | do | |
4397 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4398 | mv "conftest.tmp" "conftest.in" | |
4399 | cp "conftest.in" "conftest.nl" | |
4400 | $as_echo '' >> "conftest.nl" | |
4401 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4402 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4403 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4404 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4405 | # Best one so far, save it but keep looking for a better one | |
4406 | ac_cv_path_SED="$ac_path_SED" | |
4407 | ac_path_SED_max=$ac_count | |
4408 | fi | |
4409 | # 10*(2^10) chars as input seems more than enough | |
4410 | test $ac_count -gt 10 && break | |
4411 | done | |
4412 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4413 | esac | |
7a938933 | 4414 | |
061793a4 ILT |
4415 | $ac_path_SED_found && break 3 |
4416 | done | |
4417 | done | |
4418 | done | |
4419 | IFS=$as_save_IFS | |
4420 | if test -z "$ac_cv_path_SED"; then | |
4421 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4422 | fi | |
7a938933 | 4423 | else |
061793a4 | 4424 | ac_cv_path_SED=$SED |
7a938933 ILT |
4425 | fi |
4426 | ||
4427 | fi | |
061793a4 ILT |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4429 | $as_echo "$ac_cv_path_SED" >&6; } | |
4430 | SED="$ac_cv_path_SED" | |
4431 | rm -f conftest.sed | |
4432 | ||
4433 | test -z "$SED" && SED=sed | |
4434 | Xsed="$SED -e 1s/^X//" | |
4435 | ||
7a938933 ILT |
4436 | |
4437 | ||
4438 | ||
4439 | ||
4440 | ||
4441 | ||
4442 | ||
4443 | ||
4444 | ||
4445 | ||
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4447 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4448 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4449 | $as_echo_n "(cached) " >&6 | |
4450 | else | |
4451 | if test -z "$GREP"; then | |
4452 | ac_path_GREP_found=false | |
4453 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4455 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4456 | do | |
4457 | IFS=$as_save_IFS | |
4458 | test -z "$as_dir" && as_dir=. | |
4459 | for ac_prog in grep ggrep; do | |
4460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4461 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4462 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4463 | # Check for GNU ac_path_GREP and select it if it is found. | |
4464 | # Check for GNU $ac_path_GREP | |
4465 | case `"$ac_path_GREP" --version 2>&1` in | |
4466 | *GNU*) | |
4467 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4468 | *) | |
4469 | ac_count=0 | |
4470 | $as_echo_n 0123456789 >"conftest.in" | |
4471 | while : | |
4472 | do | |
4473 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4474 | mv "conftest.tmp" "conftest.in" | |
4475 | cp "conftest.in" "conftest.nl" | |
4476 | $as_echo 'GREP' >> "conftest.nl" | |
4477 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4478 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4479 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4480 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4481 | # Best one so far, save it but keep looking for a better one | |
4482 | ac_cv_path_GREP="$ac_path_GREP" | |
4483 | ac_path_GREP_max=$ac_count | |
4484 | fi | |
4485 | # 10*(2^10) chars as input seems more than enough | |
4486 | test $ac_count -gt 10 && break | |
4487 | done | |
4488 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4489 | esac | |
4490 | ||
4491 | $ac_path_GREP_found && break 3 | |
4492 | done | |
4493 | done | |
4494 | done | |
4495 | IFS=$as_save_IFS | |
4496 | if test -z "$ac_cv_path_GREP"; then | |
4497 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4498 | fi | |
4499 | else | |
4500 | ac_cv_path_GREP=$GREP | |
4501 | fi | |
4502 | ||
4503 | fi | |
4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4505 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4506 | GREP="$ac_cv_path_GREP" | |
4507 | ||
4508 | ||
4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4510 | $as_echo_n "checking for egrep... " >&6; } | |
4511 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4512 | $as_echo_n "(cached) " >&6 | |
4513 | else | |
4514 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4515 | then ac_cv_path_EGREP="$GREP -E" | |
4516 | else | |
4517 | if test -z "$EGREP"; then | |
4518 | ac_path_EGREP_found=false | |
4519 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4521 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4522 | do | |
4523 | IFS=$as_save_IFS | |
4524 | test -z "$as_dir" && as_dir=. | |
4525 | for ac_prog in egrep; do | |
4526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4527 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4528 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4529 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4530 | # Check for GNU $ac_path_EGREP | |
4531 | case `"$ac_path_EGREP" --version 2>&1` in | |
4532 | *GNU*) | |
4533 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4534 | *) | |
4535 | ac_count=0 | |
4536 | $as_echo_n 0123456789 >"conftest.in" | |
4537 | while : | |
4538 | do | |
4539 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4540 | mv "conftest.tmp" "conftest.in" | |
4541 | cp "conftest.in" "conftest.nl" | |
4542 | $as_echo 'EGREP' >> "conftest.nl" | |
4543 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4544 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4545 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4546 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4547 | # Best one so far, save it but keep looking for a better one | |
4548 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4549 | ac_path_EGREP_max=$ac_count | |
4550 | fi | |
4551 | # 10*(2^10) chars as input seems more than enough | |
4552 | test $ac_count -gt 10 && break | |
4553 | done | |
4554 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4555 | esac | |
4556 | ||
4557 | $ac_path_EGREP_found && break 3 | |
4558 | done | |
4559 | done | |
4560 | done | |
4561 | IFS=$as_save_IFS | |
4562 | if test -z "$ac_cv_path_EGREP"; then | |
4563 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4564 | fi | |
4565 | else | |
4566 | ac_cv_path_EGREP=$EGREP | |
4567 | fi | |
4568 | ||
4569 | fi | |
4570 | fi | |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4572 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4573 | EGREP="$ac_cv_path_EGREP" | |
4574 | ||
4575 | ||
061793a4 ILT |
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4577 | $as_echo_n "checking for fgrep... " >&6; } | |
4578 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
e02ed81e ILT |
4579 | $as_echo_n "(cached) " >&6 |
4580 | else | |
061793a4 ILT |
4581 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4582 | then ac_cv_path_FGREP="$GREP -F" | |
4583 | else | |
4584 | if test -z "$FGREP"; then | |
4585 | ac_path_FGREP_found=false | |
7a938933 ILT |
4586 | # Loop through the user's path and test for each of PROGNAME-LIST |
4587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
061793a4 | 4588 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
7a938933 ILT |
4589 | do |
4590 | IFS=$as_save_IFS | |
4591 | test -z "$as_dir" && as_dir=. | |
061793a4 | 4592 | for ac_prog in fgrep; do |
7a938933 | 4593 | for ac_exec_ext in '' $ac_executable_extensions; do |
061793a4 ILT |
4594 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
4595 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4596 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4597 | # Check for GNU $ac_path_FGREP | |
4598 | case `"$ac_path_FGREP" --version 2>&1` in | |
7a938933 | 4599 | *GNU*) |
061793a4 | 4600 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
7a938933 ILT |
4601 | *) |
4602 | ac_count=0 | |
4603 | $as_echo_n 0123456789 >"conftest.in" | |
4604 | while : | |
4605 | do | |
4606 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4607 | mv "conftest.tmp" "conftest.in" | |
4608 | cp "conftest.in" "conftest.nl" | |
061793a4 ILT |
4609 | $as_echo 'FGREP' >> "conftest.nl" |
4610 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7a938933 ILT |
4611 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4612 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
061793a4 | 4613 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
7a938933 | 4614 | # Best one so far, save it but keep looking for a better one |
061793a4 ILT |
4615 | ac_cv_path_FGREP="$ac_path_FGREP" |
4616 | ac_path_FGREP_max=$ac_count | |
7a938933 ILT |
4617 | fi |
4618 | # 10*(2^10) chars as input seems more than enough | |
4619 | test $ac_count -gt 10 && break | |
4620 | done | |
4621 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4622 | esac | |
4623 | ||
061793a4 | 4624 | $ac_path_FGREP_found && break 3 |
7a938933 ILT |
4625 | done |
4626 | done | |
4627 | done | |
4628 | IFS=$as_save_IFS | |
061793a4 ILT |
4629 | if test -z "$ac_cv_path_FGREP"; then |
4630 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7a938933 ILT |
4631 | fi |
4632 | else | |
061793a4 | 4633 | ac_cv_path_FGREP=$FGREP |
e02ed81e ILT |
4634 | fi |
4635 | ||
061793a4 | 4636 | fi |
7a938933 ILT |
4637 | fi |
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4639 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4640 | FGREP="$ac_cv_path_FGREP" | |
4641 | ||
4642 | ||
4643 | test -z "$GREP" && GREP=grep | |
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | ||
4651 | ||
4652 | ||
4653 | ||
4654 | ||
4655 | ||
4656 | ||
4657 | ||
4658 | ||
4659 | ||
4660 | ||
4661 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4662 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4663 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4664 | ||
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4666 | $as_echo_n "checking how to print strings... " >&6; } | |
4667 | # Test print first, because it will be a builtin if present. | |
4668 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
4669 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4670 | ECHO='print -r --' | |
4671 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4672 | ECHO='printf %s\n' | |
4673 | else | |
4674 | # Use this function as a fallback that always works. | |
4675 | func_fallback_echo () | |
4676 | { | |
4677 | eval 'cat <<_LTECHO_EOF | |
4678 | $1 | |
4679 | _LTECHO_EOF' | |
4680 | } | |
4681 | ECHO='func_fallback_echo' | |
4682 | fi | |
4683 | ||
4684 | # func_echo_all arg... | |
4685 | # Invoke $ECHO with all args, space-separated. | |
4686 | func_echo_all () | |
4687 | { | |
4688 | $ECHO "" | |
4689 | } | |
4690 | ||
4691 | case "$ECHO" in | |
4692 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4693 | $as_echo "printf" >&6; } ;; | |
4694 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4695 | $as_echo "print -r" >&6; } ;; | |
4696 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4697 | $as_echo "cat" >&6; } ;; | |
4698 | esac | |
4699 | ||
4700 | ||
4701 | ||
4702 | ||
4703 | ||
4704 | ||
4705 | ||
4706 | ||
4707 | ||
4708 | ||
4709 | ||
4710 | ||
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | # Check whether --with-gnu-ld was given. | |
4716 | if test "${with_gnu_ld+set}" = set; then : | |
4717 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4718 | else | |
4719 | with_gnu_ld=no | |
4720 | fi | |
4721 | ||
4722 | ac_prog=ld | |
4723 | if test "$GCC" = yes; then | |
4724 | # Check if gcc -print-prog-name=ld gives a path. | |
4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4726 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4727 | case $host in | |
4728 | *-*-mingw*) | |
4729 | # gcc leaves a trailing carriage return which upsets mingw | |
4730 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4731 | *) | |
4732 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4733 | esac | |
4734 | case $ac_prog in | |
4735 | # Accept absolute paths. | |
4736 | [\\/]* | ?:[\\/]*) | |
4737 | re_direlt='/[^/][^/]*/\.\./' | |
4738 | # Canonicalize the pathname of ld | |
4739 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4740 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4741 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4742 | done | |
4743 | test -z "$LD" && LD="$ac_prog" | |
4744 | ;; | |
4745 | "") | |
4746 | # If it fails, then pretend we aren't using GCC. | |
4747 | ac_prog=ld | |
4748 | ;; | |
4749 | *) | |
4750 | # If it is relative, then search for the first ld in PATH. | |
4751 | with_gnu_ld=unknown | |
4752 | ;; | |
4753 | esac | |
4754 | elif test "$with_gnu_ld" = yes; then | |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4756 | $as_echo_n "checking for GNU ld... " >&6; } | |
4757 | else | |
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4759 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4760 | fi | |
4761 | if test "${lt_cv_path_LD+set}" = set; then : | |
4762 | $as_echo_n "(cached) " >&6 | |
4763 | else | |
4764 | if test -z "$LD"; then | |
4765 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4766 | for ac_dir in $PATH; do | |
4767 | IFS="$lt_save_ifs" | |
4768 | test -z "$ac_dir" && ac_dir=. | |
4769 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4770 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4771 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4772 | # but apparently some variants of GNU ld only accept -v. | |
4773 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4774 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4775 | *GNU* | *'with BFD'*) | |
4776 | test "$with_gnu_ld" != no && break | |
4777 | ;; | |
4778 | *) | |
4779 | test "$with_gnu_ld" != yes && break | |
4780 | ;; | |
4781 | esac | |
4782 | fi | |
4783 | done | |
4784 | IFS="$lt_save_ifs" | |
4785 | else | |
4786 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4787 | fi | |
4788 | fi | |
4789 | ||
4790 | LD="$lt_cv_path_LD" | |
4791 | if test -n "$LD"; then | |
4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4793 | $as_echo "$LD" >&6; } | |
4794 | else | |
4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4796 | $as_echo "no" >&6; } | |
4797 | fi | |
4798 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4800 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4801 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
4802 | $as_echo_n "(cached) " >&6 | |
4803 | else | |
4804 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4805 | case `$LD -v 2>&1 </dev/null` in | |
4806 | *GNU* | *'with BFD'*) | |
4807 | lt_cv_prog_gnu_ld=yes | |
4808 | ;; | |
4809 | *) | |
4810 | lt_cv_prog_gnu_ld=no | |
4811 | ;; | |
4812 | esac | |
4813 | fi | |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4815 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4816 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4817 | ||
4818 | ||
4819 | ||
4820 | ||
4821 | ||
4822 | ||
4823 | ||
4824 | ||
4825 | ||
4826 | if test -n "$ac_tool_prefix"; then | |
4827 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4828 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4830 | $as_echo_n "checking for $ac_word... " >&6; } | |
4831 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4832 | $as_echo_n "(cached) " >&6 | |
4833 | else | |
4834 | if test -n "$RANLIB"; then | |
4835 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4836 | else | |
4837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4838 | for as_dir in $PATH | |
4839 | do | |
4840 | IFS=$as_save_IFS | |
4841 | test -z "$as_dir" && as_dir=. | |
4842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4844 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4846 | break 2 | |
4847 | fi | |
4848 | done | |
4849 | done | |
4850 | IFS=$as_save_IFS | |
4851 | ||
4852 | fi | |
4853 | fi | |
4854 | RANLIB=$ac_cv_prog_RANLIB | |
4855 | if test -n "$RANLIB"; then | |
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4857 | $as_echo "$RANLIB" >&6; } | |
4858 | else | |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4860 | $as_echo "no" >&6; } | |
4861 | fi | |
4862 | ||
4863 | ||
4864 | fi | |
4865 | if test -z "$ac_cv_prog_RANLIB"; then | |
4866 | ac_ct_RANLIB=$RANLIB | |
4867 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4868 | set dummy ranlib; ac_word=$2 | |
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4870 | $as_echo_n "checking for $ac_word... " >&6; } | |
4871 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4872 | $as_echo_n "(cached) " >&6 | |
4873 | else | |
4874 | if test -n "$ac_ct_RANLIB"; then | |
4875 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4876 | else | |
4877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4878 | for as_dir in $PATH | |
4879 | do | |
4880 | IFS=$as_save_IFS | |
4881 | test -z "$as_dir" && as_dir=. | |
4882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4884 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4886 | break 2 | |
4887 | fi | |
4888 | done | |
4889 | done | |
4890 | IFS=$as_save_IFS | |
4891 | ||
4892 | fi | |
4893 | fi | |
4894 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4895 | if test -n "$ac_ct_RANLIB"; then | |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4897 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4898 | else | |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4900 | $as_echo "no" >&6; } | |
4901 | fi | |
4902 | ||
4903 | if test "x$ac_ct_RANLIB" = x; then | |
4904 | RANLIB=":" | |
4905 | else | |
4906 | case $cross_compiling:$ac_tool_warned in | |
4907 | yes:) | |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4909 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4910 | ac_tool_warned=yes ;; | |
4911 | esac | |
4912 | RANLIB=$ac_ct_RANLIB | |
4913 | fi | |
4914 | else | |
4915 | RANLIB="$ac_cv_prog_RANLIB" | |
4916 | fi | |
4917 | ||
4918 | if test -n "$ac_tool_prefix"; then | |
4919 | # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args. | |
4920 | set dummy ${ac_tool_prefix}objcopy; ac_word=$2 | |
4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4922 | $as_echo_n "checking for $ac_word... " >&6; } | |
4923 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
4924 | $as_echo_n "(cached) " >&6 | |
4925 | else | |
4926 | if test -n "$OBJCOPY"; then | |
4927 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
4928 | else | |
4929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4930 | for as_dir in $PATH | |
4931 | do | |
4932 | IFS=$as_save_IFS | |
4933 | test -z "$as_dir" && as_dir=. | |
4934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4936 | ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy" | |
4937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4938 | break 2 | |
4939 | fi | |
4940 | done | |
4941 | done | |
4942 | IFS=$as_save_IFS | |
4943 | ||
4944 | fi | |
4945 | fi | |
4946 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
4947 | if test -n "$OBJCOPY"; then | |
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
4949 | $as_echo "$OBJCOPY" >&6; } | |
4950 | else | |
4951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4952 | $as_echo "no" >&6; } | |
4953 | fi | |
4954 | ||
4955 | ||
4956 | fi | |
4957 | if test -z "$ac_cv_prog_OBJCOPY"; then | |
4958 | ac_ct_OBJCOPY=$OBJCOPY | |
4959 | # Extract the first word of "objcopy", so it can be a program name with args. | |
4960 | set dummy objcopy; ac_word=$2 | |
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4962 | $as_echo_n "checking for $ac_word... " >&6; } | |
4963 | if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then : | |
4964 | $as_echo_n "(cached) " >&6 | |
4965 | else | |
4966 | if test -n "$ac_ct_OBJCOPY"; then | |
4967 | ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. | |
4968 | else | |
4969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4970 | for as_dir in $PATH | |
4971 | do | |
4972 | IFS=$as_save_IFS | |
4973 | test -z "$as_dir" && as_dir=. | |
4974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4976 | ac_cv_prog_ac_ct_OBJCOPY="objcopy" | |
4977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4978 | break 2 | |
4979 | fi | |
4980 | done | |
4981 | done | |
4982 | IFS=$as_save_IFS | |
4983 | ||
4984 | fi | |
4985 | fi | |
4986 | ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY | |
4987 | if test -n "$ac_ct_OBJCOPY"; then | |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 | |
4989 | $as_echo "$ac_ct_OBJCOPY" >&6; } | |
4990 | else | |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4992 | $as_echo "no" >&6; } | |
4993 | fi | |
4994 | ||
4995 | if test "x$ac_ct_OBJCOPY" = x; then | |
4996 | OBJCOPY="missing-objcopy" | |
4997 | else | |
4998 | case $cross_compiling:$ac_tool_warned in | |
4999 | yes:) | |
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5001 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5002 | ac_tool_warned=yes ;; | |
5003 | esac | |
5004 | OBJCOPY=$ac_ct_OBJCOPY | |
5005 | fi | |
5006 | else | |
5007 | OBJCOPY="$ac_cv_prog_OBJCOPY" | |
5008 | fi | |
5009 | ||
5010 | ||
5011 | enable_dlopen=yes | |
5012 | ||
5013 | ||
5014 | ||
5015 | case `pwd` in | |
5016 | *\ * | *\ *) | |
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5018 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5019 | esac | |
5020 | ||
5021 | ||
5022 | ||
5023 | macro_version='2.2.7a' | |
5024 | macro_revision='1.3134' | |
5025 | ||
5026 | ||
5027 | ||
5028 | ||
5029 | ||
5030 | ||
5031 | ||
5032 | ||
5033 | ||
5034 | ||
5035 | ||
5036 | ||
5037 | ||
5038 | ltmain="$ac_aux_dir/ltmain.sh" | |
5039 | ||
5040 | # Backslashify metacharacters that are still active within | |
5041 | # double-quoted strings. | |
5042 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5043 | ||
5044 | # Same as above, but do not quote variable references. | |
5045 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5046 | ||
5047 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5048 | # double_quote_subst'ed string. | |
5049 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5050 | ||
5051 | # Sed substitution to delay expansion of an escaped single quote. | |
5052 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5053 | ||
5054 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5055 | no_glob_subst='s/\*/\\\*/g' | |
5056 | ||
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5058 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5059 | if test "${lt_cv_path_NM+set}" = set; then : | |
5060 | $as_echo_n "(cached) " >&6 | |
5061 | else | |
5062 | if test -n "$NM"; then | |
5063 | # Let the user override the test. | |
5064 | lt_cv_path_NM="$NM" | |
5065 | else | |
5066 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5067 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5068 | lt_nm_to_check="$lt_nm_to_check nm" | |
5069 | fi | |
5070 | for lt_tmp_nm in $lt_nm_to_check; do | |
5071 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5072 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5073 | IFS="$lt_save_ifs" | |
5074 | test -z "$ac_dir" && ac_dir=. | |
5075 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5076 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5077 | # Check to see if the nm accepts a BSD-compat flag. | |
5078 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5079 | # nm: unknown option "B" ignored | |
5080 | # Tru64's nm complains that /dev/null is an invalid object file | |
5081 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5082 | */dev/null* | *'Invalid file or object type'*) | |
5083 | lt_cv_path_NM="$tmp_nm -B" | |
5084 | break | |
5085 | ;; | |
5086 | *) | |
5087 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5088 | */dev/null*) | |
5089 | lt_cv_path_NM="$tmp_nm -p" | |
5090 | break | |
5091 | ;; | |
5092 | *) | |
5093 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5094 | continue # so that we can try to find one that supports BSD flags | |
5095 | ;; | |
5096 | esac | |
5097 | ;; | |
5098 | esac | |
5099 | fi | |
5100 | done | |
5101 | IFS="$lt_save_ifs" | |
5102 | done | |
5103 | : ${lt_cv_path_NM=no} | |
5104 | fi | |
5105 | fi | |
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5107 | $as_echo "$lt_cv_path_NM" >&6; } | |
5108 | if test "$lt_cv_path_NM" != "no"; then | |
5109 | NM="$lt_cv_path_NM" | |
5110 | else | |
5111 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5112 | if test -n "$DUMPBIN"; then : | |
5113 | # Let the user override the test. | |
5114 | else | |
5115 | if test -n "$ac_tool_prefix"; then | |
5116 | for ac_prog in dumpbin "link -dump" | |
5117 | do | |
5118 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5119 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5121 | $as_echo_n "checking for $ac_word... " >&6; } | |
5122 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5123 | $as_echo_n "(cached) " >&6 | |
5124 | else | |
5125 | if test -n "$DUMPBIN"; then | |
5126 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5127 | else | |
5128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5129 | for as_dir in $PATH | |
5130 | do | |
5131 | IFS=$as_save_IFS | |
5132 | test -z "$as_dir" && as_dir=. | |
5133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5135 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5137 | break 2 | |
5138 | fi | |
5139 | done | |
5140 | done | |
5141 | IFS=$as_save_IFS | |
5142 | ||
5143 | fi | |
5144 | fi | |
5145 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5146 | if test -n "$DUMPBIN"; then | |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5148 | $as_echo "$DUMPBIN" >&6; } | |
5149 | else | |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5151 | $as_echo "no" >&6; } | |
5152 | fi | |
5153 | ||
5154 | ||
5155 | test -n "$DUMPBIN" && break | |
5156 | done | |
5157 | fi | |
5158 | if test -z "$DUMPBIN"; then | |
5159 | ac_ct_DUMPBIN=$DUMPBIN | |
5160 | for ac_prog in dumpbin "link -dump" | |
5161 | do | |
5162 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5163 | set dummy $ac_prog; ac_word=$2 | |
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5165 | $as_echo_n "checking for $ac_word... " >&6; } | |
5166 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5167 | $as_echo_n "(cached) " >&6 | |
5168 | else | |
5169 | if test -n "$ac_ct_DUMPBIN"; then | |
5170 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5171 | else | |
5172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5173 | for as_dir in $PATH | |
5174 | do | |
5175 | IFS=$as_save_IFS | |
5176 | test -z "$as_dir" && as_dir=. | |
5177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5179 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5181 | break 2 | |
5182 | fi | |
5183 | done | |
5184 | done | |
5185 | IFS=$as_save_IFS | |
5186 | ||
5187 | fi | |
5188 | fi | |
5189 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5190 | if test -n "$ac_ct_DUMPBIN"; then | |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5192 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5193 | else | |
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5195 | $as_echo "no" >&6; } | |
5196 | fi | |
5197 | ||
5198 | ||
5199 | test -n "$ac_ct_DUMPBIN" && break | |
5200 | done | |
5201 | ||
5202 | if test "x$ac_ct_DUMPBIN" = x; then | |
5203 | DUMPBIN=":" | |
5204 | else | |
5205 | case $cross_compiling:$ac_tool_warned in | |
5206 | yes:) | |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5208 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5209 | ac_tool_warned=yes ;; | |
5210 | esac | |
5211 | DUMPBIN=$ac_ct_DUMPBIN | |
5212 | fi | |
5213 | fi | |
5214 | ||
5215 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5216 | *COFF*) | |
5217 | DUMPBIN="$DUMPBIN -symbols" | |
5218 | ;; | |
5219 | *) | |
5220 | DUMPBIN=: | |
5221 | ;; | |
5222 | esac | |
5223 | fi | |
5224 | ||
5225 | if test "$DUMPBIN" != ":"; then | |
5226 | NM="$DUMPBIN" | |
5227 | fi | |
5228 | fi | |
5229 | test -z "$NM" && NM=nm | |
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5237 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5238 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5239 | $as_echo_n "(cached) " >&6 | |
5240 | else | |
5241 | lt_cv_nm_interface="BSD nm" | |
5242 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5243 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5244 | (eval "$ac_compile" 2>conftest.err) | |
5245 | cat conftest.err >&5 | |
5246 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5247 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5248 | cat conftest.err >&5 | |
5249 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5250 | cat conftest.out >&5 | |
5251 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5252 | lt_cv_nm_interface="MS dumpbin" | |
5253 | fi | |
5254 | rm -f conftest* | |
5255 | fi | |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5257 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5258 | ||
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5260 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5261 | LN_S=$as_ln_s | |
5262 | if test "$LN_S" = "ln -s"; then | |
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5264 | $as_echo "yes" >&6; } | |
5265 | else | |
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5267 | $as_echo "no, using $LN_S" >&6; } | |
5268 | fi | |
5269 | ||
5270 | # find the maximum length of command line arguments | |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5272 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5273 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5274 | $as_echo_n "(cached) " >&6 | |
5275 | else | |
5276 | i=0 | |
5277 | teststring="ABCD" | |
5278 | ||
5279 | case $build_os in | |
5280 | msdosdjgpp*) | |
5281 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5282 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5283 | # during glob expansion). Even if it were fixed, the result of this | |
5284 | # check would be larger than it should be. | |
5285 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5286 | ;; | |
5287 | ||
5288 | gnu*) | |
5289 | # Under GNU Hurd, this test is not required because there is | |
5290 | # no limit to the length of command line arguments. | |
5291 | # Libtool will interpret -1 as no limit whatsoever | |
5292 | lt_cv_sys_max_cmd_len=-1; | |
5293 | ;; | |
5294 | ||
5295 | cygwin* | mingw* | cegcc*) | |
5296 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5297 | # about 5 minutes as the teststring grows exponentially. | |
5298 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5299 | # you end up with a "frozen" computer, even though with patience | |
5300 | # the test eventually succeeds (with a max line length of 256k). | |
5301 | # Instead, let's just punt: use the minimum linelength reported by | |
5302 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5303 | lt_cv_sys_max_cmd_len=8192; | |
5304 | ;; | |
5305 | ||
5306 | mint*) | |
5307 | # On MiNT this can take a long time and run out of memory. | |
5308 | lt_cv_sys_max_cmd_len=8192; | |
5309 | ;; | |
5310 | ||
5311 | amigaos*) | |
5312 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5313 | # So we just punt and use a minimum line length of 8192. | |
5314 | lt_cv_sys_max_cmd_len=8192; | |
5315 | ;; | |
5316 | ||
5317 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5318 | # This has been around since 386BSD, at least. Likely further. | |
5319 | if test -x /sbin/sysctl; then | |
5320 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5321 | elif test -x /usr/sbin/sysctl; then | |
5322 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5323 | else | |
5324 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5325 | fi | |
5326 | # And add a safety zone | |
5327 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5328 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5329 | ;; | |
5330 | ||
5331 | interix*) | |
5332 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5333 | lt_cv_sys_max_cmd_len=196608 | |
5334 | ;; | |
5335 | ||
5336 | osf*) | |
5337 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5338 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5339 | # nice to cause kernel panics so lets avoid the loop below. | |
5340 | # First set a reasonable default. | |
5341 | lt_cv_sys_max_cmd_len=16384 | |
5342 | # | |
5343 | if test -x /sbin/sysconfig; then | |
5344 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5345 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5346 | esac | |
5347 | fi | |
5348 | ;; | |
5349 | sco3.2v5*) | |
5350 | lt_cv_sys_max_cmd_len=102400 | |
5351 | ;; | |
5352 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5353 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5354 | if test -n "$kargmax"; then | |
5355 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5356 | else | |
5357 | lt_cv_sys_max_cmd_len=32768 | |
5358 | fi | |
5359 | ;; | |
5360 | *) | |
5361 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5362 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5363 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5364 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5365 | else | |
5366 | # Make teststring a little bigger before we do anything with it. | |
5367 | # a 1K string should be a reasonable start. | |
5368 | for i in 1 2 3 4 5 6 7 8 ; do | |
5369 | teststring=$teststring$teststring | |
5370 | done | |
5371 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5372 | # If test is not a shell built-in, we'll probably end up computing a | |
5373 | # maximum length that is only half of the actual maximum length, but | |
5374 | # we can't tell. | |
5375 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
5376 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5377 | test $i != 17 # 1/2 MB should be enough | |
5378 | do | |
5379 | i=`expr $i + 1` | |
5380 | teststring=$teststring$teststring | |
5381 | done | |
5382 | # Only check the string length outside the loop. | |
5383 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5384 | teststring= | |
5385 | # Add a significant safety factor because C++ compilers can tack on | |
5386 | # massive amounts of additional arguments before passing them to the | |
5387 | # linker. It appears as though 1/2 is a usable value. | |
5388 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5389 | fi | |
5390 | ;; | |
5391 | esac | |
5392 | ||
5393 | fi | |
5394 | ||
5395 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5397 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5398 | else | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5400 | $as_echo "none" >&6; } | |
5401 | fi | |
5402 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5403 | ||
5404 | ||
5405 | ||
5406 | ||
5407 | ||
5408 | ||
5409 | : ${CP="cp -f"} | |
5410 | : ${MV="mv -f"} | |
5411 | : ${RM="rm -f"} | |
5412 | ||
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5414 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5415 | # Try some XSI features | |
5416 | xsi_shell=no | |
5417 | ( _lt_dummy="a/b/c" | |
5418 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5419 | = c,a/b,, \ | |
5420 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5421 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5422 | && xsi_shell=yes | |
5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5424 | $as_echo "$xsi_shell" >&6; } | |
5425 | ||
5426 | ||
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5428 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5429 | lt_shell_append=no | |
5430 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5431 | >/dev/null 2>&1 \ | |
5432 | && lt_shell_append=yes | |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5434 | $as_echo "$lt_shell_append" >&6; } | |
5435 | ||
5436 | ||
5437 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5438 | lt_unset=unset | |
5439 | else | |
5440 | lt_unset=false | |
5441 | fi | |
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | # test EBCDIC or ASCII | |
5448 | case `echo X|tr X '\101'` in | |
5449 | A) # ASCII based system | |
5450 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5451 | lt_SP2NL='tr \040 \012' | |
5452 | lt_NL2SP='tr \015\012 \040\040' | |
5453 | ;; | |
5454 | *) # EBCDIC based system | |
5455 | lt_SP2NL='tr \100 \n' | |
5456 | lt_NL2SP='tr \r\n \100\100' | |
5457 | ;; | |
5458 | esac | |
5459 | ||
5460 | ||
5461 | ||
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | ||
5467 | ||
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5469 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5470 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5471 | $as_echo_n "(cached) " >&6 | |
5472 | else | |
5473 | lt_cv_ld_reload_flag='-r' | |
5474 | fi | |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5476 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5477 | reload_flag=$lt_cv_ld_reload_flag | |
5478 | case $reload_flag in | |
5479 | "" | " "*) ;; | |
5480 | *) reload_flag=" $reload_flag" ;; | |
5481 | esac | |
5482 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5483 | case $host_os in | |
5484 | darwin*) | |
5485 | if test "$GCC" = yes; then | |
5486 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5487 | else | |
5488 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5489 | fi | |
5490 | ;; | |
5491 | esac | |
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | if test -n "$ac_tool_prefix"; then | |
5502 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5503 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5505 | $as_echo_n "checking for $ac_word... " >&6; } | |
5506 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5507 | $as_echo_n "(cached) " >&6 | |
5508 | else | |
5509 | if test -n "$OBJDUMP"; then | |
5510 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5511 | else | |
5512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5513 | for as_dir in $PATH | |
5514 | do | |
5515 | IFS=$as_save_IFS | |
5516 | test -z "$as_dir" && as_dir=. | |
5517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5519 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5521 | break 2 | |
5522 | fi | |
5523 | done | |
5524 | done | |
5525 | IFS=$as_save_IFS | |
5526 | ||
5527 | fi | |
5528 | fi | |
5529 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5530 | if test -n "$OBJDUMP"; then | |
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5532 | $as_echo "$OBJDUMP" >&6; } | |
5533 | else | |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5535 | $as_echo "no" >&6; } | |
5536 | fi | |
5537 | ||
5538 | ||
5539 | fi | |
5540 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5541 | ac_ct_OBJDUMP=$OBJDUMP | |
5542 | # Extract the first word of "objdump", so it can be a program name with args. | |
5543 | set dummy objdump; ac_word=$2 | |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5545 | $as_echo_n "checking for $ac_word... " >&6; } | |
5546 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5547 | $as_echo_n "(cached) " >&6 | |
5548 | else | |
5549 | if test -n "$ac_ct_OBJDUMP"; then | |
5550 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5551 | else | |
5552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5553 | for as_dir in $PATH | |
5554 | do | |
5555 | IFS=$as_save_IFS | |
5556 | test -z "$as_dir" && as_dir=. | |
5557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5558 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5559 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5561 | break 2 | |
5562 | fi | |
5563 | done | |
5564 | done | |
5565 | IFS=$as_save_IFS | |
5566 | ||
5567 | fi | |
5568 | fi | |
5569 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5570 | if test -n "$ac_ct_OBJDUMP"; then | |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5572 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5573 | else | |
5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5575 | $as_echo "no" >&6; } | |
5576 | fi | |
5577 | ||
5578 | if test "x$ac_ct_OBJDUMP" = x; then | |
5579 | OBJDUMP="false" | |
5580 | else | |
5581 | case $cross_compiling:$ac_tool_warned in | |
5582 | yes:) | |
5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5584 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5585 | ac_tool_warned=yes ;; | |
5586 | esac | |
5587 | OBJDUMP=$ac_ct_OBJDUMP | |
5588 | fi | |
5589 | else | |
5590 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5591 | fi | |
5592 | ||
5593 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5594 | ||
5595 | ||
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
5601 | ||
5602 | ||
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5604 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5605 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
5606 | $as_echo_n "(cached) " >&6 | |
5607 | else | |
5608 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5609 | lt_cv_file_magic_test_file= | |
5610 | lt_cv_deplibs_check_method='unknown' | |
5611 | # Need to set the preceding variable on all platforms that support | |
5612 | # interlibrary dependencies. | |
5613 | # 'none' -- dependencies not supported. | |
5614 | # `unknown' -- same as none, but documents that we really don't know. | |
5615 | # 'pass_all' -- all dependencies passed with no checks. | |
5616 | # 'test_compile' -- check by making test program. | |
5617 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5618 | # which responds to the $file_magic_cmd with a given extended regex. | |
5619 | # If you have `file' or equivalent on your system and you're not sure | |
5620 | # whether `pass_all' will *always* work, you probably want this one. | |
5621 | ||
5622 | case $host_os in | |
5623 | aix[4-9]*) | |
5624 | lt_cv_deplibs_check_method=pass_all | |
5625 | ;; | |
5626 | ||
5627 | beos*) | |
5628 | lt_cv_deplibs_check_method=pass_all | |
5629 | ;; | |
5630 | ||
5631 | bsdi[45]*) | |
5632 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5633 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5634 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5635 | ;; | |
5636 | ||
5637 | cygwin*) | |
5638 | # func_win32_libid is a shell function defined in ltmain.sh | |
5639 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5640 | lt_cv_file_magic_cmd='func_win32_libid' | |
5641 | ;; | |
5642 | ||
5643 | mingw* | pw32*) | |
5644 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5645 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5646 | # unless we find 'file', for example because we are cross-compiling. | |
5647 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5648 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5649 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5650 | lt_cv_file_magic_cmd='func_win32_libid' | |
5651 | else | |
5652 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5653 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5654 | fi | |
5655 | ;; | |
5656 | ||
5657 | cegcc*) | |
5658 | # use the weaker test based on 'objdump'. See mingw*. | |
5659 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5660 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5661 | ;; | |
5662 | ||
5663 | darwin* | rhapsody*) | |
5664 | lt_cv_deplibs_check_method=pass_all | |
5665 | ;; | |
5666 | ||
5667 | freebsd* | dragonfly*) | |
5668 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5669 | case $host_cpu in | |
5670 | i*86 ) | |
5671 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5672 | # Let's accept both of them until this is cleared up. | |
5673 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5674 | lt_cv_file_magic_cmd=/usr/bin/file | |
5675 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5676 | ;; | |
5677 | esac | |
5678 | else | |
5679 | lt_cv_deplibs_check_method=pass_all | |
5680 | fi | |
5681 | ;; | |
5682 | ||
5683 | gnu*) | |
5684 | lt_cv_deplibs_check_method=pass_all | |
5685 | ;; | |
5686 | ||
5687 | haiku*) | |
5688 | lt_cv_deplibs_check_method=pass_all | |
5689 | ;; | |
5690 | ||
5691 | hpux10.20* | hpux11*) | |
5692 | lt_cv_file_magic_cmd=/usr/bin/file | |
5693 | case $host_cpu in | |
5694 | ia64*) | |
5695 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5696 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5697 | ;; | |
5698 | hppa*64*) | |
5699 | 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]' | |
5700 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5701 | ;; | |
5702 | *) | |
5703 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5704 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5705 | ;; | |
5706 | esac | |
5707 | ;; | |
5708 | ||
5709 | interix[3-9]*) | |
5710 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5711 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5712 | ;; | |
5713 | ||
5714 | irix5* | irix6* | nonstopux*) | |
5715 | case $LD in | |
5716 | *-32|*"-32 ") libmagic=32-bit;; | |
5717 | *-n32|*"-n32 ") libmagic=N32;; | |
5718 | *-64|*"-64 ") libmagic=64-bit;; | |
5719 | *) libmagic=never-match;; | |
5720 | esac | |
5721 | lt_cv_deplibs_check_method=pass_all | |
5722 | ;; | |
5723 | ||
5724 | # This must be Linux ELF. | |
5725 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
5726 | lt_cv_deplibs_check_method=pass_all | |
5727 | ;; | |
5728 | ||
5729 | netbsd*) | |
5730 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5731 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5732 | else | |
5733 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5734 | fi | |
5735 | ;; | |
5736 | ||
5737 | newos6*) | |
5738 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5739 | lt_cv_file_magic_cmd=/usr/bin/file | |
5740 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5741 | ;; | |
5742 | ||
5743 | *nto* | *qnx*) | |
5744 | lt_cv_deplibs_check_method=pass_all | |
5745 | ;; | |
5746 | ||
5747 | openbsd*) | |
5748 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5749 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5750 | else | |
5751 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5752 | fi | |
5753 | ;; | |
5754 | ||
5755 | osf3* | osf4* | osf5*) | |
5756 | lt_cv_deplibs_check_method=pass_all | |
5757 | ;; | |
5758 | ||
5759 | rdos*) | |
5760 | lt_cv_deplibs_check_method=pass_all | |
5761 | ;; | |
5762 | ||
5763 | solaris*) | |
5764 | lt_cv_deplibs_check_method=pass_all | |
5765 | ;; | |
5766 | ||
5767 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5768 | lt_cv_deplibs_check_method=pass_all | |
5769 | ;; | |
5770 | ||
5771 | sysv4 | sysv4.3*) | |
5772 | case $host_vendor in | |
5773 | motorola) | |
5774 | 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]' | |
5775 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5776 | ;; | |
5777 | ncr) | |
5778 | lt_cv_deplibs_check_method=pass_all | |
5779 | ;; | |
5780 | sequent) | |
5781 | lt_cv_file_magic_cmd='/bin/file' | |
5782 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5783 | ;; | |
5784 | sni) | |
5785 | lt_cv_file_magic_cmd='/bin/file' | |
5786 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5787 | lt_cv_file_magic_test_file=/lib/libc.so | |
5788 | ;; | |
5789 | siemens) | |
5790 | lt_cv_deplibs_check_method=pass_all | |
5791 | ;; | |
5792 | pc) | |
5793 | lt_cv_deplibs_check_method=pass_all | |
5794 | ;; | |
5795 | esac | |
5796 | ;; | |
5797 | ||
5798 | tpf*) | |
5799 | lt_cv_deplibs_check_method=pass_all | |
5800 | ;; | |
5801 | esac | |
5802 | ||
5803 | fi | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5805 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5806 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5807 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5808 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5809 | ||
5810 | ||
5811 | ||
5812 | ||
5813 | ||
5814 | ||
5815 | ||
5816 | ||
5817 | ||
5818 | ||
5819 | ||
5820 | ||
5821 | if test -n "$ac_tool_prefix"; then | |
5822 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5823 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5825 | $as_echo_n "checking for $ac_word... " >&6; } | |
5826 | if test "${ac_cv_prog_AR+set}" = set; then : | |
5827 | $as_echo_n "(cached) " >&6 | |
5828 | else | |
5829 | if test -n "$AR"; then | |
5830 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5831 | else | |
5832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5833 | for as_dir in $PATH | |
5834 | do | |
5835 | IFS=$as_save_IFS | |
5836 | test -z "$as_dir" && as_dir=. | |
5837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5839 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5841 | break 2 | |
5842 | fi | |
5843 | done | |
5844 | done | |
5845 | IFS=$as_save_IFS | |
5846 | ||
5847 | fi | |
5848 | fi | |
5849 | AR=$ac_cv_prog_AR | |
5850 | if test -n "$AR"; then | |
5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5852 | $as_echo "$AR" >&6; } | |
5853 | else | |
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5855 | $as_echo "no" >&6; } | |
5856 | fi | |
5857 | ||
5858 | ||
5859 | fi | |
5860 | if test -z "$ac_cv_prog_AR"; then | |
5861 | ac_ct_AR=$AR | |
5862 | # Extract the first word of "ar", so it can be a program name with args. | |
5863 | set dummy ar; ac_word=$2 | |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5865 | $as_echo_n "checking for $ac_word... " >&6; } | |
5866 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
5867 | $as_echo_n "(cached) " >&6 | |
5868 | else | |
5869 | if test -n "$ac_ct_AR"; then | |
5870 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5871 | else | |
5872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5873 | for as_dir in $PATH | |
5874 | do | |
5875 | IFS=$as_save_IFS | |
5876 | test -z "$as_dir" && as_dir=. | |
5877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5879 | ac_cv_prog_ac_ct_AR="ar" | |
5880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5881 | break 2 | |
5882 | fi | |
5883 | done | |
5884 | done | |
5885 | IFS=$as_save_IFS | |
5886 | ||
5887 | fi | |
5888 | fi | |
5889 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5890 | if test -n "$ac_ct_AR"; then | |
5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5892 | $as_echo "$ac_ct_AR" >&6; } | |
5893 | else | |
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5895 | $as_echo "no" >&6; } | |
5896 | fi | |
5897 | ||
5898 | if test "x$ac_ct_AR" = x; then | |
5899 | AR="false" | |
5900 | else | |
5901 | case $cross_compiling:$ac_tool_warned in | |
5902 | yes:) | |
5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5904 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5905 | ac_tool_warned=yes ;; | |
5906 | esac | |
5907 | AR=$ac_ct_AR | |
5908 | fi | |
5909 | else | |
5910 | AR="$ac_cv_prog_AR" | |
5911 | fi | |
5912 | ||
5913 | test -z "$AR" && AR=ar | |
5914 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5915 | ||
5916 | ||
5917 | ||
5918 | ||
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | ||
5925 | ||
5926 | if test -n "$ac_tool_prefix"; then | |
5927 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5928 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5930 | $as_echo_n "checking for $ac_word... " >&6; } | |
5931 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
5932 | $as_echo_n "(cached) " >&6 | |
5933 | else | |
5934 | if test -n "$STRIP"; then | |
5935 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5936 | else | |
5937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5938 | for as_dir in $PATH | |
5939 | do | |
5940 | IFS=$as_save_IFS | |
5941 | test -z "$as_dir" && as_dir=. | |
5942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5944 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5946 | break 2 | |
5947 | fi | |
5948 | done | |
5949 | done | |
5950 | IFS=$as_save_IFS | |
5951 | ||
5952 | fi | |
5953 | fi | |
5954 | STRIP=$ac_cv_prog_STRIP | |
5955 | if test -n "$STRIP"; then | |
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5957 | $as_echo "$STRIP" >&6; } | |
5958 | else | |
5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5960 | $as_echo "no" >&6; } | |
5961 | fi | |
5962 | ||
5963 | ||
5964 | fi | |
5965 | if test -z "$ac_cv_prog_STRIP"; then | |
5966 | ac_ct_STRIP=$STRIP | |
5967 | # Extract the first word of "strip", so it can be a program name with args. | |
5968 | set dummy strip; ac_word=$2 | |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5970 | $as_echo_n "checking for $ac_word... " >&6; } | |
5971 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
5972 | $as_echo_n "(cached) " >&6 | |
5973 | else | |
5974 | if test -n "$ac_ct_STRIP"; then | |
5975 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5976 | else | |
5977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5978 | for as_dir in $PATH | |
5979 | do | |
5980 | IFS=$as_save_IFS | |
5981 | test -z "$as_dir" && as_dir=. | |
5982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5984 | ac_cv_prog_ac_ct_STRIP="strip" | |
5985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5986 | break 2 | |
5987 | fi | |
5988 | done | |
5989 | done | |
5990 | IFS=$as_save_IFS | |
5991 | ||
5992 | fi | |
5993 | fi | |
5994 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5995 | if test -n "$ac_ct_STRIP"; then | |
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5997 | $as_echo "$ac_ct_STRIP" >&6; } | |
5998 | else | |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6000 | $as_echo "no" >&6; } | |
6001 | fi | |
6002 | ||
6003 | if test "x$ac_ct_STRIP" = x; then | |
6004 | STRIP=":" | |
6005 | else | |
6006 | case $cross_compiling:$ac_tool_warned in | |
6007 | yes:) | |
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6009 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6010 | ac_tool_warned=yes ;; | |
6011 | esac | |
6012 | STRIP=$ac_ct_STRIP | |
6013 | fi | |
6014 | else | |
6015 | STRIP="$ac_cv_prog_STRIP" | |
6016 | fi | |
6017 | ||
6018 | test -z "$STRIP" && STRIP=: | |
6019 | ||
6020 | ||
6021 | ||
6022 | ||
6023 | ||
6024 | ||
6025 | if test -n "$ac_tool_prefix"; then | |
6026 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6027 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6029 | $as_echo_n "checking for $ac_word... " >&6; } | |
6030 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6031 | $as_echo_n "(cached) " >&6 | |
6032 | else | |
6033 | if test -n "$RANLIB"; then | |
6034 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6035 | else | |
6036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6037 | for as_dir in $PATH | |
6038 | do | |
6039 | IFS=$as_save_IFS | |
6040 | test -z "$as_dir" && as_dir=. | |
6041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6043 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6045 | break 2 | |
6046 | fi | |
6047 | done | |
6048 | done | |
6049 | IFS=$as_save_IFS | |
6050 | ||
6051 | fi | |
6052 | fi | |
6053 | RANLIB=$ac_cv_prog_RANLIB | |
6054 | if test -n "$RANLIB"; then | |
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6056 | $as_echo "$RANLIB" >&6; } | |
6057 | else | |
6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6059 | $as_echo "no" >&6; } | |
6060 | fi | |
6061 | ||
6062 | ||
6063 | fi | |
6064 | if test -z "$ac_cv_prog_RANLIB"; then | |
6065 | ac_ct_RANLIB=$RANLIB | |
6066 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6067 | set dummy ranlib; ac_word=$2 | |
6068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6069 | $as_echo_n "checking for $ac_word... " >&6; } | |
6070 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6071 | $as_echo_n "(cached) " >&6 | |
6072 | else | |
6073 | if test -n "$ac_ct_RANLIB"; then | |
6074 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6075 | else | |
6076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6077 | for as_dir in $PATH | |
6078 | do | |
6079 | IFS=$as_save_IFS | |
6080 | test -z "$as_dir" && as_dir=. | |
6081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6083 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6085 | break 2 | |
6086 | fi | |
6087 | done | |
6088 | done | |
6089 | IFS=$as_save_IFS | |
6090 | ||
6091 | fi | |
6092 | fi | |
6093 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6094 | if test -n "$ac_ct_RANLIB"; then | |
6095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6096 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6097 | else | |
6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6099 | $as_echo "no" >&6; } | |
6100 | fi | |
6101 | ||
6102 | if test "x$ac_ct_RANLIB" = x; then | |
6103 | RANLIB=":" | |
6104 | else | |
6105 | case $cross_compiling:$ac_tool_warned in | |
6106 | yes:) | |
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6108 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6109 | ac_tool_warned=yes ;; | |
6110 | esac | |
6111 | RANLIB=$ac_ct_RANLIB | |
6112 | fi | |
6113 | else | |
6114 | RANLIB="$ac_cv_prog_RANLIB" | |
6115 | fi | |
6116 | ||
6117 | test -z "$RANLIB" && RANLIB=: | |
6118 | ||
6119 | ||
6120 | ||
6121 | ||
6122 | ||
6123 | ||
6124 | # Determine commands to create old-style static archives. | |
6125 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6126 | old_postinstall_cmds='chmod 644 $oldlib' | |
6127 | old_postuninstall_cmds= | |
6128 | ||
6129 | if test -n "$RANLIB"; then | |
6130 | case $host_os in | |
6131 | openbsd*) | |
6132 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6133 | ;; | |
6134 | *) | |
6135 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6136 | ;; | |
6137 | esac | |
6138 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6139 | fi | |
6140 | ||
6141 | case $host_os in | |
6142 | darwin*) | |
6143 | lock_old_archive_extraction=yes ;; | |
6144 | *) | |
6145 | lock_old_archive_extraction=no ;; | |
6146 | esac | |
6147 | ||
6148 | ||
6149 | ||
6150 | ||
6151 | ||
6152 | ||
6153 | ||
6154 | ||
6155 | ||
6156 | ||
6157 | ||
6158 | ||
6159 | ||
6160 | ||
6161 | ||
6162 | ||
6163 | ||
6164 | ||
6165 | ||
6166 | ||
6167 | ||
6168 | ||
6169 | ||
6170 | ||
6171 | ||
6172 | ||
6173 | ||
6174 | ||
6175 | ||
6176 | ||
6177 | ||
6178 | ||
6179 | ||
6180 | ||
6181 | ||
6182 | ||
6183 | ||
6184 | ||
6185 | ||
6186 | # If no C compiler was specified, use CC. | |
6187 | LTCC=${LTCC-"$CC"} | |
6188 | ||
6189 | # If no C compiler flags were specified, use CFLAGS. | |
6190 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6191 | ||
6192 | # Allow CC to be a program name with arguments. | |
6193 | compiler=$CC | |
6194 | ||
6195 | ||
6196 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6198 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6199 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6200 | $as_echo_n "(cached) " >&6 | |
6201 | else | |
6202 | ||
6203 | # These are sane defaults that work on at least a few old systems. | |
6204 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6205 | ||
6206 | # Character class describing NM global symbol codes. | |
6207 | symcode='[BCDEGRST]' | |
6208 | ||
6209 | # Regexp to match symbols that can be accessed directly from C. | |
6210 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6211 | ||
6212 | # Define system-specific variables. | |
6213 | case $host_os in | |
6214 | aix*) | |
6215 | symcode='[BCDT]' | |
6216 | ;; | |
6217 | cygwin* | mingw* | pw32* | cegcc*) | |
6218 | symcode='[ABCDGISTW]' | |
6219 | ;; | |
6220 | hpux*) | |
6221 | if test "$host_cpu" = ia64; then | |
6222 | symcode='[ABCDEGRST]' | |
6223 | fi | |
6224 | ;; | |
6225 | irix* | nonstopux*) | |
6226 | symcode='[BCDEGRST]' | |
6227 | ;; | |
6228 | osf*) | |
6229 | symcode='[BCDEGQRST]' | |
6230 | ;; | |
6231 | solaris*) | |
6232 | symcode='[BDRT]' | |
6233 | ;; | |
6234 | sco3.2v5*) | |
6235 | symcode='[DT]' | |
6236 | ;; | |
6237 | sysv4.2uw2*) | |
6238 | symcode='[DT]' | |
6239 | ;; | |
6240 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6241 | symcode='[ABDT]' | |
6242 | ;; | |
6243 | sysv4) | |
6244 | symcode='[DFNSTU]' | |
6245 | ;; | |
6246 | esac | |
6247 | ||
6248 | # If we're using GNU nm, then use its standard symbol codes. | |
6249 | case `$NM -V 2>&1` in | |
6250 | *GNU* | *'with BFD'*) | |
6251 | symcode='[ABCDGIRSTW]' ;; | |
6252 | esac | |
6253 | ||
6254 | # Transform an extracted symbol line into a proper C declaration. | |
6255 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6256 | # so use this general approach. | |
6257 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6258 | ||
6259 | # Transform an extracted symbol line into symbol name and symbol address | |
6260 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6261 | 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'" | |
6262 | ||
6263 | # Handle CRLF in mingw tool chain | |
6264 | opt_cr= | |
6265 | case $build_os in | |
6266 | mingw*) | |
6267 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6268 | ;; | |
6269 | esac | |
6270 | ||
6271 | # Try without a prefix underscore, then with it. | |
6272 | for ac_symprfx in "" "_"; do | |
6273 | ||
6274 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6275 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6276 | ||
6277 | # Write the raw and C identifiers. | |
6278 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6279 | # Fake it for dumpbin and say T for any non-static function | |
6280 | # and D for any global variable. | |
6281 | # Also find C++ and __fastcall symbols from MSVC++, | |
6282 | # which start with @ or ?. | |
6283 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6284 | " {last_section=section; section=\$ 3};"\ | |
6285 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6286 | " \$ 0!~/External *\|/{next};"\ | |
6287 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6288 | " {if(hide[section]) next};"\ | |
6289 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6290 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6291 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6292 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6293 | " ' prfx=^$ac_symprfx" | |
6294 | else | |
6295 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6296 | fi | |
6297 | ||
6298 | # Check to see that the pipe works correctly. | |
6299 | pipe_works=no | |
6300 | ||
6301 | rm -f conftest* | |
6302 | cat > conftest.$ac_ext <<_LT_EOF | |
6303 | #ifdef __cplusplus | |
6304 | extern "C" { | |
6305 | #endif | |
6306 | char nm_test_var; | |
6307 | void nm_test_func(void); | |
6308 | void nm_test_func(void){} | |
6309 | #ifdef __cplusplus | |
6310 | } | |
6311 | #endif | |
6312 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6313 | _LT_EOF | |
6314 | ||
6315 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6316 | (eval $ac_compile) 2>&5 | |
6317 | ac_status=$? | |
6318 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6319 | test $ac_status = 0; }; then | |
6320 | # Now try to grab the symbols. | |
6321 | nlist=conftest.nm | |
6322 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6323 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6324 | ac_status=$? | |
6325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6326 | test $ac_status = 0; } && test -s "$nlist"; then | |
6327 | # Try sorting and uniquifying the output. | |
6328 | if sort "$nlist" | uniq > "$nlist"T; then | |
6329 | mv -f "$nlist"T "$nlist" | |
6330 | else | |
6331 | rm -f "$nlist"T | |
6332 | fi | |
6333 | ||
6334 | # Make sure that we snagged all the symbols we need. | |
6335 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6336 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6337 | cat <<_LT_EOF > conftest.$ac_ext | |
6338 | #ifdef __cplusplus | |
6339 | extern "C" { | |
6340 | #endif | |
6341 | ||
6342 | _LT_EOF | |
6343 | # Now generate the symbol file. | |
6344 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6345 | ||
6346 | cat <<_LT_EOF >> conftest.$ac_ext | |
6347 | ||
6348 | /* The mapping between symbol names and symbols. */ | |
6349 | const struct { | |
6350 | const char *name; | |
6351 | void *address; | |
6352 | } | |
6353 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6354 | { | |
6355 | { "@PROGRAM@", (void *) 0 }, | |
6356 | _LT_EOF | |
6357 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6358 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6359 | {0, (void *) 0} | |
6360 | }; | |
6361 | ||
6362 | /* This works around a problem in FreeBSD linker */ | |
6363 | #ifdef FREEBSD_WORKAROUND | |
6364 | static const void *lt_preloaded_setup() { | |
6365 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6366 | } | |
6367 | #endif | |
6368 | ||
6369 | #ifdef __cplusplus | |
6370 | } | |
6371 | #endif | |
6372 | _LT_EOF | |
6373 | # Now try linking the two files. | |
6374 | mv conftest.$ac_objext conftstm.$ac_objext | |
6375 | lt_save_LIBS="$LIBS" | |
6376 | lt_save_CFLAGS="$CFLAGS" | |
6377 | LIBS="conftstm.$ac_objext" | |
6378 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6379 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6380 | (eval $ac_link) 2>&5 | |
6381 | ac_status=$? | |
6382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6383 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6384 | pipe_works=yes | |
6385 | fi | |
6386 | LIBS="$lt_save_LIBS" | |
6387 | CFLAGS="$lt_save_CFLAGS" | |
6388 | else | |
6389 | echo "cannot find nm_test_func in $nlist" >&5 | |
6390 | fi | |
6391 | else | |
6392 | echo "cannot find nm_test_var in $nlist" >&5 | |
6393 | fi | |
6394 | else | |
6395 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6396 | fi | |
6397 | else | |
6398 | echo "$progname: failed program was:" >&5 | |
6399 | cat conftest.$ac_ext >&5 | |
6400 | fi | |
6401 | rm -rf conftest* conftst* | |
6402 | ||
6403 | # Do not use the global_symbol_pipe unless it works. | |
6404 | if test "$pipe_works" = yes; then | |
6405 | break | |
6406 | else | |
6407 | lt_cv_sys_global_symbol_pipe= | |
6408 | fi | |
6409 | done | |
6410 | ||
6411 | fi | |
6412 | ||
6413 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6414 | lt_cv_sys_global_symbol_to_cdecl= | |
6415 | fi | |
6416 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6418 | $as_echo "failed" >&6; } | |
6419 | else | |
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6421 | $as_echo "ok" >&6; } | |
6422 | fi | |
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
061793a4 | 6443 | |
7a938933 ILT |
6444 | |
6445 | ||
6446 | # Check whether --enable-libtool-lock was given. | |
6447 | if test "${enable_libtool_lock+set}" = set; then : | |
6448 | enableval=$enable_libtool_lock; | |
6449 | fi | |
6450 | ||
6451 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6452 | ||
6453 | # Some flags need to be propagated to the compiler or linker for good | |
6454 | # libtool support. | |
6455 | case $host in | |
6456 | ia64-*-hpux*) | |
6457 | # Find out which ABI we are using. | |
6458 | echo 'int i;' > conftest.$ac_ext | |
6459 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6460 | (eval $ac_compile) 2>&5 | |
6461 | ac_status=$? | |
6462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6463 | test $ac_status = 0; }; then | |
6464 | case `/usr/bin/file conftest.$ac_objext` in | |
6465 | *ELF-32*) | |
6466 | HPUX_IA64_MODE="32" | |
6467 | ;; | |
6468 | *ELF-64*) | |
6469 | HPUX_IA64_MODE="64" | |
6470 | ;; | |
6471 | esac | |
6472 | fi | |
6473 | rm -rf conftest* | |
6474 | ;; | |
6475 | *-*-irix6*) | |
6476 | # Find out which ABI we are using. | |
6477 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6478 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6479 | (eval $ac_compile) 2>&5 | |
6480 | ac_status=$? | |
6481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6482 | test $ac_status = 0; }; then | |
6483 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6484 | case `/usr/bin/file conftest.$ac_objext` in | |
6485 | *32-bit*) | |
6486 | LD="${LD-ld} -melf32bsmip" | |
6487 | ;; | |
6488 | *N32*) | |
6489 | LD="${LD-ld} -melf32bmipn32" | |
6490 | ;; | |
6491 | *64-bit*) | |
6492 | LD="${LD-ld} -melf64bmip" | |
6493 | ;; | |
6494 | esac | |
6495 | else | |
6496 | case `/usr/bin/file conftest.$ac_objext` in | |
6497 | *32-bit*) | |
6498 | LD="${LD-ld} -32" | |
6499 | ;; | |
6500 | *N32*) | |
6501 | LD="${LD-ld} -n32" | |
6502 | ;; | |
6503 | *64-bit*) | |
6504 | LD="${LD-ld} -64" | |
6505 | ;; | |
6506 | esac | |
6507 | fi | |
6508 | fi | |
6509 | rm -rf conftest* | |
6510 | ;; | |
6511 | ||
6e6bbb60 | 6512 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7a938933 ILT |
6513 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6514 | # Find out which ABI we are using. | |
6515 | echo 'int i;' > conftest.$ac_ext | |
6516 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6517 | (eval $ac_compile) 2>&5 | |
6518 | ac_status=$? | |
6519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6520 | test $ac_status = 0; }; then | |
6521 | case `/usr/bin/file conftest.o` in | |
6522 | *32-bit*) | |
6523 | case $host in | |
6524 | x86_64-*kfreebsd*-gnu) | |
6525 | LD="${LD-ld} -m elf_i386_fbsd" | |
6526 | ;; | |
6527 | x86_64-*linux*) | |
327a26a3 ILT |
6528 | case `/usr/bin/file conftest.o` in |
6529 | *x86-64*) | |
6530 | LD="${LD-ld} -m elf32_x86_64" | |
6531 | ;; | |
6532 | *) | |
6533 | LD="${LD-ld} -m elf_i386" | |
6534 | ;; | |
6535 | esac | |
7a938933 | 6536 | ;; |
42c447c0 | 6537 | powerpc64le-*linux*) |
6e6bbb60 ILT |
6538 | LD="${LD-ld} -m elf32lppclinux" |
6539 | ;; | |
42c447c0 | 6540 | powerpc64-*linux*) |
7a938933 ILT |
6541 | LD="${LD-ld} -m elf32ppclinux" |
6542 | ;; | |
6543 | s390x-*linux*) | |
6544 | LD="${LD-ld} -m elf_s390" | |
6545 | ;; | |
6546 | sparc64-*linux*) | |
6547 | LD="${LD-ld} -m elf32_sparc" | |
6548 | ;; | |
6549 | esac | |
6550 | ;; | |
6551 | *64-bit*) | |
6552 | case $host in | |
6553 | x86_64-*kfreebsd*-gnu) | |
6554 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6555 | ;; | |
6556 | x86_64-*linux*) | |
6557 | LD="${LD-ld} -m elf_x86_64" | |
6558 | ;; | |
42c447c0 | 6559 | powerpcle-*linux*) |
6e6bbb60 ILT |
6560 | LD="${LD-ld} -m elf64lppc" |
6561 | ;; | |
42c447c0 | 6562 | powerpc-*linux*) |
7a938933 ILT |
6563 | LD="${LD-ld} -m elf64ppc" |
6564 | ;; | |
6565 | s390*-*linux*|s390*-*tpf*) | |
6566 | LD="${LD-ld} -m elf64_s390" | |
6567 | ;; | |
6568 | sparc*-*linux*) | |
6569 | LD="${LD-ld} -m elf64_sparc" | |
6570 | ;; | |
6571 | esac | |
6572 | ;; | |
6573 | esac | |
6574 | fi | |
6575 | rm -rf conftest* | |
6576 | ;; | |
6577 | ||
6578 | *-*-sco3.2v5*) | |
6579 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6580 | SAVE_CFLAGS="$CFLAGS" | |
6581 | CFLAGS="$CFLAGS -belf" | |
6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6583 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6584 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6585 | $as_echo_n "(cached) " >&6 | |
6586 | else | |
6587 | ac_ext=c | |
6588 | ac_cpp='$CPP $CPPFLAGS' | |
6589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6592 | ||
6593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6594 | /* end confdefs.h. */ | |
6595 | ||
6596 | int | |
6597 | main () | |
6598 | { | |
6599 | ||
6600 | ; | |
6601 | return 0; | |
6602 | } | |
6603 | _ACEOF | |
6604 | if ac_fn_c_try_link "$LINENO"; then : | |
6605 | lt_cv_cc_needs_belf=yes | |
6606 | else | |
6607 | lt_cv_cc_needs_belf=no | |
6608 | fi | |
6609 | rm -f core conftest.err conftest.$ac_objext \ | |
6610 | conftest$ac_exeext conftest.$ac_ext | |
6611 | ac_ext=c | |
6612 | ac_cpp='$CPP $CPPFLAGS' | |
6613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6616 | ||
6617 | fi | |
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6619 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6620 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6621 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6622 | CFLAGS="$SAVE_CFLAGS" | |
6623 | fi | |
6624 | ;; | |
327a26a3 | 6625 | sparc*-*solaris*) |
7a938933 ILT |
6626 | # Find out which ABI we are using. |
6627 | echo 'int i;' > conftest.$ac_ext | |
6628 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6629 | (eval $ac_compile) 2>&5 | |
6630 | ac_status=$? | |
6631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6632 | test $ac_status = 0; }; then | |
6633 | case `/usr/bin/file conftest.o` in | |
6634 | *64-bit*) | |
6635 | case $lt_cv_prog_gnu_ld in | |
327a26a3 | 6636 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
7a938933 ILT |
6637 | *) |
6638 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6639 | LD="${LD-ld} -64" | |
6640 | fi | |
6641 | ;; | |
6642 | esac | |
6643 | ;; | |
6644 | esac | |
6645 | fi | |
6646 | rm -rf conftest* | |
6647 | ;; | |
6648 | esac | |
6649 | ||
6650 | need_locks="$enable_libtool_lock" | |
6651 | ||
6652 | ||
6653 | case $host_os in | |
6654 | rhapsody* | darwin*) | |
6655 | if test -n "$ac_tool_prefix"; then | |
6656 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6657 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6659 | $as_echo_n "checking for $ac_word... " >&6; } | |
6660 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
6661 | $as_echo_n "(cached) " >&6 | |
6662 | else | |
6663 | if test -n "$DSYMUTIL"; then | |
6664 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6665 | else | |
6666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6667 | for as_dir in $PATH | |
6668 | do | |
6669 | IFS=$as_save_IFS | |
6670 | test -z "$as_dir" && as_dir=. | |
6671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6673 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6675 | break 2 | |
6676 | fi | |
6677 | done | |
6678 | done | |
6679 | IFS=$as_save_IFS | |
6680 | ||
6681 | fi | |
6682 | fi | |
6683 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6684 | if test -n "$DSYMUTIL"; then | |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6686 | $as_echo "$DSYMUTIL" >&6; } | |
6687 | else | |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6689 | $as_echo "no" >&6; } | |
6690 | fi | |
6691 | ||
6692 | ||
6693 | fi | |
6694 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6695 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6696 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6697 | set dummy dsymutil; ac_word=$2 | |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6699 | $as_echo_n "checking for $ac_word... " >&6; } | |
6700 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
6701 | $as_echo_n "(cached) " >&6 | |
6702 | else | |
6703 | if test -n "$ac_ct_DSYMUTIL"; then | |
6704 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6705 | else | |
6706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6707 | for as_dir in $PATH | |
6708 | do | |
6709 | IFS=$as_save_IFS | |
6710 | test -z "$as_dir" && as_dir=. | |
6711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6713 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6715 | break 2 | |
6716 | fi | |
6717 | done | |
6718 | done | |
6719 | IFS=$as_save_IFS | |
6720 | ||
6721 | fi | |
6722 | fi | |
6723 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6724 | if test -n "$ac_ct_DSYMUTIL"; then | |
6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
6726 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6727 | else | |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6729 | $as_echo "no" >&6; } | |
6730 | fi | |
6731 | ||
6732 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6733 | DSYMUTIL=":" | |
6734 | else | |
6735 | case $cross_compiling:$ac_tool_warned in | |
6736 | yes:) | |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6738 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6739 | ac_tool_warned=yes ;; | |
6740 | esac | |
6741 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6742 | fi | |
6743 | else | |
6744 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6745 | fi | |
6746 | ||
6747 | if test -n "$ac_tool_prefix"; then | |
6748 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6749 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6751 | $as_echo_n "checking for $ac_word... " >&6; } | |
6752 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
6753 | $as_echo_n "(cached) " >&6 | |
6754 | else | |
6755 | if test -n "$NMEDIT"; then | |
6756 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6757 | else | |
6758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6759 | for as_dir in $PATH | |
6760 | do | |
6761 | IFS=$as_save_IFS | |
6762 | test -z "$as_dir" && as_dir=. | |
6763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6764 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6765 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6767 | break 2 | |
6768 | fi | |
6769 | done | |
6770 | done | |
6771 | IFS=$as_save_IFS | |
6772 | ||
6773 | fi | |
6774 | fi | |
6775 | NMEDIT=$ac_cv_prog_NMEDIT | |
6776 | if test -n "$NMEDIT"; then | |
6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
6778 | $as_echo "$NMEDIT" >&6; } | |
6779 | else | |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6781 | $as_echo "no" >&6; } | |
6782 | fi | |
6783 | ||
6784 | ||
6785 | fi | |
6786 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6787 | ac_ct_NMEDIT=$NMEDIT | |
6788 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6789 | set dummy nmedit; ac_word=$2 | |
6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6791 | $as_echo_n "checking for $ac_word... " >&6; } | |
6792 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
6793 | $as_echo_n "(cached) " >&6 | |
6794 | else | |
6795 | if test -n "$ac_ct_NMEDIT"; then | |
6796 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6797 | else | |
6798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6799 | for as_dir in $PATH | |
6800 | do | |
6801 | IFS=$as_save_IFS | |
6802 | test -z "$as_dir" && as_dir=. | |
6803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6804 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6805 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6807 | break 2 | |
6808 | fi | |
6809 | done | |
6810 | done | |
6811 | IFS=$as_save_IFS | |
6812 | ||
6813 | fi | |
6814 | fi | |
6815 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6816 | if test -n "$ac_ct_NMEDIT"; then | |
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
6818 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6819 | else | |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6821 | $as_echo "no" >&6; } | |
6822 | fi | |
6823 | ||
6824 | if test "x$ac_ct_NMEDIT" = x; then | |
6825 | NMEDIT=":" | |
6826 | else | |
6827 | case $cross_compiling:$ac_tool_warned in | |
6828 | yes:) | |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6830 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6831 | ac_tool_warned=yes ;; | |
6832 | esac | |
6833 | NMEDIT=$ac_ct_NMEDIT | |
6834 | fi | |
6835 | else | |
6836 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6837 | fi | |
6838 | ||
6839 | if test -n "$ac_tool_prefix"; then | |
6840 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6841 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6843 | $as_echo_n "checking for $ac_word... " >&6; } | |
6844 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
6845 | $as_echo_n "(cached) " >&6 | |
6846 | else | |
6847 | if test -n "$LIPO"; then | |
6848 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6849 | else | |
6850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6851 | for as_dir in $PATH | |
6852 | do | |
6853 | IFS=$as_save_IFS | |
6854 | test -z "$as_dir" && as_dir=. | |
6855 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6857 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6859 | break 2 | |
6860 | fi | |
6861 | done | |
6862 | done | |
6863 | IFS=$as_save_IFS | |
6864 | ||
6865 | fi | |
6866 | fi | |
6867 | LIPO=$ac_cv_prog_LIPO | |
6868 | if test -n "$LIPO"; then | |
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
6870 | $as_echo "$LIPO" >&6; } | |
6871 | else | |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6873 | $as_echo "no" >&6; } | |
6874 | fi | |
6875 | ||
6876 | ||
6877 | fi | |
6878 | if test -z "$ac_cv_prog_LIPO"; then | |
6879 | ac_ct_LIPO=$LIPO | |
6880 | # Extract the first word of "lipo", so it can be a program name with args. | |
6881 | set dummy lipo; ac_word=$2 | |
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6883 | $as_echo_n "checking for $ac_word... " >&6; } | |
6884 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
6885 | $as_echo_n "(cached) " >&6 | |
6886 | else | |
6887 | if test -n "$ac_ct_LIPO"; then | |
6888 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6889 | else | |
6890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6891 | for as_dir in $PATH | |
6892 | do | |
6893 | IFS=$as_save_IFS | |
6894 | test -z "$as_dir" && as_dir=. | |
6895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6897 | ac_cv_prog_ac_ct_LIPO="lipo" | |
6898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6899 | break 2 | |
6900 | fi | |
6901 | done | |
6902 | done | |
6903 | IFS=$as_save_IFS | |
6904 | ||
6905 | fi | |
6906 | fi | |
6907 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6908 | if test -n "$ac_ct_LIPO"; then | |
6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
6910 | $as_echo "$ac_ct_LIPO" >&6; } | |
6911 | else | |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6913 | $as_echo "no" >&6; } | |
6914 | fi | |
6915 | ||
6916 | if test "x$ac_ct_LIPO" = x; then | |
6917 | LIPO=":" | |
6918 | else | |
6919 | case $cross_compiling:$ac_tool_warned in | |
6920 | yes:) | |
6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6922 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6923 | ac_tool_warned=yes ;; | |
6924 | esac | |
6925 | LIPO=$ac_ct_LIPO | |
6926 | fi | |
6927 | else | |
6928 | LIPO="$ac_cv_prog_LIPO" | |
6929 | fi | |
6930 | ||
6931 | if test -n "$ac_tool_prefix"; then | |
6932 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6933 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6935 | $as_echo_n "checking for $ac_word... " >&6; } | |
6936 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
6937 | $as_echo_n "(cached) " >&6 | |
6938 | else | |
6939 | if test -n "$OTOOL"; then | |
6940 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6941 | else | |
6942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6943 | for as_dir in $PATH | |
6944 | do | |
6945 | IFS=$as_save_IFS | |
6946 | test -z "$as_dir" && as_dir=. | |
6947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6949 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6951 | break 2 | |
6952 | fi | |
6953 | done | |
6954 | done | |
6955 | IFS=$as_save_IFS | |
6956 | ||
6957 | fi | |
6958 | fi | |
6959 | OTOOL=$ac_cv_prog_OTOOL | |
6960 | if test -n "$OTOOL"; then | |
6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
6962 | $as_echo "$OTOOL" >&6; } | |
6963 | else | |
6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6965 | $as_echo "no" >&6; } | |
6966 | fi | |
6967 | ||
6968 | ||
6969 | fi | |
6970 | if test -z "$ac_cv_prog_OTOOL"; then | |
6971 | ac_ct_OTOOL=$OTOOL | |
6972 | # Extract the first word of "otool", so it can be a program name with args. | |
6973 | set dummy otool; ac_word=$2 | |
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6975 | $as_echo_n "checking for $ac_word... " >&6; } | |
6976 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
6977 | $as_echo_n "(cached) " >&6 | |
6978 | else | |
6979 | if test -n "$ac_ct_OTOOL"; then | |
6980 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6981 | else | |
6982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6983 | for as_dir in $PATH | |
6984 | do | |
6985 | IFS=$as_save_IFS | |
6986 | test -z "$as_dir" && as_dir=. | |
6987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6989 | ac_cv_prog_ac_ct_OTOOL="otool" | |
6990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6991 | break 2 | |
6992 | fi | |
6993 | done | |
6994 | done | |
6995 | IFS=$as_save_IFS | |
6996 | ||
6997 | fi | |
6998 | fi | |
6999 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7000 | if test -n "$ac_ct_OTOOL"; then | |
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7002 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7003 | else | |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7005 | $as_echo "no" >&6; } | |
7006 | fi | |
7007 | ||
7008 | if test "x$ac_ct_OTOOL" = x; then | |
7009 | OTOOL=":" | |
7010 | else | |
7011 | case $cross_compiling:$ac_tool_warned in | |
7012 | yes:) | |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7014 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7015 | ac_tool_warned=yes ;; | |
7016 | esac | |
7017 | OTOOL=$ac_ct_OTOOL | |
7018 | fi | |
7019 | else | |
7020 | OTOOL="$ac_cv_prog_OTOOL" | |
7021 | fi | |
7022 | ||
7023 | if test -n "$ac_tool_prefix"; then | |
7024 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7025 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7027 | $as_echo_n "checking for $ac_word... " >&6; } | |
7028 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7029 | $as_echo_n "(cached) " >&6 | |
7030 | else | |
7031 | if test -n "$OTOOL64"; then | |
7032 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7033 | else | |
7034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7035 | for as_dir in $PATH | |
7036 | do | |
7037 | IFS=$as_save_IFS | |
7038 | test -z "$as_dir" && as_dir=. | |
7039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7041 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7043 | break 2 | |
7044 | fi | |
7045 | done | |
7046 | done | |
7047 | IFS=$as_save_IFS | |
7048 | ||
7049 | fi | |
7050 | fi | |
7051 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7052 | if test -n "$OTOOL64"; then | |
7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7054 | $as_echo "$OTOOL64" >&6; } | |
7055 | else | |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7057 | $as_echo "no" >&6; } | |
7058 | fi | |
7059 | ||
7060 | ||
7061 | fi | |
7062 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7063 | ac_ct_OTOOL64=$OTOOL64 | |
7064 | # Extract the first word of "otool64", so it can be a program name with args. | |
7065 | set dummy otool64; ac_word=$2 | |
7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7067 | $as_echo_n "checking for $ac_word... " >&6; } | |
7068 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7069 | $as_echo_n "(cached) " >&6 | |
7070 | else | |
7071 | if test -n "$ac_ct_OTOOL64"; then | |
7072 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7073 | else | |
7074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7075 | for as_dir in $PATH | |
7076 | do | |
7077 | IFS=$as_save_IFS | |
7078 | test -z "$as_dir" && as_dir=. | |
7079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7081 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7083 | break 2 | |
7084 | fi | |
7085 | done | |
7086 | done | |
7087 | IFS=$as_save_IFS | |
7088 | ||
7089 | fi | |
7090 | fi | |
7091 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7092 | if test -n "$ac_ct_OTOOL64"; then | |
7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7094 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7095 | else | |
7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7097 | $as_echo "no" >&6; } | |
7098 | fi | |
7099 | ||
7100 | if test "x$ac_ct_OTOOL64" = x; then | |
7101 | OTOOL64=":" | |
7102 | else | |
7103 | case $cross_compiling:$ac_tool_warned in | |
7104 | yes:) | |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7106 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7107 | ac_tool_warned=yes ;; | |
7108 | esac | |
7109 | OTOOL64=$ac_ct_OTOOL64 | |
7110 | fi | |
7111 | else | |
e02ed81e | 7112 | OTOOL64="$ac_cv_prog_OTOOL64" |
7a938933 ILT |
7113 | fi |
7114 | ||
7a938933 ILT |
7115 | |
7116 | ||
7a938933 | 7117 | |
7a938933 | 7118 | |
7a938933 | 7119 | |
7a938933 | 7120 | |
7a938933 | 7121 | |
7a938933 | 7122 | |
7a938933 | 7123 | |
7a938933 | 7124 | |
7a938933 | 7125 | |
7a938933 | 7126 | |
7a938933 | 7127 | |
e02ed81e ILT |
7128 | |
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7142 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7143 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7144 | $as_echo_n "(cached) " >&6 | |
7a938933 | 7145 | else |
e02ed81e ILT |
7146 | lt_cv_apple_cc_single_mod=no |
7147 | if test -z "${LT_MULTI_MODULE}"; then | |
7148 | # By default we will add the -single_module flag. You can override | |
7149 | # by either setting the environment variable LT_MULTI_MODULE | |
7150 | # non-empty at configure time, or by adding -multi_module to the | |
7151 | # link flags. | |
7152 | rm -rf libconftest.dylib* | |
7153 | echo "int foo(void){return 1;}" > conftest.c | |
7154 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7155 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7156 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7157 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7158 | _lt_result=$? | |
7159 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7160 | lt_cv_apple_cc_single_mod=yes | |
7161 | else | |
7162 | cat conftest.err >&5 | |
7163 | fi | |
7164 | rm -rf libconftest.dylib* | |
7165 | rm -f conftest.* | |
7166 | fi | |
7167 | fi | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7169 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7171 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7172 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7173 | $as_echo_n "(cached) " >&6 | |
7174 | else | |
7175 | lt_cv_ld_exported_symbols_list=no | |
7176 | save_LDFLAGS=$LDFLAGS | |
7177 | echo "_main" > conftest.sym | |
7178 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a938933 | 7180 | /* end confdefs.h. */ |
7a938933 | 7181 | |
7a938933 ILT |
7182 | int |
7183 | main () | |
7184 | { | |
e02ed81e ILT |
7185 | |
7186 | ; | |
7a938933 ILT |
7187 | return 0; |
7188 | } | |
7189 | _ACEOF | |
e02ed81e ILT |
7190 | if ac_fn_c_try_link "$LINENO"; then : |
7191 | lt_cv_ld_exported_symbols_list=yes | |
7a938933 | 7192 | else |
e02ed81e | 7193 | lt_cv_ld_exported_symbols_list=no |
7a938933 | 7194 | fi |
e02ed81e ILT |
7195 | rm -f core conftest.err conftest.$ac_objext \ |
7196 | conftest$ac_exeext conftest.$ac_ext | |
7197 | LDFLAGS="$save_LDFLAGS" | |
7a938933 ILT |
7198 | |
7199 | fi | |
e02ed81e ILT |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7201 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7203 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7204 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
7205 | $as_echo_n "(cached) " >&6 | |
7206 | else | |
7207 | lt_cv_ld_force_load=no | |
7208 | cat > conftest.c << _LT_EOF | |
7209 | int forced_loaded() { return 2;} | |
7210 | _LT_EOF | |
7211 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7212 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7213 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7214 | $AR cru libconftest.a conftest.o 2>&5 | |
7215 | cat > conftest.c << _LT_EOF | |
7216 | int main() { return 0;} | |
7217 | _LT_EOF | |
7218 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7219 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7220 | _lt_result=$? | |
7221 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7222 | lt_cv_ld_force_load=yes | |
7223 | else | |
7224 | cat conftest.err >&5 | |
7225 | fi | |
7226 | rm -f conftest.err libconftest.a conftest conftest.c | |
7227 | rm -rf conftest.dSYM | |
7a938933 ILT |
7228 | |
7229 | fi | |
e02ed81e ILT |
7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7231 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7232 | case $host_os in | |
7233 | rhapsody* | darwin1.[012]) | |
7234 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7235 | darwin1.*) | |
7236 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7237 | darwin*) # darwin 5.x on | |
7238 | # if running on 10.5 or later, the deployment target defaults | |
7239 | # to the OS version, if on x86, and 10.4, the deployment | |
7240 | # target defaults to 10.4. Don't you love it? | |
7241 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7242 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7243 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
327a26a3 | 7244 | 10.[012][,.]*) |
e02ed81e ILT |
7245 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7246 | 10.*) | |
7247 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7248 | esac | |
7249 | ;; | |
7250 | esac | |
7251 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7252 | _lt_dar_single_mod='$single_module' | |
7253 | fi | |
7254 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7255 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7256 | else | |
7257 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7258 | fi | |
7259 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7260 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7261 | else | |
7262 | _lt_dsymutil= | |
7263 | fi | |
7264 | ;; | |
7265 | esac | |
7a938933 | 7266 | |
061793a4 ILT |
7267 | ac_ext=c |
7268 | ac_cpp='$CPP $CPPFLAGS' | |
7269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7273 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7274 | # On Suns, sometimes $CPP names a directory. | |
7275 | if test -n "$CPP" && test -d "$CPP"; then | |
7276 | CPP= | |
7277 | fi | |
7278 | if test -z "$CPP"; then | |
7279 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
7280 | $as_echo_n "(cached) " >&6 | |
7281 | else | |
7282 | # Double quotes because CPP needs to be expanded | |
7283 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7284 | do | |
7285 | ac_preproc_ok=false | |
7286 | for ac_c_preproc_warn_flag in '' yes | |
7287 | do | |
7288 | # Use a header file that comes with gcc, so configuring glibc | |
7289 | # with a fresh cross-compiler works. | |
7290 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7291 | # <limits.h> exists even on freestanding compilers. | |
7292 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7293 | # not just through cpp. "Syntax error" is here to catch this case. | |
7294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7295 | /* end confdefs.h. */ | |
7296 | #ifdef __STDC__ | |
7297 | # include <limits.h> | |
7298 | #else | |
7299 | # include <assert.h> | |
7300 | #endif | |
7301 | Syntax error | |
7302 | _ACEOF | |
7303 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7304 | ||
7305 | else | |
7306 | # Broken: fails on valid input. | |
7307 | continue | |
7308 | fi | |
7309 | rm -f conftest.err conftest.$ac_ext | |
7310 | ||
7311 | # OK, works on sane cases. Now check whether nonexistent headers | |
7312 | # can be detected and how. | |
7313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7314 | /* end confdefs.h. */ | |
7315 | #include <ac_nonexistent.h> | |
7316 | _ACEOF | |
7317 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7318 | # Broken: success on invalid input. | |
7319 | continue | |
7320 | else | |
7321 | # Passes both tests. | |
7322 | ac_preproc_ok=: | |
7323 | break | |
7324 | fi | |
7325 | rm -f conftest.err conftest.$ac_ext | |
7326 | ||
7327 | done | |
7328 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7329 | rm -f conftest.err conftest.$ac_ext | |
7330 | if $ac_preproc_ok; then : | |
7331 | break | |
7332 | fi | |
7333 | ||
7334 | done | |
7335 | ac_cv_prog_CPP=$CPP | |
7336 | ||
7337 | fi | |
7338 | CPP=$ac_cv_prog_CPP | |
7339 | else | |
7340 | ac_cv_prog_CPP=$CPP | |
7341 | fi | |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7343 | $as_echo "$CPP" >&6; } | |
7344 | ac_preproc_ok=false | |
7345 | for ac_c_preproc_warn_flag in '' yes | |
7346 | do | |
7347 | # Use a header file that comes with gcc, so configuring glibc | |
7348 | # with a fresh cross-compiler works. | |
7349 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7350 | # <limits.h> exists even on freestanding compilers. | |
7351 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7352 | # not just through cpp. "Syntax error" is here to catch this case. | |
7353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7354 | /* end confdefs.h. */ | |
7355 | #ifdef __STDC__ | |
7356 | # include <limits.h> | |
7357 | #else | |
7358 | # include <assert.h> | |
7359 | #endif | |
7360 | Syntax error | |
7361 | _ACEOF | |
7362 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7363 | ||
7364 | else | |
7365 | # Broken: fails on valid input. | |
7366 | continue | |
7367 | fi | |
7368 | rm -f conftest.err conftest.$ac_ext | |
7369 | ||
7370 | # OK, works on sane cases. Now check whether nonexistent headers | |
7371 | # can be detected and how. | |
7372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7373 | /* end confdefs.h. */ | |
7374 | #include <ac_nonexistent.h> | |
7375 | _ACEOF | |
7376 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7377 | # Broken: success on invalid input. | |
7378 | continue | |
7379 | else | |
7380 | # Passes both tests. | |
7381 | ac_preproc_ok=: | |
7382 | break | |
7383 | fi | |
7384 | rm -f conftest.err conftest.$ac_ext | |
7385 | ||
7386 | done | |
7387 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7388 | rm -f conftest.err conftest.$ac_ext | |
7389 | if $ac_preproc_ok; then : | |
7390 | ||
7391 | else | |
7392 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7394 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
7395 | See \`config.log' for more details." "$LINENO" 5; } | |
7396 | fi | |
7397 | ||
7398 | ac_ext=c | |
7399 | ac_cpp='$CPP $CPPFLAGS' | |
7400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7403 | ||
7404 | ||
7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7406 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7407 | if test "${ac_cv_header_stdc+set}" = set; then : | |
7408 | $as_echo_n "(cached) " >&6 | |
7409 | else | |
7410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7411 | /* end confdefs.h. */ | |
7412 | #include <stdlib.h> | |
7413 | #include <stdarg.h> | |
7414 | #include <string.h> | |
7415 | #include <float.h> | |
7416 | ||
7417 | int | |
7418 | main () | |
7419 | { | |
7420 | ||
7421 | ; | |
7422 | return 0; | |
7423 | } | |
7424 | _ACEOF | |
7425 | if ac_fn_c_try_compile "$LINENO"; then : | |
7426 | ac_cv_header_stdc=yes | |
7427 | else | |
7428 | ac_cv_header_stdc=no | |
7429 | fi | |
7430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7431 | ||
7432 | if test $ac_cv_header_stdc = yes; then | |
7433 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7435 | /* end confdefs.h. */ | |
7436 | #include <string.h> | |
7437 | ||
7438 | _ACEOF | |
7439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7440 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7441 | ||
7442 | else | |
7443 | ac_cv_header_stdc=no | |
7444 | fi | |
7445 | rm -f conftest* | |
7446 | ||
7447 | fi | |
7448 | ||
7449 | if test $ac_cv_header_stdc = yes; then | |
7450 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7452 | /* end confdefs.h. */ | |
7453 | #include <stdlib.h> | |
7454 | ||
7455 | _ACEOF | |
7456 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7457 | $EGREP "free" >/dev/null 2>&1; then : | |
7458 | ||
7459 | else | |
7460 | ac_cv_header_stdc=no | |
7461 | fi | |
7462 | rm -f conftest* | |
7463 | ||
7464 | fi | |
7465 | ||
7466 | if test $ac_cv_header_stdc = yes; then | |
7467 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7468 | if test "$cross_compiling" = yes; then : | |
7469 | : | |
7470 | else | |
7471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7472 | /* end confdefs.h. */ | |
7473 | #include <ctype.h> | |
7474 | #include <stdlib.h> | |
7475 | #if ((' ' & 0x0FF) == 0x020) | |
7476 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7477 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7478 | #else | |
7479 | # define ISLOWER(c) \ | |
7480 | (('a' <= (c) && (c) <= 'i') \ | |
7481 | || ('j' <= (c) && (c) <= 'r') \ | |
7482 | || ('s' <= (c) && (c) <= 'z')) | |
7483 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7484 | #endif | |
7485 | ||
7486 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7487 | int | |
7488 | main () | |
7489 | { | |
7490 | int i; | |
7491 | for (i = 0; i < 256; i++) | |
7492 | if (XOR (islower (i), ISLOWER (i)) | |
7493 | || toupper (i) != TOUPPER (i)) | |
7494 | return 2; | |
7495 | return 0; | |
7496 | } | |
7497 | _ACEOF | |
7498 | if ac_fn_c_try_run "$LINENO"; then : | |
7499 | ||
7500 | else | |
7501 | ac_cv_header_stdc=no | |
7502 | fi | |
7503 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7504 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7505 | fi | |
7506 | ||
7507 | fi | |
7508 | fi | |
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7510 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7511 | if test $ac_cv_header_stdc = yes; then | |
7512 | ||
7513 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7514 | ||
7515 | fi | |
7516 | ||
7517 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7518 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7519 | inttypes.h stdint.h unistd.h | |
7520 | do : | |
7521 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7522 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7523 | " | |
7524 | eval as_val=\$$as_ac_Header | |
7525 | if test "x$as_val" = x""yes; then : | |
7526 | cat >>confdefs.h <<_ACEOF | |
7527 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7528 | _ACEOF | |
7529 | ||
7530 | fi | |
7531 | ||
7532 | done | |
7533 | ||
7534 | ||
7a938933 ILT |
7535 | for ac_header in dlfcn.h |
7536 | do : | |
7537 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7538 | " | |
7539 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7540 | cat >>confdefs.h <<_ACEOF | |
7541 | #define HAVE_DLFCN_H 1 | |
7542 | _ACEOF | |
7543 | ||
7544 | fi | |
7545 | ||
7546 | done | |
7547 | ||
7548 | if test -n "$ac_tool_prefix"; then | |
7549 | # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args. | |
7550 | set dummy ${ac_tool_prefix}gccgo; ac_word=$2 | |
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7552 | $as_echo_n "checking for $ac_word... " >&6; } | |
7553 | if test "${ac_cv_prog_GOC+set}" = set; then : | |
7554 | $as_echo_n "(cached) " >&6 | |
7555 | else | |
7556 | if test -n "$GOC"; then | |
7557 | ac_cv_prog_GOC="$GOC" # Let the user override the test. | |
7558 | else | |
7559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7560 | for as_dir in $PATH | |
7561 | do | |
7562 | IFS=$as_save_IFS | |
7563 | test -z "$as_dir" && as_dir=. | |
7564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7566 | ac_cv_prog_GOC="${ac_tool_prefix}gccgo" | |
7567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7568 | break 2 | |
7569 | fi | |
7570 | done | |
7571 | done | |
7572 | IFS=$as_save_IFS | |
7573 | ||
7574 | fi | |
7575 | fi | |
7576 | GOC=$ac_cv_prog_GOC | |
7577 | if test -n "$GOC"; then | |
7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5 | |
7579 | $as_echo "$GOC" >&6; } | |
7580 | else | |
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7582 | $as_echo "no" >&6; } | |
7583 | fi | |
7584 | ||
7585 | ||
7586 | fi | |
7587 | if test -z "$ac_cv_prog_GOC"; then | |
7588 | ac_ct_GOC=$GOC | |
7589 | # Extract the first word of "gccgo", so it can be a program name with args. | |
7590 | set dummy gccgo; ac_word=$2 | |
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7592 | $as_echo_n "checking for $ac_word... " >&6; } | |
7593 | if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then : | |
7594 | $as_echo_n "(cached) " >&6 | |
7595 | else | |
7596 | if test -n "$ac_ct_GOC"; then | |
7597 | ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test. | |
7598 | else | |
7599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7600 | for as_dir in $PATH | |
7601 | do | |
7602 | IFS=$as_save_IFS | |
7603 | test -z "$as_dir" && as_dir=. | |
7604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7606 | ac_cv_prog_ac_ct_GOC="gccgo" | |
7607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7608 | break 2 | |
7609 | fi | |
7610 | done | |
7611 | done | |
7612 | IFS=$as_save_IFS | |
7613 | ||
7614 | fi | |
7615 | fi | |
7616 | ac_ct_GOC=$ac_cv_prog_ac_ct_GOC | |
7617 | if test -n "$ac_ct_GOC"; then | |
7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5 | |
7619 | $as_echo "$ac_ct_GOC" >&6; } | |
7620 | else | |
7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7622 | $as_echo "no" >&6; } | |
7623 | fi | |
7624 | ||
7625 | if test "x$ac_ct_GOC" = x; then | |
7626 | GOC="" | |
7627 | else | |
7628 | case $cross_compiling:$ac_tool_warned in | |
7629 | yes:) | |
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7631 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7632 | ac_tool_warned=yes ;; | |
7633 | esac | |
7634 | GOC=$ac_ct_GOC | |
7635 | fi | |
7636 | else | |
7637 | GOC="$ac_cv_prog_GOC" | |
7638 | fi | |
7639 | ||
7640 | ||
7641 | ||
7642 | ||
7643 | ||
7644 | ||
7645 | # Set options | |
7646 | ||
7647 | ||
7648 | ||
7649 | ||
7650 | enable_win32_dll=no | |
7651 | ||
7652 | ||
7653 | # Check whether --enable-shared was given. | |
7654 | if test "${enable_shared+set}" = set; then : | |
7655 | enableval=$enable_shared; p=${PACKAGE-default} | |
7656 | case $enableval in | |
7657 | yes) enable_shared=yes ;; | |
7658 | no) enable_shared=no ;; | |
7659 | *) | |
7660 | enable_shared=no | |
7661 | # Look at the argument we got. We use all the common list separators. | |
7662 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7663 | for pkg in $enableval; do | |
7664 | IFS="$lt_save_ifs" | |
7665 | if test "X$pkg" = "X$p"; then | |
7666 | enable_shared=yes | |
7667 | fi | |
7668 | done | |
7669 | IFS="$lt_save_ifs" | |
7670 | ;; | |
7671 | esac | |
7672 | else | |
7673 | enable_shared=yes | |
7674 | fi | |
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | ||
7681 | ||
7682 | ||
7683 | ||
7684 | # Check whether --enable-static was given. | |
7685 | if test "${enable_static+set}" = set; then : | |
7686 | enableval=$enable_static; p=${PACKAGE-default} | |
7687 | case $enableval in | |
7688 | yes) enable_static=yes ;; | |
7689 | no) enable_static=no ;; | |
7690 | *) | |
7691 | enable_static=no | |
7692 | # Look at the argument we got. We use all the common list separators. | |
7693 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7694 | for pkg in $enableval; do | |
7695 | IFS="$lt_save_ifs" | |
7696 | if test "X$pkg" = "X$p"; then | |
7697 | enable_static=yes | |
7698 | fi | |
7699 | done | |
7700 | IFS="$lt_save_ifs" | |
7701 | ;; | |
7702 | esac | |
7703 | else | |
7704 | enable_static=yes | |
7705 | fi | |
7706 | ||
7707 | ||
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | ||
7713 | ||
7714 | ||
7715 | ||
7716 | # Check whether --with-pic was given. | |
7717 | if test "${with_pic+set}" = set; then : | |
7718 | withval=$with_pic; pic_mode="$withval" | |
7719 | else | |
7720 | pic_mode=default | |
7721 | fi | |
7722 | ||
7723 | ||
7724 | test -z "$pic_mode" && pic_mode=default | |
7725 | ||
7726 | ||
7727 | ||
7728 | ||
7729 | ||
7730 | ||
7731 | ||
7732 | # Check whether --enable-fast-install was given. | |
7733 | if test "${enable_fast_install+set}" = set; then : | |
7734 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7735 | case $enableval in | |
7736 | yes) enable_fast_install=yes ;; | |
7737 | no) enable_fast_install=no ;; | |
7738 | *) | |
7739 | enable_fast_install=no | |
7740 | # Look at the argument we got. We use all the common list separators. | |
7741 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7742 | for pkg in $enableval; do | |
7743 | IFS="$lt_save_ifs" | |
7744 | if test "X$pkg" = "X$p"; then | |
7745 | enable_fast_install=yes | |
7746 | fi | |
7747 | done | |
7748 | IFS="$lt_save_ifs" | |
7749 | ;; | |
7750 | esac | |
7751 | else | |
7752 | enable_fast_install=yes | |
7753 | fi | |
7754 | ||
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | ||
7761 | ||
7762 | ||
7763 | ||
7764 | ||
7765 | # This can be used to rebuild libtool when needed | |
7766 | LIBTOOL_DEPS="$ltmain" | |
7767 | ||
7768 | # Always use our own libtool. | |
7769 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7770 | ||
7771 | ||
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | ||
7781 | ||
7782 | ||
7783 | ||
7784 | ||
7785 | ||
7786 | ||
7787 | ||
7788 | ||
7789 | ||
7790 | ||
7791 | ||
7792 | ||
7793 | ||
7794 | ||
7795 | ||
7796 | test -z "$LN_S" && LN_S="ln -s" | |
7797 | ||
7798 | ||
7799 | ||
7800 | ||
7801 | ||
7802 | ||
7803 | ||
7804 | ||
7805 | ||
7806 | ||
7807 | ||
7808 | ||
7809 | ||
7810 | ||
7811 | if test -n "${ZSH_VERSION+set}" ; then | |
7812 | setopt NO_GLOB_SUBST | |
7813 | fi | |
7814 | ||
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7816 | $as_echo_n "checking for objdir... " >&6; } | |
7817 | if test "${lt_cv_objdir+set}" = set; then : | |
7818 | $as_echo_n "(cached) " >&6 | |
7819 | else | |
7820 | rm -f .libs 2>/dev/null | |
7821 | mkdir .libs 2>/dev/null | |
7822 | if test -d .libs; then | |
7823 | lt_cv_objdir=.libs | |
7824 | else | |
7825 | # MS-DOS does not allow filenames that begin with a dot. | |
7826 | lt_cv_objdir=_libs | |
7827 | fi | |
7828 | rmdir .libs 2>/dev/null | |
7829 | fi | |
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7831 | $as_echo "$lt_cv_objdir" >&6; } | |
7832 | objdir=$lt_cv_objdir | |
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | cat >>confdefs.h <<_ACEOF | |
7839 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7840 | _ACEOF | |
7841 | ||
7842 | ||
7843 | ||
7844 | ||
7845 | case $host_os in | |
7846 | aix3*) | |
7847 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7848 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7849 | # vanish in a puff of smoke. | |
7850 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7851 | COLLECT_NAMES= | |
7852 | export COLLECT_NAMES | |
7853 | fi | |
7854 | ;; | |
7855 | esac | |
7856 | ||
7857 | # Global variables: | |
7858 | ofile=libtool | |
7859 | can_build_shared=yes | |
7860 | ||
7861 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7862 | # which needs '.lib'). | |
7863 | libext=a | |
7864 | ||
7865 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7866 | ||
7867 | old_CC="$CC" | |
7868 | old_CFLAGS="$CFLAGS" | |
7869 | ||
7870 | # Set sane defaults for various variables | |
7871 | test -z "$CC" && CC=cc | |
7872 | test -z "$LTCC" && LTCC=$CC | |
7873 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7874 | test -z "$LD" && LD=ld | |
7875 | test -z "$ac_objext" && ac_objext=o | |
7876 | ||
7877 | for cc_temp in $compiler""; do | |
7878 | case $cc_temp in | |
7879 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7880 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7881 | \-*) ;; | |
7882 | *) break;; | |
7883 | esac | |
7884 | done | |
7885 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7886 | ||
7887 | ||
7888 | # Only perform the check for file, if the check method requires it | |
7889 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7890 | case $deplibs_check_method in | |
7891 | file_magic*) | |
7892 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
7894 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7895 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7896 | $as_echo_n "(cached) " >&6 | |
7897 | else | |
7898 | case $MAGIC_CMD in | |
7899 | [\\/*] | ?:[\\/]*) | |
7900 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7901 | ;; | |
7902 | *) | |
7903 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7904 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7905 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7906 | for ac_dir in $ac_dummy; do | |
7907 | IFS="$lt_save_ifs" | |
7908 | test -z "$ac_dir" && ac_dir=. | |
7909 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7910 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7911 | if test -n "$file_magic_test_file"; then | |
7912 | case $deplibs_check_method in | |
7913 | "file_magic "*) | |
7914 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7915 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7916 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7917 | $EGREP "$file_magic_regex" > /dev/null; then | |
7918 | : | |
7919 | else | |
7920 | cat <<_LT_EOF 1>&2 | |
7921 | ||
7922 | *** Warning: the command libtool uses to detect shared libraries, | |
7923 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7924 | *** The result is that libtool may fail to recognize shared libraries | |
7925 | *** as such. This will affect the creation of libtool libraries that | |
7926 | *** depend on shared libraries, but programs linked with such libtool | |
7927 | *** libraries will work regardless of this problem. Nevertheless, you | |
7928 | *** may want to report the problem to your system manager and/or to | |
7929 | *** bug-libtool@gnu.org | |
7930 | ||
7931 | _LT_EOF | |
7932 | fi ;; | |
7933 | esac | |
7934 | fi | |
7935 | break | |
7936 | fi | |
7937 | done | |
7938 | IFS="$lt_save_ifs" | |
7939 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7940 | ;; | |
7941 | esac | |
7942 | fi | |
7943 | ||
7944 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7945 | if test -n "$MAGIC_CMD"; then | |
7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7947 | $as_echo "$MAGIC_CMD" >&6; } | |
7948 | else | |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7950 | $as_echo "no" >&6; } | |
7951 | fi | |
7952 | ||
7953 | ||
7954 | ||
7955 | ||
7956 | ||
7957 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7958 | if test -n "$ac_tool_prefix"; then | |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
7960 | $as_echo_n "checking for file... " >&6; } | |
7961 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7962 | $as_echo_n "(cached) " >&6 | |
7963 | else | |
7964 | case $MAGIC_CMD in | |
7965 | [\\/*] | ?:[\\/]*) | |
7966 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7967 | ;; | |
7968 | *) | |
7969 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7970 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7971 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7972 | for ac_dir in $ac_dummy; do | |
7973 | IFS="$lt_save_ifs" | |
7974 | test -z "$ac_dir" && ac_dir=. | |
7975 | if test -f $ac_dir/file; then | |
7976 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7977 | if test -n "$file_magic_test_file"; then | |
7978 | case $deplibs_check_method in | |
7979 | "file_magic "*) | |
7980 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7981 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7982 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7983 | $EGREP "$file_magic_regex" > /dev/null; then | |
7984 | : | |
7985 | else | |
7986 | cat <<_LT_EOF 1>&2 | |
7987 | ||
7988 | *** Warning: the command libtool uses to detect shared libraries, | |
7989 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7990 | *** The result is that libtool may fail to recognize shared libraries | |
7991 | *** as such. This will affect the creation of libtool libraries that | |
7992 | *** depend on shared libraries, but programs linked with such libtool | |
7993 | *** libraries will work regardless of this problem. Nevertheless, you | |
7994 | *** may want to report the problem to your system manager and/or to | |
7995 | *** bug-libtool@gnu.org | |
7996 | ||
7997 | _LT_EOF | |
7998 | fi ;; | |
7999 | esac | |
8000 | fi | |
8001 | break | |
8002 | fi | |
8003 | done | |
8004 | IFS="$lt_save_ifs" | |
8005 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8006 | ;; | |
8007 | esac | |
8008 | fi | |
8009 | ||
8010 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8011 | if test -n "$MAGIC_CMD"; then | |
8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8013 | $as_echo "$MAGIC_CMD" >&6; } | |
8014 | else | |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8016 | $as_echo "no" >&6; } | |
8017 | fi | |
8018 | ||
8019 | ||
8020 | else | |
8021 | MAGIC_CMD=: | |
8022 | fi | |
8023 | fi | |
8024 | ||
8025 | fi | |
8026 | ;; | |
8027 | esac | |
8028 | ||
8029 | # Use C for the default configuration in the libtool script | |
8030 | ||
8031 | lt_save_CC="$CC" | |
8032 | ac_ext=c | |
8033 | ac_cpp='$CPP $CPPFLAGS' | |
8034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8037 | ||
8038 | ||
8039 | # Source file extension for C test sources. | |
8040 | ac_ext=c | |
8041 | ||
8042 | # Object file extension for compiled C test sources. | |
8043 | objext=o | |
8044 | objext=$objext | |
8045 | ||
8046 | # Code to be used in simple compile tests | |
8047 | lt_simple_compile_test_code="int some_variable = 0;" | |
8048 | ||
8049 | # Code to be used in simple link tests | |
8050 | lt_simple_link_test_code='int main(){return(0);}' | |
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | # If no C compiler was specified, use CC. | |
8059 | LTCC=${LTCC-"$CC"} | |
8060 | ||
8061 | # If no C compiler flags were specified, use CFLAGS. | |
8062 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8063 | ||
8064 | # Allow CC to be a program name with arguments. | |
8065 | compiler=$CC | |
8066 | ||
8067 | # Save the default compiler, since it gets overwritten when the other | |
8068 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8069 | compiler_DEFAULT=$CC | |
8070 | ||
8071 | # save warnings/boilerplate of simple test code | |
8072 | ac_outfile=conftest.$ac_objext | |
8073 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8074 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8075 | _lt_compiler_boilerplate=`cat conftest.err` | |
8076 | $RM conftest* | |
8077 | ||
8078 | ac_outfile=conftest.$ac_objext | |
8079 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8080 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8081 | _lt_linker_boilerplate=`cat conftest.err` | |
8082 | $RM -r conftest* | |
8083 | ||
8084 | ||
8085 | ## CAVEAT EMPTOR: | |
8086 | ## There is no encapsulation within the following macros, do not change | |
8087 | ## the running order or otherwise move them around unless you know exactly | |
8088 | ## what you are doing... | |
8089 | if test -n "$compiler"; then | |
8090 | ||
8091 | lt_prog_compiler_no_builtin_flag= | |
8092 | ||
8093 | if test "$GCC" = yes; then | |
8094 | case $cc_basename in | |
8095 | nvcc*) | |
8096 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8097 | *) | |
8098 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8099 | esac | |
8100 | ||
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8102 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8103 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8104 | $as_echo_n "(cached) " >&6 | |
8105 | else | |
8106 | lt_cv_prog_compiler_rtti_exceptions=no | |
8107 | ac_outfile=conftest.$ac_objext | |
8108 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8109 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8110 | # Insert the option either (1) after the last *FLAGS variable, or | |
8111 | # (2) before a word containing "conftest.", or (3) at the end. | |
8112 | # Note that $ac_compile itself does not contain backslashes and begins | |
8113 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8114 | # The option is referenced via a variable to avoid confusing sed. | |
8115 | lt_compile=`echo "$ac_compile" | $SED \ | |
8116 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8117 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8118 | -e 's:$: $lt_compiler_flag:'` | |
8119 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8120 | (eval "$lt_compile" 2>conftest.err) | |
8121 | ac_status=$? | |
8122 | cat conftest.err >&5 | |
8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8124 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8125 | # The compiler can only warn and ignore the option if not recognized | |
8126 | # So say no if there are warnings other than the usual output. | |
8127 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8128 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8129 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8130 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8131 | fi | |
8132 | fi | |
8133 | $RM conftest* | |
8134 | ||
8135 | fi | |
8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8137 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8138 | ||
8139 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8140 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8141 | else | |
8142 | : | |
8143 | fi | |
8144 | ||
8145 | fi | |
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
8151 | ||
8152 | lt_prog_compiler_wl= | |
8153 | lt_prog_compiler_pic= | |
8154 | lt_prog_compiler_static= | |
8155 | ||
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8157 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8158 | ||
8159 | if test "$GCC" = yes; then | |
8160 | lt_prog_compiler_wl='-Wl,' | |
8161 | lt_prog_compiler_static='-static' | |
8162 | ||
8163 | case $host_os in | |
8164 | aix*) | |
8165 | # All AIX code is PIC. | |
8166 | if test "$host_cpu" = ia64; then | |
8167 | # AIX 5 now supports IA64 processor | |
8168 | lt_prog_compiler_static='-Bstatic' | |
8169 | fi | |
327a26a3 | 8170 | lt_prog_compiler_pic='-fPIC' |
7a938933 ILT |
8171 | ;; |
8172 | ||
8173 | amigaos*) | |
8174 | case $host_cpu in | |
8175 | powerpc) | |
8176 | # see comment about AmigaOS4 .so support | |
8177 | lt_prog_compiler_pic='-fPIC' | |
8178 | ;; | |
8179 | m68k) | |
8180 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8181 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8182 | # like `-m68040'. | |
8183 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8184 | ;; | |
8185 | esac | |
8186 | ;; | |
8187 | ||
8188 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8189 | # PIC is the default for these OSes. | |
8190 | ;; | |
8191 | ||
8192 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8193 | # This hack is so that the source file can tell whether it is being | |
8194 | # built for inclusion in a dll (and should export symbols for example). | |
8195 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8196 | # (--disable-auto-import) libraries | |
8197 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8198 | ;; | |
8199 | ||
8200 | darwin* | rhapsody*) | |
8201 | # PIC is the default on this platform | |
8202 | # Common symbols not allowed in MH_DYLIB files | |
8203 | lt_prog_compiler_pic='-fno-common' | |
8204 | ;; | |
8205 | ||
8206 | haiku*) | |
8207 | # PIC is the default for Haiku. | |
8208 | # The "-static" flag exists, but is broken. | |
8209 | lt_prog_compiler_static= | |
8210 | ;; | |
8211 | ||
8212 | hpux*) | |
8213 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8214 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8215 | # sets the default TLS model and affects inlining. | |
8216 | case $host_cpu in | |
8217 | hppa*64*) | |
8218 | # +Z the default | |
8219 | ;; | |
8220 | *) | |
8221 | lt_prog_compiler_pic='-fPIC' | |
8222 | ;; | |
8223 | esac | |
8224 | ;; | |
8225 | ||
8226 | interix[3-9]*) | |
8227 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8228 | # Instead, we relocate shared libraries at runtime. | |
8229 | ;; | |
8230 | ||
8231 | msdosdjgpp*) | |
8232 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8233 | # on systems that don't support them. | |
8234 | lt_prog_compiler_can_build_shared=no | |
8235 | enable_shared=no | |
8236 | ;; | |
8237 | ||
8238 | *nto* | *qnx*) | |
8239 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8240 | # it will coredump. | |
8241 | lt_prog_compiler_pic='-fPIC -shared' | |
8242 | ;; | |
8243 | ||
8244 | sysv4*MP*) | |
8245 | if test -d /usr/nec; then | |
8246 | lt_prog_compiler_pic=-Kconform_pic | |
8247 | fi | |
8248 | ;; | |
8249 | ||
8250 | *) | |
8251 | lt_prog_compiler_pic='-fPIC' | |
8252 | ;; | |
8253 | esac | |
8254 | ||
8255 | case $cc_basename in | |
8256 | nvcc*) # Cuda Compiler Driver 2.2 | |
8257 | lt_prog_compiler_wl='-Xlinker ' | |
8258 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8259 | ;; | |
8260 | esac | |
8261 | else | |
8262 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8263 | case $host_os in | |
8264 | aix*) | |
8265 | lt_prog_compiler_wl='-Wl,' | |
8266 | if test "$host_cpu" = ia64; then | |
8267 | # AIX 5 now supports IA64 processor | |
8268 | lt_prog_compiler_static='-Bstatic' | |
8269 | else | |
8270 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8271 | fi | |
8272 | ;; | |
8273 | ||
8274 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8275 | # This hack is so that the source file can tell whether it is being | |
8276 | # built for inclusion in a dll (and should export symbols for example). | |
8277 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8278 | ;; | |
8279 | ||
8280 | hpux9* | hpux10* | hpux11*) | |
8281 | lt_prog_compiler_wl='-Wl,' | |
8282 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8283 | # not for PA HP-UX. | |
8284 | case $host_cpu in | |
8285 | hppa*64*|ia64*) | |
8286 | # +Z the default | |
8287 | ;; | |
8288 | *) | |
8289 | lt_prog_compiler_pic='+Z' | |
8290 | ;; | |
8291 | esac | |
8292 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8293 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8294 | ;; | |
8295 | ||
8296 | irix5* | irix6* | nonstopux*) | |
8297 | lt_prog_compiler_wl='-Wl,' | |
8298 | # PIC (with -KPIC) is the default. | |
8299 | lt_prog_compiler_static='-non_shared' | |
8300 | ;; | |
8301 | ||
8302 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8303 | case $cc_basename in | |
8304 | # old Intel for x86_64 which still supported -KPIC. | |
8305 | ecc*) | |
8306 | lt_prog_compiler_wl='-Wl,' | |
8307 | lt_prog_compiler_pic='-KPIC' | |
8308 | lt_prog_compiler_static='-static' | |
8309 | ;; | |
8310 | # icc used to be incompatible with GCC. | |
8311 | # ICC 10 doesn't accept -KPIC any more. | |
8312 | icc* | ifort*) | |
8313 | lt_prog_compiler_wl='-Wl,' | |
8314 | lt_prog_compiler_pic='-fPIC' | |
8315 | lt_prog_compiler_static='-static' | |
8316 | ;; | |
8317 | # Lahey Fortran 8.1. | |
8318 | lf95*) | |
8319 | lt_prog_compiler_wl='-Wl,' | |
8320 | lt_prog_compiler_pic='--shared' | |
8321 | lt_prog_compiler_static='--static' | |
8322 | ;; | |
8323 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8324 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8325 | # which looks to be a dead project) | |
8326 | lt_prog_compiler_wl='-Wl,' | |
8327 | lt_prog_compiler_pic='-fpic' | |
8328 | lt_prog_compiler_static='-Bstatic' | |
8329 | ;; | |
8330 | ccc*) | |
8331 | lt_prog_compiler_wl='-Wl,' | |
8332 | # All Alpha code is PIC. | |
8333 | lt_prog_compiler_static='-non_shared' | |
8334 | ;; | |
8335 | xl* | bgxl* | bgf* | mpixl*) | |
8336 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8337 | lt_prog_compiler_wl='-Wl,' | |
8338 | lt_prog_compiler_pic='-qpic' | |
8339 | lt_prog_compiler_static='-qstaticlink' | |
8340 | ;; | |
8341 | *) | |
8342 | case `$CC -V 2>&1 | sed 5q` in | |
8343 | *Sun\ F* | *Sun*Fortran*) | |
8344 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8345 | lt_prog_compiler_pic='-KPIC' | |
8346 | lt_prog_compiler_static='-Bstatic' | |
8347 | lt_prog_compiler_wl='' | |
8348 | ;; | |
8349 | *Sun\ C*) | |
8350 | # Sun C 5.9 | |
8351 | lt_prog_compiler_pic='-KPIC' | |
8352 | lt_prog_compiler_static='-Bstatic' | |
8353 | lt_prog_compiler_wl='-Wl,' | |
8354 | ;; | |
8355 | esac | |
8356 | ;; | |
8357 | esac | |
8358 | ;; | |
8359 | ||
8360 | newsos6) | |
8361 | lt_prog_compiler_pic='-KPIC' | |
8362 | lt_prog_compiler_static='-Bstatic' | |
8363 | ;; | |
8364 | ||
8365 | *nto* | *qnx*) | |
8366 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8367 | # it will coredump. | |
8368 | lt_prog_compiler_pic='-fPIC -shared' | |
8369 | ;; | |
8370 | ||
8371 | osf3* | osf4* | osf5*) | |
8372 | lt_prog_compiler_wl='-Wl,' | |
8373 | # All OSF/1 code is PIC. | |
8374 | lt_prog_compiler_static='-non_shared' | |
8375 | ;; | |
8376 | ||
8377 | rdos*) | |
8378 | lt_prog_compiler_static='-non_shared' | |
8379 | ;; | |
8380 | ||
8381 | solaris*) | |
8382 | lt_prog_compiler_pic='-KPIC' | |
8383 | lt_prog_compiler_static='-Bstatic' | |
8384 | case $cc_basename in | |
8385 | f77* | f90* | f95*) | |
8386 | lt_prog_compiler_wl='-Qoption ld ';; | |
8387 | *) | |
8388 | lt_prog_compiler_wl='-Wl,';; | |
8389 | esac | |
8390 | ;; | |
8391 | ||
8392 | sunos4*) | |
8393 | lt_prog_compiler_wl='-Qoption ld ' | |
8394 | lt_prog_compiler_pic='-PIC' | |
8395 | lt_prog_compiler_static='-Bstatic' | |
8396 | ;; | |
8397 | ||
8398 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8399 | lt_prog_compiler_wl='-Wl,' | |
8400 | lt_prog_compiler_pic='-KPIC' | |
8401 | lt_prog_compiler_static='-Bstatic' | |
8402 | ;; | |
8403 | ||
8404 | sysv4*MP*) | |
8405 | if test -d /usr/nec ;then | |
8406 | lt_prog_compiler_pic='-Kconform_pic' | |
8407 | lt_prog_compiler_static='-Bstatic' | |
8408 | fi | |
8409 | ;; | |
8410 | ||
8411 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8412 | lt_prog_compiler_wl='-Wl,' | |
8413 | lt_prog_compiler_pic='-KPIC' | |
8414 | lt_prog_compiler_static='-Bstatic' | |
8415 | ;; | |
8416 | ||
8417 | unicos*) | |
8418 | lt_prog_compiler_wl='-Wl,' | |
8419 | lt_prog_compiler_can_build_shared=no | |
8420 | ;; | |
8421 | ||
8422 | uts4*) | |
8423 | lt_prog_compiler_pic='-pic' | |
8424 | lt_prog_compiler_static='-Bstatic' | |
8425 | ;; | |
8426 | ||
8427 | *) | |
8428 | lt_prog_compiler_can_build_shared=no | |
8429 | ;; | |
8430 | esac | |
8431 | fi | |
8432 | ||
8433 | case $host_os in | |
8434 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8435 | *djgpp*) | |
8436 | lt_prog_compiler_pic= | |
8437 | ;; | |
8438 | *) | |
8439 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8440 | ;; | |
8441 | esac | |
8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8443 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | ||
8449 | ||
8450 | # | |
8451 | # Check to make sure the PIC flag actually works. | |
8452 | # | |
8453 | if test -n "$lt_prog_compiler_pic"; then | |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8455 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8456 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8457 | $as_echo_n "(cached) " >&6 | |
8458 | else | |
8459 | lt_cv_prog_compiler_pic_works=no | |
8460 | ac_outfile=conftest.$ac_objext | |
8461 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8462 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8463 | # Insert the option either (1) after the last *FLAGS variable, or | |
8464 | # (2) before a word containing "conftest.", or (3) at the end. | |
8465 | # Note that $ac_compile itself does not contain backslashes and begins | |
8466 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8467 | # The option is referenced via a variable to avoid confusing sed. | |
8468 | lt_compile=`echo "$ac_compile" | $SED \ | |
8469 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8470 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8471 | -e 's:$: $lt_compiler_flag:'` | |
8472 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8473 | (eval "$lt_compile" 2>conftest.err) | |
8474 | ac_status=$? | |
8475 | cat conftest.err >&5 | |
8476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8477 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8478 | # The compiler can only warn and ignore the option if not recognized | |
8479 | # So say no if there are warnings other than the usual output. | |
8480 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8481 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8482 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8483 | lt_cv_prog_compiler_pic_works=yes | |
8484 | fi | |
8485 | fi | |
8486 | $RM conftest* | |
8487 | ||
8488 | fi | |
8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8490 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8491 | ||
8492 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8493 | case $lt_prog_compiler_pic in | |
8494 | "" | " "*) ;; | |
8495 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8496 | esac | |
8497 | else | |
8498 | lt_prog_compiler_pic= | |
8499 | lt_prog_compiler_can_build_shared=no | |
8500 | fi | |
8501 | ||
8502 | fi | |
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | # | |
8510 | # Check to make sure the static flag actually works. | |
8511 | # | |
8512 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8514 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8515 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8516 | $as_echo_n "(cached) " >&6 | |
8517 | else | |
8518 | lt_cv_prog_compiler_static_works=no | |
8519 | save_LDFLAGS="$LDFLAGS" | |
8520 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8521 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8522 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8523 | # The linker can only warn and ignore the option if not recognized | |
8524 | # So say no if there are warnings | |
8525 | if test -s conftest.err; then | |
8526 | # Append any errors to the config.log. | |
8527 | cat conftest.err 1>&5 | |
8528 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8529 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8530 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8531 | lt_cv_prog_compiler_static_works=yes | |
8532 | fi | |
8533 | else | |
8534 | lt_cv_prog_compiler_static_works=yes | |
8535 | fi | |
8536 | fi | |
8537 | $RM -r conftest* | |
8538 | LDFLAGS="$save_LDFLAGS" | |
8539 | ||
8540 | fi | |
8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8542 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8543 | ||
8544 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8545 | : | |
8546 | else | |
8547 | lt_prog_compiler_static= | |
8548 | fi | |
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8557 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8558 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8559 | $as_echo_n "(cached) " >&6 | |
8560 | else | |
8561 | lt_cv_prog_compiler_c_o=no | |
8562 | $RM -r conftest 2>/dev/null | |
8563 | mkdir conftest | |
8564 | cd conftest | |
8565 | mkdir out | |
8566 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8567 | ||
8568 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8569 | # Insert the option either (1) after the last *FLAGS variable, or | |
8570 | # (2) before a word containing "conftest.", or (3) at the end. | |
8571 | # Note that $ac_compile itself does not contain backslashes and begins | |
8572 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8573 | lt_compile=`echo "$ac_compile" | $SED \ | |
8574 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8575 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8576 | -e 's:$: $lt_compiler_flag:'` | |
8577 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8578 | (eval "$lt_compile" 2>out/conftest.err) | |
8579 | ac_status=$? | |
8580 | cat out/conftest.err >&5 | |
8581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8582 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8583 | then | |
8584 | # The compiler can only warn and ignore the option if not recognized | |
8585 | # So say no if there are warnings | |
8586 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8587 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8588 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8589 | lt_cv_prog_compiler_c_o=yes | |
8590 | fi | |
8591 | fi | |
8592 | chmod u+w . 2>&5 | |
8593 | $RM conftest* | |
8594 | # SGI C++ compiler will create directory out/ii_files/ for | |
8595 | # template instantiation | |
8596 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8597 | $RM out/* && rmdir out | |
8598 | cd .. | |
8599 | $RM -r conftest | |
8600 | $RM conftest* | |
8601 | ||
8602 | fi | |
8603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8604 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | ||
8610 | ||
8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8612 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8613 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8614 | $as_echo_n "(cached) " >&6 | |
8615 | else | |
8616 | lt_cv_prog_compiler_c_o=no | |
8617 | $RM -r conftest 2>/dev/null | |
8618 | mkdir conftest | |
8619 | cd conftest | |
8620 | mkdir out | |
8621 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8622 | ||
8623 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8624 | # Insert the option either (1) after the last *FLAGS variable, or | |
8625 | # (2) before a word containing "conftest.", or (3) at the end. | |
8626 | # Note that $ac_compile itself does not contain backslashes and begins | |
8627 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8628 | lt_compile=`echo "$ac_compile" | $SED \ | |
8629 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8630 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8631 | -e 's:$: $lt_compiler_flag:'` | |
8632 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8633 | (eval "$lt_compile" 2>out/conftest.err) | |
8634 | ac_status=$? | |
8635 | cat out/conftest.err >&5 | |
8636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8637 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8638 | then | |
8639 | # The compiler can only warn and ignore the option if not recognized | |
8640 | # So say no if there are warnings | |
8641 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8642 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8643 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8644 | lt_cv_prog_compiler_c_o=yes | |
8645 | fi | |
8646 | fi | |
8647 | chmod u+w . 2>&5 | |
8648 | $RM conftest* | |
8649 | # SGI C++ compiler will create directory out/ii_files/ for | |
8650 | # template instantiation | |
8651 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8652 | $RM out/* && rmdir out | |
8653 | cd .. | |
8654 | $RM -r conftest | |
8655 | $RM conftest* | |
8656 | ||
8657 | fi | |
8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8659 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8660 | ||
8661 | ||
8662 | ||
8663 | ||
8664 | hard_links="nottested" | |
8665 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8666 | # do not overwrite the value of need_locks provided by the user | |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8668 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8669 | hard_links=yes | |
8670 | $RM conftest* | |
8671 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8672 | touch conftest.a | |
8673 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8674 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8676 | $as_echo "$hard_links" >&6; } | |
8677 | if test "$hard_links" = no; then | |
8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8679 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8680 | need_locks=warn | |
8681 | fi | |
8682 | else | |
8683 | need_locks=no | |
8684 | fi | |
8685 | ||
8686 | ||
8687 | ||
8688 | ||
8689 | ||
8690 | ||
8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8692 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8693 | ||
8694 | runpath_var= | |
8695 | allow_undefined_flag= | |
8696 | always_export_symbols=no | |
8697 | archive_cmds= | |
8698 | archive_expsym_cmds= | |
8699 | compiler_needs_object=no | |
8700 | enable_shared_with_static_runtimes=no | |
8701 | export_dynamic_flag_spec= | |
8702 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8703 | hardcode_automatic=no | |
8704 | hardcode_direct=no | |
8705 | hardcode_direct_absolute=no | |
8706 | hardcode_libdir_flag_spec= | |
8707 | hardcode_libdir_flag_spec_ld= | |
8708 | hardcode_libdir_separator= | |
8709 | hardcode_minus_L=no | |
8710 | hardcode_shlibpath_var=unsupported | |
8711 | inherit_rpath=no | |
8712 | link_all_deplibs=unknown | |
8713 | module_cmds= | |
8714 | module_expsym_cmds= | |
8715 | old_archive_from_new_cmds= | |
8716 | old_archive_from_expsyms_cmds= | |
8717 | thread_safe_flag_spec= | |
8718 | whole_archive_flag_spec= | |
8719 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8720 | # included in the symbol list | |
8721 | include_expsyms= | |
8722 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8723 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8724 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8725 | # as well as any symbol that contains `d'. | |
8726 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8727 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8728 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8729 | # the symbol is explicitly referenced. Since portable code cannot | |
8730 | # rely on this symbol name, it's probably fine to never include it in | |
8731 | # preloaded symbol tables. | |
8732 | # Exclude shared library initialization/finalization symbols. | |
8733 | extract_expsyms_cmds= | |
8734 | ||
8735 | case $host_os in | |
8736 | cygwin* | mingw* | pw32* | cegcc*) | |
8737 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8738 | # When not using gcc, we currently assume that we are using | |
8739 | # Microsoft Visual C++. | |
8740 | if test "$GCC" != yes; then | |
8741 | with_gnu_ld=no | |
8742 | fi | |
8743 | ;; | |
8744 | interix*) | |
8745 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8746 | with_gnu_ld=yes | |
8747 | ;; | |
8748 | openbsd*) | |
8749 | with_gnu_ld=no | |
8750 | ;; | |
8751 | esac | |
8752 | ||
8753 | ld_shlibs=yes | |
8754 | ||
8755 | # On some targets, GNU ld is compatible enough with the native linker | |
8756 | # that we're better off using the native interface for both. | |
8757 | lt_use_gnu_ld_interface=no | |
8758 | if test "$with_gnu_ld" = yes; then | |
8759 | case $host_os in | |
8760 | aix*) | |
8761 | # The AIX port of GNU ld has always aspired to compatibility | |
8762 | # with the native linker. However, as the warning in the GNU ld | |
8763 | # block says, versions before 2.19.5* couldn't really create working | |
8764 | # shared libraries, regardless of the interface used. | |
8765 | case `$LD -v 2>&1` in | |
8766 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8767 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8768 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8769 | *) | |
8770 | lt_use_gnu_ld_interface=yes | |
8771 | ;; | |
8772 | esac | |
8773 | ;; | |
8774 | *) | |
8775 | lt_use_gnu_ld_interface=yes | |
8776 | ;; | |
8777 | esac | |
8778 | fi | |
8779 | ||
8780 | if test "$lt_use_gnu_ld_interface" = yes; then | |
8781 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8782 | wlarc='${wl}' | |
8783 | ||
8784 | # Set some defaults for GNU ld with shared library support. These | |
8785 | # are reset later if shared libraries are not supported. Putting them | |
8786 | # here allows them to be overridden if necessary. | |
8787 | runpath_var=LD_RUN_PATH | |
8788 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8789 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8790 | # ancient GNU ld didn't support --whole-archive et. al. | |
8791 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8792 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8793 | else | |
8794 | whole_archive_flag_spec= | |
8795 | fi | |
8796 | supports_anon_versioning=no | |
8797 | case `$LD -v 2>&1` in | |
8798 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
8799 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8800 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8801 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8802 | *\ 2.11.*) ;; # other 2.11 versions | |
8803 | *) supports_anon_versioning=yes ;; | |
8804 | esac | |
8805 | ||
8806 | # See if GNU ld supports shared libraries. | |
8807 | case $host_os in | |
8808 | aix[3-9]*) | |
8809 | # On AIX/PPC, the GNU linker is very broken | |
8810 | if test "$host_cpu" != ia64; then | |
8811 | ld_shlibs=no | |
8812 | cat <<_LT_EOF 1>&2 | |
8813 | ||
8814 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
8815 | *** to be unable to reliably create shared libraries on AIX. | |
8816 | *** Therefore, libtool is disabling shared libraries support. If you | |
8817 | *** really care for shared libraries, you may want to install binutils | |
8818 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8819 | *** You will then need to restart the configuration process. | |
8820 | ||
8821 | _LT_EOF | |
8822 | fi | |
8823 | ;; | |
8824 | ||
8825 | amigaos*) | |
8826 | case $host_cpu in | |
8827 | powerpc) | |
8828 | # see comment about AmigaOS4 .so support | |
8829 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8830 | archive_expsym_cmds='' | |
8831 | ;; | |
8832 | m68k) | |
8833 | 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)' | |
8834 | hardcode_libdir_flag_spec='-L$libdir' | |
8835 | hardcode_minus_L=yes | |
8836 | ;; | |
8837 | esac | |
8838 | ;; | |
8839 | ||
8840 | beos*) | |
8841 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8842 | allow_undefined_flag=unsupported | |
8843 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8844 | # support --undefined. This deserves some investigation. FIXME | |
8845 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8846 | else | |
8847 | ld_shlibs=no | |
8848 | fi | |
8849 | ;; | |
8850 | ||
8851 | cygwin* | mingw* | pw32* | cegcc*) | |
8852 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8853 | # as there is no search path for DLLs. | |
8854 | hardcode_libdir_flag_spec='-L$libdir' | |
8855 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8856 | allow_undefined_flag=unsupported | |
8857 | always_export_symbols=no | |
8858 | enable_shared_with_static_runtimes=yes | |
8859 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8860 | ||
8861 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8862 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8863 | # If the export-symbols file already is a .def file (1st line | |
8864 | # is EXPORTS), use it as is; otherwise, prepend... | |
8865 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8866 | cp $export_symbols $output_objdir/$soname.def; | |
8867 | else | |
8868 | echo EXPORTS > $output_objdir/$soname.def; | |
8869 | cat $export_symbols >> $output_objdir/$soname.def; | |
8870 | fi~ | |
8871 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8872 | else | |
8873 | ld_shlibs=no | |
8874 | fi | |
8875 | ;; | |
8876 | ||
8877 | haiku*) | |
8878 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8879 | link_all_deplibs=yes | |
8880 | ;; | |
8881 | ||
8882 | interix[3-9]*) | |
8883 | hardcode_direct=no | |
8884 | hardcode_shlibpath_var=no | |
8885 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8886 | export_dynamic_flag_spec='${wl}-E' | |
8887 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8888 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8889 | # default) and relocated if they conflict, which is a slow very memory | |
8890 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8891 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8892 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8893 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8894 | 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' | |
8895 | ;; | |
8896 | ||
8897 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
8898 | tmp_diet=no | |
8899 | if test "$host_os" = linux-dietlibc; then | |
8900 | case $cc_basename in | |
8901 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8902 | esac | |
8903 | fi | |
8904 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8905 | && test "$tmp_diet" = no | |
8906 | then | |
8907 | tmp_addflag= | |
8908 | tmp_sharedflag='-shared' | |
8909 | case $cc_basename,$host_cpu in | |
8910 | pgcc*) # Portland Group C compiler | |
8911 | 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' | |
8912 | tmp_addflag=' $pic_flag' | |
8913 | ;; | |
8914 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8915 | # Portland Group f77 and f90 compilers | |
8916 | 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' | |
8917 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8918 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8919 | tmp_addflag=' -i_dynamic' ;; | |
8920 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8921 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8922 | ifc* | ifort*) # Intel Fortran compiler | |
8923 | tmp_addflag=' -nofor_main' ;; | |
8924 | lf95*) # Lahey Fortran 8.1 | |
8925 | whole_archive_flag_spec= | |
8926 | tmp_sharedflag='--shared' ;; | |
8927 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8928 | tmp_sharedflag='-qmkshrobj' | |
8929 | tmp_addflag= ;; | |
8930 | nvcc*) # Cuda Compiler Driver 2.2 | |
8931 | 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' | |
8932 | compiler_needs_object=yes | |
8933 | ;; | |
8934 | esac | |
8935 | case `$CC -V 2>&1 | sed 5q` in | |
8936 | *Sun\ C*) # Sun C 5.9 | |
8937 | 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' | |
8938 | compiler_needs_object=yes | |
8939 | tmp_sharedflag='-G' ;; | |
8940 | *Sun\ F*) # Sun Fortran 8.3 | |
8941 | tmp_sharedflag='-G' ;; | |
8942 | esac | |
8943 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8944 | ||
8945 | if test "x$supports_anon_versioning" = xyes; then | |
8946 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8947 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8948 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8949 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8950 | fi | |
8951 | ||
8952 | case $cc_basename in | |
8953 | xlf* | bgf* | bgxlf* | mpixlf*) | |
8954 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8955 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8956 | hardcode_libdir_flag_spec= | |
8957 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8958 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8959 | if test "x$supports_anon_versioning" = xyes; then | |
8960 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8961 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8962 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8963 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8964 | fi | |
8965 | ;; | |
8966 | esac | |
8967 | else | |
8968 | ld_shlibs=no | |
8969 | fi | |
8970 | ;; | |
8971 | ||
8972 | netbsd*) | |
8973 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8974 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8975 | wlarc= | |
8976 | else | |
8977 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8978 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8979 | fi | |
8980 | ;; | |
8981 | ||
8982 | solaris*) | |
8983 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8984 | ld_shlibs=no | |
8985 | cat <<_LT_EOF 1>&2 | |
8986 | ||
8987 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8988 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8989 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8990 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8991 | *** your PATH or compiler configuration so that the native linker is | |
8992 | *** used, and then restart. | |
8993 | ||
8994 | _LT_EOF | |
8995 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8996 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8997 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8998 | else | |
8999 | ld_shlibs=no | |
9000 | fi | |
9001 | ;; | |
9002 | ||
9003 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9004 | case `$LD -v 2>&1` in | |
9005 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9006 | ld_shlibs=no | |
9007 | cat <<_LT_EOF 1>&2 | |
9008 | ||
9009 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9010 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9011 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9012 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9013 | *** your PATH or compiler configuration so that the native linker is | |
9014 | *** used, and then restart. | |
9015 | ||
9016 | _LT_EOF | |
9017 | ;; | |
9018 | *) | |
9019 | # For security reasons, it is highly recommended that you always | |
9020 | # use absolute paths for naming shared libraries, and exclude the | |
9021 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9022 | # requires that you compile everything twice, which is a pain. | |
9023 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9024 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9025 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9026 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9027 | else | |
9028 | ld_shlibs=no | |
9029 | fi | |
9030 | ;; | |
9031 | esac | |
9032 | ;; | |
9033 | ||
9034 | sunos4*) | |
9035 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9036 | wlarc= | |
9037 | hardcode_direct=yes | |
9038 | hardcode_shlibpath_var=no | |
9039 | ;; | |
9040 | ||
9041 | *) | |
9042 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9043 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9044 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9045 | else | |
9046 | ld_shlibs=no | |
9047 | fi | |
9048 | ;; | |
9049 | esac | |
9050 | ||
9051 | if test "$ld_shlibs" = no; then | |
9052 | runpath_var= | |
9053 | hardcode_libdir_flag_spec= | |
9054 | export_dynamic_flag_spec= | |
9055 | whole_archive_flag_spec= | |
9056 | fi | |
9057 | else | |
9058 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9059 | case $host_os in | |
9060 | aix3*) | |
9061 | allow_undefined_flag=unsupported | |
9062 | always_export_symbols=yes | |
9063 | 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' | |
9064 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9065 | # are no directories specified by -L. | |
9066 | hardcode_minus_L=yes | |
9067 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9068 | # Neither direct hardcoding nor static linking is supported with a | |
9069 | # broken collect2. | |
9070 | hardcode_direct=unsupported | |
9071 | fi | |
9072 | ;; | |
9073 | ||
9074 | aix[4-9]*) | |
9075 | if test "$host_cpu" = ia64; then | |
9076 | # On IA64, the linker does run time linking by default, so we don't | |
9077 | # have to do anything special. | |
9078 | aix_use_runtimelinking=no | |
9079 | exp_sym_flag='-Bexport' | |
9080 | no_entry_flag="" | |
9081 | else | |
9082 | # If we're using GNU nm, then we don't want the "-C" option. | |
9083 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9084 | # Also, AIX nm treats weak defined symbols like other global | |
9085 | # defined symbols, whereas GNU nm marks them as "W". | |
9086 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9087 | 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' | |
9088 | else | |
9089 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9090 | fi | |
9091 | aix_use_runtimelinking=no | |
9092 | ||
9093 | # Test if we are trying to use run time linking or normal | |
9094 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9095 | # need to do runtime linking. | |
9096 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9097 | for ld_flag in $LDFLAGS; do | |
9098 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9099 | aix_use_runtimelinking=yes | |
9100 | break | |
9101 | fi | |
9102 | done | |
9103 | ;; | |
9104 | esac | |
9105 | ||
9106 | exp_sym_flag='-bexport' | |
9107 | no_entry_flag='-bnoentry' | |
9108 | fi | |
9109 | ||
9110 | # When large executables or shared objects are built, AIX ld can | |
9111 | # have problems creating the table of contents. If linking a library | |
9112 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9113 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9114 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9115 | ||
9116 | archive_cmds='' | |
9117 | hardcode_direct=yes | |
9118 | hardcode_direct_absolute=yes | |
9119 | hardcode_libdir_separator=':' | |
9120 | link_all_deplibs=yes | |
9121 | file_list_spec='${wl}-f,' | |
9122 | ||
9123 | if test "$GCC" = yes; then | |
9124 | case $host_os in aix4.[012]|aix4.[012].*) | |
9125 | # We only want to do this on AIX 4.2 and lower, the check | |
9126 | # below for broken collect2 doesn't work under 4.3+ | |
9127 | collect2name=`${CC} -print-prog-name=collect2` | |
9128 | if test -f "$collect2name" && | |
9129 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9130 | then | |
9131 | # We have reworked collect2 | |
9132 | : | |
9133 | else | |
9134 | # We have old collect2 | |
9135 | hardcode_direct=unsupported | |
9136 | # It fails to find uninstalled libraries when the uninstalled | |
9137 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9138 | # to unsupported forces relinking | |
9139 | hardcode_minus_L=yes | |
9140 | hardcode_libdir_flag_spec='-L$libdir' | |
9141 | hardcode_libdir_separator= | |
9142 | fi | |
9143 | ;; | |
9144 | esac | |
9145 | shared_flag='-shared' | |
9146 | if test "$aix_use_runtimelinking" = yes; then | |
9147 | shared_flag="$shared_flag "'${wl}-G' | |
9148 | fi | |
9149 | else | |
9150 | # not using gcc | |
9151 | if test "$host_cpu" = ia64; then | |
9152 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9153 | # chokes on -Wl,-G. The following line is correct: | |
9154 | shared_flag='-G' | |
9155 | else | |
9156 | if test "$aix_use_runtimelinking" = yes; then | |
9157 | shared_flag='${wl}-G' | |
9158 | else | |
9159 | shared_flag='${wl}-bM:SRE' | |
9160 | fi | |
9161 | fi | |
9162 | fi | |
9163 | ||
9164 | export_dynamic_flag_spec='${wl}-bexpall' | |
9165 | # It seems that -bexpall does not export symbols beginning with | |
9166 | # underscore (_), so it is better to generate a list of symbols to export. | |
9167 | always_export_symbols=yes | |
9168 | if test "$aix_use_runtimelinking" = yes; then | |
9169 | # Warning - without using the other runtime loading flags (-brtl), | |
9170 | # -berok will link without error, but may produce a broken library. | |
9171 | allow_undefined_flag='-berok' | |
9172 | # Determine the default libpath from the value encoded in an | |
9173 | # empty executable. | |
9174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9175 | /* end confdefs.h. */ | |
9176 | ||
9177 | int | |
9178 | main () | |
9179 | { | |
9180 | ||
9181 | ; | |
9182 | return 0; | |
9183 | } | |
9184 | _ACEOF | |
9185 | if ac_fn_c_try_link "$LINENO"; then : | |
9186 | ||
9187 | lt_aix_libpath_sed=' | |
9188 | /Import File Strings/,/^$/ { | |
9189 | /^0/ { | |
9190 | s/^0 *\(.*\)$/\1/ | |
9191 | p | |
9192 | } | |
9193 | }' | |
9194 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9195 | # Check for a 64-bit object if we didn't find anything. | |
9196 | if test -z "$aix_libpath"; then | |
9197 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9198 | fi | |
9199 | fi | |
9200 | rm -f core conftest.err conftest.$ac_objext \ | |
9201 | conftest$ac_exeext conftest.$ac_ext | |
9202 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9203 | ||
9204 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9205 | 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" | |
9206 | else | |
9207 | if test "$host_cpu" = ia64; then | |
9208 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9209 | allow_undefined_flag="-z nodefs" | |
9210 | 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" | |
9211 | else | |
9212 | # Determine the default libpath from the value encoded in an | |
9213 | # empty executable. | |
9214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9215 | /* end confdefs.h. */ | |
9216 | ||
9217 | int | |
9218 | main () | |
9219 | { | |
9220 | ||
9221 | ; | |
9222 | return 0; | |
9223 | } | |
9224 | _ACEOF | |
9225 | if ac_fn_c_try_link "$LINENO"; then : | |
9226 | ||
9227 | lt_aix_libpath_sed=' | |
9228 | /Import File Strings/,/^$/ { | |
9229 | /^0/ { | |
9230 | s/^0 *\(.*\)$/\1/ | |
9231 | p | |
9232 | } | |
9233 | }' | |
9234 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9235 | # Check for a 64-bit object if we didn't find anything. | |
9236 | if test -z "$aix_libpath"; then | |
9237 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9238 | fi | |
9239 | fi | |
9240 | rm -f core conftest.err conftest.$ac_objext \ | |
9241 | conftest$ac_exeext conftest.$ac_ext | |
9242 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9243 | ||
9244 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9245 | # Warning - without using the other run time loading flags, | |
9246 | # -berok will link without error, but may produce a broken library. | |
9247 | no_undefined_flag=' ${wl}-bernotok' | |
9248 | allow_undefined_flag=' ${wl}-berok' | |
9249 | if test "$with_gnu_ld" = yes; then | |
9250 | # We only use this code for GNU lds that support --whole-archive. | |
9251 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9252 | else | |
9253 | # Exported symbols can be pulled into shared objects from archives | |
9254 | whole_archive_flag_spec='$convenience' | |
9255 | fi | |
9256 | archive_cmds_need_lc=yes | |
9257 | # This is similar to how AIX traditionally builds its shared libraries. | |
9258 | 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' | |
9259 | fi | |
9260 | fi | |
9261 | ;; | |
9262 | ||
9263 | amigaos*) | |
9264 | case $host_cpu in | |
9265 | powerpc) | |
9266 | # see comment about AmigaOS4 .so support | |
9267 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9268 | archive_expsym_cmds='' | |
9269 | ;; | |
9270 | m68k) | |
9271 | 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)' | |
9272 | hardcode_libdir_flag_spec='-L$libdir' | |
9273 | hardcode_minus_L=yes | |
9274 | ;; | |
9275 | esac | |
9276 | ;; | |
9277 | ||
9278 | bsdi[45]*) | |
9279 | export_dynamic_flag_spec=-rdynamic | |
9280 | ;; | |
9281 | ||
9282 | cygwin* | mingw* | pw32* | cegcc*) | |
9283 | # When not using gcc, we currently assume that we are using | |
9284 | # Microsoft Visual C++. | |
9285 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9286 | # no search path for DLLs. | |
9287 | hardcode_libdir_flag_spec=' ' | |
9288 | allow_undefined_flag=unsupported | |
9289 | # Tell ltmain to make .lib files, not .a files. | |
9290 | libext=lib | |
9291 | # Tell ltmain to make .dll files, not .so files. | |
9292 | shrext_cmds=".dll" | |
9293 | # FIXME: Setting linknames here is a bad hack. | |
9294 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9295 | # The linker will automatically build a .lib file if we build a DLL. | |
9296 | old_archive_from_new_cmds='true' | |
9297 | # FIXME: Should let the user specify the lib program. | |
9298 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9299 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9300 | enable_shared_with_static_runtimes=yes | |
9301 | ;; | |
9302 | ||
9303 | darwin* | rhapsody*) | |
9304 | ||
9305 | ||
9306 | archive_cmds_need_lc=no | |
9307 | hardcode_direct=no | |
9308 | hardcode_automatic=yes | |
9309 | hardcode_shlibpath_var=unsupported | |
9310 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9311 | 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\"`' | |
9312 | else | |
9313 | whole_archive_flag_spec='' | |
9314 | fi | |
9315 | link_all_deplibs=yes | |
9316 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9317 | case $cc_basename in | |
9318 | ifort*) _lt_dar_can_shared=yes ;; | |
9319 | *) _lt_dar_can_shared=$GCC ;; | |
9320 | esac | |
9321 | if test "$_lt_dar_can_shared" = "yes"; then | |
9322 | output_verbose_link_cmd=func_echo_all | |
9323 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9324 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9325 | 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}" | |
9326 | 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}" | |
9327 | ||
9328 | else | |
9329 | ld_shlibs=no | |
9330 | fi | |
9331 | ||
9332 | ;; | |
9333 | ||
9334 | dgux*) | |
9335 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9336 | hardcode_libdir_flag_spec='-L$libdir' | |
9337 | hardcode_shlibpath_var=no | |
9338 | ;; | |
9339 | ||
7a938933 ILT |
9340 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9341 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9342 | # does not break anything, and helps significantly (at the cost of a little | |
9343 | # extra space). | |
9344 | freebsd2.2*) | |
9345 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9346 | hardcode_libdir_flag_spec='-R$libdir' | |
9347 | hardcode_direct=yes | |
9348 | hardcode_shlibpath_var=no | |
9349 | ;; | |
9350 | ||
9351 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
327a26a3 | 9352 | freebsd2.*) |
7a938933 ILT |
9353 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9354 | hardcode_direct=yes | |
9355 | hardcode_minus_L=yes | |
9356 | hardcode_shlibpath_var=no | |
9357 | ;; | |
9358 | ||
9359 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9360 | freebsd* | dragonfly*) | |
9361 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9362 | hardcode_libdir_flag_spec='-R$libdir' | |
9363 | hardcode_direct=yes | |
9364 | hardcode_shlibpath_var=no | |
9365 | ;; | |
9366 | ||
9367 | hpux9*) | |
9368 | if test "$GCC" = yes; then | |
9369 | 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' | |
9370 | else | |
9371 | 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' | |
9372 | fi | |
9373 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9374 | hardcode_libdir_separator=: | |
9375 | hardcode_direct=yes | |
9376 | ||
9377 | # hardcode_minus_L: Not really in the search PATH, | |
9378 | # but as the default location of the library. | |
9379 | hardcode_minus_L=yes | |
9380 | export_dynamic_flag_spec='${wl}-E' | |
9381 | ;; | |
9382 | ||
9383 | hpux10*) | |
9384 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9385 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9386 | else | |
9387 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9388 | fi | |
9389 | if test "$with_gnu_ld" = no; then | |
9390 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9391 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9392 | hardcode_libdir_separator=: | |
9393 | hardcode_direct=yes | |
9394 | hardcode_direct_absolute=yes | |
9395 | export_dynamic_flag_spec='${wl}-E' | |
9396 | # hardcode_minus_L: Not really in the search PATH, | |
9397 | # but as the default location of the library. | |
9398 | hardcode_minus_L=yes | |
9399 | fi | |
9400 | ;; | |
9401 | ||
9402 | hpux11*) | |
9403 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9404 | case $host_cpu in | |
9405 | hppa*64*) | |
9406 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9407 | ;; | |
9408 | ia64*) | |
9409 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9410 | ;; | |
9411 | *) | |
9412 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9413 | ;; | |
9414 | esac | |
9415 | else | |
9416 | case $host_cpu in | |
9417 | hppa*64*) | |
9418 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9419 | ;; | |
9420 | ia64*) | |
9421 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9422 | ;; | |
9423 | *) | |
9424 | ||
9425 | # Older versions of the 11.00 compiler do not understand -b yet | |
9426 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9428 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9429 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
9430 | $as_echo_n "(cached) " >&6 | |
9431 | else | |
9432 | lt_cv_prog_compiler__b=no | |
9433 | save_LDFLAGS="$LDFLAGS" | |
9434 | LDFLAGS="$LDFLAGS -b" | |
9435 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9436 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9437 | # The linker can only warn and ignore the option if not recognized | |
9438 | # So say no if there are warnings | |
9439 | if test -s conftest.err; then | |
9440 | # Append any errors to the config.log. | |
9441 | cat conftest.err 1>&5 | |
9442 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9443 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9444 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9445 | lt_cv_prog_compiler__b=yes | |
9446 | fi | |
9447 | else | |
9448 | lt_cv_prog_compiler__b=yes | |
9449 | fi | |
9450 | fi | |
9451 | $RM -r conftest* | |
9452 | LDFLAGS="$save_LDFLAGS" | |
9453 | ||
9454 | fi | |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9456 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9457 | ||
9458 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9459 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9460 | else | |
9461 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9462 | fi | |
9463 | ||
9464 | ;; | |
9465 | esac | |
9466 | fi | |
9467 | if test "$with_gnu_ld" = no; then | |
9468 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9469 | hardcode_libdir_separator=: | |
9470 | ||
9471 | case $host_cpu in | |
9472 | hppa*64*|ia64*) | |
9473 | hardcode_direct=no | |
9474 | hardcode_shlibpath_var=no | |
9475 | ;; | |
9476 | *) | |
9477 | hardcode_direct=yes | |
9478 | hardcode_direct_absolute=yes | |
9479 | export_dynamic_flag_spec='${wl}-E' | |
9480 | ||
9481 | # hardcode_minus_L: Not really in the search PATH, | |
9482 | # but as the default location of the library. | |
9483 | hardcode_minus_L=yes | |
9484 | ;; | |
9485 | esac | |
9486 | fi | |
9487 | ;; | |
9488 | ||
9489 | irix5* | irix6* | nonstopux*) | |
9490 | if test "$GCC" = yes; then | |
9491 | 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' | |
9492 | # Try to use the -exported_symbol ld option, if it does not | |
9493 | # work, assume that -exports_file does not work either and | |
9494 | # implicitly export all symbols. | |
9495 | save_LDFLAGS="$LDFLAGS" | |
9496 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9498 | /* end confdefs.h. */ | |
9499 | int foo(void) {} | |
9500 | _ACEOF | |
9501 | if ac_fn_c_try_link "$LINENO"; then : | |
9502 | 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' | |
9503 | ||
9504 | fi | |
9505 | rm -f core conftest.err conftest.$ac_objext \ | |
9506 | conftest$ac_exeext conftest.$ac_ext | |
9507 | LDFLAGS="$save_LDFLAGS" | |
9508 | else | |
9509 | 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' | |
9510 | 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' | |
9511 | fi | |
9512 | archive_cmds_need_lc='no' | |
9513 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9514 | hardcode_libdir_separator=: | |
9515 | inherit_rpath=yes | |
9516 | link_all_deplibs=yes | |
9517 | ;; | |
9518 | ||
9519 | netbsd*) | |
9520 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9521 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9522 | else | |
9523 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9524 | fi | |
9525 | hardcode_libdir_flag_spec='-R$libdir' | |
9526 | hardcode_direct=yes | |
9527 | hardcode_shlibpath_var=no | |
9528 | ;; | |
9529 | ||
9530 | newsos6) | |
9531 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9532 | hardcode_direct=yes | |
9533 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9534 | hardcode_libdir_separator=: | |
9535 | hardcode_shlibpath_var=no | |
9536 | ;; | |
9537 | ||
9538 | *nto* | *qnx*) | |
9539 | ;; | |
9540 | ||
9541 | openbsd*) | |
9542 | if test -f /usr/libexec/ld.so; then | |
9543 | hardcode_direct=yes | |
9544 | hardcode_shlibpath_var=no | |
9545 | hardcode_direct_absolute=yes | |
9546 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9547 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9548 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9549 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9550 | export_dynamic_flag_spec='${wl}-E' | |
9551 | else | |
9552 | case $host_os in | |
9553 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9554 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9555 | hardcode_libdir_flag_spec='-R$libdir' | |
9556 | ;; | |
9557 | *) | |
9558 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9559 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9560 | ;; | |
9561 | esac | |
9562 | fi | |
9563 | else | |
9564 | ld_shlibs=no | |
9565 | fi | |
9566 | ;; | |
9567 | ||
9568 | os2*) | |
9569 | hardcode_libdir_flag_spec='-L$libdir' | |
9570 | hardcode_minus_L=yes | |
9571 | allow_undefined_flag=unsupported | |
9572 | 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' | |
9573 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9574 | ;; | |
9575 | ||
9576 | osf3*) | |
9577 | if test "$GCC" = yes; then | |
9578 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9579 | 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' | |
9580 | else | |
9581 | allow_undefined_flag=' -expect_unresolved \*' | |
9582 | 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' | |
9583 | fi | |
9584 | archive_cmds_need_lc='no' | |
9585 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9586 | hardcode_libdir_separator=: | |
9587 | ;; | |
9588 | ||
9589 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9590 | if test "$GCC" = yes; then | |
9591 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9592 | 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' | |
9593 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9594 | else | |
9595 | allow_undefined_flag=' -expect_unresolved \*' | |
9596 | 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' | |
9597 | 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~ | |
9598 | $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' | |
9599 | ||
9600 | # Both c and cxx compiler support -rpath directly | |
9601 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9602 | fi | |
9603 | archive_cmds_need_lc='no' | |
9604 | hardcode_libdir_separator=: | |
9605 | ;; | |
9606 | ||
9607 | solaris*) | |
9608 | no_undefined_flag=' -z defs' | |
9609 | if test "$GCC" = yes; then | |
9610 | wlarc='${wl}' | |
9611 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9612 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9613 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9614 | else | |
9615 | case `$CC -V 2>&1` in | |
9616 | *"Compilers 5.0"*) | |
9617 | wlarc='' | |
9618 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9619 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9620 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9621 | ;; | |
9622 | *) | |
9623 | wlarc='${wl}' | |
9624 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9625 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9626 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9627 | ;; | |
9628 | esac | |
9629 | fi | |
9630 | hardcode_libdir_flag_spec='-R$libdir' | |
9631 | hardcode_shlibpath_var=no | |
9632 | case $host_os in | |
9633 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9634 | *) | |
9635 | # The compiler driver will combine and reorder linker options, | |
9636 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9637 | # but is careful enough not to reorder. | |
9638 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9639 | if test "$GCC" = yes; then | |
9640 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9641 | else | |
9642 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9643 | fi | |
9644 | ;; | |
9645 | esac | |
9646 | link_all_deplibs=yes | |
9647 | ;; | |
9648 | ||
9649 | sunos4*) | |
9650 | if test "x$host_vendor" = xsequent; then | |
9651 | # Use $CC to link under sequent, because it throws in some extra .o | |
9652 | # files that make .init and .fini sections work. | |
9653 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9654 | else | |
9655 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9656 | fi | |
9657 | hardcode_libdir_flag_spec='-L$libdir' | |
9658 | hardcode_direct=yes | |
9659 | hardcode_minus_L=yes | |
9660 | hardcode_shlibpath_var=no | |
9661 | ;; | |
9662 | ||
9663 | sysv4) | |
9664 | case $host_vendor in | |
9665 | sni) | |
9666 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9667 | hardcode_direct=yes # is this really true??? | |
9668 | ;; | |
9669 | siemens) | |
9670 | ## LD is ld it makes a PLAMLIB | |
9671 | ## CC just makes a GrossModule. | |
9672 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9673 | reload_cmds='$CC -r -o $output$reload_objs' | |
9674 | hardcode_direct=no | |
9675 | ;; | |
9676 | motorola) | |
9677 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9678 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9679 | ;; | |
9680 | esac | |
9681 | runpath_var='LD_RUN_PATH' | |
9682 | hardcode_shlibpath_var=no | |
9683 | ;; | |
9684 | ||
9685 | sysv4.3*) | |
9686 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9687 | hardcode_shlibpath_var=no | |
9688 | export_dynamic_flag_spec='-Bexport' | |
9689 | ;; | |
9690 | ||
9691 | sysv4*MP*) | |
9692 | if test -d /usr/nec; then | |
9693 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9694 | hardcode_shlibpath_var=no | |
9695 | runpath_var=LD_RUN_PATH | |
9696 | hardcode_runpath_var=yes | |
9697 | ld_shlibs=yes | |
9698 | fi | |
9699 | ;; | |
9700 | ||
9701 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9702 | no_undefined_flag='${wl}-z,text' | |
9703 | archive_cmds_need_lc=no | |
9704 | hardcode_shlibpath_var=no | |
9705 | runpath_var='LD_RUN_PATH' | |
9706 | ||
9707 | if test "$GCC" = yes; then | |
9708 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9709 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9710 | else | |
9711 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9712 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9713 | fi | |
9714 | ;; | |
9715 | ||
9716 | sysv5* | sco3.2v5* | sco5v6*) | |
9717 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9718 | # link with -lc, and that would cause any symbols used from libc to | |
9719 | # always be unresolved, which means just about no library would | |
9720 | # ever link correctly. If we're not using GNU ld we use -z text | |
9721 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9722 | # as -z defs. | |
9723 | no_undefined_flag='${wl}-z,text' | |
9724 | allow_undefined_flag='${wl}-z,nodefs' | |
9725 | archive_cmds_need_lc=no | |
9726 | hardcode_shlibpath_var=no | |
9727 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9728 | hardcode_libdir_separator=':' | |
9729 | link_all_deplibs=yes | |
9730 | export_dynamic_flag_spec='${wl}-Bexport' | |
9731 | runpath_var='LD_RUN_PATH' | |
9732 | ||
9733 | if test "$GCC" = yes; then | |
9734 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9735 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9736 | else | |
9737 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9738 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9739 | fi | |
9740 | ;; | |
9741 | ||
9742 | uts4*) | |
9743 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9744 | hardcode_libdir_flag_spec='-L$libdir' | |
9745 | hardcode_shlibpath_var=no | |
9746 | ;; | |
9747 | ||
9748 | *) | |
9749 | ld_shlibs=no | |
9750 | ;; | |
9751 | esac | |
9752 | ||
9753 | if test x$host_vendor = xsni; then | |
9754 | case $host in | |
9755 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9756 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9757 | ;; | |
9758 | esac | |
9759 | fi | |
9760 | fi | |
9761 | ||
9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9763 | $as_echo "$ld_shlibs" >&6; } | |
9764 | test "$ld_shlibs" = no && can_build_shared=no | |
9765 | ||
9766 | with_gnu_ld=$with_gnu_ld | |
9767 | ||
9768 | ||
9769 | ||
9770 | ||
9771 | ||
9772 | ||
9773 | ||
9774 | ||
9775 | ||
9776 | ||
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | # | |
9783 | # Do we need to explicitly link libc? | |
9784 | # | |
9785 | case "x$archive_cmds_need_lc" in | |
9786 | x|xyes) | |
9787 | # Assume -lc should be added | |
9788 | archive_cmds_need_lc=yes | |
9789 | ||
9790 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9791 | case $archive_cmds in | |
9792 | *'~'*) | |
9793 | # FIXME: we may have to deal with multi-command sequences. | |
9794 | ;; | |
9795 | '$CC '*) | |
9796 | # Test whether the compiler implicitly links with -lc since on some | |
9797 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9798 | # to ld, don't add -lc before -lgcc. | |
9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
9800 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9801 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9802 | $as_echo_n "(cached) " >&6 | |
9803 | else | |
9804 | $RM conftest* | |
9805 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9806 | ||
9807 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9808 | (eval $ac_compile) 2>&5 | |
9809 | ac_status=$? | |
9810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9811 | test $ac_status = 0; } 2>conftest.err; then | |
9812 | soname=conftest | |
9813 | lib=conftest | |
9814 | libobjs=conftest.$ac_objext | |
9815 | deplibs= | |
9816 | wl=$lt_prog_compiler_wl | |
9817 | pic_flag=$lt_prog_compiler_pic | |
9818 | compiler_flags=-v | |
9819 | linker_flags=-v | |
9820 | verstring= | |
9821 | output_objdir=. | |
9822 | libname=conftest | |
9823 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9824 | allow_undefined_flag= | |
9825 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
9826 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9827 | ac_status=$? | |
9828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9829 | test $ac_status = 0; } | |
9830 | then | |
9831 | lt_cv_archive_cmds_need_lc=no | |
9832 | else | |
9833 | lt_cv_archive_cmds_need_lc=yes | |
9834 | fi | |
9835 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9836 | else | |
9837 | cat conftest.err 1>&5 | |
9838 | fi | |
9839 | $RM conftest* | |
9840 | ||
9841 | fi | |
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9843 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9844 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
9845 | ;; | |
9846 | esac | |
9847 | fi | |
9848 | ;; | |
9849 | esac | |
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | ||
9942 | ||
9943 | ||
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | ||
9950 | ||
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ||
9987 | ||
9988 | ||
9989 | ||
9990 | ||
9991 | ||
9992 | ||
9993 | ||
9994 | ||
9995 | ||
9996 | ||
9997 | ||
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10008 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10009 | ||
10010 | if test "$GCC" = yes; then | |
10011 | case $host_os in | |
10012 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10013 | *) lt_awk_arg="/^libraries:/" ;; | |
10014 | esac | |
10015 | case $host_os in | |
10016 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10017 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10018 | esac | |
10019 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10020 | case $lt_search_path_spec in | |
10021 | *\;*) | |
10022 | # if the path contains ";" then we assume it to be the separator | |
10023 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10024 | # assumed that no part of a normal pathname contains ";" but that should | |
10025 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10026 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10027 | ;; | |
10028 | *) | |
10029 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10030 | ;; | |
10031 | esac | |
10032 | # Ok, now we have the path, separated by spaces, we can step through it | |
10033 | # and add multilib dir if necessary. | |
10034 | lt_tmp_lt_search_path_spec= | |
10035 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10036 | for lt_sys_path in $lt_search_path_spec; do | |
10037 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10038 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10039 | else | |
10040 | test -d "$lt_sys_path" && \ | |
10041 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10042 | fi | |
10043 | done | |
10044 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10045 | BEGIN {RS=" "; FS="/|\n";} { | |
10046 | lt_foo=""; | |
10047 | lt_count=0; | |
10048 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10049 | if ($lt_i != "" && $lt_i != ".") { | |
10050 | if ($lt_i == "..") { | |
10051 | lt_count++; | |
10052 | } else { | |
10053 | if (lt_count == 0) { | |
10054 | lt_foo="/" $lt_i lt_foo; | |
10055 | } else { | |
10056 | lt_count--; | |
10057 | } | |
10058 | } | |
10059 | } | |
10060 | } | |
10061 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10062 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10063 | }'` | |
10064 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10065 | # for these hosts. | |
10066 | case $host_os in | |
10067 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10068 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10069 | esac | |
10070 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10071 | else | |
10072 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10073 | fi | |
10074 | library_names_spec= | |
10075 | libname_spec='lib$name' | |
10076 | soname_spec= | |
10077 | shrext_cmds=".so" | |
10078 | postinstall_cmds= | |
10079 | postuninstall_cmds= | |
10080 | finish_cmds= | |
10081 | finish_eval= | |
10082 | shlibpath_var= | |
10083 | shlibpath_overrides_runpath=unknown | |
10084 | version_type=none | |
10085 | dynamic_linker="$host_os ld.so" | |
10086 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10087 | need_lib_prefix=unknown | |
10088 | hardcode_into_libs=no | |
10089 | ||
10090 | # when you set need_version to no, make sure it does not cause -set_version | |
10091 | # flags to be left without arguments | |
10092 | need_version=unknown | |
10093 | ||
10094 | case $host_os in | |
10095 | aix3*) | |
10096 | version_type=linux | |
10097 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10098 | shlibpath_var=LIBPATH | |
10099 | ||
10100 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10101 | soname_spec='${libname}${release}${shared_ext}$major' | |
10102 | ;; | |
10103 | ||
10104 | aix[4-9]*) | |
10105 | version_type=linux | |
10106 | need_lib_prefix=no | |
10107 | need_version=no | |
10108 | hardcode_into_libs=yes | |
10109 | if test "$host_cpu" = ia64; then | |
10110 | # AIX 5 supports IA64 | |
10111 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10112 | shlibpath_var=LD_LIBRARY_PATH | |
10113 | else | |
10114 | # With GCC up to 2.95.x, collect2 would create an import file | |
10115 | # for dependence libraries. The import file would start with | |
10116 | # the line `#! .'. This would cause the generated library to | |
10117 | # depend on `.', always an invalid library. This was fixed in | |
10118 | # development snapshots of GCC prior to 3.0. | |
10119 | case $host_os in | |
10120 | aix4 | aix4.[01] | aix4.[01].*) | |
10121 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10122 | echo ' yes ' | |
10123 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10124 | : | |
10125 | else | |
10126 | can_build_shared=no | |
10127 | fi | |
10128 | ;; | |
10129 | esac | |
10130 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10131 | # soname into executable. Probably we can add versioning support to | |
10132 | # collect2, so additional links can be useful in future. | |
10133 | if test "$aix_use_runtimelinking" = yes; then | |
10134 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10135 | # instead of lib<name>.a to let people know that these are not | |
10136 | # typical AIX shared libraries. | |
10137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10138 | else | |
10139 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10140 | # and later when we are not doing run time linking. | |
10141 | library_names_spec='${libname}${release}.a $libname.a' | |
10142 | soname_spec='${libname}${release}${shared_ext}$major' | |
10143 | fi | |
10144 | shlibpath_var=LIBPATH | |
10145 | fi | |
10146 | ;; | |
10147 | ||
10148 | amigaos*) | |
10149 | case $host_cpu in | |
10150 | powerpc) | |
10151 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10152 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10154 | ;; | |
10155 | m68k) | |
10156 | library_names_spec='$libname.ixlibrary $libname.a' | |
10157 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10158 | 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' | |
10159 | ;; | |
10160 | esac | |
10161 | ;; | |
10162 | ||
10163 | beos*) | |
10164 | library_names_spec='${libname}${shared_ext}' | |
10165 | dynamic_linker="$host_os ld.so" | |
10166 | shlibpath_var=LIBRARY_PATH | |
10167 | ;; | |
10168 | ||
10169 | bsdi[45]*) | |
10170 | version_type=linux | |
10171 | need_version=no | |
10172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10173 | soname_spec='${libname}${release}${shared_ext}$major' | |
10174 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10175 | shlibpath_var=LD_LIBRARY_PATH | |
10176 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10177 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10178 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10179 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10180 | # libtool to hard-code these into programs | |
10181 | ;; | |
10182 | ||
10183 | cygwin* | mingw* | pw32* | cegcc*) | |
10184 | version_type=windows | |
10185 | shrext_cmds=".dll" | |
10186 | need_version=no | |
10187 | need_lib_prefix=no | |
10188 | ||
10189 | case $GCC,$host_os in | |
10190 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10191 | library_names_spec='$libname.dll.a' | |
10192 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10193 | postinstall_cmds='base_file=`basename \${file}`~ | |
10194 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10195 | dldir=$destdir/`dirname \$dlpath`~ | |
10196 | test -d \$dldir || mkdir -p \$dldir~ | |
10197 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10198 | chmod a+x \$dldir/$dlname~ | |
10199 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10200 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10201 | fi' | |
10202 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10203 | dlpath=$dir/\$dldll~ | |
10204 | $RM \$dlpath' | |
10205 | shlibpath_overrides_runpath=yes | |
10206 | ||
10207 | case $host_os in | |
10208 | cygwin*) | |
10209 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10210 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10211 | ||
10212 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10213 | ;; | |
10214 | mingw* | cegcc*) | |
10215 | # MinGW DLLs use traditional 'lib' prefix | |
10216 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10217 | ;; | |
10218 | pw32*) | |
10219 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10220 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10221 | ;; | |
10222 | esac | |
10223 | ;; | |
10224 | ||
10225 | *) | |
10226 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10227 | ;; | |
10228 | esac | |
10229 | dynamic_linker='Win32 ld.exe' | |
10230 | # FIXME: first we should search . and the directory the executable is in | |
10231 | shlibpath_var=PATH | |
10232 | ;; | |
10233 | ||
10234 | darwin* | rhapsody*) | |
10235 | dynamic_linker="$host_os dyld" | |
10236 | version_type=darwin | |
10237 | need_lib_prefix=no | |
10238 | need_version=no | |
10239 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10240 | soname_spec='${libname}${release}${major}$shared_ext' | |
10241 | shlibpath_overrides_runpath=yes | |
10242 | shlibpath_var=DYLD_LIBRARY_PATH | |
10243 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10244 | ||
10245 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10246 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10247 | ;; | |
10248 | ||
10249 | dgux*) | |
10250 | version_type=linux | |
10251 | need_lib_prefix=no | |
10252 | need_version=no | |
10253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10254 | soname_spec='${libname}${release}${shared_ext}$major' | |
10255 | shlibpath_var=LD_LIBRARY_PATH | |
10256 | ;; | |
10257 | ||
7a938933 ILT |
10258 | freebsd* | dragonfly*) |
10259 | # DragonFly does not have aout. When/if they implement a new | |
10260 | # versioning mechanism, adjust this. | |
10261 | if test -x /usr/bin/objformat; then | |
10262 | objformat=`/usr/bin/objformat` | |
10263 | else | |
10264 | case $host_os in | |
327a26a3 | 10265 | freebsd[23].*) objformat=aout ;; |
7a938933 ILT |
10266 | *) objformat=elf ;; |
10267 | esac | |
10268 | fi | |
10269 | version_type=freebsd-$objformat | |
10270 | case $version_type in | |
10271 | freebsd-elf*) | |
10272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10273 | need_version=no | |
10274 | need_lib_prefix=no | |
10275 | ;; | |
10276 | freebsd-*) | |
10277 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10278 | need_version=yes | |
10279 | ;; | |
10280 | esac | |
10281 | shlibpath_var=LD_LIBRARY_PATH | |
10282 | case $host_os in | |
327a26a3 | 10283 | freebsd2.*) |
7a938933 ILT |
10284 | shlibpath_overrides_runpath=yes |
10285 | ;; | |
10286 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10287 | shlibpath_overrides_runpath=yes | |
10288 | hardcode_into_libs=yes | |
10289 | ;; | |
10290 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10291 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10292 | shlibpath_overrides_runpath=no | |
10293 | hardcode_into_libs=yes | |
10294 | ;; | |
10295 | *) # from 4.6 on, and DragonFly | |
10296 | shlibpath_overrides_runpath=yes | |
10297 | hardcode_into_libs=yes | |
10298 | ;; | |
10299 | esac | |
10300 | ;; | |
10301 | ||
10302 | gnu*) | |
10303 | version_type=linux | |
10304 | need_lib_prefix=no | |
10305 | need_version=no | |
10306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10307 | soname_spec='${libname}${release}${shared_ext}$major' | |
10308 | shlibpath_var=LD_LIBRARY_PATH | |
10309 | hardcode_into_libs=yes | |
10310 | ;; | |
10311 | ||
10312 | haiku*) | |
10313 | version_type=linux | |
10314 | need_lib_prefix=no | |
10315 | need_version=no | |
10316 | dynamic_linker="$host_os runtime_loader" | |
10317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10318 | soname_spec='${libname}${release}${shared_ext}$major' | |
10319 | shlibpath_var=LIBRARY_PATH | |
10320 | shlibpath_overrides_runpath=yes | |
10321 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10322 | hardcode_into_libs=yes | |
10323 | ;; | |
10324 | ||
10325 | hpux9* | hpux10* | hpux11*) | |
10326 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10327 | # link against other versions. | |
10328 | version_type=sunos | |
10329 | need_lib_prefix=no | |
10330 | need_version=no | |
10331 | case $host_cpu in | |
10332 | ia64*) | |
10333 | shrext_cmds='.so' | |
10334 | hardcode_into_libs=yes | |
10335 | dynamic_linker="$host_os dld.so" | |
10336 | shlibpath_var=LD_LIBRARY_PATH | |
10337 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10339 | soname_spec='${libname}${release}${shared_ext}$major' | |
10340 | if test "X$HPUX_IA64_MODE" = X32; then | |
10341 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10342 | else | |
10343 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10344 | fi | |
10345 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10346 | ;; | |
10347 | hppa*64*) | |
10348 | shrext_cmds='.sl' | |
10349 | hardcode_into_libs=yes | |
10350 | dynamic_linker="$host_os dld.sl" | |
10351 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10352 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10354 | soname_spec='${libname}${release}${shared_ext}$major' | |
10355 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10356 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10357 | ;; | |
10358 | *) | |
10359 | shrext_cmds='.sl' | |
10360 | dynamic_linker="$host_os dld.sl" | |
10361 | shlibpath_var=SHLIB_PATH | |
10362 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10364 | soname_spec='${libname}${release}${shared_ext}$major' | |
10365 | ;; | |
10366 | esac | |
10367 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10368 | postinstall_cmds='chmod 555 $lib' | |
10369 | # or fails outright, so override atomically: | |
10370 | install_override_mode=555 | |
10371 | ;; | |
10372 | ||
10373 | interix[3-9]*) | |
10374 | version_type=linux | |
10375 | need_lib_prefix=no | |
10376 | need_version=no | |
10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10378 | soname_spec='${libname}${release}${shared_ext}$major' | |
10379 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10380 | shlibpath_var=LD_LIBRARY_PATH | |
10381 | shlibpath_overrides_runpath=no | |
10382 | hardcode_into_libs=yes | |
10383 | ;; | |
10384 | ||
10385 | irix5* | irix6* | nonstopux*) | |
10386 | case $host_os in | |
10387 | nonstopux*) version_type=nonstopux ;; | |
10388 | *) | |
10389 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10390 | version_type=linux | |
10391 | else | |
10392 | version_type=irix | |
10393 | fi ;; | |
10394 | esac | |
10395 | need_lib_prefix=no | |
10396 | need_version=no | |
10397 | soname_spec='${libname}${release}${shared_ext}$major' | |
10398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10399 | case $host_os in | |
10400 | irix5* | nonstopux*) | |
10401 | libsuff= shlibsuff= | |
10402 | ;; | |
10403 | *) | |
10404 | case $LD in # libtool.m4 will add one of these switches to LD | |
10405 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10406 | libsuff= shlibsuff= libmagic=32-bit;; | |
10407 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10408 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10409 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10410 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10411 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10412 | esac | |
10413 | ;; | |
10414 | esac | |
10415 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10416 | shlibpath_overrides_runpath=no | |
10417 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10418 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10419 | hardcode_into_libs=yes | |
10420 | ;; | |
10421 | ||
10422 | # No shared lib support for Linux oldld, aout, or coff. | |
10423 | linux*oldld* | linux*aout* | linux*coff*) | |
10424 | dynamic_linker=no | |
10425 | ;; | |
10426 | ||
10427 | # This must be Linux ELF. | |
10428 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10429 | version_type=linux | |
10430 | need_lib_prefix=no | |
10431 | need_version=no | |
10432 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10433 | soname_spec='${libname}${release}${shared_ext}$major' | |
10434 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10435 | shlibpath_var=LD_LIBRARY_PATH | |
10436 | shlibpath_overrides_runpath=no | |
10437 | ||
10438 | # Some binutils ld are patched to set DT_RUNPATH | |
10439 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
10440 | $as_echo_n "(cached) " >&6 | |
10441 | else | |
10442 | lt_cv_shlibpath_overrides_runpath=no | |
10443 | save_LDFLAGS=$LDFLAGS | |
10444 | save_libdir=$libdir | |
10445 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10446 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10448 | /* end confdefs.h. */ | |
10449 | ||
10450 | int | |
10451 | main () | |
10452 | { | |
10453 | ||
10454 | ; | |
10455 | return 0; | |
10456 | } | |
10457 | _ACEOF | |
10458 | if ac_fn_c_try_link "$LINENO"; then : | |
10459 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10460 | lt_cv_shlibpath_overrides_runpath=yes | |
10461 | fi | |
10462 | fi | |
10463 | rm -f core conftest.err conftest.$ac_objext \ | |
10464 | conftest$ac_exeext conftest.$ac_ext | |
10465 | LDFLAGS=$save_LDFLAGS | |
10466 | libdir=$save_libdir | |
10467 | ||
10468 | fi | |
10469 | ||
10470 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10471 | ||
10472 | # This implies no fast_install, which is unacceptable. | |
10473 | # Some rework will be needed to allow for fast_install | |
10474 | # before this can be enabled. | |
10475 | hardcode_into_libs=yes | |
10476 | ||
10477 | # Append ld.so.conf contents to the search path | |
10478 | if test -f /etc/ld.so.conf; then | |
10479 | 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' ' '` | |
10480 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10481 | fi | |
10482 | ||
10483 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10484 | # powerpc, because MkLinux only supported shared libraries with the | |
10485 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10486 | # most powerpc-linux boxes support dynamic linking these days and | |
10487 | # people can always --disable-shared, the test was removed, and we | |
10488 | # assume the GNU/Linux dynamic linker is in use. | |
10489 | dynamic_linker='GNU/Linux ld.so' | |
10490 | ;; | |
10491 | ||
10492 | netbsd*) | |
10493 | version_type=sunos | |
10494 | need_lib_prefix=no | |
10495 | need_version=no | |
10496 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10498 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10499 | dynamic_linker='NetBSD (a.out) ld.so' | |
10500 | else | |
10501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10502 | soname_spec='${libname}${release}${shared_ext}$major' | |
10503 | dynamic_linker='NetBSD ld.elf_so' | |
10504 | fi | |
10505 | shlibpath_var=LD_LIBRARY_PATH | |
10506 | shlibpath_overrides_runpath=yes | |
10507 | hardcode_into_libs=yes | |
10508 | ;; | |
10509 | ||
10510 | newsos6) | |
10511 | version_type=linux | |
10512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10513 | shlibpath_var=LD_LIBRARY_PATH | |
10514 | shlibpath_overrides_runpath=yes | |
10515 | ;; | |
10516 | ||
10517 | *nto* | *qnx*) | |
10518 | version_type=qnx | |
10519 | need_lib_prefix=no | |
10520 | need_version=no | |
10521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10522 | soname_spec='${libname}${release}${shared_ext}$major' | |
10523 | shlibpath_var=LD_LIBRARY_PATH | |
10524 | shlibpath_overrides_runpath=no | |
10525 | hardcode_into_libs=yes | |
10526 | dynamic_linker='ldqnx.so' | |
10527 | ;; | |
10528 | ||
10529 | openbsd*) | |
10530 | version_type=sunos | |
10531 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10532 | need_lib_prefix=no | |
10533 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10534 | case $host_os in | |
10535 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10536 | *) need_version=no ;; | |
10537 | esac | |
10538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10539 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10540 | shlibpath_var=LD_LIBRARY_PATH | |
10541 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10542 | case $host_os in | |
10543 | openbsd2.[89] | openbsd2.[89].*) | |
10544 | shlibpath_overrides_runpath=no | |
10545 | ;; | |
10546 | *) | |
10547 | shlibpath_overrides_runpath=yes | |
10548 | ;; | |
10549 | esac | |
10550 | else | |
10551 | shlibpath_overrides_runpath=yes | |
10552 | fi | |
10553 | ;; | |
10554 | ||
10555 | os2*) | |
10556 | libname_spec='$name' | |
10557 | shrext_cmds=".dll" | |
10558 | need_lib_prefix=no | |
10559 | library_names_spec='$libname${shared_ext} $libname.a' | |
10560 | dynamic_linker='OS/2 ld.exe' | |
10561 | shlibpath_var=LIBPATH | |
10562 | ;; | |
10563 | ||
10564 | osf3* | osf4* | osf5*) | |
10565 | version_type=osf | |
10566 | need_lib_prefix=no | |
10567 | need_version=no | |
10568 | soname_spec='${libname}${release}${shared_ext}$major' | |
10569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10570 | shlibpath_var=LD_LIBRARY_PATH | |
10571 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10572 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10573 | ;; | |
10574 | ||
10575 | rdos*) | |
10576 | dynamic_linker=no | |
10577 | ;; | |
10578 | ||
10579 | solaris*) | |
10580 | version_type=linux | |
10581 | need_lib_prefix=no | |
10582 | need_version=no | |
10583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10584 | soname_spec='${libname}${release}${shared_ext}$major' | |
10585 | shlibpath_var=LD_LIBRARY_PATH | |
10586 | shlibpath_overrides_runpath=yes | |
10587 | hardcode_into_libs=yes | |
10588 | # ldd complains unless libraries are executable | |
10589 | postinstall_cmds='chmod +x $lib' | |
10590 | ;; | |
10591 | ||
10592 | sunos4*) | |
10593 | version_type=sunos | |
10594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10595 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10596 | shlibpath_var=LD_LIBRARY_PATH | |
10597 | shlibpath_overrides_runpath=yes | |
10598 | if test "$with_gnu_ld" = yes; then | |
10599 | need_lib_prefix=no | |
10600 | fi | |
10601 | need_version=yes | |
10602 | ;; | |
10603 | ||
10604 | sysv4 | sysv4.3*) | |
10605 | version_type=linux | |
10606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10607 | soname_spec='${libname}${release}${shared_ext}$major' | |
10608 | shlibpath_var=LD_LIBRARY_PATH | |
10609 | case $host_vendor in | |
10610 | sni) | |
10611 | shlibpath_overrides_runpath=no | |
10612 | need_lib_prefix=no | |
10613 | runpath_var=LD_RUN_PATH | |
10614 | ;; | |
10615 | siemens) | |
10616 | need_lib_prefix=no | |
10617 | ;; | |
10618 | motorola) | |
10619 | need_lib_prefix=no | |
10620 | need_version=no | |
10621 | shlibpath_overrides_runpath=no | |
10622 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10623 | ;; | |
10624 | esac | |
10625 | ;; | |
10626 | ||
10627 | sysv4*MP*) | |
10628 | if test -d /usr/nec ;then | |
10629 | version_type=linux | |
10630 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10631 | soname_spec='$libname${shared_ext}.$major' | |
10632 | shlibpath_var=LD_LIBRARY_PATH | |
10633 | fi | |
10634 | ;; | |
10635 | ||
10636 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10637 | version_type=freebsd-elf | |
10638 | need_lib_prefix=no | |
10639 | need_version=no | |
10640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10641 | soname_spec='${libname}${release}${shared_ext}$major' | |
10642 | shlibpath_var=LD_LIBRARY_PATH | |
10643 | shlibpath_overrides_runpath=yes | |
10644 | hardcode_into_libs=yes | |
10645 | if test "$with_gnu_ld" = yes; then | |
10646 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10647 | else | |
10648 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10649 | case $host_os in | |
10650 | sco3.2v5*) | |
10651 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10652 | ;; | |
10653 | esac | |
10654 | fi | |
10655 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10656 | ;; | |
10657 | ||
10658 | tpf*) | |
10659 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10660 | version_type=linux | |
10661 | need_lib_prefix=no | |
10662 | need_version=no | |
10663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10664 | shlibpath_var=LD_LIBRARY_PATH | |
10665 | shlibpath_overrides_runpath=no | |
10666 | hardcode_into_libs=yes | |
10667 | ;; | |
10668 | ||
10669 | uts4*) | |
10670 | version_type=linux | |
10671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10672 | soname_spec='${libname}${release}${shared_ext}$major' | |
10673 | shlibpath_var=LD_LIBRARY_PATH | |
10674 | ;; | |
10675 | ||
10676 | *) | |
10677 | dynamic_linker=no | |
10678 | ;; | |
10679 | esac | |
10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10681 | $as_echo "$dynamic_linker" >&6; } | |
10682 | test "$dynamic_linker" = no && can_build_shared=no | |
10683 | ||
10684 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10685 | if test "$GCC" = yes; then | |
10686 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10687 | fi | |
10688 | ||
10689 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10690 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10691 | fi | |
10692 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10693 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10694 | fi | |
10695 | ||
10696 | ||
10697 | ||
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
10727 | ||
10728 | ||
10729 | ||
10730 | ||
10731 | ||
10732 | ||
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | ||
10738 | ||
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | ||
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10788 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10789 | hardcode_action= | |
10790 | if test -n "$hardcode_libdir_flag_spec" || | |
10791 | test -n "$runpath_var" || | |
10792 | test "X$hardcode_automatic" = "Xyes" ; then | |
10793 | ||
10794 | # We can hardcode non-existent directories. | |
10795 | if test "$hardcode_direct" != no && | |
10796 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10797 | # have to relink, otherwise we might link with an installed library | |
10798 | # when we should be linking with a yet-to-be-installed one | |
10799 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10800 | test "$hardcode_minus_L" != no; then | |
10801 | # Linking always hardcodes the temporary library directory. | |
10802 | hardcode_action=relink | |
10803 | else | |
10804 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10805 | hardcode_action=immediate | |
10806 | fi | |
10807 | else | |
10808 | # We cannot hardcode anything, or else we can only hardcode existing | |
10809 | # directories. | |
10810 | hardcode_action=unsupported | |
10811 | fi | |
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
10813 | $as_echo "$hardcode_action" >&6; } | |
10814 | ||
10815 | if test "$hardcode_action" = relink || | |
10816 | test "$inherit_rpath" = yes; then | |
10817 | # Fast installation is not supported | |
10818 | enable_fast_install=no | |
10819 | elif test "$shlibpath_overrides_runpath" = yes || | |
10820 | test "$enable_shared" = no; then | |
10821 | # Fast installation is not necessary | |
10822 | enable_fast_install=needless | |
10823 | fi | |
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | if test "x$enable_dlopen" != xyes; then | |
10831 | enable_dlopen=unknown | |
10832 | enable_dlopen_self=unknown | |
10833 | enable_dlopen_self_static=unknown | |
10834 | else | |
10835 | lt_cv_dlopen=no | |
10836 | lt_cv_dlopen_libs= | |
10837 | ||
10838 | case $host_os in | |
10839 | beos*) | |
10840 | lt_cv_dlopen="load_add_on" | |
10841 | lt_cv_dlopen_libs= | |
10842 | lt_cv_dlopen_self=yes | |
10843 | ;; | |
10844 | ||
10845 | mingw* | pw32* | cegcc*) | |
10846 | lt_cv_dlopen="LoadLibrary" | |
10847 | lt_cv_dlopen_libs= | |
10848 | ;; | |
10849 | ||
10850 | cygwin*) | |
10851 | lt_cv_dlopen="dlopen" | |
10852 | lt_cv_dlopen_libs= | |
10853 | ;; | |
10854 | ||
10855 | darwin*) | |
10856 | # if libdl is installed we need to link against it | |
10857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10858 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10859 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10860 | $as_echo_n "(cached) " >&6 | |
10861 | else | |
10862 | ac_check_lib_save_LIBS=$LIBS | |
10863 | LIBS="-ldl $LIBS" | |
10864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10865 | /* end confdefs.h. */ | |
10866 | ||
10867 | /* Override any GCC internal prototype to avoid an error. | |
10868 | Use char because int might match the return type of a GCC | |
10869 | builtin and then its argument prototype would still apply. */ | |
10870 | #ifdef __cplusplus | |
10871 | extern "C" | |
10872 | #endif | |
10873 | char dlopen (); | |
10874 | int | |
10875 | main () | |
10876 | { | |
10877 | return dlopen (); | |
10878 | ; | |
10879 | return 0; | |
10880 | } | |
10881 | _ACEOF | |
10882 | if ac_fn_c_try_link "$LINENO"; then : | |
10883 | ac_cv_lib_dl_dlopen=yes | |
10884 | else | |
10885 | ac_cv_lib_dl_dlopen=no | |
10886 | fi | |
10887 | rm -f core conftest.err conftest.$ac_objext \ | |
10888 | conftest$ac_exeext conftest.$ac_ext | |
10889 | LIBS=$ac_check_lib_save_LIBS | |
10890 | fi | |
10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10892 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10893 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10894 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10895 | else | |
10896 | ||
10897 | lt_cv_dlopen="dyld" | |
10898 | lt_cv_dlopen_libs= | |
10899 | lt_cv_dlopen_self=yes | |
10900 | ||
10901 | fi | |
10902 | ||
10903 | ;; | |
10904 | ||
10905 | *) | |
10906 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10907 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
10908 | lt_cv_dlopen="shl_load" | |
10909 | else | |
10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10911 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10912 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10913 | $as_echo_n "(cached) " >&6 | |
10914 | else | |
10915 | ac_check_lib_save_LIBS=$LIBS | |
10916 | LIBS="-ldld $LIBS" | |
10917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10918 | /* end confdefs.h. */ | |
10919 | ||
10920 | /* Override any GCC internal prototype to avoid an error. | |
10921 | Use char because int might match the return type of a GCC | |
10922 | builtin and then its argument prototype would still apply. */ | |
10923 | #ifdef __cplusplus | |
10924 | extern "C" | |
10925 | #endif | |
10926 | char shl_load (); | |
10927 | int | |
10928 | main () | |
10929 | { | |
10930 | return shl_load (); | |
10931 | ; | |
10932 | return 0; | |
10933 | } | |
10934 | _ACEOF | |
10935 | if ac_fn_c_try_link "$LINENO"; then : | |
10936 | ac_cv_lib_dld_shl_load=yes | |
10937 | else | |
10938 | ac_cv_lib_dld_shl_load=no | |
10939 | fi | |
10940 | rm -f core conftest.err conftest.$ac_objext \ | |
10941 | conftest$ac_exeext conftest.$ac_ext | |
10942 | LIBS=$ac_check_lib_save_LIBS | |
10943 | fi | |
10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
10945 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10946 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
10947 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10948 | else | |
10949 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10950 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
10951 | lt_cv_dlopen="dlopen" | |
10952 | else | |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10954 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10955 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10956 | $as_echo_n "(cached) " >&6 | |
10957 | else | |
10958 | ac_check_lib_save_LIBS=$LIBS | |
10959 | LIBS="-ldl $LIBS" | |
10960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10961 | /* end confdefs.h. */ | |
10962 | ||
10963 | /* Override any GCC internal prototype to avoid an error. | |
10964 | Use char because int might match the return type of a GCC | |
10965 | builtin and then its argument prototype would still apply. */ | |
10966 | #ifdef __cplusplus | |
10967 | extern "C" | |
10968 | #endif | |
10969 | char dlopen (); | |
10970 | int | |
10971 | main () | |
10972 | { | |
10973 | return dlopen (); | |
10974 | ; | |
10975 | return 0; | |
10976 | } | |
10977 | _ACEOF | |
10978 | if ac_fn_c_try_link "$LINENO"; then : | |
10979 | ac_cv_lib_dl_dlopen=yes | |
10980 | else | |
10981 | ac_cv_lib_dl_dlopen=no | |
10982 | fi | |
10983 | rm -f core conftest.err conftest.$ac_objext \ | |
10984 | conftest$ac_exeext conftest.$ac_ext | |
10985 | LIBS=$ac_check_lib_save_LIBS | |
10986 | fi | |
10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10988 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10989 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10990 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10991 | else | |
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
10993 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10994 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10995 | $as_echo_n "(cached) " >&6 | |
10996 | else | |
10997 | ac_check_lib_save_LIBS=$LIBS | |
10998 | LIBS="-lsvld $LIBS" | |
10999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11000 | /* end confdefs.h. */ | |
11001 | ||
11002 | /* Override any GCC internal prototype to avoid an error. | |
11003 | Use char because int might match the return type of a GCC | |
11004 | builtin and then its argument prototype would still apply. */ | |
11005 | #ifdef __cplusplus | |
11006 | extern "C" | |
11007 | #endif | |
11008 | char dlopen (); | |
11009 | int | |
11010 | main () | |
11011 | { | |
11012 | return dlopen (); | |
11013 | ; | |
11014 | return 0; | |
11015 | } | |
11016 | _ACEOF | |
11017 | if ac_fn_c_try_link "$LINENO"; then : | |
11018 | ac_cv_lib_svld_dlopen=yes | |
11019 | else | |
11020 | ac_cv_lib_svld_dlopen=no | |
11021 | fi | |
11022 | rm -f core conftest.err conftest.$ac_objext \ | |
11023 | conftest$ac_exeext conftest.$ac_ext | |
11024 | LIBS=$ac_check_lib_save_LIBS | |
11025 | fi | |
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11027 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11028 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
11029 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11030 | else | |
11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11032 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11033 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11034 | $as_echo_n "(cached) " >&6 | |
11035 | else | |
11036 | ac_check_lib_save_LIBS=$LIBS | |
11037 | LIBS="-ldld $LIBS" | |
11038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11039 | /* end confdefs.h. */ | |
11040 | ||
11041 | /* Override any GCC internal prototype to avoid an error. | |
11042 | Use char because int might match the return type of a GCC | |
11043 | builtin and then its argument prototype would still apply. */ | |
11044 | #ifdef __cplusplus | |
11045 | extern "C" | |
11046 | #endif | |
11047 | char dld_link (); | |
11048 | int | |
11049 | main () | |
11050 | { | |
11051 | return dld_link (); | |
11052 | ; | |
11053 | return 0; | |
11054 | } | |
11055 | _ACEOF | |
11056 | if ac_fn_c_try_link "$LINENO"; then : | |
11057 | ac_cv_lib_dld_dld_link=yes | |
11058 | else | |
11059 | ac_cv_lib_dld_dld_link=no | |
11060 | fi | |
11061 | rm -f core conftest.err conftest.$ac_objext \ | |
11062 | conftest$ac_exeext conftest.$ac_ext | |
11063 | LIBS=$ac_check_lib_save_LIBS | |
11064 | fi | |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11066 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11067 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
11068 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11069 | fi | |
11070 | ||
11071 | ||
11072 | fi | |
11073 | ||
11074 | ||
11075 | fi | |
11076 | ||
11077 | ||
11078 | fi | |
11079 | ||
11080 | ||
11081 | fi | |
11082 | ||
11083 | ||
11084 | fi | |
11085 | ||
11086 | ;; | |
11087 | esac | |
11088 | ||
11089 | if test "x$lt_cv_dlopen" != xno; then | |
11090 | enable_dlopen=yes | |
11091 | else | |
11092 | enable_dlopen=no | |
11093 | fi | |
11094 | ||
11095 | case $lt_cv_dlopen in | |
11096 | dlopen) | |
11097 | save_CPPFLAGS="$CPPFLAGS" | |
11098 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11099 | ||
11100 | save_LDFLAGS="$LDFLAGS" | |
11101 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11102 | ||
11103 | save_LIBS="$LIBS" | |
11104 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11105 | ||
11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11107 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11108 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11109 | $as_echo_n "(cached) " >&6 | |
11110 | else | |
11111 | if test "$cross_compiling" = yes; then : | |
11112 | lt_cv_dlopen_self=cross | |
11113 | else | |
11114 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11115 | lt_status=$lt_dlunknown | |
11116 | cat > conftest.$ac_ext <<_LT_EOF | |
f021f1d3 | 11117 | #line 11118 "configure" |
7a938933 ILT |
11118 | #include "confdefs.h" |
11119 | ||
11120 | #if HAVE_DLFCN_H | |
11121 | #include <dlfcn.h> | |
11122 | #endif | |
11123 | ||
11124 | #include <stdio.h> | |
11125 | ||
11126 | #ifdef RTLD_GLOBAL | |
11127 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11128 | #else | |
11129 | # ifdef DL_GLOBAL | |
11130 | # define LT_DLGLOBAL DL_GLOBAL | |
11131 | # else | |
11132 | # define LT_DLGLOBAL 0 | |
11133 | # endif | |
11134 | #endif | |
11135 | ||
11136 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11137 | find out it does not work in some platform. */ | |
11138 | #ifndef LT_DLLAZY_OR_NOW | |
11139 | # ifdef RTLD_LAZY | |
11140 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11141 | # else | |
11142 | # ifdef DL_LAZY | |
11143 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11144 | # else | |
11145 | # ifdef RTLD_NOW | |
11146 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11147 | # else | |
11148 | # ifdef DL_NOW | |
11149 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11150 | # else | |
11151 | # define LT_DLLAZY_OR_NOW 0 | |
11152 | # endif | |
11153 | # endif | |
11154 | # endif | |
11155 | # endif | |
11156 | #endif | |
11157 | ||
11158 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11159 | correspondingly for the symbols needed. */ | |
11160 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11161 | void fnord () __attribute__((visibility("default"))); | |
11162 | #endif | |
11163 | ||
11164 | void fnord () { int i=42; } | |
11165 | int main () | |
11166 | { | |
11167 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11168 | int status = $lt_dlunknown; | |
11169 | ||
11170 | if (self) | |
11171 | { | |
11172 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11173 | else | |
11174 | { | |
11175 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11176 | else puts (dlerror ()); | |
11177 | } | |
11178 | /* dlclose (self); */ | |
11179 | } | |
11180 | else | |
11181 | puts (dlerror ()); | |
11182 | ||
11183 | return status; | |
11184 | } | |
11185 | _LT_EOF | |
11186 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11187 | (eval $ac_link) 2>&5 | |
11188 | ac_status=$? | |
11189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11190 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11191 | (./conftest; exit; ) >&5 2>/dev/null | |
11192 | lt_status=$? | |
11193 | case x$lt_status in | |
11194 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11195 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11196 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11197 | esac | |
11198 | else : | |
11199 | # compilation failed | |
11200 | lt_cv_dlopen_self=no | |
11201 | fi | |
11202 | fi | |
11203 | rm -fr conftest* | |
11204 | ||
11205 | ||
11206 | fi | |
11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11208 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11209 | ||
11210 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11211 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11213 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11214 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11215 | $as_echo_n "(cached) " >&6 | |
11216 | else | |
11217 | if test "$cross_compiling" = yes; then : | |
11218 | lt_cv_dlopen_self_static=cross | |
11219 | else | |
11220 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11221 | lt_status=$lt_dlunknown | |
11222 | cat > conftest.$ac_ext <<_LT_EOF | |
f021f1d3 | 11223 | #line 11224 "configure" |
7a938933 ILT |
11224 | #include "confdefs.h" |
11225 | ||
11226 | #if HAVE_DLFCN_H | |
11227 | #include <dlfcn.h> | |
11228 | #endif | |
11229 | ||
11230 | #include <stdio.h> | |
11231 | ||
11232 | #ifdef RTLD_GLOBAL | |
11233 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11234 | #else | |
11235 | # ifdef DL_GLOBAL | |
11236 | # define LT_DLGLOBAL DL_GLOBAL | |
11237 | # else | |
11238 | # define LT_DLGLOBAL 0 | |
11239 | # endif | |
11240 | #endif | |
11241 | ||
11242 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11243 | find out it does not work in some platform. */ | |
11244 | #ifndef LT_DLLAZY_OR_NOW | |
11245 | # ifdef RTLD_LAZY | |
11246 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11247 | # else | |
11248 | # ifdef DL_LAZY | |
11249 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11250 | # else | |
11251 | # ifdef RTLD_NOW | |
11252 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11253 | # else | |
11254 | # ifdef DL_NOW | |
11255 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11256 | # else | |
11257 | # define LT_DLLAZY_OR_NOW 0 | |
11258 | # endif | |
11259 | # endif | |
11260 | # endif | |
11261 | # endif | |
11262 | #endif | |
11263 | ||
11264 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11265 | correspondingly for the symbols needed. */ | |
11266 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11267 | void fnord () __attribute__((visibility("default"))); | |
11268 | #endif | |
11269 | ||
11270 | void fnord () { int i=42; } | |
11271 | int main () | |
11272 | { | |
11273 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11274 | int status = $lt_dlunknown; | |
11275 | ||
11276 | if (self) | |
11277 | { | |
11278 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11279 | else | |
11280 | { | |
11281 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11282 | else puts (dlerror ()); | |
11283 | } | |
11284 | /* dlclose (self); */ | |
11285 | } | |
11286 | else | |
11287 | puts (dlerror ()); | |
11288 | ||
11289 | return status; | |
11290 | } | |
11291 | _LT_EOF | |
11292 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11293 | (eval $ac_link) 2>&5 | |
11294 | ac_status=$? | |
11295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11296 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11297 | (./conftest; exit; ) >&5 2>/dev/null | |
11298 | lt_status=$? | |
11299 | case x$lt_status in | |
11300 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11301 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11302 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11303 | esac | |
11304 | else : | |
11305 | # compilation failed | |
11306 | lt_cv_dlopen_self_static=no | |
11307 | fi | |
11308 | fi | |
11309 | rm -fr conftest* | |
11310 | ||
11311 | ||
11312 | fi | |
11313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11314 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11315 | fi | |
11316 | ||
11317 | CPPFLAGS="$save_CPPFLAGS" | |
11318 | LDFLAGS="$save_LDFLAGS" | |
11319 | LIBS="$save_LIBS" | |
11320 | ;; | |
11321 | esac | |
11322 | ||
11323 | case $lt_cv_dlopen_self in | |
11324 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11325 | *) enable_dlopen_self=unknown ;; | |
11326 | esac | |
11327 | ||
11328 | case $lt_cv_dlopen_self_static in | |
11329 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11330 | *) enable_dlopen_self_static=unknown ;; | |
11331 | esac | |
11332 | fi | |
11333 | ||
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | ||
11339 | ||
11340 | ||
11341 | ||
11342 | ||
11343 | ||
11344 | ||
11345 | ||
11346 | ||
11347 | ||
11348 | ||
11349 | ||
11350 | striplib= | |
11351 | old_striplib= | |
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11353 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11354 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11355 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11356 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11358 | $as_echo "yes" >&6; } | |
11359 | else | |
11360 | # FIXME - insert some real tests, host_os isn't really good enough | |
11361 | case $host_os in | |
11362 | darwin*) | |
11363 | if test -n "$STRIP" ; then | |
11364 | striplib="$STRIP -x" | |
11365 | old_striplib="$STRIP -S" | |
11366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11367 | $as_echo "yes" >&6; } | |
11368 | else | |
11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11370 | $as_echo "no" >&6; } | |
11371 | fi | |
11372 | ;; | |
11373 | *) | |
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11375 | $as_echo "no" >&6; } | |
11376 | ;; | |
11377 | esac | |
11378 | fi | |
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | ||
11391 | # Report which library types will actually be built | |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11393 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11395 | $as_echo "$can_build_shared" >&6; } | |
11396 | ||
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11398 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11399 | test "$can_build_shared" = "no" && enable_shared=no | |
11400 | ||
11401 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11402 | # are all built from PIC. | |
11403 | case $host_os in | |
11404 | aix3*) | |
11405 | test "$enable_shared" = yes && enable_static=no | |
11406 | if test -n "$RANLIB"; then | |
11407 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11408 | postinstall_cmds='$RANLIB $lib' | |
11409 | fi | |
11410 | ;; | |
11411 | ||
11412 | aix[4-9]*) | |
11413 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11414 | test "$enable_shared" = yes && enable_static=no | |
11415 | fi | |
11416 | ;; | |
11417 | esac | |
11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11419 | $as_echo "$enable_shared" >&6; } | |
11420 | ||
11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11422 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11423 | # Make sure either enable_shared or enable_static is yes. | |
11424 | test "$enable_shared" = yes || enable_static=yes | |
11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11426 | $as_echo "$enable_static" >&6; } | |
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | fi | |
11432 | ac_ext=c | |
11433 | ac_cpp='$CPP $CPPFLAGS' | |
11434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11437 | ||
11438 | CC="$lt_save_CC" | |
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | # Source file extension for Go test sources. | |
11453 | ac_ext=go | |
11454 | ||
11455 | # Object file extension for compiled Go test sources. | |
11456 | objext=o | |
11457 | objext_GO=$objext | |
11458 | ||
11459 | # Code to be used in simple compile tests | |
11460 | lt_simple_compile_test_code="package main; func main() { }" | |
11461 | ||
11462 | # Code to be used in simple link tests | |
11463 | lt_simple_link_test_code='package main; func main() { }' | |
11464 | ||
11465 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | # If no C compiler was specified, use CC. | |
11473 | LTCC=${LTCC-"$CC"} | |
11474 | ||
11475 | # If no C compiler flags were specified, use CFLAGS. | |
11476 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
11477 | ||
11478 | # Allow CC to be a program name with arguments. | |
11479 | compiler=$CC | |
11480 | ||
11481 | ||
11482 | # save warnings/boilerplate of simple test code | |
11483 | ac_outfile=conftest.$ac_objext | |
11484 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11485 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11486 | _lt_compiler_boilerplate=`cat conftest.err` | |
11487 | $RM conftest* | |
11488 | ||
11489 | ac_outfile=conftest.$ac_objext | |
11490 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11491 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11492 | _lt_linker_boilerplate=`cat conftest.err` | |
11493 | $RM -r conftest* | |
11494 | ||
11495 | ||
11496 | # Allow CC to be a program name with arguments. | |
11497 | lt_save_CC="$CC" | |
11498 | lt_save_GCC="$GCC" | |
11499 | GCC=yes | |
11500 | CC=${GOC-"gccgo"} | |
11501 | compiler=$CC | |
11502 | compiler_GO=$CC | |
11503 | LD_GO="$LD" | |
11504 | for cc_temp in $compiler""; do | |
11505 | case $cc_temp in | |
11506 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11507 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11508 | \-*) ;; | |
11509 | *) break;; | |
11510 | esac | |
11511 | done | |
11512 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
11513 | ||
11514 | ||
11515 | # Go did not exist at the time GCC didn't implicitly link libc in. | |
11516 | archive_cmds_need_lc_GO=no | |
11517 | ||
11518 | old_archive_cmds_GO=$old_archive_cmds | |
11519 | ||
11520 | ## CAVEAT EMPTOR: | |
11521 | ## There is no encapsulation within the following macros, do not change | |
11522 | ## the running order or otherwise move them around unless you know exactly | |
11523 | ## what you are doing... | |
11524 | if test -n "$compiler"; then | |
11525 | ||
11526 | lt_prog_compiler_no_builtin_flag_GO= | |
11527 | ||
11528 | if test "$GCC" = yes; then | |
11529 | case $cc_basename in | |
11530 | nvcc*) | |
11531 | lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;; | |
11532 | *) | |
11533 | lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;; | |
11534 | esac | |
11535 | ||
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
11537 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
11538 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
11539 | $as_echo_n "(cached) " >&6 | |
11540 | else | |
11541 | lt_cv_prog_compiler_rtti_exceptions=no | |
11542 | ac_outfile=conftest.$ac_objext | |
11543 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11544 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
11545 | # Insert the option either (1) after the last *FLAGS variable, or | |
11546 | # (2) before a word containing "conftest.", or (3) at the end. | |
11547 | # Note that $ac_compile itself does not contain backslashes and begins | |
11548 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11549 | # The option is referenced via a variable to avoid confusing sed. | |
11550 | lt_compile=`echo "$ac_compile" | $SED \ | |
11551 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11552 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11553 | -e 's:$: $lt_compiler_flag:'` | |
11554 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11555 | (eval "$lt_compile" 2>conftest.err) | |
11556 | ac_status=$? | |
11557 | cat conftest.err >&5 | |
11558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11559 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
11560 | # The compiler can only warn and ignore the option if not recognized | |
11561 | # So say no if there are warnings other than the usual output. | |
11562 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
11563 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11564 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11565 | lt_cv_prog_compiler_rtti_exceptions=yes | |
11566 | fi | |
11567 | fi | |
11568 | $RM conftest* | |
11569 | ||
11570 | fi | |
11571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
11572 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
11573 | ||
11574 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
11575 | lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions" | |
11576 | else | |
11577 | : | |
11578 | fi | |
11579 | ||
11580 | fi | |
11581 | ||
11582 | ||
11583 | ||
11584 | lt_prog_compiler_wl_GO= | |
11585 | lt_prog_compiler_pic_GO= | |
11586 | lt_prog_compiler_static_GO= | |
11587 | ||
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
11589 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
11590 | ||
11591 | if test "$GCC" = yes; then | |
11592 | lt_prog_compiler_wl_GO='-Wl,' | |
11593 | lt_prog_compiler_static_GO='-static' | |
11594 | ||
11595 | case $host_os in | |
11596 | aix*) | |
11597 | # All AIX code is PIC. | |
11598 | if test "$host_cpu" = ia64; then | |
11599 | # AIX 5 now supports IA64 processor | |
11600 | lt_prog_compiler_static_GO='-Bstatic' | |
11601 | fi | |
327a26a3 | 11602 | lt_prog_compiler_pic_GO='-fPIC' |
7a938933 ILT |
11603 | ;; |
11604 | ||
11605 | amigaos*) | |
11606 | case $host_cpu in | |
11607 | powerpc) | |
11608 | # see comment about AmigaOS4 .so support | |
11609 | lt_prog_compiler_pic_GO='-fPIC' | |
11610 | ;; | |
11611 | m68k) | |
11612 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11613 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11614 | # like `-m68040'. | |
11615 | lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4' | |
11616 | ;; | |
11617 | esac | |
11618 | ;; | |
11619 | ||
11620 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11621 | # PIC is the default for these OSes. | |
11622 | ;; | |
11623 | ||
11624 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
11625 | # This hack is so that the source file can tell whether it is being | |
11626 | # built for inclusion in a dll (and should export symbols for example). | |
11627 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
11628 | # (--disable-auto-import) libraries | |
11629 | lt_prog_compiler_pic_GO='-DDLL_EXPORT' | |
11630 | ;; | |
11631 | ||
11632 | darwin* | rhapsody*) | |
11633 | # PIC is the default on this platform | |
11634 | # Common symbols not allowed in MH_DYLIB files | |
11635 | lt_prog_compiler_pic_GO='-fno-common' | |
11636 | ;; | |
11637 | ||
11638 | haiku*) | |
11639 | # PIC is the default for Haiku. | |
11640 | # The "-static" flag exists, but is broken. | |
11641 | lt_prog_compiler_static_GO= | |
11642 | ;; | |
11643 | ||
11644 | hpux*) | |
11645 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
11646 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
11647 | # sets the default TLS model and affects inlining. | |
11648 | case $host_cpu in | |
11649 | hppa*64*) | |
11650 | # +Z the default | |
11651 | ;; | |
11652 | *) | |
11653 | lt_prog_compiler_pic_GO='-fPIC' | |
11654 | ;; | |
11655 | esac | |
11656 | ;; | |
11657 | ||
11658 | interix[3-9]*) | |
11659 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
11660 | # Instead, we relocate shared libraries at runtime. | |
11661 | ;; | |
11662 | ||
11663 | msdosdjgpp*) | |
11664 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
11665 | # on systems that don't support them. | |
11666 | lt_prog_compiler_can_build_shared_GO=no | |
11667 | enable_shared=no | |
11668 | ;; | |
11669 | ||
11670 | *nto* | *qnx*) | |
11671 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11672 | # it will coredump. | |
11673 | lt_prog_compiler_pic_GO='-fPIC -shared' | |
11674 | ;; | |
11675 | ||
11676 | sysv4*MP*) | |
11677 | if test -d /usr/nec; then | |
11678 | lt_prog_compiler_pic_GO=-Kconform_pic | |
11679 | fi | |
11680 | ;; | |
11681 | ||
11682 | *) | |
11683 | lt_prog_compiler_pic_GO='-fPIC' | |
11684 | ;; | |
11685 | esac | |
11686 | ||
11687 | case $cc_basename in | |
11688 | nvcc*) # Cuda Compiler Driver 2.2 | |
11689 | lt_prog_compiler_wl_GO='-Xlinker ' | |
11690 | lt_prog_compiler_pic_GO='-Xcompiler -fPIC' | |
11691 | ;; | |
11692 | esac | |
11693 | else | |
11694 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11695 | case $host_os in | |
11696 | aix*) | |
11697 | lt_prog_compiler_wl_GO='-Wl,' | |
11698 | if test "$host_cpu" = ia64; then | |
11699 | # AIX 5 now supports IA64 processor | |
11700 | lt_prog_compiler_static_GO='-Bstatic' | |
11701 | else | |
11702 | lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp' | |
11703 | fi | |
11704 | ;; | |
11705 | ||
11706 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
11707 | # This hack is so that the source file can tell whether it is being | |
11708 | # built for inclusion in a dll (and should export symbols for example). | |
11709 | lt_prog_compiler_pic_GO='-DDLL_EXPORT' | |
11710 | ;; | |
11711 | ||
11712 | hpux9* | hpux10* | hpux11*) | |
11713 | lt_prog_compiler_wl_GO='-Wl,' | |
11714 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11715 | # not for PA HP-UX. | |
11716 | case $host_cpu in | |
11717 | hppa*64*|ia64*) | |
11718 | # +Z the default | |
11719 | ;; | |
11720 | *) | |
11721 | lt_prog_compiler_pic_GO='+Z' | |
11722 | ;; | |
11723 | esac | |
11724 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
11725 | lt_prog_compiler_static_GO='${wl}-a ${wl}archive' | |
11726 | ;; | |
11727 | ||
11728 | irix5* | irix6* | nonstopux*) | |
11729 | lt_prog_compiler_wl_GO='-Wl,' | |
11730 | # PIC (with -KPIC) is the default. | |
11731 | lt_prog_compiler_static_GO='-non_shared' | |
11732 | ;; | |
11733 | ||
11734 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11735 | case $cc_basename in | |
11736 | # old Intel for x86_64 which still supported -KPIC. | |
11737 | ecc*) | |
11738 | lt_prog_compiler_wl_GO='-Wl,' | |
11739 | lt_prog_compiler_pic_GO='-KPIC' | |
11740 | lt_prog_compiler_static_GO='-static' | |
11741 | ;; | |
11742 | # icc used to be incompatible with GCC. | |
11743 | # ICC 10 doesn't accept -KPIC any more. | |
11744 | icc* | ifort*) | |
11745 | lt_prog_compiler_wl_GO='-Wl,' | |
11746 | lt_prog_compiler_pic_GO='-fPIC' | |
11747 | lt_prog_compiler_static_GO='-static' | |
11748 | ;; | |
11749 | # Lahey Fortran 8.1. | |
11750 | lf95*) | |
11751 | lt_prog_compiler_wl_GO='-Wl,' | |
11752 | lt_prog_compiler_pic_GO='--shared' | |
11753 | lt_prog_compiler_static_GO='--static' | |
11754 | ;; | |
11755 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
11756 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
11757 | # which looks to be a dead project) | |
11758 | lt_prog_compiler_wl_GO='-Wl,' | |
11759 | lt_prog_compiler_pic_GO='-fpic' | |
11760 | lt_prog_compiler_static_GO='-Bstatic' | |
11761 | ;; | |
11762 | ccc*) | |
11763 | lt_prog_compiler_wl_GO='-Wl,' | |
11764 | # All Alpha code is PIC. | |
11765 | lt_prog_compiler_static_GO='-non_shared' | |
11766 | ;; | |
11767 | xl* | bgxl* | bgf* | mpixl*) | |
11768 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
11769 | lt_prog_compiler_wl_GO='-Wl,' | |
11770 | lt_prog_compiler_pic_GO='-qpic' | |
11771 | lt_prog_compiler_static_GO='-qstaticlink' | |
11772 | ;; | |
11773 | *) | |
11774 | case `$CC -V 2>&1 | sed 5q` in | |
11775 | *Sun\ F* | *Sun*Fortran*) | |
11776 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
11777 | lt_prog_compiler_pic_GO='-KPIC' | |
11778 | lt_prog_compiler_static_GO='-Bstatic' | |
11779 | lt_prog_compiler_wl_GO='' | |
11780 | ;; | |
11781 | *Sun\ C*) | |
11782 | # Sun C 5.9 | |
11783 | lt_prog_compiler_pic_GO='-KPIC' | |
11784 | lt_prog_compiler_static_GO='-Bstatic' | |
11785 | lt_prog_compiler_wl_GO='-Wl,' | |
11786 | ;; | |
11787 | esac | |
11788 | ;; | |
11789 | esac | |
11790 | ;; | |
11791 | ||
11792 | newsos6) | |
11793 | lt_prog_compiler_pic_GO='-KPIC' | |
11794 | lt_prog_compiler_static_GO='-Bstatic' | |
11795 | ;; | |
11796 | ||
11797 | *nto* | *qnx*) | |
11798 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
11799 | # it will coredump. | |
11800 | lt_prog_compiler_pic_GO='-fPIC -shared' | |
11801 | ;; | |
11802 | ||
11803 | osf3* | osf4* | osf5*) | |
11804 | lt_prog_compiler_wl_GO='-Wl,' | |
11805 | # All OSF/1 code is PIC. | |
11806 | lt_prog_compiler_static_GO='-non_shared' | |
11807 | ;; | |
11808 | ||
11809 | rdos*) | |
11810 | lt_prog_compiler_static_GO='-non_shared' | |
11811 | ;; | |
11812 | ||
11813 | solaris*) | |
11814 | lt_prog_compiler_pic_GO='-KPIC' | |
11815 | lt_prog_compiler_static_GO='-Bstatic' | |
11816 | case $cc_basename in | |
11817 | f77* | f90* | f95*) | |
11818 | lt_prog_compiler_wl_GO='-Qoption ld ';; | |
11819 | *) | |
11820 | lt_prog_compiler_wl_GO='-Wl,';; | |
11821 | esac | |
11822 | ;; | |
11823 | ||
11824 | sunos4*) | |
11825 | lt_prog_compiler_wl_GO='-Qoption ld ' | |
11826 | lt_prog_compiler_pic_GO='-PIC' | |
11827 | lt_prog_compiler_static_GO='-Bstatic' | |
11828 | ;; | |
11829 | ||
11830 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
11831 | lt_prog_compiler_wl_GO='-Wl,' | |
11832 | lt_prog_compiler_pic_GO='-KPIC' | |
11833 | lt_prog_compiler_static_GO='-Bstatic' | |
11834 | ;; | |
11835 | ||
11836 | sysv4*MP*) | |
11837 | if test -d /usr/nec ;then | |
11838 | lt_prog_compiler_pic_GO='-Kconform_pic' | |
11839 | lt_prog_compiler_static_GO='-Bstatic' | |
11840 | fi | |
11841 | ;; | |
11842 | ||
11843 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
11844 | lt_prog_compiler_wl_GO='-Wl,' | |
11845 | lt_prog_compiler_pic_GO='-KPIC' | |
11846 | lt_prog_compiler_static_GO='-Bstatic' | |
11847 | ;; | |
11848 | ||
11849 | unicos*) | |
11850 | lt_prog_compiler_wl_GO='-Wl,' | |
11851 | lt_prog_compiler_can_build_shared_GO=no | |
11852 | ;; | |
11853 | ||
11854 | uts4*) | |
11855 | lt_prog_compiler_pic_GO='-pic' | |
11856 | lt_prog_compiler_static_GO='-Bstatic' | |
11857 | ;; | |
11858 | ||
11859 | *) | |
11860 | lt_prog_compiler_can_build_shared_GO=no | |
11861 | ;; | |
11862 | esac | |
11863 | fi | |
11864 | ||
11865 | case $host_os in | |
11866 | # For platforms which do not support PIC, -DPIC is meaningless: | |
11867 | *djgpp*) | |
11868 | lt_prog_compiler_pic_GO= | |
11869 | ;; | |
11870 | *) | |
11871 | lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO" | |
11872 | ;; | |
11873 | esac | |
11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5 | |
11875 | $as_echo "$lt_prog_compiler_pic_GO" >&6; } | |
11876 | ||
11877 | ||
11878 | ||
11879 | # | |
11880 | # Check to make sure the PIC flag actually works. | |
11881 | # | |
11882 | if test -n "$lt_prog_compiler_pic_GO"; then | |
11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5 | |
11884 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; } | |
11885 | if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then : | |
11886 | $as_echo_n "(cached) " >&6 | |
11887 | else | |
11888 | lt_cv_prog_compiler_pic_works_GO=no | |
11889 | ac_outfile=conftest.$ac_objext | |
11890 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11891 | lt_compiler_flag="$lt_prog_compiler_pic_GO" | |
11892 | # Insert the option either (1) after the last *FLAGS variable, or | |
11893 | # (2) before a word containing "conftest.", or (3) at the end. | |
11894 | # Note that $ac_compile itself does not contain backslashes and begins | |
11895 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11896 | # The option is referenced via a variable to avoid confusing sed. | |
11897 | lt_compile=`echo "$ac_compile" | $SED \ | |
11898 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11899 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11900 | -e 's:$: $lt_compiler_flag:'` | |
11901 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
11902 | (eval "$lt_compile" 2>conftest.err) | |
11903 | ac_status=$? | |
11904 | cat conftest.err >&5 | |
11905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11906 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
11907 | # The compiler can only warn and ignore the option if not recognized | |
11908 | # So say no if there are warnings other than the usual output. | |
11909 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
11910 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11911 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
11912 | lt_cv_prog_compiler_pic_works_GO=yes | |
11913 | fi | |
11914 | fi | |
11915 | $RM conftest* | |
11916 | ||
11917 | fi | |
11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5 | |
11919 | $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; } | |
11920 | ||
11921 | if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then | |
11922 | case $lt_prog_compiler_pic_GO in | |
11923 | "" | " "*) ;; | |
11924 | *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;; | |
11925 | esac | |
11926 | else | |
11927 | lt_prog_compiler_pic_GO= | |
11928 | lt_prog_compiler_can_build_shared_GO=no | |
11929 | fi | |
11930 | ||
11931 | fi | |
11932 | ||
11933 | ||
11934 | ||
11935 | # | |
11936 | # Check to make sure the static flag actually works. | |
11937 | # | |
11938 | wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\" | |
11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
11940 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
11941 | if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then : | |
11942 | $as_echo_n "(cached) " >&6 | |
11943 | else | |
11944 | lt_cv_prog_compiler_static_works_GO=no | |
11945 | save_LDFLAGS="$LDFLAGS" | |
11946 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
11947 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11948 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11949 | # The linker can only warn and ignore the option if not recognized | |
11950 | # So say no if there are warnings | |
11951 | if test -s conftest.err; then | |
11952 | # Append any errors to the config.log. | |
11953 | cat conftest.err 1>&5 | |
11954 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11955 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11956 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11957 | lt_cv_prog_compiler_static_works_GO=yes | |
11958 | fi | |
11959 | else | |
11960 | lt_cv_prog_compiler_static_works_GO=yes | |
11961 | fi | |
11962 | fi | |
11963 | $RM -r conftest* | |
11964 | LDFLAGS="$save_LDFLAGS" | |
11965 | ||
11966 | fi | |
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5 | |
11968 | $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; } | |
11969 | ||
11970 | if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then | |
11971 | : | |
11972 | else | |
11973 | lt_prog_compiler_static_GO= | |
11974 | fi | |
11975 | ||
11976 | ||
11977 | ||
11978 | ||
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
11980 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
11981 | if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then : | |
11982 | $as_echo_n "(cached) " >&6 | |
11983 | else | |
11984 | lt_cv_prog_compiler_c_o_GO=no | |
11985 | $RM -r conftest 2>/dev/null | |
11986 | mkdir conftest | |
11987 | cd conftest | |
11988 | mkdir out | |
11989 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11990 | ||
11991 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
11992 | # Insert the option either (1) after the last *FLAGS variable, or | |
11993 | # (2) before a word containing "conftest.", or (3) at the end. | |
11994 | # Note that $ac_compile itself does not contain backslashes and begins | |
11995 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11996 | lt_compile=`echo "$ac_compile" | $SED \ | |
11997 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
11998 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
11999 | -e 's:$: $lt_compiler_flag:'` | |
12000 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12001 | (eval "$lt_compile" 2>out/conftest.err) | |
12002 | ac_status=$? | |
12003 | cat out/conftest.err >&5 | |
12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12005 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12006 | then | |
12007 | # The compiler can only warn and ignore the option if not recognized | |
12008 | # So say no if there are warnings | |
12009 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
12010 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12011 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12012 | lt_cv_prog_compiler_c_o_GO=yes | |
12013 | fi | |
12014 | fi | |
12015 | chmod u+w . 2>&5 | |
12016 | $RM conftest* | |
12017 | # SGI C++ compiler will create directory out/ii_files/ for | |
12018 | # template instantiation | |
12019 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12020 | $RM out/* && rmdir out | |
12021 | cd .. | |
12022 | $RM -r conftest | |
12023 | $RM conftest* | |
12024 | ||
12025 | fi | |
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5 | |
12027 | $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; } | |
12028 | ||
12029 | ||
12030 | ||
12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12032 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12033 | if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then : | |
12034 | $as_echo_n "(cached) " >&6 | |
12035 | else | |
12036 | lt_cv_prog_compiler_c_o_GO=no | |
12037 | $RM -r conftest 2>/dev/null | |
12038 | mkdir conftest | |
12039 | cd conftest | |
12040 | mkdir out | |
12041 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12042 | ||
12043 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12044 | # Insert the option either (1) after the last *FLAGS variable, or | |
12045 | # (2) before a word containing "conftest.", or (3) at the end. | |
12046 | # Note that $ac_compile itself does not contain backslashes and begins | |
12047 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12048 | lt_compile=`echo "$ac_compile" | $SED \ | |
12049 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12050 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12051 | -e 's:$: $lt_compiler_flag:'` | |
12052 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12053 | (eval "$lt_compile" 2>out/conftest.err) | |
12054 | ac_status=$? | |
12055 | cat out/conftest.err >&5 | |
12056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12057 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12058 | then | |
12059 | # The compiler can only warn and ignore the option if not recognized | |
12060 | # So say no if there are warnings | |
12061 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
12062 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12063 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12064 | lt_cv_prog_compiler_c_o_GO=yes | |
12065 | fi | |
12066 | fi | |
12067 | chmod u+w . 2>&5 | |
12068 | $RM conftest* | |
12069 | # SGI C++ compiler will create directory out/ii_files/ for | |
12070 | # template instantiation | |
12071 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12072 | $RM out/* && rmdir out | |
12073 | cd .. | |
12074 | $RM -r conftest | |
12075 | $RM conftest* | |
12076 | ||
12077 | fi | |
12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5 | |
12079 | $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; } | |
12080 | ||
12081 | ||
12082 | ||
12083 | ||
12084 | hard_links="nottested" | |
12085 | if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then | |
12086 | # do not overwrite the value of need_locks provided by the user | |
12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
12088 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
12089 | hard_links=yes | |
12090 | $RM conftest* | |
12091 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12092 | touch conftest.a | |
12093 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12094 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
12096 | $as_echo "$hard_links" >&6; } | |
12097 | if test "$hard_links" = no; then | |
12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12099 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12100 | need_locks=warn | |
12101 | fi | |
12102 | else | |
12103 | need_locks=no | |
12104 | fi | |
12105 | ||
12106 | ||
12107 | ||
12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12109 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12110 | ||
12111 | runpath_var= | |
12112 | allow_undefined_flag_GO= | |
12113 | always_export_symbols_GO=no | |
12114 | archive_cmds_GO= | |
12115 | archive_expsym_cmds_GO= | |
12116 | compiler_needs_object_GO=no | |
12117 | enable_shared_with_static_runtimes_GO=no | |
12118 | export_dynamic_flag_spec_GO= | |
12119 | export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12120 | hardcode_automatic_GO=no | |
12121 | hardcode_direct_GO=no | |
12122 | hardcode_direct_absolute_GO=no | |
12123 | hardcode_libdir_flag_spec_GO= | |
12124 | hardcode_libdir_flag_spec_ld_GO= | |
12125 | hardcode_libdir_separator_GO= | |
12126 | hardcode_minus_L_GO=no | |
12127 | hardcode_shlibpath_var_GO=unsupported | |
12128 | inherit_rpath_GO=no | |
12129 | link_all_deplibs_GO=unknown | |
12130 | module_cmds_GO= | |
12131 | module_expsym_cmds_GO= | |
12132 | old_archive_from_new_cmds_GO= | |
12133 | old_archive_from_expsyms_cmds_GO= | |
12134 | thread_safe_flag_spec_GO= | |
12135 | whole_archive_flag_spec_GO= | |
12136 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12137 | # included in the symbol list | |
12138 | include_expsyms_GO= | |
12139 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
12140 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12141 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12142 | # as well as any symbol that contains `d'. | |
12143 | exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
12144 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
12145 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12146 | # the symbol is explicitly referenced. Since portable code cannot | |
12147 | # rely on this symbol name, it's probably fine to never include it in | |
12148 | # preloaded symbol tables. | |
12149 | # Exclude shared library initialization/finalization symbols. | |
12150 | extract_expsyms_cmds= | |
12151 | ||
12152 | case $host_os in | |
12153 | cygwin* | mingw* | pw32* | cegcc*) | |
12154 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
12155 | # When not using gcc, we currently assume that we are using | |
12156 | # Microsoft Visual C++. | |
12157 | if test "$GCC" != yes; then | |
12158 | with_gnu_ld=no | |
12159 | fi | |
12160 | ;; | |
12161 | interix*) | |
12162 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
12163 | with_gnu_ld=yes | |
12164 | ;; | |
12165 | openbsd*) | |
12166 | with_gnu_ld=no | |
12167 | ;; | |
12168 | esac | |
12169 | ||
12170 | ld_shlibs_GO=yes | |
12171 | ||
12172 | # On some targets, GNU ld is compatible enough with the native linker | |
12173 | # that we're better off using the native interface for both. | |
12174 | lt_use_gnu_ld_interface=no | |
12175 | if test "$with_gnu_ld" = yes; then | |
12176 | case $host_os in | |
12177 | aix*) | |
12178 | # The AIX port of GNU ld has always aspired to compatibility | |
12179 | # with the native linker. However, as the warning in the GNU ld | |
12180 | # block says, versions before 2.19.5* couldn't really create working | |
12181 | # shared libraries, regardless of the interface used. | |
12182 | case `$LD -v 2>&1` in | |
12183 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
12184 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
12185 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
12186 | *) | |
12187 | lt_use_gnu_ld_interface=yes | |
12188 | ;; | |
12189 | esac | |
12190 | ;; | |
12191 | *) | |
12192 | lt_use_gnu_ld_interface=yes | |
12193 | ;; | |
12194 | esac | |
12195 | fi | |
12196 | ||
12197 | if test "$lt_use_gnu_ld_interface" = yes; then | |
12198 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12199 | wlarc='${wl}' | |
12200 | ||
12201 | # Set some defaults for GNU ld with shared library support. These | |
12202 | # are reset later if shared libraries are not supported. Putting them | |
12203 | # here allows them to be overridden if necessary. | |
12204 | runpath_var=LD_RUN_PATH | |
12205 | hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' | |
12206 | export_dynamic_flag_spec_GO='${wl}--export-dynamic' | |
12207 | # ancient GNU ld didn't support --whole-archive et. al. | |
12208 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
12209 | whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12210 | else | |
12211 | whole_archive_flag_spec_GO= | |
12212 | fi | |
12213 | supports_anon_versioning=no | |
12214 | case `$LD -v 2>&1` in | |
12215 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
12216 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
12217 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
12218 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
12219 | *\ 2.11.*) ;; # other 2.11 versions | |
12220 | *) supports_anon_versioning=yes ;; | |
12221 | esac | |
12222 | ||
12223 | # See if GNU ld supports shared libraries. | |
12224 | case $host_os in | |
12225 | aix[3-9]*) | |
12226 | # On AIX/PPC, the GNU linker is very broken | |
12227 | if test "$host_cpu" != ia64; then | |
12228 | ld_shlibs_GO=no | |
12229 | cat <<_LT_EOF 1>&2 | |
12230 | ||
12231 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
12232 | *** to be unable to reliably create shared libraries on AIX. | |
12233 | *** Therefore, libtool is disabling shared libraries support. If you | |
12234 | *** really care for shared libraries, you may want to install binutils | |
12235 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
12236 | *** You will then need to restart the configuration process. | |
12237 | ||
12238 | _LT_EOF | |
12239 | fi | |
12240 | ;; | |
12241 | ||
12242 | amigaos*) | |
12243 | case $host_cpu in | |
12244 | powerpc) | |
12245 | # see comment about AmigaOS4 .so support | |
12246 | archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12247 | archive_expsym_cmds_GO='' | |
12248 | ;; | |
12249 | m68k) | |
12250 | archive_cmds_GO='$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)' | |
12251 | hardcode_libdir_flag_spec_GO='-L$libdir' | |
12252 | hardcode_minus_L_GO=yes | |
12253 | ;; | |
12254 | esac | |
12255 | ;; | |
12256 | ||
12257 | beos*) | |
12258 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12259 | allow_undefined_flag_GO=unsupported | |
12260 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12261 | # support --undefined. This deserves some investigation. FIXME | |
12262 | archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12263 | else | |
12264 | ld_shlibs_GO=no | |
12265 | fi | |
12266 | ;; | |
12267 | ||
12268 | cygwin* | mingw* | pw32* | cegcc*) | |
12269 | # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless, | |
12270 | # as there is no search path for DLLs. | |
12271 | hardcode_libdir_flag_spec_GO='-L$libdir' | |
12272 | export_dynamic_flag_spec_GO='${wl}--export-all-symbols' | |
12273 | allow_undefined_flag_GO=unsupported | |
12274 | always_export_symbols_GO=no | |
12275 | enable_shared_with_static_runtimes_GO=yes | |
12276 | export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
12277 | ||
12278 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12279 | archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12280 | # If the export-symbols file already is a .def file (1st line | |
12281 | # is EXPORTS), use it as is; otherwise, prepend... | |
12282 | archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12283 | cp $export_symbols $output_objdir/$soname.def; | |
12284 | else | |
12285 | echo EXPORTS > $output_objdir/$soname.def; | |
12286 | cat $export_symbols >> $output_objdir/$soname.def; | |
12287 | fi~ | |
12288 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12289 | else | |
12290 | ld_shlibs_GO=no | |
12291 | fi | |
12292 | ;; | |
12293 | ||
12294 | haiku*) | |
12295 | archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12296 | link_all_deplibs_GO=yes | |
12297 | ;; | |
12298 | ||
12299 | interix[3-9]*) | |
12300 | hardcode_direct_GO=no | |
12301 | hardcode_shlibpath_var_GO=no | |
12302 | hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' | |
12303 | export_dynamic_flag_spec_GO='${wl}-E' | |
12304 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12305 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12306 | # default) and relocated if they conflict, which is a slow very memory | |
12307 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12308 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12309 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12310 | archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12311 | archive_expsym_cmds_GO='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' | |
12312 | ;; | |
12313 | ||
12314 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
12315 | tmp_diet=no | |
12316 | if test "$host_os" = linux-dietlibc; then | |
12317 | case $cc_basename in | |
12318 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
12319 | esac | |
12320 | fi | |
12321 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
12322 | && test "$tmp_diet" = no | |
12323 | then | |
12324 | tmp_addflag= | |
12325 | tmp_sharedflag='-shared' | |
12326 | case $cc_basename,$host_cpu in | |
12327 | pgcc*) # Portland Group C compiler | |
12328 | whole_archive_flag_spec_GO='${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' | |
12329 | tmp_addflag=' $pic_flag' | |
12330 | ;; | |
12331 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
12332 | # Portland Group f77 and f90 compilers | |
12333 | whole_archive_flag_spec_GO='${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' | |
12334 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
12335 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
12336 | tmp_addflag=' -i_dynamic' ;; | |
12337 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
12338 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
12339 | ifc* | ifort*) # Intel Fortran compiler | |
12340 | tmp_addflag=' -nofor_main' ;; | |
12341 | lf95*) # Lahey Fortran 8.1 | |
12342 | whole_archive_flag_spec_GO= | |
12343 | tmp_sharedflag='--shared' ;; | |
12344 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
12345 | tmp_sharedflag='-qmkshrobj' | |
12346 | tmp_addflag= ;; | |
12347 | nvcc*) # Cuda Compiler Driver 2.2 | |
12348 | whole_archive_flag_spec_GO='${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' | |
12349 | compiler_needs_object_GO=yes | |
12350 | ;; | |
12351 | esac | |
12352 | case `$CC -V 2>&1 | sed 5q` in | |
12353 | *Sun\ C*) # Sun C 5.9 | |
12354 | whole_archive_flag_spec_GO='${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' | |
12355 | compiler_needs_object_GO=yes | |
12356 | tmp_sharedflag='-G' ;; | |
12357 | *Sun\ F*) # Sun Fortran 8.3 | |
12358 | tmp_sharedflag='-G' ;; | |
12359 | esac | |
12360 | archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12361 | ||
12362 | if test "x$supports_anon_versioning" = xyes; then | |
12363 | archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~ | |
12364 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12365 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12366 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12367 | fi | |
12368 | ||
12369 | case $cc_basename in | |
12370 | xlf* | bgf* | bgxlf* | mpixlf*) | |
12371 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
12372 | whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive' | |
12373 | hardcode_libdir_flag_spec_GO= | |
12374 | hardcode_libdir_flag_spec_ld_GO='-rpath $libdir' | |
12375 | archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
12376 | if test "x$supports_anon_versioning" = xyes; then | |
12377 | archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~ | |
12378 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12379 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12380 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
12381 | fi | |
12382 | ;; | |
12383 | esac | |
12384 | else | |
12385 | ld_shlibs_GO=no | |
12386 | fi | |
12387 | ;; | |
12388 | ||
12389 | netbsd*) | |
12390 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12391 | archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
12392 | wlarc= | |
12393 | else | |
12394 | archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12395 | archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12396 | fi | |
12397 | ;; | |
12398 | ||
12399 | solaris*) | |
12400 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
12401 | ld_shlibs_GO=no | |
12402 | cat <<_LT_EOF 1>&2 | |
12403 | ||
12404 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
12405 | *** create shared libraries on Solaris systems. Therefore, libtool | |
12406 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12407 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
12408 | *** your PATH or compiler configuration so that the native linker is | |
12409 | *** used, and then restart. | |
12410 | ||
12411 | _LT_EOF | |
12412 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12413 | archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12414 | archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12415 | else | |
12416 | ld_shlibs_GO=no | |
12417 | fi | |
12418 | ;; | |
12419 | ||
12420 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
12421 | case `$LD -v 2>&1` in | |
12422 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
12423 | ld_shlibs_GO=no | |
12424 | cat <<_LT_EOF 1>&2 | |
12425 | ||
12426 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
12427 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
12428 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
12429 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
12430 | *** your PATH or compiler configuration so that the native linker is | |
12431 | *** used, and then restart. | |
12432 | ||
12433 | _LT_EOF | |
12434 | ;; | |
12435 | *) | |
12436 | # For security reasons, it is highly recommended that you always | |
12437 | # use absolute paths for naming shared libraries, and exclude the | |
12438 | # DT_RUNPATH tag from executables and libraries. But doing so | |
12439 | # requires that you compile everything twice, which is a pain. | |
12440 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12441 | hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' | |
12442 | archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12443 | archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12444 | else | |
12445 | ld_shlibs_GO=no | |
12446 | fi | |
12447 | ;; | |
12448 | esac | |
12449 | ;; | |
12450 | ||
12451 | sunos4*) | |
12452 | archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12453 | wlarc= | |
12454 | hardcode_direct_GO=yes | |
12455 | hardcode_shlibpath_var_GO=no | |
12456 | ;; | |
12457 | ||
12458 | *) | |
12459 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12460 | archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12461 | archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12462 | else | |
12463 | ld_shlibs_GO=no | |
12464 | fi | |
12465 | ;; | |
12466 | esac | |
12467 | ||
12468 | if test "$ld_shlibs_GO" = no; then | |
12469 | runpath_var= | |
12470 | hardcode_libdir_flag_spec_GO= | |
12471 | export_dynamic_flag_spec_GO= | |
12472 | whole_archive_flag_spec_GO= | |
12473 | fi | |
12474 | else | |
12475 | # PORTME fill in a description of your system's linker (not GNU ld) | |
12476 | case $host_os in | |
12477 | aix3*) | |
12478 | allow_undefined_flag_GO=unsupported | |
12479 | always_export_symbols_GO=yes | |
12480 | archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
12481 | # Note: this linker hardcodes the directories in LIBPATH if there | |
12482 | # are no directories specified by -L. | |
12483 | hardcode_minus_L_GO=yes | |
12484 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
12485 | # Neither direct hardcoding nor static linking is supported with a | |
12486 | # broken collect2. | |
12487 | hardcode_direct_GO=unsupported | |
12488 | fi | |
12489 | ;; | |
12490 | ||
12491 | aix[4-9]*) | |
12492 | if test "$host_cpu" = ia64; then | |
12493 | # On IA64, the linker does run time linking by default, so we don't | |
12494 | # have to do anything special. | |
12495 | aix_use_runtimelinking=no | |
12496 | exp_sym_flag='-Bexport' | |
12497 | no_entry_flag="" | |
12498 | else | |
12499 | # If we're using GNU nm, then we don't want the "-C" option. | |
12500 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12501 | # Also, AIX nm treats weak defined symbols like other global | |
12502 | # defined symbols, whereas GNU nm marks them as "W". | |
12503 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
12504 | export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12505 | else | |
12506 | export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
12507 | fi | |
12508 | aix_use_runtimelinking=no | |
12509 | ||
12510 | # Test if we are trying to use run time linking or normal | |
12511 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12512 | # need to do runtime linking. | |
12513 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12514 | for ld_flag in $LDFLAGS; do | |
12515 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
12516 | aix_use_runtimelinking=yes | |
12517 | break | |
12518 | fi | |
12519 | done | |
12520 | ;; | |
12521 | esac | |
12522 | ||
12523 | exp_sym_flag='-bexport' | |
12524 | no_entry_flag='-bnoentry' | |
12525 | fi | |
12526 | ||
12527 | # When large executables or shared objects are built, AIX ld can | |
12528 | # have problems creating the table of contents. If linking a library | |
12529 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12530 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12531 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12532 | ||
12533 | archive_cmds_GO='' | |
12534 | hardcode_direct_GO=yes | |
12535 | hardcode_direct_absolute_GO=yes | |
12536 | hardcode_libdir_separator_GO=':' | |
12537 | link_all_deplibs_GO=yes | |
12538 | file_list_spec_GO='${wl}-f,' | |
12539 | ||
12540 | if test "$GCC" = yes; then | |
12541 | case $host_os in aix4.[012]|aix4.[012].*) | |
12542 | # We only want to do this on AIX 4.2 and lower, the check | |
12543 | # below for broken collect2 doesn't work under 4.3+ | |
12544 | collect2name=`${CC} -print-prog-name=collect2` | |
12545 | if test -f "$collect2name" && | |
12546 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12547 | then | |
12548 | # We have reworked collect2 | |
12549 | : | |
12550 | else | |
12551 | # We have old collect2 | |
12552 | hardcode_direct_GO=unsupported | |
12553 | # It fails to find uninstalled libraries when the uninstalled | |
12554 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12555 | # to unsupported forces relinking | |
12556 | hardcode_minus_L_GO=yes | |
12557 | hardcode_libdir_flag_spec_GO='-L$libdir' | |
12558 | hardcode_libdir_separator_GO= | |
12559 | fi | |
12560 | ;; | |
12561 | esac | |
12562 | shared_flag='-shared' | |
12563 | if test "$aix_use_runtimelinking" = yes; then | |
12564 | shared_flag="$shared_flag "'${wl}-G' | |
12565 | fi | |
12566 | else | |
12567 | # not using gcc | |
12568 | if test "$host_cpu" = ia64; then | |
12569 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12570 | # chokes on -Wl,-G. The following line is correct: | |
12571 | shared_flag='-G' | |
12572 | else | |
12573 | if test "$aix_use_runtimelinking" = yes; then | |
12574 | shared_flag='${wl}-G' | |
12575 | else | |
12576 | shared_flag='${wl}-bM:SRE' | |
12577 | fi | |
12578 | fi | |
12579 | fi | |
12580 | ||
12581 | export_dynamic_flag_spec_GO='${wl}-bexpall' | |
12582 | # It seems that -bexpall does not export symbols beginning with | |
12583 | # underscore (_), so it is better to generate a list of symbols to export. | |
12584 | always_export_symbols_GO=yes | |
12585 | if test "$aix_use_runtimelinking" = yes; then | |
12586 | # Warning - without using the other runtime loading flags (-brtl), | |
12587 | # -berok will link without error, but may produce a broken library. | |
12588 | allow_undefined_flag_GO='-berok' | |
12589 | # Determine the default libpath from the value encoded in an | |
12590 | # empty executable. | |
12591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12592 | /* end confdefs.h. */ | |
12593 | ||
12594 | int | |
12595 | main () | |
12596 | { | |
12597 | ||
12598 | ; | |
12599 | return 0; | |
12600 | } | |
12601 | _ACEOF | |
12602 | if ac_fn_c_try_link "$LINENO"; then : | |
12603 | ||
12604 | lt_aix_libpath_sed=' | |
12605 | /Import File Strings/,/^$/ { | |
12606 | /^0/ { | |
12607 | s/^0 *\(.*\)$/\1/ | |
12608 | p | |
12609 | } | |
12610 | }' | |
12611 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12612 | # Check for a 64-bit object if we didn't find anything. | |
12613 | if test -z "$aix_libpath"; then | |
12614 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12615 | fi | |
12616 | fi | |
12617 | rm -f core conftest.err conftest.$ac_objext \ | |
12618 | conftest$ac_exeext conftest.$ac_ext | |
12619 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12620 | ||
12621 | hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12622 | archive_expsym_cmds_GO='$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" | |
12623 | else | |
12624 | if test "$host_cpu" = ia64; then | |
12625 | hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib' | |
12626 | allow_undefined_flag_GO="-z nodefs" | |
12627 | archive_expsym_cmds_GO="\$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" | |
12628 | else | |
12629 | # Determine the default libpath from the value encoded in an | |
12630 | # empty executable. | |
12631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12632 | /* end confdefs.h. */ | |
12633 | ||
12634 | int | |
12635 | main () | |
12636 | { | |
12637 | ||
12638 | ; | |
12639 | return 0; | |
12640 | } | |
12641 | _ACEOF | |
12642 | if ac_fn_c_try_link "$LINENO"; then : | |
12643 | ||
12644 | lt_aix_libpath_sed=' | |
12645 | /Import File Strings/,/^$/ { | |
12646 | /^0/ { | |
12647 | s/^0 *\(.*\)$/\1/ | |
12648 | p | |
12649 | } | |
12650 | }' | |
12651 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12652 | # Check for a 64-bit object if we didn't find anything. | |
12653 | if test -z "$aix_libpath"; then | |
12654 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12655 | fi | |
12656 | fi | |
12657 | rm -f core conftest.err conftest.$ac_objext \ | |
12658 | conftest$ac_exeext conftest.$ac_ext | |
12659 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12660 | ||
12661 | hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12662 | # Warning - without using the other run time loading flags, | |
12663 | # -berok will link without error, but may produce a broken library. | |
12664 | no_undefined_flag_GO=' ${wl}-bernotok' | |
12665 | allow_undefined_flag_GO=' ${wl}-berok' | |
12666 | if test "$with_gnu_ld" = yes; then | |
12667 | # We only use this code for GNU lds that support --whole-archive. | |
12668 | whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12669 | else | |
12670 | # Exported symbols can be pulled into shared objects from archives | |
12671 | whole_archive_flag_spec_GO='$convenience' | |
12672 | fi | |
12673 | archive_cmds_need_lc_GO=yes | |
12674 | # This is similar to how AIX traditionally builds its shared libraries. | |
12675 | archive_expsym_cmds_GO="\$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' | |
12676 | fi | |
12677 | fi | |
12678 | ;; | |
12679 | ||
12680 | amigaos*) | |
12681 | case $host_cpu in | |
12682 | powerpc) | |
12683 | # see comment about AmigaOS4 .so support | |
12684 | archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12685 | archive_expsym_cmds_GO='' | |
12686 | ;; | |
12687 | m68k) | |
12688 | archive_cmds_GO='$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)' | |
12689 | hardcode_libdir_flag_spec_GO='-L$libdir' | |
12690 | hardcode_minus_L_GO=yes | |
12691 | ;; | |
12692 | esac | |
12693 | ;; | |
12694 | ||
12695 | bsdi[45]*) | |
12696 | export_dynamic_flag_spec_GO=-rdynamic | |
12697 | ;; | |
12698 | ||
12699 | cygwin* | mingw* | pw32* | cegcc*) | |
12700 | # When not using gcc, we currently assume that we are using | |
12701 | # Microsoft Visual C++. | |
12702 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12703 | # no search path for DLLs. | |
12704 | hardcode_libdir_flag_spec_GO=' ' | |
12705 | allow_undefined_flag_GO=unsupported | |
12706 | # Tell ltmain to make .lib files, not .a files. | |
12707 | libext=lib | |
12708 | # Tell ltmain to make .dll files, not .so files. | |
12709 | shrext_cmds=".dll" | |
12710 | # FIXME: Setting linknames here is a bad hack. | |
12711 | archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
12712 | # The linker will automatically build a .lib file if we build a DLL. | |
12713 | old_archive_from_new_cmds_GO='true' | |
12714 | # FIXME: Should let the user specify the lib program. | |
12715 | old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
12716 | fix_srcfile_path_GO='`cygpath -w "$srcfile"`' | |
12717 | enable_shared_with_static_runtimes_GO=yes | |
12718 | ;; | |
12719 | ||
12720 | darwin* | rhapsody*) | |
12721 | ||
12722 | ||
12723 | archive_cmds_need_lc_GO=no | |
12724 | hardcode_direct_GO=no | |
12725 | hardcode_automatic_GO=yes | |
12726 | hardcode_shlibpath_var_GO=unsupported | |
12727 | if test "$lt_cv_ld_force_load" = "yes"; then | |
12728 | whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
12729 | else | |
12730 | whole_archive_flag_spec_GO='' | |
12731 | fi | |
12732 | link_all_deplibs_GO=yes | |
12733 | allow_undefined_flag_GO="$_lt_dar_allow_undefined" | |
12734 | case $cc_basename in | |
12735 | ifort*) _lt_dar_can_shared=yes ;; | |
12736 | *) _lt_dar_can_shared=$GCC ;; | |
12737 | esac | |
12738 | if test "$_lt_dar_can_shared" = "yes"; then | |
12739 | output_verbose_link_cmd=func_echo_all | |
12740 | archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
12741 | module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12742 | archive_expsym_cmds_GO="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}" | |
12743 | module_expsym_cmds_GO="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}" | |
12744 | ||
12745 | else | |
12746 | ld_shlibs_GO=no | |
12747 | fi | |
12748 | ||
12749 | ;; | |
12750 | ||
12751 | dgux*) | |
12752 | archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12753 | hardcode_libdir_flag_spec_GO='-L$libdir' | |
12754 | hardcode_shlibpath_var_GO=no | |
12755 | ;; | |
12756 | ||
7a938933 ILT |
12757 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
12758 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
12759 | # does not break anything, and helps significantly (at the cost of a little | |
12760 | # extra space). | |
12761 | freebsd2.2*) | |
12762 | archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
12763 | hardcode_libdir_flag_spec_GO='-R$libdir' | |
12764 | hardcode_direct_GO=yes | |
12765 | hardcode_shlibpath_var_GO=no | |
12766 | ;; | |
12767 | ||
12768 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
327a26a3 | 12769 | freebsd2.*) |
7a938933 ILT |
12770 | archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
12771 | hardcode_direct_GO=yes | |
12772 | hardcode_minus_L_GO=yes | |
12773 | hardcode_shlibpath_var_GO=no | |
12774 | ;; | |
12775 | ||
12776 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
12777 | freebsd* | dragonfly*) | |
12778 | archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
12779 | hardcode_libdir_flag_spec_GO='-R$libdir' | |
12780 | hardcode_direct_GO=yes | |
12781 | hardcode_shlibpath_var_GO=no | |
12782 | ;; | |
12783 | ||
12784 | hpux9*) | |
12785 | if test "$GCC" = yes; then | |
12786 | archive_cmds_GO='$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' | |
12787 | else | |
12788 | archive_cmds_GO='$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' | |
12789 | fi | |
12790 | hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' | |
12791 | hardcode_libdir_separator_GO=: | |
12792 | hardcode_direct_GO=yes | |
12793 | ||
12794 | # hardcode_minus_L: Not really in the search PATH, | |
12795 | # but as the default location of the library. | |
12796 | hardcode_minus_L_GO=yes | |
12797 | export_dynamic_flag_spec_GO='${wl}-E' | |
12798 | ;; | |
12799 | ||
12800 | hpux10*) | |
12801 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
12802 | archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12803 | else | |
12804 | archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
12805 | fi | |
12806 | if test "$with_gnu_ld" = no; then | |
12807 | hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' | |
12808 | hardcode_libdir_flag_spec_ld_GO='+b $libdir' | |
12809 | hardcode_libdir_separator_GO=: | |
12810 | hardcode_direct_GO=yes | |
12811 | hardcode_direct_absolute_GO=yes | |
12812 | export_dynamic_flag_spec_GO='${wl}-E' | |
12813 | # hardcode_minus_L: Not really in the search PATH, | |
12814 | # but as the default location of the library. | |
12815 | hardcode_minus_L_GO=yes | |
12816 | fi | |
12817 | ;; | |
12818 | ||
12819 | hpux11*) | |
12820 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
12821 | case $host_cpu in | |
12822 | hppa*64*) | |
12823 | archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12824 | ;; | |
12825 | ia64*) | |
12826 | archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
12827 | ;; | |
12828 | *) | |
12829 | archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12830 | ;; | |
12831 | esac | |
12832 | else | |
12833 | case $host_cpu in | |
12834 | hppa*64*) | |
12835 | archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12836 | ;; | |
12837 | ia64*) | |
12838 | archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
12839 | ;; | |
12840 | *) | |
12841 | archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
12842 | ;; | |
12843 | esac | |
12844 | fi | |
12845 | if test "$with_gnu_ld" = no; then | |
12846 | hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir' | |
12847 | hardcode_libdir_separator_GO=: | |
12848 | ||
12849 | case $host_cpu in | |
12850 | hppa*64*|ia64*) | |
12851 | hardcode_direct_GO=no | |
12852 | hardcode_shlibpath_var_GO=no | |
12853 | ;; | |
12854 | *) | |
12855 | hardcode_direct_GO=yes | |
12856 | hardcode_direct_absolute_GO=yes | |
12857 | export_dynamic_flag_spec_GO='${wl}-E' | |
12858 | ||
12859 | # hardcode_minus_L: Not really in the search PATH, | |
12860 | # but as the default location of the library. | |
12861 | hardcode_minus_L_GO=yes | |
12862 | ;; | |
12863 | esac | |
12864 | fi | |
12865 | ;; | |
12866 | ||
12867 | irix5* | irix6* | nonstopux*) | |
12868 | if test "$GCC" = yes; then | |
12869 | archive_cmds_GO='$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' | |
12870 | # Try to use the -exported_symbol ld option, if it does not | |
12871 | # work, assume that -exports_file does not work either and | |
12872 | # implicitly export all symbols. | |
12873 | save_LDFLAGS="$LDFLAGS" | |
12874 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
12875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12876 | /* end confdefs.h. */ | |
12877 | int foo(void) {} | |
12878 | _ACEOF | |
12879 | if ac_fn_c_try_link "$LINENO"; then : | |
12880 | archive_expsym_cmds_GO='$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' | |
12881 | ||
12882 | fi | |
12883 | rm -f core conftest.err conftest.$ac_objext \ | |
12884 | conftest$ac_exeext conftest.$ac_ext | |
12885 | LDFLAGS="$save_LDFLAGS" | |
12886 | else | |
12887 | archive_cmds_GO='$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' | |
12888 | archive_expsym_cmds_GO='$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' | |
12889 | fi | |
12890 | archive_cmds_need_lc_GO='no' | |
12891 | hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' | |
12892 | hardcode_libdir_separator_GO=: | |
12893 | inherit_rpath_GO=yes | |
12894 | link_all_deplibs_GO=yes | |
12895 | ;; | |
12896 | ||
12897 | netbsd*) | |
12898 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12899 | archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
12900 | else | |
12901 | archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
12902 | fi | |
12903 | hardcode_libdir_flag_spec_GO='-R$libdir' | |
12904 | hardcode_direct_GO=yes | |
12905 | hardcode_shlibpath_var_GO=no | |
12906 | ;; | |
12907 | ||
12908 | newsos6) | |
12909 | archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12910 | hardcode_direct_GO=yes | |
12911 | hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' | |
12912 | hardcode_libdir_separator_GO=: | |
12913 | hardcode_shlibpath_var_GO=no | |
12914 | ;; | |
12915 | ||
12916 | *nto* | *qnx*) | |
12917 | ;; | |
12918 | ||
12919 | openbsd*) | |
12920 | if test -f /usr/libexec/ld.so; then | |
12921 | hardcode_direct_GO=yes | |
12922 | hardcode_shlibpath_var_GO=no | |
12923 | hardcode_direct_absolute_GO=yes | |
12924 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12925 | archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12926 | archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
12927 | hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' | |
12928 | export_dynamic_flag_spec_GO='${wl}-E' | |
12929 | else | |
12930 | case $host_os in | |
12931 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
12932 | archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
12933 | hardcode_libdir_flag_spec_GO='-R$libdir' | |
12934 | ;; | |
12935 | *) | |
12936 | archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
12937 | hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' | |
12938 | ;; | |
12939 | esac | |
12940 | fi | |
12941 | else | |
12942 | ld_shlibs_GO=no | |
12943 | fi | |
12944 | ;; | |
12945 | ||
12946 | os2*) | |
12947 | hardcode_libdir_flag_spec_GO='-L$libdir' | |
12948 | hardcode_minus_L_GO=yes | |
12949 | allow_undefined_flag_GO=unsupported | |
12950 | archive_cmds_GO='$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' | |
12951 | old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
12952 | ;; | |
12953 | ||
12954 | osf3*) | |
12955 | if test "$GCC" = yes; then | |
12956 | allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*' | |
12957 | archive_cmds_GO='$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' | |
12958 | else | |
12959 | allow_undefined_flag_GO=' -expect_unresolved \*' | |
12960 | archive_cmds_GO='$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' | |
12961 | fi | |
12962 | archive_cmds_need_lc_GO='no' | |
12963 | hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' | |
12964 | hardcode_libdir_separator_GO=: | |
12965 | ;; | |
12966 | ||
12967 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
12968 | if test "$GCC" = yes; then | |
12969 | allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*' | |
12970 | archive_cmds_GO='$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' | |
12971 | hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir' | |
12972 | else | |
12973 | allow_undefined_flag_GO=' -expect_unresolved \*' | |
12974 | archive_cmds_GO='$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' | |
12975 | archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
12976 | $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' | |
12977 | ||
12978 | # Both c and cxx compiler support -rpath directly | |
12979 | hardcode_libdir_flag_spec_GO='-rpath $libdir' | |
12980 | fi | |
12981 | archive_cmds_need_lc_GO='no' | |
12982 | hardcode_libdir_separator_GO=: | |
12983 | ;; | |
12984 | ||
12985 | solaris*) | |
12986 | no_undefined_flag_GO=' -z defs' | |
12987 | if test "$GCC" = yes; then | |
12988 | wlarc='${wl}' | |
12989 | archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12990 | archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12991 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
12992 | else | |
12993 | case `$CC -V 2>&1` in | |
12994 | *"Compilers 5.0"*) | |
12995 | wlarc='' | |
12996 | archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12997 | archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12998 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
12999 | ;; | |
13000 | *) | |
13001 | wlarc='${wl}' | |
13002 | archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13003 | archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13004 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13005 | ;; | |
13006 | esac | |
13007 | fi | |
13008 | hardcode_libdir_flag_spec_GO='-R$libdir' | |
13009 | hardcode_shlibpath_var_GO=no | |
13010 | case $host_os in | |
13011 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13012 | *) | |
13013 | # The compiler driver will combine and reorder linker options, | |
13014 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
13015 | # but is careful enough not to reorder. | |
13016 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13017 | if test "$GCC" = yes; then | |
13018 | whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13019 | else | |
13020 | whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract' | |
13021 | fi | |
13022 | ;; | |
13023 | esac | |
13024 | link_all_deplibs_GO=yes | |
13025 | ;; | |
13026 | ||
13027 | sunos4*) | |
13028 | if test "x$host_vendor" = xsequent; then | |
13029 | # Use $CC to link under sequent, because it throws in some extra .o | |
13030 | # files that make .init and .fini sections work. | |
13031 | archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13032 | else | |
13033 | archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
13034 | fi | |
13035 | hardcode_libdir_flag_spec_GO='-L$libdir' | |
13036 | hardcode_direct_GO=yes | |
13037 | hardcode_minus_L_GO=yes | |
13038 | hardcode_shlibpath_var_GO=no | |
13039 | ;; | |
13040 | ||
13041 | sysv4) | |
13042 | case $host_vendor in | |
13043 | sni) | |
13044 | archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13045 | hardcode_direct_GO=yes # is this really true??? | |
13046 | ;; | |
13047 | siemens) | |
13048 | ## LD is ld it makes a PLAMLIB | |
13049 | ## CC just makes a GrossModule. | |
13050 | archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
13051 | reload_cmds_GO='$CC -r -o $output$reload_objs' | |
13052 | hardcode_direct_GO=no | |
13053 | ;; | |
13054 | motorola) | |
13055 | archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13056 | hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie | |
13057 | ;; | |
13058 | esac | |
13059 | runpath_var='LD_RUN_PATH' | |
13060 | hardcode_shlibpath_var_GO=no | |
13061 | ;; | |
13062 | ||
13063 | sysv4.3*) | |
13064 | archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13065 | hardcode_shlibpath_var_GO=no | |
13066 | export_dynamic_flag_spec_GO='-Bexport' | |
13067 | ;; | |
13068 | ||
13069 | sysv4*MP*) | |
13070 | if test -d /usr/nec; then | |
13071 | archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13072 | hardcode_shlibpath_var_GO=no | |
13073 | runpath_var=LD_RUN_PATH | |
13074 | hardcode_runpath_var=yes | |
13075 | ld_shlibs_GO=yes | |
13076 | fi | |
13077 | ;; | |
13078 | ||
13079 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13080 | no_undefined_flag_GO='${wl}-z,text' | |
13081 | archive_cmds_need_lc_GO=no | |
13082 | hardcode_shlibpath_var_GO=no | |
13083 | runpath_var='LD_RUN_PATH' | |
13084 | ||
13085 | if test "$GCC" = yes; then | |
13086 | archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13087 | archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13088 | else | |
13089 | archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13090 | archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13091 | fi | |
13092 | ;; | |
13093 | ||
13094 | sysv5* | sco3.2v5* | sco5v6*) | |
13095 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13096 | # link with -lc, and that would cause any symbols used from libc to | |
13097 | # always be unresolved, which means just about no library would | |
13098 | # ever link correctly. If we're not using GNU ld we use -z text | |
13099 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13100 | # as -z defs. | |
13101 | no_undefined_flag_GO='${wl}-z,text' | |
13102 | allow_undefined_flag_GO='${wl}-z,nodefs' | |
13103 | archive_cmds_need_lc_GO=no | |
13104 | hardcode_shlibpath_var_GO=no | |
13105 | hardcode_libdir_flag_spec_GO='${wl}-R,$libdir' | |
13106 | hardcode_libdir_separator_GO=':' | |
13107 | link_all_deplibs_GO=yes | |
13108 | export_dynamic_flag_spec_GO='${wl}-Bexport' | |
13109 | runpath_var='LD_RUN_PATH' | |
13110 | ||
13111 | if test "$GCC" = yes; then | |
13112 | archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13113 | archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13114 | else | |
13115 | archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13116 | archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13117 | fi | |
13118 | ;; | |
13119 | ||
13120 | uts4*) | |
13121 | archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13122 | hardcode_libdir_flag_spec_GO='-L$libdir' | |
13123 | hardcode_shlibpath_var_GO=no | |
13124 | ;; | |
13125 | ||
13126 | *) | |
13127 | ld_shlibs_GO=no | |
13128 | ;; | |
13129 | esac | |
13130 | ||
13131 | if test x$host_vendor = xsni; then | |
13132 | case $host in | |
13133 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13134 | export_dynamic_flag_spec_GO='${wl}-Blargedynsym' | |
13135 | ;; | |
13136 | esac | |
13137 | fi | |
13138 | fi | |
13139 | ||
13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5 | |
13141 | $as_echo "$ld_shlibs_GO" >&6; } | |
13142 | test "$ld_shlibs_GO" = no && can_build_shared=no | |
13143 | ||
13144 | with_gnu_ld_GO=$with_gnu_ld | |
13145 | ||
13146 | ||
13147 | ||
13148 | ||
13149 | ||
13150 | ||
13151 | # | |
13152 | # Do we need to explicitly link libc? | |
13153 | # | |
13154 | case "x$archive_cmds_need_lc_GO" in | |
13155 | x|xyes) | |
13156 | # Assume -lc should be added | |
13157 | archive_cmds_need_lc_GO=yes | |
13158 | ||
13159 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13160 | case $archive_cmds_GO in | |
13161 | *'~'*) | |
13162 | # FIXME: we may have to deal with multi-command sequences. | |
13163 | ;; | |
13164 | '$CC '*) | |
13165 | # Test whether the compiler implicitly links with -lc since on some | |
13166 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13167 | # to ld, don't add -lc before -lgcc. | |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13169 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13170 | if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then : | |
13171 | $as_echo_n "(cached) " >&6 | |
13172 | else | |
13173 | $RM conftest* | |
13174 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13175 | ||
13176 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13177 | (eval $ac_compile) 2>&5 | |
13178 | ac_status=$? | |
13179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13180 | test $ac_status = 0; } 2>conftest.err; then | |
13181 | soname=conftest | |
13182 | lib=conftest | |
13183 | libobjs=conftest.$ac_objext | |
13184 | deplibs= | |
13185 | wl=$lt_prog_compiler_wl_GO | |
13186 | pic_flag=$lt_prog_compiler_pic_GO | |
13187 | compiler_flags=-v | |
13188 | linker_flags=-v | |
13189 | verstring= | |
13190 | output_objdir=. | |
13191 | libname=conftest | |
13192 | lt_save_allow_undefined_flag=$allow_undefined_flag_GO | |
13193 | allow_undefined_flag_GO= | |
13194 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13195 | (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13196 | ac_status=$? | |
13197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13198 | test $ac_status = 0; } | |
13199 | then | |
13200 | lt_cv_archive_cmds_need_lc_GO=no | |
13201 | else | |
13202 | lt_cv_archive_cmds_need_lc_GO=yes | |
13203 | fi | |
13204 | allow_undefined_flag_GO=$lt_save_allow_undefined_flag | |
13205 | else | |
13206 | cat conftest.err 1>&5 | |
13207 | fi | |
13208 | $RM conftest* | |
13209 | ||
13210 | fi | |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5 | |
13212 | $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; } | |
13213 | archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO | |
13214 | ;; | |
13215 | esac | |
13216 | fi | |
13217 | ;; | |
13218 | esac | |
13219 | ||
13220 | ||
13221 | ||
13222 | ||
13223 | ||
13224 | ||
13225 | ||
13226 | ||
13227 | ||
13228 | ||
13229 | ||
13230 | ||
13231 | ||
13232 | ||
13233 | ||
13234 | ||
13235 | ||
13236 | ||
13237 | ||
13238 | ||
13239 | ||
13240 | ||
13241 | ||
13242 | ||
13243 | ||
13244 | ||
13245 | ||
13246 | ||
13247 | ||
13248 | ||
13249 | ||
13250 | ||
13251 | ||
13252 | ||
13253 | ||
13254 | ||
13255 | ||
13256 | ||
13257 | ||
13258 | ||
13259 | ||
13260 | ||
13261 | ||
13262 | ||
13263 | ||
13264 | ||
13265 | ||
13266 | ||
13267 | ||
13268 | ||
13269 | ||
13270 | ||
13271 | ||
13272 | ||
13273 | ||
13274 | ||
13275 | ||
13276 | ||
13277 | ||
13278 | ||
13279 | ||
13280 | ||
13281 | ||
13282 | ||
13283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
13284 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
13285 | hardcode_action_GO= | |
13286 | if test -n "$hardcode_libdir_flag_spec_GO" || | |
13287 | test -n "$runpath_var_GO" || | |
13288 | test "X$hardcode_automatic_GO" = "Xyes" ; then | |
13289 | ||
13290 | # We can hardcode non-existent directories. | |
13291 | if test "$hardcode_direct_GO" != no && | |
13292 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13293 | # have to relink, otherwise we might link with an installed library | |
13294 | # when we should be linking with a yet-to-be-installed one | |
13295 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no && | |
13296 | test "$hardcode_minus_L_GO" != no; then | |
13297 | # Linking always hardcodes the temporary library directory. | |
13298 | hardcode_action_GO=relink | |
13299 | else | |
13300 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13301 | hardcode_action_GO=immediate | |
13302 | fi | |
13303 | else | |
13304 | # We cannot hardcode anything, or else we can only hardcode existing | |
13305 | # directories. | |
13306 | hardcode_action_GO=unsupported | |
13307 | fi | |
13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5 | |
13309 | $as_echo "$hardcode_action_GO" >&6; } | |
13310 | ||
13311 | if test "$hardcode_action_GO" = relink || | |
13312 | test "$inherit_rpath_GO" = yes; then | |
13313 | # Fast installation is not supported | |
13314 | enable_fast_install=no | |
13315 | elif test "$shlibpath_overrides_runpath" = yes || | |
13316 | test "$enable_shared" = no; then | |
13317 | # Fast installation is not necessary | |
13318 | enable_fast_install=needless | |
13319 | fi | |
13320 | ||
13321 | ||
13322 | ||
13323 | ||
13324 | ||
13325 | ||
13326 | ||
13327 | fi | |
13328 | ||
13329 | ac_ext=c | |
13330 | ac_cpp='$CPP $CPPFLAGS' | |
13331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13334 | ||
13335 | ||
13336 | GCC=$lt_save_GCC | |
13337 | CC="$lt_save_CC" | |
13338 | ||
13339 | ||
13340 | ||
13341 | ||
13342 | ac_config_commands="$ac_config_commands libtool" | |
13343 | ||
13344 | ||
13345 | ||
13346 | ||
13347 | # Only expand once: | |
13348 | ||
13349 | ||
13350 | ||
13351 | ||
13352 | ||
d983a802 ILT |
13353 | CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} |
13354 | ||
13355 | ||
de27caac ILT |
13356 | for ac_prog in gawk mawk nawk awk |
13357 | do | |
13358 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13359 | set dummy $ac_prog; ac_word=$2 | |
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13361 | $as_echo_n "checking for $ac_word... " >&6; } | |
13362 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
13363 | $as_echo_n "(cached) " >&6 | |
13364 | else | |
13365 | if test -n "$AWK"; then | |
13366 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
13367 | else | |
13368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13369 | for as_dir in $PATH | |
13370 | do | |
13371 | IFS=$as_save_IFS | |
13372 | test -z "$as_dir" && as_dir=. | |
13373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13375 | ac_cv_prog_AWK="$ac_prog" | |
13376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13377 | break 2 | |
13378 | fi | |
13379 | done | |
13380 | done | |
13381 | IFS=$as_save_IFS | |
13382 | ||
13383 | fi | |
13384 | fi | |
13385 | AWK=$ac_cv_prog_AWK | |
13386 | if test -n "$AWK"; then | |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
13388 | $as_echo "$AWK" >&6; } | |
13389 | else | |
13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13391 | $as_echo "no" >&6; } | |
13392 | fi | |
13393 | ||
13394 | ||
13395 | test -n "$AWK" && break | |
13396 | done | |
13397 | ||
13398 | ||
7a938933 ILT |
13399 | WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual' |
13400 | ||
13401 | ||
0d4668c1 ILT |
13402 | # Check whether --enable-werror was given. |
13403 | if test "${enable_werror+set}" = set; then : | |
13404 | enableval=$enable_werror; | |
13405 | fi | |
13406 | ||
13407 | if test "x$enable_werror" != "xno"; then | |
13408 | WERROR="-Werror" | |
13409 | fi | |
7a938933 ILT |
13410 | |
13411 | ||
13412 | glibgo_toolexecdir=no | |
13413 | glibgo_toolexeclibdir=no | |
7a938933 ILT |
13414 | |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 | |
13416 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
13417 | # Check whether --enable-version-specific-runtime-libs was given. | |
13418 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
13419 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
13420 | yes) version_specific_libs=yes ;; | |
13421 | no) version_specific_libs=no ;; | |
13422 | *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; | |
13423 | esac | |
13424 | else | |
13425 | version_specific_libs=no | |
13426 | fi | |
13427 | ||
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
13429 | $as_echo "$version_specific_libs" >&6; } | |
13430 | ||
13431 | # Version-specific runtime libs processing. | |
13432 | if test $version_specific_libs = yes; then | |
13433 | glibgo_toolexecdir='${libdir}/gcc/${host_alias}' | |
13434 | glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)' | |
13435 | fi | |
13436 | ||
13437 | # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir | |
13438 | # Install a library built with a cross compiler in tooldir, not libdir. | |
317ea7c0 ILT |
13439 | if test -n "$with_cross_host" && |
13440 | test x"$with_cross_host" != x"no"; then | |
13441 | nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}' | |
13442 | nover_glibgo_toolexeclibdir='${toolexecdir}/lib' | |
13443 | else | |
13444 | nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}' | |
13445 | nover_glibgo_toolexeclibdir='${libdir}' | |
13446 | fi | |
6c76a95d | 13447 | multi_os_directory=`$GOC -print-multi-os-directory` |
317ea7c0 ILT |
13448 | case $multi_os_directory in |
13449 | .) ;; # Avoid trailing /. | |
13450 | *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;; | |
13451 | esac | |
13452 | ||
7a938933 | 13453 | if test x"$glibgo_toolexecdir" = x"no"; then |
317ea7c0 ILT |
13454 | glibgo_toolexecdir="${nover_glibgo_toolexecdir}" |
13455 | glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}" | |
7a938933 ILT |
13456 | fi |
13457 | ||
13458 | ||
13459 | ||
13460 | ||
13461 | ||
13462 | # See if the user wants to configure without libffi. Some | |
13463 | # architectures don't support it. FIXME: We should set a default | |
13464 | # based on the host. | |
13465 | ||
13466 | # Check whether --with-libffi was given. | |
13467 | if test "${with_libffi+set}" = set; then : | |
13468 | withval=$with_libffi; : | |
13469 | else | |
13470 | with_libffi=${with_libffi_default-yes} | |
13471 | fi | |
13472 | ||
13473 | ||
13474 | LIBFFI= | |
13475 | LIBFFIINCS= | |
13476 | if test "$with_libffi" != no; then | |
13477 | ||
13478 | $as_echo "#define USE_LIBFFI 1" >>confdefs.h | |
13479 | ||
13480 | LIBFFI=../libffi/libffi_convenience.la | |
13481 | LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include' | |
13482 | fi | |
13483 | ||
13484 | ||
5302cd02 ILT |
13485 | if test "$with_liffi" != "no"; then |
13486 | USE_LIBFFI_TRUE= | |
13487 | USE_LIBFFI_FALSE='#' | |
13488 | else | |
13489 | USE_LIBFFI_TRUE='#' | |
13490 | USE_LIBFFI_FALSE= | |
13491 | fi | |
13492 | ||
7a938933 | 13493 | |
9a85ed03 ILT |
13494 | # See if the user wants to configure without libatomic. This is useful if we are |
13495 | # on an architecture for which libgo does not need an atomic support library and | |
13496 | # libatomic does not support our C compiler. | |
13497 | ||
13498 | # Check whether --with-libatomic was given. | |
13499 | if test "${with_libatomic+set}" = set; then : | |
13500 | withval=$with_libatomic; : | |
13501 | else | |
13502 | with_libatomic=${with_libatomic_default-yes} | |
13503 | fi | |
13504 | ||
13505 | ||
13506 | LIBATOMIC= | |
13507 | if test "$with_libatomic" != no; then | |
13508 | LIBATOMIC=../libatomic/libatomic_convenience.la | |
13509 | fi | |
13510 | ||
13511 | ||
18c70075 ILT |
13512 | # Used to tell GNU make to include a file without telling automake to |
13513 | # include it. | |
13514 | go_include="-include" | |
13515 | ||
13516 | ||
a8464243 ILT |
13517 | # All known GOOS values. This is the union of all operating systems |
13518 | # supported by the gofrontend and all operating systems supported by | |
13519 | # the gc toolchain. | |
f163907e | 13520 | ALLGOOS="aix android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows" |
a8464243 | 13521 | |
7a938933 ILT |
13522 | is_darwin=no |
13523 | is_freebsd=no | |
654d2ec0 | 13524 | is_irix=no |
7a938933 | 13525 | is_linux=no |
1efa38d1 | 13526 | is_netbsd=no |
4ccad563 | 13527 | is_openbsd=no |
f038dae6 | 13528 | is_dragonfly=no |
7a938933 | 13529 | is_rtems=no |
f2ee78b8 | 13530 | is_solaris=no |
f163907e | 13531 | is_aix=no |
c3b5b97b | 13532 | GOOS=unknown |
7a938933 | 13533 | case ${host} in |
f2ee78b8 ILT |
13534 | *-*-darwin*) is_darwin=yes; GOOS=darwin ;; |
13535 | *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;; | |
654d2ec0 | 13536 | *-*-irix6*) is_irix=yes; GOOS=irix ;; |
f2ee78b8 | 13537 | *-*-linux*) is_linux=yes; GOOS=linux ;; |
df4aa89a | 13538 | *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;; |
4ccad563 | 13539 | *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;; |
f038dae6 | 13540 | *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;; |
f2ee78b8 ILT |
13541 | *-*-rtems*) is_rtems=yes; GOOS=rtems ;; |
13542 | *-*-solaris2*) is_solaris=yes; GOOS=solaris ;; | |
f163907e | 13543 | *-*-aix*) is_aix=yes; GOOS=aix ;; |
7a938933 ILT |
13544 | esac |
13545 | if test $is_darwin = yes; then | |
13546 | LIBGO_IS_DARWIN_TRUE= | |
13547 | LIBGO_IS_DARWIN_FALSE='#' | |
13548 | else | |
13549 | LIBGO_IS_DARWIN_TRUE='#' | |
13550 | LIBGO_IS_DARWIN_FALSE= | |
13551 | fi | |
13552 | ||
13553 | if test $is_freebsd = yes; then | |
13554 | LIBGO_IS_FREEBSD_TRUE= | |
13555 | LIBGO_IS_FREEBSD_FALSE='#' | |
13556 | else | |
13557 | LIBGO_IS_FREEBSD_TRUE='#' | |
13558 | LIBGO_IS_FREEBSD_FALSE= | |
13559 | fi | |
13560 | ||
654d2ec0 ILT |
13561 | if test $is_irix = yes; then |
13562 | LIBGO_IS_IRIX_TRUE= | |
13563 | LIBGO_IS_IRIX_FALSE='#' | |
13564 | else | |
13565 | LIBGO_IS_IRIX_TRUE='#' | |
13566 | LIBGO_IS_IRIX_FALSE= | |
13567 | fi | |
13568 | ||
7a938933 ILT |
13569 | if test $is_linux = yes; then |
13570 | LIBGO_IS_LINUX_TRUE= | |
13571 | LIBGO_IS_LINUX_FALSE='#' | |
13572 | else | |
13573 | LIBGO_IS_LINUX_TRUE='#' | |
13574 | LIBGO_IS_LINUX_FALSE= | |
13575 | fi | |
13576 | ||
df4aa89a ILT |
13577 | if test $is_netbsd = yes; then |
13578 | LIBGO_IS_NETBSD_TRUE= | |
13579 | LIBGO_IS_NETBSD_FALSE='#' | |
13580 | else | |
13581 | LIBGO_IS_NETBSD_TRUE='#' | |
13582 | LIBGO_IS_NETBSD_FALSE= | |
13583 | fi | |
13584 | ||
4ccad563 ILT |
13585 | if test $is_openbsd = yes; then |
13586 | LIBGO_IS_OPENBSD_TRUE= | |
13587 | LIBGO_IS_OPENBSD_FALSE='#' | |
13588 | else | |
13589 | LIBGO_IS_OPENBSD_TRUE='#' | |
13590 | LIBGO_IS_OPENBSD_FALSE= | |
13591 | fi | |
13592 | ||
824393bd | 13593 | if test $is_dragonfly = yes; then |
f038dae6 ILT |
13594 | LIBGO_IS_DRAGONFLY_TRUE= |
13595 | LIBGO_IS_DRAGONFLY_FALSE='#' | |
13596 | else | |
13597 | LIBGO_IS_DRAGONFLY_TRUE='#' | |
13598 | LIBGO_IS_DRAGONFLY_FALSE= | |
13599 | fi | |
13600 | ||
7a938933 ILT |
13601 | if test $is_rtems = yes; then |
13602 | LIBGO_IS_RTEMS_TRUE= | |
13603 | LIBGO_IS_RTEMS_FALSE='#' | |
13604 | else | |
13605 | LIBGO_IS_RTEMS_TRUE='#' | |
13606 | LIBGO_IS_RTEMS_FALSE= | |
13607 | fi | |
13608 | ||
f2ee78b8 ILT |
13609 | if test $is_solaris = yes; then |
13610 | LIBGO_IS_SOLARIS_TRUE= | |
13611 | LIBGO_IS_SOLARIS_FALSE='#' | |
13612 | else | |
13613 | LIBGO_IS_SOLARIS_TRUE='#' | |
13614 | LIBGO_IS_SOLARIS_FALSE= | |
13615 | fi | |
13616 | ||
f163907e ILT |
13617 | if test $is_aix = yes; then |
13618 | LIBGO_IS_AIX_TRUE= | |
13619 | LIBGO_IS_AIX_FALSE='#' | |
13620 | else | |
13621 | LIBGO_IS_AIX_TRUE='#' | |
13622 | LIBGO_IS_AIX_FALSE= | |
13623 | fi | |
13624 | ||
22b955cc ILT |
13625 | if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then |
13626 | LIBGO_IS_BSD_TRUE= | |
13627 | LIBGO_IS_BSD_FALSE='#' | |
13628 | else | |
13629 | LIBGO_IS_BSD_TRUE='#' | |
13630 | LIBGO_IS_BSD_FALSE= | |
13631 | fi | |
13632 | ||
7a938933 | 13633 | |
c3b5b97b | 13634 | |
a8464243 | 13635 | |
7134cf28 ILT |
13636 | USE_DEJAGNU=no |
13637 | case ${host} in | |
13638 | *-*-rtems*) USE_DEJAGNU=yes ;; | |
553752e1 | 13639 | ${build}) ;; |
7134cf28 ILT |
13640 | *) USE_DEJAGNU=yes ;; |
13641 | esac | |
13642 | ||
13643 | ||
a8464243 ILT |
13644 | # All known GOARCH values. This is the union of all architectures |
13645 | # supported by the gofrontend and all architectures supported by the | |
13646 | # gc toolchain. | |
13647 | # N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch). | |
b95cd48b | 13648 | ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x sparc sparc64" |
a8464243 ILT |
13649 | |
13650 | # All known GOARCH_FAMILY values. | |
13651 | ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64" | |
13652 | ||
c3b5b97b | 13653 | GOARCH=unknown |
a8464243 | 13654 | GOARCH_FAMILY=unknown |
1a2f01ef | 13655 | GOARCH_BIGENDIAN=false |
a8464243 ILT |
13656 | GOARCH_CACHELINESIZE=64 |
13657 | GOARCH_PHYSPAGESIZE=4096 | |
13658 | GOARCH_PCQUANTUM=1 | |
13659 | GOARCH_INT64ALIGN=8 | |
13660 | GOARCH_HUGEPAGESIZE=0 | |
13661 | GOARCH_MINFRAMESIZE=0 | |
7a938933 | 13662 | case ${host} in |
e59b9171 | 13663 | alpha*-*-*) |
e59b9171 | 13664 | GOARCH=alpha |
a8464243 ILT |
13665 | GOARCH_FAMILY=ALPHA |
13666 | GOARCH_PHYSPAGESIZE=8192 | |
13667 | GOARCH_PCQUANTUM=4 | |
e59b9171 | 13668 | ;; |
71d0d50a | 13669 | aarch64-*-*) |
71d0d50a | 13670 | GOARCH=arm64 |
a8464243 ILT |
13671 | GOARCH_FAMILY=ARM64 |
13672 | GOARCH_CACHELINESIZE=32 | |
13673 | GOARCH_PHYSPAGESIZE=65536 | |
f6c7d678 | 13674 | GOARCH_PCQUANTUM=4 |
a8464243 | 13675 | GOARCH_MINFRAMESIZE=8 |
71d0d50a | 13676 | ;; |
ca11cc98 | 13677 | arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*) |
ca11cc98 | 13678 | GOARCH=arm |
a8464243 ILT |
13679 | GOARCH_FAMILY=ARM |
13680 | GOARCH_CACHELINESIZE=32 | |
13681 | GOARCH_PCQUANTUM=4 | |
a8464243 | 13682 | GOARCH_MINFRAMESIZE=4 |
1a2f01ef ILT |
13683 | case ${host} in |
13684 | arm*b*-*-*) | |
13685 | GOARCH=armbe | |
13686 | GOARCH_BIGENDIAN=true | |
13687 | ;; | |
13688 | esac | |
ca11cc98 | 13689 | ;; |
c3b5b97b ILT |
13690 | i[34567]86-*-* | x86_64-*-*) |
13691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13692 | /* end confdefs.h. */ | |
13693 | ||
13694 | #ifdef __x86_64__ | |
13695 | #error 64-bit | |
13696 | #endif | |
13697 | _ACEOF | |
4a299bf4 | 13698 | if ac_fn_c_try_compile "$LINENO"; then : |
a8464243 ILT |
13699 | GOARCH=386 |
13700 | GOARCH_FAMILY=I386 | |
13701 | GOARCH_INT64ALIGN=4 | |
13702 | GOARCH_HUGEPAGESIZE="1 << 21" | |
13703 | ||
c3b5b97b | 13704 | else |
a8464243 ILT |
13705 | GOARCH=amd64 |
13706 | GOARCH_FAMILY=AMD64 | |
13707 | GOARCH_HUGEPAGESIZE="1 << 21" | |
13708 | ||
c3b5b97b | 13709 | fi |
4a299bf4 | 13710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7a938933 | 13711 | ;; |
4f8e688a | 13712 | ia64-*-*) |
4f8e688a | 13713 | GOARCH=ia64 |
a8464243 | 13714 | GOARCH_FAMILY=IA64 |
319e41dc | 13715 | GOARCH_CACHELINESIZE=128 |
307dde6f | 13716 | GOARCH_PHYSPAGESIZE=65536 |
4f8e688a | 13717 | ;; |
ca11cc98 | 13718 | m68k*-*-*) |
ca11cc98 | 13719 | GOARCH=m68k |
a8464243 | 13720 | GOARCH_FAMILY=M68K |
1a2f01ef | 13721 | GOARCH_BIGENDIAN=true |
a8464243 ILT |
13722 | GOARCH_CACHELINESIZE=16 |
13723 | GOARCH_PCQUANTUM=4 | |
0f366729 | 13724 | GOARCH_INT64ALIGN=2 |
ca11cc98 ILT |
13725 | ;; |
13726 | mips*-*-*) | |
13727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13728 | /* end confdefs.h. */ | |
13729 | ||
85a09210 ILT |
13730 | #if _MIPS_SIM != _ABIO32 |
13731 | #error not o32 | |
13732 | #endif | |
13733 | _ACEOF | |
13734 | if ac_fn_c_try_compile "$LINENO"; then : | |
13735 | mips_abi="o32" | |
13736 | else | |
13737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13738 | /* end confdefs.h. */ | |
13739 | ||
13740 | #if _MIPS_SIM != _ABIN32 | |
13741 | #error not n32 | |
ca11cc98 ILT |
13742 | #endif |
13743 | _ACEOF | |
4a299bf4 | 13744 | if ac_fn_c_try_compile "$LINENO"; then : |
85a09210 | 13745 | mips_abi="n32" |
ca11cc98 | 13746 | else |
85a09210 ILT |
13747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13748 | /* end confdefs.h. */ | |
13749 | ||
13750 | #if _MIPS_SIM != _ABI64 | |
13751 | #error not n64 | |
13752 | #endif | |
13753 | _ACEOF | |
13754 | if ac_fn_c_try_compile "$LINENO"; then : | |
13755 | mips_abi="n64" | |
85a09210 ILT |
13756 | else |
13757 | as_fn_error "unknown MIPS ABI" "$LINENO" 5 | |
13758 | mips_abi="n32" | |
ca11cc98 | 13759 | fi |
4a299bf4 | 13760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
85a09210 ILT |
13761 | fi |
13762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13763 | fi | |
85a09210 ILT |
13764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13765 | case "$mips_abi" in | |
1701a9d8 ILT |
13766 | "o32") GOARCH=mips ;; |
13767 | "n32") GOARCH=mips64p32 ;; | |
13768 | "n64") GOARCH=mips64 ;; | |
85a09210 | 13769 | esac |
a8464243 ILT |
13770 | case "$mips_abi" in |
13771 | "o32" | "n32") | |
13772 | GOARCH_FAMILY=MIPS | |
a8464243 ILT |
13773 | GOARCH_MINFRAMESIZE=4 |
13774 | ;; | |
b95cd48b | 13775 | "n64") |
a8464243 ILT |
13776 | GOARCH_FAMILY=MIPS64 |
13777 | GOARCH_MINFRAMESIZE=8 | |
13778 | ;; | |
13779 | esac | |
13780 | case "${host}" in | |
1701a9d8 | 13781 | mips*el-*-*) |
f30d2091 | 13782 | GOARCH="${GOARCH}le" |
a8464243 ILT |
13783 | ;; |
13784 | *) | |
1a2f01ef | 13785 | GOARCH_BIGENDIAN=true |
a8464243 ILT |
13786 | ;; |
13787 | esac | |
13788 | GOARCH_CACHELINESIZE=32 | |
13789 | GOARCH_PHYSPAGESIZE=16384 | |
13790 | GOARCH_PCQUANTUM=4 | |
ca11cc98 ILT |
13791 | ;; |
13792 | rs6000*-*-* | powerpc*-*-*) | |
13793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13794 | /* end confdefs.h. */ | |
13795 | ||
13796 | #ifdef _ARCH_PPC64 | |
13797 | #error 64-bit | |
13798 | #endif | |
13799 | _ACEOF | |
4a299bf4 | 13800 | if ac_fn_c_try_compile "$LINENO"; then : |
a8464243 ILT |
13801 | GOARCH=ppc |
13802 | GOARCH_FAMILY=PPC | |
1a2f01ef | 13803 | GOARCH_BIGENDIAN=true |
a8464243 | 13804 | |
6f7ccafa | 13805 | else |
a8464243 ILT |
13806 | |
13807 | GOARCH_FAMILY=PPC64 | |
13808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6f7ccafa ILT |
13809 | /* end confdefs.h. */ |
13810 | ||
13811 | #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__) | |
13812 | #error 64be | |
13813 | #endif | |
13814 | _ACEOF | |
13815 | if ac_fn_c_try_compile "$LINENO"; then : | |
a8464243 ILT |
13816 | GOARCH=ppc64le |
13817 | ||
ca11cc98 | 13818 | else |
a8464243 | 13819 | GOARCH=ppc64 |
1a2f01ef | 13820 | GOARCH_BIGENDIAN=true |
a8464243 | 13821 | |
ca11cc98 | 13822 | fi |
6f7ccafa ILT |
13823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13824 | fi | |
4a299bf4 | 13825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a8464243 ILT |
13826 | GOARCH_PHYSPAGESIZE=65536 |
13827 | GOARCH_PCQUANTUM=4 | |
13828 | GOARCH_MINFRAMESIZE=32 | |
7a938933 | 13829 | ;; |
1fec5f52 ILT |
13830 | s390*-*-*) |
13831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13832 | /* end confdefs.h. */ | |
13833 | ||
13834 | #if defined(__s390x__) | |
13835 | #error 64-bit | |
13836 | #endif | |
13837 | _ACEOF | |
13838 | if ac_fn_c_try_compile "$LINENO"; then : | |
a8464243 ILT |
13839 | GOARCH=s390 |
13840 | GOARCH_FAMILY=S390 | |
a8464243 ILT |
13841 | GOARCH_MINFRAMESIZE=4 |
13842 | ||
1fec5f52 | 13843 | else |
a8464243 ILT |
13844 | GOARCH=s390x |
13845 | GOARCH_FAMILY=S390X | |
13846 | GOARCH_MINFRAMESIZE=8 | |
13847 | ||
1fec5f52 ILT |
13848 | fi |
13849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1a2f01ef | 13850 | GOARCH_BIGENDIAN=true |
a8464243 ILT |
13851 | GOARCH_CACHELINESIZE=256 |
13852 | GOARCH_PCQUANTUM=2 | |
1fec5f52 | 13853 | ;; |
f2ee78b8 ILT |
13854 | sparc*-*-*) |
13855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13856 | /* end confdefs.h. */ | |
13857 | ||
13858 | #if defined(__sparcv9) || defined(__arch64__) | |
13859 | #error 64-bit | |
13860 | #endif | |
13861 | _ACEOF | |
4a299bf4 | 13862 | if ac_fn_c_try_compile "$LINENO"; then : |
a8464243 ILT |
13863 | GOARCH=sparc |
13864 | GOARCH_FAMILY=SPARC | |
a8464243 | 13865 | |
f2ee78b8 | 13866 | else |
a8464243 ILT |
13867 | GOARCH=sparc64 |
13868 | GOARCH_FAMILY=SPARC64 | |
13869 | ||
f2ee78b8 | 13870 | fi |
4a299bf4 | 13871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1a2f01ef | 13872 | GOARCH_BIGENDIAN=true |
a8464243 ILT |
13873 | GOARCH_PHYSPAGESIZE=8192 |
13874 | GOARCH_PCQUANTUM=4 | |
f2ee78b8 | 13875 | ;; |
7a938933 | 13876 | esac |
85a09210 | 13877 | |
ca11cc98 | 13878 | |
f98dd1a3 | 13879 | |
ca11cc98 | 13880 | |
ca11cc98 | 13881 | |
6f7ccafa | 13882 | |
1fec5f52 | 13883 | |
1fec5f52 | 13884 | |
f2ee78b8 | 13885 | |
f2ee78b8 | 13886 | |
7a938933 | 13887 | |
c3b5b97b | 13888 | |
de27caac ILT |
13889 | GO_LIBCALL_OS_FILE= |
13890 | GO_LIBCALL_OS_ARCH_FILE= | |
13891 | GO_SYSCALL_OS_FILE= | |
13892 | GO_SYSCALL_OS_ARCH_FILE= | |
204b9fc2 ILT |
13893 | if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then |
13894 | GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go" | |
ca11cc98 | 13895 | fi |
204b9fc2 ILT |
13896 | if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then |
13897 | GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go" | |
de27caac | 13898 | fi |
204b9fc2 ILT |
13899 | if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then |
13900 | GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go" | |
de27caac | 13901 | fi |
204b9fc2 ILT |
13902 | if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then |
13903 | GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go" | |
de27caac ILT |
13904 | fi |
13905 | ||
13906 | ||
13907 | ||
ca11cc98 ILT |
13908 | |
13909 | ||
d48be5df | 13910 | OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
90630d19 | 13911 | case "$target" in |
9f3b1e6c ILT |
13912 | mips-sgi-irix6.5*) |
13913 | # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct | |
13914 | # msghdr in <sys/socket.h>. | |
d48be5df | 13915 | OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500" |
9f3b1e6c | 13916 | ;; |
90630d19 ILT |
13917 | *-*-solaris2.1[01]) |
13918 | # Solaris 10+ needs this so struct msghdr gets the msg_control | |
bbe847a1 | 13919 | # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as |
90630d19 | 13920 | # above doesn't work with C99. |
bbe847a1 | 13921 | OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__" |
90630d19 ILT |
13922 | ;; |
13923 | esac | |
13924 | ||
13925 | ||
c3c54e0f | 13926 | |
08934aed | 13927 | test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS='' |
c3c54e0f | 13928 | |
08934aed ILT |
13929 | # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH |
13930 | # with a different meaning. | |
13931 | case ${target_os} in | |
13932 | solaris2*) | |
13933 | ac_save_CFLAGS="$CFLAGS" | |
13934 | CFLAGS="$CFLAGS -Wa,-nH" | |
c3c54e0f | 13935 | |
08934aed ILT |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5 |
13937 | $as_echo_n "checking for as that supports -Wa,-nH... " >&6; } | |
13938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3c54e0f ILT |
13939 | /* end confdefs.h. */ |
13940 | ||
13941 | int | |
13942 | main () | |
13943 | { | |
13944 | return 0; | |
13945 | ; | |
13946 | return 0; | |
13947 | } | |
13948 | _ACEOF | |
08934aed ILT |
13949 | if ac_fn_c_try_compile "$LINENO"; then : |
13950 | ac_hwcap_flags=yes | |
c3c54e0f | 13951 | else |
08934aed | 13952 | ac_hwcap_flags=no |
c3c54e0f | 13953 | fi |
08934aed ILT |
13954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13955 | if test "$ac_hwcap_flags" = "yes"; then | |
13956 | HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS" | |
13957 | fi | |
13958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5 | |
13959 | $as_echo "$ac_hwcap_flags" >&6; } | |
c3c54e0f | 13960 | |
08934aed ILT |
13961 | CFLAGS="$ac_save_CFLAGS" |
13962 | ;; | |
13963 | esac | |
c3c54e0f ILT |
13964 | |
13965 | ||
c3c54e0f ILT |
13966 | |
13967 | ||
7a938933 ILT |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5 |
13969 | $as_echo_n "checking whether -fsplit-stack is supported... " >&6; } | |
f2ee78b8 | 13970 | if test "${libgo_cv_c_split_stack_supported+set}" = set; then : |
7a938933 ILT |
13971 | $as_echo_n "(cached) " >&6 |
13972 | else | |
13973 | CFLAGS_hold=$CFLAGS | |
13974 | CFLAGS="$CFLAGS -fsplit-stack" | |
13975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13976 | /* end confdefs.h. */ | |
13977 | int i; | |
13978 | _ACEOF | |
13979 | if ac_fn_c_try_compile "$LINENO"; then : | |
f2ee78b8 | 13980 | libgo_cv_c_split_stack_supported=yes |
7a938933 | 13981 | else |
f2ee78b8 | 13982 | libgo_cv_c_split_stack_supported=no |
7a938933 ILT |
13983 | fi |
13984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13985 | CFLAGS=$CFLAGS_hold | |
13986 | fi | |
f2ee78b8 ILT |
13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5 |
13988 | $as_echo "$libgo_cv_c_split_stack_supported" >&6; } | |
c33c18cd ILT |
13989 | |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5 | |
13991 | $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; } | |
13992 | if test "${libgo_cv_c_linker_split_non_split+set}" = set; then : | |
13993 | $as_echo_n "(cached) " >&6 | |
13994 | else | |
13995 | cat > conftest1.c << EOF | |
13996 | extern void f(); | |
13997 | int main() { f(); return 0; } | |
13998 | EOF | |
13999 | cat > conftest2.c << EOF | |
14000 | void f() {} | |
14001 | EOF | |
207f844e ILT |
14002 | $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1 |
14003 | $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1 | |
14004 | if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then | |
c33c18cd ILT |
14005 | libgo_cv_c_linker_split_non_split=yes |
14006 | else | |
14007 | libgo_cv_c_linker_split_non_split=no | |
14008 | fi | |
14009 | rm -f conftest1.* conftest2.* conftest | |
14010 | fi | |
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5 | |
14012 | $as_echo "$libgo_cv_c_linker_split_non_split" >&6; } | |
14013 | ||
14014 | if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then | |
7a938933 ILT |
14015 | SPLIT_STACK=-fsplit-stack |
14016 | ||
14017 | $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h | |
14018 | ||
14019 | else | |
14020 | SPLIT_STACK= | |
14021 | fi | |
14022 | ||
c33c18cd | 14023 | if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then |
7a938933 ILT |
14024 | USING_SPLIT_STACK_TRUE= |
14025 | USING_SPLIT_STACK_FALSE='#' | |
14026 | else | |
14027 | USING_SPLIT_STACK_TRUE='#' | |
14028 | USING_SPLIT_STACK_FALSE= | |
14029 | fi | |
14030 | ||
14031 | ||
a2bf11d1 ILT |
14032 | if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then |
14033 | GO_SPLIT_STACK=-fno-split-stack | |
14034 | else | |
14035 | GO_SPLIT_STACK= | |
14036 | fi | |
14037 | ||
14038 | ||
7a938933 ILT |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5 |
14040 | $as_echo_n "checking whether linker supports split stack... " >&6; } | |
f2ee78b8 | 14041 | if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then : |
7a938933 ILT |
14042 | $as_echo_n "(cached) " >&6 |
14043 | else | |
f2ee78b8 | 14044 | libgo_cv_c_linker_supports_split_stack=no |
f56c5dd1 | 14045 | if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then |
f2ee78b8 | 14046 | libgo_cv_c_linker_supports_split_stack=yes |
7a938933 ILT |
14047 | fi |
14048 | fi | |
f2ee78b8 ILT |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5 |
14050 | $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; } | |
14051 | if test "$libgo_cv_c_linker_supports_split_stack" = yes; then | |
7a938933 ILT |
14052 | |
14053 | $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h | |
14054 | ||
14055 | fi | |
14056 | ||
4c46b5f0 ILT |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5 |
14058 | $as_echo_n "checking whether compiler is llgo... " >&6; } | |
14059 | if test "${libgo_cv_c_goc_is_llgo+set}" = set; then : | |
14060 | $as_echo_n "(cached) " >&6 | |
14061 | else | |
14062 | libgo_cv_c_goc_is_llgo=no | |
14063 | if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then | |
14064 | libgo_cv_c_goc_is_llgo=yes | |
14065 | fi | |
14066 | fi | |
14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5 | |
14068 | $as_echo "$libgo_cv_c_goc_is_llgo" >&6; } | |
14069 | if test "$libgo_cv_c_goc_is_llgo" = yes; then | |
14070 | GOC_IS_LLGO_TRUE= | |
14071 | GOC_IS_LLGO_FALSE='#' | |
14072 | else | |
14073 | GOC_IS_LLGO_TRUE='#' | |
14074 | GOC_IS_LLGO_FALSE= | |
14075 | fi | |
14076 | ||
14077 | ||
505b439a ILT |
14078 | MATH_LIBS= |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 | |
14080 | $as_echo_n "checking for sqrt in -lm... " >&6; } | |
14081 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : | |
14082 | $as_echo_n "(cached) " >&6 | |
14083 | else | |
14084 | ac_check_lib_save_LIBS=$LIBS | |
14085 | LIBS="-lm $LIBS" | |
14086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14087 | /* end confdefs.h. */ | |
14088 | ||
14089 | /* Override any GCC internal prototype to avoid an error. | |
14090 | Use char because int might match the return type of a GCC | |
14091 | builtin and then its argument prototype would still apply. */ | |
14092 | #ifdef __cplusplus | |
14093 | extern "C" | |
14094 | #endif | |
14095 | char sqrt (); | |
14096 | int | |
14097 | main () | |
14098 | { | |
14099 | return sqrt (); | |
14100 | ; | |
14101 | return 0; | |
14102 | } | |
14103 | _ACEOF | |
14104 | if ac_fn_c_try_link "$LINENO"; then : | |
14105 | ac_cv_lib_m_sqrt=yes | |
14106 | else | |
14107 | ac_cv_lib_m_sqrt=no | |
14108 | fi | |
14109 | rm -f core conftest.err conftest.$ac_objext \ | |
14110 | conftest$ac_exeext conftest.$ac_ext | |
14111 | LIBS=$ac_check_lib_save_LIBS | |
14112 | fi | |
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 | |
14114 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | |
14115 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : | |
14116 | MATH_LIBS=-lm | |
14117 | fi | |
14118 | ||
14119 | ||
14120 | ||
f2ee78b8 ILT |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5 |
14122 | $as_echo_n "checking for socket libraries... " >&6; } | |
14123 | if test "${libgo_cv_lib_sockets+set}" = set; then : | |
14124 | $as_echo_n "(cached) " >&6 | |
14125 | else | |
14126 | libgo_cv_lib_sockets= | |
14127 | libgo_check_both=no | |
14128 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | |
14129 | if test "x$ac_cv_func_connect" = x""yes; then : | |
14130 | libgo_check_socket=no | |
14131 | else | |
14132 | libgo_check_socket=yes | |
14133 | fi | |
14134 | ||
14135 | if test "$libgo_check_socket" = "yes"; then | |
14136 | unset ac_cv_func_connect | |
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 | |
14138 | $as_echo_n "checking for main in -lsocket... " >&6; } | |
14139 | if test "${ac_cv_lib_socket_main+set}" = set; then : | |
14140 | $as_echo_n "(cached) " >&6 | |
14141 | else | |
14142 | ac_check_lib_save_LIBS=$LIBS | |
14143 | LIBS="-lsocket $LIBS" | |
14144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14145 | /* end confdefs.h. */ | |
14146 | ||
14147 | ||
14148 | int | |
14149 | main () | |
14150 | { | |
14151 | return main (); | |
14152 | ; | |
14153 | return 0; | |
14154 | } | |
14155 | _ACEOF | |
14156 | if ac_fn_c_try_link "$LINENO"; then : | |
14157 | ac_cv_lib_socket_main=yes | |
14158 | else | |
14159 | ac_cv_lib_socket_main=no | |
14160 | fi | |
14161 | rm -f core conftest.err conftest.$ac_objext \ | |
14162 | conftest$ac_exeext conftest.$ac_ext | |
14163 | LIBS=$ac_check_lib_save_LIBS | |
14164 | fi | |
14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 | |
14166 | $as_echo "$ac_cv_lib_socket_main" >&6; } | |
14167 | if test "x$ac_cv_lib_socket_main" = x""yes; then : | |
14168 | libgo_cv_lib_sockets="-lsocket" | |
14169 | else | |
14170 | libgo_check_both=yes | |
14171 | fi | |
14172 | ||
14173 | fi | |
14174 | if test "$libgo_check_both" = "yes"; then | |
14175 | libgo_old_libs=$LIBS | |
14176 | LIBS="$LIBS -lsocket -lnsl" | |
14177 | unset ac_cv_func_accept | |
14178 | ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" | |
14179 | if test "x$ac_cv_func_accept" = x""yes; then : | |
14180 | libgo_check_nsl=no | |
14181 | libgo_cv_lib_sockets="-lsocket -lnsl" | |
14182 | fi | |
14183 | ||
14184 | unset ac_cv_func_accept | |
14185 | LIBS=$libgo_old_libs | |
14186 | fi | |
14187 | unset ac_cv_func_gethostbyname | |
14188 | libgo_old_libs="$LIBS" | |
14189 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | |
14190 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | |
14191 | ||
14192 | else | |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 | |
14194 | $as_echo_n "checking for main in -lnsl... " >&6; } | |
14195 | if test "${ac_cv_lib_nsl_main+set}" = set; then : | |
14196 | $as_echo_n "(cached) " >&6 | |
14197 | else | |
14198 | ac_check_lib_save_LIBS=$LIBS | |
14199 | LIBS="-lnsl $LIBS" | |
14200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14201 | /* end confdefs.h. */ | |
14202 | ||
14203 | ||
14204 | int | |
14205 | main () | |
14206 | { | |
14207 | return main (); | |
14208 | ; | |
14209 | return 0; | |
14210 | } | |
14211 | _ACEOF | |
14212 | if ac_fn_c_try_link "$LINENO"; then : | |
14213 | ac_cv_lib_nsl_main=yes | |
14214 | else | |
14215 | ac_cv_lib_nsl_main=no | |
14216 | fi | |
14217 | rm -f core conftest.err conftest.$ac_objext \ | |
14218 | conftest$ac_exeext conftest.$ac_ext | |
14219 | LIBS=$ac_check_lib_save_LIBS | |
14220 | fi | |
14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 | |
14222 | $as_echo "$ac_cv_lib_nsl_main" >&6; } | |
14223 | if test "x$ac_cv_lib_nsl_main" = x""yes; then : | |
14224 | libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl" | |
14225 | fi | |
14226 | ||
14227 | fi | |
14228 | ||
14229 | unset ac_cv_func_gethostbyname | |
88cf4de8 ILT |
14230 | ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" |
14231 | if test "x$ac_cv_func_sendfile" = x""yes; then : | |
14232 | ||
14233 | else | |
14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5 | |
14235 | $as_echo_n "checking for main in -lsendfile... " >&6; } | |
14236 | if test "${ac_cv_lib_sendfile_main+set}" = set; then : | |
14237 | $as_echo_n "(cached) " >&6 | |
14238 | else | |
14239 | ac_check_lib_save_LIBS=$LIBS | |
14240 | LIBS="-lsendfile $LIBS" | |
14241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14242 | /* end confdefs.h. */ | |
14243 | ||
14244 | ||
14245 | int | |
14246 | main () | |
14247 | { | |
14248 | return main (); | |
14249 | ; | |
14250 | return 0; | |
14251 | } | |
14252 | _ACEOF | |
14253 | if ac_fn_c_try_link "$LINENO"; then : | |
14254 | ac_cv_lib_sendfile_main=yes | |
14255 | else | |
14256 | ac_cv_lib_sendfile_main=no | |
14257 | fi | |
14258 | rm -f core conftest.err conftest.$ac_objext \ | |
14259 | conftest$ac_exeext conftest.$ac_ext | |
14260 | LIBS=$ac_check_lib_save_LIBS | |
14261 | fi | |
14262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5 | |
14263 | $as_echo "$ac_cv_lib_sendfile_main" >&6; } | |
14264 | if test "x$ac_cv_lib_sendfile_main" = x""yes; then : | |
14265 | libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile" | |
14266 | fi | |
14267 | ||
14268 | fi | |
14269 | ||
f2ee78b8 ILT |
14270 | LIBS=$libgo_old_libs |
14271 | ||
14272 | fi | |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5 | |
14274 | $as_echo "$libgo_cv_lib_sockets" >&6; } | |
14275 | NET_LIBS="$libgo_cv_lib_sockets" | |
14276 | ||
14277 | ||
6c94a9fa ILT |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5 |
14279 | $as_echo_n "checking whether -pthread is supported... " >&6; } | |
f2ee78b8 | 14280 | if test "${libgo_cv_lib_pthread+set}" = set; then : |
6c94a9fa ILT |
14281 | $as_echo_n "(cached) " >&6 |
14282 | else | |
14283 | CFLAGS_hold=$CFLAGS | |
14284 | CFLAGS="$CFLAGS -pthread" | |
14285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14286 | /* end confdefs.h. */ | |
14287 | int i; | |
14288 | _ACEOF | |
14289 | if ac_fn_c_try_compile "$LINENO"; then : | |
f2ee78b8 | 14290 | libgo_cv_lib_pthread=yes |
6c94a9fa | 14291 | else |
f2ee78b8 | 14292 | libgo_cv_lib_pthread=no |
6c94a9fa ILT |
14293 | fi |
14294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14295 | CFLAGS=$CFLAGS_hold | |
14296 | fi | |
f2ee78b8 ILT |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5 |
14298 | $as_echo "$libgo_cv_lib_pthread" >&6; } | |
6c94a9fa | 14299 | PTHREAD_CFLAGS= |
f2ee78b8 | 14300 | if test "$libgo_cv_lib_pthread" = yes; then |
6c94a9fa ILT |
14301 | PTHREAD_CFLAGS=-pthread |
14302 | fi | |
14303 | ||
14304 | ||
14305 | PTHREAD_LIBS= | |
14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 | |
14307 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } | |
14308 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : | |
14309 | $as_echo_n "(cached) " >&6 | |
14310 | else | |
14311 | ac_check_lib_save_LIBS=$LIBS | |
14312 | LIBS="-lpthread $LIBS" | |
14313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14314 | /* end confdefs.h. */ | |
14315 | ||
14316 | /* Override any GCC internal prototype to avoid an error. | |
14317 | Use char because int might match the return type of a GCC | |
14318 | builtin and then its argument prototype would still apply. */ | |
14319 | #ifdef __cplusplus | |
14320 | extern "C" | |
14321 | #endif | |
14322 | char pthread_create (); | |
14323 | int | |
14324 | main () | |
14325 | { | |
14326 | return pthread_create (); | |
14327 | ; | |
14328 | return 0; | |
14329 | } | |
14330 | _ACEOF | |
14331 | if ac_fn_c_try_link "$LINENO"; then : | |
14332 | ac_cv_lib_pthread_pthread_create=yes | |
14333 | else | |
14334 | ac_cv_lib_pthread_pthread_create=no | |
14335 | fi | |
14336 | rm -f core conftest.err conftest.$ac_objext \ | |
14337 | conftest$ac_exeext conftest.$ac_ext | |
14338 | LIBS=$ac_check_lib_save_LIBS | |
14339 | fi | |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 | |
14341 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } | |
14342 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : | |
14343 | PTHREAD_LIBS=-lpthread | |
14344 | fi | |
14345 | ||
14346 | ||
14347 | ||
ed4ebabc ILT |
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 |
14349 | $as_echo_n "checking for library containing sched_yield... " >&6; } | |
14350 | if test "${ac_cv_search_sched_yield+set}" = set; then : | |
14351 | $as_echo_n "(cached) " >&6 | |
14352 | else | |
14353 | ac_func_search_save_LIBS=$LIBS | |
14354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14355 | /* end confdefs.h. */ | |
14356 | ||
14357 | /* Override any GCC internal prototype to avoid an error. | |
14358 | Use char because int might match the return type of a GCC | |
14359 | builtin and then its argument prototype would still apply. */ | |
14360 | #ifdef __cplusplus | |
14361 | extern "C" | |
14362 | #endif | |
14363 | char sched_yield (); | |
14364 | int | |
14365 | main () | |
14366 | { | |
14367 | return sched_yield (); | |
14368 | ; | |
14369 | return 0; | |
14370 | } | |
14371 | _ACEOF | |
14372 | for ac_lib in '' rt; do | |
14373 | if test -z "$ac_lib"; then | |
14374 | ac_res="none required" | |
14375 | else | |
14376 | ac_res=-l$ac_lib | |
14377 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14378 | fi | |
14379 | if ac_fn_c_try_link "$LINENO"; then : | |
14380 | ac_cv_search_sched_yield=$ac_res | |
14381 | fi | |
14382 | rm -f core conftest.err conftest.$ac_objext \ | |
14383 | conftest$ac_exeext | |
14384 | if test "${ac_cv_search_sched_yield+set}" = set; then : | |
14385 | break | |
14386 | fi | |
14387 | done | |
14388 | if test "${ac_cv_search_sched_yield+set}" = set; then : | |
14389 | ||
14390 | else | |
14391 | ac_cv_search_sched_yield=no | |
14392 | fi | |
14393 | rm conftest.$ac_ext | |
14394 | LIBS=$ac_func_search_save_LIBS | |
14395 | fi | |
14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 | |
14397 | $as_echo "$ac_cv_search_sched_yield" >&6; } | |
14398 | ac_res=$ac_cv_search_sched_yield | |
14399 | if test "$ac_res" != no; then : | |
14400 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14401 | ||
ae135907 ILT |
14402 | fi |
14403 | ||
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 | |
14405 | $as_echo_n "checking for library containing nanosleep... " >&6; } | |
14406 | if test "${ac_cv_search_nanosleep+set}" = set; then : | |
14407 | $as_echo_n "(cached) " >&6 | |
14408 | else | |
14409 | ac_func_search_save_LIBS=$LIBS | |
14410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14411 | /* end confdefs.h. */ | |
14412 | ||
14413 | /* Override any GCC internal prototype to avoid an error. | |
14414 | Use char because int might match the return type of a GCC | |
14415 | builtin and then its argument prototype would still apply. */ | |
14416 | #ifdef __cplusplus | |
14417 | extern "C" | |
14418 | #endif | |
14419 | char nanosleep (); | |
14420 | int | |
14421 | main () | |
14422 | { | |
14423 | return nanosleep (); | |
14424 | ; | |
14425 | return 0; | |
14426 | } | |
14427 | _ACEOF | |
14428 | for ac_lib in '' rt; do | |
14429 | if test -z "$ac_lib"; then | |
14430 | ac_res="none required" | |
14431 | else | |
14432 | ac_res=-l$ac_lib | |
14433 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14434 | fi | |
14435 | if ac_fn_c_try_link "$LINENO"; then : | |
14436 | ac_cv_search_nanosleep=$ac_res | |
14437 | fi | |
14438 | rm -f core conftest.err conftest.$ac_objext \ | |
14439 | conftest$ac_exeext | |
14440 | if test "${ac_cv_search_nanosleep+set}" = set; then : | |
14441 | break | |
14442 | fi | |
14443 | done | |
14444 | if test "${ac_cv_search_nanosleep+set}" = set; then : | |
14445 | ||
14446 | else | |
14447 | ac_cv_search_nanosleep=no | |
14448 | fi | |
14449 | rm conftest.$ac_ext | |
14450 | LIBS=$ac_func_search_save_LIBS | |
14451 | fi | |
14452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | |
14453 | $as_echo "$ac_cv_search_nanosleep" >&6; } | |
14454 | ac_res=$ac_cv_search_nanosleep | |
14455 | if test "$ac_res" != no; then : | |
14456 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14457 | ||
bbbe8b33 ILT |
14458 | fi |
14459 | ||
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 | |
14461 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | |
14462 | if test "${ac_cv_search_clock_gettime+set}" = set; then : | |
14463 | $as_echo_n "(cached) " >&6 | |
14464 | else | |
14465 | ac_func_search_save_LIBS=$LIBS | |
14466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14467 | /* end confdefs.h. */ | |
14468 | ||
14469 | /* Override any GCC internal prototype to avoid an error. | |
14470 | Use char because int might match the return type of a GCC | |
14471 | builtin and then its argument prototype would still apply. */ | |
14472 | #ifdef __cplusplus | |
14473 | extern "C" | |
14474 | #endif | |
14475 | char clock_gettime (); | |
14476 | int | |
14477 | main () | |
14478 | { | |
14479 | return clock_gettime (); | |
14480 | ; | |
14481 | return 0; | |
14482 | } | |
14483 | _ACEOF | |
14484 | for ac_lib in '' rt; do | |
14485 | if test -z "$ac_lib"; then | |
14486 | ac_res="none required" | |
14487 | else | |
14488 | ac_res=-l$ac_lib | |
14489 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14490 | fi | |
14491 | if ac_fn_c_try_link "$LINENO"; then : | |
14492 | ac_cv_search_clock_gettime=$ac_res | |
14493 | fi | |
14494 | rm -f core conftest.err conftest.$ac_objext \ | |
14495 | conftest$ac_exeext | |
14496 | if test "${ac_cv_search_clock_gettime+set}" = set; then : | |
14497 | break | |
14498 | fi | |
14499 | done | |
14500 | if test "${ac_cv_search_clock_gettime+set}" = set; then : | |
14501 | ||
14502 | else | |
14503 | ac_cv_search_clock_gettime=no | |
14504 | fi | |
14505 | rm conftest.$ac_ext | |
14506 | LIBS=$ac_func_search_save_LIBS | |
14507 | fi | |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 | |
14509 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | |
14510 | ac_res=$ac_cv_search_clock_gettime | |
14511 | if test "$ac_res" != no; then : | |
14512 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14513 | ||
ed4ebabc ILT |
14514 | fi |
14515 | ||
14516 | ||
7a938933 ILT |
14517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
14518 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
14519 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
14520 | $as_echo_n "(cached) " >&6 | |
14521 | else | |
14522 | ac_cv_c_bigendian=unknown | |
14523 | # See if we're dealing with a universal compiler. | |
14524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14525 | /* end confdefs.h. */ | |
14526 | #ifndef __APPLE_CC__ | |
14527 | not a universal capable compiler | |
14528 | #endif | |
14529 | typedef int dummy; | |
14530 | ||
14531 | _ACEOF | |
14532 | if ac_fn_c_try_compile "$LINENO"; then : | |
14533 | ||
14534 | # Check for potential -arch flags. It is not universal unless | |
14535 | # there are at least two -arch flags with different values. | |
14536 | ac_arch= | |
14537 | ac_prev= | |
14538 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
14539 | if test -n "$ac_prev"; then | |
14540 | case $ac_word in | |
14541 | i?86 | x86_64 | ppc | ppc64) | |
14542 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
14543 | ac_arch=$ac_word | |
14544 | else | |
14545 | ac_cv_c_bigendian=universal | |
14546 | break | |
14547 | fi | |
14548 | ;; | |
14549 | esac | |
14550 | ac_prev= | |
14551 | elif test "x$ac_word" = "x-arch"; then | |
14552 | ac_prev=arch | |
14553 | fi | |
14554 | done | |
14555 | fi | |
14556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14557 | if test $ac_cv_c_bigendian = unknown; then | |
14558 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14560 | /* end confdefs.h. */ | |
14561 | #include <sys/types.h> | |
14562 | #include <sys/param.h> | |
14563 | ||
14564 | int | |
14565 | main () | |
14566 | { | |
14567 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
14568 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14569 | && LITTLE_ENDIAN) | |
14570 | bogus endian macros | |
14571 | #endif | |
14572 | ||
14573 | ; | |
14574 | return 0; | |
14575 | } | |
14576 | _ACEOF | |
14577 | if ac_fn_c_try_compile "$LINENO"; then : | |
14578 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14580 | /* end confdefs.h. */ | |
14581 | #include <sys/types.h> | |
14582 | #include <sys/param.h> | |
14583 | ||
14584 | int | |
14585 | main () | |
14586 | { | |
14587 | #if BYTE_ORDER != BIG_ENDIAN | |
14588 | not big endian | |
14589 | #endif | |
14590 | ||
14591 | ; | |
14592 | return 0; | |
14593 | } | |
14594 | _ACEOF | |
14595 | if ac_fn_c_try_compile "$LINENO"; then : | |
14596 | ac_cv_c_bigendian=yes | |
14597 | else | |
14598 | ac_cv_c_bigendian=no | |
14599 | fi | |
14600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14601 | fi | |
14602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14603 | fi | |
14604 | if test $ac_cv_c_bigendian = unknown; then | |
14605 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
14606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14607 | /* end confdefs.h. */ | |
14608 | #include <limits.h> | |
14609 | ||
14610 | int | |
14611 | main () | |
14612 | { | |
14613 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
14614 | bogus endian macros | |
14615 | #endif | |
14616 | ||
14617 | ; | |
14618 | return 0; | |
14619 | } | |
14620 | _ACEOF | |
14621 | if ac_fn_c_try_compile "$LINENO"; then : | |
14622 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
14623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14624 | /* end confdefs.h. */ | |
14625 | #include <limits.h> | |
14626 | ||
14627 | int | |
14628 | main () | |
14629 | { | |
14630 | #ifndef _BIG_ENDIAN | |
14631 | not big endian | |
14632 | #endif | |
14633 | ||
14634 | ; | |
14635 | return 0; | |
14636 | } | |
14637 | _ACEOF | |
14638 | if ac_fn_c_try_compile "$LINENO"; then : | |
14639 | ac_cv_c_bigendian=yes | |
14640 | else | |
14641 | ac_cv_c_bigendian=no | |
14642 | fi | |
14643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14644 | fi | |
14645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14646 | fi | |
14647 | if test $ac_cv_c_bigendian = unknown; then | |
14648 | # Compile a test program. | |
14649 | if test "$cross_compiling" = yes; then : | |
14650 | # Try to guess by grepping values from an object file. | |
14651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14652 | /* end confdefs.h. */ | |
14653 | short int ascii_mm[] = | |
14654 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
14655 | short int ascii_ii[] = | |
14656 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14657 | int use_ascii (int i) { | |
14658 | return ascii_mm[i] + ascii_ii[i]; | |
14659 | } | |
14660 | short int ebcdic_ii[] = | |
14661 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14662 | short int ebcdic_mm[] = | |
14663 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14664 | int use_ebcdic (int i) { | |
14665 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
14666 | } | |
14667 | extern int foo; | |
14668 | ||
14669 | int | |
14670 | main () | |
14671 | { | |
14672 | return use_ascii (foo) == use_ebcdic (foo); | |
14673 | ; | |
14674 | return 0; | |
14675 | } | |
14676 | _ACEOF | |
14677 | if ac_fn_c_try_compile "$LINENO"; then : | |
14678 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
14679 | ac_cv_c_bigendian=yes | |
14680 | fi | |
14681 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14682 | if test "$ac_cv_c_bigendian" = unknown; then | |
14683 | ac_cv_c_bigendian=no | |
14684 | else | |
14685 | # finding both strings is unlikely to happen, but who knows? | |
14686 | ac_cv_c_bigendian=unknown | |
14687 | fi | |
14688 | fi | |
14689 | fi | |
14690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14691 | else | |
14692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14693 | /* end confdefs.h. */ | |
14694 | $ac_includes_default | |
14695 | int | |
14696 | main () | |
14697 | { | |
14698 | ||
14699 | /* Are we little or big endian? From Harbison&Steele. */ | |
14700 | union | |
14701 | { | |
14702 | long int l; | |
14703 | char c[sizeof (long int)]; | |
14704 | } u; | |
14705 | u.l = 1; | |
14706 | return u.c[sizeof (long int) - 1] == 1; | |
14707 | ||
14708 | ; | |
14709 | return 0; | |
14710 | } | |
14711 | _ACEOF | |
14712 | if ac_fn_c_try_run "$LINENO"; then : | |
14713 | ac_cv_c_bigendian=no | |
14714 | else | |
14715 | ac_cv_c_bigendian=yes | |
14716 | fi | |
14717 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14718 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14719 | fi | |
14720 | ||
14721 | fi | |
14722 | fi | |
14723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
14724 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
14725 | case $ac_cv_c_bigendian in #( | |
14726 | yes) | |
14727 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
14728 | ;; #( | |
14729 | no) | |
14730 | ;; #( | |
14731 | universal) | |
14732 | ||
14733 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14734 | ||
14735 | ;; #( | |
14736 | *) | |
14737 | as_fn_error "unknown endianness | |
14738 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
14739 | esac | |
14740 | ||
14741 | ||
54f0deb0 ILT |
14742 | |
14743 | ||
14744 | # Check whether --with-system-libunwind was given. | |
14745 | if test "${with_system_libunwind+set}" = set; then : | |
14746 | withval=$with_system_libunwind; | |
14747 | fi | |
14748 | ||
14749 | # If system-libunwind was not specifically set, pick a default setting. | |
14750 | if test x$with_system_libunwind = x; then | |
14751 | case ${target} in | |
14752 | ia64-*-hpux*) with_system_libunwind=yes ;; | |
14753 | *) with_system_libunwind=no ;; | |
14754 | esac | |
14755 | fi | |
14756 | # Based on system-libunwind and target, do we have ipinfo? | |
14757 | if test x$with_system_libunwind = xyes; then | |
14758 | case ${target} in | |
14759 | ia64-*-*) have_unwind_getipinfo=no ;; | |
14760 | *) have_unwind_getipinfo=yes ;; | |
14761 | esac | |
14762 | else | |
14763 | # Darwin before version 9 does not have _Unwind_GetIPInfo. | |
14764 | ||
14765 | case ${target} in | |
14766 | *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; | |
14767 | *) have_unwind_getipinfo=yes ;; | |
14768 | esac | |
14769 | ||
14770 | fi | |
14771 | ||
14772 | if test x$have_unwind_getipinfo = xyes; then | |
14773 | ||
14774 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
14775 | ||
14776 | fi | |
14777 | ||
7a938933 | 14778 | |
6222bddc | 14779 | for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h |
7a938933 ILT |
14780 | do : |
14781 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14782 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14783 | eval as_val=\$$as_ac_Header | |
14784 | if test "x$as_val" = x""yes; then : | |
14785 | cat >>confdefs.h <<_ACEOF | |
14786 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14787 | _ACEOF | |
14788 | ||
14789 | fi | |
14790 | ||
14791 | done | |
14792 | ||
adb0401d | 14793 | |
6222bddc ILT |
14794 | for ac_header in netinet/icmp6.h |
14795 | do : | |
14796 | ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h> | |
14797 | ||
14798 | " | |
14799 | if test "x$ac_cv_header_netinet_icmp6_h" = x""yes; then : | |
14800 | cat >>confdefs.h <<_ACEOF | |
14801 | #define HAVE_NETINET_ICMP6_H 1 | |
14802 | _ACEOF | |
14803 | ||
14804 | fi | |
14805 | ||
14806 | done | |
14807 | ||
14808 | ||
1410c222 | 14809 | for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h |
adb0401d ILT |
14810 | do : |
14811 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14812 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H | |
14813 | #include <sys/socket.h> | |
14814 | #endif | |
14815 | ||
14816 | " | |
14817 | eval as_val=\$$as_ac_Header | |
14818 | if test "x$as_val" = x""yes; then : | |
14819 | cat >>confdefs.h <<_ACEOF | |
14820 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14821 | _ACEOF | |
14822 | ||
14823 | fi | |
14824 | ||
14825 | done | |
14826 | ||
14827 | ||
2aeaf0fb ILT |
14828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5 |
14829 | $as_echo_n "checking whether <ustat.h> can be used... " >&6; } | |
14830 | if test "${libgo_cv_c_ustat_h+set}" = set; then : | |
14831 | $as_echo_n "(cached) " >&6 | |
14832 | else | |
dbe1e4a5 ILT |
14833 | CFLAGS_hold=$CFLAGS |
14834 | CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS" | |
14835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2aeaf0fb ILT |
14836 | /* end confdefs.h. */ |
14837 | ||
14838 | #include <sys/types.h> | |
14839 | #ifdef HAVE_LINUX_FILTER_H | |
14840 | #include <linux/filter.h> | |
14841 | #endif | |
14842 | #include <ustat.h> | |
14843 | ||
14844 | _ACEOF | |
14845 | if ac_fn_c_try_compile "$LINENO"; then : | |
14846 | libgo_cv_c_ustat_h=yes | |
14847 | else | |
14848 | libgo_cv_c_ustat_h=no | |
14849 | fi | |
14850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dbe1e4a5 | 14851 | CFLAGS=$CFLAGS_hold |
2aeaf0fb ILT |
14852 | fi |
14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5 | |
14854 | $as_echo "$libgo_cv_c_ustat_h" >&6; } | |
14855 | if test $libgo_cv_c_ustat_h = yes; then | |
14856 | ||
14857 | $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h | |
14858 | ||
14859 | fi | |
14860 | ||
7a938933 ILT |
14861 | if test "$ac_cv_header_sys_mman_h" = yes; then |
14862 | HAVE_SYS_MMAN_H_TRUE= | |
14863 | HAVE_SYS_MMAN_H_FALSE='#' | |
14864 | else | |
14865 | HAVE_SYS_MMAN_H_TRUE='#' | |
14866 | HAVE_SYS_MMAN_H_FALSE= | |
14867 | fi | |
14868 | ||
8955c80a | 14869 | |
f8d9fa9e | 14870 | for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr |
7a938933 ILT |
14871 | do : |
14872 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14873 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
14874 | eval as_val=\$$as_ac_var | |
14875 | if test "x$as_val" = x""yes; then : | |
14876 | cat >>confdefs.h <<_ACEOF | |
14877 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14878 | _ACEOF | |
14879 | ||
14880 | fi | |
14881 | done | |
14882 | ||
8955c80a ILT |
14883 | if test "$ac_cv_func_strerror_r" = yes; then |
14884 | HAVE_STRERROR_R_TRUE= | |
14885 | HAVE_STRERROR_R_FALSE='#' | |
14886 | else | |
14887 | HAVE_STRERROR_R_TRUE='#' | |
14888 | HAVE_STRERROR_R_FALSE= | |
14889 | fi | |
14890 | ||
0b3189e7 ILT |
14891 | if test "$ac_cv_func_wait4" = yes; then |
14892 | HAVE_WAIT4_TRUE= | |
14893 | HAVE_WAIT4_FALSE='#' | |
14894 | else | |
14895 | HAVE_WAIT4_TRUE='#' | |
14896 | HAVE_WAIT4_FALSE= | |
14897 | fi | |
14898 | ||
7a938933 | 14899 | |
f163907e | 14900 | for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice syscall tee unlinkat unshare utimensat |
e02ed81e ILT |
14901 | do : |
14902 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14903 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
14904 | eval as_val=\$$as_ac_var | |
14905 | if test "x$as_val" = x""yes; then : | |
14906 | cat >>confdefs.h <<_ACEOF | |
14907 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14908 | _ACEOF | |
14909 | ||
14910 | fi | |
14911 | done | |
14912 | ||
5d46bf05 ILT |
14913 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
14914 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
14915 | ||
14916 | else | |
14917 | ||
14918 | cat >>confdefs.h <<_ACEOF | |
14919 | #define off_t long int | |
14920 | _ACEOF | |
14921 | ||
14922 | fi | |
14923 | ||
e02ed81e ILT |
14924 | ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default" |
14925 | if test "x$ac_cv_type_loff_t" = x""yes; then : | |
14926 | ||
14927 | cat >>confdefs.h <<_ACEOF | |
14928 | #define HAVE_LOFF_T 1 | |
14929 | _ACEOF | |
14930 | ||
14931 | ||
14932 | fi | |
14933 | ||
14934 | ||
324612b3 ILT |
14935 | LIBS_hold="$LIBS" |
14936 | LIBS="$LIBS -lm" | |
14937 | for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl | |
14938 | do : | |
14939 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14940 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
14941 | eval as_val=\$$as_ac_var | |
14942 | if test "x$as_val" = x""yes; then : | |
14943 | cat >>confdefs.h <<_ACEOF | |
14944 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14945 | _ACEOF | |
14946 | ||
14947 | fi | |
14948 | done | |
14949 | ||
14950 | LIBS="$LIBS_hold" | |
14951 | ||
08ee945e ILT |
14952 | CFLAGS_hold="$CFLAGS" |
14953 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
14954 | LIBS_hold="$LIBS" | |
14955 | LIBS="$LIBS $PTHREAD_LIBS" | |
14956 | for ac_func in sem_timedwait | |
14957 | do : | |
14958 | ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" | |
14959 | if test "x$ac_cv_func_sem_timedwait" = x""yes; then : | |
14960 | cat >>confdefs.h <<_ACEOF | |
14961 | #define HAVE_SEM_TIMEDWAIT 1 | |
14962 | _ACEOF | |
14963 | ||
14964 | fi | |
14965 | done | |
14966 | ||
14967 | CFLAGS="$CFLAGS_hold" | |
14968 | LIBS="$LIBS_hold" | |
14969 | ||
d2b480bc ILT |
14970 | LIBS_hold="$LIBS" |
14971 | LIBS="$LIBS $MATH_LIBS" | |
14972 | for ac_func in matherr | |
14973 | do : | |
14974 | ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr" | |
14975 | if test "x$ac_cv_func_matherr" = x""yes; then : | |
14976 | cat >>confdefs.h <<_ACEOF | |
14977 | #define HAVE_MATHERR 1 | |
14978 | _ACEOF | |
14979 | ||
14980 | fi | |
14981 | done | |
14982 | ||
14983 | LIBS="$LIBS_hold" | |
14984 | ||
a7c48c8e ILT |
14985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5 |
14986 | $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; } | |
14987 | if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then : | |
14988 | $as_echo_n "(cached) " >&6 | |
14989 | else | |
14990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14991 | /* end confdefs.h. */ | |
14992 | ||
14993 | typedef unsigned int uint32 __attribute__ ((mode (SI))); | |
14994 | uint32 i; | |
14995 | int main() { return __sync_bool_compare_and_swap (&i, 0, 1); } | |
14996 | ||
14997 | _ACEOF | |
14998 | if ac_fn_c_try_link "$LINENO"; then : | |
14999 | libgo_cv_func___sync_bool_compare_and_swap_4=yes | |
15000 | else | |
15001 | libgo_cv_func___sync_bool_compare_and_swap_4=no | |
15002 | fi | |
15003 | rm -f core conftest.err conftest.$ac_objext \ | |
15004 | conftest$ac_exeext conftest.$ac_ext | |
15005 | fi | |
15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5 | |
15007 | $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; } | |
15008 | if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then | |
932e3237 ILT |
15009 | |
15010 | $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h | |
a7c48c8e ILT |
15011 | |
15012 | fi | |
15013 | ||
12e3c396 ILT |
15014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5 |
15015 | $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; } | |
15016 | if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then : | |
15017 | $as_echo_n "(cached) " >&6 | |
15018 | else | |
15019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15020 | /* end confdefs.h. */ | |
15021 | ||
15022 | typedef unsigned int uint64 __attribute__ ((mode (DI))); | |
15023 | uint64 i; | |
15024 | int main() { return __sync_bool_compare_and_swap (&i, 0, 1); } | |
15025 | ||
15026 | _ACEOF | |
15027 | if ac_fn_c_try_link "$LINENO"; then : | |
15028 | libgo_cv_func___sync_bool_compare_and_swap_8=yes | |
15029 | else | |
15030 | libgo_cv_func___sync_bool_compare_and_swap_8=no | |
15031 | fi | |
15032 | rm -f core conftest.err conftest.$ac_objext \ | |
15033 | conftest$ac_exeext conftest.$ac_ext | |
15034 | fi | |
15035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5 | |
15036 | $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; } | |
15037 | if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then | |
15038 | ||
15039 | $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h | |
15040 | ||
15041 | fi | |
15042 | ||
084996f1 ILT |
15043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5 |
15044 | $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; } | |
15045 | if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then : | |
15046 | $as_echo_n "(cached) " >&6 | |
15047 | else | |
15048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15049 | /* end confdefs.h. */ | |
15050 | ||
15051 | typedef unsigned int uint32 __attribute__ ((mode (SI))); | |
15052 | uint32 i; | |
15053 | int main() { return __sync_fetch_and_add (&i, 1); } | |
15054 | ||
15055 | _ACEOF | |
15056 | if ac_fn_c_try_link "$LINENO"; then : | |
15057 | libgo_cv_func___sync_fetch_and_add_4=yes | |
15058 | else | |
15059 | libgo_cv_func___sync_fetch_and_add_4=no | |
15060 | fi | |
15061 | rm -f core conftest.err conftest.$ac_objext \ | |
15062 | conftest$ac_exeext conftest.$ac_ext | |
15063 | fi | |
15064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5 | |
15065 | $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; } | |
15066 | if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then | |
15067 | ||
15068 | $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h | |
15069 | ||
15070 | fi | |
15071 | ||
12e3c396 ILT |
15072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5 |
15073 | $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; } | |
15074 | if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then : | |
15075 | $as_echo_n "(cached) " >&6 | |
15076 | else | |
15077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15078 | /* end confdefs.h. */ | |
15079 | ||
15080 | typedef unsigned int uint64 __attribute__ ((mode (DI))); | |
15081 | uint64 i; | |
15082 | int main() { return __sync_add_and_fetch (&i, 1); } | |
15083 | ||
15084 | _ACEOF | |
15085 | if ac_fn_c_try_link "$LINENO"; then : | |
15086 | libgo_cv_func___sync_add_and_fetch_8=yes | |
15087 | else | |
15088 | libgo_cv_func___sync_add_and_fetch_8=no | |
15089 | fi | |
15090 | rm -f core conftest.err conftest.$ac_objext \ | |
15091 | conftest$ac_exeext conftest.$ac_ext | |
15092 | fi | |
15093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5 | |
15094 | $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; } | |
15095 | if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then | |
15096 | ||
15097 | $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h | |
15098 | ||
15099 | fi | |
15100 | ||
7a938933 ILT |
15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5 |
15102 | $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; } | |
f2ee78b8 | 15103 | if test "${libgo_cv_c_stringops+set}" = set; then : |
7a938933 ILT |
15104 | $as_echo_n "(cached) " >&6 |
15105 | else | |
15106 | CFLAGS_hold=$CFLAGS | |
15107 | CFLAGS="$CFLAGS -minline-all-stringops" | |
15108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15109 | /* end confdefs.h. */ | |
15110 | int i; | |
15111 | _ACEOF | |
15112 | if ac_fn_c_try_compile "$LINENO"; then : | |
f2ee78b8 | 15113 | libgo_cv_c_stringops=yes |
7a938933 | 15114 | else |
f2ee78b8 | 15115 | libgo_cv_c_stringops=no |
7a938933 ILT |
15116 | fi |
15117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15118 | CFLAGS=$CFLAGS_hold | |
15119 | fi | |
f2ee78b8 ILT |
15120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5 |
15121 | $as_echo "$libgo_cv_c_stringops" >&6; } | |
7a938933 | 15122 | STRINGOPS_FLAG= |
f2ee78b8 | 15123 | if test "$libgo_cv_c_stringops" = yes; then |
7a938933 ILT |
15124 | STRINGOPS_FLAG=-minline-all-stringops |
15125 | fi | |
15126 | ||
15127 | ||
9d465faf ILT |
15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5 |
15129 | $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; } | |
15130 | if test "${libgo_cv_c_fancymath+set}" = set; then : | |
15131 | $as_echo_n "(cached) " >&6 | |
15132 | else | |
15133 | CFLAGS_hold=$CFLAGS | |
15134 | CFLAGS="$CFLAGS -mfancy-math-387" | |
15135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15136 | /* end confdefs.h. */ | |
15137 | int i; | |
15138 | _ACEOF | |
15139 | if ac_fn_c_try_compile "$LINENO"; then : | |
15140 | libgo_cv_c_fancymath=yes | |
15141 | else | |
15142 | libgo_cv_c_fancymath=no | |
15143 | fi | |
15144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15145 | CFLAGS=$CFLAGS_hold | |
15146 | fi | |
15147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5 | |
15148 | $as_echo "$libgo_cv_c_fancymath" >&6; } | |
15149 | MATH_FLAG= | |
15150 | if test "$libgo_cv_c_fancymath" = yes; then | |
1a2f01ef | 15151 | MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations -fno-math-errno" |
33a9145b ILT |
15152 | else |
15153 | MATH_FLAG="-ffp-contract=off" | |
9d465faf ILT |
15154 | fi |
15155 | ||
15156 | ||
7a938933 ILT |
15157 | CFLAGS_hold=$CFLAGS |
15158 | CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" | |
15159 | ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" | |
15160 | if test "x$ac_cv_type_off64_t" = x""yes; then : | |
15161 | ||
15162 | cat >>confdefs.h <<_ACEOF | |
15163 | #define HAVE_OFF64_T 1 | |
15164 | _ACEOF | |
15165 | ||
15166 | ||
15167 | fi | |
15168 | ||
15169 | CFLAGS=$CFLAGS_hold | |
15170 | ||
207c35fa ILT |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5 |
15172 | $as_echo_n "checking epoll_event size... " >&6; } | |
15173 | if test "${libgo_cv_c_epoll_event_size+set}" = set; then : | |
15174 | $as_echo_n "(cached) " >&6 | |
15175 | else | |
15176 | if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then : | |
15177 | ||
15178 | else | |
15179 | libgo_cv_c_epoll_event_size=0 | |
15180 | fi | |
15181 | ||
15182 | fi | |
15183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5 | |
15184 | $as_echo "$libgo_cv_c_epoll_event_size" >&6; } | |
15185 | SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size} | |
15186 | ||
15187 | ||
15188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5 | |
15189 | $as_echo_n "checking epoll_event data.fd offset... " >&6; } | |
15190 | if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then : | |
15191 | $as_echo_n "(cached) " >&6 | |
15192 | else | |
15193 | if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h> | |
15194 | #include <sys/epoll.h>"; then : | |
15195 | ||
15196 | else | |
15197 | libgo_cv_c_epoll_event_fd_offset=0 | |
15198 | fi | |
15199 | ||
15200 | fi | |
15201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5 | |
15202 | $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; } | |
15203 | STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset} | |
15204 | ||
15205 | ||
476013d6 ILT |
15206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15207 | /* end confdefs.h. */ | |
15208 | #include <sys/stat.h> | |
15209 | ||
15210 | _ACEOF | |
15211 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15212 | $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then : | |
15213 | have_stat_timespec=yes | |
15214 | else | |
15215 | have_stat_timespec=no | |
15216 | fi | |
15217 | rm -f conftest* | |
15218 | ||
15219 | if test $have_stat_timespec = yes; then | |
15220 | HAVE_STAT_TIMESPEC_TRUE= | |
15221 | HAVE_STAT_TIMESPEC_FALSE='#' | |
15222 | else | |
15223 | HAVE_STAT_TIMESPEC_TRUE='#' | |
15224 | HAVE_STAT_TIMESPEC_FALSE= | |
15225 | fi | |
15226 | ||
15227 | ||
d2b480bc ILT |
15228 | ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h> |
15229 | " | |
15230 | if test "x$ac_cv_type_struct_exception" = x""yes; then : | |
15231 | libgo_has_struct_exception=yes | |
15232 | else | |
15233 | libgo_has_struct_exception=no | |
15234 | fi | |
15235 | ||
15236 | if test "$libgo_has_struct_exception" = "yes"; then | |
15237 | ||
15238 | $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h | |
15239 | ||
15240 | fi | |
15241 | ||
7f57843f ILT |
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5 |
15243 | $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; } | |
15244 | if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then : | |
15245 | $as_echo_n "(cached) " >&6 | |
15246 | else | |
e6c5817d ILT |
15247 | CFLAGS_hold="$CFLAGS" |
15248 | CFLAGS="$PTHREAD_CFLAGS" | |
15249 | LIBS_hold="$LIBS" | |
7f57843f | 15250 | LIBS="$LIBS $PTHREAD_LIBS" |
e6c5817d ILT |
15251 | # The cast to long int works around a bug in the HP C Compiler |
15252 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15253 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15254 | # This bug is HP SR number 8606223364. | |
15255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15256 | $as_echo_n "checking size of void *... " >&6; } | |
15257 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
15258 | $as_echo_n "(cached) " >&6 | |
15259 | else | |
15260 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
15261 | ||
15262 | else | |
15263 | if test "$ac_cv_type_void_p" = yes; then | |
15264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15266 | { as_fn_set_status 77 | |
15267 | as_fn_error "cannot compute sizeof (void *) | |
15268 | See \`config.log' for more details." "$LINENO" 5; }; } | |
15269 | else | |
15270 | ac_cv_sizeof_void_p=0 | |
15271 | fi | |
15272 | fi | |
15273 | ||
15274 | fi | |
15275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
15276 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
15277 | ||
15278 | ||
15279 | ||
15280 | cat >>confdefs.h <<_ACEOF | |
15281 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15282 | _ACEOF | |
15283 | ||
15284 | ||
15285 | as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val | |
7f57843f | 15286 | if test "$cross_compiling" = yes; then : |
e6c5817d ILT |
15287 | case "$target:$ptr_type_size" in |
15288 | i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64) | |
15289 | libgo_cv_lib_setcontext_clobbers_tls=yes ;; | |
15290 | *) | |
15291 | libgo_cv_lib_setcontext_clobbers_tls=no ;; | |
7f57843f ILT |
15292 | esac |
15293 | ||
15294 | else | |
15295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15296 | /* end confdefs.h. */ | |
15297 | ||
15298 | #include <pthread.h> | |
15299 | #include <stdlib.h> | |
15300 | #include <ucontext.h> | |
15301 | #include <unistd.h> | |
15302 | ||
15303 | __thread int tls; | |
15304 | ||
15305 | static char stack[10 * 1024 * 1024]; | |
15306 | static ucontext_t c; | |
15307 | ||
15308 | /* Called via makecontext/setcontext. */ | |
15309 | ||
15310 | static void | |
15311 | cfn (void) | |
15312 | { | |
15313 | exit (tls); | |
15314 | } | |
15315 | ||
15316 | /* Called via pthread_create. */ | |
15317 | ||
15318 | static void * | |
15319 | tfn (void *dummy) | |
15320 | { | |
15321 | /* The thread should still see this value after calling | |
15322 | setcontext. */ | |
15323 | tls = 0; | |
15324 | ||
15325 | setcontext (&c); | |
15326 | ||
15327 | /* The call to setcontext should not return. */ | |
15328 | abort (); | |
15329 | } | |
15330 | ||
15331 | int | |
15332 | main () | |
15333 | { | |
15334 | pthread_t tid; | |
15335 | ||
15336 | /* The thread should not see this value. */ | |
15337 | tls = 1; | |
15338 | ||
15339 | if (getcontext (&c) < 0) | |
15340 | abort (); | |
15341 | ||
15342 | c.uc_stack.ss_sp = stack; | |
ca59d219 ILT |
15343 | #ifdef MAKECONTEXT_STACK_TOP |
15344 | c.uc_stack.ss_sp += sizeof stack; | |
15345 | #endif | |
7f57843f ILT |
15346 | c.uc_stack.ss_flags = 0; |
15347 | c.uc_stack.ss_size = sizeof stack; | |
15348 | c.uc_link = NULL; | |
15349 | makecontext (&c, cfn, 0); | |
15350 | ||
15351 | if (pthread_create (&tid, NULL, tfn, NULL) != 0) | |
15352 | abort (); | |
15353 | ||
15354 | if (pthread_join (tid, NULL) != 0) | |
15355 | abort (); | |
15356 | ||
15357 | /* The thread should have called exit. */ | |
15358 | abort (); | |
15359 | } | |
15360 | ||
15361 | _ACEOF | |
15362 | if ac_fn_c_try_run "$LINENO"; then : | |
15363 | libgo_cv_lib_setcontext_clobbers_tls=no | |
15364 | else | |
15365 | libgo_cv_lib_setcontext_clobbers_tls=yes | |
15366 | fi | |
15367 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15368 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15369 | fi | |
15370 | ||
e6c5817d | 15371 | CFLAGS="$CFLAGS_hold" |
7f57843f ILT |
15372 | LIBS="$LIBS_hold" |
15373 | ||
15374 | fi | |
15375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5 | |
15376 | $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; } | |
15377 | if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then | |
15378 | ||
15379 | $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h | |
15380 | ||
15381 | fi | |
15382 | ||
cc1a9ac8 ILT |
15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5 |
15384 | $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; } | |
15385 | if test "${libgo_cv_ro_eh_frame+set}" = set; then : | |
15386 | $as_echo_n "(cached) " >&6 | |
15387 | else | |
15388 | ||
15389 | libgo_cv_ro_eh_frame=no | |
15390 | echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c | |
15391 | if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then | |
15392 | if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then | |
15393 | libgo_cv_ro_eh_frame=yes | |
15394 | elif grep '.section.*eh_frame.*#alloc' conftest.c \ | |
15395 | | grep -v '#write' > /dev/null; then | |
15396 | libgo_cv_ro_eh_frame=yes | |
15397 | fi | |
15398 | fi | |
15399 | rm -f conftest.* | |
15400 | ||
15401 | fi | |
15402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5 | |
15403 | $as_echo "$libgo_cv_ro_eh_frame" >&6; } | |
15404 | if test "x$libgo_cv_ro_eh_frame" = xyes; then | |
15405 | ||
15406 | $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h | |
15407 | ||
15408 | else | |
15409 | ||
15410 | $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h | |
15411 | ||
15412 | fi | |
15413 | ||
a819231d ILT |
15414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5 |
15415 | $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; } | |
15416 | if test "${libgo_cv_c_unused_arguments+set}" = set; then : | |
15417 | $as_echo_n "(cached) " >&6 | |
15418 | else | |
15419 | CFLAGS_hold=$CFLAGS | |
15420 | CFLAGS="$CFLAGS -Qunused-arguments" | |
15421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15422 | /* end confdefs.h. */ | |
15423 | int i; | |
15424 | _ACEOF | |
15425 | if ac_fn_c_try_compile "$LINENO"; then : | |
15426 | libgo_cv_c_unused_arguments=yes | |
15427 | else | |
15428 | libgo_cv_c_unused_arguments=no | |
15429 | fi | |
15430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15431 | CFLAGS=$CFLAGS_hold | |
15432 | fi | |
15433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5 | |
15434 | $as_echo "$libgo_cv_c_unused_arguments" >&6; } | |
15435 | ||
cc1a9ac8 ILT |
15436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5 |
15437 | $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; } | |
15438 | if test "${libgo_cv_as_comdat_gnu+set}" = set; then : | |
15439 | $as_echo_n "(cached) " >&6 | |
15440 | else | |
15441 | ||
15442 | echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s | |
a819231d ILT |
15443 | CFLAGS_hold=$CFLAGS |
15444 | if test "$libgo_cv_c_unused_arguments" = yes; then | |
15445 | CFLAGS="$CFLAGS -Qunused-arguments" | |
15446 | fi | |
cc1a9ac8 ILT |
15447 | if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then |
15448 | libgo_cv_as_comdat_gnu=yes | |
15449 | else | |
15450 | libgo_cv_as_comdat_gnu=no | |
15451 | fi | |
a819231d | 15452 | CFLAGS=$CFLAGS_hold |
cc1a9ac8 ILT |
15453 | |
15454 | fi | |
15455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5 | |
15456 | $as_echo "$libgo_cv_as_comdat_gnu" >&6; } | |
15457 | if test "x$libgo_cv_as_comdat_gnu" = xyes; then | |
15458 | ||
15459 | $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h | |
15460 | ||
15461 | fi | |
15462 | ||
15463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5 | |
15464 | $as_echo_n "checking assembler supports pc related relocs... " >&6; } | |
15465 | if test "${libgo_cv_as_x86_pcrel+set}" = set; then : | |
15466 | $as_echo_n "(cached) " >&6 | |
15467 | else | |
15468 | ||
15469 | libgo_cv_as_x86_pcrel=yes | |
15470 | echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s | |
a819231d ILT |
15471 | CFLAGS_hold=$CFLAGS |
15472 | if test "$libgo_cv_c_unused_arguments" = yes; then | |
15473 | CFLAGS="$CFLAGS -Qunused-arguments" | |
15474 | fi | |
cc1a9ac8 ILT |
15475 | if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then |
15476 | libgo_cv_as_x86_pcrel=no | |
15477 | fi | |
a819231d | 15478 | CFLAGS=$CFLAGS_hold |
cc1a9ac8 ILT |
15479 | |
15480 | fi | |
15481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5 | |
15482 | $as_echo "$libgo_cv_as_x86_pcrel" >&6; } | |
15483 | if test "x$libgo_cv_as_x86_pcrel" = xyes; then | |
15484 | ||
15485 | $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h | |
15486 | ||
15487 | fi | |
15488 | ||
15489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5 | |
15490 | $as_echo_n "checking assembler supports unwind section type... " >&6; } | |
15491 | if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then : | |
15492 | $as_echo_n "(cached) " >&6 | |
15493 | else | |
15494 | ||
15495 | libgo_cv_as_x86_64_unwind_section_type=yes | |
15496 | echo '.section .eh_frame,"a",@unwind' > conftest.s | |
a819231d ILT |
15497 | CFLAGS_hold=$CFLAGS |
15498 | if test "$libgo_cv_c_unused_arguments" = yes; then | |
15499 | CFLAGS="$CFLAGS -Qunused-arguments" | |
15500 | fi | |
cc1a9ac8 ILT |
15501 | if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then |
15502 | libgo_cv_as_x86_64_unwind_section_type=no | |
15503 | fi | |
a819231d | 15504 | CFLAGS=$CFLAGS_hold |
cc1a9ac8 ILT |
15505 | |
15506 | fi | |
15507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5 | |
15508 | $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; } | |
15509 | if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then | |
15510 | ||
15511 | $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h | |
15512 | ||
15513 | fi | |
15514 | ||
b379f8d8 ILT |
15515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5 |
15516 | $as_echo_n "checking assembler supports AES instructions... " >&6; } | |
15517 | if test "${libgo_cv_as_x86_aes+set}" = set; then : | |
15518 | $as_echo_n "(cached) " >&6 | |
15519 | else | |
15520 | ||
15521 | libgo_cv_as_x86_aes=yes | |
15522 | echo 'aesenc %xmm0, %xmm1' > conftest.s | |
15523 | CFLAGS_hold=$CFLAGS | |
15524 | if test "$libgo_cv_c_unused_arguments" = yes; then | |
15525 | CFLAGS="$CFLAGS -Qunused-arguments" | |
15526 | fi | |
15527 | if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then | |
15528 | libgo_cv_as_x86_aes=no | |
15529 | fi | |
15530 | CFLAGS=$CFLAGS_hold | |
15531 | ||
15532 | fi | |
15533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5 | |
15534 | $as_echo "$libgo_cv_as_x86_aes" >&6; } | |
15535 | if test "x$libgo_cv_as_x86_aes" = xyes; then | |
15536 | ||
15537 | $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h | |
15538 | ||
15539 | fi | |
15540 | ||
7a938933 ILT |
15541 | cat >confcache <<\_ACEOF |
15542 | # This file is a shell script that caches the results of configure | |
15543 | # tests run on this system so they can be shared between configure | |
15544 | # scripts and configure runs, see configure's option --config-cache. | |
15545 | # It is not useful on other systems. If it contains results you don't | |
15546 | # want to keep, you may remove or edit it. | |
15547 | # | |
15548 | # config.status only pays attention to the cache file if you give it | |
15549 | # the --recheck option to rerun configure. | |
15550 | # | |
15551 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15552 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15553 | # following values. | |
15554 | ||
15555 | _ACEOF | |
15556 | ||
15557 | # The following way of writing the cache mishandles newlines in values, | |
15558 | # but we know of no workaround that is simple, portable, and efficient. | |
15559 | # So, we kill variables containing newlines. | |
15560 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15561 | # and sets the high bit in the cache file unless we assign to the vars. | |
15562 | ( | |
15563 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15564 | eval ac_val=\$$ac_var | |
15565 | case $ac_val in #( | |
15566 | *${as_nl}*) | |
15567 | case $ac_var in #( | |
15568 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15569 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15570 | esac | |
15571 | case $ac_var in #( | |
15572 | _ | IFS | as_nl) ;; #( | |
15573 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15574 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15575 | esac ;; | |
15576 | esac | |
15577 | done | |
15578 | ||
15579 | (set) 2>&1 | | |
15580 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15581 | *${as_nl}ac_space=\ *) | |
15582 | # `set' does not quote correctly, so add quotes: double-quote | |
15583 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
15584 | sed -n \ | |
15585 | "s/'/'\\\\''/g; | |
15586 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15587 | ;; #( | |
15588 | *) | |
15589 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15590 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15591 | ;; | |
15592 | esac | | |
15593 | sort | |
15594 | ) | | |
15595 | sed ' | |
15596 | /^ac_cv_env_/b end | |
15597 | t clear | |
15598 | :clear | |
15599 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15600 | t end | |
15601 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15602 | :end' >>confcache | |
15603 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15604 | if test -w "$cache_file"; then | |
15605 | test "x$cache_file" != "x/dev/null" && | |
15606 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
15607 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
15608 | cat confcache >$cache_file | |
15609 | else | |
15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
15611 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
15612 | fi | |
15613 | fi | |
15614 | rm -f confcache | |
15615 | ||
15616 | if test ${multilib} = yes; then | |
15617 | multilib_arg="--enable-multilib" | |
15618 | else | |
15619 | multilib_arg= | |
15620 | fi | |
15621 | ||
15622 | ac_config_files="$ac_config_files Makefile testsuite/Makefile" | |
15623 | ||
15624 | ||
15625 | ac_config_commands="$ac_config_commands default" | |
15626 | ||
15627 | ||
15628 | cat >confcache <<\_ACEOF | |
15629 | # This file is a shell script that caches the results of configure | |
15630 | # tests run on this system so they can be shared between configure | |
15631 | # scripts and configure runs, see configure's option --config-cache. | |
15632 | # It is not useful on other systems. If it contains results you don't | |
15633 | # want to keep, you may remove or edit it. | |
15634 | # | |
15635 | # config.status only pays attention to the cache file if you give it | |
15636 | # the --recheck option to rerun configure. | |
15637 | # | |
15638 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15639 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15640 | # following values. | |
15641 | ||
15642 | _ACEOF | |
15643 | ||
15644 | # The following way of writing the cache mishandles newlines in values, | |
15645 | # but we know of no workaround that is simple, portable, and efficient. | |
15646 | # So, we kill variables containing newlines. | |
15647 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15648 | # and sets the high bit in the cache file unless we assign to the vars. | |
15649 | ( | |
15650 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15651 | eval ac_val=\$$ac_var | |
15652 | case $ac_val in #( | |
15653 | *${as_nl}*) | |
15654 | case $ac_var in #( | |
15655 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15656 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15657 | esac | |
15658 | case $ac_var in #( | |
15659 | _ | IFS | as_nl) ;; #( | |
15660 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15661 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15662 | esac ;; | |
15663 | esac | |
15664 | done | |
15665 | ||
15666 | (set) 2>&1 | | |
15667 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15668 | *${as_nl}ac_space=\ *) | |
15669 | # `set' does not quote correctly, so add quotes: double-quote | |
15670 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
15671 | sed -n \ | |
15672 | "s/'/'\\\\''/g; | |
15673 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15674 | ;; #( | |
15675 | *) | |
15676 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15677 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15678 | ;; | |
15679 | esac | | |
15680 | sort | |
15681 | ) | | |
15682 | sed ' | |
15683 | /^ac_cv_env_/b end | |
15684 | t clear | |
15685 | :clear | |
15686 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15687 | t end | |
15688 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15689 | :end' >>confcache | |
15690 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15691 | if test -w "$cache_file"; then | |
15692 | test "x$cache_file" != "x/dev/null" && | |
15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
15694 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
15695 | cat confcache >$cache_file | |
15696 | else | |
15697 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
15698 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
15699 | fi | |
15700 | fi | |
15701 | rm -f confcache | |
15702 | ||
15703 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15704 | # Let make expand exec_prefix. | |
15705 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15706 | ||
15707 | DEFS=-DHAVE_CONFIG_H | |
15708 | ||
15709 | ac_libobjs= | |
15710 | ac_ltlibobjs= | |
15711 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15712 | # 1. Remove the extension, and $U if already installed. | |
15713 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
15714 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15715 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15716 | # will be set to the directory where LIBOBJS objects are built. | |
15717 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15718 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
15719 | done | |
15720 | LIBOBJS=$ac_libobjs | |
15721 | ||
15722 | LTLIBOBJS=$ac_ltlibobjs | |
15723 | ||
15724 | ||
15725 | if test -n "$EXEEXT"; then | |
15726 | am__EXEEXT_TRUE= | |
15727 | am__EXEEXT_FALSE='#' | |
15728 | else | |
15729 | am__EXEEXT_TRUE='#' | |
15730 | am__EXEEXT_FALSE= | |
15731 | fi | |
15732 | ||
15733 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
15734 | as_fn_error "conditional \"AMDEP\" was never defined. | |
15735 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15736 | fi | |
15737 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
15738 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
15739 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15740 | fi | |
15741 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
15742 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
15743 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15744 | fi | |
5302cd02 ILT |
15745 | if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then |
15746 | as_fn_error "conditional \"USE_LIBFFI\" was never defined. | |
15747 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15748 | fi | |
7a938933 ILT |
15749 | if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then |
15750 | as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined. | |
15751 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15752 | fi | |
15753 | if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then | |
15754 | as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined. | |
15755 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
654d2ec0 ILT |
15756 | fi |
15757 | if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then | |
15758 | as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined. | |
15759 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7a938933 ILT |
15760 | fi |
15761 | if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then | |
15762 | as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined. | |
15763 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15764 | fi | |
df4aa89a ILT |
15765 | if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then |
15766 | as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined. | |
15767 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15768 | fi | |
4ccad563 ILT |
15769 | if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then |
15770 | as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined. | |
15771 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15772 | fi | |
f038dae6 ILT |
15773 | if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then |
15774 | as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined. | |
15775 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15776 | fi | |
7a938933 ILT |
15777 | if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then |
15778 | as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined. | |
15779 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15780 | fi | |
f2ee78b8 ILT |
15781 | if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then |
15782 | as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined. | |
7a938933 ILT |
15783 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15784 | fi | |
f163907e ILT |
15785 | if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then |
15786 | as_fn_error "conditional \"LIBGO_IS_AIX\" was never defined. | |
15787 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15788 | fi | |
22b955cc ILT |
15789 | if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then |
15790 | as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined. | |
15791 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15792 | fi | |
7a938933 ILT |
15793 | if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then |
15794 | as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined. | |
15795 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
4c46b5f0 ILT |
15796 | fi |
15797 | if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then | |
15798 | as_fn_error "conditional \"GOC_IS_LLGO\" was never defined. | |
15799 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7a938933 ILT |
15800 | fi |
15801 | ||
15802 | if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then | |
15803 | as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined. | |
15804 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15805 | fi | |
8955c80a ILT |
15806 | if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then |
15807 | as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined. | |
15808 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15809 | fi | |
0b3189e7 ILT |
15810 | if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then |
15811 | as_fn_error "conditional \"HAVE_WAIT4\" was never defined. | |
15812 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15813 | fi | |
476013d6 ILT |
15814 | if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then |
15815 | as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined. | |
15816 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15817 | fi | |
7a938933 ILT |
15818 | |
15819 | : ${CONFIG_STATUS=./config.status} | |
15820 | ac_write_fail=0 | |
15821 | ac_clean_files_save=$ac_clean_files | |
15822 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15823 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
15824 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15825 | as_write_fail=0 | |
15826 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
15827 | #! $SHELL | |
15828 | # Generated by $as_me. | |
15829 | # Run this file to recreate the current configuration. | |
15830 | # Compiler output produced by configure, useful for debugging | |
15831 | # configure, is in config.log if it exists. | |
15832 | ||
15833 | debug=false | |
15834 | ac_cs_recheck=false | |
15835 | ac_cs_silent=false | |
15836 | ||
15837 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15838 | export SHELL | |
15839 | _ASEOF | |
15840 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15841 | ## -------------------- ## | |
15842 | ## M4sh Initialization. ## | |
15843 | ## -------------------- ## | |
15844 | ||
15845 | # Be more Bourne compatible | |
15846 | DUALCASE=1; export DUALCASE # for MKS sh | |
15847 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
15848 | emulate sh | |
15849 | NULLCMD=: | |
15850 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
15851 | # is contrary to our usage. Disable this feature. | |
15852 | alias -g '${1+"$@"}'='"$@"' | |
15853 | setopt NO_GLOB_SUBST | |
15854 | else | |
15855 | case `(set -o) 2>/dev/null` in #( | |
15856 | *posix*) : | |
15857 | set -o posix ;; #( | |
15858 | *) : | |
15859 | ;; | |
15860 | esac | |
15861 | fi | |
15862 | ||
15863 | ||
15864 | as_nl=' | |
15865 | ' | |
15866 | export as_nl | |
15867 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15868 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15869 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15870 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15871 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15872 | # but without wasting forks for bash or zsh. | |
15873 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15874 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15875 | as_echo='print -r --' | |
15876 | as_echo_n='print -rn --' | |
15877 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15878 | as_echo='printf %s\n' | |
15879 | as_echo_n='printf %s' | |
15880 | else | |
15881 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15882 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15883 | as_echo_n='/usr/ucb/echo -n' | |
15884 | else | |
15885 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15886 | as_echo_n_body='eval | |
15887 | arg=$1; | |
15888 | case $arg in #( | |
15889 | *"$as_nl"*) | |
15890 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15891 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15892 | esac; | |
15893 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15894 | ' | |
15895 | export as_echo_n_body | |
15896 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15897 | fi | |
15898 | export as_echo_body | |
15899 | as_echo='sh -c $as_echo_body as_echo' | |
15900 | fi | |
15901 | ||
15902 | # The user is always right. | |
15903 | if test "${PATH_SEPARATOR+set}" != set; then | |
15904 | PATH_SEPARATOR=: | |
15905 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15906 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15907 | PATH_SEPARATOR=';' | |
15908 | } | |
15909 | fi | |
15910 | ||
15911 | ||
15912 | # IFS | |
15913 | # We need space, tab and new line, in precisely that order. Quoting is | |
15914 | # there to prevent editors from complaining about space-tab. | |
15915 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15916 | # splitting by setting IFS to empty value.) | |
15917 | IFS=" "" $as_nl" | |
15918 | ||
15919 | # Find who we are. Look in the path if we contain no directory separator. | |
15920 | case $0 in #(( | |
15921 | *[\\/]* ) as_myself=$0 ;; | |
15922 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15923 | for as_dir in $PATH | |
15924 | do | |
15925 | IFS=$as_save_IFS | |
15926 | test -z "$as_dir" && as_dir=. | |
15927 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15928 | done | |
15929 | IFS=$as_save_IFS | |
15930 | ||
15931 | ;; | |
15932 | esac | |
15933 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15934 | # in which case we are not to be found in the path. | |
15935 | if test "x$as_myself" = x; then | |
15936 | as_myself=$0 | |
15937 | fi | |
15938 | if test ! -f "$as_myself"; then | |
15939 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15940 | exit 1 | |
15941 | fi | |
15942 | ||
15943 | # Unset variables that we do not need and which cause bugs (e.g. in | |
15944 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15945 | # suppresses any "Segmentation fault" message there. '((' could | |
15946 | # trigger a bug in pdksh 5.2.14. | |
15947 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15948 | do eval test x\${$as_var+set} = xset \ | |
15949 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15950 | done | |
15951 | PS1='$ ' | |
15952 | PS2='> ' | |
15953 | PS4='+ ' | |
15954 | ||
15955 | # NLS nuisances. | |
15956 | LC_ALL=C | |
15957 | export LC_ALL | |
15958 | LANGUAGE=C | |
15959 | export LANGUAGE | |
15960 | ||
15961 | # CDPATH. | |
15962 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15963 | ||
15964 | ||
15965 | # as_fn_error ERROR [LINENO LOG_FD] | |
15966 | # --------------------------------- | |
15967 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15968 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15969 | # script with status $?, using 1 if that was 0. | |
15970 | as_fn_error () | |
15971 | { | |
15972 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15973 | if test "$3"; then | |
15974 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15975 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
15976 | fi | |
15977 | $as_echo "$as_me: error: $1" >&2 | |
15978 | as_fn_exit $as_status | |
15979 | } # as_fn_error | |
15980 | ||
15981 | ||
15982 | # as_fn_set_status STATUS | |
15983 | # ----------------------- | |
15984 | # Set $? to STATUS, without forking. | |
15985 | as_fn_set_status () | |
15986 | { | |
15987 | return $1 | |
15988 | } # as_fn_set_status | |
15989 | ||
15990 | # as_fn_exit STATUS | |
15991 | # ----------------- | |
15992 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15993 | as_fn_exit () | |
15994 | { | |
15995 | set +e | |
15996 | as_fn_set_status $1 | |
15997 | exit $1 | |
15998 | } # as_fn_exit | |
15999 | ||
16000 | # as_fn_unset VAR | |
16001 | # --------------- | |
16002 | # Portably unset VAR. | |
16003 | as_fn_unset () | |
16004 | { | |
16005 | { eval $1=; unset $1;} | |
16006 | } | |
16007 | as_unset=as_fn_unset | |
16008 | # as_fn_append VAR VALUE | |
16009 | # ---------------------- | |
16010 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16011 | # advantage of any shell optimizations that allow amortized linear growth over | |
16012 | # repeated appends, instead of the typical quadratic growth present in naive | |
16013 | # implementations. | |
16014 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16015 | eval 'as_fn_append () | |
16016 | { | |
16017 | eval $1+=\$2 | |
16018 | }' | |
16019 | else | |
16020 | as_fn_append () | |
16021 | { | |
16022 | eval $1=\$$1\$2 | |
16023 | } | |
16024 | fi # as_fn_append | |
16025 | ||
16026 | # as_fn_arith ARG... | |
16027 | # ------------------ | |
16028 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16029 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16030 | # must be portable across $(()) and expr. | |
16031 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16032 | eval 'as_fn_arith () | |
16033 | { | |
16034 | as_val=$(( $* )) | |
16035 | }' | |
16036 | else | |
16037 | as_fn_arith () | |
16038 | { | |
16039 | as_val=`expr "$@" || test $? -eq 1` | |
16040 | } | |
16041 | fi # as_fn_arith | |
16042 | ||
16043 | ||
16044 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16045 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16046 | as_expr=expr | |
16047 | else | |
16048 | as_expr=false | |
16049 | fi | |
16050 | ||
16051 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16052 | as_basename=basename | |
16053 | else | |
16054 | as_basename=false | |
16055 | fi | |
16056 | ||
16057 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16058 | as_dirname=dirname | |
16059 | else | |
16060 | as_dirname=false | |
16061 | fi | |
16062 | ||
16063 | as_me=`$as_basename -- "$0" || | |
16064 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16065 | X"$0" : 'X\(//\)$' \| \ | |
16066 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16067 | $as_echo X/"$0" | | |
16068 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16069 | s//\1/ | |
16070 | q | |
16071 | } | |
16072 | /^X\/\(\/\/\)$/{ | |
16073 | s//\1/ | |
16074 | q | |
16075 | } | |
16076 | /^X\/\(\/\).*/{ | |
16077 | s//\1/ | |
16078 | q | |
16079 | } | |
16080 | s/.*/./; q'` | |
16081 | ||
16082 | # Avoid depending upon Character Ranges. | |
16083 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16084 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16085 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16086 | as_cr_digits='0123456789' | |
16087 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16088 | ||
16089 | ECHO_C= ECHO_N= ECHO_T= | |
16090 | case `echo -n x` in #((((( | |
16091 | -n*) | |
16092 | case `echo 'xy\c'` in | |
16093 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16094 | xy) ECHO_C='\c';; | |
16095 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16096 | ECHO_T=' ';; | |
16097 | esac;; | |
16098 | *) | |
16099 | ECHO_N='-n';; | |
16100 | esac | |
16101 | ||
16102 | rm -f conf$$ conf$$.exe conf$$.file | |
16103 | if test -d conf$$.dir; then | |
16104 | rm -f conf$$.dir/conf$$.file | |
16105 | else | |
16106 | rm -f conf$$.dir | |
16107 | mkdir conf$$.dir 2>/dev/null | |
16108 | fi | |
16109 | if (echo >conf$$.file) 2>/dev/null; then | |
16110 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16111 | as_ln_s='ln -s' | |
16112 | # ... but there are two gotchas: | |
16113 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16114 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16115 | # In both cases, we have to default to `cp -p'. | |
16116 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16117 | as_ln_s='cp -p' | |
16118 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16119 | as_ln_s=ln | |
16120 | else | |
16121 | as_ln_s='cp -p' | |
16122 | fi | |
16123 | else | |
16124 | as_ln_s='cp -p' | |
16125 | fi | |
16126 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16127 | rmdir conf$$.dir 2>/dev/null | |
16128 | ||
16129 | ||
16130 | # as_fn_mkdir_p | |
16131 | # ------------- | |
16132 | # Create "$as_dir" as a directory, including parents if necessary. | |
16133 | as_fn_mkdir_p () | |
16134 | { | |
16135 | ||
16136 | case $as_dir in #( | |
16137 | -*) as_dir=./$as_dir;; | |
16138 | esac | |
16139 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16140 | as_dirs= | |
16141 | while :; do | |
16142 | case $as_dir in #( | |
16143 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16144 | *) as_qdir=$as_dir;; | |
16145 | esac | |
16146 | as_dirs="'$as_qdir' $as_dirs" | |
16147 | as_dir=`$as_dirname -- "$as_dir" || | |
16148 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16149 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16150 | X"$as_dir" : 'X\(//\)$' \| \ | |
16151 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16152 | $as_echo X"$as_dir" | | |
16153 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16154 | s//\1/ | |
16155 | q | |
16156 | } | |
16157 | /^X\(\/\/\)[^/].*/{ | |
16158 | s//\1/ | |
16159 | q | |
16160 | } | |
16161 | /^X\(\/\/\)$/{ | |
16162 | s//\1/ | |
16163 | q | |
16164 | } | |
16165 | /^X\(\/\).*/{ | |
16166 | s//\1/ | |
16167 | q | |
16168 | } | |
16169 | s/.*/./; q'` | |
16170 | test -d "$as_dir" && break | |
16171 | done | |
16172 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
16173 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
16174 | ||
16175 | ||
16176 | } # as_fn_mkdir_p | |
16177 | if mkdir -p . 2>/dev/null; then | |
16178 | as_mkdir_p='mkdir -p "$as_dir"' | |
16179 | else | |
16180 | test -d ./-p && rmdir ./-p | |
16181 | as_mkdir_p=false | |
16182 | fi | |
16183 | ||
16184 | if test -x / >/dev/null 2>&1; then | |
16185 | as_test_x='test -x' | |
16186 | else | |
16187 | if ls -dL / >/dev/null 2>&1; then | |
16188 | as_ls_L_option=L | |
16189 | else | |
16190 | as_ls_L_option= | |
16191 | fi | |
16192 | as_test_x=' | |
16193 | eval sh -c '\'' | |
16194 | if test -d "$1"; then | |
16195 | test -d "$1/."; | |
16196 | else | |
16197 | case $1 in #( | |
16198 | -*)set "./$1";; | |
16199 | esac; | |
16200 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
16201 | ???[sx]*):;;*)false;;esac;fi | |
16202 | '\'' sh | |
16203 | ' | |
16204 | fi | |
16205 | as_executable_p=$as_test_x | |
16206 | ||
16207 | # Sed expression to map a string onto a valid CPP name. | |
16208 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16209 | ||
16210 | # Sed expression to map a string onto a valid variable name. | |
16211 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16212 | ||
16213 | ||
16214 | exec 6>&1 | |
16215 | ## ----------------------------------- ## | |
16216 | ## Main body of $CONFIG_STATUS script. ## | |
16217 | ## ----------------------------------- ## | |
16218 | _ASEOF | |
16219 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16220 | ||
16221 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16222 | # Save the log message, to keep $0 and so on meaningful, and to | |
16223 | # report actual input values of CONFIG_FILES etc. instead of their | |
16224 | # values after options handling. | |
16225 | ac_log=" | |
16226 | This file was extended by package-unused $as_me version-unused, which was | |
16227 | generated by GNU Autoconf 2.64. Invocation command line was | |
16228 | ||
16229 | CONFIG_FILES = $CONFIG_FILES | |
16230 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16231 | CONFIG_LINKS = $CONFIG_LINKS | |
16232 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16233 | $ $0 $@ | |
16234 | ||
16235 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
16236 | " | |
16237 | ||
16238 | _ACEOF | |
16239 | ||
16240 | case $ac_config_files in *" | |
16241 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16242 | esac | |
16243 | ||
16244 | case $ac_config_headers in *" | |
16245 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16246 | esac | |
16247 | ||
16248 | ||
16249 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16250 | # Files that config.status was made for. | |
16251 | config_files="$ac_config_files" | |
16252 | config_headers="$ac_config_headers" | |
16253 | config_commands="$ac_config_commands" | |
16254 | ||
16255 | _ACEOF | |
16256 | ||
16257 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16258 | ac_cs_usage="\ | |
16259 | \`$as_me' instantiates files and other configuration actions | |
16260 | from templates according to the current configuration. Unless the files | |
16261 | and actions are specified as TAGs, all are instantiated by default. | |
16262 | ||
16263 | Usage: $0 [OPTION]... [TAG]... | |
16264 | ||
16265 | -h, --help print this help, then exit | |
16266 | -V, --version print version number and configuration settings, then exit | |
16267 | -q, --quiet, --silent | |
16268 | do not print progress messages | |
16269 | -d, --debug don't remove temporary files | |
16270 | --recheck update $as_me by reconfiguring in the same conditions | |
16271 | --file=FILE[:TEMPLATE] | |
16272 | instantiate the configuration file FILE | |
16273 | --header=FILE[:TEMPLATE] | |
16274 | instantiate the configuration header FILE | |
16275 | ||
16276 | Configuration files: | |
16277 | $config_files | |
16278 | ||
16279 | Configuration headers: | |
16280 | $config_headers | |
16281 | ||
16282 | Configuration commands: | |
16283 | $config_commands | |
16284 | ||
16285 | Report bugs to the package provider." | |
16286 | ||
16287 | _ACEOF | |
16288 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16289 | ac_cs_version="\\ | |
16290 | package-unused config.status version-unused | |
16291 | configured by $0, generated by GNU Autoconf 2.64, | |
16292 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
16293 | ||
16294 | Copyright (C) 2009 Free Software Foundation, Inc. | |
16295 | This config.status script is free software; the Free Software Foundation | |
16296 | gives unlimited permission to copy, distribute and modify it." | |
16297 | ||
16298 | ac_pwd='$ac_pwd' | |
16299 | srcdir='$srcdir' | |
16300 | INSTALL='$INSTALL' | |
16301 | MKDIR_P='$MKDIR_P' | |
16302 | AWK='$AWK' | |
16303 | test -n "\$AWK" || AWK=awk | |
16304 | _ACEOF | |
16305 | ||
16306 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16307 | # The default lists apply if the user does not specify any file. | |
16308 | ac_need_defaults=: | |
16309 | while test $# != 0 | |
16310 | do | |
16311 | case $1 in | |
16312 | --*=*) | |
16313 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16314 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16315 | ac_shift=: | |
16316 | ;; | |
16317 | *) | |
16318 | ac_option=$1 | |
16319 | ac_optarg=$2 | |
16320 | ac_shift=shift | |
16321 | ;; | |
16322 | esac | |
16323 | ||
16324 | case $ac_option in | |
16325 | # Handling of the options. | |
16326 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16327 | ac_cs_recheck=: ;; | |
16328 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16329 | $as_echo "$ac_cs_version"; exit ;; | |
16330 | --debug | --debu | --deb | --de | --d | -d ) | |
16331 | debug=: ;; | |
16332 | --file | --fil | --fi | --f ) | |
16333 | $ac_shift | |
16334 | case $ac_optarg in | |
16335 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16336 | esac | |
16337 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
16338 | ac_need_defaults=false;; | |
16339 | --header | --heade | --head | --hea ) | |
16340 | $ac_shift | |
16341 | case $ac_optarg in | |
16342 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16343 | esac | |
16344 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
16345 | ac_need_defaults=false;; | |
16346 | --he | --h) | |
16347 | # Conflict between --help and --header | |
16348 | as_fn_error "ambiguous option: \`$1' | |
16349 | Try \`$0 --help' for more information.";; | |
16350 | --help | --hel | -h ) | |
16351 | $as_echo "$ac_cs_usage"; exit ;; | |
16352 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16353 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16354 | ac_cs_silent=: ;; | |
16355 | ||
16356 | # This is an error. | |
16357 | -*) as_fn_error "unrecognized option: \`$1' | |
16358 | Try \`$0 --help' for more information." ;; | |
16359 | ||
16360 | *) as_fn_append ac_config_targets " $1" | |
16361 | ac_need_defaults=false ;; | |
16362 | ||
16363 | esac | |
16364 | shift | |
16365 | done | |
16366 | ||
16367 | ac_configure_extra_args= | |
16368 | ||
16369 | if $ac_cs_silent; then | |
16370 | exec 6>/dev/null | |
16371 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16372 | fi | |
16373 | ||
16374 | _ACEOF | |
16375 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16376 | if \$ac_cs_recheck; then | |
16377 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
16378 | shift | |
16379 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16380 | CONFIG_SHELL='$SHELL' | |
16381 | export CONFIG_SHELL | |
16382 | exec "\$@" | |
16383 | fi | |
16384 | ||
16385 | _ACEOF | |
16386 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16387 | exec 5>>config.log | |
16388 | { | |
16389 | echo | |
16390 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16391 | ## Running $as_me. ## | |
16392 | _ASBOX | |
16393 | $as_echo "$ac_log" | |
16394 | } >&5 | |
16395 | ||
16396 | _ACEOF | |
16397 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16398 | # | |
16399 | # INIT-COMMANDS | |
16400 | # | |
16401 | ||
16402 | srcdir="$srcdir" | |
16403 | host="$host" | |
16404 | target="$target" | |
16405 | with_multisubdir="$with_multisubdir" | |
16406 | with_multisrctop="$with_multisrctop" | |
16407 | with_target_subdir="$with_target_subdir" | |
16408 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
16409 | multi_basedir="$multi_basedir" | |
16410 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
16411 | CC="$CC" | |
54f0deb0 ILT |
16412 | CXX="$CXX" |
16413 | GFORTRAN="$GFORTRAN" | |
7a938933 ILT |
16414 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
16415 | ||
16416 | ||
16417 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16418 | # if CDPATH is set. | |
16419 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16420 | ||
16421 | sed_quote_subst='$sed_quote_subst' | |
16422 | double_quote_subst='$double_quote_subst' | |
16423 | delay_variable_subst='$delay_variable_subst' | |
16424 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16425 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16426 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16427 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16428 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16429 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
16430 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
16431 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16432 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
16433 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16434 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16435 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
16436 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16437 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
16438 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
16439 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16440 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16441 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16442 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16443 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16444 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16445 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16446 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16447 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16448 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16449 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16450 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16451 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16452 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16453 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16454 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16455 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16456 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16457 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16458 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16459 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16460 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16461 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16462 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16463 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16464 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16465 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16466 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16467 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16468 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16469 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16470 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
16471 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
16472 | 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"`' | |
16473 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
16474 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16475 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16476 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16477 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16478 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
16479 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
16480 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
16481 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
16482 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
16483 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
16484 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
16485 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
16486 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
16487 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
16488 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16489 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
16490 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
16491 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16492 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16493 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
16494 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
16495 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16496 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16497 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16498 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
16499 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16500 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
16501 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16502 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16503 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16504 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
16505 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
16506 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
16507 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
16508 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
16509 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16510 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
16511 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
16512 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
16513 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
16514 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
16515 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
16516 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
16517 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
16518 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
16519 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16520 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
16521 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
16522 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
16523 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
16524 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
16525 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16526 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
16527 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
16528 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
16529 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
16530 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
16531 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16532 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16533 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
16534 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
16535 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
16536 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
16537 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
16538 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
16539 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
16540 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
16541 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
16542 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
16543 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
16544 | LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`' | |
16545 | reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`' | |
16546 | reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16547 | old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16548 | compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`' | |
16549 | GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`' | |
16550 | lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`' | |
16551 | lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`' | |
16552 | lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`' | |
16553 | lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`' | |
16554 | lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`' | |
16555 | archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`' | |
16556 | enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`' | |
16557 | export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`' | |
16558 | whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`' | |
16559 | compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`' | |
16560 | old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16561 | old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16562 | archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16563 | archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16564 | module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16565 | module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16566 | with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`' | |
16567 | allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`' | |
16568 | no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`' | |
16569 | hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`' | |
16570 | hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`' | |
16571 | hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`' | |
16572 | hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`' | |
16573 | hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`' | |
16574 | hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`' | |
16575 | hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`' | |
16576 | hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`' | |
16577 | inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`' | |
16578 | link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`' | |
16579 | fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`' | |
16580 | always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`' | |
16581 | export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16582 | exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`' | |
16583 | include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`' | |
16584 | prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`' | |
16585 | file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`' | |
16586 | hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`' | |
16587 | ||
16588 | LTCC='$LTCC' | |
16589 | LTCFLAGS='$LTCFLAGS' | |
16590 | compiler='$compiler_DEFAULT' | |
16591 | ||
16592 | # A function that is used when there is no print builtin or printf. | |
16593 | func_fallback_echo () | |
16594 | { | |
16595 | eval 'cat <<_LTECHO_EOF | |
16596 | \$1 | |
16597 | _LTECHO_EOF' | |
16598 | } | |
16599 | ||
16600 | # Quote evaled strings. | |
16601 | for var in SED \ | |
16602 | GREP \ | |
16603 | EGREP \ | |
16604 | FGREP \ | |
16605 | SHELL \ | |
16606 | ECHO \ | |
16607 | LD \ | |
16608 | NM \ | |
16609 | LN_S \ | |
16610 | lt_SP2NL \ | |
16611 | lt_NL2SP \ | |
16612 | reload_flag \ | |
16613 | OBJDUMP \ | |
16614 | deplibs_check_method \ | |
16615 | file_magic_cmd \ | |
16616 | AR \ | |
16617 | AR_FLAGS \ | |
16618 | STRIP \ | |
16619 | RANLIB \ | |
16620 | CC \ | |
16621 | CFLAGS \ | |
16622 | compiler \ | |
16623 | lt_cv_sys_global_symbol_pipe \ | |
16624 | lt_cv_sys_global_symbol_to_cdecl \ | |
16625 | lt_cv_sys_global_symbol_to_c_name_address \ | |
16626 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
16627 | lt_prog_compiler_no_builtin_flag \ | |
16628 | lt_prog_compiler_wl \ | |
16629 | lt_prog_compiler_pic \ | |
16630 | lt_prog_compiler_static \ | |
16631 | lt_cv_prog_compiler_c_o \ | |
16632 | need_locks \ | |
16633 | DSYMUTIL \ | |
16634 | NMEDIT \ | |
16635 | LIPO \ | |
16636 | OTOOL \ | |
16637 | OTOOL64 \ | |
16638 | shrext_cmds \ | |
16639 | export_dynamic_flag_spec \ | |
16640 | whole_archive_flag_spec \ | |
16641 | compiler_needs_object \ | |
16642 | with_gnu_ld \ | |
16643 | allow_undefined_flag \ | |
16644 | no_undefined_flag \ | |
16645 | hardcode_libdir_flag_spec \ | |
16646 | hardcode_libdir_flag_spec_ld \ | |
16647 | hardcode_libdir_separator \ | |
16648 | fix_srcfile_path \ | |
16649 | exclude_expsyms \ | |
16650 | include_expsyms \ | |
16651 | file_list_spec \ | |
16652 | variables_saved_for_relink \ | |
16653 | libname_spec \ | |
16654 | library_names_spec \ | |
16655 | soname_spec \ | |
16656 | install_override_mode \ | |
16657 | finish_eval \ | |
16658 | old_striplib \ | |
16659 | striplib \ | |
16660 | LD_GO \ | |
16661 | reload_flag_GO \ | |
16662 | compiler_GO \ | |
16663 | lt_prog_compiler_no_builtin_flag_GO \ | |
16664 | lt_prog_compiler_wl_GO \ | |
16665 | lt_prog_compiler_pic_GO \ | |
16666 | lt_prog_compiler_static_GO \ | |
16667 | lt_cv_prog_compiler_c_o_GO \ | |
16668 | export_dynamic_flag_spec_GO \ | |
16669 | whole_archive_flag_spec_GO \ | |
16670 | compiler_needs_object_GO \ | |
16671 | with_gnu_ld_GO \ | |
16672 | allow_undefined_flag_GO \ | |
16673 | no_undefined_flag_GO \ | |
16674 | hardcode_libdir_flag_spec_GO \ | |
16675 | hardcode_libdir_flag_spec_ld_GO \ | |
16676 | hardcode_libdir_separator_GO \ | |
16677 | fix_srcfile_path_GO \ | |
16678 | exclude_expsyms_GO \ | |
16679 | include_expsyms_GO \ | |
16680 | file_list_spec_GO; do | |
16681 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16682 | *[\\\\\\\`\\"\\\$]*) | |
16683 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
16684 | ;; | |
16685 | *) | |
16686 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16687 | ;; | |
16688 | esac | |
16689 | done | |
16690 | ||
16691 | # Double-quote double-evaled strings. | |
16692 | for var in reload_cmds \ | |
16693 | old_postinstall_cmds \ | |
16694 | old_postuninstall_cmds \ | |
16695 | old_archive_cmds \ | |
16696 | extract_expsyms_cmds \ | |
16697 | old_archive_from_new_cmds \ | |
16698 | old_archive_from_expsyms_cmds \ | |
16699 | archive_cmds \ | |
16700 | archive_expsym_cmds \ | |
16701 | module_cmds \ | |
16702 | module_expsym_cmds \ | |
16703 | export_symbols_cmds \ | |
16704 | prelink_cmds \ | |
16705 | postinstall_cmds \ | |
16706 | postuninstall_cmds \ | |
16707 | finish_cmds \ | |
16708 | sys_lib_search_path_spec \ | |
16709 | sys_lib_dlsearch_path_spec \ | |
16710 | reload_cmds_GO \ | |
16711 | old_archive_cmds_GO \ | |
16712 | old_archive_from_new_cmds_GO \ | |
16713 | old_archive_from_expsyms_cmds_GO \ | |
16714 | archive_cmds_GO \ | |
16715 | archive_expsym_cmds_GO \ | |
16716 | module_cmds_GO \ | |
16717 | module_expsym_cmds_GO \ | |
16718 | export_symbols_cmds_GO \ | |
16719 | prelink_cmds_GO; do | |
16720 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16721 | *[\\\\\\\`\\"\\\$]*) | |
16722 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
16723 | ;; | |
16724 | *) | |
16725 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16726 | ;; | |
16727 | esac | |
16728 | done | |
16729 | ||
16730 | ac_aux_dir='$ac_aux_dir' | |
16731 | xsi_shell='$xsi_shell' | |
16732 | lt_shell_append='$lt_shell_append' | |
16733 | ||
16734 | # See if we are running on zsh, and set the options which allow our | |
16735 | # commands through without removal of \ escapes INIT. | |
16736 | if test -n "\${ZSH_VERSION+set}" ; then | |
16737 | setopt NO_GLOB_SUBST | |
16738 | fi | |
16739 | ||
16740 | ||
16741 | PACKAGE='$PACKAGE' | |
16742 | VERSION='$VERSION' | |
16743 | TIMESTAMP='$TIMESTAMP' | |
16744 | RM='$RM' | |
16745 | ofile='$ofile' | |
16746 | ||
16747 | ||
16748 | ||
16749 | ||
16750 | ||
16751 | ||
16752 | # Variables needed in config.status (file generation) which aren't already | |
16753 | # passed by autoconf. | |
16754 | SUBDIRS="$SUBDIRS" | |
16755 | ||
16756 | ||
16757 | _ACEOF | |
16758 | ||
16759 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16760 | ||
16761 | # Handling of arguments. | |
16762 | for ac_config_target in $ac_config_targets | |
16763 | do | |
16764 | case $ac_config_target in | |
16765 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
16766 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
16767 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
16768 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
16769 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16770 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
16771 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
16772 | ||
16773 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
16774 | esac | |
16775 | done | |
16776 | ||
16777 | ||
16778 | # If the user did not use the arguments to specify the items to instantiate, | |
16779 | # then the envvar interface is used. Set only those that are not. | |
16780 | # We use the long form for the default assignment because of an extremely | |
16781 | # bizarre bug on SunOS 4.1.3. | |
16782 | if $ac_need_defaults; then | |
16783 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16784 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16785 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16786 | fi | |
16787 | ||
16788 | # Have a temporary directory for convenience. Make it in the build tree | |
16789 | # simply because there is no reason against having it here, and in addition, | |
16790 | # creating and moving files from /tmp can sometimes cause problems. | |
16791 | # Hook for its removal unless debugging. | |
16792 | # Note that there is a small window in which the directory will not be cleaned: | |
16793 | # after its creation but before its name has been assigned to `$tmp'. | |
16794 | $debug || | |
16795 | { | |
16796 | tmp= | |
16797 | trap 'exit_status=$? | |
16798 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16799 | ' 0 | |
16800 | trap 'as_fn_exit 1' 1 2 13 15 | |
16801 | } | |
16802 | # Create a (secure) tmp directory for tmp files. | |
16803 | ||
16804 | { | |
16805 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
16806 | test -n "$tmp" && test -d "$tmp" | |
16807 | } || | |
16808 | { | |
16809 | tmp=./conf$$-$RANDOM | |
16810 | (umask 077 && mkdir "$tmp") | |
16811 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
16812 | ||
16813 | # Set up the scripts for CONFIG_FILES section. | |
16814 | # No need to generate them if there are no CONFIG_FILES. | |
16815 | # This happens for instance with `./config.status config.h'. | |
16816 | if test -n "$CONFIG_FILES"; then | |
16817 | ||
16818 | ||
16819 | ac_cr=`echo X | tr X '\015'` | |
16820 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16821 | # But we know of no other shell where ac_cr would be empty at this | |
16822 | # point, so we can use a bashism as a fallback. | |
16823 | if test "x$ac_cr" = x; then | |
16824 | eval ac_cr=\$\'\\r\' | |
16825 | fi | |
16826 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16827 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16828 | ac_cs_awk_cr='\r' | |
16829 | else | |
16830 | ac_cs_awk_cr=$ac_cr | |
16831 | fi | |
16832 | ||
16833 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
16834 | _ACEOF | |
16835 | ||
16836 | ||
16837 | { | |
16838 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16839 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16840 | echo "_ACEOF" | |
16841 | } >conf$$subs.sh || | |
16842 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16843 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
16844 | ac_delim='%!_!# ' | |
16845 | for ac_last_try in false false false false false :; do | |
16846 | . ./conf$$subs.sh || | |
16847 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16848 | ||
16849 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16850 | if test $ac_delim_n = $ac_delim_num; then | |
16851 | break | |
16852 | elif $ac_last_try; then | |
16853 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16854 | else | |
16855 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16856 | fi | |
16857 | done | |
16858 | rm -f conf$$subs.sh | |
16859 | ||
16860 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16861 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16862 | _ACEOF | |
16863 | sed -n ' | |
16864 | h | |
16865 | s/^/S["/; s/!.*/"]=/ | |
16866 | p | |
16867 | g | |
16868 | s/^[^!]*!// | |
16869 | :repl | |
16870 | t repl | |
16871 | s/'"$ac_delim"'$// | |
16872 | t delim | |
16873 | :nl | |
16874 | h | |
16875 | s/\(.\{148\}\).*/\1/ | |
16876 | t more1 | |
16877 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16878 | p | |
16879 | n | |
16880 | b repl | |
16881 | :more1 | |
16882 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16883 | p | |
16884 | g | |
16885 | s/.\{148\}// | |
16886 | t nl | |
16887 | :delim | |
16888 | h | |
16889 | s/\(.\{148\}\).*/\1/ | |
16890 | t more2 | |
16891 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16892 | p | |
16893 | b | |
16894 | :more2 | |
16895 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16896 | p | |
16897 | g | |
16898 | s/.\{148\}// | |
16899 | t delim | |
16900 | ' <conf$$subs.awk | sed ' | |
16901 | /^[^""]/{ | |
16902 | N | |
16903 | s/\n// | |
16904 | } | |
16905 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16906 | rm -f conf$$subs.awk | |
16907 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16908 | _ACAWK | |
16909 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16910 | for (key in S) S_is_set[key] = 1 | |
16911 | FS = "\a" | |
16912 | ||
16913 | } | |
16914 | { | |
16915 | line = $ 0 | |
16916 | nfields = split(line, field, "@") | |
16917 | substed = 0 | |
16918 | len = length(field[1]) | |
16919 | for (i = 2; i < nfields; i++) { | |
16920 | key = field[i] | |
16921 | keylen = length(key) | |
16922 | if (S_is_set[key]) { | |
16923 | value = S[key] | |
16924 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16925 | len += length(value) + length(field[++i]) | |
16926 | substed = 1 | |
16927 | } else | |
16928 | len += 1 + keylen | |
16929 | } | |
16930 | ||
16931 | print line | |
16932 | } | |
16933 | ||
16934 | _ACAWK | |
16935 | _ACEOF | |
16936 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16937 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16938 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16939 | else | |
16940 | cat | |
16941 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16942 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
16943 | _ACEOF | |
16944 | ||
16945 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
16946 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16947 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16948 | # (actually we leave an empty line to preserve line numbers). | |
16949 | if test "x$srcdir" = x.; then | |
16950 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16951 | s/:*\$(srcdir):*/:/ | |
16952 | s/:*\${srcdir}:*/:/ | |
16953 | s/:*@srcdir@:*/:/ | |
16954 | s/^\([^=]*=[ ]*\):*/\1/ | |
16955 | s/:*$// | |
16956 | s/^[^=]*=[ ]*$// | |
16957 | }' | |
16958 | fi | |
16959 | ||
16960 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16961 | fi # test -n "$CONFIG_FILES" | |
16962 | ||
16963 | # Set up the scripts for CONFIG_HEADERS section. | |
16964 | # No need to generate them if there are no CONFIG_HEADERS. | |
16965 | # This happens for instance with `./config.status Makefile'. | |
16966 | if test -n "$CONFIG_HEADERS"; then | |
16967 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16968 | BEGIN { | |
16969 | _ACEOF | |
16970 | ||
16971 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16972 | # here-document in config.status, that substitutes the proper values into | |
16973 | # config.h.in to produce config.h. | |
16974 | ||
16975 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16976 | # handling of long lines. | |
16977 | ac_delim='%!_!# ' | |
16978 | for ac_last_try in false false :; do | |
16979 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16980 | if test -z "$ac_t"; then | |
16981 | break | |
16982 | elif $ac_last_try; then | |
16983 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
16984 | else | |
16985 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16986 | fi | |
16987 | done | |
16988 | ||
16989 | # For the awk script, D is an array of macro values keyed by name, | |
16990 | # likewise P contains macro parameters if any. Preserve backslash | |
16991 | # newline sequences. | |
16992 | ||
16993 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16994 | sed -n ' | |
16995 | s/.\{148\}/&'"$ac_delim"'/g | |
16996 | t rset | |
16997 | :rset | |
16998 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16999 | t def | |
17000 | d | |
17001 | :def | |
17002 | s/\\$// | |
17003 | t bsnl | |
17004 | s/["\\]/\\&/g | |
17005 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17006 | D["\1"]=" \3"/p | |
17007 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17008 | d | |
17009 | :bsnl | |
17010 | s/["\\]/\\&/g | |
17011 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17012 | D["\1"]=" \3\\\\\\n"\\/p | |
17013 | t cont | |
17014 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17015 | t cont | |
17016 | d | |
17017 | :cont | |
17018 | n | |
17019 | s/.\{148\}/&'"$ac_delim"'/g | |
17020 | t clear | |
17021 | :clear | |
17022 | s/\\$// | |
17023 | t bsnlc | |
17024 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17025 | d | |
17026 | :bsnlc | |
17027 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17028 | b cont | |
17029 | ' <confdefs.h | sed ' | |
17030 | s/'"$ac_delim"'/"\\\ | |
17031 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17032 | ||
17033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17034 | for (key in D) D_is_set[key] = 1 | |
17035 | FS = "\a" | |
17036 | } | |
17037 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17038 | line = \$ 0 | |
17039 | split(line, arg, " ") | |
17040 | if (arg[1] == "#") { | |
17041 | defundef = arg[2] | |
17042 | mac1 = arg[3] | |
17043 | } else { | |
17044 | defundef = substr(arg[1], 2) | |
17045 | mac1 = arg[2] | |
17046 | } | |
17047 | split(mac1, mac2, "(") #) | |
17048 | macro = mac2[1] | |
17049 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17050 | if (D_is_set[macro]) { | |
17051 | # Preserve the white space surrounding the "#". | |
17052 | print prefix "define", macro P[macro] D[macro] | |
17053 | next | |
17054 | } else { | |
17055 | # Replace #undef with comments. This is necessary, for example, | |
17056 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17057 | # on some systems where configure will not decide to define it. | |
17058 | if (defundef == "undef") { | |
17059 | print "/*", prefix defundef, macro, "*/" | |
17060 | next | |
17061 | } | |
17062 | } | |
17063 | } | |
17064 | { print } | |
17065 | _ACAWK | |
17066 | _ACEOF | |
17067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17068 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
17069 | fi # test -n "$CONFIG_HEADERS" | |
17070 | ||
17071 | ||
17072 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
17073 | shift | |
17074 | for ac_tag | |
17075 | do | |
17076 | case $ac_tag in | |
17077 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17078 | esac | |
17079 | case $ac_mode$ac_tag in | |
17080 | :[FHL]*:*);; | |
17081 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
17082 | :[FH]-) ac_tag=-:-;; | |
17083 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17084 | esac | |
17085 | ac_save_IFS=$IFS | |
17086 | IFS=: | |
17087 | set x $ac_tag | |
17088 | IFS=$ac_save_IFS | |
17089 | shift | |
17090 | ac_file=$1 | |
17091 | shift | |
17092 | ||
17093 | case $ac_mode in | |
17094 | :L) ac_source=$1;; | |
17095 | :[FH]) | |
17096 | ac_file_inputs= | |
17097 | for ac_f | |
17098 | do | |
17099 | case $ac_f in | |
17100 | -) ac_f="$tmp/stdin";; | |
17101 | *) # Look for the file first in the build tree, then in the source tree | |
17102 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17103 | # because $ac_f cannot contain `:'. | |
17104 | test -f "$ac_f" || | |
17105 | case $ac_f in | |
17106 | [\\/$]*) false;; | |
17107 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17108 | esac || | |
17109 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
17110 | esac | |
17111 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17112 | as_fn_append ac_file_inputs " '$ac_f'" | |
17113 | done | |
17114 | ||
17115 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17116 | # use $as_me), people would be surprised to read: | |
17117 | # /* config.h. Generated by config.status. */ | |
17118 | configure_input='Generated from '` | |
17119 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17120 | `' by configure.' | |
17121 | if test x"$ac_file" != x-; then | |
17122 | configure_input="$ac_file. $configure_input" | |
17123 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17124 | $as_echo "$as_me: creating $ac_file" >&6;} | |
17125 | fi | |
17126 | # Neutralize special characters interpreted by sed in replacement strings. | |
17127 | case $configure_input in #( | |
17128 | *\&* | *\|* | *\\* ) | |
17129 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17130 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17131 | *) ac_sed_conf_input=$configure_input;; | |
17132 | esac | |
17133 | ||
17134 | case $ac_tag in | |
17135 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
17136 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
17137 | esac | |
17138 | ;; | |
17139 | esac | |
17140 | ||
17141 | ac_dir=`$as_dirname -- "$ac_file" || | |
17142 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17143 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17144 | X"$ac_file" : 'X\(//\)$' \| \ | |
17145 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17146 | $as_echo X"$ac_file" | | |
17147 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17148 | s//\1/ | |
17149 | q | |
17150 | } | |
17151 | /^X\(\/\/\)[^/].*/{ | |
17152 | s//\1/ | |
17153 | q | |
17154 | } | |
17155 | /^X\(\/\/\)$/{ | |
17156 | s//\1/ | |
17157 | q | |
17158 | } | |
17159 | /^X\(\/\).*/{ | |
17160 | s//\1/ | |
17161 | q | |
17162 | } | |
17163 | s/.*/./; q'` | |
17164 | as_dir="$ac_dir"; as_fn_mkdir_p | |
17165 | ac_builddir=. | |
17166 | ||
17167 | case "$ac_dir" in | |
17168 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17169 | *) | |
17170 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17171 | # A ".." for each directory in $ac_dir_suffix. | |
17172 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17173 | case $ac_top_builddir_sub in | |
17174 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17175 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17176 | esac ;; | |
17177 | esac | |
17178 | ac_abs_top_builddir=$ac_pwd | |
17179 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17180 | # for backward compatibility: | |
17181 | ac_top_builddir=$ac_top_build_prefix | |
17182 | ||
17183 | case $srcdir in | |
17184 | .) # We are building in place. | |
17185 | ac_srcdir=. | |
17186 | ac_top_srcdir=$ac_top_builddir_sub | |
17187 | ac_abs_top_srcdir=$ac_pwd ;; | |
17188 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17189 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17190 | ac_top_srcdir=$srcdir | |
17191 | ac_abs_top_srcdir=$srcdir ;; | |
17192 | *) # Relative name. | |
17193 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17194 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17195 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17196 | esac | |
17197 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
17198 | ||
17199 | ||
17200 | case $ac_mode in | |
17201 | :F) | |
17202 | # | |
17203 | # CONFIG_FILE | |
17204 | # | |
17205 | ||
17206 | case $INSTALL in | |
17207 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17208 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17209 | esac | |
17210 | ac_MKDIR_P=$MKDIR_P | |
17211 | case $MKDIR_P in | |
17212 | [\\/$]* | ?:[\\/]* ) ;; | |
17213 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17214 | esac | |
17215 | _ACEOF | |
17216 | ||
17217 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17218 | # If the template does not know about datarootdir, expand it. | |
17219 | # FIXME: This hack should be removed a few years after 2.60. | |
17220 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17221 | ac_sed_dataroot=' | |
17222 | /datarootdir/ { | |
17223 | p | |
17224 | q | |
17225 | } | |
17226 | /@datadir@/p | |
17227 | /@docdir@/p | |
17228 | /@infodir@/p | |
17229 | /@localedir@/p | |
17230 | /@mandir@/p' | |
17231 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17232 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17233 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17235 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17236 | _ACEOF | |
17237 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17238 | ac_datarootdir_hack=' | |
17239 | s&@datadir@&$datadir&g | |
17240 | s&@docdir@&$docdir&g | |
17241 | s&@infodir@&$infodir&g | |
17242 | s&@localedir@&$localedir&g | |
17243 | s&@mandir@&$mandir&g | |
17244 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17245 | esac | |
17246 | _ACEOF | |
17247 | ||
17248 | # Neutralize VPATH when `$srcdir' = `.'. | |
17249 | # Shell code in configure.ac might set extrasub. | |
17250 | # FIXME: do we really want to maintain this feature? | |
17251 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17252 | ac_sed_extra="$ac_vpsub | |
17253 | $extrasub | |
17254 | _ACEOF | |
17255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17256 | :t | |
17257 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17258 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17259 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17260 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17261 | s&@srcdir@&$ac_srcdir&;t t | |
17262 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17263 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17264 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17265 | s&@builddir@&$ac_builddir&;t t | |
17266 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17267 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17268 | s&@INSTALL@&$ac_INSTALL&;t t | |
17269 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
17270 | $ac_datarootdir_hack | |
17271 | " | |
17272 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
17273 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17274 | ||
17275 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17276 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
17277 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
17278 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17279 | which seems to be undefined. Please make sure it is defined." >&5 | |
17280 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17281 | which seems to be undefined. Please make sure it is defined." >&2;} | |
17282 | ||
17283 | rm -f "$tmp/stdin" | |
17284 | case $ac_file in | |
17285 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
17286 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
17287 | esac \ | |
17288 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17289 | ;; | |
17290 | :H) | |
17291 | # | |
17292 | # CONFIG_HEADER | |
17293 | # | |
17294 | if test x"$ac_file" != x-; then | |
17295 | { | |
17296 | $as_echo "/* $configure_input */" \ | |
17297 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
17298 | } >"$tmp/config.h" \ | |
17299 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17300 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
17301 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
17302 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
17303 | else | |
17304 | rm -f "$ac_file" | |
17305 | mv "$tmp/config.h" "$ac_file" \ | |
17306 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17307 | fi | |
17308 | else | |
17309 | $as_echo "/* $configure_input */" \ | |
17310 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
17311 | || as_fn_error "could not create -" "$LINENO" 5 | |
17312 | fi | |
17313 | # Compute "$ac_file"'s index in $config_headers. | |
17314 | _am_arg="$ac_file" | |
17315 | _am_stamp_count=1 | |
17316 | for _am_header in $config_headers :; do | |
17317 | case $_am_header in | |
17318 | $_am_arg | $_am_arg:* ) | |
17319 | break ;; | |
17320 | * ) | |
17321 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17322 | esac | |
17323 | done | |
17324 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
17325 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17326 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
17327 | X"$_am_arg" : 'X\(//\)$' \| \ | |
17328 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
17329 | $as_echo X"$_am_arg" | | |
17330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17331 | s//\1/ | |
17332 | q | |
17333 | } | |
17334 | /^X\(\/\/\)[^/].*/{ | |
17335 | s//\1/ | |
17336 | q | |
17337 | } | |
17338 | /^X\(\/\/\)$/{ | |
17339 | s//\1/ | |
17340 | q | |
17341 | } | |
17342 | /^X\(\/\).*/{ | |
17343 | s//\1/ | |
17344 | q | |
17345 | } | |
17346 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17347 | ;; | |
17348 | ||
17349 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
17350 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17351 | ;; | |
17352 | esac | |
17353 | ||
17354 | ||
17355 | case $ac_file$ac_mode in | |
17356 | "default-1":C) | |
17357 | # Only add multilib support code if we just rebuilt the top-level | |
17358 | # Makefile. | |
17359 | case " $CONFIG_FILES " in | |
17360 | *" Makefile "*) | |
17361 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
17362 | ;; | |
17363 | esac ;; | |
17364 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
17365 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
17366 | # are listed without --file. Let's play safe and only enable the eval | |
17367 | # if we detect the quoting. | |
17368 | case $CONFIG_FILES in | |
17369 | *\'*) eval set x "$CONFIG_FILES" ;; | |
17370 | *) set x $CONFIG_FILES ;; | |
17371 | esac | |
17372 | shift | |
17373 | for mf | |
17374 | do | |
17375 | # Strip MF so we end up with the name of the file. | |
17376 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17377 | # Check whether this is an Automake generated Makefile or not. | |
17378 | # We used to match only the files named `Makefile.in', but | |
17379 | # some people rename them; so instead we look at the file content. | |
17380 | # Grep'ing the first line is not enough: some people post-process | |
17381 | # each Makefile.in and add a new line on top of each file to say so. | |
17382 | # Grep'ing the whole file is not good either: AIX grep has a line | |
17383 | # limit of 2048, but all sed's we know have understand at least 4000. | |
17384 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
17385 | dirpart=`$as_dirname -- "$mf" || | |
17386 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17387 | X"$mf" : 'X\(//\)[^/]' \| \ | |
17388 | X"$mf" : 'X\(//\)$' \| \ | |
17389 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
17390 | $as_echo X"$mf" | | |
17391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17392 | s//\1/ | |
17393 | q | |
17394 | } | |
17395 | /^X\(\/\/\)[^/].*/{ | |
17396 | s//\1/ | |
17397 | q | |
17398 | } | |
17399 | /^X\(\/\/\)$/{ | |
17400 | s//\1/ | |
17401 | q | |
17402 | } | |
17403 | /^X\(\/\).*/{ | |
17404 | s//\1/ | |
17405 | q | |
17406 | } | |
17407 | s/.*/./; q'` | |
17408 | else | |
17409 | continue | |
17410 | fi | |
17411 | # Extract the definition of DEPDIR, am__include, and am__quote | |
17412 | # from the Makefile without running `make'. | |
17413 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
17414 | test -z "$DEPDIR" && continue | |
17415 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
17416 | test -z "am__include" && continue | |
17417 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
17418 | # When using ansi2knr, U may be empty or an underscore; expand it | |
17419 | U=`sed -n 's/^U = //p' < "$mf"` | |
17420 | # Find all dependency output files, they are included files with | |
17421 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17422 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
17423 | # expansion. | |
17424 | for file in `sed -n " | |
17425 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
17426 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
17427 | # Make sure the directory exists. | |
17428 | test -f "$dirpart/$file" && continue | |
17429 | fdir=`$as_dirname -- "$file" || | |
17430 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17431 | X"$file" : 'X\(//\)[^/]' \| \ | |
17432 | X"$file" : 'X\(//\)$' \| \ | |
17433 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
17434 | $as_echo X"$file" | | |
17435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17436 | s//\1/ | |
17437 | q | |
17438 | } | |
17439 | /^X\(\/\/\)[^/].*/{ | |
17440 | s//\1/ | |
17441 | q | |
17442 | } | |
17443 | /^X\(\/\/\)$/{ | |
17444 | s//\1/ | |
17445 | q | |
17446 | } | |
17447 | /^X\(\/\).*/{ | |
17448 | s//\1/ | |
17449 | q | |
17450 | } | |
17451 | s/.*/./; q'` | |
17452 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
17453 | # echo "creating $dirpart/$file" | |
17454 | echo '# dummy' > "$dirpart/$file" | |
17455 | done | |
17456 | done | |
17457 | } | |
17458 | ;; | |
17459 | "libtool":C) | |
17460 | ||
17461 | # See if we are running on zsh, and set the options which allow our | |
17462 | # commands through without removal of \ escapes. | |
17463 | if test -n "${ZSH_VERSION+set}" ; then | |
17464 | setopt NO_GLOB_SUBST | |
17465 | fi | |
17466 | ||
17467 | cfgfile="${ofile}T" | |
17468 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17469 | $RM "$cfgfile" | |
17470 | ||
17471 | cat <<_LT_EOF >> "$cfgfile" | |
17472 | #! $SHELL | |
17473 | ||
17474 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
17475 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17476 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17477 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17478 | # | |
17479 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
17480 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
17481 | # Written by Gordon Matzigkeit, 1996 | |
17482 | # | |
17483 | # This file is part of GNU Libtool. | |
17484 | # | |
17485 | # GNU Libtool is free software; you can redistribute it and/or | |
17486 | # modify it under the terms of the GNU General Public License as | |
17487 | # published by the Free Software Foundation; either version 2 of | |
17488 | # the License, or (at your option) any later version. | |
17489 | # | |
17490 | # As a special exception to the GNU General Public License, | |
17491 | # if you distribute this file as part of a program or library that | |
17492 | # is built using GNU Libtool, you may include this file under the | |
17493 | # same distribution terms that you use for the rest of that program. | |
17494 | # | |
17495 | # GNU Libtool is distributed in the hope that it will be useful, | |
17496 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17497 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17498 | # GNU General Public License for more details. | |
17499 | # | |
17500 | # You should have received a copy of the GNU General Public License | |
17501 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
17502 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17503 | # obtained by writing to the Free Software Foundation, Inc., | |
17504 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17505 | ||
17506 | ||
17507 | # The names of the tagged configurations supported by this script. | |
17508 | available_tags="GO " | |
17509 | ||
17510 | # ### BEGIN LIBTOOL CONFIG | |
17511 | ||
17512 | # A sed program that does not truncate output. | |
17513 | SED=$lt_SED | |
17514 | ||
17515 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
17516 | Xsed="\$SED -e 1s/^X//" | |
17517 | ||
17518 | # A grep program that handles long lines. | |
17519 | GREP=$lt_GREP | |
17520 | ||
17521 | # An ERE matcher. | |
17522 | EGREP=$lt_EGREP | |
17523 | ||
17524 | # A literal string matcher. | |
17525 | FGREP=$lt_FGREP | |
17526 | ||
17527 | # Shell to use when invoking shell scripts. | |
17528 | SHELL=$lt_SHELL | |
17529 | ||
17530 | # An echo program that protects backslashes. | |
17531 | ECHO=$lt_ECHO | |
17532 | ||
17533 | # Which release of libtool.m4 was used? | |
17534 | macro_version=$macro_version | |
17535 | macro_revision=$macro_revision | |
17536 | ||
17537 | # Whether or not to build shared libraries. | |
17538 | build_libtool_libs=$enable_shared | |
17539 | ||
17540 | # Whether or not to build static libraries. | |
17541 | build_old_libs=$enable_static | |
17542 | ||
17543 | # What type of objects to build. | |
17544 | pic_mode=$pic_mode | |
17545 | ||
17546 | # Whether or not to optimize for fast installation. | |
17547 | fast_install=$enable_fast_install | |
17548 | ||
17549 | # The host system. | |
17550 | host_alias=$host_alias | |
17551 | host=$host | |
17552 | host_os=$host_os | |
17553 | ||
17554 | # The build system. | |
17555 | build_alias=$build_alias | |
17556 | build=$build | |
17557 | build_os=$build_os | |
17558 | ||
17559 | # A BSD- or MS-compatible name lister. | |
17560 | NM=$lt_NM | |
17561 | ||
17562 | # Whether we need soft or hard links. | |
17563 | LN_S=$lt_LN_S | |
17564 | ||
17565 | # What is the maximum length of a command? | |
17566 | max_cmd_len=$max_cmd_len | |
17567 | ||
17568 | # Object file suffix (normally "o"). | |
17569 | objext=$ac_objext | |
17570 | ||
17571 | # Executable file suffix (normally ""). | |
17572 | exeext=$exeext | |
17573 | ||
17574 | # whether the shell understands "unset". | |
17575 | lt_unset=$lt_unset | |
17576 | ||
17577 | # turn spaces into newlines. | |
17578 | SP2NL=$lt_lt_SP2NL | |
17579 | ||
17580 | # turn newlines into spaces. | |
17581 | NL2SP=$lt_lt_NL2SP | |
17582 | ||
17583 | # An object symbol dumper. | |
17584 | OBJDUMP=$lt_OBJDUMP | |
17585 | ||
17586 | # Method to check whether dependent libraries are shared objects. | |
17587 | deplibs_check_method=$lt_deplibs_check_method | |
17588 | ||
17589 | # Command to use when deplibs_check_method == "file_magic". | |
17590 | file_magic_cmd=$lt_file_magic_cmd | |
17591 | ||
17592 | # The archiver. | |
17593 | AR=$lt_AR | |
17594 | AR_FLAGS=$lt_AR_FLAGS | |
17595 | ||
17596 | # A symbol stripping program. | |
17597 | STRIP=$lt_STRIP | |
17598 | ||
17599 | # Commands used to install an old-style archive. | |
17600 | RANLIB=$lt_RANLIB | |
17601 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17602 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17603 | ||
17604 | # Whether to use a lock for old archive extraction. | |
17605 | lock_old_archive_extraction=$lock_old_archive_extraction | |
17606 | ||
17607 | # A C compiler. | |
17608 | LTCC=$lt_CC | |
17609 | ||
17610 | # LTCC compiler flags. | |
17611 | LTCFLAGS=$lt_CFLAGS | |
17612 | ||
17613 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17614 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17615 | ||
17616 | # Transform the output of nm in a proper C declaration. | |
17617 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17618 | ||
17619 | # Transform the output of nm in a C name address pair. | |
17620 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17621 | ||
17622 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17623 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17624 | ||
17625 | # The name of the directory that contains temporary libtool files. | |
17626 | objdir=$objdir | |
17627 | ||
17628 | # Used to examine libraries when file_magic_cmd begins with "file". | |
17629 | MAGIC_CMD=$MAGIC_CMD | |
17630 | ||
17631 | # Must we lock files when doing compilation? | |
17632 | need_locks=$lt_need_locks | |
17633 | ||
17634 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
17635 | DSYMUTIL=$lt_DSYMUTIL | |
17636 | ||
17637 | # Tool to change global to local symbols on Mac OS X. | |
17638 | NMEDIT=$lt_NMEDIT | |
17639 | ||
17640 | # Tool to manipulate fat objects and archives on Mac OS X. | |
17641 | LIPO=$lt_LIPO | |
17642 | ||
17643 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
17644 | OTOOL=$lt_OTOOL | |
17645 | ||
17646 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
17647 | OTOOL64=$lt_OTOOL64 | |
17648 | ||
17649 | # Old archive suffix (normally "a"). | |
17650 | libext=$libext | |
17651 | ||
17652 | # Shared library suffix (normally ".so"). | |
17653 | shrext_cmds=$lt_shrext_cmds | |
17654 | ||
17655 | # The commands to extract the exported symbol list from a shared archive. | |
17656 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17657 | ||
17658 | # Variables whose values should be saved in libtool wrapper scripts and | |
17659 | # restored at link time. | |
17660 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
17661 | ||
17662 | # Do we need the "lib" prefix for modules? | |
17663 | need_lib_prefix=$need_lib_prefix | |
17664 | ||
17665 | # Do we need a version for libraries? | |
17666 | need_version=$need_version | |
17667 | ||
17668 | # Library versioning type. | |
17669 | version_type=$version_type | |
17670 | ||
17671 | # Shared library runtime path variable. | |
17672 | runpath_var=$runpath_var | |
17673 | ||
17674 | # Shared library path variable. | |
17675 | shlibpath_var=$shlibpath_var | |
17676 | ||
17677 | # Is shlibpath searched before the hard-coded library search path? | |
17678 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17679 | ||
17680 | # Format of library name prefix. | |
17681 | libname_spec=$lt_libname_spec | |
17682 | ||
17683 | # List of archive names. First name is the real one, the rest are links. | |
17684 | # The last name is the one that the linker finds with -lNAME | |
17685 | library_names_spec=$lt_library_names_spec | |
17686 | ||
17687 | # The coded name of the library, if different from the real name. | |
17688 | soname_spec=$lt_soname_spec | |
17689 | ||
17690 | # Permission mode override for installation of shared libraries. | |
17691 | install_override_mode=$lt_install_override_mode | |
17692 | ||
17693 | # Command to use after installation of a shared archive. | |
17694 | postinstall_cmds=$lt_postinstall_cmds | |
17695 | ||
17696 | # Command to use after uninstallation of a shared archive. | |
17697 | postuninstall_cmds=$lt_postuninstall_cmds | |
17698 | ||
17699 | # Commands used to finish a libtool library installation in a directory. | |
17700 | finish_cmds=$lt_finish_cmds | |
17701 | ||
17702 | # As "finish_cmds", except a single script fragment to be evaled but | |
17703 | # not shown. | |
17704 | finish_eval=$lt_finish_eval | |
17705 | ||
17706 | # Whether we should hardcode library paths into libraries. | |
17707 | hardcode_into_libs=$hardcode_into_libs | |
17708 | ||
17709 | # Compile-time system search path for libraries. | |
17710 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17711 | ||
17712 | # Run-time system search path for libraries. | |
17713 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17714 | ||
17715 | # Whether dlopen is supported. | |
17716 | dlopen_support=$enable_dlopen | |
17717 | ||
17718 | # Whether dlopen of programs is supported. | |
17719 | dlopen_self=$enable_dlopen_self | |
17720 | ||
17721 | # Whether dlopen of statically linked programs is supported. | |
17722 | dlopen_self_static=$enable_dlopen_self_static | |
17723 | ||
17724 | # Commands to strip libraries. | |
17725 | old_striplib=$lt_old_striplib | |
17726 | striplib=$lt_striplib | |
17727 | ||
17728 | ||
17729 | # The linker used to build libraries. | |
17730 | LD=$lt_LD | |
17731 | ||
17732 | # How to create reloadable object files. | |
17733 | reload_flag=$lt_reload_flag | |
17734 | reload_cmds=$lt_reload_cmds | |
17735 | ||
17736 | # Commands used to build an old-style archive. | |
17737 | old_archive_cmds=$lt_old_archive_cmds | |
17738 | ||
17739 | # A language specific compiler. | |
17740 | CC=$lt_compiler | |
17741 | ||
17742 | # Is the compiler the GNU compiler? | |
17743 | with_gcc=$GCC | |
17744 | ||
17745 | # Compiler flag to turn off builtin functions. | |
17746 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
17747 | ||
17748 | # How to pass a linker flag through the compiler. | |
17749 | wl=$lt_lt_prog_compiler_wl | |
17750 | ||
17751 | # Additional compiler flags for building library objects. | |
17752 | pic_flag=$lt_lt_prog_compiler_pic | |
17753 | ||
17754 | # Compiler flag to prevent dynamic linking. | |
17755 | link_static_flag=$lt_lt_prog_compiler_static | |
17756 | ||
17757 | # Does compiler simultaneously support -c and -o options? | |
17758 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
17759 | ||
17760 | # Whether or not to add -lc for building shared libraries. | |
17761 | build_libtool_need_lc=$archive_cmds_need_lc | |
17762 | ||
17763 | # Whether or not to disallow shared libs when runtime libs are static. | |
17764 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
17765 | ||
17766 | # Compiler flag to allow reflexive dlopens. | |
17767 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
17768 | ||
17769 | # Compiler flag to generate shared objects directly from archives. | |
17770 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
17771 | ||
17772 | # Whether the compiler copes with passing no objects directly. | |
17773 | compiler_needs_object=$lt_compiler_needs_object | |
17774 | ||
17775 | # Create an old-style archive from a shared archive. | |
17776 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
17777 | ||
17778 | # Create a temporary old-style archive to link instead of a shared archive. | |
17779 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
17780 | ||
17781 | # Commands used to build a shared archive. | |
17782 | archive_cmds=$lt_archive_cmds | |
17783 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
17784 | ||
17785 | # Commands used to build a loadable module if different from building | |
17786 | # a shared archive. | |
17787 | module_cmds=$lt_module_cmds | |
17788 | module_expsym_cmds=$lt_module_expsym_cmds | |
17789 | ||
17790 | # Whether we are building with GNU ld or not. | |
17791 | with_gnu_ld=$lt_with_gnu_ld | |
17792 | ||
17793 | # Flag that allows shared libraries with undefined symbols to be built. | |
17794 | allow_undefined_flag=$lt_allow_undefined_flag | |
17795 | ||
17796 | # Flag that enforces no undefined symbols. | |
17797 | no_undefined_flag=$lt_no_undefined_flag | |
17798 | ||
17799 | # Flag to hardcode \$libdir into a binary during linking. | |
17800 | # This must work even if \$libdir does not exist | |
17801 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
17802 | ||
17803 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
17804 | # during linking. This must work even if \$libdir does not exist. | |
17805 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
17806 | ||
17807 | # Whether we need a single "-rpath" flag with a separated argument. | |
17808 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
17809 | ||
17810 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17811 | # DIR into the resulting binary. | |
17812 | hardcode_direct=$hardcode_direct | |
17813 | ||
17814 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17815 | # DIR into the resulting binary and the resulting library dependency is | |
17816 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17817 | # library is relocated. | |
17818 | hardcode_direct_absolute=$hardcode_direct_absolute | |
17819 | ||
17820 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17821 | # into the resulting binary. | |
17822 | hardcode_minus_L=$hardcode_minus_L | |
17823 | ||
17824 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17825 | # into the resulting binary. | |
17826 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
17827 | ||
17828 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
17829 | # into the library and all subsequent libraries and executables linked | |
17830 | # against it. | |
17831 | hardcode_automatic=$hardcode_automatic | |
17832 | ||
17833 | # Set to yes if linker adds runtime paths of dependent libraries | |
17834 | # to runtime path list. | |
17835 | inherit_rpath=$inherit_rpath | |
17836 | ||
17837 | # Whether libtool must link a program against all its dependency libraries. | |
17838 | link_all_deplibs=$link_all_deplibs | |
17839 | ||
17840 | # Fix the shell variable \$srcfile for the compiler. | |
17841 | fix_srcfile_path=$lt_fix_srcfile_path | |
17842 | ||
17843 | # Set to "yes" if exported symbols are required. | |
17844 | always_export_symbols=$always_export_symbols | |
17845 | ||
17846 | # The commands to list exported symbols. | |
17847 | export_symbols_cmds=$lt_export_symbols_cmds | |
17848 | ||
17849 | # Symbols that should not be listed in the preloaded symbols. | |
17850 | exclude_expsyms=$lt_exclude_expsyms | |
17851 | ||
17852 | # Symbols that must always be exported. | |
17853 | include_expsyms=$lt_include_expsyms | |
17854 | ||
17855 | # Commands necessary for linking programs (against libraries) with templates. | |
17856 | prelink_cmds=$lt_prelink_cmds | |
17857 | ||
17858 | # Specify filename containing input files. | |
17859 | file_list_spec=$lt_file_list_spec | |
17860 | ||
17861 | # How to hardcode a shared library path into an executable. | |
17862 | hardcode_action=$hardcode_action | |
17863 | ||
17864 | # ### END LIBTOOL CONFIG | |
17865 | ||
17866 | _LT_EOF | |
17867 | ||
17868 | case $host_os in | |
17869 | aix3*) | |
17870 | cat <<\_LT_EOF >> "$cfgfile" | |
17871 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17872 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17873 | # vanish in a puff of smoke. | |
17874 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17875 | COLLECT_NAMES= | |
17876 | export COLLECT_NAMES | |
17877 | fi | |
17878 | _LT_EOF | |
17879 | ;; | |
17880 | esac | |
17881 | ||
17882 | ||
17883 | ltmain="$ac_aux_dir/ltmain.sh" | |
17884 | ||
17885 | ||
17886 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17887 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17888 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17889 | # is reportedly fixed, but why not run on old versions too? | |
17890 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
17891 | || (rm -f "$cfgfile"; exit 1) | |
17892 | ||
17893 | case $xsi_shell in | |
17894 | yes) | |
17895 | cat << \_LT_EOF >> "$cfgfile" | |
17896 | ||
17897 | # func_dirname file append nondir_replacement | |
17898 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17899 | # otherwise set result to NONDIR_REPLACEMENT. | |
17900 | func_dirname () | |
17901 | { | |
17902 | case ${1} in | |
17903 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17904 | * ) func_dirname_result="${3}" ;; | |
17905 | esac | |
17906 | } | |
17907 | ||
17908 | # func_basename file | |
17909 | func_basename () | |
17910 | { | |
17911 | func_basename_result="${1##*/}" | |
17912 | } | |
17913 | ||
17914 | # func_dirname_and_basename file append nondir_replacement | |
17915 | # perform func_basename and func_dirname in a single function | |
17916 | # call: | |
17917 | # dirname: Compute the dirname of FILE. If nonempty, | |
17918 | # add APPEND to the result, otherwise set result | |
17919 | # to NONDIR_REPLACEMENT. | |
17920 | # value returned in "$func_dirname_result" | |
17921 | # basename: Compute filename of FILE. | |
17922 | # value retuned in "$func_basename_result" | |
17923 | # Implementation must be kept synchronized with func_dirname | |
17924 | # and func_basename. For efficiency, we do not delegate to | |
17925 | # those functions but instead duplicate the functionality here. | |
17926 | func_dirname_and_basename () | |
17927 | { | |
17928 | case ${1} in | |
17929 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17930 | * ) func_dirname_result="${3}" ;; | |
17931 | esac | |
17932 | func_basename_result="${1##*/}" | |
17933 | } | |
17934 | ||
17935 | # func_stripname prefix suffix name | |
17936 | # strip PREFIX and SUFFIX off of NAME. | |
17937 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17938 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17939 | # dot (in which case that matches only a dot). | |
17940 | func_stripname () | |
17941 | { | |
17942 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
17943 | # positional parameters, so assign one to ordinary parameter first. | |
17944 | func_stripname_result=${3} | |
17945 | func_stripname_result=${func_stripname_result#"${1}"} | |
17946 | func_stripname_result=${func_stripname_result%"${2}"} | |
17947 | } | |
17948 | ||
17949 | # func_opt_split | |
17950 | func_opt_split () | |
17951 | { | |
17952 | func_opt_split_opt=${1%%=*} | |
17953 | func_opt_split_arg=${1#*=} | |
17954 | } | |
17955 | ||
17956 | # func_lo2o object | |
17957 | func_lo2o () | |
17958 | { | |
17959 | case ${1} in | |
17960 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
17961 | *) func_lo2o_result=${1} ;; | |
17962 | esac | |
17963 | } | |
17964 | ||
17965 | # func_xform libobj-or-source | |
17966 | func_xform () | |
17967 | { | |
17968 | func_xform_result=${1%.*}.lo | |
17969 | } | |
17970 | ||
17971 | # func_arith arithmetic-term... | |
17972 | func_arith () | |
17973 | { | |
17974 | func_arith_result=$(( $* )) | |
17975 | } | |
17976 | ||
17977 | # func_len string | |
17978 | # STRING may not start with a hyphen. | |
17979 | func_len () | |
17980 | { | |
17981 | func_len_result=${#1} | |
17982 | } | |
17983 | ||
17984 | _LT_EOF | |
17985 | ;; | |
17986 | *) # Bourne compatible functions. | |
17987 | cat << \_LT_EOF >> "$cfgfile" | |
17988 | ||
17989 | # func_dirname file append nondir_replacement | |
17990 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17991 | # otherwise set result to NONDIR_REPLACEMENT. | |
17992 | func_dirname () | |
17993 | { | |
17994 | # Extract subdirectory from the argument. | |
17995 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
17996 | if test "X$func_dirname_result" = "X${1}"; then | |
17997 | func_dirname_result="${3}" | |
17998 | else | |
17999 | func_dirname_result="$func_dirname_result${2}" | |
18000 | fi | |
18001 | } | |
18002 | ||
18003 | # func_basename file | |
18004 | func_basename () | |
18005 | { | |
18006 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
18007 | } | |
18008 | ||
18009 | ||
18010 | # func_stripname prefix suffix name | |
18011 | # strip PREFIX and SUFFIX off of NAME. | |
18012 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18013 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18014 | # dot (in which case that matches only a dot). | |
18015 | # func_strip_suffix prefix name | |
18016 | func_stripname () | |
18017 | { | |
18018 | case ${2} in | |
18019 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
18020 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
18021 | esac | |
18022 | } | |
18023 | ||
18024 | # sed scripts: | |
18025 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18026 | my_sed_long_arg='1s/^-[^=]*=//' | |
18027 | ||
18028 | # func_opt_split | |
18029 | func_opt_split () | |
18030 | { | |
18031 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
18032 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
18033 | } | |
18034 | ||
18035 | # func_lo2o object | |
18036 | func_lo2o () | |
18037 | { | |
18038 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
18039 | } | |
18040 | ||
18041 | # func_xform libobj-or-source | |
18042 | func_xform () | |
18043 | { | |
18044 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
18045 | } | |
18046 | ||
18047 | # func_arith arithmetic-term... | |
18048 | func_arith () | |
18049 | { | |
18050 | func_arith_result=`expr "$@"` | |
18051 | } | |
18052 | ||
18053 | # func_len string | |
18054 | # STRING may not start with a hyphen. | |
18055 | func_len () | |
18056 | { | |
18057 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18058 | } | |
18059 | ||
18060 | _LT_EOF | |
18061 | esac | |
18062 | ||
18063 | case $lt_shell_append in | |
18064 | yes) | |
18065 | cat << \_LT_EOF >> "$cfgfile" | |
18066 | ||
18067 | # func_append var value | |
18068 | # Append VALUE to the end of shell variable VAR. | |
18069 | func_append () | |
18070 | { | |
18071 | eval "$1+=\$2" | |
18072 | } | |
18073 | _LT_EOF | |
18074 | ;; | |
18075 | *) | |
18076 | cat << \_LT_EOF >> "$cfgfile" | |
18077 | ||
18078 | # func_append var value | |
18079 | # Append VALUE to the end of shell variable VAR. | |
18080 | func_append () | |
18081 | { | |
18082 | eval "$1=\$$1\$2" | |
18083 | } | |
18084 | ||
18085 | _LT_EOF | |
18086 | ;; | |
18087 | esac | |
18088 | ||
18089 | ||
18090 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18091 | || (rm -f "$cfgfile"; exit 1) | |
18092 | ||
18093 | mv -f "$cfgfile" "$ofile" || | |
18094 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18095 | chmod +x "$ofile" | |
18096 | ||
18097 | ||
18098 | cat <<_LT_EOF >> "$ofile" | |
18099 | ||
18100 | # ### BEGIN LIBTOOL TAG CONFIG: GO | |
18101 | ||
18102 | # The linker used to build libraries. | |
18103 | LD=$lt_LD_GO | |
18104 | ||
18105 | # How to create reloadable object files. | |
18106 | reload_flag=$lt_reload_flag_GO | |
18107 | reload_cmds=$lt_reload_cmds_GO | |
18108 | ||
18109 | # Commands used to build an old-style archive. | |
18110 | old_archive_cmds=$lt_old_archive_cmds_GO | |
18111 | ||
18112 | # A language specific compiler. | |
18113 | CC=$lt_compiler_GO | |
18114 | ||
18115 | # Is the compiler the GNU compiler? | |
18116 | with_gcc=$GCC_GO | |
18117 | ||
18118 | # Compiler flag to turn off builtin functions. | |
18119 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO | |
18120 | ||
18121 | # How to pass a linker flag through the compiler. | |
18122 | wl=$lt_lt_prog_compiler_wl_GO | |
18123 | ||
18124 | # Additional compiler flags for building library objects. | |
18125 | pic_flag=$lt_lt_prog_compiler_pic_GO | |
18126 | ||
18127 | # Compiler flag to prevent dynamic linking. | |
18128 | link_static_flag=$lt_lt_prog_compiler_static_GO | |
18129 | ||
18130 | # Does compiler simultaneously support -c and -o options? | |
18131 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO | |
18132 | ||
18133 | # Whether or not to add -lc for building shared libraries. | |
18134 | build_libtool_need_lc=$archive_cmds_need_lc_GO | |
18135 | ||
18136 | # Whether or not to disallow shared libs when runtime libs are static. | |
18137 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO | |
18138 | ||
18139 | # Compiler flag to allow reflexive dlopens. | |
18140 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO | |
18141 | ||
18142 | # Compiler flag to generate shared objects directly from archives. | |
18143 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO | |
18144 | ||
18145 | # Whether the compiler copes with passing no objects directly. | |
18146 | compiler_needs_object=$lt_compiler_needs_object_GO | |
18147 | ||
18148 | # Create an old-style archive from a shared archive. | |
18149 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO | |
18150 | ||
18151 | # Create a temporary old-style archive to link instead of a shared archive. | |
18152 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO | |
18153 | ||
18154 | # Commands used to build a shared archive. | |
18155 | archive_cmds=$lt_archive_cmds_GO | |
18156 | archive_expsym_cmds=$lt_archive_expsym_cmds_GO | |
18157 | ||
18158 | # Commands used to build a loadable module if different from building | |
18159 | # a shared archive. | |
18160 | module_cmds=$lt_module_cmds_GO | |
18161 | module_expsym_cmds=$lt_module_expsym_cmds_GO | |
18162 | ||
18163 | # Whether we are building with GNU ld or not. | |
18164 | with_gnu_ld=$lt_with_gnu_ld_GO | |
18165 | ||
18166 | # Flag that allows shared libraries with undefined symbols to be built. | |
18167 | allow_undefined_flag=$lt_allow_undefined_flag_GO | |
18168 | ||
18169 | # Flag that enforces no undefined symbols. | |
18170 | no_undefined_flag=$lt_no_undefined_flag_GO | |
18171 | ||
18172 | # Flag to hardcode \$libdir into a binary during linking. | |
18173 | # This must work even if \$libdir does not exist | |
18174 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO | |
18175 | ||
18176 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18177 | # during linking. This must work even if \$libdir does not exist. | |
18178 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO | |
18179 | ||
18180 | # Whether we need a single "-rpath" flag with a separated argument. | |
18181 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO | |
18182 | ||
18183 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18184 | # DIR into the resulting binary. | |
18185 | hardcode_direct=$hardcode_direct_GO | |
18186 | ||
18187 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18188 | # DIR into the resulting binary and the resulting library dependency is | |
18189 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18190 | # library is relocated. | |
18191 | hardcode_direct_absolute=$hardcode_direct_absolute_GO | |
18192 | ||
18193 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18194 | # into the resulting binary. | |
18195 | hardcode_minus_L=$hardcode_minus_L_GO | |
18196 | ||
18197 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18198 | # into the resulting binary. | |
18199 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GO | |
18200 | ||
18201 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18202 | # into the library and all subsequent libraries and executables linked | |
18203 | # against it. | |
18204 | hardcode_automatic=$hardcode_automatic_GO | |
18205 | ||
18206 | # Set to yes if linker adds runtime paths of dependent libraries | |
18207 | # to runtime path list. | |
18208 | inherit_rpath=$inherit_rpath_GO | |
18209 | ||
18210 | # Whether libtool must link a program against all its dependency libraries. | |
18211 | link_all_deplibs=$link_all_deplibs_GO | |
18212 | ||
18213 | # Fix the shell variable \$srcfile for the compiler. | |
18214 | fix_srcfile_path=$lt_fix_srcfile_path_GO | |
18215 | ||
18216 | # Set to "yes" if exported symbols are required. | |
18217 | always_export_symbols=$always_export_symbols_GO | |
18218 | ||
18219 | # The commands to list exported symbols. | |
18220 | export_symbols_cmds=$lt_export_symbols_cmds_GO | |
18221 | ||
18222 | # Symbols that should not be listed in the preloaded symbols. | |
18223 | exclude_expsyms=$lt_exclude_expsyms_GO | |
18224 | ||
18225 | # Symbols that must always be exported. | |
18226 | include_expsyms=$lt_include_expsyms_GO | |
18227 | ||
18228 | # Commands necessary for linking programs (against libraries) with templates. | |
18229 | prelink_cmds=$lt_prelink_cmds_GO | |
18230 | ||
18231 | # Specify filename containing input files. | |
18232 | file_list_spec=$lt_file_list_spec_GO | |
18233 | ||
18234 | # How to hardcode a shared library path into an executable. | |
18235 | hardcode_action=$hardcode_action_GO | |
18236 | ||
18237 | # ### END LIBTOOL TAG CONFIG: GO | |
18238 | _LT_EOF | |
18239 | ||
18240 | ;; | |
18241 | "default":C) if test -n "$CONFIG_FILES"; then | |
18242 | # Multilibs need MULTISUBDIR defined correctly in certain makefiles so | |
18243 | # that multilib installs will end up installed in the correct place. | |
18244 | # The testsuite needs it for multilib-aware ABI baseline files. | |
18245 | # To work around this not being passed down from config-ml.in -> | |
18246 | # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually | |
18247 | # append it here. Only modify Makefiles that have just been created. | |
18248 | # | |
18249 | # Also, get rid of this simulated-VPATH thing that automake does. | |
18250 | cat > vpsed << \_EOF | |
18251 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
18252 | _EOF | |
18253 | for i in $SUBDIRS; do | |
18254 | case $CONFIG_FILES in | |
18255 | *${i}/Makefile*) | |
18256 | #echo "Adding MULTISUBDIR to $i/Makefile" | |
18257 | sed -f vpsed $i/Makefile > tmp | |
18258 | grep '^MULTISUBDIR =' Makefile >> tmp | |
18259 | mv tmp $i/Makefile | |
18260 | ;; | |
18261 | esac | |
18262 | done | |
18263 | rm vpsed | |
18264 | fi | |
18265 | ;; | |
18266 | ||
18267 | esac | |
18268 | done # for ac_tag | |
18269 | ||
18270 | ||
18271 | as_fn_exit 0 | |
18272 | _ACEOF | |
18273 | ac_clean_files=$ac_clean_files_save | |
18274 | ||
18275 | test $ac_write_fail = 0 || | |
18276 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
18277 | ||
18278 | ||
18279 | # configure is writing to config.log, and then calls config.status. | |
18280 | # config.status does its own redirection, appending to config.log. | |
18281 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18282 | # by configure, so config.status won't be able to write to it; its | |
18283 | # output is simply discarded. So we exec the FD to /dev/null, | |
18284 | # effectively closing config.log, so it can be properly (re)opened and | |
18285 | # appended to by config.status. When coming back to configure, we | |
18286 | # need to make the FD available again. | |
18287 | if test "$no_create" != yes; then | |
18288 | ac_cs_success=: | |
18289 | ac_config_status_args= | |
18290 | test "$silent" = yes && | |
18291 | ac_config_status_args="$ac_config_status_args --quiet" | |
18292 | exec 5>/dev/null | |
18293 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18294 | exec 5>>config.log | |
18295 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18296 | # would make configure fail if this is the last instruction. | |
18297 | $ac_cs_success || as_fn_exit $? | |
18298 | fi | |
18299 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
18300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18301 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
18302 | fi | |
18303 |