Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
2e98a7bd | 3 | # Generated by GNU Autoconf 2.64 for ld 2.24.51. |
81ecdfbb RW |
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. | |
252b5132 RH |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
42ecbf5e | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
42ecbf5e | 31 | fi |
42ecbf5e | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
42ecbf5e DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
42ecbf5e DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
3725885a RW |
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" | |
81ecdfbb RW |
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 | |
42ecbf5e | 192 | do |
81ecdfbb RW |
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." | |
42ecbf5e | 236 | else |
81ecdfbb RW |
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." | |
42ecbf5e | 241 | fi |
81ecdfbb RW |
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 | |
42ecbf5e | 380 | |
81ecdfbb RW |
381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
383 | as_expr=expr |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
81ecdfbb | 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
389 | as_basename=basename |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
81ecdfbb RW |
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 | |
42ecbf5e | 399 | |
81ecdfbb | 400 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
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'` | |
42ecbf5e | 418 | |
42ecbf5e DJ |
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 | ||
42ecbf5e | 426 | |
81ecdfbb RW |
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 | | |
42ecbf5e | 436 | sed ' |
81ecdfbb RW |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
42ecbf5e | 441 | N |
81ecdfbb RW |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
42ecbf5e | 444 | t loop |
81ecdfbb | 445 | s/-\n.*// |
42ecbf5e | 446 | ' >$as_me.lineno && |
81ecdfbb RW |
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; } | |
42ecbf5e DJ |
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 | |
81ecdfbb RW |
452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" | |
42ecbf5e DJ |
454 | # Exit status is that of the last command. |
455 | exit | |
456 | } | |
457 | ||
81ecdfbb RW |
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';; | |
42ecbf5e DJ |
469 | esac |
470 | ||
81ecdfbb RW |
471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 474 | else |
81ecdfbb RW |
475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 477 | fi |
81ecdfbb RW |
478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 480 | as_ln_s='ln -s' |
81ecdfbb RW |
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' | |
42ecbf5e | 491 | fi |
42ecbf5e DJ |
492 | else |
493 | as_ln_s='cp -p' | |
494 | fi | |
81ecdfbb RW |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null | |
42ecbf5e DJ |
497 | |
498 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
500 | else |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
81ecdfbb RW |
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 | |
42ecbf5e DJ |
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 | ||
d7040cdb SE |
534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
d7040cdb | 536 | |
81ecdfbb RW |
537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
42ecbf5e DJ |
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` | |
252b5132 | 543 | |
42ecbf5e DJ |
544 | # |
545 | # Initializations. | |
546 | # | |
252b5132 | 547 | ac_default_prefix=/usr/local |
81ecdfbb | 548 | ac_clean_files= |
42ecbf5e | 549 | ac_config_libobj_dir=. |
81ecdfbb | 550 | LIBOBJS= |
42ecbf5e DJ |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
42ecbf5e DJ |
555 | |
556 | # Identity of this package. | |
2e98a7bd AM |
557 | PACKAGE_NAME='ld' |
558 | PACKAGE_TARNAME='ld' | |
559 | PACKAGE_VERSION='2.24.51' | |
560 | PACKAGE_STRING='ld 2.24.51' | |
561 | PACKAGE_BUGREPORT='' | |
562 | PACKAGE_URL='' | |
42ecbf5e DJ |
563 | |
564 | ac_unique_file="ldmain.c" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
81ecdfbb | 568 | #ifdef HAVE_SYS_TYPES_H |
42ecbf5e DJ |
569 | # include <sys/types.h> |
570 | #endif | |
81ecdfbb | 571 | #ifdef HAVE_SYS_STAT_H |
42ecbf5e DJ |
572 | # include <sys/stat.h> |
573 | #endif | |
81ecdfbb | 574 | #ifdef STDC_HEADERS |
42ecbf5e DJ |
575 | # include <stdlib.h> |
576 | # include <stddef.h> | |
577 | #else | |
81ecdfbb | 578 | # ifdef HAVE_STDLIB_H |
42ecbf5e DJ |
579 | # include <stdlib.h> |
580 | # endif | |
581 | #endif | |
81ecdfbb RW |
582 | #ifdef HAVE_STRING_H |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
42ecbf5e DJ |
584 | # include <memory.h> |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
81ecdfbb | 588 | #ifdef HAVE_STRINGS_H |
42ecbf5e DJ |
589 | # include <strings.h> |
590 | #endif | |
81ecdfbb | 591 | #ifdef HAVE_INTTYPES_H |
42ecbf5e | 592 | # include <inttypes.h> |
42ecbf5e | 593 | #endif |
81ecdfbb RW |
594 | #ifdef HAVE_STDINT_H |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
42ecbf5e DJ |
598 | # include <unistd.h> |
599 | #endif" | |
600 | ||
81ecdfbb RW |
601 | ac_subst_vars='am__EXEEXT_FALSE |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
605 | TESTBFDLIB | |
606 | EMULATION_LIBPATH | |
607 | LIB_PATH | |
608 | EMUL_EXTRA_OFILES | |
609 | EMULATION_OFILES | |
610 | EMUL | |
611 | STRINGIFY | |
02ecc8e9 | 612 | enable_initfini_array |
5d3236ee DK |
613 | ENABLE_PLUGINS_FALSE |
614 | ENABLE_PLUGINS_TRUE | |
81ecdfbb | 615 | NATIVE_LIB_DIRS |
b27caf75 | 616 | HOSTING_SLIBS |
81ecdfbb | 617 | HOSTING_LIBS |
6738cadc | 618 | HOSTING_SCRT0 |
81ecdfbb RW |
619 | HOSTING_CRT0 |
620 | HDEFINES | |
621 | do_compare | |
622 | GENINSRC_NEVER_FALSE | |
623 | GENINSRC_NEVER_TRUE | |
81ecdfbb RW |
624 | LEXLIB |
625 | LEX_OUTPUT_ROOT | |
626 | LEX | |
627 | YFLAGS | |
628 | YACC | |
629 | MSGMERGE | |
630 | MSGFMT | |
631 | MKINSTALLDIRS | |
632 | CATOBJEXT | |
633 | GENCAT | |
634 | INSTOBJEXT | |
635 | DATADIRNAME | |
636 | CATALOGS | |
637 | POSUB | |
638 | GMSGFMT | |
639 | XGETTEXT | |
640 | INCINTL | |
641 | LIBINTL_DEP | |
642 | LIBINTL | |
643 | USE_NLS | |
3cb62297 | 644 | CXXCPP |
81ecdfbb RW |
645 | OTOOL64 |
646 | OTOOL | |
647 | LIPO | |
648 | NMEDIT | |
649 | DSYMUTIL | |
81ecdfbb RW |
650 | RANLIB |
651 | AR | |
652 | OBJDUMP | |
653 | LN_S | |
654 | NM | |
655 | ac_ct_DUMPBIN | |
656 | DUMPBIN | |
657 | LD | |
658 | FGREP | |
659 | SED | |
660 | LIBTOOL | |
3cb62297 L |
661 | am__fastdepCXX_FALSE |
662 | am__fastdepCXX_TRUE | |
663 | CXXDEPMODE | |
664 | ac_ct_CXX | |
665 | CXXFLAGS | |
666 | CXX | |
397841b5 AM |
667 | NO_WERROR |
668 | WARN_CFLAGS | |
81ecdfbb RW |
669 | EGREP |
670 | GREP | |
671 | CPP | |
4fda8867 NC |
672 | installed_linker |
673 | install_as_default | |
81ecdfbb RW |
674 | TARGET_SYSTEM_ROOT_DEFINE |
675 | TARGET_SYSTEM_ROOT | |
676 | use_sysroot | |
64ac50ac RW |
677 | MAINT |
678 | MAINTAINER_MODE_FALSE | |
679 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
680 | am__fastdepCC_FALSE |
681 | am__fastdepCC_TRUE | |
682 | CCDEPMODE | |
683 | AMDEPBACKSLASH | |
684 | AMDEP_FALSE | |
685 | AMDEP_TRUE | |
686 | am__quote | |
687 | am__include | |
688 | DEPDIR | |
689 | am__untar | |
690 | am__tar | |
691 | AMTAR | |
692 | am__leading_dot | |
693 | SET_MAKE | |
694 | AWK | |
695 | mkdir_p | |
696 | MKDIR_P | |
697 | INSTALL_STRIP_PROGRAM | |
698 | STRIP | |
699 | install_sh | |
700 | MAKEINFO | |
701 | AUTOHEADER | |
702 | AUTOMAKE | |
703 | AUTOCONF | |
704 | ACLOCAL | |
705 | VERSION | |
706 | PACKAGE | |
707 | CYGPATH_W | |
708 | am__isrc | |
709 | INSTALL_DATA | |
710 | INSTALL_SCRIPT | |
711 | INSTALL_PROGRAM | |
712 | OBJEXT | |
713 | EXEEXT | |
714 | ac_ct_CC | |
715 | CPPFLAGS | |
716 | LDFLAGS | |
717 | CFLAGS | |
718 | CC | |
719 | target_os | |
720 | target_vendor | |
721 | target_cpu | |
722 | target | |
723 | host_os | |
724 | host_vendor | |
725 | host_cpu | |
726 | host | |
727 | build_os | |
728 | build_vendor | |
729 | build_cpu | |
730 | build | |
731 | target_alias | |
732 | host_alias | |
733 | build_alias | |
734 | LIBS | |
735 | ECHO_T | |
736 | ECHO_N | |
737 | ECHO_C | |
738 | DEFS | |
739 | mandir | |
740 | localedir | |
741 | libdir | |
742 | psdir | |
743 | pdfdir | |
744 | dvidir | |
745 | htmldir | |
746 | infodir | |
747 | docdir | |
748 | oldincludedir | |
749 | includedir | |
750 | localstatedir | |
751 | sharedstatedir | |
752 | sysconfdir | |
753 | datadir | |
754 | datarootdir | |
755 | libexecdir | |
756 | sbindir | |
757 | bindir | |
758 | program_transform_name | |
759 | prefix | |
760 | exec_prefix | |
761 | PACKAGE_URL | |
762 | PACKAGE_BUGREPORT | |
763 | PACKAGE_STRING | |
764 | PACKAGE_VERSION | |
765 | PACKAGE_TARNAME | |
766 | PACKAGE_NAME | |
767 | PATH_SEPARATOR | |
768 | SHELL' | |
42ecbf5e | 769 | ac_subst_files='TDIRS' |
81ecdfbb RW |
770 | ac_user_opts=' |
771 | enable_option_checking | |
772 | enable_dependency_tracking | |
64ac50ac | 773 | enable_maintainer_mode |
81ecdfbb RW |
774 | with_lib_path |
775 | enable_targets | |
776 | enable_64_bit_bfd | |
777 | with_sysroot | |
4fda8867 | 778 | enable_gold |
81ecdfbb RW |
779 | enable_got |
780 | enable_werror | |
781 | enable_build_warnings | |
da2f07f1 | 782 | enable_plugins |
81ecdfbb RW |
783 | enable_largefile |
784 | enable_shared | |
785 | enable_static | |
786 | with_pic | |
787 | enable_fast_install | |
788 | with_gnu_ld | |
789 | enable_libtool_lock | |
790 | enable_nls | |
02ecc8e9 | 791 | enable_initfini_array |
52546677 | 792 | with_zlib |
81ecdfbb RW |
793 | ' |
794 | ac_precious_vars='build_alias | |
795 | host_alias | |
796 | target_alias | |
797 | CC | |
798 | CFLAGS | |
799 | LDFLAGS | |
800 | LIBS | |
801 | CPPFLAGS | |
802 | CPP | |
3cb62297 L |
803 | CXX |
804 | CXXFLAGS | |
805 | CCC | |
806 | CXXCPP | |
81ecdfbb RW |
807 | YACC |
808 | YFLAGS' | |
809 | ||
252b5132 RH |
810 | |
811 | # Initialize some variables set by options. | |
42ecbf5e DJ |
812 | ac_init_help= |
813 | ac_init_version=false | |
81ecdfbb RW |
814 | ac_unrecognized_opts= |
815 | ac_unrecognized_sep= | |
252b5132 RH |
816 | # The variables have the same names as the options, with |
817 | # dashes changed to underlines. | |
42ecbf5e | 818 | cache_file=/dev/null |
252b5132 | 819 | exec_prefix=NONE |
252b5132 | 820 | no_create= |
252b5132 RH |
821 | no_recursion= |
822 | prefix=NONE | |
823 | program_prefix=NONE | |
824 | program_suffix=NONE | |
825 | program_transform_name=s,x,x, | |
826 | silent= | |
827 | site= | |
828 | srcdir= | |
252b5132 RH |
829 | verbose= |
830 | x_includes=NONE | |
831 | x_libraries=NONE | |
42ecbf5e DJ |
832 | |
833 | # Installation directory options. | |
834 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
835 | # and all the variables that are supposed to be based on exec_prefix | |
836 | # by default will actually change. | |
837 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 838 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
839 | bindir='${exec_prefix}/bin' |
840 | sbindir='${exec_prefix}/sbin' | |
841 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
842 | datarootdir='${prefix}/share' |
843 | datadir='${datarootdir}' | |
252b5132 RH |
844 | sysconfdir='${prefix}/etc' |
845 | sharedstatedir='${prefix}/com' | |
846 | localstatedir='${prefix}/var' | |
252b5132 RH |
847 | includedir='${prefix}/include' |
848 | oldincludedir='/usr/include' | |
2e98a7bd | 849 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
850 | infodir='${datarootdir}/info' |
851 | htmldir='${docdir}' | |
852 | dvidir='${docdir}' | |
853 | pdfdir='${docdir}' | |
854 | psdir='${docdir}' | |
855 | libdir='${exec_prefix}/lib' | |
856 | localedir='${datarootdir}/locale' | |
857 | mandir='${datarootdir}/man' | |
252b5132 | 858 | |
252b5132 | 859 | ac_prev= |
81ecdfbb | 860 | ac_dashdash= |
252b5132 RH |
861 | for ac_option |
862 | do | |
252b5132 RH |
863 | # If the previous option needs an argument, assign it. |
864 | if test -n "$ac_prev"; then | |
81ecdfbb | 865 | eval $ac_prev=\$ac_option |
252b5132 RH |
866 | ac_prev= |
867 | continue | |
868 | fi | |
869 | ||
81ecdfbb RW |
870 | case $ac_option in |
871 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
872 | *) ac_optarg=yes ;; | |
873 | esac | |
252b5132 RH |
874 | |
875 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
876 | ||
81ecdfbb RW |
877 | case $ac_dashdash$ac_option in |
878 | --) | |
879 | ac_dashdash=yes ;; | |
252b5132 RH |
880 | |
881 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
882 | ac_prev=bindir ;; | |
883 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 884 | bindir=$ac_optarg ;; |
252b5132 RH |
885 | |
886 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 887 | ac_prev=build_alias ;; |
252b5132 | 888 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 889 | build_alias=$ac_optarg ;; |
252b5132 RH |
890 | |
891 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
892 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
893 | ac_prev=cache_file ;; | |
894 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
895 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
896 | cache_file=$ac_optarg ;; |
897 | ||
898 | --config-cache | -C) | |
899 | cache_file=config.cache ;; | |
252b5132 | 900 | |
81ecdfbb | 901 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 902 | ac_prev=datadir ;; |
81ecdfbb | 903 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 904 | datadir=$ac_optarg ;; |
252b5132 | 905 | |
81ecdfbb RW |
906 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
907 | | --dataroo | --dataro | --datar) | |
908 | ac_prev=datarootdir ;; | |
909 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
910 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
911 | datarootdir=$ac_optarg ;; | |
912 | ||
252b5132 | 913 | -disable-* | --disable-*) |
81ecdfbb | 914 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 915 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
916 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
917 | as_fn_error "invalid feature name: $ac_useropt" | |
918 | ac_useropt_orig=$ac_useropt | |
919 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
920 | case $ac_user_opts in | |
921 | *" | |
922 | "enable_$ac_useropt" | |
923 | "*) ;; | |
924 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
925 | ac_unrecognized_sep=', ';; | |
926 | esac | |
927 | eval enable_$ac_useropt=no ;; | |
928 | ||
929 | -docdir | --docdir | --docdi | --doc | --do) | |
930 | ac_prev=docdir ;; | |
931 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
932 | docdir=$ac_optarg ;; | |
933 | ||
934 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
935 | ac_prev=dvidir ;; | |
936 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
937 | dvidir=$ac_optarg ;; | |
252b5132 RH |
938 | |
939 | -enable-* | --enable-*) | |
81ecdfbb | 940 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 941 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
943 | as_fn_error "invalid feature name: $ac_useropt" | |
944 | ac_useropt_orig=$ac_useropt | |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
252b5132 | 952 | esac |
81ecdfbb | 953 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
954 | |
955 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
956 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
957 | | --exec | --exe | --ex) | |
958 | ac_prev=exec_prefix ;; | |
959 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
960 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
961 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 962 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
963 | |
964 | -gas | --gas | --ga | --g) | |
965 | # Obsolete; use --with-gas. | |
966 | with_gas=yes ;; | |
967 | ||
42ecbf5e DJ |
968 | -help | --help | --hel | --he | -h) |
969 | ac_init_help=long ;; | |
970 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
971 | ac_init_help=recursive ;; | |
972 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
973 | ac_init_help=short ;; | |
252b5132 RH |
974 | |
975 | -host | --host | --hos | --ho) | |
42ecbf5e | 976 | ac_prev=host_alias ;; |
252b5132 | 977 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 978 | host_alias=$ac_optarg ;; |
252b5132 | 979 | |
81ecdfbb RW |
980 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
981 | ac_prev=htmldir ;; | |
982 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
983 | | --ht=*) | |
984 | htmldir=$ac_optarg ;; | |
985 | ||
252b5132 RH |
986 | -includedir | --includedir | --includedi | --included | --include \ |
987 | | --includ | --inclu | --incl | --inc) | |
988 | ac_prev=includedir ;; | |
989 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
990 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 991 | includedir=$ac_optarg ;; |
252b5132 RH |
992 | |
993 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
994 | ac_prev=infodir ;; | |
995 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 996 | infodir=$ac_optarg ;; |
252b5132 RH |
997 | |
998 | -libdir | --libdir | --libdi | --libd) | |
999 | ac_prev=libdir ;; | |
1000 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1001 | libdir=$ac_optarg ;; |
252b5132 RH |
1002 | |
1003 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1004 | | --libexe | --libex | --libe) | |
1005 | ac_prev=libexecdir ;; | |
1006 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1007 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1008 | libexecdir=$ac_optarg ;; |
252b5132 | 1009 | |
81ecdfbb RW |
1010 | -localedir | --localedir | --localedi | --localed | --locale) |
1011 | ac_prev=localedir ;; | |
1012 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1013 | localedir=$ac_optarg ;; | |
1014 | ||
252b5132 | 1015 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1016 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1017 | ac_prev=localstatedir ;; |
1018 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1019 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1020 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1021 | |
1022 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1023 | ac_prev=mandir ;; | |
1024 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1025 | mandir=$ac_optarg ;; |
252b5132 RH |
1026 | |
1027 | -nfp | --nfp | --nf) | |
1028 | # Obsolete; use --without-fp. | |
1029 | with_fp=no ;; | |
1030 | ||
1031 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1032 | | --no-cr | --no-c | -n) |
252b5132 RH |
1033 | no_create=yes ;; |
1034 | ||
1035 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1036 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1037 | no_recursion=yes ;; | |
1038 | ||
1039 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1040 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1041 | | --oldin | --oldi | --old | --ol | --o) | |
1042 | ac_prev=oldincludedir ;; | |
1043 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1044 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1045 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1046 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1047 | |
1048 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1049 | ac_prev=prefix ;; | |
1050 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1051 | prefix=$ac_optarg ;; |
252b5132 RH |
1052 | |
1053 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1054 | | --program-pre | --program-pr | --program-p) | |
1055 | ac_prev=program_prefix ;; | |
1056 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1057 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1058 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1059 | |
1060 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1061 | | --program-suf | --program-su | --program-s) | |
1062 | ac_prev=program_suffix ;; | |
1063 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1064 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1065 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1066 | |
1067 | -program-transform-name | --program-transform-name \ | |
1068 | | --program-transform-nam | --program-transform-na \ | |
1069 | | --program-transform-n | --program-transform- \ | |
1070 | | --program-transform | --program-transfor \ | |
1071 | | --program-transfo | --program-transf \ | |
1072 | | --program-trans | --program-tran \ | |
1073 | | --progr-tra | --program-tr | --program-t) | |
1074 | ac_prev=program_transform_name ;; | |
1075 | -program-transform-name=* | --program-transform-name=* \ | |
1076 | | --program-transform-nam=* | --program-transform-na=* \ | |
1077 | | --program-transform-n=* | --program-transform-=* \ | |
1078 | | --program-transform=* | --program-transfor=* \ | |
1079 | | --program-transfo=* | --program-transf=* \ | |
1080 | | --program-trans=* | --program-tran=* \ | |
1081 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1082 | program_transform_name=$ac_optarg ;; |
252b5132 | 1083 | |
81ecdfbb RW |
1084 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1085 | ac_prev=pdfdir ;; | |
1086 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1087 | pdfdir=$ac_optarg ;; | |
1088 | ||
1089 | -psdir | --psdir | --psdi | --psd | --ps) | |
1090 | ac_prev=psdir ;; | |
1091 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1092 | psdir=$ac_optarg ;; | |
1093 | ||
252b5132 RH |
1094 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1095 | | -silent | --silent | --silen | --sile | --sil) | |
1096 | silent=yes ;; | |
1097 | ||
1098 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1099 | ac_prev=sbindir ;; | |
1100 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1101 | | --sbi=* | --sb=*) | |
42ecbf5e | 1102 | sbindir=$ac_optarg ;; |
252b5132 RH |
1103 | |
1104 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1105 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1106 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1107 | | --sha | --sh) | |
1108 | ac_prev=sharedstatedir ;; | |
1109 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1110 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1111 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1112 | | --sha=* | --sh=*) | |
42ecbf5e | 1113 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1114 | |
1115 | -site | --site | --sit) | |
1116 | ac_prev=site ;; | |
1117 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1118 | site=$ac_optarg ;; |
85fbca6a | 1119 | |
252b5132 RH |
1120 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1121 | ac_prev=srcdir ;; | |
1122 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1123 | srcdir=$ac_optarg ;; |
252b5132 RH |
1124 | |
1125 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1126 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1127 | ac_prev=sysconfdir ;; | |
1128 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1129 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1130 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1131 | |
1132 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1133 | ac_prev=target_alias ;; |
252b5132 | 1134 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1135 | target_alias=$ac_optarg ;; |
252b5132 RH |
1136 | |
1137 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1138 | verbose=yes ;; | |
1139 | ||
42ecbf5e DJ |
1140 | -version | --version | --versio | --versi | --vers | -V) |
1141 | ac_init_version=: ;; | |
252b5132 RH |
1142 | |
1143 | -with-* | --with-*) | |
81ecdfbb | 1144 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1145 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1146 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1147 | as_fn_error "invalid package name: $ac_useropt" | |
1148 | ac_useropt_orig=$ac_useropt | |
1149 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1150 | case $ac_user_opts in | |
1151 | *" | |
1152 | "with_$ac_useropt" | |
1153 | "*) ;; | |
1154 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1155 | ac_unrecognized_sep=', ';; | |
252b5132 | 1156 | esac |
81ecdfbb | 1157 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1158 | |
1159 | -without-* | --without-*) | |
81ecdfbb | 1160 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1161 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1162 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1163 | as_fn_error "invalid package name: $ac_useropt" | |
1164 | ac_useropt_orig=$ac_useropt | |
1165 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1166 | case $ac_user_opts in | |
1167 | *" | |
1168 | "with_$ac_useropt" | |
1169 | "*) ;; | |
1170 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1171 | ac_unrecognized_sep=', ';; | |
1172 | esac | |
1173 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1174 | |
1175 | --x) | |
1176 | # Obsolete; use --with-x. | |
1177 | with_x=yes ;; | |
1178 | ||
1179 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1180 | | --x-incl | --x-inc | --x-in | --x-i) | |
1181 | ac_prev=x_includes ;; | |
1182 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1183 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1184 | x_includes=$ac_optarg ;; |
252b5132 RH |
1185 | |
1186 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1187 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1188 | ac_prev=x_libraries ;; | |
1189 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1190 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1191 | x_libraries=$ac_optarg ;; |
252b5132 | 1192 | |
81ecdfbb RW |
1193 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1194 | Try \`$0 --help' for more information." | |
252b5132 RH |
1195 | ;; |
1196 | ||
42ecbf5e DJ |
1197 | *=*) |
1198 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1199 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1200 | case $ac_envvar in #( |
1201 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1202 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1203 | esac | |
1204 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1205 | export $ac_envvar ;; |
1206 | ||
252b5132 | 1207 | *) |
42ecbf5e | 1208 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1209 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1210 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1211 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
42ecbf5e | 1212 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1213 | ;; |
1214 | ||
1215 | esac | |
1216 | done | |
1217 | ||
1218 | if test -n "$ac_prev"; then | |
42ecbf5e | 1219 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1220 | as_fn_error "missing argument to $ac_option" |
252b5132 | 1221 | fi |
252b5132 | 1222 | |
81ecdfbb RW |
1223 | if test -n "$ac_unrecognized_opts"; then |
1224 | case $enable_option_checking in | |
1225 | no) ;; | |
1226 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1227 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
42ecbf5e | 1228 | esac |
81ecdfbb | 1229 | fi |
252b5132 | 1230 | |
81ecdfbb RW |
1231 | # Check all directory arguments for consistency. |
1232 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1233 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1234 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1235 | libdir localedir mandir | |
252b5132 | 1236 | do |
81ecdfbb RW |
1237 | eval ac_val=\$$ac_var |
1238 | # Remove trailing slashes. | |
1239 | case $ac_val in | |
1240 | */ ) | |
1241 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1242 | eval $ac_var=\$ac_val;; | |
1243 | esac | |
1244 | # Be sure to have absolute directory names. | |
42ecbf5e | 1245 | case $ac_val in |
81ecdfbb RW |
1246 | [\\/$]* | ?:[\\/]* ) continue;; |
1247 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1248 | esac |
81ecdfbb | 1249 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1250 | done |
1251 | ||
42ecbf5e DJ |
1252 | # There might be people who depend on the old broken behavior: `$host' |
1253 | # used to hold the argument of --host etc. | |
1254 | # FIXME: To remove some day. | |
1255 | build=$build_alias | |
1256 | host=$host_alias | |
1257 | target=$target_alias | |
1258 | ||
1259 | # FIXME: To remove some day. | |
1260 | if test "x$host_alias" != x; then | |
1261 | if test "x$build_alias" = x; then | |
1262 | cross_compiling=maybe | |
81ecdfbb | 1263 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
42ecbf5e DJ |
1264 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1265 | elif test "x$build_alias" != "x$host_alias"; then | |
1266 | cross_compiling=yes | |
1267 | fi | |
1268 | fi | |
e5a52504 | 1269 | |
42ecbf5e DJ |
1270 | ac_tool_prefix= |
1271 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1272 | ||
1273 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1274 | |
252b5132 | 1275 | |
81ecdfbb RW |
1276 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1277 | ac_ls_di=`ls -di .` && | |
1278 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1279 | as_fn_error "working directory cannot be determined" | |
1280 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1281 | as_fn_error "pwd does not report name of working directory" | |
1282 | ||
1283 | ||
252b5132 RH |
1284 | # Find the source files, if location was not specified. |
1285 | if test -z "$srcdir"; then | |
1286 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1287 | # Try the directory containing this script, then the parent directory. |
1288 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1289 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1290 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1291 | X"$as_myself" : 'X\(//\)$' \| \ | |
1292 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1293 | $as_echo X"$as_myself" | | |
1294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1295 | s//\1/ | |
1296 | q | |
1297 | } | |
1298 | /^X\(\/\/\)[^/].*/{ | |
1299 | s//\1/ | |
1300 | q | |
1301 | } | |
1302 | /^X\(\/\/\)$/{ | |
1303 | s//\1/ | |
1304 | q | |
1305 | } | |
1306 | /^X\(\/\).*/{ | |
1307 | s//\1/ | |
1308 | q | |
1309 | } | |
1310 | s/.*/./; q'` | |
252b5132 | 1311 | srcdir=$ac_confdir |
81ecdfbb | 1312 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1313 | srcdir=.. |
1314 | fi | |
1315 | else | |
1316 | ac_srcdir_defaulted=no | |
1317 | fi | |
81ecdfbb RW |
1318 | if test ! -r "$srcdir/$ac_unique_file"; then |
1319 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1320 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1321 | fi | |
1322 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1323 | ac_abs_confdir=`( | |
1324 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1325 | pwd)` | |
1326 | # When building in place, set srcdir=. | |
1327 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1328 | srcdir=. | |
1329 | fi | |
1330 | # Remove unnecessary trailing slashes from srcdir. | |
1331 | # Double slashes in file names in object file debugging info | |
1332 | # mess up M-x gdb in Emacs. | |
1333 | case $srcdir in | |
1334 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1335 | esac | |
1336 | for ac_var in $ac_precious_vars; do | |
1337 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1338 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1339 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1340 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1341 | done | |
252b5132 | 1342 | |
42ecbf5e DJ |
1343 | # |
1344 | # Report the --help message. | |
1345 | # | |
1346 | if test "$ac_init_help" = "long"; then | |
1347 | # Omit some internal or obsolete options to make the list less imposing. | |
1348 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1349 | cat <<_ACEOF | |
2e98a7bd | 1350 | \`configure' configures ld 2.24.51 to adapt to many kinds of systems. |
252b5132 | 1351 | |
42ecbf5e | 1352 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1353 | |
42ecbf5e DJ |
1354 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1355 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1356 | |
42ecbf5e | 1357 | Defaults for the options are specified in brackets. |
ac48eca1 | 1358 | |
42ecbf5e DJ |
1359 | Configuration: |
1360 | -h, --help display this help and exit | |
1361 | --help=short display options specific to this package | |
1362 | --help=recursive display the short help of all the included packages | |
1363 | -V, --version display version information and exit | |
1364 | -q, --quiet, --silent do not print \`checking...' messages | |
1365 | --cache-file=FILE cache test results in FILE [disabled] | |
1366 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1367 | -n, --no-create do not create output files | |
1368 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1369 | ||
42ecbf5e DJ |
1370 | Installation directories: |
1371 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1372 | [$ac_default_prefix] |
42ecbf5e | 1373 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1374 | [PREFIX] |
ac48eca1 | 1375 | |
42ecbf5e DJ |
1376 | By default, \`make install' will install all the files in |
1377 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1378 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1379 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1380 | |
42ecbf5e | 1381 | For better control, use the options below. |
ac48eca1 | 1382 | |
42ecbf5e | 1383 | Fine tuning of the installation directories: |
81ecdfbb RW |
1384 | --bindir=DIR user executables [EPREFIX/bin] |
1385 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1386 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1387 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1388 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1389 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1390 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1391 | --includedir=DIR C header files [PREFIX/include] | |
1392 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1393 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1394 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1395 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1396 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1397 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1398 | --docdir=DIR documentation root [DATAROOTDIR/doc/ld] |
81ecdfbb RW |
1399 | --htmldir=DIR html documentation [DOCDIR] |
1400 | --dvidir=DIR dvi documentation [DOCDIR] | |
1401 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1402 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1403 | _ACEOF |
ac48eca1 | 1404 | |
42ecbf5e | 1405 | cat <<\_ACEOF |
252b5132 | 1406 | |
42ecbf5e DJ |
1407 | Program names: |
1408 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1409 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1410 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1411 | |
42ecbf5e DJ |
1412 | System types: |
1413 | --build=BUILD configure for building on BUILD [guessed] | |
1414 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1415 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1416 | _ACEOF | |
252b5132 | 1417 | fi |
252b5132 | 1418 | |
42ecbf5e | 1419 | if test -n "$ac_init_help"; then |
2e98a7bd AM |
1420 | case $ac_init_help in |
1421 | short | recursive ) echo "Configuration of ld 2.24.51:";; | |
1422 | esac | |
42ecbf5e | 1423 | cat <<\_ACEOF |
e5a52504 | 1424 | |
42ecbf5e | 1425 | Optional Features: |
81ecdfbb | 1426 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1427 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1428 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1429 | --disable-dependency-tracking speeds up one-time build | |
1430 | --enable-dependency-tracking do not reject slow dependency extractors | |
64ac50ac RW |
1431 | --enable-maintainer-mode enable make rules and dependencies not useful |
1432 | (and sometimes confusing) to the casual installer | |
ce2cded5 L |
1433 | --enable-targets alternative target configurations |
1434 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
c7791212 | 1435 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7fb9f789 NC |
1436 | --enable-got=<type> GOT handling scheme (target, single, negative, |
1437 | multigot) | |
ce2cded5 L |
1438 | --enable-werror treat compile warnings as errors |
1439 | --enable-build-warnings enable build-time compiler warnings | |
da2f07f1 | 1440 | --enable-plugins Enable support for plugins (defaults no) |
d053aef8 | 1441 | --disable-largefile omit support for large files |
81ecdfbb RW |
1442 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1443 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1444 | --enable-fast-install[=PKGS] |
1445 | optimize for fast installation [default=yes] | |
42ecbf5e | 1446 | --disable-libtool-lock avoid locking (might break parallel builds) |
42ecbf5e | 1447 | --disable-nls do not use Native Language Support |
02ecc8e9 | 1448 | --enable-initfini-array use .init_array/.fini_array sections |
42ecbf5e DJ |
1449 | |
1450 | Optional Packages: | |
1451 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1452 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
ce2cded5 L |
1453 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1454 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
d7040cdb SE |
1455 | --with-pic try to use only PIC/non-PIC objects [default=use |
1456 | both] | |
1457 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
52546677 | 1458 | --with-zlib include zlib support (auto/yes/no) default=auto |
42ecbf5e DJ |
1459 | |
1460 | Some influential environment variables: | |
1461 | CC C compiler command | |
1462 | CFLAGS C compiler flags | |
1463 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1464 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1465 | LIBS libraries to pass to the linker, e.g. -l<library> |
1466 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1467 | you have headers in a nonstandard directory <include dir> | |
42ecbf5e | 1468 | CPP C preprocessor |
3cb62297 L |
1469 | CXX C++ compiler command |
1470 | CXXFLAGS C++ compiler flags | |
1471 | CXXCPP C++ preprocessor | |
81ecdfbb RW |
1472 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1473 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1474 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1475 | This script will default YFLAGS to the empty string to avoid a | |
1476 | default value of `-d' given by some make applications. | |
42ecbf5e DJ |
1477 | |
1478 | Use these variables to override the choices made by `configure' or to help | |
1479 | it to find libraries and programs with nonstandard names/locations. | |
1480 | ||
81ecdfbb | 1481 | Report bugs to the package provider. |
42ecbf5e | 1482 | _ACEOF |
81ecdfbb | 1483 | ac_status=$? |
42ecbf5e DJ |
1484 | fi |
1485 | ||
1486 | if test "$ac_init_help" = "recursive"; then | |
1487 | # If there are subdirs, report their specific --help. | |
42ecbf5e | 1488 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1489 | test -d "$ac_dir" || |
1490 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1491 | continue | |
42ecbf5e DJ |
1492 | ac_builddir=. |
1493 | ||
81ecdfbb RW |
1494 | case "$ac_dir" in |
1495 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1496 | *) | |
1497 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1498 | # A ".." for each directory in $ac_dir_suffix. | |
1499 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1500 | case $ac_top_builddir_sub in | |
1501 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1502 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1503 | esac ;; | |
1504 | esac | |
1505 | ac_abs_top_builddir=$ac_pwd | |
1506 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1507 | # for backward compatibility: | |
1508 | ac_top_builddir=$ac_top_build_prefix | |
42ecbf5e DJ |
1509 | |
1510 | case $srcdir in | |
81ecdfbb | 1511 | .) # We are building in place. |
42ecbf5e | 1512 | ac_srcdir=. |
81ecdfbb RW |
1513 | ac_top_srcdir=$ac_top_builddir_sub |
1514 | ac_abs_top_srcdir=$ac_pwd ;; | |
1515 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 1516 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1517 | ac_top_srcdir=$srcdir |
1518 | ac_abs_top_srcdir=$srcdir ;; | |
1519 | *) # Relative name. | |
1520 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1521 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1522 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 1523 | esac |
81ecdfbb RW |
1524 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1525 | ||
1526 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1527 | # Check for guested configure. | |
1528 | if test -f "$ac_srcdir/configure.gnu"; then | |
1529 | echo && | |
1530 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1531 | elif test -f "$ac_srcdir/configure"; then | |
1532 | echo && | |
1533 | $SHELL "$ac_srcdir/configure" --help=recursive | |
42ecbf5e | 1534 | else |
81ecdfbb RW |
1535 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1536 | fi || ac_status=$? | |
1537 | cd "$ac_pwd" || { ac_status=$?; break; } | |
42ecbf5e | 1538 | done |
a2d91340 AC |
1539 | fi |
1540 | ||
81ecdfbb | 1541 | test -n "$ac_init_help" && exit $ac_status |
42ecbf5e DJ |
1542 | if $ac_init_version; then |
1543 | cat <<\_ACEOF | |
2e98a7bd | 1544 | ld configure 2.24.51 |
81ecdfbb | 1545 | generated by GNU Autoconf 2.64 |
a2d91340 | 1546 | |
81ecdfbb | 1547 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
1548 | This configure script is free software; the Free Software Foundation |
1549 | gives unlimited permission to copy, distribute and modify it. | |
1550 | _ACEOF | |
81ecdfbb | 1551 | exit |
42ecbf5e | 1552 | fi |
a2d91340 | 1553 | |
81ecdfbb RW |
1554 | ## ------------------------ ## |
1555 | ## Autoconf initialization. ## | |
1556 | ## ------------------------ ## | |
a2d91340 | 1557 | |
81ecdfbb RW |
1558 | # ac_fn_c_try_compile LINENO |
1559 | # -------------------------- | |
1560 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1561 | ac_fn_c_try_compile () | |
1562 | { | |
1563 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1564 | rm -f conftest.$ac_objext | |
1565 | if { { ac_try="$ac_compile" | |
1566 | case "(($ac_try" in | |
1567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1568 | *) ac_try_echo=$ac_try;; | |
1569 | esac | |
1570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1571 | $as_echo "$ac_try_echo"; } >&5 | |
1572 | (eval "$ac_compile") 2>conftest.err | |
1573 | ac_status=$? | |
1574 | if test -s conftest.err; then | |
1575 | grep -v '^ *+' conftest.err >conftest.er1 | |
1576 | cat conftest.er1 >&5 | |
1577 | mv -f conftest.er1 conftest.err | |
1578 | fi | |
1579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1580 | test $ac_status = 0; } && { | |
1581 | test -z "$ac_c_werror_flag" || | |
1582 | test ! -s conftest.err | |
1583 | } && test -s conftest.$ac_objext; then : | |
1584 | ac_retval=0 | |
1585 | else | |
1586 | $as_echo "$as_me: failed program was:" >&5 | |
1587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a2d91340 | 1588 | |
81ecdfbb RW |
1589 | ac_retval=1 |
1590 | fi | |
1591 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1592 | return $ac_retval | |
1593 | ||
1594 | } # ac_fn_c_try_compile | |
1595 | ||
1596 | # ac_fn_c_try_link LINENO | |
1597 | # ----------------------- | |
1598 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1599 | ac_fn_c_try_link () | |
42ecbf5e | 1600 | { |
81ecdfbb RW |
1601 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1603 | if { { ac_try="$ac_link" | |
1604 | case "(($ac_try" in | |
1605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1606 | *) ac_try_echo=$ac_try;; | |
1607 | esac | |
1608 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1609 | $as_echo "$ac_try_echo"; } >&5 | |
1610 | (eval "$ac_link") 2>conftest.err | |
1611 | ac_status=$? | |
1612 | if test -s conftest.err; then | |
1613 | grep -v '^ *+' conftest.err >conftest.er1 | |
1614 | cat conftest.er1 >&5 | |
1615 | mv -f conftest.er1 conftest.err | |
1616 | fi | |
1617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1618 | test $ac_status = 0; } && { | |
1619 | test -z "$ac_c_werror_flag" || | |
1620 | test ! -s conftest.err | |
1621 | } && test -s conftest$ac_exeext && { | |
1622 | test "$cross_compiling" = yes || | |
1623 | $as_test_x conftest$ac_exeext | |
1624 | }; then : | |
1625 | ac_retval=0 | |
1626 | else | |
1627 | $as_echo "$as_me: failed program was:" >&5 | |
1628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 1629 | |
81ecdfbb RW |
1630 | ac_retval=1 |
1631 | fi | |
1632 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1633 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1634 | # interfere with the next link command; also delete a directory that is | |
1635 | # left behind by Apple's compiler. We do this before executing the actions. | |
1636 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1637 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1638 | return $ac_retval | |
42ecbf5e | 1639 | |
81ecdfbb | 1640 | } # ac_fn_c_try_link |
42ecbf5e | 1641 | |
81ecdfbb RW |
1642 | # ac_fn_c_try_cpp LINENO |
1643 | # ---------------------- | |
1644 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1645 | ac_fn_c_try_cpp () | |
1646 | { | |
1647 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1648 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1649 | case "(($ac_try" in | |
1650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1651 | *) ac_try_echo=$ac_try;; | |
1652 | esac | |
1653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1654 | $as_echo "$ac_try_echo"; } >&5 | |
1655 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1656 | ac_status=$? | |
1657 | if test -s conftest.err; then | |
1658 | grep -v '^ *+' conftest.err >conftest.er1 | |
1659 | cat conftest.er1 >&5 | |
1660 | mv -f conftest.er1 conftest.err | |
1661 | fi | |
1662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1663 | test $ac_status = 0; } >/dev/null && { | |
1664 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1665 | test ! -s conftest.err | |
1666 | }; then : | |
1667 | ac_retval=0 | |
1668 | else | |
1669 | $as_echo "$as_me: failed program was:" >&5 | |
1670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1671 | ||
1672 | ac_retval=1 | |
1673 | fi | |
1674 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1675 | return $ac_retval | |
1676 | ||
1677 | } # ac_fn_c_try_cpp | |
1678 | ||
3cb62297 L |
1679 | # ac_fn_cxx_try_compile LINENO |
1680 | # ---------------------------- | |
1681 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1682 | ac_fn_cxx_try_compile () | |
1683 | { | |
1684 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1685 | rm -f conftest.$ac_objext | |
1686 | if { { ac_try="$ac_compile" | |
1687 | case "(($ac_try" in | |
1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1689 | *) ac_try_echo=$ac_try;; | |
1690 | esac | |
1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1692 | $as_echo "$ac_try_echo"; } >&5 | |
1693 | (eval "$ac_compile") 2>conftest.err | |
1694 | ac_status=$? | |
1695 | if test -s conftest.err; then | |
1696 | grep -v '^ *+' conftest.err >conftest.er1 | |
1697 | cat conftest.er1 >&5 | |
1698 | mv -f conftest.er1 conftest.err | |
1699 | fi | |
1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1701 | test $ac_status = 0; } && { | |
1702 | test -z "$ac_cxx_werror_flag" || | |
1703 | test ! -s conftest.err | |
1704 | } && test -s conftest.$ac_objext; then : | |
1705 | ac_retval=0 | |
1706 | else | |
1707 | $as_echo "$as_me: failed program was:" >&5 | |
1708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1709 | ||
1710 | ac_retval=1 | |
1711 | fi | |
1712 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1713 | return $ac_retval | |
1714 | ||
1715 | } # ac_fn_cxx_try_compile | |
1716 | ||
81ecdfbb RW |
1717 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1718 | # ------------------------------------------------------- | |
1719 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1720 | # the include files in INCLUDES and setting the cache variable VAR | |
1721 | # accordingly. | |
1722 | ac_fn_c_check_header_mongrel () | |
1723 | { | |
1724 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1725 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1727 | $as_echo_n "checking for $2... " >&6; } | |
1728 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1729 | $as_echo_n "(cached) " >&6 | |
1730 | fi | |
1731 | eval ac_res=\$$3 | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1733 | $as_echo "$ac_res" >&6; } | |
1734 | else | |
1735 | # Is the header compilable? | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1737 | $as_echo_n "checking $2 usability... " >&6; } | |
1738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1739 | /* end confdefs.h. */ | |
1740 | $4 | |
1741 | #include <$2> | |
1742 | _ACEOF | |
1743 | if ac_fn_c_try_compile "$LINENO"; then : | |
1744 | ac_header_compiler=yes | |
1745 | else | |
1746 | ac_header_compiler=no | |
1747 | fi | |
1748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1750 | $as_echo "$ac_header_compiler" >&6; } | |
1751 | ||
1752 | # Is the header present? | |
1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1754 | $as_echo_n "checking $2 presence... " >&6; } | |
1755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1756 | /* end confdefs.h. */ | |
1757 | #include <$2> | |
1758 | _ACEOF | |
1759 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1760 | ac_header_preproc=yes | |
1761 | else | |
1762 | ac_header_preproc=no | |
1763 | fi | |
1764 | rm -f conftest.err conftest.$ac_ext | |
1765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1766 | $as_echo "$ac_header_preproc" >&6; } | |
1767 | ||
1768 | # So? What about this header? | |
1769 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1770 | yes:no: ) | |
1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1772 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1774 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1775 | ;; | |
1776 | no:yes:* ) | |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1778 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1780 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1782 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1784 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1786 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1787 | ;; | |
1788 | esac | |
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1790 | $as_echo_n "checking for $2... " >&6; } | |
1791 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1792 | $as_echo_n "(cached) " >&6 | |
1793 | else | |
1794 | eval "$3=\$ac_header_compiler" | |
1795 | fi | |
1796 | eval ac_res=\$$3 | |
1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1798 | $as_echo "$ac_res" >&6; } | |
1799 | fi | |
1800 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1801 | ||
1802 | } # ac_fn_c_check_header_mongrel | |
1803 | ||
1804 | # ac_fn_c_try_run LINENO | |
1805 | # ---------------------- | |
1806 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1807 | # that executables *can* be run. | |
1808 | ac_fn_c_try_run () | |
1809 | { | |
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 | if { { ac_try="$ac_link" | |
1812 | case "(($ac_try" in | |
1813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1814 | *) ac_try_echo=$ac_try;; | |
1815 | esac | |
1816 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1817 | $as_echo "$ac_try_echo"; } >&5 | |
1818 | (eval "$ac_link") 2>&5 | |
1819 | ac_status=$? | |
1820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1821 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1822 | { { case "(($ac_try" in | |
1823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1824 | *) ac_try_echo=$ac_try;; | |
1825 | esac | |
1826 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1827 | $as_echo "$ac_try_echo"; } >&5 | |
1828 | (eval "$ac_try") 2>&5 | |
1829 | ac_status=$? | |
1830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1831 | test $ac_status = 0; }; }; then : | |
1832 | ac_retval=0 | |
1833 | else | |
1834 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1835 | $as_echo "$as_me: failed program was:" >&5 | |
1836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1837 | ||
1838 | ac_retval=$ac_status | |
1839 | fi | |
1840 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1841 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1842 | return $ac_retval | |
1843 | ||
1844 | } # ac_fn_c_try_run | |
1845 | ||
1846 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1847 | # ------------------------------------------------------- | |
1848 | # Tests whether HEADER exists and can be compiled using the include files in | |
1849 | # INCLUDES, setting the cache variable VAR accordingly. | |
1850 | ac_fn_c_check_header_compile () | |
1851 | { | |
1852 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1854 | $as_echo_n "checking for $2... " >&6; } | |
1855 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1856 | $as_echo_n "(cached) " >&6 | |
1857 | else | |
1858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1859 | /* end confdefs.h. */ | |
1860 | $4 | |
1861 | #include <$2> | |
1862 | _ACEOF | |
1863 | if ac_fn_c_try_compile "$LINENO"; then : | |
1864 | eval "$3=yes" | |
1865 | else | |
1866 | eval "$3=no" | |
1867 | fi | |
1868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1869 | fi | |
1870 | eval ac_res=\$$3 | |
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1872 | $as_echo "$ac_res" >&6; } | |
1873 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1874 | ||
1875 | } # ac_fn_c_check_header_compile | |
1876 | ||
1877 | # ac_fn_c_check_func LINENO FUNC VAR | |
1878 | # ---------------------------------- | |
1879 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1880 | ac_fn_c_check_func () | |
1881 | { | |
1882 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1884 | $as_echo_n "checking for $2... " >&6; } | |
1885 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1886 | $as_echo_n "(cached) " >&6 | |
1887 | else | |
1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1889 | /* end confdefs.h. */ | |
1890 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1891 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1892 | #define $2 innocuous_$2 | |
1893 | ||
1894 | /* System header to define __stub macros and hopefully few prototypes, | |
1895 | which can conflict with char $2 (); below. | |
1896 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1897 | <limits.h> exists even on freestanding compilers. */ | |
1898 | ||
1899 | #ifdef __STDC__ | |
1900 | # include <limits.h> | |
1901 | #else | |
1902 | # include <assert.h> | |
1903 | #endif | |
1904 | ||
1905 | #undef $2 | |
1906 | ||
1907 | /* Override any GCC internal prototype to avoid an error. | |
1908 | Use char because int might match the return type of a GCC | |
1909 | builtin and then its argument prototype would still apply. */ | |
1910 | #ifdef __cplusplus | |
1911 | extern "C" | |
1912 | #endif | |
1913 | char $2 (); | |
1914 | /* The GNU C library defines this for functions which it implements | |
1915 | to always fail with ENOSYS. Some functions are actually named | |
1916 | something starting with __ and the normal name is an alias. */ | |
1917 | #if defined __stub_$2 || defined __stub___$2 | |
1918 | choke me | |
1919 | #endif | |
1920 | ||
1921 | int | |
1922 | main () | |
1923 | { | |
1924 | return $2 (); | |
1925 | ; | |
1926 | return 0; | |
1927 | } | |
1928 | _ACEOF | |
1929 | if ac_fn_c_try_link "$LINENO"; then : | |
1930 | eval "$3=yes" | |
1931 | else | |
1932 | eval "$3=no" | |
1933 | fi | |
1934 | rm -f core conftest.err conftest.$ac_objext \ | |
1935 | conftest$ac_exeext conftest.$ac_ext | |
1936 | fi | |
1937 | eval ac_res=\$$3 | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1939 | $as_echo "$ac_res" >&6; } | |
1940 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1941 | ||
1942 | } # ac_fn_c_check_func | |
1943 | ||
3cb62297 L |
1944 | # ac_fn_cxx_try_cpp LINENO |
1945 | # ------------------------ | |
1946 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1947 | ac_fn_cxx_try_cpp () | |
1948 | { | |
1949 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1950 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1951 | case "(($ac_try" in | |
1952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1953 | *) ac_try_echo=$ac_try;; | |
1954 | esac | |
1955 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1956 | $as_echo "$ac_try_echo"; } >&5 | |
1957 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1958 | ac_status=$? | |
1959 | if test -s conftest.err; then | |
1960 | grep -v '^ *+' conftest.err >conftest.er1 | |
1961 | cat conftest.er1 >&5 | |
1962 | mv -f conftest.er1 conftest.err | |
1963 | fi | |
1964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1965 | test $ac_status = 0; } >/dev/null && { | |
1966 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1967 | test ! -s conftest.err | |
1968 | }; then : | |
1969 | ac_retval=0 | |
1970 | else | |
1971 | $as_echo "$as_me: failed program was:" >&5 | |
1972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1973 | ||
1974 | ac_retval=1 | |
1975 | fi | |
1976 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1977 | return $ac_retval | |
1978 | ||
1979 | } # ac_fn_cxx_try_cpp | |
1980 | ||
1981 | # ac_fn_cxx_try_link LINENO | |
1982 | # ------------------------- | |
1983 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1984 | ac_fn_cxx_try_link () | |
1985 | { | |
1986 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1988 | if { { ac_try="$ac_link" | |
1989 | case "(($ac_try" in | |
1990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1991 | *) ac_try_echo=$ac_try;; | |
1992 | esac | |
1993 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1994 | $as_echo "$ac_try_echo"; } >&5 | |
1995 | (eval "$ac_link") 2>conftest.err | |
1996 | ac_status=$? | |
1997 | if test -s conftest.err; then | |
1998 | grep -v '^ *+' conftest.err >conftest.er1 | |
1999 | cat conftest.er1 >&5 | |
2000 | mv -f conftest.er1 conftest.err | |
2001 | fi | |
2002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2003 | test $ac_status = 0; } && { | |
2004 | test -z "$ac_cxx_werror_flag" || | |
2005 | test ! -s conftest.err | |
2006 | } && test -s conftest$ac_exeext && { | |
2007 | test "$cross_compiling" = yes || | |
2008 | $as_test_x conftest$ac_exeext | |
2009 | }; then : | |
2010 | ac_retval=0 | |
2011 | else | |
2012 | $as_echo "$as_me: failed program was:" >&5 | |
2013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2014 | ||
2015 | ac_retval=1 | |
2016 | fi | |
2017 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2018 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2019 | # interfere with the next link command; also delete a directory that is | |
2020 | # left behind by Apple's compiler. We do this before executing the actions. | |
2021 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2022 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2023 | return $ac_retval | |
2024 | ||
2025 | } # ac_fn_cxx_try_link | |
2026 | ||
81ecdfbb RW |
2027 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
2028 | # ------------------------------------ | |
2029 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2030 | ac_fn_c_check_decl () | |
2031 | { | |
2032 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
2033 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2034 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2036 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2037 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2038 | $as_echo_n "(cached) " >&6 | |
2039 | else | |
2040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2041 | /* end confdefs.h. */ | |
2042 | $4 | |
2043 | int | |
2044 | main () | |
2045 | { | |
360cfc9c AM |
2046 | #ifndef $as_decl_name |
2047 | #ifdef __cplusplus | |
2048 | (void) $as_decl_use; | |
2049 | #else | |
2050 | (void) $as_decl_name; | |
2051 | #endif | |
81ecdfbb RW |
2052 | #endif |
2053 | ||
2054 | ; | |
2055 | return 0; | |
2056 | } | |
2057 | _ACEOF | |
2058 | if ac_fn_c_try_compile "$LINENO"; then : | |
2059 | eval "$3=yes" | |
2060 | else | |
2061 | eval "$3=no" | |
2062 | fi | |
2063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2064 | fi | |
2065 | eval ac_res=\$$3 | |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2067 | $as_echo "$ac_res" >&6; } | |
2068 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2069 | ||
2070 | } # ac_fn_c_check_decl | |
2071 | ||
2072 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2073 | # -------------------------------------------- | |
2074 | # Tries to find the compile-time value of EXPR in a program that includes | |
2075 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2076 | # computed | |
2077 | ac_fn_c_compute_int () | |
2078 | { | |
2079 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2080 | if test "$cross_compiling" = yes; then | |
2081 | # Depending upon the size, compute the lo and hi bounds. | |
2082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2083 | /* end confdefs.h. */ | |
2084 | $4 | |
2085 | int | |
2086 | main () | |
2087 | { | |
2088 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2089 | test_array [0] = 0 | |
2090 | ||
2091 | ; | |
2092 | return 0; | |
2093 | } | |
2094 | _ACEOF | |
2095 | if ac_fn_c_try_compile "$LINENO"; then : | |
2096 | ac_lo=0 ac_mid=0 | |
2097 | while :; do | |
2098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2099 | /* end confdefs.h. */ | |
2100 | $4 | |
2101 | int | |
2102 | main () | |
2103 | { | |
2104 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2105 | test_array [0] = 0 | |
2106 | ||
2107 | ; | |
2108 | return 0; | |
2109 | } | |
2110 | _ACEOF | |
2111 | if ac_fn_c_try_compile "$LINENO"; then : | |
2112 | ac_hi=$ac_mid; break | |
2113 | else | |
2114 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2115 | if test $ac_lo -le $ac_mid; then | |
2116 | ac_lo= ac_hi= | |
2117 | break | |
2118 | fi | |
2119 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2120 | fi | |
2121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2122 | done | |
2123 | else | |
2124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2125 | /* end confdefs.h. */ | |
2126 | $4 | |
2127 | int | |
2128 | main () | |
2129 | { | |
2130 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2131 | test_array [0] = 0 | |
2132 | ||
2133 | ; | |
2134 | return 0; | |
2135 | } | |
2136 | _ACEOF | |
2137 | if ac_fn_c_try_compile "$LINENO"; then : | |
2138 | ac_hi=-1 ac_mid=-1 | |
2139 | while :; do | |
2140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2141 | /* end confdefs.h. */ | |
2142 | $4 | |
2143 | int | |
2144 | main () | |
2145 | { | |
2146 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2147 | test_array [0] = 0 | |
2148 | ||
2149 | ; | |
2150 | return 0; | |
2151 | } | |
2152 | _ACEOF | |
2153 | if ac_fn_c_try_compile "$LINENO"; then : | |
2154 | ac_lo=$ac_mid; break | |
2155 | else | |
2156 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2157 | if test $ac_mid -le $ac_hi; then | |
2158 | ac_lo= ac_hi= | |
2159 | break | |
2160 | fi | |
2161 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2162 | fi | |
2163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2164 | done | |
2165 | else | |
2166 | ac_lo= ac_hi= | |
2167 | fi | |
2168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2169 | fi | |
2170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2171 | # Binary search between lo and hi bounds. | |
2172 | while test "x$ac_lo" != "x$ac_hi"; do | |
2173 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2175 | /* end confdefs.h. */ | |
2176 | $4 | |
2177 | int | |
2178 | main () | |
2179 | { | |
2180 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2181 | test_array [0] = 0 | |
2182 | ||
2183 | ; | |
2184 | return 0; | |
2185 | } | |
2186 | _ACEOF | |
2187 | if ac_fn_c_try_compile "$LINENO"; then : | |
2188 | ac_hi=$ac_mid | |
2189 | else | |
2190 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2191 | fi | |
2192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2193 | done | |
2194 | case $ac_lo in #(( | |
2195 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2196 | '') ac_retval=1 ;; | |
2197 | esac | |
2198 | else | |
2199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2200 | /* end confdefs.h. */ | |
2201 | $4 | |
2202 | static long int longval () { return $2; } | |
2203 | static unsigned long int ulongval () { return $2; } | |
2204 | #include <stdio.h> | |
2205 | #include <stdlib.h> | |
2206 | int | |
2207 | main () | |
2208 | { | |
2209 | ||
2210 | FILE *f = fopen ("conftest.val", "w"); | |
2211 | if (! f) | |
2212 | return 1; | |
2213 | if (($2) < 0) | |
2214 | { | |
2215 | long int i = longval (); | |
2216 | if (i != ($2)) | |
2217 | return 1; | |
2218 | fprintf (f, "%ld", i); | |
2219 | } | |
2220 | else | |
2221 | { | |
2222 | unsigned long int i = ulongval (); | |
2223 | if (i != ($2)) | |
2224 | return 1; | |
2225 | fprintf (f, "%lu", i); | |
2226 | } | |
2227 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2228 | on some platforms. */ | |
2229 | return ferror (f) || fclose (f) != 0; | |
2230 | ||
2231 | ; | |
2232 | return 0; | |
2233 | } | |
2234 | _ACEOF | |
2235 | if ac_fn_c_try_run "$LINENO"; then : | |
2236 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2237 | else | |
2238 | ac_retval=1 | |
2239 | fi | |
2240 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2241 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2242 | rm -f conftest.val | |
2243 | ||
2244 | fi | |
2245 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2246 | return $ac_retval | |
2247 | ||
2248 | } # ac_fn_c_compute_int | |
2249 | cat >config.log <<_ACEOF | |
2250 | This file contains any messages produced by compilers while | |
2251 | running configure, to aid debugging if configure makes a mistake. | |
2252 | ||
2e98a7bd | 2253 | It was created by ld $as_me 2.24.51, which was |
81ecdfbb RW |
2254 | generated by GNU Autoconf 2.64. Invocation command line was |
2255 | ||
2256 | $ $0 $@ | |
2257 | ||
2258 | _ACEOF | |
2259 | exec 5>>config.log | |
2260 | { | |
2261 | cat <<_ASUNAME | |
2262 | ## --------- ## | |
2263 | ## Platform. ## | |
2264 | ## --------- ## | |
2265 | ||
2266 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2267 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2268 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2269 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2270 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2271 | ||
2272 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2273 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2274 | ||
2275 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2276 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2277 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2278 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
42ecbf5e DJ |
2279 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2280 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2281 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2282 | ||
2283 | _ASUNAME | |
2284 | ||
2285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2286 | for as_dir in $PATH | |
2287 | do | |
2288 | IFS=$as_save_IFS | |
2289 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2290 | $as_echo "PATH: $as_dir" |
2291 | done | |
2292 | IFS=$as_save_IFS | |
252b5132 | 2293 | |
42ecbf5e | 2294 | } >&5 |
5d64ca4e | 2295 | |
42ecbf5e | 2296 | cat >&5 <<_ACEOF |
5d64ca4e | 2297 | |
5d64ca4e | 2298 | |
42ecbf5e DJ |
2299 | ## ----------- ## |
2300 | ## Core tests. ## | |
2301 | ## ----------- ## | |
5d64ca4e | 2302 | |
42ecbf5e | 2303 | _ACEOF |
2469cfa2 | 2304 | |
42ecbf5e DJ |
2305 | |
2306 | # Keep a trace of the command line. | |
2307 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2308 | # Strip out --silent because we don't want to record it for future runs. | |
2309 | # Also quote any args containing shell meta-characters. | |
2310 | # Make two passes to allow for proper duplicate-argument suppression. | |
2311 | ac_configure_args= | |
2312 | ac_configure_args0= | |
2313 | ac_configure_args1= | |
42ecbf5e DJ |
2314 | ac_must_keep_next=false |
2315 | for ac_pass in 1 2 | |
2316 | do | |
2317 | for ac_arg | |
2318 | do | |
2319 | case $ac_arg in | |
2320 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2321 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2322 | | -silent | --silent | --silen | --sile | --sil) | |
2323 | continue ;; | |
81ecdfbb RW |
2324 | *\'*) |
2325 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42ecbf5e DJ |
2326 | esac |
2327 | case $ac_pass in | |
81ecdfbb | 2328 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
42ecbf5e | 2329 | 2) |
81ecdfbb | 2330 | as_fn_append ac_configure_args1 " '$ac_arg'" |
42ecbf5e DJ |
2331 | if test $ac_must_keep_next = true; then |
2332 | ac_must_keep_next=false # Got value, back to normal. | |
2333 | else | |
2334 | case $ac_arg in | |
2335 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2336 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2337 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2338 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2339 | case "$ac_configure_args0 " in | |
2340 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2341 | esac | |
2342 | ;; | |
2343 | -* ) ac_must_keep_next=true ;; | |
2344 | esac | |
2345 | fi | |
81ecdfbb | 2346 | as_fn_append ac_configure_args " '$ac_arg'" |
42ecbf5e DJ |
2347 | ;; |
2348 | esac | |
2349 | done | |
2350 | done | |
81ecdfbb RW |
2351 | { ac_configure_args0=; unset ac_configure_args0;} |
2352 | { ac_configure_args1=; unset ac_configure_args1;} | |
42ecbf5e DJ |
2353 | |
2354 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2355 | # config.log. We remove comments because anyway the quotes in there | |
2356 | # would cause problems or look ugly. | |
81ecdfbb RW |
2357 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2358 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
42ecbf5e DJ |
2359 | trap 'exit_status=$? |
2360 | # Save into config.log some information that might help in debugging. | |
2361 | { | |
2362 | echo | |
2363 | ||
2364 | cat <<\_ASBOX | |
2365 | ## ---------------- ## | |
2366 | ## Cache variables. ## | |
2367 | ## ---------------- ## | |
2368 | _ASBOX | |
2369 | echo | |
2370 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2371 | ( |
2372 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2373 | eval ac_val=\$$ac_var | |
2374 | case $ac_val in #( | |
2375 | *${as_nl}*) | |
2376 | case $ac_var in #( | |
2377 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2378 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2379 | esac | |
2380 | case $ac_var in #( | |
2381 | _ | IFS | as_nl) ;; #( | |
2382 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2383 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2384 | esac ;; | |
2385 | esac | |
2386 | done | |
42ecbf5e | 2387 | (set) 2>&1 | |
81ecdfbb RW |
2388 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2389 | *${as_nl}ac_space=\ *) | |
42ecbf5e | 2390 | sed -n \ |
81ecdfbb RW |
2391 | "s/'\''/'\''\\\\'\'''\''/g; |
2392 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2393 | ;; #( | |
42ecbf5e | 2394 | *) |
81ecdfbb | 2395 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 2396 | ;; |
81ecdfbb RW |
2397 | esac | |
2398 | sort | |
2399 | ) | |
42ecbf5e DJ |
2400 | echo |
2401 | ||
2402 | cat <<\_ASBOX | |
2403 | ## ----------------- ## | |
2404 | ## Output variables. ## | |
2405 | ## ----------------- ## | |
2406 | _ASBOX | |
2407 | echo | |
2408 | for ac_var in $ac_subst_vars | |
2409 | do | |
81ecdfbb RW |
2410 | eval ac_val=\$$ac_var |
2411 | case $ac_val in | |
2412 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2413 | esac | |
2414 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2415 | done | sort |
2416 | echo | |
2417 | ||
2418 | if test -n "$ac_subst_files"; then | |
2419 | cat <<\_ASBOX | |
81ecdfbb RW |
2420 | ## ------------------- ## |
2421 | ## File substitutions. ## | |
2422 | ## ------------------- ## | |
42ecbf5e DJ |
2423 | _ASBOX |
2424 | echo | |
2425 | for ac_var in $ac_subst_files | |
2426 | do | |
81ecdfbb RW |
2427 | eval ac_val=\$$ac_var |
2428 | case $ac_val in | |
2429 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2430 | esac | |
2431 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2432 | done | sort |
2433 | echo | |
2434 | fi | |
2435 | ||
2436 | if test -s confdefs.h; then | |
2437 | cat <<\_ASBOX | |
2438 | ## ----------- ## | |
2439 | ## confdefs.h. ## | |
2440 | ## ----------- ## | |
2441 | _ASBOX | |
2442 | echo | |
81ecdfbb | 2443 | cat confdefs.h |
42ecbf5e DJ |
2444 | echo |
2445 | fi | |
2446 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2447 | $as_echo "$as_me: caught signal $ac_signal" |
2448 | $as_echo "$as_me: exit $exit_status" | |
42ecbf5e | 2449 | } >&5 |
81ecdfbb RW |
2450 | rm -f core *.core core.conftest.* && |
2451 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
42ecbf5e | 2452 | exit $exit_status |
81ecdfbb | 2453 | ' 0 |
42ecbf5e | 2454 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2455 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
42ecbf5e DJ |
2456 | done |
2457 | ac_signal=0 | |
2458 | ||
2459 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2460 | rm -f -r conftest* confdefs.h |
2461 | ||
2462 | $as_echo "/* confdefs.h */" > confdefs.h | |
42ecbf5e DJ |
2463 | |
2464 | # Predefined preprocessor variables. | |
2465 | ||
2466 | cat >>confdefs.h <<_ACEOF | |
2467 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2468 | _ACEOF | |
2469 | ||
42ecbf5e DJ |
2470 | cat >>confdefs.h <<_ACEOF |
2471 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2472 | _ACEOF | |
2473 | ||
42ecbf5e DJ |
2474 | cat >>confdefs.h <<_ACEOF |
2475 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2476 | _ACEOF | |
2477 | ||
42ecbf5e DJ |
2478 | cat >>confdefs.h <<_ACEOF |
2479 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2480 | _ACEOF | |
2481 | ||
42ecbf5e DJ |
2482 | cat >>confdefs.h <<_ACEOF |
2483 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2484 | _ACEOF | |
2485 | ||
81ecdfbb RW |
2486 | cat >>confdefs.h <<_ACEOF |
2487 | #define PACKAGE_URL "$PACKAGE_URL" | |
2488 | _ACEOF | |
2489 | ||
42ecbf5e DJ |
2490 | |
2491 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2492 | # Prefer an explicitly selected file to automatically selected ones. |
2493 | ac_site_file1=NONE | |
2494 | ac_site_file2=NONE | |
2495 | if test -n "$CONFIG_SITE"; then | |
2496 | ac_site_file1=$CONFIG_SITE | |
2497 | elif test "x$prefix" != xNONE; then | |
2498 | ac_site_file1=$prefix/share/config.site | |
2499 | ac_site_file2=$prefix/etc/config.site | |
2500 | else | |
2501 | ac_site_file1=$ac_default_prefix/share/config.site | |
2502 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2503 | fi | |
2504 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2505 | do | |
2506 | test "x$ac_site_file" = xNONE && continue | |
42ecbf5e | 2507 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2509 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
42ecbf5e DJ |
2510 | sed 's/^/| /' "$ac_site_file" >&5 |
2511 | . "$ac_site_file" | |
2512 | fi | |
2513 | done | |
2514 | ||
2515 | if test -r "$cache_file"; then | |
2516 | # Some versions of bash will fail to source /dev/null (special | |
2517 | # files actually), so we avoid doing that. | |
2518 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2520 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
42ecbf5e | 2521 | case $cache_file in |
81ecdfbb RW |
2522 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2523 | *) . "./$cache_file";; | |
42ecbf5e DJ |
2524 | esac |
2525 | fi | |
2526 | else | |
81ecdfbb RW |
2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2528 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
42ecbf5e DJ |
2529 | >$cache_file |
2530 | fi | |
2531 | ||
2532 | # Check that the precious variables saved in the cache have kept the same | |
2533 | # value. | |
2534 | ac_cache_corrupted=false | |
81ecdfbb | 2535 | for ac_var in $ac_precious_vars; do |
42ecbf5e DJ |
2536 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2537 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2538 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2539 | eval ac_new_val=\$ac_env_${ac_var}_value | |
42ecbf5e DJ |
2540 | case $ac_old_set,$ac_new_set in |
2541 | set,) | |
81ecdfbb RW |
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2543 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
42ecbf5e DJ |
2544 | ac_cache_corrupted=: ;; |
2545 | ,set) | |
81ecdfbb RW |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2547 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
42ecbf5e DJ |
2548 | ac_cache_corrupted=: ;; |
2549 | ,);; | |
2550 | *) | |
2551 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2552 | # differences in whitespace do not lead to failure. |
2553 | ac_old_val_w=`echo x $ac_old_val` | |
2554 | ac_new_val_w=`echo x $ac_new_val` | |
2555 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2557 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2558 | ac_cache_corrupted=: | |
2559 | else | |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2561 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2562 | eval $ac_var=\$ac_old_val | |
2563 | fi | |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2565 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2567 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
2568 | fi;; |
2569 | esac | |
2570 | # Pass precious variables to config.status. | |
2571 | if test "$ac_new_set" = set; then | |
2572 | case $ac_new_val in | |
81ecdfbb | 2573 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
42ecbf5e DJ |
2574 | *) ac_arg=$ac_var=$ac_new_val ;; |
2575 | esac | |
2576 | case " $ac_configure_args " in | |
2577 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2578 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
42ecbf5e DJ |
2579 | esac |
2580 | fi | |
2581 | done | |
2582 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2586 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2587 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
42ecbf5e | 2588 | fi |
81ecdfbb RW |
2589 | ## -------------------- ## |
2590 | ## Main body of script. ## | |
2591 | ## -------------------- ## | |
42ecbf5e DJ |
2592 | |
2593 | ac_ext=c | |
2594 | ac_cpp='$CPP $CPPFLAGS' | |
2595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2598 | ||
2599 | ||
2600 | ||
42ecbf5e | 2601 | |
da594c4a | 2602 | |
42ecbf5e DJ |
2603 | |
2604 | ||
2605 | ac_aux_dir= | |
81ecdfbb RW |
2606 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2607 | for ac_t in install-sh install.sh shtool; do | |
2608 | if test -f "$ac_dir/$ac_t"; then | |
2609 | ac_aux_dir=$ac_dir | |
2610 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2611 | break 2 | |
2612 | fi | |
2613 | done | |
42ecbf5e DJ |
2614 | done |
2615 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2616 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
42ecbf5e | 2617 | fi |
81ecdfbb RW |
2618 | |
2619 | # These three variables are undocumented and unsupported, | |
2620 | # and are intended to be withdrawn in a future Autoconf release. | |
2621 | # They can cause serious problems if a builder's source tree is in a directory | |
2622 | # whose full name contains unusual characters. | |
2623 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2624 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2625 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2626 | ||
42ecbf5e DJ |
2627 | |
2628 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2629 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2630 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2631 | ||
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2633 | $as_echo_n "checking build system type... " >&6; } | |
2634 | if test "${ac_cv_build+set}" = set; then : | |
2635 | $as_echo_n "(cached) " >&6 | |
2636 | else | |
2637 | ac_build_alias=$build_alias | |
2638 | test "x$ac_build_alias" = x && | |
2639 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2640 | test "x$ac_build_alias" = x && | |
2641 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2642 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2643 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2644 | ||
2645 | fi | |
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2647 | $as_echo "$ac_cv_build" >&6; } | |
2648 | case $ac_cv_build in | |
2649 | *-*-*) ;; | |
2650 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2651 | esac | |
42ecbf5e | 2652 | build=$ac_cv_build |
81ecdfbb RW |
2653 | ac_save_IFS=$IFS; IFS='-' |
2654 | set x $ac_cv_build | |
2655 | shift | |
2656 | build_cpu=$1 | |
2657 | build_vendor=$2 | |
2658 | shift; shift | |
2659 | # Remember, the first character of IFS is used to create $*, | |
2660 | # except with old shells: | |
2661 | build_os=$* | |
2662 | IFS=$ac_save_IFS | |
2663 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2664 | |
2665 | ||
81ecdfbb RW |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2667 | $as_echo_n "checking host system type... " >&6; } | |
2668 | if test "${ac_cv_host+set}" = set; then : | |
2669 | $as_echo_n "(cached) " >&6 | |
2670 | else | |
2671 | if test "x$host_alias" = x; then | |
2672 | ac_cv_host=$ac_cv_build | |
42ecbf5e | 2673 | else |
81ecdfbb RW |
2674 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2675 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2676 | fi | |
42ecbf5e DJ |
2677 | |
2678 | fi | |
81ecdfbb RW |
2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2680 | $as_echo "$ac_cv_host" >&6; } | |
2681 | case $ac_cv_host in | |
2682 | *-*-*) ;; | |
2683 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2684 | esac | |
42ecbf5e | 2685 | host=$ac_cv_host |
81ecdfbb RW |
2686 | ac_save_IFS=$IFS; IFS='-' |
2687 | set x $ac_cv_host | |
2688 | shift | |
2689 | host_cpu=$1 | |
2690 | host_vendor=$2 | |
2691 | shift; shift | |
2692 | # Remember, the first character of IFS is used to create $*, | |
2693 | # except with old shells: | |
2694 | host_os=$* | |
2695 | IFS=$ac_save_IFS | |
2696 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2697 | |
2698 | ||
81ecdfbb RW |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2700 | $as_echo_n "checking target system type... " >&6; } | |
2701 | if test "${ac_cv_target+set}" = set; then : | |
2702 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 2703 | else |
81ecdfbb RW |
2704 | if test "x$target_alias" = x; then |
2705 | ac_cv_target=$ac_cv_host | |
2706 | else | |
2707 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2708 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2709 | fi | |
42ecbf5e DJ |
2710 | |
2711 | fi | |
81ecdfbb RW |
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2713 | $as_echo "$ac_cv_target" >&6; } | |
2714 | case $ac_cv_target in | |
2715 | *-*-*) ;; | |
2716 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2717 | esac | |
42ecbf5e | 2718 | target=$ac_cv_target |
81ecdfbb RW |
2719 | ac_save_IFS=$IFS; IFS='-' |
2720 | set x $ac_cv_target | |
2721 | shift | |
2722 | target_cpu=$1 | |
2723 | target_vendor=$2 | |
2724 | shift; shift | |
2725 | # Remember, the first character of IFS is used to create $*, | |
2726 | # except with old shells: | |
2727 | target_os=$* | |
2728 | IFS=$ac_save_IFS | |
2729 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2730 | |
2731 | ||
2732 | # The aliases save the names the user supplied, while $host etc. | |
2733 | # will get canonicalized. | |
2734 | test -n "$target_alias" && | |
2735 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2736 | NONENONEs,x,x, && | |
2737 | program_prefix=${target_alias}- | |
02ecc8e9 | 2738 | |
42ecbf5e DJ |
2739 | ac_ext=c |
2740 | ac_cpp='$CPP $CPPFLAGS' | |
2741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2744 | if test -n "$ac_tool_prefix"; then | |
2745 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2746 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2748 | $as_echo_n "checking for $ac_word... " >&6; } | |
2749 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2750 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2751 | else |
2752 | if test -n "$CC"; then | |
2753 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2754 | else | |
2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2756 | for as_dir in $PATH | |
2757 | do | |
2758 | IFS=$as_save_IFS | |
2759 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2760 | for ac_exec_ext in '' $ac_executable_extensions; do |
2761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2762 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2764 | break 2 |
2765 | fi | |
2766 | done | |
81ecdfbb RW |
2767 | done |
2768 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2769 | |
2770 | fi | |
2771 | fi | |
2772 | CC=$ac_cv_prog_CC | |
2773 | if test -n "$CC"; then | |
81ecdfbb RW |
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2775 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2776 | else |
81ecdfbb RW |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2778 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2779 | fi |
2780 | ||
81ecdfbb | 2781 | |
42ecbf5e DJ |
2782 | fi |
2783 | if test -z "$ac_cv_prog_CC"; then | |
2784 | ac_ct_CC=$CC | |
2785 | # Extract the first word of "gcc", so it can be a program name with args. | |
2786 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2788 | $as_echo_n "checking for $ac_word... " >&6; } | |
2789 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2790 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2791 | else |
2792 | if test -n "$ac_ct_CC"; then | |
2793 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2794 | else | |
2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2796 | for as_dir in $PATH | |
2797 | do | |
2798 | IFS=$as_save_IFS | |
2799 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2800 | for ac_exec_ext in '' $ac_executable_extensions; do |
2801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2802 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2804 | break 2 |
2805 | fi | |
2806 | done | |
81ecdfbb RW |
2807 | done |
2808 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2809 | |
2810 | fi | |
2811 | fi | |
2812 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2813 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2815 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 2816 | else |
81ecdfbb RW |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2818 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2819 | fi |
2820 | ||
81ecdfbb RW |
2821 | if test "x$ac_ct_CC" = x; then |
2822 | CC="" | |
2823 | else | |
2824 | case $cross_compiling:$ac_tool_warned in | |
2825 | yes:) | |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2827 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2828 | ac_tool_warned=yes ;; | |
2829 | esac | |
2830 | CC=$ac_ct_CC | |
2831 | fi | |
42ecbf5e DJ |
2832 | else |
2833 | CC="$ac_cv_prog_CC" | |
2834 | fi | |
2835 | ||
2836 | if test -z "$CC"; then | |
81ecdfbb RW |
2837 | if test -n "$ac_tool_prefix"; then |
2838 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
42ecbf5e | 2839 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2841 | $as_echo_n "checking for $ac_word... " >&6; } | |
2842 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2843 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2844 | else |
2845 | if test -n "$CC"; then | |
2846 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2847 | else | |
2848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2849 | for as_dir in $PATH | |
2850 | do | |
2851 | IFS=$as_save_IFS | |
2852 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2853 | for ac_exec_ext in '' $ac_executable_extensions; do |
2854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2855 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2857 | break 2 |
2858 | fi | |
2859 | done | |
81ecdfbb RW |
2860 | done |
2861 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2862 | |
2863 | fi | |
2864 | fi | |
2865 | CC=$ac_cv_prog_CC | |
2866 | if test -n "$CC"; then | |
81ecdfbb RW |
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2868 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2869 | else |
81ecdfbb RW |
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2871 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2872 | fi |
2873 | ||
42ecbf5e | 2874 | |
81ecdfbb | 2875 | fi |
42ecbf5e DJ |
2876 | fi |
2877 | if test -z "$CC"; then | |
2878 | # Extract the first word of "cc", so it can be a program name with args. | |
2879 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2881 | $as_echo_n "checking for $ac_word... " >&6; } | |
2882 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2883 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2884 | else |
2885 | if test -n "$CC"; then | |
2886 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2887 | else | |
2888 | ac_prog_rejected=no | |
2889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2890 | for as_dir in $PATH | |
2891 | do | |
2892 | IFS=$as_save_IFS | |
2893 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2894 | for ac_exec_ext in '' $ac_executable_extensions; do |
2895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e DJ |
2896 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2897 | ac_prog_rejected=yes | |
2898 | continue | |
2899 | fi | |
2900 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2902 | break 2 |
2903 | fi | |
2904 | done | |
81ecdfbb RW |
2905 | done |
2906 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2907 | |
2908 | if test $ac_prog_rejected = yes; then | |
2909 | # We found a bogon in the path, so make sure we never use it. | |
2910 | set dummy $ac_cv_prog_CC | |
2911 | shift | |
2912 | if test $# != 0; then | |
2913 | # We chose a different compiler from the bogus one. | |
2914 | # However, it has the same basename, so the bogon will be chosen | |
2915 | # first if we set CC to just the basename; use the full file name. | |
2916 | shift | |
2917 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2918 | fi | |
2919 | fi | |
2920 | fi | |
2921 | fi | |
2922 | CC=$ac_cv_prog_CC | |
2923 | if test -n "$CC"; then | |
81ecdfbb RW |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2925 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2926 | else |
81ecdfbb RW |
2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2928 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2929 | fi |
2930 | ||
81ecdfbb | 2931 | |
42ecbf5e DJ |
2932 | fi |
2933 | if test -z "$CC"; then | |
2934 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2935 | for ac_prog in cl.exe |
42ecbf5e DJ |
2936 | do |
2937 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2938 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2940 | $as_echo_n "checking for $ac_word... " >&6; } | |
2941 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2942 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2943 | else |
2944 | if test -n "$CC"; then | |
2945 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2946 | else | |
2947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2948 | for as_dir in $PATH | |
2949 | do | |
2950 | IFS=$as_save_IFS | |
2951 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2952 | for ac_exec_ext in '' $ac_executable_extensions; do |
2953 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2954 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2956 | break 2 |
2957 | fi | |
2958 | done | |
81ecdfbb RW |
2959 | done |
2960 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2961 | |
2962 | fi | |
2963 | fi | |
2964 | CC=$ac_cv_prog_CC | |
2965 | if test -n "$CC"; then | |
81ecdfbb RW |
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2967 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2968 | else |
81ecdfbb RW |
2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2970 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2971 | fi |
2972 | ||
81ecdfbb | 2973 | |
42ecbf5e DJ |
2974 | test -n "$CC" && break |
2975 | done | |
2976 | fi | |
2977 | if test -z "$CC"; then | |
2978 | ac_ct_CC=$CC | |
81ecdfbb | 2979 | for ac_prog in cl.exe |
42ecbf5e DJ |
2980 | do |
2981 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2982 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2984 | $as_echo_n "checking for $ac_word... " >&6; } | |
2985 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2986 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2987 | else |
2988 | if test -n "$ac_ct_CC"; then | |
2989 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2990 | else | |
2991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2992 | for as_dir in $PATH | |
2993 | do | |
2994 | IFS=$as_save_IFS | |
2995 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2996 | for ac_exec_ext in '' $ac_executable_extensions; do |
2997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2998 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3000 | break 2 |
3001 | fi | |
3002 | done | |
81ecdfbb RW |
3003 | done |
3004 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3005 | |
3006 | fi | |
3007 | fi | |
3008 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3009 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3011 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 3012 | else |
81ecdfbb RW |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3014 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
3015 | fi |
3016 | ||
81ecdfbb | 3017 | |
42ecbf5e DJ |
3018 | test -n "$ac_ct_CC" && break |
3019 | done | |
3020 | ||
81ecdfbb RW |
3021 | if test "x$ac_ct_CC" = x; then |
3022 | CC="" | |
3023 | else | |
3024 | case $cross_compiling:$ac_tool_warned in | |
3025 | yes:) | |
3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3027 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3028 | ac_tool_warned=yes ;; | |
3029 | esac | |
3030 | CC=$ac_ct_CC | |
3031 | fi | |
42ecbf5e DJ |
3032 | fi |
3033 | ||
3034 | fi | |
3035 | ||
3036 | ||
81ecdfbb RW |
3037 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3038 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3039 | as_fn_error "no acceptable C compiler found in \$PATH | |
3040 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e DJ |
3041 | |
3042 | # Provide some information about the compiler. | |
81ecdfbb RW |
3043 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3044 | set X $ac_compile | |
3045 | ac_compiler=$2 | |
3046 | for ac_option in --version -v -V -qversion; do | |
3047 | { { ac_try="$ac_compiler $ac_option >&5" | |
3048 | case "(($ac_try" in | |
3049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3050 | *) ac_try_echo=$ac_try;; | |
3051 | esac | |
3052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3053 | $as_echo "$ac_try_echo"; } >&5 | |
3054 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
42ecbf5e | 3055 | ac_status=$? |
81ecdfbb RW |
3056 | if test -s conftest.err; then |
3057 | sed '10a\ | |
3058 | ... rest of stderr output deleted ... | |
3059 | 10q' conftest.err >conftest.er1 | |
3060 | cat conftest.er1 >&5 | |
3061 | rm -f conftest.er1 conftest.err | |
3062 | fi | |
3063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3064 | test $ac_status = 0; } | |
3065 | done | |
42ecbf5e | 3066 | |
81ecdfbb | 3067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3068 | /* end confdefs.h. */ |
3069 | ||
3070 | int | |
3071 | main () | |
3072 | { | |
3073 | ||
3074 | ; | |
3075 | return 0; | |
3076 | } | |
3077 | _ACEOF | |
3078 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 3079 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
42ecbf5e DJ |
3080 | # Try to create an executable without -o first, disregard a.out. |
3081 | # It will help us diagnose broken compilers, and finding out an intuition | |
3082 | # of exeext. | |
81ecdfbb RW |
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3084 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3085 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3086 | ||
3087 | # The possible output files: | |
3088 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3089 | ||
3090 | ac_rmfiles= | |
3091 | for ac_file in $ac_files | |
3092 | do | |
3093 | case $ac_file in | |
3094 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3095 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3096 | esac | |
3097 | done | |
3098 | rm -f $ac_rmfiles | |
3099 | ||
3100 | if { { ac_try="$ac_link_default" | |
3101 | case "(($ac_try" in | |
3102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3103 | *) ac_try_echo=$ac_try;; | |
3104 | esac | |
3105 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3106 | $as_echo "$ac_try_echo"; } >&5 | |
3107 | (eval "$ac_link_default") 2>&5 | |
3108 | ac_status=$? | |
3109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3110 | test $ac_status = 0; }; then : | |
3111 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3112 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3113 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3114 | # so that the user can short-circuit this test for compilers unknown to | |
3115 | # Autoconf. | |
3116 | for ac_file in $ac_files '' | |
42ecbf5e DJ |
3117 | do |
3118 | test -f "$ac_file" || continue | |
3119 | case $ac_file in | |
81ecdfbb | 3120 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
42ecbf5e DJ |
3121 | ;; |
3122 | [ab].out ) | |
3123 | # We found the default executable, but exeext='' is most | |
3124 | # certainly right. | |
3125 | break;; | |
3126 | *.* ) | |
81ecdfbb RW |
3127 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3128 | then :; else | |
3129 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3130 | fi | |
3131 | # We set ac_cv_exeext here because the later test for it is not | |
3132 | # safe: cross compilers may not add the suffix if given an `-o' | |
3133 | # argument, so we may need to know it at that point already. | |
3134 | # Even if this section looks crufty: it has the advantage of | |
3135 | # actually working. | |
42ecbf5e DJ |
3136 | break;; |
3137 | * ) | |
3138 | break;; | |
3139 | esac | |
3140 | done | |
81ecdfbb RW |
3141 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3142 | ||
42ecbf5e | 3143 | else |
81ecdfbb RW |
3144 | ac_file='' |
3145 | fi | |
3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3147 | $as_echo "$ac_file" >&6; } | |
3148 | if test -z "$ac_file"; then : | |
3149 | $as_echo "$as_me: failed program was:" >&5 | |
42ecbf5e DJ |
3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
3151 | ||
81ecdfbb RW |
3152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3153 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3154 | { as_fn_set_status 77 | |
3155 | as_fn_error "C compiler cannot create executables | |
3156 | See \`config.log' for more details." "$LINENO" 5; }; } | |
42ecbf5e | 3157 | fi |
42ecbf5e | 3158 | ac_exeext=$ac_cv_exeext |
42ecbf5e | 3159 | |
81ecdfbb | 3160 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3161 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3163 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
42ecbf5e DJ |
3164 | # If not cross compiling, check that we can run a simple program. |
3165 | if test "$cross_compiling" != yes; then | |
3166 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
3167 | { { case "(($ac_try" in |
3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3169 | *) ac_try_echo=$ac_try;; | |
3170 | esac | |
3171 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3172 | $as_echo "$ac_try_echo"; } >&5 | |
3173 | (eval "$ac_try") 2>&5 | |
42ecbf5e | 3174 | ac_status=$? |
81ecdfbb RW |
3175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3176 | test $ac_status = 0; }; }; then | |
42ecbf5e DJ |
3177 | cross_compiling=no |
3178 | else | |
3179 | if test "$cross_compiling" = maybe; then | |
3180 | cross_compiling=yes | |
3181 | else | |
81ecdfbb RW |
3182 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3183 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3184 | as_fn_error "cannot run C compiled programs. | |
42ecbf5e | 3185 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 3186 | See \`config.log' for more details." "$LINENO" 5; } |
42ecbf5e DJ |
3187 | fi |
3188 | fi | |
3189 | fi | |
81ecdfbb RW |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3191 | $as_echo "yes" >&6; } | |
42ecbf5e | 3192 | |
81ecdfbb | 3193 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
42ecbf5e | 3194 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 3195 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3196 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3198 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3200 | $as_echo "$cross_compiling" >&6; } | |
3201 | ||
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3203 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3204 | if { { ac_try="$ac_link" | |
3205 | case "(($ac_try" in | |
3206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3207 | *) ac_try_echo=$ac_try;; | |
3208 | esac | |
3209 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3210 | $as_echo "$ac_try_echo"; } >&5 | |
3211 | (eval "$ac_link") 2>&5 | |
42ecbf5e | 3212 | ac_status=$? |
81ecdfbb RW |
3213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3214 | test $ac_status = 0; }; then : | |
42ecbf5e DJ |
3215 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3216 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3217 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3218 | # `rm'. | |
3219 | for ac_file in conftest.exe conftest conftest.*; do | |
3220 | test -f "$ac_file" || continue | |
3221 | case $ac_file in | |
81ecdfbb | 3222 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
42ecbf5e | 3223 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
42ecbf5e DJ |
3224 | break;; |
3225 | * ) break;; | |
3226 | esac | |
3227 | done | |
3228 | else | |
81ecdfbb RW |
3229 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3230 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3231 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3232 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3233 | fi |
42ecbf5e | 3234 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3236 | $as_echo "$ac_cv_exeext" >&6; } | |
42ecbf5e DJ |
3237 | |
3238 | rm -f conftest.$ac_ext | |
3239 | EXEEXT=$ac_cv_exeext | |
3240 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3242 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3243 | if test "${ac_cv_objext+set}" = set; then : | |
3244 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3245 | else |
81ecdfbb | 3246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3247 | /* end confdefs.h. */ |
3248 | ||
3249 | int | |
3250 | main () | |
3251 | { | |
3252 | ||
3253 | ; | |
3254 | return 0; | |
3255 | } | |
3256 | _ACEOF | |
3257 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3258 | if { { ac_try="$ac_compile" |
3259 | case "(($ac_try" in | |
3260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3261 | *) ac_try_echo=$ac_try;; | |
3262 | esac | |
3263 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3264 | $as_echo "$ac_try_echo"; } >&5 | |
3265 | (eval "$ac_compile") 2>&5 | |
3266 | ac_status=$? | |
3267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3268 | test $ac_status = 0; }; then : | |
3269 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3270 | test -f "$ac_file" || continue; | |
42ecbf5e | 3271 | case $ac_file in |
81ecdfbb | 3272 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
42ecbf5e DJ |
3273 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3274 | break;; | |
3275 | esac | |
3276 | done | |
3277 | else | |
81ecdfbb | 3278 | $as_echo "$as_me: failed program was:" >&5 |
42ecbf5e DJ |
3279 | sed 's/^/| /' conftest.$ac_ext >&5 |
3280 | ||
81ecdfbb RW |
3281 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3282 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3283 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3284 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3285 | fi |
42ecbf5e DJ |
3286 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3287 | fi | |
81ecdfbb RW |
3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3289 | $as_echo "$ac_cv_objext" >&6; } | |
42ecbf5e DJ |
3290 | OBJEXT=$ac_cv_objext |
3291 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3293 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3294 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3295 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3296 | else |
81ecdfbb | 3297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3298 | /* end confdefs.h. */ |
3299 | ||
3300 | int | |
3301 | main () | |
3302 | { | |
3303 | #ifndef __GNUC__ | |
3304 | choke me | |
3305 | #endif | |
3306 | ||
3307 | ; | |
3308 | return 0; | |
3309 | } | |
3310 | _ACEOF | |
81ecdfbb | 3311 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3312 | ac_compiler_gnu=yes |
3313 | else | |
81ecdfbb | 3314 | ac_compiler_gnu=no |
42ecbf5e | 3315 | fi |
81ecdfbb | 3316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e DJ |
3317 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3318 | ||
3319 | fi | |
81ecdfbb RW |
3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3321 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3322 | if test $ac_compiler_gnu = yes; then | |
3323 | GCC=yes | |
3324 | else | |
3325 | GCC= | |
3326 | fi | |
42ecbf5e DJ |
3327 | ac_test_CFLAGS=${CFLAGS+set} |
3328 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3330 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3331 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3332 | $as_echo_n "(cached) " >&6 | |
3333 | else | |
3334 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3335 | ac_c_werror_flag=yes | |
3336 | ac_cv_prog_cc_g=no | |
3337 | CFLAGS="-g" | |
3338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e DJ |
3339 | /* end confdefs.h. */ |
3340 | ||
3341 | int | |
3342 | main () | |
3343 | { | |
3344 | ||
3345 | ; | |
3346 | return 0; | |
3347 | } | |
3348 | _ACEOF | |
81ecdfbb | 3349 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3350 | ac_cv_prog_cc_g=yes |
3351 | else | |
81ecdfbb RW |
3352 | CFLAGS="" |
3353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3354 | /* end confdefs.h. */ | |
3355 | ||
3356 | int | |
3357 | main () | |
3358 | { | |
3359 | ||
3360 | ; | |
3361 | return 0; | |
3362 | } | |
3363 | _ACEOF | |
3364 | if ac_fn_c_try_compile "$LINENO"; then : | |
3365 | ||
3366 | else | |
3367 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3368 | CFLAGS="-g" | |
3369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3370 | /* end confdefs.h. */ | |
3371 | ||
3372 | int | |
3373 | main () | |
3374 | { | |
42ecbf5e | 3375 | |
81ecdfbb RW |
3376 | ; |
3377 | return 0; | |
3378 | } | |
3379 | _ACEOF | |
3380 | if ac_fn_c_try_compile "$LINENO"; then : | |
3381 | ac_cv_prog_cc_g=yes | |
3382 | fi | |
3383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3384 | fi | |
3385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
42ecbf5e | 3386 | fi |
81ecdfbb RW |
3387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3388 | ac_c_werror_flag=$ac_save_c_werror_flag | |
42ecbf5e | 3389 | fi |
81ecdfbb RW |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3391 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
42ecbf5e DJ |
3392 | if test "$ac_test_CFLAGS" = set; then |
3393 | CFLAGS=$ac_save_CFLAGS | |
3394 | elif test $ac_cv_prog_cc_g = yes; then | |
3395 | if test "$GCC" = yes; then | |
3396 | CFLAGS="-g -O2" | |
3397 | else | |
3398 | CFLAGS="-g" | |
3399 | fi | |
3400 | else | |
3401 | if test "$GCC" = yes; then | |
3402 | CFLAGS="-O2" | |
3403 | else | |
3404 | CFLAGS= | |
3405 | fi | |
3406 | fi | |
81ecdfbb RW |
3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3408 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3409 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3410 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3411 | else |
81ecdfbb | 3412 | ac_cv_prog_cc_c89=no |
42ecbf5e | 3413 | ac_save_CC=$CC |
81ecdfbb | 3414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3415 | /* end confdefs.h. */ |
3416 | #include <stdarg.h> | |
3417 | #include <stdio.h> | |
3418 | #include <sys/types.h> | |
3419 | #include <sys/stat.h> | |
3420 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3421 | struct buf { int x; }; | |
3422 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3423 | static char *e (p, i) | |
3424 | char **p; | |
3425 | int i; | |
3426 | { | |
3427 | return p[i]; | |
3428 | } | |
3429 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3430 | { | |
3431 | char *s; | |
3432 | va_list v; | |
3433 | va_start (v,p); | |
3434 | s = g (p, va_arg (v,int)); | |
3435 | va_end (v); | |
3436 | return s; | |
3437 | } | |
3438 | ||
3439 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3440 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3441 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3442 | as 'x'. The following induces an error, until -std is added to get |
42ecbf5e DJ |
3443 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3444 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3445 | that's true only with -std. */ |
42ecbf5e DJ |
3446 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3447 | ||
81ecdfbb RW |
3448 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3449 | inside strings and character constants. */ | |
3450 | #define FOO(x) 'x' | |
3451 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3452 | ||
42ecbf5e DJ |
3453 | int test (int i, double x); |
3454 | struct s1 {int (*f) (int a);}; | |
3455 | struct s2 {int (*f) (double a);}; | |
3456 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3457 | int argc; | |
3458 | char **argv; | |
3459 | int | |
3460 | main () | |
3461 | { | |
3462 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3463 | ; | |
3464 | return 0; | |
3465 | } | |
3466 | _ACEOF | |
81ecdfbb RW |
3467 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3468 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
42ecbf5e DJ |
3469 | do |
3470 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3471 | if ac_fn_c_try_compile "$LINENO"; then : |
3472 | ac_cv_prog_cc_c89=$ac_arg | |
42ecbf5e | 3473 | fi |
81ecdfbb RW |
3474 | rm -f core conftest.err conftest.$ac_objext |
3475 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
42ecbf5e | 3476 | done |
81ecdfbb | 3477 | rm -f conftest.$ac_ext |
42ecbf5e DJ |
3478 | CC=$ac_save_CC |
3479 | ||
3480 | fi | |
81ecdfbb RW |
3481 | # AC_CACHE_VAL |
3482 | case "x$ac_cv_prog_cc_c89" in | |
3483 | x) | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3485 | $as_echo "none needed" >&6; } ;; | |
3486 | xno) | |
3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3488 | $as_echo "unsupported" >&6; } ;; | |
42ecbf5e | 3489 | *) |
81ecdfbb RW |
3490 | CC="$CC $ac_cv_prog_cc_c89" |
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3492 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
42ecbf5e | 3493 | esac |
81ecdfbb | 3494 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
42ecbf5e | 3495 | |
42ecbf5e DJ |
3496 | fi |
3497 | ||
42ecbf5e DJ |
3498 | ac_ext=c |
3499 | ac_cpp='$CPP $CPPFLAGS' | |
3500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3503 | ||
3504 | ||
81ecdfbb RW |
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3506 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3507 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3508 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3509 | else |
3510 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 3511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3512 | /* end confdefs.h. */ |
3513 | ||
81ecdfbb RW |
3514 | /* Override any GCC internal prototype to avoid an error. |
3515 | Use char because int might match the return type of a GCC | |
3516 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
3517 | #ifdef __cplusplus |
3518 | extern "C" | |
3519 | #endif | |
42ecbf5e DJ |
3520 | char strerror (); |
3521 | int | |
3522 | main () | |
3523 | { | |
81ecdfbb | 3524 | return strerror (); |
42ecbf5e DJ |
3525 | ; |
3526 | return 0; | |
3527 | } | |
3528 | _ACEOF | |
81ecdfbb RW |
3529 | for ac_lib in '' cposix; do |
3530 | if test -z "$ac_lib"; then | |
3531 | ac_res="none required" | |
3532 | else | |
3533 | ac_res=-l$ac_lib | |
42ecbf5e | 3534 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3535 | fi |
3536 | if ac_fn_c_try_link "$LINENO"; then : | |
3537 | ac_cv_search_strerror=$ac_res | |
3538 | fi | |
3539 | rm -f core conftest.err conftest.$ac_objext \ | |
3540 | conftest$ac_exeext | |
3541 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3542 | break | |
3543 | fi | |
3544 | done | |
3545 | if test "${ac_cv_search_strerror+set}" = set; then : | |
42ecbf5e | 3546 | |
42ecbf5e | 3547 | else |
81ecdfbb | 3548 | ac_cv_search_strerror=no |
42ecbf5e | 3549 | fi |
81ecdfbb | 3550 | rm conftest.$ac_ext |
42ecbf5e DJ |
3551 | LIBS=$ac_func_search_save_LIBS |
3552 | fi | |
81ecdfbb RW |
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3554 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3555 | ac_res=$ac_cv_search_strerror | |
3556 | if test "$ac_res" != no; then : | |
3557 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e DJ |
3558 | |
3559 | fi | |
e5a52504 MM |
3560 | |
3561 | ||
81ecdfbb RW |
3562 | am__api_version='1.11' |
3563 | ||
e5a52504 MM |
3564 | # Find a good install program. We prefer a C program (faster), |
3565 | # so one script is as good as another. But avoid the broken or | |
3566 | # incompatible versions: | |
3567 | # SysV /etc/install, /usr/sbin/install | |
3568 | # SunOS /usr/etc/install | |
3569 | # IRIX /sbin/install | |
3570 | # AIX /bin/install | |
42ecbf5e | 3571 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
3572 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3573 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3574 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 3575 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 3576 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3577 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3579 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5a52504 | 3580 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3581 | if test "${ac_cv_path_install+set}" = set; then : |
3582 | $as_echo_n "(cached) " >&6 | |
e5a52504 | 3583 | else |
42ecbf5e DJ |
3584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3585 | for as_dir in $PATH | |
3586 | do | |
3587 | IFS=$as_save_IFS | |
3588 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3589 | # Account for people who put trailing slashes in PATH elements. |
3590 | case $as_dir/ in #(( | |
3591 | ./ | .// | /[cC]/* | \ | |
42ecbf5e | 3592 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3593 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
42ecbf5e DJ |
3594 | /usr/ucb/* ) ;; |
3595 | *) | |
3596 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3597 | # Don't use installbsd from OSF since it installs stuff as root | |
3598 | # by default. | |
3599 | for ac_prog in ginstall scoinst install; do | |
3600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3601 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
252b5132 | 3602 | if test $ac_prog = install && |
42ecbf5e | 3603 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3604 | # AIX install. It has an incompatible calling convention. |
3605 | : | |
42ecbf5e DJ |
3606 | elif test $ac_prog = install && |
3607 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3608 | # program-specific install script used by HP pwplus--don't use. | |
3609 | : | |
252b5132 | 3610 | else |
58c85be7 RW |
3611 | rm -rf conftest.one conftest.two conftest.dir |
3612 | echo one > conftest.one | |
3613 | echo two > conftest.two | |
3614 | mkdir conftest.dir | |
3615 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3616 | test -s conftest.one && test -s conftest.two && | |
3617 | test -s conftest.dir/conftest.one && | |
3618 | test -s conftest.dir/conftest.two | |
3619 | then | |
3620 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3621 | break 3 | |
3622 | fi | |
252b5132 RH |
3623 | fi |
3624 | fi | |
3625 | done | |
42ecbf5e DJ |
3626 | done |
3627 | ;; | |
3628 | esac | |
81ecdfbb RW |
3629 | |
3630 | done | |
3631 | IFS=$as_save_IFS | |
42ecbf5e | 3632 | |
58c85be7 | 3633 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3634 | |
3635 | fi | |
3636 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 3637 | INSTALL=$ac_cv_path_install |
252b5132 | 3638 | else |
58c85be7 RW |
3639 | # As a last resort, use the slow shell script. Don't cache a |
3640 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3641 | # break other packages using the cache if that directory is |
58c85be7 | 3642 | # removed, or if the value is a relative name. |
42ecbf5e | 3643 | INSTALL=$ac_install_sh |
252b5132 RH |
3644 | fi |
3645 | fi | |
81ecdfbb RW |
3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3647 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3648 | |
3649 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3650 | # It thinks the first close brace ends the variable substitution. | |
3651 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3652 | ||
42ecbf5e | 3653 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3654 | |
3655 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3656 | ||
81ecdfbb RW |
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3658 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3659 | # Just in case |
3660 | sleep 1 | |
42ecbf5e | 3661 | echo timestamp > conftest.file |
81ecdfbb RW |
3662 | # Reject unsafe characters in $srcdir or the absolute working directory |
3663 | # name. Accept space and tab only in the latter. | |
3664 | am_lf=' | |
3665 | ' | |
3666 | case `pwd` in | |
3667 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3668 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3669 | esac | |
3670 | case $srcdir in | |
3671 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3672 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3673 | esac | |
3674 | ||
252b5132 RH |
3675 | # Do `set' in a subshell so we don't clobber the current shell's |
3676 | # arguments. Must try -L first in case configure is actually a | |
3677 | # symlink; some systems play weird games with the mod time of symlinks | |
3678 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3679 | # directory). | |
3680 | if ( | |
81ecdfbb | 3681 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3682 | if test "$*" = "X"; then |
3683 | # -L didn't work. | |
81ecdfbb | 3684 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3685 | fi |
42ecbf5e DJ |
3686 | rm -f conftest.file |
3687 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3688 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3689 | |
3690 | # If neither matched, then we have a broken ls. This can happen | |
3691 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3692 | # broken ls alias from the environment. This has actually | |
3693 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3694 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3695 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3696 | fi |
3697 | ||
42ecbf5e | 3698 | test "$2" = conftest.file |
252b5132 RH |
3699 | ) |
3700 | then | |
3701 | # Ok. | |
3702 | : | |
3703 | else | |
81ecdfbb RW |
3704 | as_fn_error "newly created file is older than distributed files! |
3705 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3706 | fi |
81ecdfbb RW |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3708 | $as_echo "yes" >&6; } | |
252b5132 | 3709 | test "$program_prefix" != NONE && |
81ecdfbb | 3710 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3711 | # Use a double $ so make ignores it. |
3712 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3713 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3714 | # Double any \ or $. | |
42ecbf5e | 3715 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3716 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3717 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e DJ |
3718 | |
3719 | # expand $ac_aux_dir to an absolute path | |
3720 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3721 | ||
81ecdfbb RW |
3722 | if test x"${MISSING+set}" != xset; then |
3723 | case $am_aux_dir in | |
3724 | *\ * | *\ *) | |
3725 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3726 | *) | |
3727 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3728 | esac | |
3729 | fi | |
42ecbf5e DJ |
3730 | # Use eval to expand $SHELL |
3731 | if eval "$MISSING --run true"; then | |
3732 | am_missing_run="$MISSING --run " | |
3733 | else | |
3734 | am_missing_run= | |
81ecdfbb RW |
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3736 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3737 | fi | |
3738 | ||
3739 | if test x"${install_sh}" != xset; then | |
3740 | case $am_aux_dir in | |
3741 | *\ * | *\ *) | |
3742 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3743 | *) | |
3744 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3745 | esac | |
3746 | fi | |
3747 | ||
3748 | # Installed binaries are usually stripped using `strip' when the user | |
3749 | # run `make install-strip'. However `strip' might not be the right | |
3750 | # tool to use in cross-compilation environments, therefore Automake | |
3751 | # will honor the `STRIP' environment variable to overrule this program. | |
3752 | if test "$cross_compiling" != no; then | |
3753 | if test -n "$ac_tool_prefix"; then | |
3754 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3755 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3757 | $as_echo_n "checking for $ac_word... " >&6; } | |
3758 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3759 | $as_echo_n "(cached) " >&6 | |
3760 | else | |
3761 | if test -n "$STRIP"; then | |
3762 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3763 | else | |
3764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3765 | for as_dir in $PATH | |
3766 | do | |
3767 | IFS=$as_save_IFS | |
3768 | test -z "$as_dir" && as_dir=. | |
3769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3771 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3773 | break 2 | |
3774 | fi | |
3775 | done | |
3776 | done | |
3777 | IFS=$as_save_IFS | |
3778 | ||
3779 | fi | |
3780 | fi | |
3781 | STRIP=$ac_cv_prog_STRIP | |
3782 | if test -n "$STRIP"; then | |
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3784 | $as_echo "$STRIP" >&6; } | |
3785 | else | |
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3787 | $as_echo "no" >&6; } | |
3788 | fi | |
3789 | ||
3790 | ||
3791 | fi | |
3792 | if test -z "$ac_cv_prog_STRIP"; then | |
3793 | ac_ct_STRIP=$STRIP | |
3794 | # Extract the first word of "strip", so it can be a program name with args. | |
3795 | set dummy strip; ac_word=$2 | |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3797 | $as_echo_n "checking for $ac_word... " >&6; } | |
3798 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3799 | $as_echo_n "(cached) " >&6 | |
3800 | else | |
3801 | if test -n "$ac_ct_STRIP"; then | |
3802 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3803 | else | |
3804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3805 | for as_dir in $PATH | |
3806 | do | |
3807 | IFS=$as_save_IFS | |
3808 | test -z "$as_dir" && as_dir=. | |
3809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3811 | ac_cv_prog_ac_ct_STRIP="strip" | |
3812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3813 | break 2 | |
3814 | fi | |
3815 | done | |
3816 | done | |
3817 | IFS=$as_save_IFS | |
3818 | ||
3819 | fi | |
3820 | fi | |
3821 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3822 | if test -n "$ac_ct_STRIP"; then | |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3824 | $as_echo "$ac_ct_STRIP" >&6; } | |
3825 | else | |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3827 | $as_echo "no" >&6; } | |
3828 | fi | |
3829 | ||
3830 | if test "x$ac_ct_STRIP" = x; then | |
3831 | STRIP=":" | |
3832 | else | |
3833 | case $cross_compiling:$ac_tool_warned in | |
3834 | yes:) | |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3836 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3837 | ac_tool_warned=yes ;; | |
3838 | esac | |
3839 | STRIP=$ac_ct_STRIP | |
3840 | fi | |
3841 | else | |
3842 | STRIP="$ac_cv_prog_STRIP" | |
3843 | fi | |
3844 | ||
3845 | fi | |
3846 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3847 | ||
3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3849 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3850 | if test -z "$MKDIR_P"; then | |
3851 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3852 | $as_echo_n "(cached) " >&6 | |
3853 | else | |
3854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3855 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3856 | do | |
3857 | IFS=$as_save_IFS | |
3858 | test -z "$as_dir" && as_dir=. | |
3859 | for ac_prog in mkdir gmkdir; do | |
3860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3861 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3862 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3863 | 'mkdir (GNU coreutils) '* | \ | |
3864 | 'mkdir (coreutils) '* | \ | |
3865 | 'mkdir (fileutils) '4.1*) | |
3866 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3867 | break 3;; | |
3868 | esac | |
3869 | done | |
3870 | done | |
42ecbf5e | 3871 | done |
81ecdfbb RW |
3872 | IFS=$as_save_IFS |
3873 | ||
3874 | fi | |
3875 | ||
3876 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3877 | MKDIR_P="$ac_cv_path_mkdir -p" | |
42ecbf5e | 3878 | else |
81ecdfbb RW |
3879 | # As a last resort, use the slow shell script. Don't cache a |
3880 | # value for MKDIR_P within a source directory, because that will | |
3881 | # break other packages using the cache if that directory is | |
3882 | # removed, or if the value is a relative name. | |
3883 | test -d ./--version && rmdir ./--version | |
3884 | MKDIR_P="$ac_install_sh -d" | |
42ecbf5e DJ |
3885 | fi |
3886 | fi | |
81ecdfbb RW |
3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3888 | $as_echo "$MKDIR_P" >&6; } | |
3889 | ||
3890 | mkdir_p="$MKDIR_P" | |
3891 | case $mkdir_p in | |
3892 | [\\/$]* | ?:[\\/]*) ;; | |
3893 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3894 | esac | |
42ecbf5e DJ |
3895 | |
3896 | for ac_prog in gawk mawk nawk awk | |
3897 | do | |
3898 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3899 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3901 | $as_echo_n "checking for $ac_word... " >&6; } | |
3902 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3903 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3904 | else |
3905 | if test -n "$AWK"; then | |
3906 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3907 | else | |
3908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3909 | for as_dir in $PATH | |
3910 | do | |
3911 | IFS=$as_save_IFS | |
3912 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3913 | for ac_exec_ext in '' $ac_executable_extensions; do |
3914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 3915 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3917 | break 2 |
3918 | fi | |
3919 | done | |
81ecdfbb RW |
3920 | done |
3921 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3922 | |
3923 | fi | |
3924 | fi | |
3925 | AWK=$ac_cv_prog_AWK | |
3926 | if test -n "$AWK"; then | |
81ecdfbb RW |
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3928 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 3929 | else |
81ecdfbb RW |
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3931 | $as_echo "no" >&6; } | |
42ecbf5e | 3932 | fi |
252b5132 | 3933 | |
81ecdfbb | 3934 | |
42ecbf5e DJ |
3935 | test -n "$AWK" && break |
3936 | done | |
252b5132 | 3937 | |
81ecdfbb RW |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3939 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3940 | set x ${MAKE-make} | |
3941 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3942 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3943 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3944 | else |
42ecbf5e | 3945 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 3946 | SHELL = /bin/sh |
252b5132 | 3947 | all: |
81ecdfbb | 3948 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 3949 | _ACEOF |
252b5132 | 3950 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
3951 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3952 | *@@@%%%=?*=@@@%%%*) | |
3953 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3954 | *) | |
3955 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3956 | esac | |
42ecbf5e | 3957 | rm -f conftest.make |
252b5132 | 3958 | fi |
81ecdfbb RW |
3959 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3961 | $as_echo "yes" >&6; } | |
252b5132 RH |
3962 | SET_MAKE= |
3963 | else | |
81ecdfbb RW |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3965 | $as_echo "no" >&6; } | |
252b5132 RH |
3966 | SET_MAKE="MAKE=${MAKE-make}" |
3967 | fi | |
3968 | ||
42ecbf5e DJ |
3969 | rm -rf .tst 2>/dev/null |
3970 | mkdir .tst 2>/dev/null | |
3971 | if test -d .tst; then | |
3972 | am__leading_dot=. | |
3973 | else | |
3974 | am__leading_dot=_ | |
3975 | fi | |
3976 | rmdir .tst 2>/dev/null | |
3977 | ||
3978 | DEPDIR="${am__leading_dot}deps" | |
3979 | ||
81ecdfbb | 3980 | ac_config_commands="$ac_config_commands depfiles" |
42ecbf5e DJ |
3981 | |
3982 | ||
3983 | am_make=${MAKE-make} | |
3984 | cat > confinc << 'END' | |
3985 | am__doit: | |
81ecdfbb | 3986 | @echo this is the am__doit target |
42ecbf5e DJ |
3987 | .PHONY: am__doit |
3988 | END | |
3989 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3991 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
42ecbf5e DJ |
3992 | am__include="#" |
3993 | am__quote= | |
3994 | _am_result=none | |
3995 | # First try GNU make style include. | |
3996 | echo "include confinc" > confmf | |
81ecdfbb RW |
3997 | # Ignore all kinds of additional output from `make'. |
3998 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3999 | *the\ am__doit\ target*) | |
4000 | am__include=include | |
4001 | am__quote= | |
4002 | _am_result=GNU | |
4003 | ;; | |
4004 | esac | |
42ecbf5e DJ |
4005 | # Now try BSD make style include. |
4006 | if test "$am__include" = "#"; then | |
4007 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
4008 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4009 | *the\ am__doit\ target*) | |
4010 | am__include=.include | |
4011 | am__quote="\"" | |
4012 | _am_result=BSD | |
4013 | ;; | |
4014 | esac | |
42ecbf5e DJ |
4015 | fi |
4016 | ||
4017 | ||
81ecdfbb RW |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4019 | $as_echo "$_am_result" >&6; } | |
42ecbf5e DJ |
4020 | rm -f confinc confmf |
4021 | ||
81ecdfbb RW |
4022 | # Check whether --enable-dependency-tracking was given. |
4023 | if test "${enable_dependency_tracking+set}" = set; then : | |
4024 | enableval=$enable_dependency_tracking; | |
4025 | fi | |
42ecbf5e | 4026 | |
42ecbf5e DJ |
4027 | if test "x$enable_dependency_tracking" != xno; then |
4028 | am_depcomp="$ac_aux_dir/depcomp" | |
4029 | AMDEPBACKSLASH='\' | |
4030 | fi | |
81ecdfbb | 4031 | if test "x$enable_dependency_tracking" != xno; then |
42ecbf5e DJ |
4032 | AMDEP_TRUE= |
4033 | AMDEP_FALSE='#' | |
4034 | else | |
4035 | AMDEP_TRUE='#' | |
4036 | AMDEP_FALSE= | |
4037 | fi | |
4038 | ||
e5a52504 | 4039 | |
81ecdfbb RW |
4040 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4041 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4042 | # is not polluted with repeated "-I." | |
4043 | am__isrc=' -I$(srcdir)' | |
4044 | # test to see if srcdir already configured | |
4045 | if test -f $srcdir/config.status; then | |
4046 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4047 | fi | |
42ecbf5e | 4048 | fi |
252b5132 | 4049 | |
42ecbf5e DJ |
4050 | # test whether we have cygpath |
4051 | if test -z "$CYGPATH_W"; then | |
4052 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4053 | CYGPATH_W='cygpath -w' | |
4054 | else | |
4055 | CYGPATH_W=echo | |
4056 | fi | |
252b5132 | 4057 | fi |
42ecbf5e DJ |
4058 | |
4059 | ||
4060 | # Define the identity of the package. | |
2e98a7bd AM |
4061 | PACKAGE='ld' |
4062 | VERSION='2.24.51' | |
42ecbf5e DJ |
4063 | |
4064 | ||
4065 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 4066 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
4067 | _ACEOF |
4068 | ||
252b5132 | 4069 | |
42ecbf5e | 4070 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 4071 | #define VERSION "$VERSION" |
42ecbf5e DJ |
4072 | _ACEOF |
4073 | ||
4074 | # Some tools Automake needs. | |
4075 | ||
4076 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4077 | ||
4078 | ||
4079 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4080 | ||
4081 | ||
4082 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4083 | ||
4084 | ||
4085 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4086 | ||
e5a52504 | 4087 | |
42ecbf5e | 4088 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 4089 | |
42ecbf5e DJ |
4090 | # We need awk for the "check" target. The system "awk" is bad on |
4091 | # some platforms. | |
4092 | # Always define AMTAR for backward compatibility. | |
4093 | ||
4094 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4095 | ||
4096 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4097 | ||
4098 | ||
4099 | ||
4100 | ||
4101 | depcc="$CC" am_compiler_list= | |
4102 | ||
81ecdfbb RW |
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4104 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4105 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4106 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
4107 | else |
4108 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4109 | # We make a subdir and do the tests there. Otherwise we can end up | |
4110 | # making bogus files that we don't know about and never remove. For | |
4111 | # instance it was reported that on HP-UX the gcc test will end up | |
4112 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4113 | # in D'. | |
4114 | mkdir conftest.dir | |
4115 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4116 | # using a relative directory. | |
4117 | cp "$am_depcomp" conftest.dir | |
4118 | cd conftest.dir | |
4119 | # We will build objects and dependencies in a subdirectory because | |
4120 | # it helps to detect inapplicable dependency modes. For instance | |
4121 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4122 | # side effect of compilation, but ICC will put the dependencies in | |
4123 | # the current directory while Tru64 will put them in the object | |
4124 | # directory. | |
4125 | mkdir sub | |
4126 | ||
4127 | am_cv_CC_dependencies_compiler_type=none | |
4128 | if test "$am_compiler_list" = ""; then | |
4129 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4130 | fi | |
81ecdfbb RW |
4131 | am__universal=false |
4132 | case " $depcc " in #( | |
4133 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4134 | esac | |
4135 | ||
42ecbf5e DJ |
4136 | for depmode in $am_compiler_list; do |
4137 | # Setup a source with many dependencies, because some compilers | |
4138 | # like to wrap large dependency lists on column 80 (with \), and | |
4139 | # we should not choose a depcomp mode which is confused by this. | |
4140 | # | |
4141 | # We need to recreate these files for each test, as the compiler may | |
4142 | # overwrite some of them when testing with obscure command lines. | |
4143 | # This happens at least with the AIX C compiler. | |
4144 | : > sub/conftest.c | |
4145 | for i in 1 2 3 4 5 6; do | |
4146 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4147 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4148 | # Solaris 8's {/usr,}/bin/sh. | |
4149 | touch sub/conftst$i.h | |
4150 | done | |
4151 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4152 | ||
81ecdfbb RW |
4153 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4154 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4155 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4156 | # versions had trouble with output in subdirs | |
4157 | am__obj=sub/conftest.${OBJEXT-o} | |
4158 | am__minus_obj="-o $am__obj" | |
42ecbf5e | 4159 | case $depmode in |
81ecdfbb RW |
4160 | gcc) |
4161 | # This depmode causes a compiler race in universal mode. | |
4162 | test "$am__universal" = false || continue | |
4163 | ;; | |
42ecbf5e DJ |
4164 | nosideeffect) |
4165 | # after this tag, mechanisms are not by side-effect, so they'll | |
4166 | # only be used when explicitly requested | |
4167 | if test "x$enable_dependency_tracking" = xyes; then | |
4168 | continue | |
4169 | else | |
4170 | break | |
4171 | fi | |
4172 | ;; | |
81ecdfbb RW |
4173 | msvisualcpp | msvcmsys) |
4174 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4175 | # not run yet. These depmodes are late enough in the game, and | |
4176 | # so weak that their functioning should not be impacted. | |
4177 | am__obj=conftest.${OBJEXT-o} | |
4178 | am__minus_obj= | |
4179 | ;; | |
42ecbf5e DJ |
4180 | none) break ;; |
4181 | esac | |
42ecbf5e | 4182 | if depmode=$depmode \ |
81ecdfbb | 4183 | source=sub/conftest.c object=$am__obj \ |
42ecbf5e | 4184 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 4185 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
42ecbf5e | 4186 | >/dev/null 2>conftest.err && |
81ecdfbb | 4187 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e | 4188 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 4189 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e DJ |
4190 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4191 | # icc doesn't choke on unknown options, it will just issue warnings | |
4192 | # or remarks (even with -Werror). So we grep stderr for any message | |
4193 | # that says an option was ignored or not supported. | |
4194 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4195 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4196 | # The diagnosis changed in icc 8.0: | |
4197 | # icc: Command line remark: option '-MP' not supported | |
4198 | if (grep 'ignoring option' conftest.err || | |
4199 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4200 | am_cv_CC_dependencies_compiler_type=$depmode | |
4201 | break | |
4202 | fi | |
4203 | fi | |
4204 | done | |
2469cfa2 | 4205 | |
42ecbf5e DJ |
4206 | cd .. |
4207 | rm -rf conftest.dir | |
2469cfa2 | 4208 | else |
42ecbf5e DJ |
4209 | am_cv_CC_dependencies_compiler_type=none |
4210 | fi | |
4211 | ||
2469cfa2 | 4212 | fi |
81ecdfbb RW |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4214 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
42ecbf5e DJ |
4215 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4216 | ||
81ecdfbb | 4217 | if |
42ecbf5e DJ |
4218 | test "x$enable_dependency_tracking" != xno \ |
4219 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4220 | am__fastdepCC_TRUE= | |
4221 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 4222 | else |
42ecbf5e DJ |
4223 | am__fastdepCC_TRUE='#' |
4224 | am__fastdepCC_FALSE= | |
2469cfa2 | 4225 | fi |
2469cfa2 | 4226 | |
2469cfa2 | 4227 | |
e5a52504 | 4228 | |
42ecbf5e | 4229 | |
64ac50ac RW |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4231 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4232 | # Check whether --enable-maintainer-mode was given. | |
4233 | if test "${enable_maintainer_mode+set}" = set; then : | |
4234 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4235 | else | |
4236 | USE_MAINTAINER_MODE=no | |
4237 | fi | |
4238 | ||
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4240 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4241 | if test $USE_MAINTAINER_MODE = yes; then | |
4242 | MAINTAINER_MODE_TRUE= | |
4243 | MAINTAINER_MODE_FALSE='#' | |
4244 | else | |
4245 | MAINTAINER_MODE_TRUE='#' | |
4246 | MAINTAINER_MODE_FALSE= | |
4247 | fi | |
4248 | ||
4249 | MAINT=$MAINTAINER_MODE_TRUE | |
4250 | ||
4251 | ||
4252 | ||
d7040cdb | 4253 | |
81ecdfbb RW |
4254 | # Check whether --with-lib-path was given. |
4255 | if test "${with_lib_path+set}" = set; then : | |
4256 | withval=$with_lib_path; LIB_PATH=$withval | |
4257 | fi | |
4258 | ||
4259 | # Check whether --enable-targets was given. | |
4260 | if test "${enable_targets+set}" = set; then : | |
4261 | enableval=$enable_targets; case "${enableval}" in | |
4262 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
ce2cded5 L |
4263 | ;; |
4264 | no) enable_targets= ;; | |
4265 | *) enable_targets=$enableval ;; | |
4266 | esac | |
81ecdfbb RW |
4267 | fi |
4268 | # Check whether --enable-64-bit-bfd was given. | |
4269 | if test "${enable_64_bit_bfd+set}" = set; then : | |
4270 | enableval=$enable_64_bit_bfd; case "${enableval}" in | |
ce2cded5 L |
4271 | yes) want64=true ;; |
4272 | no) want64=false ;; | |
81ecdfbb | 4273 | *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; |
ce2cded5 | 4274 | esac |
2469cfa2 | 4275 | else |
ce2cded5 | 4276 | want64=false |
81ecdfbb | 4277 | fi |
d7040cdb SE |
4278 | |
4279 | ||
81ecdfbb RW |
4280 | # Check whether --with-sysroot was given. |
4281 | if test "${with_sysroot+set}" = set; then : | |
4282 | withval=$with_sysroot; | |
ce2cded5 L |
4283 | case ${with_sysroot} in |
4284 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
4285 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
4286 | esac | |
d7040cdb | 4287 | |
ce2cded5 L |
4288 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
4289 | use_sysroot=yes | |
d7040cdb | 4290 | |
ce2cded5 L |
4291 | if test "x$prefix" = xNONE; then |
4292 | test_prefix=/usr/local | |
4293 | else | |
4294 | test_prefix=$prefix | |
4295 | fi | |
4296 | if test "x$exec_prefix" = xNONE; then | |
4297 | test_exec_prefix=$test_prefix | |
4298 | else | |
4299 | test_exec_prefix=$exec_prefix | |
4300 | fi | |
4301 | case ${TARGET_SYSTEM_ROOT} in | |
4302 | "${test_prefix}"|"${test_prefix}/"*|\ | |
4303 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
4304 | '${prefix}'|'${prefix}/'*|\ | |
4305 | '${exec_prefix}'|'${exec_prefix}/'*) | |
4306 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
4307 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
4308 | ;; | |
4309 | esac | |
d7040cdb | 4310 | |
e5a52504 | 4311 | else |
d7040cdb | 4312 | |
ce2cded5 L |
4313 | use_sysroot=no |
4314 | TARGET_SYSTEM_ROOT= | |
4315 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
d7040cdb | 4316 | |
81ecdfbb RW |
4317 | fi |
4318 | ||
d7040cdb SE |
4319 | |
4320 | ||
4321 | ||
4322 | ||
4fda8867 NC |
4323 | # Check whether --enable-gold was given. |
4324 | if test "${enable_gold+set}" = set; then : | |
4325 | enableval=$enable_gold; case "${enableval}" in | |
c7791212 | 4326 | default) |
4fda8867 NC |
4327 | install_as_default=no |
4328 | installed_linker=ld.bfd | |
4329 | ;; | |
c7791212 | 4330 | yes|no) |
4fda8867 NC |
4331 | install_as_default=yes |
4332 | installed_linker=ld.bfd | |
4333 | ;; | |
4334 | *) | |
4335 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
4336 | ;; | |
4337 | esac | |
4338 | else | |
c7791212 NC |
4339 | install_as_default=yes |
4340 | installed_linker=ld.bfd | |
4fda8867 NC |
4341 | fi |
4342 | ||
4343 | ||
4344 | ||
4345 | ||
81ecdfbb RW |
4346 | # Check whether --enable-got was given. |
4347 | if test "${enable_got+set}" = set; then : | |
4348 | enableval=$enable_got; case "${enableval}" in | |
7fb9f789 | 4349 | target | single | negative | multigot) got_handling=$enableval ;; |
81ecdfbb | 4350 | *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; |
7fb9f789 NC |
4351 | esac |
4352 | else | |
4353 | got_handling=target | |
81ecdfbb RW |
4354 | fi |
4355 | ||
7fb9f789 NC |
4356 | |
4357 | case "${got_handling}" in | |
4358 | target) | |
4359 | ||
81ecdfbb | 4360 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h |
7fb9f789 NC |
4361 | ;; |
4362 | single) | |
4363 | ||
81ecdfbb | 4364 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h |
7fb9f789 NC |
4365 | ;; |
4366 | negative) | |
4367 | ||
81ecdfbb | 4368 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h |
7fb9f789 NC |
4369 | ;; |
4370 | multigot) | |
4371 | ||
81ecdfbb | 4372 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h |
7fb9f789 | 4373 | ;; |
81ecdfbb | 4374 | *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; |
7fb9f789 NC |
4375 | esac |
4376 | ||
397841b5 AM |
4377 | ac_ext=c |
4378 | ac_cpp='$CPP $CPPFLAGS' | |
4379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4383 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4384 | # On Suns, sometimes $CPP names a directory. | |
4385 | if test -n "$CPP" && test -d "$CPP"; then | |
4386 | CPP= | |
ce2cded5 | 4387 | fi |
397841b5 AM |
4388 | if test -z "$CPP"; then |
4389 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
4390 | $as_echo_n "(cached) " >&6 | |
4391 | else | |
4392 | # Double quotes because CPP needs to be expanded | |
4393 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4394 | do | |
4395 | ac_preproc_ok=false | |
4396 | for ac_c_preproc_warn_flag in '' yes | |
4397 | do | |
4398 | # Use a header file that comes with gcc, so configuring glibc | |
4399 | # with a fresh cross-compiler works. | |
4400 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4401 | # <limits.h> exists even on freestanding compilers. | |
4402 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4403 | # not just through cpp. "Syntax error" is here to catch this case. | |
4404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4405 | /* end confdefs.h. */ | |
4406 | #ifdef __STDC__ | |
4407 | # include <limits.h> | |
4408 | #else | |
4409 | # include <assert.h> | |
4410 | #endif | |
4411 | Syntax error | |
4412 | _ACEOF | |
4413 | if ac_fn_c_try_cpp "$LINENO"; then : | |
d7040cdb | 4414 | |
397841b5 AM |
4415 | else |
4416 | # Broken: fails on valid input. | |
4417 | continue | |
ce2cded5 | 4418 | fi |
397841b5 | 4419 | rm -f conftest.err conftest.$ac_ext |
d7040cdb | 4420 | |
397841b5 AM |
4421 | # OK, works on sane cases. Now check whether nonexistent headers |
4422 | # can be detected and how. | |
4423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4424 | /* end confdefs.h. */ | |
4425 | #include <ac_nonexistent.h> | |
4426 | _ACEOF | |
4427 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4428 | # Broken: success on invalid input. | |
4429 | continue | |
4430 | else | |
4431 | # Passes both tests. | |
4432 | ac_preproc_ok=: | |
4433 | break | |
ce2cded5 | 4434 | fi |
397841b5 | 4435 | rm -f conftest.err conftest.$ac_ext |
d7040cdb | 4436 | |
397841b5 AM |
4437 | done |
4438 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4439 | rm -f conftest.err conftest.$ac_ext | |
4440 | if $ac_preproc_ok; then : | |
4441 | break | |
81ecdfbb RW |
4442 | fi |
4443 | ||
397841b5 AM |
4444 | done |
4445 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4446 | |
ce2cded5 | 4447 | fi |
397841b5 AM |
4448 | CPP=$ac_cv_prog_CPP |
4449 | else | |
4450 | ac_cv_prog_CPP=$CPP | |
4451 | fi | |
4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4453 | $as_echo "$CPP" >&6; } | |
4454 | ac_preproc_ok=false | |
4455 | for ac_c_preproc_warn_flag in '' yes | |
4456 | do | |
4457 | # Use a header file that comes with gcc, so configuring glibc | |
4458 | # with a fresh cross-compiler works. | |
4459 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4460 | # <limits.h> exists even on freestanding compilers. | |
4461 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4462 | # not just through cpp. "Syntax error" is here to catch this case. | |
4463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4464 | /* end confdefs.h. */ | |
4465 | #ifdef __STDC__ | |
4466 | # include <limits.h> | |
4467 | #else | |
4468 | # include <assert.h> | |
4469 | #endif | |
4470 | Syntax error | |
4471 | _ACEOF | |
4472 | if ac_fn_c_try_cpp "$LINENO"; then : | |
d7040cdb | 4473 | |
397841b5 AM |
4474 | else |
4475 | # Broken: fails on valid input. | |
4476 | continue | |
4477 | fi | |
4478 | rm -f conftest.err conftest.$ac_ext | |
2469cfa2 | 4479 | |
397841b5 AM |
4480 | # OK, works on sane cases. Now check whether nonexistent headers |
4481 | # can be detected and how. | |
4482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4483 | /* end confdefs.h. */ | |
4484 | #include <ac_nonexistent.h> | |
4485 | _ACEOF | |
4486 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4487 | # Broken: success on invalid input. | |
4488 | continue | |
4489 | else | |
4490 | # Passes both tests. | |
4491 | ac_preproc_ok=: | |
4492 | break | |
4493 | fi | |
4494 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4495 | |
397841b5 AM |
4496 | done |
4497 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4498 | rm -f conftest.err conftest.$ac_ext | |
4499 | if $ac_preproc_ok; then : | |
d7040cdb | 4500 | |
397841b5 AM |
4501 | else |
4502 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4504 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4505 | See \`config.log' for more details." "$LINENO" 5; } | |
ce2cded5 | 4506 | fi |
d7040cdb | 4507 | |
ce2cded5 L |
4508 | ac_ext=c |
4509 | ac_cpp='$CPP $CPPFLAGS' | |
4510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
397841b5 AM |
4513 | |
4514 | ||
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4516 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4517 | if test "${ac_cv_path_GREP+set}" = set; then : | |
81ecdfbb | 4518 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4519 | else |
397841b5 AM |
4520 | if test -z "$GREP"; then |
4521 | ac_path_GREP_found=false | |
4522 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4524 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
d7040cdb SE |
4525 | do |
4526 | IFS=$as_save_IFS | |
4527 | test -z "$as_dir" && as_dir=. | |
397841b5 | 4528 | for ac_prog in grep ggrep; do |
81ecdfbb | 4529 | for ac_exec_ext in '' $ac_executable_extensions; do |
397841b5 AM |
4530 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4531 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4532 | # Check for GNU ac_path_GREP and select it if it is found. | |
4533 | # Check for GNU $ac_path_GREP | |
4534 | case `"$ac_path_GREP" --version 2>&1` in | |
4535 | *GNU*) | |
4536 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4537 | *) | |
4538 | ac_count=0 | |
4539 | $as_echo_n 0123456789 >"conftest.in" | |
4540 | while : | |
4541 | do | |
4542 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4543 | mv "conftest.tmp" "conftest.in" | |
4544 | cp "conftest.in" "conftest.nl" | |
4545 | $as_echo 'GREP' >> "conftest.nl" | |
4546 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4547 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4548 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4549 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4550 | # Best one so far, save it but keep looking for a better one | |
4551 | ac_cv_path_GREP="$ac_path_GREP" | |
4552 | ac_path_GREP_max=$ac_count | |
4553 | fi | |
4554 | # 10*(2^10) chars as input seems more than enough | |
4555 | test $ac_count -gt 10 && break | |
81ecdfbb | 4556 | done |
397841b5 AM |
4557 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4558 | esac | |
d7040cdb | 4559 | |
397841b5 AM |
4560 | $ac_path_GREP_found && break 3 |
4561 | done | |
4562 | done | |
4563 | done | |
4564 | IFS=$as_save_IFS | |
4565 | if test -z "$ac_cv_path_GREP"; then | |
4566 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4567 | fi | |
d7040cdb | 4568 | else |
397841b5 | 4569 | ac_cv_path_GREP=$GREP |
d7040cdb | 4570 | fi |
d7040cdb | 4571 | |
252b5132 | 4572 | fi |
397841b5 AM |
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4574 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4575 | GREP="$ac_cv_path_GREP" | |
4576 | ||
4577 | ||
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4579 | $as_echo_n "checking for egrep... " >&6; } | |
4580 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4581 | $as_echo_n "(cached) " >&6 | |
4582 | else | |
4583 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4584 | then ac_cv_path_EGREP="$GREP -E" | |
4585 | else | |
4586 | if test -z "$EGREP"; then | |
4587 | ac_path_EGREP_found=false | |
4588 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4590 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4591 | do | |
4592 | IFS=$as_save_IFS | |
4593 | test -z "$as_dir" && as_dir=. | |
4594 | for ac_prog in egrep; do | |
4595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4596 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4597 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4598 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4599 | # Check for GNU $ac_path_EGREP | |
4600 | case `"$ac_path_EGREP" --version 2>&1` in | |
4601 | *GNU*) | |
4602 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4603 | *) | |
4604 | ac_count=0 | |
4605 | $as_echo_n 0123456789 >"conftest.in" | |
4606 | while : | |
4607 | do | |
4608 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4609 | mv "conftest.tmp" "conftest.in" | |
4610 | cp "conftest.in" "conftest.nl" | |
4611 | $as_echo 'EGREP' >> "conftest.nl" | |
4612 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4613 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4614 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4615 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4616 | # Best one so far, save it but keep looking for a better one | |
4617 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4618 | ac_path_EGREP_max=$ac_count | |
4619 | fi | |
4620 | # 10*(2^10) chars as input seems more than enough | |
4621 | test $ac_count -gt 10 && break | |
4622 | done | |
4623 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4624 | esac | |
4625 | ||
4626 | $ac_path_EGREP_found && break 3 | |
4627 | done | |
4628 | done | |
4629 | done | |
4630 | IFS=$as_save_IFS | |
4631 | if test -z "$ac_cv_path_EGREP"; then | |
4632 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4633 | fi | |
4634 | else | |
4635 | ac_cv_path_EGREP=$EGREP | |
4636 | fi | |
4637 | ||
4638 | fi | |
4639 | fi | |
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4641 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4642 | EGREP="$ac_cv_path_EGREP" | |
4643 | ||
4644 | ||
4645 | ||
270c9937 JB |
4646 | # Set the 'development' global. |
4647 | . $srcdir/../bfd/development.sh | |
4648 | ||
397841b5 AM |
4649 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
4650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4651 | /* end confdefs.h. */ | |
4652 | __GNUC__ | |
4653 | _ACEOF | |
4654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4655 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
4656 | ||
4657 | else | |
4658 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
4659 | fi | |
4660 | rm -f conftest* | |
4661 | ||
4662 | ||
4663 | # Check whether --enable-werror was given. | |
4664 | if test "${enable_werror+set}" = set; then : | |
4665 | enableval=$enable_werror; case "${enableval}" in | |
4666 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4667 | no | n) ERROR_ON_WARNING="no" ;; | |
4668 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
4669 | esac | |
4670 | fi | |
4671 | ||
4672 | ||
4673 | # Disable -Wformat by default when using gcc on mingw | |
4674 | case "${host}" in | |
4675 | *-*-mingw32*) | |
4676 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4677 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
4678 | fi | |
4679 | ;; | |
4680 | *) ;; | |
4681 | esac | |
4682 | ||
270c9937 JB |
4683 | # Enable -Werror by default when using gcc. Turn it off for releases. |
4684 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
397841b5 AM |
4685 | ERROR_ON_WARNING=yes |
4686 | fi | |
4687 | ||
4688 | NO_WERROR= | |
4689 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4690 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
4691 | NO_WERROR="-Wno-error" | |
4692 | fi | |
4693 | ||
4694 | if test "${GCC}" = yes ; then | |
4695 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
4696 | fi | |
4697 | ||
4698 | # Check whether --enable-build-warnings was given. | |
4699 | if test "${enable_build_warnings+set}" = set; then : | |
4700 | enableval=$enable_build_warnings; case "${enableval}" in | |
4701 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
4702 | no) if test "${GCC}" = yes ; then | |
4703 | WARN_CFLAGS="-w" | |
4704 | fi;; | |
4705 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4706 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
4707 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4708 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
4709 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4710 | esac | |
4711 | fi | |
4712 | ||
4713 | ||
4714 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4715 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
4716 | fi | |
4717 | ||
4718 | ||
4719 | ||
4720 | ||
4721 | ||
44350750 NC |
4722 | |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 | |
4724 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
4725 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
4726 | $as_echo_n "(cached) " >&6 | |
4727 | else | |
4728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4729 | /* end confdefs.h. */ | |
4730 | #include <locale.h> | |
4731 | int | |
4732 | main () | |
4733 | { | |
4734 | return LC_MESSAGES | |
4735 | ; | |
4736 | return 0; | |
4737 | } | |
4738 | _ACEOF | |
4739 | if ac_fn_c_try_link "$LINENO"; then : | |
4740 | am_cv_val_LC_MESSAGES=yes | |
4741 | else | |
4742 | am_cv_val_LC_MESSAGES=no | |
4743 | fi | |
4744 | rm -f core conftest.err conftest.$ac_objext \ | |
4745 | conftest$ac_exeext conftest.$ac_ext | |
4746 | fi | |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
4748 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
4749 | if test $am_cv_val_LC_MESSAGES = yes; then | |
4750 | ||
4751 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h | |
4752 | ||
4753 | fi | |
4754 | ||
4755 | ||
397841b5 AM |
4756 | ac_config_headers="$ac_config_headers config.h:config.in" |
4757 | ||
4758 | ||
df7b86aa NC |
4759 | # PR 14072 |
4760 | ||
4761 | ||
397841b5 AM |
4762 | if test -z "$target" ; then |
4763 | as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 | |
4764 | fi | |
4765 | if test -z "$host" ; then | |
4766 | as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5 | |
4767 | fi | |
4768 | ||
4769 | # host-specific stuff: | |
4770 | ||
4771 | ac_ext=c | |
4772 | ac_cpp='$CPP $CPPFLAGS' | |
4773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4776 | if test -n "$ac_tool_prefix"; then | |
4777 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4778 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4780 | $as_echo_n "checking for $ac_word... " >&6; } | |
4781 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4782 | $as_echo_n "(cached) " >&6 | |
4783 | else | |
4784 | if test -n "$CC"; then | |
4785 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4786 | else | |
4787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4788 | for as_dir in $PATH | |
4789 | do | |
4790 | IFS=$as_save_IFS | |
4791 | test -z "$as_dir" && as_dir=. | |
4792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4794 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4796 | break 2 | |
4797 | fi | |
4798 | done | |
4799 | done | |
4800 | IFS=$as_save_IFS | |
4801 | ||
4802 | fi | |
4803 | fi | |
4804 | CC=$ac_cv_prog_CC | |
4805 | if test -n "$CC"; then | |
4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4807 | $as_echo "$CC" >&6; } | |
4808 | else | |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4810 | $as_echo "no" >&6; } | |
4811 | fi | |
4812 | ||
4813 | ||
4814 | fi | |
4815 | if test -z "$ac_cv_prog_CC"; then | |
4816 | ac_ct_CC=$CC | |
4817 | # Extract the first word of "gcc", so it can be a program name with args. | |
4818 | set dummy gcc; ac_word=$2 | |
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4820 | $as_echo_n "checking for $ac_word... " >&6; } | |
81ecdfbb RW |
4821 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
4822 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4823 | else |
ce2cded5 L |
4824 | if test -n "$ac_ct_CC"; then |
4825 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 4826 | else |
ce2cded5 L |
4827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4828 | for as_dir in $PATH | |
4829 | do | |
4830 | IFS=$as_save_IFS | |
4831 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4832 | for ac_exec_ext in '' $ac_executable_extensions; do |
4833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4834 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4836 | break 2 |
4837 | fi | |
4838 | done | |
81ecdfbb RW |
4839 | done |
4840 | IFS=$as_save_IFS | |
4841 | ||
252b5132 RH |
4842 | fi |
4843 | fi | |
ce2cded5 L |
4844 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4845 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4847 | $as_echo "$ac_ct_CC" >&6; } | |
252b5132 | 4848 | else |
81ecdfbb RW |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4850 | $as_echo "no" >&6; } | |
252b5132 | 4851 | fi |
ce2cded5 | 4852 | |
81ecdfbb RW |
4853 | if test "x$ac_ct_CC" = x; then |
4854 | CC="" | |
4855 | else | |
4856 | case $cross_compiling:$ac_tool_warned in | |
4857 | yes:) | |
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4859 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4860 | ac_tool_warned=yes ;; | |
4861 | esac | |
4862 | CC=$ac_ct_CC | |
4863 | fi | |
252b5132 | 4864 | else |
ce2cded5 | 4865 | CC="$ac_cv_prog_CC" |
252b5132 | 4866 | fi |
d7040cdb | 4867 | |
ce2cded5 | 4868 | if test -z "$CC"; then |
81ecdfbb RW |
4869 | if test -n "$ac_tool_prefix"; then |
4870 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 4871 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4873 | $as_echo_n "checking for $ac_word... " >&6; } | |
4874 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4875 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4876 | else |
ce2cded5 L |
4877 | if test -n "$CC"; then |
4878 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4879 | else |
ce2cded5 L |
4880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4881 | for as_dir in $PATH | |
4882 | do | |
4883 | IFS=$as_save_IFS | |
4884 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4885 | for ac_exec_ext in '' $ac_executable_extensions; do |
4886 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4887 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4889 | break 2 |
4890 | fi | |
4891 | done | |
81ecdfbb RW |
4892 | done |
4893 | IFS=$as_save_IFS | |
ce2cded5 | 4894 | |
252b5132 RH |
4895 | fi |
4896 | fi | |
ce2cded5 L |
4897 | CC=$ac_cv_prog_CC |
4898 | if test -n "$CC"; then | |
81ecdfbb RW |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4900 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4901 | else |
81ecdfbb RW |
4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4903 | $as_echo "no" >&6; } | |
ce2cded5 L |
4904 | fi |
4905 | ||
ce2cded5 | 4906 | |
81ecdfbb | 4907 | fi |
ce2cded5 L |
4908 | fi |
4909 | if test -z "$CC"; then | |
4910 | # Extract the first word of "cc", so it can be a program name with args. | |
4911 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4913 | $as_echo_n "checking for $ac_word... " >&6; } | |
4914 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4915 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4916 | else |
4917 | if test -n "$CC"; then | |
4918 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4919 | else | |
4920 | ac_prog_rejected=no | |
4921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4922 | for as_dir in $PATH | |
4923 | do | |
4924 | IFS=$as_save_IFS | |
4925 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4926 | for ac_exec_ext in '' $ac_executable_extensions; do |
4927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 L |
4928 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4929 | ac_prog_rejected=yes | |
4930 | continue | |
4931 | fi | |
4932 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4934 | break 2 |
4935 | fi | |
4936 | done | |
81ecdfbb RW |
4937 | done |
4938 | IFS=$as_save_IFS | |
ce2cded5 L |
4939 | |
4940 | if test $ac_prog_rejected = yes; then | |
4941 | # We found a bogon in the path, so make sure we never use it. | |
4942 | set dummy $ac_cv_prog_CC | |
4943 | shift | |
4944 | if test $# != 0; then | |
4945 | # We chose a different compiler from the bogus one. | |
4946 | # However, it has the same basename, so the bogon will be chosen | |
4947 | # first if we set CC to just the basename; use the full file name. | |
4948 | shift | |
4949 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4950 | fi | |
4951 | fi | |
4952 | fi | |
4953 | fi | |
4954 | CC=$ac_cv_prog_CC | |
4955 | if test -n "$CC"; then | |
81ecdfbb RW |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4957 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4958 | else |
81ecdfbb RW |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4960 | $as_echo "no" >&6; } | |
ce2cded5 L |
4961 | fi |
4962 | ||
81ecdfbb | 4963 | |
ce2cded5 L |
4964 | fi |
4965 | if test -z "$CC"; then | |
d7040cdb | 4966 | if test -n "$ac_tool_prefix"; then |
81ecdfbb | 4967 | for ac_prog in cl.exe |
d7040cdb SE |
4968 | do |
4969 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4970 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4972 | $as_echo_n "checking for $ac_word... " >&6; } | |
4973 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4974 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4975 | else |
ce2cded5 L |
4976 | if test -n "$CC"; then |
4977 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb SE |
4978 | else |
4979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4980 | for as_dir in $PATH | |
4981 | do | |
4982 | IFS=$as_save_IFS | |
4983 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4984 | for ac_exec_ext in '' $ac_executable_extensions; do |
4985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4986 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
4988 | break 2 |
4989 | fi | |
4990 | done | |
81ecdfbb RW |
4991 | done |
4992 | IFS=$as_save_IFS | |
d7040cdb SE |
4993 | |
4994 | fi | |
4995 | fi | |
ce2cded5 L |
4996 | CC=$ac_cv_prog_CC |
4997 | if test -n "$CC"; then | |
81ecdfbb RW |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4999 | $as_echo "$CC" >&6; } | |
d7040cdb | 5000 | else |
81ecdfbb RW |
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5002 | $as_echo "no" >&6; } | |
d7040cdb SE |
5003 | fi |
5004 | ||
81ecdfbb | 5005 | |
ce2cded5 | 5006 | test -n "$CC" && break |
d7040cdb SE |
5007 | done |
5008 | fi | |
ce2cded5 L |
5009 | if test -z "$CC"; then |
5010 | ac_ct_CC=$CC | |
81ecdfbb | 5011 | for ac_prog in cl.exe |
d7040cdb SE |
5012 | do |
5013 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5014 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5016 | $as_echo_n "checking for $ac_word... " >&6; } | |
5017 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
5018 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5019 | else |
ce2cded5 L |
5020 | if test -n "$ac_ct_CC"; then |
5021 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
5022 | else |
5023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5024 | for as_dir in $PATH | |
5025 | do | |
5026 | IFS=$as_save_IFS | |
5027 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5028 | for ac_exec_ext in '' $ac_executable_extensions; do |
5029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 5030 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 5031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
5032 | break 2 |
5033 | fi | |
5034 | done | |
81ecdfbb RW |
5035 | done |
5036 | IFS=$as_save_IFS | |
d7040cdb SE |
5037 | |
5038 | fi | |
5039 | fi | |
ce2cded5 L |
5040 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5041 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
5043 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 5044 | else |
81ecdfbb RW |
5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5046 | $as_echo "no" >&6; } | |
d7040cdb SE |
5047 | fi |
5048 | ||
81ecdfbb | 5049 | |
ce2cded5 | 5050 | test -n "$ac_ct_CC" && break |
d7040cdb | 5051 | done |
d7040cdb | 5052 | |
81ecdfbb RW |
5053 | if test "x$ac_ct_CC" = x; then |
5054 | CC="" | |
5055 | else | |
5056 | case $cross_compiling:$ac_tool_warned in | |
5057 | yes:) | |
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5059 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5060 | ac_tool_warned=yes ;; | |
5061 | esac | |
5062 | CC=$ac_ct_CC | |
5063 | fi | |
d7040cdb SE |
5064 | fi |
5065 | ||
d7040cdb | 5066 | fi |
d7040cdb SE |
5067 | |
5068 | ||
81ecdfbb RW |
5069 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5070 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5071 | as_fn_error "no acceptable C compiler found in \$PATH | |
5072 | See \`config.log' for more details." "$LINENO" 5; } | |
d7040cdb | 5073 | |
ce2cded5 | 5074 | # Provide some information about the compiler. |
81ecdfbb RW |
5075 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
5076 | set X $ac_compile | |
5077 | ac_compiler=$2 | |
5078 | for ac_option in --version -v -V -qversion; do | |
5079 | { { ac_try="$ac_compiler $ac_option >&5" | |
5080 | case "(($ac_try" in | |
5081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5082 | *) ac_try_echo=$ac_try;; | |
5083 | esac | |
5084 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5085 | $as_echo "$ac_try_echo"; } >&5 | |
5086 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 5087 | ac_status=$? |
81ecdfbb RW |
5088 | if test -s conftest.err; then |
5089 | sed '10a\ | |
5090 | ... rest of stderr output deleted ... | |
5091 | 10q' conftest.err >conftest.er1 | |
5092 | cat conftest.er1 >&5 | |
5093 | rm -f conftest.er1 conftest.err | |
5094 | fi | |
5095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5096 | test $ac_status = 0; } | |
5097 | done | |
d7040cdb | 5098 | |
81ecdfbb RW |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
5100 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
5101 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
5102 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5103 | else |
81ecdfbb | 5104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 5105 | /* end confdefs.h. */ |
d7040cdb | 5106 | |
ce2cded5 L |
5107 | int |
5108 | main () | |
5109 | { | |
5110 | #ifndef __GNUC__ | |
5111 | choke me | |
5112 | #endif | |
5113 | ||
5114 | ; | |
5115 | return 0; | |
5116 | } | |
5117 | _ACEOF | |
81ecdfbb | 5118 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 5119 | ac_compiler_gnu=yes |
d7040cdb | 5120 | else |
81ecdfbb | 5121 | ac_compiler_gnu=no |
d7040cdb | 5122 | fi |
81ecdfbb | 5123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 5124 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 5125 | |
ce2cded5 | 5126 | fi |
81ecdfbb RW |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
5128 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5129 | if test $ac_compiler_gnu = yes; then | |
5130 | GCC=yes | |
5131 | else | |
5132 | GCC= | |
5133 | fi | |
ce2cded5 L |
5134 | ac_test_CFLAGS=${CFLAGS+set} |
5135 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
5137 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
5138 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
5139 | $as_echo_n "(cached) " >&6 | |
5140 | else | |
5141 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5142 | ac_c_werror_flag=yes | |
5143 | ac_cv_prog_cc_g=no | |
5144 | CFLAGS="-g" | |
5145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 5146 | /* end confdefs.h. */ |
d7040cdb | 5147 | |
ce2cded5 L |
5148 | int |
5149 | main () | |
5150 | { | |
d7040cdb | 5151 | |
ce2cded5 L |
5152 | ; |
5153 | return 0; | |
5154 | } | |
5155 | _ACEOF | |
81ecdfbb | 5156 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
5157 | ac_cv_prog_cc_g=yes |
5158 | else | |
81ecdfbb RW |
5159 | CFLAGS="" |
5160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5161 | /* end confdefs.h. */ | |
5162 | ||
5163 | int | |
5164 | main () | |
5165 | { | |
5166 | ||
5167 | ; | |
5168 | return 0; | |
5169 | } | |
5170 | _ACEOF | |
5171 | if ac_fn_c_try_compile "$LINENO"; then : | |
5172 | ||
5173 | else | |
5174 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5175 | CFLAGS="-g" | |
5176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5177 | /* end confdefs.h. */ | |
5178 | ||
5179 | int | |
5180 | main () | |
5181 | { | |
d7040cdb | 5182 | |
81ecdfbb RW |
5183 | ; |
5184 | return 0; | |
5185 | } | |
5186 | _ACEOF | |
5187 | if ac_fn_c_try_compile "$LINENO"; then : | |
5188 | ac_cv_prog_cc_g=yes | |
5189 | fi | |
5190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5191 | fi | |
5192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 5193 | fi |
81ecdfbb RW |
5194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5195 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ce2cded5 | 5196 | fi |
81ecdfbb RW |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
5198 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
5199 | if test "$ac_test_CFLAGS" = set; then |
5200 | CFLAGS=$ac_save_CFLAGS | |
5201 | elif test $ac_cv_prog_cc_g = yes; then | |
5202 | if test "$GCC" = yes; then | |
5203 | CFLAGS="-g -O2" | |
5204 | else | |
5205 | CFLAGS="-g" | |
5206 | fi | |
d7040cdb | 5207 | else |
ce2cded5 L |
5208 | if test "$GCC" = yes; then |
5209 | CFLAGS="-O2" | |
5210 | else | |
5211 | CFLAGS= | |
5212 | fi | |
d7040cdb | 5213 | fi |
81ecdfbb RW |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
5215 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5216 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
5217 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5218 | else |
81ecdfbb | 5219 | ac_cv_prog_cc_c89=no |
ce2cded5 | 5220 | ac_save_CC=$CC |
81ecdfbb | 5221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
5222 | /* end confdefs.h. */ |
5223 | #include <stdarg.h> | |
5224 | #include <stdio.h> | |
5225 | #include <sys/types.h> | |
5226 | #include <sys/stat.h> | |
5227 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5228 | struct buf { int x; }; | |
5229 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5230 | static char *e (p, i) | |
5231 | char **p; | |
5232 | int i; | |
5233 | { | |
5234 | return p[i]; | |
5235 | } | |
5236 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5237 | { | |
5238 | char *s; | |
5239 | va_list v; | |
5240 | va_start (v,p); | |
5241 | s = g (p, va_arg (v,int)); | |
5242 | va_end (v); | |
5243 | return s; | |
5244 | } | |
d7040cdb | 5245 | |
ce2cded5 L |
5246 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
5247 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5248 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 5249 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
5250 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5251 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 5252 | that's true only with -std. */ |
ce2cded5 | 5253 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 5254 | |
81ecdfbb RW |
5255 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5256 | inside strings and character constants. */ | |
5257 | #define FOO(x) 'x' | |
5258 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5259 | ||
ce2cded5 L |
5260 | int test (int i, double x); |
5261 | struct s1 {int (*f) (int a);}; | |
5262 | struct s2 {int (*f) (double a);}; | |
5263 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5264 | int argc; | |
5265 | char **argv; | |
5266 | int | |
5267 | main () | |
5268 | { | |
5269 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5270 | ; | |
5271 | return 0; | |
5272 | } | |
5273 | _ACEOF | |
81ecdfbb RW |
5274 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5275 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
5276 | do |
5277 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
5278 | if ac_fn_c_try_compile "$LINENO"; then : |
5279 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 5280 | fi |
81ecdfbb RW |
5281 | rm -f core conftest.err conftest.$ac_objext |
5282 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 5283 | done |
81ecdfbb | 5284 | rm -f conftest.$ac_ext |
ce2cded5 | 5285 | CC=$ac_save_CC |
d7040cdb | 5286 | |
ce2cded5 | 5287 | fi |
81ecdfbb RW |
5288 | # AC_CACHE_VAL |
5289 | case "x$ac_cv_prog_cc_c89" in | |
5290 | x) | |
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5292 | $as_echo "none needed" >&6; } ;; | |
5293 | xno) | |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5295 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 5296 | *) |
81ecdfbb RW |
5297 | CC="$CC $ac_cv_prog_cc_c89" |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5299 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 5300 | esac |
81ecdfbb | 5301 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 5302 | |
ce2cded5 | 5303 | fi |
d7040cdb | 5304 | |
ce2cded5 L |
5305 | ac_ext=c |
5306 | ac_cpp='$CPP $CPPFLAGS' | |
5307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 5310 | |
3cb62297 L |
5311 | ac_ext=cpp |
5312 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5313 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5314 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5315 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5316 | if test -z "$CXX"; then | |
5317 | if test -n "$CCC"; then | |
5318 | CXX=$CCC | |
5319 | else | |
5320 | if test -n "$ac_tool_prefix"; then | |
5321 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5322 | do | |
5323 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5324 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5326 | $as_echo_n "checking for $ac_word... " >&6; } | |
5327 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
81ecdfbb RW |
5328 | $as_echo_n "(cached) " >&6 |
5329 | else | |
3cb62297 L |
5330 | if test -n "$CXX"; then |
5331 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5332 | else | |
5333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5334 | for as_dir in $PATH | |
5335 | do | |
5336 | IFS=$as_save_IFS | |
5337 | test -z "$as_dir" && as_dir=. | |
5338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5340 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
5341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5342 | break 2 | |
5343 | fi | |
5344 | done | |
5345 | done | |
5346 | IFS=$as_save_IFS | |
81ecdfbb | 5347 | |
3cb62297 L |
5348 | fi |
5349 | fi | |
5350 | CXX=$ac_cv_prog_CXX | |
5351 | if test -n "$CXX"; then | |
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5353 | $as_echo "$CXX" >&6; } | |
81ecdfbb | 5354 | else |
3cb62297 L |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5356 | $as_echo "no" >&6; } | |
7357c5b6 | 5357 | fi |
42ecbf5e | 5358 | |
81ecdfbb | 5359 | |
3cb62297 L |
5360 | test -n "$CXX" && break |
5361 | done | |
7357c5b6 | 5362 | fi |
3cb62297 L |
5363 | if test -z "$CXX"; then |
5364 | ac_ct_CXX=$CXX | |
5365 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5366 | do | |
5367 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5368 | set dummy $ac_prog; ac_word=$2 | |
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5370 | $as_echo_n "checking for $ac_word... " >&6; } | |
5371 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
5372 | $as_echo_n "(cached) " >&6 | |
5373 | else | |
5374 | if test -n "$ac_ct_CXX"; then | |
5375 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5376 | else | |
5377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5378 | for as_dir in $PATH | |
5379 | do | |
5380 | IFS=$as_save_IFS | |
5381 | test -z "$as_dir" && as_dir=. | |
5382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5384 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
5385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5386 | break 2 | |
5387 | fi | |
5388 | done | |
5389 | done | |
5390 | IFS=$as_save_IFS | |
252b5132 | 5391 | |
3cb62297 L |
5392 | fi |
5393 | fi | |
5394 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5395 | if test -n "$ac_ct_CXX"; then | |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5397 | $as_echo "$ac_ct_CXX" >&6; } | |
5398 | else | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5400 | $as_echo "no" >&6; } | |
7357c5b6 | 5401 | fi |
252b5132 | 5402 | |
42ecbf5e | 5403 | |
3cb62297 L |
5404 | test -n "$ac_ct_CXX" && break |
5405 | done | |
81ecdfbb | 5406 | |
3cb62297 L |
5407 | if test "x$ac_ct_CXX" = x; then |
5408 | CXX="g++" | |
5409 | else | |
5410 | case $cross_compiling:$ac_tool_warned in | |
5411 | yes:) | |
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5413 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5414 | ac_tool_warned=yes ;; | |
5415 | esac | |
5416 | CXX=$ac_ct_CXX | |
5417 | fi | |
7357c5b6 | 5418 | fi |
ac48eca1 | 5419 | |
3cb62297 | 5420 | fi |
7357c5b6 | 5421 | fi |
3cb62297 L |
5422 | # Provide some information about the compiler. |
5423 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5424 | set X $ac_compile | |
5425 | ac_compiler=$2 | |
5426 | for ac_option in --version -v -V -qversion; do | |
5427 | { { ac_try="$ac_compiler $ac_option >&5" | |
5428 | case "(($ac_try" in | |
5429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5430 | *) ac_try_echo=$ac_try;; | |
5431 | esac | |
5432 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5433 | $as_echo "$ac_try_echo"; } >&5 | |
5434 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5435 | ac_status=$? | |
5436 | if test -s conftest.err; then | |
5437 | sed '10a\ | |
5438 | ... rest of stderr output deleted ... | |
5439 | 10q' conftest.err >conftest.er1 | |
5440 | cat conftest.er1 >&5 | |
5441 | rm -f conftest.er1 conftest.err | |
5442 | fi | |
5443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5444 | test $ac_status = 0; } | |
5445 | done | |
d7040cdb | 5446 | |
3cb62297 L |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5448 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
5449 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
5450 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5451 | else |
81ecdfbb | 5452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 5453 | /* end confdefs.h. */ |
d7040cdb | 5454 | |
7357c5b6 AM |
5455 | int |
5456 | main () | |
5457 | { | |
3cb62297 L |
5458 | #ifndef __GNUC__ |
5459 | choke me | |
5460 | #endif | |
5461 | ||
5462 | ; | |
81ecdfbb | 5463 | return 0; |
7357c5b6 AM |
5464 | } |
5465 | _ACEOF | |
3cb62297 L |
5466 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5467 | ac_compiler_gnu=yes | |
81ecdfbb | 5468 | else |
3cb62297 | 5469 | ac_compiler_gnu=no |
7357c5b6 | 5470 | fi |
3cb62297 L |
5471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5472 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
81ecdfbb | 5473 | |
7357c5b6 | 5474 | fi |
3cb62297 L |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5476 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5477 | if test $ac_compiler_gnu = yes; then | |
5478 | GXX=yes | |
5479 | else | |
5480 | GXX= | |
7357c5b6 | 5481 | fi |
3cb62297 L |
5482 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5483 | ac_save_CXXFLAGS=$CXXFLAGS | |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5485 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
5486 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
5487 | $as_echo_n "(cached) " >&6 | |
5488 | else | |
5489 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5490 | ac_cxx_werror_flag=yes | |
5491 | ac_cv_prog_cxx_g=no | |
5492 | CXXFLAGS="-g" | |
5493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5494 | /* end confdefs.h. */ | |
252b5132 | 5495 | |
3cb62297 L |
5496 | int |
5497 | main () | |
5498 | { | |
252b5132 | 5499 | |
3cb62297 L |
5500 | ; |
5501 | return 0; | |
5502 | } | |
7357c5b6 | 5503 | _ACEOF |
3cb62297 L |
5504 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5505 | ac_cv_prog_cxx_g=yes | |
5506 | else | |
5507 | CXXFLAGS="" | |
5508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5509 | /* end confdefs.h. */ | |
42ecbf5e | 5510 | |
3cb62297 L |
5511 | int |
5512 | main () | |
5513 | { | |
42ecbf5e | 5514 | |
3cb62297 L |
5515 | ; |
5516 | return 0; | |
5517 | } | |
5518 | _ACEOF | |
5519 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
42ecbf5e | 5520 | |
3cb62297 L |
5521 | else |
5522 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5523 | CXXFLAGS="-g" | |
5524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5525 | /* end confdefs.h. */ | |
42ecbf5e | 5526 | |
3cb62297 L |
5527 | int |
5528 | main () | |
5529 | { | |
42ecbf5e | 5530 | |
3cb62297 L |
5531 | ; |
5532 | return 0; | |
5533 | } | |
5534 | _ACEOF | |
5535 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5536 | ac_cv_prog_cxx_g=yes | |
5537 | fi | |
5538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5539 | fi | |
5540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5541 | fi | |
5542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5543 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5544 | fi | |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5546 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5547 | if test "$ac_test_CXXFLAGS" = set; then | |
5548 | CXXFLAGS=$ac_save_CXXFLAGS | |
5549 | elif test $ac_cv_prog_cxx_g = yes; then | |
5550 | if test "$GXX" = yes; then | |
5551 | CXXFLAGS="-g -O2" | |
5552 | else | |
5553 | CXXFLAGS="-g" | |
5554 | fi | |
ce2cded5 | 5555 | else |
3cb62297 L |
5556 | if test "$GXX" = yes; then |
5557 | CXXFLAGS="-O2" | |
5558 | else | |
5559 | CXXFLAGS= | |
5560 | fi | |
ce2cded5 | 5561 | fi |
3cb62297 L |
5562 | ac_ext=c |
5563 | ac_cpp='$CPP $CPPFLAGS' | |
5564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e | 5567 | |
3cb62297 | 5568 | depcc="$CXX" am_compiler_list= |
e5a52504 | 5569 | |
3cb62297 L |
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5571 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5572 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
5573 | $as_echo_n "(cached) " >&6 | |
5574 | else | |
5575 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5576 | # We make a subdir and do the tests there. Otherwise we can end up | |
5577 | # making bogus files that we don't know about and never remove. For | |
5578 | # instance it was reported that on HP-UX the gcc test will end up | |
5579 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5580 | # in D'. | |
5581 | mkdir conftest.dir | |
5582 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5583 | # using a relative directory. | |
5584 | cp "$am_depcomp" conftest.dir | |
5585 | cd conftest.dir | |
5586 | # We will build objects and dependencies in a subdirectory because | |
5587 | # it helps to detect inapplicable dependency modes. For instance | |
5588 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5589 | # side effect of compilation, but ICC will put the dependencies in | |
5590 | # the current directory while Tru64 will put them in the object | |
5591 | # directory. | |
5592 | mkdir sub | |
7357c5b6 | 5593 | |
3cb62297 L |
5594 | am_cv_CXX_dependencies_compiler_type=none |
5595 | if test "$am_compiler_list" = ""; then | |
5596 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5597 | fi | |
5598 | am__universal=false | |
5599 | case " $depcc " in #( | |
5600 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5601 | esac | |
d7040cdb | 5602 | |
3cb62297 L |
5603 | for depmode in $am_compiler_list; do |
5604 | # Setup a source with many dependencies, because some compilers | |
5605 | # like to wrap large dependency lists on column 80 (with \), and | |
5606 | # we should not choose a depcomp mode which is confused by this. | |
5607 | # | |
5608 | # We need to recreate these files for each test, as the compiler may | |
5609 | # overwrite some of them when testing with obscure command lines. | |
5610 | # This happens at least with the AIX C compiler. | |
5611 | : > sub/conftest.c | |
5612 | for i in 1 2 3 4 5 6; do | |
5613 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5614 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5615 | # Solaris 8's {/usr,}/bin/sh. | |
5616 | touch sub/conftst$i.h | |
5617 | done | |
5618 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
d7040cdb | 5619 | |
3cb62297 L |
5620 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5621 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5622 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5623 | # versions had trouble with output in subdirs | |
5624 | am__obj=sub/conftest.${OBJEXT-o} | |
5625 | am__minus_obj="-o $am__obj" | |
5626 | case $depmode in | |
5627 | gcc) | |
5628 | # This depmode causes a compiler race in universal mode. | |
5629 | test "$am__universal" = false || continue | |
5630 | ;; | |
5631 | nosideeffect) | |
5632 | # after this tag, mechanisms are not by side-effect, so they'll | |
5633 | # only be used when explicitly requested | |
5634 | if test "x$enable_dependency_tracking" = xyes; then | |
5635 | continue | |
5636 | else | |
5637 | break | |
5638 | fi | |
5639 | ;; | |
5640 | msvisualcpp | msvcmsys) | |
5641 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5642 | # not run yet. These depmodes are late enough in the game, and | |
5643 | # so weak that their functioning should not be impacted. | |
5644 | am__obj=conftest.${OBJEXT-o} | |
5645 | am__minus_obj= | |
5646 | ;; | |
5647 | none) break ;; | |
5648 | esac | |
5649 | if depmode=$depmode \ | |
5650 | source=sub/conftest.c object=$am__obj \ | |
5651 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5652 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5653 | >/dev/null 2>conftest.err && | |
5654 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5655 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5656 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5657 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5658 | # icc doesn't choke on unknown options, it will just issue warnings | |
5659 | # or remarks (even with -Werror). So we grep stderr for any message | |
5660 | # that says an option was ignored or not supported. | |
5661 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5662 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5663 | # The diagnosis changed in icc 8.0: | |
5664 | # icc: Command line remark: option '-MP' not supported | |
5665 | if (grep 'ignoring option' conftest.err || | |
5666 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5667 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5668 | break | |
5669 | fi | |
5670 | fi | |
5671 | done | |
d7040cdb | 5672 | |
3cb62297 L |
5673 | cd .. |
5674 | rm -rf conftest.dir | |
5675 | else | |
5676 | am_cv_CXX_dependencies_compiler_type=none | |
5677 | fi | |
d7040cdb | 5678 | |
3cb62297 L |
5679 | fi |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5681 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5682 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
d7040cdb | 5683 | |
3cb62297 L |
5684 | if |
5685 | test "x$enable_dependency_tracking" != xno \ | |
5686 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5687 | am__fastdepCXX_TRUE= | |
5688 | am__fastdepCXX_FALSE='#' | |
5689 | else | |
5690 | am__fastdepCXX_TRUE='#' | |
5691 | am__fastdepCXX_FALSE= | |
5692 | fi | |
d7040cdb | 5693 | |
d7040cdb | 5694 | |
3cb62297 L |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5696 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5697 | if test "${ac_cv_header_stdc+set}" = set; then : | |
81ecdfbb | 5698 | $as_echo_n "(cached) " >&6 |
ce2cded5 | 5699 | else |
81ecdfbb | 5700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 5701 | /* end confdefs.h. */ |
3cb62297 L |
5702 | #include <stdlib.h> |
5703 | #include <stdarg.h> | |
5704 | #include <string.h> | |
5705 | #include <float.h> | |
7357c5b6 | 5706 | |
7357c5b6 AM |
5707 | int |
5708 | main () | |
5709 | { | |
5710 | ||
5711 | ; | |
5712 | return 0; | |
5713 | } | |
5714 | _ACEOF | |
81ecdfbb | 5715 | if ac_fn_c_try_compile "$LINENO"; then : |
3cb62297 | 5716 | ac_cv_header_stdc=yes |
ce2cded5 | 5717 | else |
3cb62297 | 5718 | ac_cv_header_stdc=no |
ce2cded5 | 5719 | fi |
81ecdfbb | 5720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 5721 | |
3cb62297 L |
5722 | if test $ac_cv_header_stdc = yes; then |
5723 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5725 | /* end confdefs.h. */ | |
5726 | #include <string.h> | |
7357c5b6 | 5727 | |
3cb62297 L |
5728 | _ACEOF |
5729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5730 | $EGREP "memchr" >/dev/null 2>&1; then : | |
d053aef8 | 5731 | |
3cb62297 L |
5732 | else |
5733 | ac_cv_header_stdc=no | |
5734 | fi | |
5735 | rm -f conftest* | |
da2f07f1 | 5736 | |
3cb62297 | 5737 | fi |
3388710e | 5738 | |
3cb62297 L |
5739 | if test $ac_cv_header_stdc = yes; then |
5740 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5742 | /* end confdefs.h. */ | |
5743 | #include <stdlib.h> | |
3388710e | 5744 | |
3cb62297 L |
5745 | _ACEOF |
5746 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5747 | $EGREP "free" >/dev/null 2>&1; then : | |
3388710e | 5748 | |
3cb62297 L |
5749 | else |
5750 | ac_cv_header_stdc=no | |
5751 | fi | |
5752 | rm -f conftest* | |
5753 | ||
5754 | fi | |
5755 | ||
5756 | if test $ac_cv_header_stdc = yes; then | |
5757 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5758 | if test "$cross_compiling" = yes; then : | |
5759 | : | |
5760 | else | |
5761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5762 | /* end confdefs.h. */ | |
5763 | #include <ctype.h> | |
5764 | #include <stdlib.h> | |
5765 | #if ((' ' & 0x0FF) == 0x020) | |
5766 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5767 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5768 | #else | |
5769 | # define ISLOWER(c) \ | |
5770 | (('a' <= (c) && (c) <= 'i') \ | |
5771 | || ('j' <= (c) && (c) <= 'r') \ | |
5772 | || ('s' <= (c) && (c) <= 'z')) | |
5773 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5774 | #endif | |
5775 | ||
5776 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5777 | int | |
5778 | main () | |
5779 | { | |
5780 | int i; | |
5781 | for (i = 0; i < 256; i++) | |
5782 | if (XOR (islower (i), ISLOWER (i)) | |
5783 | || toupper (i) != TOUPPER (i)) | |
5784 | return 2; | |
5785 | return 0; | |
5786 | } | |
5787 | _ACEOF | |
5788 | if ac_fn_c_try_run "$LINENO"; then : | |
5789 | ||
5790 | else | |
5791 | ac_cv_header_stdc=no | |
5792 | fi | |
5793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5794 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5795 | fi | |
5796 | ||
5797 | fi | |
5798 | fi | |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5800 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5801 | if test $ac_cv_header_stdc = yes; then | |
5802 | ||
5803 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5804 | ||
5805 | fi | |
5806 | ||
5807 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5808 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5809 | inttypes.h stdint.h unistd.h | |
5810 | do : | |
5811 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5812 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5813 | " | |
5814 | eval as_val=\$$as_ac_Header | |
5815 | if test "x$as_val" = x""yes; then : | |
5816 | cat >>confdefs.h <<_ACEOF | |
5817 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5818 | _ACEOF | |
5819 | ||
5820 | fi | |
5821 | ||
5822 | done | |
5823 | ||
5824 | ||
5825 | ||
5826 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
5827 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5828 | MINIX=yes | |
5829 | else | |
5830 | MINIX= | |
5831 | fi | |
5832 | ||
5833 | ||
5834 | if test "$MINIX" = yes; then | |
5835 | ||
5836 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5837 | ||
5838 | ||
5839 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5840 | ||
5841 | ||
5842 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5843 | ||
5844 | fi | |
5845 | ||
5846 | ||
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5848 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5849 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5850 | $as_echo_n "(cached) " >&6 | |
5851 | else | |
5852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5853 | /* end confdefs.h. */ | |
5854 | ||
5855 | # define __EXTENSIONS__ 1 | |
5856 | $ac_includes_default | |
5857 | int | |
5858 | main () | |
5859 | { | |
5860 | ||
5861 | ; | |
5862 | return 0; | |
5863 | } | |
5864 | _ACEOF | |
5865 | if ac_fn_c_try_compile "$LINENO"; then : | |
5866 | ac_cv_safe_to_define___extensions__=yes | |
5867 | else | |
5868 | ac_cv_safe_to_define___extensions__=no | |
5869 | fi | |
5870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5871 | fi | |
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5873 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5874 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5875 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5876 | ||
5877 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5878 | ||
5879 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5880 | ||
5881 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5882 | ||
5883 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | # The tests for host and target for $enable_largefile require | |
5890 | # canonical names. | |
5891 | ||
5892 | ||
5893 | ||
5894 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
5895 | # even in directories otherwise not depending on the $plugins option. | |
da2f07f1 JK |
5896 | |
5897 | ||
5898 | # Check whether --enable-plugins was given. | |
5899 | if test "${enable_plugins+set}" = set; then : | |
5900 | enableval=$enable_plugins; case "${enableval}" in | |
5901 | yes | "") plugins=yes ;; | |
5902 | no) plugins=no ;; | |
5903 | *) plugins=yes ;; | |
5904 | esac | |
5905 | else | |
5906 | plugins=no | |
5907 | fi | |
5908 | ||
5909 | ||
5910 | ||
5911 | case "${host}" in | |
5912 | sparc-*-solaris*|i[3-7]86-*-solaris*) | |
5913 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
5914 | # are mutually exclusive; and without procfs support, the bfd/ elf module | |
5915 | # cannot provide certain routines such as elfcore_write_prpsinfo | |
5916 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
5917 | # large-file support through the --enable-largefile switch, disable | |
5918 | # large-file support in favor of procfs support. | |
5919 | test "${target}" = "${host}" -a "x$plugins" = xno \ | |
5920 | && : ${enable_largefile="no"} | |
5921 | ;; | |
5922 | esac | |
5923 | ||
81ecdfbb RW |
5924 | # Check whether --enable-largefile was given. |
5925 | if test "${enable_largefile+set}" = set; then : | |
5926 | enableval=$enable_largefile; | |
5927 | fi | |
5928 | ||
d053aef8 JK |
5929 | if test "$enable_largefile" != no; then |
5930 | ||
81ecdfbb RW |
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
5932 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
5933 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
5934 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5935 | else |
5936 | ac_cv_sys_largefile_CC=no | |
5937 | if test "$GCC" != yes; then | |
5938 | ac_save_CC=$CC | |
5939 | while :; do | |
81ecdfbb RW |
5940 | # IRIX 6.2 and later do not support large files by default, |
5941 | # so use the C compiler's -n32 option if that helps. | |
5942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5943 | /* end confdefs.h. */ |
5944 | #include <sys/types.h> | |
5945 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5946 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5947 | since some C++ compilers masquerading as C compilers | |
5948 | incorrectly reject 9223372036854775807. */ | |
5949 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5950 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5951 | && LARGE_OFF_T % 2147483647 == 1) | |
5952 | ? 1 : -1]; | |
5953 | int | |
5954 | main () | |
5955 | { | |
5956 | ||
5957 | ; | |
5958 | return 0; | |
5959 | } | |
5960 | _ACEOF | |
81ecdfbb | 5961 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5962 | break |
d053aef8 | 5963 | fi |
81ecdfbb RW |
5964 | rm -f core conftest.err conftest.$ac_objext |
5965 | CC="$CC -n32" | |
5966 | if ac_fn_c_try_compile "$LINENO"; then : | |
d053aef8 | 5967 | ac_cv_sys_largefile_CC=' -n32'; break |
d053aef8 | 5968 | fi |
81ecdfbb | 5969 | rm -f core conftest.err conftest.$ac_objext |
d053aef8 JK |
5970 | break |
5971 | done | |
5972 | CC=$ac_save_CC | |
5973 | rm -f conftest.$ac_ext | |
5974 | fi | |
5975 | fi | |
81ecdfbb RW |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
5977 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
d053aef8 JK |
5978 | if test "$ac_cv_sys_largefile_CC" != no; then |
5979 | CC=$CC$ac_cv_sys_largefile_CC | |
5980 | fi | |
5981 | ||
81ecdfbb RW |
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5983 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
5984 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
5985 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5986 | else |
5987 | while :; do | |
81ecdfbb | 5988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5989 | /* end confdefs.h. */ |
5990 | #include <sys/types.h> | |
5991 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5992 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5993 | since some C++ compilers masquerading as C compilers | |
5994 | incorrectly reject 9223372036854775807. */ | |
5995 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5996 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5997 | && LARGE_OFF_T % 2147483647 == 1) | |
5998 | ? 1 : -1]; | |
5999 | int | |
6000 | main () | |
6001 | { | |
6002 | ||
6003 | ; | |
6004 | return 0; | |
6005 | } | |
6006 | _ACEOF | |
81ecdfbb RW |
6007 | if ac_fn_c_try_compile "$LINENO"; then : |
6008 | ac_cv_sys_file_offset_bits=no; break | |
d053aef8 | 6009 | fi |
81ecdfbb RW |
6010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
6012 | /* end confdefs.h. */ |
6013 | #define _FILE_OFFSET_BITS 64 | |
6014 | #include <sys/types.h> | |
6015 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6016 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6017 | since some C++ compilers masquerading as C compilers | |
6018 | incorrectly reject 9223372036854775807. */ | |
6019 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6020 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6021 | && LARGE_OFF_T % 2147483647 == 1) | |
6022 | ? 1 : -1]; | |
6023 | int | |
6024 | main () | |
6025 | { | |
6026 | ||
6027 | ; | |
6028 | return 0; | |
6029 | } | |
6030 | _ACEOF | |
81ecdfbb | 6031 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 6032 | ac_cv_sys_file_offset_bits=64; break |
d053aef8 | 6033 | fi |
81ecdfbb RW |
6034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6035 | ac_cv_sys_file_offset_bits=unknown | |
d053aef8 JK |
6036 | break |
6037 | done | |
6038 | fi | |
81ecdfbb RW |
6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
6040 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
6041 | case $ac_cv_sys_file_offset_bits in #( | |
6042 | no | unknown) ;; | |
6043 | *) | |
d053aef8 JK |
6044 | cat >>confdefs.h <<_ACEOF |
6045 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
6046 | _ACEOF | |
81ecdfbb RW |
6047 | ;; |
6048 | esac | |
6049 | rm -rf conftest* | |
6050 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
6052 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
6053 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
6054 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
6055 | else |
6056 | while :; do | |
81ecdfbb | 6057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
6058 | /* end confdefs.h. */ |
6059 | #include <sys/types.h> | |
6060 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6061 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6062 | since some C++ compilers masquerading as C compilers | |
6063 | incorrectly reject 9223372036854775807. */ | |
6064 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6065 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6066 | && LARGE_OFF_T % 2147483647 == 1) | |
6067 | ? 1 : -1]; | |
6068 | int | |
6069 | main () | |
6070 | { | |
6071 | ||
6072 | ; | |
6073 | return 0; | |
6074 | } | |
6075 | _ACEOF | |
81ecdfbb RW |
6076 | if ac_fn_c_try_compile "$LINENO"; then : |
6077 | ac_cv_sys_large_files=no; break | |
d053aef8 | 6078 | fi |
81ecdfbb RW |
6079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
6081 | /* end confdefs.h. */ |
6082 | #define _LARGE_FILES 1 | |
6083 | #include <sys/types.h> | |
6084 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6085 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6086 | since some C++ compilers masquerading as C compilers | |
6087 | incorrectly reject 9223372036854775807. */ | |
6088 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6089 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6090 | && LARGE_OFF_T % 2147483647 == 1) | |
6091 | ? 1 : -1]; | |
6092 | int | |
6093 | main () | |
6094 | { | |
6095 | ||
6096 | ; | |
6097 | return 0; | |
6098 | } | |
6099 | _ACEOF | |
81ecdfbb | 6100 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 6101 | ac_cv_sys_large_files=1; break |
d053aef8 | 6102 | fi |
81ecdfbb RW |
6103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6104 | ac_cv_sys_large_files=unknown | |
d053aef8 JK |
6105 | break |
6106 | done | |
6107 | fi | |
81ecdfbb RW |
6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
6109 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
6110 | case $ac_cv_sys_large_files in #( | |
6111 | no | unknown) ;; | |
6112 | *) | |
d053aef8 JK |
6113 | cat >>confdefs.h <<_ACEOF |
6114 | #define _LARGE_FILES $ac_cv_sys_large_files | |
6115 | _ACEOF | |
81ecdfbb RW |
6116 | ;; |
6117 | esac | |
6118 | rm -rf conftest* | |
6119 | fi | |
d053aef8 JK |
6120 | fi |
6121 | ||
42ecbf5e | 6122 | |
42ecbf5e | 6123 | |
da2f07f1 | 6124 | |
b214d478 SE |
6125 | case `pwd` in |
6126 | *\ * | *\ *) | |
81ecdfbb RW |
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
6128 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
b214d478 | 6129 | esac |
252b5132 | 6130 | |
42ecbf5e | 6131 | |
d7040cdb | 6132 | |
3725885a RW |
6133 | macro_version='2.2.7a' |
6134 | macro_revision='1.3134' | |
d7040cdb | 6135 | |
d7040cdb SE |
6136 | |
6137 | ||
d7040cdb | 6138 | |
d7040cdb | 6139 | |
42ecbf5e | 6140 | |
d7040cdb | 6141 | |
252b5132 | 6142 | |
252b5132 | 6143 | |
252b5132 | 6144 | |
252b5132 RH |
6145 | |
6146 | ||
ce2cded5 | 6147 | |
b214d478 | 6148 | ltmain="$ac_aux_dir/ltmain.sh" |
ce2cded5 | 6149 | |
3725885a RW |
6150 | # Backslashify metacharacters that are still active within |
6151 | # double-quoted strings. | |
6152 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6153 | ||
6154 | # Same as above, but do not quote variable references. | |
6155 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6156 | ||
6157 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6158 | # double_quote_subst'ed string. | |
6159 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6160 | ||
6161 | # Sed substitution to delay expansion of an escaped single quote. | |
6162 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6163 | ||
6164 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6165 | no_glob_subst='s/\*/\\\*/g' | |
6166 | ||
6167 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6168 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6169 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6170 | ||
6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6172 | $as_echo_n "checking how to print strings... " >&6; } | |
6173 | # Test print first, because it will be a builtin if present. | |
6174 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6175 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6176 | ECHO='print -r --' | |
6177 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6178 | ECHO='printf %s\n' | |
6179 | else | |
6180 | # Use this function as a fallback that always works. | |
6181 | func_fallback_echo () | |
6182 | { | |
6183 | eval 'cat <<_LTECHO_EOF | |
6184 | $1 | |
6185 | _LTECHO_EOF' | |
6186 | } | |
6187 | ECHO='func_fallback_echo' | |
6188 | fi | |
6189 | ||
6190 | # func_echo_all arg... | |
6191 | # Invoke $ECHO with all args, space-separated. | |
6192 | func_echo_all () | |
6193 | { | |
6194 | $ECHO "" | |
6195 | } | |
6196 | ||
6197 | case "$ECHO" in | |
6198 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6199 | $as_echo "printf" >&6; } ;; | |
6200 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6201 | $as_echo "print -r" >&6; } ;; | |
6202 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6203 | $as_echo "cat" >&6; } ;; | |
6204 | esac | |
6205 | ||
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | ||
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
6218 | ||
81ecdfbb RW |
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
6220 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6221 | if test "${ac_cv_path_SED+set}" = set; then : | |
6222 | $as_echo_n "(cached) " >&6 | |
6223 | else | |
6224 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6225 | for ac_i in 1 2 3 4 5 6 7; do | |
6226 | ac_script="$ac_script$as_nl$ac_script" | |
6227 | done | |
6228 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6229 | { ac_script=; unset ac_script;} | |
6230 | if test -z "$SED"; then | |
6231 | ac_path_SED_found=false | |
6232 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
6234 | for as_dir in $PATH |
6235 | do | |
6236 | IFS=$as_save_IFS | |
6237 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6238 | for ac_prog in sed gsed; do |
7357c5b6 | 6239 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
6240 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
6241 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
6242 | # Check for GNU ac_path_SED and select it if it is found. | |
6243 | # Check for GNU $ac_path_SED | |
6244 | case `"$ac_path_SED" --version 2>&1` in | |
6245 | *GNU*) | |
6246 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6247 | *) | |
6248 | ac_count=0 | |
6249 | $as_echo_n 0123456789 >"conftest.in" | |
6250 | while : | |
6251 | do | |
6252 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6253 | mv "conftest.tmp" "conftest.in" | |
6254 | cp "conftest.in" "conftest.nl" | |
6255 | $as_echo '' >> "conftest.nl" | |
6256 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6257 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6258 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6259 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6260 | # Best one so far, save it but keep looking for a better one | |
6261 | ac_cv_path_SED="$ac_path_SED" | |
6262 | ac_path_SED_max=$ac_count | |
6263 | fi | |
6264 | # 10*(2^10) chars as input seems more than enough | |
6265 | test $ac_count -gt 10 && break | |
6266 | done | |
6267 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6268 | esac | |
6269 | ||
6270 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
6271 | done |
6272 | done | |
81ecdfbb | 6273 | done |
7357c5b6 | 6274 | IFS=$as_save_IFS |
81ecdfbb RW |
6275 | if test -z "$ac_cv_path_SED"; then |
6276 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
ce2cded5 | 6277 | fi |
81ecdfbb RW |
6278 | else |
6279 | ac_cv_path_SED=$SED | |
7357c5b6 | 6280 | fi |
20e95c23 | 6281 | |
81ecdfbb RW |
6282 | fi |
6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6284 | $as_echo "$ac_cv_path_SED" >&6; } | |
6285 | SED="$ac_cv_path_SED" | |
6286 | rm -f conftest.sed | |
20e95c23 | 6287 | |
7357c5b6 AM |
6288 | test -z "$SED" && SED=sed |
6289 | Xsed="$SED -e 1s/^X//" | |
20e95c23 DJ |
6290 | |
6291 | ||
6292 | ||
6293 | ||
6294 | ||
6295 | ||
20e95c23 | 6296 | |
20e95c23 | 6297 | |
d7040cdb | 6298 | |
d7040cdb | 6299 | |
7357c5b6 | 6300 | |
81ecdfbb RW |
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
6302 | $as_echo_n "checking for fgrep... " >&6; } | |
6303 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
6304 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 6305 | else |
81ecdfbb RW |
6306 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6307 | then ac_cv_path_FGREP="$GREP -F" | |
6308 | else | |
6309 | if test -z "$FGREP"; then | |
6310 | ac_path_FGREP_found=false | |
6311 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6313 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6314 | do | |
6315 | IFS=$as_save_IFS | |
6316 | test -z "$as_dir" && as_dir=. | |
6317 | for ac_prog in fgrep; do | |
6318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6319 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6320 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
6321 | # Check for GNU ac_path_FGREP and select it if it is found. | |
6322 | # Check for GNU $ac_path_FGREP | |
6323 | case `"$ac_path_FGREP" --version 2>&1` in | |
6324 | *GNU*) | |
6325 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6326 | *) | |
6327 | ac_count=0 | |
6328 | $as_echo_n 0123456789 >"conftest.in" | |
6329 | while : | |
6330 | do | |
6331 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6332 | mv "conftest.tmp" "conftest.in" | |
6333 | cp "conftest.in" "conftest.nl" | |
6334 | $as_echo 'FGREP' >> "conftest.nl" | |
6335 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6336 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6337 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6338 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6339 | # Best one so far, save it but keep looking for a better one | |
6340 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6341 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 6342 | fi |
81ecdfbb RW |
6343 | # 10*(2^10) chars as input seems more than enough |
6344 | test $ac_count -gt 10 && break | |
6345 | done | |
6346 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6347 | esac | |
6348 | ||
6349 | $ac_path_FGREP_found && break 3 | |
6350 | done | |
6351 | done | |
6352 | done | |
6353 | IFS=$as_save_IFS | |
6354 | if test -z "$ac_cv_path_FGREP"; then | |
6355 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6356 | fi | |
6357 | else | |
6358 | ac_cv_path_FGREP=$FGREP | |
6359 | fi | |
6360 | ||
6361 | fi | |
20e95c23 | 6362 | fi |
81ecdfbb RW |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6364 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6365 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
6366 | |
6367 | ||
6368 | test -z "$GREP" && GREP=grep | |
6369 | ||
d7040cdb SE |
6370 | |
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
20e95c23 | 6381 | |
ce2cded5 | 6382 | |
d7040cdb | 6383 | |
7357c5b6 AM |
6384 | |
6385 | ||
6386 | ||
6387 | ||
81ecdfbb RW |
6388 | # Check whether --with-gnu-ld was given. |
6389 | if test "${with_gnu_ld+set}" = set; then : | |
6390 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
6391 | else |
6392 | with_gnu_ld=no | |
81ecdfbb RW |
6393 | fi |
6394 | ||
7357c5b6 AM |
6395 | ac_prog=ld |
6396 | if test "$GCC" = yes; then | |
6397 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
6399 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
6400 | case $host in |
6401 | *-*-mingw*) | |
6402 | # gcc leaves a trailing carriage return which upsets mingw | |
6403 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6404 | *) | |
6405 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6406 | esac | |
6407 | case $ac_prog in | |
6408 | # Accept absolute paths. | |
6409 | [\\/]* | ?:[\\/]*) | |
6410 | re_direlt='/[^/][^/]*/\.\./' | |
6411 | # Canonicalize the pathname of ld | |
6412 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6413 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6414 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6415 | done | |
6416 | test -z "$LD" && LD="$ac_prog" | |
6417 | ;; | |
6418 | "") | |
6419 | # If it fails, then pretend we aren't using GCC. | |
6420 | ac_prog=ld | |
6421 | ;; | |
6422 | *) | |
6423 | # If it is relative, then search for the first ld in PATH. | |
6424 | with_gnu_ld=unknown | |
6425 | ;; | |
6426 | esac | |
6427 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
6429 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 6430 | else |
81ecdfbb RW |
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
6432 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 6433 | fi |
81ecdfbb RW |
6434 | if test "${lt_cv_path_LD+set}" = set; then : |
6435 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6436 | else |
7357c5b6 AM |
6437 | if test -z "$LD"; then |
6438 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6439 | for ac_dir in $PATH; do | |
6440 | IFS="$lt_save_ifs" | |
6441 | test -z "$ac_dir" && ac_dir=. | |
6442 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6443 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6444 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6445 | # but apparently some variants of GNU ld only accept -v. | |
6446 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6447 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6448 | *GNU* | *'with BFD'*) | |
6449 | test "$with_gnu_ld" != no && break | |
6450 | ;; | |
6451 | *) | |
6452 | test "$with_gnu_ld" != yes && break | |
6453 | ;; | |
6454 | esac | |
6455 | fi | |
6456 | done | |
6457 | IFS="$lt_save_ifs" | |
ce2cded5 | 6458 | else |
7357c5b6 | 6459 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ce2cded5 L |
6460 | fi |
6461 | fi | |
7357c5b6 AM |
6462 | |
6463 | LD="$lt_cv_path_LD" | |
6464 | if test -n "$LD"; then | |
81ecdfbb RW |
6465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
6466 | $as_echo "$LD" >&6; } | |
ce2cded5 | 6467 | else |
81ecdfbb RW |
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6469 | $as_echo "no" >&6; } | |
ce2cded5 | 6470 | fi |
81ecdfbb RW |
6471 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6473 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6474 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
6475 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6476 | else |
7357c5b6 AM |
6477 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
6478 | case `$LD -v 2>&1 </dev/null` in | |
6479 | *GNU* | *'with BFD'*) | |
6480 | lt_cv_prog_gnu_ld=yes | |
6481 | ;; | |
6482 | *) | |
6483 | lt_cv_prog_gnu_ld=no | |
6484 | ;; | |
6485 | esac | |
ce2cded5 | 6486 | fi |
81ecdfbb RW |
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
6488 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 6489 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
6490 | |
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
81ecdfbb RW |
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6500 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6501 | if test "${lt_cv_path_NM+set}" = set; then : | |
6502 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6503 | else |
7357c5b6 AM |
6504 | if test -n "$NM"; then |
6505 | # Let the user override the test. | |
6506 | lt_cv_path_NM="$NM" | |
ce2cded5 | 6507 | else |
7357c5b6 AM |
6508 | lt_nm_to_check="${ac_tool_prefix}nm" |
6509 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6510 | lt_nm_to_check="$lt_nm_to_check nm" | |
20e95c23 | 6511 | fi |
7357c5b6 AM |
6512 | for lt_tmp_nm in $lt_nm_to_check; do |
6513 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6514 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6515 | IFS="$lt_save_ifs" | |
6516 | test -z "$ac_dir" && ac_dir=. | |
6517 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6518 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6519 | # Check to see if the nm accepts a BSD-compat flag. | |
6520 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6521 | # nm: unknown option "B" ignored | |
6522 | # Tru64's nm complains that /dev/null is an invalid object file | |
6523 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6524 | */dev/null* | *'Invalid file or object type'*) | |
6525 | lt_cv_path_NM="$tmp_nm -B" | |
6526 | break | |
6527 | ;; | |
6528 | *) | |
6529 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6530 | */dev/null*) | |
6531 | lt_cv_path_NM="$tmp_nm -p" | |
6532 | break | |
6533 | ;; | |
6534 | *) | |
6535 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6536 | continue # so that we can try to find one that supports BSD flags | |
6537 | ;; | |
6538 | esac | |
6539 | ;; | |
6540 | esac | |
6541 | fi | |
6542 | done | |
6543 | IFS="$lt_save_ifs" | |
6544 | done | |
6545 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
6546 | fi |
6547 | fi | |
81ecdfbb RW |
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
6549 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
6550 | if test "$lt_cv_path_NM" != "no"; then |
6551 | NM="$lt_cv_path_NM" | |
ce2cded5 | 6552 | else |
7357c5b6 | 6553 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
6554 | if test -n "$DUMPBIN"; then : |
6555 | # Let the user override the test. | |
6556 | else | |
6557 | if test -n "$ac_tool_prefix"; then | |
6558 | for ac_prog in dumpbin "link -dump" | |
7357c5b6 AM |
6559 | do |
6560 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6561 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6563 | $as_echo_n "checking for $ac_word... " >&6; } | |
6564 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
6565 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6566 | else |
7357c5b6 AM |
6567 | if test -n "$DUMPBIN"; then |
6568 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6569 | else |
6570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6571 | for as_dir in $PATH | |
6572 | do | |
6573 | IFS=$as_save_IFS | |
6574 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6575 | for ac_exec_ext in '' $ac_executable_extensions; do |
6576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6577 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 6578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6579 | break 2 |
6580 | fi | |
6581 | done | |
81ecdfbb RW |
6582 | done |
6583 | IFS=$as_save_IFS | |
d7040cdb | 6584 | |
20e95c23 | 6585 | fi |
ce2cded5 | 6586 | fi |
7357c5b6 AM |
6587 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6588 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6590 | $as_echo "$DUMPBIN" >&6; } | |
42ecbf5e | 6591 | else |
81ecdfbb RW |
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6593 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6594 | fi |
6595 | ||
81ecdfbb | 6596 | |
7357c5b6 AM |
6597 | test -n "$DUMPBIN" && break |
6598 | done | |
ce2cded5 | 6599 | fi |
7357c5b6 AM |
6600 | if test -z "$DUMPBIN"; then |
6601 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 6602 | for ac_prog in dumpbin "link -dump" |
7357c5b6 AM |
6603 | do |
6604 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6605 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6607 | $as_echo_n "checking for $ac_word... " >&6; } | |
6608 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
6609 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 6610 | else |
7357c5b6 AM |
6611 | if test -n "$ac_ct_DUMPBIN"; then |
6612 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6613 | else |
6614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6615 | for as_dir in $PATH | |
6616 | do | |
6617 | IFS=$as_save_IFS | |
6618 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6619 | for ac_exec_ext in '' $ac_executable_extensions; do |
6620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6621 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 6622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6623 | break 2 |
6624 | fi | |
6625 | done | |
81ecdfbb RW |
6626 | done |
6627 | IFS=$as_save_IFS | |
d7040cdb | 6628 | |
ce2cded5 L |
6629 | fi |
6630 | fi | |
7357c5b6 AM |
6631 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6632 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6634 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 6635 | else |
81ecdfbb RW |
6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6637 | $as_echo "no" >&6; } | |
ce2cded5 | 6638 | fi |
d7040cdb | 6639 | |
81ecdfbb | 6640 | |
7357c5b6 | 6641 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 6642 | done |
d7040cdb | 6643 | |
81ecdfbb RW |
6644 | if test "x$ac_ct_DUMPBIN" = x; then |
6645 | DUMPBIN=":" | |
6646 | else | |
6647 | case $cross_compiling:$ac_tool_warned in | |
6648 | yes:) | |
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6651 | ac_tool_warned=yes ;; | |
6652 | esac | |
6653 | DUMPBIN=$ac_ct_DUMPBIN | |
6654 | fi | |
ce2cded5 | 6655 | fi |
7357c5b6 | 6656 | |
3725885a RW |
6657 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6658 | *COFF*) | |
6659 | DUMPBIN="$DUMPBIN -symbols" | |
6660 | ;; | |
6661 | *) | |
6662 | DUMPBIN=: | |
6663 | ;; | |
6664 | esac | |
6665 | fi | |
7357c5b6 AM |
6666 | |
6667 | if test "$DUMPBIN" != ":"; then | |
6668 | NM="$DUMPBIN" | |
6669 | fi | |
ce2cded5 | 6670 | fi |
7357c5b6 AM |
6671 | test -z "$NM" && NM=nm |
6672 | ||
6673 | ||
6674 | ||
6675 | ||
6676 | ||
6677 | ||
81ecdfbb RW |
6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6679 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6680 | if test "${lt_cv_nm_interface+set}" = set; then : | |
6681 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6682 | else |
7357c5b6 AM |
6683 | lt_cv_nm_interface="BSD nm" |
6684 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 6685 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7357c5b6 AM |
6686 | (eval "$ac_compile" 2>conftest.err) |
6687 | cat conftest.err >&5 | |
3725885a | 6688 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
6689 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6690 | cat conftest.err >&5 | |
3725885a | 6691 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7357c5b6 AM |
6692 | cat conftest.out >&5 |
6693 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6694 | lt_cv_nm_interface="MS dumpbin" | |
6695 | fi | |
6696 | rm -f conftest* | |
20e95c23 | 6697 | fi |
81ecdfbb RW |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6699 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 6700 | |
81ecdfbb RW |
6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6702 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
6703 | LN_S=$as_ln_s |
6704 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
6705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6706 | $as_echo "yes" >&6; } | |
ce2cded5 | 6707 | else |
81ecdfbb RW |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6709 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 6710 | fi |
20e95c23 | 6711 | |
7357c5b6 | 6712 | # find the maximum length of command line arguments |
81ecdfbb RW |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6714 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6715 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
6716 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6717 | else |
6718 | i=0 | |
6719 | teststring="ABCD" | |
20e95c23 | 6720 | |
7357c5b6 AM |
6721 | case $build_os in |
6722 | msdosdjgpp*) | |
6723 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6724 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6725 | # during glob expansion). Even if it were fixed, the result of this | |
6726 | # check would be larger than it should be. | |
6727 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6728 | ;; | |
20e95c23 | 6729 | |
7357c5b6 AM |
6730 | gnu*) |
6731 | # Under GNU Hurd, this test is not required because there is | |
6732 | # no limit to the length of command line arguments. | |
6733 | # Libtool will interpret -1 as no limit whatsoever | |
6734 | lt_cv_sys_max_cmd_len=-1; | |
6735 | ;; | |
20e95c23 | 6736 | |
b214d478 | 6737 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
6738 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6739 | # about 5 minutes as the teststring grows exponentially. | |
6740 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6741 | # you end up with a "frozen" computer, even though with patience | |
6742 | # the test eventually succeeds (with a max line length of 256k). | |
6743 | # Instead, let's just punt: use the minimum linelength reported by | |
6744 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6745 | lt_cv_sys_max_cmd_len=8192; | |
6746 | ;; | |
20e95c23 | 6747 | |
3725885a RW |
6748 | mint*) |
6749 | # On MiNT this can take a long time and run out of memory. | |
6750 | lt_cv_sys_max_cmd_len=8192; | |
6751 | ;; | |
6752 | ||
7357c5b6 AM |
6753 | amigaos*) |
6754 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6755 | # So we just punt and use a minimum line length of 8192. | |
6756 | lt_cv_sys_max_cmd_len=8192; | |
6757 | ;; | |
20e95c23 | 6758 | |
7357c5b6 AM |
6759 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6760 | # This has been around since 386BSD, at least. Likely further. | |
6761 | if test -x /sbin/sysctl; then | |
6762 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6763 | elif test -x /usr/sbin/sysctl; then | |
6764 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6765 | else | |
6766 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6767 | fi | |
6768 | # And add a safety zone | |
6769 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6770 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6771 | ;; | |
d7040cdb | 6772 | |
7357c5b6 AM |
6773 | interix*) |
6774 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6775 | lt_cv_sys_max_cmd_len=196608 | |
6776 | ;; | |
d7040cdb | 6777 | |
7357c5b6 AM |
6778 | osf*) |
6779 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6780 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6781 | # nice to cause kernel panics so lets avoid the loop below. | |
6782 | # First set a reasonable default. | |
6783 | lt_cv_sys_max_cmd_len=16384 | |
6784 | # | |
6785 | if test -x /sbin/sysconfig; then | |
6786 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6787 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6788 | esac | |
6789 | fi | |
6790 | ;; | |
6791 | sco3.2v5*) | |
6792 | lt_cv_sys_max_cmd_len=102400 | |
6793 | ;; | |
6794 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6795 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6796 | if test -n "$kargmax"; then | |
6797 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6798 | else | |
6799 | lt_cv_sys_max_cmd_len=32768 | |
6800 | fi | |
ce2cded5 L |
6801 | ;; |
6802 | *) | |
b214d478 SE |
6803 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6804 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
6805 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6806 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6807 | else | |
6808 | # Make teststring a little bigger before we do anything with it. | |
6809 | # a 1K string should be a reasonable start. | |
6810 | for i in 1 2 3 4 5 6 7 8 ; do | |
6811 | teststring=$teststring$teststring | |
6812 | done | |
6813 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6814 | # If test is not a shell built-in, we'll probably end up computing a | |
6815 | # maximum length that is only half of the actual maximum length, but | |
6816 | # we can't tell. | |
3725885a RW |
6817 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
6818 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
7357c5b6 AM |
6819 | test $i != 17 # 1/2 MB should be enough |
6820 | do | |
6821 | i=`expr $i + 1` | |
6822 | teststring=$teststring$teststring | |
6823 | done | |
6824 | # Only check the string length outside the loop. | |
6825 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6826 | teststring= | |
6827 | # Add a significant safety factor because C++ compilers can tack on | |
6828 | # massive amounts of additional arguments before passing them to the | |
6829 | # linker. It appears as though 1/2 is a usable value. | |
6830 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6831 | fi | |
ce2cded5 L |
6832 | ;; |
6833 | esac | |
d7040cdb | 6834 | |
7357c5b6 | 6835 | fi |
d7040cdb | 6836 | |
7357c5b6 | 6837 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6839 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 6840 | else |
81ecdfbb RW |
6841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6842 | $as_echo "none" >&6; } | |
7357c5b6 AM |
6843 | fi |
6844 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
6845 | |
6846 | ||
6847 | ||
6848 | ||
6849 | ||
d7040cdb | 6850 | |
7357c5b6 AM |
6851 | : ${CP="cp -f"} |
6852 | : ${MV="mv -f"} | |
6853 | : ${RM="rm -f"} | |
d7040cdb | 6854 | |
81ecdfbb RW |
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6856 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
6857 | # Try some XSI features |
6858 | xsi_shell=no | |
6859 | ( _lt_dummy="a/b/c" | |
6860 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
6861 | = c,a/b,, \ |
6862 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6863 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 6864 | && xsi_shell=yes |
81ecdfbb RW |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6866 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb | 6867 | |
d7040cdb | 6868 | |
81ecdfbb RW |
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6870 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
6871 | lt_shell_append=no |
6872 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6873 | >/dev/null 2>&1 \ | |
6874 | && lt_shell_append=yes | |
81ecdfbb RW |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6876 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
6877 | |
6878 | ||
7357c5b6 AM |
6879 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6880 | lt_unset=unset | |
6881 | else | |
6882 | lt_unset=false | |
6883 | fi | |
d7040cdb | 6884 | |
d7040cdb | 6885 | |
d7040cdb | 6886 | |
d7040cdb | 6887 | |
d7040cdb | 6888 | |
7357c5b6 AM |
6889 | # test EBCDIC or ASCII |
6890 | case `echo X|tr X '\101'` in | |
6891 | A) # ASCII based system | |
6892 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6893 | lt_SP2NL='tr \040 \012' | |
6894 | lt_NL2SP='tr \015\012 \040\040' | |
6895 | ;; | |
6896 | *) # EBCDIC based system | |
6897 | lt_SP2NL='tr \100 \n' | |
6898 | lt_NL2SP='tr \r\n \100\100' | |
6899 | ;; | |
6900 | esac | |
42ecbf5e | 6901 | |
d7040cdb SE |
6902 | |
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | ||
d7040cdb | 6908 | |
d7040cdb | 6909 | |
81ecdfbb RW |
6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6911 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6912 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
6913 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6914 | else |
6915 | lt_cv_ld_reload_flag='-r' | |
6916 | fi | |
81ecdfbb RW |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6918 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
6919 | reload_flag=$lt_cv_ld_reload_flag |
6920 | case $reload_flag in | |
6921 | "" | " "*) ;; | |
6922 | *) reload_flag=" $reload_flag" ;; | |
6923 | esac | |
6924 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6925 | case $host_os in | |
6926 | darwin*) | |
6927 | if test "$GCC" = yes; then | |
6928 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6929 | else | |
6930 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6931 | fi | |
6932 | ;; | |
6933 | esac | |
d7040cdb | 6934 | |
d7040cdb | 6935 | |
d7040cdb | 6936 | |
d7040cdb | 6937 | |
d7040cdb | 6938 | |
d7040cdb | 6939 | |
d7040cdb | 6940 | |
d7040cdb | 6941 | |
d7040cdb | 6942 | |
b214d478 SE |
6943 | if test -n "$ac_tool_prefix"; then |
6944 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6945 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6947 | $as_echo_n "checking for $ac_word... " >&6; } | |
6948 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
6949 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6950 | else |
6951 | if test -n "$OBJDUMP"; then | |
6952 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6953 | else | |
6954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6955 | for as_dir in $PATH | |
6956 | do | |
6957 | IFS=$as_save_IFS | |
6958 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6959 | for ac_exec_ext in '' $ac_executable_extensions; do |
6960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6961 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 6962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6963 | break 2 |
6964 | fi | |
6965 | done | |
81ecdfbb RW |
6966 | done |
6967 | IFS=$as_save_IFS | |
b214d478 SE |
6968 | |
6969 | fi | |
6970 | fi | |
6971 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6972 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6974 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 6975 | else |
81ecdfbb RW |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6977 | $as_echo "no" >&6; } | |
b214d478 SE |
6978 | fi |
6979 | ||
81ecdfbb | 6980 | |
b214d478 SE |
6981 | fi |
6982 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6983 | ac_ct_OBJDUMP=$OBJDUMP | |
6984 | # Extract the first word of "objdump", so it can be a program name with args. | |
6985 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6987 | $as_echo_n "checking for $ac_word... " >&6; } | |
6988 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6989 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6990 | else |
6991 | if test -n "$ac_ct_OBJDUMP"; then | |
6992 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6993 | else | |
6994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6995 | for as_dir in $PATH | |
6996 | do | |
6997 | IFS=$as_save_IFS | |
6998 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6999 | for ac_exec_ext in '' $ac_executable_extensions; do |
7000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7001 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 7002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7003 | break 2 |
7004 | fi | |
7005 | done | |
81ecdfbb RW |
7006 | done |
7007 | IFS=$as_save_IFS | |
b214d478 | 7008 | |
b214d478 SE |
7009 | fi |
7010 | fi | |
7011 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7012 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7014 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 7015 | else |
81ecdfbb RW |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7017 | $as_echo "no" >&6; } | |
b214d478 SE |
7018 | fi |
7019 | ||
81ecdfbb RW |
7020 | if test "x$ac_ct_OBJDUMP" = x; then |
7021 | OBJDUMP="false" | |
7022 | else | |
7023 | case $cross_compiling:$ac_tool_warned in | |
7024 | yes:) | |
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7026 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7027 | ac_tool_warned=yes ;; | |
7028 | esac | |
7029 | OBJDUMP=$ac_ct_OBJDUMP | |
7030 | fi | |
b214d478 SE |
7031 | else |
7032 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7033 | fi | |
7034 | ||
7035 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7036 | ||
7037 | ||
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ||
7043 | ||
d7040cdb | 7044 | |
81ecdfbb RW |
7045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7046 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
7047 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
7048 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7049 | else |
7357c5b6 AM |
7050 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
7051 | lt_cv_file_magic_test_file= | |
7052 | lt_cv_deplibs_check_method='unknown' | |
7053 | # Need to set the preceding variable on all platforms that support | |
7054 | # interlibrary dependencies. | |
7055 | # 'none' -- dependencies not supported. | |
7056 | # `unknown' -- same as none, but documents that we really don't know. | |
7057 | # 'pass_all' -- all dependencies passed with no checks. | |
7058 | # 'test_compile' -- check by making test program. | |
7059 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
7060 | # which responds to the $file_magic_cmd with a given extended regex. | |
7061 | # If you have `file' or equivalent on your system and you're not sure | |
7062 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 7063 | |
ce2cded5 | 7064 | case $host_os in |
7357c5b6 AM |
7065 | aix[4-9]*) |
7066 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 7067 | ;; |
7357c5b6 AM |
7068 | |
7069 | beos*) | |
7070 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 7071 | ;; |
7357c5b6 AM |
7072 | |
7073 | bsdi[45]*) | |
7074 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
7075 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7076 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 7077 | ;; |
7357c5b6 AM |
7078 | |
7079 | cygwin*) | |
7080 | # func_win32_libid is a shell function defined in ltmain.sh | |
7081 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7082 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 7083 | ;; |
7357c5b6 AM |
7084 | |
7085 | mingw* | pw32*) | |
7086 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7087 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7088 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
7089 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7090 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7357c5b6 AM |
7091 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7092 | lt_cv_file_magic_cmd='func_win32_libid' | |
7093 | else | |
7094 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7095 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7096 | fi | |
ce2cded5 | 7097 | ;; |
7357c5b6 | 7098 | |
3725885a | 7099 | cegcc*) |
b214d478 SE |
7100 | # use the weaker test based on 'objdump'. See mingw*. |
7101 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7102 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7103 | ;; | |
7104 | ||
7357c5b6 AM |
7105 | darwin* | rhapsody*) |
7106 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 7107 | ;; |
7357c5b6 AM |
7108 | |
7109 | freebsd* | dragonfly*) | |
7110 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7111 | case $host_cpu in | |
7112 | i*86 ) | |
7113 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7114 | # Let's accept both of them until this is cleared up. | |
7115 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
7116 | lt_cv_file_magic_cmd=/usr/bin/file | |
7117 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7118 | ;; | |
7119 | esac | |
7120 | else | |
7121 | lt_cv_deplibs_check_method=pass_all | |
7122 | fi | |
ce2cded5 | 7123 | ;; |
7357c5b6 AM |
7124 | |
7125 | gnu*) | |
7126 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 7127 | ;; |
7357c5b6 | 7128 | |
3725885a RW |
7129 | haiku*) |
7130 | lt_cv_deplibs_check_method=pass_all | |
7131 | ;; | |
7132 | ||
7357c5b6 AM |
7133 | hpux10.20* | hpux11*) |
7134 | lt_cv_file_magic_cmd=/usr/bin/file | |
7135 | case $host_cpu in | |
7136 | ia64*) | |
7137 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
7138 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
7139 | ;; | |
7140 | hppa*64*) | |
3725885a | 7141 | 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]' |
7357c5b6 AM |
7142 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
7143 | ;; | |
7144 | *) | |
3725885a | 7145 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7357c5b6 AM |
7146 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
7147 | ;; | |
7148 | esac | |
ce2cded5 | 7149 | ;; |
d7040cdb | 7150 | |
7357c5b6 AM |
7151 | interix[3-9]*) |
7152 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7153 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7154 | ;; | |
d7040cdb | 7155 | |
7357c5b6 AM |
7156 | irix5* | irix6* | nonstopux*) |
7157 | case $LD in | |
7158 | *-32|*"-32 ") libmagic=32-bit;; | |
7159 | *-n32|*"-n32 ") libmagic=N32;; | |
7160 | *-64|*"-64 ") libmagic=64-bit;; | |
7161 | *) libmagic=never-match;; | |
7162 | esac | |
7163 | lt_cv_deplibs_check_method=pass_all | |
7164 | ;; | |
d7040cdb | 7165 | |
7357c5b6 | 7166 | # This must be Linux ELF. |
58e24671 | 7167 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7357c5b6 AM |
7168 | lt_cv_deplibs_check_method=pass_all |
7169 | ;; | |
d7040cdb | 7170 | |
7357c5b6 AM |
7171 | netbsd*) |
7172 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7173 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7174 | else | |
7175 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
7176 | fi | |
ce2cded5 | 7177 | ;; |
d7040cdb | 7178 | |
7357c5b6 AM |
7179 | newos6*) |
7180 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
7181 | lt_cv_file_magic_cmd=/usr/bin/file | |
7182 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7183 | ;; | |
d7040cdb | 7184 | |
7357c5b6 AM |
7185 | *nto* | *qnx*) |
7186 | lt_cv_deplibs_check_method=pass_all | |
7187 | ;; | |
d7040cdb | 7188 | |
7357c5b6 AM |
7189 | openbsd*) |
7190 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7191 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
ce2cded5 | 7192 | else |
7357c5b6 | 7193 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
ce2cded5 | 7194 | fi |
7357c5b6 | 7195 | ;; |
d7040cdb | 7196 | |
7357c5b6 AM |
7197 | osf3* | osf4* | osf5*) |
7198 | lt_cv_deplibs_check_method=pass_all | |
7199 | ;; | |
d7040cdb | 7200 | |
7357c5b6 AM |
7201 | rdos*) |
7202 | lt_cv_deplibs_check_method=pass_all | |
7203 | ;; | |
d7040cdb | 7204 | |
7357c5b6 AM |
7205 | solaris*) |
7206 | lt_cv_deplibs_check_method=pass_all | |
7207 | ;; | |
d7040cdb | 7208 | |
7357c5b6 AM |
7209 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
7210 | lt_cv_deplibs_check_method=pass_all | |
7211 | ;; | |
d7040cdb | 7212 | |
7357c5b6 AM |
7213 | sysv4 | sysv4.3*) |
7214 | case $host_vendor in | |
7215 | motorola) | |
7216 | 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]' | |
7217 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7218 | ;; | |
7219 | ncr) | |
7220 | lt_cv_deplibs_check_method=pass_all | |
7221 | ;; | |
7222 | sequent) | |
7223 | lt_cv_file_magic_cmd='/bin/file' | |
7224 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7225 | ;; | |
7226 | sni) | |
7227 | lt_cv_file_magic_cmd='/bin/file' | |
7228 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7229 | lt_cv_file_magic_test_file=/lib/libc.so | |
7230 | ;; | |
7231 | siemens) | |
7232 | lt_cv_deplibs_check_method=pass_all | |
7233 | ;; | |
7234 | pc) | |
7235 | lt_cv_deplibs_check_method=pass_all | |
7236 | ;; | |
7237 | esac | |
7238 | ;; | |
d7040cdb | 7239 | |
7357c5b6 AM |
7240 | tpf*) |
7241 | lt_cv_deplibs_check_method=pass_all | |
7242 | ;; | |
7243 | esac | |
d7040cdb | 7244 | |
7357c5b6 | 7245 | fi |
81ecdfbb RW |
7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7247 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
7248 | file_magic_cmd=$lt_cv_file_magic_cmd |
7249 | deplibs_check_method=$lt_cv_deplibs_check_method | |
7250 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
7251 | |
7252 | ||
7253 | ||
7357c5b6 AM |
7254 | |
7255 | ||
7256 | ||
7257 | ||
7258 | ||
7259 | ||
7260 | ||
7261 | ||
7262 | ||
7263 | if test -n "$ac_tool_prefix"; then | |
7264 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7265 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7267 | $as_echo_n "checking for $ac_word... " >&6; } | |
7268 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7269 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
7270 | else |
7271 | if test -n "$AR"; then | |
7272 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7273 | else | |
7274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7275 | for as_dir in $PATH | |
7276 | do | |
7277 | IFS=$as_save_IFS | |
7278 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7279 | for ac_exec_ext in '' $ac_executable_extensions; do |
7280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7281 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 7282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7283 | break 2 |
ce2cded5 L |
7284 | fi |
7285 | done | |
81ecdfbb RW |
7286 | done |
7287 | IFS=$as_save_IFS | |
d7040cdb | 7288 | |
42ecbf5e | 7289 | fi |
ce2cded5 | 7290 | fi |
7357c5b6 AM |
7291 | AR=$ac_cv_prog_AR |
7292 | if test -n "$AR"; then | |
81ecdfbb RW |
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7294 | $as_echo "$AR" >&6; } | |
42ecbf5e | 7295 | else |
81ecdfbb RW |
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7297 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
7298 | fi |
7299 | ||
81ecdfbb | 7300 | |
7357c5b6 AM |
7301 | fi |
7302 | if test -z "$ac_cv_prog_AR"; then | |
7303 | ac_ct_AR=$AR | |
7304 | # Extract the first word of "ar", so it can be a program name with args. | |
7305 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7307 | $as_echo_n "checking for $ac_word... " >&6; } | |
7308 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
7309 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
7310 | else |
7311 | if test -n "$ac_ct_AR"; then | |
7312 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7313 | else | |
7314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7315 | for as_dir in $PATH | |
7316 | do | |
7317 | IFS=$as_save_IFS | |
7318 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7319 | for ac_exec_ext in '' $ac_executable_extensions; do |
7320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7321 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 7322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
7323 | break 2 |
7324 | fi | |
7325 | done | |
81ecdfbb RW |
7326 | done |
7327 | IFS=$as_save_IFS | |
42ecbf5e | 7328 | |
7357c5b6 AM |
7329 | fi |
7330 | fi | |
7331 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7332 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7334 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 7335 | else |
81ecdfbb RW |
7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7337 | $as_echo "no" >&6; } | |
7357c5b6 | 7338 | fi |
d7040cdb | 7339 | |
81ecdfbb RW |
7340 | if test "x$ac_ct_AR" = x; then |
7341 | AR="false" | |
7342 | else | |
7343 | case $cross_compiling:$ac_tool_warned in | |
7344 | yes:) | |
7345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7346 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7347 | ac_tool_warned=yes ;; | |
7348 | esac | |
7349 | AR=$ac_ct_AR | |
7350 | fi | |
7357c5b6 AM |
7351 | else |
7352 | AR="$ac_cv_prog_AR" | |
7353 | fi | |
d7040cdb | 7354 | |
7357c5b6 AM |
7355 | test -z "$AR" && AR=ar |
7356 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
7357 | |
7358 | ||
7359 | ||
20e95c23 | 7360 | |
d7040cdb | 7361 | |
d7040cdb SE |
7362 | |
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | ||
7357c5b6 AM |
7368 | if test -n "$ac_tool_prefix"; then |
7369 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7370 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7372 | $as_echo_n "checking for $ac_word... " >&6; } | |
7373 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
7374 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
7375 | else |
7376 | if test -n "$STRIP"; then | |
7377 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7378 | else | |
7379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7380 | for as_dir in $PATH | |
7381 | do | |
7382 | IFS=$as_save_IFS | |
7383 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7384 | for ac_exec_ext in '' $ac_executable_extensions; do |
7385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7386 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 7387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7388 | break 2 |
ce2cded5 | 7389 | fi |
7357c5b6 | 7390 | done |
81ecdfbb RW |
7391 | done |
7392 | IFS=$as_save_IFS | |
d7040cdb | 7393 | |
7357c5b6 AM |
7394 | fi |
7395 | fi | |
7396 | STRIP=$ac_cv_prog_STRIP | |
7397 | if test -n "$STRIP"; then | |
81ecdfbb RW |
7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7399 | $as_echo "$STRIP" >&6; } | |
7357c5b6 | 7400 | else |
81ecdfbb RW |
7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7402 | $as_echo "no" >&6; } | |
7357c5b6 AM |
7403 | fi |
7404 | ||
81ecdfbb | 7405 | |
7357c5b6 AM |
7406 | fi |
7407 | if test -z "$ac_cv_prog_STRIP"; then | |
7408 | ac_ct_STRIP=$STRIP | |
7409 | # Extract the first word of "strip", so it can be a program name with args. | |
7410 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7412 | $as_echo_n "checking for $ac_word... " >&6; } | |
7413 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
7414 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
7415 | else |
7416 | if test -n "$ac_ct_STRIP"; then | |
7417 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7418 | else | |
7419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7420 | for as_dir in $PATH | |
7421 | do | |
7422 | IFS=$as_save_IFS | |
7423 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7424 | for ac_exec_ext in '' $ac_executable_extensions; do |
7425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7426 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 7427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7428 | break 2 |
ce2cded5 | 7429 | fi |
7357c5b6 | 7430 | done |
81ecdfbb RW |
7431 | done |
7432 | IFS=$as_save_IFS | |
d7040cdb | 7433 | |
7357c5b6 AM |
7434 | fi |
7435 | fi | |
7436 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7437 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7439 | $as_echo "$ac_ct_STRIP" >&6; } | |
20e95c23 | 7440 | else |
81ecdfbb RW |
7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7442 | $as_echo "no" >&6; } | |
7357c5b6 | 7443 | fi |
d7040cdb | 7444 | |
81ecdfbb RW |
7445 | if test "x$ac_ct_STRIP" = x; then |
7446 | STRIP=":" | |
7447 | else | |
7448 | case $cross_compiling:$ac_tool_warned in | |
7449 | yes:) | |
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7451 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7452 | ac_tool_warned=yes ;; | |
7453 | esac | |
7454 | STRIP=$ac_ct_STRIP | |
7455 | fi | |
7357c5b6 AM |
7456 | else |
7457 | STRIP="$ac_cv_prog_STRIP" | |
7458 | fi | |
d7040cdb | 7459 | |
7357c5b6 | 7460 | test -z "$STRIP" && STRIP=: |
d7040cdb | 7461 | |
d7040cdb SE |
7462 | |
7463 | ||
7464 | ||
d7040cdb | 7465 | |
7357c5b6 AM |
7466 | |
7467 | if test -n "$ac_tool_prefix"; then | |
7468 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7469 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7471 | $as_echo_n "checking for $ac_word... " >&6; } | |
7472 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
7473 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7474 | else |
7357c5b6 AM |
7475 | if test -n "$RANLIB"; then |
7476 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7477 | else | |
7478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7479 | for as_dir in $PATH | |
ce2cded5 | 7480 | do |
7357c5b6 AM |
7481 | IFS=$as_save_IFS |
7482 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7483 | for ac_exec_ext in '' $ac_executable_extensions; do |
7484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7485 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 7486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7487 | break 2 |
ce2cded5 | 7488 | fi |
7357c5b6 | 7489 | done |
81ecdfbb RW |
7490 | done |
7491 | IFS=$as_save_IFS | |
7357c5b6 | 7492 | |
ce2cded5 | 7493 | fi |
7357c5b6 AM |
7494 | fi |
7495 | RANLIB=$ac_cv_prog_RANLIB | |
7496 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7498 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 7499 | else |
81ecdfbb RW |
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7501 | $as_echo "no" >&6; } | |
ce2cded5 | 7502 | fi |
d7040cdb | 7503 | |
81ecdfbb | 7504 | |
7357c5b6 AM |
7505 | fi |
7506 | if test -z "$ac_cv_prog_RANLIB"; then | |
7507 | ac_ct_RANLIB=$RANLIB | |
7508 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7509 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7511 | $as_echo_n "checking for $ac_word... " >&6; } | |
7512 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
7513 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7514 | else |
7357c5b6 AM |
7515 | if test -n "$ac_ct_RANLIB"; then |
7516 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7517 | else | |
7518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7519 | for as_dir in $PATH | |
7520 | do | |
7521 | IFS=$as_save_IFS | |
7522 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7523 | for ac_exec_ext in '' $ac_executable_extensions; do |
7524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7525 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 7526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
7527 | break 2 |
7528 | fi | |
7529 | done | |
81ecdfbb RW |
7530 | done |
7531 | IFS=$as_save_IFS | |
7357c5b6 | 7532 | |
ce2cded5 | 7533 | fi |
7357c5b6 AM |
7534 | fi |
7535 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7536 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7538 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 7539 | else |
81ecdfbb RW |
7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7541 | $as_echo "no" >&6; } | |
ce2cded5 | 7542 | fi |
d7040cdb | 7543 | |
81ecdfbb RW |
7544 | if test "x$ac_ct_RANLIB" = x; then |
7545 | RANLIB=":" | |
7546 | else | |
7547 | case $cross_compiling:$ac_tool_warned in | |
7548 | yes:) | |
7549 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7550 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7551 | ac_tool_warned=yes ;; | |
7552 | esac | |
7553 | RANLIB=$ac_ct_RANLIB | |
7554 | fi | |
7357c5b6 AM |
7555 | else |
7556 | RANLIB="$ac_cv_prog_RANLIB" | |
ce2cded5 | 7557 | fi |
d7040cdb | 7558 | |
7357c5b6 | 7559 | test -z "$RANLIB" && RANLIB=: |
d7040cdb | 7560 | |
7357c5b6 AM |
7561 | |
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | # Determine commands to create old-style static archives. | |
b214d478 | 7567 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
7568 | old_postinstall_cmds='chmod 644 $oldlib' |
7569 | old_postuninstall_cmds= | |
7570 | ||
7571 | if test -n "$RANLIB"; then | |
7572 | case $host_os in | |
7573 | openbsd*) | |
7574 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7575 | ;; | |
7576 | *) | |
7577 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7578 | ;; | |
7579 | esac | |
7580 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 7581 | fi |
7357c5b6 | 7582 | |
3725885a RW |
7583 | case $host_os in |
7584 | darwin*) | |
7585 | lock_old_archive_extraction=yes ;; | |
7586 | *) | |
7587 | lock_old_archive_extraction=no ;; | |
7588 | esac | |
7589 | ||
7590 | ||
7591 | ||
7592 | ||
7593 | ||
7594 | ||
7357c5b6 AM |
7595 | |
7596 | ||
7597 | ||
7598 | ||
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | ||
7620 | ||
7621 | ||
7622 | ||
7623 | ||
7624 | ||
7625 | ||
7626 | ||
7627 | ||
7628 | # If no C compiler was specified, use CC. | |
7629 | LTCC=${LTCC-"$CC"} | |
7630 | ||
7631 | # If no C compiler flags were specified, use CFLAGS. | |
7632 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7633 | ||
7634 | # Allow CC to be a program name with arguments. | |
7635 | compiler=$CC | |
7636 | ||
7637 | ||
7638 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7640 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7641 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7642 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7643 | else |
d7040cdb | 7644 | |
7357c5b6 AM |
7645 | # These are sane defaults that work on at least a few old systems. |
7646 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 7647 | |
7357c5b6 AM |
7648 | # Character class describing NM global symbol codes. |
7649 | symcode='[BCDEGRST]' | |
7650 | ||
7651 | # Regexp to match symbols that can be accessed directly from C. | |
7652 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7653 | ||
7654 | # Define system-specific variables. | |
7655 | case $host_os in | |
7656 | aix*) | |
7657 | symcode='[BCDT]' | |
7658 | ;; | |
b214d478 | 7659 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
7660 | symcode='[ABCDGISTW]' |
7661 | ;; | |
7662 | hpux*) | |
7663 | if test "$host_cpu" = ia64; then | |
7664 | symcode='[ABCDEGRST]' | |
ce2cded5 | 7665 | fi |
7357c5b6 AM |
7666 | ;; |
7667 | irix* | nonstopux*) | |
7668 | symcode='[BCDEGRST]' | |
7669 | ;; | |
7670 | osf*) | |
7671 | symcode='[BCDEGQRST]' | |
7672 | ;; | |
7673 | solaris*) | |
7674 | symcode='[BDRT]' | |
7675 | ;; | |
7676 | sco3.2v5*) | |
7677 | symcode='[DT]' | |
7678 | ;; | |
7679 | sysv4.2uw2*) | |
7680 | symcode='[DT]' | |
7681 | ;; | |
7682 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7683 | symcode='[ABDT]' | |
7684 | ;; | |
7685 | sysv4) | |
7686 | symcode='[DFNSTU]' | |
7687 | ;; | |
7688 | esac | |
d7040cdb | 7689 | |
7357c5b6 AM |
7690 | # If we're using GNU nm, then use its standard symbol codes. |
7691 | case `$NM -V 2>&1` in | |
7692 | *GNU* | *'with BFD'*) | |
7693 | symcode='[ABCDGIRSTW]' ;; | |
7694 | esac | |
d7040cdb | 7695 | |
7357c5b6 AM |
7696 | # Transform an extracted symbol line into a proper C declaration. |
7697 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7698 | # so use this general approach. | |
7699 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7700 | ||
7701 | # Transform an extracted symbol line into symbol name and symbol address | |
7702 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
b214d478 | 7703 | 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'" |
7357c5b6 AM |
7704 | |
7705 | # Handle CRLF in mingw tool chain | |
7706 | opt_cr= | |
7707 | case $build_os in | |
7708 | mingw*) | |
7709 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7710 | ;; | |
7711 | esac | |
d7040cdb | 7712 | |
7357c5b6 AM |
7713 | # Try without a prefix underscore, then with it. |
7714 | for ac_symprfx in "" "_"; do | |
d7040cdb | 7715 | |
7357c5b6 AM |
7716 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7717 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 7718 | |
7357c5b6 AM |
7719 | # Write the raw and C identifiers. |
7720 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7721 | # Fake it for dumpbin and say T for any non-static function | |
7722 | # and D for any global variable. | |
7723 | # Also find C++ and __fastcall symbols from MSVC++, | |
7724 | # which start with @ or ?. | |
7725 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7726 | " {last_section=section; section=\$ 3};"\ | |
7727 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7728 | " \$ 0!~/External *\|/{next};"\ | |
7729 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7730 | " {if(hide[section]) next};"\ | |
7731 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7732 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7733 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7734 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7735 | " ' prfx=^$ac_symprfx" | |
7736 | else | |
7737 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7738 | fi | |
d7040cdb | 7739 | |
7357c5b6 AM |
7740 | # Check to see that the pipe works correctly. |
7741 | pipe_works=no | |
d7040cdb | 7742 | |
7357c5b6 AM |
7743 | rm -f conftest* |
7744 | cat > conftest.$ac_ext <<_LT_EOF | |
7745 | #ifdef __cplusplus | |
7746 | extern "C" { | |
7747 | #endif | |
7748 | char nm_test_var; | |
7749 | void nm_test_func(void); | |
7750 | void nm_test_func(void){} | |
7751 | #ifdef __cplusplus | |
20e95c23 | 7752 | } |
7357c5b6 AM |
7753 | #endif |
7754 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7755 | _LT_EOF | |
7756 | ||
81ecdfbb | 7757 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 7758 | (eval $ac_compile) 2>&5 |
20e95c23 | 7759 | ac_status=$? |
81ecdfbb RW |
7760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7761 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7762 | # Now try to grab the symbols. |
7763 | nlist=conftest.nm | |
3725885a RW |
7764 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7765 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
20e95c23 | 7766 | ac_status=$? |
81ecdfbb RW |
7767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7768 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
7769 | # Try sorting and uniquifying the output. |
7770 | if sort "$nlist" | uniq > "$nlist"T; then | |
7771 | mv -f "$nlist"T "$nlist" | |
7772 | else | |
7773 | rm -f "$nlist"T | |
7774 | fi | |
d7040cdb | 7775 | |
7357c5b6 AM |
7776 | # Make sure that we snagged all the symbols we need. |
7777 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7778 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7779 | cat <<_LT_EOF > conftest.$ac_ext | |
7780 | #ifdef __cplusplus | |
7781 | extern "C" { | |
7782 | #endif | |
ce2cded5 | 7783 | |
7357c5b6 AM |
7784 | _LT_EOF |
7785 | # Now generate the symbol file. | |
7786 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
ce2cded5 | 7787 | |
7357c5b6 | 7788 | cat <<_LT_EOF >> conftest.$ac_ext |
42ecbf5e | 7789 | |
7357c5b6 AM |
7790 | /* The mapping between symbol names and symbols. */ |
7791 | const struct { | |
7792 | const char *name; | |
7793 | void *address; | |
7794 | } | |
7795 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7796 | { | |
7797 | { "@PROGRAM@", (void *) 0 }, | |
7798 | _LT_EOF | |
7799 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7800 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7801 | {0, (void *) 0} | |
7802 | }; | |
d7040cdb | 7803 | |
7357c5b6 AM |
7804 | /* This works around a problem in FreeBSD linker */ |
7805 | #ifdef FREEBSD_WORKAROUND | |
7806 | static const void *lt_preloaded_setup() { | |
7807 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7808 | } | |
ce2cded5 | 7809 | #endif |
42ecbf5e | 7810 | |
7357c5b6 | 7811 | #ifdef __cplusplus |
ce2cded5 | 7812 | } |
7357c5b6 AM |
7813 | #endif |
7814 | _LT_EOF | |
7815 | # Now try linking the two files. | |
7816 | mv conftest.$ac_objext conftstm.$ac_objext | |
7817 | lt_save_LIBS="$LIBS" | |
7818 | lt_save_CFLAGS="$CFLAGS" | |
7819 | LIBS="conftstm.$ac_objext" | |
7820 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 7821 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
7822 | (eval $ac_link) 2>&5 |
7823 | ac_status=$? | |
81ecdfbb RW |
7824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7825 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
7826 | pipe_works=yes |
7827 | fi | |
7828 | LIBS="$lt_save_LIBS" | |
7829 | CFLAGS="$lt_save_CFLAGS" | |
7830 | else | |
7831 | echo "cannot find nm_test_func in $nlist" >&5 | |
7832 | fi | |
7833 | else | |
7834 | echo "cannot find nm_test_var in $nlist" >&5 | |
7835 | fi | |
7836 | else | |
7837 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7838 | fi | |
7839 | else | |
7840 | echo "$progname: failed program was:" >&5 | |
7841 | cat conftest.$ac_ext >&5 | |
7842 | fi | |
b214d478 | 7843 | rm -rf conftest* conftst* |
7357c5b6 AM |
7844 | |
7845 | # Do not use the global_symbol_pipe unless it works. | |
7846 | if test "$pipe_works" = yes; then | |
7847 | break | |
7848 | else | |
7849 | lt_cv_sys_global_symbol_pipe= | |
7850 | fi | |
7851 | done | |
42ecbf5e | 7852 | |
ce2cded5 | 7853 | fi |
7357c5b6 AM |
7854 | |
7855 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7856 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 7857 | fi |
7357c5b6 | 7858 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7860 | $as_echo "failed" >&6; } | |
7357c5b6 | 7861 | else |
81ecdfbb RW |
7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7863 | $as_echo "ok" >&6; } | |
ce2cded5 | 7864 | fi |
e5a52504 | 7865 | |
d7040cdb | 7866 | |
e5a52504 | 7867 | |
d7040cdb | 7868 | |
d7040cdb | 7869 | |
d7040cdb | 7870 | |
d7040cdb | 7871 | |
d7040cdb | 7872 | |
d7040cdb | 7873 | |
d7040cdb | 7874 | |
d7040cdb | 7875 | |
d7040cdb | 7876 | |
7357c5b6 AM |
7877 | |
7878 | ||
7879 | ||
b214d478 SE |
7880 | |
7881 | ||
7882 | ||
7883 | ||
7884 | ||
7357c5b6 AM |
7885 | |
7886 | ||
81ecdfbb RW |
7887 | # Check whether --enable-libtool-lock was given. |
7888 | if test "${enable_libtool_lock+set}" = set; then : | |
7889 | enableval=$enable_libtool_lock; | |
7890 | fi | |
7357c5b6 | 7891 | |
7357c5b6 AM |
7892 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7893 | ||
7894 | # Some flags need to be propagated to the compiler or linker for good | |
7895 | # libtool support. | |
7896 | case $host in | |
7897 | ia64-*-hpux*) | |
7898 | # Find out which ABI we are using. | |
7899 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7900 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7901 | (eval $ac_compile) 2>&5 |
7902 | ac_status=$? | |
81ecdfbb RW |
7903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7904 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7905 | case `/usr/bin/file conftest.$ac_objext` in |
7906 | *ELF-32*) | |
7907 | HPUX_IA64_MODE="32" | |
7908 | ;; | |
7909 | *ELF-64*) | |
7910 | HPUX_IA64_MODE="64" | |
7911 | ;; | |
7912 | esac | |
7913 | fi | |
7914 | rm -rf conftest* | |
7915 | ;; | |
7916 | *-*-irix6*) | |
7917 | # Find out which ABI we are using. | |
3725885a | 7918 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 7919 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7920 | (eval $ac_compile) 2>&5 |
7921 | ac_status=$? | |
81ecdfbb RW |
7922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7923 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7924 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7925 | case `/usr/bin/file conftest.$ac_objext` in | |
7926 | *32-bit*) | |
7927 | LD="${LD-ld} -melf32bsmip" | |
7928 | ;; | |
7929 | *N32*) | |
7930 | LD="${LD-ld} -melf32bmipn32" | |
7931 | ;; | |
7932 | *64-bit*) | |
7933 | LD="${LD-ld} -melf64bmip" | |
7934 | ;; | |
7935 | esac | |
7936 | else | |
7937 | case `/usr/bin/file conftest.$ac_objext` in | |
7938 | *32-bit*) | |
7939 | LD="${LD-ld} -32" | |
7940 | ;; | |
7941 | *N32*) | |
7942 | LD="${LD-ld} -n32" | |
7943 | ;; | |
7944 | *64-bit*) | |
7945 | LD="${LD-ld} -64" | |
7946 | ;; | |
7947 | esac | |
7948 | fi | |
7949 | fi | |
7950 | rm -rf conftest* | |
7951 | ;; | |
7952 | ||
cc9afea3 | 7953 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
7954 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7955 | # Find out which ABI we are using. | |
7956 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7957 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7958 | (eval $ac_compile) 2>&5 |
7959 | ac_status=$? | |
81ecdfbb RW |
7960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7961 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7962 | case `/usr/bin/file conftest.o` in |
7963 | *32-bit*) | |
7964 | case $host in | |
7965 | x86_64-*kfreebsd*-gnu) | |
7966 | LD="${LD-ld} -m elf_i386_fbsd" | |
7967 | ;; | |
7968 | x86_64-*linux*) | |
6d2920c8 L |
7969 | case `/usr/bin/file conftest.o` in |
7970 | *x86-64*) | |
7971 | LD="${LD-ld} -m elf32_x86_64" | |
7972 | ;; | |
7973 | *) | |
7974 | LD="${LD-ld} -m elf_i386" | |
7975 | ;; | |
7976 | esac | |
7357c5b6 | 7977 | ;; |
cc9afea3 AM |
7978 | powerpc64le-*linux*) |
7979 | LD="${LD-ld} -m elf32lppclinux" | |
7980 | ;; | |
7981 | powerpc64-*linux*) | |
7357c5b6 AM |
7982 | LD="${LD-ld} -m elf32ppclinux" |
7983 | ;; | |
7984 | s390x-*linux*) | |
7985 | LD="${LD-ld} -m elf_s390" | |
7986 | ;; | |
7987 | sparc64-*linux*) | |
7988 | LD="${LD-ld} -m elf32_sparc" | |
7989 | ;; | |
7990 | esac | |
7991 | ;; | |
7992 | *64-bit*) | |
7993 | case $host in | |
7994 | x86_64-*kfreebsd*-gnu) | |
7995 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7996 | ;; | |
7997 | x86_64-*linux*) | |
7998 | LD="${LD-ld} -m elf_x86_64" | |
7999 | ;; | |
cc9afea3 AM |
8000 | powerpcle-*linux*) |
8001 | LD="${LD-ld} -m elf64lppc" | |
8002 | ;; | |
8003 | powerpc-*linux*) | |
7357c5b6 AM |
8004 | LD="${LD-ld} -m elf64ppc" |
8005 | ;; | |
8006 | s390*-*linux*|s390*-*tpf*) | |
8007 | LD="${LD-ld} -m elf64_s390" | |
8008 | ;; | |
8009 | sparc*-*linux*) | |
8010 | LD="${LD-ld} -m elf64_sparc" | |
8011 | ;; | |
8012 | esac | |
8013 | ;; | |
8014 | esac | |
8015 | fi | |
8016 | rm -rf conftest* | |
8017 | ;; | |
8018 | ||
8019 | *-*-sco3.2v5*) | |
8020 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8021 | SAVE_CFLAGS="$CFLAGS" | |
8022 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8024 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
8025 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
8026 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8027 | else |
7357c5b6 AM |
8028 | ac_ext=c |
8029 | ac_cpp='$CPP $CPPFLAGS' | |
8030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8033 | ||
81ecdfbb | 8034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 8035 | /* end confdefs.h. */ |
d7040cdb | 8036 | |
7357c5b6 AM |
8037 | int |
8038 | main () | |
8039 | { | |
8040 | ||
8041 | ; | |
8042 | return 0; | |
8043 | } | |
ce2cded5 | 8044 | _ACEOF |
81ecdfbb | 8045 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 8046 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 8047 | else |
81ecdfbb | 8048 | lt_cv_cc_needs_belf=no |
ce2cded5 | 8049 | fi |
81ecdfbb RW |
8050 | rm -f core conftest.err conftest.$ac_objext \ |
8051 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
8052 | ac_ext=c |
8053 | ac_cpp='$CPP $CPPFLAGS' | |
8054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 8057 | |
b214d478 | 8058 | fi |
81ecdfbb RW |
8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8060 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
8061 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8062 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8063 | CFLAGS="$SAVE_CFLAGS" | |
8064 | fi | |
8065 | ;; | |
8066 | sparc*-*solaris*) | |
8067 | # Find out which ABI we are using. | |
8068 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 8069 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
8070 | (eval $ac_compile) 2>&5 |
8071 | ac_status=$? | |
81ecdfbb RW |
8072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8073 | test $ac_status = 0; }; then | |
b214d478 SE |
8074 | case `/usr/bin/file conftest.o` in |
8075 | *64-bit*) | |
8076 | case $lt_cv_prog_gnu_ld in | |
8077 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
8078 | *) | |
8079 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8080 | LD="${LD-ld} -64" | |
8081 | fi | |
8082 | ;; | |
8083 | esac | |
8084 | ;; | |
8085 | esac | |
8086 | fi | |
8087 | rm -rf conftest* | |
8088 | ;; | |
8089 | esac | |
8090 | ||
8091 | need_locks="$enable_libtool_lock" | |
8092 | ||
8093 | ||
8094 | case $host_os in | |
8095 | rhapsody* | darwin*) | |
8096 | if test -n "$ac_tool_prefix"; then | |
8097 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8098 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8100 | $as_echo_n "checking for $ac_word... " >&6; } | |
8101 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
8102 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8103 | else |
8104 | if test -n "$DSYMUTIL"; then | |
8105 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8106 | else | |
8107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8108 | for as_dir in $PATH | |
8109 | do | |
8110 | IFS=$as_save_IFS | |
8111 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8112 | for ac_exec_ext in '' $ac_executable_extensions; do |
8113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8114 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 8115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8116 | break 2 |
8117 | fi | |
8118 | done | |
81ecdfbb RW |
8119 | done |
8120 | IFS=$as_save_IFS | |
b214d478 SE |
8121 | |
8122 | fi | |
8123 | fi | |
8124 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8125 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8127 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 8128 | else |
81ecdfbb RW |
8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8130 | $as_echo "no" >&6; } | |
b214d478 SE |
8131 | fi |
8132 | ||
81ecdfbb | 8133 | |
b214d478 SE |
8134 | fi |
8135 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8136 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8137 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8138 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8140 | $as_echo_n "checking for $ac_word... " >&6; } | |
8141 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
8142 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8143 | else |
8144 | if test -n "$ac_ct_DSYMUTIL"; then | |
8145 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8146 | else | |
8147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8148 | for as_dir in $PATH | |
8149 | do | |
8150 | IFS=$as_save_IFS | |
8151 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8152 | for ac_exec_ext in '' $ac_executable_extensions; do |
8153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8154 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 8155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8156 | break 2 |
8157 | fi | |
8158 | done | |
81ecdfbb RW |
8159 | done |
8160 | IFS=$as_save_IFS | |
b214d478 | 8161 | |
b214d478 SE |
8162 | fi |
8163 | fi | |
8164 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8165 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8167 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 8168 | else |
81ecdfbb RW |
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8170 | $as_echo "no" >&6; } | |
b214d478 SE |
8171 | fi |
8172 | ||
81ecdfbb RW |
8173 | if test "x$ac_ct_DSYMUTIL" = x; then |
8174 | DSYMUTIL=":" | |
8175 | else | |
8176 | case $cross_compiling:$ac_tool_warned in | |
8177 | yes:) | |
8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8180 | ac_tool_warned=yes ;; | |
8181 | esac | |
8182 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8183 | fi | |
b214d478 SE |
8184 | else |
8185 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8186 | fi | |
8187 | ||
8188 | if test -n "$ac_tool_prefix"; then | |
8189 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8190 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8192 | $as_echo_n "checking for $ac_word... " >&6; } | |
8193 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
8194 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8195 | else |
8196 | if test -n "$NMEDIT"; then | |
8197 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8198 | else | |
8199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8200 | for as_dir in $PATH | |
8201 | do | |
8202 | IFS=$as_save_IFS | |
8203 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8204 | for ac_exec_ext in '' $ac_executable_extensions; do |
8205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8206 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 8207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8208 | break 2 |
8209 | fi | |
8210 | done | |
81ecdfbb RW |
8211 | done |
8212 | IFS=$as_save_IFS | |
b214d478 SE |
8213 | |
8214 | fi | |
8215 | fi | |
8216 | NMEDIT=$ac_cv_prog_NMEDIT | |
8217 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8219 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 8220 | else |
81ecdfbb RW |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8222 | $as_echo "no" >&6; } | |
b214d478 SE |
8223 | fi |
8224 | ||
81ecdfbb | 8225 | |
b214d478 SE |
8226 | fi |
8227 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8228 | ac_ct_NMEDIT=$NMEDIT | |
8229 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8230 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8232 | $as_echo_n "checking for $ac_word... " >&6; } | |
8233 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
8234 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8235 | else |
8236 | if test -n "$ac_ct_NMEDIT"; then | |
8237 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8238 | else | |
8239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8240 | for as_dir in $PATH | |
8241 | do | |
8242 | IFS=$as_save_IFS | |
8243 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8244 | for ac_exec_ext in '' $ac_executable_extensions; do |
8245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8246 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 8247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8248 | break 2 |
8249 | fi | |
8250 | done | |
81ecdfbb RW |
8251 | done |
8252 | IFS=$as_save_IFS | |
b214d478 | 8253 | |
b214d478 SE |
8254 | fi |
8255 | fi | |
8256 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8257 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8259 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 8260 | else |
81ecdfbb RW |
8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8262 | $as_echo "no" >&6; } | |
b214d478 SE |
8263 | fi |
8264 | ||
81ecdfbb RW |
8265 | if test "x$ac_ct_NMEDIT" = x; then |
8266 | NMEDIT=":" | |
8267 | else | |
8268 | case $cross_compiling:$ac_tool_warned in | |
8269 | yes:) | |
8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8271 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8272 | ac_tool_warned=yes ;; | |
8273 | esac | |
8274 | NMEDIT=$ac_ct_NMEDIT | |
8275 | fi | |
b214d478 SE |
8276 | else |
8277 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8278 | fi | |
8279 | ||
8280 | if test -n "$ac_tool_prefix"; then | |
8281 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8282 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8284 | $as_echo_n "checking for $ac_word... " >&6; } | |
8285 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8286 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8287 | else |
8288 | if test -n "$LIPO"; then | |
8289 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8290 | else | |
8291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8292 | for as_dir in $PATH | |
8293 | do | |
8294 | IFS=$as_save_IFS | |
8295 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8296 | for ac_exec_ext in '' $ac_executable_extensions; do |
8297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8298 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 8299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8300 | break 2 |
8301 | fi | |
8302 | done | |
81ecdfbb RW |
8303 | done |
8304 | IFS=$as_save_IFS | |
b214d478 SE |
8305 | |
8306 | fi | |
8307 | fi | |
8308 | LIPO=$ac_cv_prog_LIPO | |
8309 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8311 | $as_echo "$LIPO" >&6; } | |
b214d478 | 8312 | else |
81ecdfbb RW |
8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8314 | $as_echo "no" >&6; } | |
b214d478 SE |
8315 | fi |
8316 | ||
81ecdfbb | 8317 | |
b214d478 SE |
8318 | fi |
8319 | if test -z "$ac_cv_prog_LIPO"; then | |
8320 | ac_ct_LIPO=$LIPO | |
8321 | # Extract the first word of "lipo", so it can be a program name with args. | |
8322 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
8323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8324 | $as_echo_n "checking for $ac_word... " >&6; } | |
8325 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
8326 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8327 | else |
8328 | if test -n "$ac_ct_LIPO"; then | |
8329 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8330 | else | |
8331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8332 | for as_dir in $PATH | |
8333 | do | |
8334 | IFS=$as_save_IFS | |
8335 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8336 | for ac_exec_ext in '' $ac_executable_extensions; do |
8337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8338 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 8339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8340 | break 2 |
8341 | fi | |
8342 | done | |
81ecdfbb RW |
8343 | done |
8344 | IFS=$as_save_IFS | |
b214d478 | 8345 | |
b214d478 SE |
8346 | fi |
8347 | fi | |
8348 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8349 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8351 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 8352 | else |
81ecdfbb RW |
8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8354 | $as_echo "no" >&6; } | |
b214d478 SE |
8355 | fi |
8356 | ||
81ecdfbb RW |
8357 | if test "x$ac_ct_LIPO" = x; then |
8358 | LIPO=":" | |
8359 | else | |
8360 | case $cross_compiling:$ac_tool_warned in | |
8361 | yes:) | |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8363 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8364 | ac_tool_warned=yes ;; | |
8365 | esac | |
8366 | LIPO=$ac_ct_LIPO | |
8367 | fi | |
b214d478 SE |
8368 | else |
8369 | LIPO="$ac_cv_prog_LIPO" | |
8370 | fi | |
8371 | ||
8372 | if test -n "$ac_tool_prefix"; then | |
8373 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8374 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8376 | $as_echo_n "checking for $ac_word... " >&6; } | |
8377 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
8378 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8379 | else |
8380 | if test -n "$OTOOL"; then | |
8381 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8382 | else | |
8383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8384 | for as_dir in $PATH | |
8385 | do | |
8386 | IFS=$as_save_IFS | |
8387 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8388 | for ac_exec_ext in '' $ac_executable_extensions; do |
8389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8390 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 8391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8392 | break 2 |
8393 | fi | |
8394 | done | |
81ecdfbb RW |
8395 | done |
8396 | IFS=$as_save_IFS | |
b214d478 SE |
8397 | |
8398 | fi | |
8399 | fi | |
8400 | OTOOL=$ac_cv_prog_OTOOL | |
8401 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
8402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8403 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 8404 | else |
81ecdfbb RW |
8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8406 | $as_echo "no" >&6; } | |
b214d478 SE |
8407 | fi |
8408 | ||
81ecdfbb | 8409 | |
b214d478 SE |
8410 | fi |
8411 | if test -z "$ac_cv_prog_OTOOL"; then | |
8412 | ac_ct_OTOOL=$OTOOL | |
8413 | # Extract the first word of "otool", so it can be a program name with args. | |
8414 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8416 | $as_echo_n "checking for $ac_word... " >&6; } | |
8417 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
8418 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8419 | else |
8420 | if test -n "$ac_ct_OTOOL"; then | |
8421 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8422 | else | |
8423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8424 | for as_dir in $PATH | |
8425 | do | |
8426 | IFS=$as_save_IFS | |
8427 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8428 | for ac_exec_ext in '' $ac_executable_extensions; do |
8429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8430 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 8431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8432 | break 2 |
8433 | fi | |
8434 | done | |
81ecdfbb RW |
8435 | done |
8436 | IFS=$as_save_IFS | |
b214d478 | 8437 | |
b214d478 SE |
8438 | fi |
8439 | fi | |
8440 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8441 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8443 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 8444 | else |
81ecdfbb RW |
8445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8446 | $as_echo "no" >&6; } | |
b214d478 SE |
8447 | fi |
8448 | ||
81ecdfbb RW |
8449 | if test "x$ac_ct_OTOOL" = x; then |
8450 | OTOOL=":" | |
8451 | else | |
8452 | case $cross_compiling:$ac_tool_warned in | |
8453 | yes:) | |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8455 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8456 | ac_tool_warned=yes ;; | |
8457 | esac | |
8458 | OTOOL=$ac_ct_OTOOL | |
8459 | fi | |
b214d478 SE |
8460 | else |
8461 | OTOOL="$ac_cv_prog_OTOOL" | |
8462 | fi | |
8463 | ||
8464 | if test -n "$ac_tool_prefix"; then | |
8465 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8466 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8468 | $as_echo_n "checking for $ac_word... " >&6; } | |
8469 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
8470 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8471 | else |
8472 | if test -n "$OTOOL64"; then | |
8473 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8474 | else | |
8475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8476 | for as_dir in $PATH | |
8477 | do | |
8478 | IFS=$as_save_IFS | |
8479 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8480 | for ac_exec_ext in '' $ac_executable_extensions; do |
8481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8482 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 8483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8484 | break 2 |
8485 | fi | |
8486 | done | |
81ecdfbb RW |
8487 | done |
8488 | IFS=$as_save_IFS | |
b214d478 SE |
8489 | |
8490 | fi | |
8491 | fi | |
8492 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8493 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8495 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 8496 | else |
81ecdfbb RW |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8498 | $as_echo "no" >&6; } | |
b214d478 SE |
8499 | fi |
8500 | ||
81ecdfbb | 8501 | |
b214d478 SE |
8502 | fi |
8503 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8504 | ac_ct_OTOOL64=$OTOOL64 | |
8505 | # Extract the first word of "otool64", so it can be a program name with args. | |
8506 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
8507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8508 | $as_echo_n "checking for $ac_word... " >&6; } | |
8509 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
8510 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8511 | else |
8512 | if test -n "$ac_ct_OTOOL64"; then | |
8513 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8514 | else | |
8515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8516 | for as_dir in $PATH | |
8517 | do | |
8518 | IFS=$as_save_IFS | |
8519 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8520 | for ac_exec_ext in '' $ac_executable_extensions; do |
8521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8522 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 8523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8524 | break 2 |
8525 | fi | |
8526 | done | |
81ecdfbb RW |
8527 | done |
8528 | IFS=$as_save_IFS | |
b214d478 | 8529 | |
b214d478 SE |
8530 | fi |
8531 | fi | |
8532 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8533 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8535 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 8536 | else |
81ecdfbb RW |
8537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8538 | $as_echo "no" >&6; } | |
b214d478 SE |
8539 | fi |
8540 | ||
81ecdfbb RW |
8541 | if test "x$ac_ct_OTOOL64" = x; then |
8542 | OTOOL64=":" | |
8543 | else | |
8544 | case $cross_compiling:$ac_tool_warned in | |
8545 | yes:) | |
8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8547 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8548 | ac_tool_warned=yes ;; | |
8549 | esac | |
8550 | OTOOL64=$ac_ct_OTOOL64 | |
8551 | fi | |
b214d478 SE |
8552 | else |
8553 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8554 | fi | |
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | ||
81ecdfbb RW |
8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8583 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8584 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
8585 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8586 | else |
8587 | lt_cv_apple_cc_single_mod=no | |
8588 | if test -z "${LT_MULTI_MODULE}"; then | |
8589 | # By default we will add the -single_module flag. You can override | |
8590 | # by either setting the environment variable LT_MULTI_MODULE | |
8591 | # non-empty at configure time, or by adding -multi_module to the | |
8592 | # link flags. | |
8593 | rm -rf libconftest.dylib* | |
8594 | echo "int foo(void){return 1;}" > conftest.c | |
8595 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8596 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8597 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8598 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8599 | _lt_result=$? | |
8600 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8601 | lt_cv_apple_cc_single_mod=yes | |
8602 | else | |
8603 | cat conftest.err >&5 | |
8604 | fi | |
8605 | rm -rf libconftest.dylib* | |
8606 | rm -f conftest.* | |
8607 | fi | |
8608 | fi | |
81ecdfbb RW |
8609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8610 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8612 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8613 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
8614 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8615 | else |
8616 | lt_cv_ld_exported_symbols_list=no | |
8617 | save_LDFLAGS=$LDFLAGS | |
8618 | echo "_main" > conftest.sym | |
8619 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 8620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
8621 | /* end confdefs.h. */ |
8622 | ||
8623 | int | |
8624 | main () | |
8625 | { | |
8626 | ||
8627 | ; | |
8628 | return 0; | |
8629 | } | |
8630 | _ACEOF | |
81ecdfbb | 8631 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
8632 | lt_cv_ld_exported_symbols_list=yes |
8633 | else | |
81ecdfbb | 8634 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 8635 | fi |
81ecdfbb RW |
8636 | rm -f core conftest.err conftest.$ac_objext \ |
8637 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
8638 | LDFLAGS="$save_LDFLAGS" |
8639 | ||
8640 | fi | |
81ecdfbb RW |
8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8642 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8644 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8645 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
8646 | $as_echo_n "(cached) " >&6 | |
8647 | else | |
8648 | lt_cv_ld_force_load=no | |
8649 | cat > conftest.c << _LT_EOF | |
8650 | int forced_loaded() { return 2;} | |
8651 | _LT_EOF | |
8652 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8653 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8654 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8655 | $AR cru libconftest.a conftest.o 2>&5 | |
8656 | cat > conftest.c << _LT_EOF | |
8657 | int main() { return 0;} | |
8658 | _LT_EOF | |
8659 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8660 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8661 | _lt_result=$? | |
8662 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8663 | lt_cv_ld_force_load=yes | |
8664 | else | |
8665 | cat conftest.err >&5 | |
8666 | fi | |
8667 | rm -f conftest.err libconftest.a conftest conftest.c | |
8668 | rm -rf conftest.dSYM | |
8669 | ||
8670 | fi | |
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8672 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b214d478 SE |
8673 | case $host_os in |
8674 | rhapsody* | darwin1.[012]) | |
8675 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8676 | darwin1.*) | |
8677 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8678 | darwin*) # darwin 5.x on | |
8679 | # if running on 10.5 or later, the deployment target defaults | |
8680 | # to the OS version, if on x86, and 10.4, the deployment | |
8681 | # target defaults to 10.4. Don't you love it? | |
8682 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8683 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8684 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8685 | 10.[012]*) | |
8686 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8687 | 10.*) | |
8688 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8689 | esac | |
8690 | ;; | |
8691 | esac | |
8692 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8693 | _lt_dar_single_mod='$single_module' | |
8694 | fi | |
8695 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8696 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8697 | else | |
8698 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8699 | fi | |
3725885a | 8700 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
b214d478 SE |
8701 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8702 | else | |
8703 | _lt_dsymutil= | |
8704 | fi | |
8705 | ;; | |
8706 | esac | |
8707 | ||
b214d478 | 8708 | for ac_header in dlfcn.h |
81ecdfbb RW |
8709 | do : |
8710 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8711 | " | |
8712 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
b214d478 | 8713 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 8714 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
8715 | _ACEOF |
8716 | ||
8717 | fi | |
8718 | ||
8719 | done | |
8720 | ||
8721 | ||
8722 | ||
3725885a RW |
8723 | |
8724 | ||
3cb62297 | 8725 | |
b214d478 SE |
8726 | # Set options |
8727 | ||
8728 | ||
8729 | ||
8730 | enable_dlopen=no | |
8731 | ||
8732 | ||
8733 | enable_win32_dll=no | |
8734 | ||
8735 | ||
81ecdfbb RW |
8736 | # Check whether --enable-shared was given. |
8737 | if test "${enable_shared+set}" = set; then : | |
8738 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
8739 | case $enableval in |
8740 | yes) enable_shared=yes ;; | |
8741 | no) enable_shared=no ;; | |
8742 | *) | |
8743 | enable_shared=no | |
8744 | # Look at the argument we got. We use all the common list separators. | |
8745 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8746 | for pkg in $enableval; do | |
8747 | IFS="$lt_save_ifs" | |
8748 | if test "X$pkg" = "X$p"; then | |
8749 | enable_shared=yes | |
8750 | fi | |
8751 | done | |
8752 | IFS="$lt_save_ifs" | |
8753 | ;; | |
8754 | esac | |
8755 | else | |
8756 | enable_shared=yes | |
81ecdfbb | 8757 | fi |
b214d478 SE |
8758 | |
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | ||
8764 | ||
8765 | ||
81ecdfbb RW |
8766 | |
8767 | # Check whether --enable-static was given. | |
8768 | if test "${enable_static+set}" = set; then : | |
8769 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
8770 | case $enableval in |
8771 | yes) enable_static=yes ;; | |
8772 | no) enable_static=no ;; | |
8773 | *) | |
8774 | enable_static=no | |
8775 | # Look at the argument we got. We use all the common list separators. | |
8776 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8777 | for pkg in $enableval; do | |
8778 | IFS="$lt_save_ifs" | |
8779 | if test "X$pkg" = "X$p"; then | |
8780 | enable_static=yes | |
8781 | fi | |
8782 | done | |
8783 | IFS="$lt_save_ifs" | |
8784 | ;; | |
8785 | esac | |
8786 | else | |
8787 | enable_static=yes | |
81ecdfbb | 8788 | fi |
b214d478 SE |
8789 | |
8790 | ||
8791 | ||
8792 | ||
8793 | ||
8794 | ||
8795 | ||
8796 | ||
8797 | ||
81ecdfbb RW |
8798 | |
8799 | # Check whether --with-pic was given. | |
8800 | if test "${with_pic+set}" = set; then : | |
8801 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
8802 | else |
8803 | pic_mode=default | |
81ecdfbb RW |
8804 | fi |
8805 | ||
b214d478 SE |
8806 | |
8807 | test -z "$pic_mode" && pic_mode=default | |
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | ||
8813 | ||
8814 | ||
81ecdfbb RW |
8815 | # Check whether --enable-fast-install was given. |
8816 | if test "${enable_fast_install+set}" = set; then : | |
8817 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
8818 | case $enableval in |
8819 | yes) enable_fast_install=yes ;; | |
8820 | no) enable_fast_install=no ;; | |
8821 | *) | |
8822 | enable_fast_install=no | |
8823 | # Look at the argument we got. We use all the common list separators. | |
8824 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8825 | for pkg in $enableval; do | |
8826 | IFS="$lt_save_ifs" | |
8827 | if test "X$pkg" = "X$p"; then | |
8828 | enable_fast_install=yes | |
8829 | fi | |
8830 | done | |
8831 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
8832 | ;; |
8833 | esac | |
b214d478 SE |
8834 | else |
8835 | enable_fast_install=yes | |
81ecdfbb RW |
8836 | fi |
8837 | ||
ce2cded5 | 8838 | |
ce2cded5 L |
8839 | |
8840 | ||
ce2cded5 | 8841 | |
42ecbf5e | 8842 | |
d7040cdb | 8843 | |
d7040cdb | 8844 | |
d7040cdb | 8845 | |
d7040cdb | 8846 | |
d7040cdb | 8847 | |
ce2cded5 L |
8848 | # This can be used to rebuild libtool when needed |
8849 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 8850 | |
ce2cded5 L |
8851 | # Always use our own libtool. |
8852 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 8853 | |
d7040cdb | 8854 | |
d7040cdb | 8855 | |
d7040cdb | 8856 | |
d7040cdb | 8857 | |
d7040cdb | 8858 | |
d7040cdb | 8859 | |
d7040cdb | 8860 | |
d7040cdb | 8861 | |
d7040cdb | 8862 | |
d7040cdb | 8863 | |
d7040cdb | 8864 | |
d7040cdb | 8865 | |
d7040cdb | 8866 | |
d7040cdb | 8867 | |
d7040cdb | 8868 | |
d7040cdb SE |
8869 | |
8870 | ||
8871 | ||
8872 | ||
8873 | ||
8874 | ||
8875 | ||
3725885a | 8876 | |
d7040cdb SE |
8877 | |
8878 | ||
ce2cded5 | 8879 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
8880 | |
8881 | ||
8882 | ||
8883 | ||
8884 | ||
8885 | ||
d7040cdb SE |
8886 | |
8887 | ||
8888 | ||
8889 | ||
8890 | ||
8891 | ||
8892 | ||
8893 | ||
ce2cded5 L |
8894 | if test -n "${ZSH_VERSION+set}" ; then |
8895 | setopt NO_GLOB_SUBST | |
8896 | fi | |
d7040cdb | 8897 | |
81ecdfbb RW |
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8899 | $as_echo_n "checking for objdir... " >&6; } | |
8900 | if test "${lt_cv_objdir+set}" = set; then : | |
8901 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8902 | else |
8903 | rm -f .libs 2>/dev/null | |
8904 | mkdir .libs 2>/dev/null | |
8905 | if test -d .libs; then | |
8906 | lt_cv_objdir=.libs | |
8907 | else | |
8908 | # MS-DOS does not allow filenames that begin with a dot. | |
8909 | lt_cv_objdir=_libs | |
8910 | fi | |
8911 | rmdir .libs 2>/dev/null | |
8912 | fi | |
81ecdfbb RW |
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8914 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 8915 | objdir=$lt_cv_objdir |
d7040cdb SE |
8916 | |
8917 | ||
8918 | ||
8919 | ||
8920 | ||
ce2cded5 L |
8921 | cat >>confdefs.h <<_ACEOF |
8922 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8923 | _ACEOF | |
d7040cdb SE |
8924 | |
8925 | ||
8926 | ||
8927 | ||
ce2cded5 L |
8928 | case $host_os in |
8929 | aix3*) | |
8930 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8931 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8932 | # vanish in a puff of smoke. | |
8933 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8934 | COLLECT_NAMES= | |
8935 | export COLLECT_NAMES | |
8936 | fi | |
8937 | ;; | |
8938 | esac | |
d7040cdb | 8939 | |
ce2cded5 L |
8940 | # Global variables: |
8941 | ofile=libtool | |
8942 | can_build_shared=yes | |
d7040cdb | 8943 | |
ce2cded5 L |
8944 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8945 | # which needs '.lib'). | |
8946 | libext=a | |
d7040cdb | 8947 | |
ce2cded5 | 8948 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 8949 | |
ce2cded5 L |
8950 | old_CC="$CC" |
8951 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 8952 | |
ce2cded5 L |
8953 | # Set sane defaults for various variables |
8954 | test -z "$CC" && CC=cc | |
8955 | test -z "$LTCC" && LTCC=$CC | |
8956 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8957 | test -z "$LD" && LD=ld | |
8958 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 8959 | |
ce2cded5 L |
8960 | for cc_temp in $compiler""; do |
8961 | case $cc_temp in | |
8962 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8963 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8964 | \-*) ;; | |
8965 | *) break;; | |
8966 | esac | |
8967 | done | |
3725885a | 8968 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d7040cdb SE |
8969 | |
8970 | ||
ce2cded5 L |
8971 | # Only perform the check for file, if the check method requires it |
8972 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8973 | case $deplibs_check_method in | |
8974 | file_magic*) | |
8975 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8977 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8978 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8979 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8980 | else |
8981 | case $MAGIC_CMD in | |
8982 | [\\/*] | ?:[\\/]*) | |
8983 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8984 | ;; | |
8985 | *) | |
8986 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8987 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8988 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8989 | for ac_dir in $ac_dummy; do | |
8990 | IFS="$lt_save_ifs" | |
8991 | test -z "$ac_dir" && ac_dir=. | |
8992 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8993 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8994 | if test -n "$file_magic_test_file"; then | |
8995 | case $deplibs_check_method in | |
8996 | "file_magic "*) | |
8997 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8998 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8999 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9000 | $EGREP "$file_magic_regex" > /dev/null; then | |
9001 | : | |
9002 | else | |
9003 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9004 | |
ce2cded5 L |
9005 | *** Warning: the command libtool uses to detect shared libraries, |
9006 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9007 | *** The result is that libtool may fail to recognize shared libraries | |
9008 | *** as such. This will affect the creation of libtool libraries that | |
9009 | *** depend on shared libraries, but programs linked with such libtool | |
9010 | *** libraries will work regardless of this problem. Nevertheless, you | |
9011 | *** may want to report the problem to your system manager and/or to | |
9012 | *** bug-libtool@gnu.org | |
d7040cdb | 9013 | |
ce2cded5 L |
9014 | _LT_EOF |
9015 | fi ;; | |
9016 | esac | |
9017 | fi | |
9018 | break | |
9019 | fi | |
9020 | done | |
9021 | IFS="$lt_save_ifs" | |
9022 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9023 | ;; | |
9024 | esac | |
9025 | fi | |
d7040cdb | 9026 | |
ce2cded5 L |
9027 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9028 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
9029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9030 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 9031 | else |
81ecdfbb RW |
9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9033 | $as_echo "no" >&6; } | |
ce2cded5 | 9034 | fi |
d7040cdb SE |
9035 | |
9036 | ||
9037 | ||
9038 | ||
9039 | ||
ce2cded5 L |
9040 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
9041 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9043 | $as_echo_n "checking for file... " >&6; } | |
9044 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
9045 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9046 | else |
9047 | case $MAGIC_CMD in | |
9048 | [\\/*] | ?:[\\/]*) | |
9049 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9050 | ;; | |
9051 | *) | |
9052 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9053 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9054 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9055 | for ac_dir in $ac_dummy; do | |
9056 | IFS="$lt_save_ifs" | |
9057 | test -z "$ac_dir" && ac_dir=. | |
9058 | if test -f $ac_dir/file; then | |
9059 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9060 | if test -n "$file_magic_test_file"; then | |
9061 | case $deplibs_check_method in | |
9062 | "file_magic "*) | |
9063 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9064 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9065 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9066 | $EGREP "$file_magic_regex" > /dev/null; then | |
9067 | : | |
9068 | else | |
9069 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9070 | |
ce2cded5 L |
9071 | *** Warning: the command libtool uses to detect shared libraries, |
9072 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9073 | *** The result is that libtool may fail to recognize shared libraries | |
9074 | *** as such. This will affect the creation of libtool libraries that | |
9075 | *** depend on shared libraries, but programs linked with such libtool | |
9076 | *** libraries will work regardless of this problem. Nevertheless, you | |
9077 | *** may want to report the problem to your system manager and/or to | |
9078 | *** bug-libtool@gnu.org | |
d7040cdb | 9079 | |
ce2cded5 L |
9080 | _LT_EOF |
9081 | fi ;; | |
9082 | esac | |
9083 | fi | |
9084 | break | |
9085 | fi | |
9086 | done | |
9087 | IFS="$lt_save_ifs" | |
9088 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9089 | ;; | |
9090 | esac | |
9091 | fi | |
d7040cdb | 9092 | |
ce2cded5 L |
9093 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9094 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9096 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 9097 | else |
81ecdfbb RW |
9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9099 | $as_echo "no" >&6; } | |
ce2cded5 | 9100 | fi |
d7040cdb SE |
9101 | |
9102 | ||
ce2cded5 L |
9103 | else |
9104 | MAGIC_CMD=: | |
9105 | fi | |
9106 | fi | |
d7040cdb | 9107 | |
ce2cded5 L |
9108 | fi |
9109 | ;; | |
9110 | esac | |
d7040cdb | 9111 | |
ce2cded5 | 9112 | # Use C for the default configuration in the libtool script |
d7040cdb | 9113 | |
ce2cded5 L |
9114 | lt_save_CC="$CC" |
9115 | ac_ext=c | |
9116 | ac_cpp='$CPP $CPPFLAGS' | |
9117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
9120 | |
9121 | ||
ce2cded5 L |
9122 | # Source file extension for C test sources. |
9123 | ac_ext=c | |
d7040cdb | 9124 | |
ce2cded5 L |
9125 | # Object file extension for compiled C test sources. |
9126 | objext=o | |
9127 | objext=$objext | |
d7040cdb | 9128 | |
ce2cded5 L |
9129 | # Code to be used in simple compile tests |
9130 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 9131 | |
ce2cded5 L |
9132 | # Code to be used in simple link tests |
9133 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
9134 | |
9135 | ||
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
ce2cded5 L |
9141 | # If no C compiler was specified, use CC. |
9142 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 9143 | |
ce2cded5 L |
9144 | # If no C compiler flags were specified, use CFLAGS. |
9145 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 9146 | |
ce2cded5 L |
9147 | # Allow CC to be a program name with arguments. |
9148 | compiler=$CC | |
d7040cdb | 9149 | |
ce2cded5 L |
9150 | # Save the default compiler, since it gets overwritten when the other |
9151 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9152 | compiler_DEFAULT=$CC | |
d7040cdb | 9153 | |
ce2cded5 L |
9154 | # save warnings/boilerplate of simple test code |
9155 | ac_outfile=conftest.$ac_objext | |
9156 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9157 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9158 | _lt_compiler_boilerplate=`cat conftest.err` | |
9159 | $RM conftest* | |
d7040cdb | 9160 | |
ce2cded5 L |
9161 | ac_outfile=conftest.$ac_objext |
9162 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9163 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9164 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 9165 | $RM -r conftest* |
d7040cdb SE |
9166 | |
9167 | ||
ce2cded5 L |
9168 | ## CAVEAT EMPTOR: |
9169 | ## There is no encapsulation within the following macros, do not change | |
9170 | ## the running order or otherwise move them around unless you know exactly | |
9171 | ## what you are doing... | |
9172 | if test -n "$compiler"; then | |
d7040cdb | 9173 | |
ce2cded5 | 9174 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 9175 | |
ce2cded5 | 9176 | if test "$GCC" = yes; then |
3725885a RW |
9177 | case $cc_basename in |
9178 | nvcc*) | |
9179 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9180 | *) | |
9181 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9182 | esac | |
d7040cdb | 9183 | |
81ecdfbb RW |
9184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9185 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9186 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
9187 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9188 | else |
9189 | lt_cv_prog_compiler_rtti_exceptions=no | |
9190 | ac_outfile=conftest.$ac_objext | |
9191 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9192 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9193 | # Insert the option either (1) after the last *FLAGS variable, or | |
9194 | # (2) before a word containing "conftest.", or (3) at the end. | |
9195 | # Note that $ac_compile itself does not contain backslashes and begins | |
9196 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9197 | # The option is referenced via a variable to avoid confusing sed. | |
9198 | lt_compile=`echo "$ac_compile" | $SED \ | |
9199 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9200 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9201 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9202 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9203 | (eval "$lt_compile" 2>conftest.err) |
9204 | ac_status=$? | |
9205 | cat conftest.err >&5 | |
3725885a | 9206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9207 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9208 | # The compiler can only warn and ignore the option if not recognized | |
9209 | # So say no if there are warnings other than the usual output. | |
3725885a | 9210 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9211 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9212 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9213 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9214 | fi | |
9215 | fi | |
9216 | $RM conftest* | |
d7040cdb | 9217 | |
ce2cded5 | 9218 | fi |
81ecdfbb RW |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9220 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 9221 | |
ce2cded5 L |
9222 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9223 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9224 | else | |
9225 | : | |
9226 | fi | |
d7040cdb | 9227 | |
ce2cded5 | 9228 | fi |
d7040cdb SE |
9229 | |
9230 | ||
9231 | ||
9232 | ||
9233 | ||
9234 | ||
ce2cded5 L |
9235 | lt_prog_compiler_wl= |
9236 | lt_prog_compiler_pic= | |
9237 | lt_prog_compiler_static= | |
d7040cdb | 9238 | |
81ecdfbb RW |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9240 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 9241 | |
ce2cded5 L |
9242 | if test "$GCC" = yes; then |
9243 | lt_prog_compiler_wl='-Wl,' | |
9244 | lt_prog_compiler_static='-static' | |
d7040cdb | 9245 | |
ce2cded5 L |
9246 | case $host_os in |
9247 | aix*) | |
9248 | # All AIX code is PIC. | |
9249 | if test "$host_cpu" = ia64; then | |
9250 | # AIX 5 now supports IA64 processor | |
9251 | lt_prog_compiler_static='-Bstatic' | |
9252 | fi | |
52204357 | 9253 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 9254 | ;; |
d7040cdb | 9255 | |
ce2cded5 | 9256 | amigaos*) |
b214d478 SE |
9257 | case $host_cpu in |
9258 | powerpc) | |
9259 | # see comment about AmigaOS4 .so support | |
9260 | lt_prog_compiler_pic='-fPIC' | |
9261 | ;; | |
9262 | m68k) | |
9263 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9264 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9265 | # like `-m68040'. | |
9266 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9267 | ;; | |
9268 | esac | |
ce2cded5 | 9269 | ;; |
d7040cdb | 9270 | |
ce2cded5 L |
9271 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9272 | # PIC is the default for these OSes. | |
9273 | ;; | |
d7040cdb | 9274 | |
b214d478 | 9275 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
9276 | # This hack is so that the source file can tell whether it is being |
9277 | # built for inclusion in a dll (and should export symbols for example). | |
9278 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9279 | # (--disable-auto-import) libraries | |
9280 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9281 | ;; | |
d7040cdb | 9282 | |
ce2cded5 L |
9283 | darwin* | rhapsody*) |
9284 | # PIC is the default on this platform | |
9285 | # Common symbols not allowed in MH_DYLIB files | |
9286 | lt_prog_compiler_pic='-fno-common' | |
9287 | ;; | |
d7040cdb | 9288 | |
3725885a RW |
9289 | haiku*) |
9290 | # PIC is the default for Haiku. | |
9291 | # The "-static" flag exists, but is broken. | |
9292 | lt_prog_compiler_static= | |
9293 | ;; | |
9294 | ||
ce2cded5 | 9295 | hpux*) |
b214d478 SE |
9296 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9297 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9298 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 9299 | case $host_cpu in |
b214d478 | 9300 | hppa*64*) |
ce2cded5 L |
9301 | # +Z the default |
9302 | ;; | |
9303 | *) | |
9304 | lt_prog_compiler_pic='-fPIC' | |
9305 | ;; | |
9306 | esac | |
9307 | ;; | |
d7040cdb | 9308 | |
ce2cded5 L |
9309 | interix[3-9]*) |
9310 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9311 | # Instead, we relocate shared libraries at runtime. | |
9312 | ;; | |
d7040cdb | 9313 | |
ce2cded5 L |
9314 | msdosdjgpp*) |
9315 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9316 | # on systems that don't support them. | |
9317 | lt_prog_compiler_can_build_shared=no | |
9318 | enable_shared=no | |
9319 | ;; | |
d7040cdb | 9320 | |
ce2cded5 L |
9321 | *nto* | *qnx*) |
9322 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9323 | # it will coredump. | |
9324 | lt_prog_compiler_pic='-fPIC -shared' | |
9325 | ;; | |
d7040cdb | 9326 | |
ce2cded5 L |
9327 | sysv4*MP*) |
9328 | if test -d /usr/nec; then | |
9329 | lt_prog_compiler_pic=-Kconform_pic | |
9330 | fi | |
9331 | ;; | |
d7040cdb | 9332 | |
ce2cded5 L |
9333 | *) |
9334 | lt_prog_compiler_pic='-fPIC' | |
9335 | ;; | |
9336 | esac | |
3725885a RW |
9337 | |
9338 | case $cc_basename in | |
9339 | nvcc*) # Cuda Compiler Driver 2.2 | |
9340 | lt_prog_compiler_wl='-Xlinker ' | |
9341 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9342 | ;; | |
9343 | esac | |
ce2cded5 L |
9344 | else |
9345 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9346 | case $host_os in | |
9347 | aix*) | |
9348 | lt_prog_compiler_wl='-Wl,' | |
9349 | if test "$host_cpu" = ia64; then | |
9350 | # AIX 5 now supports IA64 processor | |
9351 | lt_prog_compiler_static='-Bstatic' | |
9352 | else | |
9353 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9354 | fi | |
9355 | ;; | |
d7040cdb | 9356 | |
b214d478 | 9357 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
9358 | # This hack is so that the source file can tell whether it is being |
9359 | # built for inclusion in a dll (and should export symbols for example). | |
9360 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9361 | ;; | |
d7040cdb | 9362 | |
ce2cded5 L |
9363 | hpux9* | hpux10* | hpux11*) |
9364 | lt_prog_compiler_wl='-Wl,' | |
9365 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9366 | # not for PA HP-UX. | |
9367 | case $host_cpu in | |
9368 | hppa*64*|ia64*) | |
9369 | # +Z the default | |
9370 | ;; | |
9371 | *) | |
9372 | lt_prog_compiler_pic='+Z' | |
9373 | ;; | |
9374 | esac | |
9375 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9376 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9377 | ;; | |
d7040cdb | 9378 | |
ce2cded5 L |
9379 | irix5* | irix6* | nonstopux*) |
9380 | lt_prog_compiler_wl='-Wl,' | |
9381 | # PIC (with -KPIC) is the default. | |
9382 | lt_prog_compiler_static='-non_shared' | |
9383 | ;; | |
d7040cdb | 9384 | |
58e24671 | 9385 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 9386 | case $cc_basename in |
b214d478 SE |
9387 | # old Intel for x86_64 which still supported -KPIC. |
9388 | ecc*) | |
ce2cded5 L |
9389 | lt_prog_compiler_wl='-Wl,' |
9390 | lt_prog_compiler_pic='-KPIC' | |
9391 | lt_prog_compiler_static='-static' | |
9392 | ;; | |
b214d478 SE |
9393 | # icc used to be incompatible with GCC. |
9394 | # ICC 10 doesn't accept -KPIC any more. | |
9395 | icc* | ifort*) | |
9396 | lt_prog_compiler_wl='-Wl,' | |
9397 | lt_prog_compiler_pic='-fPIC' | |
9398 | lt_prog_compiler_static='-static' | |
9399 | ;; | |
9400 | # Lahey Fortran 8.1. | |
9401 | lf95*) | |
9402 | lt_prog_compiler_wl='-Wl,' | |
9403 | lt_prog_compiler_pic='--shared' | |
9404 | lt_prog_compiler_static='--static' | |
9405 | ;; | |
3725885a | 9406 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
9407 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9408 | # which looks to be a dead project) | |
9409 | lt_prog_compiler_wl='-Wl,' | |
9410 | lt_prog_compiler_pic='-fpic' | |
9411 | lt_prog_compiler_static='-Bstatic' | |
9412 | ;; | |
9413 | ccc*) | |
9414 | lt_prog_compiler_wl='-Wl,' | |
9415 | # All Alpha code is PIC. | |
9416 | lt_prog_compiler_static='-non_shared' | |
9417 | ;; | |
3725885a RW |
9418 | xl* | bgxl* | bgf* | mpixl*) |
9419 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
b214d478 SE |
9420 | lt_prog_compiler_wl='-Wl,' |
9421 | lt_prog_compiler_pic='-qpic' | |
9422 | lt_prog_compiler_static='-qstaticlink' | |
9423 | ;; | |
ce2cded5 L |
9424 | *) |
9425 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
9426 | *Sun\ F* | *Sun*Fortran*) |
9427 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
9428 | lt_prog_compiler_pic='-KPIC' |
9429 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 9430 | lt_prog_compiler_wl='' |
ce2cded5 | 9431 | ;; |
3725885a RW |
9432 | *Sun\ C*) |
9433 | # Sun C 5.9 | |
ce2cded5 L |
9434 | lt_prog_compiler_pic='-KPIC' |
9435 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 9436 | lt_prog_compiler_wl='-Wl,' |
ce2cded5 L |
9437 | ;; |
9438 | esac | |
9439 | ;; | |
9440 | esac | |
9441 | ;; | |
d7040cdb | 9442 | |
ce2cded5 L |
9443 | newsos6) |
9444 | lt_prog_compiler_pic='-KPIC' | |
9445 | lt_prog_compiler_static='-Bstatic' | |
9446 | ;; | |
d7040cdb | 9447 | |
ce2cded5 L |
9448 | *nto* | *qnx*) |
9449 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9450 | # it will coredump. | |
9451 | lt_prog_compiler_pic='-fPIC -shared' | |
9452 | ;; | |
d7040cdb | 9453 | |
ce2cded5 L |
9454 | osf3* | osf4* | osf5*) |
9455 | lt_prog_compiler_wl='-Wl,' | |
9456 | # All OSF/1 code is PIC. | |
9457 | lt_prog_compiler_static='-non_shared' | |
9458 | ;; | |
d7040cdb | 9459 | |
ce2cded5 L |
9460 | rdos*) |
9461 | lt_prog_compiler_static='-non_shared' | |
9462 | ;; | |
d7040cdb | 9463 | |
ce2cded5 L |
9464 | solaris*) |
9465 | lt_prog_compiler_pic='-KPIC' | |
9466 | lt_prog_compiler_static='-Bstatic' | |
9467 | case $cc_basename in | |
9468 | f77* | f90* | f95*) | |
9469 | lt_prog_compiler_wl='-Qoption ld ';; | |
9470 | *) | |
9471 | lt_prog_compiler_wl='-Wl,';; | |
9472 | esac | |
9473 | ;; | |
d7040cdb | 9474 | |
ce2cded5 L |
9475 | sunos4*) |
9476 | lt_prog_compiler_wl='-Qoption ld ' | |
9477 | lt_prog_compiler_pic='-PIC' | |
9478 | lt_prog_compiler_static='-Bstatic' | |
9479 | ;; | |
d7040cdb | 9480 | |
ce2cded5 L |
9481 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9482 | lt_prog_compiler_wl='-Wl,' | |
9483 | lt_prog_compiler_pic='-KPIC' | |
9484 | lt_prog_compiler_static='-Bstatic' | |
9485 | ;; | |
d7040cdb | 9486 | |
ce2cded5 L |
9487 | sysv4*MP*) |
9488 | if test -d /usr/nec ;then | |
9489 | lt_prog_compiler_pic='-Kconform_pic' | |
9490 | lt_prog_compiler_static='-Bstatic' | |
9491 | fi | |
9492 | ;; | |
d7040cdb | 9493 | |
ce2cded5 L |
9494 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9495 | lt_prog_compiler_wl='-Wl,' | |
9496 | lt_prog_compiler_pic='-KPIC' | |
9497 | lt_prog_compiler_static='-Bstatic' | |
9498 | ;; | |
d7040cdb | 9499 | |
ce2cded5 L |
9500 | unicos*) |
9501 | lt_prog_compiler_wl='-Wl,' | |
9502 | lt_prog_compiler_can_build_shared=no | |
9503 | ;; | |
d7040cdb | 9504 | |
ce2cded5 L |
9505 | uts4*) |
9506 | lt_prog_compiler_pic='-pic' | |
9507 | lt_prog_compiler_static='-Bstatic' | |
9508 | ;; | |
d7040cdb | 9509 | |
ce2cded5 L |
9510 | *) |
9511 | lt_prog_compiler_can_build_shared=no | |
9512 | ;; | |
9513 | esac | |
9514 | fi | |
d7040cdb | 9515 | |
ce2cded5 L |
9516 | case $host_os in |
9517 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9518 | *djgpp*) | |
9519 | lt_prog_compiler_pic= | |
9520 | ;; | |
9521 | *) | |
9522 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9523 | ;; | |
9524 | esac | |
81ecdfbb RW |
9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
9526 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
9527 | |
9528 | ||
9529 | ||
9530 | ||
9531 | ||
9532 | ||
ce2cded5 L |
9533 | # |
9534 | # Check to make sure the PIC flag actually works. | |
9535 | # | |
9536 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
9538 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9539 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
9540 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 9541 | else |
b214d478 | 9542 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
9543 | ac_outfile=conftest.$ac_objext |
9544 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9545 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9546 | # Insert the option either (1) after the last *FLAGS variable, or | |
9547 | # (2) before a word containing "conftest.", or (3) at the end. | |
9548 | # Note that $ac_compile itself does not contain backslashes and begins | |
9549 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9550 | # The option is referenced via a variable to avoid confusing sed. | |
9551 | lt_compile=`echo "$ac_compile" | $SED \ | |
9552 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9553 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9554 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9555 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9556 | (eval "$lt_compile" 2>conftest.err) |
9557 | ac_status=$? | |
9558 | cat conftest.err >&5 | |
3725885a | 9559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9560 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9561 | # The compiler can only warn and ignore the option if not recognized | |
9562 | # So say no if there are warnings other than the usual output. | |
3725885a | 9563 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9564 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9565 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9566 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
9567 | fi |
9568 | fi | |
9569 | $RM conftest* | |
d7040cdb | 9570 | |
ce2cded5 | 9571 | fi |
81ecdfbb RW |
9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9573 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
ce2cded5 | 9574 | |
b214d478 | 9575 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
9576 | case $lt_prog_compiler_pic in |
9577 | "" | " "*) ;; | |
9578 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9579 | esac | |
9580 | else | |
9581 | lt_prog_compiler_pic= | |
9582 | lt_prog_compiler_can_build_shared=no | |
9583 | fi | |
9584 | ||
9585 | fi | |
d7040cdb SE |
9586 | |
9587 | ||
9588 | ||
9589 | ||
9590 | ||
9591 | ||
ce2cded5 L |
9592 | # |
9593 | # Check to make sure the static flag actually works. | |
9594 | # | |
9595 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9597 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9598 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
9599 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 9600 | else |
b214d478 | 9601 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
9602 | save_LDFLAGS="$LDFLAGS" |
9603 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9604 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9605 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9606 | # The linker can only warn and ignore the option if not recognized | |
9607 | # So say no if there are warnings | |
9608 | if test -s conftest.err; then | |
9609 | # Append any errors to the config.log. | |
9610 | cat conftest.err 1>&5 | |
3725885a | 9611 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
9612 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9613 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9614 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9615 | fi |
9616 | else | |
b214d478 | 9617 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9618 | fi |
9619 | fi | |
b214d478 | 9620 | $RM -r conftest* |
ce2cded5 | 9621 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 9622 | |
ce2cded5 | 9623 | fi |
81ecdfbb RW |
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9625 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 9626 | |
b214d478 | 9627 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
9628 | : |
9629 | else | |
9630 | lt_prog_compiler_static= | |
9631 | fi | |
d7040cdb SE |
9632 | |
9633 | ||
9634 | ||
9635 | ||
9636 | ||
9637 | ||
9638 | ||
81ecdfbb RW |
9639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9640 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9641 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9642 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9643 | else |
9644 | lt_cv_prog_compiler_c_o=no | |
9645 | $RM -r conftest 2>/dev/null | |
9646 | mkdir conftest | |
9647 | cd conftest | |
9648 | mkdir out | |
9649 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9650 | |
ce2cded5 L |
9651 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9652 | # Insert the option either (1) after the last *FLAGS variable, or | |
9653 | # (2) before a word containing "conftest.", or (3) at the end. | |
9654 | # Note that $ac_compile itself does not contain backslashes and begins | |
9655 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9656 | lt_compile=`echo "$ac_compile" | $SED \ | |
9657 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9658 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9659 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9660 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9661 | (eval "$lt_compile" 2>out/conftest.err) |
9662 | ac_status=$? | |
9663 | cat out/conftest.err >&5 | |
3725885a | 9664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9665 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9666 | then | |
9667 | # The compiler can only warn and ignore the option if not recognized | |
9668 | # So say no if there are warnings | |
3725885a | 9669 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9670 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9671 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9672 | lt_cv_prog_compiler_c_o=yes | |
9673 | fi | |
9674 | fi | |
9675 | chmod u+w . 2>&5 | |
9676 | $RM conftest* | |
9677 | # SGI C++ compiler will create directory out/ii_files/ for | |
9678 | # template instantiation | |
9679 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9680 | $RM out/* && rmdir out | |
9681 | cd .. | |
9682 | $RM -r conftest | |
9683 | $RM conftest* | |
d7040cdb | 9684 | |
ce2cded5 | 9685 | fi |
81ecdfbb RW |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9687 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
9688 | |
9689 | ||
9690 | ||
9691 | ||
9692 | ||
9693 | ||
81ecdfbb RW |
9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9695 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9696 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9697 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9698 | else |
9699 | lt_cv_prog_compiler_c_o=no | |
9700 | $RM -r conftest 2>/dev/null | |
9701 | mkdir conftest | |
9702 | cd conftest | |
9703 | mkdir out | |
9704 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9705 | |
ce2cded5 L |
9706 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9707 | # Insert the option either (1) after the last *FLAGS variable, or | |
9708 | # (2) before a word containing "conftest.", or (3) at the end. | |
9709 | # Note that $ac_compile itself does not contain backslashes and begins | |
9710 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9711 | lt_compile=`echo "$ac_compile" | $SED \ | |
9712 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9713 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9714 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9715 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9716 | (eval "$lt_compile" 2>out/conftest.err) |
9717 | ac_status=$? | |
9718 | cat out/conftest.err >&5 | |
3725885a | 9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9720 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9721 | then | |
9722 | # The compiler can only warn and ignore the option if not recognized | |
9723 | # So say no if there are warnings | |
3725885a | 9724 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9725 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9726 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9727 | lt_cv_prog_compiler_c_o=yes | |
9728 | fi | |
9729 | fi | |
9730 | chmod u+w . 2>&5 | |
9731 | $RM conftest* | |
9732 | # SGI C++ compiler will create directory out/ii_files/ for | |
9733 | # template instantiation | |
9734 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9735 | $RM out/* && rmdir out | |
9736 | cd .. | |
9737 | $RM -r conftest | |
9738 | $RM conftest* | |
9739 | ||
9740 | fi | |
81ecdfbb RW |
9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9742 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
9743 | |
9744 | ||
9745 | ||
9746 | ||
9747 | hard_links="nottested" | |
9748 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9749 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9751 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
9752 | hard_links=yes |
9753 | $RM conftest* | |
9754 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9755 | touch conftest.a | |
9756 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9757 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9759 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 9760 | if test "$hard_links" = no; then |
81ecdfbb RW |
9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9762 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 9763 | need_locks=warn |
d7040cdb | 9764 | fi |
d7040cdb | 9765 | else |
ce2cded5 | 9766 | need_locks=no |
d7040cdb | 9767 | fi |
d7040cdb | 9768 | |
d7040cdb | 9769 | |
d7040cdb | 9770 | |
d7040cdb | 9771 | |
d7040cdb | 9772 | |
d7040cdb | 9773 | |
81ecdfbb RW |
9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9775 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 9776 | |
ce2cded5 L |
9777 | runpath_var= |
9778 | allow_undefined_flag= | |
9779 | always_export_symbols=no | |
9780 | archive_cmds= | |
9781 | archive_expsym_cmds= | |
9782 | compiler_needs_object=no | |
9783 | enable_shared_with_static_runtimes=no | |
9784 | export_dynamic_flag_spec= | |
9785 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9786 | hardcode_automatic=no | |
9787 | hardcode_direct=no | |
9788 | hardcode_direct_absolute=no | |
9789 | hardcode_libdir_flag_spec= | |
9790 | hardcode_libdir_flag_spec_ld= | |
9791 | hardcode_libdir_separator= | |
9792 | hardcode_minus_L=no | |
9793 | hardcode_shlibpath_var=unsupported | |
9794 | inherit_rpath=no | |
9795 | link_all_deplibs=unknown | |
9796 | module_cmds= | |
9797 | module_expsym_cmds= | |
9798 | old_archive_from_new_cmds= | |
9799 | old_archive_from_expsyms_cmds= | |
9800 | thread_safe_flag_spec= | |
9801 | whole_archive_flag_spec= | |
9802 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9803 | # included in the symbol list | |
9804 | include_expsyms= | |
9805 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9806 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9807 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9808 | # as well as any symbol that contains `d'. | |
b214d478 | 9809 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
9810 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9811 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9812 | # the symbol is explicitly referenced. Since portable code cannot | |
9813 | # rely on this symbol name, it's probably fine to never include it in | |
9814 | # preloaded symbol tables. | |
b214d478 | 9815 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 9816 | extract_expsyms_cmds= |
d7040cdb | 9817 | |
ce2cded5 | 9818 | case $host_os in |
b214d478 | 9819 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9820 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9821 | # When not using gcc, we currently assume that we are using | |
9822 | # Microsoft Visual C++. | |
9823 | if test "$GCC" != yes; then | |
9824 | with_gnu_ld=no | |
9825 | fi | |
d7040cdb | 9826 | ;; |
ce2cded5 L |
9827 | interix*) |
9828 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9829 | with_gnu_ld=yes | |
9830 | ;; | |
9831 | openbsd*) | |
9832 | with_gnu_ld=no | |
d7040cdb SE |
9833 | ;; |
9834 | esac | |
d7040cdb | 9835 | |
ce2cded5 | 9836 | ld_shlibs=yes |
3725885a RW |
9837 | |
9838 | # On some targets, GNU ld is compatible enough with the native linker | |
9839 | # that we're better off using the native interface for both. | |
9840 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 9841 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
9842 | case $host_os in |
9843 | aix*) | |
9844 | # The AIX port of GNU ld has always aspired to compatibility | |
9845 | # with the native linker. However, as the warning in the GNU ld | |
9846 | # block says, versions before 2.19.5* couldn't really create working | |
9847 | # shared libraries, regardless of the interface used. | |
9848 | case `$LD -v 2>&1` in | |
9849 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9850 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9851 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9852 | *) | |
9853 | lt_use_gnu_ld_interface=yes | |
9854 | ;; | |
9855 | esac | |
9856 | ;; | |
9857 | *) | |
9858 | lt_use_gnu_ld_interface=yes | |
9859 | ;; | |
9860 | esac | |
9861 | fi | |
9862 | ||
9863 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
9864 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9865 | wlarc='${wl}' | |
d7040cdb | 9866 | |
ce2cded5 L |
9867 | # Set some defaults for GNU ld with shared library support. These |
9868 | # are reset later if shared libraries are not supported. Putting them | |
9869 | # here allows them to be overridden if necessary. | |
9870 | runpath_var=LD_RUN_PATH | |
9871 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9872 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9873 | # ancient GNU ld didn't support --whole-archive et. al. | |
9874 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9875 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9876 | else | |
9877 | whole_archive_flag_spec= | |
9878 | fi | |
9879 | supports_anon_versioning=no | |
9880 | case `$LD -v 2>&1` in | |
3725885a | 9881 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
9882 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9883 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9884 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9885 | *\ 2.11.*) ;; # other 2.11 versions | |
9886 | *) supports_anon_versioning=yes ;; | |
9887 | esac | |
d7040cdb | 9888 | |
ce2cded5 L |
9889 | # See if GNU ld supports shared libraries. |
9890 | case $host_os in | |
50e7d84b | 9891 | aix[3-9]*) |
ce2cded5 L |
9892 | # On AIX/PPC, the GNU linker is very broken |
9893 | if test "$host_cpu" != ia64; then | |
9894 | ld_shlibs=no | |
9895 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9896 | |
3725885a | 9897 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
9898 | *** to be unable to reliably create shared libraries on AIX. |
9899 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
9900 | *** really care for shared libraries, you may want to install binutils |
9901 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9902 | *** You will then need to restart the configuration process. | |
d7040cdb | 9903 | |
ce2cded5 L |
9904 | _LT_EOF |
9905 | fi | |
d7040cdb | 9906 | ;; |
d7040cdb | 9907 | |
ce2cded5 | 9908 | amigaos*) |
b214d478 SE |
9909 | case $host_cpu in |
9910 | powerpc) | |
9911 | # see comment about AmigaOS4 .so support | |
9912 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9913 | archive_expsym_cmds='' | |
9914 | ;; | |
9915 | m68k) | |
9916 | 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)' | |
9917 | hardcode_libdir_flag_spec='-L$libdir' | |
9918 | hardcode_minus_L=yes | |
9919 | ;; | |
9920 | esac | |
ce2cded5 | 9921 | ;; |
d7040cdb | 9922 | |
ce2cded5 L |
9923 | beos*) |
9924 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9925 | allow_undefined_flag=unsupported | |
9926 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9927 | # support --undefined. This deserves some investigation. FIXME | |
9928 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9929 | else | |
9930 | ld_shlibs=no | |
9931 | fi | |
9932 | ;; | |
d7040cdb | 9933 | |
b214d478 | 9934 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9935 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9936 | # as there is no search path for DLLs. | |
9937 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 9938 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
9939 | allow_undefined_flag=unsupported |
9940 | always_export_symbols=no | |
9941 | enable_shared_with_static_runtimes=yes | |
9942 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9943 | ||
9944 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9945 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9946 | # If the export-symbols file already is a .def file (1st line | |
9947 | # is EXPORTS), use it as is; otherwise, prepend... | |
9948 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9949 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 9950 | else |
ce2cded5 L |
9951 | echo EXPORTS > $output_objdir/$soname.def; |
9952 | cat $export_symbols >> $output_objdir/$soname.def; | |
9953 | fi~ | |
9954 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9955 | else | |
9956 | ld_shlibs=no | |
9957 | fi | |
9958 | ;; | |
d7040cdb | 9959 | |
3725885a RW |
9960 | haiku*) |
9961 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9962 | link_all_deplibs=yes | |
9963 | ;; | |
9964 | ||
ce2cded5 L |
9965 | interix[3-9]*) |
9966 | hardcode_direct=no | |
9967 | hardcode_shlibpath_var=no | |
9968 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9969 | export_dynamic_flag_spec='${wl}-E' | |
9970 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9971 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9972 | # default) and relocated if they conflict, which is a slow very memory | |
9973 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9974 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9975 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9976 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9977 | 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' | |
9978 | ;; | |
d7040cdb | 9979 | |
58e24671 | 9980 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
9981 | tmp_diet=no |
9982 | if test "$host_os" = linux-dietlibc; then | |
9983 | case $cc_basename in | |
9984 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9985 | esac | |
9986 | fi | |
9987 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9988 | && test "$tmp_diet" = no | |
9989 | then | |
9990 | tmp_addflag= | |
b214d478 | 9991 | tmp_sharedflag='-shared' |
ce2cded5 L |
9992 | case $cc_basename,$host_cpu in |
9993 | pgcc*) # Portland Group C compiler | |
3725885a | 9994 | 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' |
ce2cded5 L |
9995 | tmp_addflag=' $pic_flag' |
9996 | ;; | |
3725885a RW |
9997 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9998 | # Portland Group f77 and f90 compilers | |
9999 | 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' | |
ce2cded5 L |
10000 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10001 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10002 | tmp_addflag=' -i_dynamic' ;; | |
10003 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10004 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10005 | ifc* | ifort*) # Intel Fortran compiler | |
10006 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
10007 | lf95*) # Lahey Fortran 8.1 |
10008 | whole_archive_flag_spec= | |
10009 | tmp_sharedflag='--shared' ;; | |
3725885a | 10010 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
b214d478 SE |
10011 | tmp_sharedflag='-qmkshrobj' |
10012 | tmp_addflag= ;; | |
3725885a RW |
10013 | nvcc*) # Cuda Compiler Driver 2.2 |
10014 | 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' | |
10015 | compiler_needs_object=yes | |
10016 | ;; | |
ce2cded5 L |
10017 | esac |
10018 | case `$CC -V 2>&1 | sed 5q` in | |
10019 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 10020 | 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' |
ce2cded5 L |
10021 | compiler_needs_object=yes |
10022 | tmp_sharedflag='-G' ;; | |
10023 | *Sun\ F*) # Sun Fortran 8.3 | |
10024 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
10025 | esac |
10026 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 10027 | |
ce2cded5 L |
10028 | if test "x$supports_anon_versioning" = xyes; then |
10029 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10030 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10031 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10032 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10033 | fi | |
b214d478 SE |
10034 | |
10035 | case $cc_basename in | |
3725885a | 10036 | xlf* | bgf* | bgxlf* | mpixlf*) |
b214d478 SE |
10037 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10038 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10039 | hardcode_libdir_flag_spec= | |
10040 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10041 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10042 | if test "x$supports_anon_versioning" = xyes; then | |
10043 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10044 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10045 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10046 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10047 | fi | |
10048 | ;; | |
10049 | esac | |
ce2cded5 L |
10050 | else |
10051 | ld_shlibs=no | |
10052 | fi | |
10053 | ;; | |
d7040cdb | 10054 | |
ce2cded5 L |
10055 | netbsd*) |
10056 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10057 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10058 | wlarc= | |
10059 | else | |
10060 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10061 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10062 | fi | |
10063 | ;; | |
10064 | ||
10065 | solaris*) | |
10066 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10067 | ld_shlibs=no | |
10068 | cat <<_LT_EOF 1>&2 | |
10069 | ||
10070 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10071 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10072 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10073 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10074 | *** your PATH or compiler configuration so that the native linker is | |
10075 | *** used, and then restart. | |
10076 | ||
10077 | _LT_EOF | |
10078 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10079 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10080 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10081 | else | |
10082 | ld_shlibs=no | |
10083 | fi | |
10084 | ;; | |
10085 | ||
10086 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10087 | case `$LD -v 2>&1` in | |
10088 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10089 | ld_shlibs=no | |
10090 | cat <<_LT_EOF 1>&2 | |
10091 | ||
10092 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10093 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10094 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10095 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10096 | *** your PATH or compiler configuration so that the native linker is | |
10097 | *** used, and then restart. | |
10098 | ||
10099 | _LT_EOF | |
10100 | ;; | |
10101 | *) | |
10102 | # For security reasons, it is highly recommended that you always | |
10103 | # use absolute paths for naming shared libraries, and exclude the | |
10104 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10105 | # requires that you compile everything twice, which is a pain. | |
10106 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10107 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10108 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10109 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10110 | else | |
10111 | ld_shlibs=no | |
10112 | fi | |
10113 | ;; | |
10114 | esac | |
10115 | ;; | |
10116 | ||
10117 | sunos4*) | |
10118 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10119 | wlarc= | |
10120 | hardcode_direct=yes | |
10121 | hardcode_shlibpath_var=no | |
10122 | ;; | |
10123 | ||
10124 | *) | |
10125 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10126 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10127 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10128 | else | |
10129 | ld_shlibs=no | |
10130 | fi | |
10131 | ;; | |
10132 | esac | |
10133 | ||
10134 | if test "$ld_shlibs" = no; then | |
10135 | runpath_var= | |
10136 | hardcode_libdir_flag_spec= | |
10137 | export_dynamic_flag_spec= | |
10138 | whole_archive_flag_spec= | |
10139 | fi | |
10140 | else | |
10141 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10142 | case $host_os in | |
10143 | aix3*) | |
10144 | allow_undefined_flag=unsupported | |
10145 | always_export_symbols=yes | |
10146 | 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' | |
10147 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10148 | # are no directories specified by -L. | |
10149 | hardcode_minus_L=yes | |
10150 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10151 | # Neither direct hardcoding nor static linking is supported with a | |
10152 | # broken collect2. | |
10153 | hardcode_direct=unsupported | |
10154 | fi | |
10155 | ;; | |
10156 | ||
50e7d84b | 10157 | aix[4-9]*) |
ce2cded5 L |
10158 | if test "$host_cpu" = ia64; then |
10159 | # On IA64, the linker does run time linking by default, so we don't | |
10160 | # have to do anything special. | |
10161 | aix_use_runtimelinking=no | |
10162 | exp_sym_flag='-Bexport' | |
10163 | no_entry_flag="" | |
10164 | else | |
10165 | # If we're using GNU nm, then we don't want the "-C" option. | |
10166 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
10167 | # Also, AIX nm treats weak defined symbols like other global |
10168 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 10169 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 10170 | 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' |
ce2cded5 L |
10171 | else |
10172 | 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' | |
10173 | fi | |
10174 | aix_use_runtimelinking=no | |
10175 | ||
10176 | # Test if we are trying to use run time linking or normal | |
10177 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10178 | # need to do runtime linking. | |
50e7d84b | 10179 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
10180 | for ld_flag in $LDFLAGS; do |
10181 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10182 | aix_use_runtimelinking=yes | |
10183 | break | |
10184 | fi | |
10185 | done | |
10186 | ;; | |
10187 | esac | |
10188 | ||
10189 | exp_sym_flag='-bexport' | |
10190 | no_entry_flag='-bnoentry' | |
10191 | fi | |
10192 | ||
10193 | # When large executables or shared objects are built, AIX ld can | |
10194 | # have problems creating the table of contents. If linking a library | |
10195 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10196 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10197 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10198 | ||
10199 | archive_cmds='' | |
10200 | hardcode_direct=yes | |
10201 | hardcode_direct_absolute=yes | |
10202 | hardcode_libdir_separator=':' | |
10203 | link_all_deplibs=yes | |
10204 | file_list_spec='${wl}-f,' | |
10205 | ||
10206 | if test "$GCC" = yes; then | |
10207 | case $host_os in aix4.[012]|aix4.[012].*) | |
10208 | # We only want to do this on AIX 4.2 and lower, the check | |
10209 | # below for broken collect2 doesn't work under 4.3+ | |
10210 | collect2name=`${CC} -print-prog-name=collect2` | |
10211 | if test -f "$collect2name" && | |
10212 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10213 | then | |
10214 | # We have reworked collect2 | |
10215 | : | |
10216 | else | |
10217 | # We have old collect2 | |
10218 | hardcode_direct=unsupported | |
10219 | # It fails to find uninstalled libraries when the uninstalled | |
10220 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10221 | # to unsupported forces relinking | |
10222 | hardcode_minus_L=yes | |
10223 | hardcode_libdir_flag_spec='-L$libdir' | |
10224 | hardcode_libdir_separator= | |
10225 | fi | |
10226 | ;; | |
10227 | esac | |
10228 | shared_flag='-shared' | |
10229 | if test "$aix_use_runtimelinking" = yes; then | |
10230 | shared_flag="$shared_flag "'${wl}-G' | |
10231 | fi | |
10232 | else | |
10233 | # not using gcc | |
10234 | if test "$host_cpu" = ia64; then | |
10235 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10236 | # chokes on -Wl,-G. The following line is correct: | |
10237 | shared_flag='-G' | |
10238 | else | |
10239 | if test "$aix_use_runtimelinking" = yes; then | |
10240 | shared_flag='${wl}-G' | |
10241 | else | |
10242 | shared_flag='${wl}-bM:SRE' | |
10243 | fi | |
10244 | fi | |
10245 | fi | |
10246 | ||
b214d478 | 10247 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
10248 | # It seems that -bexpall does not export symbols beginning with |
10249 | # underscore (_), so it is better to generate a list of symbols to export. | |
10250 | always_export_symbols=yes | |
10251 | if test "$aix_use_runtimelinking" = yes; then | |
10252 | # Warning - without using the other runtime loading flags (-brtl), | |
10253 | # -berok will link without error, but may produce a broken library. | |
10254 | allow_undefined_flag='-berok' | |
10255 | # Determine the default libpath from the value encoded in an | |
10256 | # empty executable. | |
81ecdfbb | 10257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
10258 | /* end confdefs.h. */ |
10259 | ||
10260 | int | |
10261 | main () | |
10262 | { | |
10263 | ||
10264 | ; | |
10265 | return 0; | |
10266 | } | |
10267 | _ACEOF | |
81ecdfbb | 10268 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 10269 | |
ce2cded5 L |
10270 | lt_aix_libpath_sed=' |
10271 | /Import File Strings/,/^$/ { | |
10272 | /^0/ { | |
10273 | s/^0 *\(.*\)$/\1/ | |
10274 | p | |
10275 | } | |
10276 | }' | |
10277 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10278 | # Check for a 64-bit object if we didn't find anything. | |
10279 | if test -z "$aix_libpath"; then | |
10280 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10281 | fi | |
d7040cdb | 10282 | fi |
81ecdfbb RW |
10283 | rm -f core conftest.err conftest.$ac_objext \ |
10284 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10285 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 10286 | |
ce2cded5 | 10287 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 10288 | 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" |
ce2cded5 L |
10289 | else |
10290 | if test "$host_cpu" = ia64; then | |
10291 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10292 | allow_undefined_flag="-z nodefs" | |
10293 | 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" | |
10294 | else | |
10295 | # Determine the default libpath from the value encoded in an | |
10296 | # empty executable. | |
81ecdfbb | 10297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10298 | /* end confdefs.h. */ |
d7040cdb | 10299 | |
ce2cded5 L |
10300 | int |
10301 | main () | |
10302 | { | |
d7040cdb | 10303 | |
ce2cded5 L |
10304 | ; |
10305 | return 0; | |
10306 | } | |
10307 | _ACEOF | |
81ecdfbb | 10308 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 10309 | |
ce2cded5 L |
10310 | lt_aix_libpath_sed=' |
10311 | /Import File Strings/,/^$/ { | |
10312 | /^0/ { | |
10313 | s/^0 *\(.*\)$/\1/ | |
10314 | p | |
10315 | } | |
10316 | }' | |
10317 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10318 | # Check for a 64-bit object if we didn't find anything. | |
10319 | if test -z "$aix_libpath"; then | |
10320 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10321 | fi | |
ce2cded5 | 10322 | fi |
81ecdfbb RW |
10323 | rm -f core conftest.err conftest.$ac_objext \ |
10324 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 10325 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 10326 | |
ce2cded5 L |
10327 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10328 | # Warning - without using the other run time loading flags, | |
10329 | # -berok will link without error, but may produce a broken library. | |
10330 | no_undefined_flag=' ${wl}-bernotok' | |
10331 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
10332 | if test "$with_gnu_ld" = yes; then |
10333 | # We only use this code for GNU lds that support --whole-archive. | |
10334 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10335 | else | |
10336 | # Exported symbols can be pulled into shared objects from archives | |
10337 | whole_archive_flag_spec='$convenience' | |
10338 | fi | |
ce2cded5 L |
10339 | archive_cmds_need_lc=yes |
10340 | # This is similar to how AIX traditionally builds its shared libraries. | |
10341 | 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' | |
10342 | fi | |
10343 | fi | |
10344 | ;; | |
d7040cdb | 10345 | |
ce2cded5 | 10346 | amigaos*) |
b214d478 SE |
10347 | case $host_cpu in |
10348 | powerpc) | |
10349 | # see comment about AmigaOS4 .so support | |
10350 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10351 | archive_expsym_cmds='' | |
10352 | ;; | |
10353 | m68k) | |
10354 | 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)' | |
10355 | hardcode_libdir_flag_spec='-L$libdir' | |
10356 | hardcode_minus_L=yes | |
10357 | ;; | |
10358 | esac | |
ce2cded5 L |
10359 | ;; |
10360 | ||
10361 | bsdi[45]*) | |
10362 | export_dynamic_flag_spec=-rdynamic | |
10363 | ;; | |
10364 | ||
b214d478 | 10365 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10366 | # When not using gcc, we currently assume that we are using |
10367 | # Microsoft Visual C++. | |
10368 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10369 | # no search path for DLLs. | |
10370 | hardcode_libdir_flag_spec=' ' | |
10371 | allow_undefined_flag=unsupported | |
10372 | # Tell ltmain to make .lib files, not .a files. | |
10373 | libext=lib | |
10374 | # Tell ltmain to make .dll files, not .so files. | |
10375 | shrext_cmds=".dll" | |
10376 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 10377 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
ce2cded5 L |
10378 | # The linker will automatically build a .lib file if we build a DLL. |
10379 | old_archive_from_new_cmds='true' | |
10380 | # FIXME: Should let the user specify the lib program. | |
10381 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10382 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10383 | enable_shared_with_static_runtimes=yes | |
10384 | ;; | |
10385 | ||
10386 | darwin* | rhapsody*) | |
d7040cdb | 10387 | |
b214d478 SE |
10388 | |
10389 | archive_cmds_need_lc=no | |
10390 | hardcode_direct=no | |
10391 | hardcode_automatic=yes | |
10392 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
10393 | if test "$lt_cv_ld_force_load" = "yes"; then |
10394 | 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\"`' | |
10395 | else | |
10396 | whole_archive_flag_spec='' | |
10397 | fi | |
b214d478 SE |
10398 | link_all_deplibs=yes |
10399 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10400 | case $cc_basename in | |
10401 | ifort*) _lt_dar_can_shared=yes ;; | |
10402 | *) _lt_dar_can_shared=$GCC ;; | |
10403 | esac | |
10404 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 10405 | output_verbose_link_cmd=func_echo_all |
b214d478 SE |
10406 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10407 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10408 | 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}" | |
10409 | 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}" | |
10410 | ||
10411 | else | |
10412 | ld_shlibs=no | |
10413 | fi | |
10414 | ||
ce2cded5 | 10415 | ;; |
d7040cdb | 10416 | |
ce2cded5 L |
10417 | dgux*) |
10418 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10419 | hardcode_libdir_flag_spec='-L$libdir' | |
10420 | hardcode_shlibpath_var=no | |
10421 | ;; | |
d7040cdb | 10422 | |
ce2cded5 L |
10423 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10424 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10425 | # does not break anything, and helps significantly (at the cost of a little | |
10426 | # extra space). | |
10427 | freebsd2.2*) | |
10428 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10429 | hardcode_libdir_flag_spec='-R$libdir' | |
10430 | hardcode_direct=yes | |
10431 | hardcode_shlibpath_var=no | |
d7040cdb | 10432 | ;; |
d7040cdb | 10433 | |
ce2cded5 | 10434 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 10435 | freebsd2.*) |
ce2cded5 L |
10436 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10437 | hardcode_direct=yes | |
10438 | hardcode_minus_L=yes | |
10439 | hardcode_shlibpath_var=no | |
10440 | ;; | |
d7040cdb | 10441 | |
ce2cded5 L |
10442 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10443 | freebsd* | dragonfly*) | |
10444 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10445 | hardcode_libdir_flag_spec='-R$libdir' | |
10446 | hardcode_direct=yes | |
10447 | hardcode_shlibpath_var=no | |
10448 | ;; | |
d7040cdb | 10449 | |
ce2cded5 L |
10450 | hpux9*) |
10451 | if test "$GCC" = yes; then | |
10452 | 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' | |
10453 | else | |
10454 | 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' | |
10455 | fi | |
10456 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10457 | hardcode_libdir_separator=: | |
10458 | hardcode_direct=yes | |
d7040cdb | 10459 | |
ce2cded5 L |
10460 | # hardcode_minus_L: Not really in the search PATH, |
10461 | # but as the default location of the library. | |
10462 | hardcode_minus_L=yes | |
10463 | export_dynamic_flag_spec='${wl}-E' | |
10464 | ;; | |
d7040cdb | 10465 | |
ce2cded5 | 10466 | hpux10*) |
3725885a | 10467 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
10468 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10469 | else | |
10470 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10471 | fi | |
10472 | if test "$with_gnu_ld" = no; then | |
10473 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10474 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10475 | hardcode_libdir_separator=: | |
10476 | hardcode_direct=yes | |
10477 | hardcode_direct_absolute=yes | |
10478 | export_dynamic_flag_spec='${wl}-E' | |
10479 | # hardcode_minus_L: Not really in the search PATH, | |
10480 | # but as the default location of the library. | |
10481 | hardcode_minus_L=yes | |
10482 | fi | |
10483 | ;; | |
d7040cdb | 10484 | |
ce2cded5 | 10485 | hpux11*) |
3725885a | 10486 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
10487 | case $host_cpu in |
10488 | hppa*64*) | |
10489 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10490 | ;; | |
10491 | ia64*) | |
b214d478 | 10492 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
10493 | ;; |
10494 | *) | |
10495 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10496 | ;; | |
10497 | esac | |
10498 | else | |
10499 | case $host_cpu in | |
10500 | hppa*64*) | |
10501 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10502 | ;; | |
10503 | ia64*) | |
10504 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10505 | ;; | |
10506 | *) | |
3725885a RW |
10507 | |
10508 | # Older versions of the 11.00 compiler do not understand -b yet | |
10509 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10511 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10512 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
10513 | $as_echo_n "(cached) " >&6 | |
10514 | else | |
10515 | lt_cv_prog_compiler__b=no | |
10516 | save_LDFLAGS="$LDFLAGS" | |
10517 | LDFLAGS="$LDFLAGS -b" | |
10518 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10519 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10520 | # The linker can only warn and ignore the option if not recognized | |
10521 | # So say no if there are warnings | |
10522 | if test -s conftest.err; then | |
10523 | # Append any errors to the config.log. | |
10524 | cat conftest.err 1>&5 | |
10525 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10526 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10527 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10528 | lt_cv_prog_compiler__b=yes | |
10529 | fi | |
10530 | else | |
10531 | lt_cv_prog_compiler__b=yes | |
10532 | fi | |
10533 | fi | |
10534 | $RM -r conftest* | |
10535 | LDFLAGS="$save_LDFLAGS" | |
10536 | ||
10537 | fi | |
10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10539 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10540 | ||
10541 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10542 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10543 | else | |
10544 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10545 | fi | |
10546 | ||
ce2cded5 L |
10547 | ;; |
10548 | esac | |
10549 | fi | |
10550 | if test "$with_gnu_ld" = no; then | |
10551 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10552 | hardcode_libdir_separator=: | |
d7040cdb | 10553 | |
ce2cded5 L |
10554 | case $host_cpu in |
10555 | hppa*64*|ia64*) | |
10556 | hardcode_direct=no | |
10557 | hardcode_shlibpath_var=no | |
10558 | ;; | |
10559 | *) | |
10560 | hardcode_direct=yes | |
10561 | hardcode_direct_absolute=yes | |
10562 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 10563 | |
ce2cded5 L |
10564 | # hardcode_minus_L: Not really in the search PATH, |
10565 | # but as the default location of the library. | |
10566 | hardcode_minus_L=yes | |
10567 | ;; | |
10568 | esac | |
10569 | fi | |
10570 | ;; | |
d7040cdb | 10571 | |
ce2cded5 L |
10572 | irix5* | irix6* | nonstopux*) |
10573 | if test "$GCC" = yes; then | |
3725885a | 10574 | 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' |
ce2cded5 L |
10575 | # Try to use the -exported_symbol ld option, if it does not |
10576 | # work, assume that -exports_file does not work either and | |
10577 | # implicitly export all symbols. | |
10578 | save_LDFLAGS="$LDFLAGS" | |
10579 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
10580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10581 | /* end confdefs.h. */ | |
ce2cded5 L |
10582 | int foo(void) {} |
10583 | _ACEOF | |
81ecdfbb | 10584 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 10585 | 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' |
d7040cdb | 10586 | |
ce2cded5 | 10587 | fi |
81ecdfbb RW |
10588 | rm -f core conftest.err conftest.$ac_objext \ |
10589 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10590 | LDFLAGS="$save_LDFLAGS" |
10591 | else | |
3725885a RW |
10592 | 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' |
10593 | 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' | |
ce2cded5 L |
10594 | fi |
10595 | archive_cmds_need_lc='no' | |
10596 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10597 | hardcode_libdir_separator=: | |
10598 | inherit_rpath=yes | |
10599 | link_all_deplibs=yes | |
10600 | ;; | |
d7040cdb | 10601 | |
ce2cded5 L |
10602 | netbsd*) |
10603 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10604 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10605 | else | |
10606 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10607 | fi | |
10608 | hardcode_libdir_flag_spec='-R$libdir' | |
10609 | hardcode_direct=yes | |
10610 | hardcode_shlibpath_var=no | |
10611 | ;; | |
d7040cdb | 10612 | |
ce2cded5 L |
10613 | newsos6) |
10614 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10615 | hardcode_direct=yes | |
10616 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10617 | hardcode_libdir_separator=: | |
10618 | hardcode_shlibpath_var=no | |
10619 | ;; | |
d7040cdb | 10620 | |
ce2cded5 L |
10621 | *nto* | *qnx*) |
10622 | ;; | |
d7040cdb | 10623 | |
ce2cded5 | 10624 | openbsd*) |
b214d478 SE |
10625 | if test -f /usr/libexec/ld.so; then |
10626 | hardcode_direct=yes | |
10627 | hardcode_shlibpath_var=no | |
10628 | hardcode_direct_absolute=yes | |
10629 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 10630 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 10631 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 10632 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
10633 | export_dynamic_flag_spec='${wl}-E' |
10634 | else | |
10635 | case $host_os in | |
10636 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10637 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10638 | hardcode_libdir_flag_spec='-R$libdir' | |
10639 | ;; | |
10640 | *) | |
10641 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10642 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10643 | ;; | |
10644 | esac | |
10645 | fi | |
10646 | else | |
10647 | ld_shlibs=no | |
ce2cded5 L |
10648 | fi |
10649 | ;; | |
d7040cdb | 10650 | |
ce2cded5 L |
10651 | os2*) |
10652 | hardcode_libdir_flag_spec='-L$libdir' | |
10653 | hardcode_minus_L=yes | |
10654 | allow_undefined_flag=unsupported | |
3725885a | 10655 | 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' |
ce2cded5 L |
10656 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10657 | ;; | |
d7040cdb | 10658 | |
ce2cded5 L |
10659 | osf3*) |
10660 | if test "$GCC" = yes; then | |
10661 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10662 | 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' |
ce2cded5 L |
10663 | else |
10664 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10665 | 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' |
ce2cded5 L |
10666 | fi |
10667 | archive_cmds_need_lc='no' | |
10668 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10669 | hardcode_libdir_separator=: | |
10670 | ;; | |
d7040cdb | 10671 | |
ce2cded5 L |
10672 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10673 | if test "$GCC" = yes; then | |
10674 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10675 | 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' |
ce2cded5 L |
10676 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10677 | else | |
10678 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10679 | 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' |
ce2cded5 | 10680 | 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~ |
3725885a | 10681 | $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' |
d7040cdb | 10682 | |
ce2cded5 L |
10683 | # Both c and cxx compiler support -rpath directly |
10684 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10685 | fi | |
10686 | archive_cmds_need_lc='no' | |
10687 | hardcode_libdir_separator=: | |
10688 | ;; | |
d7040cdb | 10689 | |
ce2cded5 L |
10690 | solaris*) |
10691 | no_undefined_flag=' -z defs' | |
10692 | if test "$GCC" = yes; then | |
10693 | wlarc='${wl}' | |
10694 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10695 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10696 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10697 | else | |
10698 | case `$CC -V 2>&1` in | |
10699 | *"Compilers 5.0"*) | |
10700 | wlarc='' | |
10701 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10702 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10703 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10704 | ;; | |
10705 | *) | |
10706 | wlarc='${wl}' | |
10707 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10708 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10709 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10710 | ;; | |
10711 | esac | |
10712 | fi | |
10713 | hardcode_libdir_flag_spec='-R$libdir' | |
10714 | hardcode_shlibpath_var=no | |
10715 | case $host_os in | |
10716 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10717 | *) | |
10718 | # The compiler driver will combine and reorder linker options, | |
10719 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10720 | # but is careful enough not to reorder. | |
10721 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10722 | if test "$GCC" = yes; then | |
10723 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10724 | else | |
10725 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10726 | fi | |
10727 | ;; | |
10728 | esac | |
10729 | link_all_deplibs=yes | |
10730 | ;; | |
d7040cdb | 10731 | |
ce2cded5 L |
10732 | sunos4*) |
10733 | if test "x$host_vendor" = xsequent; then | |
10734 | # Use $CC to link under sequent, because it throws in some extra .o | |
10735 | # files that make .init and .fini sections work. | |
10736 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10737 | else | |
10738 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10739 | fi | |
10740 | hardcode_libdir_flag_spec='-L$libdir' | |
10741 | hardcode_direct=yes | |
10742 | hardcode_minus_L=yes | |
10743 | hardcode_shlibpath_var=no | |
10744 | ;; | |
d7040cdb | 10745 | |
ce2cded5 L |
10746 | sysv4) |
10747 | case $host_vendor in | |
10748 | sni) | |
10749 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10750 | hardcode_direct=yes # is this really true??? | |
10751 | ;; | |
10752 | siemens) | |
10753 | ## LD is ld it makes a PLAMLIB | |
10754 | ## CC just makes a GrossModule. | |
10755 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10756 | reload_cmds='$CC -r -o $output$reload_objs' | |
10757 | hardcode_direct=no | |
10758 | ;; | |
10759 | motorola) | |
10760 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10761 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10762 | ;; | |
10763 | esac | |
10764 | runpath_var='LD_RUN_PATH' | |
10765 | hardcode_shlibpath_var=no | |
10766 | ;; | |
d7040cdb | 10767 | |
ce2cded5 L |
10768 | sysv4.3*) |
10769 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10770 | hardcode_shlibpath_var=no | |
10771 | export_dynamic_flag_spec='-Bexport' | |
10772 | ;; | |
d7040cdb | 10773 | |
ce2cded5 L |
10774 | sysv4*MP*) |
10775 | if test -d /usr/nec; then | |
10776 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10777 | hardcode_shlibpath_var=no | |
10778 | runpath_var=LD_RUN_PATH | |
10779 | hardcode_runpath_var=yes | |
10780 | ld_shlibs=yes | |
10781 | fi | |
10782 | ;; | |
d7040cdb | 10783 | |
ce2cded5 L |
10784 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10785 | no_undefined_flag='${wl}-z,text' | |
10786 | archive_cmds_need_lc=no | |
10787 | hardcode_shlibpath_var=no | |
10788 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10789 | |
ce2cded5 L |
10790 | if test "$GCC" = yes; then |
10791 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10792 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10793 | else | |
10794 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10795 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10796 | fi | |
10797 | ;; | |
d7040cdb | 10798 | |
ce2cded5 L |
10799 | sysv5* | sco3.2v5* | sco5v6*) |
10800 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10801 | # link with -lc, and that would cause any symbols used from libc to | |
10802 | # always be unresolved, which means just about no library would | |
10803 | # ever link correctly. If we're not using GNU ld we use -z text | |
10804 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10805 | # as -z defs. | |
10806 | no_undefined_flag='${wl}-z,text' | |
10807 | allow_undefined_flag='${wl}-z,nodefs' | |
10808 | archive_cmds_need_lc=no | |
10809 | hardcode_shlibpath_var=no | |
10810 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10811 | hardcode_libdir_separator=':' | |
10812 | link_all_deplibs=yes | |
10813 | export_dynamic_flag_spec='${wl}-Bexport' | |
10814 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10815 | |
ce2cded5 L |
10816 | if test "$GCC" = yes; then |
10817 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10818 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10819 | else | |
10820 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10821 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10822 | fi | |
10823 | ;; | |
d7040cdb | 10824 | |
ce2cded5 L |
10825 | uts4*) |
10826 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10827 | hardcode_libdir_flag_spec='-L$libdir' | |
10828 | hardcode_shlibpath_var=no | |
10829 | ;; | |
d7040cdb | 10830 | |
ce2cded5 L |
10831 | *) |
10832 | ld_shlibs=no | |
10833 | ;; | |
10834 | esac | |
d7040cdb | 10835 | |
ce2cded5 L |
10836 | if test x$host_vendor = xsni; then |
10837 | case $host in | |
10838 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10839 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10840 | ;; | |
10841 | esac | |
10842 | fi | |
10843 | fi | |
d7040cdb | 10844 | |
81ecdfbb RW |
10845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10846 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 10847 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 10848 | |
ce2cded5 | 10849 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
10850 | |
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
ce2cded5 L |
10865 | # |
10866 | # Do we need to explicitly link libc? | |
10867 | # | |
10868 | case "x$archive_cmds_need_lc" in | |
10869 | x|xyes) | |
10870 | # Assume -lc should be added | |
10871 | archive_cmds_need_lc=yes | |
d7040cdb | 10872 | |
ce2cded5 L |
10873 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10874 | case $archive_cmds in | |
10875 | *'~'*) | |
10876 | # FIXME: we may have to deal with multi-command sequences. | |
10877 | ;; | |
10878 | '$CC '*) | |
10879 | # Test whether the compiler implicitly links with -lc since on some | |
10880 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10881 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
10882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10883 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10884 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10885 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10886 | else |
10887 | $RM conftest* | |
10888 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 10889 | |
81ecdfbb | 10890 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
10891 | (eval $ac_compile) 2>&5 |
10892 | ac_status=$? | |
81ecdfbb RW |
10893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10894 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
10895 | soname=conftest |
10896 | lib=conftest | |
10897 | libobjs=conftest.$ac_objext | |
10898 | deplibs= | |
10899 | wl=$lt_prog_compiler_wl | |
10900 | pic_flag=$lt_prog_compiler_pic | |
10901 | compiler_flags=-v | |
10902 | linker_flags=-v | |
10903 | verstring= | |
10904 | output_objdir=. | |
10905 | libname=conftest | |
10906 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10907 | allow_undefined_flag= | |
81ecdfbb | 10908 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
10909 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10910 | ac_status=$? | |
81ecdfbb RW |
10911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10912 | test $ac_status = 0; } | |
39144654 RW |
10913 | then |
10914 | lt_cv_archive_cmds_need_lc=no | |
10915 | else | |
10916 | lt_cv_archive_cmds_need_lc=yes | |
10917 | fi | |
10918 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10919 | else | |
10920 | cat conftest.err 1>&5 | |
10921 | fi | |
10922 | $RM conftest* | |
10923 | ||
10924 | fi | |
81ecdfbb RW |
10925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10926 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 10927 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
10928 | ;; |
10929 | esac | |
10930 | fi | |
10931 | ;; | |
10932 | esac | |
d7040cdb SE |
10933 | |
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | ||
10947 | ||
10948 | ||
10949 | ||
10950 | ||
10951 | ||
10952 | ||
10953 | ||
10954 | ||
10955 | ||
10956 | ||
10957 | ||
10958 | ||
10959 | ||
d7040cdb | 10960 | |
d7040cdb | 10961 | |
d7040cdb SE |
10962 | |
10963 | ||
10964 | ||
10965 | ||
10966 | ||
10967 | ||
d7040cdb | 10968 | |
d7040cdb | 10969 | |
d7040cdb | 10970 | |
d7040cdb | 10971 | |
d7040cdb | 10972 | |
d7040cdb | 10973 | |
d7040cdb | 10974 | |
d7040cdb | 10975 | |
d7040cdb | 10976 | |
d7040cdb | 10977 | |
d7040cdb | 10978 | |
d7040cdb | 10979 | |
d7040cdb | 10980 | |
d7040cdb | 10981 | |
d7040cdb | 10982 | |
d7040cdb | 10983 | |
d7040cdb | 10984 | |
d7040cdb | 10985 | |
d7040cdb | 10986 | |
d7040cdb | 10987 | |
d7040cdb | 10988 | |
d7040cdb | 10989 | |
d7040cdb | 10990 | |
d7040cdb | 10991 | |
d7040cdb | 10992 | |
d7040cdb | 10993 | |
d7040cdb | 10994 | |
d7040cdb | 10995 | |
ce2cded5 L |
10996 | |
10997 | ||
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | ||
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | ||
11061 | ||
11062 | ||
11063 | ||
11064 | ||
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
11071 | ||
11072 | ||
11073 | ||
11074 | ||
11075 | ||
11076 | ||
11077 | ||
11078 | ||
11079 | ||
11080 | ||
11081 | ||
11082 | ||
11083 | ||
11084 | ||
11085 | ||
11086 | ||
11087 | ||
11088 | ||
11089 | ||
81ecdfbb RW |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11091 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
11092 | |
11093 | if test "$GCC" = yes; then | |
ce2cded5 L |
11094 | case $host_os in |
11095 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11096 | *) lt_awk_arg="/^libraries:/" ;; | |
11097 | esac | |
3725885a RW |
11098 | case $host_os in |
11099 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11100 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11101 | esac | |
11102 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11103 | case $lt_search_path_spec in | |
11104 | *\;*) | |
ce2cded5 L |
11105 | # if the path contains ";" then we assume it to be the separator |
11106 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11107 | # assumed that no part of a normal pathname contains ";" but that should | |
11108 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
11109 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11110 | ;; | |
11111 | *) | |
11112 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11113 | ;; | |
11114 | esac | |
ce2cded5 L |
11115 | # Ok, now we have the path, separated by spaces, we can step through it |
11116 | # and add multilib dir if necessary. | |
11117 | lt_tmp_lt_search_path_spec= | |
11118 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11119 | for lt_sys_path in $lt_search_path_spec; do | |
11120 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11121 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11122 | else | |
11123 | test -d "$lt_sys_path" && \ | |
11124 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11125 | fi | |
11126 | done | |
3725885a | 11127 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
11128 | BEGIN {RS=" "; FS="/|\n";} { |
11129 | lt_foo=""; | |
11130 | lt_count=0; | |
11131 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11132 | if ($lt_i != "" && $lt_i != ".") { | |
11133 | if ($lt_i == "..") { | |
11134 | lt_count++; | |
11135 | } else { | |
11136 | if (lt_count == 0) { | |
11137 | lt_foo="/" $lt_i lt_foo; | |
11138 | } else { | |
11139 | lt_count--; | |
11140 | } | |
11141 | } | |
11142 | } | |
11143 | } | |
11144 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11145 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11146 | }'` | |
3725885a RW |
11147 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11148 | # for these hosts. | |
11149 | case $host_os in | |
11150 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11151 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11152 | esac | |
11153 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 11154 | else |
ce2cded5 L |
11155 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11156 | fi | |
11157 | library_names_spec= | |
11158 | libname_spec='lib$name' | |
11159 | soname_spec= | |
11160 | shrext_cmds=".so" | |
11161 | postinstall_cmds= | |
11162 | postuninstall_cmds= | |
11163 | finish_cmds= | |
11164 | finish_eval= | |
11165 | shlibpath_var= | |
11166 | shlibpath_overrides_runpath=unknown | |
11167 | version_type=none | |
11168 | dynamic_linker="$host_os ld.so" | |
11169 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11170 | need_lib_prefix=unknown | |
11171 | hardcode_into_libs=no | |
11172 | ||
11173 | # when you set need_version to no, make sure it does not cause -set_version | |
11174 | # flags to be left without arguments | |
11175 | need_version=unknown | |
11176 | ||
11177 | case $host_os in | |
11178 | aix3*) | |
11179 | version_type=linux | |
11180 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11181 | shlibpath_var=LIBPATH | |
11182 | ||
11183 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11184 | soname_spec='${libname}${release}${shared_ext}$major' | |
11185 | ;; | |
11186 | ||
50e7d84b | 11187 | aix[4-9]*) |
ce2cded5 L |
11188 | version_type=linux |
11189 | need_lib_prefix=no | |
11190 | need_version=no | |
11191 | hardcode_into_libs=yes | |
11192 | if test "$host_cpu" = ia64; then | |
11193 | # AIX 5 supports IA64 | |
11194 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11195 | shlibpath_var=LD_LIBRARY_PATH | |
11196 | else | |
11197 | # With GCC up to 2.95.x, collect2 would create an import file | |
11198 | # for dependence libraries. The import file would start with | |
11199 | # the line `#! .'. This would cause the generated library to | |
11200 | # depend on `.', always an invalid library. This was fixed in | |
11201 | # development snapshots of GCC prior to 3.0. | |
11202 | case $host_os in | |
11203 | aix4 | aix4.[01] | aix4.[01].*) | |
11204 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11205 | echo ' yes ' | |
11206 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11207 | : | |
11208 | else | |
11209 | can_build_shared=no | |
11210 | fi | |
11211 | ;; | |
11212 | esac | |
11213 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11214 | # soname into executable. Probably we can add versioning support to | |
11215 | # collect2, so additional links can be useful in future. | |
11216 | if test "$aix_use_runtimelinking" = yes; then | |
11217 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11218 | # instead of lib<name>.a to let people know that these are not | |
11219 | # typical AIX shared libraries. | |
11220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11221 | else | |
11222 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11223 | # and later when we are not doing run time linking. | |
11224 | library_names_spec='${libname}${release}.a $libname.a' | |
11225 | soname_spec='${libname}${release}${shared_ext}$major' | |
11226 | fi | |
11227 | shlibpath_var=LIBPATH | |
11228 | fi | |
11229 | ;; | |
11230 | ||
11231 | amigaos*) | |
b214d478 SE |
11232 | case $host_cpu in |
11233 | powerpc) | |
11234 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11235 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11237 | ;; | |
11238 | m68k) | |
ce2cded5 L |
11239 | library_names_spec='$libname.ixlibrary $libname.a' |
11240 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 11241 | 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' |
b214d478 SE |
11242 | ;; |
11243 | esac | |
ce2cded5 L |
11244 | ;; |
11245 | ||
11246 | beos*) | |
11247 | library_names_spec='${libname}${shared_ext}' | |
11248 | dynamic_linker="$host_os ld.so" | |
11249 | shlibpath_var=LIBRARY_PATH | |
11250 | ;; | |
11251 | ||
11252 | bsdi[45]*) | |
11253 | version_type=linux | |
11254 | need_version=no | |
11255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11256 | soname_spec='${libname}${release}${shared_ext}$major' | |
11257 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11258 | shlibpath_var=LD_LIBRARY_PATH | |
11259 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11260 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11261 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11262 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11263 | # libtool to hard-code these into programs | |
11264 | ;; | |
11265 | ||
b214d478 | 11266 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11267 | version_type=windows |
11268 | shrext_cmds=".dll" | |
11269 | need_version=no | |
11270 | need_lib_prefix=no | |
11271 | ||
b214d478 SE |
11272 | case $GCC,$host_os in |
11273 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
11274 | library_names_spec='$libname.dll.a' |
11275 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11276 | postinstall_cmds='base_file=`basename \${file}`~ | |
11277 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11278 | dldir=$destdir/`dirname \$dlpath`~ | |
11279 | test -d \$dldir || mkdir -p \$dldir~ | |
11280 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11281 | chmod a+x \$dldir/$dlname~ | |
11282 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11283 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11284 | fi' | |
11285 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11286 | dlpath=$dir/\$dldll~ | |
11287 | $RM \$dlpath' | |
11288 | shlibpath_overrides_runpath=yes | |
11289 | ||
11290 | case $host_os in | |
11291 | cygwin*) | |
11292 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11293 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
11294 | |
11295 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 11296 | ;; |
b214d478 | 11297 | mingw* | cegcc*) |
ce2cded5 L |
11298 | # MinGW DLLs use traditional 'lib' prefix |
11299 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
11300 | ;; |
11301 | pw32*) | |
11302 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11303 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11304 | ;; | |
11305 | esac | |
11306 | ;; | |
11307 | ||
11308 | *) | |
11309 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11310 | ;; | |
11311 | esac | |
11312 | dynamic_linker='Win32 ld.exe' | |
11313 | # FIXME: first we should search . and the directory the executable is in | |
11314 | shlibpath_var=PATH | |
11315 | ;; | |
11316 | ||
11317 | darwin* | rhapsody*) | |
11318 | dynamic_linker="$host_os dyld" | |
11319 | version_type=darwin | |
11320 | need_lib_prefix=no | |
11321 | need_version=no | |
11322 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11323 | soname_spec='${libname}${release}${major}$shared_ext' | |
11324 | shlibpath_overrides_runpath=yes | |
11325 | shlibpath_var=DYLD_LIBRARY_PATH | |
11326 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11327 | ||
11328 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11329 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11330 | ;; | |
11331 | ||
11332 | dgux*) | |
11333 | version_type=linux | |
11334 | need_lib_prefix=no | |
11335 | need_version=no | |
11336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11337 | soname_spec='${libname}${release}${shared_ext}$major' | |
11338 | shlibpath_var=LD_LIBRARY_PATH | |
11339 | ;; | |
11340 | ||
ce2cded5 L |
11341 | freebsd* | dragonfly*) |
11342 | # DragonFly does not have aout. When/if they implement a new | |
11343 | # versioning mechanism, adjust this. | |
11344 | if test -x /usr/bin/objformat; then | |
11345 | objformat=`/usr/bin/objformat` | |
11346 | else | |
11347 | case $host_os in | |
6d2920c8 | 11348 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
11349 | *) objformat=elf ;; |
11350 | esac | |
11351 | fi | |
11352 | version_type=freebsd-$objformat | |
11353 | case $version_type in | |
11354 | freebsd-elf*) | |
11355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11356 | need_version=no | |
11357 | need_lib_prefix=no | |
11358 | ;; | |
11359 | freebsd-*) | |
11360 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11361 | need_version=yes | |
11362 | ;; | |
11363 | esac | |
11364 | shlibpath_var=LD_LIBRARY_PATH | |
11365 | case $host_os in | |
6d2920c8 | 11366 | freebsd2.*) |
ce2cded5 L |
11367 | shlibpath_overrides_runpath=yes |
11368 | ;; | |
11369 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11370 | shlibpath_overrides_runpath=yes | |
11371 | hardcode_into_libs=yes | |
11372 | ;; | |
11373 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11374 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11375 | shlibpath_overrides_runpath=no | |
11376 | hardcode_into_libs=yes | |
11377 | ;; | |
11378 | *) # from 4.6 on, and DragonFly | |
11379 | shlibpath_overrides_runpath=yes | |
11380 | hardcode_into_libs=yes | |
11381 | ;; | |
11382 | esac | |
11383 | ;; | |
11384 | ||
11385 | gnu*) | |
11386 | version_type=linux | |
11387 | need_lib_prefix=no | |
11388 | need_version=no | |
11389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11390 | soname_spec='${libname}${release}${shared_ext}$major' | |
11391 | shlibpath_var=LD_LIBRARY_PATH | |
11392 | hardcode_into_libs=yes | |
11393 | ;; | |
11394 | ||
3725885a RW |
11395 | haiku*) |
11396 | version_type=linux | |
11397 | need_lib_prefix=no | |
11398 | need_version=no | |
11399 | dynamic_linker="$host_os runtime_loader" | |
11400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11401 | soname_spec='${libname}${release}${shared_ext}$major' | |
11402 | shlibpath_var=LIBRARY_PATH | |
11403 | shlibpath_overrides_runpath=yes | |
11404 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11405 | hardcode_into_libs=yes | |
11406 | ;; | |
11407 | ||
ce2cded5 L |
11408 | hpux9* | hpux10* | hpux11*) |
11409 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11410 | # link against other versions. | |
11411 | version_type=sunos | |
11412 | need_lib_prefix=no | |
11413 | need_version=no | |
11414 | case $host_cpu in | |
11415 | ia64*) | |
11416 | shrext_cmds='.so' | |
11417 | hardcode_into_libs=yes | |
11418 | dynamic_linker="$host_os dld.so" | |
11419 | shlibpath_var=LD_LIBRARY_PATH | |
11420 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11421 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11422 | soname_spec='${libname}${release}${shared_ext}$major' | |
11423 | if test "X$HPUX_IA64_MODE" = X32; then | |
11424 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11425 | else | |
11426 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11427 | fi | |
11428 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11429 | ;; | |
11430 | hppa*64*) | |
11431 | shrext_cmds='.sl' | |
11432 | hardcode_into_libs=yes | |
11433 | dynamic_linker="$host_os dld.sl" | |
11434 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11435 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11437 | soname_spec='${libname}${release}${shared_ext}$major' | |
11438 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11439 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11440 | ;; | |
11441 | *) | |
11442 | shrext_cmds='.sl' | |
11443 | dynamic_linker="$host_os dld.sl" | |
11444 | shlibpath_var=SHLIB_PATH | |
11445 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11446 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11447 | soname_spec='${libname}${release}${shared_ext}$major' | |
11448 | ;; | |
11449 | esac | |
3725885a | 11450 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 11451 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
11452 | # or fails outright, so override atomically: |
11453 | install_override_mode=555 | |
ce2cded5 L |
11454 | ;; |
11455 | ||
11456 | interix[3-9]*) | |
11457 | version_type=linux | |
11458 | need_lib_prefix=no | |
11459 | need_version=no | |
11460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11461 | soname_spec='${libname}${release}${shared_ext}$major' | |
11462 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11463 | shlibpath_var=LD_LIBRARY_PATH | |
11464 | shlibpath_overrides_runpath=no | |
11465 | hardcode_into_libs=yes | |
11466 | ;; | |
11467 | ||
11468 | irix5* | irix6* | nonstopux*) | |
11469 | case $host_os in | |
11470 | nonstopux*) version_type=nonstopux ;; | |
11471 | *) | |
11472 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11473 | version_type=linux | |
11474 | else | |
11475 | version_type=irix | |
11476 | fi ;; | |
11477 | esac | |
11478 | need_lib_prefix=no | |
11479 | need_version=no | |
11480 | soname_spec='${libname}${release}${shared_ext}$major' | |
11481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11482 | case $host_os in | |
11483 | irix5* | nonstopux*) | |
11484 | libsuff= shlibsuff= | |
11485 | ;; | |
11486 | *) | |
11487 | case $LD in # libtool.m4 will add one of these switches to LD | |
11488 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11489 | libsuff= shlibsuff= libmagic=32-bit;; | |
11490 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11491 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11492 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11493 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11494 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11495 | esac | |
11496 | ;; | |
11497 | esac | |
11498 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11499 | shlibpath_overrides_runpath=no | |
11500 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11501 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11502 | hardcode_into_libs=yes | |
11503 | ;; | |
11504 | ||
11505 | # No shared lib support for Linux oldld, aout, or coff. | |
11506 | linux*oldld* | linux*aout* | linux*coff*) | |
11507 | dynamic_linker=no | |
11508 | ;; | |
11509 | ||
11510 | # This must be Linux ELF. | |
58e24671 | 11511 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
11512 | version_type=linux |
11513 | need_lib_prefix=no | |
11514 | need_version=no | |
11515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11516 | soname_spec='${libname}${release}${shared_ext}$major' | |
11517 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11518 | shlibpath_var=LD_LIBRARY_PATH | |
11519 | shlibpath_overrides_runpath=no | |
39144654 | 11520 | |
ce2cded5 | 11521 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
11522 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
11523 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
11524 | else |
11525 | lt_cv_shlibpath_overrides_runpath=no | |
11526 | save_LDFLAGS=$LDFLAGS | |
11527 | save_libdir=$libdir | |
11528 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11529 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 11530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11531 | /* end confdefs.h. */ |
11532 | ||
d7040cdb SE |
11533 | int |
11534 | main () | |
11535 | { | |
ce2cded5 | 11536 | |
d7040cdb SE |
11537 | ; |
11538 | return 0; | |
11539 | } | |
11540 | _ACEOF | |
81ecdfbb RW |
11541 | if ac_fn_c_try_link "$LINENO"; then : |
11542 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 11543 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 11544 | fi |
d7040cdb | 11545 | fi |
81ecdfbb RW |
11546 | rm -f core conftest.err conftest.$ac_objext \ |
11547 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
11548 | LDFLAGS=$save_LDFLAGS |
11549 | libdir=$save_libdir | |
11550 | ||
11551 | fi | |
11552 | ||
11553 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 11554 | |
ce2cded5 L |
11555 | # This implies no fast_install, which is unacceptable. |
11556 | # Some rework will be needed to allow for fast_install | |
11557 | # before this can be enabled. | |
11558 | hardcode_into_libs=yes | |
d7040cdb | 11559 | |
ce2cded5 L |
11560 | # Append ld.so.conf contents to the search path |
11561 | if test -f /etc/ld.so.conf; then | |
3725885a | 11562 | 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' ' '` |
ce2cded5 L |
11563 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11564 | fi | |
d7040cdb | 11565 | |
ce2cded5 L |
11566 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11567 | # powerpc, because MkLinux only supported shared libraries with the | |
11568 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11569 | # most powerpc-linux boxes support dynamic linking these days and | |
11570 | # people can always --disable-shared, the test was removed, and we | |
11571 | # assume the GNU/Linux dynamic linker is in use. | |
11572 | dynamic_linker='GNU/Linux ld.so' | |
11573 | ;; | |
d7040cdb | 11574 | |
ce2cded5 L |
11575 | netbsd*) |
11576 | version_type=sunos | |
11577 | need_lib_prefix=no | |
11578 | need_version=no | |
11579 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11581 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11582 | dynamic_linker='NetBSD (a.out) ld.so' | |
11583 | else | |
11584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11585 | soname_spec='${libname}${release}${shared_ext}$major' | |
11586 | dynamic_linker='NetBSD ld.elf_so' | |
11587 | fi | |
11588 | shlibpath_var=LD_LIBRARY_PATH | |
11589 | shlibpath_overrides_runpath=yes | |
11590 | hardcode_into_libs=yes | |
11591 | ;; | |
d7040cdb | 11592 | |
ce2cded5 L |
11593 | newsos6) |
11594 | version_type=linux | |
11595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11596 | shlibpath_var=LD_LIBRARY_PATH | |
11597 | shlibpath_overrides_runpath=yes | |
11598 | ;; | |
d7040cdb | 11599 | |
ce2cded5 L |
11600 | *nto* | *qnx*) |
11601 | version_type=qnx | |
11602 | need_lib_prefix=no | |
11603 | need_version=no | |
11604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11605 | soname_spec='${libname}${release}${shared_ext}$major' | |
11606 | shlibpath_var=LD_LIBRARY_PATH | |
11607 | shlibpath_overrides_runpath=no | |
11608 | hardcode_into_libs=yes | |
11609 | dynamic_linker='ldqnx.so' | |
11610 | ;; | |
d7040cdb | 11611 | |
ce2cded5 L |
11612 | openbsd*) |
11613 | version_type=sunos | |
11614 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11615 | need_lib_prefix=no | |
11616 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11617 | case $host_os in | |
11618 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11619 | *) need_version=no ;; | |
11620 | esac | |
11621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11622 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11623 | shlibpath_var=LD_LIBRARY_PATH | |
11624 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11625 | case $host_os in | |
11626 | openbsd2.[89] | openbsd2.[89].*) | |
11627 | shlibpath_overrides_runpath=no | |
11628 | ;; | |
11629 | *) | |
11630 | shlibpath_overrides_runpath=yes | |
11631 | ;; | |
11632 | esac | |
11633 | else | |
11634 | shlibpath_overrides_runpath=yes | |
11635 | fi | |
11636 | ;; | |
d7040cdb | 11637 | |
ce2cded5 L |
11638 | os2*) |
11639 | libname_spec='$name' | |
11640 | shrext_cmds=".dll" | |
11641 | need_lib_prefix=no | |
11642 | library_names_spec='$libname${shared_ext} $libname.a' | |
11643 | dynamic_linker='OS/2 ld.exe' | |
11644 | shlibpath_var=LIBPATH | |
11645 | ;; | |
d7040cdb | 11646 | |
ce2cded5 L |
11647 | osf3* | osf4* | osf5*) |
11648 | version_type=osf | |
11649 | need_lib_prefix=no | |
11650 | need_version=no | |
11651 | soname_spec='${libname}${release}${shared_ext}$major' | |
11652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11653 | shlibpath_var=LD_LIBRARY_PATH | |
11654 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11655 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11656 | ;; | |
d7040cdb | 11657 | |
ce2cded5 L |
11658 | rdos*) |
11659 | dynamic_linker=no | |
11660 | ;; | |
d7040cdb | 11661 | |
ce2cded5 L |
11662 | solaris*) |
11663 | version_type=linux | |
11664 | need_lib_prefix=no | |
11665 | need_version=no | |
11666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11667 | soname_spec='${libname}${release}${shared_ext}$major' | |
11668 | shlibpath_var=LD_LIBRARY_PATH | |
11669 | shlibpath_overrides_runpath=yes | |
11670 | hardcode_into_libs=yes | |
11671 | # ldd complains unless libraries are executable | |
11672 | postinstall_cmds='chmod +x $lib' | |
11673 | ;; | |
d7040cdb | 11674 | |
ce2cded5 L |
11675 | sunos4*) |
11676 | version_type=sunos | |
11677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11678 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11679 | shlibpath_var=LD_LIBRARY_PATH | |
11680 | shlibpath_overrides_runpath=yes | |
11681 | if test "$with_gnu_ld" = yes; then | |
11682 | need_lib_prefix=no | |
11683 | fi | |
11684 | need_version=yes | |
11685 | ;; | |
d7040cdb | 11686 | |
ce2cded5 L |
11687 | sysv4 | sysv4.3*) |
11688 | version_type=linux | |
11689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11690 | soname_spec='${libname}${release}${shared_ext}$major' | |
11691 | shlibpath_var=LD_LIBRARY_PATH | |
11692 | case $host_vendor in | |
11693 | sni) | |
11694 | shlibpath_overrides_runpath=no | |
11695 | need_lib_prefix=no | |
11696 | runpath_var=LD_RUN_PATH | |
11697 | ;; | |
11698 | siemens) | |
11699 | need_lib_prefix=no | |
11700 | ;; | |
11701 | motorola) | |
11702 | need_lib_prefix=no | |
11703 | need_version=no | |
11704 | shlibpath_overrides_runpath=no | |
11705 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11706 | ;; | |
11707 | esac | |
11708 | ;; | |
d7040cdb | 11709 | |
ce2cded5 L |
11710 | sysv4*MP*) |
11711 | if test -d /usr/nec ;then | |
11712 | version_type=linux | |
11713 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11714 | soname_spec='$libname${shared_ext}.$major' | |
11715 | shlibpath_var=LD_LIBRARY_PATH | |
11716 | fi | |
11717 | ;; | |
d7040cdb | 11718 | |
ce2cded5 L |
11719 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11720 | version_type=freebsd-elf | |
11721 | need_lib_prefix=no | |
11722 | need_version=no | |
11723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11724 | soname_spec='${libname}${release}${shared_ext}$major' | |
11725 | shlibpath_var=LD_LIBRARY_PATH | |
11726 | shlibpath_overrides_runpath=yes | |
11727 | hardcode_into_libs=yes | |
11728 | if test "$with_gnu_ld" = yes; then | |
11729 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11730 | else | |
11731 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11732 | case $host_os in | |
11733 | sco3.2v5*) | |
11734 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11735 | ;; | |
11736 | esac | |
11737 | fi | |
11738 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11739 | ;; | |
d7040cdb | 11740 | |
ce2cded5 L |
11741 | tpf*) |
11742 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11743 | version_type=linux | |
11744 | need_lib_prefix=no | |
11745 | need_version=no | |
b214d478 | 11746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
11747 | shlibpath_var=LD_LIBRARY_PATH |
11748 | shlibpath_overrides_runpath=no | |
11749 | hardcode_into_libs=yes | |
11750 | ;; | |
d7040cdb | 11751 | |
ce2cded5 L |
11752 | uts4*) |
11753 | version_type=linux | |
11754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11755 | soname_spec='${libname}${release}${shared_ext}$major' | |
11756 | shlibpath_var=LD_LIBRARY_PATH | |
11757 | ;; | |
d7040cdb | 11758 | |
ce2cded5 L |
11759 | *) |
11760 | dynamic_linker=no | |
11761 | ;; | |
11762 | esac | |
81ecdfbb RW |
11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11764 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
11765 | test "$dynamic_linker" = no && can_build_shared=no |
11766 | ||
11767 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11768 | if test "$GCC" = yes; then | |
11769 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
11770 | fi |
11771 | ||
b214d478 SE |
11772 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11773 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11774 | fi | |
11775 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11776 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11777 | fi | |
11778 | ||
d7040cdb SE |
11779 | |
11780 | ||
11781 | ||
11782 | ||
11783 | ||
11784 | ||
11785 | ||
11786 | ||
11787 | ||
11788 | ||
11789 | ||
d7040cdb | 11790 | |
d7040cdb | 11791 | |
d7040cdb | 11792 | |
d7040cdb | 11793 | |
d7040cdb SE |
11794 | |
11795 | ||
11796 | ||
11797 | ||
d7040cdb | 11798 | |
d7040cdb SE |
11799 | |
11800 | ||
11801 | ||
11802 | ||
11803 | ||
11804 | ||
11805 | ||
11806 | ||
11807 | ||
11808 | ||
11809 | ||
11810 | ||
11811 | ||
d7040cdb SE |
11812 | |
11813 | ||
11814 | ||
11815 | ||
d7040cdb SE |
11816 | |
11817 | ||
11818 | ||
11819 | ||
d7040cdb | 11820 | |
d7040cdb | 11821 | |
d7040cdb | 11822 | |
d7040cdb | 11823 | |
d7040cdb | 11824 | |
d7040cdb | 11825 | |
d7040cdb | 11826 | |
d7040cdb SE |
11827 | |
11828 | ||
11829 | ||
11830 | ||
11831 | ||
d7040cdb | 11832 | |
d7040cdb | 11833 | |
d7040cdb | 11834 | |
d7040cdb | 11835 | |
d7040cdb | 11836 | |
d7040cdb | 11837 | |
d7040cdb SE |
11838 | |
11839 | ||
11840 | ||
11841 | ||
11842 | ||
d7040cdb SE |
11843 | |
11844 | ||
d7040cdb | 11845 | |
d7040cdb | 11846 | |
d7040cdb | 11847 | |
d7040cdb | 11848 | |
ce2cded5 L |
11849 | |
11850 | ||
11851 | ||
11852 | ||
11853 | ||
11854 | ||
11855 | ||
11856 | ||
11857 | ||
11858 | ||
3725885a RW |
11859 | |
11860 | ||
11861 | ||
11862 | ||
11863 | ||
ce2cded5 L |
11864 | |
11865 | ||
11866 | ||
11867 | ||
11868 | ||
11869 | ||
81ecdfbb RW |
11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11871 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
11872 | hardcode_action= |
11873 | if test -n "$hardcode_libdir_flag_spec" || | |
11874 | test -n "$runpath_var" || | |
11875 | test "X$hardcode_automatic" = "Xyes" ; then | |
11876 | ||
11877 | # We can hardcode non-existent directories. | |
11878 | if test "$hardcode_direct" != no && | |
11879 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11880 | # have to relink, otherwise we might link with an installed library | |
11881 | # when we should be linking with a yet-to-be-installed one | |
11882 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11883 | test "$hardcode_minus_L" != no; then | |
11884 | # Linking always hardcodes the temporary library directory. | |
11885 | hardcode_action=relink | |
11886 | else | |
11887 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11888 | hardcode_action=immediate | |
d7040cdb | 11889 | fi |
d7040cdb | 11890 | else |
ce2cded5 L |
11891 | # We cannot hardcode anything, or else we can only hardcode existing |
11892 | # directories. | |
11893 | hardcode_action=unsupported | |
d7040cdb | 11894 | fi |
81ecdfbb RW |
11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11896 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 11897 | |
ce2cded5 L |
11898 | if test "$hardcode_action" = relink || |
11899 | test "$inherit_rpath" = yes; then | |
11900 | # Fast installation is not supported | |
11901 | enable_fast_install=no | |
11902 | elif test "$shlibpath_overrides_runpath" = yes || | |
11903 | test "$enable_shared" = no; then | |
11904 | # Fast installation is not necessary | |
11905 | enable_fast_install=needless | |
d7040cdb SE |
11906 | fi |
11907 | ||
d7040cdb | 11908 | |
d7040cdb | 11909 | |
d7040cdb | 11910 | |
d7040cdb | 11911 | |
d7040cdb | 11912 | |
ce2cded5 L |
11913 | if test "x$enable_dlopen" != xyes; then |
11914 | enable_dlopen=unknown | |
11915 | enable_dlopen_self=unknown | |
11916 | enable_dlopen_self_static=unknown | |
d7040cdb | 11917 | else |
ce2cded5 L |
11918 | lt_cv_dlopen=no |
11919 | lt_cv_dlopen_libs= | |
d7040cdb | 11920 | |
ce2cded5 L |
11921 | case $host_os in |
11922 | beos*) | |
11923 | lt_cv_dlopen="load_add_on" | |
11924 | lt_cv_dlopen_libs= | |
11925 | lt_cv_dlopen_self=yes | |
11926 | ;; | |
d7040cdb | 11927 | |
b214d478 | 11928 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11929 | lt_cv_dlopen="LoadLibrary" |
11930 | lt_cv_dlopen_libs= | |
11931 | ;; | |
11932 | ||
11933 | cygwin*) | |
11934 | lt_cv_dlopen="dlopen" | |
11935 | lt_cv_dlopen_libs= | |
11936 | ;; | |
11937 | ||
11938 | darwin*) | |
11939 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11941 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11942 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11943 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11944 | else |
ce2cded5 L |
11945 | ac_check_lib_save_LIBS=$LIBS |
11946 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11948 | /* end confdefs.h. */ |
11949 | ||
81ecdfbb RW |
11950 | /* Override any GCC internal prototype to avoid an error. |
11951 | Use char because int might match the return type of a GCC | |
11952 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11953 | #ifdef __cplusplus |
11954 | extern "C" | |
11955 | #endif | |
ce2cded5 L |
11956 | char dlopen (); |
11957 | int | |
11958 | main () | |
11959 | { | |
81ecdfbb | 11960 | return dlopen (); |
ce2cded5 L |
11961 | ; |
11962 | return 0; | |
11963 | } | |
11964 | _ACEOF | |
81ecdfbb | 11965 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11966 | ac_cv_lib_dl_dlopen=yes |
11967 | else | |
81ecdfbb | 11968 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11969 | fi |
81ecdfbb RW |
11970 | rm -f core conftest.err conftest.$ac_objext \ |
11971 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11972 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11973 | fi |
81ecdfbb RW |
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11975 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11976 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11977 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11978 | else |
d7040cdb | 11979 | |
ce2cded5 L |
11980 | lt_cv_dlopen="dyld" |
11981 | lt_cv_dlopen_libs= | |
11982 | lt_cv_dlopen_self=yes | |
11983 | ||
d7040cdb | 11984 | fi |
ce2cded5 L |
11985 | |
11986 | ;; | |
11987 | ||
11988 | *) | |
81ecdfbb RW |
11989 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11990 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
11991 | lt_cv_dlopen="shl_load" |
11992 | else | |
81ecdfbb RW |
11993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11994 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11995 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
11996 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11997 | else |
11998 | ac_check_lib_save_LIBS=$LIBS | |
11999 | LIBS="-ldld $LIBS" | |
81ecdfbb | 12000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 12001 | /* end confdefs.h. */ |
d7040cdb | 12002 | |
81ecdfbb RW |
12003 | /* Override any GCC internal prototype to avoid an error. |
12004 | Use char because int might match the return type of a GCC | |
12005 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
12006 | #ifdef __cplusplus |
12007 | extern "C" | |
12008 | #endif | |
ce2cded5 L |
12009 | char shl_load (); |
12010 | int | |
12011 | main () | |
12012 | { | |
81ecdfbb | 12013 | return shl_load (); |
ce2cded5 L |
12014 | ; |
12015 | return 0; | |
12016 | } | |
12017 | _ACEOF | |
81ecdfbb | 12018 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
12019 | ac_cv_lib_dld_shl_load=yes |
12020 | else | |
81ecdfbb | 12021 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 12022 | fi |
81ecdfbb RW |
12023 | rm -f core conftest.err conftest.$ac_objext \ |
12024 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
12025 | LIBS=$ac_check_lib_save_LIBS |
12026 | fi | |
81ecdfbb RW |
12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12028 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12029 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
b214d478 | 12030 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 12031 | else |
81ecdfbb RW |
12032 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
12033 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
12034 | lt_cv_dlopen="dlopen" |
12035 | else | |
81ecdfbb RW |
12036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12037 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12038 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
12039 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 12040 | else |
ce2cded5 L |
12041 | ac_check_lib_save_LIBS=$LIBS |
12042 | LIBS="-ldl $LIBS" | |
81ecdfbb | 12043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
12044 | /* end confdefs.h. */ |
12045 | ||
81ecdfbb RW |
12046 | /* Override any GCC internal prototype to avoid an error. |
12047 | Use char because int might match the return type of a GCC | |
12048 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
12049 | #ifdef __cplusplus |
12050 | extern "C" | |
12051 | #endif | |
ce2cded5 | 12052 | char dlopen (); |
d7040cdb SE |
12053 | int |
12054 | main () | |
12055 | { | |
81ecdfbb | 12056 | return dlopen (); |
d7040cdb SE |
12057 | ; |
12058 | return 0; | |
12059 | } | |
12060 | _ACEOF | |
81ecdfbb | 12061 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 12062 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 12063 | else |
81ecdfbb | 12064 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 12065 | fi |
81ecdfbb RW |
12066 | rm -f core conftest.err conftest.$ac_objext \ |
12067 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 12068 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 12069 | fi |
81ecdfbb RW |
12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12071 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12072 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 12073 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 12074 | else |
81ecdfbb RW |
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12076 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12077 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
12078 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 12079 | else |
ce2cded5 L |
12080 | ac_check_lib_save_LIBS=$LIBS |
12081 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 12082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 12083 | /* end confdefs.h. */ |
d7040cdb | 12084 | |
81ecdfbb RW |
12085 | /* Override any GCC internal prototype to avoid an error. |
12086 | Use char because int might match the return type of a GCC | |
12087 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
12088 | #ifdef __cplusplus |
12089 | extern "C" | |
12090 | #endif | |
ce2cded5 | 12091 | char dlopen (); |
d7040cdb SE |
12092 | int |
12093 | main () | |
12094 | { | |
81ecdfbb | 12095 | return dlopen (); |
d7040cdb SE |
12096 | ; |
12097 | return 0; | |
12098 | } | |
12099 | _ACEOF | |
81ecdfbb | 12100 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 12101 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 12102 | else |
81ecdfbb | 12103 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 12104 | fi |
81ecdfbb RW |
12105 | rm -f core conftest.err conftest.$ac_objext \ |
12106 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 12107 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 12108 | fi |
81ecdfbb RW |
12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12110 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12111 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
12112 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12113 | else | |
81ecdfbb RW |
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12115 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12116 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
12117 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
12118 | else |
12119 | ac_check_lib_save_LIBS=$LIBS | |
12120 | LIBS="-ldld $LIBS" | |
81ecdfbb | 12121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
12122 | /* end confdefs.h. */ |
12123 | ||
81ecdfbb RW |
12124 | /* Override any GCC internal prototype to avoid an error. |
12125 | Use char because int might match the return type of a GCC | |
12126 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
12127 | #ifdef __cplusplus |
12128 | extern "C" | |
12129 | #endif | |
ce2cded5 | 12130 | char dld_link (); |
d7040cdb SE |
12131 | int |
12132 | main () | |
12133 | { | |
81ecdfbb | 12134 | return dld_link (); |
d7040cdb SE |
12135 | ; |
12136 | return 0; | |
12137 | } | |
12138 | _ACEOF | |
81ecdfbb | 12139 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 12140 | ac_cv_lib_dld_dld_link=yes |
d7040cdb | 12141 | else |
81ecdfbb | 12142 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 12143 | fi |
81ecdfbb RW |
12144 | rm -f core conftest.err conftest.$ac_objext \ |
12145 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
12146 | LIBS=$ac_check_lib_save_LIBS |
12147 | fi | |
81ecdfbb RW |
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12149 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12150 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
b214d478 | 12151 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
12152 | fi |
12153 | ||
12154 | ||
12155 | fi | |
12156 | ||
12157 | ||
12158 | fi | |
12159 | ||
12160 | ||
12161 | fi | |
12162 | ||
12163 | ||
12164 | fi | |
12165 | ||
12166 | ||
12167 | fi | |
12168 | ||
12169 | ;; | |
12170 | esac | |
12171 | ||
12172 | if test "x$lt_cv_dlopen" != xno; then | |
12173 | enable_dlopen=yes | |
12174 | else | |
12175 | enable_dlopen=no | |
12176 | fi | |
12177 | ||
12178 | case $lt_cv_dlopen in | |
12179 | dlopen) | |
12180 | save_CPPFLAGS="$CPPFLAGS" | |
12181 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12182 | ||
12183 | save_LDFLAGS="$LDFLAGS" | |
12184 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12185 | ||
12186 | save_LIBS="$LIBS" | |
12187 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12188 | ||
81ecdfbb RW |
12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12190 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12191 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
12192 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
12193 | else |
12194 | if test "$cross_compiling" = yes; then : | |
12195 | lt_cv_dlopen_self=cross | |
12196 | else | |
12197 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12198 | lt_status=$lt_dlunknown | |
12199 | cat > conftest.$ac_ext <<_LT_EOF | |
2e98a7bd | 12200 | #line 12200 "configure" |
ce2cded5 L |
12201 | #include "confdefs.h" |
12202 | ||
12203 | #if HAVE_DLFCN_H | |
12204 | #include <dlfcn.h> | |
12205 | #endif | |
12206 | ||
12207 | #include <stdio.h> | |
12208 | ||
12209 | #ifdef RTLD_GLOBAL | |
12210 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12211 | #else | |
12212 | # ifdef DL_GLOBAL | |
12213 | # define LT_DLGLOBAL DL_GLOBAL | |
12214 | # else | |
12215 | # define LT_DLGLOBAL 0 | |
12216 | # endif | |
12217 | #endif | |
12218 | ||
12219 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12220 | find out it does not work in some platform. */ | |
12221 | #ifndef LT_DLLAZY_OR_NOW | |
12222 | # ifdef RTLD_LAZY | |
12223 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12224 | # else | |
12225 | # ifdef DL_LAZY | |
12226 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12227 | # else | |
12228 | # ifdef RTLD_NOW | |
12229 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12230 | # else | |
12231 | # ifdef DL_NOW | |
12232 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12233 | # else | |
12234 | # define LT_DLLAZY_OR_NOW 0 | |
12235 | # endif | |
12236 | # endif | |
12237 | # endif | |
12238 | # endif | |
12239 | #endif | |
12240 | ||
3725885a RW |
12241 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12242 | correspondingly for the symbols needed. */ | |
12243 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12244 | void fnord () __attribute__((visibility("default"))); | |
12245 | #endif | |
12246 | ||
12247 | void fnord () { int i=42; } | |
ce2cded5 | 12248 | int main () |
d7040cdb | 12249 | { |
ce2cded5 L |
12250 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12251 | int status = $lt_dlunknown; | |
12252 | ||
12253 | if (self) | |
12254 | { | |
12255 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
12256 | else |
12257 | { | |
12258 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12259 | else puts (dlerror ()); | |
12260 | } | |
ce2cded5 L |
12261 | /* dlclose (self); */ |
12262 | } | |
12263 | else | |
12264 | puts (dlerror ()); | |
12265 | ||
b214d478 | 12266 | return status; |
d7040cdb | 12267 | } |
ce2cded5 | 12268 | _LT_EOF |
81ecdfbb | 12269 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 12270 | (eval $ac_link) 2>&5 |
d7040cdb | 12271 | ac_status=$? |
81ecdfbb RW |
12272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12273 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
12274 | (./conftest; exit; ) >&5 2>/dev/null |
12275 | lt_status=$? | |
12276 | case x$lt_status in | |
12277 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12278 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12279 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12280 | esac | |
12281 | else : | |
12282 | # compilation failed | |
12283 | lt_cv_dlopen_self=no | |
12284 | fi | |
12285 | fi | |
12286 | rm -fr conftest* | |
12287 | ||
12288 | ||
12289 | fi | |
81ecdfbb RW |
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12291 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
12292 | |
12293 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12294 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12296 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12297 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
12298 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
12299 | else |
12300 | if test "$cross_compiling" = yes; then : | |
12301 | lt_cv_dlopen_self_static=cross | |
12302 | else | |
12303 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12304 | lt_status=$lt_dlunknown | |
12305 | cat > conftest.$ac_ext <<_LT_EOF | |
2e98a7bd | 12306 | #line 12306 "configure" |
ce2cded5 L |
12307 | #include "confdefs.h" |
12308 | ||
12309 | #if HAVE_DLFCN_H | |
12310 | #include <dlfcn.h> | |
12311 | #endif | |
12312 | ||
12313 | #include <stdio.h> | |
12314 | ||
12315 | #ifdef RTLD_GLOBAL | |
12316 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12317 | #else | |
12318 | # ifdef DL_GLOBAL | |
12319 | # define LT_DLGLOBAL DL_GLOBAL | |
12320 | # else | |
12321 | # define LT_DLGLOBAL 0 | |
12322 | # endif | |
12323 | #endif | |
12324 | ||
12325 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12326 | find out it does not work in some platform. */ | |
12327 | #ifndef LT_DLLAZY_OR_NOW | |
12328 | # ifdef RTLD_LAZY | |
12329 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12330 | # else | |
12331 | # ifdef DL_LAZY | |
12332 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12333 | # else | |
12334 | # ifdef RTLD_NOW | |
12335 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12336 | # else | |
12337 | # ifdef DL_NOW | |
12338 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12339 | # else | |
12340 | # define LT_DLLAZY_OR_NOW 0 | |
12341 | # endif | |
12342 | # endif | |
12343 | # endif | |
12344 | # endif | |
12345 | #endif | |
12346 | ||
3cb62297 L |
12347 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12348 | correspondingly for the symbols needed. */ | |
12349 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12350 | void fnord () __attribute__((visibility("default"))); | |
12351 | #endif | |
12352 | ||
12353 | void fnord () { int i=42; } | |
12354 | int main () | |
12355 | { | |
12356 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12357 | int status = $lt_dlunknown; | |
12358 | ||
12359 | if (self) | |
12360 | { | |
12361 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12362 | else | |
12363 | { | |
12364 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12365 | else puts (dlerror ()); | |
12366 | } | |
12367 | /* dlclose (self); */ | |
12368 | } | |
12369 | else | |
12370 | puts (dlerror ()); | |
12371 | ||
12372 | return status; | |
12373 | } | |
12374 | _LT_EOF | |
12375 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12376 | (eval $ac_link) 2>&5 | |
12377 | ac_status=$? | |
12378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12379 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12380 | (./conftest; exit; ) >&5 2>/dev/null | |
12381 | lt_status=$? | |
12382 | case x$lt_status in | |
12383 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12384 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12385 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12386 | esac | |
12387 | else : | |
12388 | # compilation failed | |
12389 | lt_cv_dlopen_self_static=no | |
12390 | fi | |
12391 | fi | |
12392 | rm -fr conftest* | |
12393 | ||
12394 | ||
12395 | fi | |
12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12397 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12398 | fi | |
12399 | ||
12400 | CPPFLAGS="$save_CPPFLAGS" | |
12401 | LDFLAGS="$save_LDFLAGS" | |
12402 | LIBS="$save_LIBS" | |
12403 | ;; | |
12404 | esac | |
12405 | ||
12406 | case $lt_cv_dlopen_self in | |
12407 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12408 | *) enable_dlopen_self=unknown ;; | |
12409 | esac | |
12410 | ||
12411 | case $lt_cv_dlopen_self_static in | |
12412 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12413 | *) enable_dlopen_self_static=unknown ;; | |
12414 | esac | |
12415 | fi | |
12416 | ||
12417 | ||
12418 | ||
12419 | ||
12420 | ||
12421 | ||
12422 | ||
12423 | ||
12424 | ||
12425 | ||
12426 | ||
12427 | ||
12428 | ||
12429 | ||
12430 | ||
12431 | ||
12432 | ||
12433 | striplib= | |
12434 | old_striplib= | |
12435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12436 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12437 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12438 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12439 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12441 | $as_echo "yes" >&6; } | |
12442 | else | |
12443 | # FIXME - insert some real tests, host_os isn't really good enough | |
12444 | case $host_os in | |
12445 | darwin*) | |
12446 | if test -n "$STRIP" ; then | |
12447 | striplib="$STRIP -x" | |
12448 | old_striplib="$STRIP -S" | |
12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12450 | $as_echo "yes" >&6; } | |
12451 | else | |
12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12453 | $as_echo "no" >&6; } | |
12454 | fi | |
12455 | ;; | |
12456 | *) | |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12458 | $as_echo "no" >&6; } | |
12459 | ;; | |
12460 | esac | |
12461 | fi | |
12462 | ||
12463 | ||
12464 | ||
12465 | ||
12466 | ||
12467 | ||
12468 | ||
12469 | ||
12470 | ||
12471 | ||
12472 | ||
12473 | ||
12474 | # Report which library types will actually be built | |
12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12476 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12478 | $as_echo "$can_build_shared" >&6; } | |
12479 | ||
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12481 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12482 | test "$can_build_shared" = "no" && enable_shared=no | |
12483 | ||
12484 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12485 | # are all built from PIC. | |
12486 | case $host_os in | |
12487 | aix3*) | |
12488 | test "$enable_shared" = yes && enable_static=no | |
12489 | if test -n "$RANLIB"; then | |
12490 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12491 | postinstall_cmds='$RANLIB $lib' | |
12492 | fi | |
12493 | ;; | |
12494 | ||
12495 | aix[4-9]*) | |
12496 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12497 | test "$enable_shared" = yes && enable_static=no | |
12498 | fi | |
12499 | ;; | |
12500 | esac | |
12501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12502 | $as_echo "$enable_shared" >&6; } | |
12503 | ||
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12505 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12506 | # Make sure either enable_shared or enable_static is yes. | |
12507 | test "$enable_shared" = yes || enable_static=yes | |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12509 | $as_echo "$enable_static" >&6; } | |
12510 | ||
12511 | ||
12512 | ||
12513 | ||
12514 | fi | |
12515 | ac_ext=c | |
12516 | ac_cpp='$CPP $CPPFLAGS' | |
12517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12520 | ||
12521 | CC="$lt_save_CC" | |
12522 | ||
12523 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12524 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12525 | (test "X$CXX" != "Xg++"))) ; then | |
12526 | ac_ext=cpp | |
12527 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12528 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12529 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12530 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12532 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12533 | if test -z "$CXXCPP"; then | |
12534 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
12535 | $as_echo_n "(cached) " >&6 | |
12536 | else | |
12537 | # Double quotes because CXXCPP needs to be expanded | |
12538 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12539 | do | |
12540 | ac_preproc_ok=false | |
12541 | for ac_cxx_preproc_warn_flag in '' yes | |
12542 | do | |
12543 | # Use a header file that comes with gcc, so configuring glibc | |
12544 | # with a fresh cross-compiler works. | |
12545 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12546 | # <limits.h> exists even on freestanding compilers. | |
12547 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12548 | # not just through cpp. "Syntax error" is here to catch this case. | |
12549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12550 | /* end confdefs.h. */ | |
12551 | #ifdef __STDC__ | |
12552 | # include <limits.h> | |
12553 | #else | |
12554 | # include <assert.h> | |
12555 | #endif | |
12556 | Syntax error | |
12557 | _ACEOF | |
12558 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12559 | ||
12560 | else | |
12561 | # Broken: fails on valid input. | |
12562 | continue | |
12563 | fi | |
12564 | rm -f conftest.err conftest.$ac_ext | |
12565 | ||
12566 | # OK, works on sane cases. Now check whether nonexistent headers | |
12567 | # can be detected and how. | |
12568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12569 | /* end confdefs.h. */ | |
12570 | #include <ac_nonexistent.h> | |
12571 | _ACEOF | |
12572 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12573 | # Broken: success on invalid input. | |
12574 | continue | |
12575 | else | |
12576 | # Passes both tests. | |
12577 | ac_preproc_ok=: | |
12578 | break | |
12579 | fi | |
12580 | rm -f conftest.err conftest.$ac_ext | |
12581 | ||
12582 | done | |
12583 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12584 | rm -f conftest.err conftest.$ac_ext | |
12585 | if $ac_preproc_ok; then : | |
12586 | break | |
12587 | fi | |
12588 | ||
12589 | done | |
12590 | ac_cv_prog_CXXCPP=$CXXCPP | |
12591 | ||
12592 | fi | |
12593 | CXXCPP=$ac_cv_prog_CXXCPP | |
12594 | else | |
12595 | ac_cv_prog_CXXCPP=$CXXCPP | |
12596 | fi | |
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12598 | $as_echo "$CXXCPP" >&6; } | |
12599 | ac_preproc_ok=false | |
12600 | for ac_cxx_preproc_warn_flag in '' yes | |
12601 | do | |
12602 | # Use a header file that comes with gcc, so configuring glibc | |
12603 | # with a fresh cross-compiler works. | |
12604 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12605 | # <limits.h> exists even on freestanding compilers. | |
12606 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12607 | # not just through cpp. "Syntax error" is here to catch this case. | |
12608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12609 | /* end confdefs.h. */ | |
12610 | #ifdef __STDC__ | |
12611 | # include <limits.h> | |
12612 | #else | |
12613 | # include <assert.h> | |
12614 | #endif | |
12615 | Syntax error | |
12616 | _ACEOF | |
12617 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12618 | ||
12619 | else | |
12620 | # Broken: fails on valid input. | |
12621 | continue | |
12622 | fi | |
12623 | rm -f conftest.err conftest.$ac_ext | |
12624 | ||
12625 | # OK, works on sane cases. Now check whether nonexistent headers | |
12626 | # can be detected and how. | |
12627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12628 | /* end confdefs.h. */ | |
12629 | #include <ac_nonexistent.h> | |
12630 | _ACEOF | |
12631 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12632 | # Broken: success on invalid input. | |
12633 | continue | |
12634 | else | |
12635 | # Passes both tests. | |
12636 | ac_preproc_ok=: | |
12637 | break | |
12638 | fi | |
12639 | rm -f conftest.err conftest.$ac_ext | |
12640 | ||
12641 | done | |
12642 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12643 | rm -f conftest.err conftest.$ac_ext | |
12644 | if $ac_preproc_ok; then : | |
12645 | ||
12646 | else | |
12647 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12648 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12649 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
12650 | See \`config.log' for more details." "$LINENO" 5; } | |
12651 | fi | |
12652 | ||
12653 | ac_ext=c | |
12654 | ac_cpp='$CPP $CPPFLAGS' | |
12655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12658 | ||
12659 | else | |
12660 | _lt_caught_CXX_error=yes | |
12661 | fi | |
12662 | ||
12663 | ac_ext=cpp | |
12664 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12665 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12666 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12667 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12668 | ||
12669 | archive_cmds_need_lc_CXX=no | |
12670 | allow_undefined_flag_CXX= | |
12671 | always_export_symbols_CXX=no | |
12672 | archive_expsym_cmds_CXX= | |
12673 | compiler_needs_object_CXX=no | |
12674 | export_dynamic_flag_spec_CXX= | |
12675 | hardcode_direct_CXX=no | |
12676 | hardcode_direct_absolute_CXX=no | |
12677 | hardcode_libdir_flag_spec_CXX= | |
12678 | hardcode_libdir_flag_spec_ld_CXX= | |
12679 | hardcode_libdir_separator_CXX= | |
12680 | hardcode_minus_L_CXX=no | |
12681 | hardcode_shlibpath_var_CXX=unsupported | |
12682 | hardcode_automatic_CXX=no | |
12683 | inherit_rpath_CXX=no | |
12684 | module_cmds_CXX= | |
12685 | module_expsym_cmds_CXX= | |
12686 | link_all_deplibs_CXX=unknown | |
12687 | old_archive_cmds_CXX=$old_archive_cmds | |
12688 | reload_flag_CXX=$reload_flag | |
12689 | reload_cmds_CXX=$reload_cmds | |
12690 | no_undefined_flag_CXX= | |
12691 | whole_archive_flag_spec_CXX= | |
12692 | enable_shared_with_static_runtimes_CXX=no | |
12693 | ||
12694 | # Source file extension for C++ test sources. | |
12695 | ac_ext=cpp | |
12696 | ||
12697 | # Object file extension for compiled C++ test sources. | |
12698 | objext=o | |
12699 | objext_CXX=$objext | |
12700 | ||
12701 | # No sense in running all these tests if we already determined that | |
12702 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12703 | # are currently assumed to apply to all compilers on this platform, | |
12704 | # and will be corrupted by setting them based on a non-working compiler. | |
12705 | if test "$_lt_caught_CXX_error" != yes; then | |
12706 | # Code to be used in simple compile tests | |
12707 | lt_simple_compile_test_code="int some_variable = 0;" | |
12708 | ||
12709 | # Code to be used in simple link tests | |
12710 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12711 | ||
12712 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12713 | ||
12714 | ||
12715 | ||
12716 | ||
12717 | ||
12718 | ||
12719 | # If no C compiler was specified, use CC. | |
12720 | LTCC=${LTCC-"$CC"} | |
12721 | ||
12722 | # If no C compiler flags were specified, use CFLAGS. | |
12723 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12724 | ||
12725 | # Allow CC to be a program name with arguments. | |
12726 | compiler=$CC | |
12727 | ||
12728 | ||
12729 | # save warnings/boilerplate of simple test code | |
12730 | ac_outfile=conftest.$ac_objext | |
12731 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12732 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12733 | _lt_compiler_boilerplate=`cat conftest.err` | |
12734 | $RM conftest* | |
12735 | ||
12736 | ac_outfile=conftest.$ac_objext | |
12737 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12738 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12739 | _lt_linker_boilerplate=`cat conftest.err` | |
12740 | $RM -r conftest* | |
12741 | ||
12742 | ||
12743 | # Allow CC to be a program name with arguments. | |
12744 | lt_save_CC=$CC | |
12745 | lt_save_LD=$LD | |
12746 | lt_save_GCC=$GCC | |
12747 | GCC=$GXX | |
12748 | lt_save_with_gnu_ld=$with_gnu_ld | |
12749 | lt_save_path_LD=$lt_cv_path_LD | |
12750 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12751 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12752 | else | |
12753 | $as_unset lt_cv_prog_gnu_ld | |
12754 | fi | |
12755 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12756 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12757 | else | |
12758 | $as_unset lt_cv_path_LD | |
12759 | fi | |
12760 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12761 | CC=${CXX-"c++"} | |
12762 | compiler=$CC | |
12763 | compiler_CXX=$CC | |
12764 | for cc_temp in $compiler""; do | |
12765 | case $cc_temp in | |
12766 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12767 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12768 | \-*) ;; | |
12769 | *) break;; | |
12770 | esac | |
12771 | done | |
12772 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12773 | ||
12774 | ||
12775 | if test -n "$compiler"; then | |
12776 | # We don't want -fno-exception when compiling C++ code, so set the | |
12777 | # no_builtin_flag separately | |
12778 | if test "$GXX" = yes; then | |
12779 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12780 | else | |
12781 | lt_prog_compiler_no_builtin_flag_CXX= | |
12782 | fi | |
12783 | ||
12784 | if test "$GXX" = yes; then | |
12785 | # Set up default GNU C++ configuration | |
12786 | ||
12787 | ||
12788 | ||
12789 | # Check whether --with-gnu-ld was given. | |
12790 | if test "${with_gnu_ld+set}" = set; then : | |
12791 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12792 | else | |
12793 | with_gnu_ld=no | |
12794 | fi | |
12795 | ||
12796 | ac_prog=ld | |
12797 | if test "$GCC" = yes; then | |
12798 | # Check if gcc -print-prog-name=ld gives a path. | |
12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12800 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12801 | case $host in | |
12802 | *-*-mingw*) | |
12803 | # gcc leaves a trailing carriage return which upsets mingw | |
12804 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12805 | *) | |
12806 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12807 | esac | |
12808 | case $ac_prog in | |
12809 | # Accept absolute paths. | |
12810 | [\\/]* | ?:[\\/]*) | |
12811 | re_direlt='/[^/][^/]*/\.\./' | |
12812 | # Canonicalize the pathname of ld | |
12813 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12814 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12815 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12816 | done | |
12817 | test -z "$LD" && LD="$ac_prog" | |
12818 | ;; | |
12819 | "") | |
12820 | # If it fails, then pretend we aren't using GCC. | |
12821 | ac_prog=ld | |
12822 | ;; | |
12823 | *) | |
12824 | # If it is relative, then search for the first ld in PATH. | |
12825 | with_gnu_ld=unknown | |
12826 | ;; | |
12827 | esac | |
12828 | elif test "$with_gnu_ld" = yes; then | |
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12830 | $as_echo_n "checking for GNU ld... " >&6; } | |
12831 | else | |
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12833 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12834 | fi | |
12835 | if test "${lt_cv_path_LD+set}" = set; then : | |
12836 | $as_echo_n "(cached) " >&6 | |
12837 | else | |
12838 | if test -z "$LD"; then | |
12839 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12840 | for ac_dir in $PATH; do | |
12841 | IFS="$lt_save_ifs" | |
12842 | test -z "$ac_dir" && ac_dir=. | |
12843 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12844 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12845 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12846 | # but apparently some variants of GNU ld only accept -v. | |
12847 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12848 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12849 | *GNU* | *'with BFD'*) | |
12850 | test "$with_gnu_ld" != no && break | |
12851 | ;; | |
12852 | *) | |
12853 | test "$with_gnu_ld" != yes && break | |
12854 | ;; | |
12855 | esac | |
12856 | fi | |
12857 | done | |
12858 | IFS="$lt_save_ifs" | |
12859 | else | |
12860 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12861 | fi | |
12862 | fi | |
12863 | ||
12864 | LD="$lt_cv_path_LD" | |
12865 | if test -n "$LD"; then | |
12866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12867 | $as_echo "$LD" >&6; } | |
12868 | else | |
12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12870 | $as_echo "no" >&6; } | |
12871 | fi | |
12872 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
12874 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
12875 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
12876 | $as_echo_n "(cached) " >&6 | |
12877 | else | |
12878 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12879 | case `$LD -v 2>&1 </dev/null` in | |
12880 | *GNU* | *'with BFD'*) | |
12881 | lt_cv_prog_gnu_ld=yes | |
12882 | ;; | |
12883 | *) | |
12884 | lt_cv_prog_gnu_ld=no | |
12885 | ;; | |
12886 | esac | |
12887 | fi | |
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12889 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12890 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12891 | ||
12892 | ||
12893 | ||
12894 | ||
12895 | ||
12896 | ||
12897 | ||
12898 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12899 | # archiving commands below assume that GNU ld is being used. | |
12900 | if test "$with_gnu_ld" = yes; then | |
12901 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12902 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12903 | ||
12904 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12905 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12906 | ||
12907 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12908 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12909 | # investigate it a little bit more. (MM) | |
12910 | wlarc='${wl}' | |
12911 | ||
12912 | # ancient GNU ld didn't support --whole-archive et. al. | |
12913 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12914 | $GREP 'no-whole-archive' > /dev/null; then | |
12915 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12916 | else | |
12917 | whole_archive_flag_spec_CXX= | |
12918 | fi | |
12919 | else | |
12920 | with_gnu_ld=no | |
12921 | wlarc= | |
12922 | ||
12923 | # A generic and very simple default shared library creation | |
12924 | # command for GNU C++ for the case where it uses the native | |
12925 | # linker, instead of GNU ld. If possible, this setting should | |
12926 | # overridden to take advantage of the native linker features on | |
12927 | # the platform it is being used on. | |
12928 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12929 | fi | |
12930 | ||
12931 | # Commands to make compiler produce verbose output that lists | |
12932 | # what "hidden" libraries, object files and flags are used when | |
12933 | # linking a shared library. | |
12934 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12935 | ||
12936 | else | |
12937 | GXX=no | |
12938 | with_gnu_ld=no | |
12939 | wlarc= | |
12940 | fi | |
12941 | ||
12942 | # PORTME: fill in a description of your system's C++ link characteristics | |
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12944 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12945 | ld_shlibs_CXX=yes | |
12946 | case $host_os in | |
12947 | aix3*) | |
12948 | # FIXME: insert proper C++ library support | |
12949 | ld_shlibs_CXX=no | |
12950 | ;; | |
12951 | aix[4-9]*) | |
12952 | if test "$host_cpu" = ia64; then | |
12953 | # On IA64, the linker does run time linking by default, so we don't | |
12954 | # have to do anything special. | |
12955 | aix_use_runtimelinking=no | |
12956 | exp_sym_flag='-Bexport' | |
12957 | no_entry_flag="" | |
12958 | else | |
12959 | aix_use_runtimelinking=no | |
12960 | ||
12961 | # Test if we are trying to use run time linking or normal | |
12962 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12963 | # need to do runtime linking. | |
12964 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12965 | for ld_flag in $LDFLAGS; do | |
12966 | case $ld_flag in | |
12967 | *-brtl*) | |
12968 | aix_use_runtimelinking=yes | |
12969 | break | |
12970 | ;; | |
12971 | esac | |
12972 | done | |
12973 | ;; | |
12974 | esac | |
12975 | ||
12976 | exp_sym_flag='-bexport' | |
12977 | no_entry_flag='-bnoentry' | |
12978 | fi | |
12979 | ||
12980 | # When large executables or shared objects are built, AIX ld can | |
12981 | # have problems creating the table of contents. If linking a library | |
12982 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12983 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12984 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12985 | ||
12986 | archive_cmds_CXX='' | |
12987 | hardcode_direct_CXX=yes | |
12988 | hardcode_direct_absolute_CXX=yes | |
12989 | hardcode_libdir_separator_CXX=':' | |
12990 | link_all_deplibs_CXX=yes | |
12991 | file_list_spec_CXX='${wl}-f,' | |
12992 | ||
12993 | if test "$GXX" = yes; then | |
12994 | case $host_os in aix4.[012]|aix4.[012].*) | |
12995 | # We only want to do this on AIX 4.2 and lower, the check | |
12996 | # below for broken collect2 doesn't work under 4.3+ | |
12997 | collect2name=`${CC} -print-prog-name=collect2` | |
12998 | if test -f "$collect2name" && | |
12999 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13000 | then | |
13001 | # We have reworked collect2 | |
13002 | : | |
13003 | else | |
13004 | # We have old collect2 | |
13005 | hardcode_direct_CXX=unsupported | |
13006 | # It fails to find uninstalled libraries when the uninstalled | |
13007 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13008 | # to unsupported forces relinking | |
13009 | hardcode_minus_L_CXX=yes | |
13010 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13011 | hardcode_libdir_separator_CXX= | |
13012 | fi | |
13013 | esac | |
13014 | shared_flag='-shared' | |
13015 | if test "$aix_use_runtimelinking" = yes; then | |
13016 | shared_flag="$shared_flag "'${wl}-G' | |
13017 | fi | |
13018 | else | |
13019 | # not using gcc | |
13020 | if test "$host_cpu" = ia64; then | |
13021 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13022 | # chokes on -Wl,-G. The following line is correct: | |
13023 | shared_flag='-G' | |
13024 | else | |
13025 | if test "$aix_use_runtimelinking" = yes; then | |
13026 | shared_flag='${wl}-G' | |
13027 | else | |
13028 | shared_flag='${wl}-bM:SRE' | |
13029 | fi | |
13030 | fi | |
13031 | fi | |
13032 | ||
13033 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
13034 | # It seems that -bexpall does not export symbols beginning with | |
13035 | # underscore (_), so it is better to generate a list of symbols to | |
13036 | # export. | |
13037 | always_export_symbols_CXX=yes | |
13038 | if test "$aix_use_runtimelinking" = yes; then | |
13039 | # Warning - without using the other runtime loading flags (-brtl), | |
13040 | # -berok will link without error, but may produce a broken library. | |
13041 | allow_undefined_flag_CXX='-berok' | |
13042 | # Determine the default libpath from the value encoded in an empty | |
13043 | # executable. | |
13044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13045 | /* end confdefs.h. */ | |
13046 | ||
13047 | int | |
13048 | main () | |
13049 | { | |
13050 | ||
13051 | ; | |
13052 | return 0; | |
13053 | } | |
13054 | _ACEOF | |
13055 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13056 | ||
13057 | lt_aix_libpath_sed=' | |
13058 | /Import File Strings/,/^$/ { | |
13059 | /^0/ { | |
13060 | s/^0 *\(.*\)$/\1/ | |
13061 | p | |
13062 | } | |
13063 | }' | |
13064 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13065 | # Check for a 64-bit object if we didn't find anything. | |
13066 | if test -z "$aix_libpath"; then | |
13067 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13068 | fi | |
13069 | fi | |
13070 | rm -f core conftest.err conftest.$ac_objext \ | |
13071 | conftest$ac_exeext conftest.$ac_ext | |
13072 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13073 | ||
13074 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13075 | ||
13076 | archive_expsym_cmds_CXX='$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" | |
13077 | else | |
13078 | if test "$host_cpu" = ia64; then | |
13079 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13080 | allow_undefined_flag_CXX="-z nodefs" | |
13081 | archive_expsym_cmds_CXX="\$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" | |
13082 | else | |
13083 | # Determine the default libpath from the value encoded in an | |
13084 | # empty executable. | |
13085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13086 | /* end confdefs.h. */ | |
13087 | ||
13088 | int | |
13089 | main () | |
13090 | { | |
13091 | ||
13092 | ; | |
13093 | return 0; | |
13094 | } | |
13095 | _ACEOF | |
13096 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13097 | ||
13098 | lt_aix_libpath_sed=' | |
13099 | /Import File Strings/,/^$/ { | |
13100 | /^0/ { | |
13101 | s/^0 *\(.*\)$/\1/ | |
13102 | p | |
13103 | } | |
13104 | }' | |
13105 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13106 | # Check for a 64-bit object if we didn't find anything. | |
13107 | if test -z "$aix_libpath"; then | |
13108 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13109 | fi | |
13110 | fi | |
13111 | rm -f core conftest.err conftest.$ac_objext \ | |
13112 | conftest$ac_exeext conftest.$ac_ext | |
13113 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13114 | ||
13115 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13116 | # Warning - without using the other run time loading flags, | |
13117 | # -berok will link without error, but may produce a broken library. | |
13118 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13119 | allow_undefined_flag_CXX=' ${wl}-berok' | |
13120 | if test "$with_gnu_ld" = yes; then | |
13121 | # We only use this code for GNU lds that support --whole-archive. | |
13122 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13123 | else | |
13124 | # Exported symbols can be pulled into shared objects from archives | |
13125 | whole_archive_flag_spec_CXX='$convenience' | |
13126 | fi | |
13127 | archive_cmds_need_lc_CXX=yes | |
13128 | # This is similar to how AIX traditionally builds its shared | |
13129 | # libraries. | |
13130 | archive_expsym_cmds_CXX="\$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' | |
13131 | fi | |
13132 | fi | |
13133 | ;; | |
13134 | ||
13135 | beos*) | |
13136 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13137 | allow_undefined_flag_CXX=unsupported | |
13138 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13139 | # support --undefined. This deserves some investigation. FIXME | |
13140 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13141 | else | |
13142 | ld_shlibs_CXX=no | |
13143 | fi | |
13144 | ;; | |
13145 | ||
13146 | chorus*) | |
13147 | case $cc_basename in | |
13148 | *) | |
13149 | # FIXME: insert proper C++ library support | |
13150 | ld_shlibs_CXX=no | |
13151 | ;; | |
13152 | esac | |
13153 | ;; | |
13154 | ||
13155 | cygwin* | mingw* | pw32* | cegcc*) | |
13156 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13157 | # as there is no search path for DLLs. | |
13158 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13159 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13160 | allow_undefined_flag_CXX=unsupported | |
13161 | always_export_symbols_CXX=no | |
13162 | enable_shared_with_static_runtimes_CXX=yes | |
13163 | ||
13164 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13165 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13166 | # If the export-symbols file already is a .def file (1st line | |
13167 | # is EXPORTS), use it as is; otherwise, prepend... | |
13168 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13169 | cp $export_symbols $output_objdir/$soname.def; | |
13170 | else | |
13171 | echo EXPORTS > $output_objdir/$soname.def; | |
13172 | cat $export_symbols >> $output_objdir/$soname.def; | |
13173 | fi~ | |
13174 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13175 | else | |
13176 | ld_shlibs_CXX=no | |
13177 | fi | |
13178 | ;; | |
13179 | darwin* | rhapsody*) | |
13180 | ||
13181 | ||
13182 | archive_cmds_need_lc_CXX=no | |
13183 | hardcode_direct_CXX=no | |
13184 | hardcode_automatic_CXX=yes | |
13185 | hardcode_shlibpath_var_CXX=unsupported | |
13186 | if test "$lt_cv_ld_force_load" = "yes"; then | |
13187 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13188 | else | |
13189 | whole_archive_flag_spec_CXX='' | |
13190 | fi | |
13191 | link_all_deplibs_CXX=yes | |
13192 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13193 | case $cc_basename in | |
13194 | ifort*) _lt_dar_can_shared=yes ;; | |
13195 | *) _lt_dar_can_shared=$GCC ;; | |
13196 | esac | |
13197 | if test "$_lt_dar_can_shared" = "yes"; then | |
13198 | output_verbose_link_cmd=func_echo_all | |
13199 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
13200 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13201 | archive_expsym_cmds_CXX="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}" | |
13202 | module_expsym_cmds_CXX="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}" | |
13203 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13204 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
13205 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
13206 | fi | |
13207 | ||
13208 | else | |
13209 | ld_shlibs_CXX=no | |
13210 | fi | |
13211 | ||
13212 | ;; | |
13213 | ||
13214 | dgux*) | |
13215 | case $cc_basename in | |
13216 | ec++*) | |
13217 | # FIXME: insert proper C++ library support | |
13218 | ld_shlibs_CXX=no | |
13219 | ;; | |
13220 | ghcx*) | |
13221 | # Green Hills C++ Compiler | |
13222 | # FIXME: insert proper C++ library support | |
13223 | ld_shlibs_CXX=no | |
13224 | ;; | |
13225 | *) | |
13226 | # FIXME: insert proper C++ library support | |
13227 | ld_shlibs_CXX=no | |
13228 | ;; | |
13229 | esac | |
13230 | ;; | |
13231 | ||
6d2920c8 | 13232 | freebsd2.*) |
3cb62297 L |
13233 | # C++ shared libraries reported to be fairly broken before |
13234 | # switch to ELF | |
13235 | ld_shlibs_CXX=no | |
13236 | ;; | |
13237 | ||
13238 | freebsd-elf*) | |
13239 | archive_cmds_need_lc_CXX=no | |
13240 | ;; | |
13241 | ||
13242 | freebsd* | dragonfly*) | |
13243 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13244 | # conventions | |
13245 | ld_shlibs_CXX=yes | |
13246 | ;; | |
13247 | ||
13248 | gnu*) | |
13249 | ;; | |
13250 | ||
13251 | haiku*) | |
13252 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13253 | link_all_deplibs_CXX=yes | |
13254 | ;; | |
13255 | ||
13256 | hpux9*) | |
13257 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13258 | hardcode_libdir_separator_CXX=: | |
13259 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13260 | hardcode_direct_CXX=yes | |
13261 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13262 | # but as the default | |
13263 | # location of the library. | |
13264 | ||
13265 | case $cc_basename in | |
13266 | CC*) | |
13267 | # FIXME: insert proper C++ library support | |
13268 | ld_shlibs_CXX=no | |
13269 | ;; | |
13270 | aCC*) | |
13271 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13272 | # Commands to make compiler produce verbose output that lists | |
13273 | # what "hidden" libraries, object files and flags are used when | |
13274 | # linking a shared library. | |
13275 | # | |
13276 | # There doesn't appear to be a way to prevent this compiler from | |
13277 | # explicitly linking system object files so we need to strip them | |
13278 | # from the output so that they don't get included in the library | |
13279 | # dependencies. | |
13280 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13281 | ;; | |
13282 | *) | |
13283 | if test "$GXX" = yes; then | |
13284 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13285 | else | |
13286 | # FIXME: insert proper C++ library support | |
13287 | ld_shlibs_CXX=no | |
13288 | fi | |
13289 | ;; | |
13290 | esac | |
13291 | ;; | |
13292 | ||
13293 | hpux10*|hpux11*) | |
13294 | if test $with_gnu_ld = no; then | |
13295 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13296 | hardcode_libdir_separator_CXX=: | |
13297 | ||
13298 | case $host_cpu in | |
13299 | hppa*64*|ia64*) | |
13300 | ;; | |
13301 | *) | |
13302 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13303 | ;; | |
13304 | esac | |
13305 | fi | |
13306 | case $host_cpu in | |
13307 | hppa*64*|ia64*) | |
13308 | hardcode_direct_CXX=no | |
13309 | hardcode_shlibpath_var_CXX=no | |
13310 | ;; | |
13311 | *) | |
13312 | hardcode_direct_CXX=yes | |
13313 | hardcode_direct_absolute_CXX=yes | |
13314 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13315 | # but as the default | |
13316 | # location of the library. | |
13317 | ;; | |
13318 | esac | |
13319 | ||
13320 | case $cc_basename in | |
13321 | CC*) | |
13322 | # FIXME: insert proper C++ library support | |
13323 | ld_shlibs_CXX=no | |
13324 | ;; | |
13325 | aCC*) | |
13326 | case $host_cpu in | |
13327 | hppa*64*) | |
13328 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13329 | ;; | |
13330 | ia64*) | |
13331 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13332 | ;; | |
13333 | *) | |
13334 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13335 | ;; | |
13336 | esac | |
13337 | # Commands to make compiler produce verbose output that lists | |
13338 | # what "hidden" libraries, object files and flags are used when | |
13339 | # linking a shared library. | |
13340 | # | |
13341 | # There doesn't appear to be a way to prevent this compiler from | |
13342 | # explicitly linking system object files so we need to strip them | |
13343 | # from the output so that they don't get included in the library | |
13344 | # dependencies. | |
13345 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13346 | ;; | |
13347 | *) | |
13348 | if test "$GXX" = yes; then | |
13349 | if test $with_gnu_ld = no; then | |
13350 | case $host_cpu in | |
13351 | hppa*64*) | |
13352 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13353 | ;; | |
13354 | ia64*) | |
13355 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13356 | ;; | |
13357 | *) | |
13358 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13359 | ;; | |
13360 | esac | |
13361 | fi | |
13362 | else | |
13363 | # FIXME: insert proper C++ library support | |
13364 | ld_shlibs_CXX=no | |
13365 | fi | |
13366 | ;; | |
13367 | esac | |
13368 | ;; | |
13369 | ||
13370 | interix[3-9]*) | |
13371 | hardcode_direct_CXX=no | |
13372 | hardcode_shlibpath_var_CXX=no | |
13373 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13374 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13375 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13376 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13377 | # default) and relocated if they conflict, which is a slow very memory | |
13378 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13379 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13380 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13381 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13382 | archive_expsym_cmds_CXX='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' | |
13383 | ;; | |
13384 | irix5* | irix6*) | |
13385 | case $cc_basename in | |
13386 | CC*) | |
13387 | # SGI C++ | |
13388 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13389 | ||
13390 | # Archives containing C++ object files must be created using | |
13391 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13392 | # necessary to make sure instantiated templates are included | |
13393 | # in the archive. | |
13394 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13395 | ;; | |
13396 | *) | |
13397 | if test "$GXX" = yes; then | |
13398 | if test "$with_gnu_ld" = no; then | |
13399 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13400 | else | |
13401 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | |
13402 | fi | |
13403 | fi | |
13404 | link_all_deplibs_CXX=yes | |
13405 | ;; | |
13406 | esac | |
13407 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13408 | hardcode_libdir_separator_CXX=: | |
13409 | inherit_rpath_CXX=yes | |
13410 | ;; | |
13411 | ||
13412 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13413 | case $cc_basename in | |
13414 | KCC*) | |
13415 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13416 | ||
13417 | # KCC will only create a shared library if the output file | |
13418 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13419 | # to its proper name (with version) after linking. | |
13420 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13421 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
13422 | # Commands to make compiler produce verbose output that lists | |
13423 | # what "hidden" libraries, object files and flags are used when | |
13424 | # linking a shared library. | |
13425 | # | |
13426 | # There doesn't appear to be a way to prevent this compiler from | |
13427 | # explicitly linking system object files so we need to strip them | |
13428 | # from the output so that they don't get included in the library | |
13429 | # dependencies. | |
13430 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13431 | ||
13432 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13433 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13434 | ||
13435 | # Archives containing C++ object files must be created using | |
13436 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13437 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13438 | ;; | |
13439 | icpc* | ecpc* ) | |
13440 | # Intel C++ | |
13441 | with_gnu_ld=yes | |
13442 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13443 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13444 | # earlier do not add the objects themselves. | |
13445 | case `$CC -V 2>&1` in | |
13446 | *"Version 7."*) | |
13447 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13448 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13449 | ;; | |
13450 | *) # Version 8.0 or newer | |
13451 | tmp_idyn= | |
13452 | case $host_cpu in | |
13453 | ia64*) tmp_idyn=' -i_dynamic';; | |
13454 | esac | |
13455 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13456 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13457 | ;; | |
13458 | esac | |
13459 | archive_cmds_need_lc_CXX=no | |
13460 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13461 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13462 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13463 | ;; | |
13464 | pgCC* | pgcpp*) | |
13465 | # Portland Group C++ compiler | |
13466 | case `$CC -V` in | |
13467 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13468 | prelink_cmds_CXX='tpldir=Template.dir~ | |
13469 | rm -rf $tpldir~ | |
13470 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
13471 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
13472 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
13473 | rm -rf $tpldir~ | |
13474 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
13475 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
13476 | $RANLIB $oldlib' | |
13477 | archive_cmds_CXX='tpldir=Template.dir~ | |
13478 | rm -rf $tpldir~ | |
13479 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13480 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13481 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
13482 | rm -rf $tpldir~ | |
13483 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13484 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13485 | ;; | |
13486 | *) # Version 6 and above use weak symbols | |
13487 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13488 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13489 | ;; | |
13490 | esac | |
13491 | ||
13492 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13493 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13494 | whole_archive_flag_spec_CXX='${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' | |
13495 | ;; | |
13496 | cxx*) | |
13497 | # Compaq C++ | |
13498 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13499 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
13500 | ||
13501 | runpath_var=LD_RUN_PATH | |
13502 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13503 | hardcode_libdir_separator_CXX=: | |
13504 | ||
13505 | # Commands to make compiler produce verbose output that lists | |
13506 | # what "hidden" libraries, object files and flags are used when | |
13507 | # linking a shared library. | |
13508 | # | |
13509 | # There doesn't appear to be a way to prevent this compiler from | |
13510 | # explicitly linking system object files so we need to strip them | |
13511 | # from the output so that they don't get included in the library | |
13512 | # dependencies. | |
13513 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | |
13514 | ;; | |
13515 | xl* | mpixl* | bgxl*) | |
13516 | # IBM XL 8.0 on PPC, with GNU ld | |
13517 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13518 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13519 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13520 | if test "x$supports_anon_versioning" = xyes; then | |
13521 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13522 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13523 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13524 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13525 | fi | |
13526 | ;; | |
13527 | *) | |
13528 | case `$CC -V 2>&1 | sed 5q` in | |
13529 | *Sun\ C*) | |
13530 | # Sun C++ 5.9 | |
13531 | no_undefined_flag_CXX=' -zdefs' | |
13532 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13533 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
13534 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13535 | whole_archive_flag_spec_CXX='${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' | |
13536 | compiler_needs_object_CXX=yes | |
13537 | ||
13538 | # Not sure whether something based on | |
13539 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13540 | # would be better. | |
13541 | output_verbose_link_cmd='func_echo_all' | |
13542 | ||
13543 | # Archives containing C++ object files must be created using | |
13544 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13545 | # necessary to make sure instantiated templates are included | |
13546 | # in the archive. | |
13547 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13548 | ;; | |
13549 | esac | |
13550 | ;; | |
13551 | esac | |
13552 | ;; | |
13553 | ||
13554 | lynxos*) | |
13555 | # FIXME: insert proper C++ library support | |
13556 | ld_shlibs_CXX=no | |
13557 | ;; | |
13558 | ||
13559 | m88k*) | |
13560 | # FIXME: insert proper C++ library support | |
13561 | ld_shlibs_CXX=no | |
13562 | ;; | |
13563 | ||
13564 | mvs*) | |
13565 | case $cc_basename in | |
13566 | cxx*) | |
13567 | # FIXME: insert proper C++ library support | |
13568 | ld_shlibs_CXX=no | |
13569 | ;; | |
13570 | *) | |
13571 | # FIXME: insert proper C++ library support | |
13572 | ld_shlibs_CXX=no | |
13573 | ;; | |
13574 | esac | |
13575 | ;; | |
13576 | ||
13577 | netbsd*) | |
13578 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13579 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13580 | wlarc= | |
13581 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13582 | hardcode_direct_CXX=yes | |
13583 | hardcode_shlibpath_var_CXX=no | |
13584 | fi | |
13585 | # Workaround some broken pre-1.5 toolchains | |
13586 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13587 | ;; | |
13588 | ||
13589 | *nto* | *qnx*) | |
13590 | ld_shlibs_CXX=yes | |
13591 | ;; | |
13592 | ||
13593 | openbsd2*) | |
13594 | # C++ shared libraries are fairly broken | |
13595 | ld_shlibs_CXX=no | |
13596 | ;; | |
13597 | ||
13598 | openbsd*) | |
13599 | if test -f /usr/libexec/ld.so; then | |
13600 | hardcode_direct_CXX=yes | |
13601 | hardcode_shlibpath_var_CXX=no | |
13602 | hardcode_direct_absolute_CXX=yes | |
13603 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13604 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13605 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13606 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13607 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13608 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13609 | fi | |
13610 | output_verbose_link_cmd=func_echo_all | |
13611 | else | |
13612 | ld_shlibs_CXX=no | |
13613 | fi | |
13614 | ;; | |
13615 | ||
13616 | osf3* | osf4* | osf5*) | |
13617 | case $cc_basename in | |
13618 | KCC*) | |
13619 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13620 | ||
13621 | # KCC will only create a shared library if the output file | |
13622 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13623 | # to its proper name (with version) after linking. | |
13624 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13625 | ||
13626 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13627 | hardcode_libdir_separator_CXX=: | |
13628 | ||
13629 | # Archives containing C++ object files must be created using | |
13630 | # the KAI C++ compiler. | |
13631 | case $host in | |
13632 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13633 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13634 | esac | |
13635 | ;; | |
13636 | RCC*) | |
13637 | # Rational C++ 2.4.1 | |
13638 | # FIXME: insert proper C++ library support | |
13639 | ld_shlibs_CXX=no | |
13640 | ;; | |
13641 | cxx*) | |
13642 | case $host in | |
13643 | osf3*) | |
13644 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13645 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13646 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13647 | ;; | |
13648 | *) | |
13649 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13650 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13651 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13652 | echo "-hidden">> $lib.exp~ | |
13653 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13654 | $RM $lib.exp' | |
13655 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13656 | ;; | |
13657 | esac | |
13658 | ||
13659 | hardcode_libdir_separator_CXX=: | |
13660 | ||
13661 | # Commands to make compiler produce verbose output that lists | |
13662 | # what "hidden" libraries, object files and flags are used when | |
13663 | # linking a shared library. | |
13664 | # | |
13665 | # There doesn't appear to be a way to prevent this compiler from | |
13666 | # explicitly linking system object files so we need to strip them | |
13667 | # from the output so that they don't get included in the library | |
13668 | # dependencies. | |
13669 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13670 | ;; | |
13671 | *) | |
13672 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13673 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13674 | case $host in | |
13675 | osf3*) | |
13676 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13677 | ;; | |
13678 | *) | |
13679 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13680 | ;; | |
13681 | esac | |
13682 | ||
13683 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13684 | hardcode_libdir_separator_CXX=: | |
13685 | ||
13686 | # Commands to make compiler produce verbose output that lists | |
13687 | # what "hidden" libraries, object files and flags are used when | |
13688 | # linking a shared library. | |
13689 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13690 | ||
13691 | else | |
13692 | # FIXME: insert proper C++ library support | |
13693 | ld_shlibs_CXX=no | |
13694 | fi | |
13695 | ;; | |
13696 | esac | |
13697 | ;; | |
13698 | ||
13699 | psos*) | |
13700 | # FIXME: insert proper C++ library support | |
13701 | ld_shlibs_CXX=no | |
13702 | ;; | |
13703 | ||
13704 | sunos4*) | |
13705 | case $cc_basename in | |
13706 | CC*) | |
13707 | # Sun C++ 4.x | |
13708 | # FIXME: insert proper C++ library support | |
13709 | ld_shlibs_CXX=no | |
13710 | ;; | |
13711 | lcc*) | |
13712 | # Lucid | |
13713 | # FIXME: insert proper C++ library support | |
13714 | ld_shlibs_CXX=no | |
13715 | ;; | |
13716 | *) | |
13717 | # FIXME: insert proper C++ library support | |
13718 | ld_shlibs_CXX=no | |
13719 | ;; | |
13720 | esac | |
13721 | ;; | |
13722 | ||
13723 | solaris*) | |
13724 | case $cc_basename in | |
13725 | CC*) | |
13726 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13727 | archive_cmds_need_lc_CXX=yes | |
13728 | no_undefined_flag_CXX=' -zdefs' | |
13729 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13730 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13731 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13732 | ||
13733 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13734 | hardcode_shlibpath_var_CXX=no | |
13735 | case $host_os in | |
13736 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13737 | *) | |
13738 | # The compiler driver will combine and reorder linker options, | |
13739 | # but understands `-z linker_flag'. | |
13740 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13741 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13742 | ;; | |
13743 | esac | |
13744 | link_all_deplibs_CXX=yes | |
13745 | ||
13746 | output_verbose_link_cmd='func_echo_all' | |
13747 | ||
13748 | # Archives containing C++ object files must be created using | |
13749 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13750 | # necessary to make sure instantiated templates are included | |
13751 | # in the archive. | |
13752 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13753 | ;; | |
13754 | gcx*) | |
13755 | # Green Hills C++ Compiler | |
13756 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13757 | ||
13758 | # The C++ compiler must be used to create the archive. | |
13759 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13760 | ;; | |
13761 | *) | |
13762 | # GNU C++ compiler with Solaris linker | |
13763 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13764 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13765 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13766 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13767 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13768 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13769 | ||
13770 | # Commands to make compiler produce verbose output that lists | |
13771 | # what "hidden" libraries, object files and flags are used when | |
13772 | # linking a shared library. | |
13773 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13774 | else | |
13775 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13776 | # platform. | |
13777 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13778 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13779 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13780 | ||
13781 | # Commands to make compiler produce verbose output that lists | |
13782 | # what "hidden" libraries, object files and flags are used when | |
13783 | # linking a shared library. | |
13784 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13785 | fi | |
13786 | ||
13787 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13788 | case $host_os in | |
13789 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13790 | *) | |
13791 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13792 | ;; | |
13793 | esac | |
13794 | fi | |
13795 | ;; | |
13796 | esac | |
13797 | ;; | |
13798 | ||
13799 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13800 | no_undefined_flag_CXX='${wl}-z,text' | |
13801 | archive_cmds_need_lc_CXX=no | |
13802 | hardcode_shlibpath_var_CXX=no | |
13803 | runpath_var='LD_RUN_PATH' | |
13804 | ||
13805 | case $cc_basename in | |
13806 | CC*) | |
13807 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13808 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13809 | ;; | |
13810 | *) | |
13811 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13812 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13813 | ;; | |
13814 | esac | |
13815 | ;; | |
13816 | ||
13817 | sysv5* | sco3.2v5* | sco5v6*) | |
13818 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13819 | # link with -lc, and that would cause any symbols used from libc to | |
13820 | # always be unresolved, which means just about no library would | |
13821 | # ever link correctly. If we're not using GNU ld we use -z text | |
13822 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13823 | # as -z defs. | |
13824 | no_undefined_flag_CXX='${wl}-z,text' | |
13825 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13826 | archive_cmds_need_lc_CXX=no | |
13827 | hardcode_shlibpath_var_CXX=no | |
13828 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13829 | hardcode_libdir_separator_CXX=':' | |
13830 | link_all_deplibs_CXX=yes | |
13831 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13832 | runpath_var='LD_RUN_PATH' | |
13833 | ||
13834 | case $cc_basename in | |
13835 | CC*) | |
13836 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13837 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13838 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13839 | '"$old_archive_cmds_CXX" | |
13840 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13841 | '"$reload_cmds_CXX" | |
13842 | ;; | |
13843 | *) | |
13844 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13845 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13846 | ;; | |
13847 | esac | |
13848 | ;; | |
13849 | ||
13850 | tandem*) | |
13851 | case $cc_basename in | |
13852 | NCC*) | |
13853 | # NonStop-UX NCC 3.20 | |
13854 | # FIXME: insert proper C++ library support | |
13855 | ld_shlibs_CXX=no | |
13856 | ;; | |
13857 | *) | |
13858 | # FIXME: insert proper C++ library support | |
13859 | ld_shlibs_CXX=no | |
13860 | ;; | |
13861 | esac | |
13862 | ;; | |
13863 | ||
13864 | vxworks*) | |
13865 | # FIXME: insert proper C++ library support | |
13866 | ld_shlibs_CXX=no | |
13867 | ;; | |
13868 | ||
13869 | *) | |
13870 | # FIXME: insert proper C++ library support | |
13871 | ld_shlibs_CXX=no | |
13872 | ;; | |
13873 | esac | |
13874 | ||
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13876 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13877 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13878 | ||
13879 | GCC_CXX="$GXX" | |
13880 | LD_CXX="$LD" | |
13881 | ||
13882 | ## CAVEAT EMPTOR: | |
13883 | ## There is no encapsulation within the following macros, do not change | |
13884 | ## the running order or otherwise move them around unless you know exactly | |
13885 | ## what you are doing... | |
13886 | # Dependencies to place before and after the object being linked: | |
13887 | predep_objects_CXX= | |
13888 | postdep_objects_CXX= | |
13889 | predeps_CXX= | |
13890 | postdeps_CXX= | |
13891 | compiler_lib_search_path_CXX= | |
13892 | ||
13893 | cat > conftest.$ac_ext <<_LT_EOF | |
13894 | class Foo | |
13895 | { | |
13896 | public: | |
13897 | Foo (void) { a = 0; } | |
13898 | private: | |
13899 | int a; | |
13900 | }; | |
13901 | _LT_EOF | |
13902 | ||
13903 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13904 | (eval $ac_compile) 2>&5 | |
13905 | ac_status=$? | |
13906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13907 | test $ac_status = 0; }; then | |
13908 | # Parse the compiler output and extract the necessary | |
13909 | # objects, libraries and library flags. | |
13910 | ||
13911 | # Sentinel used to keep track of whether or not we are before | |
13912 | # the conftest object file. | |
13913 | pre_test_object_deps_done=no | |
13914 | ||
13915 | for p in `eval "$output_verbose_link_cmd"`; do | |
13916 | case $p in | |
13917 | ||
13918 | -L* | -R* | -l*) | |
13919 | # Some compilers place space between "-{L,R}" and the path. | |
13920 | # Remove the space. | |
13921 | if test $p = "-L" || | |
13922 | test $p = "-R"; then | |
13923 | prev=$p | |
13924 | continue | |
13925 | else | |
13926 | prev= | |
13927 | fi | |
13928 | ||
13929 | if test "$pre_test_object_deps_done" = no; then | |
13930 | case $p in | |
13931 | -L* | -R*) | |
13932 | # Internal compiler library paths should come after those | |
13933 | # provided the user. The postdeps already come after the | |
13934 | # user supplied libs so there is no need to process them. | |
13935 | if test -z "$compiler_lib_search_path_CXX"; then | |
13936 | compiler_lib_search_path_CXX="${prev}${p}" | |
13937 | else | |
13938 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13939 | fi | |
13940 | ;; | |
13941 | # The "-l" case would never come before the object being | |
13942 | # linked, so don't bother handling this case. | |
13943 | esac | |
13944 | else | |
13945 | if test -z "$postdeps_CXX"; then | |
13946 | postdeps_CXX="${prev}${p}" | |
13947 | else | |
13948 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13949 | fi | |
13950 | fi | |
13951 | ;; | |
13952 | ||
13953 | *.$objext) | |
13954 | # This assumes that the test object file only shows up | |
13955 | # once in the compiler output. | |
13956 | if test "$p" = "conftest.$objext"; then | |
13957 | pre_test_object_deps_done=yes | |
13958 | continue | |
13959 | fi | |
13960 | ||
13961 | if test "$pre_test_object_deps_done" = no; then | |
13962 | if test -z "$predep_objects_CXX"; then | |
13963 | predep_objects_CXX="$p" | |
13964 | else | |
13965 | predep_objects_CXX="$predep_objects_CXX $p" | |
13966 | fi | |
13967 | else | |
13968 | if test -z "$postdep_objects_CXX"; then | |
13969 | postdep_objects_CXX="$p" | |
13970 | else | |
13971 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13972 | fi | |
13973 | fi | |
13974 | ;; | |
13975 | ||
13976 | *) ;; # Ignore the rest. | |
13977 | ||
13978 | esac | |
13979 | done | |
13980 | ||
13981 | # Clean up. | |
13982 | rm -f a.out a.exe | |
13983 | else | |
13984 | echo "libtool.m4: error: problem compiling CXX test program" | |
13985 | fi | |
13986 | ||
13987 | $RM -f confest.$objext | |
13988 | ||
13989 | # PORTME: override above test on systems where it is broken | |
13990 | case $host_os in | |
13991 | interix[3-9]*) | |
13992 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13993 | # hack all around it, let's just trust "g++" to DTRT. | |
13994 | predep_objects_CXX= | |
13995 | postdep_objects_CXX= | |
13996 | postdeps_CXX= | |
13997 | ;; | |
13998 | ||
13999 | linux*) | |
14000 | case `$CC -V 2>&1 | sed 5q` in | |
14001 | *Sun\ C*) | |
14002 | # Sun C++ 5.9 | |
14003 | ||
14004 | # The more standards-conforming stlport4 library is | |
14005 | # incompatible with the Cstd library. Avoid specifying | |
14006 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14007 | # -library=stlport4 depends on it. | |
14008 | case " $CXX $CXXFLAGS " in | |
14009 | *" -library=stlport4 "*) | |
14010 | solaris_use_stlport4=yes | |
14011 | ;; | |
14012 | esac | |
14013 | ||
14014 | if test "$solaris_use_stlport4" != yes; then | |
14015 | postdeps_CXX='-library=Cstd -library=Crun' | |
14016 | fi | |
14017 | ;; | |
14018 | esac | |
14019 | ;; | |
14020 | ||
14021 | solaris*) | |
14022 | case $cc_basename in | |
14023 | CC*) | |
14024 | # The more standards-conforming stlport4 library is | |
14025 | # incompatible with the Cstd library. Avoid specifying | |
14026 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14027 | # -library=stlport4 depends on it. | |
14028 | case " $CXX $CXXFLAGS " in | |
14029 | *" -library=stlport4 "*) | |
14030 | solaris_use_stlport4=yes | |
14031 | ;; | |
14032 | esac | |
14033 | ||
14034 | # Adding this requires a known-good setup of shared libraries for | |
14035 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14036 | # archive will be linked into the output, leading to subtle bugs. | |
14037 | if test "$solaris_use_stlport4" != yes; then | |
14038 | postdeps_CXX='-library=Cstd -library=Crun' | |
14039 | fi | |
14040 | ;; | |
14041 | esac | |
14042 | ;; | |
14043 | esac | |
14044 | ||
14045 | ||
14046 | case " $postdeps_CXX " in | |
14047 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14048 | esac | |
14049 | compiler_lib_search_dirs_CXX= | |
14050 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14051 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
14052 | fi | |
14053 | ||
14054 | ||
14055 | ||
14056 | ||
14057 | ||
14058 | ||
14059 | ||
14060 | ||
14061 | ||
14062 | ||
14063 | ||
14064 | ||
14065 | ||
14066 | ||
14067 | ||
14068 | ||
14069 | ||
14070 | ||
14071 | ||
14072 | ||
14073 | ||
14074 | ||
14075 | ||
14076 | ||
14077 | ||
14078 | ||
14079 | ||
14080 | ||
14081 | ||
14082 | ||
14083 | ||
14084 | lt_prog_compiler_wl_CXX= | |
14085 | lt_prog_compiler_pic_CXX= | |
14086 | lt_prog_compiler_static_CXX= | |
14087 | ||
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
14089 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14090 | ||
14091 | # C++ specific cases for pic, static, wl, etc. | |
14092 | if test "$GXX" = yes; then | |
14093 | lt_prog_compiler_wl_CXX='-Wl,' | |
14094 | lt_prog_compiler_static_CXX='-static' | |
14095 | ||
14096 | case $host_os in | |
14097 | aix*) | |
14098 | # All AIX code is PIC. | |
14099 | if test "$host_cpu" = ia64; then | |
14100 | # AIX 5 now supports IA64 processor | |
14101 | lt_prog_compiler_static_CXX='-Bstatic' | |
14102 | fi | |
52204357 | 14103 | lt_prog_compiler_pic_CXX='-fPIC' |
3cb62297 L |
14104 | ;; |
14105 | ||
14106 | amigaos*) | |
14107 | case $host_cpu in | |
14108 | powerpc) | |
14109 | # see comment about AmigaOS4 .so support | |
14110 | lt_prog_compiler_pic_CXX='-fPIC' | |
14111 | ;; | |
14112 | m68k) | |
14113 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14114 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14115 | # like `-m68040'. | |
14116 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14117 | ;; | |
14118 | esac | |
14119 | ;; | |
14120 | ||
14121 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14122 | # PIC is the default for these OSes. | |
14123 | ;; | |
14124 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14125 | # This hack is so that the source file can tell whether it is being | |
14126 | # built for inclusion in a dll (and should export symbols for example). | |
14127 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14128 | # (--disable-auto-import) libraries | |
14129 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14130 | ;; | |
14131 | darwin* | rhapsody*) | |
14132 | # PIC is the default on this platform | |
14133 | # Common symbols not allowed in MH_DYLIB files | |
14134 | lt_prog_compiler_pic_CXX='-fno-common' | |
14135 | ;; | |
14136 | *djgpp*) | |
14137 | # DJGPP does not support shared libraries at all | |
14138 | lt_prog_compiler_pic_CXX= | |
14139 | ;; | |
14140 | haiku*) | |
14141 | # PIC is the default for Haiku. | |
14142 | # The "-static" flag exists, but is broken. | |
14143 | lt_prog_compiler_static_CXX= | |
14144 | ;; | |
14145 | interix[3-9]*) | |
14146 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14147 | # Instead, we relocate shared libraries at runtime. | |
14148 | ;; | |
14149 | sysv4*MP*) | |
14150 | if test -d /usr/nec; then | |
14151 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14152 | fi | |
14153 | ;; | |
14154 | hpux*) | |
14155 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14156 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14157 | # sets the default TLS model and affects inlining. | |
14158 | case $host_cpu in | |
14159 | hppa*64*) | |
14160 | ;; | |
14161 | *) | |
14162 | lt_prog_compiler_pic_CXX='-fPIC' | |
14163 | ;; | |
14164 | esac | |
14165 | ;; | |
14166 | *qnx* | *nto*) | |
14167 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14168 | # it will coredump. | |
14169 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14170 | ;; | |
14171 | *) | |
14172 | lt_prog_compiler_pic_CXX='-fPIC' | |
14173 | ;; | |
14174 | esac | |
14175 | else | |
14176 | case $host_os in | |
14177 | aix[4-9]*) | |
14178 | # All AIX code is PIC. | |
14179 | if test "$host_cpu" = ia64; then | |
14180 | # AIX 5 now supports IA64 processor | |
14181 | lt_prog_compiler_static_CXX='-Bstatic' | |
14182 | else | |
14183 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14184 | fi | |
14185 | ;; | |
14186 | chorus*) | |
14187 | case $cc_basename in | |
14188 | cxch68*) | |
14189 | # Green Hills C++ Compiler | |
14190 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
14191 | ;; | |
14192 | esac | |
14193 | ;; | |
14194 | dgux*) | |
14195 | case $cc_basename in | |
14196 | ec++*) | |
14197 | lt_prog_compiler_pic_CXX='-KPIC' | |
14198 | ;; | |
14199 | ghcx*) | |
14200 | # Green Hills C++ Compiler | |
14201 | lt_prog_compiler_pic_CXX='-pic' | |
14202 | ;; | |
14203 | *) | |
14204 | ;; | |
14205 | esac | |
14206 | ;; | |
14207 | freebsd* | dragonfly*) | |
14208 | # FreeBSD uses GNU C++ | |
14209 | ;; | |
14210 | hpux9* | hpux10* | hpux11*) | |
14211 | case $cc_basename in | |
14212 | CC*) | |
14213 | lt_prog_compiler_wl_CXX='-Wl,' | |
14214 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14215 | if test "$host_cpu" != ia64; then | |
14216 | lt_prog_compiler_pic_CXX='+Z' | |
14217 | fi | |
14218 | ;; | |
14219 | aCC*) | |
14220 | lt_prog_compiler_wl_CXX='-Wl,' | |
14221 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14222 | case $host_cpu in | |
14223 | hppa*64*|ia64*) | |
14224 | # +Z the default | |
14225 | ;; | |
14226 | *) | |
14227 | lt_prog_compiler_pic_CXX='+Z' | |
14228 | ;; | |
14229 | esac | |
14230 | ;; | |
14231 | *) | |
14232 | ;; | |
14233 | esac | |
14234 | ;; | |
14235 | interix*) | |
14236 | # This is c89, which is MS Visual C++ (no shared libs) | |
14237 | # Anyone wants to do a port? | |
14238 | ;; | |
14239 | irix5* | irix6* | nonstopux*) | |
14240 | case $cc_basename in | |
14241 | CC*) | |
14242 | lt_prog_compiler_wl_CXX='-Wl,' | |
14243 | lt_prog_compiler_static_CXX='-non_shared' | |
14244 | # CC pic flag -KPIC is the default. | |
14245 | ;; | |
14246 | *) | |
14247 | ;; | |
14248 | esac | |
14249 | ;; | |
14250 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14251 | case $cc_basename in | |
14252 | KCC*) | |
14253 | # KAI C++ Compiler | |
14254 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14255 | lt_prog_compiler_pic_CXX='-fPIC' | |
14256 | ;; | |
14257 | ecpc* ) | |
14258 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14259 | lt_prog_compiler_wl_CXX='-Wl,' | |
14260 | lt_prog_compiler_pic_CXX='-KPIC' | |
14261 | lt_prog_compiler_static_CXX='-static' | |
14262 | ;; | |
14263 | icpc* ) | |
14264 | # Intel C++, used to be incompatible with GCC. | |
14265 | # ICC 10 doesn't accept -KPIC any more. | |
14266 | lt_prog_compiler_wl_CXX='-Wl,' | |
14267 | lt_prog_compiler_pic_CXX='-fPIC' | |
14268 | lt_prog_compiler_static_CXX='-static' | |
14269 | ;; | |
14270 | pgCC* | pgcpp*) | |
14271 | # Portland Group C++ compiler | |
14272 | lt_prog_compiler_wl_CXX='-Wl,' | |
14273 | lt_prog_compiler_pic_CXX='-fpic' | |
14274 | lt_prog_compiler_static_CXX='-Bstatic' | |
14275 | ;; | |
14276 | cxx*) | |
14277 | # Compaq C++ | |
14278 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14279 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14280 | lt_prog_compiler_pic_CXX= | |
14281 | lt_prog_compiler_static_CXX='-non_shared' | |
14282 | ;; | |
14283 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14284 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14285 | lt_prog_compiler_wl_CXX='-Wl,' | |
14286 | lt_prog_compiler_pic_CXX='-qpic' | |
14287 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14288 | ;; | |
14289 | *) | |
14290 | case `$CC -V 2>&1 | sed 5q` in | |
14291 | *Sun\ C*) | |
14292 | # Sun C++ 5.9 | |
14293 | lt_prog_compiler_pic_CXX='-KPIC' | |
14294 | lt_prog_compiler_static_CXX='-Bstatic' | |
14295 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14296 | ;; | |
14297 | esac | |
14298 | ;; | |
14299 | esac | |
14300 | ;; | |
14301 | lynxos*) | |
14302 | ;; | |
14303 | m88k*) | |
14304 | ;; | |
14305 | mvs*) | |
14306 | case $cc_basename in | |
14307 | cxx*) | |
14308 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14309 | ;; | |
14310 | *) | |
14311 | ;; | |
14312 | esac | |
14313 | ;; | |
14314 | netbsd*) | |
14315 | ;; | |
14316 | *qnx* | *nto*) | |
14317 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14318 | # it will coredump. | |
14319 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14320 | ;; | |
14321 | osf3* | osf4* | osf5*) | |
14322 | case $cc_basename in | |
14323 | KCC*) | |
14324 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14325 | ;; | |
14326 | RCC*) | |
14327 | # Rational C++ 2.4.1 | |
14328 | lt_prog_compiler_pic_CXX='-pic' | |
14329 | ;; | |
14330 | cxx*) | |
14331 | # Digital/Compaq C++ | |
14332 | lt_prog_compiler_wl_CXX='-Wl,' | |
14333 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14334 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14335 | lt_prog_compiler_pic_CXX= | |
14336 | lt_prog_compiler_static_CXX='-non_shared' | |
14337 | ;; | |
14338 | *) | |
14339 | ;; | |
14340 | esac | |
14341 | ;; | |
14342 | psos*) | |
14343 | ;; | |
14344 | solaris*) | |
14345 | case $cc_basename in | |
14346 | CC*) | |
14347 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14348 | lt_prog_compiler_pic_CXX='-KPIC' | |
14349 | lt_prog_compiler_static_CXX='-Bstatic' | |
14350 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14351 | ;; | |
14352 | gcx*) | |
14353 | # Green Hills C++ Compiler | |
14354 | lt_prog_compiler_pic_CXX='-PIC' | |
14355 | ;; | |
14356 | *) | |
14357 | ;; | |
14358 | esac | |
14359 | ;; | |
14360 | sunos4*) | |
14361 | case $cc_basename in | |
14362 | CC*) | |
14363 | # Sun C++ 4.x | |
14364 | lt_prog_compiler_pic_CXX='-pic' | |
14365 | lt_prog_compiler_static_CXX='-Bstatic' | |
14366 | ;; | |
14367 | lcc*) | |
14368 | # Lucid | |
14369 | lt_prog_compiler_pic_CXX='-pic' | |
14370 | ;; | |
14371 | *) | |
14372 | ;; | |
14373 | esac | |
14374 | ;; | |
14375 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14376 | case $cc_basename in | |
14377 | CC*) | |
14378 | lt_prog_compiler_wl_CXX='-Wl,' | |
14379 | lt_prog_compiler_pic_CXX='-KPIC' | |
14380 | lt_prog_compiler_static_CXX='-Bstatic' | |
14381 | ;; | |
14382 | esac | |
14383 | ;; | |
14384 | tandem*) | |
14385 | case $cc_basename in | |
14386 | NCC*) | |
14387 | # NonStop-UX NCC 3.20 | |
14388 | lt_prog_compiler_pic_CXX='-KPIC' | |
14389 | ;; | |
14390 | *) | |
14391 | ;; | |
14392 | esac | |
14393 | ;; | |
14394 | vxworks*) | |
14395 | ;; | |
14396 | *) | |
14397 | lt_prog_compiler_can_build_shared_CXX=no | |
14398 | ;; | |
14399 | esac | |
14400 | fi | |
14401 | ||
14402 | case $host_os in | |
14403 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14404 | *djgpp*) | |
14405 | lt_prog_compiler_pic_CXX= | |
14406 | ;; | |
14407 | *) | |
14408 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14409 | ;; | |
14410 | esac | |
14411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
14412 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
14413 | ||
14414 | ||
14415 | ||
14416 | # | |
14417 | # Check to make sure the PIC flag actually works. | |
14418 | # | |
14419 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14421 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
14422 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
14423 | $as_echo_n "(cached) " >&6 | |
14424 | else | |
14425 | lt_cv_prog_compiler_pic_works_CXX=no | |
14426 | ac_outfile=conftest.$ac_objext | |
14427 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14428 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14429 | # Insert the option either (1) after the last *FLAGS variable, or | |
14430 | # (2) before a word containing "conftest.", or (3) at the end. | |
14431 | # Note that $ac_compile itself does not contain backslashes and begins | |
14432 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14433 | # The option is referenced via a variable to avoid confusing sed. | |
14434 | lt_compile=`echo "$ac_compile" | $SED \ | |
14435 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14436 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14437 | -e 's:$: $lt_compiler_flag:'` | |
14438 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14439 | (eval "$lt_compile" 2>conftest.err) | |
14440 | ac_status=$? | |
14441 | cat conftest.err >&5 | |
14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14443 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14444 | # The compiler can only warn and ignore the option if not recognized | |
14445 | # So say no if there are warnings other than the usual output. | |
14446 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14447 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14448 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14449 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14450 | fi | |
14451 | fi | |
14452 | $RM conftest* | |
14453 | ||
14454 | fi | |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14456 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14457 | ||
14458 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14459 | case $lt_prog_compiler_pic_CXX in | |
14460 | "" | " "*) ;; | |
14461 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14462 | esac | |
14463 | else | |
14464 | lt_prog_compiler_pic_CXX= | |
14465 | lt_prog_compiler_can_build_shared_CXX=no | |
14466 | fi | |
14467 | ||
14468 | fi | |
14469 | ||
14470 | ||
14471 | ||
14472 | # | |
14473 | # Check to make sure the static flag actually works. | |
14474 | # | |
14475 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14477 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
14478 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
14479 | $as_echo_n "(cached) " >&6 | |
14480 | else | |
14481 | lt_cv_prog_compiler_static_works_CXX=no | |
14482 | save_LDFLAGS="$LDFLAGS" | |
14483 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14484 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14485 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14486 | # The linker can only warn and ignore the option if not recognized | |
14487 | # So say no if there are warnings | |
14488 | if test -s conftest.err; then | |
14489 | # Append any errors to the config.log. | |
14490 | cat conftest.err 1>&5 | |
14491 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14492 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14493 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14494 | lt_cv_prog_compiler_static_works_CXX=yes | |
14495 | fi | |
14496 | else | |
14497 | lt_cv_prog_compiler_static_works_CXX=yes | |
14498 | fi | |
14499 | fi | |
14500 | $RM -r conftest* | |
14501 | LDFLAGS="$save_LDFLAGS" | |
14502 | ||
14503 | fi | |
14504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14505 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14506 | ||
14507 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14508 | : | |
14509 | else | |
14510 | lt_prog_compiler_static_CXX= | |
14511 | fi | |
14512 | ||
14513 | ||
14514 | ||
14515 | ||
14516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14517 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14518 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14519 | $as_echo_n "(cached) " >&6 | |
14520 | else | |
14521 | lt_cv_prog_compiler_c_o_CXX=no | |
14522 | $RM -r conftest 2>/dev/null | |
14523 | mkdir conftest | |
14524 | cd conftest | |
14525 | mkdir out | |
14526 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14527 | ||
14528 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14529 | # Insert the option either (1) after the last *FLAGS variable, or | |
14530 | # (2) before a word containing "conftest.", or (3) at the end. | |
14531 | # Note that $ac_compile itself does not contain backslashes and begins | |
14532 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14533 | lt_compile=`echo "$ac_compile" | $SED \ | |
14534 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14535 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14536 | -e 's:$: $lt_compiler_flag:'` | |
14537 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14538 | (eval "$lt_compile" 2>out/conftest.err) | |
14539 | ac_status=$? | |
14540 | cat out/conftest.err >&5 | |
14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14542 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14543 | then | |
14544 | # The compiler can only warn and ignore the option if not recognized | |
14545 | # So say no if there are warnings | |
14546 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14547 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14548 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14549 | lt_cv_prog_compiler_c_o_CXX=yes | |
14550 | fi | |
14551 | fi | |
14552 | chmod u+w . 2>&5 | |
14553 | $RM conftest* | |
14554 | # SGI C++ compiler will create directory out/ii_files/ for | |
14555 | # template instantiation | |
14556 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14557 | $RM out/* && rmdir out | |
14558 | cd .. | |
14559 | $RM -r conftest | |
14560 | $RM conftest* | |
14561 | ||
14562 | fi | |
14563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14564 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14565 | ||
14566 | ||
14567 | ||
14568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14569 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14570 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14571 | $as_echo_n "(cached) " >&6 | |
14572 | else | |
14573 | lt_cv_prog_compiler_c_o_CXX=no | |
14574 | $RM -r conftest 2>/dev/null | |
14575 | mkdir conftest | |
14576 | cd conftest | |
14577 | mkdir out | |
14578 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14579 | ||
14580 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14581 | # Insert the option either (1) after the last *FLAGS variable, or | |
14582 | # (2) before a word containing "conftest.", or (3) at the end. | |
14583 | # Note that $ac_compile itself does not contain backslashes and begins | |
14584 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14585 | lt_compile=`echo "$ac_compile" | $SED \ | |
14586 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14587 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14588 | -e 's:$: $lt_compiler_flag:'` | |
14589 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14590 | (eval "$lt_compile" 2>out/conftest.err) | |
14591 | ac_status=$? | |
14592 | cat out/conftest.err >&5 | |
14593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14594 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14595 | then | |
14596 | # The compiler can only warn and ignore the option if not recognized | |
14597 | # So say no if there are warnings | |
14598 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14599 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14600 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14601 | lt_cv_prog_compiler_c_o_CXX=yes | |
14602 | fi | |
14603 | fi | |
14604 | chmod u+w . 2>&5 | |
14605 | $RM conftest* | |
14606 | # SGI C++ compiler will create directory out/ii_files/ for | |
14607 | # template instantiation | |
14608 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14609 | $RM out/* && rmdir out | |
14610 | cd .. | |
14611 | $RM -r conftest | |
14612 | $RM conftest* | |
14613 | ||
14614 | fi | |
14615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14616 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14617 | ||
14618 | ||
14619 | ||
14620 | ||
14621 | hard_links="nottested" | |
14622 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14623 | # do not overwrite the value of need_locks provided by the user | |
14624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14625 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14626 | hard_links=yes | |
14627 | $RM conftest* | |
14628 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14629 | touch conftest.a | |
14630 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14631 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14633 | $as_echo "$hard_links" >&6; } | |
14634 | if test "$hard_links" = no; then | |
14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14636 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14637 | need_locks=warn | |
14638 | fi | |
14639 | else | |
14640 | need_locks=no | |
14641 | fi | |
14642 | ||
14643 | ||
14644 | ||
14645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14646 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14647 | ||
14648 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14649 | case $host_os in | |
14650 | aix[4-9]*) | |
14651 | # If we're using GNU nm, then we don't want the "-C" option. | |
14652 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14653 | # Also, AIX nm treats weak defined symbols like other global defined | |
14654 | # symbols, whereas GNU nm marks them as "W". | |
14655 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14656 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14657 | else | |
14658 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14659 | fi | |
14660 | ;; | |
14661 | pw32*) | |
14662 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14663 | ;; | |
14664 | cygwin* | mingw* | cegcc*) | |
14665 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
14666 | ;; | |
14667 | *) | |
14668 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14669 | ;; | |
14670 | esac | |
14671 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14672 | ||
14673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14674 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14675 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14676 | ||
14677 | with_gnu_ld_CXX=$with_gnu_ld | |
14678 | ||
14679 | ||
14680 | ||
14681 | ||
14682 | ||
14683 | ||
14684 | # | |
14685 | # Do we need to explicitly link libc? | |
14686 | # | |
14687 | case "x$archive_cmds_need_lc_CXX" in | |
14688 | x|xyes) | |
14689 | # Assume -lc should be added | |
14690 | archive_cmds_need_lc_CXX=yes | |
14691 | ||
14692 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14693 | case $archive_cmds_CXX in | |
14694 | *'~'*) | |
14695 | # FIXME: we may have to deal with multi-command sequences. | |
14696 | ;; | |
14697 | '$CC '*) | |
14698 | # Test whether the compiler implicitly links with -lc since on some | |
14699 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14700 | # to ld, don't add -lc before -lgcc. | |
14701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14702 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
14703 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : | |
14704 | $as_echo_n "(cached) " >&6 | |
14705 | else | |
14706 | $RM conftest* | |
14707 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14708 | ||
14709 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14710 | (eval $ac_compile) 2>&5 | |
14711 | ac_status=$? | |
14712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14713 | test $ac_status = 0; } 2>conftest.err; then | |
14714 | soname=conftest | |
14715 | lib=conftest | |
14716 | libobjs=conftest.$ac_objext | |
14717 | deplibs= | |
14718 | wl=$lt_prog_compiler_wl_CXX | |
14719 | pic_flag=$lt_prog_compiler_pic_CXX | |
14720 | compiler_flags=-v | |
14721 | linker_flags=-v | |
14722 | verstring= | |
14723 | output_objdir=. | |
14724 | libname=conftest | |
14725 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14726 | allow_undefined_flag_CXX= | |
14727 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14728 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14729 | ac_status=$? | |
14730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14731 | test $ac_status = 0; } | |
14732 | then | |
14733 | lt_cv_archive_cmds_need_lc_CXX=no | |
14734 | else | |
14735 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14736 | fi | |
14737 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14738 | else | |
14739 | cat conftest.err 1>&5 | |
14740 | fi | |
14741 | $RM conftest* | |
14742 | ||
14743 | fi | |
14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14745 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14746 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14747 | ;; | |
14748 | esac | |
14749 | fi | |
14750 | ;; | |
14751 | esac | |
14752 | ||
14753 | ||
14754 | ||
14755 | ||
14756 | ||
14757 | ||
14758 | ||
14759 | ||
14760 | ||
14761 | ||
14762 | ||
14763 | ||
14764 | ||
14765 | ||
14766 | ||
14767 | ||
14768 | ||
14769 | ||
14770 | ||
14771 | ||
14772 | ||
14773 | ||
14774 | ||
14775 | ||
14776 | ||
14777 | ||
14778 | ||
14779 | ||
14780 | ||
14781 | ||
14782 | ||
14783 | ||
14784 | ||
14785 | ||
14786 | ||
14787 | ||
14788 | ||
14789 | ||
14790 | ||
14791 | ||
14792 | ||
14793 | ||
14794 | ||
14795 | ||
14796 | ||
14797 | ||
14798 | ||
14799 | ||
14800 | ||
14801 | ||
14802 | ||
14803 | ||
14804 | ||
14805 | ||
14806 | ||
14807 | ||
14808 | ||
14809 | ||
14810 | ||
14811 | ||
14812 | ||
14813 | ||
14814 | ||
14815 | ||
14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14817 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14818 | ||
14819 | library_names_spec= | |
14820 | libname_spec='lib$name' | |
14821 | soname_spec= | |
14822 | shrext_cmds=".so" | |
14823 | postinstall_cmds= | |
14824 | postuninstall_cmds= | |
14825 | finish_cmds= | |
14826 | finish_eval= | |
14827 | shlibpath_var= | |
14828 | shlibpath_overrides_runpath=unknown | |
14829 | version_type=none | |
14830 | dynamic_linker="$host_os ld.so" | |
14831 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14832 | need_lib_prefix=unknown | |
14833 | hardcode_into_libs=no | |
14834 | ||
14835 | # when you set need_version to no, make sure it does not cause -set_version | |
14836 | # flags to be left without arguments | |
14837 | need_version=unknown | |
14838 | ||
14839 | case $host_os in | |
14840 | aix3*) | |
14841 | version_type=linux | |
14842 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14843 | shlibpath_var=LIBPATH | |
14844 | ||
14845 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14846 | soname_spec='${libname}${release}${shared_ext}$major' | |
14847 | ;; | |
14848 | ||
14849 | aix[4-9]*) | |
14850 | version_type=linux | |
14851 | need_lib_prefix=no | |
14852 | need_version=no | |
14853 | hardcode_into_libs=yes | |
14854 | if test "$host_cpu" = ia64; then | |
14855 | # AIX 5 supports IA64 | |
14856 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14857 | shlibpath_var=LD_LIBRARY_PATH | |
14858 | else | |
14859 | # With GCC up to 2.95.x, collect2 would create an import file | |
14860 | # for dependence libraries. The import file would start with | |
14861 | # the line `#! .'. This would cause the generated library to | |
14862 | # depend on `.', always an invalid library. This was fixed in | |
14863 | # development snapshots of GCC prior to 3.0. | |
14864 | case $host_os in | |
14865 | aix4 | aix4.[01] | aix4.[01].*) | |
14866 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14867 | echo ' yes ' | |
14868 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14869 | : | |
14870 | else | |
14871 | can_build_shared=no | |
14872 | fi | |
14873 | ;; | |
14874 | esac | |
14875 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14876 | # soname into executable. Probably we can add versioning support to | |
14877 | # collect2, so additional links can be useful in future. | |
14878 | if test "$aix_use_runtimelinking" = yes; then | |
14879 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14880 | # instead of lib<name>.a to let people know that these are not | |
14881 | # typical AIX shared libraries. | |
14882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14883 | else | |
14884 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14885 | # and later when we are not doing run time linking. | |
14886 | library_names_spec='${libname}${release}.a $libname.a' | |
14887 | soname_spec='${libname}${release}${shared_ext}$major' | |
14888 | fi | |
14889 | shlibpath_var=LIBPATH | |
14890 | fi | |
14891 | ;; | |
14892 | ||
14893 | amigaos*) | |
14894 | case $host_cpu in | |
14895 | powerpc) | |
14896 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14897 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14899 | ;; | |
14900 | m68k) | |
14901 | library_names_spec='$libname.ixlibrary $libname.a' | |
14902 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14903 | 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' | |
14904 | ;; | |
14905 | esac | |
14906 | ;; | |
14907 | ||
14908 | beos*) | |
14909 | library_names_spec='${libname}${shared_ext}' | |
14910 | dynamic_linker="$host_os ld.so" | |
14911 | shlibpath_var=LIBRARY_PATH | |
14912 | ;; | |
14913 | ||
14914 | bsdi[45]*) | |
14915 | version_type=linux | |
14916 | need_version=no | |
14917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14918 | soname_spec='${libname}${release}${shared_ext}$major' | |
14919 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14920 | shlibpath_var=LD_LIBRARY_PATH | |
14921 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14922 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14923 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14924 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14925 | # libtool to hard-code these into programs | |
14926 | ;; | |
14927 | ||
14928 | cygwin* | mingw* | pw32* | cegcc*) | |
14929 | version_type=windows | |
14930 | shrext_cmds=".dll" | |
14931 | need_version=no | |
14932 | need_lib_prefix=no | |
14933 | ||
14934 | case $GCC,$host_os in | |
14935 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
14936 | library_names_spec='$libname.dll.a' | |
14937 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14938 | postinstall_cmds='base_file=`basename \${file}`~ | |
14939 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14940 | dldir=$destdir/`dirname \$dlpath`~ | |
14941 | test -d \$dldir || mkdir -p \$dldir~ | |
14942 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14943 | chmod a+x \$dldir/$dlname~ | |
14944 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14945 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14946 | fi' | |
14947 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14948 | dlpath=$dir/\$dldll~ | |
14949 | $RM \$dlpath' | |
14950 | shlibpath_overrides_runpath=yes | |
14951 | ||
14952 | case $host_os in | |
14953 | cygwin*) | |
14954 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14955 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14956 | ||
14957 | ;; | |
14958 | mingw* | cegcc*) | |
14959 | # MinGW DLLs use traditional 'lib' prefix | |
14960 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14961 | ;; | |
14962 | pw32*) | |
14963 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14964 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14965 | ;; | |
14966 | esac | |
14967 | ;; | |
14968 | ||
14969 | *) | |
14970 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14971 | ;; | |
14972 | esac | |
14973 | dynamic_linker='Win32 ld.exe' | |
14974 | # FIXME: first we should search . and the directory the executable is in | |
14975 | shlibpath_var=PATH | |
14976 | ;; | |
14977 | ||
14978 | darwin* | rhapsody*) | |
14979 | dynamic_linker="$host_os dyld" | |
14980 | version_type=darwin | |
14981 | need_lib_prefix=no | |
14982 | need_version=no | |
14983 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14984 | soname_spec='${libname}${release}${major}$shared_ext' | |
14985 | shlibpath_overrides_runpath=yes | |
14986 | shlibpath_var=DYLD_LIBRARY_PATH | |
14987 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14988 | ||
14989 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14990 | ;; | |
14991 | ||
14992 | dgux*) | |
14993 | version_type=linux | |
14994 | need_lib_prefix=no | |
14995 | need_version=no | |
14996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14997 | soname_spec='${libname}${release}${shared_ext}$major' | |
14998 | shlibpath_var=LD_LIBRARY_PATH | |
14999 | ;; | |
15000 | ||
3cb62297 L |
15001 | freebsd* | dragonfly*) |
15002 | # DragonFly does not have aout. When/if they implement a new | |
15003 | # versioning mechanism, adjust this. | |
15004 | if test -x /usr/bin/objformat; then | |
15005 | objformat=`/usr/bin/objformat` | |
15006 | else | |
15007 | case $host_os in | |
6d2920c8 | 15008 | freebsd[23].*) objformat=aout ;; |
3cb62297 L |
15009 | *) objformat=elf ;; |
15010 | esac | |
15011 | fi | |
15012 | version_type=freebsd-$objformat | |
15013 | case $version_type in | |
15014 | freebsd-elf*) | |
15015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15016 | need_version=no | |
15017 | need_lib_prefix=no | |
15018 | ;; | |
15019 | freebsd-*) | |
15020 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15021 | need_version=yes | |
15022 | ;; | |
15023 | esac | |
15024 | shlibpath_var=LD_LIBRARY_PATH | |
15025 | case $host_os in | |
6d2920c8 | 15026 | freebsd2.*) |
3cb62297 L |
15027 | shlibpath_overrides_runpath=yes |
15028 | ;; | |
15029 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15030 | shlibpath_overrides_runpath=yes | |
15031 | hardcode_into_libs=yes | |
15032 | ;; | |
15033 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15034 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15035 | shlibpath_overrides_runpath=no | |
15036 | hardcode_into_libs=yes | |
15037 | ;; | |
15038 | *) # from 4.6 on, and DragonFly | |
15039 | shlibpath_overrides_runpath=yes | |
15040 | hardcode_into_libs=yes | |
15041 | ;; | |
15042 | esac | |
15043 | ;; | |
15044 | ||
15045 | gnu*) | |
15046 | version_type=linux | |
15047 | need_lib_prefix=no | |
15048 | need_version=no | |
15049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15050 | soname_spec='${libname}${release}${shared_ext}$major' | |
15051 | shlibpath_var=LD_LIBRARY_PATH | |
15052 | hardcode_into_libs=yes | |
15053 | ;; | |
15054 | ||
15055 | haiku*) | |
15056 | version_type=linux | |
15057 | need_lib_prefix=no | |
15058 | need_version=no | |
15059 | dynamic_linker="$host_os runtime_loader" | |
15060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15061 | soname_spec='${libname}${release}${shared_ext}$major' | |
15062 | shlibpath_var=LIBRARY_PATH | |
15063 | shlibpath_overrides_runpath=yes | |
15064 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15065 | hardcode_into_libs=yes | |
15066 | ;; | |
15067 | ||
15068 | hpux9* | hpux10* | hpux11*) | |
15069 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15070 | # link against other versions. | |
15071 | version_type=sunos | |
15072 | need_lib_prefix=no | |
15073 | need_version=no | |
15074 | case $host_cpu in | |
15075 | ia64*) | |
15076 | shrext_cmds='.so' | |
15077 | hardcode_into_libs=yes | |
15078 | dynamic_linker="$host_os dld.so" | |
15079 | shlibpath_var=LD_LIBRARY_PATH | |
15080 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15082 | soname_spec='${libname}${release}${shared_ext}$major' | |
15083 | if test "X$HPUX_IA64_MODE" = X32; then | |
15084 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15085 | else | |
15086 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15087 | fi | |
15088 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15089 | ;; | |
15090 | hppa*64*) | |
15091 | shrext_cmds='.sl' | |
15092 | hardcode_into_libs=yes | |
15093 | dynamic_linker="$host_os dld.sl" | |
15094 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15095 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15097 | soname_spec='${libname}${release}${shared_ext}$major' | |
15098 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15099 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15100 | ;; | |
15101 | *) | |
15102 | shrext_cmds='.sl' | |
15103 | dynamic_linker="$host_os dld.sl" | |
15104 | shlibpath_var=SHLIB_PATH | |
15105 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15107 | soname_spec='${libname}${release}${shared_ext}$major' | |
15108 | ;; | |
15109 | esac | |
15110 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
15111 | postinstall_cmds='chmod 555 $lib' | |
15112 | # or fails outright, so override atomically: | |
15113 | install_override_mode=555 | |
15114 | ;; | |
15115 | ||
15116 | interix[3-9]*) | |
15117 | version_type=linux | |
15118 | need_lib_prefix=no | |
15119 | need_version=no | |
15120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15121 | soname_spec='${libname}${release}${shared_ext}$major' | |
15122 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15123 | shlibpath_var=LD_LIBRARY_PATH | |
15124 | shlibpath_overrides_runpath=no | |
15125 | hardcode_into_libs=yes | |
15126 | ;; | |
15127 | ||
15128 | irix5* | irix6* | nonstopux*) | |
15129 | case $host_os in | |
15130 | nonstopux*) version_type=nonstopux ;; | |
15131 | *) | |
15132 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15133 | version_type=linux | |
15134 | else | |
15135 | version_type=irix | |
15136 | fi ;; | |
15137 | esac | |
15138 | need_lib_prefix=no | |
15139 | need_version=no | |
15140 | soname_spec='${libname}${release}${shared_ext}$major' | |
15141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15142 | case $host_os in | |
15143 | irix5* | nonstopux*) | |
15144 | libsuff= shlibsuff= | |
15145 | ;; | |
15146 | *) | |
15147 | case $LD in # libtool.m4 will add one of these switches to LD | |
15148 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15149 | libsuff= shlibsuff= libmagic=32-bit;; | |
15150 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15151 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15152 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15153 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15154 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15155 | esac | |
15156 | ;; | |
15157 | esac | |
15158 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15159 | shlibpath_overrides_runpath=no | |
15160 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15161 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15162 | hardcode_into_libs=yes | |
15163 | ;; | |
15164 | ||
15165 | # No shared lib support for Linux oldld, aout, or coff. | |
15166 | linux*oldld* | linux*aout* | linux*coff*) | |
15167 | dynamic_linker=no | |
15168 | ;; | |
15169 | ||
15170 | # This must be Linux ELF. | |
15171 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
15172 | version_type=linux | |
15173 | need_lib_prefix=no | |
15174 | need_version=no | |
15175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15176 | soname_spec='${libname}${release}${shared_ext}$major' | |
15177 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15178 | shlibpath_var=LD_LIBRARY_PATH | |
15179 | shlibpath_overrides_runpath=no | |
15180 | ||
15181 | # Some binutils ld are patched to set DT_RUNPATH | |
15182 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
15183 | $as_echo_n "(cached) " >&6 | |
15184 | else | |
15185 | lt_cv_shlibpath_overrides_runpath=no | |
15186 | save_LDFLAGS=$LDFLAGS | |
15187 | save_libdir=$libdir | |
15188 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15189 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15191 | /* end confdefs.h. */ | |
15192 | ||
15193 | int | |
15194 | main () | |
15195 | { | |
15196 | ||
15197 | ; | |
15198 | return 0; | |
15199 | } | |
15200 | _ACEOF | |
15201 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15202 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
15203 | lt_cv_shlibpath_overrides_runpath=yes | |
15204 | fi | |
15205 | fi | |
15206 | rm -f core conftest.err conftest.$ac_objext \ | |
15207 | conftest$ac_exeext conftest.$ac_ext | |
15208 | LDFLAGS=$save_LDFLAGS | |
15209 | libdir=$save_libdir | |
15210 | ||
15211 | fi | |
15212 | ||
15213 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
15214 | ||
15215 | # This implies no fast_install, which is unacceptable. | |
15216 | # Some rework will be needed to allow for fast_install | |
15217 | # before this can be enabled. | |
15218 | hardcode_into_libs=yes | |
15219 | ||
15220 | # Append ld.so.conf contents to the search path | |
15221 | if test -f /etc/ld.so.conf; then | |
15222 | 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' ' '` | |
15223 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15224 | fi | |
15225 | ||
15226 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15227 | # powerpc, because MkLinux only supported shared libraries with the | |
15228 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15229 | # most powerpc-linux boxes support dynamic linking these days and | |
15230 | # people can always --disable-shared, the test was removed, and we | |
15231 | # assume the GNU/Linux dynamic linker is in use. | |
15232 | dynamic_linker='GNU/Linux ld.so' | |
15233 | ;; | |
15234 | ||
15235 | netbsd*) | |
15236 | version_type=sunos | |
15237 | need_lib_prefix=no | |
15238 | need_version=no | |
15239 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15241 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15242 | dynamic_linker='NetBSD (a.out) ld.so' | |
15243 | else | |
15244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15245 | soname_spec='${libname}${release}${shared_ext}$major' | |
15246 | dynamic_linker='NetBSD ld.elf_so' | |
15247 | fi | |
15248 | shlibpath_var=LD_LIBRARY_PATH | |
15249 | shlibpath_overrides_runpath=yes | |
15250 | hardcode_into_libs=yes | |
15251 | ;; | |
15252 | ||
15253 | newsos6) | |
15254 | version_type=linux | |
15255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15256 | shlibpath_var=LD_LIBRARY_PATH | |
15257 | shlibpath_overrides_runpath=yes | |
15258 | ;; | |
15259 | ||
15260 | *nto* | *qnx*) | |
15261 | version_type=qnx | |
15262 | need_lib_prefix=no | |
15263 | need_version=no | |
15264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15265 | soname_spec='${libname}${release}${shared_ext}$major' | |
15266 | shlibpath_var=LD_LIBRARY_PATH | |
15267 | shlibpath_overrides_runpath=no | |
15268 | hardcode_into_libs=yes | |
15269 | dynamic_linker='ldqnx.so' | |
15270 | ;; | |
15271 | ||
15272 | openbsd*) | |
15273 | version_type=sunos | |
15274 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15275 | need_lib_prefix=no | |
15276 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15277 | case $host_os in | |
15278 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15279 | *) need_version=no ;; | |
15280 | esac | |
15281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15282 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15283 | shlibpath_var=LD_LIBRARY_PATH | |
15284 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15285 | case $host_os in | |
15286 | openbsd2.[89] | openbsd2.[89].*) | |
15287 | shlibpath_overrides_runpath=no | |
15288 | ;; | |
15289 | *) | |
15290 | shlibpath_overrides_runpath=yes | |
15291 | ;; | |
15292 | esac | |
15293 | else | |
15294 | shlibpath_overrides_runpath=yes | |
15295 | fi | |
15296 | ;; | |
15297 | ||
15298 | os2*) | |
15299 | libname_spec='$name' | |
15300 | shrext_cmds=".dll" | |
15301 | need_lib_prefix=no | |
15302 | library_names_spec='$libname${shared_ext} $libname.a' | |
15303 | dynamic_linker='OS/2 ld.exe' | |
15304 | shlibpath_var=LIBPATH | |
15305 | ;; | |
15306 | ||
15307 | osf3* | osf4* | osf5*) | |
15308 | version_type=osf | |
15309 | need_lib_prefix=no | |
15310 | need_version=no | |
15311 | soname_spec='${libname}${release}${shared_ext}$major' | |
15312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15313 | shlibpath_var=LD_LIBRARY_PATH | |
15314 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15315 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15316 | ;; | |
15317 | ||
15318 | rdos*) | |
15319 | dynamic_linker=no | |
15320 | ;; | |
15321 | ||
15322 | solaris*) | |
15323 | version_type=linux | |
15324 | need_lib_prefix=no | |
15325 | need_version=no | |
15326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15327 | soname_spec='${libname}${release}${shared_ext}$major' | |
15328 | shlibpath_var=LD_LIBRARY_PATH | |
15329 | shlibpath_overrides_runpath=yes | |
15330 | hardcode_into_libs=yes | |
15331 | # ldd complains unless libraries are executable | |
15332 | postinstall_cmds='chmod +x $lib' | |
15333 | ;; | |
15334 | ||
15335 | sunos4*) | |
15336 | version_type=sunos | |
15337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15338 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15339 | shlibpath_var=LD_LIBRARY_PATH | |
15340 | shlibpath_overrides_runpath=yes | |
15341 | if test "$with_gnu_ld" = yes; then | |
15342 | need_lib_prefix=no | |
15343 | fi | |
15344 | need_version=yes | |
15345 | ;; | |
15346 | ||
15347 | sysv4 | sysv4.3*) | |
15348 | version_type=linux | |
15349 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15350 | soname_spec='${libname}${release}${shared_ext}$major' | |
15351 | shlibpath_var=LD_LIBRARY_PATH | |
15352 | case $host_vendor in | |
15353 | sni) | |
15354 | shlibpath_overrides_runpath=no | |
15355 | need_lib_prefix=no | |
15356 | runpath_var=LD_RUN_PATH | |
15357 | ;; | |
15358 | siemens) | |
15359 | need_lib_prefix=no | |
15360 | ;; | |
15361 | motorola) | |
15362 | need_lib_prefix=no | |
15363 | need_version=no | |
15364 | shlibpath_overrides_runpath=no | |
15365 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15366 | ;; | |
15367 | esac | |
15368 | ;; | |
15369 | ||
15370 | sysv4*MP*) | |
15371 | if test -d /usr/nec ;then | |
15372 | version_type=linux | |
15373 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15374 | soname_spec='$libname${shared_ext}.$major' | |
15375 | shlibpath_var=LD_LIBRARY_PATH | |
15376 | fi | |
15377 | ;; | |
15378 | ||
15379 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15380 | version_type=freebsd-elf | |
15381 | need_lib_prefix=no | |
15382 | need_version=no | |
15383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15384 | soname_spec='${libname}${release}${shared_ext}$major' | |
15385 | shlibpath_var=LD_LIBRARY_PATH | |
15386 | shlibpath_overrides_runpath=yes | |
15387 | hardcode_into_libs=yes | |
15388 | if test "$with_gnu_ld" = yes; then | |
15389 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15390 | else | |
15391 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15392 | case $host_os in | |
15393 | sco3.2v5*) | |
15394 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15395 | ;; | |
15396 | esac | |
15397 | fi | |
15398 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15399 | ;; | |
15400 | ||
15401 | tpf*) | |
15402 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15403 | version_type=linux | |
15404 | need_lib_prefix=no | |
15405 | need_version=no | |
15406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15407 | shlibpath_var=LD_LIBRARY_PATH | |
15408 | shlibpath_overrides_runpath=no | |
15409 | hardcode_into_libs=yes | |
15410 | ;; | |
15411 | ||
15412 | uts4*) | |
15413 | version_type=linux | |
15414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15415 | soname_spec='${libname}${release}${shared_ext}$major' | |
15416 | shlibpath_var=LD_LIBRARY_PATH | |
15417 | ;; | |
15418 | ||
15419 | *) | |
15420 | dynamic_linker=no | |
15421 | ;; | |
15422 | esac | |
15423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15424 | $as_echo "$dynamic_linker" >&6; } | |
15425 | test "$dynamic_linker" = no && can_build_shared=no | |
15426 | ||
15427 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15428 | if test "$GCC" = yes; then | |
15429 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15430 | fi | |
15431 | ||
15432 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
15433 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15434 | fi | |
15435 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15436 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15437 | fi | |
15438 | ||
3725885a | 15439 | |
ce2cded5 | 15440 | |
ce2cded5 | 15441 | |
ce2cded5 | 15442 | |
d7040cdb | 15443 | |
ce2cded5 | 15444 | |
ce2cded5 | 15445 | |
ce2cded5 | 15446 | |
d7040cdb | 15447 | |
ce2cded5 L |
15448 | |
15449 | ||
15450 | ||
15451 | ||
15452 | ||
15453 | ||
15454 | ||
15455 | ||
15456 | ||
15457 | ||
15458 | ||
15459 | ||
15460 | ||
15461 | ||
15462 | ||
15463 | ||
ce2cded5 L |
15464 | |
15465 | ||
15466 | ||
15467 | ||
15468 | ||
15469 | ||
15470 | ||
15471 | ||
15472 | ||
15473 | ||
15474 | ||
15475 | ||
3cb62297 L |
15476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15477 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15478 | hardcode_action_CXX= | |
15479 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15480 | test -n "$runpath_var_CXX" || | |
15481 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
ce2cded5 | 15482 | |
3cb62297 L |
15483 | # We can hardcode non-existent directories. |
15484 | if test "$hardcode_direct_CXX" != no && | |
15485 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15486 | # have to relink, otherwise we might link with an installed library | |
15487 | # when we should be linking with a yet-to-be-installed one | |
15488 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15489 | test "$hardcode_minus_L_CXX" != no; then | |
15490 | # Linking always hardcodes the temporary library directory. | |
15491 | hardcode_action_CXX=relink | |
15492 | else | |
15493 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15494 | hardcode_action_CXX=immediate | |
15495 | fi | |
15496 | else | |
15497 | # We cannot hardcode anything, or else we can only hardcode existing | |
15498 | # directories. | |
15499 | hardcode_action_CXX=unsupported | |
15500 | fi | |
15501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15502 | $as_echo "$hardcode_action_CXX" >&6; } | |
ce2cded5 | 15503 | |
3cb62297 L |
15504 | if test "$hardcode_action_CXX" = relink || |
15505 | test "$inherit_rpath_CXX" = yes; then | |
15506 | # Fast installation is not supported | |
15507 | enable_fast_install=no | |
15508 | elif test "$shlibpath_overrides_runpath" = yes || | |
15509 | test "$enable_shared" = no; then | |
15510 | # Fast installation is not necessary | |
15511 | enable_fast_install=needless | |
15512 | fi | |
ce2cded5 | 15513 | |
ce2cded5 | 15514 | |
ce2cded5 L |
15515 | |
15516 | ||
15517 | ||
d7040cdb | 15518 | |
3cb62297 L |
15519 | |
15520 | fi # test -n "$compiler" | |
15521 | ||
15522 | CC=$lt_save_CC | |
15523 | LDCXX=$LD | |
15524 | LD=$lt_save_LD | |
15525 | GCC=$lt_save_GCC | |
15526 | with_gnu_ld=$lt_save_with_gnu_ld | |
15527 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15528 | lt_cv_path_LD=$lt_save_path_LD | |
15529 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15530 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15531 | fi # test "$_lt_caught_CXX_error" != yes | |
15532 | ||
d7040cdb SE |
15533 | ac_ext=c |
15534 | ac_cpp='$CPP $CPPFLAGS' | |
15535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15538 | ||
67310ccd AM |
15539 | |
15540 | ||
d7040cdb SE |
15541 | |
15542 | ||
d7040cdb | 15543 | |
d7040cdb | 15544 | |
d7040cdb | 15545 | |
ce2cded5 L |
15546 | |
15547 | ||
15548 | ||
15549 | ||
15550 | ||
81ecdfbb | 15551 | ac_config_commands="$ac_config_commands libtool" |
ce2cded5 L |
15552 | |
15553 | ||
15554 | ||
15555 | ||
15556 | # Only expand once: | |
15557 | ||
d7040cdb SE |
15558 | |
15559 | ||
3e4fe8ac | 15560 | ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk" |
d7040cdb SE |
15561 | # If we haven't got the data from the intl directory, |
15562 | # assume NLS is disabled. | |
15563 | USE_NLS=no | |
15564 | LIBINTL= | |
15565 | LIBINTL_DEP= | |
15566 | INCINTL= | |
15567 | XGETTEXT= | |
15568 | GMSGFMT= | |
15569 | POSUB= | |
15570 | ||
15571 | if test -f ../intl/config.intl; then | |
15572 | . ../intl/config.intl | |
15573 | fi | |
81ecdfbb RW |
15574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
15575 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 15576 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15578 | $as_echo "no" >&6; } | |
d7040cdb | 15579 | else |
81ecdfbb RW |
15580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15581 | $as_echo "yes" >&6; } | |
d7040cdb | 15582 | |
81ecdfbb | 15583 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
15584 | |
15585 | ||
81ecdfbb RW |
15586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
15587 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
15588 | # Look for .po and .gmo files in the source directory. |
15589 | CATALOGS= | |
15590 | XLINGUAS= | |
15591 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
15592 | # If there aren't any .gmo files the shell will give us the | |
15593 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
15594 | # weeded out. | |
15595 | case "$cat" in *\**) | |
15596 | continue;; | |
15597 | esac | |
15598 | # The quadruple backslash is collapsed to a double backslash | |
15599 | # by the backticks, then collapsed again by the double quotes, | |
15600 | # leaving us with one backslash in the sed expression (right | |
15601 | # before the dot that mustn't act as a wildcard). | |
15602 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
15603 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
15604 | # The user is allowed to set LINGUAS to a list of languages to | |
15605 | # install catalogs for. If it's empty that means "all of them." | |
15606 | if test "x$LINGUAS" = x; then | |
15607 | CATALOGS="$CATALOGS $cat" | |
15608 | XLINGUAS="$XLINGUAS $lang" | |
15609 | else | |
15610 | case "$LINGUAS" in *$lang*) | |
15611 | CATALOGS="$CATALOGS $cat" | |
15612 | XLINGUAS="$XLINGUAS $lang" | |
15613 | ;; | |
15614 | esac | |
15615 | fi | |
15616 | done | |
15617 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
15618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
15619 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
15620 | |
15621 | ||
15622 | DATADIRNAME=share | |
15623 | ||
15624 | INSTOBJEXT=.mo | |
15625 | ||
15626 | GENCAT=gencat | |
15627 | ||
15628 | CATOBJEXT=.gmo | |
15629 | ||
15630 | fi | |
15631 | ||
15632 | MKINSTALLDIRS= | |
15633 | if test -n "$ac_aux_dir"; then | |
15634 | case "$ac_aux_dir" in | |
15635 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
15636 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
15637 | esac | |
15638 | fi | |
15639 | if test -z "$MKINSTALLDIRS"; then | |
15640 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
15641 | fi | |
15642 | ||
15643 | ||
15644 | ||
81ecdfbb RW |
15645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
15646 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
15647 | # Check whether --enable-nls was given. | |
15648 | if test "${enable_nls+set}" = set; then : | |
15649 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
15650 | else |
15651 | USE_NLS=yes | |
81ecdfbb RW |
15652 | fi |
15653 | ||
15654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
15655 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
15656 | |
15657 | ||
15658 | ||
15659 | ||
15660 | ||
15661 | ||
15662 | # Prepare PATH_SEPARATOR. | |
15663 | # The user is always right. | |
15664 | if test "${PATH_SEPARATOR+set}" != set; then | |
15665 | echo "#! /bin/sh" >conf$$.sh | |
15666 | echo "exit 0" >>conf$$.sh | |
15667 | chmod +x conf$$.sh | |
15668 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15669 | PATH_SEPARATOR=';' | |
15670 | else | |
15671 | PATH_SEPARATOR=: | |
15672 | fi | |
15673 | rm -f conf$$.sh | |
15674 | fi | |
15675 | ||
15676 | # Find out how to test for executable files. Don't use a zero-byte file, | |
15677 | # as systems may use methods other than mode bits to determine executability. | |
15678 | cat >conf$$.file <<_ASEOF | |
15679 | #! /bin/sh | |
15680 | exit 0 | |
15681 | _ASEOF | |
15682 | chmod +x conf$$.file | |
15683 | if test -x conf$$.file >/dev/null 2>&1; then | |
15684 | ac_executable_p="test -x" | |
15685 | else | |
15686 | ac_executable_p="test -f" | |
15687 | fi | |
15688 | rm -f conf$$.file | |
15689 | ||
15690 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15691 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
15692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15693 | $as_echo_n "checking for $ac_word... " >&6; } | |
15694 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
15695 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15696 | else |
15697 | case "$MSGFMT" in | |
15698 | [\\/]* | ?:[\\/]*) | |
15699 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15700 | ;; | |
15701 | *) | |
15702 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15703 | for ac_dir in $PATH; do | |
15704 | IFS="$ac_save_IFS" | |
15705 | test -z "$ac_dir" && ac_dir=. | |
15706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15707 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15708 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
15709 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
15710 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
15711 | break 2 | |
15712 | fi | |
15713 | fi | |
15714 | done | |
15715 | done | |
15716 | IFS="$ac_save_IFS" | |
15717 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
15718 | ;; | |
15719 | esac | |
15720 | fi | |
15721 | MSGFMT="$ac_cv_path_MSGFMT" | |
15722 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
15723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
15724 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 15725 | else |
81ecdfbb RW |
15726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15727 | $as_echo "no" >&6; } | |
d7040cdb SE |
15728 | fi |
15729 | ||
15730 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
15731 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
15732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15733 | $as_echo_n "checking for $ac_word... " >&6; } | |
15734 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
15735 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15736 | else |
15737 | case $GMSGFMT in | |
15738 | [\\/]* | ?:[\\/]*) | |
15739 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
15740 | ;; | |
15741 | *) | |
15742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15743 | for as_dir in $PATH | |
15744 | do | |
15745 | IFS=$as_save_IFS | |
15746 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
15747 | for ac_exec_ext in '' $ac_executable_extensions; do |
15748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 15749 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
15751 | break 2 |
15752 | fi | |
15753 | done | |
81ecdfbb RW |
15754 | done |
15755 | IFS=$as_save_IFS | |
d7040cdb SE |
15756 | |
15757 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
15758 | ;; | |
15759 | esac | |
15760 | fi | |
15761 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 15762 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
15763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
15764 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 15765 | else |
81ecdfbb RW |
15766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15767 | $as_echo "no" >&6; } | |
20e95c23 | 15768 | fi |
42ecbf5e | 15769 | |
20e95c23 | 15770 | |
252b5132 | 15771 | |
81ecdfbb | 15772 | |
d7040cdb SE |
15773 | # Prepare PATH_SEPARATOR. |
15774 | # The user is always right. | |
15775 | if test "${PATH_SEPARATOR+set}" != set; then | |
15776 | echo "#! /bin/sh" >conf$$.sh | |
15777 | echo "exit 0" >>conf$$.sh | |
15778 | chmod +x conf$$.sh | |
15779 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15780 | PATH_SEPARATOR=';' | |
15781 | else | |
15782 | PATH_SEPARATOR=: | |
15783 | fi | |
15784 | rm -f conf$$.sh | |
20e95c23 | 15785 | fi |
252b5132 | 15786 | |
d7040cdb SE |
15787 | # Find out how to test for executable files. Don't use a zero-byte file, |
15788 | # as systems may use methods other than mode bits to determine executability. | |
15789 | cat >conf$$.file <<_ASEOF | |
15790 | #! /bin/sh | |
15791 | exit 0 | |
15792 | _ASEOF | |
15793 | chmod +x conf$$.file | |
15794 | if test -x conf$$.file >/dev/null 2>&1; then | |
15795 | ac_executable_p="test -x" | |
20e95c23 | 15796 | else |
d7040cdb SE |
15797 | ac_executable_p="test -f" |
15798 | fi | |
15799 | rm -f conf$$.file | |
20e95c23 | 15800 | |
d7040cdb SE |
15801 | # Extract the first word of "xgettext", so it can be a program name with args. |
15802 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
15803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15804 | $as_echo_n "checking for $ac_word... " >&6; } | |
15805 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
15806 | $as_echo_n "(cached) " >&6 | |
252b5132 | 15807 | else |
d7040cdb SE |
15808 | case "$XGETTEXT" in |
15809 | [\\/]* | ?:[\\/]*) | |
15810 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
15811 | ;; | |
15812 | *) | |
15813 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15814 | for ac_dir in $PATH; do | |
15815 | IFS="$ac_save_IFS" | |
15816 | test -z "$ac_dir" && ac_dir=. | |
15817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15818 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15819 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
15820 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
15821 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
15822 | break 2 | |
15823 | fi | |
15824 | fi | |
15825 | done | |
15826 | done | |
15827 | IFS="$ac_save_IFS" | |
15828 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
15829 | ;; | |
15830 | esac | |
252b5132 | 15831 | fi |
d7040cdb SE |
15832 | XGETTEXT="$ac_cv_path_XGETTEXT" |
15833 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
15834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
15835 | $as_echo "$XGETTEXT" >&6; } | |
d5fbea21 | 15836 | else |
81ecdfbb RW |
15837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15838 | $as_echo "no" >&6; } | |
d5fbea21 DJ |
15839 | fi |
15840 | ||
d7040cdb | 15841 | rm -f messages.po |
d5fbea21 | 15842 | |
20e95c23 | 15843 | |
d7040cdb SE |
15844 | # Prepare PATH_SEPARATOR. |
15845 | # The user is always right. | |
15846 | if test "${PATH_SEPARATOR+set}" != set; then | |
15847 | echo "#! /bin/sh" >conf$$.sh | |
15848 | echo "exit 0" >>conf$$.sh | |
15849 | chmod +x conf$$.sh | |
15850 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15851 | PATH_SEPARATOR=';' | |
15852 | else | |
15853 | PATH_SEPARATOR=: | |
15854 | fi | |
15855 | rm -f conf$$.sh | |
15856 | fi | |
20e95c23 | 15857 | |
d7040cdb SE |
15858 | # Find out how to test for executable files. Don't use a zero-byte file, |
15859 | # as systems may use methods other than mode bits to determine executability. | |
15860 | cat >conf$$.file <<_ASEOF | |
15861 | #! /bin/sh | |
15862 | exit 0 | |
15863 | _ASEOF | |
15864 | chmod +x conf$$.file | |
15865 | if test -x conf$$.file >/dev/null 2>&1; then | |
15866 | ac_executable_p="test -x" | |
15867 | else | |
15868 | ac_executable_p="test -f" | |
15869 | fi | |
15870 | rm -f conf$$.file | |
20e95c23 | 15871 | |
d7040cdb SE |
15872 | # Extract the first word of "msgmerge", so it can be a program name with args. |
15873 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
15874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15875 | $as_echo_n "checking for $ac_word... " >&6; } | |
15876 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
15877 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15878 | else |
15879 | case "$MSGMERGE" in | |
15880 | [\\/]* | ?:[\\/]*) | |
15881 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
15882 | ;; | |
15883 | *) | |
15884 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15885 | for ac_dir in $PATH; do | |
15886 | IFS="$ac_save_IFS" | |
15887 | test -z "$ac_dir" && ac_dir=. | |
15888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15889 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15890 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
15891 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
15892 | break 2 | |
15893 | fi | |
15894 | fi | |
15895 | done | |
15896 | done | |
15897 | IFS="$ac_save_IFS" | |
15898 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
15899 | ;; | |
15900 | esac | |
15901 | fi | |
15902 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
15903 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
15904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
15905 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 15906 | else |
81ecdfbb RW |
15907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15908 | $as_echo "no" >&6; } | |
d7040cdb | 15909 | fi |
20e95c23 DJ |
15910 | |
15911 | ||
d7040cdb SE |
15912 | if test "$GMSGFMT" != ":"; then |
15913 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
15914 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
15915 | : ; | |
15916 | else | |
15917 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
15919 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
15920 | GMSGFMT=":" |
15921 | fi | |
15922 | fi | |
20e95c23 | 15923 | |
d7040cdb SE |
15924 | if test "$XGETTEXT" != ":"; then |
15925 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
15926 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
15927 | : ; | |
15928 | else | |
81ecdfbb RW |
15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
15930 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
15931 | XGETTEXT=":" |
15932 | fi | |
15933 | rm -f messages.po | |
20e95c23 | 15934 | fi |
42ecbf5e | 15935 | |
81ecdfbb | 15936 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 15937 | |
42ecbf5e | 15938 | |
252b5132 | 15939 | |
42ecbf5e DJ |
15940 | |
15941 | ||
d7040cdb | 15942 | for ac_prog in 'bison -y' byacc |
20e95c23 | 15943 | do |
d7040cdb SE |
15944 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
15945 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
15946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15947 | $as_echo_n "checking for $ac_word... " >&6; } | |
15948 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
15949 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 15950 | else |
d7040cdb SE |
15951 | if test -n "$YACC"; then |
15952 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 15953 | else |
d7040cdb SE |
15954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15955 | for as_dir in $PATH | |
15956 | do | |
15957 | IFS=$as_save_IFS | |
15958 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
15959 | for ac_exec_ext in '' $ac_executable_extensions; do |
15960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 15961 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 15962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
15963 | break 2 |
15964 | fi | |
15965 | done | |
81ecdfbb RW |
15966 | done |
15967 | IFS=$as_save_IFS | |
42ecbf5e | 15968 | |
42ecbf5e | 15969 | fi |
e5a52504 | 15970 | fi |
d7040cdb SE |
15971 | YACC=$ac_cv_prog_YACC |
15972 | if test -n "$YACC"; then | |
81ecdfbb RW |
15973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
15974 | $as_echo "$YACC" >&6; } | |
42ecbf5e | 15975 | else |
81ecdfbb RW |
15976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15977 | $as_echo "no" >&6; } | |
42ecbf5e | 15978 | fi |
252b5132 | 15979 | |
81ecdfbb | 15980 | |
d7040cdb | 15981 | test -n "$YACC" && break |
42ecbf5e | 15982 | done |
d7040cdb | 15983 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 15984 | |
d7040cdb SE |
15985 | for ac_prog in flex lex |
15986 | do | |
15987 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15988 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
15989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15990 | $as_echo_n "checking for $ac_word... " >&6; } | |
15991 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
15992 | $as_echo_n "(cached) " >&6 | |
d15b04bd | 15993 | else |
d7040cdb SE |
15994 | if test -n "$LEX"; then |
15995 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
15996 | else | |
15997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15998 | for as_dir in $PATH | |
15999 | do | |
16000 | IFS=$as_save_IFS | |
16001 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
16002 | for ac_exec_ext in '' $ac_executable_extensions; do |
16003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 16004 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 16005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16006 | break 2 |
16007 | fi | |
16008 | done | |
81ecdfbb RW |
16009 | done |
16010 | IFS=$as_save_IFS | |
d7040cdb SE |
16011 | |
16012 | fi | |
16013 | fi | |
16014 | LEX=$ac_cv_prog_LEX | |
16015 | if test -n "$LEX"; then | |
81ecdfbb RW |
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
16017 | $as_echo "$LEX" >&6; } | |
d7040cdb | 16018 | else |
81ecdfbb RW |
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16020 | $as_echo "no" >&6; } | |
d15b04bd | 16021 | fi |
e5a52504 | 16022 | |
81ecdfbb | 16023 | |
d7040cdb SE |
16024 | test -n "$LEX" && break |
16025 | done | |
16026 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 16027 | |
81ecdfbb RW |
16028 | if test "x$LEX" != "x:"; then |
16029 | cat >conftest.l <<_ACEOF | |
16030 | %% | |
16031 | a { ECHO; } | |
16032 | b { REJECT; } | |
16033 | c { yymore (); } | |
16034 | d { yyless (1); } | |
16035 | e { yyless (input () != 0); } | |
16036 | f { unput (yytext[0]); } | |
16037 | . { BEGIN INITIAL; } | |
16038 | %% | |
16039 | #ifdef YYTEXT_POINTER | |
16040 | extern char *yytext; | |
d7040cdb | 16041 | #endif |
42ecbf5e | 16042 | int |
81ecdfbb | 16043 | main (void) |
42ecbf5e | 16044 | { |
81ecdfbb | 16045 | return ! yylex () + ! yywrap (); |
42ecbf5e DJ |
16046 | } |
16047 | _ACEOF | |
81ecdfbb RW |
16048 | { { ac_try="$LEX conftest.l" |
16049 | case "(($ac_try" in | |
16050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16051 | *) ac_try_echo=$ac_try;; | |
16052 | esac | |
16053 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16054 | $as_echo "$ac_try_echo"; } >&5 | |
16055 | (eval "$LEX conftest.l") 2>&5 | |
42ecbf5e | 16056 | ac_status=$? |
81ecdfbb RW |
16057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16058 | test $ac_status = 0; } | |
16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
16060 | $as_echo_n "checking lex output file root... " >&6; } | |
16061 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
16062 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 16063 | else |
42ecbf5e | 16064 | |
81ecdfbb RW |
16065 | if test -f lex.yy.c; then |
16066 | ac_cv_prog_lex_root=lex.yy | |
16067 | elif test -f lexyy.c; then | |
16068 | ac_cv_prog_lex_root=lexyy | |
16069 | else | |
16070 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
42ecbf5e | 16071 | fi |
42ecbf5e | 16072 | fi |
81ecdfbb RW |
16073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
16074 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
16075 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 16076 | |
81ecdfbb RW |
16077 | if test -z "${LEXLIB+set}"; then |
16078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
16079 | $as_echo_n "checking lex library... " >&6; } | |
16080 | if test "${ac_cv_lib_lex+set}" = set; then : | |
16081 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16082 | else |
20e95c23 | 16083 | |
81ecdfbb RW |
16084 | ac_save_LIBS=$LIBS |
16085 | ac_cv_lib_lex='none needed' | |
16086 | for ac_lib in '' -lfl -ll; do | |
16087 | LIBS="$ac_lib $ac_save_LIBS" | |
16088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16089 | /* end confdefs.h. */ | |
16090 | `cat $LEX_OUTPUT_ROOT.c` | |
16091 | _ACEOF | |
16092 | if ac_fn_c_try_link "$LINENO"; then : | |
16093 | ac_cv_lib_lex=$ac_lib | |
20e95c23 | 16094 | fi |
81ecdfbb RW |
16095 | rm -f core conftest.err conftest.$ac_objext \ |
16096 | conftest$ac_exeext conftest.$ac_ext | |
16097 | test "$ac_cv_lib_lex" != 'none needed' && break | |
16098 | done | |
16099 | LIBS=$ac_save_LIBS | |
20e95c23 DJ |
16100 | |
16101 | fi | |
81ecdfbb RW |
16102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
16103 | $as_echo "$ac_cv_lib_lex" >&6; } | |
16104 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb | 16105 | fi |
20e95c23 | 16106 | |
20e95c23 | 16107 | |
81ecdfbb RW |
16108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
16109 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
16110 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
16111 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
16112 | else |
16113 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 16114 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
16115 | # not all implementations provide the %pointer and %array declarations. |
16116 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 16117 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
16118 | LIBS="$LEXLIB $ac_save_LIBS" |
16119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16120 | /* end confdefs.h. */ | |
16121 | #define YYTEXT_POINTER 1 | |
d7040cdb | 16122 | `cat $LEX_OUTPUT_ROOT.c` |
20e95c23 | 16123 | _ACEOF |
81ecdfbb | 16124 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 16125 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 16126 | fi |
81ecdfbb RW |
16127 | rm -f core conftest.err conftest.$ac_objext \ |
16128 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 16129 | LIBS=$ac_save_LIBS |
d7040cdb SE |
16130 | |
16131 | fi | |
81ecdfbb RW |
16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
16133 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
16134 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
16135 | ||
81ecdfbb | 16136 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
16137 | |
16138 | fi | |
81ecdfbb | 16139 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
d7040cdb SE |
16140 | |
16141 | fi | |
16142 | if test "$LEX" = :; then | |
16143 | LEX=${am_missing_run}flex | |
16144 | fi | |
16145 | ||
81ecdfbb RW |
16146 | |
16147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
16148 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
16149 | # Check whether --enable-maintainer-mode was given. | |
16150 | if test "${enable_maintainer_mode+set}" = set; then : | |
16151 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 16152 | else |
d7040cdb | 16153 | USE_MAINTAINER_MODE=no |
81ecdfbb | 16154 | fi |
d7040cdb | 16155 | |
81ecdfbb RW |
16156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
16157 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
16158 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
16159 | MAINTAINER_MODE_TRUE= |
16160 | MAINTAINER_MODE_FALSE='#' | |
16161 | else | |
16162 | MAINTAINER_MODE_TRUE='#' | |
16163 | MAINTAINER_MODE_FALSE= | |
252b5132 | 16164 | fi |
252b5132 | 16165 | |
d7040cdb SE |
16166 | MAINT=$MAINTAINER_MODE_TRUE |
16167 | ||
16168 | ||
81ecdfbb | 16169 | if false; then |
d7040cdb SE |
16170 | GENINSRC_NEVER_TRUE= |
16171 | GENINSRC_NEVER_FALSE='#' | |
16172 | else | |
16173 | GENINSRC_NEVER_TRUE='#' | |
16174 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
16175 | fi |
16176 | ||
81ecdfbb RW |
16177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
16178 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
16179 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
16180 | $as_echo_n "(cached) " >&6 | |
eccbf555 AM |
16181 | else |
16182 | echo abfoo >t1 | |
16183 | echo cdfoo >t2 | |
16184 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
16185 | if cmp t1 t2 2 2 > /dev/null 2>&1; then | |
16186 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
16187 | : | |
16188 | else | |
16189 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
16190 | fi | |
16191 | fi | |
16192 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
16193 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
16194 | : | |
16195 | else | |
16196 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
16197 | fi | |
16198 | fi | |
16199 | rm t1 t2 | |
16200 | ||
16201 | fi | |
81ecdfbb RW |
16202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
16203 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
eccbf555 AM |
16204 | do_compare="$gcc_cv_prog_cmp_skip" |
16205 | ||
16206 | ||
d7040cdb SE |
16207 | |
16208 | . ${srcdir}/configure.host | |
16209 | ||
16210 | ||
16211 | ||
16212 | ||
252b5132 RH |
16213 | |
16214 | ||
6738cadc | 16215 | |
b27caf75 | 16216 | |
58797674 | 16217 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h |
81ecdfbb RW |
16218 | do : |
16219 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16220 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16221 | eval as_val=\$$as_ac_Header | |
16222 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16223 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16224 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16225 | _ACEOF |
16226 | ||
16227 | fi | |
16228 | ||
252b5132 RH |
16229 | done |
16230 | ||
5d3236ee DK |
16231 | for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h |
16232 | do : | |
16233 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16234 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16235 | eval as_val=\$$as_ac_Header | |
16236 | if test "x$as_val" = x""yes; then : | |
16237 | cat >>confdefs.h <<_ACEOF | |
16238 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16239 | _ACEOF | |
16240 | ||
16241 | fi | |
16242 | ||
16243 | done | |
16244 | ||
208a4923 NC |
16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
16246 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
16247 | if test "${gcc_cv_header_string+set}" = set; then : | |
16248 | $as_echo_n "(cached) " >&6 | |
16249 | else | |
16250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16251 | /* end confdefs.h. */ | |
16252 | #include <string.h> | |
16253 | #include <strings.h> | |
16254 | int | |
16255 | main () | |
16256 | { | |
16257 | ||
16258 | ; | |
16259 | return 0; | |
16260 | } | |
16261 | _ACEOF | |
16262 | if ac_fn_c_try_compile "$LINENO"; then : | |
16263 | gcc_cv_header_string=yes | |
16264 | else | |
16265 | gcc_cv_header_string=no | |
16266 | fi | |
16267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16268 | fi | |
16269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
16270 | $as_echo "$gcc_cv_header_string" >&6; } | |
16271 | if test $gcc_cv_header_string = yes; then | |
16272 | ||
16273 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
16274 | ||
16275 | fi | |
16276 | ||
44350750 | 16277 | for ac_func in glob mkstemp realpath sbrk setlocale waitpid |
81ecdfbb RW |
16278 | do : |
16279 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16280 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16281 | eval as_val=\$$as_ac_var | |
16282 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16283 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16284 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
42ecbf5e | 16285 | _ACEOF |
252b5132 | 16286 | |
252b5132 RH |
16287 | fi |
16288 | done | |
16289 | ||
5d3236ee DK |
16290 | for ac_func in open lseek close |
16291 | do : | |
16292 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16293 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16294 | eval as_val=\$$as_ac_var | |
16295 | if test "x$as_val" = x""yes; then : | |
16296 | cat >>confdefs.h <<_ACEOF | |
16297 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16298 | _ACEOF | |
16299 | ||
16300 | fi | |
16301 | done | |
16302 | ||
252b5132 | 16303 | ac_header_dirent=no |
42ecbf5e | 16304 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
16305 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
16306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
16307 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
16308 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
16309 | $as_echo_n "(cached) " >&6 | |
16310 | else | |
16311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 16312 | /* end confdefs.h. */ |
252b5132 RH |
16313 | #include <sys/types.h> |
16314 | #include <$ac_hdr> | |
42ecbf5e DJ |
16315 | |
16316 | int | |
16317 | main () | |
16318 | { | |
16319 | if ((DIR *) 0) | |
16320 | return 0; | |
16321 | ; | |
16322 | return 0; | |
16323 | } | |
16324 | _ACEOF | |
81ecdfbb | 16325 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
16326 | eval "$as_ac_Header=yes" |
16327 | else | |
81ecdfbb | 16328 | eval "$as_ac_Header=no" |
42ecbf5e | 16329 | fi |
81ecdfbb | 16330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 16331 | fi |
81ecdfbb RW |
16332 | eval ac_res=\$$as_ac_Header |
16333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16334 | $as_echo "$ac_res" >&6; } | |
16335 | eval as_val=\$$as_ac_Header | |
16336 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16337 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16338 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16339 | _ACEOF |
16340 | ||
16341 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 16342 | fi |
42ecbf5e | 16343 | |
d15b04bd L |
16344 | done |
16345 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
16346 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
16347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16348 | $as_echo_n "checking for library containing opendir... " >&6; } | |
16349 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16350 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
16351 | else |
16352 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 16353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16354 | /* end confdefs.h. */ |
16355 | ||
81ecdfbb RW |
16356 | /* Override any GCC internal prototype to avoid an error. |
16357 | Use char because int might match the return type of a GCC | |
16358 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16359 | #ifdef __cplusplus |
16360 | extern "C" | |
16361 | #endif | |
42ecbf5e DJ |
16362 | char opendir (); |
16363 | int | |
16364 | main () | |
16365 | { | |
81ecdfbb | 16366 | return opendir (); |
42ecbf5e DJ |
16367 | ; |
16368 | return 0; | |
16369 | } | |
16370 | _ACEOF | |
81ecdfbb RW |
16371 | for ac_lib in '' dir; do |
16372 | if test -z "$ac_lib"; then | |
16373 | ac_res="none required" | |
16374 | else | |
16375 | ac_res=-l$ac_lib | |
42ecbf5e | 16376 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
16377 | fi |
16378 | if ac_fn_c_try_link "$LINENO"; then : | |
16379 | ac_cv_search_opendir=$ac_res | |
16380 | fi | |
16381 | rm -f core conftest.err conftest.$ac_objext \ | |
16382 | conftest$ac_exeext | |
16383 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16384 | break | |
16385 | fi | |
16386 | done | |
16387 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e5a52504 | 16388 | |
42ecbf5e | 16389 | else |
81ecdfbb | 16390 | ac_cv_search_opendir=no |
252b5132 | 16391 | fi |
81ecdfbb | 16392 | rm conftest.$ac_ext |
42ecbf5e DJ |
16393 | LIBS=$ac_func_search_save_LIBS |
16394 | fi | |
81ecdfbb RW |
16395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
16396 | $as_echo "$ac_cv_search_opendir" >&6; } | |
16397 | ac_res=$ac_cv_search_opendir | |
16398 | if test "$ac_res" != no; then : | |
16399 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 16400 | |
d15b04bd | 16401 | fi |
252b5132 RH |
16402 | |
16403 | else | |
81ecdfbb RW |
16404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16405 | $as_echo_n "checking for library containing opendir... " >&6; } | |
16406 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16407 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16408 | else |
42ecbf5e | 16409 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 16410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16411 | /* end confdefs.h. */ |
16412 | ||
81ecdfbb RW |
16413 | /* Override any GCC internal prototype to avoid an error. |
16414 | Use char because int might match the return type of a GCC | |
16415 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16416 | #ifdef __cplusplus |
16417 | extern "C" | |
16418 | #endif | |
42ecbf5e DJ |
16419 | char opendir (); |
16420 | int | |
16421 | main () | |
16422 | { | |
81ecdfbb | 16423 | return opendir (); |
42ecbf5e DJ |
16424 | ; |
16425 | return 0; | |
16426 | } | |
16427 | _ACEOF | |
81ecdfbb RW |
16428 | for ac_lib in '' x; do |
16429 | if test -z "$ac_lib"; then | |
16430 | ac_res="none required" | |
16431 | else | |
16432 | ac_res=-l$ac_lib | |
42ecbf5e | 16433 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
16434 | fi |
16435 | if ac_fn_c_try_link "$LINENO"; then : | |
16436 | ac_cv_search_opendir=$ac_res | |
16437 | fi | |
16438 | rm -f core conftest.err conftest.$ac_objext \ | |
16439 | conftest$ac_exeext | |
16440 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16441 | break | |
16442 | fi | |
16443 | done | |
16444 | if test "${ac_cv_search_opendir+set}" = set; then : | |
252b5132 | 16445 | |
42ecbf5e | 16446 | else |
81ecdfbb | 16447 | ac_cv_search_opendir=no |
252b5132 | 16448 | fi |
81ecdfbb | 16449 | rm conftest.$ac_ext |
42ecbf5e | 16450 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 16451 | fi |
81ecdfbb RW |
16452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
16453 | $as_echo "$ac_cv_search_opendir" >&6; } | |
16454 | ac_res=$ac_cv_search_opendir | |
16455 | if test "$ac_res" != no; then : | |
16456 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 16457 | |
d15b04bd | 16458 | fi |
252b5132 RH |
16459 | |
16460 | fi | |
16461 | ||
16462 | ||
5d3236ee DK |
16463 | # Check for dlopen support and enable plugins if possible. |
16464 | enable_plugins=yes | |
16465 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
16466 | " | |
16467 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
16468 | ||
16469 | else | |
16470 | enable_plugins=no | |
16471 | fi | |
16472 | ||
16473 | ||
16474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
16475 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
16476 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16477 | $as_echo_n "(cached) " >&6 | |
16478 | else | |
16479 | ac_func_search_save_LIBS=$LIBS | |
16480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16481 | /* end confdefs.h. */ | |
16482 | ||
16483 | /* Override any GCC internal prototype to avoid an error. | |
16484 | Use char because int might match the return type of a GCC | |
16485 | builtin and then its argument prototype would still apply. */ | |
16486 | #ifdef __cplusplus | |
16487 | extern "C" | |
16488 | #endif | |
16489 | char dlopen (); | |
16490 | int | |
16491 | main () | |
16492 | { | |
16493 | return dlopen (); | |
16494 | ; | |
16495 | return 0; | |
16496 | } | |
16497 | _ACEOF | |
16498 | for ac_lib in '' dl; do | |
16499 | if test -z "$ac_lib"; then | |
16500 | ac_res="none required" | |
16501 | else | |
16502 | ac_res=-l$ac_lib | |
16503 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16504 | fi | |
16505 | if ac_fn_c_try_link "$LINENO"; then : | |
16506 | ac_cv_search_dlopen=$ac_res | |
16507 | fi | |
16508 | rm -f core conftest.err conftest.$ac_objext \ | |
16509 | conftest$ac_exeext | |
16510 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16511 | break | |
16512 | fi | |
16513 | done | |
16514 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16515 | ||
16516 | else | |
16517 | ac_cv_search_dlopen=no | |
16518 | fi | |
16519 | rm conftest.$ac_ext | |
16520 | LIBS=$ac_func_search_save_LIBS | |
16521 | fi | |
16522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
16523 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
16524 | ac_res=$ac_cv_search_dlopen | |
16525 | if test "$ac_res" != no; then : | |
16526 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16527 | ||
16528 | else | |
16529 | enable_plugins=no | |
16530 | fi | |
16531 | ||
16532 | for ac_func in dlopen dlsym dlclose | |
16533 | do : | |
16534 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16535 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16536 | eval as_val=\$$as_ac_var | |
16537 | if test "x$as_val" = x""yes; then : | |
16538 | cat >>confdefs.h <<_ACEOF | |
16539 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16540 | _ACEOF | |
16541 | ||
16542 | else | |
16543 | enable_plugins=no | |
16544 | fi | |
16545 | done | |
16546 | ||
3917d5d5 DK |
16547 | # We also support plugins on Windows (MinGW). |
16548 | if test x$enable_plugins = xno ; then | |
f31d24a0 | 16549 | for ac_header in windows.h |
3917d5d5 | 16550 | do : |
f31d24a0 | 16551 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default |
3917d5d5 | 16552 | " |
f31d24a0 | 16553 | if test "x$ac_cv_header_windows_h" = x""yes; then : |
3917d5d5 DK |
16554 | cat >>confdefs.h <<_ACEOF |
16555 | #define HAVE_WINDOWS_H 1 | |
16556 | _ACEOF | |
16557 | enable_plugins=yes | |
16558 | fi | |
16559 | ||
16560 | done | |
16561 | ||
16562 | fi | |
5d3236ee DK |
16563 | if test x$enable_plugins = xyes; then |
16564 | ENABLE_PLUGINS_TRUE= | |
16565 | ENABLE_PLUGINS_FALSE='#' | |
16566 | else | |
16567 | ENABLE_PLUGINS_TRUE='#' | |
16568 | ENABLE_PLUGINS_FALSE= | |
16569 | fi | |
16570 | ||
16571 | ||
02ecc8e9 L |
16572 | # Check whether --enable-initfini-array was given. |
16573 | if test "${enable_initfini_array+set}" = set; then : | |
16574 | enableval=$enable_initfini_array; | |
16575 | else | |
16576 | ||
16577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 | |
16578 | $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } | |
16579 | if test "${gcc_cv_initfini_array+set}" = set; then : | |
16580 | $as_echo_n "(cached) " >&6 | |
16581 | else | |
16582 | if test "x${build}" = "x${target}" ; then | |
16583 | if test "$cross_compiling" = yes; then : | |
16584 | gcc_cv_initfini_array=no | |
16585 | else | |
16586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16587 | /* end confdefs.h. */ | |
16588 | ||
16589 | static int x = -1; | |
16590 | int main (void) { return x; } | |
16591 | int foo (void) { x = 0; } | |
16592 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
16593 | _ACEOF | |
16594 | if ac_fn_c_try_run "$LINENO"; then : | |
16595 | gcc_cv_initfini_array=yes | |
16596 | else | |
16597 | gcc_cv_initfini_array=no | |
16598 | fi | |
16599 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16600 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16601 | fi | |
16602 | ||
16603 | else | |
16604 | gcc_cv_initfini_array=no | |
16605 | fi | |
16606 | fi | |
16607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5 | |
16608 | $as_echo "$gcc_cv_initfini_array" >&6; } | |
16609 | enable_initfini_array=$gcc_cv_initfini_array | |
16610 | ||
16611 | fi | |
16612 | ||
16613 | ||
16614 | if test $enable_initfini_array = yes; then | |
16615 | ||
16616 | $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h | |
16617 | ||
16618 | fi | |
16619 | ||
81ecdfbb RW |
16620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
16621 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
16622 | if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then : | |
16623 | $as_echo_n "(cached) " >&6 | |
34875e64 | 16624 | else |
81ecdfbb | 16625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 16626 | /* end confdefs.h. */ |
34875e64 | 16627 | #include <unistd.h> |
42ecbf5e DJ |
16628 | int |
16629 | main () | |
16630 | { | |
34875e64 | 16631 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
16632 | ; |
16633 | return 0; | |
16634 | } | |
16635 | _ACEOF | |
81ecdfbb | 16636 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
16637 | ld_cv_decl_getopt_unistd_h=yes |
16638 | else | |
81ecdfbb | 16639 | ld_cv_decl_getopt_unistd_h=no |
34875e64 | 16640 | fi |
81ecdfbb | 16641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
16642 | fi |
16643 | ||
81ecdfbb RW |
16644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 |
16645 | $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 | 16646 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 16647 | |
81ecdfbb | 16648 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
16649 | |
16650 | fi | |
42ecbf5e | 16651 | |
252b5132 RH |
16652 | |
16653 | case "${host}" in | |
a8100d5b | 16654 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e | 16655 | |
81ecdfbb | 16656 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
252b5132 RH |
16657 | ;; |
16658 | esac | |
16659 | ||
81ecdfbb RW |
16660 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
16661 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
16662 | ac_have_decl=1 | |
252b5132 | 16663 | else |
81ecdfbb RW |
16664 | ac_have_decl=0 |
16665 | fi | |
502bdb00 | 16666 | |
81ecdfbb RW |
16667 | cat >>confdefs.h <<_ACEOF |
16668 | #define HAVE_DECL_STRSTR $ac_have_decl | |
42ecbf5e | 16669 | _ACEOF |
81ecdfbb RW |
16670 | ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" |
16671 | if test "x$ac_cv_have_decl_free" = x""yes; then : | |
16672 | ac_have_decl=1 | |
252b5132 | 16673 | else |
81ecdfbb | 16674 | ac_have_decl=0 |
252b5132 RH |
16675 | fi |
16676 | ||
502bdb00 | 16677 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16678 | #define HAVE_DECL_FREE $ac_have_decl |
502bdb00 | 16679 | _ACEOF |
81ecdfbb RW |
16680 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" |
16681 | if test "x$ac_cv_have_decl_sbrk" = x""yes; then : | |
16682 | ac_have_decl=1 | |
16683 | else | |
16684 | ac_have_decl=0 | |
16685 | fi | |
42ecbf5e | 16686 | |
81ecdfbb RW |
16687 | cat >>confdefs.h <<_ACEOF |
16688 | #define HAVE_DECL_SBRK $ac_have_decl | |
16689 | _ACEOF | |
16690 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
16691 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : | |
16692 | ac_have_decl=1 | |
16693 | else | |
16694 | ac_have_decl=0 | |
16695 | fi | |
502bdb00 | 16696 | |
81ecdfbb RW |
16697 | cat >>confdefs.h <<_ACEOF |
16698 | #define HAVE_DECL_GETENV $ac_have_decl | |
16699 | _ACEOF | |
16700 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" | |
16701 | if test "x$ac_cv_have_decl_environ" = x""yes; then : | |
16702 | ac_have_decl=1 | |
502bdb00 | 16703 | else |
81ecdfbb RW |
16704 | ac_have_decl=0 |
16705 | fi | |
16706 | ||
16707 | cat >>confdefs.h <<_ACEOF | |
16708 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
42ecbf5e | 16709 | _ACEOF |
252b5132 | 16710 | |
252b5132 | 16711 | |
81ecdfbb RW |
16712 | # Link in zlib if we can. This is needed only for the bootstrap tests |
16713 | # right now, since those tests use libbfd, which depends on zlib. | |
52546677 RM |
16714 | |
16715 | # See if the user specified whether he wants zlib support or not. | |
16716 | ||
16717 | # Check whether --with-zlib was given. | |
16718 | if test "${with_zlib+set}" = set; then : | |
16719 | withval=$with_zlib; | |
16720 | else | |
16721 | with_zlib=auto | |
16722 | fi | |
16723 | ||
16724 | ||
16725 | if test "$with_zlib" != "no"; then | |
16726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
81ecdfbb RW |
16727 | $as_echo_n "checking for library containing zlibVersion... " >&6; } |
16728 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
16729 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16730 | else |
81ecdfbb RW |
16731 | ac_func_search_save_LIBS=$LIBS |
16732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 16733 | /* end confdefs.h. */ |
502bdb00 | 16734 | |
81ecdfbb RW |
16735 | /* Override any GCC internal prototype to avoid an error. |
16736 | Use char because int might match the return type of a GCC | |
4474d12b | 16737 | builtin and then its argument prototype would still apply. */ |
4474d12b CS |
16738 | #ifdef __cplusplus |
16739 | extern "C" | |
16740 | #endif | |
4474d12b CS |
16741 | char zlibVersion (); |
16742 | int | |
16743 | main () | |
16744 | { | |
81ecdfbb | 16745 | return zlibVersion (); |
4474d12b CS |
16746 | ; |
16747 | return 0; | |
16748 | } | |
16749 | _ACEOF | |
81ecdfbb RW |
16750 | for ac_lib in '' z; do |
16751 | if test -z "$ac_lib"; then | |
16752 | ac_res="none required" | |
4474d12b | 16753 | else |
81ecdfbb RW |
16754 | ac_res=-l$ac_lib |
16755 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4474d12b | 16756 | fi |
81ecdfbb RW |
16757 | if ac_fn_c_try_link "$LINENO"; then : |
16758 | ac_cv_search_zlibVersion=$ac_res | |
4474d12b | 16759 | fi |
81ecdfbb RW |
16760 | rm -f core conftest.err conftest.$ac_objext \ |
16761 | conftest$ac_exeext | |
16762 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
16763 | break | |
4474d12b | 16764 | fi |
81ecdfbb RW |
16765 | done |
16766 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
4474d12b | 16767 | |
4474d12b | 16768 | else |
81ecdfbb | 16769 | ac_cv_search_zlibVersion=no |
4474d12b | 16770 | fi |
81ecdfbb RW |
16771 | rm conftest.$ac_ext |
16772 | LIBS=$ac_func_search_save_LIBS | |
4474d12b | 16773 | fi |
81ecdfbb RW |
16774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
16775 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
16776 | ac_res=$ac_cv_search_zlibVersion | |
16777 | if test "$ac_res" != no; then : | |
16778 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16779 | for ac_header in zlib.h | |
16780 | do : | |
16781 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
16782 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
4474d12b | 16783 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16784 | #define HAVE_ZLIB_H 1 |
4474d12b CS |
16785 | _ACEOF |
16786 | ||
16787 | fi | |
16788 | ||
16789 | done | |
16790 | ||
16791 | fi | |
16792 | ||
52546677 RM |
16793 | if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then |
16794 | as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5 | |
16795 | fi | |
16796 | fi | |
16797 | ||
4474d12b | 16798 | |
597e2591 ILT |
16799 | # When converting linker scripts into strings for use in emulation |
16800 | # files, use astring.sed if the compiler supports ANSI string | |
16801 | # concatenation, or ostring.sed otherwise. This is to support the | |
16802 | # broken Microsoft MSVC compiler, which limits the length of string | |
16803 | # constants, while still supporting pre-ANSI compilers which do not | |
16804 | # support string concatenation. | |
81ecdfbb RW |
16805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5 |
16806 | $as_echo_n "checking whether ANSI C string concatenation works... " >&6; } | |
16807 | if test "${ld_cv_string_concatenation+set}" = set; then : | |
16808 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 16809 | else |
81ecdfbb | 16810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 16811 | /* end confdefs.h. */ |
81ecdfbb | 16812 | |
314e9a4e L |
16813 | int |
16814 | main () | |
16815 | { | |
81ecdfbb | 16816 | char *a = "a" "a"; |
314e9a4e L |
16817 | ; |
16818 | return 0; | |
16819 | } | |
16820 | _ACEOF | |
81ecdfbb RW |
16821 | if ac_fn_c_try_compile "$LINENO"; then : |
16822 | ld_cv_string_concatenation=yes | |
314e9a4e | 16823 | else |
81ecdfbb | 16824 | ld_cv_string_concatenation=no |
314e9a4e | 16825 | fi |
81ecdfbb | 16826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
314e9a4e | 16827 | fi |
81ecdfbb RW |
16828 | |
16829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5 | |
16830 | $as_echo "$ld_cv_string_concatenation" >&6; } | |
16831 | if test "$ld_cv_string_concatenation" = "yes"; then | |
16832 | STRINGIFY=astring.sed | |
16833 | else | |
16834 | STRINGIFY=ostring.sed | |
314e9a4e | 16835 | fi |
81ecdfbb RW |
16836 | |
16837 | ||
16838 | # target-specific stuff: | |
16839 | ||
16840 | all_targets= | |
16841 | EMUL= | |
16842 | all_emuls= | |
16843 | all_emul_extras= | |
16844 | all_libpath= | |
16845 | ||
16846 | rm -f tdirs | |
16847 | ||
bf9ef603 | 16848 | # If the host is 64-bit, then we enable 64-bit targets by default. |
1110793a | 16849 | # This is consistent with what ../bfd/configure.ac does. |
bf9ef603 RM |
16850 | if test x${want64} = xfalse; then |
16851 | # The cast to long int works around a bug in the HP C Compiler | |
16852 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16853 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16854 | # This bug is HP SR number 8606223364. | |
16855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16856 | $as_echo_n "checking size of void *... " >&6; } | |
16857 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
16858 | $as_echo_n "(cached) " >&6 | |
16859 | else | |
16860 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
16861 | ||
16862 | else | |
16863 | if test "$ac_cv_type_void_p" = yes; then | |
16864 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16865 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16866 | { as_fn_set_status 77 | |
16867 | as_fn_error "cannot compute sizeof (void *) | |
16868 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16869 | else | |
16870 | ac_cv_sizeof_void_p=0 | |
16871 | fi | |
16872 | fi | |
16873 | ||
16874 | fi | |
16875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16876 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
16877 | ||
16878 | ||
16879 | ||
16880 | cat >>confdefs.h <<_ACEOF | |
16881 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16882 | _ACEOF | |
16883 | ||
16884 | ||
16885 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
16886 | want64=true | |
16887 | fi | |
16888 | fi | |
16889 | ||
81ecdfbb RW |
16890 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
16891 | do | |
16892 | if test "$targ_alias" = "all"; then | |
16893 | all_targets=true | |
16894 | else | |
16895 | # Canonicalize the secondary target names. | |
16896 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
16897 | if test -n "$result"; then | |
16898 | targ=$result | |
16899 | else | |
16900 | targ=$targ_alias | |
16901 | fi | |
16902 | ||
16903 | . ${srcdir}/configure.tgt | |
16904 | ||
16905 | if test "$targ" = "$target"; then | |
16906 | EMUL=$targ_emul | |
16907 | fi | |
16908 | ||
16909 | if test x${want64} = xfalse; then | |
16910 | . ${srcdir}/../bfd/config.bfd | |
16911 | fi | |
16912 | ||
16913 | if test x${want64} = xtrue; then | |
16914 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
16915 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
16916 | fi | |
16917 | ||
16918 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do | |
16919 | case " $all_emuls " in | |
16920 | *" e${i}.o "*) ;; | |
16921 | *) | |
16922 | all_emuls="$all_emuls e${i}.o" | |
16923 | eval result=\$tdir_$i | |
16924 | test -z "$result" && result=$targ_alias | |
16925 | echo tdir_$i=$result >> tdirs | |
16926 | ;; | |
16927 | esac | |
16928 | done | |
16929 | ||
16930 | for i in $targ_emul $targ_extra_libpath; do | |
16931 | case " $all_libpath " in | |
16932 | *" ${i} "*) ;; | |
16933 | *) | |
16934 | if test -z "$all_libpath"; then | |
16935 | all_libpath=${i} | |
16936 | else | |
16937 | all_libpath="$all_libpath ${i}" | |
16938 | fi | |
16939 | ;; | |
16940 | esac | |
16941 | done | |
16942 | ||
16943 | for i in $targ_extra_ofiles; do | |
16944 | case " $all_emul_extras " in | |
16945 | *" ${i} "*) ;; | |
16946 | *) | |
16947 | all_emul_extras="$all_emul_extras ${i}" | |
16948 | ;; | |
16949 | esac | |
16950 | done | |
5063daf7 | 16951 | |
81ecdfbb RW |
16952 | fi |
16953 | done | |
16954 | ||
16955 | ||
16956 | ||
16957 | TDIRS=tdirs | |
16958 | ||
16959 | ||
16960 | if test x${all_targets} = xtrue; then | |
42ecbf5e DJ |
16961 | if test x${want64} = xtrue; then |
16962 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
9d069ac3 | 16963 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)' |
42ecbf5e DJ |
16964 | else |
16965 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
9d069ac3 | 16966 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' |
42ecbf5e | 16967 | fi |
42ecbf5e DJ |
16968 | else |
16969 | EMULATION_OFILES=$all_emuls | |
16970 | EMUL_EXTRA_OFILES=$all_emul_extras | |
16971 | fi | |
16972 | ||
16973 | ||
16974 | ||
16975 | ||
16976 | EMULATION_LIBPATH=$all_libpath | |
16977 | ||
16978 | ||
16979 | if test x${enable_static} = xno; then | |
16980 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" | |
16981 | else | |
16982 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
16983 | fi | |
16984 | ||
16985 | ||
16986 | target_vendor=${target_vendor=$host_vendor} | |
16987 | case "$target_vendor" in | |
16988 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
16989 | *) EXTRA_SHLIB_EXTENSION= ;; | |
16990 | esac | |
16991 | ||
16992 | case "$target_os" in | |
16993 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
16994 | esac | |
16995 | ||
16996 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
16997 | ||
16998 | cat >>confdefs.h <<_ACEOF | |
16999 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
17000 | _ACEOF | |
17001 | ||
17002 | fi | |
17003 | ||
108a6f8e CD |
17004 | |
17005 | ||
17006 | ||
17007 | ||
31dd3154 | 17008 | |
81ecdfbb | 17009 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 17010 | |
42ecbf5e DJ |
17011 | cat >confcache <<\_ACEOF |
17012 | # This file is a shell script that caches the results of configure | |
17013 | # tests run on this system so they can be shared between configure | |
17014 | # scripts and configure runs, see configure's option --config-cache. | |
17015 | # It is not useful on other systems. If it contains results you don't | |
17016 | # want to keep, you may remove or edit it. | |
17017 | # | |
17018 | # config.status only pays attention to the cache file if you give it | |
17019 | # the --recheck option to rerun configure. | |
17020 | # | |
17021 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17022 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17023 | # following values. | |
17024 | ||
17025 | _ACEOF | |
17026 | ||
17027 | # The following way of writing the cache mishandles newlines in values, | |
17028 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 17029 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
17030 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17031 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
17032 | ( |
17033 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17034 | eval ac_val=\$$ac_var | |
17035 | case $ac_val in #( | |
17036 | *${as_nl}*) | |
17037 | case $ac_var in #( | |
17038 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17039 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17040 | esac | |
17041 | case $ac_var in #( | |
17042 | _ | IFS | as_nl) ;; #( | |
17043 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17044 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17045 | esac ;; | |
17046 | esac | |
17047 | done | |
17048 | ||
42ecbf5e | 17049 | (set) 2>&1 | |
81ecdfbb RW |
17050 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17051 | *${as_nl}ac_space=\ *) | |
17052 | # `set' does not quote correctly, so add quotes: double-quote | |
17053 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
17054 | sed -n \ |
17055 | "s/'/'\\\\''/g; | |
17056 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 17057 | ;; #( |
42ecbf5e DJ |
17058 | *) |
17059 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 17060 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 17061 | ;; |
81ecdfbb RW |
17062 | esac | |
17063 | sort | |
17064 | ) | | |
42ecbf5e | 17065 | sed ' |
81ecdfbb | 17066 | /^ac_cv_env_/b end |
42ecbf5e | 17067 | t clear |
81ecdfbb | 17068 | :clear |
42ecbf5e DJ |
17069 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17070 | t end | |
81ecdfbb RW |
17071 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17072 | :end' >>confcache | |
17073 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17074 | if test -w "$cache_file"; then | |
17075 | test "x$cache_file" != "x/dev/null" && | |
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
17077 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
42ecbf5e DJ |
17078 | cat confcache >$cache_file |
17079 | else | |
81ecdfbb RW |
17080 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17081 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
17082 | fi |
17083 | fi | |
17084 | rm -f confcache | |
17085 | ||
17086 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17087 | # Let make expand exec_prefix. | |
17088 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17089 | ||
42ecbf5e DJ |
17090 | DEFS=-DHAVE_CONFIG_H |
17091 | ||
17092 | ac_libobjs= | |
17093 | ac_ltlibobjs= | |
17094 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17095 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
17096 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17097 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17098 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17099 | # will be set to the directory where LIBOBJS objects are built. | |
17100 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17101 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
17102 | done |
17103 | LIBOBJS=$ac_libobjs | |
17104 | ||
17105 | LTLIBOBJS=$ac_ltlibobjs | |
17106 | ||
17107 | ||
17108 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
17109 | as_fn_error "conditional \"AMDEP\" was never defined. |
17110 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e DJ |
17111 | fi |
17112 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
17113 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
17114 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17115 | fi | |
17116 | if test -n "$EXEEXT"; then | |
17117 | am__EXEEXT_TRUE= | |
17118 | am__EXEEXT_FALSE='#' | |
17119 | else | |
17120 | am__EXEEXT_TRUE='#' | |
17121 | am__EXEEXT_FALSE= | |
42ecbf5e | 17122 | fi |
81ecdfbb | 17123 | |
64ac50ac RW |
17124 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
17125 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
17126 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17127 | fi | |
3cb62297 L |
17128 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
17129 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. | |
17130 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17131 | fi | |
42ecbf5e | 17132 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
17133 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
17134 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e | 17135 | fi |
d5fbea21 | 17136 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
17137 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
17138 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 17139 | fi |
5d3236ee DK |
17140 | if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then |
17141 | as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined. | |
17142 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17143 | fi | |
42ecbf5e DJ |
17144 | |
17145 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 17146 | ac_write_fail=0 |
42ecbf5e DJ |
17147 | ac_clean_files_save=$ac_clean_files |
17148 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
17149 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17150 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17151 | as_write_fail=0 | |
17152 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
17153 | #! $SHELL |
17154 | # Generated by $as_me. | |
17155 | # Run this file to recreate the current configuration. | |
17156 | # Compiler output produced by configure, useful for debugging | |
17157 | # configure, is in config.log if it exists. | |
17158 | ||
17159 | debug=false | |
17160 | ac_cs_recheck=false | |
17161 | ac_cs_silent=false | |
42ecbf5e | 17162 | |
81ecdfbb RW |
17163 | SHELL=\${CONFIG_SHELL-$SHELL} |
17164 | export SHELL | |
17165 | _ASEOF | |
17166 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17167 | ## -------------------- ## | |
17168 | ## M4sh Initialization. ## | |
17169 | ## -------------------- ## | |
42ecbf5e | 17170 | |
81ecdfbb RW |
17171 | # Be more Bourne compatible |
17172 | DUALCASE=1; export DUALCASE # for MKS sh | |
17173 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
17174 | emulate sh |
17175 | NULLCMD=: | |
81ecdfbb | 17176 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
17177 | # is contrary to our usage. Disable this feature. |
17178 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
17179 | setopt NO_GLOB_SUBST |
17180 | else | |
17181 | case `(set -o) 2>/dev/null` in #( | |
17182 | *posix*) : | |
17183 | set -o posix ;; #( | |
17184 | *) : | |
17185 | ;; | |
17186 | esac | |
42ecbf5e | 17187 | fi |
42ecbf5e | 17188 | |
81ecdfbb RW |
17189 | |
17190 | as_nl=' | |
17191 | ' | |
17192 | export as_nl | |
17193 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17194 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17195 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17196 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17197 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17198 | # but without wasting forks for bash or zsh. | |
17199 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17200 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17201 | as_echo='print -r --' | |
17202 | as_echo_n='print -rn --' | |
17203 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17204 | as_echo='printf %s\n' | |
17205 | as_echo_n='printf %s' | |
17206 | else | |
17207 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17208 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17209 | as_echo_n='/usr/ucb/echo -n' | |
17210 | else | |
17211 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17212 | as_echo_n_body='eval | |
17213 | arg=$1; | |
17214 | case $arg in #( | |
17215 | *"$as_nl"*) | |
17216 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17217 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17218 | esac; | |
17219 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17220 | ' | |
17221 | export as_echo_n_body | |
17222 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17223 | fi | |
17224 | export as_echo_body | |
17225 | as_echo='sh -c $as_echo_body as_echo' | |
17226 | fi | |
17227 | ||
17228 | # The user is always right. | |
17229 | if test "${PATH_SEPARATOR+set}" != set; then | |
17230 | PATH_SEPARATOR=: | |
17231 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17232 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17233 | PATH_SEPARATOR=';' | |
17234 | } | |
42ecbf5e DJ |
17235 | fi |
17236 | ||
17237 | ||
81ecdfbb RW |
17238 | # IFS |
17239 | # We need space, tab and new line, in precisely that order. Quoting is | |
17240 | # there to prevent editors from complaining about space-tab. | |
17241 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17242 | # splitting by setting IFS to empty value.) | |
17243 | IFS=" "" $as_nl" | |
17244 | ||
17245 | # Find who we are. Look in the path if we contain no directory separator. | |
17246 | case $0 in #(( | |
17247 | *[\\/]* ) as_myself=$0 ;; | |
17248 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17249 | for as_dir in $PATH | |
17250 | do | |
17251 | IFS=$as_save_IFS | |
17252 | test -z "$as_dir" && as_dir=. | |
17253 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17254 | done | |
17255 | IFS=$as_save_IFS | |
17256 | ||
17257 | ;; | |
17258 | esac | |
17259 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17260 | # in which case we are not to be found in the path. | |
17261 | if test "x$as_myself" = x; then | |
17262 | as_myself=$0 | |
17263 | fi | |
17264 | if test ! -f "$as_myself"; then | |
17265 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17266 | exit 1 | |
17267 | fi | |
17268 | ||
17269 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17270 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17271 | # suppresses any "Segmentation fault" message there. '((' could | |
17272 | # trigger a bug in pdksh 5.2.14. | |
17273 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17274 | do eval test x\${$as_var+set} = xset \ | |
17275 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17276 | done | |
42ecbf5e DJ |
17277 | PS1='$ ' |
17278 | PS2='> ' | |
17279 | PS4='+ ' | |
17280 | ||
17281 | # NLS nuisances. | |
81ecdfbb RW |
17282 | LC_ALL=C |
17283 | export LC_ALL | |
17284 | LANGUAGE=C | |
17285 | export LANGUAGE | |
17286 | ||
17287 | # CDPATH. | |
17288 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17289 | ||
17290 | ||
17291 | # as_fn_error ERROR [LINENO LOG_FD] | |
17292 | # --------------------------------- | |
17293 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
17294 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
17295 | # script with status $?, using 1 if that was 0. | |
17296 | as_fn_error () | |
17297 | { | |
17298 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
17299 | if test "$3"; then | |
17300 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17301 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
42ecbf5e | 17302 | fi |
81ecdfbb RW |
17303 | $as_echo "$as_me: error: $1" >&2 |
17304 | as_fn_exit $as_status | |
17305 | } # as_fn_error | |
17306 | ||
17307 | ||
17308 | # as_fn_set_status STATUS | |
17309 | # ----------------------- | |
17310 | # Set $? to STATUS, without forking. | |
17311 | as_fn_set_status () | |
17312 | { | |
17313 | return $1 | |
17314 | } # as_fn_set_status | |
17315 | ||
17316 | # as_fn_exit STATUS | |
17317 | # ----------------- | |
17318 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17319 | as_fn_exit () | |
17320 | { | |
17321 | set +e | |
17322 | as_fn_set_status $1 | |
17323 | exit $1 | |
17324 | } # as_fn_exit | |
17325 | ||
17326 | # as_fn_unset VAR | |
17327 | # --------------- | |
17328 | # Portably unset VAR. | |
17329 | as_fn_unset () | |
17330 | { | |
17331 | { eval $1=; unset $1;} | |
17332 | } | |
17333 | as_unset=as_fn_unset | |
17334 | # as_fn_append VAR VALUE | |
17335 | # ---------------------- | |
17336 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17337 | # advantage of any shell optimizations that allow amortized linear growth over | |
17338 | # repeated appends, instead of the typical quadratic growth present in naive | |
17339 | # implementations. | |
17340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17341 | eval 'as_fn_append () | |
17342 | { | |
17343 | eval $1+=\$2 | |
17344 | }' | |
17345 | else | |
17346 | as_fn_append () | |
17347 | { | |
17348 | eval $1=\$$1\$2 | |
17349 | } | |
17350 | fi # as_fn_append | |
17351 | ||
17352 | # as_fn_arith ARG... | |
17353 | # ------------------ | |
17354 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17356 | # must be portable across $(()) and expr. | |
17357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17358 | eval 'as_fn_arith () | |
17359 | { | |
17360 | as_val=$(( $* )) | |
17361 | }' | |
17362 | else | |
17363 | as_fn_arith () | |
17364 | { | |
17365 | as_val=`expr "$@" || test $? -eq 1` | |
17366 | } | |
17367 | fi # as_fn_arith | |
17368 | ||
42ecbf5e | 17369 | |
81ecdfbb RW |
17370 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17371 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
17372 | as_expr=expr |
17373 | else | |
17374 | as_expr=false | |
17375 | fi | |
17376 | ||
81ecdfbb | 17377 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
17378 | as_basename=basename |
17379 | else | |
17380 | as_basename=false | |
17381 | fi | |
17382 | ||
81ecdfbb RW |
17383 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17384 | as_dirname=dirname | |
17385 | else | |
17386 | as_dirname=false | |
17387 | fi | |
42ecbf5e | 17388 | |
81ecdfbb | 17389 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
17390 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17391 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
17392 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
17393 | $as_echo X/"$0" | | |
17394 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17395 | s//\1/ | |
17396 | q | |
17397 | } | |
17398 | /^X\/\(\/\/\)$/{ | |
17399 | s//\1/ | |
17400 | q | |
17401 | } | |
17402 | /^X\/\(\/\).*/{ | |
17403 | s//\1/ | |
17404 | q | |
17405 | } | |
17406 | s/.*/./; q'` | |
42ecbf5e | 17407 | |
42ecbf5e DJ |
17408 | # Avoid depending upon Character Ranges. |
17409 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17410 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17411 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17412 | as_cr_digits='0123456789' | |
17413 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17414 | ||
81ecdfbb RW |
17415 | ECHO_C= ECHO_N= ECHO_T= |
17416 | case `echo -n x` in #((((( | |
17417 | -n*) | |
17418 | case `echo 'xy\c'` in | |
17419 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17420 | xy) ECHO_C='\c';; | |
17421 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17422 | ECHO_T=' ';; | |
17423 | esac;; | |
17424 | *) | |
17425 | ECHO_N='-n';; | |
42ecbf5e | 17426 | esac |
252b5132 | 17427 | |
81ecdfbb RW |
17428 | rm -f conf$$ conf$$.exe conf$$.file |
17429 | if test -d conf$$.dir; then | |
17430 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 17431 | else |
81ecdfbb RW |
17432 | rm -f conf$$.dir |
17433 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 17434 | fi |
81ecdfbb RW |
17435 | if (echo >conf$$.file) 2>/dev/null; then |
17436 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 17437 | as_ln_s='ln -s' |
81ecdfbb RW |
17438 | # ... but there are two gotchas: |
17439 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17440 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
17441 | # In both cases, we have to default to `cp -p'. | |
17442 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
17443 | as_ln_s='cp -p' | |
17444 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
17445 | as_ln_s=ln | |
17446 | else | |
17447 | as_ln_s='cp -p' | |
252b5132 | 17448 | fi |
e5a52504 | 17449 | else |
42ecbf5e | 17450 | as_ln_s='cp -p' |
e5a52504 | 17451 | fi |
81ecdfbb RW |
17452 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17453 | rmdir conf$$.dir 2>/dev/null | |
17454 | ||
17455 | ||
17456 | # as_fn_mkdir_p | |
17457 | # ------------- | |
17458 | # Create "$as_dir" as a directory, including parents if necessary. | |
17459 | as_fn_mkdir_p () | |
17460 | { | |
17461 | ||
17462 | case $as_dir in #( | |
17463 | -*) as_dir=./$as_dir;; | |
17464 | esac | |
17465 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17466 | as_dirs= | |
17467 | while :; do | |
17468 | case $as_dir in #( | |
17469 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17470 | *) as_qdir=$as_dir;; | |
17471 | esac | |
17472 | as_dirs="'$as_qdir' $as_dirs" | |
17473 | as_dir=`$as_dirname -- "$as_dir" || | |
17474 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17475 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17476 | X"$as_dir" : 'X\(//\)$' \| \ | |
17477 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17478 | $as_echo X"$as_dir" | | |
17479 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17480 | s//\1/ | |
17481 | q | |
17482 | } | |
17483 | /^X\(\/\/\)[^/].*/{ | |
17484 | s//\1/ | |
17485 | q | |
17486 | } | |
17487 | /^X\(\/\/\)$/{ | |
17488 | s//\1/ | |
17489 | q | |
17490 | } | |
17491 | /^X\(\/\).*/{ | |
17492 | s//\1/ | |
17493 | q | |
17494 | } | |
17495 | s/.*/./; q'` | |
17496 | test -d "$as_dir" && break | |
17497 | done | |
17498 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
17499 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
17500 | ||
252b5132 | 17501 | |
81ecdfbb | 17502 | } # as_fn_mkdir_p |
42ecbf5e | 17503 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 17504 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
17505 | else |
17506 | test -d ./-p && rmdir ./-p | |
17507 | as_mkdir_p=false | |
17508 | fi | |
252b5132 | 17509 | |
81ecdfbb RW |
17510 | if test -x / >/dev/null 2>&1; then |
17511 | as_test_x='test -x' | |
17512 | else | |
17513 | if ls -dL / >/dev/null 2>&1; then | |
17514 | as_ls_L_option=L | |
17515 | else | |
17516 | as_ls_L_option= | |
17517 | fi | |
17518 | as_test_x=' | |
17519 | eval sh -c '\'' | |
17520 | if test -d "$1"; then | |
17521 | test -d "$1/."; | |
17522 | else | |
17523 | case $1 in #( | |
17524 | -*)set "./$1";; | |
17525 | esac; | |
17526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
17527 | ???[sx]*):;;*)false;;esac;fi | |
17528 | '\'' sh | |
17529 | ' | |
17530 | fi | |
17531 | as_executable_p=$as_test_x | |
252b5132 | 17532 | |
42ecbf5e DJ |
17533 | # Sed expression to map a string onto a valid CPP name. |
17534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 17535 | |
42ecbf5e DJ |
17536 | # Sed expression to map a string onto a valid variable name. |
17537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 17538 | |
e5a52504 | 17539 | |
42ecbf5e | 17540 | exec 6>&1 |
81ecdfbb RW |
17541 | ## ----------------------------------- ## |
17542 | ## Main body of $CONFIG_STATUS script. ## | |
17543 | ## ----------------------------------- ## | |
17544 | _ASEOF | |
17545 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
e5a52504 | 17546 | |
81ecdfbb RW |
17547 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17548 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 17549 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
17550 | # values after options handling. |
17551 | ac_log=" | |
2e98a7bd | 17552 | This file was extended by ld $as_me 2.24.51, which was |
81ecdfbb | 17553 | generated by GNU Autoconf 2.64. Invocation command line was |
42ecbf5e DJ |
17554 | |
17555 | CONFIG_FILES = $CONFIG_FILES | |
17556 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17557 | CONFIG_LINKS = $CONFIG_LINKS | |
17558 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17559 | $ $0 $@ | |
e5a52504 | 17560 | |
81ecdfbb RW |
17561 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17562 | " | |
17563 | ||
42ecbf5e DJ |
17564 | _ACEOF |
17565 | ||
81ecdfbb RW |
17566 | case $ac_config_files in *" |
17567 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17568 | esac | |
e5a52504 | 17569 | |
81ecdfbb RW |
17570 | case $ac_config_headers in *" |
17571 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17572 | esac | |
42ecbf5e | 17573 | |
42ecbf5e | 17574 | |
81ecdfbb RW |
17575 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17576 | # Files that config.status was made for. | |
17577 | config_files="$ac_config_files" | |
17578 | config_headers="$ac_config_headers" | |
17579 | config_commands="$ac_config_commands" | |
42ecbf5e | 17580 | |
81ecdfbb | 17581 | _ACEOF |
42ecbf5e | 17582 | |
81ecdfbb | 17583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 17584 | ac_cs_usage="\ |
81ecdfbb RW |
17585 | \`$as_me' instantiates files and other configuration actions |
17586 | from templates according to the current configuration. Unless the files | |
17587 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 17588 | |
81ecdfbb | 17589 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
17590 | |
17591 | -h, --help print this help, then exit | |
81ecdfbb RW |
17592 | -V, --version print version number and configuration settings, then exit |
17593 | -q, --quiet, --silent | |
17594 | do not print progress messages | |
42ecbf5e DJ |
17595 | -d, --debug don't remove temporary files |
17596 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
17597 | --file=FILE[:TEMPLATE] |
17598 | instantiate the configuration file FILE | |
17599 | --header=FILE[:TEMPLATE] | |
17600 | instantiate the configuration header FILE | |
42ecbf5e DJ |
17601 | |
17602 | Configuration files: | |
17603 | $config_files | |
17604 | ||
17605 | Configuration headers: | |
17606 | $config_headers | |
17607 | ||
17608 | Configuration commands: | |
17609 | $config_commands | |
17610 | ||
81ecdfbb | 17611 | Report bugs to the package provider." |
42ecbf5e | 17612 | |
81ecdfbb RW |
17613 | _ACEOF |
17614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
42ecbf5e | 17615 | ac_cs_version="\\ |
2e98a7bd | 17616 | ld config.status 2.24.51 |
81ecdfbb RW |
17617 | configured by $0, generated by GNU Autoconf 2.64, |
17618 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
42ecbf5e | 17619 | |
81ecdfbb | 17620 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
17621 | This config.status script is free software; the Free Software Foundation |
17622 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
17623 | |
17624 | ac_pwd='$ac_pwd' | |
17625 | srcdir='$srcdir' | |
17626 | INSTALL='$INSTALL' | |
17627 | MKDIR_P='$MKDIR_P' | |
17628 | AWK='$AWK' | |
17629 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
17630 | _ACEOF |
17631 | ||
81ecdfbb RW |
17632 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17633 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
17634 | ac_need_defaults=: |
17635 | while test $# != 0 | |
17636 | do | |
17637 | case $1 in | |
17638 | --*=*) | |
81ecdfbb RW |
17639 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17640 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e | 17641 | ac_shift=: |
252b5132 | 17642 | ;; |
81ecdfbb | 17643 | *) |
42ecbf5e DJ |
17644 | ac_option=$1 |
17645 | ac_optarg=$2 | |
17646 | ac_shift=shift | |
252b5132 | 17647 | ;; |
42ecbf5e | 17648 | esac |
252b5132 | 17649 | |
42ecbf5e DJ |
17650 | case $ac_option in |
17651 | # Handling of the options. | |
42ecbf5e DJ |
17652 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17653 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
17654 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17655 | $as_echo "$ac_cs_version"; exit ;; | |
17656 | --debug | --debu | --deb | --de | --d | -d ) | |
42ecbf5e DJ |
17657 | debug=: ;; |
17658 | --file | --fil | --fi | --f ) | |
17659 | $ac_shift | |
81ecdfbb RW |
17660 | case $ac_optarg in |
17661 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17662 | esac | |
17663 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
17664 | ac_need_defaults=false;; |
17665 | --header | --heade | --head | --hea ) | |
17666 | $ac_shift | |
81ecdfbb RW |
17667 | case $ac_optarg in |
17668 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17669 | esac | |
17670 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 17671 | ac_need_defaults=false;; |
81ecdfbb RW |
17672 | --he | --h) |
17673 | # Conflict between --help and --header | |
17674 | as_fn_error "ambiguous option: \`$1' | |
17675 | Try \`$0 --help' for more information.";; | |
17676 | --help | --hel | -h ) | |
17677 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
17678 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17679 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17680 | ac_cs_silent=: ;; | |
252b5132 | 17681 | |
42ecbf5e | 17682 | # This is an error. |
81ecdfbb RW |
17683 | -*) as_fn_error "unrecognized option: \`$1' |
17684 | Try \`$0 --help' for more information." ;; | |
252b5132 | 17685 | |
81ecdfbb RW |
17686 | *) as_fn_append ac_config_targets " $1" |
17687 | ac_need_defaults=false ;; | |
252b5132 | 17688 | |
42ecbf5e DJ |
17689 | esac |
17690 | shift | |
17691 | done | |
d15b04bd | 17692 | |
42ecbf5e | 17693 | ac_configure_extra_args= |
e5a52504 | 17694 | |
42ecbf5e DJ |
17695 | if $ac_cs_silent; then |
17696 | exec 6>/dev/null | |
17697 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17698 | fi | |
e5a52504 | 17699 | |
42ecbf5e | 17700 | _ACEOF |
81ecdfbb | 17701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 17702 | if \$ac_cs_recheck; then |
81ecdfbb RW |
17703 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
17704 | shift | |
17705 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17706 | CONFIG_SHELL='$SHELL' | |
17707 | export CONFIG_SHELL | |
17708 | exec "\$@" | |
42ecbf5e DJ |
17709 | fi |
17710 | ||
17711 | _ACEOF | |
81ecdfbb RW |
17712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17713 | exec 5>>config.log | |
17714 | { | |
17715 | echo | |
17716 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17717 | ## Running $as_me. ## | |
17718 | _ASBOX | |
17719 | $as_echo "$ac_log" | |
17720 | } >&5 | |
42ecbf5e | 17721 | |
81ecdfbb RW |
17722 | _ACEOF |
17723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 17724 | # |
81ecdfbb | 17725 | # INIT-COMMANDS |
252b5132 | 17726 | # |
42ecbf5e | 17727 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
17728 | |
17729 | ||
17730 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17731 | # if CDPATH is set. | |
17732 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17733 | ||
17734 | sed_quote_subst='$sed_quote_subst' | |
17735 | double_quote_subst='$double_quote_subst' | |
17736 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
17737 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
17738 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
17739 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
17740 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
17741 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
17742 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
17743 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
17744 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
17745 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
17746 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
17747 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
17748 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
17749 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
17750 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
17751 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
17752 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
17753 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
17754 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
17755 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
17756 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
17757 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
17758 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
17759 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
17760 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
17761 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
17762 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
17763 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
17764 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
17765 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
17766 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
17767 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
17768 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
17769 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
17770 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
17771 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
17772 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
17773 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
17774 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17775 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17776 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17777 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
17778 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
17779 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
17780 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
17781 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
17782 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
17783 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
17784 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
17785 | 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"`' | |
17786 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
17787 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
17788 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
17789 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
17790 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
17791 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
17792 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17793 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
17794 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
17795 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17796 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17797 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17798 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17799 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17800 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17801 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17802 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17803 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17804 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17805 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17806 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17807 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17808 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17809 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17810 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17811 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17812 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17813 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17814 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17815 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17816 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17817 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
17818 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
17819 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17820 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17821 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17822 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17823 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17824 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17825 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
17826 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
17827 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
17828 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17829 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17830 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
17831 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
17832 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
17833 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
17834 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17835 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
17836 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
17837 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
17838 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17839 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
17840 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
17841 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
17842 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
17843 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
17844 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17845 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17846 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
17847 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
17848 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
17849 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
17850 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
17851 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
17852 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
17853 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
17854 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
17855 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
17856 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
3cb62297 L |
17857 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
17858 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
17859 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
17860 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
17861 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
17862 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
17863 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
17864 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17865 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17866 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17867 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
17868 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
17869 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17870 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
17871 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
17872 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
17873 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
17874 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
17875 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
17876 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17877 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17878 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
17879 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17880 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17881 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17882 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17883 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17884 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17885 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
17886 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17887 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17888 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17889 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
17890 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
17891 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
17892 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
17893 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
17894 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
17895 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
17896 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
17897 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
17898 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
17899 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
17900 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17901 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
17902 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
17903 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17904 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17905 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
17906 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
17907 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
17908 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
17909 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
17910 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
17911 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
17912 | |
17913 | LTCC='$LTCC' | |
17914 | LTCFLAGS='$LTCFLAGS' | |
17915 | compiler='$compiler_DEFAULT' | |
17916 | ||
3725885a RW |
17917 | # A function that is used when there is no print builtin or printf. |
17918 | func_fallback_echo () | |
17919 | { | |
17920 | eval 'cat <<_LTECHO_EOF | |
17921 | \$1 | |
17922 | _LTECHO_EOF' | |
17923 | } | |
17924 | ||
d7040cdb | 17925 | # Quote evaled strings. |
3725885a RW |
17926 | for var in SHELL \ |
17927 | ECHO \ | |
17928 | SED \ | |
d7040cdb SE |
17929 | GREP \ |
17930 | EGREP \ | |
17931 | FGREP \ | |
17932 | LD \ | |
17933 | NM \ | |
17934 | LN_S \ | |
17935 | lt_SP2NL \ | |
17936 | lt_NL2SP \ | |
17937 | reload_flag \ | |
b214d478 | 17938 | OBJDUMP \ |
d7040cdb SE |
17939 | deplibs_check_method \ |
17940 | file_magic_cmd \ | |
17941 | AR \ | |
17942 | AR_FLAGS \ | |
17943 | STRIP \ | |
17944 | RANLIB \ | |
17945 | CC \ | |
17946 | CFLAGS \ | |
17947 | compiler \ | |
17948 | lt_cv_sys_global_symbol_pipe \ | |
17949 | lt_cv_sys_global_symbol_to_cdecl \ | |
17950 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 17951 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
17952 | lt_prog_compiler_no_builtin_flag \ |
17953 | lt_prog_compiler_wl \ | |
17954 | lt_prog_compiler_pic \ | |
17955 | lt_prog_compiler_static \ | |
17956 | lt_cv_prog_compiler_c_o \ | |
17957 | need_locks \ | |
b214d478 SE |
17958 | DSYMUTIL \ |
17959 | NMEDIT \ | |
17960 | LIPO \ | |
17961 | OTOOL \ | |
17962 | OTOOL64 \ | |
d7040cdb SE |
17963 | shrext_cmds \ |
17964 | export_dynamic_flag_spec \ | |
17965 | whole_archive_flag_spec \ | |
17966 | compiler_needs_object \ | |
17967 | with_gnu_ld \ | |
17968 | allow_undefined_flag \ | |
17969 | no_undefined_flag \ | |
17970 | hardcode_libdir_flag_spec \ | |
17971 | hardcode_libdir_flag_spec_ld \ | |
17972 | hardcode_libdir_separator \ | |
17973 | fix_srcfile_path \ | |
17974 | exclude_expsyms \ | |
17975 | include_expsyms \ | |
17976 | file_list_spec \ | |
17977 | variables_saved_for_relink \ | |
17978 | libname_spec \ | |
17979 | library_names_spec \ | |
17980 | soname_spec \ | |
3725885a | 17981 | install_override_mode \ |
d7040cdb SE |
17982 | finish_eval \ |
17983 | old_striplib \ | |
3cb62297 L |
17984 | striplib \ |
17985 | compiler_lib_search_dirs \ | |
17986 | predep_objects \ | |
17987 | postdep_objects \ | |
17988 | predeps \ | |
17989 | postdeps \ | |
17990 | compiler_lib_search_path \ | |
17991 | LD_CXX \ | |
17992 | reload_flag_CXX \ | |
17993 | compiler_CXX \ | |
17994 | lt_prog_compiler_no_builtin_flag_CXX \ | |
17995 | lt_prog_compiler_wl_CXX \ | |
17996 | lt_prog_compiler_pic_CXX \ | |
17997 | lt_prog_compiler_static_CXX \ | |
17998 | lt_cv_prog_compiler_c_o_CXX \ | |
17999 | export_dynamic_flag_spec_CXX \ | |
18000 | whole_archive_flag_spec_CXX \ | |
18001 | compiler_needs_object_CXX \ | |
18002 | with_gnu_ld_CXX \ | |
18003 | allow_undefined_flag_CXX \ | |
18004 | no_undefined_flag_CXX \ | |
18005 | hardcode_libdir_flag_spec_CXX \ | |
18006 | hardcode_libdir_flag_spec_ld_CXX \ | |
18007 | hardcode_libdir_separator_CXX \ | |
18008 | fix_srcfile_path_CXX \ | |
18009 | exclude_expsyms_CXX \ | |
18010 | include_expsyms_CXX \ | |
18011 | file_list_spec_CXX \ | |
18012 | compiler_lib_search_dirs_CXX \ | |
18013 | predep_objects_CXX \ | |
18014 | postdep_objects_CXX \ | |
18015 | predeps_CXX \ | |
18016 | postdeps_CXX \ | |
18017 | compiler_lib_search_path_CXX; do | |
3725885a | 18018 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18019 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18020 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18021 | ;; |
18022 | *) | |
18023 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18024 | ;; | |
18025 | esac | |
18026 | done | |
18027 | ||
18028 | # Double-quote double-evaled strings. | |
18029 | for var in reload_cmds \ | |
18030 | old_postinstall_cmds \ | |
18031 | old_postuninstall_cmds \ | |
18032 | old_archive_cmds \ | |
18033 | extract_expsyms_cmds \ | |
18034 | old_archive_from_new_cmds \ | |
18035 | old_archive_from_expsyms_cmds \ | |
18036 | archive_cmds \ | |
18037 | archive_expsym_cmds \ | |
18038 | module_cmds \ | |
18039 | module_expsym_cmds \ | |
18040 | export_symbols_cmds \ | |
18041 | prelink_cmds \ | |
18042 | postinstall_cmds \ | |
18043 | postuninstall_cmds \ | |
18044 | finish_cmds \ | |
18045 | sys_lib_search_path_spec \ | |
3cb62297 L |
18046 | sys_lib_dlsearch_path_spec \ |
18047 | reload_cmds_CXX \ | |
18048 | old_archive_cmds_CXX \ | |
18049 | old_archive_from_new_cmds_CXX \ | |
18050 | old_archive_from_expsyms_cmds_CXX \ | |
18051 | archive_cmds_CXX \ | |
18052 | archive_expsym_cmds_CXX \ | |
18053 | module_cmds_CXX \ | |
18054 | module_expsym_cmds_CXX \ | |
18055 | export_symbols_cmds_CXX \ | |
18056 | prelink_cmds_CXX; do | |
3725885a | 18057 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18058 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18059 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18060 | ;; |
18061 | *) | |
18062 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18063 | ;; | |
18064 | esac | |
18065 | done | |
18066 | ||
d7040cdb SE |
18067 | ac_aux_dir='$ac_aux_dir' |
18068 | xsi_shell='$xsi_shell' | |
18069 | lt_shell_append='$lt_shell_append' | |
18070 | ||
18071 | # See if we are running on zsh, and set the options which allow our | |
18072 | # commands through without removal of \ escapes INIT. | |
18073 | if test -n "\${ZSH_VERSION+set}" ; then | |
18074 | setopt NO_GLOB_SUBST | |
18075 | fi | |
18076 | ||
18077 | ||
18078 | PACKAGE='$PACKAGE' | |
18079 | VERSION='$VERSION' | |
18080 | TIMESTAMP='$TIMESTAMP' | |
18081 | RM='$RM' | |
18082 | ofile='$ofile' | |
18083 | ||
18084 | ||
18085 | ||
3cb62297 L |
18086 | |
18087 | ||
20e95c23 DJ |
18088 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
18089 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
18090 | # from automake. | |
18091 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
18092 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
18093 | LINGUAS="${LINGUAS-%UNSET%}" | |
18094 | ||
42ecbf5e DJ |
18095 | |
18096 | _ACEOF | |
18097 | ||
81ecdfbb | 18098 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 18099 | |
81ecdfbb | 18100 | # Handling of arguments. |
42ecbf5e | 18101 | for ac_config_target in $ac_config_targets |
252b5132 | 18102 | do |
81ecdfbb RW |
18103 | case $ac_config_target in |
18104 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
18105 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
18106 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
18107 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
18108 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18109 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
18110 | ||
18111 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 RH |
18112 | esac |
18113 | done | |
18114 | ||
81ecdfbb | 18115 | |
42ecbf5e DJ |
18116 | # If the user did not use the arguments to specify the items to instantiate, |
18117 | # then the envvar interface is used. Set only those that are not. | |
18118 | # We use the long form for the default assignment because of an extremely | |
18119 | # bizarre bug on SunOS 4.1.3. | |
18120 | if $ac_need_defaults; then | |
18121 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18122 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18123 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18124 | fi | |
18125 | ||
18126 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 18127 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 18128 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
18129 | # Hook for its removal unless debugging. |
18130 | # Note that there is a small window in which the directory will not be cleaned: | |
18131 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
18132 | $debug || |
18133 | { | |
81ecdfbb RW |
18134 | tmp= |
18135 | trap 'exit_status=$? | |
18136 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18137 | ' 0 | |
18138 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 18139 | } |
42ecbf5e | 18140 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 18141 | |
42ecbf5e | 18142 | { |
81ecdfbb | 18143 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
42ecbf5e DJ |
18144 | test -n "$tmp" && test -d "$tmp" |
18145 | } || | |
18146 | { | |
81ecdfbb RW |
18147 | tmp=./conf$$-$RANDOM |
18148 | (umask 077 && mkdir "$tmp") | |
18149 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
18150 | ||
18151 | # Set up the scripts for CONFIG_FILES section. | |
18152 | # No need to generate them if there are no CONFIG_FILES. | |
18153 | # This happens for instance with `./config.status config.h'. | |
18154 | if test -n "$CONFIG_FILES"; then | |
18155 | ||
18156 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
18157 | ac_cs_awk_getline=: | |
18158 | ac_cs_awk_pipe_init= | |
18159 | ac_cs_awk_read_file=' | |
18160 | while ((getline aline < (F[key])) > 0) | |
18161 | print(aline) | |
18162 | close(F[key])' | |
18163 | ac_cs_awk_pipe_fini= | |
18164 | else | |
18165 | ac_cs_awk_getline=false | |
18166 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
18167 | ac_cs_awk_read_file=' | |
18168 | print "|#_!!_#|" | |
18169 | print "cat " F[key] " &&" | |
18170 | '$ac_cs_awk_pipe_init | |
18171 | # The final `:' finishes the AND list. | |
18172 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
18173 | fi | |
18174 | ac_cr=`echo X | tr X '\015'` | |
18175 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18176 | # But we know of no other shell where ac_cr would be empty at this | |
18177 | # point, so we can use a bashism as a fallback. | |
18178 | if test "x$ac_cr" = x; then | |
18179 | eval ac_cr=\$\'\\r\' | |
18180 | fi | |
18181 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18182 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18183 | ac_cs_awk_cr='\r' | |
18184 | else | |
18185 | ac_cs_awk_cr=$ac_cr | |
18186 | fi | |
18187 | ||
18188 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
18189 | _ACEOF | |
18190 | ||
18191 | # Create commands to substitute file output variables. | |
42ecbf5e | 18192 | { |
81ecdfbb RW |
18193 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
18194 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
18195 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
18196 | echo "_ACAWK" && | |
18197 | echo "_ACEOF" | |
18198 | } >conf$$files.sh && | |
18199 | . ./conf$$files.sh || | |
18200 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18201 | rm -f conf$$files.sh | |
e5a52504 | 18202 | |
81ecdfbb RW |
18203 | { |
18204 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18205 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18206 | echo "_ACEOF" | |
18207 | } >conf$$subs.sh || | |
18208 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18209 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
18210 | ac_delim='%!_!# ' | |
18211 | for ac_last_try in false false false false false :; do | |
18212 | . ./conf$$subs.sh || | |
18213 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18214 | ||
18215 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18216 | if test $ac_delim_n = $ac_delim_num; then | |
18217 | break | |
18218 | elif $ac_last_try; then | |
18219 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18220 | else | |
18221 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18222 | fi | |
18223 | done | |
18224 | rm -f conf$$subs.sh | |
18225 | ||
18226 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18227 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18228 | _ACEOF | |
18229 | sed -n ' | |
18230 | h | |
18231 | s/^/S["/; s/!.*/"]=/ | |
18232 | p | |
18233 | g | |
18234 | s/^[^!]*!// | |
18235 | :repl | |
18236 | t repl | |
18237 | s/'"$ac_delim"'$// | |
18238 | t delim | |
18239 | :nl | |
18240 | h | |
18241 | s/\(.\{148\}\).*/\1/ | |
18242 | t more1 | |
18243 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18244 | p | |
18245 | n | |
18246 | b repl | |
18247 | :more1 | |
18248 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18249 | p | |
18250 | g | |
18251 | s/.\{148\}// | |
18252 | t nl | |
18253 | :delim | |
18254 | h | |
18255 | s/\(.\{148\}\).*/\1/ | |
18256 | t more2 | |
18257 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18258 | p | |
18259 | b | |
18260 | :more2 | |
18261 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18262 | p | |
18263 | g | |
18264 | s/.\{148\}// | |
18265 | t delim | |
18266 | ' <conf$$subs.awk | sed ' | |
18267 | /^[^""]/{ | |
18268 | N | |
18269 | s/\n// | |
18270 | } | |
18271 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18272 | rm -f conf$$subs.awk | |
18273 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18274 | _ACAWK | |
18275 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18276 | for (key in S) S_is_set[key] = 1 | |
18277 | FS = "\a" | |
18278 | \$ac_cs_awk_pipe_init | |
18279 | } | |
18280 | { | |
18281 | line = $ 0 | |
18282 | nfields = split(line, field, "@") | |
18283 | substed = 0 | |
18284 | len = length(field[1]) | |
18285 | for (i = 2; i < nfields; i++) { | |
18286 | key = field[i] | |
18287 | keylen = length(key) | |
18288 | if (S_is_set[key]) { | |
18289 | value = S[key] | |
18290 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18291 | len += length(value) + length(field[++i]) | |
18292 | substed = 1 | |
18293 | } else | |
18294 | len += 1 + keylen | |
18295 | } | |
18296 | if (nfields == 3 && !substed) { | |
18297 | key = field[2] | |
18298 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
18299 | \$ac_cs_awk_read_file | |
18300 | next | |
18301 | } | |
18302 | } | |
18303 | print line | |
18304 | } | |
18305 | \$ac_cs_awk_pipe_fini | |
18306 | _ACAWK | |
18307 | _ACEOF | |
18308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18309 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18310 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18311 | else | |
18312 | cat | |
18313 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18314 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e | 18315 | _ACEOF |
d15b04bd | 18316 | |
81ecdfbb RW |
18317 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18318 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18319 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18320 | # (actually we leave an empty line to preserve line numbers). | |
18321 | if test "x$srcdir" = x.; then | |
18322 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18323 | s/:*\$(srcdir):*/:/ | |
18324 | s/:*\${srcdir}:*/:/ | |
18325 | s/:*@srcdir@:*/:/ | |
18326 | s/^\([^=]*=[ ]*\):*/\1/ | |
18327 | s/:*$// | |
18328 | s/^[^=]*=[ ]*$// | |
18329 | }' | |
18330 | fi | |
18331 | ||
18332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18333 | fi # test -n "$CONFIG_FILES" | |
42ecbf5e | 18334 | |
81ecdfbb RW |
18335 | # Set up the scripts for CONFIG_HEADERS section. |
18336 | # No need to generate them if there are no CONFIG_HEADERS. | |
18337 | # This happens for instance with `./config.status Makefile'. | |
18338 | if test -n "$CONFIG_HEADERS"; then | |
18339 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18340 | BEGIN { | |
18341 | _ACEOF | |
42ecbf5e | 18342 | |
81ecdfbb RW |
18343 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18344 | # here-document in config.status, that substitutes the proper values into | |
18345 | # config.h.in to produce config.h. | |
252b5132 | 18346 | |
81ecdfbb RW |
18347 | # Create a delimiter string that does not exist in confdefs.h, to ease |
18348 | # handling of long lines. | |
18349 | ac_delim='%!_!# ' | |
18350 | for ac_last_try in false false :; do | |
18351 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18352 | if test -z "$ac_t"; then | |
18353 | break | |
18354 | elif $ac_last_try; then | |
18355 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
18356 | else | |
18357 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18358 | fi | |
18359 | done | |
18360 | ||
18361 | # For the awk script, D is an array of macro values keyed by name, | |
18362 | # likewise P contains macro parameters if any. Preserve backslash | |
18363 | # newline sequences. | |
18364 | ||
18365 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18366 | sed -n ' | |
18367 | s/.\{148\}/&'"$ac_delim"'/g | |
18368 | t rset | |
18369 | :rset | |
18370 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18371 | t def | |
18372 | d | |
18373 | :def | |
18374 | s/\\$// | |
18375 | t bsnl | |
18376 | s/["\\]/\\&/g | |
18377 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18378 | D["\1"]=" \3"/p | |
18379 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18380 | d | |
18381 | :bsnl | |
18382 | s/["\\]/\\&/g | |
18383 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18384 | D["\1"]=" \3\\\\\\n"\\/p | |
18385 | t cont | |
18386 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18387 | t cont | |
18388 | d | |
18389 | :cont | |
18390 | n | |
18391 | s/.\{148\}/&'"$ac_delim"'/g | |
18392 | t clear | |
18393 | :clear | |
18394 | s/\\$// | |
18395 | t bsnlc | |
18396 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18397 | d | |
18398 | :bsnlc | |
18399 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18400 | b cont | |
18401 | ' <confdefs.h | sed ' | |
18402 | s/'"$ac_delim"'/"\\\ | |
18403 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18404 | ||
18405 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18406 | for (key in D) D_is_set[key] = 1 | |
18407 | FS = "\a" | |
18408 | } | |
18409 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18410 | line = \$ 0 | |
18411 | split(line, arg, " ") | |
18412 | if (arg[1] == "#") { | |
18413 | defundef = arg[2] | |
18414 | mac1 = arg[3] | |
18415 | } else { | |
18416 | defundef = substr(arg[1], 2) | |
18417 | mac1 = arg[2] | |
18418 | } | |
18419 | split(mac1, mac2, "(") #) | |
18420 | macro = mac2[1] | |
18421 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18422 | if (D_is_set[macro]) { | |
18423 | # Preserve the white space surrounding the "#". | |
18424 | print prefix "define", macro P[macro] D[macro] | |
18425 | next | |
18426 | } else { | |
18427 | # Replace #undef with comments. This is necessary, for example, | |
18428 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18429 | # on some systems where configure will not decide to define it. | |
18430 | if (defundef == "undef") { | |
18431 | print "/*", prefix defundef, macro, "*/" | |
18432 | next | |
18433 | } | |
18434 | } | |
18435 | } | |
18436 | { print } | |
18437 | _ACAWK | |
42ecbf5e | 18438 | _ACEOF |
81ecdfbb RW |
18439 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18440 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
18441 | fi # test -n "$CONFIG_HEADERS" | |
42ecbf5e | 18442 | |
81ecdfbb RW |
18443 | |
18444 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18445 | shift | |
18446 | for ac_tag | |
18447 | do | |
18448 | case $ac_tag in | |
18449 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18450 | esac | |
18451 | case $ac_mode$ac_tag in | |
18452 | :[FHL]*:*);; | |
18453 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
18454 | :[FH]-) ac_tag=-:-;; | |
18455 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18456 | esac | |
18457 | ac_save_IFS=$IFS | |
18458 | IFS=: | |
18459 | set x $ac_tag | |
18460 | IFS=$ac_save_IFS | |
18461 | shift | |
18462 | ac_file=$1 | |
18463 | shift | |
18464 | ||
18465 | case $ac_mode in | |
18466 | :L) ac_source=$1;; | |
18467 | :[FH]) | |
18468 | ac_file_inputs= | |
18469 | for ac_f | |
18470 | do | |
18471 | case $ac_f in | |
18472 | -) ac_f="$tmp/stdin";; | |
18473 | *) # Look for the file first in the build tree, then in the source tree | |
18474 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18475 | # because $ac_f cannot contain `:'. | |
18476 | test -f "$ac_f" || | |
18477 | case $ac_f in | |
18478 | [\\/$]*) false;; | |
18479 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18480 | esac || | |
18481 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
18482 | esac | |
18483 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18484 | as_fn_append ac_file_inputs " '$ac_f'" | |
18485 | done | |
18486 | ||
18487 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18488 | # use $as_me), people would be surprised to read: | |
18489 | # /* config.h. Generated by config.status. */ | |
18490 | configure_input='Generated from '` | |
18491 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18492 | `' by configure.' | |
18493 | if test x"$ac_file" != x-; then | |
18494 | configure_input="$ac_file. $configure_input" | |
18495 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18496 | $as_echo "$as_me: creating $ac_file" >&6;} | |
252b5132 | 18497 | fi |
81ecdfbb RW |
18498 | # Neutralize special characters interpreted by sed in replacement strings. |
18499 | case $configure_input in #( | |
18500 | *\&* | *\|* | *\\* ) | |
18501 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18502 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18503 | *) ac_sed_conf_input=$configure_input;; | |
18504 | esac | |
252b5132 | 18505 | |
81ecdfbb RW |
18506 | case $ac_tag in |
18507 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
18508 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
18509 | esac | |
18510 | ;; | |
252b5132 RH |
18511 | esac |
18512 | ||
81ecdfbb | 18513 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
18514 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18515 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18516 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18517 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18518 | $as_echo X"$ac_file" | | |
18519 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18520 | s//\1/ | |
18521 | q | |
18522 | } | |
18523 | /^X\(\/\/\)[^/].*/{ | |
18524 | s//\1/ | |
18525 | q | |
18526 | } | |
18527 | /^X\(\/\/\)$/{ | |
18528 | s//\1/ | |
18529 | q | |
18530 | } | |
18531 | /^X\(\/\).*/{ | |
18532 | s//\1/ | |
18533 | q | |
18534 | } | |
18535 | s/.*/./; q'` | |
18536 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e DJ |
18537 | ac_builddir=. |
18538 | ||
81ecdfbb RW |
18539 | case "$ac_dir" in |
18540 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18541 | *) | |
18542 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18543 | # A ".." for each directory in $ac_dir_suffix. | |
18544 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18545 | case $ac_top_builddir_sub in | |
18546 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18547 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18548 | esac ;; | |
18549 | esac | |
18550 | ac_abs_top_builddir=$ac_pwd | |
18551 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18552 | # for backward compatibility: | |
18553 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 18554 | |
42ecbf5e | 18555 | case $srcdir in |
81ecdfbb | 18556 | .) # We are building in place. |
42ecbf5e | 18557 | ac_srcdir=. |
81ecdfbb RW |
18558 | ac_top_srcdir=$ac_top_builddir_sub |
18559 | ac_abs_top_srcdir=$ac_pwd ;; | |
18560 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 18561 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
18562 | ac_top_srcdir=$srcdir |
18563 | ac_abs_top_srcdir=$srcdir ;; | |
18564 | *) # Relative name. | |
18565 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18566 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18567 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 18568 | esac |
81ecdfbb | 18569 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
42ecbf5e | 18570 | |
252b5132 | 18571 | |
81ecdfbb RW |
18572 | case $ac_mode in |
18573 | :F) | |
18574 | # | |
18575 | # CONFIG_FILE | |
18576 | # | |
e5a52504 | 18577 | |
42ecbf5e DJ |
18578 | case $INSTALL in |
18579 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
18580 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
18581 | esac | |
18582 | ac_MKDIR_P=$MKDIR_P | |
18583 | case $MKDIR_P in | |
18584 | [\\/$]* | ?:[\\/]* ) ;; | |
18585 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 18586 | esac |
81ecdfbb | 18587 | _ACEOF |
e5a52504 | 18588 | |
81ecdfbb RW |
18589 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18590 | # If the template does not know about datarootdir, expand it. | |
18591 | # FIXME: This hack should be removed a few years after 2.60. | |
18592 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18593 | ac_sed_dataroot=' | |
18594 | /datarootdir/ { | |
18595 | p | |
18596 | q | |
18597 | } | |
18598 | /@datadir@/p | |
18599 | /@docdir@/p | |
18600 | /@infodir@/p | |
18601 | /@localedir@/p | |
18602 | /@mandir@/p' | |
18603 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18604 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18605 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18607 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18608 | _ACEOF | |
18609 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18610 | ac_datarootdir_hack=' | |
18611 | s&@datadir@&$datadir&g | |
18612 | s&@docdir@&$docdir&g | |
18613 | s&@infodir@&$infodir&g | |
18614 | s&@localedir@&$localedir&g | |
18615 | s&@mandir@&$mandir&g | |
18616 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18617 | esac | |
42ecbf5e | 18618 | _ACEOF |
81ecdfbb RW |
18619 | |
18620 | # Neutralize VPATH when `$srcdir' = `.'. | |
18621 | # Shell code in configure.ac might set extrasub. | |
18622 | # FIXME: do we really want to maintain this feature? | |
18623 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18624 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
18625 | $extrasub |
18626 | _ACEOF | |
81ecdfbb | 18627 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
18628 | :t |
18629 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
18630 | s|@configure_input@|$ac_sed_conf_input|;t t |
18631 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18632 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18633 | s&@srcdir@&$ac_srcdir&;t t | |
18634 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18635 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18636 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18637 | s&@builddir@&$ac_builddir&;t t | |
18638 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18639 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18640 | s&@INSTALL@&$ac_INSTALL&;t t | |
18641 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18642 | $ac_datarootdir_hack | |
18643 | " | |
18644 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
18645 | if $ac_cs_awk_getline; then | |
18646 | $AWK -f "$tmp/subs.awk" | |
18647 | else | |
18648 | $AWK -f "$tmp/subs.awk" | $SHELL | |
18649 | fi >$tmp/out \ | |
18650 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18651 | ||
18652 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
18653 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
18654 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
18655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18656 | which seems to be undefined. Please make sure it is defined." >&5 | |
18657 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18658 | which seems to be undefined. Please make sure it is defined." >&2;} | |
18659 | ||
18660 | rm -f "$tmp/stdin" | |
42ecbf5e | 18661 | case $ac_file in |
81ecdfbb RW |
18662 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
18663 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
18664 | esac \ | |
18665 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18666 | ;; | |
18667 | :H) | |
18668 | # | |
18669 | # CONFIG_HEADER | |
18670 | # | |
42ecbf5e | 18671 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
18672 | { |
18673 | $as_echo "/* $configure_input */" \ | |
18674 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
18675 | } >"$tmp/config.h" \ | |
18676 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18677 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
18678 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
18679 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 18680 | else |
81ecdfbb RW |
18681 | rm -f "$ac_file" |
18682 | mv "$tmp/config.h" "$ac_file" \ | |
18683 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 18684 | fi |
42ecbf5e | 18685 | else |
81ecdfbb RW |
18686 | $as_echo "/* $configure_input */" \ |
18687 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
18688 | || as_fn_error "could not create -" "$LINENO" 5 | |
e5a52504 | 18689 | fi |
81ecdfbb RW |
18690 | # Compute "$ac_file"'s index in $config_headers. |
18691 | _am_arg="$ac_file" | |
42ecbf5e DJ |
18692 | _am_stamp_count=1 |
18693 | for _am_header in $config_headers :; do | |
18694 | case $_am_header in | |
81ecdfbb | 18695 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
18696 | break ;; |
18697 | * ) | |
18698 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18699 | esac | |
18700 | done | |
81ecdfbb RW |
18701 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
18702 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18703 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18704 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18705 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18706 | $as_echo X"$_am_arg" | | |
18707 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18708 | s//\1/ | |
18709 | q | |
18710 | } | |
18711 | /^X\(\/\/\)[^/].*/{ | |
18712 | s//\1/ | |
18713 | q | |
18714 | } | |
18715 | /^X\(\/\/\)$/{ | |
18716 | s//\1/ | |
18717 | q | |
18718 | } | |
18719 | /^X\(\/\).*/{ | |
18720 | s//\1/ | |
18721 | q | |
18722 | } | |
18723 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18724 | ;; | |
42ecbf5e | 18725 | |
81ecdfbb RW |
18726 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
18727 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18728 | ;; | |
18729 | esac | |
42ecbf5e DJ |
18730 | |
18731 | ||
81ecdfbb RW |
18732 | case $ac_file$ac_mode in |
18733 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
18734 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
18735 | # are listed without --file. Let's play safe and only enable the eval | |
18736 | # if we detect the quoting. | |
18737 | case $CONFIG_FILES in | |
18738 | *\'*) eval set x "$CONFIG_FILES" ;; | |
18739 | *) set x $CONFIG_FILES ;; | |
18740 | esac | |
18741 | shift | |
18742 | for mf | |
18743 | do | |
18744 | # Strip MF so we end up with the name of the file. | |
18745 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18746 | # Check whether this is an Automake generated Makefile or not. | |
18747 | # We used to match only the files named `Makefile.in', but | |
18748 | # some people rename them; so instead we look at the file content. | |
18749 | # Grep'ing the first line is not enough: some people post-process | |
18750 | # each Makefile.in and add a new line on top of each file to say so. | |
18751 | # Grep'ing the whole file is not good either: AIX grep has a line | |
18752 | # limit of 2048, but all sed's we know have understand at least 4000. | |
18753 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
18754 | dirpart=`$as_dirname -- "$mf" || | |
42ecbf5e DJ |
18755 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18756 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18757 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18758 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
18759 | $as_echo X"$mf" | | |
18760 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18761 | s//\1/ | |
18762 | q | |
18763 | } | |
18764 | /^X\(\/\/\)[^/].*/{ | |
18765 | s//\1/ | |
18766 | q | |
18767 | } | |
18768 | /^X\(\/\/\)$/{ | |
18769 | s//\1/ | |
18770 | q | |
18771 | } | |
18772 | /^X\(\/\).*/{ | |
18773 | s//\1/ | |
18774 | q | |
18775 | } | |
18776 | s/.*/./; q'` | |
18777 | else | |
18778 | continue | |
18779 | fi | |
18780 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18781 | # from the Makefile without running `make'. | |
18782 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18783 | test -z "$DEPDIR" && continue | |
18784 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18785 | test -z "am__include" && continue | |
18786 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18787 | # When using ansi2knr, U may be empty or an underscore; expand it | |
18788 | U=`sed -n 's/^U = //p' < "$mf"` | |
18789 | # Find all dependency output files, they are included files with | |
18790 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18791 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18792 | # expansion. | |
18793 | for file in `sed -n " | |
18794 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18795 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
18796 | # Make sure the directory exists. | |
18797 | test -f "$dirpart/$file" && continue | |
18798 | fdir=`$as_dirname -- "$file" || | |
42ecbf5e DJ |
18799 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18800 | X"$file" : 'X\(//\)[^/]' \| \ | |
18801 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18802 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
18803 | $as_echo X"$file" | | |
18804 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18805 | s//\1/ | |
18806 | q | |
18807 | } | |
18808 | /^X\(\/\/\)[^/].*/{ | |
18809 | s//\1/ | |
18810 | q | |
18811 | } | |
18812 | /^X\(\/\/\)$/{ | |
18813 | s//\1/ | |
18814 | q | |
18815 | } | |
18816 | /^X\(\/\).*/{ | |
18817 | s//\1/ | |
18818 | q | |
18819 | } | |
18820 | s/.*/./; q'` | |
18821 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
18822 | # echo "creating $dirpart/$file" | |
18823 | echo '# dummy' > "$dirpart/$file" | |
42ecbf5e | 18824 | done |
42ecbf5e | 18825 | done |
81ecdfbb | 18826 | } |
d7040cdb | 18827 | ;; |
81ecdfbb | 18828 | "libtool":C) |
d7040cdb SE |
18829 | |
18830 | # See if we are running on zsh, and set the options which allow our | |
18831 | # commands through without removal of \ escapes. | |
18832 | if test -n "${ZSH_VERSION+set}" ; then | |
18833 | setopt NO_GLOB_SUBST | |
18834 | fi | |
18835 | ||
18836 | cfgfile="${ofile}T" | |
18837 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18838 | $RM "$cfgfile" | |
18839 | ||
18840 | cat <<_LT_EOF >> "$cfgfile" | |
18841 | #! $SHELL | |
18842 | ||
18843 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 18844 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
18845 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18846 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18847 | # | |
b214d478 | 18848 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 18849 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
b214d478 | 18850 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 18851 | # |
b214d478 | 18852 | # This file is part of GNU Libtool. |
d7040cdb | 18853 | # |
b214d478 SE |
18854 | # GNU Libtool is free software; you can redistribute it and/or |
18855 | # modify it under the terms of the GNU General Public License as | |
18856 | # published by the Free Software Foundation; either version 2 of | |
18857 | # the License, or (at your option) any later version. | |
d7040cdb | 18858 | # |
b214d478 SE |
18859 | # As a special exception to the GNU General Public License, |
18860 | # if you distribute this file as part of a program or library that | |
18861 | # is built using GNU Libtool, you may include this file under the | |
18862 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 18863 | # |
b214d478 SE |
18864 | # GNU Libtool is distributed in the hope that it will be useful, |
18865 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18866 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18867 | # GNU General Public License for more details. | |
d7040cdb | 18868 | # |
b214d478 SE |
18869 | # You should have received a copy of the GNU General Public License |
18870 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18871 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18872 | # obtained by writing to the Free Software Foundation, Inc., | |
18873 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
18874 | |
18875 | ||
18876 | # The names of the tagged configurations supported by this script. | |
3cb62297 | 18877 | available_tags="CXX " |
d7040cdb SE |
18878 | |
18879 | # ### BEGIN LIBTOOL CONFIG | |
18880 | ||
18881 | # Which release of libtool.m4 was used? | |
18882 | macro_version=$macro_version | |
18883 | macro_revision=$macro_revision | |
18884 | ||
18885 | # Whether or not to build shared libraries. | |
18886 | build_libtool_libs=$enable_shared | |
18887 | ||
18888 | # Whether or not to build static libraries. | |
18889 | build_old_libs=$enable_static | |
18890 | ||
18891 | # What type of objects to build. | |
18892 | pic_mode=$pic_mode | |
18893 | ||
18894 | # Whether or not to optimize for fast installation. | |
18895 | fast_install=$enable_fast_install | |
18896 | ||
3725885a RW |
18897 | # Shell to use when invoking shell scripts. |
18898 | SHELL=$lt_SHELL | |
18899 | ||
18900 | # An echo program that protects backslashes. | |
18901 | ECHO=$lt_ECHO | |
18902 | ||
d7040cdb SE |
18903 | # The host system. |
18904 | host_alias=$host_alias | |
18905 | host=$host | |
18906 | host_os=$host_os | |
18907 | ||
18908 | # The build system. | |
18909 | build_alias=$build_alias | |
18910 | build=$build | |
18911 | build_os=$build_os | |
18912 | ||
18913 | # A sed program that does not truncate output. | |
18914 | SED=$lt_SED | |
18915 | ||
18916 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18917 | Xsed="\$SED -e 1s/^X//" | |
18918 | ||
18919 | # A grep program that handles long lines. | |
18920 | GREP=$lt_GREP | |
18921 | ||
18922 | # An ERE matcher. | |
18923 | EGREP=$lt_EGREP | |
18924 | ||
18925 | # A literal string matcher. | |
18926 | FGREP=$lt_FGREP | |
18927 | ||
18928 | # A BSD- or MS-compatible name lister. | |
18929 | NM=$lt_NM | |
18930 | ||
18931 | # Whether we need soft or hard links. | |
18932 | LN_S=$lt_LN_S | |
18933 | ||
18934 | # What is the maximum length of a command? | |
18935 | max_cmd_len=$max_cmd_len | |
18936 | ||
18937 | # Object file suffix (normally "o"). | |
18938 | objext=$ac_objext | |
18939 | ||
18940 | # Executable file suffix (normally ""). | |
18941 | exeext=$exeext | |
18942 | ||
18943 | # whether the shell understands "unset". | |
18944 | lt_unset=$lt_unset | |
18945 | ||
18946 | # turn spaces into newlines. | |
18947 | SP2NL=$lt_lt_SP2NL | |
18948 | ||
18949 | # turn newlines into spaces. | |
18950 | NL2SP=$lt_lt_NL2SP | |
18951 | ||
b214d478 SE |
18952 | # An object symbol dumper. |
18953 | OBJDUMP=$lt_OBJDUMP | |
18954 | ||
d7040cdb SE |
18955 | # Method to check whether dependent libraries are shared objects. |
18956 | deplibs_check_method=$lt_deplibs_check_method | |
18957 | ||
18958 | # Command to use when deplibs_check_method == "file_magic". | |
18959 | file_magic_cmd=$lt_file_magic_cmd | |
18960 | ||
18961 | # The archiver. | |
18962 | AR=$lt_AR | |
18963 | AR_FLAGS=$lt_AR_FLAGS | |
18964 | ||
18965 | # A symbol stripping program. | |
18966 | STRIP=$lt_STRIP | |
18967 | ||
18968 | # Commands used to install an old-style archive. | |
18969 | RANLIB=$lt_RANLIB | |
18970 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18971 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18972 | ||
3725885a RW |
18973 | # Whether to use a lock for old archive extraction. |
18974 | lock_old_archive_extraction=$lock_old_archive_extraction | |
18975 | ||
d7040cdb SE |
18976 | # A C compiler. |
18977 | LTCC=$lt_CC | |
18978 | ||
18979 | # LTCC compiler flags. | |
18980 | LTCFLAGS=$lt_CFLAGS | |
18981 | ||
18982 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18983 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18984 | ||
18985 | # Transform the output of nm in a proper C declaration. | |
18986 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18987 | ||
18988 | # Transform the output of nm in a C name address pair. | |
18989 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18990 | ||
b214d478 SE |
18991 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
18992 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18993 | ||
d7040cdb SE |
18994 | # The name of the directory that contains temporary libtool files. |
18995 | objdir=$objdir | |
18996 | ||
d7040cdb SE |
18997 | # Used to examine libraries when file_magic_cmd begins with "file". |
18998 | MAGIC_CMD=$MAGIC_CMD | |
18999 | ||
19000 | # Must we lock files when doing compilation? | |
19001 | need_locks=$lt_need_locks | |
19002 | ||
b214d478 SE |
19003 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19004 | DSYMUTIL=$lt_DSYMUTIL | |
19005 | ||
19006 | # Tool to change global to local symbols on Mac OS X. | |
19007 | NMEDIT=$lt_NMEDIT | |
19008 | ||
19009 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19010 | LIPO=$lt_LIPO | |
19011 | ||
19012 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19013 | OTOOL=$lt_OTOOL | |
19014 | ||
19015 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19016 | OTOOL64=$lt_OTOOL64 | |
19017 | ||
d7040cdb SE |
19018 | # Old archive suffix (normally "a"). |
19019 | libext=$libext | |
19020 | ||
19021 | # Shared library suffix (normally ".so"). | |
19022 | shrext_cmds=$lt_shrext_cmds | |
19023 | ||
19024 | # The commands to extract the exported symbol list from a shared archive. | |
19025 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19026 | ||
19027 | # Variables whose values should be saved in libtool wrapper scripts and | |
19028 | # restored at link time. | |
19029 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19030 | ||
19031 | # Do we need the "lib" prefix for modules? | |
19032 | need_lib_prefix=$need_lib_prefix | |
19033 | ||
19034 | # Do we need a version for libraries? | |
19035 | need_version=$need_version | |
19036 | ||
19037 | # Library versioning type. | |
19038 | version_type=$version_type | |
19039 | ||
19040 | # Shared library runtime path variable. | |
19041 | runpath_var=$runpath_var | |
19042 | ||
19043 | # Shared library path variable. | |
19044 | shlibpath_var=$shlibpath_var | |
19045 | ||
19046 | # Is shlibpath searched before the hard-coded library search path? | |
19047 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19048 | ||
19049 | # Format of library name prefix. | |
19050 | libname_spec=$lt_libname_spec | |
19051 | ||
19052 | # List of archive names. First name is the real one, the rest are links. | |
19053 | # The last name is the one that the linker finds with -lNAME | |
19054 | library_names_spec=$lt_library_names_spec | |
19055 | ||
19056 | # The coded name of the library, if different from the real name. | |
19057 | soname_spec=$lt_soname_spec | |
19058 | ||
3725885a RW |
19059 | # Permission mode override for installation of shared libraries. |
19060 | install_override_mode=$lt_install_override_mode | |
19061 | ||
d7040cdb SE |
19062 | # Command to use after installation of a shared archive. |
19063 | postinstall_cmds=$lt_postinstall_cmds | |
19064 | ||
19065 | # Command to use after uninstallation of a shared archive. | |
19066 | postuninstall_cmds=$lt_postuninstall_cmds | |
19067 | ||
19068 | # Commands used to finish a libtool library installation in a directory. | |
19069 | finish_cmds=$lt_finish_cmds | |
19070 | ||
19071 | # As "finish_cmds", except a single script fragment to be evaled but | |
19072 | # not shown. | |
19073 | finish_eval=$lt_finish_eval | |
19074 | ||
19075 | # Whether we should hardcode library paths into libraries. | |
19076 | hardcode_into_libs=$hardcode_into_libs | |
19077 | ||
19078 | # Compile-time system search path for libraries. | |
19079 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19080 | ||
19081 | # Run-time system search path for libraries. | |
19082 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19083 | ||
19084 | # Whether dlopen is supported. | |
19085 | dlopen_support=$enable_dlopen | |
19086 | ||
19087 | # Whether dlopen of programs is supported. | |
19088 | dlopen_self=$enable_dlopen_self | |
19089 | ||
19090 | # Whether dlopen of statically linked programs is supported. | |
19091 | dlopen_self_static=$enable_dlopen_self_static | |
19092 | ||
19093 | # Commands to strip libraries. | |
19094 | old_striplib=$lt_old_striplib | |
19095 | striplib=$lt_striplib | |
19096 | ||
19097 | ||
19098 | # The linker used to build libraries. | |
19099 | LD=$lt_LD | |
19100 | ||
3725885a RW |
19101 | # How to create reloadable object files. |
19102 | reload_flag=$lt_reload_flag | |
19103 | reload_cmds=$lt_reload_cmds | |
19104 | ||
d7040cdb SE |
19105 | # Commands used to build an old-style archive. |
19106 | old_archive_cmds=$lt_old_archive_cmds | |
19107 | ||
19108 | # A language specific compiler. | |
19109 | CC=$lt_compiler | |
19110 | ||
19111 | # Is the compiler the GNU compiler? | |
19112 | with_gcc=$GCC | |
19113 | ||
19114 | # Compiler flag to turn off builtin functions. | |
19115 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19116 | ||
19117 | # How to pass a linker flag through the compiler. | |
19118 | wl=$lt_lt_prog_compiler_wl | |
19119 | ||
19120 | # Additional compiler flags for building library objects. | |
19121 | pic_flag=$lt_lt_prog_compiler_pic | |
19122 | ||
19123 | # Compiler flag to prevent dynamic linking. | |
19124 | link_static_flag=$lt_lt_prog_compiler_static | |
19125 | ||
19126 | # Does compiler simultaneously support -c and -o options? | |
19127 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19128 | ||
19129 | # Whether or not to add -lc for building shared libraries. | |
19130 | build_libtool_need_lc=$archive_cmds_need_lc | |
19131 | ||
19132 | # Whether or not to disallow shared libs when runtime libs are static. | |
19133 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19134 | ||
19135 | # Compiler flag to allow reflexive dlopens. | |
19136 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19137 | ||
19138 | # Compiler flag to generate shared objects directly from archives. | |
19139 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19140 | ||
19141 | # Whether the compiler copes with passing no objects directly. | |
19142 | compiler_needs_object=$lt_compiler_needs_object | |
19143 | ||
19144 | # Create an old-style archive from a shared archive. | |
19145 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19146 | ||
19147 | # Create a temporary old-style archive to link instead of a shared archive. | |
19148 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19149 | ||
19150 | # Commands used to build a shared archive. | |
19151 | archive_cmds=$lt_archive_cmds | |
19152 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19153 | ||
19154 | # Commands used to build a loadable module if different from building | |
19155 | # a shared archive. | |
19156 | module_cmds=$lt_module_cmds | |
19157 | module_expsym_cmds=$lt_module_expsym_cmds | |
19158 | ||
19159 | # Whether we are building with GNU ld or not. | |
19160 | with_gnu_ld=$lt_with_gnu_ld | |
19161 | ||
19162 | # Flag that allows shared libraries with undefined symbols to be built. | |
19163 | allow_undefined_flag=$lt_allow_undefined_flag | |
19164 | ||
19165 | # Flag that enforces no undefined symbols. | |
19166 | no_undefined_flag=$lt_no_undefined_flag | |
19167 | ||
19168 | # Flag to hardcode \$libdir into a binary during linking. | |
19169 | # This must work even if \$libdir does not exist | |
19170 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19171 | ||
19172 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19173 | # during linking. This must work even if \$libdir does not exist. | |
19174 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19175 | ||
19176 | # Whether we need a single "-rpath" flag with a separated argument. | |
19177 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19178 | ||
19179 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19180 | # DIR into the resulting binary. | |
19181 | hardcode_direct=$hardcode_direct | |
19182 | ||
19183 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19184 | # DIR into the resulting binary and the resulting library dependency is | |
19185 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19186 | # library is relocated. | |
19187 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19188 | ||
19189 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19190 | # into the resulting binary. | |
19191 | hardcode_minus_L=$hardcode_minus_L | |
19192 | ||
19193 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19194 | # into the resulting binary. | |
19195 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19196 | ||
19197 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19198 | # into the library and all subsequent libraries and executables linked | |
19199 | # against it. | |
19200 | hardcode_automatic=$hardcode_automatic | |
19201 | ||
19202 | # Set to yes if linker adds runtime paths of dependent libraries | |
19203 | # to runtime path list. | |
19204 | inherit_rpath=$inherit_rpath | |
19205 | ||
19206 | # Whether libtool must link a program against all its dependency libraries. | |
19207 | link_all_deplibs=$link_all_deplibs | |
19208 | ||
19209 | # Fix the shell variable \$srcfile for the compiler. | |
19210 | fix_srcfile_path=$lt_fix_srcfile_path | |
19211 | ||
19212 | # Set to "yes" if exported symbols are required. | |
19213 | always_export_symbols=$always_export_symbols | |
19214 | ||
19215 | # The commands to list exported symbols. | |
19216 | export_symbols_cmds=$lt_export_symbols_cmds | |
19217 | ||
19218 | # Symbols that should not be listed in the preloaded symbols. | |
19219 | exclude_expsyms=$lt_exclude_expsyms | |
19220 | ||
19221 | # Symbols that must always be exported. | |
19222 | include_expsyms=$lt_include_expsyms | |
19223 | ||
19224 | # Commands necessary for linking programs (against libraries) with templates. | |
19225 | prelink_cmds=$lt_prelink_cmds | |
19226 | ||
19227 | # Specify filename containing input files. | |
19228 | file_list_spec=$lt_file_list_spec | |
19229 | ||
19230 | # How to hardcode a shared library path into an executable. | |
19231 | hardcode_action=$hardcode_action | |
19232 | ||
3cb62297 L |
19233 | # The directories searched by this compiler when creating a shared library. |
19234 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19235 | ||
19236 | # Dependencies to place before and after the objects being linked to | |
19237 | # create a shared library. | |
19238 | predep_objects=$lt_predep_objects | |
19239 | postdep_objects=$lt_postdep_objects | |
19240 | predeps=$lt_predeps | |
19241 | postdeps=$lt_postdeps | |
19242 | ||
19243 | # The library search path used internally by the compiler when linking | |
19244 | # a shared library. | |
19245 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19246 | ||
d7040cdb SE |
19247 | # ### END LIBTOOL CONFIG |
19248 | ||
19249 | _LT_EOF | |
19250 | ||
19251 | case $host_os in | |
19252 | aix3*) | |
19253 | cat <<\_LT_EOF >> "$cfgfile" | |
19254 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19255 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19256 | # vanish in a puff of smoke. | |
19257 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19258 | COLLECT_NAMES= | |
19259 | export COLLECT_NAMES | |
19260 | fi | |
19261 | _LT_EOF | |
19262 | ;; | |
19263 | esac | |
19264 | ||
19265 | ||
19266 | ltmain="$ac_aux_dir/ltmain.sh" | |
19267 | ||
19268 | ||
19269 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19270 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19271 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19272 | # is reportedly fixed, but why not run on old versions too? | |
19273 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19274 | || (rm -f "$cfgfile"; exit 1) | |
19275 | ||
19276 | case $xsi_shell in | |
19277 | yes) | |
19278 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19279 | |
d7040cdb SE |
19280 | # func_dirname file append nondir_replacement |
19281 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19282 | # otherwise set result to NONDIR_REPLACEMENT. | |
19283 | func_dirname () | |
19284 | { | |
19285 | case ${1} in | |
19286 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19287 | * ) func_dirname_result="${3}" ;; | |
19288 | esac | |
19289 | } | |
19290 | ||
19291 | # func_basename file | |
19292 | func_basename () | |
19293 | { | |
19294 | func_basename_result="${1##*/}" | |
19295 | } | |
19296 | ||
b214d478 SE |
19297 | # func_dirname_and_basename file append nondir_replacement |
19298 | # perform func_basename and func_dirname in a single function | |
19299 | # call: | |
19300 | # dirname: Compute the dirname of FILE. If nonempty, | |
19301 | # add APPEND to the result, otherwise set result | |
19302 | # to NONDIR_REPLACEMENT. | |
19303 | # value returned in "$func_dirname_result" | |
19304 | # basename: Compute filename of FILE. | |
19305 | # value retuned in "$func_basename_result" | |
19306 | # Implementation must be kept synchronized with func_dirname | |
19307 | # and func_basename. For efficiency, we do not delegate to | |
19308 | # those functions but instead duplicate the functionality here. | |
19309 | func_dirname_and_basename () | |
19310 | { | |
19311 | case ${1} in | |
19312 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19313 | * ) func_dirname_result="${3}" ;; | |
19314 | esac | |
19315 | func_basename_result="${1##*/}" | |
19316 | } | |
19317 | ||
d7040cdb SE |
19318 | # func_stripname prefix suffix name |
19319 | # strip PREFIX and SUFFIX off of NAME. | |
19320 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19321 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19322 | # dot (in which case that matches only a dot). | |
19323 | func_stripname () | |
19324 | { | |
19325 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19326 | # positional parameters, so assign one to ordinary parameter first. | |
19327 | func_stripname_result=${3} | |
19328 | func_stripname_result=${func_stripname_result#"${1}"} | |
19329 | func_stripname_result=${func_stripname_result%"${2}"} | |
19330 | } | |
19331 | ||
19332 | # func_opt_split | |
19333 | func_opt_split () | |
19334 | { | |
19335 | func_opt_split_opt=${1%%=*} | |
19336 | func_opt_split_arg=${1#*=} | |
19337 | } | |
19338 | ||
19339 | # func_lo2o object | |
19340 | func_lo2o () | |
19341 | { | |
19342 | case ${1} in | |
19343 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19344 | *) func_lo2o_result=${1} ;; | |
19345 | esac | |
19346 | } | |
b214d478 SE |
19347 | |
19348 | # func_xform libobj-or-source | |
19349 | func_xform () | |
19350 | { | |
19351 | func_xform_result=${1%.*}.lo | |
19352 | } | |
19353 | ||
19354 | # func_arith arithmetic-term... | |
19355 | func_arith () | |
19356 | { | |
19357 | func_arith_result=$(( $* )) | |
19358 | } | |
19359 | ||
19360 | # func_len string | |
19361 | # STRING may not start with a hyphen. | |
19362 | func_len () | |
19363 | { | |
19364 | func_len_result=${#1} | |
19365 | } | |
19366 | ||
d7040cdb SE |
19367 | _LT_EOF |
19368 | ;; | |
19369 | *) # Bourne compatible functions. | |
19370 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19371 | |
d7040cdb SE |
19372 | # func_dirname file append nondir_replacement |
19373 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19374 | # otherwise set result to NONDIR_REPLACEMENT. | |
19375 | func_dirname () | |
19376 | { | |
19377 | # Extract subdirectory from the argument. | |
3725885a | 19378 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
19379 | if test "X$func_dirname_result" = "X${1}"; then |
19380 | func_dirname_result="${3}" | |
19381 | else | |
19382 | func_dirname_result="$func_dirname_result${2}" | |
19383 | fi | |
19384 | } | |
19385 | ||
19386 | # func_basename file | |
19387 | func_basename () | |
19388 | { | |
3725885a | 19389 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
19390 | } |
19391 | ||
b214d478 | 19392 | |
d7040cdb SE |
19393 | # func_stripname prefix suffix name |
19394 | # strip PREFIX and SUFFIX off of NAME. | |
19395 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19396 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19397 | # dot (in which case that matches only a dot). | |
19398 | # func_strip_suffix prefix name | |
19399 | func_stripname () | |
19400 | { | |
19401 | case ${2} in | |
3725885a RW |
19402 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
19403 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
19404 | esac |
19405 | } | |
19406 | ||
19407 | # sed scripts: | |
19408 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19409 | my_sed_long_arg='1s/^-[^=]*=//' | |
19410 | ||
19411 | # func_opt_split | |
19412 | func_opt_split () | |
19413 | { | |
3725885a RW |
19414 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
19415 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
19416 | } |
19417 | ||
19418 | # func_lo2o object | |
19419 | func_lo2o () | |
19420 | { | |
3725885a | 19421 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 19422 | } |
b214d478 SE |
19423 | |
19424 | # func_xform libobj-or-source | |
19425 | func_xform () | |
19426 | { | |
3725885a | 19427 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
b214d478 SE |
19428 | } |
19429 | ||
19430 | # func_arith arithmetic-term... | |
19431 | func_arith () | |
19432 | { | |
19433 | func_arith_result=`expr "$@"` | |
19434 | } | |
19435 | ||
19436 | # func_len string | |
19437 | # STRING may not start with a hyphen. | |
19438 | func_len () | |
19439 | { | |
19440 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19441 | } | |
19442 | ||
d7040cdb SE |
19443 | _LT_EOF |
19444 | esac | |
19445 | ||
19446 | case $lt_shell_append in | |
19447 | yes) | |
19448 | cat << \_LT_EOF >> "$cfgfile" | |
19449 | ||
19450 | # func_append var value | |
19451 | # Append VALUE to the end of shell variable VAR. | |
19452 | func_append () | |
19453 | { | |
19454 | eval "$1+=\$2" | |
19455 | } | |
19456 | _LT_EOF | |
19457 | ;; | |
19458 | *) | |
19459 | cat << \_LT_EOF >> "$cfgfile" | |
19460 | ||
19461 | # func_append var value | |
19462 | # Append VALUE to the end of shell variable VAR. | |
19463 | func_append () | |
19464 | { | |
19465 | eval "$1=\$$1\$2" | |
19466 | } | |
b214d478 | 19467 | |
d7040cdb SE |
19468 | _LT_EOF |
19469 | ;; | |
19470 | esac | |
19471 | ||
19472 | ||
19473 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19474 | || (rm -f "$cfgfile"; exit 1) | |
19475 | ||
19476 | mv -f "$cfgfile" "$ofile" || | |
19477 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19478 | chmod +x "$ofile" | |
19479 | ||
3cb62297 L |
19480 | |
19481 | cat <<_LT_EOF >> "$ofile" | |
19482 | ||
19483 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
19484 | ||
19485 | # The linker used to build libraries. | |
19486 | LD=$lt_LD_CXX | |
19487 | ||
19488 | # How to create reloadable object files. | |
19489 | reload_flag=$lt_reload_flag_CXX | |
19490 | reload_cmds=$lt_reload_cmds_CXX | |
19491 | ||
19492 | # Commands used to build an old-style archive. | |
19493 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
19494 | ||
19495 | # A language specific compiler. | |
19496 | CC=$lt_compiler_CXX | |
19497 | ||
19498 | # Is the compiler the GNU compiler? | |
19499 | with_gcc=$GCC_CXX | |
19500 | ||
19501 | # Compiler flag to turn off builtin functions. | |
19502 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
19503 | ||
19504 | # How to pass a linker flag through the compiler. | |
19505 | wl=$lt_lt_prog_compiler_wl_CXX | |
19506 | ||
19507 | # Additional compiler flags for building library objects. | |
19508 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
19509 | ||
19510 | # Compiler flag to prevent dynamic linking. | |
19511 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
19512 | ||
19513 | # Does compiler simultaneously support -c and -o options? | |
19514 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
19515 | ||
19516 | # Whether or not to add -lc for building shared libraries. | |
19517 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
19518 | ||
19519 | # Whether or not to disallow shared libs when runtime libs are static. | |
19520 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
19521 | ||
19522 | # Compiler flag to allow reflexive dlopens. | |
19523 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
19524 | ||
19525 | # Compiler flag to generate shared objects directly from archives. | |
19526 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
19527 | ||
19528 | # Whether the compiler copes with passing no objects directly. | |
19529 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
19530 | ||
19531 | # Create an old-style archive from a shared archive. | |
19532 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
19533 | ||
19534 | # Create a temporary old-style archive to link instead of a shared archive. | |
19535 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
19536 | ||
19537 | # Commands used to build a shared archive. | |
19538 | archive_cmds=$lt_archive_cmds_CXX | |
19539 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
19540 | ||
19541 | # Commands used to build a loadable module if different from building | |
19542 | # a shared archive. | |
19543 | module_cmds=$lt_module_cmds_CXX | |
19544 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
19545 | ||
19546 | # Whether we are building with GNU ld or not. | |
19547 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
19548 | ||
19549 | # Flag that allows shared libraries with undefined symbols to be built. | |
19550 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
19551 | ||
19552 | # Flag that enforces no undefined symbols. | |
19553 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
19554 | ||
19555 | # Flag to hardcode \$libdir into a binary during linking. | |
19556 | # This must work even if \$libdir does not exist | |
19557 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
19558 | ||
19559 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19560 | # during linking. This must work even if \$libdir does not exist. | |
19561 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
19562 | ||
19563 | # Whether we need a single "-rpath" flag with a separated argument. | |
19564 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
19565 | ||
19566 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19567 | # DIR into the resulting binary. | |
19568 | hardcode_direct=$hardcode_direct_CXX | |
19569 | ||
19570 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19571 | # DIR into the resulting binary and the resulting library dependency is | |
19572 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19573 | # library is relocated. | |
19574 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
19575 | ||
19576 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19577 | # into the resulting binary. | |
19578 | hardcode_minus_L=$hardcode_minus_L_CXX | |
19579 | ||
19580 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19581 | # into the resulting binary. | |
19582 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
19583 | ||
19584 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19585 | # into the library and all subsequent libraries and executables linked | |
19586 | # against it. | |
19587 | hardcode_automatic=$hardcode_automatic_CXX | |
19588 | ||
19589 | # Set to yes if linker adds runtime paths of dependent libraries | |
19590 | # to runtime path list. | |
19591 | inherit_rpath=$inherit_rpath_CXX | |
19592 | ||
19593 | # Whether libtool must link a program against all its dependency libraries. | |
19594 | link_all_deplibs=$link_all_deplibs_CXX | |
19595 | ||
19596 | # Fix the shell variable \$srcfile for the compiler. | |
19597 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
19598 | ||
19599 | # Set to "yes" if exported symbols are required. | |
19600 | always_export_symbols=$always_export_symbols_CXX | |
19601 | ||
19602 | # The commands to list exported symbols. | |
19603 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
19604 | ||
19605 | # Symbols that should not be listed in the preloaded symbols. | |
19606 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
19607 | ||
19608 | # Symbols that must always be exported. | |
19609 | include_expsyms=$lt_include_expsyms_CXX | |
19610 | ||
19611 | # Commands necessary for linking programs (against libraries) with templates. | |
19612 | prelink_cmds=$lt_prelink_cmds_CXX | |
19613 | ||
19614 | # Specify filename containing input files. | |
19615 | file_list_spec=$lt_file_list_spec_CXX | |
19616 | ||
19617 | # How to hardcode a shared library path into an executable. | |
19618 | hardcode_action=$hardcode_action_CXX | |
19619 | ||
19620 | # The directories searched by this compiler when creating a shared library. | |
19621 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
19622 | ||
19623 | # Dependencies to place before and after the objects being linked to | |
19624 | # create a shared library. | |
19625 | predep_objects=$lt_predep_objects_CXX | |
19626 | postdep_objects=$lt_postdep_objects_CXX | |
19627 | predeps=$lt_predeps_CXX | |
19628 | postdeps=$lt_postdeps_CXX | |
19629 | ||
19630 | # The library search path used internally by the compiler when linking | |
19631 | # a shared library. | |
19632 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19633 | ||
19634 | # ### END LIBTOOL TAG CONFIG: CXX | |
19635 | _LT_EOF | |
19636 | ||
42ecbf5e | 19637 | ;; |
81ecdfbb | 19638 | "default-1":C) |
20e95c23 DJ |
19639 | for ac_file in $CONFIG_FILES; do |
19640 | # Support "outfile[:infile[:infile...]]" | |
19641 | case "$ac_file" in | |
19642 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19643 | esac | |
19644 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
19645 | case "$ac_file" in */Makefile.in) | |
19646 | # Adjust a relative srcdir. | |
19647 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 19648 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
19649 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
19650 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
19651 | # In autoconf-2.50 it is called $srcdir. | |
19652 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
19653 | case "$ac_given_srcdir" in | |
19654 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
19655 | /*) top_srcdir="$ac_given_srcdir" ;; | |
19656 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
19657 | esac | |
19658 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
19659 | rm -f "$ac_dir/POTFILES" | |
19660 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
19661 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
19662 | POMAKEFILEDEPS="POTFILES.in" | |
19663 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
19664 | # on $ac_dir but don't depend on user-specified configuration | |
19665 | # parameters. | |
19666 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
19667 | # The LINGUAS file contains the set of available languages. | |
19668 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
19669 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
19670 | fi | |
19671 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
19672 | # Hide the ALL_LINGUAS assigment from automake. | |
19673 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
19674 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
19675 | else | |
19676 | # The set of available languages was given in configure.in. | |
19677 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
19678 | fi | |
19679 | case "$ac_given_srcdir" in | |
19680 | .) srcdirpre= ;; | |
19681 | *) srcdirpre='$(srcdir)/' ;; | |
19682 | esac | |
19683 | POFILES= | |
19684 | GMOFILES= | |
19685 | UPDATEPOFILES= | |
19686 | DUMMYPOFILES= | |
19687 | for lang in $ALL_LINGUAS; do | |
19688 | POFILES="$POFILES $srcdirpre$lang.po" | |
19689 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
19690 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
19691 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
19692 | done | |
19693 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
19694 | # environment variable. | |
19695 | INST_LINGUAS= | |
19696 | if test -n "$ALL_LINGUAS"; then | |
19697 | for presentlang in $ALL_LINGUAS; do | |
19698 | useit=no | |
19699 | if test "%UNSET%" != "$LINGUAS"; then | |
19700 | desiredlanguages="$LINGUAS" | |
19701 | else | |
19702 | desiredlanguages="$ALL_LINGUAS" | |
19703 | fi | |
19704 | for desiredlang in $desiredlanguages; do | |
19705 | # Use the presentlang catalog if desiredlang is | |
19706 | # a. equal to presentlang, or | |
19707 | # b. a variant of presentlang (because in this case, | |
19708 | # presentlang can be used as a fallback for messages | |
19709 | # which are not translated in the desiredlang catalog). | |
19710 | case "$desiredlang" in | |
19711 | "$presentlang"*) useit=yes;; | |
19712 | esac | |
19713 | done | |
19714 | if test $useit = yes; then | |
19715 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
19716 | fi | |
19717 | done | |
19718 | fi | |
19719 | CATALOGS= | |
19720 | if test -n "$INST_LINGUAS"; then | |
19721 | for lang in $INST_LINGUAS; do | |
19722 | CATALOGS="$CATALOGS $lang.gmo" | |
19723 | done | |
19724 | fi | |
19725 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
19726 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
19727 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
19728 | if test -f "$f"; then | |
19729 | case "$f" in | |
19730 | *.orig | *.bak | *~) ;; | |
19731 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
19732 | esac | |
19733 | fi | |
19734 | done | |
19735 | fi | |
19736 | ;; | |
19737 | esac | |
19738 | done ;; | |
81ecdfbb | 19739 | |
42ecbf5e | 19740 | esac |
81ecdfbb | 19741 | done # for ac_tag |
42ecbf5e | 19742 | |
42ecbf5e | 19743 | |
81ecdfbb | 19744 | as_fn_exit 0 |
42ecbf5e | 19745 | _ACEOF |
42ecbf5e DJ |
19746 | ac_clean_files=$ac_clean_files_save |
19747 | ||
81ecdfbb RW |
19748 | test $ac_write_fail = 0 || |
19749 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
19750 | ||
42ecbf5e DJ |
19751 | |
19752 | # configure is writing to config.log, and then calls config.status. | |
19753 | # config.status does its own redirection, appending to config.log. | |
19754 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19755 | # by configure, so config.status won't be able to write to it; its | |
19756 | # output is simply discarded. So we exec the FD to /dev/null, | |
19757 | # effectively closing config.log, so it can be properly (re)opened and | |
19758 | # appended to by config.status. When coming back to configure, we | |
19759 | # need to make the FD available again. | |
19760 | if test "$no_create" != yes; then | |
19761 | ac_cs_success=: | |
19762 | ac_config_status_args= | |
19763 | test "$silent" = yes && | |
19764 | ac_config_status_args="$ac_config_status_args --quiet" | |
19765 | exec 5>/dev/null | |
19766 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19767 | exec 5>>config.log | |
19768 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19769 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
19770 | $ac_cs_success || as_fn_exit $? |
19771 | fi | |
19772 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19774 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 19775 | fi |
252b5132 | 19776 |