Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
91dc4e0a | 3 | # Generated by GNU Autoconf 2.64 for ld 2.25.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' | |
91dc4e0a TG |
559 | PACKAGE_VERSION='2.25.51' |
560 | PACKAGE_STRING='ld 2.25.51' | |
2e98a7bd AM |
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 | |
c58212ea L |
611 | elf_plt_unwind_list_options |
612 | elf_shlib_list_options | |
613 | elf_list_options | |
81ecdfbb | 614 | STRINGIFY |
02ecc8e9 | 615 | enable_initfini_array |
5d3236ee DK |
616 | ENABLE_PLUGINS_FALSE |
617 | ENABLE_PLUGINS_TRUE | |
81ecdfbb | 618 | NATIVE_LIB_DIRS |
b27caf75 | 619 | HOSTING_SLIBS |
81ecdfbb | 620 | HOSTING_LIBS |
6738cadc | 621 | HOSTING_SCRT0 |
81ecdfbb RW |
622 | HOSTING_CRT0 |
623 | HDEFINES | |
624 | do_compare | |
625 | GENINSRC_NEVER_FALSE | |
626 | GENINSRC_NEVER_TRUE | |
81ecdfbb RW |
627 | LEXLIB |
628 | LEX_OUTPUT_ROOT | |
629 | LEX | |
630 | YFLAGS | |
631 | YACC | |
632 | MSGMERGE | |
633 | MSGFMT | |
634 | MKINSTALLDIRS | |
635 | CATOBJEXT | |
636 | GENCAT | |
637 | INSTOBJEXT | |
638 | DATADIRNAME | |
639 | CATALOGS | |
640 | POSUB | |
641 | GMSGFMT | |
642 | XGETTEXT | |
643 | INCINTL | |
644 | LIBINTL_DEP | |
645 | LIBINTL | |
646 | USE_NLS | |
b879806f AM |
647 | NO_WERROR |
648 | WARN_CFLAGS | |
649 | installed_linker | |
650 | install_as_default | |
651 | TARGET_SYSTEM_ROOT_DEFINE | |
652 | TARGET_SYSTEM_ROOT | |
653 | use_sysroot | |
3cb62297 | 654 | CXXCPP |
81ecdfbb RW |
655 | OTOOL64 |
656 | OTOOL | |
657 | LIPO | |
658 | NMEDIT | |
659 | DSYMUTIL | |
81ecdfbb RW |
660 | RANLIB |
661 | AR | |
662 | OBJDUMP | |
663 | LN_S | |
664 | NM | |
665 | ac_ct_DUMPBIN | |
666 | DUMPBIN | |
667 | LD | |
668 | FGREP | |
669 | SED | |
670 | LIBTOOL | |
b879806f | 671 | EGREP |
b879806f | 672 | CPP |
68880f31 | 673 | GREP |
3cb62297 L |
674 | am__fastdepCXX_FALSE |
675 | am__fastdepCXX_TRUE | |
676 | CXXDEPMODE | |
677 | ac_ct_CXX | |
678 | CXXFLAGS | |
679 | CXX | |
64ac50ac RW |
680 | MAINT |
681 | MAINTAINER_MODE_FALSE | |
682 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
683 | am__fastdepCC_FALSE |
684 | am__fastdepCC_TRUE | |
685 | CCDEPMODE | |
686 | AMDEPBACKSLASH | |
687 | AMDEP_FALSE | |
688 | AMDEP_TRUE | |
689 | am__quote | |
690 | am__include | |
691 | DEPDIR | |
692 | am__untar | |
693 | am__tar | |
694 | AMTAR | |
695 | am__leading_dot | |
696 | SET_MAKE | |
697 | AWK | |
698 | mkdir_p | |
699 | MKDIR_P | |
700 | INSTALL_STRIP_PROGRAM | |
701 | STRIP | |
702 | install_sh | |
703 | MAKEINFO | |
704 | AUTOHEADER | |
705 | AUTOMAKE | |
706 | AUTOCONF | |
707 | ACLOCAL | |
708 | VERSION | |
709 | PACKAGE | |
710 | CYGPATH_W | |
711 | am__isrc | |
712 | INSTALL_DATA | |
713 | INSTALL_SCRIPT | |
714 | INSTALL_PROGRAM | |
715 | OBJEXT | |
716 | EXEEXT | |
717 | ac_ct_CC | |
718 | CPPFLAGS | |
719 | LDFLAGS | |
720 | CFLAGS | |
721 | CC | |
722 | target_os | |
723 | target_vendor | |
724 | target_cpu | |
725 | target | |
726 | host_os | |
727 | host_vendor | |
728 | host_cpu | |
729 | host | |
730 | build_os | |
731 | build_vendor | |
732 | build_cpu | |
733 | build | |
734 | target_alias | |
735 | host_alias | |
736 | build_alias | |
737 | LIBS | |
738 | ECHO_T | |
739 | ECHO_N | |
740 | ECHO_C | |
741 | DEFS | |
742 | mandir | |
743 | localedir | |
744 | libdir | |
745 | psdir | |
746 | pdfdir | |
747 | dvidir | |
748 | htmldir | |
749 | infodir | |
750 | docdir | |
751 | oldincludedir | |
752 | includedir | |
753 | localstatedir | |
754 | sharedstatedir | |
755 | sysconfdir | |
756 | datadir | |
757 | datarootdir | |
758 | libexecdir | |
759 | sbindir | |
760 | bindir | |
761 | program_transform_name | |
762 | prefix | |
763 | exec_prefix | |
764 | PACKAGE_URL | |
765 | PACKAGE_BUGREPORT | |
766 | PACKAGE_STRING | |
767 | PACKAGE_VERSION | |
768 | PACKAGE_TARNAME | |
769 | PACKAGE_NAME | |
770 | PATH_SEPARATOR | |
771 | SHELL' | |
42ecbf5e | 772 | ac_subst_files='TDIRS' |
81ecdfbb RW |
773 | ac_user_opts=' |
774 | enable_option_checking | |
775 | enable_dependency_tracking | |
64ac50ac | 776 | enable_maintainer_mode |
b879806f AM |
777 | enable_shared |
778 | enable_static | |
779 | with_pic | |
780 | enable_fast_install | |
781 | with_gnu_ld | |
782 | enable_libtool_lock | |
783 | enable_plugins | |
784 | enable_largefile | |
81ecdfbb RW |
785 | with_lib_path |
786 | enable_targets | |
787 | enable_64_bit_bfd | |
788 | with_sysroot | |
4fda8867 | 789 | enable_gold |
81ecdfbb RW |
790 | enable_got |
791 | enable_werror | |
792 | enable_build_warnings | |
81ecdfbb | 793 | enable_nls |
02ecc8e9 | 794 | enable_initfini_array |
81ecdfbb RW |
795 | ' |
796 | ac_precious_vars='build_alias | |
797 | host_alias | |
798 | target_alias | |
799 | CC | |
800 | CFLAGS | |
801 | LDFLAGS | |
802 | LIBS | |
803 | CPPFLAGS | |
3cb62297 L |
804 | CXX |
805 | CXXFLAGS | |
806 | CCC | |
b879806f | 807 | CPP |
3cb62297 | 808 | CXXCPP |
81ecdfbb RW |
809 | YACC |
810 | YFLAGS' | |
811 | ||
252b5132 RH |
812 | |
813 | # Initialize some variables set by options. | |
42ecbf5e DJ |
814 | ac_init_help= |
815 | ac_init_version=false | |
81ecdfbb RW |
816 | ac_unrecognized_opts= |
817 | ac_unrecognized_sep= | |
252b5132 RH |
818 | # The variables have the same names as the options, with |
819 | # dashes changed to underlines. | |
42ecbf5e | 820 | cache_file=/dev/null |
252b5132 | 821 | exec_prefix=NONE |
252b5132 | 822 | no_create= |
252b5132 RH |
823 | no_recursion= |
824 | prefix=NONE | |
825 | program_prefix=NONE | |
826 | program_suffix=NONE | |
827 | program_transform_name=s,x,x, | |
828 | silent= | |
829 | site= | |
830 | srcdir= | |
252b5132 RH |
831 | verbose= |
832 | x_includes=NONE | |
833 | x_libraries=NONE | |
42ecbf5e DJ |
834 | |
835 | # Installation directory options. | |
836 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
837 | # and all the variables that are supposed to be based on exec_prefix | |
838 | # by default will actually change. | |
839 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 840 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
841 | bindir='${exec_prefix}/bin' |
842 | sbindir='${exec_prefix}/sbin' | |
843 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
844 | datarootdir='${prefix}/share' |
845 | datadir='${datarootdir}' | |
252b5132 RH |
846 | sysconfdir='${prefix}/etc' |
847 | sharedstatedir='${prefix}/com' | |
848 | localstatedir='${prefix}/var' | |
252b5132 RH |
849 | includedir='${prefix}/include' |
850 | oldincludedir='/usr/include' | |
2e98a7bd | 851 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
852 | infodir='${datarootdir}/info' |
853 | htmldir='${docdir}' | |
854 | dvidir='${docdir}' | |
855 | pdfdir='${docdir}' | |
856 | psdir='${docdir}' | |
857 | libdir='${exec_prefix}/lib' | |
858 | localedir='${datarootdir}/locale' | |
859 | mandir='${datarootdir}/man' | |
252b5132 | 860 | |
252b5132 | 861 | ac_prev= |
81ecdfbb | 862 | ac_dashdash= |
252b5132 RH |
863 | for ac_option |
864 | do | |
252b5132 RH |
865 | # If the previous option needs an argument, assign it. |
866 | if test -n "$ac_prev"; then | |
81ecdfbb | 867 | eval $ac_prev=\$ac_option |
252b5132 RH |
868 | ac_prev= |
869 | continue | |
870 | fi | |
871 | ||
81ecdfbb RW |
872 | case $ac_option in |
873 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
874 | *) ac_optarg=yes ;; | |
875 | esac | |
252b5132 RH |
876 | |
877 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
878 | ||
81ecdfbb RW |
879 | case $ac_dashdash$ac_option in |
880 | --) | |
881 | ac_dashdash=yes ;; | |
252b5132 RH |
882 | |
883 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
884 | ac_prev=bindir ;; | |
885 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 886 | bindir=$ac_optarg ;; |
252b5132 RH |
887 | |
888 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 889 | ac_prev=build_alias ;; |
252b5132 | 890 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 891 | build_alias=$ac_optarg ;; |
252b5132 RH |
892 | |
893 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
894 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
895 | ac_prev=cache_file ;; | |
896 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
897 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
898 | cache_file=$ac_optarg ;; |
899 | ||
900 | --config-cache | -C) | |
901 | cache_file=config.cache ;; | |
252b5132 | 902 | |
81ecdfbb | 903 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 904 | ac_prev=datadir ;; |
81ecdfbb | 905 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 906 | datadir=$ac_optarg ;; |
252b5132 | 907 | |
81ecdfbb RW |
908 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
909 | | --dataroo | --dataro | --datar) | |
910 | ac_prev=datarootdir ;; | |
911 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
912 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
913 | datarootdir=$ac_optarg ;; | |
914 | ||
252b5132 | 915 | -disable-* | --disable-*) |
81ecdfbb | 916 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 917 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
918 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
919 | as_fn_error "invalid feature name: $ac_useropt" | |
920 | ac_useropt_orig=$ac_useropt | |
921 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
922 | case $ac_user_opts in | |
923 | *" | |
924 | "enable_$ac_useropt" | |
925 | "*) ;; | |
926 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
927 | ac_unrecognized_sep=', ';; | |
928 | esac | |
929 | eval enable_$ac_useropt=no ;; | |
930 | ||
931 | -docdir | --docdir | --docdi | --doc | --do) | |
932 | ac_prev=docdir ;; | |
933 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
934 | docdir=$ac_optarg ;; | |
935 | ||
936 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
937 | ac_prev=dvidir ;; | |
938 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
939 | dvidir=$ac_optarg ;; | |
252b5132 RH |
940 | |
941 | -enable-* | --enable-*) | |
81ecdfbb | 942 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 943 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
944 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
945 | as_fn_error "invalid feature name: $ac_useropt" | |
946 | ac_useropt_orig=$ac_useropt | |
947 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
948 | case $ac_user_opts in | |
949 | *" | |
950 | "enable_$ac_useropt" | |
951 | "*) ;; | |
952 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
953 | ac_unrecognized_sep=', ';; | |
252b5132 | 954 | esac |
81ecdfbb | 955 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
956 | |
957 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
958 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
959 | | --exec | --exe | --ex) | |
960 | ac_prev=exec_prefix ;; | |
961 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
962 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
963 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 964 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
965 | |
966 | -gas | --gas | --ga | --g) | |
967 | # Obsolete; use --with-gas. | |
968 | with_gas=yes ;; | |
969 | ||
42ecbf5e DJ |
970 | -help | --help | --hel | --he | -h) |
971 | ac_init_help=long ;; | |
972 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
973 | ac_init_help=recursive ;; | |
974 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
975 | ac_init_help=short ;; | |
252b5132 RH |
976 | |
977 | -host | --host | --hos | --ho) | |
42ecbf5e | 978 | ac_prev=host_alias ;; |
252b5132 | 979 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 980 | host_alias=$ac_optarg ;; |
252b5132 | 981 | |
81ecdfbb RW |
982 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
983 | ac_prev=htmldir ;; | |
984 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
985 | | --ht=*) | |
986 | htmldir=$ac_optarg ;; | |
987 | ||
252b5132 RH |
988 | -includedir | --includedir | --includedi | --included | --include \ |
989 | | --includ | --inclu | --incl | --inc) | |
990 | ac_prev=includedir ;; | |
991 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
992 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 993 | includedir=$ac_optarg ;; |
252b5132 RH |
994 | |
995 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
996 | ac_prev=infodir ;; | |
997 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 998 | infodir=$ac_optarg ;; |
252b5132 RH |
999 | |
1000 | -libdir | --libdir | --libdi | --libd) | |
1001 | ac_prev=libdir ;; | |
1002 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1003 | libdir=$ac_optarg ;; |
252b5132 RH |
1004 | |
1005 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1006 | | --libexe | --libex | --libe) | |
1007 | ac_prev=libexecdir ;; | |
1008 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1009 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1010 | libexecdir=$ac_optarg ;; |
252b5132 | 1011 | |
81ecdfbb RW |
1012 | -localedir | --localedir | --localedi | --localed | --locale) |
1013 | ac_prev=localedir ;; | |
1014 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1015 | localedir=$ac_optarg ;; | |
1016 | ||
252b5132 | 1017 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1018 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1019 | ac_prev=localstatedir ;; |
1020 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1021 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1022 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1023 | |
1024 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1025 | ac_prev=mandir ;; | |
1026 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1027 | mandir=$ac_optarg ;; |
252b5132 RH |
1028 | |
1029 | -nfp | --nfp | --nf) | |
1030 | # Obsolete; use --without-fp. | |
1031 | with_fp=no ;; | |
1032 | ||
1033 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1034 | | --no-cr | --no-c | -n) |
252b5132 RH |
1035 | no_create=yes ;; |
1036 | ||
1037 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1038 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1039 | no_recursion=yes ;; | |
1040 | ||
1041 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1042 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1043 | | --oldin | --oldi | --old | --ol | --o) | |
1044 | ac_prev=oldincludedir ;; | |
1045 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1046 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1047 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1048 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1049 | |
1050 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1051 | ac_prev=prefix ;; | |
1052 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1053 | prefix=$ac_optarg ;; |
252b5132 RH |
1054 | |
1055 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1056 | | --program-pre | --program-pr | --program-p) | |
1057 | ac_prev=program_prefix ;; | |
1058 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1059 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1060 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1061 | |
1062 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1063 | | --program-suf | --program-su | --program-s) | |
1064 | ac_prev=program_suffix ;; | |
1065 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1066 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1067 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1068 | |
1069 | -program-transform-name | --program-transform-name \ | |
1070 | | --program-transform-nam | --program-transform-na \ | |
1071 | | --program-transform-n | --program-transform- \ | |
1072 | | --program-transform | --program-transfor \ | |
1073 | | --program-transfo | --program-transf \ | |
1074 | | --program-trans | --program-tran \ | |
1075 | | --progr-tra | --program-tr | --program-t) | |
1076 | ac_prev=program_transform_name ;; | |
1077 | -program-transform-name=* | --program-transform-name=* \ | |
1078 | | --program-transform-nam=* | --program-transform-na=* \ | |
1079 | | --program-transform-n=* | --program-transform-=* \ | |
1080 | | --program-transform=* | --program-transfor=* \ | |
1081 | | --program-transfo=* | --program-transf=* \ | |
1082 | | --program-trans=* | --program-tran=* \ | |
1083 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1084 | program_transform_name=$ac_optarg ;; |
252b5132 | 1085 | |
81ecdfbb RW |
1086 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1087 | ac_prev=pdfdir ;; | |
1088 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1089 | pdfdir=$ac_optarg ;; | |
1090 | ||
1091 | -psdir | --psdir | --psdi | --psd | --ps) | |
1092 | ac_prev=psdir ;; | |
1093 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1094 | psdir=$ac_optarg ;; | |
1095 | ||
252b5132 RH |
1096 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1097 | | -silent | --silent | --silen | --sile | --sil) | |
1098 | silent=yes ;; | |
1099 | ||
1100 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1101 | ac_prev=sbindir ;; | |
1102 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1103 | | --sbi=* | --sb=*) | |
42ecbf5e | 1104 | sbindir=$ac_optarg ;; |
252b5132 RH |
1105 | |
1106 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1107 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1108 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1109 | | --sha | --sh) | |
1110 | ac_prev=sharedstatedir ;; | |
1111 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1112 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1113 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1114 | | --sha=* | --sh=*) | |
42ecbf5e | 1115 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1116 | |
1117 | -site | --site | --sit) | |
1118 | ac_prev=site ;; | |
1119 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1120 | site=$ac_optarg ;; |
85fbca6a | 1121 | |
252b5132 RH |
1122 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1123 | ac_prev=srcdir ;; | |
1124 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1125 | srcdir=$ac_optarg ;; |
252b5132 RH |
1126 | |
1127 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1128 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1129 | ac_prev=sysconfdir ;; | |
1130 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1131 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1132 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1133 | |
1134 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1135 | ac_prev=target_alias ;; |
252b5132 | 1136 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1137 | target_alias=$ac_optarg ;; |
252b5132 RH |
1138 | |
1139 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1140 | verbose=yes ;; | |
1141 | ||
42ecbf5e DJ |
1142 | -version | --version | --versio | --versi | --vers | -V) |
1143 | ac_init_version=: ;; | |
252b5132 RH |
1144 | |
1145 | -with-* | --with-*) | |
81ecdfbb | 1146 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1147 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1148 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1149 | as_fn_error "invalid package name: $ac_useropt" | |
1150 | ac_useropt_orig=$ac_useropt | |
1151 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1152 | case $ac_user_opts in | |
1153 | *" | |
1154 | "with_$ac_useropt" | |
1155 | "*) ;; | |
1156 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1157 | ac_unrecognized_sep=', ';; | |
252b5132 | 1158 | esac |
81ecdfbb | 1159 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1160 | |
1161 | -without-* | --without-*) | |
81ecdfbb | 1162 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1163 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1164 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1165 | as_fn_error "invalid package name: $ac_useropt" | |
1166 | ac_useropt_orig=$ac_useropt | |
1167 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1168 | case $ac_user_opts in | |
1169 | *" | |
1170 | "with_$ac_useropt" | |
1171 | "*) ;; | |
1172 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1173 | ac_unrecognized_sep=', ';; | |
1174 | esac | |
1175 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1176 | |
1177 | --x) | |
1178 | # Obsolete; use --with-x. | |
1179 | with_x=yes ;; | |
1180 | ||
1181 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1182 | | --x-incl | --x-inc | --x-in | --x-i) | |
1183 | ac_prev=x_includes ;; | |
1184 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1185 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1186 | x_includes=$ac_optarg ;; |
252b5132 RH |
1187 | |
1188 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1189 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1190 | ac_prev=x_libraries ;; | |
1191 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1192 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1193 | x_libraries=$ac_optarg ;; |
252b5132 | 1194 | |
81ecdfbb RW |
1195 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1196 | Try \`$0 --help' for more information." | |
252b5132 RH |
1197 | ;; |
1198 | ||
42ecbf5e DJ |
1199 | *=*) |
1200 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1201 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1202 | case $ac_envvar in #( |
1203 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1204 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1205 | esac | |
1206 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1207 | export $ac_envvar ;; |
1208 | ||
252b5132 | 1209 | *) |
42ecbf5e | 1210 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1211 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1212 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1213 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
42ecbf5e | 1214 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1215 | ;; |
1216 | ||
1217 | esac | |
1218 | done | |
1219 | ||
1220 | if test -n "$ac_prev"; then | |
42ecbf5e | 1221 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1222 | as_fn_error "missing argument to $ac_option" |
252b5132 | 1223 | fi |
252b5132 | 1224 | |
81ecdfbb RW |
1225 | if test -n "$ac_unrecognized_opts"; then |
1226 | case $enable_option_checking in | |
1227 | no) ;; | |
1228 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1229 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
42ecbf5e | 1230 | esac |
81ecdfbb | 1231 | fi |
252b5132 | 1232 | |
81ecdfbb RW |
1233 | # Check all directory arguments for consistency. |
1234 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1235 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1236 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1237 | libdir localedir mandir | |
252b5132 | 1238 | do |
81ecdfbb RW |
1239 | eval ac_val=\$$ac_var |
1240 | # Remove trailing slashes. | |
1241 | case $ac_val in | |
1242 | */ ) | |
1243 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1244 | eval $ac_var=\$ac_val;; | |
1245 | esac | |
1246 | # Be sure to have absolute directory names. | |
42ecbf5e | 1247 | case $ac_val in |
81ecdfbb RW |
1248 | [\\/$]* | ?:[\\/]* ) continue;; |
1249 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1250 | esac |
81ecdfbb | 1251 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1252 | done |
1253 | ||
42ecbf5e DJ |
1254 | # There might be people who depend on the old broken behavior: `$host' |
1255 | # used to hold the argument of --host etc. | |
1256 | # FIXME: To remove some day. | |
1257 | build=$build_alias | |
1258 | host=$host_alias | |
1259 | target=$target_alias | |
1260 | ||
1261 | # FIXME: To remove some day. | |
1262 | if test "x$host_alias" != x; then | |
1263 | if test "x$build_alias" = x; then | |
1264 | cross_compiling=maybe | |
81ecdfbb | 1265 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
42ecbf5e DJ |
1266 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1267 | elif test "x$build_alias" != "x$host_alias"; then | |
1268 | cross_compiling=yes | |
1269 | fi | |
1270 | fi | |
e5a52504 | 1271 | |
42ecbf5e DJ |
1272 | ac_tool_prefix= |
1273 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1274 | ||
1275 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1276 | |
252b5132 | 1277 | |
81ecdfbb RW |
1278 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1279 | ac_ls_di=`ls -di .` && | |
1280 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1281 | as_fn_error "working directory cannot be determined" | |
1282 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1283 | as_fn_error "pwd does not report name of working directory" | |
1284 | ||
1285 | ||
252b5132 RH |
1286 | # Find the source files, if location was not specified. |
1287 | if test -z "$srcdir"; then | |
1288 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1289 | # Try the directory containing this script, then the parent directory. |
1290 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1291 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1292 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1293 | X"$as_myself" : 'X\(//\)$' \| \ | |
1294 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1295 | $as_echo X"$as_myself" | | |
1296 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1297 | s//\1/ | |
1298 | q | |
1299 | } | |
1300 | /^X\(\/\/\)[^/].*/{ | |
1301 | s//\1/ | |
1302 | q | |
1303 | } | |
1304 | /^X\(\/\/\)$/{ | |
1305 | s//\1/ | |
1306 | q | |
1307 | } | |
1308 | /^X\(\/\).*/{ | |
1309 | s//\1/ | |
1310 | q | |
1311 | } | |
1312 | s/.*/./; q'` | |
252b5132 | 1313 | srcdir=$ac_confdir |
81ecdfbb | 1314 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1315 | srcdir=.. |
1316 | fi | |
1317 | else | |
1318 | ac_srcdir_defaulted=no | |
1319 | fi | |
81ecdfbb RW |
1320 | if test ! -r "$srcdir/$ac_unique_file"; then |
1321 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1322 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1323 | fi | |
1324 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1325 | ac_abs_confdir=`( | |
1326 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1327 | pwd)` | |
1328 | # When building in place, set srcdir=. | |
1329 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1330 | srcdir=. | |
1331 | fi | |
1332 | # Remove unnecessary trailing slashes from srcdir. | |
1333 | # Double slashes in file names in object file debugging info | |
1334 | # mess up M-x gdb in Emacs. | |
1335 | case $srcdir in | |
1336 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1337 | esac | |
1338 | for ac_var in $ac_precious_vars; do | |
1339 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1340 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1341 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1342 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1343 | done | |
252b5132 | 1344 | |
42ecbf5e DJ |
1345 | # |
1346 | # Report the --help message. | |
1347 | # | |
1348 | if test "$ac_init_help" = "long"; then | |
1349 | # Omit some internal or obsolete options to make the list less imposing. | |
1350 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1351 | cat <<_ACEOF | |
91dc4e0a | 1352 | \`configure' configures ld 2.25.51 to adapt to many kinds of systems. |
252b5132 | 1353 | |
42ecbf5e | 1354 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1355 | |
42ecbf5e DJ |
1356 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1357 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1358 | |
42ecbf5e | 1359 | Defaults for the options are specified in brackets. |
ac48eca1 | 1360 | |
42ecbf5e DJ |
1361 | Configuration: |
1362 | -h, --help display this help and exit | |
1363 | --help=short display options specific to this package | |
1364 | --help=recursive display the short help of all the included packages | |
1365 | -V, --version display version information and exit | |
1366 | -q, --quiet, --silent do not print \`checking...' messages | |
1367 | --cache-file=FILE cache test results in FILE [disabled] | |
1368 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1369 | -n, --no-create do not create output files | |
1370 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1371 | ||
42ecbf5e DJ |
1372 | Installation directories: |
1373 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1374 | [$ac_default_prefix] |
42ecbf5e | 1375 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1376 | [PREFIX] |
ac48eca1 | 1377 | |
42ecbf5e DJ |
1378 | By default, \`make install' will install all the files in |
1379 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1380 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1381 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1382 | |
42ecbf5e | 1383 | For better control, use the options below. |
ac48eca1 | 1384 | |
42ecbf5e | 1385 | Fine tuning of the installation directories: |
81ecdfbb RW |
1386 | --bindir=DIR user executables [EPREFIX/bin] |
1387 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1388 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1389 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1390 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1391 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1392 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1393 | --includedir=DIR C header files [PREFIX/include] | |
1394 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1395 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1396 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1397 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1398 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1399 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2e98a7bd | 1400 | --docdir=DIR documentation root [DATAROOTDIR/doc/ld] |
81ecdfbb RW |
1401 | --htmldir=DIR html documentation [DOCDIR] |
1402 | --dvidir=DIR dvi documentation [DOCDIR] | |
1403 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1404 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1405 | _ACEOF |
ac48eca1 | 1406 | |
42ecbf5e | 1407 | cat <<\_ACEOF |
252b5132 | 1408 | |
42ecbf5e DJ |
1409 | Program names: |
1410 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1411 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1412 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1413 | |
42ecbf5e DJ |
1414 | System types: |
1415 | --build=BUILD configure for building on BUILD [guessed] | |
1416 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1417 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1418 | _ACEOF | |
252b5132 | 1419 | fi |
252b5132 | 1420 | |
42ecbf5e | 1421 | if test -n "$ac_init_help"; then |
2e98a7bd | 1422 | case $ac_init_help in |
91dc4e0a | 1423 | short | recursive ) echo "Configuration of ld 2.25.51:";; |
2e98a7bd | 1424 | esac |
42ecbf5e | 1425 | cat <<\_ACEOF |
e5a52504 | 1426 | |
42ecbf5e | 1427 | Optional Features: |
81ecdfbb | 1428 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1429 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1430 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1431 | --disable-dependency-tracking speeds up one-time build | |
1432 | --enable-dependency-tracking do not reject slow dependency extractors | |
64ac50ac RW |
1433 | --enable-maintainer-mode enable make rules and dependencies not useful |
1434 | (and sometimes confusing) to the casual installer | |
b879806f AM |
1435 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1436 | --enable-static[=PKGS] build static libraries [default=yes] | |
1437 | --enable-fast-install[=PKGS] | |
1438 | optimize for fast installation [default=yes] | |
1439 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1440 | --enable-plugins Enable support for plugins | |
1441 | --disable-largefile omit support for large files | |
ce2cded5 L |
1442 | --enable-targets alternative target configurations |
1443 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
c7791212 | 1444 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7fb9f789 NC |
1445 | --enable-got=<type> GOT handling scheme (target, single, negative, |
1446 | multigot) | |
ce2cded5 L |
1447 | --enable-werror treat compile warnings as errors |
1448 | --enable-build-warnings enable build-time compiler warnings | |
42ecbf5e | 1449 | --disable-nls do not use Native Language Support |
02ecc8e9 | 1450 | --enable-initfini-array use .init_array/.fini_array sections |
42ecbf5e DJ |
1451 | |
1452 | Optional Packages: | |
1453 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1454 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
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] | |
b879806f AM |
1458 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1459 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
42ecbf5e DJ |
1460 | |
1461 | Some influential environment variables: | |
1462 | CC C compiler command | |
1463 | CFLAGS C compiler flags | |
1464 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1465 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1466 | LIBS libraries to pass to the linker, e.g. -l<library> |
1467 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1468 | you have headers in a nonstandard directory <include dir> | |
3cb62297 L |
1469 | CXX C++ compiler command |
1470 | CXXFLAGS C++ compiler flags | |
b879806f | 1471 | CPP C preprocessor |
3cb62297 | 1472 | CXXCPP C++ preprocessor |
81ecdfbb RW |
1473 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1474 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1475 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1476 | This script will default YFLAGS to the empty string to avoid a | |
1477 | default value of `-d' given by some make applications. | |
42ecbf5e DJ |
1478 | |
1479 | Use these variables to override the choices made by `configure' or to help | |
1480 | it to find libraries and programs with nonstandard names/locations. | |
1481 | ||
81ecdfbb | 1482 | Report bugs to the package provider. |
42ecbf5e | 1483 | _ACEOF |
81ecdfbb | 1484 | ac_status=$? |
42ecbf5e DJ |
1485 | fi |
1486 | ||
1487 | if test "$ac_init_help" = "recursive"; then | |
1488 | # If there are subdirs, report their specific --help. | |
42ecbf5e | 1489 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1490 | test -d "$ac_dir" || |
1491 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1492 | continue | |
42ecbf5e DJ |
1493 | ac_builddir=. |
1494 | ||
81ecdfbb RW |
1495 | case "$ac_dir" in |
1496 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1497 | *) | |
1498 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1499 | # A ".." for each directory in $ac_dir_suffix. | |
1500 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1501 | case $ac_top_builddir_sub in | |
1502 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1503 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1504 | esac ;; | |
1505 | esac | |
1506 | ac_abs_top_builddir=$ac_pwd | |
1507 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1508 | # for backward compatibility: | |
1509 | ac_top_builddir=$ac_top_build_prefix | |
42ecbf5e DJ |
1510 | |
1511 | case $srcdir in | |
81ecdfbb | 1512 | .) # We are building in place. |
42ecbf5e | 1513 | ac_srcdir=. |
81ecdfbb RW |
1514 | ac_top_srcdir=$ac_top_builddir_sub |
1515 | ac_abs_top_srcdir=$ac_pwd ;; | |
1516 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 1517 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1518 | ac_top_srcdir=$srcdir |
1519 | ac_abs_top_srcdir=$srcdir ;; | |
1520 | *) # Relative name. | |
1521 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1522 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1523 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 1524 | esac |
81ecdfbb RW |
1525 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1526 | ||
1527 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1528 | # Check for guested configure. | |
1529 | if test -f "$ac_srcdir/configure.gnu"; then | |
1530 | echo && | |
1531 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1532 | elif test -f "$ac_srcdir/configure"; then | |
1533 | echo && | |
1534 | $SHELL "$ac_srcdir/configure" --help=recursive | |
42ecbf5e | 1535 | else |
81ecdfbb RW |
1536 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1537 | fi || ac_status=$? | |
1538 | cd "$ac_pwd" || { ac_status=$?; break; } | |
42ecbf5e | 1539 | done |
a2d91340 AC |
1540 | fi |
1541 | ||
81ecdfbb | 1542 | test -n "$ac_init_help" && exit $ac_status |
42ecbf5e DJ |
1543 | if $ac_init_version; then |
1544 | cat <<\_ACEOF | |
91dc4e0a | 1545 | ld configure 2.25.51 |
81ecdfbb | 1546 | generated by GNU Autoconf 2.64 |
a2d91340 | 1547 | |
81ecdfbb | 1548 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
1549 | This configure script is free software; the Free Software Foundation |
1550 | gives unlimited permission to copy, distribute and modify it. | |
1551 | _ACEOF | |
81ecdfbb | 1552 | exit |
42ecbf5e | 1553 | fi |
a2d91340 | 1554 | |
81ecdfbb RW |
1555 | ## ------------------------ ## |
1556 | ## Autoconf initialization. ## | |
1557 | ## ------------------------ ## | |
a2d91340 | 1558 | |
81ecdfbb RW |
1559 | # ac_fn_c_try_compile LINENO |
1560 | # -------------------------- | |
1561 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1562 | ac_fn_c_try_compile () | |
1563 | { | |
1564 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1565 | rm -f conftest.$ac_objext | |
1566 | if { { ac_try="$ac_compile" | |
1567 | case "(($ac_try" in | |
1568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1569 | *) ac_try_echo=$ac_try;; | |
1570 | esac | |
1571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1572 | $as_echo "$ac_try_echo"; } >&5 | |
1573 | (eval "$ac_compile") 2>conftest.err | |
1574 | ac_status=$? | |
1575 | if test -s conftest.err; then | |
1576 | grep -v '^ *+' conftest.err >conftest.er1 | |
1577 | cat conftest.er1 >&5 | |
1578 | mv -f conftest.er1 conftest.err | |
1579 | fi | |
1580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1581 | test $ac_status = 0; } && { | |
1582 | test -z "$ac_c_werror_flag" || | |
1583 | test ! -s conftest.err | |
1584 | } && test -s conftest.$ac_objext; then : | |
1585 | ac_retval=0 | |
1586 | else | |
1587 | $as_echo "$as_me: failed program was:" >&5 | |
1588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a2d91340 | 1589 | |
81ecdfbb RW |
1590 | ac_retval=1 |
1591 | fi | |
1592 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1593 | return $ac_retval | |
1594 | ||
1595 | } # ac_fn_c_try_compile | |
1596 | ||
1597 | # ac_fn_c_try_link LINENO | |
1598 | # ----------------------- | |
1599 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1600 | ac_fn_c_try_link () | |
42ecbf5e | 1601 | { |
81ecdfbb RW |
1602 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1603 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1604 | if { { ac_try="$ac_link" | |
1605 | case "(($ac_try" in | |
1606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1607 | *) ac_try_echo=$ac_try;; | |
1608 | esac | |
1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1610 | $as_echo "$ac_try_echo"; } >&5 | |
1611 | (eval "$ac_link") 2>conftest.err | |
1612 | ac_status=$? | |
1613 | if test -s conftest.err; then | |
1614 | grep -v '^ *+' conftest.err >conftest.er1 | |
1615 | cat conftest.er1 >&5 | |
1616 | mv -f conftest.er1 conftest.err | |
1617 | fi | |
1618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1619 | test $ac_status = 0; } && { | |
1620 | test -z "$ac_c_werror_flag" || | |
1621 | test ! -s conftest.err | |
1622 | } && test -s conftest$ac_exeext && { | |
1623 | test "$cross_compiling" = yes || | |
1624 | $as_test_x conftest$ac_exeext | |
1625 | }; then : | |
1626 | ac_retval=0 | |
1627 | else | |
1628 | $as_echo "$as_me: failed program was:" >&5 | |
1629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 1630 | |
81ecdfbb RW |
1631 | ac_retval=1 |
1632 | fi | |
1633 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1634 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1635 | # interfere with the next link command; also delete a directory that is | |
1636 | # left behind by Apple's compiler. We do this before executing the actions. | |
1637 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1638 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1639 | return $ac_retval | |
42ecbf5e | 1640 | |
81ecdfbb | 1641 | } # ac_fn_c_try_link |
42ecbf5e | 1642 | |
b879806f AM |
1643 | # ac_fn_cxx_try_compile LINENO |
1644 | # ---------------------------- | |
1645 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1646 | ac_fn_cxx_try_compile () | |
81ecdfbb RW |
1647 | { |
1648 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b879806f AM |
1649 | rm -f conftest.$ac_objext |
1650 | if { { ac_try="$ac_compile" | |
81ecdfbb RW |
1651 | case "(($ac_try" in |
1652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1653 | *) ac_try_echo=$ac_try;; | |
1654 | esac | |
1655 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1656 | $as_echo "$ac_try_echo"; } >&5 | |
b879806f | 1657 | (eval "$ac_compile") 2>conftest.err |
81ecdfbb RW |
1658 | ac_status=$? |
1659 | if test -s conftest.err; then | |
1660 | grep -v '^ *+' conftest.err >conftest.er1 | |
1661 | cat conftest.er1 >&5 | |
1662 | mv -f conftest.er1 conftest.err | |
1663 | fi | |
1664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b879806f AM |
1665 | test $ac_status = 0; } && { |
1666 | test -z "$ac_cxx_werror_flag" || | |
81ecdfbb | 1667 | test ! -s conftest.err |
b879806f | 1668 | } && test -s conftest.$ac_objext; then : |
81ecdfbb RW |
1669 | ac_retval=0 |
1670 | else | |
1671 | $as_echo "$as_me: failed program was:" >&5 | |
1672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1673 | ||
b879806f | 1674 | ac_retval=1 |
81ecdfbb RW |
1675 | fi |
1676 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1677 | return $ac_retval | |
1678 | ||
b879806f | 1679 | } # ac_fn_cxx_try_compile |
81ecdfbb | 1680 | |
b879806f AM |
1681 | # ac_fn_c_try_cpp LINENO |
1682 | # ---------------------- | |
1683 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1684 | ac_fn_c_try_cpp () | |
3cb62297 L |
1685 | { |
1686 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b879806f | 1687 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
3cb62297 L |
1688 | case "(($ac_try" in |
1689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1690 | *) ac_try_echo=$ac_try;; | |
1691 | esac | |
1692 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1693 | $as_echo "$ac_try_echo"; } >&5 | |
b879806f | 1694 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
3cb62297 L |
1695 | ac_status=$? |
1696 | if test -s conftest.err; then | |
1697 | grep -v '^ *+' conftest.err >conftest.er1 | |
1698 | cat conftest.er1 >&5 | |
1699 | mv -f conftest.er1 conftest.err | |
1700 | fi | |
1701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b879806f AM |
1702 | test $ac_status = 0; } >/dev/null && { |
1703 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3cb62297 | 1704 | test ! -s conftest.err |
b879806f | 1705 | }; then : |
3cb62297 L |
1706 | ac_retval=0 |
1707 | else | |
1708 | $as_echo "$as_me: failed program was:" >&5 | |
1709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1710 | ||
b879806f | 1711 | ac_retval=1 |
3cb62297 L |
1712 | fi |
1713 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1714 | return $ac_retval | |
1715 | ||
b879806f | 1716 | } # ac_fn_c_try_cpp |
3cb62297 | 1717 | |
81ecdfbb RW |
1718 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1719 | # ------------------------------------------------------- | |
1720 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1721 | # the include files in INCLUDES and setting the cache variable VAR | |
1722 | # accordingly. | |
1723 | ac_fn_c_check_header_mongrel () | |
1724 | { | |
1725 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1726 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1728 | $as_echo_n "checking for $2... " >&6; } | |
1729 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1730 | $as_echo_n "(cached) " >&6 | |
1731 | fi | |
1732 | eval ac_res=\$$3 | |
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1734 | $as_echo "$ac_res" >&6; } | |
1735 | else | |
1736 | # Is the header compilable? | |
1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1738 | $as_echo_n "checking $2 usability... " >&6; } | |
1739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1740 | /* end confdefs.h. */ | |
1741 | $4 | |
1742 | #include <$2> | |
1743 | _ACEOF | |
1744 | if ac_fn_c_try_compile "$LINENO"; then : | |
1745 | ac_header_compiler=yes | |
1746 | else | |
1747 | ac_header_compiler=no | |
1748 | fi | |
1749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1751 | $as_echo "$ac_header_compiler" >&6; } | |
1752 | ||
1753 | # Is the header present? | |
1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1755 | $as_echo_n "checking $2 presence... " >&6; } | |
1756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1757 | /* end confdefs.h. */ | |
1758 | #include <$2> | |
1759 | _ACEOF | |
1760 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1761 | ac_header_preproc=yes | |
1762 | else | |
1763 | ac_header_preproc=no | |
1764 | fi | |
1765 | rm -f conftest.err conftest.$ac_ext | |
1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1767 | $as_echo "$ac_header_preproc" >&6; } | |
1768 | ||
1769 | # So? What about this header? | |
1770 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1771 | yes:no: ) | |
1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1773 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1775 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1776 | ;; | |
1777 | no:yes:* ) | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1779 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1781 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1783 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1785 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1787 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1788 | ;; | |
1789 | esac | |
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1791 | $as_echo_n "checking for $2... " >&6; } | |
1792 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1793 | $as_echo_n "(cached) " >&6 | |
1794 | else | |
1795 | eval "$3=\$ac_header_compiler" | |
1796 | fi | |
1797 | eval ac_res=\$$3 | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1799 | $as_echo "$ac_res" >&6; } | |
1800 | fi | |
1801 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1802 | ||
1803 | } # ac_fn_c_check_header_mongrel | |
1804 | ||
1805 | # ac_fn_c_try_run LINENO | |
1806 | # ---------------------- | |
1807 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1808 | # that executables *can* be run. | |
1809 | ac_fn_c_try_run () | |
1810 | { | |
1811 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1812 | if { { ac_try="$ac_link" | |
1813 | case "(($ac_try" in | |
1814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1815 | *) ac_try_echo=$ac_try;; | |
1816 | esac | |
1817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1818 | $as_echo "$ac_try_echo"; } >&5 | |
1819 | (eval "$ac_link") 2>&5 | |
1820 | ac_status=$? | |
1821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1822 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1823 | { { case "(($ac_try" in | |
1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1825 | *) ac_try_echo=$ac_try;; | |
1826 | esac | |
1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1828 | $as_echo "$ac_try_echo"; } >&5 | |
1829 | (eval "$ac_try") 2>&5 | |
1830 | ac_status=$? | |
1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1832 | test $ac_status = 0; }; }; then : | |
1833 | ac_retval=0 | |
1834 | else | |
1835 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1836 | $as_echo "$as_me: failed program was:" >&5 | |
1837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1838 | ||
1839 | ac_retval=$ac_status | |
1840 | fi | |
1841 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1842 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1843 | return $ac_retval | |
1844 | ||
1845 | } # ac_fn_c_try_run | |
1846 | ||
1847 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1848 | # ------------------------------------------------------- | |
1849 | # Tests whether HEADER exists and can be compiled using the include files in | |
1850 | # INCLUDES, setting the cache variable VAR accordingly. | |
1851 | ac_fn_c_check_header_compile () | |
1852 | { | |
1853 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1855 | $as_echo_n "checking for $2... " >&6; } | |
1856 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1857 | $as_echo_n "(cached) " >&6 | |
1858 | else | |
1859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1860 | /* end confdefs.h. */ | |
1861 | $4 | |
1862 | #include <$2> | |
1863 | _ACEOF | |
1864 | if ac_fn_c_try_compile "$LINENO"; then : | |
1865 | eval "$3=yes" | |
1866 | else | |
1867 | eval "$3=no" | |
1868 | fi | |
1869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1870 | fi | |
1871 | eval ac_res=\$$3 | |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1873 | $as_echo "$ac_res" >&6; } | |
1874 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1875 | ||
1876 | } # ac_fn_c_check_header_compile | |
1877 | ||
1878 | # ac_fn_c_check_func LINENO FUNC VAR | |
1879 | # ---------------------------------- | |
1880 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1881 | ac_fn_c_check_func () | |
1882 | { | |
1883 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1885 | $as_echo_n "checking for $2... " >&6; } | |
1886 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1887 | $as_echo_n "(cached) " >&6 | |
1888 | else | |
1889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1890 | /* end confdefs.h. */ | |
1891 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1893 | #define $2 innocuous_$2 | |
1894 | ||
1895 | /* System header to define __stub macros and hopefully few prototypes, | |
1896 | which can conflict with char $2 (); below. | |
1897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1898 | <limits.h> exists even on freestanding compilers. */ | |
1899 | ||
1900 | #ifdef __STDC__ | |
1901 | # include <limits.h> | |
1902 | #else | |
1903 | # include <assert.h> | |
1904 | #endif | |
1905 | ||
1906 | #undef $2 | |
1907 | ||
1908 | /* Override any GCC internal prototype to avoid an error. | |
1909 | Use char because int might match the return type of a GCC | |
1910 | builtin and then its argument prototype would still apply. */ | |
1911 | #ifdef __cplusplus | |
1912 | extern "C" | |
1913 | #endif | |
1914 | char $2 (); | |
1915 | /* The GNU C library defines this for functions which it implements | |
1916 | to always fail with ENOSYS. Some functions are actually named | |
1917 | something starting with __ and the normal name is an alias. */ | |
1918 | #if defined __stub_$2 || defined __stub___$2 | |
1919 | choke me | |
1920 | #endif | |
1921 | ||
1922 | int | |
1923 | main () | |
1924 | { | |
1925 | return $2 (); | |
1926 | ; | |
1927 | return 0; | |
1928 | } | |
1929 | _ACEOF | |
1930 | if ac_fn_c_try_link "$LINENO"; then : | |
1931 | eval "$3=yes" | |
1932 | else | |
1933 | eval "$3=no" | |
1934 | fi | |
1935 | rm -f core conftest.err conftest.$ac_objext \ | |
1936 | conftest$ac_exeext conftest.$ac_ext | |
1937 | fi | |
1938 | eval ac_res=\$$3 | |
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1940 | $as_echo "$ac_res" >&6; } | |
1941 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1942 | ||
1943 | } # ac_fn_c_check_func | |
1944 | ||
3cb62297 L |
1945 | # ac_fn_cxx_try_cpp LINENO |
1946 | # ------------------------ | |
1947 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1948 | ac_fn_cxx_try_cpp () | |
1949 | { | |
1950 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1951 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1952 | case "(($ac_try" in | |
1953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1954 | *) ac_try_echo=$ac_try;; | |
1955 | esac | |
1956 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1957 | $as_echo "$ac_try_echo"; } >&5 | |
1958 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1959 | ac_status=$? | |
1960 | if test -s conftest.err; then | |
1961 | grep -v '^ *+' conftest.err >conftest.er1 | |
1962 | cat conftest.er1 >&5 | |
1963 | mv -f conftest.er1 conftest.err | |
1964 | fi | |
1965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1966 | test $ac_status = 0; } >/dev/null && { | |
1967 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1968 | test ! -s conftest.err | |
1969 | }; then : | |
1970 | ac_retval=0 | |
1971 | else | |
1972 | $as_echo "$as_me: failed program was:" >&5 | |
1973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1974 | ||
1975 | ac_retval=1 | |
1976 | fi | |
1977 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1978 | return $ac_retval | |
1979 | ||
1980 | } # ac_fn_cxx_try_cpp | |
1981 | ||
1982 | # ac_fn_cxx_try_link LINENO | |
1983 | # ------------------------- | |
1984 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1985 | ac_fn_cxx_try_link () | |
1986 | { | |
1987 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1989 | if { { ac_try="$ac_link" | |
1990 | case "(($ac_try" in | |
1991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1992 | *) ac_try_echo=$ac_try;; | |
1993 | esac | |
1994 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1995 | $as_echo "$ac_try_echo"; } >&5 | |
1996 | (eval "$ac_link") 2>conftest.err | |
1997 | ac_status=$? | |
1998 | if test -s conftest.err; then | |
1999 | grep -v '^ *+' conftest.err >conftest.er1 | |
2000 | cat conftest.er1 >&5 | |
2001 | mv -f conftest.er1 conftest.err | |
2002 | fi | |
2003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2004 | test $ac_status = 0; } && { | |
2005 | test -z "$ac_cxx_werror_flag" || | |
2006 | test ! -s conftest.err | |
2007 | } && test -s conftest$ac_exeext && { | |
2008 | test "$cross_compiling" = yes || | |
2009 | $as_test_x conftest$ac_exeext | |
2010 | }; then : | |
2011 | ac_retval=0 | |
2012 | else | |
2013 | $as_echo "$as_me: failed program was:" >&5 | |
2014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2015 | ||
2016 | ac_retval=1 | |
2017 | fi | |
2018 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2019 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2020 | # interfere with the next link command; also delete a directory that is | |
2021 | # left behind by Apple's compiler. We do this before executing the actions. | |
2022 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2023 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2024 | return $ac_retval | |
2025 | ||
2026 | } # ac_fn_cxx_try_link | |
2027 | ||
81ecdfbb RW |
2028 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
2029 | # ------------------------------------ | |
2030 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2031 | ac_fn_c_check_decl () | |
2032 | { | |
2033 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
2034 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2035 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2037 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
2038 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2039 | $as_echo_n "(cached) " >&6 | |
2040 | else | |
2041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2042 | /* end confdefs.h. */ | |
2043 | $4 | |
2044 | int | |
2045 | main () | |
2046 | { | |
360cfc9c AM |
2047 | #ifndef $as_decl_name |
2048 | #ifdef __cplusplus | |
2049 | (void) $as_decl_use; | |
2050 | #else | |
2051 | (void) $as_decl_name; | |
2052 | #endif | |
81ecdfbb RW |
2053 | #endif |
2054 | ||
2055 | ; | |
2056 | return 0; | |
2057 | } | |
2058 | _ACEOF | |
2059 | if ac_fn_c_try_compile "$LINENO"; then : | |
2060 | eval "$3=yes" | |
2061 | else | |
2062 | eval "$3=no" | |
2063 | fi | |
2064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2065 | fi | |
2066 | eval ac_res=\$$3 | |
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2068 | $as_echo "$ac_res" >&6; } | |
2069 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2070 | ||
2071 | } # ac_fn_c_check_decl | |
2072 | ||
2073 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2074 | # -------------------------------------------- | |
2075 | # Tries to find the compile-time value of EXPR in a program that includes | |
2076 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2077 | # computed | |
2078 | ac_fn_c_compute_int () | |
2079 | { | |
2080 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2081 | if test "$cross_compiling" = yes; then | |
2082 | # Depending upon the size, compute the lo and hi bounds. | |
2083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2084 | /* end confdefs.h. */ | |
2085 | $4 | |
2086 | int | |
2087 | main () | |
2088 | { | |
2089 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2090 | test_array [0] = 0 | |
2091 | ||
2092 | ; | |
2093 | return 0; | |
2094 | } | |
2095 | _ACEOF | |
2096 | if ac_fn_c_try_compile "$LINENO"; then : | |
2097 | ac_lo=0 ac_mid=0 | |
2098 | while :; do | |
2099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2100 | /* end confdefs.h. */ | |
2101 | $4 | |
2102 | int | |
2103 | main () | |
2104 | { | |
2105 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2106 | test_array [0] = 0 | |
2107 | ||
2108 | ; | |
2109 | return 0; | |
2110 | } | |
2111 | _ACEOF | |
2112 | if ac_fn_c_try_compile "$LINENO"; then : | |
2113 | ac_hi=$ac_mid; break | |
2114 | else | |
2115 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2116 | if test $ac_lo -le $ac_mid; then | |
2117 | ac_lo= ac_hi= | |
2118 | break | |
2119 | fi | |
2120 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2121 | fi | |
2122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2123 | done | |
2124 | else | |
2125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2126 | /* end confdefs.h. */ | |
2127 | $4 | |
2128 | int | |
2129 | main () | |
2130 | { | |
2131 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2132 | test_array [0] = 0 | |
2133 | ||
2134 | ; | |
2135 | return 0; | |
2136 | } | |
2137 | _ACEOF | |
2138 | if ac_fn_c_try_compile "$LINENO"; then : | |
2139 | ac_hi=-1 ac_mid=-1 | |
2140 | while :; do | |
2141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2142 | /* end confdefs.h. */ | |
2143 | $4 | |
2144 | int | |
2145 | main () | |
2146 | { | |
2147 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2148 | test_array [0] = 0 | |
2149 | ||
2150 | ; | |
2151 | return 0; | |
2152 | } | |
2153 | _ACEOF | |
2154 | if ac_fn_c_try_compile "$LINENO"; then : | |
2155 | ac_lo=$ac_mid; break | |
2156 | else | |
2157 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2158 | if test $ac_mid -le $ac_hi; then | |
2159 | ac_lo= ac_hi= | |
2160 | break | |
2161 | fi | |
2162 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2163 | fi | |
2164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2165 | done | |
2166 | else | |
2167 | ac_lo= ac_hi= | |
2168 | fi | |
2169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2170 | fi | |
2171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2172 | # Binary search between lo and hi bounds. | |
2173 | while test "x$ac_lo" != "x$ac_hi"; do | |
2174 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2176 | /* end confdefs.h. */ | |
2177 | $4 | |
2178 | int | |
2179 | main () | |
2180 | { | |
2181 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2182 | test_array [0] = 0 | |
2183 | ||
2184 | ; | |
2185 | return 0; | |
2186 | } | |
2187 | _ACEOF | |
2188 | if ac_fn_c_try_compile "$LINENO"; then : | |
2189 | ac_hi=$ac_mid | |
2190 | else | |
2191 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2192 | fi | |
2193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2194 | done | |
2195 | case $ac_lo in #(( | |
2196 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2197 | '') ac_retval=1 ;; | |
2198 | esac | |
2199 | else | |
2200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2201 | /* end confdefs.h. */ | |
2202 | $4 | |
2203 | static long int longval () { return $2; } | |
2204 | static unsigned long int ulongval () { return $2; } | |
2205 | #include <stdio.h> | |
2206 | #include <stdlib.h> | |
2207 | int | |
2208 | main () | |
2209 | { | |
2210 | ||
2211 | FILE *f = fopen ("conftest.val", "w"); | |
2212 | if (! f) | |
2213 | return 1; | |
2214 | if (($2) < 0) | |
2215 | { | |
2216 | long int i = longval (); | |
2217 | if (i != ($2)) | |
2218 | return 1; | |
2219 | fprintf (f, "%ld", i); | |
2220 | } | |
2221 | else | |
2222 | { | |
2223 | unsigned long int i = ulongval (); | |
2224 | if (i != ($2)) | |
2225 | return 1; | |
2226 | fprintf (f, "%lu", i); | |
2227 | } | |
2228 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2229 | on some platforms. */ | |
2230 | return ferror (f) || fclose (f) != 0; | |
2231 | ||
2232 | ; | |
2233 | return 0; | |
2234 | } | |
2235 | _ACEOF | |
2236 | if ac_fn_c_try_run "$LINENO"; then : | |
2237 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2238 | else | |
2239 | ac_retval=1 | |
2240 | fi | |
2241 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2242 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2243 | rm -f conftest.val | |
2244 | ||
2245 | fi | |
2246 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2247 | return $ac_retval | |
2248 | ||
2249 | } # ac_fn_c_compute_int | |
2250 | cat >config.log <<_ACEOF | |
2251 | This file contains any messages produced by compilers while | |
2252 | running configure, to aid debugging if configure makes a mistake. | |
2253 | ||
91dc4e0a | 2254 | It was created by ld $as_me 2.25.51, which was |
81ecdfbb RW |
2255 | generated by GNU Autoconf 2.64. Invocation command line was |
2256 | ||
2257 | $ $0 $@ | |
2258 | ||
2259 | _ACEOF | |
2260 | exec 5>>config.log | |
2261 | { | |
2262 | cat <<_ASUNAME | |
2263 | ## --------- ## | |
2264 | ## Platform. ## | |
2265 | ## --------- ## | |
2266 | ||
2267 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2268 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2269 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2270 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2271 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2272 | ||
2273 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2274 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2275 | ||
2276 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2277 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2278 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2279 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
42ecbf5e DJ |
2280 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2281 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2282 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2283 | ||
2284 | _ASUNAME | |
2285 | ||
2286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2287 | for as_dir in $PATH | |
2288 | do | |
2289 | IFS=$as_save_IFS | |
2290 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2291 | $as_echo "PATH: $as_dir" |
2292 | done | |
2293 | IFS=$as_save_IFS | |
252b5132 | 2294 | |
42ecbf5e | 2295 | } >&5 |
5d64ca4e | 2296 | |
42ecbf5e | 2297 | cat >&5 <<_ACEOF |
5d64ca4e | 2298 | |
5d64ca4e | 2299 | |
42ecbf5e DJ |
2300 | ## ----------- ## |
2301 | ## Core tests. ## | |
2302 | ## ----------- ## | |
5d64ca4e | 2303 | |
42ecbf5e | 2304 | _ACEOF |
2469cfa2 | 2305 | |
42ecbf5e DJ |
2306 | |
2307 | # Keep a trace of the command line. | |
2308 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2309 | # Strip out --silent because we don't want to record it for future runs. | |
2310 | # Also quote any args containing shell meta-characters. | |
2311 | # Make two passes to allow for proper duplicate-argument suppression. | |
2312 | ac_configure_args= | |
2313 | ac_configure_args0= | |
2314 | ac_configure_args1= | |
42ecbf5e DJ |
2315 | ac_must_keep_next=false |
2316 | for ac_pass in 1 2 | |
2317 | do | |
2318 | for ac_arg | |
2319 | do | |
2320 | case $ac_arg in | |
2321 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2322 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2323 | | -silent | --silent | --silen | --sile | --sil) | |
2324 | continue ;; | |
81ecdfbb RW |
2325 | *\'*) |
2326 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42ecbf5e DJ |
2327 | esac |
2328 | case $ac_pass in | |
81ecdfbb | 2329 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
42ecbf5e | 2330 | 2) |
81ecdfbb | 2331 | as_fn_append ac_configure_args1 " '$ac_arg'" |
42ecbf5e DJ |
2332 | if test $ac_must_keep_next = true; then |
2333 | ac_must_keep_next=false # Got value, back to normal. | |
2334 | else | |
2335 | case $ac_arg in | |
2336 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2337 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2338 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2339 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2340 | case "$ac_configure_args0 " in | |
2341 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2342 | esac | |
2343 | ;; | |
2344 | -* ) ac_must_keep_next=true ;; | |
2345 | esac | |
2346 | fi | |
81ecdfbb | 2347 | as_fn_append ac_configure_args " '$ac_arg'" |
42ecbf5e DJ |
2348 | ;; |
2349 | esac | |
2350 | done | |
2351 | done | |
81ecdfbb RW |
2352 | { ac_configure_args0=; unset ac_configure_args0;} |
2353 | { ac_configure_args1=; unset ac_configure_args1;} | |
42ecbf5e DJ |
2354 | |
2355 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2356 | # config.log. We remove comments because anyway the quotes in there | |
2357 | # would cause problems or look ugly. | |
81ecdfbb RW |
2358 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2359 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
42ecbf5e DJ |
2360 | trap 'exit_status=$? |
2361 | # Save into config.log some information that might help in debugging. | |
2362 | { | |
2363 | echo | |
2364 | ||
2365 | cat <<\_ASBOX | |
2366 | ## ---------------- ## | |
2367 | ## Cache variables. ## | |
2368 | ## ---------------- ## | |
2369 | _ASBOX | |
2370 | echo | |
2371 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2372 | ( |
2373 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2374 | eval ac_val=\$$ac_var | |
2375 | case $ac_val in #( | |
2376 | *${as_nl}*) | |
2377 | case $ac_var in #( | |
2378 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2379 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2380 | esac | |
2381 | case $ac_var in #( | |
2382 | _ | IFS | as_nl) ;; #( | |
2383 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2384 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2385 | esac ;; | |
2386 | esac | |
2387 | done | |
42ecbf5e | 2388 | (set) 2>&1 | |
81ecdfbb RW |
2389 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2390 | *${as_nl}ac_space=\ *) | |
42ecbf5e | 2391 | sed -n \ |
81ecdfbb RW |
2392 | "s/'\''/'\''\\\\'\'''\''/g; |
2393 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2394 | ;; #( | |
42ecbf5e | 2395 | *) |
81ecdfbb | 2396 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 2397 | ;; |
81ecdfbb RW |
2398 | esac | |
2399 | sort | |
2400 | ) | |
42ecbf5e DJ |
2401 | echo |
2402 | ||
2403 | cat <<\_ASBOX | |
2404 | ## ----------------- ## | |
2405 | ## Output variables. ## | |
2406 | ## ----------------- ## | |
2407 | _ASBOX | |
2408 | echo | |
2409 | for ac_var in $ac_subst_vars | |
2410 | do | |
81ecdfbb RW |
2411 | eval ac_val=\$$ac_var |
2412 | case $ac_val in | |
2413 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2414 | esac | |
2415 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2416 | done | sort |
2417 | echo | |
2418 | ||
2419 | if test -n "$ac_subst_files"; then | |
2420 | cat <<\_ASBOX | |
81ecdfbb RW |
2421 | ## ------------------- ## |
2422 | ## File substitutions. ## | |
2423 | ## ------------------- ## | |
42ecbf5e DJ |
2424 | _ASBOX |
2425 | echo | |
2426 | for ac_var in $ac_subst_files | |
2427 | do | |
81ecdfbb RW |
2428 | eval ac_val=\$$ac_var |
2429 | case $ac_val in | |
2430 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2431 | esac | |
2432 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2433 | done | sort |
2434 | echo | |
2435 | fi | |
2436 | ||
2437 | if test -s confdefs.h; then | |
2438 | cat <<\_ASBOX | |
2439 | ## ----------- ## | |
2440 | ## confdefs.h. ## | |
2441 | ## ----------- ## | |
2442 | _ASBOX | |
2443 | echo | |
81ecdfbb | 2444 | cat confdefs.h |
42ecbf5e DJ |
2445 | echo |
2446 | fi | |
2447 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2448 | $as_echo "$as_me: caught signal $ac_signal" |
2449 | $as_echo "$as_me: exit $exit_status" | |
42ecbf5e | 2450 | } >&5 |
81ecdfbb RW |
2451 | rm -f core *.core core.conftest.* && |
2452 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
42ecbf5e | 2453 | exit $exit_status |
81ecdfbb | 2454 | ' 0 |
42ecbf5e | 2455 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2456 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
42ecbf5e DJ |
2457 | done |
2458 | ac_signal=0 | |
2459 | ||
2460 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2461 | rm -f -r conftest* confdefs.h |
2462 | ||
2463 | $as_echo "/* confdefs.h */" > confdefs.h | |
42ecbf5e DJ |
2464 | |
2465 | # Predefined preprocessor variables. | |
2466 | ||
2467 | cat >>confdefs.h <<_ACEOF | |
2468 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2469 | _ACEOF | |
2470 | ||
42ecbf5e DJ |
2471 | cat >>confdefs.h <<_ACEOF |
2472 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2473 | _ACEOF | |
2474 | ||
42ecbf5e DJ |
2475 | cat >>confdefs.h <<_ACEOF |
2476 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2477 | _ACEOF | |
2478 | ||
42ecbf5e DJ |
2479 | cat >>confdefs.h <<_ACEOF |
2480 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2481 | _ACEOF | |
2482 | ||
42ecbf5e DJ |
2483 | cat >>confdefs.h <<_ACEOF |
2484 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2485 | _ACEOF | |
2486 | ||
81ecdfbb RW |
2487 | cat >>confdefs.h <<_ACEOF |
2488 | #define PACKAGE_URL "$PACKAGE_URL" | |
2489 | _ACEOF | |
2490 | ||
42ecbf5e DJ |
2491 | |
2492 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2493 | # Prefer an explicitly selected file to automatically selected ones. |
2494 | ac_site_file1=NONE | |
2495 | ac_site_file2=NONE | |
2496 | if test -n "$CONFIG_SITE"; then | |
2497 | ac_site_file1=$CONFIG_SITE | |
2498 | elif test "x$prefix" != xNONE; then | |
2499 | ac_site_file1=$prefix/share/config.site | |
2500 | ac_site_file2=$prefix/etc/config.site | |
2501 | else | |
2502 | ac_site_file1=$ac_default_prefix/share/config.site | |
2503 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2504 | fi | |
2505 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2506 | do | |
2507 | test "x$ac_site_file" = xNONE && continue | |
42ecbf5e | 2508 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2510 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
42ecbf5e DJ |
2511 | sed 's/^/| /' "$ac_site_file" >&5 |
2512 | . "$ac_site_file" | |
2513 | fi | |
2514 | done | |
2515 | ||
2516 | if test -r "$cache_file"; then | |
2517 | # Some versions of bash will fail to source /dev/null (special | |
2518 | # files actually), so we avoid doing that. | |
2519 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2521 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
42ecbf5e | 2522 | case $cache_file in |
81ecdfbb RW |
2523 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2524 | *) . "./$cache_file";; | |
42ecbf5e DJ |
2525 | esac |
2526 | fi | |
2527 | else | |
81ecdfbb RW |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2529 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
42ecbf5e DJ |
2530 | >$cache_file |
2531 | fi | |
2532 | ||
2533 | # Check that the precious variables saved in the cache have kept the same | |
2534 | # value. | |
2535 | ac_cache_corrupted=false | |
81ecdfbb | 2536 | for ac_var in $ac_precious_vars; do |
42ecbf5e DJ |
2537 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2538 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2539 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2540 | eval ac_new_val=\$ac_env_${ac_var}_value | |
42ecbf5e DJ |
2541 | case $ac_old_set,$ac_new_set in |
2542 | set,) | |
81ecdfbb RW |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2544 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
42ecbf5e DJ |
2545 | ac_cache_corrupted=: ;; |
2546 | ,set) | |
81ecdfbb RW |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2548 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
42ecbf5e DJ |
2549 | ac_cache_corrupted=: ;; |
2550 | ,);; | |
2551 | *) | |
2552 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2553 | # differences in whitespace do not lead to failure. |
2554 | ac_old_val_w=`echo x $ac_old_val` | |
2555 | ac_new_val_w=`echo x $ac_new_val` | |
2556 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2558 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2559 | ac_cache_corrupted=: | |
2560 | else | |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2562 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2563 | eval $ac_var=\$ac_old_val | |
2564 | fi | |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2566 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2568 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
2569 | fi;; |
2570 | esac | |
2571 | # Pass precious variables to config.status. | |
2572 | if test "$ac_new_set" = set; then | |
2573 | case $ac_new_val in | |
81ecdfbb | 2574 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
42ecbf5e DJ |
2575 | *) ac_arg=$ac_var=$ac_new_val ;; |
2576 | esac | |
2577 | case " $ac_configure_args " in | |
2578 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2579 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
42ecbf5e DJ |
2580 | esac |
2581 | fi | |
2582 | done | |
2583 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2585 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2587 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2588 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
42ecbf5e | 2589 | fi |
81ecdfbb RW |
2590 | ## -------------------- ## |
2591 | ## Main body of script. ## | |
2592 | ## -------------------- ## | |
42ecbf5e DJ |
2593 | |
2594 | ac_ext=c | |
2595 | ac_cpp='$CPP $CPPFLAGS' | |
2596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2599 | ||
2600 | ||
2601 | ||
42ecbf5e | 2602 | |
da594c4a | 2603 | |
42ecbf5e DJ |
2604 | |
2605 | ||
2606 | ac_aux_dir= | |
81ecdfbb RW |
2607 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2608 | for ac_t in install-sh install.sh shtool; do | |
2609 | if test -f "$ac_dir/$ac_t"; then | |
2610 | ac_aux_dir=$ac_dir | |
2611 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2612 | break 2 | |
2613 | fi | |
2614 | done | |
42ecbf5e DJ |
2615 | done |
2616 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2617 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
42ecbf5e | 2618 | fi |
81ecdfbb RW |
2619 | |
2620 | # These three variables are undocumented and unsupported, | |
2621 | # and are intended to be withdrawn in a future Autoconf release. | |
2622 | # They can cause serious problems if a builder's source tree is in a directory | |
2623 | # whose full name contains unusual characters. | |
2624 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2625 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2626 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2627 | ||
42ecbf5e DJ |
2628 | |
2629 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2630 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2631 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2632 | ||
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2634 | $as_echo_n "checking build system type... " >&6; } | |
2635 | if test "${ac_cv_build+set}" = set; then : | |
2636 | $as_echo_n "(cached) " >&6 | |
2637 | else | |
2638 | ac_build_alias=$build_alias | |
2639 | test "x$ac_build_alias" = x && | |
2640 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2641 | test "x$ac_build_alias" = x && | |
2642 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2643 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2644 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2645 | ||
2646 | fi | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2648 | $as_echo "$ac_cv_build" >&6; } | |
2649 | case $ac_cv_build in | |
2650 | *-*-*) ;; | |
2651 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2652 | esac | |
42ecbf5e | 2653 | build=$ac_cv_build |
81ecdfbb RW |
2654 | ac_save_IFS=$IFS; IFS='-' |
2655 | set x $ac_cv_build | |
2656 | shift | |
2657 | build_cpu=$1 | |
2658 | build_vendor=$2 | |
2659 | shift; shift | |
2660 | # Remember, the first character of IFS is used to create $*, | |
2661 | # except with old shells: | |
2662 | build_os=$* | |
2663 | IFS=$ac_save_IFS | |
2664 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2665 | |
2666 | ||
81ecdfbb RW |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2668 | $as_echo_n "checking host system type... " >&6; } | |
2669 | if test "${ac_cv_host+set}" = set; then : | |
2670 | $as_echo_n "(cached) " >&6 | |
2671 | else | |
2672 | if test "x$host_alias" = x; then | |
2673 | ac_cv_host=$ac_cv_build | |
42ecbf5e | 2674 | else |
81ecdfbb RW |
2675 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2676 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2677 | fi | |
42ecbf5e DJ |
2678 | |
2679 | fi | |
81ecdfbb RW |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2681 | $as_echo "$ac_cv_host" >&6; } | |
2682 | case $ac_cv_host in | |
2683 | *-*-*) ;; | |
2684 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2685 | esac | |
42ecbf5e | 2686 | host=$ac_cv_host |
81ecdfbb RW |
2687 | ac_save_IFS=$IFS; IFS='-' |
2688 | set x $ac_cv_host | |
2689 | shift | |
2690 | host_cpu=$1 | |
2691 | host_vendor=$2 | |
2692 | shift; shift | |
2693 | # Remember, the first character of IFS is used to create $*, | |
2694 | # except with old shells: | |
2695 | host_os=$* | |
2696 | IFS=$ac_save_IFS | |
2697 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2698 | |
2699 | ||
81ecdfbb RW |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2701 | $as_echo_n "checking target system type... " >&6; } | |
2702 | if test "${ac_cv_target+set}" = set; then : | |
2703 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 2704 | else |
81ecdfbb RW |
2705 | if test "x$target_alias" = x; then |
2706 | ac_cv_target=$ac_cv_host | |
2707 | else | |
2708 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2709 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2710 | fi | |
42ecbf5e DJ |
2711 | |
2712 | fi | |
81ecdfbb RW |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2714 | $as_echo "$ac_cv_target" >&6; } | |
2715 | case $ac_cv_target in | |
2716 | *-*-*) ;; | |
2717 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2718 | esac | |
42ecbf5e | 2719 | target=$ac_cv_target |
81ecdfbb RW |
2720 | ac_save_IFS=$IFS; IFS='-' |
2721 | set x $ac_cv_target | |
2722 | shift | |
2723 | target_cpu=$1 | |
2724 | target_vendor=$2 | |
2725 | shift; shift | |
2726 | # Remember, the first character of IFS is used to create $*, | |
2727 | # except with old shells: | |
2728 | target_os=$* | |
2729 | IFS=$ac_save_IFS | |
2730 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2731 | |
2732 | ||
2733 | # The aliases save the names the user supplied, while $host etc. | |
2734 | # will get canonicalized. | |
2735 | test -n "$target_alias" && | |
2736 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2737 | NONENONEs,x,x, && | |
2738 | program_prefix=${target_alias}- | |
02ecc8e9 | 2739 | |
42ecbf5e DJ |
2740 | ac_ext=c |
2741 | ac_cpp='$CPP $CPPFLAGS' | |
2742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2745 | if test -n "$ac_tool_prefix"; then | |
2746 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2747 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2749 | $as_echo_n "checking for $ac_word... " >&6; } | |
2750 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2751 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2752 | else |
2753 | if test -n "$CC"; then | |
2754 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2755 | else | |
2756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2757 | for as_dir in $PATH | |
2758 | do | |
2759 | IFS=$as_save_IFS | |
2760 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2761 | for ac_exec_ext in '' $ac_executable_extensions; do |
2762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2763 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2765 | break 2 |
2766 | fi | |
2767 | done | |
81ecdfbb RW |
2768 | done |
2769 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2770 | |
2771 | fi | |
2772 | fi | |
2773 | CC=$ac_cv_prog_CC | |
2774 | if test -n "$CC"; then | |
81ecdfbb RW |
2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2776 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2777 | else |
81ecdfbb RW |
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2779 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2780 | fi |
2781 | ||
81ecdfbb | 2782 | |
42ecbf5e DJ |
2783 | fi |
2784 | if test -z "$ac_cv_prog_CC"; then | |
2785 | ac_ct_CC=$CC | |
2786 | # Extract the first word of "gcc", so it can be a program name with args. | |
2787 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2789 | $as_echo_n "checking for $ac_word... " >&6; } | |
2790 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2791 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2792 | else |
2793 | if test -n "$ac_ct_CC"; then | |
2794 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2795 | else | |
2796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2797 | for as_dir in $PATH | |
2798 | do | |
2799 | IFS=$as_save_IFS | |
2800 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2801 | for ac_exec_ext in '' $ac_executable_extensions; do |
2802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2803 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2805 | break 2 |
2806 | fi | |
2807 | done | |
81ecdfbb RW |
2808 | done |
2809 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2810 | |
2811 | fi | |
2812 | fi | |
2813 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2814 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2816 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 2817 | else |
81ecdfbb RW |
2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2819 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2820 | fi |
2821 | ||
81ecdfbb RW |
2822 | if test "x$ac_ct_CC" = x; then |
2823 | CC="" | |
2824 | else | |
2825 | case $cross_compiling:$ac_tool_warned in | |
2826 | yes:) | |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2828 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2829 | ac_tool_warned=yes ;; | |
2830 | esac | |
2831 | CC=$ac_ct_CC | |
2832 | fi | |
42ecbf5e DJ |
2833 | else |
2834 | CC="$ac_cv_prog_CC" | |
2835 | fi | |
2836 | ||
2837 | if test -z "$CC"; then | |
81ecdfbb RW |
2838 | if test -n "$ac_tool_prefix"; then |
2839 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
42ecbf5e | 2840 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2842 | $as_echo_n "checking for $ac_word... " >&6; } | |
2843 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2844 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2845 | else |
2846 | if test -n "$CC"; then | |
2847 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2848 | else | |
2849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2850 | for as_dir in $PATH | |
2851 | do | |
2852 | IFS=$as_save_IFS | |
2853 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2854 | for ac_exec_ext in '' $ac_executable_extensions; do |
2855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2856 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2858 | break 2 |
2859 | fi | |
2860 | done | |
81ecdfbb RW |
2861 | done |
2862 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2863 | |
2864 | fi | |
2865 | fi | |
2866 | CC=$ac_cv_prog_CC | |
2867 | if test -n "$CC"; then | |
81ecdfbb RW |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2869 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2870 | else |
81ecdfbb RW |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2872 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2873 | fi |
2874 | ||
42ecbf5e | 2875 | |
81ecdfbb | 2876 | fi |
42ecbf5e DJ |
2877 | fi |
2878 | if test -z "$CC"; then | |
2879 | # Extract the first word of "cc", so it can be a program name with args. | |
2880 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2882 | $as_echo_n "checking for $ac_word... " >&6; } | |
2883 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2884 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2885 | else |
2886 | if test -n "$CC"; then | |
2887 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2888 | else | |
2889 | ac_prog_rejected=no | |
2890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2891 | for as_dir in $PATH | |
2892 | do | |
2893 | IFS=$as_save_IFS | |
2894 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2895 | for ac_exec_ext in '' $ac_executable_extensions; do |
2896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e DJ |
2897 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2898 | ac_prog_rejected=yes | |
2899 | continue | |
2900 | fi | |
2901 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2903 | break 2 |
2904 | fi | |
2905 | done | |
81ecdfbb RW |
2906 | done |
2907 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2908 | |
2909 | if test $ac_prog_rejected = yes; then | |
2910 | # We found a bogon in the path, so make sure we never use it. | |
2911 | set dummy $ac_cv_prog_CC | |
2912 | shift | |
2913 | if test $# != 0; then | |
2914 | # We chose a different compiler from the bogus one. | |
2915 | # However, it has the same basename, so the bogon will be chosen | |
2916 | # first if we set CC to just the basename; use the full file name. | |
2917 | shift | |
2918 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2919 | fi | |
2920 | fi | |
2921 | fi | |
2922 | fi | |
2923 | CC=$ac_cv_prog_CC | |
2924 | if test -n "$CC"; then | |
81ecdfbb RW |
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2926 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2927 | else |
81ecdfbb RW |
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2929 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2930 | fi |
2931 | ||
81ecdfbb | 2932 | |
42ecbf5e DJ |
2933 | fi |
2934 | if test -z "$CC"; then | |
2935 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2936 | for ac_prog in cl.exe |
42ecbf5e DJ |
2937 | do |
2938 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2939 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2941 | $as_echo_n "checking for $ac_word... " >&6; } | |
2942 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2943 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2944 | else |
2945 | if test -n "$CC"; then | |
2946 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2947 | else | |
2948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2949 | for as_dir in $PATH | |
2950 | do | |
2951 | IFS=$as_save_IFS | |
2952 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2953 | for ac_exec_ext in '' $ac_executable_extensions; do |
2954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2955 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2957 | break 2 |
2958 | fi | |
2959 | done | |
81ecdfbb RW |
2960 | done |
2961 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2962 | |
2963 | fi | |
2964 | fi | |
2965 | CC=$ac_cv_prog_CC | |
2966 | if test -n "$CC"; then | |
81ecdfbb RW |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2968 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2969 | else |
81ecdfbb RW |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2971 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2972 | fi |
2973 | ||
81ecdfbb | 2974 | |
42ecbf5e DJ |
2975 | test -n "$CC" && break |
2976 | done | |
2977 | fi | |
2978 | if test -z "$CC"; then | |
2979 | ac_ct_CC=$CC | |
81ecdfbb | 2980 | for ac_prog in cl.exe |
42ecbf5e DJ |
2981 | do |
2982 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2983 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2985 | $as_echo_n "checking for $ac_word... " >&6; } | |
2986 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2987 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2988 | else |
2989 | if test -n "$ac_ct_CC"; then | |
2990 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2991 | else | |
2992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2993 | for as_dir in $PATH | |
2994 | do | |
2995 | IFS=$as_save_IFS | |
2996 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2997 | for ac_exec_ext in '' $ac_executable_extensions; do |
2998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2999 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3001 | break 2 |
3002 | fi | |
3003 | done | |
81ecdfbb RW |
3004 | done |
3005 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3006 | |
3007 | fi | |
3008 | fi | |
3009 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3010 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3012 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 3013 | else |
81ecdfbb RW |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3015 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
3016 | fi |
3017 | ||
81ecdfbb | 3018 | |
42ecbf5e DJ |
3019 | test -n "$ac_ct_CC" && break |
3020 | done | |
3021 | ||
81ecdfbb RW |
3022 | if test "x$ac_ct_CC" = x; then |
3023 | CC="" | |
3024 | else | |
3025 | case $cross_compiling:$ac_tool_warned in | |
3026 | yes:) | |
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3028 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3029 | ac_tool_warned=yes ;; | |
3030 | esac | |
3031 | CC=$ac_ct_CC | |
3032 | fi | |
42ecbf5e DJ |
3033 | fi |
3034 | ||
3035 | fi | |
3036 | ||
3037 | ||
81ecdfbb RW |
3038 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3039 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3040 | as_fn_error "no acceptable C compiler found in \$PATH | |
3041 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e DJ |
3042 | |
3043 | # Provide some information about the compiler. | |
81ecdfbb RW |
3044 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3045 | set X $ac_compile | |
3046 | ac_compiler=$2 | |
3047 | for ac_option in --version -v -V -qversion; do | |
3048 | { { ac_try="$ac_compiler $ac_option >&5" | |
3049 | case "(($ac_try" in | |
3050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3051 | *) ac_try_echo=$ac_try;; | |
3052 | esac | |
3053 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3054 | $as_echo "$ac_try_echo"; } >&5 | |
3055 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
42ecbf5e | 3056 | ac_status=$? |
81ecdfbb RW |
3057 | if test -s conftest.err; then |
3058 | sed '10a\ | |
3059 | ... rest of stderr output deleted ... | |
3060 | 10q' conftest.err >conftest.er1 | |
3061 | cat conftest.er1 >&5 | |
3062 | rm -f conftest.er1 conftest.err | |
3063 | fi | |
3064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3065 | test $ac_status = 0; } | |
3066 | done | |
42ecbf5e | 3067 | |
81ecdfbb | 3068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3069 | /* end confdefs.h. */ |
3070 | ||
3071 | int | |
3072 | main () | |
3073 | { | |
3074 | ||
3075 | ; | |
3076 | return 0; | |
3077 | } | |
3078 | _ACEOF | |
3079 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 3080 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
42ecbf5e DJ |
3081 | # Try to create an executable without -o first, disregard a.out. |
3082 | # It will help us diagnose broken compilers, and finding out an intuition | |
3083 | # of exeext. | |
81ecdfbb RW |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3085 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3086 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3087 | ||
3088 | # The possible output files: | |
3089 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3090 | ||
3091 | ac_rmfiles= | |
3092 | for ac_file in $ac_files | |
3093 | do | |
3094 | case $ac_file in | |
3095 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3096 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3097 | esac | |
3098 | done | |
3099 | rm -f $ac_rmfiles | |
3100 | ||
3101 | if { { ac_try="$ac_link_default" | |
3102 | case "(($ac_try" in | |
3103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3104 | *) ac_try_echo=$ac_try;; | |
3105 | esac | |
3106 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3107 | $as_echo "$ac_try_echo"; } >&5 | |
3108 | (eval "$ac_link_default") 2>&5 | |
3109 | ac_status=$? | |
3110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3111 | test $ac_status = 0; }; then : | |
3112 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3113 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3114 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3115 | # so that the user can short-circuit this test for compilers unknown to | |
3116 | # Autoconf. | |
3117 | for ac_file in $ac_files '' | |
42ecbf5e DJ |
3118 | do |
3119 | test -f "$ac_file" || continue | |
3120 | case $ac_file in | |
81ecdfbb | 3121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
42ecbf5e DJ |
3122 | ;; |
3123 | [ab].out ) | |
3124 | # We found the default executable, but exeext='' is most | |
3125 | # certainly right. | |
3126 | break;; | |
3127 | *.* ) | |
81ecdfbb RW |
3128 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3129 | then :; else | |
3130 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3131 | fi | |
3132 | # We set ac_cv_exeext here because the later test for it is not | |
3133 | # safe: cross compilers may not add the suffix if given an `-o' | |
3134 | # argument, so we may need to know it at that point already. | |
3135 | # Even if this section looks crufty: it has the advantage of | |
3136 | # actually working. | |
42ecbf5e DJ |
3137 | break;; |
3138 | * ) | |
3139 | break;; | |
3140 | esac | |
3141 | done | |
81ecdfbb RW |
3142 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3143 | ||
42ecbf5e | 3144 | else |
81ecdfbb RW |
3145 | ac_file='' |
3146 | fi | |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3148 | $as_echo "$ac_file" >&6; } | |
3149 | if test -z "$ac_file"; then : | |
3150 | $as_echo "$as_me: failed program was:" >&5 | |
42ecbf5e DJ |
3151 | sed 's/^/| /' conftest.$ac_ext >&5 |
3152 | ||
81ecdfbb RW |
3153 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3154 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3155 | { as_fn_set_status 77 | |
3156 | as_fn_error "C compiler cannot create executables | |
3157 | See \`config.log' for more details." "$LINENO" 5; }; } | |
42ecbf5e | 3158 | fi |
42ecbf5e | 3159 | ac_exeext=$ac_cv_exeext |
42ecbf5e | 3160 | |
81ecdfbb | 3161 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3162 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3164 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
42ecbf5e DJ |
3165 | # If not cross compiling, check that we can run a simple program. |
3166 | if test "$cross_compiling" != yes; then | |
3167 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
3168 | { { case "(($ac_try" in |
3169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3170 | *) ac_try_echo=$ac_try;; | |
3171 | esac | |
3172 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3173 | $as_echo "$ac_try_echo"; } >&5 | |
3174 | (eval "$ac_try") 2>&5 | |
42ecbf5e | 3175 | ac_status=$? |
81ecdfbb RW |
3176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3177 | test $ac_status = 0; }; }; then | |
42ecbf5e DJ |
3178 | cross_compiling=no |
3179 | else | |
3180 | if test "$cross_compiling" = maybe; then | |
3181 | cross_compiling=yes | |
3182 | else | |
81ecdfbb RW |
3183 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3184 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3185 | as_fn_error "cannot run C compiled programs. | |
42ecbf5e | 3186 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 3187 | See \`config.log' for more details." "$LINENO" 5; } |
42ecbf5e DJ |
3188 | fi |
3189 | fi | |
3190 | fi | |
81ecdfbb RW |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3192 | $as_echo "yes" >&6; } | |
42ecbf5e | 3193 | |
81ecdfbb | 3194 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
42ecbf5e | 3195 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 3196 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3197 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3199 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3201 | $as_echo "$cross_compiling" >&6; } | |
3202 | ||
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3204 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3205 | if { { ac_try="$ac_link" | |
3206 | case "(($ac_try" in | |
3207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3208 | *) ac_try_echo=$ac_try;; | |
3209 | esac | |
3210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3211 | $as_echo "$ac_try_echo"; } >&5 | |
3212 | (eval "$ac_link") 2>&5 | |
42ecbf5e | 3213 | ac_status=$? |
81ecdfbb RW |
3214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3215 | test $ac_status = 0; }; then : | |
42ecbf5e DJ |
3216 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3217 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3218 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3219 | # `rm'. | |
3220 | for ac_file in conftest.exe conftest conftest.*; do | |
3221 | test -f "$ac_file" || continue | |
3222 | case $ac_file in | |
81ecdfbb | 3223 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
42ecbf5e | 3224 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
42ecbf5e DJ |
3225 | break;; |
3226 | * ) break;; | |
3227 | esac | |
3228 | done | |
3229 | else | |
81ecdfbb RW |
3230 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3232 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3233 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3234 | fi |
42ecbf5e | 3235 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3237 | $as_echo "$ac_cv_exeext" >&6; } | |
42ecbf5e DJ |
3238 | |
3239 | rm -f conftest.$ac_ext | |
3240 | EXEEXT=$ac_cv_exeext | |
3241 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3243 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3244 | if test "${ac_cv_objext+set}" = set; then : | |
3245 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3246 | else |
81ecdfbb | 3247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3248 | /* end confdefs.h. */ |
3249 | ||
3250 | int | |
3251 | main () | |
3252 | { | |
3253 | ||
3254 | ; | |
3255 | return 0; | |
3256 | } | |
3257 | _ACEOF | |
3258 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3259 | if { { ac_try="$ac_compile" |
3260 | case "(($ac_try" in | |
3261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3262 | *) ac_try_echo=$ac_try;; | |
3263 | esac | |
3264 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3265 | $as_echo "$ac_try_echo"; } >&5 | |
3266 | (eval "$ac_compile") 2>&5 | |
3267 | ac_status=$? | |
3268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3269 | test $ac_status = 0; }; then : | |
3270 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3271 | test -f "$ac_file" || continue; | |
42ecbf5e | 3272 | case $ac_file in |
81ecdfbb | 3273 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
42ecbf5e DJ |
3274 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3275 | break;; | |
3276 | esac | |
3277 | done | |
3278 | else | |
81ecdfbb | 3279 | $as_echo "$as_me: failed program was:" >&5 |
42ecbf5e DJ |
3280 | sed 's/^/| /' conftest.$ac_ext >&5 |
3281 | ||
81ecdfbb RW |
3282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3283 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3284 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3285 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3286 | fi |
42ecbf5e DJ |
3287 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3288 | fi | |
81ecdfbb RW |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3290 | $as_echo "$ac_cv_objext" >&6; } | |
42ecbf5e DJ |
3291 | OBJEXT=$ac_cv_objext |
3292 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3294 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3295 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3296 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3297 | else |
81ecdfbb | 3298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3299 | /* end confdefs.h. */ |
3300 | ||
3301 | int | |
3302 | main () | |
3303 | { | |
3304 | #ifndef __GNUC__ | |
3305 | choke me | |
3306 | #endif | |
3307 | ||
3308 | ; | |
3309 | return 0; | |
3310 | } | |
3311 | _ACEOF | |
81ecdfbb | 3312 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3313 | ac_compiler_gnu=yes |
3314 | else | |
81ecdfbb | 3315 | ac_compiler_gnu=no |
42ecbf5e | 3316 | fi |
81ecdfbb | 3317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e DJ |
3318 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3319 | ||
3320 | fi | |
81ecdfbb RW |
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3322 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3323 | if test $ac_compiler_gnu = yes; then | |
3324 | GCC=yes | |
3325 | else | |
3326 | GCC= | |
3327 | fi | |
42ecbf5e DJ |
3328 | ac_test_CFLAGS=${CFLAGS+set} |
3329 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3331 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3332 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3333 | $as_echo_n "(cached) " >&6 | |
3334 | else | |
3335 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3336 | ac_c_werror_flag=yes | |
3337 | ac_cv_prog_cc_g=no | |
3338 | CFLAGS="-g" | |
3339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e DJ |
3340 | /* end confdefs.h. */ |
3341 | ||
3342 | int | |
3343 | main () | |
3344 | { | |
3345 | ||
3346 | ; | |
3347 | return 0; | |
3348 | } | |
3349 | _ACEOF | |
81ecdfbb | 3350 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3351 | ac_cv_prog_cc_g=yes |
3352 | else | |
81ecdfbb RW |
3353 | CFLAGS="" |
3354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3355 | /* end confdefs.h. */ | |
3356 | ||
3357 | int | |
3358 | main () | |
3359 | { | |
3360 | ||
3361 | ; | |
3362 | return 0; | |
3363 | } | |
3364 | _ACEOF | |
3365 | if ac_fn_c_try_compile "$LINENO"; then : | |
3366 | ||
3367 | else | |
3368 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3369 | CFLAGS="-g" | |
3370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3371 | /* end confdefs.h. */ | |
3372 | ||
3373 | int | |
3374 | main () | |
3375 | { | |
42ecbf5e | 3376 | |
81ecdfbb RW |
3377 | ; |
3378 | return 0; | |
3379 | } | |
3380 | _ACEOF | |
3381 | if ac_fn_c_try_compile "$LINENO"; then : | |
3382 | ac_cv_prog_cc_g=yes | |
3383 | fi | |
3384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3385 | fi | |
3386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
42ecbf5e | 3387 | fi |
81ecdfbb RW |
3388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3389 | ac_c_werror_flag=$ac_save_c_werror_flag | |
42ecbf5e | 3390 | fi |
81ecdfbb RW |
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3392 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
42ecbf5e DJ |
3393 | if test "$ac_test_CFLAGS" = set; then |
3394 | CFLAGS=$ac_save_CFLAGS | |
3395 | elif test $ac_cv_prog_cc_g = yes; then | |
3396 | if test "$GCC" = yes; then | |
3397 | CFLAGS="-g -O2" | |
3398 | else | |
3399 | CFLAGS="-g" | |
3400 | fi | |
3401 | else | |
3402 | if test "$GCC" = yes; then | |
3403 | CFLAGS="-O2" | |
3404 | else | |
3405 | CFLAGS= | |
3406 | fi | |
3407 | fi | |
81ecdfbb RW |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3409 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3410 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3411 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3412 | else |
81ecdfbb | 3413 | ac_cv_prog_cc_c89=no |
42ecbf5e | 3414 | ac_save_CC=$CC |
81ecdfbb | 3415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3416 | /* end confdefs.h. */ |
3417 | #include <stdarg.h> | |
3418 | #include <stdio.h> | |
3419 | #include <sys/types.h> | |
3420 | #include <sys/stat.h> | |
3421 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3422 | struct buf { int x; }; | |
3423 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3424 | static char *e (p, i) | |
3425 | char **p; | |
3426 | int i; | |
3427 | { | |
3428 | return p[i]; | |
3429 | } | |
3430 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3431 | { | |
3432 | char *s; | |
3433 | va_list v; | |
3434 | va_start (v,p); | |
3435 | s = g (p, va_arg (v,int)); | |
3436 | va_end (v); | |
3437 | return s; | |
3438 | } | |
3439 | ||
3440 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3441 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3442 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3443 | as 'x'. The following induces an error, until -std is added to get |
42ecbf5e DJ |
3444 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3445 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3446 | that's true only with -std. */ |
42ecbf5e DJ |
3447 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3448 | ||
81ecdfbb RW |
3449 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3450 | inside strings and character constants. */ | |
3451 | #define FOO(x) 'x' | |
3452 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3453 | ||
42ecbf5e DJ |
3454 | int test (int i, double x); |
3455 | struct s1 {int (*f) (int a);}; | |
3456 | struct s2 {int (*f) (double a);}; | |
3457 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3458 | int argc; | |
3459 | char **argv; | |
3460 | int | |
3461 | main () | |
3462 | { | |
3463 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3464 | ; | |
3465 | return 0; | |
3466 | } | |
3467 | _ACEOF | |
81ecdfbb RW |
3468 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3469 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
42ecbf5e DJ |
3470 | do |
3471 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3472 | if ac_fn_c_try_compile "$LINENO"; then : |
3473 | ac_cv_prog_cc_c89=$ac_arg | |
42ecbf5e | 3474 | fi |
81ecdfbb RW |
3475 | rm -f core conftest.err conftest.$ac_objext |
3476 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
42ecbf5e | 3477 | done |
81ecdfbb | 3478 | rm -f conftest.$ac_ext |
42ecbf5e DJ |
3479 | CC=$ac_save_CC |
3480 | ||
3481 | fi | |
81ecdfbb RW |
3482 | # AC_CACHE_VAL |
3483 | case "x$ac_cv_prog_cc_c89" in | |
3484 | x) | |
3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3486 | $as_echo "none needed" >&6; } ;; | |
3487 | xno) | |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3489 | $as_echo "unsupported" >&6; } ;; | |
42ecbf5e | 3490 | *) |
81ecdfbb RW |
3491 | CC="$CC $ac_cv_prog_cc_c89" |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3493 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
42ecbf5e | 3494 | esac |
81ecdfbb | 3495 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
42ecbf5e | 3496 | |
42ecbf5e DJ |
3497 | fi |
3498 | ||
42ecbf5e DJ |
3499 | ac_ext=c |
3500 | ac_cpp='$CPP $CPPFLAGS' | |
3501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3504 | ||
3505 | ||
81ecdfbb RW |
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3507 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3508 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3509 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3510 | else |
3511 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 3512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3513 | /* end confdefs.h. */ |
3514 | ||
81ecdfbb RW |
3515 | /* Override any GCC internal prototype to avoid an error. |
3516 | Use char because int might match the return type of a GCC | |
3517 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
3518 | #ifdef __cplusplus |
3519 | extern "C" | |
3520 | #endif | |
42ecbf5e DJ |
3521 | char strerror (); |
3522 | int | |
3523 | main () | |
3524 | { | |
81ecdfbb | 3525 | return strerror (); |
42ecbf5e DJ |
3526 | ; |
3527 | return 0; | |
3528 | } | |
3529 | _ACEOF | |
81ecdfbb RW |
3530 | for ac_lib in '' cposix; do |
3531 | if test -z "$ac_lib"; then | |
3532 | ac_res="none required" | |
3533 | else | |
3534 | ac_res=-l$ac_lib | |
42ecbf5e | 3535 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3536 | fi |
3537 | if ac_fn_c_try_link "$LINENO"; then : | |
3538 | ac_cv_search_strerror=$ac_res | |
3539 | fi | |
3540 | rm -f core conftest.err conftest.$ac_objext \ | |
3541 | conftest$ac_exeext | |
3542 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3543 | break | |
3544 | fi | |
3545 | done | |
3546 | if test "${ac_cv_search_strerror+set}" = set; then : | |
42ecbf5e | 3547 | |
42ecbf5e | 3548 | else |
81ecdfbb | 3549 | ac_cv_search_strerror=no |
42ecbf5e | 3550 | fi |
81ecdfbb | 3551 | rm conftest.$ac_ext |
42ecbf5e DJ |
3552 | LIBS=$ac_func_search_save_LIBS |
3553 | fi | |
81ecdfbb RW |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3555 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3556 | ac_res=$ac_cv_search_strerror | |
3557 | if test "$ac_res" != no; then : | |
3558 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e DJ |
3559 | |
3560 | fi | |
e5a52504 MM |
3561 | |
3562 | ||
81ecdfbb RW |
3563 | am__api_version='1.11' |
3564 | ||
e5a52504 MM |
3565 | # Find a good install program. We prefer a C program (faster), |
3566 | # so one script is as good as another. But avoid the broken or | |
3567 | # incompatible versions: | |
3568 | # SysV /etc/install, /usr/sbin/install | |
3569 | # SunOS /usr/etc/install | |
3570 | # IRIX /sbin/install | |
3571 | # AIX /bin/install | |
42ecbf5e | 3572 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
3573 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3574 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3575 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 3576 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 3577 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3578 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3580 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5a52504 | 3581 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3582 | if test "${ac_cv_path_install+set}" = set; then : |
3583 | $as_echo_n "(cached) " >&6 | |
e5a52504 | 3584 | else |
42ecbf5e DJ |
3585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3586 | for as_dir in $PATH | |
3587 | do | |
3588 | IFS=$as_save_IFS | |
3589 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3590 | # Account for people who put trailing slashes in PATH elements. |
3591 | case $as_dir/ in #(( | |
3592 | ./ | .// | /[cC]/* | \ | |
42ecbf5e | 3593 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3594 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
42ecbf5e DJ |
3595 | /usr/ucb/* ) ;; |
3596 | *) | |
3597 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3598 | # Don't use installbsd from OSF since it installs stuff as root | |
3599 | # by default. | |
3600 | for ac_prog in ginstall scoinst install; do | |
3601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3602 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
252b5132 | 3603 | if test $ac_prog = install && |
42ecbf5e | 3604 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3605 | # AIX install. It has an incompatible calling convention. |
3606 | : | |
42ecbf5e DJ |
3607 | elif test $ac_prog = install && |
3608 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3609 | # program-specific install script used by HP pwplus--don't use. | |
3610 | : | |
252b5132 | 3611 | else |
58c85be7 RW |
3612 | rm -rf conftest.one conftest.two conftest.dir |
3613 | echo one > conftest.one | |
3614 | echo two > conftest.two | |
3615 | mkdir conftest.dir | |
3616 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3617 | test -s conftest.one && test -s conftest.two && | |
3618 | test -s conftest.dir/conftest.one && | |
3619 | test -s conftest.dir/conftest.two | |
3620 | then | |
3621 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3622 | break 3 | |
3623 | fi | |
252b5132 RH |
3624 | fi |
3625 | fi | |
3626 | done | |
42ecbf5e DJ |
3627 | done |
3628 | ;; | |
3629 | esac | |
81ecdfbb RW |
3630 | |
3631 | done | |
3632 | IFS=$as_save_IFS | |
42ecbf5e | 3633 | |
58c85be7 | 3634 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3635 | |
3636 | fi | |
3637 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 3638 | INSTALL=$ac_cv_path_install |
252b5132 | 3639 | else |
58c85be7 RW |
3640 | # As a last resort, use the slow shell script. Don't cache a |
3641 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3642 | # break other packages using the cache if that directory is |
58c85be7 | 3643 | # removed, or if the value is a relative name. |
42ecbf5e | 3644 | INSTALL=$ac_install_sh |
252b5132 RH |
3645 | fi |
3646 | fi | |
81ecdfbb RW |
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3648 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3649 | |
3650 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3651 | # It thinks the first close brace ends the variable substitution. | |
3652 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3653 | ||
42ecbf5e | 3654 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3655 | |
3656 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3657 | ||
81ecdfbb RW |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3659 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3660 | # Just in case |
3661 | sleep 1 | |
42ecbf5e | 3662 | echo timestamp > conftest.file |
81ecdfbb RW |
3663 | # Reject unsafe characters in $srcdir or the absolute working directory |
3664 | # name. Accept space and tab only in the latter. | |
3665 | am_lf=' | |
3666 | ' | |
3667 | case `pwd` in | |
3668 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3669 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3670 | esac | |
3671 | case $srcdir in | |
3672 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3673 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3674 | esac | |
3675 | ||
252b5132 RH |
3676 | # Do `set' in a subshell so we don't clobber the current shell's |
3677 | # arguments. Must try -L first in case configure is actually a | |
3678 | # symlink; some systems play weird games with the mod time of symlinks | |
3679 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3680 | # directory). | |
3681 | if ( | |
81ecdfbb | 3682 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3683 | if test "$*" = "X"; then |
3684 | # -L didn't work. | |
81ecdfbb | 3685 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3686 | fi |
42ecbf5e DJ |
3687 | rm -f conftest.file |
3688 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3689 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3690 | |
3691 | # If neither matched, then we have a broken ls. This can happen | |
3692 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3693 | # broken ls alias from the environment. This has actually | |
3694 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3695 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3696 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3697 | fi |
3698 | ||
42ecbf5e | 3699 | test "$2" = conftest.file |
252b5132 RH |
3700 | ) |
3701 | then | |
3702 | # Ok. | |
3703 | : | |
3704 | else | |
81ecdfbb RW |
3705 | as_fn_error "newly created file is older than distributed files! |
3706 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3707 | fi |
81ecdfbb RW |
3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3709 | $as_echo "yes" >&6; } | |
252b5132 | 3710 | test "$program_prefix" != NONE && |
81ecdfbb | 3711 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3712 | # Use a double $ so make ignores it. |
3713 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3714 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3715 | # Double any \ or $. | |
42ecbf5e | 3716 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3717 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3718 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e DJ |
3719 | |
3720 | # expand $ac_aux_dir to an absolute path | |
3721 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3722 | ||
81ecdfbb RW |
3723 | if test x"${MISSING+set}" != xset; then |
3724 | case $am_aux_dir in | |
3725 | *\ * | *\ *) | |
3726 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3727 | *) | |
3728 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3729 | esac | |
3730 | fi | |
42ecbf5e DJ |
3731 | # Use eval to expand $SHELL |
3732 | if eval "$MISSING --run true"; then | |
3733 | am_missing_run="$MISSING --run " | |
3734 | else | |
3735 | am_missing_run= | |
81ecdfbb RW |
3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3737 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3738 | fi | |
3739 | ||
3740 | if test x"${install_sh}" != xset; then | |
3741 | case $am_aux_dir in | |
3742 | *\ * | *\ *) | |
3743 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3744 | *) | |
3745 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3746 | esac | |
3747 | fi | |
3748 | ||
3749 | # Installed binaries are usually stripped using `strip' when the user | |
3750 | # run `make install-strip'. However `strip' might not be the right | |
3751 | # tool to use in cross-compilation environments, therefore Automake | |
3752 | # will honor the `STRIP' environment variable to overrule this program. | |
3753 | if test "$cross_compiling" != no; then | |
3754 | if test -n "$ac_tool_prefix"; then | |
3755 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3756 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3758 | $as_echo_n "checking for $ac_word... " >&6; } | |
3759 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3760 | $as_echo_n "(cached) " >&6 | |
3761 | else | |
3762 | if test -n "$STRIP"; then | |
3763 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3764 | else | |
3765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3766 | for as_dir in $PATH | |
3767 | do | |
3768 | IFS=$as_save_IFS | |
3769 | test -z "$as_dir" && as_dir=. | |
3770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3772 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3774 | break 2 | |
3775 | fi | |
3776 | done | |
3777 | done | |
3778 | IFS=$as_save_IFS | |
3779 | ||
3780 | fi | |
3781 | fi | |
3782 | STRIP=$ac_cv_prog_STRIP | |
3783 | if test -n "$STRIP"; then | |
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3785 | $as_echo "$STRIP" >&6; } | |
3786 | else | |
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3788 | $as_echo "no" >&6; } | |
3789 | fi | |
3790 | ||
3791 | ||
3792 | fi | |
3793 | if test -z "$ac_cv_prog_STRIP"; then | |
3794 | ac_ct_STRIP=$STRIP | |
3795 | # Extract the first word of "strip", so it can be a program name with args. | |
3796 | set dummy strip; ac_word=$2 | |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3798 | $as_echo_n "checking for $ac_word... " >&6; } | |
3799 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3800 | $as_echo_n "(cached) " >&6 | |
3801 | else | |
3802 | if test -n "$ac_ct_STRIP"; then | |
3803 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3804 | else | |
3805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3806 | for as_dir in $PATH | |
3807 | do | |
3808 | IFS=$as_save_IFS | |
3809 | test -z "$as_dir" && as_dir=. | |
3810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3812 | ac_cv_prog_ac_ct_STRIP="strip" | |
3813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3814 | break 2 | |
3815 | fi | |
3816 | done | |
3817 | done | |
3818 | IFS=$as_save_IFS | |
3819 | ||
3820 | fi | |
3821 | fi | |
3822 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3823 | if test -n "$ac_ct_STRIP"; then | |
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3825 | $as_echo "$ac_ct_STRIP" >&6; } | |
3826 | else | |
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3828 | $as_echo "no" >&6; } | |
3829 | fi | |
3830 | ||
3831 | if test "x$ac_ct_STRIP" = x; then | |
3832 | STRIP=":" | |
3833 | else | |
3834 | case $cross_compiling:$ac_tool_warned in | |
3835 | yes:) | |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3838 | ac_tool_warned=yes ;; | |
3839 | esac | |
3840 | STRIP=$ac_ct_STRIP | |
3841 | fi | |
3842 | else | |
3843 | STRIP="$ac_cv_prog_STRIP" | |
3844 | fi | |
3845 | ||
3846 | fi | |
3847 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3848 | ||
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3850 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3851 | if test -z "$MKDIR_P"; then | |
3852 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3853 | $as_echo_n "(cached) " >&6 | |
3854 | else | |
3855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3856 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3857 | do | |
3858 | IFS=$as_save_IFS | |
3859 | test -z "$as_dir" && as_dir=. | |
3860 | for ac_prog in mkdir gmkdir; do | |
3861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3862 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3863 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3864 | 'mkdir (GNU coreutils) '* | \ | |
3865 | 'mkdir (coreutils) '* | \ | |
3866 | 'mkdir (fileutils) '4.1*) | |
3867 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3868 | break 3;; | |
3869 | esac | |
3870 | done | |
3871 | done | |
42ecbf5e | 3872 | done |
81ecdfbb RW |
3873 | IFS=$as_save_IFS |
3874 | ||
3875 | fi | |
3876 | ||
3877 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3878 | MKDIR_P="$ac_cv_path_mkdir -p" | |
42ecbf5e | 3879 | else |
81ecdfbb RW |
3880 | # As a last resort, use the slow shell script. Don't cache a |
3881 | # value for MKDIR_P within a source directory, because that will | |
3882 | # break other packages using the cache if that directory is | |
3883 | # removed, or if the value is a relative name. | |
3884 | test -d ./--version && rmdir ./--version | |
3885 | MKDIR_P="$ac_install_sh -d" | |
42ecbf5e DJ |
3886 | fi |
3887 | fi | |
81ecdfbb RW |
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3889 | $as_echo "$MKDIR_P" >&6; } | |
3890 | ||
3891 | mkdir_p="$MKDIR_P" | |
3892 | case $mkdir_p in | |
3893 | [\\/$]* | ?:[\\/]*) ;; | |
3894 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3895 | esac | |
42ecbf5e DJ |
3896 | |
3897 | for ac_prog in gawk mawk nawk awk | |
3898 | do | |
3899 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3900 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3902 | $as_echo_n "checking for $ac_word... " >&6; } | |
3903 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3904 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3905 | else |
3906 | if test -n "$AWK"; then | |
3907 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3908 | else | |
3909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3910 | for as_dir in $PATH | |
3911 | do | |
3912 | IFS=$as_save_IFS | |
3913 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3914 | for ac_exec_ext in '' $ac_executable_extensions; do |
3915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 3916 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3918 | break 2 |
3919 | fi | |
3920 | done | |
81ecdfbb RW |
3921 | done |
3922 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3923 | |
3924 | fi | |
3925 | fi | |
3926 | AWK=$ac_cv_prog_AWK | |
3927 | if test -n "$AWK"; then | |
81ecdfbb RW |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3929 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 3930 | else |
81ecdfbb RW |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3932 | $as_echo "no" >&6; } | |
42ecbf5e | 3933 | fi |
252b5132 | 3934 | |
81ecdfbb | 3935 | |
42ecbf5e DJ |
3936 | test -n "$AWK" && break |
3937 | done | |
252b5132 | 3938 | |
81ecdfbb RW |
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3940 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3941 | set x ${MAKE-make} | |
3942 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3943 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3944 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3945 | else |
42ecbf5e | 3946 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 3947 | SHELL = /bin/sh |
252b5132 | 3948 | all: |
81ecdfbb | 3949 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 3950 | _ACEOF |
252b5132 | 3951 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
3952 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3953 | *@@@%%%=?*=@@@%%%*) | |
3954 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3955 | *) | |
3956 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3957 | esac | |
42ecbf5e | 3958 | rm -f conftest.make |
252b5132 | 3959 | fi |
81ecdfbb RW |
3960 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3962 | $as_echo "yes" >&6; } | |
252b5132 RH |
3963 | SET_MAKE= |
3964 | else | |
81ecdfbb RW |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3966 | $as_echo "no" >&6; } | |
252b5132 RH |
3967 | SET_MAKE="MAKE=${MAKE-make}" |
3968 | fi | |
3969 | ||
42ecbf5e DJ |
3970 | rm -rf .tst 2>/dev/null |
3971 | mkdir .tst 2>/dev/null | |
3972 | if test -d .tst; then | |
3973 | am__leading_dot=. | |
3974 | else | |
3975 | am__leading_dot=_ | |
3976 | fi | |
3977 | rmdir .tst 2>/dev/null | |
3978 | ||
3979 | DEPDIR="${am__leading_dot}deps" | |
3980 | ||
81ecdfbb | 3981 | ac_config_commands="$ac_config_commands depfiles" |
42ecbf5e DJ |
3982 | |
3983 | ||
3984 | am_make=${MAKE-make} | |
3985 | cat > confinc << 'END' | |
3986 | am__doit: | |
81ecdfbb | 3987 | @echo this is the am__doit target |
42ecbf5e DJ |
3988 | .PHONY: am__doit |
3989 | END | |
3990 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3992 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
42ecbf5e DJ |
3993 | am__include="#" |
3994 | am__quote= | |
3995 | _am_result=none | |
3996 | # First try GNU make style include. | |
3997 | echo "include confinc" > confmf | |
81ecdfbb RW |
3998 | # Ignore all kinds of additional output from `make'. |
3999 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4000 | *the\ am__doit\ target*) | |
4001 | am__include=include | |
4002 | am__quote= | |
4003 | _am_result=GNU | |
4004 | ;; | |
4005 | esac | |
42ecbf5e DJ |
4006 | # Now try BSD make style include. |
4007 | if test "$am__include" = "#"; then | |
4008 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
4009 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4010 | *the\ am__doit\ target*) | |
4011 | am__include=.include | |
4012 | am__quote="\"" | |
4013 | _am_result=BSD | |
4014 | ;; | |
4015 | esac | |
42ecbf5e DJ |
4016 | fi |
4017 | ||
4018 | ||
81ecdfbb RW |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4020 | $as_echo "$_am_result" >&6; } | |
42ecbf5e DJ |
4021 | rm -f confinc confmf |
4022 | ||
81ecdfbb RW |
4023 | # Check whether --enable-dependency-tracking was given. |
4024 | if test "${enable_dependency_tracking+set}" = set; then : | |
4025 | enableval=$enable_dependency_tracking; | |
4026 | fi | |
42ecbf5e | 4027 | |
42ecbf5e DJ |
4028 | if test "x$enable_dependency_tracking" != xno; then |
4029 | am_depcomp="$ac_aux_dir/depcomp" | |
4030 | AMDEPBACKSLASH='\' | |
4031 | fi | |
81ecdfbb | 4032 | if test "x$enable_dependency_tracking" != xno; then |
42ecbf5e DJ |
4033 | AMDEP_TRUE= |
4034 | AMDEP_FALSE='#' | |
4035 | else | |
4036 | AMDEP_TRUE='#' | |
4037 | AMDEP_FALSE= | |
4038 | fi | |
4039 | ||
e5a52504 | 4040 | |
81ecdfbb RW |
4041 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4042 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4043 | # is not polluted with repeated "-I." | |
4044 | am__isrc=' -I$(srcdir)' | |
4045 | # test to see if srcdir already configured | |
4046 | if test -f $srcdir/config.status; then | |
4047 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4048 | fi | |
42ecbf5e | 4049 | fi |
252b5132 | 4050 | |
42ecbf5e DJ |
4051 | # test whether we have cygpath |
4052 | if test -z "$CYGPATH_W"; then | |
4053 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4054 | CYGPATH_W='cygpath -w' | |
4055 | else | |
4056 | CYGPATH_W=echo | |
4057 | fi | |
252b5132 | 4058 | fi |
42ecbf5e DJ |
4059 | |
4060 | ||
4061 | # Define the identity of the package. | |
2e98a7bd | 4062 | PACKAGE='ld' |
91dc4e0a | 4063 | VERSION='2.25.51' |
42ecbf5e DJ |
4064 | |
4065 | ||
4066 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 4067 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
4068 | _ACEOF |
4069 | ||
252b5132 | 4070 | |
42ecbf5e | 4071 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 4072 | #define VERSION "$VERSION" |
42ecbf5e DJ |
4073 | _ACEOF |
4074 | ||
4075 | # Some tools Automake needs. | |
4076 | ||
4077 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4078 | ||
4079 | ||
4080 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4081 | ||
4082 | ||
4083 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4084 | ||
4085 | ||
4086 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4087 | ||
e5a52504 | 4088 | |
42ecbf5e | 4089 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 4090 | |
42ecbf5e DJ |
4091 | # We need awk for the "check" target. The system "awk" is bad on |
4092 | # some platforms. | |
4093 | # Always define AMTAR for backward compatibility. | |
4094 | ||
4095 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4096 | ||
4097 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4098 | ||
4099 | ||
4100 | ||
4101 | ||
4102 | depcc="$CC" am_compiler_list= | |
4103 | ||
81ecdfbb RW |
4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4105 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4106 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4107 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
4108 | else |
4109 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4110 | # We make a subdir and do the tests there. Otherwise we can end up | |
4111 | # making bogus files that we don't know about and never remove. For | |
4112 | # instance it was reported that on HP-UX the gcc test will end up | |
4113 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4114 | # in D'. | |
4115 | mkdir conftest.dir | |
4116 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4117 | # using a relative directory. | |
4118 | cp "$am_depcomp" conftest.dir | |
4119 | cd conftest.dir | |
4120 | # We will build objects and dependencies in a subdirectory because | |
4121 | # it helps to detect inapplicable dependency modes. For instance | |
4122 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4123 | # side effect of compilation, but ICC will put the dependencies in | |
4124 | # the current directory while Tru64 will put them in the object | |
4125 | # directory. | |
4126 | mkdir sub | |
4127 | ||
4128 | am_cv_CC_dependencies_compiler_type=none | |
4129 | if test "$am_compiler_list" = ""; then | |
4130 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4131 | fi | |
81ecdfbb RW |
4132 | am__universal=false |
4133 | case " $depcc " in #( | |
4134 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4135 | esac | |
4136 | ||
42ecbf5e DJ |
4137 | for depmode in $am_compiler_list; do |
4138 | # Setup a source with many dependencies, because some compilers | |
4139 | # like to wrap large dependency lists on column 80 (with \), and | |
4140 | # we should not choose a depcomp mode which is confused by this. | |
4141 | # | |
4142 | # We need to recreate these files for each test, as the compiler may | |
4143 | # overwrite some of them when testing with obscure command lines. | |
4144 | # This happens at least with the AIX C compiler. | |
4145 | : > sub/conftest.c | |
4146 | for i in 1 2 3 4 5 6; do | |
4147 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4148 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4149 | # Solaris 8's {/usr,}/bin/sh. | |
4150 | touch sub/conftst$i.h | |
4151 | done | |
4152 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4153 | ||
81ecdfbb RW |
4154 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4155 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4156 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4157 | # versions had trouble with output in subdirs | |
4158 | am__obj=sub/conftest.${OBJEXT-o} | |
4159 | am__minus_obj="-o $am__obj" | |
42ecbf5e | 4160 | case $depmode in |
81ecdfbb RW |
4161 | gcc) |
4162 | # This depmode causes a compiler race in universal mode. | |
4163 | test "$am__universal" = false || continue | |
4164 | ;; | |
42ecbf5e DJ |
4165 | nosideeffect) |
4166 | # after this tag, mechanisms are not by side-effect, so they'll | |
4167 | # only be used when explicitly requested | |
4168 | if test "x$enable_dependency_tracking" = xyes; then | |
4169 | continue | |
4170 | else | |
4171 | break | |
4172 | fi | |
4173 | ;; | |
81ecdfbb RW |
4174 | msvisualcpp | msvcmsys) |
4175 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4176 | # not run yet. These depmodes are late enough in the game, and | |
4177 | # so weak that their functioning should not be impacted. | |
4178 | am__obj=conftest.${OBJEXT-o} | |
4179 | am__minus_obj= | |
4180 | ;; | |
42ecbf5e DJ |
4181 | none) break ;; |
4182 | esac | |
42ecbf5e | 4183 | if depmode=$depmode \ |
81ecdfbb | 4184 | source=sub/conftest.c object=$am__obj \ |
42ecbf5e | 4185 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 4186 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
42ecbf5e | 4187 | >/dev/null 2>conftest.err && |
81ecdfbb | 4188 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e | 4189 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 4190 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e DJ |
4191 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4192 | # icc doesn't choke on unknown options, it will just issue warnings | |
4193 | # or remarks (even with -Werror). So we grep stderr for any message | |
4194 | # that says an option was ignored or not supported. | |
4195 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4196 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4197 | # The diagnosis changed in icc 8.0: | |
4198 | # icc: Command line remark: option '-MP' not supported | |
4199 | if (grep 'ignoring option' conftest.err || | |
4200 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4201 | am_cv_CC_dependencies_compiler_type=$depmode | |
4202 | break | |
4203 | fi | |
4204 | fi | |
4205 | done | |
2469cfa2 | 4206 | |
42ecbf5e DJ |
4207 | cd .. |
4208 | rm -rf conftest.dir | |
2469cfa2 | 4209 | else |
42ecbf5e DJ |
4210 | am_cv_CC_dependencies_compiler_type=none |
4211 | fi | |
4212 | ||
2469cfa2 | 4213 | fi |
81ecdfbb RW |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4215 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
42ecbf5e DJ |
4216 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4217 | ||
81ecdfbb | 4218 | if |
42ecbf5e DJ |
4219 | test "x$enable_dependency_tracking" != xno \ |
4220 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4221 | am__fastdepCC_TRUE= | |
4222 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 4223 | else |
42ecbf5e DJ |
4224 | am__fastdepCC_TRUE='#' |
4225 | am__fastdepCC_FALSE= | |
2469cfa2 | 4226 | fi |
2469cfa2 | 4227 | |
2469cfa2 | 4228 | |
e5a52504 | 4229 | |
42ecbf5e | 4230 | |
64ac50ac RW |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4232 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4233 | # Check whether --enable-maintainer-mode was given. | |
4234 | if test "${enable_maintainer_mode+set}" = set; then : | |
4235 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4236 | else | |
4237 | USE_MAINTAINER_MODE=no | |
4238 | fi | |
4239 | ||
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4241 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4242 | if test $USE_MAINTAINER_MODE = yes; then | |
4243 | MAINTAINER_MODE_TRUE= | |
4244 | MAINTAINER_MODE_FALSE='#' | |
4245 | else | |
4246 | MAINTAINER_MODE_TRUE='#' | |
4247 | MAINTAINER_MODE_FALSE= | |
4248 | fi | |
4249 | ||
4250 | MAINT=$MAINTAINER_MODE_TRUE | |
4251 | ||
4252 | ||
4253 | ||
b879806f AM |
4254 | ac_ext=c |
4255 | ac_cpp='$CPP $CPPFLAGS' | |
4256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4259 | if test -n "$ac_tool_prefix"; then | |
4260 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4261 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4263 | $as_echo_n "checking for $ac_word... " >&6; } | |
4264 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4265 | $as_echo_n "(cached) " >&6 | |
4266 | else | |
4267 | if test -n "$CC"; then | |
4268 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4269 | else | |
4270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4271 | for as_dir in $PATH | |
4272 | do | |
4273 | IFS=$as_save_IFS | |
4274 | test -z "$as_dir" && as_dir=. | |
4275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4277 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4279 | break 2 | |
4280 | fi | |
4281 | done | |
4282 | done | |
4283 | IFS=$as_save_IFS | |
d7040cdb | 4284 | |
81ecdfbb | 4285 | fi |
81ecdfbb | 4286 | fi |
b879806f AM |
4287 | CC=$ac_cv_prog_CC |
4288 | if test -n "$CC"; then | |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4290 | $as_echo "$CC" >&6; } | |
2469cfa2 | 4291 | else |
b879806f AM |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4293 | $as_echo "no" >&6; } | |
81ecdfbb | 4294 | fi |
d7040cdb SE |
4295 | |
4296 | ||
b879806f AM |
4297 | fi |
4298 | if test -z "$ac_cv_prog_CC"; then | |
4299 | ac_ct_CC=$CC | |
4300 | # Extract the first word of "gcc", so it can be a program name with args. | |
4301 | set dummy gcc; ac_word=$2 | |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4303 | $as_echo_n "checking for $ac_word... " >&6; } | |
4304 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4305 | $as_echo_n "(cached) " >&6 | |
e5a52504 | 4306 | else |
b879806f AM |
4307 | if test -n "$ac_ct_CC"; then |
4308 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4309 | else | |
4310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4311 | for as_dir in $PATH | |
4312 | do | |
4313 | IFS=$as_save_IFS | |
4314 | test -z "$as_dir" && as_dir=. | |
4315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4317 | ac_cv_prog_ac_ct_CC="gcc" | |
4318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4319 | break 2 | |
4320 | fi | |
4321 | done | |
4322 | done | |
4323 | IFS=$as_save_IFS | |
d7040cdb | 4324 | |
81ecdfbb | 4325 | fi |
b879806f AM |
4326 | fi |
4327 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4328 | if test -n "$ac_ct_CC"; then | |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4330 | $as_echo "$ac_ct_CC" >&6; } | |
4fda8867 | 4331 | else |
b879806f AM |
4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4333 | $as_echo "no" >&6; } | |
4fda8867 NC |
4334 | fi |
4335 | ||
b879806f AM |
4336 | if test "x$ac_ct_CC" = x; then |
4337 | CC="" | |
4338 | else | |
4339 | case $cross_compiling:$ac_tool_warned in | |
4340 | yes:) | |
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4343 | ac_tool_warned=yes ;; | |
7fb9f789 | 4344 | esac |
b879806f AM |
4345 | CC=$ac_ct_CC |
4346 | fi | |
7fb9f789 | 4347 | else |
b879806f | 4348 | CC="$ac_cv_prog_CC" |
81ecdfbb RW |
4349 | fi |
4350 | ||
b879806f AM |
4351 | if test -z "$CC"; then |
4352 | if test -n "$ac_tool_prefix"; then | |
4353 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4354 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4356 | $as_echo_n "checking for $ac_word... " >&6; } | |
4357 | if test "${ac_cv_prog_CC+set}" = set; then : | |
397841b5 AM |
4358 | $as_echo_n "(cached) " >&6 |
4359 | else | |
b879806f AM |
4360 | if test -n "$CC"; then |
4361 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4362 | else | |
4363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4364 | for as_dir in $PATH | |
397841b5 | 4365 | do |
b879806f AM |
4366 | IFS=$as_save_IFS |
4367 | test -z "$as_dir" && as_dir=. | |
4368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4369 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4370 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4372 | break 2 | |
4373 | fi | |
4374 | done | |
4375 | done | |
4376 | IFS=$as_save_IFS | |
d7040cdb | 4377 | |
ce2cded5 | 4378 | fi |
ce2cded5 | 4379 | fi |
b879806f AM |
4380 | CC=$ac_cv_prog_CC |
4381 | if test -n "$CC"; then | |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4383 | $as_echo "$CC" >&6; } | |
4384 | else | |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4386 | $as_echo "no" >&6; } | |
81ecdfbb RW |
4387 | fi |
4388 | ||
d7040cdb | 4389 | |
b879806f | 4390 | fi |
ce2cded5 | 4391 | fi |
b879806f AM |
4392 | if test -z "$CC"; then |
4393 | # Extract the first word of "cc", so it can be a program name with args. | |
4394 | set dummy cc; ac_word=$2 | |
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4396 | $as_echo_n "checking for $ac_word... " >&6; } | |
4397 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4398 | $as_echo_n "(cached) " >&6 | |
397841b5 | 4399 | else |
b879806f AM |
4400 | if test -n "$CC"; then |
4401 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4402 | else | |
4403 | ac_prog_rejected=no | |
4404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4405 | for as_dir in $PATH | |
397841b5 | 4406 | do |
b879806f AM |
4407 | IFS=$as_save_IFS |
4408 | test -z "$as_dir" && as_dir=. | |
4409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4411 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4412 | ac_prog_rejected=yes | |
4413 | continue | |
4414 | fi | |
4415 | ac_cv_prog_CC="cc" | |
4416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4417 | break 2 | |
4418 | fi | |
4419 | done | |
4420 | done | |
4421 | IFS=$as_save_IFS | |
d7040cdb | 4422 | |
b879806f AM |
4423 | if test $ac_prog_rejected = yes; then |
4424 | # We found a bogon in the path, so make sure we never use it. | |
4425 | set dummy $ac_cv_prog_CC | |
4426 | shift | |
4427 | if test $# != 0; then | |
4428 | # We chose a different compiler from the bogus one. | |
4429 | # However, it has the same basename, so the bogon will be chosen | |
4430 | # first if we set CC to just the basename; use the full file name. | |
4431 | shift | |
4432 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4433 | fi | |
397841b5 | 4434 | fi |
397841b5 | 4435 | fi |
b879806f AM |
4436 | fi |
4437 | CC=$ac_cv_prog_CC | |
4438 | if test -n "$CC"; then | |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4440 | $as_echo "$CC" >&6; } | |
397841b5 | 4441 | else |
b879806f AM |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4443 | $as_echo "no" >&6; } | |
ce2cded5 | 4444 | fi |
d7040cdb | 4445 | |
397841b5 | 4446 | |
b879806f AM |
4447 | fi |
4448 | if test -z "$CC"; then | |
4449 | if test -n "$ac_tool_prefix"; then | |
4450 | for ac_prog in cl.exe | |
4451 | do | |
4452 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4453 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4455 | $as_echo_n "checking for $ac_word... " >&6; } | |
4456 | if test "${ac_cv_prog_CC+set}" = set; then : | |
81ecdfbb | 4457 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4458 | else |
b879806f AM |
4459 | if test -n "$CC"; then |
4460 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4461 | else | |
4462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4463 | for as_dir in $PATH | |
d7040cdb SE |
4464 | do |
4465 | IFS=$as_save_IFS | |
4466 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4467 | for ac_exec_ext in '' $ac_executable_extensions; do |
b879806f AM |
4468 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4469 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4471 | break 2 | |
4472 | fi | |
4473 | done | |
397841b5 AM |
4474 | done |
4475 | IFS=$as_save_IFS | |
d7040cdb | 4476 | |
252b5132 | 4477 | fi |
b879806f AM |
4478 | fi |
4479 | CC=$ac_cv_prog_CC | |
4480 | if test -n "$CC"; then | |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4482 | $as_echo "$CC" >&6; } | |
4483 | else | |
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4485 | $as_echo "no" >&6; } | |
4486 | fi | |
397841b5 AM |
4487 | |
4488 | ||
b879806f AM |
4489 | test -n "$CC" && break |
4490 | done | |
4491 | fi | |
4492 | if test -z "$CC"; then | |
4493 | ac_ct_CC=$CC | |
4494 | for ac_prog in cl.exe | |
4495 | do | |
4496 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4497 | set dummy $ac_prog; ac_word=$2 | |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4499 | $as_echo_n "checking for $ac_word... " >&6; } | |
4500 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
397841b5 AM |
4501 | $as_echo_n "(cached) " >&6 |
4502 | else | |
b879806f AM |
4503 | if test -n "$ac_ct_CC"; then |
4504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4505 | else | |
4506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4507 | for as_dir in $PATH | |
397841b5 AM |
4508 | do |
4509 | IFS=$as_save_IFS | |
4510 | test -z "$as_dir" && as_dir=. | |
397841b5 | 4511 | for ac_exec_ext in '' $ac_executable_extensions; do |
b879806f AM |
4512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4513 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4515 | break 2 | |
4516 | fi | |
4517 | done | |
397841b5 AM |
4518 | done |
4519 | IFS=$as_save_IFS | |
397841b5 | 4520 | |
397841b5 | 4521 | fi |
397841b5 | 4522 | fi |
b879806f AM |
4523 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4524 | if test -n "$ac_ct_CC"; then | |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4526 | $as_echo "$ac_ct_CC" >&6; } | |
4527 | else | |
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4529 | $as_echo "no" >&6; } | |
397841b5 AM |
4530 | fi |
4531 | ||
397841b5 | 4532 | |
b879806f AM |
4533 | test -n "$ac_ct_CC" && break |
4534 | done | |
397841b5 | 4535 | |
b879806f AM |
4536 | if test "x$ac_ct_CC" = x; then |
4537 | CC="" | |
4538 | else | |
4539 | case $cross_compiling:$ac_tool_warned in | |
4540 | yes:) | |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4542 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4543 | ac_tool_warned=yes ;; | |
397841b5 | 4544 | esac |
b879806f AM |
4545 | CC=$ac_ct_CC |
4546 | fi | |
397841b5 AM |
4547 | fi |
4548 | ||
397841b5 AM |
4549 | fi |
4550 | ||
4551 | ||
b879806f AM |
4552 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4553 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4554 | as_fn_error "no acceptable C compiler found in \$PATH | |
4555 | See \`config.log' for more details." "$LINENO" 5; } | |
397841b5 | 4556 | |
b879806f AM |
4557 | # Provide some information about the compiler. |
4558 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4559 | set X $ac_compile | |
4560 | ac_compiler=$2 | |
4561 | for ac_option in --version -v -V -qversion; do | |
4562 | { { ac_try="$ac_compiler $ac_option >&5" | |
4563 | case "(($ac_try" in | |
4564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4565 | *) ac_try_echo=$ac_try;; | |
4566 | esac | |
4567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4568 | $as_echo "$ac_try_echo"; } >&5 | |
4569 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4570 | ac_status=$? | |
4571 | if test -s conftest.err; then | |
4572 | sed '10a\ | |
4573 | ... rest of stderr output deleted ... | |
4574 | 10q' conftest.err >conftest.er1 | |
4575 | cat conftest.er1 >&5 | |
4576 | rm -f conftest.er1 conftest.err | |
4577 | fi | |
4578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4579 | test $ac_status = 0; } | |
4580 | done | |
397841b5 | 4581 | |
b879806f AM |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4583 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4584 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
44350750 NC |
4585 | $as_echo_n "(cached) " >&6 |
4586 | else | |
4587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4588 | /* end confdefs.h. */ | |
b879806f | 4589 | |
44350750 NC |
4590 | int |
4591 | main () | |
4592 | { | |
b879806f AM |
4593 | #ifndef __GNUC__ |
4594 | choke me | |
4595 | #endif | |
4596 | ||
4597 | ; | |
44350750 NC |
4598 | return 0; |
4599 | } | |
4600 | _ACEOF | |
b879806f AM |
4601 | if ac_fn_c_try_compile "$LINENO"; then : |
4602 | ac_compiler_gnu=yes | |
44350750 | 4603 | else |
b879806f | 4604 | ac_compiler_gnu=no |
44350750 | 4605 | fi |
b879806f AM |
4606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4607 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4608 | ||
44350750 | 4609 | fi |
b879806f AM |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4611 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4612 | if test $ac_compiler_gnu = yes; then | |
4613 | GCC=yes | |
4614 | else | |
4615 | GCC= | |
4616 | fi | |
4617 | ac_test_CFLAGS=${CFLAGS+set} | |
4618 | ac_save_CFLAGS=$CFLAGS | |
4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4620 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4621 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4622 | $as_echo_n "(cached) " >&6 | |
4623 | else | |
4624 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4625 | ac_c_werror_flag=yes | |
4626 | ac_cv_prog_cc_g=no | |
4627 | CFLAGS="-g" | |
4628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4629 | /* end confdefs.h. */ | |
44350750 | 4630 | |
b879806f AM |
4631 | int |
4632 | main () | |
4633 | { | |
44350750 | 4634 | |
b879806f AM |
4635 | ; |
4636 | return 0; | |
4637 | } | |
4638 | _ACEOF | |
4639 | if ac_fn_c_try_compile "$LINENO"; then : | |
4640 | ac_cv_prog_cc_g=yes | |
4641 | else | |
4642 | CFLAGS="" | |
4643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4644 | /* end confdefs.h. */ | |
4645 | ||
4646 | int | |
4647 | main () | |
4648 | { | |
44350750 | 4649 | |
b879806f AM |
4650 | ; |
4651 | return 0; | |
4652 | } | |
4653 | _ACEOF | |
4654 | if ac_fn_c_try_compile "$LINENO"; then : | |
44350750 | 4655 | |
b879806f AM |
4656 | else |
4657 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4658 | CFLAGS="-g" | |
4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4660 | /* end confdefs.h. */ | |
397841b5 | 4661 | |
b879806f AM |
4662 | int |
4663 | main () | |
4664 | { | |
397841b5 | 4665 | |
b879806f AM |
4666 | ; |
4667 | return 0; | |
4668 | } | |
4669 | _ACEOF | |
4670 | if ac_fn_c_try_compile "$LINENO"; then : | |
4671 | ac_cv_prog_cc_g=yes | |
4672 | fi | |
4673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4674 | fi | |
4675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4676 | fi | |
4677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4678 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4679 | fi | |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4681 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4682 | if test "$ac_test_CFLAGS" = set; then | |
4683 | CFLAGS=$ac_save_CFLAGS | |
4684 | elif test $ac_cv_prog_cc_g = yes; then | |
4685 | if test "$GCC" = yes; then | |
4686 | CFLAGS="-g -O2" | |
4687 | else | |
4688 | CFLAGS="-g" | |
4689 | fi | |
4690 | else | |
4691 | if test "$GCC" = yes; then | |
4692 | CFLAGS="-O2" | |
4693 | else | |
4694 | CFLAGS= | |
4695 | fi | |
4696 | fi | |
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4698 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4699 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4700 | $as_echo_n "(cached) " >&6 | |
4701 | else | |
4702 | ac_cv_prog_cc_c89=no | |
4703 | ac_save_CC=$CC | |
4704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4705 | /* end confdefs.h. */ | |
4706 | #include <stdarg.h> | |
4707 | #include <stdio.h> | |
4708 | #include <sys/types.h> | |
4709 | #include <sys/stat.h> | |
4710 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4711 | struct buf { int x; }; | |
4712 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4713 | static char *e (p, i) | |
4714 | char **p; | |
4715 | int i; | |
4716 | { | |
4717 | return p[i]; | |
4718 | } | |
4719 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4720 | { | |
4721 | char *s; | |
4722 | va_list v; | |
4723 | va_start (v,p); | |
4724 | s = g (p, va_arg (v,int)); | |
4725 | va_end (v); | |
4726 | return s; | |
4727 | } | |
df7b86aa | 4728 | |
b879806f AM |
4729 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4730 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4731 | These don't provoke an error unfortunately, instead are silently treated | |
4732 | as 'x'. The following induces an error, until -std is added to get | |
4733 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4734 | array size at least. It's necessary to write '\x00'==0 to get something | |
4735 | that's true only with -std. */ | |
4736 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
df7b86aa | 4737 | |
b879806f AM |
4738 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4739 | inside strings and character constants. */ | |
4740 | #define FOO(x) 'x' | |
4741 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4742 | ||
4743 | int test (int i, double x); | |
4744 | struct s1 {int (*f) (int a);}; | |
4745 | struct s2 {int (*f) (double a);}; | |
4746 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4747 | int argc; | |
4748 | char **argv; | |
4749 | int | |
4750 | main () | |
4751 | { | |
4752 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4753 | ; | |
4754 | return 0; | |
4755 | } | |
4756 | _ACEOF | |
4757 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4758 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4759 | do | |
4760 | CC="$ac_save_CC $ac_arg" | |
4761 | if ac_fn_c_try_compile "$LINENO"; then : | |
4762 | ac_cv_prog_cc_c89=$ac_arg | |
397841b5 | 4763 | fi |
b879806f AM |
4764 | rm -f core conftest.err conftest.$ac_objext |
4765 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4766 | done | |
4767 | rm -f conftest.$ac_ext | |
4768 | CC=$ac_save_CC | |
4769 | ||
397841b5 | 4770 | fi |
b879806f AM |
4771 | # AC_CACHE_VAL |
4772 | case "x$ac_cv_prog_cc_c89" in | |
4773 | x) | |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4775 | $as_echo "none needed" >&6; } ;; | |
4776 | xno) | |
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4778 | $as_echo "unsupported" >&6; } ;; | |
4779 | *) | |
4780 | CC="$CC $ac_cv_prog_cc_c89" | |
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4782 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4783 | esac | |
4784 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
397841b5 | 4785 | |
b879806f | 4786 | fi |
397841b5 AM |
4787 | |
4788 | ac_ext=c | |
4789 | ac_cpp='$CPP $CPPFLAGS' | |
4790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b879806f AM |
4793 | |
4794 | ac_ext=cpp | |
4795 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4796 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4797 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4798 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4799 | if test -z "$CXX"; then | |
4800 | if test -n "$CCC"; then | |
4801 | CXX=$CCC | |
4802 | else | |
4803 | if test -n "$ac_tool_prefix"; then | |
4804 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4805 | do | |
4806 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4807 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
397841b5 AM |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4809 | $as_echo_n "checking for $ac_word... " >&6; } | |
b879806f | 4810 | if test "${ac_cv_prog_CXX+set}" = set; then : |
397841b5 AM |
4811 | $as_echo_n "(cached) " >&6 |
4812 | else | |
b879806f AM |
4813 | if test -n "$CXX"; then |
4814 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
397841b5 AM |
4815 | else |
4816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4817 | for as_dir in $PATH | |
4818 | do | |
4819 | IFS=$as_save_IFS | |
4820 | test -z "$as_dir" && as_dir=. | |
4821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b879806f | 4823 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
397841b5 AM |
4824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4825 | break 2 | |
4826 | fi | |
4827 | done | |
4828 | done | |
4829 | IFS=$as_save_IFS | |
4830 | ||
4831 | fi | |
4832 | fi | |
b879806f AM |
4833 | CXX=$ac_cv_prog_CXX |
4834 | if test -n "$CXX"; then | |
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4836 | $as_echo "$CXX" >&6; } | |
397841b5 AM |
4837 | else |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4839 | $as_echo "no" >&6; } | |
4840 | fi | |
4841 | ||
4842 | ||
b879806f AM |
4843 | test -n "$CXX" && break |
4844 | done | |
397841b5 | 4845 | fi |
b879806f AM |
4846 | if test -z "$CXX"; then |
4847 | ac_ct_CXX=$CXX | |
4848 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4849 | do | |
4850 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4851 | set dummy $ac_prog; ac_word=$2 | |
397841b5 AM |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4853 | $as_echo_n "checking for $ac_word... " >&6; } | |
b879806f | 4854 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
81ecdfbb | 4855 | $as_echo_n "(cached) " >&6 |
252b5132 | 4856 | else |
b879806f AM |
4857 | if test -n "$ac_ct_CXX"; then |
4858 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
252b5132 | 4859 | else |
ce2cded5 L |
4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4861 | for as_dir in $PATH | |
4862 | do | |
4863 | IFS=$as_save_IFS | |
4864 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4865 | for ac_exec_ext in '' $ac_executable_extensions; do |
4866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b879806f | 4867 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4869 | break 2 |
4870 | fi | |
4871 | done | |
81ecdfbb RW |
4872 | done |
4873 | IFS=$as_save_IFS | |
4874 | ||
252b5132 RH |
4875 | fi |
4876 | fi | |
b879806f AM |
4877 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4878 | if test -n "$ac_ct_CXX"; then | |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4880 | $as_echo "$ac_ct_CXX" >&6; } | |
d7040cdb | 4881 | else |
81ecdfbb RW |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4883 | $as_echo "no" >&6; } | |
d7040cdb SE |
4884 | fi |
4885 | ||
81ecdfbb | 4886 | |
b879806f | 4887 | test -n "$ac_ct_CXX" && break |
d7040cdb | 4888 | done |
d7040cdb | 4889 | |
b879806f AM |
4890 | if test "x$ac_ct_CXX" = x; then |
4891 | CXX="g++" | |
81ecdfbb RW |
4892 | else |
4893 | case $cross_compiling:$ac_tool_warned in | |
4894 | yes:) | |
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4896 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4897 | ac_tool_warned=yes ;; | |
4898 | esac | |
b879806f | 4899 | CXX=$ac_ct_CXX |
81ecdfbb | 4900 | fi |
d7040cdb SE |
4901 | fi |
4902 | ||
b879806f | 4903 | fi |
d7040cdb | 4904 | fi |
ce2cded5 | 4905 | # Provide some information about the compiler. |
b879806f | 4906 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
81ecdfbb RW |
4907 | set X $ac_compile |
4908 | ac_compiler=$2 | |
4909 | for ac_option in --version -v -V -qversion; do | |
4910 | { { ac_try="$ac_compiler $ac_option >&5" | |
4911 | case "(($ac_try" in | |
4912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4913 | *) ac_try_echo=$ac_try;; | |
4914 | esac | |
4915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4916 | $as_echo "$ac_try_echo"; } >&5 | |
4917 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4918 | ac_status=$? |
81ecdfbb RW |
4919 | if test -s conftest.err; then |
4920 | sed '10a\ | |
4921 | ... rest of stderr output deleted ... | |
4922 | 10q' conftest.err >conftest.er1 | |
4923 | cat conftest.er1 >&5 | |
4924 | rm -f conftest.er1 conftest.err | |
4925 | fi | |
4926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4927 | test $ac_status = 0; } | |
4928 | done | |
d7040cdb | 4929 | |
b879806f AM |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4931 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4932 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
81ecdfbb | 4933 | $as_echo_n "(cached) " >&6 |
d7040cdb | 4934 | else |
81ecdfbb | 4935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4936 | /* end confdefs.h. */ |
d7040cdb | 4937 | |
ce2cded5 L |
4938 | int |
4939 | main () | |
4940 | { | |
4941 | #ifndef __GNUC__ | |
4942 | choke me | |
4943 | #endif | |
4944 | ||
4945 | ; | |
4946 | return 0; | |
4947 | } | |
4948 | _ACEOF | |
b879806f | 4949 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ce2cded5 | 4950 | ac_compiler_gnu=yes |
d7040cdb | 4951 | else |
81ecdfbb | 4952 | ac_compiler_gnu=no |
d7040cdb | 4953 | fi |
81ecdfbb | 4954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b879806f | 4955 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 4956 | |
ce2cded5 | 4957 | fi |
b879806f AM |
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4959 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
81ecdfbb | 4960 | if test $ac_compiler_gnu = yes; then |
b879806f | 4961 | GXX=yes |
81ecdfbb | 4962 | else |
b879806f | 4963 | GXX= |
81ecdfbb | 4964 | fi |
b879806f AM |
4965 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4966 | ac_save_CXXFLAGS=$CXXFLAGS | |
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4968 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4969 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
81ecdfbb RW |
4970 | $as_echo_n "(cached) " >&6 |
4971 | else | |
b879806f AM |
4972 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4973 | ac_cxx_werror_flag=yes | |
4974 | ac_cv_prog_cxx_g=no | |
4975 | CXXFLAGS="-g" | |
81ecdfbb | 4976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4977 | /* end confdefs.h. */ |
d7040cdb | 4978 | |
ce2cded5 L |
4979 | int |
4980 | main () | |
4981 | { | |
d7040cdb | 4982 | |
ce2cded5 L |
4983 | ; |
4984 | return 0; | |
4985 | } | |
4986 | _ACEOF | |
b879806f AM |
4987 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4988 | ac_cv_prog_cxx_g=yes | |
ce2cded5 | 4989 | else |
b879806f | 4990 | CXXFLAGS="" |
81ecdfbb RW |
4991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4992 | /* end confdefs.h. */ | |
4993 | ||
4994 | int | |
4995 | main () | |
4996 | { | |
4997 | ||
4998 | ; | |
4999 | return 0; | |
5000 | } | |
5001 | _ACEOF | |
b879806f | 5002 | if ac_fn_cxx_try_compile "$LINENO"; then : |
81ecdfbb RW |
5003 | |
5004 | else | |
b879806f AM |
5005 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5006 | CXXFLAGS="-g" | |
81ecdfbb RW |
5007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5008 | /* end confdefs.h. */ | |
5009 | ||
5010 | int | |
5011 | main () | |
5012 | { | |
d7040cdb | 5013 | |
81ecdfbb RW |
5014 | ; |
5015 | return 0; | |
5016 | } | |
5017 | _ACEOF | |
b879806f AM |
5018 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5019 | ac_cv_prog_cxx_g=yes | |
81ecdfbb RW |
5020 | fi |
5021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5022 | fi | |
5023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 5024 | fi |
81ecdfbb | 5025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b879806f | 5026 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
ce2cded5 | 5027 | fi |
b879806f AM |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
5029 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5030 | if test "$ac_test_CXXFLAGS" = set; then | |
5031 | CXXFLAGS=$ac_save_CXXFLAGS | |
5032 | elif test $ac_cv_prog_cxx_g = yes; then | |
5033 | if test "$GXX" = yes; then | |
5034 | CXXFLAGS="-g -O2" | |
ce2cded5 | 5035 | else |
b879806f | 5036 | CXXFLAGS="-g" |
ce2cded5 | 5037 | fi |
d7040cdb | 5038 | else |
b879806f AM |
5039 | if test "$GXX" = yes; then |
5040 | CXXFLAGS="-O2" | |
ce2cded5 | 5041 | else |
b879806f | 5042 | CXXFLAGS= |
ce2cded5 | 5043 | fi |
d7040cdb | 5044 | fi |
b879806f AM |
5045 | ac_ext=c |
5046 | ac_cpp='$CPP $CPPFLAGS' | |
5047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5050 | ||
5051 | depcc="$CXX" am_compiler_list= | |
5052 | ||
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5054 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5055 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
81ecdfbb | 5056 | $as_echo_n "(cached) " >&6 |
d7040cdb | 5057 | else |
b879806f AM |
5058 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5059 | # We make a subdir and do the tests there. Otherwise we can end up | |
5060 | # making bogus files that we don't know about and never remove. For | |
5061 | # instance it was reported that on HP-UX the gcc test will end up | |
5062 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5063 | # in D'. | |
5064 | mkdir conftest.dir | |
5065 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5066 | # using a relative directory. | |
5067 | cp "$am_depcomp" conftest.dir | |
5068 | cd conftest.dir | |
5069 | # We will build objects and dependencies in a subdirectory because | |
5070 | # it helps to detect inapplicable dependency modes. For instance | |
5071 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5072 | # side effect of compilation, but ICC will put the dependencies in | |
5073 | # the current directory while Tru64 will put them in the object | |
5074 | # directory. | |
5075 | mkdir sub | |
d7040cdb | 5076 | |
b879806f AM |
5077 | am_cv_CXX_dependencies_compiler_type=none |
5078 | if test "$am_compiler_list" = ""; then | |
5079 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5080 | fi | |
5081 | am__universal=false | |
5082 | case " $depcc " in #( | |
5083 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5084 | esac | |
d7040cdb | 5085 | |
b879806f AM |
5086 | for depmode in $am_compiler_list; do |
5087 | # Setup a source with many dependencies, because some compilers | |
5088 | # like to wrap large dependency lists on column 80 (with \), and | |
5089 | # we should not choose a depcomp mode which is confused by this. | |
5090 | # | |
5091 | # We need to recreate these files for each test, as the compiler may | |
5092 | # overwrite some of them when testing with obscure command lines. | |
5093 | # This happens at least with the AIX C compiler. | |
5094 | : > sub/conftest.c | |
5095 | for i in 1 2 3 4 5 6; do | |
5096 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5097 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5098 | # Solaris 8's {/usr,}/bin/sh. | |
5099 | touch sub/conftst$i.h | |
5100 | done | |
5101 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
81ecdfbb | 5102 | |
b879806f AM |
5103 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5104 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5105 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5106 | # versions had trouble with output in subdirs | |
5107 | am__obj=sub/conftest.${OBJEXT-o} | |
5108 | am__minus_obj="-o $am__obj" | |
5109 | case $depmode in | |
5110 | gcc) | |
5111 | # This depmode causes a compiler race in universal mode. | |
5112 | test "$am__universal" = false || continue | |
5113 | ;; | |
5114 | nosideeffect) | |
5115 | # after this tag, mechanisms are not by side-effect, so they'll | |
5116 | # only be used when explicitly requested | |
5117 | if test "x$enable_dependency_tracking" = xyes; then | |
5118 | continue | |
5119 | else | |
5120 | break | |
5121 | fi | |
5122 | ;; | |
5123 | msvisualcpp | msvcmsys) | |
5124 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5125 | # not run yet. These depmodes are late enough in the game, and | |
5126 | # so weak that their functioning should not be impacted. | |
5127 | am__obj=conftest.${OBJEXT-o} | |
5128 | am__minus_obj= | |
5129 | ;; | |
5130 | none) break ;; | |
5131 | esac | |
5132 | if depmode=$depmode \ | |
5133 | source=sub/conftest.c object=$am__obj \ | |
5134 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5135 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5136 | >/dev/null 2>conftest.err && | |
5137 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5138 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5139 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5140 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5141 | # icc doesn't choke on unknown options, it will just issue warnings | |
5142 | # or remarks (even with -Werror). So we grep stderr for any message | |
5143 | # that says an option was ignored or not supported. | |
5144 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5145 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5146 | # The diagnosis changed in icc 8.0: | |
5147 | # icc: Command line remark: option '-MP' not supported | |
5148 | if (grep 'ignoring option' conftest.err || | |
5149 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5150 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5151 | break | |
5152 | fi | |
5153 | fi | |
5154 | done | |
5155 | ||
5156 | cd .. | |
5157 | rm -rf conftest.dir | |
5158 | else | |
5159 | am_cv_CXX_dependencies_compiler_type=none | |
ce2cded5 | 5160 | fi |
d7040cdb | 5161 | |
ce2cded5 | 5162 | fi |
b879806f AM |
5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5164 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5165 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
d7040cdb | 5166 | |
b879806f AM |
5167 | if |
5168 | test "x$enable_dependency_tracking" != xno \ | |
5169 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5170 | am__fastdepCXX_TRUE= | |
5171 | am__fastdepCXX_FALSE='#' | |
5172 | else | |
5173 | am__fastdepCXX_TRUE='#' | |
5174 | am__fastdepCXX_FALSE= | |
ce2cded5 | 5175 | fi |
d7040cdb | 5176 | |
b879806f | 5177 | |
68880f31 CLT |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5179 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5180 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5181 | $as_echo_n "(cached) " >&6 | |
5182 | else | |
5183 | if test -z "$GREP"; then | |
5184 | ac_path_GREP_found=false | |
5185 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5187 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5188 | do | |
5189 | IFS=$as_save_IFS | |
5190 | test -z "$as_dir" && as_dir=. | |
5191 | for ac_prog in grep ggrep; do | |
5192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5193 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5194 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5195 | # Check for GNU ac_path_GREP and select it if it is found. | |
5196 | # Check for GNU $ac_path_GREP | |
5197 | case `"$ac_path_GREP" --version 2>&1` in | |
5198 | *GNU*) | |
5199 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5200 | *) | |
5201 | ac_count=0 | |
5202 | $as_echo_n 0123456789 >"conftest.in" | |
5203 | while : | |
5204 | do | |
5205 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5206 | mv "conftest.tmp" "conftest.in" | |
5207 | cp "conftest.in" "conftest.nl" | |
5208 | $as_echo 'GREP' >> "conftest.nl" | |
5209 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5210 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5211 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5212 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5213 | # Best one so far, save it but keep looking for a better one | |
5214 | ac_cv_path_GREP="$ac_path_GREP" | |
5215 | ac_path_GREP_max=$ac_count | |
5216 | fi | |
5217 | # 10*(2^10) chars as input seems more than enough | |
5218 | test $ac_count -gt 10 && break | |
5219 | done | |
5220 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5221 | esac | |
5222 | ||
5223 | $ac_path_GREP_found && break 3 | |
5224 | done | |
5225 | done | |
5226 | done | |
5227 | IFS=$as_save_IFS | |
5228 | if test -z "$ac_cv_path_GREP"; then | |
5229 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5230 | fi | |
5231 | else | |
5232 | ac_cv_path_GREP=$GREP | |
5233 | fi | |
5234 | ||
5235 | fi | |
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5237 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5238 | GREP="$ac_cv_path_GREP" | |
5239 | ||
5240 | ||
ce2cded5 L |
5241 | ac_ext=c |
5242 | ac_cpp='$CPP $CPPFLAGS' | |
5243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b879806f AM |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5247 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5248 | # On Suns, sometimes $CPP names a directory. | |
5249 | if test -n "$CPP" && test -d "$CPP"; then | |
5250 | CPP= | |
7357c5b6 | 5251 | fi |
b879806f AM |
5252 | if test -z "$CPP"; then |
5253 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
3cb62297 L |
5254 | $as_echo_n "(cached) " >&6 |
5255 | else | |
b879806f AM |
5256 | # Double quotes because CPP needs to be expanded |
5257 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5258 | do | |
5259 | ac_preproc_ok=false | |
5260 | for ac_c_preproc_warn_flag in '' yes | |
3cb62297 | 5261 | do |
b879806f AM |
5262 | # Use a header file that comes with gcc, so configuring glibc |
5263 | # with a fresh cross-compiler works. | |
5264 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5265 | # <limits.h> exists even on freestanding compilers. | |
5266 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5267 | # not just through cpp. "Syntax error" is here to catch this case. | |
5268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5269 | /* end confdefs.h. */ | |
5270 | #ifdef __STDC__ | |
5271 | # include <limits.h> | |
5272 | #else | |
5273 | # include <assert.h> | |
5274 | #endif | |
5275 | Syntax error | |
5276 | _ACEOF | |
5277 | if ac_fn_c_try_cpp "$LINENO"; then : | |
252b5132 | 5278 | |
3cb62297 | 5279 | else |
b879806f AM |
5280 | # Broken: fails on valid input. |
5281 | continue | |
7357c5b6 | 5282 | fi |
b879806f | 5283 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5284 | |
b879806f AM |
5285 | # OK, works on sane cases. Now check whether nonexistent headers |
5286 | # can be detected and how. | |
5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5288 | /* end confdefs.h. */ | |
5289 | #include <ac_nonexistent.h> | |
5290 | _ACEOF | |
5291 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5292 | # Broken: success on invalid input. | |
5293 | continue | |
5294 | else | |
5295 | # Passes both tests. | |
5296 | ac_preproc_ok=: | |
5297 | break | |
5298 | fi | |
5299 | rm -f conftest.err conftest.$ac_ext | |
42ecbf5e | 5300 | |
3cb62297 | 5301 | done |
b879806f AM |
5302 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5303 | rm -f conftest.err conftest.$ac_ext | |
5304 | if $ac_preproc_ok; then : | |
5305 | break | |
7357c5b6 | 5306 | fi |
ac48eca1 | 5307 | |
b879806f AM |
5308 | done |
5309 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 5310 | |
b879806f AM |
5311 | fi |
5312 | CPP=$ac_cv_prog_CPP | |
7357c5b6 | 5313 | else |
b879806f AM |
5314 | ac_cv_prog_CPP=$CPP |
5315 | fi | |
5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5317 | $as_echo "$CPP" >&6; } | |
5318 | ac_preproc_ok=false | |
5319 | for ac_c_preproc_warn_flag in '' yes | |
5320 | do | |
5321 | # Use a header file that comes with gcc, so configuring glibc | |
5322 | # with a fresh cross-compiler works. | |
5323 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5324 | # <limits.h> exists even on freestanding compilers. | |
5325 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5326 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 5328 | /* end confdefs.h. */ |
b879806f AM |
5329 | #ifdef __STDC__ |
5330 | # include <limits.h> | |
5331 | #else | |
5332 | # include <assert.h> | |
3cb62297 | 5333 | #endif |
b879806f | 5334 | Syntax error |
7357c5b6 | 5335 | _ACEOF |
b879806f AM |
5336 | if ac_fn_c_try_cpp "$LINENO"; then : |
5337 | ||
81ecdfbb | 5338 | else |
b879806f AM |
5339 | # Broken: fails on valid input. |
5340 | continue | |
7357c5b6 | 5341 | fi |
b879806f | 5342 | rm -f conftest.err conftest.$ac_ext |
81ecdfbb | 5343 | |
b879806f AM |
5344 | # OK, works on sane cases. Now check whether nonexistent headers |
5345 | # can be detected and how. | |
5346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5347 | /* end confdefs.h. */ | |
5348 | #include <ac_nonexistent.h> | |
5349 | _ACEOF | |
5350 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5351 | # Broken: success on invalid input. | |
5352 | continue | |
3cb62297 | 5353 | else |
b879806f AM |
5354 | # Passes both tests. |
5355 | ac_preproc_ok=: | |
5356 | break | |
7357c5b6 | 5357 | fi |
b879806f | 5358 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5359 | |
b879806f AM |
5360 | done |
5361 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5362 | rm -f conftest.err conftest.$ac_ext | |
5363 | if $ac_preproc_ok; then : | |
252b5132 | 5364 | |
3cb62297 | 5365 | else |
b879806f AM |
5366 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5367 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5368 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5369 | See \`config.log' for more details." "$LINENO" 5; } | |
5370 | fi | |
42ecbf5e | 5371 | |
b879806f AM |
5372 | ac_ext=c |
5373 | ac_cpp='$CPP $CPPFLAGS' | |
5374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e DJ |
5377 | |
5378 | ||
b879806f AM |
5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5380 | $as_echo_n "checking for egrep... " >&6; } | |
5381 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5382 | $as_echo_n "(cached) " >&6 | |
5383 | else | |
5384 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5385 | then ac_cv_path_EGREP="$GREP -E" | |
5386 | else | |
5387 | if test -z "$EGREP"; then | |
5388 | ac_path_EGREP_found=false | |
5389 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5391 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5392 | do | |
5393 | IFS=$as_save_IFS | |
5394 | test -z "$as_dir" && as_dir=. | |
5395 | for ac_prog in egrep; do | |
5396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5397 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5398 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5399 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5400 | # Check for GNU $ac_path_EGREP | |
5401 | case `"$ac_path_EGREP" --version 2>&1` in | |
5402 | *GNU*) | |
5403 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5404 | *) | |
5405 | ac_count=0 | |
5406 | $as_echo_n 0123456789 >"conftest.in" | |
5407 | while : | |
5408 | do | |
5409 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5410 | mv "conftest.tmp" "conftest.in" | |
5411 | cp "conftest.in" "conftest.nl" | |
5412 | $as_echo 'EGREP' >> "conftest.nl" | |
5413 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5414 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5415 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5416 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5417 | # Best one so far, save it but keep looking for a better one | |
5418 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5419 | ac_path_EGREP_max=$ac_count | |
5420 | fi | |
5421 | # 10*(2^10) chars as input seems more than enough | |
5422 | test $ac_count -gt 10 && break | |
5423 | done | |
5424 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5425 | esac | |
5426 | ||
5427 | $ac_path_EGREP_found && break 3 | |
5428 | done | |
5429 | done | |
5430 | done | |
5431 | IFS=$as_save_IFS | |
5432 | if test -z "$ac_cv_path_EGREP"; then | |
5433 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5434 | fi | |
5435 | else | |
5436 | ac_cv_path_EGREP=$EGREP | |
5437 | fi | |
5438 | ||
5439 | fi | |
5440 | fi | |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5442 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5443 | EGREP="$ac_cv_path_EGREP" | |
5444 | ||
5445 | ||
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5447 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5448 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5449 | $as_echo_n "(cached) " >&6 | |
5450 | else | |
5451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3cb62297 | 5452 | /* end confdefs.h. */ |
b879806f AM |
5453 | #include <stdlib.h> |
5454 | #include <stdarg.h> | |
5455 | #include <string.h> | |
5456 | #include <float.h> | |
42ecbf5e | 5457 | |
3cb62297 L |
5458 | int |
5459 | main () | |
5460 | { | |
42ecbf5e | 5461 | |
3cb62297 L |
5462 | ; |
5463 | return 0; | |
5464 | } | |
5465 | _ACEOF | |
b879806f AM |
5466 | if ac_fn_c_try_compile "$LINENO"; then : |
5467 | ac_cv_header_stdc=yes | |
5468 | else | |
5469 | ac_cv_header_stdc=no | |
3cb62297 L |
5470 | fi |
5471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b879806f AM |
5472 | |
5473 | if test $ac_cv_header_stdc = yes; then | |
5474 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5476 | /* end confdefs.h. */ | |
5477 | #include <string.h> | |
5478 | ||
5479 | _ACEOF | |
5480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5481 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5482 | ||
5483 | else | |
5484 | ac_cv_header_stdc=no | |
3cb62297 | 5485 | fi |
b879806f AM |
5486 | rm -f conftest* |
5487 | ||
3cb62297 | 5488 | fi |
b879806f AM |
5489 | |
5490 | if test $ac_cv_header_stdc = yes; then | |
5491 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5493 | /* end confdefs.h. */ | |
5494 | #include <stdlib.h> | |
5495 | ||
5496 | _ACEOF | |
5497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5498 | $EGREP "free" >/dev/null 2>&1; then : | |
5499 | ||
ce2cded5 | 5500 | else |
b879806f | 5501 | ac_cv_header_stdc=no |
ce2cded5 | 5502 | fi |
b879806f | 5503 | rm -f conftest* |
42ecbf5e | 5504 | |
b879806f | 5505 | fi |
e5a52504 | 5506 | |
b879806f AM |
5507 | if test $ac_cv_header_stdc = yes; then |
5508 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5509 | if test "$cross_compiling" = yes; then : | |
5510 | : | |
3cb62297 | 5511 | else |
b879806f AM |
5512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5513 | /* end confdefs.h. */ | |
5514 | #include <ctype.h> | |
5515 | #include <stdlib.h> | |
5516 | #if ((' ' & 0x0FF) == 0x020) | |
5517 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5518 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5519 | #else | |
5520 | # define ISLOWER(c) \ | |
5521 | (('a' <= (c) && (c) <= 'i') \ | |
5522 | || ('j' <= (c) && (c) <= 'r') \ | |
5523 | || ('s' <= (c) && (c) <= 'z')) | |
5524 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5525 | #endif | |
3cb62297 L |
5526 | |
5527 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5528 | int | |
5529 | main () | |
5530 | { | |
5531 | int i; | |
5532 | for (i = 0; i < 256; i++) | |
5533 | if (XOR (islower (i), ISLOWER (i)) | |
5534 | || toupper (i) != TOUPPER (i)) | |
5535 | return 2; | |
5536 | return 0; | |
5537 | } | |
5538 | _ACEOF | |
5539 | if ac_fn_c_try_run "$LINENO"; then : | |
5540 | ||
5541 | else | |
5542 | ac_cv_header_stdc=no | |
5543 | fi | |
5544 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5545 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5546 | fi | |
5547 | ||
5548 | fi | |
5549 | fi | |
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5551 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5552 | if test $ac_cv_header_stdc = yes; then | |
5553 | ||
5554 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5555 | ||
5556 | fi | |
5557 | ||
5558 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5559 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5560 | inttypes.h stdint.h unistd.h | |
5561 | do : | |
5562 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5563 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5564 | " | |
5565 | eval as_val=\$$as_ac_Header | |
5566 | if test "x$as_val" = x""yes; then : | |
5567 | cat >>confdefs.h <<_ACEOF | |
5568 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5569 | _ACEOF | |
5570 | ||
5571 | fi | |
5572 | ||
5573 | done | |
5574 | ||
5575 | ||
5576 | ||
5577 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
5578 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
5579 | MINIX=yes | |
5580 | else | |
5581 | MINIX= | |
5582 | fi | |
5583 | ||
5584 | ||
5585 | if test "$MINIX" = yes; then | |
5586 | ||
5587 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5588 | ||
5589 | ||
5590 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5591 | ||
5592 | ||
5593 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5594 | ||
5595 | fi | |
5596 | ||
5597 | ||
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5599 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5600 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5601 | $as_echo_n "(cached) " >&6 | |
5602 | else | |
5603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5604 | /* end confdefs.h. */ | |
5605 | ||
5606 | # define __EXTENSIONS__ 1 | |
5607 | $ac_includes_default | |
5608 | int | |
5609 | main () | |
5610 | { | |
5611 | ||
5612 | ; | |
5613 | return 0; | |
5614 | } | |
5615 | _ACEOF | |
5616 | if ac_fn_c_try_compile "$LINENO"; then : | |
5617 | ac_cv_safe_to_define___extensions__=yes | |
5618 | else | |
5619 | ac_cv_safe_to_define___extensions__=no | |
5620 | fi | |
5621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5622 | fi | |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5624 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5625 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5626 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5627 | ||
5628 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5629 | ||
5630 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5631 | ||
5632 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5633 | ||
5634 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5635 | ||
5636 | ||
5637 | ||
5638 | ||
5639 | ||
3cb62297 | 5640 | |
b879806f AM |
5641 | case `pwd` in |
5642 | *\ * | *\ *) | |
5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5644 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5645 | esac | |
3cb62297 L |
5646 | |
5647 | ||
da2f07f1 | 5648 | |
b879806f AM |
5649 | macro_version='2.2.7a' |
5650 | macro_revision='1.3134' | |
d7040cdb | 5651 | |
d7040cdb SE |
5652 | |
5653 | ||
d7040cdb | 5654 | |
d7040cdb | 5655 | |
42ecbf5e | 5656 | |
d7040cdb | 5657 | |
252b5132 | 5658 | |
252b5132 | 5659 | |
252b5132 | 5660 | |
252b5132 RH |
5661 | |
5662 | ||
ce2cded5 | 5663 | |
b214d478 | 5664 | ltmain="$ac_aux_dir/ltmain.sh" |
ce2cded5 | 5665 | |
3725885a RW |
5666 | # Backslashify metacharacters that are still active within |
5667 | # double-quoted strings. | |
5668 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5669 | ||
5670 | # Same as above, but do not quote variable references. | |
5671 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5672 | ||
5673 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5674 | # double_quote_subst'ed string. | |
5675 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5676 | ||
5677 | # Sed substitution to delay expansion of an escaped single quote. | |
5678 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5679 | ||
5680 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5681 | no_glob_subst='s/\*/\\\*/g' | |
5682 | ||
5683 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5684 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5685 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5686 | ||
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5688 | $as_echo_n "checking how to print strings... " >&6; } | |
5689 | # Test print first, because it will be a builtin if present. | |
5690 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5691 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5692 | ECHO='print -r --' | |
5693 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5694 | ECHO='printf %s\n' | |
5695 | else | |
5696 | # Use this function as a fallback that always works. | |
5697 | func_fallback_echo () | |
5698 | { | |
5699 | eval 'cat <<_LTECHO_EOF | |
5700 | $1 | |
5701 | _LTECHO_EOF' | |
5702 | } | |
5703 | ECHO='func_fallback_echo' | |
5704 | fi | |
5705 | ||
5706 | # func_echo_all arg... | |
5707 | # Invoke $ECHO with all args, space-separated. | |
5708 | func_echo_all () | |
5709 | { | |
5710 | $ECHO "" | |
5711 | } | |
5712 | ||
5713 | case "$ECHO" in | |
5714 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5715 | $as_echo "printf" >&6; } ;; | |
5716 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5717 | $as_echo "print -r" >&6; } ;; | |
5718 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5719 | $as_echo "cat" >&6; } ;; | |
5720 | esac | |
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | ||
5729 | ||
5730 | ||
5731 | ||
5732 | ||
5733 | ||
5734 | ||
81ecdfbb RW |
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5736 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5737 | if test "${ac_cv_path_SED+set}" = set; then : | |
5738 | $as_echo_n "(cached) " >&6 | |
5739 | else | |
5740 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5741 | for ac_i in 1 2 3 4 5 6 7; do | |
5742 | ac_script="$ac_script$as_nl$ac_script" | |
5743 | done | |
5744 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5745 | { ac_script=; unset ac_script;} | |
5746 | if test -z "$SED"; then | |
5747 | ac_path_SED_found=false | |
5748 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5750 | for as_dir in $PATH |
5751 | do | |
5752 | IFS=$as_save_IFS | |
5753 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5754 | for ac_prog in sed gsed; do |
7357c5b6 | 5755 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5756 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5757 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5758 | # Check for GNU ac_path_SED and select it if it is found. | |
5759 | # Check for GNU $ac_path_SED | |
5760 | case `"$ac_path_SED" --version 2>&1` in | |
5761 | *GNU*) | |
5762 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5763 | *) | |
5764 | ac_count=0 | |
5765 | $as_echo_n 0123456789 >"conftest.in" | |
5766 | while : | |
5767 | do | |
5768 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5769 | mv "conftest.tmp" "conftest.in" | |
5770 | cp "conftest.in" "conftest.nl" | |
5771 | $as_echo '' >> "conftest.nl" | |
5772 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5773 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5774 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5775 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5776 | # Best one so far, save it but keep looking for a better one | |
5777 | ac_cv_path_SED="$ac_path_SED" | |
5778 | ac_path_SED_max=$ac_count | |
5779 | fi | |
5780 | # 10*(2^10) chars as input seems more than enough | |
5781 | test $ac_count -gt 10 && break | |
5782 | done | |
5783 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5784 | esac | |
5785 | ||
5786 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5787 | done |
5788 | done | |
81ecdfbb | 5789 | done |
7357c5b6 | 5790 | IFS=$as_save_IFS |
81ecdfbb RW |
5791 | if test -z "$ac_cv_path_SED"; then |
5792 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
ce2cded5 | 5793 | fi |
81ecdfbb RW |
5794 | else |
5795 | ac_cv_path_SED=$SED | |
7357c5b6 | 5796 | fi |
20e95c23 | 5797 | |
81ecdfbb RW |
5798 | fi |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5800 | $as_echo "$ac_cv_path_SED" >&6; } | |
5801 | SED="$ac_cv_path_SED" | |
5802 | rm -f conftest.sed | |
20e95c23 | 5803 | |
7357c5b6 AM |
5804 | test -z "$SED" && SED=sed |
5805 | Xsed="$SED -e 1s/^X//" | |
20e95c23 DJ |
5806 | |
5807 | ||
5808 | ||
5809 | ||
5810 | ||
5811 | ||
20e95c23 | 5812 | |
20e95c23 | 5813 | |
d7040cdb | 5814 | |
d7040cdb | 5815 | |
7357c5b6 | 5816 | |
81ecdfbb RW |
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5818 | $as_echo_n "checking for fgrep... " >&6; } | |
5819 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5820 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5821 | else |
81ecdfbb RW |
5822 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5823 | then ac_cv_path_FGREP="$GREP -F" | |
5824 | else | |
5825 | if test -z "$FGREP"; then | |
5826 | ac_path_FGREP_found=false | |
5827 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5829 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5830 | do | |
5831 | IFS=$as_save_IFS | |
5832 | test -z "$as_dir" && as_dir=. | |
5833 | for ac_prog in fgrep; do | |
5834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5835 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5836 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5837 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5838 | # Check for GNU $ac_path_FGREP | |
5839 | case `"$ac_path_FGREP" --version 2>&1` in | |
5840 | *GNU*) | |
5841 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5842 | *) | |
5843 | ac_count=0 | |
5844 | $as_echo_n 0123456789 >"conftest.in" | |
5845 | while : | |
5846 | do | |
5847 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5848 | mv "conftest.tmp" "conftest.in" | |
5849 | cp "conftest.in" "conftest.nl" | |
5850 | $as_echo 'FGREP' >> "conftest.nl" | |
5851 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5852 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5853 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5854 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5855 | # Best one so far, save it but keep looking for a better one | |
5856 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5857 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5858 | fi |
81ecdfbb RW |
5859 | # 10*(2^10) chars as input seems more than enough |
5860 | test $ac_count -gt 10 && break | |
5861 | done | |
5862 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5863 | esac | |
5864 | ||
5865 | $ac_path_FGREP_found && break 3 | |
5866 | done | |
5867 | done | |
5868 | done | |
5869 | IFS=$as_save_IFS | |
5870 | if test -z "$ac_cv_path_FGREP"; then | |
5871 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5872 | fi | |
5873 | else | |
5874 | ac_cv_path_FGREP=$FGREP | |
5875 | fi | |
5876 | ||
5877 | fi | |
20e95c23 | 5878 | fi |
81ecdfbb RW |
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5880 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5881 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5882 | |
5883 | ||
5884 | test -z "$GREP" && GREP=grep | |
5885 | ||
d7040cdb SE |
5886 | |
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
20e95c23 | 5897 | |
ce2cded5 | 5898 | |
d7040cdb | 5899 | |
7357c5b6 AM |
5900 | |
5901 | ||
5902 | ||
5903 | ||
81ecdfbb RW |
5904 | # Check whether --with-gnu-ld was given. |
5905 | if test "${with_gnu_ld+set}" = set; then : | |
5906 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5907 | else |
5908 | with_gnu_ld=no | |
81ecdfbb RW |
5909 | fi |
5910 | ||
7357c5b6 AM |
5911 | ac_prog=ld |
5912 | if test "$GCC" = yes; then | |
5913 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5915 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
5916 | case $host in |
5917 | *-*-mingw*) | |
5918 | # gcc leaves a trailing carriage return which upsets mingw | |
5919 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5920 | *) | |
5921 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5922 | esac | |
5923 | case $ac_prog in | |
5924 | # Accept absolute paths. | |
5925 | [\\/]* | ?:[\\/]*) | |
5926 | re_direlt='/[^/][^/]*/\.\./' | |
5927 | # Canonicalize the pathname of ld | |
5928 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5929 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5930 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5931 | done | |
5932 | test -z "$LD" && LD="$ac_prog" | |
5933 | ;; | |
5934 | "") | |
5935 | # If it fails, then pretend we aren't using GCC. | |
5936 | ac_prog=ld | |
5937 | ;; | |
5938 | *) | |
5939 | # If it is relative, then search for the first ld in PATH. | |
5940 | with_gnu_ld=unknown | |
5941 | ;; | |
5942 | esac | |
5943 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5945 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 5946 | else |
81ecdfbb RW |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5948 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5949 | fi |
81ecdfbb RW |
5950 | if test "${lt_cv_path_LD+set}" = set; then : |
5951 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5952 | else |
7357c5b6 AM |
5953 | if test -z "$LD"; then |
5954 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5955 | for ac_dir in $PATH; do | |
5956 | IFS="$lt_save_ifs" | |
5957 | test -z "$ac_dir" && ac_dir=. | |
5958 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5959 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5960 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5961 | # but apparently some variants of GNU ld only accept -v. | |
5962 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5963 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5964 | *GNU* | *'with BFD'*) | |
5965 | test "$with_gnu_ld" != no && break | |
5966 | ;; | |
5967 | *) | |
5968 | test "$with_gnu_ld" != yes && break | |
5969 | ;; | |
5970 | esac | |
5971 | fi | |
5972 | done | |
5973 | IFS="$lt_save_ifs" | |
ce2cded5 | 5974 | else |
7357c5b6 | 5975 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ce2cded5 L |
5976 | fi |
5977 | fi | |
7357c5b6 AM |
5978 | |
5979 | LD="$lt_cv_path_LD" | |
5980 | if test -n "$LD"; then | |
81ecdfbb RW |
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5982 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5983 | else |
81ecdfbb RW |
5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5985 | $as_echo "no" >&6; } | |
ce2cded5 | 5986 | fi |
81ecdfbb RW |
5987 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5989 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5990 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5991 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5992 | else |
7357c5b6 AM |
5993 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5994 | case `$LD -v 2>&1 </dev/null` in | |
5995 | *GNU* | *'with BFD'*) | |
5996 | lt_cv_prog_gnu_ld=yes | |
5997 | ;; | |
5998 | *) | |
5999 | lt_cv_prog_gnu_ld=no | |
6000 | ;; | |
6001 | esac | |
ce2cded5 | 6002 | fi |
81ecdfbb RW |
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
6004 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 6005 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
6006 | |
6007 | ||
6008 | ||
6009 | ||
6010 | ||
6011 | ||
6012 | ||
6013 | ||
6014 | ||
81ecdfbb RW |
6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6016 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6017 | if test "${lt_cv_path_NM+set}" = set; then : | |
6018 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6019 | else |
7357c5b6 AM |
6020 | if test -n "$NM"; then |
6021 | # Let the user override the test. | |
6022 | lt_cv_path_NM="$NM" | |
ce2cded5 | 6023 | else |
7357c5b6 AM |
6024 | lt_nm_to_check="${ac_tool_prefix}nm" |
6025 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6026 | lt_nm_to_check="$lt_nm_to_check nm" | |
20e95c23 | 6027 | fi |
7357c5b6 AM |
6028 | for lt_tmp_nm in $lt_nm_to_check; do |
6029 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6030 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6031 | IFS="$lt_save_ifs" | |
6032 | test -z "$ac_dir" && ac_dir=. | |
6033 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6034 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6035 | # Check to see if the nm accepts a BSD-compat flag. | |
6036 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6037 | # nm: unknown option "B" ignored | |
6038 | # Tru64's nm complains that /dev/null is an invalid object file | |
6039 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6040 | */dev/null* | *'Invalid file or object type'*) | |
6041 | lt_cv_path_NM="$tmp_nm -B" | |
6042 | break | |
6043 | ;; | |
6044 | *) | |
6045 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6046 | */dev/null*) | |
6047 | lt_cv_path_NM="$tmp_nm -p" | |
6048 | break | |
6049 | ;; | |
6050 | *) | |
6051 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6052 | continue # so that we can try to find one that supports BSD flags | |
6053 | ;; | |
6054 | esac | |
6055 | ;; | |
6056 | esac | |
6057 | fi | |
6058 | done | |
6059 | IFS="$lt_save_ifs" | |
6060 | done | |
6061 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
6062 | fi |
6063 | fi | |
81ecdfbb RW |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
6065 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
6066 | if test "$lt_cv_path_NM" != "no"; then |
6067 | NM="$lt_cv_path_NM" | |
ce2cded5 | 6068 | else |
7357c5b6 | 6069 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
6070 | if test -n "$DUMPBIN"; then : |
6071 | # Let the user override the test. | |
6072 | else | |
6073 | if test -n "$ac_tool_prefix"; then | |
6074 | for ac_prog in dumpbin "link -dump" | |
7357c5b6 AM |
6075 | do |
6076 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6077 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6079 | $as_echo_n "checking for $ac_word... " >&6; } | |
6080 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
6081 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6082 | else |
7357c5b6 AM |
6083 | if test -n "$DUMPBIN"; then |
6084 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6085 | else |
6086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6087 | for as_dir in $PATH | |
6088 | do | |
6089 | IFS=$as_save_IFS | |
6090 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6091 | for ac_exec_ext in '' $ac_executable_extensions; do |
6092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6093 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 6094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6095 | break 2 |
6096 | fi | |
6097 | done | |
81ecdfbb RW |
6098 | done |
6099 | IFS=$as_save_IFS | |
d7040cdb | 6100 | |
20e95c23 | 6101 | fi |
ce2cded5 | 6102 | fi |
7357c5b6 AM |
6103 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6104 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6106 | $as_echo "$DUMPBIN" >&6; } | |
42ecbf5e | 6107 | else |
81ecdfbb RW |
6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6109 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6110 | fi |
6111 | ||
81ecdfbb | 6112 | |
7357c5b6 AM |
6113 | test -n "$DUMPBIN" && break |
6114 | done | |
ce2cded5 | 6115 | fi |
7357c5b6 AM |
6116 | if test -z "$DUMPBIN"; then |
6117 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 6118 | for ac_prog in dumpbin "link -dump" |
7357c5b6 AM |
6119 | do |
6120 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6121 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6123 | $as_echo_n "checking for $ac_word... " >&6; } | |
6124 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
6125 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 6126 | else |
7357c5b6 AM |
6127 | if test -n "$ac_ct_DUMPBIN"; then |
6128 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6129 | else |
6130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6131 | for as_dir in $PATH | |
6132 | do | |
6133 | IFS=$as_save_IFS | |
6134 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6135 | for ac_exec_ext in '' $ac_executable_extensions; do |
6136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6137 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 6138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6139 | break 2 |
6140 | fi | |
6141 | done | |
81ecdfbb RW |
6142 | done |
6143 | IFS=$as_save_IFS | |
d7040cdb | 6144 | |
ce2cded5 L |
6145 | fi |
6146 | fi | |
7357c5b6 AM |
6147 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6148 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6150 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 6151 | else |
81ecdfbb RW |
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6153 | $as_echo "no" >&6; } | |
ce2cded5 | 6154 | fi |
d7040cdb | 6155 | |
81ecdfbb | 6156 | |
7357c5b6 | 6157 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 6158 | done |
d7040cdb | 6159 | |
81ecdfbb RW |
6160 | if test "x$ac_ct_DUMPBIN" = x; then |
6161 | DUMPBIN=":" | |
6162 | else | |
6163 | case $cross_compiling:$ac_tool_warned in | |
6164 | yes:) | |
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6166 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6167 | ac_tool_warned=yes ;; | |
6168 | esac | |
6169 | DUMPBIN=$ac_ct_DUMPBIN | |
6170 | fi | |
ce2cded5 | 6171 | fi |
7357c5b6 | 6172 | |
3725885a RW |
6173 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6174 | *COFF*) | |
6175 | DUMPBIN="$DUMPBIN -symbols" | |
6176 | ;; | |
6177 | *) | |
6178 | DUMPBIN=: | |
6179 | ;; | |
6180 | esac | |
6181 | fi | |
7357c5b6 AM |
6182 | |
6183 | if test "$DUMPBIN" != ":"; then | |
6184 | NM="$DUMPBIN" | |
6185 | fi | |
ce2cded5 | 6186 | fi |
7357c5b6 AM |
6187 | test -z "$NM" && NM=nm |
6188 | ||
6189 | ||
6190 | ||
6191 | ||
6192 | ||
6193 | ||
81ecdfbb RW |
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6195 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6196 | if test "${lt_cv_nm_interface+set}" = set; then : | |
6197 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6198 | else |
7357c5b6 AM |
6199 | lt_cv_nm_interface="BSD nm" |
6200 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 6201 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7357c5b6 AM |
6202 | (eval "$ac_compile" 2>conftest.err) |
6203 | cat conftest.err >&5 | |
3725885a | 6204 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
6205 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6206 | cat conftest.err >&5 | |
3725885a | 6207 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7357c5b6 AM |
6208 | cat conftest.out >&5 |
6209 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6210 | lt_cv_nm_interface="MS dumpbin" | |
6211 | fi | |
6212 | rm -f conftest* | |
20e95c23 | 6213 | fi |
81ecdfbb RW |
6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6215 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 6216 | |
81ecdfbb RW |
6217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6218 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
6219 | LN_S=$as_ln_s |
6220 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6222 | $as_echo "yes" >&6; } | |
ce2cded5 | 6223 | else |
81ecdfbb RW |
6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6225 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 6226 | fi |
20e95c23 | 6227 | |
7357c5b6 | 6228 | # find the maximum length of command line arguments |
81ecdfbb RW |
6229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6230 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6231 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
6232 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6233 | else |
6234 | i=0 | |
6235 | teststring="ABCD" | |
20e95c23 | 6236 | |
7357c5b6 AM |
6237 | case $build_os in |
6238 | msdosdjgpp*) | |
6239 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6240 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6241 | # during glob expansion). Even if it were fixed, the result of this | |
6242 | # check would be larger than it should be. | |
6243 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6244 | ;; | |
20e95c23 | 6245 | |
7357c5b6 AM |
6246 | gnu*) |
6247 | # Under GNU Hurd, this test is not required because there is | |
6248 | # no limit to the length of command line arguments. | |
6249 | # Libtool will interpret -1 as no limit whatsoever | |
6250 | lt_cv_sys_max_cmd_len=-1; | |
6251 | ;; | |
20e95c23 | 6252 | |
b214d478 | 6253 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
6254 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6255 | # about 5 minutes as the teststring grows exponentially. | |
6256 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6257 | # you end up with a "frozen" computer, even though with patience | |
6258 | # the test eventually succeeds (with a max line length of 256k). | |
6259 | # Instead, let's just punt: use the minimum linelength reported by | |
6260 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6261 | lt_cv_sys_max_cmd_len=8192; | |
6262 | ;; | |
20e95c23 | 6263 | |
3725885a RW |
6264 | mint*) |
6265 | # On MiNT this can take a long time and run out of memory. | |
6266 | lt_cv_sys_max_cmd_len=8192; | |
6267 | ;; | |
6268 | ||
7357c5b6 AM |
6269 | amigaos*) |
6270 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6271 | # So we just punt and use a minimum line length of 8192. | |
6272 | lt_cv_sys_max_cmd_len=8192; | |
6273 | ;; | |
20e95c23 | 6274 | |
7357c5b6 AM |
6275 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6276 | # This has been around since 386BSD, at least. Likely further. | |
6277 | if test -x /sbin/sysctl; then | |
6278 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6279 | elif test -x /usr/sbin/sysctl; then | |
6280 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6281 | else | |
6282 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6283 | fi | |
6284 | # And add a safety zone | |
6285 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6286 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6287 | ;; | |
d7040cdb | 6288 | |
7357c5b6 AM |
6289 | interix*) |
6290 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6291 | lt_cv_sys_max_cmd_len=196608 | |
6292 | ;; | |
d7040cdb | 6293 | |
7357c5b6 AM |
6294 | osf*) |
6295 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6296 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6297 | # nice to cause kernel panics so lets avoid the loop below. | |
6298 | # First set a reasonable default. | |
6299 | lt_cv_sys_max_cmd_len=16384 | |
6300 | # | |
6301 | if test -x /sbin/sysconfig; then | |
6302 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6303 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6304 | esac | |
6305 | fi | |
6306 | ;; | |
6307 | sco3.2v5*) | |
6308 | lt_cv_sys_max_cmd_len=102400 | |
6309 | ;; | |
6310 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6311 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6312 | if test -n "$kargmax"; then | |
6313 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6314 | else | |
6315 | lt_cv_sys_max_cmd_len=32768 | |
6316 | fi | |
ce2cded5 L |
6317 | ;; |
6318 | *) | |
b214d478 SE |
6319 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6320 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
6321 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6322 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6323 | else | |
6324 | # Make teststring a little bigger before we do anything with it. | |
6325 | # a 1K string should be a reasonable start. | |
6326 | for i in 1 2 3 4 5 6 7 8 ; do | |
6327 | teststring=$teststring$teststring | |
6328 | done | |
6329 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6330 | # If test is not a shell built-in, we'll probably end up computing a | |
6331 | # maximum length that is only half of the actual maximum length, but | |
6332 | # we can't tell. | |
3725885a RW |
6333 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
6334 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
7357c5b6 AM |
6335 | test $i != 17 # 1/2 MB should be enough |
6336 | do | |
6337 | i=`expr $i + 1` | |
6338 | teststring=$teststring$teststring | |
6339 | done | |
6340 | # Only check the string length outside the loop. | |
6341 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6342 | teststring= | |
6343 | # Add a significant safety factor because C++ compilers can tack on | |
6344 | # massive amounts of additional arguments before passing them to the | |
6345 | # linker. It appears as though 1/2 is a usable value. | |
6346 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6347 | fi | |
ce2cded5 L |
6348 | ;; |
6349 | esac | |
d7040cdb | 6350 | |
7357c5b6 | 6351 | fi |
d7040cdb | 6352 | |
7357c5b6 | 6353 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6355 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 6356 | else |
81ecdfbb RW |
6357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6358 | $as_echo "none" >&6; } | |
7357c5b6 AM |
6359 | fi |
6360 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
6361 | |
6362 | ||
6363 | ||
6364 | ||
6365 | ||
d7040cdb | 6366 | |
7357c5b6 AM |
6367 | : ${CP="cp -f"} |
6368 | : ${MV="mv -f"} | |
6369 | : ${RM="rm -f"} | |
d7040cdb | 6370 | |
81ecdfbb RW |
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6372 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
6373 | # Try some XSI features |
6374 | xsi_shell=no | |
6375 | ( _lt_dummy="a/b/c" | |
6376 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
6377 | = c,a/b,, \ |
6378 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6379 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 6380 | && xsi_shell=yes |
81ecdfbb RW |
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6382 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb | 6383 | |
d7040cdb | 6384 | |
81ecdfbb RW |
6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6386 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
6387 | lt_shell_append=no |
6388 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6389 | >/dev/null 2>&1 \ | |
6390 | && lt_shell_append=yes | |
81ecdfbb RW |
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6392 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
6393 | |
6394 | ||
7357c5b6 AM |
6395 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6396 | lt_unset=unset | |
6397 | else | |
6398 | lt_unset=false | |
6399 | fi | |
d7040cdb | 6400 | |
d7040cdb | 6401 | |
d7040cdb | 6402 | |
d7040cdb | 6403 | |
d7040cdb | 6404 | |
7357c5b6 AM |
6405 | # test EBCDIC or ASCII |
6406 | case `echo X|tr X '\101'` in | |
6407 | A) # ASCII based system | |
6408 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6409 | lt_SP2NL='tr \040 \012' | |
6410 | lt_NL2SP='tr \015\012 \040\040' | |
6411 | ;; | |
6412 | *) # EBCDIC based system | |
6413 | lt_SP2NL='tr \100 \n' | |
6414 | lt_NL2SP='tr \r\n \100\100' | |
6415 | ;; | |
6416 | esac | |
42ecbf5e | 6417 | |
d7040cdb SE |
6418 | |
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
d7040cdb | 6424 | |
d7040cdb | 6425 | |
81ecdfbb RW |
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6427 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6428 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
6429 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6430 | else |
6431 | lt_cv_ld_reload_flag='-r' | |
6432 | fi | |
81ecdfbb RW |
6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6434 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
6435 | reload_flag=$lt_cv_ld_reload_flag |
6436 | case $reload_flag in | |
6437 | "" | " "*) ;; | |
6438 | *) reload_flag=" $reload_flag" ;; | |
6439 | esac | |
6440 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6441 | case $host_os in | |
6442 | darwin*) | |
6443 | if test "$GCC" = yes; then | |
6444 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6445 | else | |
6446 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6447 | fi | |
6448 | ;; | |
6449 | esac | |
d7040cdb | 6450 | |
d7040cdb | 6451 | |
d7040cdb | 6452 | |
d7040cdb | 6453 | |
d7040cdb | 6454 | |
d7040cdb | 6455 | |
d7040cdb | 6456 | |
d7040cdb | 6457 | |
d7040cdb | 6458 | |
b214d478 SE |
6459 | if test -n "$ac_tool_prefix"; then |
6460 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6461 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
6462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6463 | $as_echo_n "checking for $ac_word... " >&6; } | |
6464 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
6465 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6466 | else |
6467 | if test -n "$OBJDUMP"; then | |
6468 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6469 | else | |
6470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6471 | for as_dir in $PATH | |
6472 | do | |
6473 | IFS=$as_save_IFS | |
6474 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6475 | for ac_exec_ext in '' $ac_executable_extensions; do |
6476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6477 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 6478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6479 | break 2 |
6480 | fi | |
6481 | done | |
81ecdfbb RW |
6482 | done |
6483 | IFS=$as_save_IFS | |
b214d478 SE |
6484 | |
6485 | fi | |
6486 | fi | |
6487 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6488 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6490 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 6491 | else |
81ecdfbb RW |
6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6493 | $as_echo "no" >&6; } | |
b214d478 SE |
6494 | fi |
6495 | ||
81ecdfbb | 6496 | |
b214d478 SE |
6497 | fi |
6498 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6499 | ac_ct_OBJDUMP=$OBJDUMP | |
6500 | # Extract the first word of "objdump", so it can be a program name with args. | |
6501 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6503 | $as_echo_n "checking for $ac_word... " >&6; } | |
6504 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6505 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6506 | else |
6507 | if test -n "$ac_ct_OBJDUMP"; then | |
6508 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6509 | else | |
6510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6511 | for as_dir in $PATH | |
6512 | do | |
6513 | IFS=$as_save_IFS | |
6514 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6515 | for ac_exec_ext in '' $ac_executable_extensions; do |
6516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6517 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 6518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6519 | break 2 |
6520 | fi | |
6521 | done | |
81ecdfbb RW |
6522 | done |
6523 | IFS=$as_save_IFS | |
b214d478 | 6524 | |
b214d478 SE |
6525 | fi |
6526 | fi | |
6527 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6528 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6530 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 6531 | else |
81ecdfbb RW |
6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6533 | $as_echo "no" >&6; } | |
b214d478 SE |
6534 | fi |
6535 | ||
81ecdfbb RW |
6536 | if test "x$ac_ct_OBJDUMP" = x; then |
6537 | OBJDUMP="false" | |
6538 | else | |
6539 | case $cross_compiling:$ac_tool_warned in | |
6540 | yes:) | |
6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6542 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6543 | ac_tool_warned=yes ;; | |
6544 | esac | |
6545 | OBJDUMP=$ac_ct_OBJDUMP | |
6546 | fi | |
b214d478 SE |
6547 | else |
6548 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6549 | fi | |
6550 | ||
6551 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
d7040cdb | 6560 | |
81ecdfbb RW |
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6562 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6563 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6564 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6565 | else |
7357c5b6 AM |
6566 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6567 | lt_cv_file_magic_test_file= | |
6568 | lt_cv_deplibs_check_method='unknown' | |
6569 | # Need to set the preceding variable on all platforms that support | |
6570 | # interlibrary dependencies. | |
6571 | # 'none' -- dependencies not supported. | |
6572 | # `unknown' -- same as none, but documents that we really don't know. | |
6573 | # 'pass_all' -- all dependencies passed with no checks. | |
6574 | # 'test_compile' -- check by making test program. | |
6575 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6576 | # which responds to the $file_magic_cmd with a given extended regex. | |
6577 | # If you have `file' or equivalent on your system and you're not sure | |
6578 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 6579 | |
ce2cded5 | 6580 | case $host_os in |
7357c5b6 AM |
6581 | aix[4-9]*) |
6582 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6583 | ;; |
7357c5b6 AM |
6584 | |
6585 | beos*) | |
6586 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6587 | ;; |
7357c5b6 AM |
6588 | |
6589 | bsdi[45]*) | |
6590 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6591 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6592 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 6593 | ;; |
7357c5b6 AM |
6594 | |
6595 | cygwin*) | |
6596 | # func_win32_libid is a shell function defined in ltmain.sh | |
6597 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6598 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 6599 | ;; |
7357c5b6 AM |
6600 | |
6601 | mingw* | pw32*) | |
6602 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6603 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6604 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
6605 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6606 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7357c5b6 AM |
6607 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6608 | lt_cv_file_magic_cmd='func_win32_libid' | |
6609 | else | |
6610 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6611 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6612 | fi | |
ce2cded5 | 6613 | ;; |
7357c5b6 | 6614 | |
3725885a | 6615 | cegcc*) |
b214d478 SE |
6616 | # use the weaker test based on 'objdump'. See mingw*. |
6617 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6618 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6619 | ;; | |
6620 | ||
7357c5b6 AM |
6621 | darwin* | rhapsody*) |
6622 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6623 | ;; |
7357c5b6 AM |
6624 | |
6625 | freebsd* | dragonfly*) | |
6626 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6627 | case $host_cpu in | |
6628 | i*86 ) | |
6629 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6630 | # Let's accept both of them until this is cleared up. | |
6631 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6632 | lt_cv_file_magic_cmd=/usr/bin/file | |
6633 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6634 | ;; | |
6635 | esac | |
6636 | else | |
6637 | lt_cv_deplibs_check_method=pass_all | |
6638 | fi | |
ce2cded5 | 6639 | ;; |
7357c5b6 AM |
6640 | |
6641 | gnu*) | |
6642 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6643 | ;; |
7357c5b6 | 6644 | |
3725885a RW |
6645 | haiku*) |
6646 | lt_cv_deplibs_check_method=pass_all | |
6647 | ;; | |
6648 | ||
7357c5b6 AM |
6649 | hpux10.20* | hpux11*) |
6650 | lt_cv_file_magic_cmd=/usr/bin/file | |
6651 | case $host_cpu in | |
6652 | ia64*) | |
6653 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6654 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6655 | ;; | |
6656 | hppa*64*) | |
3725885a | 6657 | 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 |
6658 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6659 | ;; | |
6660 | *) | |
3725885a | 6661 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7357c5b6 AM |
6662 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6663 | ;; | |
6664 | esac | |
ce2cded5 | 6665 | ;; |
d7040cdb | 6666 | |
7357c5b6 AM |
6667 | interix[3-9]*) |
6668 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6669 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6670 | ;; | |
d7040cdb | 6671 | |
7357c5b6 AM |
6672 | irix5* | irix6* | nonstopux*) |
6673 | case $LD in | |
6674 | *-32|*"-32 ") libmagic=32-bit;; | |
6675 | *-n32|*"-n32 ") libmagic=N32;; | |
6676 | *-64|*"-64 ") libmagic=64-bit;; | |
6677 | *) libmagic=never-match;; | |
6678 | esac | |
6679 | lt_cv_deplibs_check_method=pass_all | |
6680 | ;; | |
d7040cdb | 6681 | |
7357c5b6 | 6682 | # This must be Linux ELF. |
58e24671 | 6683 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7357c5b6 AM |
6684 | lt_cv_deplibs_check_method=pass_all |
6685 | ;; | |
d7040cdb | 6686 | |
7357c5b6 AM |
6687 | netbsd*) |
6688 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6689 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6690 | else | |
6691 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6692 | fi | |
ce2cded5 | 6693 | ;; |
d7040cdb | 6694 | |
7357c5b6 AM |
6695 | newos6*) |
6696 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6697 | lt_cv_file_magic_cmd=/usr/bin/file | |
6698 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6699 | ;; | |
d7040cdb | 6700 | |
7357c5b6 AM |
6701 | *nto* | *qnx*) |
6702 | lt_cv_deplibs_check_method=pass_all | |
6703 | ;; | |
d7040cdb | 6704 | |
7357c5b6 AM |
6705 | openbsd*) |
6706 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6707 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
ce2cded5 | 6708 | else |
7357c5b6 | 6709 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
ce2cded5 | 6710 | fi |
7357c5b6 | 6711 | ;; |
d7040cdb | 6712 | |
7357c5b6 AM |
6713 | osf3* | osf4* | osf5*) |
6714 | lt_cv_deplibs_check_method=pass_all | |
6715 | ;; | |
d7040cdb | 6716 | |
7357c5b6 AM |
6717 | rdos*) |
6718 | lt_cv_deplibs_check_method=pass_all | |
6719 | ;; | |
d7040cdb | 6720 | |
7357c5b6 AM |
6721 | solaris*) |
6722 | lt_cv_deplibs_check_method=pass_all | |
6723 | ;; | |
d7040cdb | 6724 | |
7357c5b6 AM |
6725 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6726 | lt_cv_deplibs_check_method=pass_all | |
6727 | ;; | |
d7040cdb | 6728 | |
7357c5b6 AM |
6729 | sysv4 | sysv4.3*) |
6730 | case $host_vendor in | |
6731 | motorola) | |
6732 | 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]' | |
6733 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6734 | ;; | |
6735 | ncr) | |
6736 | lt_cv_deplibs_check_method=pass_all | |
6737 | ;; | |
6738 | sequent) | |
6739 | lt_cv_file_magic_cmd='/bin/file' | |
6740 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6741 | ;; | |
6742 | sni) | |
6743 | lt_cv_file_magic_cmd='/bin/file' | |
6744 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6745 | lt_cv_file_magic_test_file=/lib/libc.so | |
6746 | ;; | |
6747 | siemens) | |
6748 | lt_cv_deplibs_check_method=pass_all | |
6749 | ;; | |
6750 | pc) | |
6751 | lt_cv_deplibs_check_method=pass_all | |
6752 | ;; | |
6753 | esac | |
6754 | ;; | |
d7040cdb | 6755 | |
7357c5b6 AM |
6756 | tpf*) |
6757 | lt_cv_deplibs_check_method=pass_all | |
6758 | ;; | |
6759 | esac | |
d7040cdb | 6760 | |
7357c5b6 | 6761 | fi |
81ecdfbb RW |
6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6763 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
6764 | file_magic_cmd=$lt_cv_file_magic_cmd |
6765 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6766 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
6767 | |
6768 | ||
6769 | ||
7357c5b6 AM |
6770 | |
6771 | ||
6772 | ||
6773 | ||
6774 | ||
6775 | ||
6776 | ||
6777 | ||
6778 | ||
6779 | if test -n "$ac_tool_prefix"; then | |
6780 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6781 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6783 | $as_echo_n "checking for $ac_word... " >&6; } | |
6784 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6785 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6786 | else |
6787 | if test -n "$AR"; then | |
6788 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6789 | else | |
6790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6791 | for as_dir in $PATH | |
6792 | do | |
6793 | IFS=$as_save_IFS | |
6794 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6795 | for ac_exec_ext in '' $ac_executable_extensions; do |
6796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6797 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6799 | break 2 |
ce2cded5 L |
6800 | fi |
6801 | done | |
81ecdfbb RW |
6802 | done |
6803 | IFS=$as_save_IFS | |
d7040cdb | 6804 | |
42ecbf5e | 6805 | fi |
ce2cded5 | 6806 | fi |
7357c5b6 AM |
6807 | AR=$ac_cv_prog_AR |
6808 | if test -n "$AR"; then | |
81ecdfbb RW |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6810 | $as_echo "$AR" >&6; } | |
42ecbf5e | 6811 | else |
81ecdfbb RW |
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6813 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6814 | fi |
6815 | ||
81ecdfbb | 6816 | |
7357c5b6 AM |
6817 | fi |
6818 | if test -z "$ac_cv_prog_AR"; then | |
6819 | ac_ct_AR=$AR | |
6820 | # Extract the first word of "ar", so it can be a program name with args. | |
6821 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6823 | $as_echo_n "checking for $ac_word... " >&6; } | |
6824 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6825 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6826 | else |
6827 | if test -n "$ac_ct_AR"; then | |
6828 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6829 | else | |
6830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6831 | for as_dir in $PATH | |
6832 | do | |
6833 | IFS=$as_save_IFS | |
6834 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6835 | for ac_exec_ext in '' $ac_executable_extensions; do |
6836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6837 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6839 | break 2 |
6840 | fi | |
6841 | done | |
81ecdfbb RW |
6842 | done |
6843 | IFS=$as_save_IFS | |
42ecbf5e | 6844 | |
7357c5b6 AM |
6845 | fi |
6846 | fi | |
6847 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6848 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6850 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 6851 | else |
81ecdfbb RW |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6853 | $as_echo "no" >&6; } | |
7357c5b6 | 6854 | fi |
d7040cdb | 6855 | |
81ecdfbb RW |
6856 | if test "x$ac_ct_AR" = x; then |
6857 | AR="false" | |
6858 | else | |
6859 | case $cross_compiling:$ac_tool_warned in | |
6860 | yes:) | |
6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6862 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6863 | ac_tool_warned=yes ;; | |
6864 | esac | |
6865 | AR=$ac_ct_AR | |
6866 | fi | |
7357c5b6 AM |
6867 | else |
6868 | AR="$ac_cv_prog_AR" | |
6869 | fi | |
d7040cdb | 6870 | |
7357c5b6 AM |
6871 | test -z "$AR" && AR=ar |
6872 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
6873 | |
6874 | ||
6875 | ||
20e95c23 | 6876 | |
d7040cdb | 6877 | |
d7040cdb SE |
6878 | |
6879 | ||
6880 | ||
6881 | ||
6882 | ||
6883 | ||
7357c5b6 AM |
6884 | if test -n "$ac_tool_prefix"; then |
6885 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6886 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6888 | $as_echo_n "checking for $ac_word... " >&6; } | |
6889 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6890 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6891 | else |
6892 | if test -n "$STRIP"; then | |
6893 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6894 | else | |
6895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6896 | for as_dir in $PATH | |
6897 | do | |
6898 | IFS=$as_save_IFS | |
6899 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6900 | for ac_exec_ext in '' $ac_executable_extensions; do |
6901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6902 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6904 | break 2 |
ce2cded5 | 6905 | fi |
7357c5b6 | 6906 | done |
81ecdfbb RW |
6907 | done |
6908 | IFS=$as_save_IFS | |
d7040cdb | 6909 | |
7357c5b6 AM |
6910 | fi |
6911 | fi | |
6912 | STRIP=$ac_cv_prog_STRIP | |
6913 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6915 | $as_echo "$STRIP" >&6; } | |
7357c5b6 | 6916 | else |
81ecdfbb RW |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6918 | $as_echo "no" >&6; } | |
7357c5b6 AM |
6919 | fi |
6920 | ||
81ecdfbb | 6921 | |
7357c5b6 AM |
6922 | fi |
6923 | if test -z "$ac_cv_prog_STRIP"; then | |
6924 | ac_ct_STRIP=$STRIP | |
6925 | # Extract the first word of "strip", so it can be a program name with args. | |
6926 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6928 | $as_echo_n "checking for $ac_word... " >&6; } | |
6929 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6930 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6931 | else |
6932 | if test -n "$ac_ct_STRIP"; then | |
6933 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6934 | else | |
6935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6936 | for as_dir in $PATH | |
6937 | do | |
6938 | IFS=$as_save_IFS | |
6939 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6940 | for ac_exec_ext in '' $ac_executable_extensions; do |
6941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6942 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6944 | break 2 |
ce2cded5 | 6945 | fi |
7357c5b6 | 6946 | done |
81ecdfbb RW |
6947 | done |
6948 | IFS=$as_save_IFS | |
d7040cdb | 6949 | |
7357c5b6 AM |
6950 | fi |
6951 | fi | |
6952 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6953 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6955 | $as_echo "$ac_ct_STRIP" >&6; } | |
20e95c23 | 6956 | else |
81ecdfbb RW |
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6958 | $as_echo "no" >&6; } | |
7357c5b6 | 6959 | fi |
d7040cdb | 6960 | |
81ecdfbb RW |
6961 | if test "x$ac_ct_STRIP" = x; then |
6962 | STRIP=":" | |
6963 | else | |
6964 | case $cross_compiling:$ac_tool_warned in | |
6965 | yes:) | |
6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6967 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6968 | ac_tool_warned=yes ;; | |
6969 | esac | |
6970 | STRIP=$ac_ct_STRIP | |
6971 | fi | |
7357c5b6 AM |
6972 | else |
6973 | STRIP="$ac_cv_prog_STRIP" | |
6974 | fi | |
d7040cdb | 6975 | |
7357c5b6 | 6976 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6977 | |
d7040cdb SE |
6978 | |
6979 | ||
6980 | ||
d7040cdb | 6981 | |
7357c5b6 AM |
6982 | |
6983 | if test -n "$ac_tool_prefix"; then | |
6984 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6985 | set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then : | |
6989 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6990 | else |
7357c5b6 AM |
6991 | if test -n "$RANLIB"; then |
6992 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6993 | else | |
6994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6995 | for as_dir in $PATH | |
ce2cded5 | 6996 | do |
7357c5b6 AM |
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 | |
7357c5b6 | 7001 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 7002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 7003 | break 2 |
ce2cded5 | 7004 | fi |
7357c5b6 | 7005 | done |
81ecdfbb RW |
7006 | done |
7007 | IFS=$as_save_IFS | |
7357c5b6 | 7008 | |
ce2cded5 | 7009 | fi |
7357c5b6 AM |
7010 | fi |
7011 | RANLIB=$ac_cv_prog_RANLIB | |
7012 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7014 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 7015 | else |
81ecdfbb RW |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7017 | $as_echo "no" >&6; } | |
ce2cded5 | 7018 | fi |
d7040cdb | 7019 | |
81ecdfbb | 7020 | |
7357c5b6 AM |
7021 | fi |
7022 | if test -z "$ac_cv_prog_RANLIB"; then | |
7023 | ac_ct_RANLIB=$RANLIB | |
7024 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7025 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7027 | $as_echo_n "checking for $ac_word... " >&6; } | |
7028 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
7029 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7030 | else |
7357c5b6 AM |
7031 | if test -n "$ac_ct_RANLIB"; then |
7032 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7033 | else | |
7034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7035 | for as_dir in $PATH | |
7036 | do | |
7037 | IFS=$as_save_IFS | |
7038 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7039 | for ac_exec_ext in '' $ac_executable_extensions; do |
7040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 7041 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 7042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
7043 | break 2 |
7044 | fi | |
7045 | done | |
81ecdfbb RW |
7046 | done |
7047 | IFS=$as_save_IFS | |
7357c5b6 | 7048 | |
ce2cded5 | 7049 | fi |
7357c5b6 AM |
7050 | fi |
7051 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7052 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7054 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 7055 | else |
81ecdfbb RW |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7057 | $as_echo "no" >&6; } | |
ce2cded5 | 7058 | fi |
d7040cdb | 7059 | |
81ecdfbb RW |
7060 | if test "x$ac_ct_RANLIB" = x; then |
7061 | RANLIB=":" | |
7062 | else | |
7063 | case $cross_compiling:$ac_tool_warned in | |
7064 | yes:) | |
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7066 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7067 | ac_tool_warned=yes ;; | |
7068 | esac | |
7069 | RANLIB=$ac_ct_RANLIB | |
7070 | fi | |
7357c5b6 AM |
7071 | else |
7072 | RANLIB="$ac_cv_prog_RANLIB" | |
ce2cded5 | 7073 | fi |
d7040cdb | 7074 | |
7357c5b6 | 7075 | test -z "$RANLIB" && RANLIB=: |
d7040cdb | 7076 | |
7357c5b6 AM |
7077 | |
7078 | ||
7079 | ||
7080 | ||
7081 | ||
7082 | # Determine commands to create old-style static archives. | |
b214d478 | 7083 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
7084 | old_postinstall_cmds='chmod 644 $oldlib' |
7085 | old_postuninstall_cmds= | |
7086 | ||
7087 | if test -n "$RANLIB"; then | |
7088 | case $host_os in | |
7089 | openbsd*) | |
7090 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7091 | ;; | |
7092 | *) | |
7093 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7094 | ;; | |
7095 | esac | |
7096 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 7097 | fi |
7357c5b6 | 7098 | |
3725885a RW |
7099 | case $host_os in |
7100 | darwin*) | |
7101 | lock_old_archive_extraction=yes ;; | |
7102 | *) | |
7103 | lock_old_archive_extraction=no ;; | |
7104 | esac | |
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | ||
7357c5b6 AM |
7111 | |
7112 | ||
7113 | ||
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | ||
7121 | ||
7122 | ||
7123 | ||
7124 | ||
7125 | ||
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | ||
7142 | ||
7143 | ||
7144 | # If no C compiler was specified, use CC. | |
7145 | LTCC=${LTCC-"$CC"} | |
7146 | ||
7147 | # If no C compiler flags were specified, use CFLAGS. | |
7148 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7149 | ||
7150 | # Allow CC to be a program name with arguments. | |
7151 | compiler=$CC | |
7152 | ||
7153 | ||
7154 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7156 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7157 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7158 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7159 | else |
d7040cdb | 7160 | |
7357c5b6 AM |
7161 | # These are sane defaults that work on at least a few old systems. |
7162 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 7163 | |
7357c5b6 AM |
7164 | # Character class describing NM global symbol codes. |
7165 | symcode='[BCDEGRST]' | |
7166 | ||
7167 | # Regexp to match symbols that can be accessed directly from C. | |
7168 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7169 | ||
7170 | # Define system-specific variables. | |
7171 | case $host_os in | |
7172 | aix*) | |
7173 | symcode='[BCDT]' | |
7174 | ;; | |
b214d478 | 7175 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
7176 | symcode='[ABCDGISTW]' |
7177 | ;; | |
7178 | hpux*) | |
7179 | if test "$host_cpu" = ia64; then | |
7180 | symcode='[ABCDEGRST]' | |
ce2cded5 | 7181 | fi |
7357c5b6 AM |
7182 | ;; |
7183 | irix* | nonstopux*) | |
7184 | symcode='[BCDEGRST]' | |
7185 | ;; | |
7186 | osf*) | |
7187 | symcode='[BCDEGQRST]' | |
7188 | ;; | |
7189 | solaris*) | |
7190 | symcode='[BDRT]' | |
7191 | ;; | |
7192 | sco3.2v5*) | |
7193 | symcode='[DT]' | |
7194 | ;; | |
7195 | sysv4.2uw2*) | |
7196 | symcode='[DT]' | |
7197 | ;; | |
7198 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7199 | symcode='[ABDT]' | |
7200 | ;; | |
7201 | sysv4) | |
7202 | symcode='[DFNSTU]' | |
7203 | ;; | |
7204 | esac | |
d7040cdb | 7205 | |
7357c5b6 AM |
7206 | # If we're using GNU nm, then use its standard symbol codes. |
7207 | case `$NM -V 2>&1` in | |
7208 | *GNU* | *'with BFD'*) | |
7209 | symcode='[ABCDGIRSTW]' ;; | |
7210 | esac | |
d7040cdb | 7211 | |
7357c5b6 AM |
7212 | # Transform an extracted symbol line into a proper C declaration. |
7213 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7214 | # so use this general approach. | |
7215 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7216 | ||
7217 | # Transform an extracted symbol line into symbol name and symbol address | |
7218 | 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 | 7219 | 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 |
7220 | |
7221 | # Handle CRLF in mingw tool chain | |
7222 | opt_cr= | |
7223 | case $build_os in | |
7224 | mingw*) | |
7225 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7226 | ;; | |
7227 | esac | |
d7040cdb | 7228 | |
7357c5b6 AM |
7229 | # Try without a prefix underscore, then with it. |
7230 | for ac_symprfx in "" "_"; do | |
d7040cdb | 7231 | |
7357c5b6 AM |
7232 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7233 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 7234 | |
7357c5b6 AM |
7235 | # Write the raw and C identifiers. |
7236 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7237 | # Fake it for dumpbin and say T for any non-static function | |
7238 | # and D for any global variable. | |
7239 | # Also find C++ and __fastcall symbols from MSVC++, | |
7240 | # which start with @ or ?. | |
7241 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7242 | " {last_section=section; section=\$ 3};"\ | |
7243 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7244 | " \$ 0!~/External *\|/{next};"\ | |
7245 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7246 | " {if(hide[section]) next};"\ | |
7247 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7248 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7249 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7250 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7251 | " ' prfx=^$ac_symprfx" | |
7252 | else | |
7253 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7254 | fi | |
d7040cdb | 7255 | |
7357c5b6 AM |
7256 | # Check to see that the pipe works correctly. |
7257 | pipe_works=no | |
d7040cdb | 7258 | |
7357c5b6 AM |
7259 | rm -f conftest* |
7260 | cat > conftest.$ac_ext <<_LT_EOF | |
7261 | #ifdef __cplusplus | |
7262 | extern "C" { | |
7263 | #endif | |
7264 | char nm_test_var; | |
7265 | void nm_test_func(void); | |
7266 | void nm_test_func(void){} | |
7267 | #ifdef __cplusplus | |
20e95c23 | 7268 | } |
7357c5b6 AM |
7269 | #endif |
7270 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7271 | _LT_EOF | |
7272 | ||
81ecdfbb | 7273 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 7274 | (eval $ac_compile) 2>&5 |
20e95c23 | 7275 | ac_status=$? |
81ecdfbb RW |
7276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7277 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7278 | # Now try to grab the symbols. |
7279 | nlist=conftest.nm | |
3725885a RW |
7280 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7281 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
20e95c23 | 7282 | ac_status=$? |
81ecdfbb RW |
7283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7284 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
7285 | # Try sorting and uniquifying the output. |
7286 | if sort "$nlist" | uniq > "$nlist"T; then | |
7287 | mv -f "$nlist"T "$nlist" | |
7288 | else | |
7289 | rm -f "$nlist"T | |
7290 | fi | |
d7040cdb | 7291 | |
7357c5b6 AM |
7292 | # Make sure that we snagged all the symbols we need. |
7293 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7294 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7295 | cat <<_LT_EOF > conftest.$ac_ext | |
7296 | #ifdef __cplusplus | |
7297 | extern "C" { | |
7298 | #endif | |
ce2cded5 | 7299 | |
7357c5b6 AM |
7300 | _LT_EOF |
7301 | # Now generate the symbol file. | |
7302 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
ce2cded5 | 7303 | |
7357c5b6 | 7304 | cat <<_LT_EOF >> conftest.$ac_ext |
42ecbf5e | 7305 | |
7357c5b6 AM |
7306 | /* The mapping between symbol names and symbols. */ |
7307 | const struct { | |
7308 | const char *name; | |
7309 | void *address; | |
7310 | } | |
7311 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7312 | { | |
7313 | { "@PROGRAM@", (void *) 0 }, | |
7314 | _LT_EOF | |
7315 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7316 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7317 | {0, (void *) 0} | |
7318 | }; | |
d7040cdb | 7319 | |
7357c5b6 AM |
7320 | /* This works around a problem in FreeBSD linker */ |
7321 | #ifdef FREEBSD_WORKAROUND | |
7322 | static const void *lt_preloaded_setup() { | |
7323 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7324 | } | |
ce2cded5 | 7325 | #endif |
42ecbf5e | 7326 | |
7357c5b6 | 7327 | #ifdef __cplusplus |
ce2cded5 | 7328 | } |
7357c5b6 AM |
7329 | #endif |
7330 | _LT_EOF | |
7331 | # Now try linking the two files. | |
7332 | mv conftest.$ac_objext conftstm.$ac_objext | |
7333 | lt_save_LIBS="$LIBS" | |
7334 | lt_save_CFLAGS="$CFLAGS" | |
7335 | LIBS="conftstm.$ac_objext" | |
7336 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 7337 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
7338 | (eval $ac_link) 2>&5 |
7339 | ac_status=$? | |
81ecdfbb RW |
7340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7341 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
7342 | pipe_works=yes |
7343 | fi | |
7344 | LIBS="$lt_save_LIBS" | |
7345 | CFLAGS="$lt_save_CFLAGS" | |
7346 | else | |
7347 | echo "cannot find nm_test_func in $nlist" >&5 | |
7348 | fi | |
7349 | else | |
7350 | echo "cannot find nm_test_var in $nlist" >&5 | |
7351 | fi | |
7352 | else | |
7353 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7354 | fi | |
7355 | else | |
7356 | echo "$progname: failed program was:" >&5 | |
7357 | cat conftest.$ac_ext >&5 | |
7358 | fi | |
b214d478 | 7359 | rm -rf conftest* conftst* |
7357c5b6 AM |
7360 | |
7361 | # Do not use the global_symbol_pipe unless it works. | |
7362 | if test "$pipe_works" = yes; then | |
7363 | break | |
7364 | else | |
7365 | lt_cv_sys_global_symbol_pipe= | |
7366 | fi | |
7367 | done | |
42ecbf5e | 7368 | |
ce2cded5 | 7369 | fi |
7357c5b6 AM |
7370 | |
7371 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7372 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 7373 | fi |
7357c5b6 | 7374 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7376 | $as_echo "failed" >&6; } | |
7357c5b6 | 7377 | else |
81ecdfbb RW |
7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7379 | $as_echo "ok" >&6; } | |
ce2cded5 | 7380 | fi |
e5a52504 | 7381 | |
d7040cdb | 7382 | |
e5a52504 | 7383 | |
d7040cdb | 7384 | |
d7040cdb | 7385 | |
d7040cdb | 7386 | |
d7040cdb | 7387 | |
d7040cdb | 7388 | |
d7040cdb | 7389 | |
d7040cdb | 7390 | |
d7040cdb | 7391 | |
d7040cdb | 7392 | |
7357c5b6 AM |
7393 | |
7394 | ||
7395 | ||
b214d478 SE |
7396 | |
7397 | ||
7398 | ||
7399 | ||
7400 | ||
7357c5b6 AM |
7401 | |
7402 | ||
81ecdfbb RW |
7403 | # Check whether --enable-libtool-lock was given. |
7404 | if test "${enable_libtool_lock+set}" = set; then : | |
7405 | enableval=$enable_libtool_lock; | |
7406 | fi | |
7357c5b6 | 7407 | |
7357c5b6 AM |
7408 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7409 | ||
7410 | # Some flags need to be propagated to the compiler or linker for good | |
7411 | # libtool support. | |
7412 | case $host in | |
7413 | ia64-*-hpux*) | |
7414 | # Find out which ABI we are using. | |
7415 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7416 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7417 | (eval $ac_compile) 2>&5 |
7418 | ac_status=$? | |
81ecdfbb RW |
7419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7420 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7421 | case `/usr/bin/file conftest.$ac_objext` in |
7422 | *ELF-32*) | |
7423 | HPUX_IA64_MODE="32" | |
7424 | ;; | |
7425 | *ELF-64*) | |
7426 | HPUX_IA64_MODE="64" | |
7427 | ;; | |
7428 | esac | |
7429 | fi | |
7430 | rm -rf conftest* | |
7431 | ;; | |
7432 | *-*-irix6*) | |
7433 | # Find out which ABI we are using. | |
3725885a | 7434 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 7435 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7436 | (eval $ac_compile) 2>&5 |
7437 | ac_status=$? | |
81ecdfbb RW |
7438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7439 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7440 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7441 | case `/usr/bin/file conftest.$ac_objext` in | |
7442 | *32-bit*) | |
7443 | LD="${LD-ld} -melf32bsmip" | |
7444 | ;; | |
7445 | *N32*) | |
7446 | LD="${LD-ld} -melf32bmipn32" | |
7447 | ;; | |
7448 | *64-bit*) | |
7449 | LD="${LD-ld} -melf64bmip" | |
7450 | ;; | |
7451 | esac | |
7452 | else | |
7453 | case `/usr/bin/file conftest.$ac_objext` in | |
7454 | *32-bit*) | |
7455 | LD="${LD-ld} -32" | |
7456 | ;; | |
7457 | *N32*) | |
7458 | LD="${LD-ld} -n32" | |
7459 | ;; | |
7460 | *64-bit*) | |
7461 | LD="${LD-ld} -64" | |
7462 | ;; | |
7463 | esac | |
7464 | fi | |
7465 | fi | |
7466 | rm -rf conftest* | |
7467 | ;; | |
7468 | ||
cc9afea3 | 7469 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7357c5b6 AM |
7470 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7471 | # Find out which ABI we are using. | |
7472 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7473 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7474 | (eval $ac_compile) 2>&5 |
7475 | ac_status=$? | |
81ecdfbb RW |
7476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7477 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7478 | case `/usr/bin/file conftest.o` in |
7479 | *32-bit*) | |
7480 | case $host in | |
7481 | x86_64-*kfreebsd*-gnu) | |
7482 | LD="${LD-ld} -m elf_i386_fbsd" | |
7483 | ;; | |
7484 | x86_64-*linux*) | |
6d2920c8 L |
7485 | case `/usr/bin/file conftest.o` in |
7486 | *x86-64*) | |
7487 | LD="${LD-ld} -m elf32_x86_64" | |
7488 | ;; | |
7489 | *) | |
7490 | LD="${LD-ld} -m elf_i386" | |
7491 | ;; | |
7492 | esac | |
7357c5b6 | 7493 | ;; |
cc9afea3 AM |
7494 | powerpc64le-*linux*) |
7495 | LD="${LD-ld} -m elf32lppclinux" | |
7496 | ;; | |
7497 | powerpc64-*linux*) | |
7357c5b6 AM |
7498 | LD="${LD-ld} -m elf32ppclinux" |
7499 | ;; | |
7500 | s390x-*linux*) | |
7501 | LD="${LD-ld} -m elf_s390" | |
7502 | ;; | |
7503 | sparc64-*linux*) | |
7504 | LD="${LD-ld} -m elf32_sparc" | |
7505 | ;; | |
7506 | esac | |
7507 | ;; | |
7508 | *64-bit*) | |
7509 | case $host in | |
7510 | x86_64-*kfreebsd*-gnu) | |
7511 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7512 | ;; | |
7513 | x86_64-*linux*) | |
7514 | LD="${LD-ld} -m elf_x86_64" | |
7515 | ;; | |
cc9afea3 AM |
7516 | powerpcle-*linux*) |
7517 | LD="${LD-ld} -m elf64lppc" | |
7518 | ;; | |
7519 | powerpc-*linux*) | |
7357c5b6 AM |
7520 | LD="${LD-ld} -m elf64ppc" |
7521 | ;; | |
7522 | s390*-*linux*|s390*-*tpf*) | |
7523 | LD="${LD-ld} -m elf64_s390" | |
7524 | ;; | |
7525 | sparc*-*linux*) | |
7526 | LD="${LD-ld} -m elf64_sparc" | |
7527 | ;; | |
7528 | esac | |
7529 | ;; | |
7530 | esac | |
7531 | fi | |
7532 | rm -rf conftest* | |
7533 | ;; | |
7534 | ||
7535 | *-*-sco3.2v5*) | |
7536 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7537 | SAVE_CFLAGS="$CFLAGS" | |
7538 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7540 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7541 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7542 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7543 | else |
7357c5b6 AM |
7544 | ac_ext=c |
7545 | ac_cpp='$CPP $CPPFLAGS' | |
7546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7549 | ||
81ecdfbb | 7550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 7551 | /* end confdefs.h. */ |
d7040cdb | 7552 | |
7357c5b6 AM |
7553 | int |
7554 | main () | |
7555 | { | |
7556 | ||
7557 | ; | |
7558 | return 0; | |
7559 | } | |
ce2cded5 | 7560 | _ACEOF |
81ecdfbb | 7561 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7562 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 7563 | else |
81ecdfbb | 7564 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7565 | fi |
81ecdfbb RW |
7566 | rm -f core conftest.err conftest.$ac_objext \ |
7567 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7568 | ac_ext=c |
7569 | ac_cpp='$CPP $CPPFLAGS' | |
7570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7573 | |
b214d478 | 7574 | fi |
81ecdfbb RW |
7575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7576 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
7577 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7578 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7579 | CFLAGS="$SAVE_CFLAGS" | |
7580 | fi | |
7581 | ;; | |
7582 | sparc*-*solaris*) | |
7583 | # Find out which ABI we are using. | |
7584 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7585 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
7586 | (eval $ac_compile) 2>&5 |
7587 | ac_status=$? | |
81ecdfbb RW |
7588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7589 | test $ac_status = 0; }; then | |
b214d478 SE |
7590 | case `/usr/bin/file conftest.o` in |
7591 | *64-bit*) | |
7592 | case $lt_cv_prog_gnu_ld in | |
7593 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7594 | *) | |
7595 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7596 | LD="${LD-ld} -64" | |
7597 | fi | |
7598 | ;; | |
7599 | esac | |
7600 | ;; | |
7601 | esac | |
7602 | fi | |
7603 | rm -rf conftest* | |
7604 | ;; | |
7605 | esac | |
7606 | ||
7607 | need_locks="$enable_libtool_lock" | |
7608 | ||
7609 | ||
7610 | case $host_os in | |
7611 | rhapsody* | darwin*) | |
7612 | if test -n "$ac_tool_prefix"; then | |
7613 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7614 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7616 | $as_echo_n "checking for $ac_word... " >&6; } | |
7617 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7618 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7619 | else |
7620 | if test -n "$DSYMUTIL"; then | |
7621 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7622 | else | |
7623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7624 | for as_dir in $PATH | |
7625 | do | |
7626 | IFS=$as_save_IFS | |
7627 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7628 | for ac_exec_ext in '' $ac_executable_extensions; do |
7629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7630 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7632 | break 2 |
7633 | fi | |
7634 | done | |
81ecdfbb RW |
7635 | done |
7636 | IFS=$as_save_IFS | |
b214d478 SE |
7637 | |
7638 | fi | |
7639 | fi | |
7640 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7641 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7643 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 7644 | else |
81ecdfbb RW |
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7646 | $as_echo "no" >&6; } | |
b214d478 SE |
7647 | fi |
7648 | ||
81ecdfbb | 7649 | |
b214d478 SE |
7650 | fi |
7651 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7652 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7653 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7654 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7656 | $as_echo_n "checking for $ac_word... " >&6; } | |
7657 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7658 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7659 | else |
7660 | if test -n "$ac_ct_DSYMUTIL"; then | |
7661 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7662 | else | |
7663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7664 | for as_dir in $PATH | |
7665 | do | |
7666 | IFS=$as_save_IFS | |
7667 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7668 | for ac_exec_ext in '' $ac_executable_extensions; do |
7669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7670 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7672 | break 2 |
7673 | fi | |
7674 | done | |
81ecdfbb RW |
7675 | done |
7676 | IFS=$as_save_IFS | |
b214d478 | 7677 | |
b214d478 SE |
7678 | fi |
7679 | fi | |
7680 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7681 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7683 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 7684 | else |
81ecdfbb RW |
7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7686 | $as_echo "no" >&6; } | |
b214d478 SE |
7687 | fi |
7688 | ||
81ecdfbb RW |
7689 | if test "x$ac_ct_DSYMUTIL" = x; then |
7690 | DSYMUTIL=":" | |
7691 | else | |
7692 | case $cross_compiling:$ac_tool_warned in | |
7693 | yes:) | |
7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7695 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7696 | ac_tool_warned=yes ;; | |
7697 | esac | |
7698 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7699 | fi | |
b214d478 SE |
7700 | else |
7701 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7702 | fi | |
7703 | ||
7704 | if test -n "$ac_tool_prefix"; then | |
7705 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7706 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7708 | $as_echo_n "checking for $ac_word... " >&6; } | |
7709 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7710 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7711 | else |
7712 | if test -n "$NMEDIT"; then | |
7713 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7714 | else | |
7715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7716 | for as_dir in $PATH | |
7717 | do | |
7718 | IFS=$as_save_IFS | |
7719 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7720 | for ac_exec_ext in '' $ac_executable_extensions; do |
7721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7722 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7724 | break 2 |
7725 | fi | |
7726 | done | |
81ecdfbb RW |
7727 | done |
7728 | IFS=$as_save_IFS | |
b214d478 SE |
7729 | |
7730 | fi | |
7731 | fi | |
7732 | NMEDIT=$ac_cv_prog_NMEDIT | |
7733 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7735 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 7736 | else |
81ecdfbb RW |
7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7738 | $as_echo "no" >&6; } | |
b214d478 SE |
7739 | fi |
7740 | ||
81ecdfbb | 7741 | |
b214d478 SE |
7742 | fi |
7743 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7744 | ac_ct_NMEDIT=$NMEDIT | |
7745 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7746 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7748 | $as_echo_n "checking for $ac_word... " >&6; } | |
7749 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7750 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7751 | else |
7752 | if test -n "$ac_ct_NMEDIT"; then | |
7753 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7754 | else | |
7755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7756 | for as_dir in $PATH | |
7757 | do | |
7758 | IFS=$as_save_IFS | |
7759 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7760 | for ac_exec_ext in '' $ac_executable_extensions; do |
7761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7762 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7764 | break 2 |
7765 | fi | |
7766 | done | |
81ecdfbb RW |
7767 | done |
7768 | IFS=$as_save_IFS | |
b214d478 | 7769 | |
b214d478 SE |
7770 | fi |
7771 | fi | |
7772 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7773 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7775 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 7776 | else |
81ecdfbb RW |
7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7778 | $as_echo "no" >&6; } | |
b214d478 SE |
7779 | fi |
7780 | ||
81ecdfbb RW |
7781 | if test "x$ac_ct_NMEDIT" = x; then |
7782 | NMEDIT=":" | |
7783 | else | |
7784 | case $cross_compiling:$ac_tool_warned in | |
7785 | yes:) | |
7786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7788 | ac_tool_warned=yes ;; | |
7789 | esac | |
7790 | NMEDIT=$ac_ct_NMEDIT | |
7791 | fi | |
b214d478 SE |
7792 | else |
7793 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7794 | fi | |
7795 | ||
7796 | if test -n "$ac_tool_prefix"; then | |
7797 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7798 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7800 | $as_echo_n "checking for $ac_word... " >&6; } | |
7801 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7802 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7803 | else |
7804 | if test -n "$LIPO"; then | |
7805 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7806 | else | |
7807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7808 | for as_dir in $PATH | |
7809 | do | |
7810 | IFS=$as_save_IFS | |
7811 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7812 | for ac_exec_ext in '' $ac_executable_extensions; do |
7813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7814 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7816 | break 2 |
7817 | fi | |
7818 | done | |
81ecdfbb RW |
7819 | done |
7820 | IFS=$as_save_IFS | |
b214d478 SE |
7821 | |
7822 | fi | |
7823 | fi | |
7824 | LIPO=$ac_cv_prog_LIPO | |
7825 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7827 | $as_echo "$LIPO" >&6; } | |
b214d478 | 7828 | else |
81ecdfbb RW |
7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7830 | $as_echo "no" >&6; } | |
b214d478 SE |
7831 | fi |
7832 | ||
81ecdfbb | 7833 | |
b214d478 SE |
7834 | fi |
7835 | if test -z "$ac_cv_prog_LIPO"; then | |
7836 | ac_ct_LIPO=$LIPO | |
7837 | # Extract the first word of "lipo", so it can be a program name with args. | |
7838 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7840 | $as_echo_n "checking for $ac_word... " >&6; } | |
7841 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7842 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7843 | else |
7844 | if test -n "$ac_ct_LIPO"; then | |
7845 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7846 | else | |
7847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7848 | for as_dir in $PATH | |
7849 | do | |
7850 | IFS=$as_save_IFS | |
7851 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7852 | for ac_exec_ext in '' $ac_executable_extensions; do |
7853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7854 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7856 | break 2 |
7857 | fi | |
7858 | done | |
81ecdfbb RW |
7859 | done |
7860 | IFS=$as_save_IFS | |
b214d478 | 7861 | |
b214d478 SE |
7862 | fi |
7863 | fi | |
7864 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7865 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7867 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 7868 | else |
81ecdfbb RW |
7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7870 | $as_echo "no" >&6; } | |
b214d478 SE |
7871 | fi |
7872 | ||
81ecdfbb RW |
7873 | if test "x$ac_ct_LIPO" = x; then |
7874 | LIPO=":" | |
7875 | else | |
7876 | case $cross_compiling:$ac_tool_warned in | |
7877 | yes:) | |
7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7879 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7880 | ac_tool_warned=yes ;; | |
7881 | esac | |
7882 | LIPO=$ac_ct_LIPO | |
7883 | fi | |
b214d478 SE |
7884 | else |
7885 | LIPO="$ac_cv_prog_LIPO" | |
7886 | fi | |
7887 | ||
7888 | if test -n "$ac_tool_prefix"; then | |
7889 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7890 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7892 | $as_echo_n "checking for $ac_word... " >&6; } | |
7893 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7894 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7895 | else |
7896 | if test -n "$OTOOL"; then | |
7897 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7898 | else | |
7899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7900 | for as_dir in $PATH | |
7901 | do | |
7902 | IFS=$as_save_IFS | |
7903 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7904 | for ac_exec_ext in '' $ac_executable_extensions; do |
7905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7906 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7908 | break 2 |
7909 | fi | |
7910 | done | |
81ecdfbb RW |
7911 | done |
7912 | IFS=$as_save_IFS | |
b214d478 SE |
7913 | |
7914 | fi | |
7915 | fi | |
7916 | OTOOL=$ac_cv_prog_OTOOL | |
7917 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7919 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 7920 | else |
81ecdfbb RW |
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7922 | $as_echo "no" >&6; } | |
b214d478 SE |
7923 | fi |
7924 | ||
81ecdfbb | 7925 | |
b214d478 SE |
7926 | fi |
7927 | if test -z "$ac_cv_prog_OTOOL"; then | |
7928 | ac_ct_OTOOL=$OTOOL | |
7929 | # Extract the first word of "otool", so it can be a program name with args. | |
7930 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7932 | $as_echo_n "checking for $ac_word... " >&6; } | |
7933 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7934 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7935 | else |
7936 | if test -n "$ac_ct_OTOOL"; then | |
7937 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7938 | else | |
7939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7940 | for as_dir in $PATH | |
7941 | do | |
7942 | IFS=$as_save_IFS | |
7943 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7944 | for ac_exec_ext in '' $ac_executable_extensions; do |
7945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7946 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7948 | break 2 |
7949 | fi | |
7950 | done | |
81ecdfbb RW |
7951 | done |
7952 | IFS=$as_save_IFS | |
b214d478 | 7953 | |
b214d478 SE |
7954 | fi |
7955 | fi | |
7956 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7957 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7959 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 7960 | else |
81ecdfbb RW |
7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7962 | $as_echo "no" >&6; } | |
b214d478 SE |
7963 | fi |
7964 | ||
81ecdfbb RW |
7965 | if test "x$ac_ct_OTOOL" = x; then |
7966 | OTOOL=":" | |
7967 | else | |
7968 | case $cross_compiling:$ac_tool_warned in | |
7969 | yes:) | |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7972 | ac_tool_warned=yes ;; | |
7973 | esac | |
7974 | OTOOL=$ac_ct_OTOOL | |
7975 | fi | |
b214d478 SE |
7976 | else |
7977 | OTOOL="$ac_cv_prog_OTOOL" | |
7978 | fi | |
7979 | ||
7980 | if test -n "$ac_tool_prefix"; then | |
7981 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7982 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7984 | $as_echo_n "checking for $ac_word... " >&6; } | |
7985 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7986 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7987 | else |
7988 | if test -n "$OTOOL64"; then | |
7989 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7990 | else | |
7991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7992 | for as_dir in $PATH | |
7993 | do | |
7994 | IFS=$as_save_IFS | |
7995 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7996 | for ac_exec_ext in '' $ac_executable_extensions; do |
7997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7998 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8000 | break 2 |
8001 | fi | |
8002 | done | |
81ecdfbb RW |
8003 | done |
8004 | IFS=$as_save_IFS | |
b214d478 SE |
8005 | |
8006 | fi | |
8007 | fi | |
8008 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8009 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8011 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 8012 | else |
81ecdfbb RW |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8014 | $as_echo "no" >&6; } | |
b214d478 SE |
8015 | fi |
8016 | ||
81ecdfbb | 8017 | |
b214d478 SE |
8018 | fi |
8019 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8020 | ac_ct_OTOOL64=$OTOOL64 | |
8021 | # Extract the first word of "otool64", so it can be a program name with args. | |
8022 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8024 | $as_echo_n "checking for $ac_word... " >&6; } | |
8025 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
8026 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8027 | else |
8028 | if test -n "$ac_ct_OTOOL64"; then | |
8029 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8030 | else | |
8031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8032 | for as_dir in $PATH | |
8033 | do | |
8034 | IFS=$as_save_IFS | |
8035 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8036 | for ac_exec_ext in '' $ac_executable_extensions; do |
8037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 8038 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 8039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
8040 | break 2 |
8041 | fi | |
8042 | done | |
81ecdfbb RW |
8043 | done |
8044 | IFS=$as_save_IFS | |
b214d478 | 8045 | |
b214d478 SE |
8046 | fi |
8047 | fi | |
8048 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8049 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8051 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 8052 | else |
81ecdfbb RW |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8054 | $as_echo "no" >&6; } | |
b214d478 SE |
8055 | fi |
8056 | ||
81ecdfbb RW |
8057 | if test "x$ac_ct_OTOOL64" = x; then |
8058 | OTOOL64=":" | |
8059 | else | |
8060 | case $cross_compiling:$ac_tool_warned in | |
8061 | yes:) | |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8063 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8064 | ac_tool_warned=yes ;; | |
8065 | esac | |
8066 | OTOOL64=$ac_ct_OTOOL64 | |
8067 | fi | |
b214d478 SE |
8068 | else |
8069 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8070 | fi | |
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | ||
8092 | ||
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | ||
81ecdfbb RW |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8099 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8100 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
8101 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8102 | else |
8103 | lt_cv_apple_cc_single_mod=no | |
8104 | if test -z "${LT_MULTI_MODULE}"; then | |
8105 | # By default we will add the -single_module flag. You can override | |
8106 | # by either setting the environment variable LT_MULTI_MODULE | |
8107 | # non-empty at configure time, or by adding -multi_module to the | |
8108 | # link flags. | |
8109 | rm -rf libconftest.dylib* | |
8110 | echo "int foo(void){return 1;}" > conftest.c | |
8111 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8112 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8113 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8114 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8115 | _lt_result=$? | |
8116 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8117 | lt_cv_apple_cc_single_mod=yes | |
8118 | else | |
8119 | cat conftest.err >&5 | |
8120 | fi | |
8121 | rm -rf libconftest.dylib* | |
8122 | rm -f conftest.* | |
8123 | fi | |
8124 | fi | |
81ecdfbb RW |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8126 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8128 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8129 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
8130 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
8131 | else |
8132 | lt_cv_ld_exported_symbols_list=no | |
8133 | save_LDFLAGS=$LDFLAGS | |
8134 | echo "_main" > conftest.sym | |
8135 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 8136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
8137 | /* end confdefs.h. */ |
8138 | ||
8139 | int | |
8140 | main () | |
8141 | { | |
8142 | ||
8143 | ; | |
8144 | return 0; | |
8145 | } | |
8146 | _ACEOF | |
81ecdfbb | 8147 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
8148 | lt_cv_ld_exported_symbols_list=yes |
8149 | else | |
81ecdfbb | 8150 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 8151 | fi |
81ecdfbb RW |
8152 | rm -f core conftest.err conftest.$ac_objext \ |
8153 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
8154 | LDFLAGS="$save_LDFLAGS" |
8155 | ||
8156 | fi | |
81ecdfbb RW |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8158 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8160 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8161 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
8162 | $as_echo_n "(cached) " >&6 | |
8163 | else | |
8164 | lt_cv_ld_force_load=no | |
8165 | cat > conftest.c << _LT_EOF | |
8166 | int forced_loaded() { return 2;} | |
8167 | _LT_EOF | |
8168 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8169 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8170 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8171 | $AR cru libconftest.a conftest.o 2>&5 | |
8172 | cat > conftest.c << _LT_EOF | |
8173 | int main() { return 0;} | |
8174 | _LT_EOF | |
8175 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8176 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8177 | _lt_result=$? | |
8178 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8179 | lt_cv_ld_force_load=yes | |
8180 | else | |
8181 | cat conftest.err >&5 | |
8182 | fi | |
8183 | rm -f conftest.err libconftest.a conftest conftest.c | |
8184 | rm -rf conftest.dSYM | |
8185 | ||
8186 | fi | |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8188 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b214d478 SE |
8189 | case $host_os in |
8190 | rhapsody* | darwin1.[012]) | |
8191 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8192 | darwin1.*) | |
8193 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8194 | darwin*) # darwin 5.x on | |
8195 | # if running on 10.5 or later, the deployment target defaults | |
8196 | # to the OS version, if on x86, and 10.4, the deployment | |
8197 | # target defaults to 10.4. Don't you love it? | |
8198 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8199 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8200 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 8201 | 10.[012][,.]*) |
b214d478 SE |
8202 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8203 | 10.*) | |
8204 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8205 | esac | |
8206 | ;; | |
8207 | esac | |
8208 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8209 | _lt_dar_single_mod='$single_module' | |
8210 | fi | |
8211 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8212 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8213 | else | |
8214 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8215 | fi | |
3725885a | 8216 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
b214d478 SE |
8217 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8218 | else | |
8219 | _lt_dsymutil= | |
8220 | fi | |
8221 | ;; | |
8222 | esac | |
8223 | ||
b214d478 | 8224 | for ac_header in dlfcn.h |
81ecdfbb RW |
8225 | do : |
8226 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8227 | " | |
8228 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
b214d478 | 8229 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 8230 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
8231 | _ACEOF |
8232 | ||
8233 | fi | |
8234 | ||
8235 | done | |
8236 | ||
8237 | ||
8238 | ||
3725885a RW |
8239 | |
8240 | ||
3cb62297 | 8241 | |
b214d478 SE |
8242 | # Set options |
8243 | ||
8244 | ||
8245 | ||
8246 | enable_dlopen=no | |
8247 | ||
8248 | ||
8249 | enable_win32_dll=no | |
8250 | ||
8251 | ||
81ecdfbb RW |
8252 | # Check whether --enable-shared was given. |
8253 | if test "${enable_shared+set}" = set; then : | |
8254 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
8255 | case $enableval in |
8256 | yes) enable_shared=yes ;; | |
8257 | no) enable_shared=no ;; | |
8258 | *) | |
8259 | enable_shared=no | |
8260 | # Look at the argument we got. We use all the common list separators. | |
8261 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8262 | for pkg in $enableval; do | |
8263 | IFS="$lt_save_ifs" | |
8264 | if test "X$pkg" = "X$p"; then | |
8265 | enable_shared=yes | |
8266 | fi | |
8267 | done | |
8268 | IFS="$lt_save_ifs" | |
8269 | ;; | |
8270 | esac | |
8271 | else | |
8272 | enable_shared=yes | |
81ecdfbb | 8273 | fi |
b214d478 SE |
8274 | |
8275 | ||
8276 | ||
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | ||
81ecdfbb RW |
8282 | |
8283 | # Check whether --enable-static was given. | |
8284 | if test "${enable_static+set}" = set; then : | |
8285 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
8286 | case $enableval in |
8287 | yes) enable_static=yes ;; | |
8288 | no) enable_static=no ;; | |
8289 | *) | |
8290 | enable_static=no | |
8291 | # Look at the argument we got. We use all the common list separators. | |
8292 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8293 | for pkg in $enableval; do | |
8294 | IFS="$lt_save_ifs" | |
8295 | if test "X$pkg" = "X$p"; then | |
8296 | enable_static=yes | |
8297 | fi | |
8298 | done | |
8299 | IFS="$lt_save_ifs" | |
8300 | ;; | |
8301 | esac | |
8302 | else | |
8303 | enable_static=yes | |
81ecdfbb | 8304 | fi |
b214d478 SE |
8305 | |
8306 | ||
8307 | ||
8308 | ||
8309 | ||
8310 | ||
8311 | ||
8312 | ||
8313 | ||
81ecdfbb RW |
8314 | |
8315 | # Check whether --with-pic was given. | |
8316 | if test "${with_pic+set}" = set; then : | |
8317 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
8318 | else |
8319 | pic_mode=default | |
81ecdfbb RW |
8320 | fi |
8321 | ||
b214d478 SE |
8322 | |
8323 | test -z "$pic_mode" && pic_mode=default | |
8324 | ||
8325 | ||
8326 | ||
8327 | ||
8328 | ||
8329 | ||
8330 | ||
81ecdfbb RW |
8331 | # Check whether --enable-fast-install was given. |
8332 | if test "${enable_fast_install+set}" = set; then : | |
8333 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
8334 | case $enableval in |
8335 | yes) enable_fast_install=yes ;; | |
8336 | no) enable_fast_install=no ;; | |
8337 | *) | |
8338 | enable_fast_install=no | |
8339 | # Look at the argument we got. We use all the common list separators. | |
8340 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8341 | for pkg in $enableval; do | |
8342 | IFS="$lt_save_ifs" | |
8343 | if test "X$pkg" = "X$p"; then | |
8344 | enable_fast_install=yes | |
8345 | fi | |
8346 | done | |
8347 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
8348 | ;; |
8349 | esac | |
b214d478 SE |
8350 | else |
8351 | enable_fast_install=yes | |
81ecdfbb RW |
8352 | fi |
8353 | ||
ce2cded5 | 8354 | |
ce2cded5 L |
8355 | |
8356 | ||
ce2cded5 | 8357 | |
42ecbf5e | 8358 | |
d7040cdb | 8359 | |
d7040cdb | 8360 | |
d7040cdb | 8361 | |
d7040cdb | 8362 | |
d7040cdb | 8363 | |
ce2cded5 L |
8364 | # This can be used to rebuild libtool when needed |
8365 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 8366 | |
ce2cded5 L |
8367 | # Always use our own libtool. |
8368 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 8369 | |
d7040cdb | 8370 | |
d7040cdb | 8371 | |
d7040cdb | 8372 | |
d7040cdb | 8373 | |
d7040cdb | 8374 | |
d7040cdb | 8375 | |
d7040cdb | 8376 | |
d7040cdb | 8377 | |
d7040cdb | 8378 | |
d7040cdb | 8379 | |
d7040cdb | 8380 | |
d7040cdb | 8381 | |
d7040cdb | 8382 | |
d7040cdb | 8383 | |
d7040cdb | 8384 | |
d7040cdb SE |
8385 | |
8386 | ||
8387 | ||
8388 | ||
8389 | ||
8390 | ||
8391 | ||
3725885a | 8392 | |
d7040cdb SE |
8393 | |
8394 | ||
ce2cded5 | 8395 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
8396 | |
8397 | ||
8398 | ||
8399 | ||
8400 | ||
8401 | ||
d7040cdb SE |
8402 | |
8403 | ||
8404 | ||
8405 | ||
8406 | ||
8407 | ||
8408 | ||
8409 | ||
ce2cded5 L |
8410 | if test -n "${ZSH_VERSION+set}" ; then |
8411 | setopt NO_GLOB_SUBST | |
8412 | fi | |
d7040cdb | 8413 | |
81ecdfbb RW |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8415 | $as_echo_n "checking for objdir... " >&6; } | |
8416 | if test "${lt_cv_objdir+set}" = set; then : | |
8417 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8418 | else |
8419 | rm -f .libs 2>/dev/null | |
8420 | mkdir .libs 2>/dev/null | |
8421 | if test -d .libs; then | |
8422 | lt_cv_objdir=.libs | |
8423 | else | |
8424 | # MS-DOS does not allow filenames that begin with a dot. | |
8425 | lt_cv_objdir=_libs | |
8426 | fi | |
8427 | rmdir .libs 2>/dev/null | |
8428 | fi | |
81ecdfbb RW |
8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8430 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 8431 | objdir=$lt_cv_objdir |
d7040cdb SE |
8432 | |
8433 | ||
8434 | ||
8435 | ||
8436 | ||
ce2cded5 L |
8437 | cat >>confdefs.h <<_ACEOF |
8438 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8439 | _ACEOF | |
d7040cdb SE |
8440 | |
8441 | ||
8442 | ||
8443 | ||
ce2cded5 L |
8444 | case $host_os in |
8445 | aix3*) | |
8446 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8447 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8448 | # vanish in a puff of smoke. | |
8449 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8450 | COLLECT_NAMES= | |
8451 | export COLLECT_NAMES | |
8452 | fi | |
8453 | ;; | |
8454 | esac | |
d7040cdb | 8455 | |
ce2cded5 L |
8456 | # Global variables: |
8457 | ofile=libtool | |
8458 | can_build_shared=yes | |
d7040cdb | 8459 | |
ce2cded5 L |
8460 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8461 | # which needs '.lib'). | |
8462 | libext=a | |
d7040cdb | 8463 | |
ce2cded5 | 8464 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 8465 | |
ce2cded5 L |
8466 | old_CC="$CC" |
8467 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 8468 | |
ce2cded5 L |
8469 | # Set sane defaults for various variables |
8470 | test -z "$CC" && CC=cc | |
8471 | test -z "$LTCC" && LTCC=$CC | |
8472 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8473 | test -z "$LD" && LD=ld | |
8474 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 8475 | |
ce2cded5 L |
8476 | for cc_temp in $compiler""; do |
8477 | case $cc_temp in | |
8478 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8479 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8480 | \-*) ;; | |
8481 | *) break;; | |
8482 | esac | |
8483 | done | |
3725885a | 8484 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d7040cdb SE |
8485 | |
8486 | ||
ce2cded5 L |
8487 | # Only perform the check for file, if the check method requires it |
8488 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8489 | case $deplibs_check_method in | |
8490 | file_magic*) | |
8491 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8493 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8494 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8495 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8496 | else |
8497 | case $MAGIC_CMD in | |
8498 | [\\/*] | ?:[\\/]*) | |
8499 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8500 | ;; | |
8501 | *) | |
8502 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8503 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8504 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8505 | for ac_dir in $ac_dummy; do | |
8506 | IFS="$lt_save_ifs" | |
8507 | test -z "$ac_dir" && ac_dir=. | |
8508 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8509 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8510 | if test -n "$file_magic_test_file"; then | |
8511 | case $deplibs_check_method in | |
8512 | "file_magic "*) | |
8513 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8514 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8515 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8516 | $EGREP "$file_magic_regex" > /dev/null; then | |
8517 | : | |
8518 | else | |
8519 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8520 | |
ce2cded5 L |
8521 | *** Warning: the command libtool uses to detect shared libraries, |
8522 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8523 | *** The result is that libtool may fail to recognize shared libraries | |
8524 | *** as such. This will affect the creation of libtool libraries that | |
8525 | *** depend on shared libraries, but programs linked with such libtool | |
8526 | *** libraries will work regardless of this problem. Nevertheless, you | |
8527 | *** may want to report the problem to your system manager and/or to | |
8528 | *** bug-libtool@gnu.org | |
d7040cdb | 8529 | |
ce2cded5 L |
8530 | _LT_EOF |
8531 | fi ;; | |
8532 | esac | |
8533 | fi | |
8534 | break | |
8535 | fi | |
8536 | done | |
8537 | IFS="$lt_save_ifs" | |
8538 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8539 | ;; | |
8540 | esac | |
8541 | fi | |
d7040cdb | 8542 | |
ce2cded5 L |
8543 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8544 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8546 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8547 | else |
81ecdfbb RW |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8549 | $as_echo "no" >&6; } | |
ce2cded5 | 8550 | fi |
d7040cdb SE |
8551 | |
8552 | ||
8553 | ||
8554 | ||
8555 | ||
ce2cded5 L |
8556 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8557 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8559 | $as_echo_n "checking for file... " >&6; } | |
8560 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8561 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8562 | else |
8563 | case $MAGIC_CMD in | |
8564 | [\\/*] | ?:[\\/]*) | |
8565 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8566 | ;; | |
8567 | *) | |
8568 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8569 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8570 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8571 | for ac_dir in $ac_dummy; do | |
8572 | IFS="$lt_save_ifs" | |
8573 | test -z "$ac_dir" && ac_dir=. | |
8574 | if test -f $ac_dir/file; then | |
8575 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8576 | if test -n "$file_magic_test_file"; then | |
8577 | case $deplibs_check_method in | |
8578 | "file_magic "*) | |
8579 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8580 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8581 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8582 | $EGREP "$file_magic_regex" > /dev/null; then | |
8583 | : | |
8584 | else | |
8585 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8586 | |
ce2cded5 L |
8587 | *** Warning: the command libtool uses to detect shared libraries, |
8588 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8589 | *** The result is that libtool may fail to recognize shared libraries | |
8590 | *** as such. This will affect the creation of libtool libraries that | |
8591 | *** depend on shared libraries, but programs linked with such libtool | |
8592 | *** libraries will work regardless of this problem. Nevertheless, you | |
8593 | *** may want to report the problem to your system manager and/or to | |
8594 | *** bug-libtool@gnu.org | |
d7040cdb | 8595 | |
ce2cded5 L |
8596 | _LT_EOF |
8597 | fi ;; | |
8598 | esac | |
8599 | fi | |
8600 | break | |
8601 | fi | |
8602 | done | |
8603 | IFS="$lt_save_ifs" | |
8604 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8605 | ;; | |
8606 | esac | |
8607 | fi | |
d7040cdb | 8608 | |
ce2cded5 L |
8609 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8610 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8612 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8613 | else |
81ecdfbb RW |
8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8615 | $as_echo "no" >&6; } | |
ce2cded5 | 8616 | fi |
d7040cdb SE |
8617 | |
8618 | ||
ce2cded5 L |
8619 | else |
8620 | MAGIC_CMD=: | |
8621 | fi | |
8622 | fi | |
d7040cdb | 8623 | |
ce2cded5 L |
8624 | fi |
8625 | ;; | |
8626 | esac | |
d7040cdb | 8627 | |
ce2cded5 | 8628 | # Use C for the default configuration in the libtool script |
d7040cdb | 8629 | |
ce2cded5 L |
8630 | lt_save_CC="$CC" |
8631 | ac_ext=c | |
8632 | ac_cpp='$CPP $CPPFLAGS' | |
8633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
8636 | |
8637 | ||
ce2cded5 L |
8638 | # Source file extension for C test sources. |
8639 | ac_ext=c | |
d7040cdb | 8640 | |
ce2cded5 L |
8641 | # Object file extension for compiled C test sources. |
8642 | objext=o | |
8643 | objext=$objext | |
d7040cdb | 8644 | |
ce2cded5 L |
8645 | # Code to be used in simple compile tests |
8646 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 8647 | |
ce2cded5 L |
8648 | # Code to be used in simple link tests |
8649 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
8650 | |
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
ce2cded5 L |
8657 | # If no C compiler was specified, use CC. |
8658 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 8659 | |
ce2cded5 L |
8660 | # If no C compiler flags were specified, use CFLAGS. |
8661 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 8662 | |
ce2cded5 L |
8663 | # Allow CC to be a program name with arguments. |
8664 | compiler=$CC | |
d7040cdb | 8665 | |
ce2cded5 L |
8666 | # Save the default compiler, since it gets overwritten when the other |
8667 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8668 | compiler_DEFAULT=$CC | |
d7040cdb | 8669 | |
ce2cded5 L |
8670 | # save warnings/boilerplate of simple test code |
8671 | ac_outfile=conftest.$ac_objext | |
8672 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8673 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8674 | _lt_compiler_boilerplate=`cat conftest.err` | |
8675 | $RM conftest* | |
d7040cdb | 8676 | |
ce2cded5 L |
8677 | ac_outfile=conftest.$ac_objext |
8678 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8679 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8680 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 8681 | $RM -r conftest* |
d7040cdb SE |
8682 | |
8683 | ||
ce2cded5 L |
8684 | ## CAVEAT EMPTOR: |
8685 | ## There is no encapsulation within the following macros, do not change | |
8686 | ## the running order or otherwise move them around unless you know exactly | |
8687 | ## what you are doing... | |
8688 | if test -n "$compiler"; then | |
d7040cdb | 8689 | |
ce2cded5 | 8690 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 8691 | |
ce2cded5 | 8692 | if test "$GCC" = yes; then |
3725885a RW |
8693 | case $cc_basename in |
8694 | nvcc*) | |
8695 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8696 | *) | |
8697 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8698 | esac | |
d7040cdb | 8699 | |
81ecdfbb RW |
8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8701 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8702 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8703 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8704 | else |
8705 | lt_cv_prog_compiler_rtti_exceptions=no | |
8706 | ac_outfile=conftest.$ac_objext | |
8707 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8708 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8709 | # Insert the option either (1) after the last *FLAGS variable, or | |
8710 | # (2) before a word containing "conftest.", or (3) at the end. | |
8711 | # Note that $ac_compile itself does not contain backslashes and begins | |
8712 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8713 | # The option is referenced via a variable to avoid confusing sed. | |
8714 | lt_compile=`echo "$ac_compile" | $SED \ | |
8715 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8716 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8717 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8718 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8719 | (eval "$lt_compile" 2>conftest.err) |
8720 | ac_status=$? | |
8721 | cat conftest.err >&5 | |
3725885a | 8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8723 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8724 | # The compiler can only warn and ignore the option if not recognized | |
8725 | # So say no if there are warnings other than the usual output. | |
3725885a | 8726 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8727 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8728 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8729 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8730 | fi | |
8731 | fi | |
8732 | $RM conftest* | |
d7040cdb | 8733 | |
ce2cded5 | 8734 | fi |
81ecdfbb RW |
8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8736 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 8737 | |
ce2cded5 L |
8738 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8739 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8740 | else | |
8741 | : | |
8742 | fi | |
d7040cdb | 8743 | |
ce2cded5 | 8744 | fi |
d7040cdb SE |
8745 | |
8746 | ||
8747 | ||
8748 | ||
8749 | ||
8750 | ||
ce2cded5 L |
8751 | lt_prog_compiler_wl= |
8752 | lt_prog_compiler_pic= | |
8753 | lt_prog_compiler_static= | |
d7040cdb | 8754 | |
81ecdfbb RW |
8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8756 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 8757 | |
ce2cded5 L |
8758 | if test "$GCC" = yes; then |
8759 | lt_prog_compiler_wl='-Wl,' | |
8760 | lt_prog_compiler_static='-static' | |
d7040cdb | 8761 | |
ce2cded5 L |
8762 | case $host_os in |
8763 | aix*) | |
8764 | # All AIX code is PIC. | |
8765 | if test "$host_cpu" = ia64; then | |
8766 | # AIX 5 now supports IA64 processor | |
8767 | lt_prog_compiler_static='-Bstatic' | |
8768 | fi | |
52204357 | 8769 | lt_prog_compiler_pic='-fPIC' |
ce2cded5 | 8770 | ;; |
d7040cdb | 8771 | |
ce2cded5 | 8772 | amigaos*) |
b214d478 SE |
8773 | case $host_cpu in |
8774 | powerpc) | |
8775 | # see comment about AmigaOS4 .so support | |
8776 | lt_prog_compiler_pic='-fPIC' | |
8777 | ;; | |
8778 | m68k) | |
8779 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8780 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8781 | # like `-m68040'. | |
8782 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8783 | ;; | |
8784 | esac | |
ce2cded5 | 8785 | ;; |
d7040cdb | 8786 | |
ce2cded5 L |
8787 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8788 | # PIC is the default for these OSes. | |
8789 | ;; | |
d7040cdb | 8790 | |
b214d478 | 8791 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8792 | # This hack is so that the source file can tell whether it is being |
8793 | # built for inclusion in a dll (and should export symbols for example). | |
8794 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8795 | # (--disable-auto-import) libraries | |
8796 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8797 | ;; | |
d7040cdb | 8798 | |
ce2cded5 L |
8799 | darwin* | rhapsody*) |
8800 | # PIC is the default on this platform | |
8801 | # Common symbols not allowed in MH_DYLIB files | |
8802 | lt_prog_compiler_pic='-fno-common' | |
8803 | ;; | |
d7040cdb | 8804 | |
3725885a RW |
8805 | haiku*) |
8806 | # PIC is the default for Haiku. | |
8807 | # The "-static" flag exists, but is broken. | |
8808 | lt_prog_compiler_static= | |
8809 | ;; | |
8810 | ||
ce2cded5 | 8811 | hpux*) |
b214d478 SE |
8812 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8813 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8814 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8815 | case $host_cpu in |
b214d478 | 8816 | hppa*64*) |
ce2cded5 L |
8817 | # +Z the default |
8818 | ;; | |
8819 | *) | |
8820 | lt_prog_compiler_pic='-fPIC' | |
8821 | ;; | |
8822 | esac | |
8823 | ;; | |
d7040cdb | 8824 | |
ce2cded5 L |
8825 | interix[3-9]*) |
8826 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8827 | # Instead, we relocate shared libraries at runtime. | |
8828 | ;; | |
d7040cdb | 8829 | |
ce2cded5 L |
8830 | msdosdjgpp*) |
8831 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8832 | # on systems that don't support them. | |
8833 | lt_prog_compiler_can_build_shared=no | |
8834 | enable_shared=no | |
8835 | ;; | |
d7040cdb | 8836 | |
ce2cded5 L |
8837 | *nto* | *qnx*) |
8838 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8839 | # it will coredump. | |
8840 | lt_prog_compiler_pic='-fPIC -shared' | |
8841 | ;; | |
d7040cdb | 8842 | |
ce2cded5 L |
8843 | sysv4*MP*) |
8844 | if test -d /usr/nec; then | |
8845 | lt_prog_compiler_pic=-Kconform_pic | |
8846 | fi | |
8847 | ;; | |
d7040cdb | 8848 | |
ce2cded5 L |
8849 | *) |
8850 | lt_prog_compiler_pic='-fPIC' | |
8851 | ;; | |
8852 | esac | |
3725885a RW |
8853 | |
8854 | case $cc_basename in | |
8855 | nvcc*) # Cuda Compiler Driver 2.2 | |
8856 | lt_prog_compiler_wl='-Xlinker ' | |
8857 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8858 | ;; | |
8859 | esac | |
ce2cded5 L |
8860 | else |
8861 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8862 | case $host_os in | |
8863 | aix*) | |
8864 | lt_prog_compiler_wl='-Wl,' | |
8865 | if test "$host_cpu" = ia64; then | |
8866 | # AIX 5 now supports IA64 processor | |
8867 | lt_prog_compiler_static='-Bstatic' | |
8868 | else | |
8869 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8870 | fi | |
8871 | ;; | |
d7040cdb | 8872 | |
b214d478 | 8873 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8874 | # This hack is so that the source file can tell whether it is being |
8875 | # built for inclusion in a dll (and should export symbols for example). | |
8876 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8877 | ;; | |
d7040cdb | 8878 | |
ce2cded5 L |
8879 | hpux9* | hpux10* | hpux11*) |
8880 | lt_prog_compiler_wl='-Wl,' | |
8881 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8882 | # not for PA HP-UX. | |
8883 | case $host_cpu in | |
8884 | hppa*64*|ia64*) | |
8885 | # +Z the default | |
8886 | ;; | |
8887 | *) | |
8888 | lt_prog_compiler_pic='+Z' | |
8889 | ;; | |
8890 | esac | |
8891 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8892 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8893 | ;; | |
d7040cdb | 8894 | |
ce2cded5 L |
8895 | irix5* | irix6* | nonstopux*) |
8896 | lt_prog_compiler_wl='-Wl,' | |
8897 | # PIC (with -KPIC) is the default. | |
8898 | lt_prog_compiler_static='-non_shared' | |
8899 | ;; | |
d7040cdb | 8900 | |
58e24671 | 8901 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8902 | case $cc_basename in |
b214d478 SE |
8903 | # old Intel for x86_64 which still supported -KPIC. |
8904 | ecc*) | |
ce2cded5 L |
8905 | lt_prog_compiler_wl='-Wl,' |
8906 | lt_prog_compiler_pic='-KPIC' | |
8907 | lt_prog_compiler_static='-static' | |
8908 | ;; | |
b214d478 SE |
8909 | # icc used to be incompatible with GCC. |
8910 | # ICC 10 doesn't accept -KPIC any more. | |
8911 | icc* | ifort*) | |
8912 | lt_prog_compiler_wl='-Wl,' | |
8913 | lt_prog_compiler_pic='-fPIC' | |
8914 | lt_prog_compiler_static='-static' | |
8915 | ;; | |
8916 | # Lahey Fortran 8.1. | |
8917 | lf95*) | |
8918 | lt_prog_compiler_wl='-Wl,' | |
8919 | lt_prog_compiler_pic='--shared' | |
8920 | lt_prog_compiler_static='--static' | |
8921 | ;; | |
3725885a | 8922 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
8923 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8924 | # which looks to be a dead project) | |
8925 | lt_prog_compiler_wl='-Wl,' | |
8926 | lt_prog_compiler_pic='-fpic' | |
8927 | lt_prog_compiler_static='-Bstatic' | |
8928 | ;; | |
8929 | ccc*) | |
8930 | lt_prog_compiler_wl='-Wl,' | |
8931 | # All Alpha code is PIC. | |
8932 | lt_prog_compiler_static='-non_shared' | |
8933 | ;; | |
3725885a RW |
8934 | xl* | bgxl* | bgf* | mpixl*) |
8935 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
b214d478 SE |
8936 | lt_prog_compiler_wl='-Wl,' |
8937 | lt_prog_compiler_pic='-qpic' | |
8938 | lt_prog_compiler_static='-qstaticlink' | |
8939 | ;; | |
ce2cded5 L |
8940 | *) |
8941 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8942 | *Sun\ F* | *Sun*Fortran*) |
8943 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
8944 | lt_prog_compiler_pic='-KPIC' |
8945 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8946 | lt_prog_compiler_wl='' |
ce2cded5 | 8947 | ;; |
3725885a RW |
8948 | *Sun\ C*) |
8949 | # Sun C 5.9 | |
ce2cded5 L |
8950 | lt_prog_compiler_pic='-KPIC' |
8951 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8952 | lt_prog_compiler_wl='-Wl,' |
ce2cded5 L |
8953 | ;; |
8954 | esac | |
8955 | ;; | |
8956 | esac | |
8957 | ;; | |
d7040cdb | 8958 | |
ce2cded5 L |
8959 | newsos6) |
8960 | lt_prog_compiler_pic='-KPIC' | |
8961 | lt_prog_compiler_static='-Bstatic' | |
8962 | ;; | |
d7040cdb | 8963 | |
ce2cded5 L |
8964 | *nto* | *qnx*) |
8965 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8966 | # it will coredump. | |
8967 | lt_prog_compiler_pic='-fPIC -shared' | |
8968 | ;; | |
d7040cdb | 8969 | |
ce2cded5 L |
8970 | osf3* | osf4* | osf5*) |
8971 | lt_prog_compiler_wl='-Wl,' | |
8972 | # All OSF/1 code is PIC. | |
8973 | lt_prog_compiler_static='-non_shared' | |
8974 | ;; | |
d7040cdb | 8975 | |
ce2cded5 L |
8976 | rdos*) |
8977 | lt_prog_compiler_static='-non_shared' | |
8978 | ;; | |
d7040cdb | 8979 | |
ce2cded5 L |
8980 | solaris*) |
8981 | lt_prog_compiler_pic='-KPIC' | |
8982 | lt_prog_compiler_static='-Bstatic' | |
8983 | case $cc_basename in | |
8984 | f77* | f90* | f95*) | |
8985 | lt_prog_compiler_wl='-Qoption ld ';; | |
8986 | *) | |
8987 | lt_prog_compiler_wl='-Wl,';; | |
8988 | esac | |
8989 | ;; | |
d7040cdb | 8990 | |
ce2cded5 L |
8991 | sunos4*) |
8992 | lt_prog_compiler_wl='-Qoption ld ' | |
8993 | lt_prog_compiler_pic='-PIC' | |
8994 | lt_prog_compiler_static='-Bstatic' | |
8995 | ;; | |
d7040cdb | 8996 | |
ce2cded5 L |
8997 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8998 | lt_prog_compiler_wl='-Wl,' | |
8999 | lt_prog_compiler_pic='-KPIC' | |
9000 | lt_prog_compiler_static='-Bstatic' | |
9001 | ;; | |
d7040cdb | 9002 | |
ce2cded5 L |
9003 | sysv4*MP*) |
9004 | if test -d /usr/nec ;then | |
9005 | lt_prog_compiler_pic='-Kconform_pic' | |
9006 | lt_prog_compiler_static='-Bstatic' | |
9007 | fi | |
9008 | ;; | |
d7040cdb | 9009 | |
ce2cded5 L |
9010 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9011 | lt_prog_compiler_wl='-Wl,' | |
9012 | lt_prog_compiler_pic='-KPIC' | |
9013 | lt_prog_compiler_static='-Bstatic' | |
9014 | ;; | |
d7040cdb | 9015 | |
ce2cded5 L |
9016 | unicos*) |
9017 | lt_prog_compiler_wl='-Wl,' | |
9018 | lt_prog_compiler_can_build_shared=no | |
9019 | ;; | |
d7040cdb | 9020 | |
ce2cded5 L |
9021 | uts4*) |
9022 | lt_prog_compiler_pic='-pic' | |
9023 | lt_prog_compiler_static='-Bstatic' | |
9024 | ;; | |
d7040cdb | 9025 | |
ce2cded5 L |
9026 | *) |
9027 | lt_prog_compiler_can_build_shared=no | |
9028 | ;; | |
9029 | esac | |
9030 | fi | |
d7040cdb | 9031 | |
ce2cded5 L |
9032 | case $host_os in |
9033 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9034 | *djgpp*) | |
9035 | lt_prog_compiler_pic= | |
9036 | ;; | |
9037 | *) | |
9038 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9039 | ;; | |
9040 | esac | |
81ecdfbb RW |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
9042 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
9043 | |
9044 | ||
9045 | ||
9046 | ||
9047 | ||
9048 | ||
ce2cded5 L |
9049 | # |
9050 | # Check to make sure the PIC flag actually works. | |
9051 | # | |
9052 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
9054 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9055 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
9056 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 9057 | else |
b214d478 | 9058 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
9059 | ac_outfile=conftest.$ac_objext |
9060 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9061 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9062 | # Insert the option either (1) after the last *FLAGS variable, or | |
9063 | # (2) before a word containing "conftest.", or (3) at the end. | |
9064 | # Note that $ac_compile itself does not contain backslashes and begins | |
9065 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9066 | # The option is referenced via a variable to avoid confusing sed. | |
9067 | lt_compile=`echo "$ac_compile" | $SED \ | |
9068 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9069 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9070 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9071 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9072 | (eval "$lt_compile" 2>conftest.err) |
9073 | ac_status=$? | |
9074 | cat conftest.err >&5 | |
3725885a | 9075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9076 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9077 | # The compiler can only warn and ignore the option if not recognized | |
9078 | # So say no if there are warnings other than the usual output. | |
3725885a | 9079 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
9080 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9081 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9082 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
9083 | fi |
9084 | fi | |
9085 | $RM conftest* | |
d7040cdb | 9086 | |
ce2cded5 | 9087 | fi |
81ecdfbb RW |
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9089 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
ce2cded5 | 9090 | |
b214d478 | 9091 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
9092 | case $lt_prog_compiler_pic in |
9093 | "" | " "*) ;; | |
9094 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9095 | esac | |
9096 | else | |
9097 | lt_prog_compiler_pic= | |
9098 | lt_prog_compiler_can_build_shared=no | |
9099 | fi | |
9100 | ||
9101 | fi | |
d7040cdb SE |
9102 | |
9103 | ||
9104 | ||
9105 | ||
9106 | ||
9107 | ||
ce2cded5 L |
9108 | # |
9109 | # Check to make sure the static flag actually works. | |
9110 | # | |
9111 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9113 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9114 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
9115 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 9116 | else |
b214d478 | 9117 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
9118 | save_LDFLAGS="$LDFLAGS" |
9119 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9120 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9121 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9122 | # The linker can only warn and ignore the option if not recognized | |
9123 | # So say no if there are warnings | |
9124 | if test -s conftest.err; then | |
9125 | # Append any errors to the config.log. | |
9126 | cat conftest.err 1>&5 | |
3725885a | 9127 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
9128 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9129 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 9130 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9131 | fi |
9132 | else | |
b214d478 | 9133 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
9134 | fi |
9135 | fi | |
b214d478 | 9136 | $RM -r conftest* |
ce2cded5 | 9137 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 9138 | |
ce2cded5 | 9139 | fi |
81ecdfbb RW |
9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9141 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 9142 | |
b214d478 | 9143 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
9144 | : |
9145 | else | |
9146 | lt_prog_compiler_static= | |
9147 | fi | |
d7040cdb SE |
9148 | |
9149 | ||
9150 | ||
9151 | ||
9152 | ||
9153 | ||
9154 | ||
81ecdfbb RW |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9156 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9157 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9158 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9159 | else |
9160 | lt_cv_prog_compiler_c_o=no | |
9161 | $RM -r conftest 2>/dev/null | |
9162 | mkdir conftest | |
9163 | cd conftest | |
9164 | mkdir out | |
9165 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9166 | |
ce2cded5 L |
9167 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9168 | # Insert the option either (1) after the last *FLAGS variable, or | |
9169 | # (2) before a word containing "conftest.", or (3) at the end. | |
9170 | # Note that $ac_compile itself does not contain backslashes and begins | |
9171 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9172 | lt_compile=`echo "$ac_compile" | $SED \ | |
9173 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9174 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9175 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9176 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9177 | (eval "$lt_compile" 2>out/conftest.err) |
9178 | ac_status=$? | |
9179 | cat out/conftest.err >&5 | |
3725885a | 9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9181 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9182 | then | |
9183 | # The compiler can only warn and ignore the option if not recognized | |
9184 | # So say no if there are warnings | |
3725885a | 9185 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9186 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9187 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9188 | lt_cv_prog_compiler_c_o=yes | |
9189 | fi | |
9190 | fi | |
9191 | chmod u+w . 2>&5 | |
9192 | $RM conftest* | |
9193 | # SGI C++ compiler will create directory out/ii_files/ for | |
9194 | # template instantiation | |
9195 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9196 | $RM out/* && rmdir out | |
9197 | cd .. | |
9198 | $RM -r conftest | |
9199 | $RM conftest* | |
d7040cdb | 9200 | |
ce2cded5 | 9201 | fi |
81ecdfbb RW |
9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9203 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
9204 | |
9205 | ||
9206 | ||
9207 | ||
9208 | ||
9209 | ||
81ecdfbb RW |
9210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9211 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9212 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9213 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9214 | else |
9215 | lt_cv_prog_compiler_c_o=no | |
9216 | $RM -r conftest 2>/dev/null | |
9217 | mkdir conftest | |
9218 | cd conftest | |
9219 | mkdir out | |
9220 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9221 | |
ce2cded5 L |
9222 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9223 | # Insert the option either (1) after the last *FLAGS variable, or | |
9224 | # (2) before a word containing "conftest.", or (3) at the end. | |
9225 | # Note that $ac_compile itself does not contain backslashes and begins | |
9226 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9227 | lt_compile=`echo "$ac_compile" | $SED \ | |
9228 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9229 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9230 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 9231 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
9232 | (eval "$lt_compile" 2>out/conftest.err) |
9233 | ac_status=$? | |
9234 | cat out/conftest.err >&5 | |
3725885a | 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9236 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9237 | then | |
9238 | # The compiler can only warn and ignore the option if not recognized | |
9239 | # So say no if there are warnings | |
3725885a | 9240 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
9241 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9242 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9243 | lt_cv_prog_compiler_c_o=yes | |
9244 | fi | |
9245 | fi | |
9246 | chmod u+w . 2>&5 | |
9247 | $RM conftest* | |
9248 | # SGI C++ compiler will create directory out/ii_files/ for | |
9249 | # template instantiation | |
9250 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9251 | $RM out/* && rmdir out | |
9252 | cd .. | |
9253 | $RM -r conftest | |
9254 | $RM conftest* | |
9255 | ||
9256 | fi | |
81ecdfbb RW |
9257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9258 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
9259 | |
9260 | ||
9261 | ||
9262 | ||
9263 | hard_links="nottested" | |
9264 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9265 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
9266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9267 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
9268 | hard_links=yes |
9269 | $RM conftest* | |
9270 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9271 | touch conftest.a | |
9272 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9273 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9275 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 9276 | if test "$hard_links" = no; then |
81ecdfbb RW |
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9278 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 9279 | need_locks=warn |
d7040cdb | 9280 | fi |
d7040cdb | 9281 | else |
ce2cded5 | 9282 | need_locks=no |
d7040cdb | 9283 | fi |
d7040cdb | 9284 | |
d7040cdb | 9285 | |
d7040cdb | 9286 | |
d7040cdb | 9287 | |
d7040cdb | 9288 | |
d7040cdb | 9289 | |
81ecdfbb RW |
9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9291 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 9292 | |
ce2cded5 L |
9293 | runpath_var= |
9294 | allow_undefined_flag= | |
9295 | always_export_symbols=no | |
9296 | archive_cmds= | |
9297 | archive_expsym_cmds= | |
9298 | compiler_needs_object=no | |
9299 | enable_shared_with_static_runtimes=no | |
9300 | export_dynamic_flag_spec= | |
9301 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9302 | hardcode_automatic=no | |
9303 | hardcode_direct=no | |
9304 | hardcode_direct_absolute=no | |
9305 | hardcode_libdir_flag_spec= | |
9306 | hardcode_libdir_flag_spec_ld= | |
9307 | hardcode_libdir_separator= | |
9308 | hardcode_minus_L=no | |
9309 | hardcode_shlibpath_var=unsupported | |
9310 | inherit_rpath=no | |
9311 | link_all_deplibs=unknown | |
9312 | module_cmds= | |
9313 | module_expsym_cmds= | |
9314 | old_archive_from_new_cmds= | |
9315 | old_archive_from_expsyms_cmds= | |
9316 | thread_safe_flag_spec= | |
9317 | whole_archive_flag_spec= | |
9318 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9319 | # included in the symbol list | |
9320 | include_expsyms= | |
9321 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9322 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9323 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9324 | # as well as any symbol that contains `d'. | |
b214d478 | 9325 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
9326 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9327 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9328 | # the symbol is explicitly referenced. Since portable code cannot | |
9329 | # rely on this symbol name, it's probably fine to never include it in | |
9330 | # preloaded symbol tables. | |
b214d478 | 9331 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 9332 | extract_expsyms_cmds= |
d7040cdb | 9333 | |
ce2cded5 | 9334 | case $host_os in |
b214d478 | 9335 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9336 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9337 | # When not using gcc, we currently assume that we are using | |
9338 | # Microsoft Visual C++. | |
9339 | if test "$GCC" != yes; then | |
9340 | with_gnu_ld=no | |
9341 | fi | |
d7040cdb | 9342 | ;; |
ce2cded5 L |
9343 | interix*) |
9344 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9345 | with_gnu_ld=yes | |
9346 | ;; | |
9347 | openbsd*) | |
9348 | with_gnu_ld=no | |
d7040cdb SE |
9349 | ;; |
9350 | esac | |
d7040cdb | 9351 | |
ce2cded5 | 9352 | ld_shlibs=yes |
3725885a RW |
9353 | |
9354 | # On some targets, GNU ld is compatible enough with the native linker | |
9355 | # that we're better off using the native interface for both. | |
9356 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 9357 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
9358 | case $host_os in |
9359 | aix*) | |
9360 | # The AIX port of GNU ld has always aspired to compatibility | |
9361 | # with the native linker. However, as the warning in the GNU ld | |
9362 | # block says, versions before 2.19.5* couldn't really create working | |
9363 | # shared libraries, regardless of the interface used. | |
9364 | case `$LD -v 2>&1` in | |
9365 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9366 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9367 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9368 | *) | |
9369 | lt_use_gnu_ld_interface=yes | |
9370 | ;; | |
9371 | esac | |
9372 | ;; | |
9373 | *) | |
9374 | lt_use_gnu_ld_interface=yes | |
9375 | ;; | |
9376 | esac | |
9377 | fi | |
9378 | ||
9379 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
9380 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9381 | wlarc='${wl}' | |
d7040cdb | 9382 | |
ce2cded5 L |
9383 | # Set some defaults for GNU ld with shared library support. These |
9384 | # are reset later if shared libraries are not supported. Putting them | |
9385 | # here allows them to be overridden if necessary. | |
9386 | runpath_var=LD_RUN_PATH | |
9387 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9388 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9389 | # ancient GNU ld didn't support --whole-archive et. al. | |
9390 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9391 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9392 | else | |
9393 | whole_archive_flag_spec= | |
9394 | fi | |
9395 | supports_anon_versioning=no | |
9396 | case `$LD -v 2>&1` in | |
3725885a | 9397 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
9398 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9399 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9400 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9401 | *\ 2.11.*) ;; # other 2.11 versions | |
9402 | *) supports_anon_versioning=yes ;; | |
9403 | esac | |
d7040cdb | 9404 | |
ce2cded5 L |
9405 | # See if GNU ld supports shared libraries. |
9406 | case $host_os in | |
50e7d84b | 9407 | aix[3-9]*) |
ce2cded5 L |
9408 | # On AIX/PPC, the GNU linker is very broken |
9409 | if test "$host_cpu" != ia64; then | |
9410 | ld_shlibs=no | |
9411 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9412 | |
3725885a | 9413 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
9414 | *** to be unable to reliably create shared libraries on AIX. |
9415 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
9416 | *** really care for shared libraries, you may want to install binutils |
9417 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9418 | *** You will then need to restart the configuration process. | |
d7040cdb | 9419 | |
ce2cded5 L |
9420 | _LT_EOF |
9421 | fi | |
d7040cdb | 9422 | ;; |
d7040cdb | 9423 | |
ce2cded5 | 9424 | amigaos*) |
b214d478 SE |
9425 | case $host_cpu in |
9426 | powerpc) | |
9427 | # see comment about AmigaOS4 .so support | |
9428 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9429 | archive_expsym_cmds='' | |
9430 | ;; | |
9431 | m68k) | |
9432 | 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)' | |
9433 | hardcode_libdir_flag_spec='-L$libdir' | |
9434 | hardcode_minus_L=yes | |
9435 | ;; | |
9436 | esac | |
ce2cded5 | 9437 | ;; |
d7040cdb | 9438 | |
ce2cded5 L |
9439 | beos*) |
9440 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9441 | allow_undefined_flag=unsupported | |
9442 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9443 | # support --undefined. This deserves some investigation. FIXME | |
9444 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9445 | else | |
9446 | ld_shlibs=no | |
9447 | fi | |
9448 | ;; | |
d7040cdb | 9449 | |
b214d478 | 9450 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9451 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9452 | # as there is no search path for DLLs. | |
9453 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 9454 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
9455 | allow_undefined_flag=unsupported |
9456 | always_export_symbols=no | |
9457 | enable_shared_with_static_runtimes=yes | |
9458 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9459 | ||
9460 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9461 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9462 | # If the export-symbols file already is a .def file (1st line | |
9463 | # is EXPORTS), use it as is; otherwise, prepend... | |
9464 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9465 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 9466 | else |
ce2cded5 L |
9467 | echo EXPORTS > $output_objdir/$soname.def; |
9468 | cat $export_symbols >> $output_objdir/$soname.def; | |
9469 | fi~ | |
9470 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9471 | else | |
9472 | ld_shlibs=no | |
9473 | fi | |
9474 | ;; | |
d7040cdb | 9475 | |
3725885a RW |
9476 | haiku*) |
9477 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9478 | link_all_deplibs=yes | |
9479 | ;; | |
9480 | ||
ce2cded5 L |
9481 | interix[3-9]*) |
9482 | hardcode_direct=no | |
9483 | hardcode_shlibpath_var=no | |
9484 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9485 | export_dynamic_flag_spec='${wl}-E' | |
9486 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9487 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9488 | # default) and relocated if they conflict, which is a slow very memory | |
9489 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9490 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9491 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9492 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9493 | 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' | |
9494 | ;; | |
d7040cdb | 9495 | |
58e24671 | 9496 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
9497 | tmp_diet=no |
9498 | if test "$host_os" = linux-dietlibc; then | |
9499 | case $cc_basename in | |
9500 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9501 | esac | |
9502 | fi | |
9503 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9504 | && test "$tmp_diet" = no | |
9505 | then | |
6e733cce | 9506 | tmp_addflag=' $pic_flag' |
b214d478 | 9507 | tmp_sharedflag='-shared' |
ce2cded5 L |
9508 | case $cc_basename,$host_cpu in |
9509 | pgcc*) # Portland Group C compiler | |
3725885a | 9510 | 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 |
9511 | tmp_addflag=' $pic_flag' |
9512 | ;; | |
3725885a RW |
9513 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9514 | # Portland Group f77 and f90 compilers | |
9515 | 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 |
9516 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9517 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9518 | tmp_addflag=' -i_dynamic' ;; | |
9519 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9520 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9521 | ifc* | ifort*) # Intel Fortran compiler | |
9522 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
9523 | lf95*) # Lahey Fortran 8.1 |
9524 | whole_archive_flag_spec= | |
9525 | tmp_sharedflag='--shared' ;; | |
3725885a | 9526 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
b214d478 SE |
9527 | tmp_sharedflag='-qmkshrobj' |
9528 | tmp_addflag= ;; | |
3725885a RW |
9529 | nvcc*) # Cuda Compiler Driver 2.2 |
9530 | 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' | |
9531 | compiler_needs_object=yes | |
9532 | ;; | |
ce2cded5 L |
9533 | esac |
9534 | case `$CC -V 2>&1 | sed 5q` in | |
9535 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 9536 | 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 |
9537 | compiler_needs_object=yes |
9538 | tmp_sharedflag='-G' ;; | |
9539 | *Sun\ F*) # Sun Fortran 8.3 | |
9540 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
9541 | esac |
9542 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 9543 | |
ce2cded5 L |
9544 | if test "x$supports_anon_versioning" = xyes; then |
9545 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9546 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9547 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9548 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9549 | fi | |
b214d478 SE |
9550 | |
9551 | case $cc_basename in | |
3725885a | 9552 | xlf* | bgf* | bgxlf* | mpixlf*) |
b214d478 SE |
9553 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9554 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9555 | hardcode_libdir_flag_spec= | |
9556 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9557 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9558 | if test "x$supports_anon_versioning" = xyes; then | |
9559 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9560 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9561 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9562 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9563 | fi | |
9564 | ;; | |
9565 | esac | |
ce2cded5 L |
9566 | else |
9567 | ld_shlibs=no | |
9568 | fi | |
9569 | ;; | |
d7040cdb | 9570 | |
ce2cded5 L |
9571 | netbsd*) |
9572 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9573 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9574 | wlarc= | |
9575 | else | |
9576 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9577 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9578 | fi | |
9579 | ;; | |
9580 | ||
9581 | solaris*) | |
9582 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9583 | ld_shlibs=no | |
9584 | cat <<_LT_EOF 1>&2 | |
9585 | ||
9586 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9587 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9588 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9589 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9590 | *** your PATH or compiler configuration so that the native linker is | |
9591 | *** used, and then restart. | |
9592 | ||
9593 | _LT_EOF | |
9594 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9595 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9596 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9597 | else | |
9598 | ld_shlibs=no | |
9599 | fi | |
9600 | ;; | |
9601 | ||
9602 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9603 | case `$LD -v 2>&1` in | |
9604 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9605 | ld_shlibs=no | |
9606 | cat <<_LT_EOF 1>&2 | |
9607 | ||
9608 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9609 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9610 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9611 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9612 | *** your PATH or compiler configuration so that the native linker is | |
9613 | *** used, and then restart. | |
9614 | ||
9615 | _LT_EOF | |
9616 | ;; | |
9617 | *) | |
9618 | # For security reasons, it is highly recommended that you always | |
9619 | # use absolute paths for naming shared libraries, and exclude the | |
9620 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9621 | # requires that you compile everything twice, which is a pain. | |
9622 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9623 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9624 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9625 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9626 | else | |
9627 | ld_shlibs=no | |
9628 | fi | |
9629 | ;; | |
9630 | esac | |
9631 | ;; | |
9632 | ||
9633 | sunos4*) | |
9634 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9635 | wlarc= | |
9636 | hardcode_direct=yes | |
9637 | hardcode_shlibpath_var=no | |
9638 | ;; | |
9639 | ||
9640 | *) | |
9641 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9642 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9643 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9644 | else | |
9645 | ld_shlibs=no | |
9646 | fi | |
9647 | ;; | |
9648 | esac | |
9649 | ||
9650 | if test "$ld_shlibs" = no; then | |
9651 | runpath_var= | |
9652 | hardcode_libdir_flag_spec= | |
9653 | export_dynamic_flag_spec= | |
9654 | whole_archive_flag_spec= | |
9655 | fi | |
9656 | else | |
9657 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9658 | case $host_os in | |
9659 | aix3*) | |
9660 | allow_undefined_flag=unsupported | |
9661 | always_export_symbols=yes | |
9662 | 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' | |
9663 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9664 | # are no directories specified by -L. | |
9665 | hardcode_minus_L=yes | |
9666 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9667 | # Neither direct hardcoding nor static linking is supported with a | |
9668 | # broken collect2. | |
9669 | hardcode_direct=unsupported | |
9670 | fi | |
9671 | ;; | |
9672 | ||
50e7d84b | 9673 | aix[4-9]*) |
ce2cded5 L |
9674 | if test "$host_cpu" = ia64; then |
9675 | # On IA64, the linker does run time linking by default, so we don't | |
9676 | # have to do anything special. | |
9677 | aix_use_runtimelinking=no | |
9678 | exp_sym_flag='-Bexport' | |
9679 | no_entry_flag="" | |
9680 | else | |
9681 | # If we're using GNU nm, then we don't want the "-C" option. | |
9682 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
9683 | # Also, AIX nm treats weak defined symbols like other global |
9684 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 9685 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 9686 | 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 |
9687 | else |
9688 | 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' | |
9689 | fi | |
9690 | aix_use_runtimelinking=no | |
9691 | ||
9692 | # Test if we are trying to use run time linking or normal | |
9693 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9694 | # need to do runtime linking. | |
50e7d84b | 9695 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
9696 | for ld_flag in $LDFLAGS; do |
9697 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9698 | aix_use_runtimelinking=yes | |
9699 | break | |
9700 | fi | |
9701 | done | |
9702 | ;; | |
9703 | esac | |
9704 | ||
9705 | exp_sym_flag='-bexport' | |
9706 | no_entry_flag='-bnoentry' | |
9707 | fi | |
9708 | ||
9709 | # When large executables or shared objects are built, AIX ld can | |
9710 | # have problems creating the table of contents. If linking a library | |
9711 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9712 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9713 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9714 | ||
9715 | archive_cmds='' | |
9716 | hardcode_direct=yes | |
9717 | hardcode_direct_absolute=yes | |
9718 | hardcode_libdir_separator=':' | |
9719 | link_all_deplibs=yes | |
9720 | file_list_spec='${wl}-f,' | |
9721 | ||
9722 | if test "$GCC" = yes; then | |
9723 | case $host_os in aix4.[012]|aix4.[012].*) | |
9724 | # We only want to do this on AIX 4.2 and lower, the check | |
9725 | # below for broken collect2 doesn't work under 4.3+ | |
9726 | collect2name=`${CC} -print-prog-name=collect2` | |
9727 | if test -f "$collect2name" && | |
9728 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9729 | then | |
9730 | # We have reworked collect2 | |
9731 | : | |
9732 | else | |
9733 | # We have old collect2 | |
9734 | hardcode_direct=unsupported | |
9735 | # It fails to find uninstalled libraries when the uninstalled | |
9736 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9737 | # to unsupported forces relinking | |
9738 | hardcode_minus_L=yes | |
9739 | hardcode_libdir_flag_spec='-L$libdir' | |
9740 | hardcode_libdir_separator= | |
9741 | fi | |
9742 | ;; | |
9743 | esac | |
9744 | shared_flag='-shared' | |
9745 | if test "$aix_use_runtimelinking" = yes; then | |
9746 | shared_flag="$shared_flag "'${wl}-G' | |
9747 | fi | |
9748 | else | |
9749 | # not using gcc | |
9750 | if test "$host_cpu" = ia64; then | |
9751 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9752 | # chokes on -Wl,-G. The following line is correct: | |
9753 | shared_flag='-G' | |
9754 | else | |
9755 | if test "$aix_use_runtimelinking" = yes; then | |
9756 | shared_flag='${wl}-G' | |
9757 | else | |
9758 | shared_flag='${wl}-bM:SRE' | |
9759 | fi | |
9760 | fi | |
9761 | fi | |
9762 | ||
b214d478 | 9763 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9764 | # It seems that -bexpall does not export symbols beginning with |
9765 | # underscore (_), so it is better to generate a list of symbols to export. | |
9766 | always_export_symbols=yes | |
9767 | if test "$aix_use_runtimelinking" = yes; then | |
9768 | # Warning - without using the other runtime loading flags (-brtl), | |
9769 | # -berok will link without error, but may produce a broken library. | |
9770 | allow_undefined_flag='-berok' | |
9771 | # Determine the default libpath from the value encoded in an | |
9772 | # empty executable. | |
81ecdfbb | 9773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
9774 | /* end confdefs.h. */ |
9775 | ||
9776 | int | |
9777 | main () | |
9778 | { | |
9779 | ||
9780 | ; | |
9781 | return 0; | |
9782 | } | |
9783 | _ACEOF | |
81ecdfbb | 9784 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9785 | |
ce2cded5 L |
9786 | lt_aix_libpath_sed=' |
9787 | /Import File Strings/,/^$/ { | |
9788 | /^0/ { | |
9789 | s/^0 *\(.*\)$/\1/ | |
9790 | p | |
9791 | } | |
9792 | }' | |
9793 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9794 | # Check for a 64-bit object if we didn't find anything. | |
9795 | if test -z "$aix_libpath"; then | |
9796 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9797 | fi | |
d7040cdb | 9798 | fi |
81ecdfbb RW |
9799 | rm -f core conftest.err conftest.$ac_objext \ |
9800 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9801 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9802 | |
ce2cded5 | 9803 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 9804 | 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 |
9805 | else |
9806 | if test "$host_cpu" = ia64; then | |
9807 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9808 | allow_undefined_flag="-z nodefs" | |
9809 | 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" | |
9810 | else | |
9811 | # Determine the default libpath from the value encoded in an | |
9812 | # empty executable. | |
81ecdfbb | 9813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9814 | /* end confdefs.h. */ |
d7040cdb | 9815 | |
ce2cded5 L |
9816 | int |
9817 | main () | |
9818 | { | |
d7040cdb | 9819 | |
ce2cded5 L |
9820 | ; |
9821 | return 0; | |
9822 | } | |
9823 | _ACEOF | |
81ecdfbb | 9824 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9825 | |
ce2cded5 L |
9826 | lt_aix_libpath_sed=' |
9827 | /Import File Strings/,/^$/ { | |
9828 | /^0/ { | |
9829 | s/^0 *\(.*\)$/\1/ | |
9830 | p | |
9831 | } | |
9832 | }' | |
9833 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9834 | # Check for a 64-bit object if we didn't find anything. | |
9835 | if test -z "$aix_libpath"; then | |
9836 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9837 | fi | |
ce2cded5 | 9838 | fi |
81ecdfbb RW |
9839 | rm -f core conftest.err conftest.$ac_objext \ |
9840 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9841 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9842 | |
ce2cded5 L |
9843 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9844 | # Warning - without using the other run time loading flags, | |
9845 | # -berok will link without error, but may produce a broken library. | |
9846 | no_undefined_flag=' ${wl}-bernotok' | |
9847 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
9848 | if test "$with_gnu_ld" = yes; then |
9849 | # We only use this code for GNU lds that support --whole-archive. | |
9850 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9851 | else | |
9852 | # Exported symbols can be pulled into shared objects from archives | |
9853 | whole_archive_flag_spec='$convenience' | |
9854 | fi | |
ce2cded5 L |
9855 | archive_cmds_need_lc=yes |
9856 | # This is similar to how AIX traditionally builds its shared libraries. | |
9857 | 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' | |
9858 | fi | |
9859 | fi | |
9860 | ;; | |
d7040cdb | 9861 | |
ce2cded5 | 9862 | amigaos*) |
b214d478 SE |
9863 | case $host_cpu in |
9864 | powerpc) | |
9865 | # see comment about AmigaOS4 .so support | |
9866 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9867 | archive_expsym_cmds='' | |
9868 | ;; | |
9869 | m68k) | |
9870 | 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)' | |
9871 | hardcode_libdir_flag_spec='-L$libdir' | |
9872 | hardcode_minus_L=yes | |
9873 | ;; | |
9874 | esac | |
ce2cded5 L |
9875 | ;; |
9876 | ||
9877 | bsdi[45]*) | |
9878 | export_dynamic_flag_spec=-rdynamic | |
9879 | ;; | |
9880 | ||
b214d478 | 9881 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9882 | # When not using gcc, we currently assume that we are using |
9883 | # Microsoft Visual C++. | |
9884 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9885 | # no search path for DLLs. | |
9886 | hardcode_libdir_flag_spec=' ' | |
9887 | allow_undefined_flag=unsupported | |
9888 | # Tell ltmain to make .lib files, not .a files. | |
9889 | libext=lib | |
9890 | # Tell ltmain to make .dll files, not .so files. | |
9891 | shrext_cmds=".dll" | |
9892 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 9893 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
ce2cded5 L |
9894 | # The linker will automatically build a .lib file if we build a DLL. |
9895 | old_archive_from_new_cmds='true' | |
9896 | # FIXME: Should let the user specify the lib program. | |
9897 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9898 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9899 | enable_shared_with_static_runtimes=yes | |
9900 | ;; | |
9901 | ||
9902 | darwin* | rhapsody*) | |
d7040cdb | 9903 | |
b214d478 SE |
9904 | |
9905 | archive_cmds_need_lc=no | |
9906 | hardcode_direct=no | |
9907 | hardcode_automatic=yes | |
9908 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9909 | if test "$lt_cv_ld_force_load" = "yes"; then |
9910 | 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\"`' | |
9911 | else | |
9912 | whole_archive_flag_spec='' | |
9913 | fi | |
b214d478 SE |
9914 | link_all_deplibs=yes |
9915 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9916 | case $cc_basename in | |
9917 | ifort*) _lt_dar_can_shared=yes ;; | |
9918 | *) _lt_dar_can_shared=$GCC ;; | |
9919 | esac | |
9920 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9921 | output_verbose_link_cmd=func_echo_all |
b214d478 SE |
9922 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9923 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9924 | 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}" | |
9925 | 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}" | |
9926 | ||
9927 | else | |
9928 | ld_shlibs=no | |
9929 | fi | |
9930 | ||
ce2cded5 | 9931 | ;; |
d7040cdb | 9932 | |
ce2cded5 L |
9933 | dgux*) |
9934 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9935 | hardcode_libdir_flag_spec='-L$libdir' | |
9936 | hardcode_shlibpath_var=no | |
9937 | ;; | |
d7040cdb | 9938 | |
ce2cded5 L |
9939 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9940 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9941 | # does not break anything, and helps significantly (at the cost of a little | |
9942 | # extra space). | |
9943 | freebsd2.2*) | |
9944 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9945 | hardcode_libdir_flag_spec='-R$libdir' | |
9946 | hardcode_direct=yes | |
9947 | hardcode_shlibpath_var=no | |
d7040cdb | 9948 | ;; |
d7040cdb | 9949 | |
ce2cded5 | 9950 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
6d2920c8 | 9951 | freebsd2.*) |
ce2cded5 L |
9952 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9953 | hardcode_direct=yes | |
9954 | hardcode_minus_L=yes | |
9955 | hardcode_shlibpath_var=no | |
9956 | ;; | |
d7040cdb | 9957 | |
ce2cded5 L |
9958 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9959 | freebsd* | dragonfly*) | |
9960 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9961 | hardcode_libdir_flag_spec='-R$libdir' | |
9962 | hardcode_direct=yes | |
9963 | hardcode_shlibpath_var=no | |
9964 | ;; | |
d7040cdb | 9965 | |
ce2cded5 L |
9966 | hpux9*) |
9967 | if test "$GCC" = yes; then | |
9968 | 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' | |
9969 | else | |
9970 | 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' | |
9971 | fi | |
9972 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9973 | hardcode_libdir_separator=: | |
9974 | hardcode_direct=yes | |
d7040cdb | 9975 | |
ce2cded5 L |
9976 | # hardcode_minus_L: Not really in the search PATH, |
9977 | # but as the default location of the library. | |
9978 | hardcode_minus_L=yes | |
9979 | export_dynamic_flag_spec='${wl}-E' | |
9980 | ;; | |
d7040cdb | 9981 | |
ce2cded5 | 9982 | hpux10*) |
3725885a | 9983 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
9984 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9985 | else | |
9986 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9987 | fi | |
9988 | if test "$with_gnu_ld" = no; then | |
9989 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9990 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9991 | hardcode_libdir_separator=: | |
9992 | hardcode_direct=yes | |
9993 | hardcode_direct_absolute=yes | |
9994 | export_dynamic_flag_spec='${wl}-E' | |
9995 | # hardcode_minus_L: Not really in the search PATH, | |
9996 | # but as the default location of the library. | |
9997 | hardcode_minus_L=yes | |
9998 | fi | |
9999 | ;; | |
d7040cdb | 10000 | |
ce2cded5 | 10001 | hpux11*) |
3725885a | 10002 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
10003 | case $host_cpu in |
10004 | hppa*64*) | |
10005 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10006 | ;; | |
10007 | ia64*) | |
b214d478 | 10008 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
10009 | ;; |
10010 | *) | |
10011 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10012 | ;; | |
10013 | esac | |
10014 | else | |
10015 | case $host_cpu in | |
10016 | hppa*64*) | |
10017 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10018 | ;; | |
10019 | ia64*) | |
10020 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10021 | ;; | |
10022 | *) | |
3725885a RW |
10023 | |
10024 | # Older versions of the 11.00 compiler do not understand -b yet | |
10025 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10027 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10028 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
10029 | $as_echo_n "(cached) " >&6 | |
10030 | else | |
10031 | lt_cv_prog_compiler__b=no | |
10032 | save_LDFLAGS="$LDFLAGS" | |
10033 | LDFLAGS="$LDFLAGS -b" | |
10034 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10035 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10036 | # The linker can only warn and ignore the option if not recognized | |
10037 | # So say no if there are warnings | |
10038 | if test -s conftest.err; then | |
10039 | # Append any errors to the config.log. | |
10040 | cat conftest.err 1>&5 | |
10041 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10042 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10043 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10044 | lt_cv_prog_compiler__b=yes | |
10045 | fi | |
10046 | else | |
10047 | lt_cv_prog_compiler__b=yes | |
10048 | fi | |
10049 | fi | |
10050 | $RM -r conftest* | |
10051 | LDFLAGS="$save_LDFLAGS" | |
10052 | ||
10053 | fi | |
10054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10055 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10056 | ||
10057 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10058 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10059 | else | |
10060 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10061 | fi | |
10062 | ||
ce2cded5 L |
10063 | ;; |
10064 | esac | |
10065 | fi | |
10066 | if test "$with_gnu_ld" = no; then | |
10067 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10068 | hardcode_libdir_separator=: | |
d7040cdb | 10069 | |
ce2cded5 L |
10070 | case $host_cpu in |
10071 | hppa*64*|ia64*) | |
10072 | hardcode_direct=no | |
10073 | hardcode_shlibpath_var=no | |
10074 | ;; | |
10075 | *) | |
10076 | hardcode_direct=yes | |
10077 | hardcode_direct_absolute=yes | |
10078 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 10079 | |
ce2cded5 L |
10080 | # hardcode_minus_L: Not really in the search PATH, |
10081 | # but as the default location of the library. | |
10082 | hardcode_minus_L=yes | |
10083 | ;; | |
10084 | esac | |
10085 | fi | |
10086 | ;; | |
d7040cdb | 10087 | |
ce2cded5 L |
10088 | irix5* | irix6* | nonstopux*) |
10089 | if test "$GCC" = yes; then | |
3725885a | 10090 | 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 |
10091 | # Try to use the -exported_symbol ld option, if it does not |
10092 | # work, assume that -exports_file does not work either and | |
10093 | # implicitly export all symbols. | |
10094 | save_LDFLAGS="$LDFLAGS" | |
10095 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
10096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10097 | /* end confdefs.h. */ | |
ce2cded5 L |
10098 | int foo(void) {} |
10099 | _ACEOF | |
81ecdfbb | 10100 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 10101 | 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 | 10102 | |
ce2cded5 | 10103 | fi |
81ecdfbb RW |
10104 | rm -f core conftest.err conftest.$ac_objext \ |
10105 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10106 | LDFLAGS="$save_LDFLAGS" |
10107 | else | |
3725885a RW |
10108 | 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' |
10109 | 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 |
10110 | fi |
10111 | archive_cmds_need_lc='no' | |
10112 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10113 | hardcode_libdir_separator=: | |
10114 | inherit_rpath=yes | |
10115 | link_all_deplibs=yes | |
10116 | ;; | |
d7040cdb | 10117 | |
ce2cded5 L |
10118 | netbsd*) |
10119 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10120 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10121 | else | |
10122 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10123 | fi | |
10124 | hardcode_libdir_flag_spec='-R$libdir' | |
10125 | hardcode_direct=yes | |
10126 | hardcode_shlibpath_var=no | |
10127 | ;; | |
d7040cdb | 10128 | |
ce2cded5 L |
10129 | newsos6) |
10130 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10131 | hardcode_direct=yes | |
10132 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10133 | hardcode_libdir_separator=: | |
10134 | hardcode_shlibpath_var=no | |
10135 | ;; | |
d7040cdb | 10136 | |
ce2cded5 L |
10137 | *nto* | *qnx*) |
10138 | ;; | |
d7040cdb | 10139 | |
ce2cded5 | 10140 | openbsd*) |
b214d478 SE |
10141 | if test -f /usr/libexec/ld.so; then |
10142 | hardcode_direct=yes | |
10143 | hardcode_shlibpath_var=no | |
10144 | hardcode_direct_absolute=yes | |
10145 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 10146 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 10147 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 10148 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
10149 | export_dynamic_flag_spec='${wl}-E' |
10150 | else | |
10151 | case $host_os in | |
10152 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10153 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10154 | hardcode_libdir_flag_spec='-R$libdir' | |
10155 | ;; | |
10156 | *) | |
10157 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10158 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10159 | ;; | |
10160 | esac | |
10161 | fi | |
10162 | else | |
10163 | ld_shlibs=no | |
ce2cded5 L |
10164 | fi |
10165 | ;; | |
d7040cdb | 10166 | |
ce2cded5 L |
10167 | os2*) |
10168 | hardcode_libdir_flag_spec='-L$libdir' | |
10169 | hardcode_minus_L=yes | |
10170 | allow_undefined_flag=unsupported | |
3725885a | 10171 | 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 |
10172 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10173 | ;; | |
d7040cdb | 10174 | |
ce2cded5 L |
10175 | osf3*) |
10176 | if test "$GCC" = yes; then | |
10177 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10178 | 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 |
10179 | else |
10180 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10181 | 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 |
10182 | fi |
10183 | archive_cmds_need_lc='no' | |
10184 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10185 | hardcode_libdir_separator=: | |
10186 | ;; | |
d7040cdb | 10187 | |
ce2cded5 L |
10188 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10189 | if test "$GCC" = yes; then | |
10190 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 10191 | 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 |
10192 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10193 | else | |
10194 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 10195 | 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 | 10196 | 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 | 10197 | $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 | 10198 | |
ce2cded5 L |
10199 | # Both c and cxx compiler support -rpath directly |
10200 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10201 | fi | |
10202 | archive_cmds_need_lc='no' | |
10203 | hardcode_libdir_separator=: | |
10204 | ;; | |
d7040cdb | 10205 | |
ce2cded5 L |
10206 | solaris*) |
10207 | no_undefined_flag=' -z defs' | |
10208 | if test "$GCC" = yes; then | |
10209 | wlarc='${wl}' | |
10210 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10211 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10212 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10213 | else | |
10214 | case `$CC -V 2>&1` in | |
10215 | *"Compilers 5.0"*) | |
10216 | wlarc='' | |
10217 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10218 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10219 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10220 | ;; | |
10221 | *) | |
10222 | wlarc='${wl}' | |
10223 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10224 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10225 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10226 | ;; | |
10227 | esac | |
10228 | fi | |
10229 | hardcode_libdir_flag_spec='-R$libdir' | |
10230 | hardcode_shlibpath_var=no | |
10231 | case $host_os in | |
10232 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10233 | *) | |
10234 | # The compiler driver will combine and reorder linker options, | |
10235 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10236 | # but is careful enough not to reorder. | |
10237 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10238 | if test "$GCC" = yes; then | |
10239 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10240 | else | |
10241 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10242 | fi | |
10243 | ;; | |
10244 | esac | |
10245 | link_all_deplibs=yes | |
10246 | ;; | |
d7040cdb | 10247 | |
ce2cded5 L |
10248 | sunos4*) |
10249 | if test "x$host_vendor" = xsequent; then | |
10250 | # Use $CC to link under sequent, because it throws in some extra .o | |
10251 | # files that make .init and .fini sections work. | |
10252 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10253 | else | |
10254 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10255 | fi | |
10256 | hardcode_libdir_flag_spec='-L$libdir' | |
10257 | hardcode_direct=yes | |
10258 | hardcode_minus_L=yes | |
10259 | hardcode_shlibpath_var=no | |
10260 | ;; | |
d7040cdb | 10261 | |
ce2cded5 L |
10262 | sysv4) |
10263 | case $host_vendor in | |
10264 | sni) | |
10265 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10266 | hardcode_direct=yes # is this really true??? | |
10267 | ;; | |
10268 | siemens) | |
10269 | ## LD is ld it makes a PLAMLIB | |
10270 | ## CC just makes a GrossModule. | |
10271 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10272 | reload_cmds='$CC -r -o $output$reload_objs' | |
10273 | hardcode_direct=no | |
10274 | ;; | |
10275 | motorola) | |
10276 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10277 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10278 | ;; | |
10279 | esac | |
10280 | runpath_var='LD_RUN_PATH' | |
10281 | hardcode_shlibpath_var=no | |
10282 | ;; | |
d7040cdb | 10283 | |
ce2cded5 L |
10284 | sysv4.3*) |
10285 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10286 | hardcode_shlibpath_var=no | |
10287 | export_dynamic_flag_spec='-Bexport' | |
10288 | ;; | |
d7040cdb | 10289 | |
ce2cded5 L |
10290 | sysv4*MP*) |
10291 | if test -d /usr/nec; then | |
10292 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10293 | hardcode_shlibpath_var=no | |
10294 | runpath_var=LD_RUN_PATH | |
10295 | hardcode_runpath_var=yes | |
10296 | ld_shlibs=yes | |
10297 | fi | |
10298 | ;; | |
d7040cdb | 10299 | |
ce2cded5 L |
10300 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10301 | no_undefined_flag='${wl}-z,text' | |
10302 | archive_cmds_need_lc=no | |
10303 | hardcode_shlibpath_var=no | |
10304 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10305 | |
ce2cded5 L |
10306 | if test "$GCC" = yes; then |
10307 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10308 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10309 | else | |
10310 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10311 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10312 | fi | |
10313 | ;; | |
d7040cdb | 10314 | |
ce2cded5 L |
10315 | sysv5* | sco3.2v5* | sco5v6*) |
10316 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10317 | # link with -lc, and that would cause any symbols used from libc to | |
10318 | # always be unresolved, which means just about no library would | |
10319 | # ever link correctly. If we're not using GNU ld we use -z text | |
10320 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10321 | # as -z defs. | |
10322 | no_undefined_flag='${wl}-z,text' | |
10323 | allow_undefined_flag='${wl}-z,nodefs' | |
10324 | archive_cmds_need_lc=no | |
10325 | hardcode_shlibpath_var=no | |
10326 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10327 | hardcode_libdir_separator=':' | |
10328 | link_all_deplibs=yes | |
10329 | export_dynamic_flag_spec='${wl}-Bexport' | |
10330 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10331 | |
ce2cded5 L |
10332 | if test "$GCC" = yes; then |
10333 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10334 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10335 | else | |
10336 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10337 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10338 | fi | |
10339 | ;; | |
d7040cdb | 10340 | |
ce2cded5 L |
10341 | uts4*) |
10342 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10343 | hardcode_libdir_flag_spec='-L$libdir' | |
10344 | hardcode_shlibpath_var=no | |
10345 | ;; | |
d7040cdb | 10346 | |
ce2cded5 L |
10347 | *) |
10348 | ld_shlibs=no | |
10349 | ;; | |
10350 | esac | |
d7040cdb | 10351 | |
ce2cded5 L |
10352 | if test x$host_vendor = xsni; then |
10353 | case $host in | |
10354 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10355 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10356 | ;; | |
10357 | esac | |
10358 | fi | |
10359 | fi | |
d7040cdb | 10360 | |
81ecdfbb RW |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10362 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 10363 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 10364 | |
ce2cded5 | 10365 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
10366 | |
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
ce2cded5 L |
10381 | # |
10382 | # Do we need to explicitly link libc? | |
10383 | # | |
10384 | case "x$archive_cmds_need_lc" in | |
10385 | x|xyes) | |
10386 | # Assume -lc should be added | |
10387 | archive_cmds_need_lc=yes | |
d7040cdb | 10388 | |
ce2cded5 L |
10389 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10390 | case $archive_cmds in | |
10391 | *'~'*) | |
10392 | # FIXME: we may have to deal with multi-command sequences. | |
10393 | ;; | |
10394 | '$CC '*) | |
10395 | # Test whether the compiler implicitly links with -lc since on some | |
10396 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10397 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10399 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10400 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10401 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10402 | else |
10403 | $RM conftest* | |
10404 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 10405 | |
81ecdfbb | 10406 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
10407 | (eval $ac_compile) 2>&5 |
10408 | ac_status=$? | |
81ecdfbb RW |
10409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10410 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
10411 | soname=conftest |
10412 | lib=conftest | |
10413 | libobjs=conftest.$ac_objext | |
10414 | deplibs= | |
10415 | wl=$lt_prog_compiler_wl | |
10416 | pic_flag=$lt_prog_compiler_pic | |
10417 | compiler_flags=-v | |
10418 | linker_flags=-v | |
10419 | verstring= | |
10420 | output_objdir=. | |
10421 | libname=conftest | |
10422 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10423 | allow_undefined_flag= | |
81ecdfbb | 10424 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
10425 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10426 | ac_status=$? | |
81ecdfbb RW |
10427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10428 | test $ac_status = 0; } | |
39144654 RW |
10429 | then |
10430 | lt_cv_archive_cmds_need_lc=no | |
10431 | else | |
10432 | lt_cv_archive_cmds_need_lc=yes | |
10433 | fi | |
10434 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10435 | else | |
10436 | cat conftest.err 1>&5 | |
10437 | fi | |
10438 | $RM conftest* | |
10439 | ||
10440 | fi | |
81ecdfbb RW |
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10442 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 10443 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
10444 | ;; |
10445 | esac | |
10446 | fi | |
10447 | ;; | |
10448 | esac | |
d7040cdb SE |
10449 | |
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | ||
10475 | ||
d7040cdb | 10476 | |
d7040cdb | 10477 | |
d7040cdb SE |
10478 | |
10479 | ||
10480 | ||
10481 | ||
10482 | ||
10483 | ||
d7040cdb | 10484 | |
d7040cdb | 10485 | |
d7040cdb | 10486 | |
d7040cdb | 10487 | |
d7040cdb | 10488 | |
d7040cdb | 10489 | |
d7040cdb | 10490 | |
d7040cdb | 10491 | |
d7040cdb | 10492 | |
d7040cdb | 10493 | |
d7040cdb | 10494 | |
d7040cdb | 10495 | |
d7040cdb | 10496 | |
d7040cdb | 10497 | |
d7040cdb | 10498 | |
d7040cdb | 10499 | |
d7040cdb | 10500 | |
d7040cdb | 10501 | |
d7040cdb | 10502 | |
d7040cdb | 10503 | |
d7040cdb | 10504 | |
d7040cdb | 10505 | |
d7040cdb | 10506 | |
d7040cdb | 10507 | |
d7040cdb | 10508 | |
d7040cdb | 10509 | |
d7040cdb | 10510 | |
d7040cdb | 10511 | |
ce2cded5 L |
10512 | |
10513 | ||
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
10532 | ||
10533 | ||
10534 | ||
10535 | ||
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | ||
10542 | ||
10543 | ||
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | ||
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | ||
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
81ecdfbb RW |
10606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10607 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
10608 | |
10609 | if test "$GCC" = yes; then | |
ce2cded5 L |
10610 | case $host_os in |
10611 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10612 | *) lt_awk_arg="/^libraries:/" ;; | |
10613 | esac | |
3725885a RW |
10614 | case $host_os in |
10615 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10616 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10617 | esac | |
10618 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10619 | case $lt_search_path_spec in | |
10620 | *\;*) | |
ce2cded5 L |
10621 | # if the path contains ";" then we assume it to be the separator |
10622 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10623 | # assumed that no part of a normal pathname contains ";" but that should | |
10624 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
10625 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10626 | ;; | |
10627 | *) | |
10628 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10629 | ;; | |
10630 | esac | |
ce2cded5 L |
10631 | # Ok, now we have the path, separated by spaces, we can step through it |
10632 | # and add multilib dir if necessary. | |
10633 | lt_tmp_lt_search_path_spec= | |
10634 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10635 | for lt_sys_path in $lt_search_path_spec; do | |
10636 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10637 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10638 | else | |
10639 | test -d "$lt_sys_path" && \ | |
10640 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10641 | fi | |
10642 | done | |
3725885a | 10643 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
10644 | BEGIN {RS=" "; FS="/|\n";} { |
10645 | lt_foo=""; | |
10646 | lt_count=0; | |
10647 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10648 | if ($lt_i != "" && $lt_i != ".") { | |
10649 | if ($lt_i == "..") { | |
10650 | lt_count++; | |
10651 | } else { | |
10652 | if (lt_count == 0) { | |
10653 | lt_foo="/" $lt_i lt_foo; | |
10654 | } else { | |
10655 | lt_count--; | |
10656 | } | |
10657 | } | |
10658 | } | |
10659 | } | |
10660 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10661 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10662 | }'` | |
3725885a RW |
10663 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10664 | # for these hosts. | |
10665 | case $host_os in | |
10666 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10667 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10668 | esac | |
10669 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 10670 | else |
ce2cded5 L |
10671 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10672 | fi | |
10673 | library_names_spec= | |
10674 | libname_spec='lib$name' | |
10675 | soname_spec= | |
10676 | shrext_cmds=".so" | |
10677 | postinstall_cmds= | |
10678 | postuninstall_cmds= | |
10679 | finish_cmds= | |
10680 | finish_eval= | |
10681 | shlibpath_var= | |
10682 | shlibpath_overrides_runpath=unknown | |
10683 | version_type=none | |
10684 | dynamic_linker="$host_os ld.so" | |
10685 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10686 | need_lib_prefix=unknown | |
10687 | hardcode_into_libs=no | |
10688 | ||
10689 | # when you set need_version to no, make sure it does not cause -set_version | |
10690 | # flags to be left without arguments | |
10691 | need_version=unknown | |
10692 | ||
10693 | case $host_os in | |
10694 | aix3*) | |
10695 | version_type=linux | |
10696 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10697 | shlibpath_var=LIBPATH | |
10698 | ||
10699 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10700 | soname_spec='${libname}${release}${shared_ext}$major' | |
10701 | ;; | |
10702 | ||
50e7d84b | 10703 | aix[4-9]*) |
ce2cded5 L |
10704 | version_type=linux |
10705 | need_lib_prefix=no | |
10706 | need_version=no | |
10707 | hardcode_into_libs=yes | |
10708 | if test "$host_cpu" = ia64; then | |
10709 | # AIX 5 supports IA64 | |
10710 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10711 | shlibpath_var=LD_LIBRARY_PATH | |
10712 | else | |
10713 | # With GCC up to 2.95.x, collect2 would create an import file | |
10714 | # for dependence libraries. The import file would start with | |
10715 | # the line `#! .'. This would cause the generated library to | |
10716 | # depend on `.', always an invalid library. This was fixed in | |
10717 | # development snapshots of GCC prior to 3.0. | |
10718 | case $host_os in | |
10719 | aix4 | aix4.[01] | aix4.[01].*) | |
10720 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10721 | echo ' yes ' | |
10722 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10723 | : | |
10724 | else | |
10725 | can_build_shared=no | |
10726 | fi | |
10727 | ;; | |
10728 | esac | |
10729 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10730 | # soname into executable. Probably we can add versioning support to | |
10731 | # collect2, so additional links can be useful in future. | |
10732 | if test "$aix_use_runtimelinking" = yes; then | |
10733 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10734 | # instead of lib<name>.a to let people know that these are not | |
10735 | # typical AIX shared libraries. | |
10736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10737 | else | |
10738 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10739 | # and later when we are not doing run time linking. | |
10740 | library_names_spec='${libname}${release}.a $libname.a' | |
10741 | soname_spec='${libname}${release}${shared_ext}$major' | |
10742 | fi | |
10743 | shlibpath_var=LIBPATH | |
10744 | fi | |
10745 | ;; | |
10746 | ||
10747 | amigaos*) | |
b214d478 SE |
10748 | case $host_cpu in |
10749 | powerpc) | |
10750 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10751 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10753 | ;; | |
10754 | m68k) | |
ce2cded5 L |
10755 | library_names_spec='$libname.ixlibrary $libname.a' |
10756 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 10757 | 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 |
10758 | ;; |
10759 | esac | |
ce2cded5 L |
10760 | ;; |
10761 | ||
10762 | beos*) | |
10763 | library_names_spec='${libname}${shared_ext}' | |
10764 | dynamic_linker="$host_os ld.so" | |
10765 | shlibpath_var=LIBRARY_PATH | |
10766 | ;; | |
10767 | ||
10768 | bsdi[45]*) | |
10769 | version_type=linux | |
10770 | need_version=no | |
10771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10772 | soname_spec='${libname}${release}${shared_ext}$major' | |
10773 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10774 | shlibpath_var=LD_LIBRARY_PATH | |
10775 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10776 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10777 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10778 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10779 | # libtool to hard-code these into programs | |
10780 | ;; | |
10781 | ||
b214d478 | 10782 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10783 | version_type=windows |
10784 | shrext_cmds=".dll" | |
10785 | need_version=no | |
10786 | need_lib_prefix=no | |
10787 | ||
b214d478 SE |
10788 | case $GCC,$host_os in |
10789 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10790 | library_names_spec='$libname.dll.a' |
10791 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10792 | postinstall_cmds='base_file=`basename \${file}`~ | |
10793 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10794 | dldir=$destdir/`dirname \$dlpath`~ | |
10795 | test -d \$dldir || mkdir -p \$dldir~ | |
10796 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10797 | chmod a+x \$dldir/$dlname~ | |
10798 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10799 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10800 | fi' | |
10801 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10802 | dlpath=$dir/\$dldll~ | |
10803 | $RM \$dlpath' | |
10804 | shlibpath_overrides_runpath=yes | |
10805 | ||
10806 | case $host_os in | |
10807 | cygwin*) | |
10808 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10809 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
10810 | |
10811 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 10812 | ;; |
b214d478 | 10813 | mingw* | cegcc*) |
ce2cded5 L |
10814 | # MinGW DLLs use traditional 'lib' prefix |
10815 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
10816 | ;; |
10817 | pw32*) | |
10818 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10819 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10820 | ;; | |
10821 | esac | |
10822 | ;; | |
10823 | ||
10824 | *) | |
10825 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10826 | ;; | |
10827 | esac | |
10828 | dynamic_linker='Win32 ld.exe' | |
10829 | # FIXME: first we should search . and the directory the executable is in | |
10830 | shlibpath_var=PATH | |
10831 | ;; | |
10832 | ||
10833 | darwin* | rhapsody*) | |
10834 | dynamic_linker="$host_os dyld" | |
10835 | version_type=darwin | |
10836 | need_lib_prefix=no | |
10837 | need_version=no | |
10838 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10839 | soname_spec='${libname}${release}${major}$shared_ext' | |
10840 | shlibpath_overrides_runpath=yes | |
10841 | shlibpath_var=DYLD_LIBRARY_PATH | |
10842 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10843 | ||
10844 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10845 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10846 | ;; | |
10847 | ||
10848 | dgux*) | |
10849 | version_type=linux | |
10850 | need_lib_prefix=no | |
10851 | need_version=no | |
10852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10853 | soname_spec='${libname}${release}${shared_ext}$major' | |
10854 | shlibpath_var=LD_LIBRARY_PATH | |
10855 | ;; | |
10856 | ||
ce2cded5 L |
10857 | freebsd* | dragonfly*) |
10858 | # DragonFly does not have aout. When/if they implement a new | |
10859 | # versioning mechanism, adjust this. | |
10860 | if test -x /usr/bin/objformat; then | |
10861 | objformat=`/usr/bin/objformat` | |
10862 | else | |
10863 | case $host_os in | |
6d2920c8 | 10864 | freebsd[23].*) objformat=aout ;; |
ce2cded5 L |
10865 | *) objformat=elf ;; |
10866 | esac | |
10867 | fi | |
10868 | version_type=freebsd-$objformat | |
10869 | case $version_type in | |
10870 | freebsd-elf*) | |
10871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10872 | need_version=no | |
10873 | need_lib_prefix=no | |
10874 | ;; | |
10875 | freebsd-*) | |
10876 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10877 | need_version=yes | |
10878 | ;; | |
10879 | esac | |
10880 | shlibpath_var=LD_LIBRARY_PATH | |
10881 | case $host_os in | |
6d2920c8 | 10882 | freebsd2.*) |
ce2cded5 L |
10883 | shlibpath_overrides_runpath=yes |
10884 | ;; | |
10885 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10886 | shlibpath_overrides_runpath=yes | |
10887 | hardcode_into_libs=yes | |
10888 | ;; | |
10889 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10890 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10891 | shlibpath_overrides_runpath=no | |
10892 | hardcode_into_libs=yes | |
10893 | ;; | |
10894 | *) # from 4.6 on, and DragonFly | |
10895 | shlibpath_overrides_runpath=yes | |
10896 | hardcode_into_libs=yes | |
10897 | ;; | |
10898 | esac | |
10899 | ;; | |
10900 | ||
10901 | gnu*) | |
10902 | version_type=linux | |
10903 | need_lib_prefix=no | |
10904 | need_version=no | |
10905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10906 | soname_spec='${libname}${release}${shared_ext}$major' | |
10907 | shlibpath_var=LD_LIBRARY_PATH | |
10908 | hardcode_into_libs=yes | |
10909 | ;; | |
10910 | ||
3725885a RW |
10911 | haiku*) |
10912 | version_type=linux | |
10913 | need_lib_prefix=no | |
10914 | need_version=no | |
10915 | dynamic_linker="$host_os runtime_loader" | |
10916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10917 | soname_spec='${libname}${release}${shared_ext}$major' | |
10918 | shlibpath_var=LIBRARY_PATH | |
10919 | shlibpath_overrides_runpath=yes | |
10920 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10921 | hardcode_into_libs=yes | |
10922 | ;; | |
10923 | ||
ce2cded5 L |
10924 | hpux9* | hpux10* | hpux11*) |
10925 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10926 | # link against other versions. | |
10927 | version_type=sunos | |
10928 | need_lib_prefix=no | |
10929 | need_version=no | |
10930 | case $host_cpu in | |
10931 | ia64*) | |
10932 | shrext_cmds='.so' | |
10933 | hardcode_into_libs=yes | |
10934 | dynamic_linker="$host_os dld.so" | |
10935 | shlibpath_var=LD_LIBRARY_PATH | |
10936 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10938 | soname_spec='${libname}${release}${shared_ext}$major' | |
10939 | if test "X$HPUX_IA64_MODE" = X32; then | |
10940 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10941 | else | |
10942 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10943 | fi | |
10944 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10945 | ;; | |
10946 | hppa*64*) | |
10947 | shrext_cmds='.sl' | |
10948 | hardcode_into_libs=yes | |
10949 | dynamic_linker="$host_os dld.sl" | |
10950 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10951 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10953 | soname_spec='${libname}${release}${shared_ext}$major' | |
10954 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10955 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10956 | ;; | |
10957 | *) | |
10958 | shrext_cmds='.sl' | |
10959 | dynamic_linker="$host_os dld.sl" | |
10960 | shlibpath_var=SHLIB_PATH | |
10961 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10963 | soname_spec='${libname}${release}${shared_ext}$major' | |
10964 | ;; | |
10965 | esac | |
3725885a | 10966 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 10967 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10968 | # or fails outright, so override atomically: |
10969 | install_override_mode=555 | |
ce2cded5 L |
10970 | ;; |
10971 | ||
10972 | interix[3-9]*) | |
10973 | version_type=linux | |
10974 | need_lib_prefix=no | |
10975 | need_version=no | |
10976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10977 | soname_spec='${libname}${release}${shared_ext}$major' | |
10978 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10979 | shlibpath_var=LD_LIBRARY_PATH | |
10980 | shlibpath_overrides_runpath=no | |
10981 | hardcode_into_libs=yes | |
10982 | ;; | |
10983 | ||
10984 | irix5* | irix6* | nonstopux*) | |
10985 | case $host_os in | |
10986 | nonstopux*) version_type=nonstopux ;; | |
10987 | *) | |
10988 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10989 | version_type=linux | |
10990 | else | |
10991 | version_type=irix | |
10992 | fi ;; | |
10993 | esac | |
10994 | need_lib_prefix=no | |
10995 | need_version=no | |
10996 | soname_spec='${libname}${release}${shared_ext}$major' | |
10997 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10998 | case $host_os in | |
10999 | irix5* | nonstopux*) | |
11000 | libsuff= shlibsuff= | |
11001 | ;; | |
11002 | *) | |
11003 | case $LD in # libtool.m4 will add one of these switches to LD | |
11004 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11005 | libsuff= shlibsuff= libmagic=32-bit;; | |
11006 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11007 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11008 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11009 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11010 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11011 | esac | |
11012 | ;; | |
11013 | esac | |
11014 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11015 | shlibpath_overrides_runpath=no | |
11016 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11017 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11018 | hardcode_into_libs=yes | |
11019 | ;; | |
11020 | ||
11021 | # No shared lib support for Linux oldld, aout, or coff. | |
11022 | linux*oldld* | linux*aout* | linux*coff*) | |
11023 | dynamic_linker=no | |
11024 | ;; | |
11025 | ||
11026 | # This must be Linux ELF. | |
58e24671 | 11027 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
11028 | version_type=linux |
11029 | need_lib_prefix=no | |
11030 | need_version=no | |
11031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11032 | soname_spec='${libname}${release}${shared_ext}$major' | |
11033 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11034 | shlibpath_var=LD_LIBRARY_PATH | |
11035 | shlibpath_overrides_runpath=no | |
39144654 | 11036 | |
ce2cded5 | 11037 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
11038 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
11039 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
11040 | else |
11041 | lt_cv_shlibpath_overrides_runpath=no | |
11042 | save_LDFLAGS=$LDFLAGS | |
11043 | save_libdir=$libdir | |
11044 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11045 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 11046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11047 | /* end confdefs.h. */ |
11048 | ||
d7040cdb SE |
11049 | int |
11050 | main () | |
11051 | { | |
ce2cded5 | 11052 | |
d7040cdb SE |
11053 | ; |
11054 | return 0; | |
11055 | } | |
11056 | _ACEOF | |
81ecdfbb RW |
11057 | if ac_fn_c_try_link "$LINENO"; then : |
11058 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 11059 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 11060 | fi |
d7040cdb | 11061 | fi |
81ecdfbb RW |
11062 | rm -f core conftest.err conftest.$ac_objext \ |
11063 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
11064 | LDFLAGS=$save_LDFLAGS |
11065 | libdir=$save_libdir | |
11066 | ||
11067 | fi | |
11068 | ||
11069 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 11070 | |
ce2cded5 L |
11071 | # This implies no fast_install, which is unacceptable. |
11072 | # Some rework will be needed to allow for fast_install | |
11073 | # before this can be enabled. | |
11074 | hardcode_into_libs=yes | |
d7040cdb | 11075 | |
ce2cded5 L |
11076 | # Append ld.so.conf contents to the search path |
11077 | if test -f /etc/ld.so.conf; then | |
3725885a | 11078 | 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 |
11079 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11080 | fi | |
d7040cdb | 11081 | |
ce2cded5 L |
11082 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11083 | # powerpc, because MkLinux only supported shared libraries with the | |
11084 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11085 | # most powerpc-linux boxes support dynamic linking these days and | |
11086 | # people can always --disable-shared, the test was removed, and we | |
11087 | # assume the GNU/Linux dynamic linker is in use. | |
11088 | dynamic_linker='GNU/Linux ld.so' | |
11089 | ;; | |
d7040cdb | 11090 | |
ce2cded5 L |
11091 | netbsd*) |
11092 | version_type=sunos | |
11093 | need_lib_prefix=no | |
11094 | need_version=no | |
11095 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11097 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11098 | dynamic_linker='NetBSD (a.out) ld.so' | |
11099 | else | |
11100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11101 | soname_spec='${libname}${release}${shared_ext}$major' | |
11102 | dynamic_linker='NetBSD ld.elf_so' | |
11103 | fi | |
11104 | shlibpath_var=LD_LIBRARY_PATH | |
11105 | shlibpath_overrides_runpath=yes | |
11106 | hardcode_into_libs=yes | |
11107 | ;; | |
d7040cdb | 11108 | |
ce2cded5 L |
11109 | newsos6) |
11110 | version_type=linux | |
11111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11112 | shlibpath_var=LD_LIBRARY_PATH | |
11113 | shlibpath_overrides_runpath=yes | |
11114 | ;; | |
d7040cdb | 11115 | |
ce2cded5 L |
11116 | *nto* | *qnx*) |
11117 | version_type=qnx | |
11118 | need_lib_prefix=no | |
11119 | need_version=no | |
11120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11121 | soname_spec='${libname}${release}${shared_ext}$major' | |
11122 | shlibpath_var=LD_LIBRARY_PATH | |
11123 | shlibpath_overrides_runpath=no | |
11124 | hardcode_into_libs=yes | |
11125 | dynamic_linker='ldqnx.so' | |
11126 | ;; | |
d7040cdb | 11127 | |
ce2cded5 L |
11128 | openbsd*) |
11129 | version_type=sunos | |
11130 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11131 | need_lib_prefix=no | |
11132 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11133 | case $host_os in | |
11134 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11135 | *) need_version=no ;; | |
11136 | esac | |
11137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11138 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11139 | shlibpath_var=LD_LIBRARY_PATH | |
11140 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11141 | case $host_os in | |
11142 | openbsd2.[89] | openbsd2.[89].*) | |
11143 | shlibpath_overrides_runpath=no | |
11144 | ;; | |
11145 | *) | |
11146 | shlibpath_overrides_runpath=yes | |
11147 | ;; | |
11148 | esac | |
11149 | else | |
11150 | shlibpath_overrides_runpath=yes | |
11151 | fi | |
11152 | ;; | |
d7040cdb | 11153 | |
ce2cded5 L |
11154 | os2*) |
11155 | libname_spec='$name' | |
11156 | shrext_cmds=".dll" | |
11157 | need_lib_prefix=no | |
11158 | library_names_spec='$libname${shared_ext} $libname.a' | |
11159 | dynamic_linker='OS/2 ld.exe' | |
11160 | shlibpath_var=LIBPATH | |
11161 | ;; | |
d7040cdb | 11162 | |
ce2cded5 L |
11163 | osf3* | osf4* | osf5*) |
11164 | version_type=osf | |
11165 | need_lib_prefix=no | |
11166 | need_version=no | |
11167 | soname_spec='${libname}${release}${shared_ext}$major' | |
11168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11169 | shlibpath_var=LD_LIBRARY_PATH | |
11170 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11171 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11172 | ;; | |
d7040cdb | 11173 | |
ce2cded5 L |
11174 | rdos*) |
11175 | dynamic_linker=no | |
11176 | ;; | |
d7040cdb | 11177 | |
ce2cded5 L |
11178 | solaris*) |
11179 | version_type=linux | |
11180 | need_lib_prefix=no | |
11181 | need_version=no | |
11182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11183 | soname_spec='${libname}${release}${shared_ext}$major' | |
11184 | shlibpath_var=LD_LIBRARY_PATH | |
11185 | shlibpath_overrides_runpath=yes | |
11186 | hardcode_into_libs=yes | |
11187 | # ldd complains unless libraries are executable | |
11188 | postinstall_cmds='chmod +x $lib' | |
11189 | ;; | |
d7040cdb | 11190 | |
ce2cded5 L |
11191 | sunos4*) |
11192 | version_type=sunos | |
11193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11194 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11195 | shlibpath_var=LD_LIBRARY_PATH | |
11196 | shlibpath_overrides_runpath=yes | |
11197 | if test "$with_gnu_ld" = yes; then | |
11198 | need_lib_prefix=no | |
11199 | fi | |
11200 | need_version=yes | |
11201 | ;; | |
d7040cdb | 11202 | |
ce2cded5 L |
11203 | sysv4 | sysv4.3*) |
11204 | version_type=linux | |
11205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11206 | soname_spec='${libname}${release}${shared_ext}$major' | |
11207 | shlibpath_var=LD_LIBRARY_PATH | |
11208 | case $host_vendor in | |
11209 | sni) | |
11210 | shlibpath_overrides_runpath=no | |
11211 | need_lib_prefix=no | |
11212 | runpath_var=LD_RUN_PATH | |
11213 | ;; | |
11214 | siemens) | |
11215 | need_lib_prefix=no | |
11216 | ;; | |
11217 | motorola) | |
11218 | need_lib_prefix=no | |
11219 | need_version=no | |
11220 | shlibpath_overrides_runpath=no | |
11221 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11222 | ;; | |
11223 | esac | |
11224 | ;; | |
d7040cdb | 11225 | |
ce2cded5 L |
11226 | sysv4*MP*) |
11227 | if test -d /usr/nec ;then | |
11228 | version_type=linux | |
11229 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11230 | soname_spec='$libname${shared_ext}.$major' | |
11231 | shlibpath_var=LD_LIBRARY_PATH | |
11232 | fi | |
11233 | ;; | |
d7040cdb | 11234 | |
ce2cded5 L |
11235 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11236 | version_type=freebsd-elf | |
11237 | need_lib_prefix=no | |
11238 | need_version=no | |
11239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11240 | soname_spec='${libname}${release}${shared_ext}$major' | |
11241 | shlibpath_var=LD_LIBRARY_PATH | |
11242 | shlibpath_overrides_runpath=yes | |
11243 | hardcode_into_libs=yes | |
11244 | if test "$with_gnu_ld" = yes; then | |
11245 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11246 | else | |
11247 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11248 | case $host_os in | |
11249 | sco3.2v5*) | |
11250 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11251 | ;; | |
11252 | esac | |
11253 | fi | |
11254 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11255 | ;; | |
d7040cdb | 11256 | |
ce2cded5 L |
11257 | tpf*) |
11258 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11259 | version_type=linux | |
11260 | need_lib_prefix=no | |
11261 | need_version=no | |
b214d478 | 11262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
11263 | shlibpath_var=LD_LIBRARY_PATH |
11264 | shlibpath_overrides_runpath=no | |
11265 | hardcode_into_libs=yes | |
11266 | ;; | |
d7040cdb | 11267 | |
ce2cded5 L |
11268 | uts4*) |
11269 | version_type=linux | |
11270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11271 | soname_spec='${libname}${release}${shared_ext}$major' | |
11272 | shlibpath_var=LD_LIBRARY_PATH | |
11273 | ;; | |
d7040cdb | 11274 | |
ce2cded5 L |
11275 | *) |
11276 | dynamic_linker=no | |
11277 | ;; | |
11278 | esac | |
81ecdfbb RW |
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11280 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
11281 | test "$dynamic_linker" = no && can_build_shared=no |
11282 | ||
11283 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11284 | if test "$GCC" = yes; then | |
11285 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
11286 | fi |
11287 | ||
b214d478 SE |
11288 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11289 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11290 | fi | |
11291 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11292 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11293 | fi | |
11294 | ||
d7040cdb SE |
11295 | |
11296 | ||
11297 | ||
11298 | ||
11299 | ||
11300 | ||
11301 | ||
11302 | ||
11303 | ||
11304 | ||
11305 | ||
d7040cdb | 11306 | |
d7040cdb | 11307 | |
d7040cdb | 11308 | |
d7040cdb | 11309 | |
d7040cdb SE |
11310 | |
11311 | ||
11312 | ||
11313 | ||
d7040cdb | 11314 | |
d7040cdb SE |
11315 | |
11316 | ||
11317 | ||
11318 | ||
11319 | ||
11320 | ||
11321 | ||
11322 | ||
11323 | ||
11324 | ||
11325 | ||
11326 | ||
11327 | ||
d7040cdb SE |
11328 | |
11329 | ||
11330 | ||
11331 | ||
d7040cdb SE |
11332 | |
11333 | ||
11334 | ||
11335 | ||
d7040cdb | 11336 | |
d7040cdb | 11337 | |
d7040cdb | 11338 | |
d7040cdb | 11339 | |
d7040cdb | 11340 | |
d7040cdb | 11341 | |
d7040cdb | 11342 | |
d7040cdb SE |
11343 | |
11344 | ||
11345 | ||
11346 | ||
11347 | ||
d7040cdb | 11348 | |
d7040cdb | 11349 | |
d7040cdb | 11350 | |
d7040cdb | 11351 | |
d7040cdb | 11352 | |
d7040cdb | 11353 | |
d7040cdb SE |
11354 | |
11355 | ||
11356 | ||
11357 | ||
11358 | ||
d7040cdb SE |
11359 | |
11360 | ||
d7040cdb | 11361 | |
d7040cdb | 11362 | |
d7040cdb | 11363 | |
d7040cdb | 11364 | |
ce2cded5 L |
11365 | |
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
3725885a RW |
11375 | |
11376 | ||
11377 | ||
11378 | ||
11379 | ||
ce2cded5 L |
11380 | |
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ||
81ecdfbb RW |
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11387 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
11388 | hardcode_action= |
11389 | if test -n "$hardcode_libdir_flag_spec" || | |
11390 | test -n "$runpath_var" || | |
11391 | test "X$hardcode_automatic" = "Xyes" ; then | |
11392 | ||
11393 | # We can hardcode non-existent directories. | |
11394 | if test "$hardcode_direct" != no && | |
11395 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11396 | # have to relink, otherwise we might link with an installed library | |
11397 | # when we should be linking with a yet-to-be-installed one | |
11398 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11399 | test "$hardcode_minus_L" != no; then | |
11400 | # Linking always hardcodes the temporary library directory. | |
11401 | hardcode_action=relink | |
11402 | else | |
11403 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11404 | hardcode_action=immediate | |
d7040cdb | 11405 | fi |
d7040cdb | 11406 | else |
ce2cded5 L |
11407 | # We cannot hardcode anything, or else we can only hardcode existing |
11408 | # directories. | |
11409 | hardcode_action=unsupported | |
d7040cdb | 11410 | fi |
81ecdfbb RW |
11411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11412 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 11413 | |
ce2cded5 L |
11414 | if test "$hardcode_action" = relink || |
11415 | test "$inherit_rpath" = yes; then | |
11416 | # Fast installation is not supported | |
11417 | enable_fast_install=no | |
11418 | elif test "$shlibpath_overrides_runpath" = yes || | |
11419 | test "$enable_shared" = no; then | |
11420 | # Fast installation is not necessary | |
11421 | enable_fast_install=needless | |
d7040cdb SE |
11422 | fi |
11423 | ||
d7040cdb | 11424 | |
d7040cdb | 11425 | |
d7040cdb | 11426 | |
d7040cdb | 11427 | |
d7040cdb | 11428 | |
ce2cded5 L |
11429 | if test "x$enable_dlopen" != xyes; then |
11430 | enable_dlopen=unknown | |
11431 | enable_dlopen_self=unknown | |
11432 | enable_dlopen_self_static=unknown | |
d7040cdb | 11433 | else |
ce2cded5 L |
11434 | lt_cv_dlopen=no |
11435 | lt_cv_dlopen_libs= | |
d7040cdb | 11436 | |
ce2cded5 L |
11437 | case $host_os in |
11438 | beos*) | |
11439 | lt_cv_dlopen="load_add_on" | |
11440 | lt_cv_dlopen_libs= | |
11441 | lt_cv_dlopen_self=yes | |
11442 | ;; | |
d7040cdb | 11443 | |
b214d478 | 11444 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11445 | lt_cv_dlopen="LoadLibrary" |
11446 | lt_cv_dlopen_libs= | |
11447 | ;; | |
11448 | ||
11449 | cygwin*) | |
11450 | lt_cv_dlopen="dlopen" | |
11451 | lt_cv_dlopen_libs= | |
11452 | ;; | |
11453 | ||
11454 | darwin*) | |
11455 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11457 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11458 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11459 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11460 | else |
ce2cded5 L |
11461 | ac_check_lib_save_LIBS=$LIBS |
11462 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11464 | /* end confdefs.h. */ |
11465 | ||
81ecdfbb RW |
11466 | /* Override any GCC internal prototype to avoid an error. |
11467 | Use char because int might match the return type of a GCC | |
11468 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11469 | #ifdef __cplusplus |
11470 | extern "C" | |
11471 | #endif | |
ce2cded5 L |
11472 | char dlopen (); |
11473 | int | |
11474 | main () | |
11475 | { | |
81ecdfbb | 11476 | return dlopen (); |
ce2cded5 L |
11477 | ; |
11478 | return 0; | |
11479 | } | |
11480 | _ACEOF | |
81ecdfbb | 11481 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11482 | ac_cv_lib_dl_dlopen=yes |
11483 | else | |
81ecdfbb | 11484 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11485 | fi |
81ecdfbb RW |
11486 | rm -f core conftest.err conftest.$ac_objext \ |
11487 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11488 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11489 | fi |
81ecdfbb RW |
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11491 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11492 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11493 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11494 | else |
d7040cdb | 11495 | |
ce2cded5 L |
11496 | lt_cv_dlopen="dyld" |
11497 | lt_cv_dlopen_libs= | |
11498 | lt_cv_dlopen_self=yes | |
11499 | ||
d7040cdb | 11500 | fi |
ce2cded5 L |
11501 | |
11502 | ;; | |
11503 | ||
11504 | *) | |
81ecdfbb RW |
11505 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11506 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
11507 | lt_cv_dlopen="shl_load" |
11508 | else | |
81ecdfbb RW |
11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11510 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11511 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
11512 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11513 | else |
11514 | ac_check_lib_save_LIBS=$LIBS | |
11515 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11517 | /* end confdefs.h. */ |
d7040cdb | 11518 | |
81ecdfbb RW |
11519 | /* Override any GCC internal prototype to avoid an error. |
11520 | Use char because int might match the return type of a GCC | |
11521 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11522 | #ifdef __cplusplus |
11523 | extern "C" | |
11524 | #endif | |
ce2cded5 L |
11525 | char shl_load (); |
11526 | int | |
11527 | main () | |
11528 | { | |
81ecdfbb | 11529 | return shl_load (); |
ce2cded5 L |
11530 | ; |
11531 | return 0; | |
11532 | } | |
11533 | _ACEOF | |
81ecdfbb | 11534 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11535 | ac_cv_lib_dld_shl_load=yes |
11536 | else | |
81ecdfbb | 11537 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 11538 | fi |
81ecdfbb RW |
11539 | rm -f core conftest.err conftest.$ac_objext \ |
11540 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11541 | LIBS=$ac_check_lib_save_LIBS |
11542 | fi | |
81ecdfbb RW |
11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11544 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11545 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
b214d478 | 11546 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 11547 | else |
81ecdfbb RW |
11548 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11549 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
11550 | lt_cv_dlopen="dlopen" |
11551 | else | |
81ecdfbb RW |
11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11553 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11554 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11555 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11556 | else |
ce2cded5 L |
11557 | ac_check_lib_save_LIBS=$LIBS |
11558 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11560 | /* end confdefs.h. */ |
11561 | ||
81ecdfbb RW |
11562 | /* Override any GCC internal prototype to avoid an error. |
11563 | Use char because int might match the return type of a GCC | |
11564 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11565 | #ifdef __cplusplus |
11566 | extern "C" | |
11567 | #endif | |
ce2cded5 | 11568 | char dlopen (); |
d7040cdb SE |
11569 | int |
11570 | main () | |
11571 | { | |
81ecdfbb | 11572 | return dlopen (); |
d7040cdb SE |
11573 | ; |
11574 | return 0; | |
11575 | } | |
11576 | _ACEOF | |
81ecdfbb | 11577 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11578 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 11579 | else |
81ecdfbb | 11580 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11581 | fi |
81ecdfbb RW |
11582 | rm -f core conftest.err conftest.$ac_objext \ |
11583 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11584 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11585 | fi |
81ecdfbb RW |
11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11587 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11588 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11589 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11590 | else |
81ecdfbb RW |
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11592 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11593 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
11594 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11595 | else |
ce2cded5 L |
11596 | ac_check_lib_save_LIBS=$LIBS |
11597 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 11598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11599 | /* end confdefs.h. */ |
d7040cdb | 11600 | |
81ecdfbb RW |
11601 | /* Override any GCC internal prototype to avoid an error. |
11602 | Use char because int might match the return type of a GCC | |
11603 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11604 | #ifdef __cplusplus |
11605 | extern "C" | |
11606 | #endif | |
ce2cded5 | 11607 | char dlopen (); |
d7040cdb SE |
11608 | int |
11609 | main () | |
11610 | { | |
81ecdfbb | 11611 | return dlopen (); |
d7040cdb SE |
11612 | ; |
11613 | return 0; | |
11614 | } | |
11615 | _ACEOF | |
81ecdfbb | 11616 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11617 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 11618 | else |
81ecdfbb | 11619 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 11620 | fi |
81ecdfbb RW |
11621 | rm -f core conftest.err conftest.$ac_objext \ |
11622 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11623 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11624 | fi |
81ecdfbb RW |
11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11626 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11627 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
11628 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11629 | else | |
81ecdfbb RW |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11631 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11632 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11633 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11634 | else |
11635 | ac_check_lib_save_LIBS=$LIBS | |
11636 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11638 | /* end confdefs.h. */ |
11639 | ||
81ecdfbb RW |
11640 | /* Override any GCC internal prototype to avoid an error. |
11641 | Use char because int might match the return type of a GCC | |
11642 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11643 | #ifdef __cplusplus |
11644 | extern "C" | |
11645 | #endif | |
ce2cded5 | 11646 | char dld_link (); |
d7040cdb SE |
11647 | int |
11648 | main () | |
11649 | { | |
81ecdfbb | 11650 | return dld_link (); |
d7040cdb SE |
11651 | ; |
11652 | return 0; | |
11653 | } | |
11654 | _ACEOF | |
81ecdfbb | 11655 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11656 | ac_cv_lib_dld_dld_link=yes |
d7040cdb | 11657 | else |
81ecdfbb | 11658 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11659 | fi |
81ecdfbb RW |
11660 | rm -f core conftest.err conftest.$ac_objext \ |
11661 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11662 | LIBS=$ac_check_lib_save_LIBS |
11663 | fi | |
81ecdfbb RW |
11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11665 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11666 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
b214d478 | 11667 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11668 | fi |
11669 | ||
11670 | ||
11671 | fi | |
11672 | ||
11673 | ||
11674 | fi | |
11675 | ||
11676 | ||
11677 | fi | |
11678 | ||
11679 | ||
11680 | fi | |
11681 | ||
11682 | ||
11683 | fi | |
11684 | ||
11685 | ;; | |
11686 | esac | |
11687 | ||
11688 | if test "x$lt_cv_dlopen" != xno; then | |
11689 | enable_dlopen=yes | |
11690 | else | |
11691 | enable_dlopen=no | |
11692 | fi | |
11693 | ||
11694 | case $lt_cv_dlopen in | |
11695 | dlopen) | |
11696 | save_CPPFLAGS="$CPPFLAGS" | |
11697 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11698 | ||
11699 | save_LDFLAGS="$LDFLAGS" | |
11700 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11701 | ||
11702 | save_LIBS="$LIBS" | |
11703 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11704 | ||
81ecdfbb RW |
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11706 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11707 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11708 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11709 | else |
11710 | if test "$cross_compiling" = yes; then : | |
11711 | lt_cv_dlopen_self=cross | |
11712 | else | |
11713 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11714 | lt_status=$lt_dlunknown | |
11715 | cat > conftest.$ac_ext <<_LT_EOF | |
c58212ea | 11716 | #line 11716 "configure" |
ce2cded5 L |
11717 | #include "confdefs.h" |
11718 | ||
11719 | #if HAVE_DLFCN_H | |
11720 | #include <dlfcn.h> | |
11721 | #endif | |
11722 | ||
11723 | #include <stdio.h> | |
11724 | ||
11725 | #ifdef RTLD_GLOBAL | |
11726 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11727 | #else | |
11728 | # ifdef DL_GLOBAL | |
11729 | # define LT_DLGLOBAL DL_GLOBAL | |
11730 | # else | |
11731 | # define LT_DLGLOBAL 0 | |
11732 | # endif | |
11733 | #endif | |
11734 | ||
11735 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11736 | find out it does not work in some platform. */ | |
11737 | #ifndef LT_DLLAZY_OR_NOW | |
11738 | # ifdef RTLD_LAZY | |
11739 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11740 | # else | |
11741 | # ifdef DL_LAZY | |
11742 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11743 | # else | |
11744 | # ifdef RTLD_NOW | |
11745 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11746 | # else | |
11747 | # ifdef DL_NOW | |
11748 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11749 | # else | |
11750 | # define LT_DLLAZY_OR_NOW 0 | |
11751 | # endif | |
11752 | # endif | |
11753 | # endif | |
11754 | # endif | |
11755 | #endif | |
11756 | ||
3725885a RW |
11757 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11758 | correspondingly for the symbols needed. */ | |
11759 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11760 | void fnord () __attribute__((visibility("default"))); | |
11761 | #endif | |
11762 | ||
11763 | void fnord () { int i=42; } | |
ce2cded5 | 11764 | int main () |
d7040cdb | 11765 | { |
ce2cded5 L |
11766 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11767 | int status = $lt_dlunknown; | |
11768 | ||
11769 | if (self) | |
11770 | { | |
11771 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11772 | else |
11773 | { | |
11774 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11775 | else puts (dlerror ()); | |
11776 | } | |
ce2cded5 L |
11777 | /* dlclose (self); */ |
11778 | } | |
11779 | else | |
11780 | puts (dlerror ()); | |
11781 | ||
b214d478 | 11782 | return status; |
d7040cdb | 11783 | } |
ce2cded5 | 11784 | _LT_EOF |
81ecdfbb | 11785 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 11786 | (eval $ac_link) 2>&5 |
d7040cdb | 11787 | ac_status=$? |
81ecdfbb RW |
11788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11789 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11790 | (./conftest; exit; ) >&5 2>/dev/null |
11791 | lt_status=$? | |
11792 | case x$lt_status in | |
11793 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11794 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11795 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11796 | esac | |
11797 | else : | |
11798 | # compilation failed | |
11799 | lt_cv_dlopen_self=no | |
11800 | fi | |
11801 | fi | |
11802 | rm -fr conftest* | |
11803 | ||
11804 | ||
11805 | fi | |
81ecdfbb RW |
11806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11807 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11808 | |
11809 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11810 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11812 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11813 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11814 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11815 | else |
11816 | if test "$cross_compiling" = yes; then : | |
11817 | lt_cv_dlopen_self_static=cross | |
11818 | else | |
11819 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11820 | lt_status=$lt_dlunknown | |
11821 | cat > conftest.$ac_ext <<_LT_EOF | |
c58212ea | 11822 | #line 11822 "configure" |
ce2cded5 L |
11823 | #include "confdefs.h" |
11824 | ||
11825 | #if HAVE_DLFCN_H | |
11826 | #include <dlfcn.h> | |
11827 | #endif | |
11828 | ||
11829 | #include <stdio.h> | |
11830 | ||
11831 | #ifdef RTLD_GLOBAL | |
11832 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11833 | #else | |
11834 | # ifdef DL_GLOBAL | |
11835 | # define LT_DLGLOBAL DL_GLOBAL | |
11836 | # else | |
11837 | # define LT_DLGLOBAL 0 | |
11838 | # endif | |
11839 | #endif | |
11840 | ||
11841 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11842 | find out it does not work in some platform. */ | |
11843 | #ifndef LT_DLLAZY_OR_NOW | |
11844 | # ifdef RTLD_LAZY | |
11845 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11846 | # else | |
11847 | # ifdef DL_LAZY | |
11848 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11849 | # else | |
11850 | # ifdef RTLD_NOW | |
11851 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11852 | # else | |
11853 | # ifdef DL_NOW | |
11854 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11855 | # else | |
11856 | # define LT_DLLAZY_OR_NOW 0 | |
11857 | # endif | |
11858 | # endif | |
11859 | # endif | |
11860 | # endif | |
11861 | #endif | |
11862 | ||
3cb62297 L |
11863 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11864 | correspondingly for the symbols needed. */ | |
11865 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11866 | void fnord () __attribute__((visibility("default"))); | |
11867 | #endif | |
11868 | ||
11869 | void fnord () { int i=42; } | |
11870 | int main () | |
11871 | { | |
11872 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11873 | int status = $lt_dlunknown; | |
11874 | ||
11875 | if (self) | |
11876 | { | |
11877 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11878 | else | |
11879 | { | |
11880 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11881 | else puts (dlerror ()); | |
11882 | } | |
11883 | /* dlclose (self); */ | |
11884 | } | |
11885 | else | |
11886 | puts (dlerror ()); | |
11887 | ||
11888 | return status; | |
11889 | } | |
11890 | _LT_EOF | |
11891 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11892 | (eval $ac_link) 2>&5 | |
11893 | ac_status=$? | |
11894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11895 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11896 | (./conftest; exit; ) >&5 2>/dev/null | |
11897 | lt_status=$? | |
11898 | case x$lt_status in | |
11899 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11900 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11901 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11902 | esac | |
11903 | else : | |
11904 | # compilation failed | |
11905 | lt_cv_dlopen_self_static=no | |
11906 | fi | |
11907 | fi | |
11908 | rm -fr conftest* | |
11909 | ||
11910 | ||
11911 | fi | |
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11913 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11914 | fi | |
11915 | ||
11916 | CPPFLAGS="$save_CPPFLAGS" | |
11917 | LDFLAGS="$save_LDFLAGS" | |
11918 | LIBS="$save_LIBS" | |
11919 | ;; | |
11920 | esac | |
11921 | ||
11922 | case $lt_cv_dlopen_self in | |
11923 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11924 | *) enable_dlopen_self=unknown ;; | |
11925 | esac | |
11926 | ||
11927 | case $lt_cv_dlopen_self_static in | |
11928 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11929 | *) enable_dlopen_self_static=unknown ;; | |
11930 | esac | |
11931 | fi | |
11932 | ||
11933 | ||
11934 | ||
11935 | ||
11936 | ||
11937 | ||
11938 | ||
11939 | ||
11940 | ||
11941 | ||
11942 | ||
11943 | ||
11944 | ||
11945 | ||
11946 | ||
11947 | ||
11948 | ||
11949 | striplib= | |
11950 | old_striplib= | |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11952 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11953 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11954 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11955 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11957 | $as_echo "yes" >&6; } | |
11958 | else | |
11959 | # FIXME - insert some real tests, host_os isn't really good enough | |
11960 | case $host_os in | |
11961 | darwin*) | |
11962 | if test -n "$STRIP" ; then | |
11963 | striplib="$STRIP -x" | |
11964 | old_striplib="$STRIP -S" | |
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11966 | $as_echo "yes" >&6; } | |
11967 | else | |
11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11969 | $as_echo "no" >&6; } | |
11970 | fi | |
11971 | ;; | |
11972 | *) | |
11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11974 | $as_echo "no" >&6; } | |
11975 | ;; | |
11976 | esac | |
11977 | fi | |
11978 | ||
11979 | ||
11980 | ||
11981 | ||
11982 | ||
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | # Report which library types will actually be built | |
11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11992 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11994 | $as_echo "$can_build_shared" >&6; } | |
11995 | ||
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11997 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11998 | test "$can_build_shared" = "no" && enable_shared=no | |
11999 | ||
12000 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12001 | # are all built from PIC. | |
12002 | case $host_os in | |
12003 | aix3*) | |
12004 | test "$enable_shared" = yes && enable_static=no | |
12005 | if test -n "$RANLIB"; then | |
12006 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12007 | postinstall_cmds='$RANLIB $lib' | |
12008 | fi | |
12009 | ;; | |
12010 | ||
12011 | aix[4-9]*) | |
12012 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12013 | test "$enable_shared" = yes && enable_static=no | |
12014 | fi | |
12015 | ;; | |
12016 | esac | |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12018 | $as_echo "$enable_shared" >&6; } | |
12019 | ||
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12021 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12022 | # Make sure either enable_shared or enable_static is yes. | |
12023 | test "$enable_shared" = yes || enable_static=yes | |
12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12025 | $as_echo "$enable_static" >&6; } | |
12026 | ||
12027 | ||
12028 | ||
12029 | ||
12030 | fi | |
12031 | ac_ext=c | |
12032 | ac_cpp='$CPP $CPPFLAGS' | |
12033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12036 | ||
12037 | CC="$lt_save_CC" | |
12038 | ||
12039 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12040 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12041 | (test "X$CXX" != "Xg++"))) ; then | |
12042 | ac_ext=cpp | |
12043 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12044 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12045 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12046 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12048 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12049 | if test -z "$CXXCPP"; then | |
12050 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
12051 | $as_echo_n "(cached) " >&6 | |
12052 | else | |
12053 | # Double quotes because CXXCPP needs to be expanded | |
12054 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12055 | do | |
12056 | ac_preproc_ok=false | |
12057 | for ac_cxx_preproc_warn_flag in '' yes | |
12058 | do | |
12059 | # Use a header file that comes with gcc, so configuring glibc | |
12060 | # with a fresh cross-compiler works. | |
12061 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12062 | # <limits.h> exists even on freestanding compilers. | |
12063 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12064 | # not just through cpp. "Syntax error" is here to catch this case. | |
12065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12066 | /* end confdefs.h. */ | |
12067 | #ifdef __STDC__ | |
12068 | # include <limits.h> | |
12069 | #else | |
12070 | # include <assert.h> | |
12071 | #endif | |
12072 | Syntax error | |
12073 | _ACEOF | |
12074 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12075 | ||
12076 | else | |
12077 | # Broken: fails on valid input. | |
12078 | continue | |
12079 | fi | |
12080 | rm -f conftest.err conftest.$ac_ext | |
12081 | ||
12082 | # OK, works on sane cases. Now check whether nonexistent headers | |
12083 | # can be detected and how. | |
12084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12085 | /* end confdefs.h. */ | |
12086 | #include <ac_nonexistent.h> | |
12087 | _ACEOF | |
12088 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12089 | # Broken: success on invalid input. | |
12090 | continue | |
12091 | else | |
12092 | # Passes both tests. | |
12093 | ac_preproc_ok=: | |
12094 | break | |
12095 | fi | |
12096 | rm -f conftest.err conftest.$ac_ext | |
12097 | ||
12098 | done | |
12099 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12100 | rm -f conftest.err conftest.$ac_ext | |
12101 | if $ac_preproc_ok; then : | |
12102 | break | |
12103 | fi | |
12104 | ||
12105 | done | |
12106 | ac_cv_prog_CXXCPP=$CXXCPP | |
12107 | ||
12108 | fi | |
12109 | CXXCPP=$ac_cv_prog_CXXCPP | |
12110 | else | |
12111 | ac_cv_prog_CXXCPP=$CXXCPP | |
12112 | fi | |
12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12114 | $as_echo "$CXXCPP" >&6; } | |
12115 | ac_preproc_ok=false | |
12116 | for ac_cxx_preproc_warn_flag in '' yes | |
12117 | do | |
12118 | # Use a header file that comes with gcc, so configuring glibc | |
12119 | # with a fresh cross-compiler works. | |
12120 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12121 | # <limits.h> exists even on freestanding compilers. | |
12122 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12123 | # not just through cpp. "Syntax error" is here to catch this case. | |
12124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12125 | /* end confdefs.h. */ | |
12126 | #ifdef __STDC__ | |
12127 | # include <limits.h> | |
12128 | #else | |
12129 | # include <assert.h> | |
12130 | #endif | |
12131 | Syntax error | |
12132 | _ACEOF | |
12133 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12134 | ||
12135 | else | |
12136 | # Broken: fails on valid input. | |
12137 | continue | |
12138 | fi | |
12139 | rm -f conftest.err conftest.$ac_ext | |
12140 | ||
12141 | # OK, works on sane cases. Now check whether nonexistent headers | |
12142 | # can be detected and how. | |
12143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12144 | /* end confdefs.h. */ | |
12145 | #include <ac_nonexistent.h> | |
12146 | _ACEOF | |
12147 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12148 | # Broken: success on invalid input. | |
12149 | continue | |
12150 | else | |
12151 | # Passes both tests. | |
12152 | ac_preproc_ok=: | |
12153 | break | |
12154 | fi | |
12155 | rm -f conftest.err conftest.$ac_ext | |
12156 | ||
12157 | done | |
12158 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12159 | rm -f conftest.err conftest.$ac_ext | |
12160 | if $ac_preproc_ok; then : | |
12161 | ||
12162 | else | |
12163 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12165 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
12166 | See \`config.log' for more details." "$LINENO" 5; } | |
12167 | fi | |
12168 | ||
12169 | ac_ext=c | |
12170 | ac_cpp='$CPP $CPPFLAGS' | |
12171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12174 | ||
12175 | else | |
12176 | _lt_caught_CXX_error=yes | |
12177 | fi | |
12178 | ||
12179 | ac_ext=cpp | |
12180 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12181 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12182 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12183 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12184 | ||
12185 | archive_cmds_need_lc_CXX=no | |
12186 | allow_undefined_flag_CXX= | |
12187 | always_export_symbols_CXX=no | |
12188 | archive_expsym_cmds_CXX= | |
12189 | compiler_needs_object_CXX=no | |
12190 | export_dynamic_flag_spec_CXX= | |
12191 | hardcode_direct_CXX=no | |
12192 | hardcode_direct_absolute_CXX=no | |
12193 | hardcode_libdir_flag_spec_CXX= | |
12194 | hardcode_libdir_flag_spec_ld_CXX= | |
12195 | hardcode_libdir_separator_CXX= | |
12196 | hardcode_minus_L_CXX=no | |
12197 | hardcode_shlibpath_var_CXX=unsupported | |
12198 | hardcode_automatic_CXX=no | |
12199 | inherit_rpath_CXX=no | |
12200 | module_cmds_CXX= | |
12201 | module_expsym_cmds_CXX= | |
12202 | link_all_deplibs_CXX=unknown | |
12203 | old_archive_cmds_CXX=$old_archive_cmds | |
12204 | reload_flag_CXX=$reload_flag | |
12205 | reload_cmds_CXX=$reload_cmds | |
12206 | no_undefined_flag_CXX= | |
12207 | whole_archive_flag_spec_CXX= | |
12208 | enable_shared_with_static_runtimes_CXX=no | |
12209 | ||
12210 | # Source file extension for C++ test sources. | |
12211 | ac_ext=cpp | |
12212 | ||
12213 | # Object file extension for compiled C++ test sources. | |
12214 | objext=o | |
12215 | objext_CXX=$objext | |
12216 | ||
12217 | # No sense in running all these tests if we already determined that | |
12218 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12219 | # are currently assumed to apply to all compilers on this platform, | |
12220 | # and will be corrupted by setting them based on a non-working compiler. | |
12221 | if test "$_lt_caught_CXX_error" != yes; then | |
12222 | # Code to be used in simple compile tests | |
12223 | lt_simple_compile_test_code="int some_variable = 0;" | |
12224 | ||
12225 | # Code to be used in simple link tests | |
12226 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12227 | ||
12228 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12229 | ||
12230 | ||
12231 | ||
12232 | ||
12233 | ||
12234 | ||
12235 | # If no C compiler was specified, use CC. | |
12236 | LTCC=${LTCC-"$CC"} | |
12237 | ||
12238 | # If no C compiler flags were specified, use CFLAGS. | |
12239 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12240 | ||
12241 | # Allow CC to be a program name with arguments. | |
12242 | compiler=$CC | |
12243 | ||
12244 | ||
12245 | # save warnings/boilerplate of simple test code | |
12246 | ac_outfile=conftest.$ac_objext | |
12247 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12248 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12249 | _lt_compiler_boilerplate=`cat conftest.err` | |
12250 | $RM conftest* | |
12251 | ||
12252 | ac_outfile=conftest.$ac_objext | |
12253 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12254 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12255 | _lt_linker_boilerplate=`cat conftest.err` | |
12256 | $RM -r conftest* | |
12257 | ||
12258 | ||
12259 | # Allow CC to be a program name with arguments. | |
12260 | lt_save_CC=$CC | |
12261 | lt_save_LD=$LD | |
12262 | lt_save_GCC=$GCC | |
12263 | GCC=$GXX | |
12264 | lt_save_with_gnu_ld=$with_gnu_ld | |
12265 | lt_save_path_LD=$lt_cv_path_LD | |
12266 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12267 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12268 | else | |
12269 | $as_unset lt_cv_prog_gnu_ld | |
12270 | fi | |
12271 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12272 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12273 | else | |
12274 | $as_unset lt_cv_path_LD | |
12275 | fi | |
12276 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12277 | CC=${CXX-"c++"} | |
12278 | compiler=$CC | |
12279 | compiler_CXX=$CC | |
12280 | for cc_temp in $compiler""; do | |
12281 | case $cc_temp in | |
12282 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12283 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12284 | \-*) ;; | |
12285 | *) break;; | |
12286 | esac | |
12287 | done | |
12288 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12289 | ||
12290 | ||
12291 | if test -n "$compiler"; then | |
12292 | # We don't want -fno-exception when compiling C++ code, so set the | |
12293 | # no_builtin_flag separately | |
12294 | if test "$GXX" = yes; then | |
12295 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12296 | else | |
12297 | lt_prog_compiler_no_builtin_flag_CXX= | |
12298 | fi | |
12299 | ||
12300 | if test "$GXX" = yes; then | |
12301 | # Set up default GNU C++ configuration | |
12302 | ||
12303 | ||
12304 | ||
12305 | # Check whether --with-gnu-ld was given. | |
12306 | if test "${with_gnu_ld+set}" = set; then : | |
12307 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12308 | else | |
12309 | with_gnu_ld=no | |
12310 | fi | |
12311 | ||
12312 | ac_prog=ld | |
12313 | if test "$GCC" = yes; then | |
12314 | # Check if gcc -print-prog-name=ld gives a path. | |
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12316 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12317 | case $host in | |
12318 | *-*-mingw*) | |
12319 | # gcc leaves a trailing carriage return which upsets mingw | |
12320 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12321 | *) | |
12322 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12323 | esac | |
12324 | case $ac_prog in | |
12325 | # Accept absolute paths. | |
12326 | [\\/]* | ?:[\\/]*) | |
12327 | re_direlt='/[^/][^/]*/\.\./' | |
12328 | # Canonicalize the pathname of ld | |
12329 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12330 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12331 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12332 | done | |
12333 | test -z "$LD" && LD="$ac_prog" | |
12334 | ;; | |
12335 | "") | |
12336 | # If it fails, then pretend we aren't using GCC. | |
12337 | ac_prog=ld | |
12338 | ;; | |
12339 | *) | |
12340 | # If it is relative, then search for the first ld in PATH. | |
12341 | with_gnu_ld=unknown | |
12342 | ;; | |
12343 | esac | |
12344 | elif test "$with_gnu_ld" = yes; then | |
12345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12346 | $as_echo_n "checking for GNU ld... " >&6; } | |
12347 | else | |
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12349 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12350 | fi | |
12351 | if test "${lt_cv_path_LD+set}" = set; then : | |
12352 | $as_echo_n "(cached) " >&6 | |
12353 | else | |
12354 | if test -z "$LD"; then | |
12355 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12356 | for ac_dir in $PATH; do | |
12357 | IFS="$lt_save_ifs" | |
12358 | test -z "$ac_dir" && ac_dir=. | |
12359 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12360 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12361 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12362 | # but apparently some variants of GNU ld only accept -v. | |
12363 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12364 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12365 | *GNU* | *'with BFD'*) | |
12366 | test "$with_gnu_ld" != no && break | |
12367 | ;; | |
12368 | *) | |
12369 | test "$with_gnu_ld" != yes && break | |
12370 | ;; | |
12371 | esac | |
12372 | fi | |
12373 | done | |
12374 | IFS="$lt_save_ifs" | |
12375 | else | |
12376 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12377 | fi | |
12378 | fi | |
12379 | ||
12380 | LD="$lt_cv_path_LD" | |
12381 | if test -n "$LD"; then | |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12383 | $as_echo "$LD" >&6; } | |
12384 | else | |
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12386 | $as_echo "no" >&6; } | |
12387 | fi | |
12388 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
12390 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
12391 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
12392 | $as_echo_n "(cached) " >&6 | |
12393 | else | |
12394 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12395 | case `$LD -v 2>&1 </dev/null` in | |
12396 | *GNU* | *'with BFD'*) | |
12397 | lt_cv_prog_gnu_ld=yes | |
12398 | ;; | |
12399 | *) | |
12400 | lt_cv_prog_gnu_ld=no | |
12401 | ;; | |
12402 | esac | |
12403 | fi | |
12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12405 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12406 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12407 | ||
12408 | ||
12409 | ||
12410 | ||
12411 | ||
12412 | ||
12413 | ||
12414 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12415 | # archiving commands below assume that GNU ld is being used. | |
12416 | if test "$with_gnu_ld" = yes; then | |
6e733cce L |
12417 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12418 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3cb62297 L |
12419 | |
12420 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12421 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12422 | ||
12423 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12424 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12425 | # investigate it a little bit more. (MM) | |
12426 | wlarc='${wl}' | |
12427 | ||
12428 | # ancient GNU ld didn't support --whole-archive et. al. | |
12429 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12430 | $GREP 'no-whole-archive' > /dev/null; then | |
12431 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12432 | else | |
12433 | whole_archive_flag_spec_CXX= | |
12434 | fi | |
12435 | else | |
12436 | with_gnu_ld=no | |
12437 | wlarc= | |
12438 | ||
12439 | # A generic and very simple default shared library creation | |
12440 | # command for GNU C++ for the case where it uses the native | |
12441 | # linker, instead of GNU ld. If possible, this setting should | |
12442 | # overridden to take advantage of the native linker features on | |
12443 | # the platform it is being used on. | |
12444 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12445 | fi | |
12446 | ||
12447 | # Commands to make compiler produce verbose output that lists | |
12448 | # what "hidden" libraries, object files and flags are used when | |
12449 | # linking a shared library. | |
12450 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12451 | ||
12452 | else | |
12453 | GXX=no | |
12454 | with_gnu_ld=no | |
12455 | wlarc= | |
12456 | fi | |
12457 | ||
12458 | # PORTME: fill in a description of your system's C++ link characteristics | |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12460 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12461 | ld_shlibs_CXX=yes | |
12462 | case $host_os in | |
12463 | aix3*) | |
12464 | # FIXME: insert proper C++ library support | |
12465 | ld_shlibs_CXX=no | |
12466 | ;; | |
12467 | aix[4-9]*) | |
12468 | if test "$host_cpu" = ia64; then | |
12469 | # On IA64, the linker does run time linking by default, so we don't | |
12470 | # have to do anything special. | |
12471 | aix_use_runtimelinking=no | |
12472 | exp_sym_flag='-Bexport' | |
12473 | no_entry_flag="" | |
12474 | else | |
12475 | aix_use_runtimelinking=no | |
12476 | ||
12477 | # Test if we are trying to use run time linking or normal | |
12478 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12479 | # need to do runtime linking. | |
12480 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12481 | for ld_flag in $LDFLAGS; do | |
12482 | case $ld_flag in | |
12483 | *-brtl*) | |
12484 | aix_use_runtimelinking=yes | |
12485 | break | |
12486 | ;; | |
12487 | esac | |
12488 | done | |
12489 | ;; | |
12490 | esac | |
12491 | ||
12492 | exp_sym_flag='-bexport' | |
12493 | no_entry_flag='-bnoentry' | |
12494 | fi | |
12495 | ||
12496 | # When large executables or shared objects are built, AIX ld can | |
12497 | # have problems creating the table of contents. If linking a library | |
12498 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12499 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12500 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12501 | ||
12502 | archive_cmds_CXX='' | |
12503 | hardcode_direct_CXX=yes | |
12504 | hardcode_direct_absolute_CXX=yes | |
12505 | hardcode_libdir_separator_CXX=':' | |
12506 | link_all_deplibs_CXX=yes | |
12507 | file_list_spec_CXX='${wl}-f,' | |
12508 | ||
12509 | if test "$GXX" = yes; then | |
12510 | case $host_os in aix4.[012]|aix4.[012].*) | |
12511 | # We only want to do this on AIX 4.2 and lower, the check | |
12512 | # below for broken collect2 doesn't work under 4.3+ | |
12513 | collect2name=`${CC} -print-prog-name=collect2` | |
12514 | if test -f "$collect2name" && | |
12515 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12516 | then | |
12517 | # We have reworked collect2 | |
12518 | : | |
12519 | else | |
12520 | # We have old collect2 | |
12521 | hardcode_direct_CXX=unsupported | |
12522 | # It fails to find uninstalled libraries when the uninstalled | |
12523 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12524 | # to unsupported forces relinking | |
12525 | hardcode_minus_L_CXX=yes | |
12526 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12527 | hardcode_libdir_separator_CXX= | |
12528 | fi | |
12529 | esac | |
12530 | shared_flag='-shared' | |
12531 | if test "$aix_use_runtimelinking" = yes; then | |
12532 | shared_flag="$shared_flag "'${wl}-G' | |
12533 | fi | |
12534 | else | |
12535 | # not using gcc | |
12536 | if test "$host_cpu" = ia64; then | |
12537 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12538 | # chokes on -Wl,-G. The following line is correct: | |
12539 | shared_flag='-G' | |
12540 | else | |
12541 | if test "$aix_use_runtimelinking" = yes; then | |
12542 | shared_flag='${wl}-G' | |
12543 | else | |
12544 | shared_flag='${wl}-bM:SRE' | |
12545 | fi | |
12546 | fi | |
12547 | fi | |
12548 | ||
12549 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
12550 | # It seems that -bexpall does not export symbols beginning with | |
12551 | # underscore (_), so it is better to generate a list of symbols to | |
12552 | # export. | |
12553 | always_export_symbols_CXX=yes | |
12554 | if test "$aix_use_runtimelinking" = yes; then | |
12555 | # Warning - without using the other runtime loading flags (-brtl), | |
12556 | # -berok will link without error, but may produce a broken library. | |
12557 | allow_undefined_flag_CXX='-berok' | |
12558 | # Determine the default libpath from the value encoded in an empty | |
12559 | # executable. | |
12560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12561 | /* end confdefs.h. */ | |
12562 | ||
12563 | int | |
12564 | main () | |
12565 | { | |
12566 | ||
12567 | ; | |
12568 | return 0; | |
12569 | } | |
12570 | _ACEOF | |
12571 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12572 | ||
12573 | lt_aix_libpath_sed=' | |
12574 | /Import File Strings/,/^$/ { | |
12575 | /^0/ { | |
12576 | s/^0 *\(.*\)$/\1/ | |
12577 | p | |
12578 | } | |
12579 | }' | |
12580 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12581 | # Check for a 64-bit object if we didn't find anything. | |
12582 | if test -z "$aix_libpath"; then | |
12583 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12584 | fi | |
12585 | fi | |
12586 | rm -f core conftest.err conftest.$ac_objext \ | |
12587 | conftest$ac_exeext conftest.$ac_ext | |
12588 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12589 | ||
12590 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12591 | ||
12592 | 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" | |
12593 | else | |
12594 | if test "$host_cpu" = ia64; then | |
12595 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12596 | allow_undefined_flag_CXX="-z nodefs" | |
12597 | 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" | |
12598 | else | |
12599 | # Determine the default libpath from the value encoded in an | |
12600 | # empty executable. | |
12601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12602 | /* end confdefs.h. */ | |
12603 | ||
12604 | int | |
12605 | main () | |
12606 | { | |
12607 | ||
12608 | ; | |
12609 | return 0; | |
12610 | } | |
12611 | _ACEOF | |
12612 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12613 | ||
12614 | lt_aix_libpath_sed=' | |
12615 | /Import File Strings/,/^$/ { | |
12616 | /^0/ { | |
12617 | s/^0 *\(.*\)$/\1/ | |
12618 | p | |
12619 | } | |
12620 | }' | |
12621 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12622 | # Check for a 64-bit object if we didn't find anything. | |
12623 | if test -z "$aix_libpath"; then | |
12624 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12625 | fi | |
12626 | fi | |
12627 | rm -f core conftest.err conftest.$ac_objext \ | |
12628 | conftest$ac_exeext conftest.$ac_ext | |
12629 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12630 | ||
12631 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12632 | # Warning - without using the other run time loading flags, | |
12633 | # -berok will link without error, but may produce a broken library. | |
12634 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12635 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12636 | if test "$with_gnu_ld" = yes; then | |
12637 | # We only use this code for GNU lds that support --whole-archive. | |
12638 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12639 | else | |
12640 | # Exported symbols can be pulled into shared objects from archives | |
12641 | whole_archive_flag_spec_CXX='$convenience' | |
12642 | fi | |
12643 | archive_cmds_need_lc_CXX=yes | |
12644 | # This is similar to how AIX traditionally builds its shared | |
12645 | # libraries. | |
12646 | 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' | |
12647 | fi | |
12648 | fi | |
12649 | ;; | |
12650 | ||
12651 | beos*) | |
12652 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12653 | allow_undefined_flag_CXX=unsupported | |
12654 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12655 | # support --undefined. This deserves some investigation. FIXME | |
12656 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12657 | else | |
12658 | ld_shlibs_CXX=no | |
12659 | fi | |
12660 | ;; | |
12661 | ||
12662 | chorus*) | |
12663 | case $cc_basename in | |
12664 | *) | |
12665 | # FIXME: insert proper C++ library support | |
12666 | ld_shlibs_CXX=no | |
12667 | ;; | |
12668 | esac | |
12669 | ;; | |
12670 | ||
12671 | cygwin* | mingw* | pw32* | cegcc*) | |
12672 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12673 | # as there is no search path for DLLs. | |
12674 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12675 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
12676 | allow_undefined_flag_CXX=unsupported | |
12677 | always_export_symbols_CXX=no | |
12678 | enable_shared_with_static_runtimes_CXX=yes | |
12679 | ||
12680 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12681 | 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' | |
12682 | # If the export-symbols file already is a .def file (1st line | |
12683 | # is EXPORTS), use it as is; otherwise, prepend... | |
12684 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12685 | cp $export_symbols $output_objdir/$soname.def; | |
12686 | else | |
12687 | echo EXPORTS > $output_objdir/$soname.def; | |
12688 | cat $export_symbols >> $output_objdir/$soname.def; | |
12689 | fi~ | |
12690 | $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' | |
12691 | else | |
12692 | ld_shlibs_CXX=no | |
12693 | fi | |
12694 | ;; | |
12695 | darwin* | rhapsody*) | |
12696 | ||
12697 | ||
12698 | archive_cmds_need_lc_CXX=no | |
12699 | hardcode_direct_CXX=no | |
12700 | hardcode_automatic_CXX=yes | |
12701 | hardcode_shlibpath_var_CXX=unsupported | |
12702 | if test "$lt_cv_ld_force_load" = "yes"; then | |
12703 | 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\"`' | |
12704 | else | |
12705 | whole_archive_flag_spec_CXX='' | |
12706 | fi | |
12707 | link_all_deplibs_CXX=yes | |
12708 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
12709 | case $cc_basename in | |
12710 | ifort*) _lt_dar_can_shared=yes ;; | |
12711 | *) _lt_dar_can_shared=$GCC ;; | |
12712 | esac | |
12713 | if test "$_lt_dar_can_shared" = "yes"; then | |
12714 | output_verbose_link_cmd=func_echo_all | |
12715 | 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}" | |
12716 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12717 | 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}" | |
12718 | 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}" | |
12719 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
12720 | 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}" | |
12721 | 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}" | |
12722 | fi | |
12723 | ||
12724 | else | |
12725 | ld_shlibs_CXX=no | |
12726 | fi | |
12727 | ||
12728 | ;; | |
12729 | ||
12730 | dgux*) | |
12731 | case $cc_basename in | |
12732 | ec++*) | |
12733 | # FIXME: insert proper C++ library support | |
12734 | ld_shlibs_CXX=no | |
12735 | ;; | |
12736 | ghcx*) | |
12737 | # Green Hills C++ Compiler | |
12738 | # FIXME: insert proper C++ library support | |
12739 | ld_shlibs_CXX=no | |
12740 | ;; | |
12741 | *) | |
12742 | # FIXME: insert proper C++ library support | |
12743 | ld_shlibs_CXX=no | |
12744 | ;; | |
12745 | esac | |
12746 | ;; | |
12747 | ||
6d2920c8 | 12748 | freebsd2.*) |
3cb62297 L |
12749 | # C++ shared libraries reported to be fairly broken before |
12750 | # switch to ELF | |
12751 | ld_shlibs_CXX=no | |
12752 | ;; | |
12753 | ||
12754 | freebsd-elf*) | |
12755 | archive_cmds_need_lc_CXX=no | |
12756 | ;; | |
12757 | ||
12758 | freebsd* | dragonfly*) | |
12759 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
12760 | # conventions | |
12761 | ld_shlibs_CXX=yes | |
12762 | ;; | |
12763 | ||
12764 | gnu*) | |
12765 | ;; | |
12766 | ||
12767 | haiku*) | |
12768 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12769 | link_all_deplibs_CXX=yes | |
12770 | ;; | |
12771 | ||
12772 | hpux9*) | |
12773 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12774 | hardcode_libdir_separator_CXX=: | |
12775 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12776 | hardcode_direct_CXX=yes | |
12777 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12778 | # but as the default | |
12779 | # location of the library. | |
12780 | ||
12781 | case $cc_basename in | |
12782 | CC*) | |
12783 | # FIXME: insert proper C++ library support | |
12784 | ld_shlibs_CXX=no | |
12785 | ;; | |
12786 | aCC*) | |
12787 | 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' | |
12788 | # Commands to make compiler produce verbose output that lists | |
12789 | # what "hidden" libraries, object files and flags are used when | |
12790 | # linking a shared library. | |
12791 | # | |
12792 | # There doesn't appear to be a way to prevent this compiler from | |
12793 | # explicitly linking system object files so we need to strip them | |
12794 | # from the output so that they don't get included in the library | |
12795 | # dependencies. | |
12796 | 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"' | |
12797 | ;; | |
12798 | *) | |
12799 | if test "$GXX" = yes; then | |
12800 | 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' | |
12801 | else | |
12802 | # FIXME: insert proper C++ library support | |
12803 | ld_shlibs_CXX=no | |
12804 | fi | |
12805 | ;; | |
12806 | esac | |
12807 | ;; | |
12808 | ||
12809 | hpux10*|hpux11*) | |
12810 | if test $with_gnu_ld = no; then | |
12811 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12812 | hardcode_libdir_separator_CXX=: | |
12813 | ||
12814 | case $host_cpu in | |
12815 | hppa*64*|ia64*) | |
12816 | ;; | |
12817 | *) | |
12818 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12819 | ;; | |
12820 | esac | |
12821 | fi | |
12822 | case $host_cpu in | |
12823 | hppa*64*|ia64*) | |
12824 | hardcode_direct_CXX=no | |
12825 | hardcode_shlibpath_var_CXX=no | |
12826 | ;; | |
12827 | *) | |
12828 | hardcode_direct_CXX=yes | |
12829 | hardcode_direct_absolute_CXX=yes | |
12830 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12831 | # but as the default | |
12832 | # location of the library. | |
12833 | ;; | |
12834 | esac | |
12835 | ||
12836 | case $cc_basename in | |
12837 | CC*) | |
12838 | # FIXME: insert proper C++ library support | |
12839 | ld_shlibs_CXX=no | |
12840 | ;; | |
12841 | aCC*) | |
12842 | case $host_cpu in | |
12843 | hppa*64*) | |
12844 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12845 | ;; | |
12846 | ia64*) | |
12847 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12848 | ;; | |
12849 | *) | |
12850 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12851 | ;; | |
12852 | esac | |
12853 | # Commands to make compiler produce verbose output that lists | |
12854 | # what "hidden" libraries, object files and flags are used when | |
12855 | # linking a shared library. | |
12856 | # | |
12857 | # There doesn't appear to be a way to prevent this compiler from | |
12858 | # explicitly linking system object files so we need to strip them | |
12859 | # from the output so that they don't get included in the library | |
12860 | # dependencies. | |
12861 | 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"' | |
12862 | ;; | |
12863 | *) | |
12864 | if test "$GXX" = yes; then | |
12865 | if test $with_gnu_ld = no; then | |
12866 | case $host_cpu in | |
12867 | hppa*64*) | |
12868 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12869 | ;; | |
12870 | ia64*) | |
12871 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12872 | ;; | |
12873 | *) | |
12874 | 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' | |
12875 | ;; | |
12876 | esac | |
12877 | fi | |
12878 | else | |
12879 | # FIXME: insert proper C++ library support | |
12880 | ld_shlibs_CXX=no | |
12881 | fi | |
12882 | ;; | |
12883 | esac | |
12884 | ;; | |
12885 | ||
12886 | interix[3-9]*) | |
12887 | hardcode_direct_CXX=no | |
12888 | hardcode_shlibpath_var_CXX=no | |
12889 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12890 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12891 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12892 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12893 | # default) and relocated if they conflict, which is a slow very memory | |
12894 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12895 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12896 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12897 | 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' | |
12898 | 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' | |
12899 | ;; | |
12900 | irix5* | irix6*) | |
12901 | case $cc_basename in | |
12902 | CC*) | |
12903 | # SGI C++ | |
12904 | 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' | |
12905 | ||
12906 | # Archives containing C++ object files must be created using | |
12907 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12908 | # necessary to make sure instantiated templates are included | |
12909 | # in the archive. | |
12910 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12911 | ;; | |
12912 | *) | |
12913 | if test "$GXX" = yes; then | |
12914 | if test "$with_gnu_ld" = no; then | |
12915 | 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' | |
12916 | else | |
12917 | 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' | |
12918 | fi | |
12919 | fi | |
12920 | link_all_deplibs_CXX=yes | |
12921 | ;; | |
12922 | esac | |
12923 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12924 | hardcode_libdir_separator_CXX=: | |
12925 | inherit_rpath_CXX=yes | |
12926 | ;; | |
12927 | ||
12928 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12929 | case $cc_basename in | |
12930 | KCC*) | |
12931 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12932 | ||
12933 | # KCC will only create a shared library if the output file | |
12934 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12935 | # to its proper name (with version) after linking. | |
12936 | 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' | |
12937 | 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' | |
12938 | # Commands to make compiler produce verbose output that lists | |
12939 | # what "hidden" libraries, object files and flags are used when | |
12940 | # linking a shared library. | |
12941 | # | |
12942 | # There doesn't appear to be a way to prevent this compiler from | |
12943 | # explicitly linking system object files so we need to strip them | |
12944 | # from the output so that they don't get included in the library | |
12945 | # dependencies. | |
12946 | 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"' | |
12947 | ||
12948 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12949 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12950 | ||
12951 | # Archives containing C++ object files must be created using | |
12952 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12953 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12954 | ;; | |
12955 | icpc* | ecpc* ) | |
12956 | # Intel C++ | |
12957 | with_gnu_ld=yes | |
12958 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12959 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12960 | # earlier do not add the objects themselves. | |
12961 | case `$CC -V 2>&1` in | |
12962 | *"Version 7."*) | |
12963 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12964 | 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' | |
12965 | ;; | |
12966 | *) # Version 8.0 or newer | |
12967 | tmp_idyn= | |
12968 | case $host_cpu in | |
12969 | ia64*) tmp_idyn=' -i_dynamic';; | |
12970 | esac | |
12971 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12972 | 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' | |
12973 | ;; | |
12974 | esac | |
12975 | archive_cmds_need_lc_CXX=no | |
12976 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12977 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12978 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12979 | ;; | |
12980 | pgCC* | pgcpp*) | |
12981 | # Portland Group C++ compiler | |
12982 | case `$CC -V` in | |
12983 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
12984 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12985 | rm -rf $tpldir~ | |
12986 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12987 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12988 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12989 | rm -rf $tpldir~ | |
12990 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12991 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12992 | $RANLIB $oldlib' | |
12993 | archive_cmds_CXX='tpldir=Template.dir~ | |
12994 | rm -rf $tpldir~ | |
12995 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12996 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12997 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12998 | rm -rf $tpldir~ | |
12999 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13000 | $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' | |
13001 | ;; | |
13002 | *) # Version 6 and above use weak symbols | |
13003 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13004 | 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' | |
13005 | ;; | |
13006 | esac | |
13007 | ||
13008 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13009 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13010 | 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' | |
13011 | ;; | |
13012 | cxx*) | |
13013 | # Compaq C++ | |
13014 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13015 | 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' | |
13016 | ||
13017 | runpath_var=LD_RUN_PATH | |
13018 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13019 | hardcode_libdir_separator_CXX=: | |
13020 | ||
13021 | # Commands to make compiler produce verbose output that lists | |
13022 | # what "hidden" libraries, object files and flags are used when | |
13023 | # linking a shared library. | |
13024 | # | |
13025 | # There doesn't appear to be a way to prevent this compiler from | |
13026 | # explicitly linking system object files so we need to strip them | |
13027 | # from the output so that they don't get included in the library | |
13028 | # dependencies. | |
13029 | 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' | |
13030 | ;; | |
13031 | xl* | mpixl* | bgxl*) | |
13032 | # IBM XL 8.0 on PPC, with GNU ld | |
13033 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13034 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13035 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13036 | if test "x$supports_anon_versioning" = xyes; then | |
13037 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13038 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13039 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13040 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13041 | fi | |
13042 | ;; | |
13043 | *) | |
13044 | case `$CC -V 2>&1 | sed 5q` in | |
13045 | *Sun\ C*) | |
13046 | # Sun C++ 5.9 | |
13047 | no_undefined_flag_CXX=' -zdefs' | |
13048 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13049 | 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' | |
13050 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13051 | 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' | |
13052 | compiler_needs_object_CXX=yes | |
13053 | ||
13054 | # Not sure whether something based on | |
13055 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13056 | # would be better. | |
13057 | output_verbose_link_cmd='func_echo_all' | |
13058 | ||
13059 | # Archives containing C++ object files must be created using | |
13060 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13061 | # necessary to make sure instantiated templates are included | |
13062 | # in the archive. | |
13063 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13064 | ;; | |
13065 | esac | |
13066 | ;; | |
13067 | esac | |
13068 | ;; | |
13069 | ||
13070 | lynxos*) | |
13071 | # FIXME: insert proper C++ library support | |
13072 | ld_shlibs_CXX=no | |
13073 | ;; | |
13074 | ||
13075 | m88k*) | |
13076 | # FIXME: insert proper C++ library support | |
13077 | ld_shlibs_CXX=no | |
13078 | ;; | |
13079 | ||
13080 | mvs*) | |
13081 | case $cc_basename in | |
13082 | cxx*) | |
13083 | # FIXME: insert proper C++ library support | |
13084 | ld_shlibs_CXX=no | |
13085 | ;; | |
13086 | *) | |
13087 | # FIXME: insert proper C++ library support | |
13088 | ld_shlibs_CXX=no | |
13089 | ;; | |
13090 | esac | |
13091 | ;; | |
13092 | ||
13093 | netbsd*) | |
13094 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13095 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13096 | wlarc= | |
13097 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13098 | hardcode_direct_CXX=yes | |
13099 | hardcode_shlibpath_var_CXX=no | |
13100 | fi | |
13101 | # Workaround some broken pre-1.5 toolchains | |
13102 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13103 | ;; | |
13104 | ||
13105 | *nto* | *qnx*) | |
13106 | ld_shlibs_CXX=yes | |
13107 | ;; | |
13108 | ||
13109 | openbsd2*) | |
13110 | # C++ shared libraries are fairly broken | |
13111 | ld_shlibs_CXX=no | |
13112 | ;; | |
13113 | ||
13114 | openbsd*) | |
13115 | if test -f /usr/libexec/ld.so; then | |
13116 | hardcode_direct_CXX=yes | |
13117 | hardcode_shlibpath_var_CXX=no | |
13118 | hardcode_direct_absolute_CXX=yes | |
13119 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13120 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13121 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13122 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13123 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13124 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13125 | fi | |
13126 | output_verbose_link_cmd=func_echo_all | |
13127 | else | |
13128 | ld_shlibs_CXX=no | |
13129 | fi | |
13130 | ;; | |
13131 | ||
13132 | osf3* | osf4* | osf5*) | |
13133 | case $cc_basename in | |
13134 | KCC*) | |
13135 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13136 | ||
13137 | # KCC will only create a shared library if the output file | |
13138 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13139 | # to its proper name (with version) after linking. | |
13140 | 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' | |
13141 | ||
13142 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13143 | hardcode_libdir_separator_CXX=: | |
13144 | ||
13145 | # Archives containing C++ object files must be created using | |
13146 | # the KAI C++ compiler. | |
13147 | case $host in | |
13148 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13149 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13150 | esac | |
13151 | ;; | |
13152 | RCC*) | |
13153 | # Rational C++ 2.4.1 | |
13154 | # FIXME: insert proper C++ library support | |
13155 | ld_shlibs_CXX=no | |
13156 | ;; | |
13157 | cxx*) | |
13158 | case $host in | |
13159 | osf3*) | |
13160 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13161 | 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' | |
13162 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13163 | ;; | |
13164 | *) | |
13165 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13166 | 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' | |
13167 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13168 | echo "-hidden">> $lib.exp~ | |
13169 | $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~ | |
13170 | $RM $lib.exp' | |
13171 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13172 | ;; | |
13173 | esac | |
13174 | ||
13175 | hardcode_libdir_separator_CXX=: | |
13176 | ||
13177 | # Commands to make compiler produce verbose output that lists | |
13178 | # what "hidden" libraries, object files and flags are used when | |
13179 | # linking a shared library. | |
13180 | # | |
13181 | # There doesn't appear to be a way to prevent this compiler from | |
13182 | # explicitly linking system object files so we need to strip them | |
13183 | # from the output so that they don't get included in the library | |
13184 | # dependencies. | |
13185 | 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"' | |
13186 | ;; | |
13187 | *) | |
13188 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13189 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13190 | case $host in | |
13191 | osf3*) | |
13192 | 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' | |
13193 | ;; | |
13194 | *) | |
13195 | 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' | |
13196 | ;; | |
13197 | esac | |
13198 | ||
13199 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13200 | hardcode_libdir_separator_CXX=: | |
13201 | ||
13202 | # Commands to make compiler produce verbose output that lists | |
13203 | # what "hidden" libraries, object files and flags are used when | |
13204 | # linking a shared library. | |
13205 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13206 | ||
13207 | else | |
13208 | # FIXME: insert proper C++ library support | |
13209 | ld_shlibs_CXX=no | |
13210 | fi | |
13211 | ;; | |
13212 | esac | |
13213 | ;; | |
13214 | ||
13215 | psos*) | |
13216 | # FIXME: insert proper C++ library support | |
13217 | ld_shlibs_CXX=no | |
13218 | ;; | |
13219 | ||
13220 | sunos4*) | |
13221 | case $cc_basename in | |
13222 | CC*) | |
13223 | # Sun C++ 4.x | |
13224 | # FIXME: insert proper C++ library support | |
13225 | ld_shlibs_CXX=no | |
13226 | ;; | |
13227 | lcc*) | |
13228 | # Lucid | |
13229 | # FIXME: insert proper C++ library support | |
13230 | ld_shlibs_CXX=no | |
13231 | ;; | |
13232 | *) | |
13233 | # FIXME: insert proper C++ library support | |
13234 | ld_shlibs_CXX=no | |
13235 | ;; | |
13236 | esac | |
13237 | ;; | |
13238 | ||
13239 | solaris*) | |
13240 | case $cc_basename in | |
13241 | CC*) | |
13242 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13243 | archive_cmds_need_lc_CXX=yes | |
13244 | no_undefined_flag_CXX=' -zdefs' | |
13245 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13246 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13247 | $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' | |
13248 | ||
13249 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13250 | hardcode_shlibpath_var_CXX=no | |
13251 | case $host_os in | |
13252 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13253 | *) | |
13254 | # The compiler driver will combine and reorder linker options, | |
13255 | # but understands `-z linker_flag'. | |
13256 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13257 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13258 | ;; | |
13259 | esac | |
13260 | link_all_deplibs_CXX=yes | |
13261 | ||
13262 | output_verbose_link_cmd='func_echo_all' | |
13263 | ||
13264 | # Archives containing C++ object files must be created using | |
13265 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13266 | # necessary to make sure instantiated templates are included | |
13267 | # in the archive. | |
13268 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13269 | ;; | |
13270 | gcx*) | |
13271 | # Green Hills C++ Compiler | |
13272 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13273 | ||
13274 | # The C++ compiler must be used to create the archive. | |
13275 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13276 | ;; | |
13277 | *) | |
13278 | # GNU C++ compiler with Solaris linker | |
13279 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13280 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13281 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13282 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13283 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13284 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13285 | ||
13286 | # Commands to make compiler produce verbose output that lists | |
13287 | # what "hidden" libraries, object files and flags are used when | |
13288 | # linking a shared library. | |
13289 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13290 | else | |
13291 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13292 | # platform. | |
13293 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13294 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13295 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13296 | ||
13297 | # Commands to make compiler produce verbose output that lists | |
13298 | # what "hidden" libraries, object files and flags are used when | |
13299 | # linking a shared library. | |
13300 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13301 | fi | |
13302 | ||
13303 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13304 | case $host_os in | |
13305 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13306 | *) | |
13307 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13308 | ;; | |
13309 | esac | |
13310 | fi | |
13311 | ;; | |
13312 | esac | |
13313 | ;; | |
13314 | ||
13315 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13316 | no_undefined_flag_CXX='${wl}-z,text' | |
13317 | archive_cmds_need_lc_CXX=no | |
13318 | hardcode_shlibpath_var_CXX=no | |
13319 | runpath_var='LD_RUN_PATH' | |
13320 | ||
13321 | case $cc_basename in | |
13322 | CC*) | |
13323 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13324 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13325 | ;; | |
13326 | *) | |
13327 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13328 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13329 | ;; | |
13330 | esac | |
13331 | ;; | |
13332 | ||
13333 | sysv5* | sco3.2v5* | sco5v6*) | |
13334 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13335 | # link with -lc, and that would cause any symbols used from libc to | |
13336 | # always be unresolved, which means just about no library would | |
13337 | # ever link correctly. If we're not using GNU ld we use -z text | |
13338 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13339 | # as -z defs. | |
13340 | no_undefined_flag_CXX='${wl}-z,text' | |
13341 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13342 | archive_cmds_need_lc_CXX=no | |
13343 | hardcode_shlibpath_var_CXX=no | |
13344 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13345 | hardcode_libdir_separator_CXX=':' | |
13346 | link_all_deplibs_CXX=yes | |
13347 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13348 | runpath_var='LD_RUN_PATH' | |
13349 | ||
13350 | case $cc_basename in | |
13351 | CC*) | |
13352 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13353 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13354 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13355 | '"$old_archive_cmds_CXX" | |
13356 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13357 | '"$reload_cmds_CXX" | |
13358 | ;; | |
13359 | *) | |
13360 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13361 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13362 | ;; | |
13363 | esac | |
13364 | ;; | |
13365 | ||
13366 | tandem*) | |
13367 | case $cc_basename in | |
13368 | NCC*) | |
13369 | # NonStop-UX NCC 3.20 | |
13370 | # FIXME: insert proper C++ library support | |
13371 | ld_shlibs_CXX=no | |
13372 | ;; | |
13373 | *) | |
13374 | # FIXME: insert proper C++ library support | |
13375 | ld_shlibs_CXX=no | |
13376 | ;; | |
13377 | esac | |
13378 | ;; | |
13379 | ||
13380 | vxworks*) | |
13381 | # FIXME: insert proper C++ library support | |
13382 | ld_shlibs_CXX=no | |
13383 | ;; | |
13384 | ||
13385 | *) | |
13386 | # FIXME: insert proper C++ library support | |
13387 | ld_shlibs_CXX=no | |
13388 | ;; | |
13389 | esac | |
13390 | ||
13391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13392 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13393 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13394 | ||
13395 | GCC_CXX="$GXX" | |
13396 | LD_CXX="$LD" | |
13397 | ||
13398 | ## CAVEAT EMPTOR: | |
13399 | ## There is no encapsulation within the following macros, do not change | |
13400 | ## the running order or otherwise move them around unless you know exactly | |
13401 | ## what you are doing... | |
13402 | # Dependencies to place before and after the object being linked: | |
13403 | predep_objects_CXX= | |
13404 | postdep_objects_CXX= | |
13405 | predeps_CXX= | |
13406 | postdeps_CXX= | |
13407 | compiler_lib_search_path_CXX= | |
13408 | ||
13409 | cat > conftest.$ac_ext <<_LT_EOF | |
13410 | class Foo | |
13411 | { | |
13412 | public: | |
13413 | Foo (void) { a = 0; } | |
13414 | private: | |
13415 | int a; | |
13416 | }; | |
13417 | _LT_EOF | |
13418 | ||
13419 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13420 | (eval $ac_compile) 2>&5 | |
13421 | ac_status=$? | |
13422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13423 | test $ac_status = 0; }; then | |
13424 | # Parse the compiler output and extract the necessary | |
13425 | # objects, libraries and library flags. | |
13426 | ||
13427 | # Sentinel used to keep track of whether or not we are before | |
13428 | # the conftest object file. | |
13429 | pre_test_object_deps_done=no | |
13430 | ||
13431 | for p in `eval "$output_verbose_link_cmd"`; do | |
13432 | case $p in | |
13433 | ||
13434 | -L* | -R* | -l*) | |
13435 | # Some compilers place space between "-{L,R}" and the path. | |
13436 | # Remove the space. | |
13437 | if test $p = "-L" || | |
13438 | test $p = "-R"; then | |
13439 | prev=$p | |
13440 | continue | |
13441 | else | |
13442 | prev= | |
13443 | fi | |
13444 | ||
13445 | if test "$pre_test_object_deps_done" = no; then | |
13446 | case $p in | |
13447 | -L* | -R*) | |
13448 | # Internal compiler library paths should come after those | |
13449 | # provided the user. The postdeps already come after the | |
13450 | # user supplied libs so there is no need to process them. | |
13451 | if test -z "$compiler_lib_search_path_CXX"; then | |
13452 | compiler_lib_search_path_CXX="${prev}${p}" | |
13453 | else | |
13454 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13455 | fi | |
13456 | ;; | |
13457 | # The "-l" case would never come before the object being | |
13458 | # linked, so don't bother handling this case. | |
13459 | esac | |
13460 | else | |
13461 | if test -z "$postdeps_CXX"; then | |
13462 | postdeps_CXX="${prev}${p}" | |
13463 | else | |
13464 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13465 | fi | |
13466 | fi | |
13467 | ;; | |
13468 | ||
13469 | *.$objext) | |
13470 | # This assumes that the test object file only shows up | |
13471 | # once in the compiler output. | |
13472 | if test "$p" = "conftest.$objext"; then | |
13473 | pre_test_object_deps_done=yes | |
13474 | continue | |
13475 | fi | |
13476 | ||
13477 | if test "$pre_test_object_deps_done" = no; then | |
13478 | if test -z "$predep_objects_CXX"; then | |
13479 | predep_objects_CXX="$p" | |
13480 | else | |
13481 | predep_objects_CXX="$predep_objects_CXX $p" | |
13482 | fi | |
13483 | else | |
13484 | if test -z "$postdep_objects_CXX"; then | |
13485 | postdep_objects_CXX="$p" | |
13486 | else | |
13487 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13488 | fi | |
13489 | fi | |
13490 | ;; | |
13491 | ||
13492 | *) ;; # Ignore the rest. | |
13493 | ||
13494 | esac | |
13495 | done | |
13496 | ||
13497 | # Clean up. | |
13498 | rm -f a.out a.exe | |
13499 | else | |
13500 | echo "libtool.m4: error: problem compiling CXX test program" | |
13501 | fi | |
13502 | ||
13503 | $RM -f confest.$objext | |
13504 | ||
13505 | # PORTME: override above test on systems where it is broken | |
13506 | case $host_os in | |
13507 | interix[3-9]*) | |
13508 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13509 | # hack all around it, let's just trust "g++" to DTRT. | |
13510 | predep_objects_CXX= | |
13511 | postdep_objects_CXX= | |
13512 | postdeps_CXX= | |
13513 | ;; | |
13514 | ||
13515 | linux*) | |
13516 | case `$CC -V 2>&1 | sed 5q` in | |
13517 | *Sun\ C*) | |
13518 | # Sun C++ 5.9 | |
13519 | ||
13520 | # The more standards-conforming stlport4 library is | |
13521 | # incompatible with the Cstd library. Avoid specifying | |
13522 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13523 | # -library=stlport4 depends on it. | |
13524 | case " $CXX $CXXFLAGS " in | |
13525 | *" -library=stlport4 "*) | |
13526 | solaris_use_stlport4=yes | |
13527 | ;; | |
13528 | esac | |
13529 | ||
13530 | if test "$solaris_use_stlport4" != yes; then | |
13531 | postdeps_CXX='-library=Cstd -library=Crun' | |
13532 | fi | |
13533 | ;; | |
13534 | esac | |
13535 | ;; | |
13536 | ||
13537 | solaris*) | |
13538 | case $cc_basename in | |
13539 | CC*) | |
13540 | # The more standards-conforming stlport4 library is | |
13541 | # incompatible with the Cstd library. Avoid specifying | |
13542 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13543 | # -library=stlport4 depends on it. | |
13544 | case " $CXX $CXXFLAGS " in | |
13545 | *" -library=stlport4 "*) | |
13546 | solaris_use_stlport4=yes | |
13547 | ;; | |
13548 | esac | |
13549 | ||
13550 | # Adding this requires a known-good setup of shared libraries for | |
13551 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13552 | # archive will be linked into the output, leading to subtle bugs. | |
13553 | if test "$solaris_use_stlport4" != yes; then | |
13554 | postdeps_CXX='-library=Cstd -library=Crun' | |
13555 | fi | |
13556 | ;; | |
13557 | esac | |
13558 | ;; | |
13559 | esac | |
13560 | ||
13561 | ||
13562 | case " $postdeps_CXX " in | |
13563 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13564 | esac | |
13565 | compiler_lib_search_dirs_CXX= | |
13566 | if test -n "${compiler_lib_search_path_CXX}"; then | |
13567 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13568 | fi | |
13569 | ||
13570 | ||
13571 | ||
13572 | ||
13573 | ||
13574 | ||
13575 | ||
13576 | ||
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | ||
13583 | ||
13584 | ||
13585 | ||
13586 | ||
13587 | ||
13588 | ||
13589 | ||
13590 | ||
13591 | ||
13592 | ||
13593 | ||
13594 | ||
13595 | ||
13596 | ||
13597 | ||
13598 | ||
13599 | ||
13600 | lt_prog_compiler_wl_CXX= | |
13601 | lt_prog_compiler_pic_CXX= | |
13602 | lt_prog_compiler_static_CXX= | |
13603 | ||
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
13605 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
13606 | ||
13607 | # C++ specific cases for pic, static, wl, etc. | |
13608 | if test "$GXX" = yes; then | |
13609 | lt_prog_compiler_wl_CXX='-Wl,' | |
13610 | lt_prog_compiler_static_CXX='-static' | |
13611 | ||
13612 | case $host_os in | |
13613 | aix*) | |
13614 | # All AIX code is PIC. | |
13615 | if test "$host_cpu" = ia64; then | |
13616 | # AIX 5 now supports IA64 processor | |
13617 | lt_prog_compiler_static_CXX='-Bstatic' | |
13618 | fi | |
52204357 | 13619 | lt_prog_compiler_pic_CXX='-fPIC' |
3cb62297 L |
13620 | ;; |
13621 | ||
13622 | amigaos*) | |
13623 | case $host_cpu in | |
13624 | powerpc) | |
13625 | # see comment about AmigaOS4 .so support | |
13626 | lt_prog_compiler_pic_CXX='-fPIC' | |
13627 | ;; | |
13628 | m68k) | |
13629 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13630 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13631 | # like `-m68040'. | |
13632 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13633 | ;; | |
13634 | esac | |
13635 | ;; | |
13636 | ||
13637 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13638 | # PIC is the default for these OSes. | |
13639 | ;; | |
13640 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13641 | # This hack is so that the source file can tell whether it is being | |
13642 | # built for inclusion in a dll (and should export symbols for example). | |
13643 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13644 | # (--disable-auto-import) libraries | |
13645 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13646 | ;; | |
13647 | darwin* | rhapsody*) | |
13648 | # PIC is the default on this platform | |
13649 | # Common symbols not allowed in MH_DYLIB files | |
13650 | lt_prog_compiler_pic_CXX='-fno-common' | |
13651 | ;; | |
13652 | *djgpp*) | |
13653 | # DJGPP does not support shared libraries at all | |
13654 | lt_prog_compiler_pic_CXX= | |
13655 | ;; | |
13656 | haiku*) | |
13657 | # PIC is the default for Haiku. | |
13658 | # The "-static" flag exists, but is broken. | |
13659 | lt_prog_compiler_static_CXX= | |
13660 | ;; | |
13661 | interix[3-9]*) | |
13662 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13663 | # Instead, we relocate shared libraries at runtime. | |
13664 | ;; | |
13665 | sysv4*MP*) | |
13666 | if test -d /usr/nec; then | |
13667 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13668 | fi | |
13669 | ;; | |
13670 | hpux*) | |
13671 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
13672 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13673 | # sets the default TLS model and affects inlining. | |
13674 | case $host_cpu in | |
13675 | hppa*64*) | |
13676 | ;; | |
13677 | *) | |
13678 | lt_prog_compiler_pic_CXX='-fPIC' | |
13679 | ;; | |
13680 | esac | |
13681 | ;; | |
13682 | *qnx* | *nto*) | |
13683 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13684 | # it will coredump. | |
13685 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13686 | ;; | |
13687 | *) | |
13688 | lt_prog_compiler_pic_CXX='-fPIC' | |
13689 | ;; | |
13690 | esac | |
13691 | else | |
13692 | case $host_os in | |
13693 | aix[4-9]*) | |
13694 | # All AIX code is PIC. | |
13695 | if test "$host_cpu" = ia64; then | |
13696 | # AIX 5 now supports IA64 processor | |
13697 | lt_prog_compiler_static_CXX='-Bstatic' | |
13698 | else | |
13699 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
13700 | fi | |
13701 | ;; | |
13702 | chorus*) | |
13703 | case $cc_basename in | |
13704 | cxch68*) | |
13705 | # Green Hills C++ Compiler | |
13706 | # _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" | |
13707 | ;; | |
13708 | esac | |
13709 | ;; | |
13710 | dgux*) | |
13711 | case $cc_basename in | |
13712 | ec++*) | |
13713 | lt_prog_compiler_pic_CXX='-KPIC' | |
13714 | ;; | |
13715 | ghcx*) | |
13716 | # Green Hills C++ Compiler | |
13717 | lt_prog_compiler_pic_CXX='-pic' | |
13718 | ;; | |
13719 | *) | |
13720 | ;; | |
13721 | esac | |
13722 | ;; | |
13723 | freebsd* | dragonfly*) | |
13724 | # FreeBSD uses GNU C++ | |
13725 | ;; | |
13726 | hpux9* | hpux10* | hpux11*) | |
13727 | case $cc_basename in | |
13728 | CC*) | |
13729 | lt_prog_compiler_wl_CXX='-Wl,' | |
13730 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13731 | if test "$host_cpu" != ia64; then | |
13732 | lt_prog_compiler_pic_CXX='+Z' | |
13733 | fi | |
13734 | ;; | |
13735 | aCC*) | |
13736 | lt_prog_compiler_wl_CXX='-Wl,' | |
13737 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13738 | case $host_cpu in | |
13739 | hppa*64*|ia64*) | |
13740 | # +Z the default | |
13741 | ;; | |
13742 | *) | |
13743 | lt_prog_compiler_pic_CXX='+Z' | |
13744 | ;; | |
13745 | esac | |
13746 | ;; | |
13747 | *) | |
13748 | ;; | |
13749 | esac | |
13750 | ;; | |
13751 | interix*) | |
13752 | # This is c89, which is MS Visual C++ (no shared libs) | |
13753 | # Anyone wants to do a port? | |
13754 | ;; | |
13755 | irix5* | irix6* | nonstopux*) | |
13756 | case $cc_basename in | |
13757 | CC*) | |
13758 | lt_prog_compiler_wl_CXX='-Wl,' | |
13759 | lt_prog_compiler_static_CXX='-non_shared' | |
13760 | # CC pic flag -KPIC is the default. | |
13761 | ;; | |
13762 | *) | |
13763 | ;; | |
13764 | esac | |
13765 | ;; | |
13766 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13767 | case $cc_basename in | |
13768 | KCC*) | |
13769 | # KAI C++ Compiler | |
13770 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13771 | lt_prog_compiler_pic_CXX='-fPIC' | |
13772 | ;; | |
13773 | ecpc* ) | |
13774 | # old Intel C++ for x86_64 which still supported -KPIC. | |
13775 | lt_prog_compiler_wl_CXX='-Wl,' | |
13776 | lt_prog_compiler_pic_CXX='-KPIC' | |
13777 | lt_prog_compiler_static_CXX='-static' | |
13778 | ;; | |
13779 | icpc* ) | |
13780 | # Intel C++, used to be incompatible with GCC. | |
13781 | # ICC 10 doesn't accept -KPIC any more. | |
13782 | lt_prog_compiler_wl_CXX='-Wl,' | |
13783 | lt_prog_compiler_pic_CXX='-fPIC' | |
13784 | lt_prog_compiler_static_CXX='-static' | |
13785 | ;; | |
13786 | pgCC* | pgcpp*) | |
13787 | # Portland Group C++ compiler | |
13788 | lt_prog_compiler_wl_CXX='-Wl,' | |
13789 | lt_prog_compiler_pic_CXX='-fpic' | |
13790 | lt_prog_compiler_static_CXX='-Bstatic' | |
13791 | ;; | |
13792 | cxx*) | |
13793 | # Compaq C++ | |
13794 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13795 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13796 | lt_prog_compiler_pic_CXX= | |
13797 | lt_prog_compiler_static_CXX='-non_shared' | |
13798 | ;; | |
13799 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
13800 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
13801 | lt_prog_compiler_wl_CXX='-Wl,' | |
13802 | lt_prog_compiler_pic_CXX='-qpic' | |
13803 | lt_prog_compiler_static_CXX='-qstaticlink' | |
13804 | ;; | |
13805 | *) | |
13806 | case `$CC -V 2>&1 | sed 5q` in | |
13807 | *Sun\ C*) | |
13808 | # Sun C++ 5.9 | |
13809 | lt_prog_compiler_pic_CXX='-KPIC' | |
13810 | lt_prog_compiler_static_CXX='-Bstatic' | |
13811 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13812 | ;; | |
13813 | esac | |
13814 | ;; | |
13815 | esac | |
13816 | ;; | |
13817 | lynxos*) | |
13818 | ;; | |
13819 | m88k*) | |
13820 | ;; | |
13821 | mvs*) | |
13822 | case $cc_basename in | |
13823 | cxx*) | |
13824 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
13825 | ;; | |
13826 | *) | |
13827 | ;; | |
13828 | esac | |
13829 | ;; | |
13830 | netbsd*) | |
13831 | ;; | |
13832 | *qnx* | *nto*) | |
13833 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13834 | # it will coredump. | |
13835 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13836 | ;; | |
13837 | osf3* | osf4* | osf5*) | |
13838 | case $cc_basename in | |
13839 | KCC*) | |
13840 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13841 | ;; | |
13842 | RCC*) | |
13843 | # Rational C++ 2.4.1 | |
13844 | lt_prog_compiler_pic_CXX='-pic' | |
13845 | ;; | |
13846 | cxx*) | |
13847 | # Digital/Compaq C++ | |
13848 | lt_prog_compiler_wl_CXX='-Wl,' | |
13849 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13850 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13851 | lt_prog_compiler_pic_CXX= | |
13852 | lt_prog_compiler_static_CXX='-non_shared' | |
13853 | ;; | |
13854 | *) | |
13855 | ;; | |
13856 | esac | |
13857 | ;; | |
13858 | psos*) | |
13859 | ;; | |
13860 | solaris*) | |
13861 | case $cc_basename in | |
13862 | CC*) | |
13863 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13864 | lt_prog_compiler_pic_CXX='-KPIC' | |
13865 | lt_prog_compiler_static_CXX='-Bstatic' | |
13866 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13867 | ;; | |
13868 | gcx*) | |
13869 | # Green Hills C++ Compiler | |
13870 | lt_prog_compiler_pic_CXX='-PIC' | |
13871 | ;; | |
13872 | *) | |
13873 | ;; | |
13874 | esac | |
13875 | ;; | |
13876 | sunos4*) | |
13877 | case $cc_basename in | |
13878 | CC*) | |
13879 | # Sun C++ 4.x | |
13880 | lt_prog_compiler_pic_CXX='-pic' | |
13881 | lt_prog_compiler_static_CXX='-Bstatic' | |
13882 | ;; | |
13883 | lcc*) | |
13884 | # Lucid | |
13885 | lt_prog_compiler_pic_CXX='-pic' | |
13886 | ;; | |
13887 | *) | |
13888 | ;; | |
13889 | esac | |
13890 | ;; | |
13891 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13892 | case $cc_basename in | |
13893 | CC*) | |
13894 | lt_prog_compiler_wl_CXX='-Wl,' | |
13895 | lt_prog_compiler_pic_CXX='-KPIC' | |
13896 | lt_prog_compiler_static_CXX='-Bstatic' | |
13897 | ;; | |
13898 | esac | |
13899 | ;; | |
13900 | tandem*) | |
13901 | case $cc_basename in | |
13902 | NCC*) | |
13903 | # NonStop-UX NCC 3.20 | |
13904 | lt_prog_compiler_pic_CXX='-KPIC' | |
13905 | ;; | |
13906 | *) | |
13907 | ;; | |
13908 | esac | |
13909 | ;; | |
13910 | vxworks*) | |
13911 | ;; | |
13912 | *) | |
13913 | lt_prog_compiler_can_build_shared_CXX=no | |
13914 | ;; | |
13915 | esac | |
13916 | fi | |
13917 | ||
13918 | case $host_os in | |
13919 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13920 | *djgpp*) | |
13921 | lt_prog_compiler_pic_CXX= | |
13922 | ;; | |
13923 | *) | |
13924 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13925 | ;; | |
13926 | esac | |
13927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
13928 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
13929 | ||
13930 | ||
13931 | ||
13932 | # | |
13933 | # Check to make sure the PIC flag actually works. | |
13934 | # | |
13935 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13937 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
13938 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
13939 | $as_echo_n "(cached) " >&6 | |
13940 | else | |
13941 | lt_cv_prog_compiler_pic_works_CXX=no | |
13942 | ac_outfile=conftest.$ac_objext | |
13943 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13944 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13945 | # Insert the option either (1) after the last *FLAGS variable, or | |
13946 | # (2) before a word containing "conftest.", or (3) at the end. | |
13947 | # Note that $ac_compile itself does not contain backslashes and begins | |
13948 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13949 | # The option is referenced via a variable to avoid confusing sed. | |
13950 | lt_compile=`echo "$ac_compile" | $SED \ | |
13951 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13952 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13953 | -e 's:$: $lt_compiler_flag:'` | |
13954 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
13955 | (eval "$lt_compile" 2>conftest.err) | |
13956 | ac_status=$? | |
13957 | cat conftest.err >&5 | |
13958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13959 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
13960 | # The compiler can only warn and ignore the option if not recognized | |
13961 | # So say no if there are warnings other than the usual output. | |
13962 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
13963 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13964 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13965 | lt_cv_prog_compiler_pic_works_CXX=yes | |
13966 | fi | |
13967 | fi | |
13968 | $RM conftest* | |
13969 | ||
13970 | fi | |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13972 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13973 | ||
13974 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13975 | case $lt_prog_compiler_pic_CXX in | |
13976 | "" | " "*) ;; | |
13977 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13978 | esac | |
13979 | else | |
13980 | lt_prog_compiler_pic_CXX= | |
13981 | lt_prog_compiler_can_build_shared_CXX=no | |
13982 | fi | |
13983 | ||
13984 | fi | |
13985 | ||
13986 | ||
13987 | ||
13988 | # | |
13989 | # Check to make sure the static flag actually works. | |
13990 | # | |
13991 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13993 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13994 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
13995 | $as_echo_n "(cached) " >&6 | |
13996 | else | |
13997 | lt_cv_prog_compiler_static_works_CXX=no | |
13998 | save_LDFLAGS="$LDFLAGS" | |
13999 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14000 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14001 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14002 | # The linker can only warn and ignore the option if not recognized | |
14003 | # So say no if there are warnings | |
14004 | if test -s conftest.err; then | |
14005 | # Append any errors to the config.log. | |
14006 | cat conftest.err 1>&5 | |
14007 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14008 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14009 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14010 | lt_cv_prog_compiler_static_works_CXX=yes | |
14011 | fi | |
14012 | else | |
14013 | lt_cv_prog_compiler_static_works_CXX=yes | |
14014 | fi | |
14015 | fi | |
14016 | $RM -r conftest* | |
14017 | LDFLAGS="$save_LDFLAGS" | |
14018 | ||
14019 | fi | |
14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14021 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14022 | ||
14023 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14024 | : | |
14025 | else | |
14026 | lt_prog_compiler_static_CXX= | |
14027 | fi | |
14028 | ||
14029 | ||
14030 | ||
14031 | ||
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14033 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14034 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14035 | $as_echo_n "(cached) " >&6 | |
14036 | else | |
14037 | lt_cv_prog_compiler_c_o_CXX=no | |
14038 | $RM -r conftest 2>/dev/null | |
14039 | mkdir conftest | |
14040 | cd conftest | |
14041 | mkdir out | |
14042 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14043 | ||
14044 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14045 | # Insert the option either (1) after the last *FLAGS variable, or | |
14046 | # (2) before a word containing "conftest.", or (3) at the end. | |
14047 | # Note that $ac_compile itself does not contain backslashes and begins | |
14048 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14049 | lt_compile=`echo "$ac_compile" | $SED \ | |
14050 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14051 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14052 | -e 's:$: $lt_compiler_flag:'` | |
14053 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14054 | (eval "$lt_compile" 2>out/conftest.err) | |
14055 | ac_status=$? | |
14056 | cat out/conftest.err >&5 | |
14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14058 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14059 | then | |
14060 | # The compiler can only warn and ignore the option if not recognized | |
14061 | # So say no if there are warnings | |
14062 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14063 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14064 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14065 | lt_cv_prog_compiler_c_o_CXX=yes | |
14066 | fi | |
14067 | fi | |
14068 | chmod u+w . 2>&5 | |
14069 | $RM conftest* | |
14070 | # SGI C++ compiler will create directory out/ii_files/ for | |
14071 | # template instantiation | |
14072 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14073 | $RM out/* && rmdir out | |
14074 | cd .. | |
14075 | $RM -r conftest | |
14076 | $RM conftest* | |
14077 | ||
14078 | fi | |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14080 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14081 | ||
14082 | ||
14083 | ||
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14085 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14086 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14087 | $as_echo_n "(cached) " >&6 | |
14088 | else | |
14089 | lt_cv_prog_compiler_c_o_CXX=no | |
14090 | $RM -r conftest 2>/dev/null | |
14091 | mkdir conftest | |
14092 | cd conftest | |
14093 | mkdir out | |
14094 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14095 | ||
14096 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14097 | # Insert the option either (1) after the last *FLAGS variable, or | |
14098 | # (2) before a word containing "conftest.", or (3) at the end. | |
14099 | # Note that $ac_compile itself does not contain backslashes and begins | |
14100 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14101 | lt_compile=`echo "$ac_compile" | $SED \ | |
14102 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14103 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14104 | -e 's:$: $lt_compiler_flag:'` | |
14105 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14106 | (eval "$lt_compile" 2>out/conftest.err) | |
14107 | ac_status=$? | |
14108 | cat out/conftest.err >&5 | |
14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14110 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14111 | then | |
14112 | # The compiler can only warn and ignore the option if not recognized | |
14113 | # So say no if there are warnings | |
14114 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14115 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14116 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14117 | lt_cv_prog_compiler_c_o_CXX=yes | |
14118 | fi | |
14119 | fi | |
14120 | chmod u+w . 2>&5 | |
14121 | $RM conftest* | |
14122 | # SGI C++ compiler will create directory out/ii_files/ for | |
14123 | # template instantiation | |
14124 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14125 | $RM out/* && rmdir out | |
14126 | cd .. | |
14127 | $RM -r conftest | |
14128 | $RM conftest* | |
14129 | ||
14130 | fi | |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14132 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14133 | ||
14134 | ||
14135 | ||
14136 | ||
14137 | hard_links="nottested" | |
14138 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14139 | # do not overwrite the value of need_locks provided by the user | |
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14141 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14142 | hard_links=yes | |
14143 | $RM conftest* | |
14144 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14145 | touch conftest.a | |
14146 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14147 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14149 | $as_echo "$hard_links" >&6; } | |
14150 | if test "$hard_links" = no; then | |
14151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14152 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14153 | need_locks=warn | |
14154 | fi | |
14155 | else | |
14156 | need_locks=no | |
14157 | fi | |
14158 | ||
14159 | ||
14160 | ||
14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14162 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14163 | ||
14164 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14165 | case $host_os in | |
14166 | aix[4-9]*) | |
14167 | # If we're using GNU nm, then we don't want the "-C" option. | |
14168 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14169 | # Also, AIX nm treats weak defined symbols like other global defined | |
14170 | # symbols, whereas GNU nm marks them as "W". | |
14171 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14172 | 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' | |
14173 | else | |
14174 | 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' | |
14175 | fi | |
14176 | ;; | |
14177 | pw32*) | |
14178 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14179 | ;; | |
14180 | cygwin* | mingw* | cegcc*) | |
14181 | 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' | |
14182 | ;; | |
14183 | *) | |
14184 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14185 | ;; | |
14186 | esac | |
14187 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14188 | ||
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14190 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14191 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14192 | ||
14193 | with_gnu_ld_CXX=$with_gnu_ld | |
14194 | ||
14195 | ||
14196 | ||
14197 | ||
14198 | ||
14199 | ||
14200 | # | |
14201 | # Do we need to explicitly link libc? | |
14202 | # | |
14203 | case "x$archive_cmds_need_lc_CXX" in | |
14204 | x|xyes) | |
14205 | # Assume -lc should be added | |
14206 | archive_cmds_need_lc_CXX=yes | |
14207 | ||
14208 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14209 | case $archive_cmds_CXX in | |
14210 | *'~'*) | |
14211 | # FIXME: we may have to deal with multi-command sequences. | |
14212 | ;; | |
14213 | '$CC '*) | |
14214 | # Test whether the compiler implicitly links with -lc since on some | |
14215 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14216 | # to ld, don't add -lc before -lgcc. | |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14218 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
14219 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : | |
14220 | $as_echo_n "(cached) " >&6 | |
14221 | else | |
14222 | $RM conftest* | |
14223 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14224 | ||
14225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14226 | (eval $ac_compile) 2>&5 | |
14227 | ac_status=$? | |
14228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14229 | test $ac_status = 0; } 2>conftest.err; then | |
14230 | soname=conftest | |
14231 | lib=conftest | |
14232 | libobjs=conftest.$ac_objext | |
14233 | deplibs= | |
14234 | wl=$lt_prog_compiler_wl_CXX | |
14235 | pic_flag=$lt_prog_compiler_pic_CXX | |
14236 | compiler_flags=-v | |
14237 | linker_flags=-v | |
14238 | verstring= | |
14239 | output_objdir=. | |
14240 | libname=conftest | |
14241 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14242 | allow_undefined_flag_CXX= | |
14243 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14244 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14245 | ac_status=$? | |
14246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14247 | test $ac_status = 0; } | |
14248 | then | |
14249 | lt_cv_archive_cmds_need_lc_CXX=no | |
14250 | else | |
14251 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14252 | fi | |
14253 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14254 | else | |
14255 | cat conftest.err 1>&5 | |
14256 | fi | |
14257 | $RM conftest* | |
14258 | ||
14259 | fi | |
14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14261 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14262 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14263 | ;; | |
14264 | esac | |
14265 | fi | |
14266 | ;; | |
14267 | esac | |
14268 | ||
14269 | ||
14270 | ||
14271 | ||
14272 | ||
14273 | ||
14274 | ||
14275 | ||
14276 | ||
14277 | ||
14278 | ||
14279 | ||
14280 | ||
14281 | ||
14282 | ||
14283 | ||
14284 | ||
14285 | ||
14286 | ||
14287 | ||
14288 | ||
14289 | ||
14290 | ||
14291 | ||
14292 | ||
14293 | ||
14294 | ||
14295 | ||
14296 | ||
14297 | ||
14298 | ||
14299 | ||
14300 | ||
14301 | ||
14302 | ||
14303 | ||
14304 | ||
14305 | ||
14306 | ||
14307 | ||
14308 | ||
14309 | ||
14310 | ||
14311 | ||
14312 | ||
14313 | ||
14314 | ||
14315 | ||
14316 | ||
14317 | ||
14318 | ||
14319 | ||
14320 | ||
14321 | ||
14322 | ||
14323 | ||
14324 | ||
14325 | ||
14326 | ||
14327 | ||
14328 | ||
14329 | ||
14330 | ||
14331 | ||
14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14333 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14334 | ||
14335 | library_names_spec= | |
14336 | libname_spec='lib$name' | |
14337 | soname_spec= | |
14338 | shrext_cmds=".so" | |
14339 | postinstall_cmds= | |
14340 | postuninstall_cmds= | |
14341 | finish_cmds= | |
14342 | finish_eval= | |
14343 | shlibpath_var= | |
14344 | shlibpath_overrides_runpath=unknown | |
14345 | version_type=none | |
14346 | dynamic_linker="$host_os ld.so" | |
14347 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14348 | need_lib_prefix=unknown | |
14349 | hardcode_into_libs=no | |
14350 | ||
14351 | # when you set need_version to no, make sure it does not cause -set_version | |
14352 | # flags to be left without arguments | |
14353 | need_version=unknown | |
14354 | ||
14355 | case $host_os in | |
14356 | aix3*) | |
14357 | version_type=linux | |
14358 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14359 | shlibpath_var=LIBPATH | |
14360 | ||
14361 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14362 | soname_spec='${libname}${release}${shared_ext}$major' | |
14363 | ;; | |
14364 | ||
14365 | aix[4-9]*) | |
14366 | version_type=linux | |
14367 | need_lib_prefix=no | |
14368 | need_version=no | |
14369 | hardcode_into_libs=yes | |
14370 | if test "$host_cpu" = ia64; then | |
14371 | # AIX 5 supports IA64 | |
14372 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14373 | shlibpath_var=LD_LIBRARY_PATH | |
14374 | else | |
14375 | # With GCC up to 2.95.x, collect2 would create an import file | |
14376 | # for dependence libraries. The import file would start with | |
14377 | # the line `#! .'. This would cause the generated library to | |
14378 | # depend on `.', always an invalid library. This was fixed in | |
14379 | # development snapshots of GCC prior to 3.0. | |
14380 | case $host_os in | |
14381 | aix4 | aix4.[01] | aix4.[01].*) | |
14382 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14383 | echo ' yes ' | |
14384 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14385 | : | |
14386 | else | |
14387 | can_build_shared=no | |
14388 | fi | |
14389 | ;; | |
14390 | esac | |
14391 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14392 | # soname into executable. Probably we can add versioning support to | |
14393 | # collect2, so additional links can be useful in future. | |
14394 | if test "$aix_use_runtimelinking" = yes; then | |
14395 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14396 | # instead of lib<name>.a to let people know that these are not | |
14397 | # typical AIX shared libraries. | |
14398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14399 | else | |
14400 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14401 | # and later when we are not doing run time linking. | |
14402 | library_names_spec='${libname}${release}.a $libname.a' | |
14403 | soname_spec='${libname}${release}${shared_ext}$major' | |
14404 | fi | |
14405 | shlibpath_var=LIBPATH | |
14406 | fi | |
14407 | ;; | |
14408 | ||
14409 | amigaos*) | |
14410 | case $host_cpu in | |
14411 | powerpc) | |
14412 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14413 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14415 | ;; | |
14416 | m68k) | |
14417 | library_names_spec='$libname.ixlibrary $libname.a' | |
14418 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14419 | 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' | |
14420 | ;; | |
14421 | esac | |
14422 | ;; | |
14423 | ||
14424 | beos*) | |
14425 | library_names_spec='${libname}${shared_ext}' | |
14426 | dynamic_linker="$host_os ld.so" | |
14427 | shlibpath_var=LIBRARY_PATH | |
14428 | ;; | |
14429 | ||
14430 | bsdi[45]*) | |
14431 | version_type=linux | |
14432 | need_version=no | |
14433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14434 | soname_spec='${libname}${release}${shared_ext}$major' | |
14435 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14436 | shlibpath_var=LD_LIBRARY_PATH | |
14437 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14438 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14439 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14440 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14441 | # libtool to hard-code these into programs | |
14442 | ;; | |
14443 | ||
14444 | cygwin* | mingw* | pw32* | cegcc*) | |
14445 | version_type=windows | |
14446 | shrext_cmds=".dll" | |
14447 | need_version=no | |
14448 | need_lib_prefix=no | |
14449 | ||
14450 | case $GCC,$host_os in | |
14451 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
14452 | library_names_spec='$libname.dll.a' | |
14453 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14454 | postinstall_cmds='base_file=`basename \${file}`~ | |
14455 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14456 | dldir=$destdir/`dirname \$dlpath`~ | |
14457 | test -d \$dldir || mkdir -p \$dldir~ | |
14458 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14459 | chmod a+x \$dldir/$dlname~ | |
14460 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14461 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14462 | fi' | |
14463 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14464 | dlpath=$dir/\$dldll~ | |
14465 | $RM \$dlpath' | |
14466 | shlibpath_overrides_runpath=yes | |
14467 | ||
14468 | case $host_os in | |
14469 | cygwin*) | |
14470 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14471 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14472 | ||
14473 | ;; | |
14474 | mingw* | cegcc*) | |
14475 | # MinGW DLLs use traditional 'lib' prefix | |
14476 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14477 | ;; | |
14478 | pw32*) | |
14479 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14480 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14481 | ;; | |
14482 | esac | |
14483 | ;; | |
14484 | ||
14485 | *) | |
14486 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14487 | ;; | |
14488 | esac | |
14489 | dynamic_linker='Win32 ld.exe' | |
14490 | # FIXME: first we should search . and the directory the executable is in | |
14491 | shlibpath_var=PATH | |
14492 | ;; | |
14493 | ||
14494 | darwin* | rhapsody*) | |
14495 | dynamic_linker="$host_os dyld" | |
14496 | version_type=darwin | |
14497 | need_lib_prefix=no | |
14498 | need_version=no | |
14499 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14500 | soname_spec='${libname}${release}${major}$shared_ext' | |
14501 | shlibpath_overrides_runpath=yes | |
14502 | shlibpath_var=DYLD_LIBRARY_PATH | |
14503 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14504 | ||
14505 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14506 | ;; | |
14507 | ||
14508 | dgux*) | |
14509 | version_type=linux | |
14510 | need_lib_prefix=no | |
14511 | need_version=no | |
14512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14513 | soname_spec='${libname}${release}${shared_ext}$major' | |
14514 | shlibpath_var=LD_LIBRARY_PATH | |
14515 | ;; | |
14516 | ||
3cb62297 L |
14517 | freebsd* | dragonfly*) |
14518 | # DragonFly does not have aout. When/if they implement a new | |
14519 | # versioning mechanism, adjust this. | |
14520 | if test -x /usr/bin/objformat; then | |
14521 | objformat=`/usr/bin/objformat` | |
14522 | else | |
14523 | case $host_os in | |
6d2920c8 | 14524 | freebsd[23].*) objformat=aout ;; |
3cb62297 L |
14525 | *) objformat=elf ;; |
14526 | esac | |
14527 | fi | |
14528 | version_type=freebsd-$objformat | |
14529 | case $version_type in | |
14530 | freebsd-elf*) | |
14531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14532 | need_version=no | |
14533 | need_lib_prefix=no | |
14534 | ;; | |
14535 | freebsd-*) | |
14536 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14537 | need_version=yes | |
14538 | ;; | |
14539 | esac | |
14540 | shlibpath_var=LD_LIBRARY_PATH | |
14541 | case $host_os in | |
6d2920c8 | 14542 | freebsd2.*) |
3cb62297 L |
14543 | shlibpath_overrides_runpath=yes |
14544 | ;; | |
14545 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14546 | shlibpath_overrides_runpath=yes | |
14547 | hardcode_into_libs=yes | |
14548 | ;; | |
14549 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14550 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14551 | shlibpath_overrides_runpath=no | |
14552 | hardcode_into_libs=yes | |
14553 | ;; | |
14554 | *) # from 4.6 on, and DragonFly | |
14555 | shlibpath_overrides_runpath=yes | |
14556 | hardcode_into_libs=yes | |
14557 | ;; | |
14558 | esac | |
14559 | ;; | |
14560 | ||
14561 | gnu*) | |
14562 | version_type=linux | |
14563 | need_lib_prefix=no | |
14564 | need_version=no | |
14565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14566 | soname_spec='${libname}${release}${shared_ext}$major' | |
14567 | shlibpath_var=LD_LIBRARY_PATH | |
14568 | hardcode_into_libs=yes | |
14569 | ;; | |
14570 | ||
14571 | haiku*) | |
14572 | version_type=linux | |
14573 | need_lib_prefix=no | |
14574 | need_version=no | |
14575 | dynamic_linker="$host_os runtime_loader" | |
14576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14577 | soname_spec='${libname}${release}${shared_ext}$major' | |
14578 | shlibpath_var=LIBRARY_PATH | |
14579 | shlibpath_overrides_runpath=yes | |
14580 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14581 | hardcode_into_libs=yes | |
14582 | ;; | |
14583 | ||
14584 | hpux9* | hpux10* | hpux11*) | |
14585 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14586 | # link against other versions. | |
14587 | version_type=sunos | |
14588 | need_lib_prefix=no | |
14589 | need_version=no | |
14590 | case $host_cpu in | |
14591 | ia64*) | |
14592 | shrext_cmds='.so' | |
14593 | hardcode_into_libs=yes | |
14594 | dynamic_linker="$host_os dld.so" | |
14595 | shlibpath_var=LD_LIBRARY_PATH | |
14596 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14598 | soname_spec='${libname}${release}${shared_ext}$major' | |
14599 | if test "X$HPUX_IA64_MODE" = X32; then | |
14600 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14601 | else | |
14602 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14603 | fi | |
14604 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14605 | ;; | |
14606 | hppa*64*) | |
14607 | shrext_cmds='.sl' | |
14608 | hardcode_into_libs=yes | |
14609 | dynamic_linker="$host_os dld.sl" | |
14610 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14611 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14613 | soname_spec='${libname}${release}${shared_ext}$major' | |
14614 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14615 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14616 | ;; | |
14617 | *) | |
14618 | shrext_cmds='.sl' | |
14619 | dynamic_linker="$host_os dld.sl" | |
14620 | shlibpath_var=SHLIB_PATH | |
14621 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14623 | soname_spec='${libname}${release}${shared_ext}$major' | |
14624 | ;; | |
14625 | esac | |
14626 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
14627 | postinstall_cmds='chmod 555 $lib' | |
14628 | # or fails outright, so override atomically: | |
14629 | install_override_mode=555 | |
14630 | ;; | |
14631 | ||
14632 | interix[3-9]*) | |
14633 | version_type=linux | |
14634 | need_lib_prefix=no | |
14635 | need_version=no | |
14636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14637 | soname_spec='${libname}${release}${shared_ext}$major' | |
14638 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14639 | shlibpath_var=LD_LIBRARY_PATH | |
14640 | shlibpath_overrides_runpath=no | |
14641 | hardcode_into_libs=yes | |
14642 | ;; | |
14643 | ||
14644 | irix5* | irix6* | nonstopux*) | |
14645 | case $host_os in | |
14646 | nonstopux*) version_type=nonstopux ;; | |
14647 | *) | |
14648 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14649 | version_type=linux | |
14650 | else | |
14651 | version_type=irix | |
14652 | fi ;; | |
14653 | esac | |
14654 | need_lib_prefix=no | |
14655 | need_version=no | |
14656 | soname_spec='${libname}${release}${shared_ext}$major' | |
14657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14658 | case $host_os in | |
14659 | irix5* | nonstopux*) | |
14660 | libsuff= shlibsuff= | |
14661 | ;; | |
14662 | *) | |
14663 | case $LD in # libtool.m4 will add one of these switches to LD | |
14664 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14665 | libsuff= shlibsuff= libmagic=32-bit;; | |
14666 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14667 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14668 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14669 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14670 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14671 | esac | |
14672 | ;; | |
14673 | esac | |
14674 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14675 | shlibpath_overrides_runpath=no | |
14676 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14677 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14678 | hardcode_into_libs=yes | |
14679 | ;; | |
14680 | ||
14681 | # No shared lib support for Linux oldld, aout, or coff. | |
14682 | linux*oldld* | linux*aout* | linux*coff*) | |
14683 | dynamic_linker=no | |
14684 | ;; | |
14685 | ||
14686 | # This must be Linux ELF. | |
14687 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14688 | version_type=linux | |
14689 | need_lib_prefix=no | |
14690 | need_version=no | |
14691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14692 | soname_spec='${libname}${release}${shared_ext}$major' | |
14693 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14694 | shlibpath_var=LD_LIBRARY_PATH | |
14695 | shlibpath_overrides_runpath=no | |
14696 | ||
14697 | # Some binutils ld are patched to set DT_RUNPATH | |
14698 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
14699 | $as_echo_n "(cached) " >&6 | |
14700 | else | |
14701 | lt_cv_shlibpath_overrides_runpath=no | |
14702 | save_LDFLAGS=$LDFLAGS | |
14703 | save_libdir=$libdir | |
14704 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
14705 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
14706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14707 | /* end confdefs.h. */ | |
14708 | ||
14709 | int | |
14710 | main () | |
14711 | { | |
14712 | ||
14713 | ; | |
14714 | return 0; | |
14715 | } | |
14716 | _ACEOF | |
14717 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14718 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
14719 | lt_cv_shlibpath_overrides_runpath=yes | |
14720 | fi | |
14721 | fi | |
14722 | rm -f core conftest.err conftest.$ac_objext \ | |
14723 | conftest$ac_exeext conftest.$ac_ext | |
14724 | LDFLAGS=$save_LDFLAGS | |
14725 | libdir=$save_libdir | |
14726 | ||
14727 | fi | |
14728 | ||
14729 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
14730 | ||
14731 | # This implies no fast_install, which is unacceptable. | |
14732 | # Some rework will be needed to allow for fast_install | |
14733 | # before this can be enabled. | |
14734 | hardcode_into_libs=yes | |
14735 | ||
14736 | # Append ld.so.conf contents to the search path | |
14737 | if test -f /etc/ld.so.conf; then | |
14738 | 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' ' '` | |
14739 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14740 | fi | |
14741 | ||
14742 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14743 | # powerpc, because MkLinux only supported shared libraries with the | |
14744 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14745 | # most powerpc-linux boxes support dynamic linking these days and | |
14746 | # people can always --disable-shared, the test was removed, and we | |
14747 | # assume the GNU/Linux dynamic linker is in use. | |
14748 | dynamic_linker='GNU/Linux ld.so' | |
14749 | ;; | |
14750 | ||
14751 | netbsd*) | |
14752 | version_type=sunos | |
14753 | need_lib_prefix=no | |
14754 | need_version=no | |
14755 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14757 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14758 | dynamic_linker='NetBSD (a.out) ld.so' | |
14759 | else | |
14760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14761 | soname_spec='${libname}${release}${shared_ext}$major' | |
14762 | dynamic_linker='NetBSD ld.elf_so' | |
14763 | fi | |
14764 | shlibpath_var=LD_LIBRARY_PATH | |
14765 | shlibpath_overrides_runpath=yes | |
14766 | hardcode_into_libs=yes | |
14767 | ;; | |
14768 | ||
14769 | newsos6) | |
14770 | version_type=linux | |
14771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14772 | shlibpath_var=LD_LIBRARY_PATH | |
14773 | shlibpath_overrides_runpath=yes | |
14774 | ;; | |
14775 | ||
14776 | *nto* | *qnx*) | |
14777 | version_type=qnx | |
14778 | need_lib_prefix=no | |
14779 | need_version=no | |
14780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14781 | soname_spec='${libname}${release}${shared_ext}$major' | |
14782 | shlibpath_var=LD_LIBRARY_PATH | |
14783 | shlibpath_overrides_runpath=no | |
14784 | hardcode_into_libs=yes | |
14785 | dynamic_linker='ldqnx.so' | |
14786 | ;; | |
14787 | ||
14788 | openbsd*) | |
14789 | version_type=sunos | |
14790 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14791 | need_lib_prefix=no | |
14792 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14793 | case $host_os in | |
14794 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14795 | *) need_version=no ;; | |
14796 | esac | |
14797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14798 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14799 | shlibpath_var=LD_LIBRARY_PATH | |
14800 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14801 | case $host_os in | |
14802 | openbsd2.[89] | openbsd2.[89].*) | |
14803 | shlibpath_overrides_runpath=no | |
14804 | ;; | |
14805 | *) | |
14806 | shlibpath_overrides_runpath=yes | |
14807 | ;; | |
14808 | esac | |
14809 | else | |
14810 | shlibpath_overrides_runpath=yes | |
14811 | fi | |
14812 | ;; | |
14813 | ||
14814 | os2*) | |
14815 | libname_spec='$name' | |
14816 | shrext_cmds=".dll" | |
14817 | need_lib_prefix=no | |
14818 | library_names_spec='$libname${shared_ext} $libname.a' | |
14819 | dynamic_linker='OS/2 ld.exe' | |
14820 | shlibpath_var=LIBPATH | |
14821 | ;; | |
14822 | ||
14823 | osf3* | osf4* | osf5*) | |
14824 | version_type=osf | |
14825 | need_lib_prefix=no | |
14826 | need_version=no | |
14827 | soname_spec='${libname}${release}${shared_ext}$major' | |
14828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14829 | shlibpath_var=LD_LIBRARY_PATH | |
14830 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14831 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14832 | ;; | |
14833 | ||
14834 | rdos*) | |
14835 | dynamic_linker=no | |
14836 | ;; | |
14837 | ||
14838 | solaris*) | |
14839 | version_type=linux | |
14840 | need_lib_prefix=no | |
14841 | need_version=no | |
14842 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14843 | soname_spec='${libname}${release}${shared_ext}$major' | |
14844 | shlibpath_var=LD_LIBRARY_PATH | |
14845 | shlibpath_overrides_runpath=yes | |
14846 | hardcode_into_libs=yes | |
14847 | # ldd complains unless libraries are executable | |
14848 | postinstall_cmds='chmod +x $lib' | |
14849 | ;; | |
14850 | ||
14851 | sunos4*) | |
14852 | version_type=sunos | |
14853 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14854 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14855 | shlibpath_var=LD_LIBRARY_PATH | |
14856 | shlibpath_overrides_runpath=yes | |
14857 | if test "$with_gnu_ld" = yes; then | |
14858 | need_lib_prefix=no | |
14859 | fi | |
14860 | need_version=yes | |
14861 | ;; | |
14862 | ||
14863 | sysv4 | sysv4.3*) | |
14864 | version_type=linux | |
14865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14866 | soname_spec='${libname}${release}${shared_ext}$major' | |
14867 | shlibpath_var=LD_LIBRARY_PATH | |
14868 | case $host_vendor in | |
14869 | sni) | |
14870 | shlibpath_overrides_runpath=no | |
14871 | need_lib_prefix=no | |
14872 | runpath_var=LD_RUN_PATH | |
14873 | ;; | |
14874 | siemens) | |
14875 | need_lib_prefix=no | |
14876 | ;; | |
14877 | motorola) | |
14878 | need_lib_prefix=no | |
14879 | need_version=no | |
14880 | shlibpath_overrides_runpath=no | |
14881 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14882 | ;; | |
14883 | esac | |
14884 | ;; | |
14885 | ||
14886 | sysv4*MP*) | |
14887 | if test -d /usr/nec ;then | |
14888 | version_type=linux | |
14889 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14890 | soname_spec='$libname${shared_ext}.$major' | |
14891 | shlibpath_var=LD_LIBRARY_PATH | |
14892 | fi | |
14893 | ;; | |
14894 | ||
14895 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14896 | version_type=freebsd-elf | |
14897 | need_lib_prefix=no | |
14898 | need_version=no | |
14899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14900 | soname_spec='${libname}${release}${shared_ext}$major' | |
14901 | shlibpath_var=LD_LIBRARY_PATH | |
14902 | shlibpath_overrides_runpath=yes | |
14903 | hardcode_into_libs=yes | |
14904 | if test "$with_gnu_ld" = yes; then | |
14905 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14906 | else | |
14907 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14908 | case $host_os in | |
14909 | sco3.2v5*) | |
14910 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14911 | ;; | |
14912 | esac | |
14913 | fi | |
14914 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14915 | ;; | |
14916 | ||
14917 | tpf*) | |
14918 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14919 | version_type=linux | |
14920 | need_lib_prefix=no | |
14921 | need_version=no | |
14922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14923 | shlibpath_var=LD_LIBRARY_PATH | |
14924 | shlibpath_overrides_runpath=no | |
14925 | hardcode_into_libs=yes | |
14926 | ;; | |
14927 | ||
14928 | uts4*) | |
14929 | version_type=linux | |
14930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14931 | soname_spec='${libname}${release}${shared_ext}$major' | |
14932 | shlibpath_var=LD_LIBRARY_PATH | |
14933 | ;; | |
14934 | ||
14935 | *) | |
14936 | dynamic_linker=no | |
14937 | ;; | |
14938 | esac | |
14939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14940 | $as_echo "$dynamic_linker" >&6; } | |
14941 | test "$dynamic_linker" = no && can_build_shared=no | |
14942 | ||
14943 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14944 | if test "$GCC" = yes; then | |
14945 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14946 | fi | |
14947 | ||
14948 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
14949 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14950 | fi | |
14951 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14952 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
14953 | fi | |
14954 | ||
3725885a | 14955 | |
ce2cded5 | 14956 | |
ce2cded5 | 14957 | |
ce2cded5 | 14958 | |
d7040cdb | 14959 | |
ce2cded5 | 14960 | |
ce2cded5 | 14961 | |
ce2cded5 | 14962 | |
d7040cdb | 14963 | |
ce2cded5 L |
14964 | |
14965 | ||
14966 | ||
14967 | ||
14968 | ||
14969 | ||
14970 | ||
14971 | ||
14972 | ||
14973 | ||
14974 | ||
14975 | ||
14976 | ||
14977 | ||
14978 | ||
14979 | ||
ce2cded5 L |
14980 | |
14981 | ||
14982 | ||
14983 | ||
14984 | ||
14985 | ||
14986 | ||
14987 | ||
14988 | ||
14989 | ||
14990 | ||
14991 | ||
b879806f AM |
14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
14993 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14994 | hardcode_action_CXX= | |
14995 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14996 | test -n "$runpath_var_CXX" || | |
14997 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14998 | ||
14999 | # We can hardcode non-existent directories. | |
15000 | if test "$hardcode_direct_CXX" != no && | |
15001 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15002 | # have to relink, otherwise we might link with an installed library | |
15003 | # when we should be linking with a yet-to-be-installed one | |
15004 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15005 | test "$hardcode_minus_L_CXX" != no; then | |
15006 | # Linking always hardcodes the temporary library directory. | |
15007 | hardcode_action_CXX=relink | |
15008 | else | |
15009 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15010 | hardcode_action_CXX=immediate | |
15011 | fi | |
15012 | else | |
15013 | # We cannot hardcode anything, or else we can only hardcode existing | |
15014 | # directories. | |
15015 | hardcode_action_CXX=unsupported | |
15016 | fi | |
15017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15018 | $as_echo "$hardcode_action_CXX" >&6; } | |
15019 | ||
15020 | if test "$hardcode_action_CXX" = relink || | |
15021 | test "$inherit_rpath_CXX" = yes; then | |
15022 | # Fast installation is not supported | |
15023 | enable_fast_install=no | |
15024 | elif test "$shlibpath_overrides_runpath" = yes || | |
15025 | test "$enable_shared" = no; then | |
15026 | # Fast installation is not necessary | |
15027 | enable_fast_install=needless | |
15028 | fi | |
15029 | ||
15030 | ||
15031 | ||
15032 | ||
15033 | ||
15034 | ||
15035 | ||
15036 | fi # test -n "$compiler" | |
15037 | ||
15038 | CC=$lt_save_CC | |
15039 | LDCXX=$LD | |
15040 | LD=$lt_save_LD | |
15041 | GCC=$lt_save_GCC | |
15042 | with_gnu_ld=$lt_save_with_gnu_ld | |
15043 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15044 | lt_cv_path_LD=$lt_save_path_LD | |
15045 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15046 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15047 | fi # test "$_lt_caught_CXX_error" != yes | |
15048 | ||
15049 | ac_ext=c | |
15050 | ac_cpp='$CPP $CPPFLAGS' | |
15051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15054 | ||
15055 | ||
15056 | ||
15057 | ||
15058 | ||
15059 | ||
15060 | ||
15061 | ||
15062 | ||
15063 | ||
15064 | ||
15065 | ||
15066 | ||
15067 | ac_config_commands="$ac_config_commands libtool" | |
15068 | ||
15069 | ||
15070 | ||
15071 | ||
15072 | # Only expand once: | |
15073 | ||
15074 | ||
15075 | ||
15076 | # The tests for host and target for $enable_largefile require | |
15077 | # canonical names. | |
15078 | ||
15079 | ||
15080 | ||
15081 | # As the $enable_largefile decision depends on --enable-plugins we must set it | |
15082 | # even in directories otherwise not depending on the $plugins option. | |
15083 | ||
15084 | ||
15085 | maybe_plugins=no | |
15086 | for ac_header in dlfcn.h | |
15087 | do : | |
15088 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
15089 | " | |
15090 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
15091 | cat >>confdefs.h <<_ACEOF | |
15092 | #define HAVE_DLFCN_H 1 | |
15093 | _ACEOF | |
15094 | maybe_plugins=yes | |
15095 | fi | |
15096 | ||
15097 | done | |
15098 | ||
15099 | for ac_header in windows.h | |
15100 | do : | |
15101 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
15102 | " | |
15103 | if test "x$ac_cv_header_windows_h" = x""yes; then : | |
15104 | cat >>confdefs.h <<_ACEOF | |
15105 | #define HAVE_WINDOWS_H 1 | |
15106 | _ACEOF | |
15107 | maybe_plugins=yes | |
15108 | fi | |
15109 | ||
15110 | done | |
15111 | ||
15112 | ||
15113 | # Check whether --enable-plugins was given. | |
15114 | if test "${enable_plugins+set}" = set; then : | |
15115 | enableval=$enable_plugins; case "${enableval}" in | |
15116 | no) plugins=no ;; | |
15117 | *) plugins=yes | |
15118 | if test "$maybe_plugins" != "yes" ; then | |
15119 | as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 | |
15120 | fi ;; | |
15121 | esac | |
15122 | else | |
15123 | plugins=$maybe_plugins | |
15124 | ||
15125 | fi | |
15126 | ||
2974be62 AM |
15127 | if test "$plugins" = "yes"; then |
15128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
15129 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
15130 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
15131 | $as_echo_n "(cached) " >&6 | |
15132 | else | |
15133 | ac_func_search_save_LIBS=$LIBS | |
15134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15135 | /* end confdefs.h. */ | |
15136 | ||
15137 | /* Override any GCC internal prototype to avoid an error. | |
15138 | Use char because int might match the return type of a GCC | |
15139 | builtin and then its argument prototype would still apply. */ | |
15140 | #ifdef __cplusplus | |
15141 | extern "C" | |
15142 | #endif | |
15143 | char dlopen (); | |
15144 | int | |
15145 | main () | |
15146 | { | |
15147 | return dlopen (); | |
15148 | ; | |
15149 | return 0; | |
15150 | } | |
15151 | _ACEOF | |
15152 | for ac_lib in '' dl; do | |
15153 | if test -z "$ac_lib"; then | |
15154 | ac_res="none required" | |
15155 | else | |
15156 | ac_res=-l$ac_lib | |
15157 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15158 | fi | |
15159 | if ac_fn_c_try_link "$LINENO"; then : | |
15160 | ac_cv_search_dlopen=$ac_res | |
15161 | fi | |
15162 | rm -f core conftest.err conftest.$ac_objext \ | |
15163 | conftest$ac_exeext | |
15164 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
15165 | break | |
15166 | fi | |
15167 | done | |
15168 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
15169 | ||
15170 | else | |
15171 | ac_cv_search_dlopen=no | |
15172 | fi | |
15173 | rm conftest.$ac_ext | |
15174 | LIBS=$ac_func_search_save_LIBS | |
15175 | fi | |
15176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
15177 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
15178 | ac_res=$ac_cv_search_dlopen | |
15179 | if test "$ac_res" != no; then : | |
15180 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15181 | ||
15182 | fi | |
15183 | ||
15184 | fi | |
b879806f AM |
15185 | |
15186 | ||
15187 | case "${host}" in | |
15188 | sparc-*-solaris*|i[3-7]86-*-solaris*) | |
15189 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
15190 | # are mutually exclusive; and without procfs support, the bfd/ elf module | |
15191 | # cannot provide certain routines such as elfcore_write_prpsinfo | |
15192 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
15193 | # large-file support through the --enable-largefile switch, disable | |
15194 | # large-file support in favor of procfs support. | |
15195 | test "${target}" = "${host}" -a "x$plugins" = xno \ | |
15196 | && : ${enable_largefile="no"} | |
15197 | ;; | |
15198 | esac | |
15199 | ||
15200 | # Check whether --enable-largefile was given. | |
15201 | if test "${enable_largefile+set}" = set; then : | |
15202 | enableval=$enable_largefile; | |
15203 | fi | |
15204 | ||
15205 | if test "$enable_largefile" != no; then | |
15206 | ||
15207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
15208 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
15209 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
15210 | $as_echo_n "(cached) " >&6 | |
15211 | else | |
15212 | ac_cv_sys_largefile_CC=no | |
15213 | if test "$GCC" != yes; then | |
15214 | ac_save_CC=$CC | |
15215 | while :; do | |
15216 | # IRIX 6.2 and later do not support large files by default, | |
15217 | # so use the C compiler's -n32 option if that helps. | |
15218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15219 | /* end confdefs.h. */ | |
15220 | #include <sys/types.h> | |
15221 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15222 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15223 | since some C++ compilers masquerading as C compilers | |
15224 | incorrectly reject 9223372036854775807. */ | |
15225 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15226 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15227 | && LARGE_OFF_T % 2147483647 == 1) | |
15228 | ? 1 : -1]; | |
15229 | int | |
15230 | main () | |
15231 | { | |
15232 | ||
15233 | ; | |
15234 | return 0; | |
15235 | } | |
15236 | _ACEOF | |
15237 | if ac_fn_c_try_compile "$LINENO"; then : | |
15238 | break | |
15239 | fi | |
15240 | rm -f core conftest.err conftest.$ac_objext | |
15241 | CC="$CC -n32" | |
15242 | if ac_fn_c_try_compile "$LINENO"; then : | |
15243 | ac_cv_sys_largefile_CC=' -n32'; break | |
15244 | fi | |
15245 | rm -f core conftest.err conftest.$ac_objext | |
15246 | break | |
15247 | done | |
15248 | CC=$ac_save_CC | |
15249 | rm -f conftest.$ac_ext | |
15250 | fi | |
15251 | fi | |
15252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
15253 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
15254 | if test "$ac_cv_sys_largefile_CC" != no; then | |
15255 | CC=$CC$ac_cv_sys_largefile_CC | |
15256 | fi | |
15257 | ||
15258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
15259 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
15260 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
15261 | $as_echo_n "(cached) " >&6 | |
15262 | else | |
15263 | while :; do | |
15264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15265 | /* end confdefs.h. */ | |
15266 | #include <sys/types.h> | |
15267 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15268 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15269 | since some C++ compilers masquerading as C compilers | |
15270 | incorrectly reject 9223372036854775807. */ | |
15271 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15272 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15273 | && LARGE_OFF_T % 2147483647 == 1) | |
15274 | ? 1 : -1]; | |
15275 | int | |
15276 | main () | |
15277 | { | |
15278 | ||
15279 | ; | |
15280 | return 0; | |
15281 | } | |
15282 | _ACEOF | |
15283 | if ac_fn_c_try_compile "$LINENO"; then : | |
15284 | ac_cv_sys_file_offset_bits=no; break | |
15285 | fi | |
15286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15288 | /* end confdefs.h. */ | |
15289 | #define _FILE_OFFSET_BITS 64 | |
15290 | #include <sys/types.h> | |
15291 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15292 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15293 | since some C++ compilers masquerading as C compilers | |
15294 | incorrectly reject 9223372036854775807. */ | |
15295 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15296 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15297 | && LARGE_OFF_T % 2147483647 == 1) | |
15298 | ? 1 : -1]; | |
15299 | int | |
15300 | main () | |
15301 | { | |
15302 | ||
15303 | ; | |
15304 | return 0; | |
15305 | } | |
15306 | _ACEOF | |
15307 | if ac_fn_c_try_compile "$LINENO"; then : | |
15308 | ac_cv_sys_file_offset_bits=64; break | |
15309 | fi | |
15310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15311 | ac_cv_sys_file_offset_bits=unknown | |
15312 | break | |
15313 | done | |
15314 | fi | |
15315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
15316 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
15317 | case $ac_cv_sys_file_offset_bits in #( | |
15318 | no | unknown) ;; | |
15319 | *) | |
15320 | cat >>confdefs.h <<_ACEOF | |
15321 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
15322 | _ACEOF | |
15323 | ;; | |
15324 | esac | |
15325 | rm -rf conftest* | |
15326 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
15327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
15328 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
15329 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
15330 | $as_echo_n "(cached) " >&6 | |
15331 | else | |
15332 | while :; do | |
15333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15334 | /* end confdefs.h. */ | |
15335 | #include <sys/types.h> | |
15336 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15337 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15338 | since some C++ compilers masquerading as C compilers | |
15339 | incorrectly reject 9223372036854775807. */ | |
15340 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15341 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15342 | && LARGE_OFF_T % 2147483647 == 1) | |
15343 | ? 1 : -1]; | |
15344 | int | |
15345 | main () | |
15346 | { | |
15347 | ||
15348 | ; | |
15349 | return 0; | |
15350 | } | |
15351 | _ACEOF | |
15352 | if ac_fn_c_try_compile "$LINENO"; then : | |
15353 | ac_cv_sys_large_files=no; break | |
15354 | fi | |
15355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15357 | /* end confdefs.h. */ | |
15358 | #define _LARGE_FILES 1 | |
15359 | #include <sys/types.h> | |
15360 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15361 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15362 | since some C++ compilers masquerading as C compilers | |
15363 | incorrectly reject 9223372036854775807. */ | |
15364 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15365 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15366 | && LARGE_OFF_T % 2147483647 == 1) | |
15367 | ? 1 : -1]; | |
15368 | int | |
15369 | main () | |
15370 | { | |
15371 | ||
15372 | ; | |
15373 | return 0; | |
15374 | } | |
15375 | _ACEOF | |
15376 | if ac_fn_c_try_compile "$LINENO"; then : | |
15377 | ac_cv_sys_large_files=1; break | |
15378 | fi | |
15379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15380 | ac_cv_sys_large_files=unknown | |
15381 | break | |
15382 | done | |
15383 | fi | |
15384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
15385 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
15386 | case $ac_cv_sys_large_files in #( | |
15387 | no | unknown) ;; | |
15388 | *) | |
15389 | cat >>confdefs.h <<_ACEOF | |
15390 | #define _LARGE_FILES $ac_cv_sys_large_files | |
15391 | _ACEOF | |
15392 | ;; | |
15393 | esac | |
15394 | rm -rf conftest* | |
15395 | fi | |
15396 | fi | |
15397 | ||
15398 | ||
15399 | ||
15400 | ||
15401 | # Check whether --with-lib-path was given. | |
15402 | if test "${with_lib_path+set}" = set; then : | |
15403 | withval=$with_lib_path; LIB_PATH=$withval | |
15404 | fi | |
15405 | ||
15406 | # Check whether --enable-targets was given. | |
15407 | if test "${enable_targets+set}" = set; then : | |
15408 | enableval=$enable_targets; case "${enableval}" in | |
15409 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
15410 | ;; | |
15411 | no) enable_targets= ;; | |
15412 | *) enable_targets=$enableval ;; | |
15413 | esac | |
15414 | fi | |
15415 | # Check whether --enable-64-bit-bfd was given. | |
15416 | if test "${enable_64_bit_bfd+set}" = set; then : | |
15417 | enableval=$enable_64_bit_bfd; case "${enableval}" in | |
15418 | yes) want64=true ;; | |
15419 | no) want64=false ;; | |
15420 | *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; | |
15421 | esac | |
15422 | else | |
15423 | want64=false | |
15424 | fi | |
15425 | ||
15426 | ||
15427 | # Check whether --with-sysroot was given. | |
15428 | if test "${with_sysroot+set}" = set; then : | |
15429 | withval=$with_sysroot; | |
15430 | case ${with_sysroot} in | |
15431 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
15432 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
15433 | esac | |
15434 | ||
15435 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
15436 | use_sysroot=yes | |
15437 | ||
15438 | if test "x$prefix" = xNONE; then | |
15439 | test_prefix=/usr/local | |
15440 | else | |
15441 | test_prefix=$prefix | |
15442 | fi | |
15443 | if test "x$exec_prefix" = xNONE; then | |
15444 | test_exec_prefix=$test_prefix | |
15445 | else | |
15446 | test_exec_prefix=$exec_prefix | |
15447 | fi | |
15448 | case ${TARGET_SYSTEM_ROOT} in | |
15449 | "${test_prefix}"|"${test_prefix}/"*|\ | |
15450 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
15451 | '${prefix}'|'${prefix}/'*|\ | |
15452 | '${exec_prefix}'|'${exec_prefix}/'*) | |
15453 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
15454 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
15455 | ;; | |
15456 | esac | |
15457 | ||
15458 | else | |
15459 | ||
15460 | use_sysroot=no | |
15461 | TARGET_SYSTEM_ROOT= | |
15462 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
15463 | ||
15464 | fi | |
15465 | ||
15466 | ||
15467 | ||
15468 | ||
15469 | ||
15470 | # Check whether --enable-gold was given. | |
15471 | if test "${enable_gold+set}" = set; then : | |
15472 | enableval=$enable_gold; case "${enableval}" in | |
15473 | default) | |
15474 | install_as_default=no | |
15475 | installed_linker=ld.bfd | |
15476 | ;; | |
15477 | yes|no) | |
15478 | install_as_default=yes | |
15479 | installed_linker=ld.bfd | |
15480 | ;; | |
15481 | *) | |
15482 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
15483 | ;; | |
15484 | esac | |
15485 | else | |
15486 | install_as_default=yes | |
15487 | installed_linker=ld.bfd | |
15488 | fi | |
15489 | ||
15490 | ||
15491 | ||
15492 | ||
15493 | # Check whether --enable-got was given. | |
15494 | if test "${enable_got+set}" = set; then : | |
15495 | enableval=$enable_got; case "${enableval}" in | |
15496 | target | single | negative | multigot) got_handling=$enableval ;; | |
15497 | *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; | |
15498 | esac | |
15499 | else | |
15500 | got_handling=target | |
15501 | fi | |
15502 | ||
15503 | ||
15504 | case "${got_handling}" in | |
15505 | target) | |
15506 | ||
15507 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h | |
15508 | ;; | |
15509 | single) | |
15510 | ||
15511 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h | |
15512 | ;; | |
15513 | negative) | |
15514 | ||
15515 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h | |
15516 | ;; | |
15517 | multigot) | |
15518 | ||
15519 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h | |
15520 | ;; | |
15521 | *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; | |
15522 | esac | |
15523 | ||
15524 | ||
15525 | # Set the 'development' global. | |
15526 | . $srcdir/../bfd/development.sh | |
15527 | ||
15528 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
15529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15530 | /* end confdefs.h. */ | |
15531 | __GNUC__ | |
15532 | _ACEOF | |
15533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15534 | $EGREP "^[0-3]$" >/dev/null 2>&1; then : | |
ce2cded5 | 15535 | |
3cb62297 | 15536 | else |
b879806f | 15537 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" |
3cb62297 | 15538 | fi |
b879806f | 15539 | rm -f conftest* |
ce2cded5 | 15540 | |
ce2cded5 | 15541 | |
b879806f AM |
15542 | # Check whether --enable-werror was given. |
15543 | if test "${enable_werror+set}" = set; then : | |
15544 | enableval=$enable_werror; case "${enableval}" in | |
15545 | yes | y) ERROR_ON_WARNING="yes" ;; | |
15546 | no | n) ERROR_ON_WARNING="no" ;; | |
15547 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
15548 | esac | |
15549 | fi | |
ce2cded5 L |
15550 | |
15551 | ||
b879806f AM |
15552 | # Disable -Wformat by default when using gcc on mingw |
15553 | case "${host}" in | |
15554 | *-*-mingw32*) | |
15555 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
15556 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
15557 | fi | |
15558 | ;; | |
15559 | *) ;; | |
15560 | esac | |
ce2cded5 | 15561 | |
b879806f AM |
15562 | # Enable -Werror by default when using gcc. Turn it off for releases. |
15563 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
15564 | ERROR_ON_WARNING=yes | |
15565 | fi | |
d7040cdb | 15566 | |
b879806f AM |
15567 | NO_WERROR= |
15568 | if test "${ERROR_ON_WARNING}" = yes ; then | |
15569 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
15570 | NO_WERROR="-Wno-error" | |
15571 | fi | |
3cb62297 | 15572 | |
b879806f AM |
15573 | if test "${GCC}" = yes ; then |
15574 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
15575 | fi | |
67310ccd | 15576 | |
b879806f AM |
15577 | # Check whether --enable-build-warnings was given. |
15578 | if test "${enable_build_warnings+set}" = set; then : | |
15579 | enableval=$enable_build_warnings; case "${enableval}" in | |
15580 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
15581 | no) if test "${GCC}" = yes ; then | |
15582 | WARN_CFLAGS="-w" | |
15583 | fi;; | |
15584 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15585 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
15586 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
15587 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
15588 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
15589 | esac | |
15590 | fi | |
67310ccd | 15591 | |
d7040cdb | 15592 | |
b879806f AM |
15593 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
15594 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
15595 | fi | |
d7040cdb | 15596 | |
d7040cdb | 15597 | |
d7040cdb | 15598 | |
d7040cdb | 15599 | |
ce2cded5 L |
15600 | |
15601 | ||
b879806f AM |
15602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
15603 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
15604 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
15605 | $as_echo_n "(cached) " >&6 | |
15606 | else | |
15607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15608 | /* end confdefs.h. */ | |
15609 | #include <locale.h> | |
15610 | int | |
15611 | main () | |
15612 | { | |
15613 | return LC_MESSAGES | |
15614 | ; | |
15615 | return 0; | |
15616 | } | |
15617 | _ACEOF | |
15618 | if ac_fn_c_try_link "$LINENO"; then : | |
15619 | am_cv_val_LC_MESSAGES=yes | |
15620 | else | |
15621 | am_cv_val_LC_MESSAGES=no | |
15622 | fi | |
15623 | rm -f core conftest.err conftest.$ac_objext \ | |
15624 | conftest$ac_exeext conftest.$ac_ext | |
15625 | fi | |
15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 | |
15627 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
15628 | if test $am_cv_val_LC_MESSAGES = yes; then | |
ce2cded5 | 15629 | |
b879806f | 15630 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
ce2cded5 | 15631 | |
b879806f | 15632 | fi |
ce2cded5 | 15633 | |
ce2cded5 | 15634 | |
b879806f | 15635 | ac_config_headers="$ac_config_headers config.h:config.in" |
ce2cded5 L |
15636 | |
15637 | ||
b879806f | 15638 | # PR 14072 |
ce2cded5 | 15639 | |
ce2cded5 | 15640 | |
b879806f AM |
15641 | if test -z "$target" ; then |
15642 | as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 | |
15643 | fi | |
15644 | if test -z "$host" ; then | |
15645 | as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5 | |
15646 | fi | |
d7040cdb | 15647 | |
b879806f | 15648 | # host-specific stuff: |
d7040cdb | 15649 | |
3e4fe8ac | 15650 | ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk" |
d7040cdb SE |
15651 | # If we haven't got the data from the intl directory, |
15652 | # assume NLS is disabled. | |
15653 | USE_NLS=no | |
15654 | LIBINTL= | |
15655 | LIBINTL_DEP= | |
15656 | INCINTL= | |
15657 | XGETTEXT= | |
15658 | GMSGFMT= | |
15659 | POSUB= | |
15660 | ||
15661 | if test -f ../intl/config.intl; then | |
15662 | . ../intl/config.intl | |
15663 | fi | |
81ecdfbb RW |
15664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
15665 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 15666 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
15667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15668 | $as_echo "no" >&6; } | |
d7040cdb | 15669 | else |
81ecdfbb RW |
15670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15671 | $as_echo "yes" >&6; } | |
d7040cdb | 15672 | |
81ecdfbb | 15673 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
15674 | |
15675 | ||
81ecdfbb RW |
15676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
15677 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
15678 | # Look for .po and .gmo files in the source directory. |
15679 | CATALOGS= | |
15680 | XLINGUAS= | |
15681 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
15682 | # If there aren't any .gmo files the shell will give us the | |
15683 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
15684 | # weeded out. | |
15685 | case "$cat" in *\**) | |
15686 | continue;; | |
15687 | esac | |
15688 | # The quadruple backslash is collapsed to a double backslash | |
15689 | # by the backticks, then collapsed again by the double quotes, | |
15690 | # leaving us with one backslash in the sed expression (right | |
15691 | # before the dot that mustn't act as a wildcard). | |
15692 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
15693 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
15694 | # The user is allowed to set LINGUAS to a list of languages to | |
15695 | # install catalogs for. If it's empty that means "all of them." | |
15696 | if test "x$LINGUAS" = x; then | |
15697 | CATALOGS="$CATALOGS $cat" | |
15698 | XLINGUAS="$XLINGUAS $lang" | |
15699 | else | |
15700 | case "$LINGUAS" in *$lang*) | |
15701 | CATALOGS="$CATALOGS $cat" | |
15702 | XLINGUAS="$XLINGUAS $lang" | |
15703 | ;; | |
15704 | esac | |
15705 | fi | |
15706 | done | |
15707 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
15708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
15709 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
15710 | |
15711 | ||
15712 | DATADIRNAME=share | |
15713 | ||
15714 | INSTOBJEXT=.mo | |
15715 | ||
15716 | GENCAT=gencat | |
15717 | ||
15718 | CATOBJEXT=.gmo | |
15719 | ||
15720 | fi | |
15721 | ||
15722 | MKINSTALLDIRS= | |
15723 | if test -n "$ac_aux_dir"; then | |
15724 | case "$ac_aux_dir" in | |
15725 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
15726 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
15727 | esac | |
15728 | fi | |
15729 | if test -z "$MKINSTALLDIRS"; then | |
15730 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
15731 | fi | |
15732 | ||
15733 | ||
15734 | ||
81ecdfbb RW |
15735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
15736 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
15737 | # Check whether --enable-nls was given. | |
15738 | if test "${enable_nls+set}" = set; then : | |
15739 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
15740 | else |
15741 | USE_NLS=yes | |
81ecdfbb RW |
15742 | fi |
15743 | ||
15744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
15745 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
15746 | |
15747 | ||
15748 | ||
15749 | ||
15750 | ||
15751 | ||
15752 | # Prepare PATH_SEPARATOR. | |
15753 | # The user is always right. | |
15754 | if test "${PATH_SEPARATOR+set}" != set; then | |
15755 | echo "#! /bin/sh" >conf$$.sh | |
15756 | echo "exit 0" >>conf$$.sh | |
15757 | chmod +x conf$$.sh | |
15758 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15759 | PATH_SEPARATOR=';' | |
15760 | else | |
15761 | PATH_SEPARATOR=: | |
15762 | fi | |
15763 | rm -f conf$$.sh | |
15764 | fi | |
15765 | ||
15766 | # Find out how to test for executable files. Don't use a zero-byte file, | |
15767 | # as systems may use methods other than mode bits to determine executability. | |
15768 | cat >conf$$.file <<_ASEOF | |
15769 | #! /bin/sh | |
15770 | exit 0 | |
15771 | _ASEOF | |
15772 | chmod +x conf$$.file | |
15773 | if test -x conf$$.file >/dev/null 2>&1; then | |
15774 | ac_executable_p="test -x" | |
15775 | else | |
15776 | ac_executable_p="test -f" | |
15777 | fi | |
15778 | rm -f conf$$.file | |
15779 | ||
15780 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15781 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15783 | $as_echo_n "checking for $ac_word... " >&6; } | |
15784 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
15785 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15786 | else |
15787 | case "$MSGFMT" in | |
15788 | [\\/]* | ?:[\\/]*) | |
15789 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15790 | ;; | |
15791 | *) | |
15792 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15793 | for ac_dir in $PATH; do | |
15794 | IFS="$ac_save_IFS" | |
15795 | test -z "$ac_dir" && ac_dir=. | |
15796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15797 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15798 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
15799 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
15800 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
15801 | break 2 | |
15802 | fi | |
15803 | fi | |
15804 | done | |
15805 | done | |
15806 | IFS="$ac_save_IFS" | |
15807 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
15808 | ;; | |
15809 | esac | |
15810 | fi | |
15811 | MSGFMT="$ac_cv_path_MSGFMT" | |
15812 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
15813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
15814 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 15815 | else |
81ecdfbb RW |
15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15817 | $as_echo "no" >&6; } | |
d7040cdb SE |
15818 | fi |
15819 | ||
15820 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
15821 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15823 | $as_echo_n "checking for $ac_word... " >&6; } | |
15824 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
15825 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15826 | else |
15827 | case $GMSGFMT in | |
15828 | [\\/]* | ?:[\\/]*) | |
15829 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
15830 | ;; | |
15831 | *) | |
15832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15833 | for as_dir in $PATH | |
15834 | do | |
15835 | IFS=$as_save_IFS | |
15836 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
15837 | for ac_exec_ext in '' $ac_executable_extensions; do |
15838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 15839 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
15841 | break 2 |
15842 | fi | |
15843 | done | |
81ecdfbb RW |
15844 | done |
15845 | IFS=$as_save_IFS | |
d7040cdb SE |
15846 | |
15847 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
15848 | ;; | |
15849 | esac | |
15850 | fi | |
15851 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 15852 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
15853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
15854 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 15855 | else |
81ecdfbb RW |
15856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15857 | $as_echo "no" >&6; } | |
20e95c23 | 15858 | fi |
42ecbf5e | 15859 | |
20e95c23 | 15860 | |
252b5132 | 15861 | |
81ecdfbb | 15862 | |
d7040cdb SE |
15863 | # Prepare PATH_SEPARATOR. |
15864 | # The user is always right. | |
15865 | if test "${PATH_SEPARATOR+set}" != set; then | |
15866 | echo "#! /bin/sh" >conf$$.sh | |
15867 | echo "exit 0" >>conf$$.sh | |
15868 | chmod +x conf$$.sh | |
15869 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15870 | PATH_SEPARATOR=';' | |
15871 | else | |
15872 | PATH_SEPARATOR=: | |
15873 | fi | |
15874 | rm -f conf$$.sh | |
20e95c23 | 15875 | fi |
252b5132 | 15876 | |
d7040cdb SE |
15877 | # Find out how to test for executable files. Don't use a zero-byte file, |
15878 | # as systems may use methods other than mode bits to determine executability. | |
15879 | cat >conf$$.file <<_ASEOF | |
15880 | #! /bin/sh | |
15881 | exit 0 | |
15882 | _ASEOF | |
15883 | chmod +x conf$$.file | |
15884 | if test -x conf$$.file >/dev/null 2>&1; then | |
15885 | ac_executable_p="test -x" | |
20e95c23 | 15886 | else |
d7040cdb SE |
15887 | ac_executable_p="test -f" |
15888 | fi | |
15889 | rm -f conf$$.file | |
20e95c23 | 15890 | |
d7040cdb SE |
15891 | # Extract the first word of "xgettext", so it can be a program name with args. |
15892 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
15893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15894 | $as_echo_n "checking for $ac_word... " >&6; } | |
15895 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
15896 | $as_echo_n "(cached) " >&6 | |
252b5132 | 15897 | else |
d7040cdb SE |
15898 | case "$XGETTEXT" in |
15899 | [\\/]* | ?:[\\/]*) | |
15900 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
15901 | ;; | |
15902 | *) | |
15903 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15904 | for ac_dir in $PATH; do | |
15905 | IFS="$ac_save_IFS" | |
15906 | test -z "$ac_dir" && ac_dir=. | |
15907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15908 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15909 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
15910 | (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 | |
15911 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
15912 | break 2 | |
15913 | fi | |
15914 | fi | |
15915 | done | |
15916 | done | |
15917 | IFS="$ac_save_IFS" | |
15918 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
15919 | ;; | |
15920 | esac | |
252b5132 | 15921 | fi |
d7040cdb SE |
15922 | XGETTEXT="$ac_cv_path_XGETTEXT" |
15923 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
15924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
15925 | $as_echo "$XGETTEXT" >&6; } | |
d5fbea21 | 15926 | else |
81ecdfbb RW |
15927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15928 | $as_echo "no" >&6; } | |
d5fbea21 DJ |
15929 | fi |
15930 | ||
d7040cdb | 15931 | rm -f messages.po |
d5fbea21 | 15932 | |
20e95c23 | 15933 | |
d7040cdb SE |
15934 | # Prepare PATH_SEPARATOR. |
15935 | # The user is always right. | |
15936 | if test "${PATH_SEPARATOR+set}" != set; then | |
15937 | echo "#! /bin/sh" >conf$$.sh | |
15938 | echo "exit 0" >>conf$$.sh | |
15939 | chmod +x conf$$.sh | |
15940 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15941 | PATH_SEPARATOR=';' | |
15942 | else | |
15943 | PATH_SEPARATOR=: | |
15944 | fi | |
15945 | rm -f conf$$.sh | |
15946 | fi | |
20e95c23 | 15947 | |
d7040cdb SE |
15948 | # Find out how to test for executable files. Don't use a zero-byte file, |
15949 | # as systems may use methods other than mode bits to determine executability. | |
15950 | cat >conf$$.file <<_ASEOF | |
15951 | #! /bin/sh | |
15952 | exit 0 | |
15953 | _ASEOF | |
15954 | chmod +x conf$$.file | |
15955 | if test -x conf$$.file >/dev/null 2>&1; then | |
15956 | ac_executable_p="test -x" | |
15957 | else | |
15958 | ac_executable_p="test -f" | |
15959 | fi | |
15960 | rm -f conf$$.file | |
20e95c23 | 15961 | |
d7040cdb SE |
15962 | # Extract the first word of "msgmerge", so it can be a program name with args. |
15963 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
15964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15965 | $as_echo_n "checking for $ac_word... " >&6; } | |
15966 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
15967 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
15968 | else |
15969 | case "$MSGMERGE" in | |
15970 | [\\/]* | ?:[\\/]*) | |
15971 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
15972 | ;; | |
15973 | *) | |
15974 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
15975 | for ac_dir in $PATH; do | |
15976 | IFS="$ac_save_IFS" | |
15977 | test -z "$ac_dir" && ac_dir=. | |
15978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15979 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
15980 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
15981 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
15982 | break 2 | |
15983 | fi | |
15984 | fi | |
15985 | done | |
15986 | done | |
15987 | IFS="$ac_save_IFS" | |
15988 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
15989 | ;; | |
15990 | esac | |
15991 | fi | |
15992 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
15993 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
15995 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 15996 | else |
81ecdfbb RW |
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15998 | $as_echo "no" >&6; } | |
d7040cdb | 15999 | fi |
20e95c23 DJ |
16000 | |
16001 | ||
d7040cdb SE |
16002 | if test "$GMSGFMT" != ":"; then |
16003 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
16004 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
16005 | : ; | |
16006 | else | |
16007 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
16008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
16009 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
16010 | GMSGFMT=":" |
16011 | fi | |
16012 | fi | |
20e95c23 | 16013 | |
d7040cdb SE |
16014 | if test "$XGETTEXT" != ":"; then |
16015 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
16016 | (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 | |
16017 | : ; | |
16018 | else | |
81ecdfbb RW |
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
16020 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
16021 | XGETTEXT=":" |
16022 | fi | |
16023 | rm -f messages.po | |
20e95c23 | 16024 | fi |
42ecbf5e | 16025 | |
81ecdfbb | 16026 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 16027 | |
42ecbf5e | 16028 | |
252b5132 | 16029 | |
42ecbf5e DJ |
16030 | |
16031 | ||
d7040cdb | 16032 | for ac_prog in 'bison -y' byacc |
20e95c23 | 16033 | do |
d7040cdb SE |
16034 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
16035 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16037 | $as_echo_n "checking for $ac_word... " >&6; } | |
16038 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
16039 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 16040 | else |
d7040cdb SE |
16041 | if test -n "$YACC"; then |
16042 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 16043 | else |
d7040cdb SE |
16044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16045 | for as_dir in $PATH | |
16046 | do | |
16047 | IFS=$as_save_IFS | |
16048 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
16049 | for ac_exec_ext in '' $ac_executable_extensions; do |
16050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 16051 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 16052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16053 | break 2 |
16054 | fi | |
16055 | done | |
81ecdfbb RW |
16056 | done |
16057 | IFS=$as_save_IFS | |
42ecbf5e | 16058 | |
42ecbf5e | 16059 | fi |
e5a52504 | 16060 | fi |
d7040cdb SE |
16061 | YACC=$ac_cv_prog_YACC |
16062 | if test -n "$YACC"; then | |
81ecdfbb RW |
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
16064 | $as_echo "$YACC" >&6; } | |
42ecbf5e | 16065 | else |
81ecdfbb RW |
16066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16067 | $as_echo "no" >&6; } | |
42ecbf5e | 16068 | fi |
252b5132 | 16069 | |
81ecdfbb | 16070 | |
d7040cdb | 16071 | test -n "$YACC" && break |
42ecbf5e | 16072 | done |
d7040cdb | 16073 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 16074 | |
d7040cdb SE |
16075 | for ac_prog in flex lex |
16076 | do | |
16077 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16078 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
16079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16080 | $as_echo_n "checking for $ac_word... " >&6; } | |
16081 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
16082 | $as_echo_n "(cached) " >&6 | |
d15b04bd | 16083 | else |
d7040cdb SE |
16084 | if test -n "$LEX"; then |
16085 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
16086 | else | |
16087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16088 | for as_dir in $PATH | |
16089 | do | |
16090 | IFS=$as_save_IFS | |
16091 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
16092 | for ac_exec_ext in '' $ac_executable_extensions; do |
16093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 16094 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 16095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
16096 | break 2 |
16097 | fi | |
16098 | done | |
81ecdfbb RW |
16099 | done |
16100 | IFS=$as_save_IFS | |
d7040cdb SE |
16101 | |
16102 | fi | |
16103 | fi | |
16104 | LEX=$ac_cv_prog_LEX | |
16105 | if test -n "$LEX"; then | |
81ecdfbb RW |
16106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
16107 | $as_echo "$LEX" >&6; } | |
d7040cdb | 16108 | else |
81ecdfbb RW |
16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16110 | $as_echo "no" >&6; } | |
d15b04bd | 16111 | fi |
e5a52504 | 16112 | |
81ecdfbb | 16113 | |
d7040cdb SE |
16114 | test -n "$LEX" && break |
16115 | done | |
16116 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 16117 | |
81ecdfbb RW |
16118 | if test "x$LEX" != "x:"; then |
16119 | cat >conftest.l <<_ACEOF | |
16120 | %% | |
16121 | a { ECHO; } | |
16122 | b { REJECT; } | |
16123 | c { yymore (); } | |
16124 | d { yyless (1); } | |
16125 | e { yyless (input () != 0); } | |
16126 | f { unput (yytext[0]); } | |
16127 | . { BEGIN INITIAL; } | |
16128 | %% | |
16129 | #ifdef YYTEXT_POINTER | |
16130 | extern char *yytext; | |
d7040cdb | 16131 | #endif |
42ecbf5e | 16132 | int |
81ecdfbb | 16133 | main (void) |
42ecbf5e | 16134 | { |
81ecdfbb | 16135 | return ! yylex () + ! yywrap (); |
42ecbf5e DJ |
16136 | } |
16137 | _ACEOF | |
81ecdfbb RW |
16138 | { { ac_try="$LEX conftest.l" |
16139 | case "(($ac_try" in | |
16140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16141 | *) ac_try_echo=$ac_try;; | |
16142 | esac | |
16143 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16144 | $as_echo "$ac_try_echo"; } >&5 | |
16145 | (eval "$LEX conftest.l") 2>&5 | |
42ecbf5e | 16146 | ac_status=$? |
81ecdfbb RW |
16147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16148 | test $ac_status = 0; } | |
16149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
16150 | $as_echo_n "checking lex output file root... " >&6; } | |
16151 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
16152 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 16153 | else |
42ecbf5e | 16154 | |
81ecdfbb RW |
16155 | if test -f lex.yy.c; then |
16156 | ac_cv_prog_lex_root=lex.yy | |
16157 | elif test -f lexyy.c; then | |
16158 | ac_cv_prog_lex_root=lexyy | |
16159 | else | |
16160 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
42ecbf5e | 16161 | fi |
42ecbf5e | 16162 | fi |
81ecdfbb RW |
16163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
16164 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
16165 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 16166 | |
81ecdfbb RW |
16167 | if test -z "${LEXLIB+set}"; then |
16168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
16169 | $as_echo_n "checking lex library... " >&6; } | |
16170 | if test "${ac_cv_lib_lex+set}" = set; then : | |
16171 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16172 | else |
20e95c23 | 16173 | |
81ecdfbb RW |
16174 | ac_save_LIBS=$LIBS |
16175 | ac_cv_lib_lex='none needed' | |
16176 | for ac_lib in '' -lfl -ll; do | |
16177 | LIBS="$ac_lib $ac_save_LIBS" | |
16178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16179 | /* end confdefs.h. */ | |
16180 | `cat $LEX_OUTPUT_ROOT.c` | |
16181 | _ACEOF | |
16182 | if ac_fn_c_try_link "$LINENO"; then : | |
16183 | ac_cv_lib_lex=$ac_lib | |
20e95c23 | 16184 | fi |
81ecdfbb RW |
16185 | rm -f core conftest.err conftest.$ac_objext \ |
16186 | conftest$ac_exeext conftest.$ac_ext | |
16187 | test "$ac_cv_lib_lex" != 'none needed' && break | |
16188 | done | |
16189 | LIBS=$ac_save_LIBS | |
20e95c23 DJ |
16190 | |
16191 | fi | |
81ecdfbb RW |
16192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
16193 | $as_echo "$ac_cv_lib_lex" >&6; } | |
16194 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb | 16195 | fi |
20e95c23 | 16196 | |
20e95c23 | 16197 | |
81ecdfbb RW |
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
16199 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
16200 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
16201 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
16202 | else |
16203 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 16204 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
16205 | # not all implementations provide the %pointer and %array declarations. |
16206 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 16207 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
16208 | LIBS="$LEXLIB $ac_save_LIBS" |
16209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16210 | /* end confdefs.h. */ | |
16211 | #define YYTEXT_POINTER 1 | |
d7040cdb | 16212 | `cat $LEX_OUTPUT_ROOT.c` |
20e95c23 | 16213 | _ACEOF |
81ecdfbb | 16214 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 16215 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 16216 | fi |
81ecdfbb RW |
16217 | rm -f core conftest.err conftest.$ac_objext \ |
16218 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 16219 | LIBS=$ac_save_LIBS |
d7040cdb SE |
16220 | |
16221 | fi | |
81ecdfbb RW |
16222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
16223 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
16224 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
16225 | ||
81ecdfbb | 16226 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
16227 | |
16228 | fi | |
81ecdfbb | 16229 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
d7040cdb SE |
16230 | |
16231 | fi | |
16232 | if test "$LEX" = :; then | |
16233 | LEX=${am_missing_run}flex | |
16234 | fi | |
16235 | ||
81ecdfbb RW |
16236 | |
16237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
16238 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
16239 | # Check whether --enable-maintainer-mode was given. | |
16240 | if test "${enable_maintainer_mode+set}" = set; then : | |
16241 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 16242 | else |
d7040cdb | 16243 | USE_MAINTAINER_MODE=no |
81ecdfbb | 16244 | fi |
d7040cdb | 16245 | |
81ecdfbb RW |
16246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
16247 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
16248 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
16249 | MAINTAINER_MODE_TRUE= |
16250 | MAINTAINER_MODE_FALSE='#' | |
16251 | else | |
16252 | MAINTAINER_MODE_TRUE='#' | |
16253 | MAINTAINER_MODE_FALSE= | |
252b5132 | 16254 | fi |
252b5132 | 16255 | |
d7040cdb SE |
16256 | MAINT=$MAINTAINER_MODE_TRUE |
16257 | ||
16258 | ||
81ecdfbb | 16259 | if false; then |
d7040cdb SE |
16260 | GENINSRC_NEVER_TRUE= |
16261 | GENINSRC_NEVER_FALSE='#' | |
16262 | else | |
16263 | GENINSRC_NEVER_TRUE='#' | |
16264 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
16265 | fi |
16266 | ||
81ecdfbb RW |
16267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
16268 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
16269 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
16270 | $as_echo_n "(cached) " >&6 | |
eccbf555 AM |
16271 | else |
16272 | echo abfoo >t1 | |
16273 | echo cdfoo >t2 | |
16274 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
16275 | if cmp t1 t2 2 2 > /dev/null 2>&1; then | |
16276 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
16277 | : | |
16278 | else | |
16279 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
16280 | fi | |
16281 | fi | |
16282 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
16283 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
16284 | : | |
16285 | else | |
16286 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
16287 | fi | |
16288 | fi | |
16289 | rm t1 t2 | |
16290 | ||
16291 | fi | |
81ecdfbb RW |
16292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
16293 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
eccbf555 AM |
16294 | do_compare="$gcc_cv_prog_cmp_skip" |
16295 | ||
16296 | ||
d7040cdb SE |
16297 | |
16298 | . ${srcdir}/configure.host | |
16299 | ||
16300 | ||
16301 | ||
16302 | ||
252b5132 RH |
16303 | |
16304 | ||
6738cadc | 16305 | |
b27caf75 | 16306 | |
58797674 | 16307 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h |
81ecdfbb RW |
16308 | do : |
16309 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16310 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16311 | eval as_val=\$$as_ac_Header | |
16312 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16313 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16314 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16315 | _ACEOF |
16316 | ||
16317 | fi | |
16318 | ||
252b5132 RH |
16319 | done |
16320 | ||
5d3236ee DK |
16321 | for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h |
16322 | do : | |
16323 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16324 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16325 | eval as_val=\$$as_ac_Header | |
16326 | if test "x$as_val" = x""yes; then : | |
16327 | cat >>confdefs.h <<_ACEOF | |
16328 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16329 | _ACEOF | |
16330 | ||
16331 | fi | |
16332 | ||
16333 | done | |
16334 | ||
208a4923 NC |
16335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 |
16336 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
16337 | if test "${gcc_cv_header_string+set}" = set; then : | |
16338 | $as_echo_n "(cached) " >&6 | |
16339 | else | |
16340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16341 | /* end confdefs.h. */ | |
16342 | #include <string.h> | |
16343 | #include <strings.h> | |
16344 | int | |
16345 | main () | |
16346 | { | |
16347 | ||
16348 | ; | |
16349 | return 0; | |
16350 | } | |
16351 | _ACEOF | |
16352 | if ac_fn_c_try_compile "$LINENO"; then : | |
16353 | gcc_cv_header_string=yes | |
16354 | else | |
16355 | gcc_cv_header_string=no | |
16356 | fi | |
16357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16358 | fi | |
16359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
16360 | $as_echo "$gcc_cv_header_string" >&6; } | |
16361 | if test $gcc_cv_header_string = yes; then | |
16362 | ||
16363 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
16364 | ||
16365 | fi | |
16366 | ||
44350750 | 16367 | for ac_func in glob mkstemp realpath sbrk setlocale waitpid |
81ecdfbb RW |
16368 | do : |
16369 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16370 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16371 | eval as_val=\$$as_ac_var | |
16372 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16373 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16374 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
42ecbf5e | 16375 | _ACEOF |
252b5132 | 16376 | |
252b5132 RH |
16377 | fi |
16378 | done | |
16379 | ||
5d3236ee DK |
16380 | for ac_func in open lseek close |
16381 | do : | |
16382 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16383 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16384 | eval as_val=\$$as_ac_var | |
16385 | if test "x$as_val" = x""yes; then : | |
16386 | cat >>confdefs.h <<_ACEOF | |
16387 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16388 | _ACEOF | |
16389 | ||
16390 | fi | |
16391 | done | |
16392 | ||
252b5132 | 16393 | ac_header_dirent=no |
42ecbf5e | 16394 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
16395 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
16396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
16397 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
16398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
16399 | $as_echo_n "(cached) " >&6 | |
16400 | else | |
16401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 16402 | /* end confdefs.h. */ |
252b5132 RH |
16403 | #include <sys/types.h> |
16404 | #include <$ac_hdr> | |
42ecbf5e DJ |
16405 | |
16406 | int | |
16407 | main () | |
16408 | { | |
16409 | if ((DIR *) 0) | |
16410 | return 0; | |
16411 | ; | |
16412 | return 0; | |
16413 | } | |
16414 | _ACEOF | |
81ecdfbb | 16415 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
16416 | eval "$as_ac_Header=yes" |
16417 | else | |
81ecdfbb | 16418 | eval "$as_ac_Header=no" |
42ecbf5e | 16419 | fi |
81ecdfbb | 16420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 16421 | fi |
81ecdfbb RW |
16422 | eval ac_res=\$$as_ac_Header |
16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16424 | $as_echo "$ac_res" >&6; } | |
16425 | eval as_val=\$$as_ac_Header | |
16426 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 16427 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16428 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
42ecbf5e DJ |
16429 | _ACEOF |
16430 | ||
16431 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 16432 | fi |
42ecbf5e | 16433 | |
d15b04bd L |
16434 | done |
16435 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
16436 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
16437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16438 | $as_echo_n "checking for library containing opendir... " >&6; } | |
16439 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16440 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
16441 | else |
16442 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 16443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16444 | /* end confdefs.h. */ |
16445 | ||
81ecdfbb RW |
16446 | /* Override any GCC internal prototype to avoid an error. |
16447 | Use char because int might match the return type of a GCC | |
16448 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16449 | #ifdef __cplusplus |
16450 | extern "C" | |
16451 | #endif | |
42ecbf5e DJ |
16452 | char opendir (); |
16453 | int | |
16454 | main () | |
16455 | { | |
81ecdfbb | 16456 | return opendir (); |
42ecbf5e DJ |
16457 | ; |
16458 | return 0; | |
16459 | } | |
16460 | _ACEOF | |
81ecdfbb RW |
16461 | for ac_lib in '' dir; do |
16462 | if test -z "$ac_lib"; then | |
16463 | ac_res="none required" | |
16464 | else | |
16465 | ac_res=-l$ac_lib | |
42ecbf5e | 16466 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
16467 | fi |
16468 | if ac_fn_c_try_link "$LINENO"; then : | |
16469 | ac_cv_search_opendir=$ac_res | |
16470 | fi | |
16471 | rm -f core conftest.err conftest.$ac_objext \ | |
16472 | conftest$ac_exeext | |
16473 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16474 | break | |
16475 | fi | |
16476 | done | |
16477 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e5a52504 | 16478 | |
42ecbf5e | 16479 | else |
81ecdfbb | 16480 | ac_cv_search_opendir=no |
252b5132 | 16481 | fi |
81ecdfbb | 16482 | rm conftest.$ac_ext |
42ecbf5e DJ |
16483 | LIBS=$ac_func_search_save_LIBS |
16484 | fi | |
81ecdfbb RW |
16485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
16486 | $as_echo "$ac_cv_search_opendir" >&6; } | |
16487 | ac_res=$ac_cv_search_opendir | |
16488 | if test "$ac_res" != no; then : | |
16489 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 16490 | |
d15b04bd | 16491 | fi |
252b5132 RH |
16492 | |
16493 | else | |
81ecdfbb RW |
16494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
16495 | $as_echo_n "checking for library containing opendir... " >&6; } | |
16496 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16497 | $as_echo_n "(cached) " >&6 | |
252b5132 | 16498 | else |
42ecbf5e | 16499 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 16500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
16501 | /* end confdefs.h. */ |
16502 | ||
81ecdfbb RW |
16503 | /* Override any GCC internal prototype to avoid an error. |
16504 | Use char because int might match the return type of a GCC | |
16505 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
16506 | #ifdef __cplusplus |
16507 | extern "C" | |
16508 | #endif | |
42ecbf5e DJ |
16509 | char opendir (); |
16510 | int | |
16511 | main () | |
16512 | { | |
81ecdfbb | 16513 | return opendir (); |
42ecbf5e DJ |
16514 | ; |
16515 | return 0; | |
16516 | } | |
16517 | _ACEOF | |
81ecdfbb RW |
16518 | for ac_lib in '' x; do |
16519 | if test -z "$ac_lib"; then | |
16520 | ac_res="none required" | |
16521 | else | |
16522 | ac_res=-l$ac_lib | |
42ecbf5e | 16523 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
16524 | fi |
16525 | if ac_fn_c_try_link "$LINENO"; then : | |
16526 | ac_cv_search_opendir=$ac_res | |
16527 | fi | |
16528 | rm -f core conftest.err conftest.$ac_objext \ | |
16529 | conftest$ac_exeext | |
16530 | if test "${ac_cv_search_opendir+set}" = set; then : | |
16531 | break | |
16532 | fi | |
16533 | done | |
16534 | if test "${ac_cv_search_opendir+set}" = set; then : | |
252b5132 | 16535 | |
42ecbf5e | 16536 | else |
81ecdfbb | 16537 | ac_cv_search_opendir=no |
252b5132 | 16538 | fi |
81ecdfbb | 16539 | rm conftest.$ac_ext |
42ecbf5e | 16540 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 16541 | fi |
81ecdfbb RW |
16542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
16543 | $as_echo "$ac_cv_search_opendir" >&6; } | |
16544 | ac_res=$ac_cv_search_opendir | |
16545 | if test "$ac_res" != no; then : | |
16546 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 16547 | |
d15b04bd | 16548 | fi |
252b5132 RH |
16549 | |
16550 | fi | |
16551 | ||
16552 | ||
2aec968d L |
16553 | for ac_header in stdlib.h unistd.h |
16554 | do : | |
16555 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16556 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16557 | eval as_val=\$$as_ac_Header | |
16558 | if test "x$as_val" = x""yes; then : | |
16559 | cat >>confdefs.h <<_ACEOF | |
16560 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16561 | _ACEOF | |
16562 | ||
16563 | fi | |
16564 | ||
16565 | done | |
16566 | ||
16567 | for ac_func in getpagesize | |
16568 | do : | |
16569 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
16570 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
16571 | cat >>confdefs.h <<_ACEOF | |
16572 | #define HAVE_GETPAGESIZE 1 | |
16573 | _ACEOF | |
16574 | ||
16575 | fi | |
16576 | done | |
16577 | ||
16578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
16579 | $as_echo_n "checking for working mmap... " >&6; } | |
16580 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
16581 | $as_echo_n "(cached) " >&6 | |
16582 | else | |
16583 | if test "$cross_compiling" = yes; then : | |
16584 | ac_cv_func_mmap_fixed_mapped=no | |
16585 | else | |
16586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16587 | /* end confdefs.h. */ | |
16588 | $ac_includes_default | |
16589 | /* malloc might have been renamed as rpl_malloc. */ | |
16590 | #undef malloc | |
16591 | ||
16592 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
16593 | Here is a matrix of mmap possibilities: | |
16594 | mmap private not fixed | |
16595 | mmap private fixed at somewhere currently unmapped | |
16596 | mmap private fixed at somewhere already mapped | |
16597 | mmap shared not fixed | |
16598 | mmap shared fixed at somewhere currently unmapped | |
16599 | mmap shared fixed at somewhere already mapped | |
16600 | For private mappings, we should verify that changes cannot be read() | |
16601 | back from the file, nor mmap's back from the file at a different | |
16602 | address. (There have been systems where private was not correctly | |
16603 | implemented like the infamous i386 svr4.0, and systems where the | |
16604 | VM page cache was not coherent with the file system buffer cache | |
16605 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16606 | For shared mappings, we should conversely verify that changes get | |
16607 | propagated back to all the places they're supposed to be. | |
16608 | ||
16609 | Grep wants private fixed already mapped. | |
16610 | The main things grep needs to know about mmap are: | |
16611 | * does it exist and is it safe to write into the mmap'd area | |
16612 | * how to use it (BSD variants) */ | |
16613 | ||
16614 | #include <fcntl.h> | |
16615 | #include <sys/mman.h> | |
16616 | ||
16617 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
16618 | char *malloc (); | |
16619 | #endif | |
16620 | ||
16621 | /* This mess was copied from the GNU getpagesize.h. */ | |
16622 | #ifndef HAVE_GETPAGESIZE | |
16623 | /* Assume that all systems that can run configure have sys/param.h. */ | |
16624 | # ifndef HAVE_SYS_PARAM_H | |
16625 | # define HAVE_SYS_PARAM_H 1 | |
16626 | # endif | |
16627 | ||
16628 | # ifdef _SC_PAGESIZE | |
16629 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16630 | # else /* no _SC_PAGESIZE */ | |
16631 | # ifdef HAVE_SYS_PARAM_H | |
16632 | # include <sys/param.h> | |
16633 | # ifdef EXEC_PAGESIZE | |
16634 | # define getpagesize() EXEC_PAGESIZE | |
16635 | # else /* no EXEC_PAGESIZE */ | |
16636 | # ifdef NBPG | |
16637 | # define getpagesize() NBPG * CLSIZE | |
16638 | # ifndef CLSIZE | |
16639 | # define CLSIZE 1 | |
16640 | # endif /* no CLSIZE */ | |
16641 | # else /* no NBPG */ | |
16642 | # ifdef NBPC | |
16643 | # define getpagesize() NBPC | |
16644 | # else /* no NBPC */ | |
16645 | # ifdef PAGESIZE | |
16646 | # define getpagesize() PAGESIZE | |
16647 | # endif /* PAGESIZE */ | |
16648 | # endif /* no NBPC */ | |
16649 | # endif /* no NBPG */ | |
16650 | # endif /* no EXEC_PAGESIZE */ | |
16651 | # else /* no HAVE_SYS_PARAM_H */ | |
16652 | # define getpagesize() 8192 /* punt totally */ | |
16653 | # endif /* no HAVE_SYS_PARAM_H */ | |
16654 | # endif /* no _SC_PAGESIZE */ | |
16655 | ||
16656 | #endif /* no HAVE_GETPAGESIZE */ | |
16657 | ||
16658 | int | |
16659 | main () | |
16660 | { | |
16661 | char *data, *data2, *data3; | |
16662 | int i, pagesize; | |
16663 | int fd; | |
16664 | ||
16665 | pagesize = getpagesize (); | |
16666 | ||
16667 | /* First, make a file with some known garbage in it. */ | |
16668 | data = (char *) malloc (pagesize); | |
16669 | if (!data) | |
16670 | return 1; | |
16671 | for (i = 0; i < pagesize; ++i) | |
16672 | *(data + i) = rand (); | |
16673 | umask (0); | |
16674 | fd = creat ("conftest.mmap", 0600); | |
16675 | if (fd < 0) | |
16676 | return 1; | |
16677 | if (write (fd, data, pagesize) != pagesize) | |
16678 | return 1; | |
16679 | close (fd); | |
16680 | ||
16681 | /* Next, try to mmap the file at a fixed address which already has | |
16682 | something else allocated at it. If we can, also make sure that | |
16683 | we see the same garbage. */ | |
16684 | fd = open ("conftest.mmap", O_RDWR); | |
16685 | if (fd < 0) | |
16686 | return 1; | |
16687 | data2 = (char *) malloc (2 * pagesize); | |
16688 | if (!data2) | |
16689 | return 1; | |
16690 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
16691 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
16692 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
16693 | return 1; | |
16694 | for (i = 0; i < pagesize; ++i) | |
16695 | if (*(data + i) != *(data2 + i)) | |
16696 | return 1; | |
16697 | ||
16698 | /* Finally, make sure that changes to the mapped area do not | |
16699 | percolate back to the file as seen by read(). (This is a bug on | |
16700 | some variants of i386 svr4.0.) */ | |
16701 | for (i = 0; i < pagesize; ++i) | |
16702 | *(data2 + i) = *(data2 + i) + 1; | |
16703 | data3 = (char *) malloc (pagesize); | |
16704 | if (!data3) | |
16705 | return 1; | |
16706 | if (read (fd, data3, pagesize) != pagesize) | |
16707 | return 1; | |
16708 | for (i = 0; i < pagesize; ++i) | |
16709 | if (*(data + i) != *(data3 + i)) | |
16710 | return 1; | |
16711 | close (fd); | |
16712 | return 0; | |
16713 | } | |
16714 | _ACEOF | |
16715 | if ac_fn_c_try_run "$LINENO"; then : | |
16716 | ac_cv_func_mmap_fixed_mapped=yes | |
16717 | else | |
16718 | ac_cv_func_mmap_fixed_mapped=no | |
16719 | fi | |
16720 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16721 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16722 | fi | |
16723 | ||
16724 | fi | |
16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
16726 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
16727 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
16728 | ||
16729 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | |
16730 | ||
16731 | fi | |
16732 | rm -f conftest.mmap | |
16733 | ||
16734 | ||
5d3236ee DK |
16735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
16736 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
16737 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16738 | $as_echo_n "(cached) " >&6 | |
16739 | else | |
16740 | ac_func_search_save_LIBS=$LIBS | |
16741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16742 | /* end confdefs.h. */ | |
16743 | ||
16744 | /* Override any GCC internal prototype to avoid an error. | |
16745 | Use char because int might match the return type of a GCC | |
16746 | builtin and then its argument prototype would still apply. */ | |
16747 | #ifdef __cplusplus | |
16748 | extern "C" | |
16749 | #endif | |
16750 | char dlopen (); | |
16751 | int | |
16752 | main () | |
16753 | { | |
16754 | return dlopen (); | |
16755 | ; | |
16756 | return 0; | |
16757 | } | |
16758 | _ACEOF | |
16759 | for ac_lib in '' dl; do | |
16760 | if test -z "$ac_lib"; then | |
16761 | ac_res="none required" | |
16762 | else | |
16763 | ac_res=-l$ac_lib | |
16764 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16765 | fi | |
16766 | if ac_fn_c_try_link "$LINENO"; then : | |
16767 | ac_cv_search_dlopen=$ac_res | |
16768 | fi | |
16769 | rm -f core conftest.err conftest.$ac_objext \ | |
16770 | conftest$ac_exeext | |
16771 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16772 | break | |
16773 | fi | |
16774 | done | |
16775 | if test "${ac_cv_search_dlopen+set}" = set; then : | |
16776 | ||
16777 | else | |
16778 | ac_cv_search_dlopen=no | |
16779 | fi | |
16780 | rm conftest.$ac_ext | |
16781 | LIBS=$ac_func_search_save_LIBS | |
16782 | fi | |
16783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
16784 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
16785 | ac_res=$ac_cv_search_dlopen | |
16786 | if test "$ac_res" != no; then : | |
16787 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16788 | ||
3917d5d5 DK |
16789 | fi |
16790 | ||
b879806f | 16791 | if test x$plugins = xyes; then |
5d3236ee DK |
16792 | ENABLE_PLUGINS_TRUE= |
16793 | ENABLE_PLUGINS_FALSE='#' | |
16794 | else | |
16795 | ENABLE_PLUGINS_TRUE='#' | |
16796 | ENABLE_PLUGINS_FALSE= | |
16797 | fi | |
16798 | ||
16799 | ||
02ecc8e9 L |
16800 | # Check whether --enable-initfini-array was given. |
16801 | if test "${enable_initfini_array+set}" = set; then : | |
16802 | enableval=$enable_initfini_array; | |
16803 | else | |
16804 | ||
16805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5 | |
16806 | $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; } | |
16807 | if test "${gcc_cv_initfini_array+set}" = set; then : | |
16808 | $as_echo_n "(cached) " >&6 | |
16809 | else | |
16810 | if test "x${build}" = "x${target}" ; then | |
16811 | if test "$cross_compiling" = yes; then : | |
16812 | gcc_cv_initfini_array=no | |
16813 | else | |
16814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16815 | /* end confdefs.h. */ | |
16816 | ||
16817 | static int x = -1; | |
16818 | int main (void) { return x; } | |
16819 | int foo (void) { x = 0; } | |
16820 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
16821 | _ACEOF | |
16822 | if ac_fn_c_try_run "$LINENO"; then : | |
16823 | gcc_cv_initfini_array=yes | |
16824 | else | |
16825 | gcc_cv_initfini_array=no | |
16826 | fi | |
16827 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16828 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16829 | fi | |
16830 | ||
16831 | else | |
16832 | gcc_cv_initfini_array=no | |
16833 | fi | |
16834 | fi | |
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5 | |
16836 | $as_echo "$gcc_cv_initfini_array" >&6; } | |
16837 | enable_initfini_array=$gcc_cv_initfini_array | |
16838 | ||
16839 | fi | |
16840 | ||
16841 | ||
16842 | if test $enable_initfini_array = yes; then | |
16843 | ||
16844 | $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h | |
16845 | ||
16846 | fi | |
16847 | ||
81ecdfbb RW |
16848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
16849 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
16850 | if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then : | |
16851 | $as_echo_n "(cached) " >&6 | |
34875e64 | 16852 | else |
81ecdfbb | 16853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 16854 | /* end confdefs.h. */ |
34875e64 | 16855 | #include <unistd.h> |
42ecbf5e DJ |
16856 | int |
16857 | main () | |
16858 | { | |
34875e64 | 16859 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
16860 | ; |
16861 | return 0; | |
16862 | } | |
16863 | _ACEOF | |
81ecdfbb | 16864 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
16865 | ld_cv_decl_getopt_unistd_h=yes |
16866 | else | |
81ecdfbb | 16867 | ld_cv_decl_getopt_unistd_h=no |
34875e64 | 16868 | fi |
81ecdfbb | 16869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
16870 | fi |
16871 | ||
81ecdfbb RW |
16872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 |
16873 | $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 | 16874 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 16875 | |
81ecdfbb | 16876 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
16877 | |
16878 | fi | |
42ecbf5e | 16879 | |
252b5132 RH |
16880 | |
16881 | case "${host}" in | |
a8100d5b | 16882 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e | 16883 | |
81ecdfbb | 16884 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
252b5132 RH |
16885 | ;; |
16886 | esac | |
16887 | ||
81ecdfbb RW |
16888 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
16889 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
16890 | ac_have_decl=1 | |
252b5132 | 16891 | else |
81ecdfbb RW |
16892 | ac_have_decl=0 |
16893 | fi | |
502bdb00 | 16894 | |
81ecdfbb RW |
16895 | cat >>confdefs.h <<_ACEOF |
16896 | #define HAVE_DECL_STRSTR $ac_have_decl | |
42ecbf5e | 16897 | _ACEOF |
81ecdfbb RW |
16898 | ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" |
16899 | if test "x$ac_cv_have_decl_free" = x""yes; then : | |
16900 | ac_have_decl=1 | |
252b5132 | 16901 | else |
81ecdfbb | 16902 | ac_have_decl=0 |
252b5132 RH |
16903 | fi |
16904 | ||
502bdb00 | 16905 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 16906 | #define HAVE_DECL_FREE $ac_have_decl |
502bdb00 | 16907 | _ACEOF |
81ecdfbb RW |
16908 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" |
16909 | if test "x$ac_cv_have_decl_sbrk" = x""yes; then : | |
16910 | ac_have_decl=1 | |
16911 | else | |
16912 | ac_have_decl=0 | |
16913 | fi | |
42ecbf5e | 16914 | |
81ecdfbb RW |
16915 | cat >>confdefs.h <<_ACEOF |
16916 | #define HAVE_DECL_SBRK $ac_have_decl | |
16917 | _ACEOF | |
16918 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
16919 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : | |
16920 | ac_have_decl=1 | |
16921 | else | |
16922 | ac_have_decl=0 | |
16923 | fi | |
502bdb00 | 16924 | |
81ecdfbb RW |
16925 | cat >>confdefs.h <<_ACEOF |
16926 | #define HAVE_DECL_GETENV $ac_have_decl | |
16927 | _ACEOF | |
16928 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" | |
16929 | if test "x$ac_cv_have_decl_environ" = x""yes; then : | |
16930 | ac_have_decl=1 | |
502bdb00 | 16931 | else |
81ecdfbb RW |
16932 | ac_have_decl=0 |
16933 | fi | |
16934 | ||
16935 | cat >>confdefs.h <<_ACEOF | |
16936 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
42ecbf5e | 16937 | _ACEOF |
252b5132 | 16938 | |
252b5132 | 16939 | |
597e2591 ILT |
16940 | # When converting linker scripts into strings for use in emulation |
16941 | # files, use astring.sed if the compiler supports ANSI string | |
16942 | # concatenation, or ostring.sed otherwise. This is to support the | |
16943 | # broken Microsoft MSVC compiler, which limits the length of string | |
16944 | # constants, while still supporting pre-ANSI compilers which do not | |
16945 | # support string concatenation. | |
81ecdfbb RW |
16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5 |
16947 | $as_echo_n "checking whether ANSI C string concatenation works... " >&6; } | |
16948 | if test "${ld_cv_string_concatenation+set}" = set; then : | |
16949 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 16950 | else |
81ecdfbb | 16951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 16952 | /* end confdefs.h. */ |
81ecdfbb | 16953 | |
314e9a4e L |
16954 | int |
16955 | main () | |
16956 | { | |
81ecdfbb | 16957 | char *a = "a" "a"; |
314e9a4e L |
16958 | ; |
16959 | return 0; | |
16960 | } | |
16961 | _ACEOF | |
81ecdfbb RW |
16962 | if ac_fn_c_try_compile "$LINENO"; then : |
16963 | ld_cv_string_concatenation=yes | |
314e9a4e | 16964 | else |
81ecdfbb | 16965 | ld_cv_string_concatenation=no |
314e9a4e | 16966 | fi |
81ecdfbb | 16967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
314e9a4e | 16968 | fi |
81ecdfbb RW |
16969 | |
16970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5 | |
16971 | $as_echo "$ld_cv_string_concatenation" >&6; } | |
16972 | if test "$ld_cv_string_concatenation" = "yes"; then | |
16973 | STRINGIFY=astring.sed | |
16974 | else | |
16975 | STRINGIFY=ostring.sed | |
314e9a4e | 16976 | fi |
81ecdfbb RW |
16977 | |
16978 | ||
16979 | # target-specific stuff: | |
16980 | ||
16981 | all_targets= | |
16982 | EMUL= | |
16983 | all_emuls= | |
16984 | all_emul_extras= | |
16985 | all_libpath= | |
16986 | ||
16987 | rm -f tdirs | |
16988 | ||
bf9ef603 | 16989 | # If the host is 64-bit, then we enable 64-bit targets by default. |
1110793a | 16990 | # This is consistent with what ../bfd/configure.ac does. |
bf9ef603 RM |
16991 | if test x${want64} = xfalse; then |
16992 | # The cast to long int works around a bug in the HP C Compiler | |
16993 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16994 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16995 | # This bug is HP SR number 8606223364. | |
16996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16997 | $as_echo_n "checking size of void *... " >&6; } | |
16998 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
16999 | $as_echo_n "(cached) " >&6 | |
17000 | else | |
17001 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
17002 | ||
17003 | else | |
17004 | if test "$ac_cv_type_void_p" = yes; then | |
17005 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
17006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17007 | { as_fn_set_status 77 | |
17008 | as_fn_error "cannot compute sizeof (void *) | |
17009 | See \`config.log' for more details." "$LINENO" 5; }; } | |
17010 | else | |
17011 | ac_cv_sizeof_void_p=0 | |
17012 | fi | |
17013 | fi | |
17014 | ||
17015 | fi | |
17016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
17017 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
17018 | ||
17019 | ||
17020 | ||
17021 | cat >>confdefs.h <<_ACEOF | |
17022 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17023 | _ACEOF | |
17024 | ||
17025 | ||
17026 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
17027 | want64=true | |
17028 | fi | |
17029 | fi | |
17030 | ||
c58212ea L |
17031 | elf_list_options=FALSE |
17032 | elf_shlib_list_options=FALSE | |
17033 | elf_plt_unwind_list_options=FALSE | |
81ecdfbb RW |
17034 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
17035 | do | |
17036 | if test "$targ_alias" = "all"; then | |
17037 | all_targets=true | |
82d8e420 L |
17038 | elf_list_options=TRUE |
17039 | elf_shlib_list_options=TRUE | |
17040 | elf_plt_unwind_list_options=TRUE | |
81ecdfbb RW |
17041 | else |
17042 | # Canonicalize the secondary target names. | |
17043 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
17044 | if test -n "$result"; then | |
17045 | targ=$result | |
17046 | else | |
17047 | targ=$targ_alias | |
17048 | fi | |
17049 | ||
17050 | . ${srcdir}/configure.tgt | |
17051 | ||
17052 | if test "$targ" = "$target"; then | |
17053 | EMUL=$targ_emul | |
17054 | fi | |
17055 | ||
17056 | if test x${want64} = xfalse; then | |
17057 | . ${srcdir}/../bfd/config.bfd | |
17058 | fi | |
17059 | ||
17060 | if test x${want64} = xtrue; then | |
17061 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
17062 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
17063 | fi | |
17064 | ||
17065 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do | |
17066 | case " $all_emuls " in | |
8c3fff59 AM |
17067 | *" e${i}.o "*) ;; |
17068 | *) | |
17069 | all_emuls="$all_emuls e${i}.o" | |
17070 | eval result=\$tdir_$i | |
17071 | test -z "$result" && result=$targ_alias | |
17072 | echo tdir_$i=$result >> tdirs | |
c58212ea L |
17073 | case "${i}" in |
17074 | *elf*) | |
17075 | elf_list_options=TRUE | |
68880f31 CLT |
17076 | ;; |
17077 | *) | |
17078 | if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then | |
17079 | elf_list_options=TRUE | |
17080 | fi | |
17081 | ;; | |
17082 | esac | |
17083 | if test "$elf_list_options" = "TRUE"; then | |
c58212ea L |
17084 | . ${srcdir}/emulparams/${i}.sh |
17085 | if test x${GENERATE_SHLIB_SCRIPT} = xyes; then | |
17086 | elf_shlib_list_options=TRUE | |
17087 | fi | |
17088 | if test x${PLT_UNWIND} = xyes; then | |
17089 | elf_plt_unwind_list_options=TRUE | |
17090 | fi | |
68880f31 | 17091 | fi |
c58212ea | 17092 | ;; |
81ecdfbb RW |
17093 | esac |
17094 | done | |
17095 | ||
17096 | for i in $targ_emul $targ_extra_libpath; do | |
17097 | case " $all_libpath " in | |
17098 | *" ${i} "*) ;; | |
17099 | *) | |
17100 | if test -z "$all_libpath"; then | |
17101 | all_libpath=${i} | |
17102 | else | |
17103 | all_libpath="$all_libpath ${i}" | |
17104 | fi | |
17105 | ;; | |
17106 | esac | |
17107 | done | |
17108 | ||
17109 | for i in $targ_extra_ofiles; do | |
17110 | case " $all_emul_extras " in | |
17111 | *" ${i} "*) ;; | |
17112 | *) | |
17113 | all_emul_extras="$all_emul_extras ${i}" | |
17114 | ;; | |
17115 | esac | |
17116 | done | |
5063daf7 | 17117 | |
81ecdfbb RW |
17118 | fi |
17119 | done | |
17120 | ||
17121 | ||
17122 | ||
c58212ea L |
17123 | |
17124 | ||
17125 | ||
81ecdfbb RW |
17126 | TDIRS=tdirs |
17127 | ||
17128 | ||
17129 | if test x${all_targets} = xtrue; then | |
42ecbf5e DJ |
17130 | if test x${want64} = xtrue; then |
17131 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
9d069ac3 | 17132 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)' |
42ecbf5e DJ |
17133 | else |
17134 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
9d069ac3 | 17135 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' |
42ecbf5e | 17136 | fi |
42ecbf5e DJ |
17137 | else |
17138 | EMULATION_OFILES=$all_emuls | |
17139 | EMUL_EXTRA_OFILES=$all_emul_extras | |
17140 | fi | |
17141 | ||
17142 | ||
17143 | ||
17144 | ||
17145 | EMULATION_LIBPATH=$all_libpath | |
17146 | ||
17147 | ||
17148 | if test x${enable_static} = xno; then | |
17149 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" | |
17150 | else | |
17151 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
17152 | fi | |
17153 | ||
17154 | ||
17155 | target_vendor=${target_vendor=$host_vendor} | |
17156 | case "$target_vendor" in | |
17157 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
17158 | *) EXTRA_SHLIB_EXTENSION= ;; | |
17159 | esac | |
17160 | ||
17161 | case "$target_os" in | |
17162 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
17163 | esac | |
17164 | ||
17165 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
17166 | ||
17167 | cat >>confdefs.h <<_ACEOF | |
17168 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
17169 | _ACEOF | |
17170 | ||
17171 | fi | |
17172 | ||
108a6f8e CD |
17173 | |
17174 | ||
17175 | ||
17176 | ||
31dd3154 | 17177 | |
81ecdfbb | 17178 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 17179 | |
42ecbf5e DJ |
17180 | cat >confcache <<\_ACEOF |
17181 | # This file is a shell script that caches the results of configure | |
17182 | # tests run on this system so they can be shared between configure | |
17183 | # scripts and configure runs, see configure's option --config-cache. | |
17184 | # It is not useful on other systems. If it contains results you don't | |
17185 | # want to keep, you may remove or edit it. | |
17186 | # | |
17187 | # config.status only pays attention to the cache file if you give it | |
17188 | # the --recheck option to rerun configure. | |
17189 | # | |
17190 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17191 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17192 | # following values. | |
17193 | ||
17194 | _ACEOF | |
17195 | ||
17196 | # The following way of writing the cache mishandles newlines in values, | |
17197 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 17198 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
17199 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17200 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
17201 | ( |
17202 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17203 | eval ac_val=\$$ac_var | |
17204 | case $ac_val in #( | |
17205 | *${as_nl}*) | |
17206 | case $ac_var in #( | |
17207 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17208 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17209 | esac | |
17210 | case $ac_var in #( | |
17211 | _ | IFS | as_nl) ;; #( | |
17212 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17213 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17214 | esac ;; | |
17215 | esac | |
17216 | done | |
17217 | ||
42ecbf5e | 17218 | (set) 2>&1 | |
81ecdfbb RW |
17219 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17220 | *${as_nl}ac_space=\ *) | |
17221 | # `set' does not quote correctly, so add quotes: double-quote | |
17222 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
17223 | sed -n \ |
17224 | "s/'/'\\\\''/g; | |
17225 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 17226 | ;; #( |
42ecbf5e DJ |
17227 | *) |
17228 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 17229 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 17230 | ;; |
81ecdfbb RW |
17231 | esac | |
17232 | sort | |
17233 | ) | | |
42ecbf5e | 17234 | sed ' |
81ecdfbb | 17235 | /^ac_cv_env_/b end |
42ecbf5e | 17236 | t clear |
81ecdfbb | 17237 | :clear |
42ecbf5e DJ |
17238 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17239 | t end | |
81ecdfbb RW |
17240 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17241 | :end' >>confcache | |
17242 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17243 | if test -w "$cache_file"; then | |
17244 | test "x$cache_file" != "x/dev/null" && | |
17245 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
17246 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
42ecbf5e DJ |
17247 | cat confcache >$cache_file |
17248 | else | |
81ecdfbb RW |
17249 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17250 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
17251 | fi |
17252 | fi | |
17253 | rm -f confcache | |
17254 | ||
17255 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17256 | # Let make expand exec_prefix. | |
17257 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17258 | ||
42ecbf5e DJ |
17259 | DEFS=-DHAVE_CONFIG_H |
17260 | ||
17261 | ac_libobjs= | |
17262 | ac_ltlibobjs= | |
17263 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
17264 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
17265 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17266 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17267 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17268 | # will be set to the directory where LIBOBJS objects are built. | |
17269 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17270 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
17271 | done |
17272 | LIBOBJS=$ac_libobjs | |
17273 | ||
17274 | LTLIBOBJS=$ac_ltlibobjs | |
17275 | ||
17276 | ||
17277 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
17278 | as_fn_error "conditional \"AMDEP\" was never defined. |
17279 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e DJ |
17280 | fi |
17281 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
17282 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
17283 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17284 | fi | |
17285 | if test -n "$EXEEXT"; then | |
17286 | am__EXEEXT_TRUE= | |
17287 | am__EXEEXT_FALSE='#' | |
17288 | else | |
17289 | am__EXEEXT_TRUE='#' | |
17290 | am__EXEEXT_FALSE= | |
42ecbf5e | 17291 | fi |
81ecdfbb | 17292 | |
64ac50ac RW |
17293 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
17294 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
17295 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17296 | fi | |
3cb62297 L |
17297 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
17298 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. | |
17299 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17300 | fi | |
42ecbf5e | 17301 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
17302 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
17303 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e | 17304 | fi |
d5fbea21 | 17305 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
17306 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
17307 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 17308 | fi |
5d3236ee DK |
17309 | if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then |
17310 | as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined. | |
17311 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17312 | fi | |
42ecbf5e DJ |
17313 | |
17314 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 17315 | ac_write_fail=0 |
42ecbf5e DJ |
17316 | ac_clean_files_save=$ac_clean_files |
17317 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
17318 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17319 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17320 | as_write_fail=0 | |
17321 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
17322 | #! $SHELL |
17323 | # Generated by $as_me. | |
17324 | # Run this file to recreate the current configuration. | |
17325 | # Compiler output produced by configure, useful for debugging | |
17326 | # configure, is in config.log if it exists. | |
17327 | ||
17328 | debug=false | |
17329 | ac_cs_recheck=false | |
17330 | ac_cs_silent=false | |
42ecbf5e | 17331 | |
81ecdfbb RW |
17332 | SHELL=\${CONFIG_SHELL-$SHELL} |
17333 | export SHELL | |
17334 | _ASEOF | |
17335 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17336 | ## -------------------- ## | |
17337 | ## M4sh Initialization. ## | |
17338 | ## -------------------- ## | |
42ecbf5e | 17339 | |
81ecdfbb RW |
17340 | # Be more Bourne compatible |
17341 | DUALCASE=1; export DUALCASE # for MKS sh | |
17342 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
17343 | emulate sh |
17344 | NULLCMD=: | |
81ecdfbb | 17345 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
17346 | # is contrary to our usage. Disable this feature. |
17347 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
17348 | setopt NO_GLOB_SUBST |
17349 | else | |
17350 | case `(set -o) 2>/dev/null` in #( | |
17351 | *posix*) : | |
17352 | set -o posix ;; #( | |
17353 | *) : | |
17354 | ;; | |
17355 | esac | |
42ecbf5e | 17356 | fi |
42ecbf5e | 17357 | |
81ecdfbb RW |
17358 | |
17359 | as_nl=' | |
17360 | ' | |
17361 | export as_nl | |
17362 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17363 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17364 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17365 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17366 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17367 | # but without wasting forks for bash or zsh. | |
17368 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17369 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17370 | as_echo='print -r --' | |
17371 | as_echo_n='print -rn --' | |
17372 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17373 | as_echo='printf %s\n' | |
17374 | as_echo_n='printf %s' | |
17375 | else | |
17376 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17377 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17378 | as_echo_n='/usr/ucb/echo -n' | |
17379 | else | |
17380 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17381 | as_echo_n_body='eval | |
17382 | arg=$1; | |
17383 | case $arg in #( | |
17384 | *"$as_nl"*) | |
17385 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17386 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17387 | esac; | |
17388 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17389 | ' | |
17390 | export as_echo_n_body | |
17391 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17392 | fi | |
17393 | export as_echo_body | |
17394 | as_echo='sh -c $as_echo_body as_echo' | |
17395 | fi | |
17396 | ||
17397 | # The user is always right. | |
17398 | if test "${PATH_SEPARATOR+set}" != set; then | |
17399 | PATH_SEPARATOR=: | |
17400 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17401 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17402 | PATH_SEPARATOR=';' | |
17403 | } | |
42ecbf5e DJ |
17404 | fi |
17405 | ||
17406 | ||
81ecdfbb RW |
17407 | # IFS |
17408 | # We need space, tab and new line, in precisely that order. Quoting is | |
17409 | # there to prevent editors from complaining about space-tab. | |
17410 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17411 | # splitting by setting IFS to empty value.) | |
17412 | IFS=" "" $as_nl" | |
17413 | ||
17414 | # Find who we are. Look in the path if we contain no directory separator. | |
17415 | case $0 in #(( | |
17416 | *[\\/]* ) as_myself=$0 ;; | |
17417 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17418 | for as_dir in $PATH | |
17419 | do | |
17420 | IFS=$as_save_IFS | |
17421 | test -z "$as_dir" && as_dir=. | |
17422 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17423 | done | |
17424 | IFS=$as_save_IFS | |
17425 | ||
17426 | ;; | |
17427 | esac | |
17428 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17429 | # in which case we are not to be found in the path. | |
17430 | if test "x$as_myself" = x; then | |
17431 | as_myself=$0 | |
17432 | fi | |
17433 | if test ! -f "$as_myself"; then | |
17434 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17435 | exit 1 | |
17436 | fi | |
17437 | ||
17438 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17439 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17440 | # suppresses any "Segmentation fault" message there. '((' could | |
17441 | # trigger a bug in pdksh 5.2.14. | |
17442 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17443 | do eval test x\${$as_var+set} = xset \ | |
17444 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17445 | done | |
42ecbf5e DJ |
17446 | PS1='$ ' |
17447 | PS2='> ' | |
17448 | PS4='+ ' | |
17449 | ||
17450 | # NLS nuisances. | |
81ecdfbb RW |
17451 | LC_ALL=C |
17452 | export LC_ALL | |
17453 | LANGUAGE=C | |
17454 | export LANGUAGE | |
17455 | ||
17456 | # CDPATH. | |
17457 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17458 | ||
17459 | ||
17460 | # as_fn_error ERROR [LINENO LOG_FD] | |
17461 | # --------------------------------- | |
17462 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
17463 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
17464 | # script with status $?, using 1 if that was 0. | |
17465 | as_fn_error () | |
17466 | { | |
17467 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
17468 | if test "$3"; then | |
17469 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17470 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
42ecbf5e | 17471 | fi |
81ecdfbb RW |
17472 | $as_echo "$as_me: error: $1" >&2 |
17473 | as_fn_exit $as_status | |
17474 | } # as_fn_error | |
17475 | ||
17476 | ||
17477 | # as_fn_set_status STATUS | |
17478 | # ----------------------- | |
17479 | # Set $? to STATUS, without forking. | |
17480 | as_fn_set_status () | |
17481 | { | |
17482 | return $1 | |
17483 | } # as_fn_set_status | |
17484 | ||
17485 | # as_fn_exit STATUS | |
17486 | # ----------------- | |
17487 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17488 | as_fn_exit () | |
17489 | { | |
17490 | set +e | |
17491 | as_fn_set_status $1 | |
17492 | exit $1 | |
17493 | } # as_fn_exit | |
17494 | ||
17495 | # as_fn_unset VAR | |
17496 | # --------------- | |
17497 | # Portably unset VAR. | |
17498 | as_fn_unset () | |
17499 | { | |
17500 | { eval $1=; unset $1;} | |
17501 | } | |
17502 | as_unset=as_fn_unset | |
17503 | # as_fn_append VAR VALUE | |
17504 | # ---------------------- | |
17505 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17506 | # advantage of any shell optimizations that allow amortized linear growth over | |
17507 | # repeated appends, instead of the typical quadratic growth present in naive | |
17508 | # implementations. | |
17509 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17510 | eval 'as_fn_append () | |
17511 | { | |
17512 | eval $1+=\$2 | |
17513 | }' | |
17514 | else | |
17515 | as_fn_append () | |
17516 | { | |
17517 | eval $1=\$$1\$2 | |
17518 | } | |
17519 | fi # as_fn_append | |
17520 | ||
17521 | # as_fn_arith ARG... | |
17522 | # ------------------ | |
17523 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17524 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17525 | # must be portable across $(()) and expr. | |
17526 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17527 | eval 'as_fn_arith () | |
17528 | { | |
17529 | as_val=$(( $* )) | |
17530 | }' | |
17531 | else | |
17532 | as_fn_arith () | |
17533 | { | |
17534 | as_val=`expr "$@" || test $? -eq 1` | |
17535 | } | |
17536 | fi # as_fn_arith | |
17537 | ||
42ecbf5e | 17538 | |
81ecdfbb RW |
17539 | if expr a : '\(a\)' >/dev/null 2>&1 && |
17540 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
17541 | as_expr=expr |
17542 | else | |
17543 | as_expr=false | |
17544 | fi | |
17545 | ||
81ecdfbb | 17546 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
17547 | as_basename=basename |
17548 | else | |
17549 | as_basename=false | |
17550 | fi | |
17551 | ||
81ecdfbb RW |
17552 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
17553 | as_dirname=dirname | |
17554 | else | |
17555 | as_dirname=false | |
17556 | fi | |
42ecbf5e | 17557 | |
81ecdfbb | 17558 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
17559 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
17560 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
17561 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
17562 | $as_echo X/"$0" | | |
17563 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17564 | s//\1/ | |
17565 | q | |
17566 | } | |
17567 | /^X\/\(\/\/\)$/{ | |
17568 | s//\1/ | |
17569 | q | |
17570 | } | |
17571 | /^X\/\(\/\).*/{ | |
17572 | s//\1/ | |
17573 | q | |
17574 | } | |
17575 | s/.*/./; q'` | |
42ecbf5e | 17576 | |
42ecbf5e DJ |
17577 | # Avoid depending upon Character Ranges. |
17578 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17579 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17580 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17581 | as_cr_digits='0123456789' | |
17582 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17583 | ||
81ecdfbb RW |
17584 | ECHO_C= ECHO_N= ECHO_T= |
17585 | case `echo -n x` in #((((( | |
17586 | -n*) | |
17587 | case `echo 'xy\c'` in | |
17588 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17589 | xy) ECHO_C='\c';; | |
17590 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17591 | ECHO_T=' ';; | |
17592 | esac;; | |
17593 | *) | |
17594 | ECHO_N='-n';; | |
42ecbf5e | 17595 | esac |
252b5132 | 17596 | |
81ecdfbb RW |
17597 | rm -f conf$$ conf$$.exe conf$$.file |
17598 | if test -d conf$$.dir; then | |
17599 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 17600 | else |
81ecdfbb RW |
17601 | rm -f conf$$.dir |
17602 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 17603 | fi |
81ecdfbb RW |
17604 | if (echo >conf$$.file) 2>/dev/null; then |
17605 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 17606 | as_ln_s='ln -s' |
81ecdfbb RW |
17607 | # ... but there are two gotchas: |
17608 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17609 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
17610 | # In both cases, we have to default to `cp -p'. | |
17611 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
17612 | as_ln_s='cp -p' | |
17613 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
17614 | as_ln_s=ln | |
17615 | else | |
17616 | as_ln_s='cp -p' | |
252b5132 | 17617 | fi |
e5a52504 | 17618 | else |
42ecbf5e | 17619 | as_ln_s='cp -p' |
e5a52504 | 17620 | fi |
81ecdfbb RW |
17621 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
17622 | rmdir conf$$.dir 2>/dev/null | |
17623 | ||
17624 | ||
17625 | # as_fn_mkdir_p | |
17626 | # ------------- | |
17627 | # Create "$as_dir" as a directory, including parents if necessary. | |
17628 | as_fn_mkdir_p () | |
17629 | { | |
17630 | ||
17631 | case $as_dir in #( | |
17632 | -*) as_dir=./$as_dir;; | |
17633 | esac | |
17634 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17635 | as_dirs= | |
17636 | while :; do | |
17637 | case $as_dir in #( | |
17638 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17639 | *) as_qdir=$as_dir;; | |
17640 | esac | |
17641 | as_dirs="'$as_qdir' $as_dirs" | |
17642 | as_dir=`$as_dirname -- "$as_dir" || | |
17643 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17644 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17645 | X"$as_dir" : 'X\(//\)$' \| \ | |
17646 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17647 | $as_echo X"$as_dir" | | |
17648 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17649 | s//\1/ | |
17650 | q | |
17651 | } | |
17652 | /^X\(\/\/\)[^/].*/{ | |
17653 | s//\1/ | |
17654 | q | |
17655 | } | |
17656 | /^X\(\/\/\)$/{ | |
17657 | s//\1/ | |
17658 | q | |
17659 | } | |
17660 | /^X\(\/\).*/{ | |
17661 | s//\1/ | |
17662 | q | |
17663 | } | |
17664 | s/.*/./; q'` | |
17665 | test -d "$as_dir" && break | |
17666 | done | |
17667 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
17668 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
17669 | ||
252b5132 | 17670 | |
81ecdfbb | 17671 | } # as_fn_mkdir_p |
42ecbf5e | 17672 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 17673 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
17674 | else |
17675 | test -d ./-p && rmdir ./-p | |
17676 | as_mkdir_p=false | |
17677 | fi | |
252b5132 | 17678 | |
81ecdfbb RW |
17679 | if test -x / >/dev/null 2>&1; then |
17680 | as_test_x='test -x' | |
17681 | else | |
17682 | if ls -dL / >/dev/null 2>&1; then | |
17683 | as_ls_L_option=L | |
17684 | else | |
17685 | as_ls_L_option= | |
17686 | fi | |
17687 | as_test_x=' | |
17688 | eval sh -c '\'' | |
17689 | if test -d "$1"; then | |
17690 | test -d "$1/."; | |
17691 | else | |
17692 | case $1 in #( | |
17693 | -*)set "./$1";; | |
17694 | esac; | |
17695 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
17696 | ???[sx]*):;;*)false;;esac;fi | |
17697 | '\'' sh | |
17698 | ' | |
17699 | fi | |
17700 | as_executable_p=$as_test_x | |
252b5132 | 17701 | |
42ecbf5e DJ |
17702 | # Sed expression to map a string onto a valid CPP name. |
17703 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 17704 | |
42ecbf5e DJ |
17705 | # Sed expression to map a string onto a valid variable name. |
17706 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 17707 | |
e5a52504 | 17708 | |
42ecbf5e | 17709 | exec 6>&1 |
81ecdfbb RW |
17710 | ## ----------------------------------- ## |
17711 | ## Main body of $CONFIG_STATUS script. ## | |
17712 | ## ----------------------------------- ## | |
17713 | _ASEOF | |
17714 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
e5a52504 | 17715 | |
81ecdfbb RW |
17716 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17717 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 17718 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
17719 | # values after options handling. |
17720 | ac_log=" | |
91dc4e0a | 17721 | This file was extended by ld $as_me 2.25.51, which was |
81ecdfbb | 17722 | generated by GNU Autoconf 2.64. Invocation command line was |
42ecbf5e DJ |
17723 | |
17724 | CONFIG_FILES = $CONFIG_FILES | |
17725 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17726 | CONFIG_LINKS = $CONFIG_LINKS | |
17727 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17728 | $ $0 $@ | |
e5a52504 | 17729 | |
81ecdfbb RW |
17730 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17731 | " | |
17732 | ||
42ecbf5e DJ |
17733 | _ACEOF |
17734 | ||
81ecdfbb RW |
17735 | case $ac_config_files in *" |
17736 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17737 | esac | |
e5a52504 | 17738 | |
81ecdfbb RW |
17739 | case $ac_config_headers in *" |
17740 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17741 | esac | |
42ecbf5e | 17742 | |
42ecbf5e | 17743 | |
81ecdfbb RW |
17744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17745 | # Files that config.status was made for. | |
17746 | config_files="$ac_config_files" | |
17747 | config_headers="$ac_config_headers" | |
17748 | config_commands="$ac_config_commands" | |
42ecbf5e | 17749 | |
81ecdfbb | 17750 | _ACEOF |
42ecbf5e | 17751 | |
81ecdfbb | 17752 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 17753 | ac_cs_usage="\ |
81ecdfbb RW |
17754 | \`$as_me' instantiates files and other configuration actions |
17755 | from templates according to the current configuration. Unless the files | |
17756 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 17757 | |
81ecdfbb | 17758 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
17759 | |
17760 | -h, --help print this help, then exit | |
81ecdfbb RW |
17761 | -V, --version print version number and configuration settings, then exit |
17762 | -q, --quiet, --silent | |
17763 | do not print progress messages | |
42ecbf5e DJ |
17764 | -d, --debug don't remove temporary files |
17765 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
17766 | --file=FILE[:TEMPLATE] |
17767 | instantiate the configuration file FILE | |
17768 | --header=FILE[:TEMPLATE] | |
17769 | instantiate the configuration header FILE | |
42ecbf5e DJ |
17770 | |
17771 | Configuration files: | |
17772 | $config_files | |
17773 | ||
17774 | Configuration headers: | |
17775 | $config_headers | |
17776 | ||
17777 | Configuration commands: | |
17778 | $config_commands | |
17779 | ||
81ecdfbb | 17780 | Report bugs to the package provider." |
42ecbf5e | 17781 | |
81ecdfbb RW |
17782 | _ACEOF |
17783 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
42ecbf5e | 17784 | ac_cs_version="\\ |
91dc4e0a | 17785 | ld config.status 2.25.51 |
81ecdfbb RW |
17786 | configured by $0, generated by GNU Autoconf 2.64, |
17787 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
42ecbf5e | 17788 | |
81ecdfbb | 17789 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
17790 | This config.status script is free software; the Free Software Foundation |
17791 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
17792 | |
17793 | ac_pwd='$ac_pwd' | |
17794 | srcdir='$srcdir' | |
17795 | INSTALL='$INSTALL' | |
17796 | MKDIR_P='$MKDIR_P' | |
17797 | AWK='$AWK' | |
17798 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
17799 | _ACEOF |
17800 | ||
81ecdfbb RW |
17801 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17802 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
17803 | ac_need_defaults=: |
17804 | while test $# != 0 | |
17805 | do | |
17806 | case $1 in | |
17807 | --*=*) | |
81ecdfbb RW |
17808 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17809 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e | 17810 | ac_shift=: |
252b5132 | 17811 | ;; |
81ecdfbb | 17812 | *) |
42ecbf5e DJ |
17813 | ac_option=$1 |
17814 | ac_optarg=$2 | |
17815 | ac_shift=shift | |
252b5132 | 17816 | ;; |
42ecbf5e | 17817 | esac |
252b5132 | 17818 | |
42ecbf5e DJ |
17819 | case $ac_option in |
17820 | # Handling of the options. | |
42ecbf5e DJ |
17821 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17822 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
17823 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17824 | $as_echo "$ac_cs_version"; exit ;; | |
17825 | --debug | --debu | --deb | --de | --d | -d ) | |
42ecbf5e DJ |
17826 | debug=: ;; |
17827 | --file | --fil | --fi | --f ) | |
17828 | $ac_shift | |
81ecdfbb RW |
17829 | case $ac_optarg in |
17830 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17831 | esac | |
17832 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
17833 | ac_need_defaults=false;; |
17834 | --header | --heade | --head | --hea ) | |
17835 | $ac_shift | |
81ecdfbb RW |
17836 | case $ac_optarg in |
17837 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17838 | esac | |
17839 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 17840 | ac_need_defaults=false;; |
81ecdfbb RW |
17841 | --he | --h) |
17842 | # Conflict between --help and --header | |
17843 | as_fn_error "ambiguous option: \`$1' | |
17844 | Try \`$0 --help' for more information.";; | |
17845 | --help | --hel | -h ) | |
17846 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
17847 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17848 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17849 | ac_cs_silent=: ;; | |
252b5132 | 17850 | |
42ecbf5e | 17851 | # This is an error. |
81ecdfbb RW |
17852 | -*) as_fn_error "unrecognized option: \`$1' |
17853 | Try \`$0 --help' for more information." ;; | |
252b5132 | 17854 | |
81ecdfbb RW |
17855 | *) as_fn_append ac_config_targets " $1" |
17856 | ac_need_defaults=false ;; | |
252b5132 | 17857 | |
42ecbf5e DJ |
17858 | esac |
17859 | shift | |
17860 | done | |
d15b04bd | 17861 | |
42ecbf5e | 17862 | ac_configure_extra_args= |
e5a52504 | 17863 | |
42ecbf5e DJ |
17864 | if $ac_cs_silent; then |
17865 | exec 6>/dev/null | |
17866 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17867 | fi | |
e5a52504 | 17868 | |
42ecbf5e | 17869 | _ACEOF |
81ecdfbb | 17870 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 17871 | if \$ac_cs_recheck; then |
81ecdfbb RW |
17872 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
17873 | shift | |
17874 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17875 | CONFIG_SHELL='$SHELL' | |
17876 | export CONFIG_SHELL | |
17877 | exec "\$@" | |
42ecbf5e DJ |
17878 | fi |
17879 | ||
17880 | _ACEOF | |
81ecdfbb RW |
17881 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17882 | exec 5>>config.log | |
17883 | { | |
17884 | echo | |
17885 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17886 | ## Running $as_me. ## | |
17887 | _ASBOX | |
17888 | $as_echo "$ac_log" | |
17889 | } >&5 | |
42ecbf5e | 17890 | |
81ecdfbb RW |
17891 | _ACEOF |
17892 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 17893 | # |
81ecdfbb | 17894 | # INIT-COMMANDS |
252b5132 | 17895 | # |
42ecbf5e | 17896 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
17897 | |
17898 | ||
17899 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17900 | # if CDPATH is set. | |
17901 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17902 | ||
17903 | sed_quote_subst='$sed_quote_subst' | |
17904 | double_quote_subst='$double_quote_subst' | |
17905 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
17906 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
17907 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
17908 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
17909 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
17910 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
17911 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
17912 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
17913 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
17914 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
17915 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
17916 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
17917 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
17918 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
17919 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
17920 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
17921 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
17922 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
17923 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
17924 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
17925 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
17926 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
17927 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
17928 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
17929 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
17930 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
17931 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
17932 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
17933 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
17934 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
17935 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
17936 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
17937 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
17938 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
17939 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
17940 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
17941 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
17942 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
17943 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17944 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17945 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17946 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
17947 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
17948 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
17949 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
17950 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
17951 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
17952 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
17953 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
17954 | 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"`' | |
17955 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
17956 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
17957 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
17958 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
17959 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
17960 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
17961 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17962 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
17963 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
17964 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17965 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17966 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17967 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17968 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17969 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17970 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17971 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17972 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17973 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17974 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17975 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17976 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17977 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17978 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17979 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17980 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17981 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17982 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17983 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17984 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17985 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17986 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
17987 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
17988 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17989 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17990 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17991 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17992 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17993 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17994 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
17995 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
17996 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
17997 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17998 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17999 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18000 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18001 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18002 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18003 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18004 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18005 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18006 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18007 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18008 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18009 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18010 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18011 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18012 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18013 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18014 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18015 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18016 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18017 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18018 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18019 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18020 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18021 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18022 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18023 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18024 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18025 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
3cb62297 L |
18026 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
18027 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18028 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18029 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18030 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18031 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18032 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
18033 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18034 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18035 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18036 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
18037 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
18038 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18039 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
18040 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
18041 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
18042 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
18043 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
18044 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
18045 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18046 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18047 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
18048 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18049 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18050 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18051 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18052 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18053 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18054 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18055 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18056 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18057 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18058 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18059 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
18060 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
18061 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
18062 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
18063 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
18064 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
18065 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
18066 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
18067 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18068 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
18069 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18070 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18071 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18072 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18073 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18074 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
18075 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
18076 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18077 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18078 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18079 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18080 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
18081 | |
18082 | LTCC='$LTCC' | |
18083 | LTCFLAGS='$LTCFLAGS' | |
18084 | compiler='$compiler_DEFAULT' | |
18085 | ||
3725885a RW |
18086 | # A function that is used when there is no print builtin or printf. |
18087 | func_fallback_echo () | |
18088 | { | |
18089 | eval 'cat <<_LTECHO_EOF | |
18090 | \$1 | |
18091 | _LTECHO_EOF' | |
18092 | } | |
18093 | ||
d7040cdb | 18094 | # Quote evaled strings. |
3725885a RW |
18095 | for var in SHELL \ |
18096 | ECHO \ | |
18097 | SED \ | |
d7040cdb SE |
18098 | GREP \ |
18099 | EGREP \ | |
18100 | FGREP \ | |
18101 | LD \ | |
18102 | NM \ | |
18103 | LN_S \ | |
18104 | lt_SP2NL \ | |
18105 | lt_NL2SP \ | |
18106 | reload_flag \ | |
b214d478 | 18107 | OBJDUMP \ |
d7040cdb SE |
18108 | deplibs_check_method \ |
18109 | file_magic_cmd \ | |
18110 | AR \ | |
18111 | AR_FLAGS \ | |
18112 | STRIP \ | |
18113 | RANLIB \ | |
18114 | CC \ | |
18115 | CFLAGS \ | |
18116 | compiler \ | |
18117 | lt_cv_sys_global_symbol_pipe \ | |
18118 | lt_cv_sys_global_symbol_to_cdecl \ | |
18119 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 18120 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
18121 | lt_prog_compiler_no_builtin_flag \ |
18122 | lt_prog_compiler_wl \ | |
18123 | lt_prog_compiler_pic \ | |
18124 | lt_prog_compiler_static \ | |
18125 | lt_cv_prog_compiler_c_o \ | |
18126 | need_locks \ | |
b214d478 SE |
18127 | DSYMUTIL \ |
18128 | NMEDIT \ | |
18129 | LIPO \ | |
18130 | OTOOL \ | |
18131 | OTOOL64 \ | |
d7040cdb SE |
18132 | shrext_cmds \ |
18133 | export_dynamic_flag_spec \ | |
18134 | whole_archive_flag_spec \ | |
18135 | compiler_needs_object \ | |
18136 | with_gnu_ld \ | |
18137 | allow_undefined_flag \ | |
18138 | no_undefined_flag \ | |
18139 | hardcode_libdir_flag_spec \ | |
18140 | hardcode_libdir_flag_spec_ld \ | |
18141 | hardcode_libdir_separator \ | |
18142 | fix_srcfile_path \ | |
18143 | exclude_expsyms \ | |
18144 | include_expsyms \ | |
18145 | file_list_spec \ | |
18146 | variables_saved_for_relink \ | |
18147 | libname_spec \ | |
18148 | library_names_spec \ | |
18149 | soname_spec \ | |
3725885a | 18150 | install_override_mode \ |
d7040cdb SE |
18151 | finish_eval \ |
18152 | old_striplib \ | |
3cb62297 L |
18153 | striplib \ |
18154 | compiler_lib_search_dirs \ | |
18155 | predep_objects \ | |
18156 | postdep_objects \ | |
18157 | predeps \ | |
18158 | postdeps \ | |
18159 | compiler_lib_search_path \ | |
18160 | LD_CXX \ | |
18161 | reload_flag_CXX \ | |
18162 | compiler_CXX \ | |
18163 | lt_prog_compiler_no_builtin_flag_CXX \ | |
18164 | lt_prog_compiler_wl_CXX \ | |
18165 | lt_prog_compiler_pic_CXX \ | |
18166 | lt_prog_compiler_static_CXX \ | |
18167 | lt_cv_prog_compiler_c_o_CXX \ | |
18168 | export_dynamic_flag_spec_CXX \ | |
18169 | whole_archive_flag_spec_CXX \ | |
18170 | compiler_needs_object_CXX \ | |
18171 | with_gnu_ld_CXX \ | |
18172 | allow_undefined_flag_CXX \ | |
18173 | no_undefined_flag_CXX \ | |
18174 | hardcode_libdir_flag_spec_CXX \ | |
18175 | hardcode_libdir_flag_spec_ld_CXX \ | |
18176 | hardcode_libdir_separator_CXX \ | |
18177 | fix_srcfile_path_CXX \ | |
18178 | exclude_expsyms_CXX \ | |
18179 | include_expsyms_CXX \ | |
18180 | file_list_spec_CXX \ | |
18181 | compiler_lib_search_dirs_CXX \ | |
18182 | predep_objects_CXX \ | |
18183 | postdep_objects_CXX \ | |
18184 | predeps_CXX \ | |
18185 | postdeps_CXX \ | |
18186 | compiler_lib_search_path_CXX; do | |
3725885a | 18187 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18188 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18189 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18190 | ;; |
18191 | *) | |
18192 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18193 | ;; | |
18194 | esac | |
18195 | done | |
18196 | ||
18197 | # Double-quote double-evaled strings. | |
18198 | for var in reload_cmds \ | |
18199 | old_postinstall_cmds \ | |
18200 | old_postuninstall_cmds \ | |
18201 | old_archive_cmds \ | |
18202 | extract_expsyms_cmds \ | |
18203 | old_archive_from_new_cmds \ | |
18204 | old_archive_from_expsyms_cmds \ | |
18205 | archive_cmds \ | |
18206 | archive_expsym_cmds \ | |
18207 | module_cmds \ | |
18208 | module_expsym_cmds \ | |
18209 | export_symbols_cmds \ | |
18210 | prelink_cmds \ | |
18211 | postinstall_cmds \ | |
18212 | postuninstall_cmds \ | |
18213 | finish_cmds \ | |
18214 | sys_lib_search_path_spec \ | |
3cb62297 L |
18215 | sys_lib_dlsearch_path_spec \ |
18216 | reload_cmds_CXX \ | |
18217 | old_archive_cmds_CXX \ | |
18218 | old_archive_from_new_cmds_CXX \ | |
18219 | old_archive_from_expsyms_cmds_CXX \ | |
18220 | archive_cmds_CXX \ | |
18221 | archive_expsym_cmds_CXX \ | |
18222 | module_cmds_CXX \ | |
18223 | module_expsym_cmds_CXX \ | |
18224 | export_symbols_cmds_CXX \ | |
18225 | prelink_cmds_CXX; do | |
3725885a | 18226 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 18227 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 18228 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
18229 | ;; |
18230 | *) | |
18231 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18232 | ;; | |
18233 | esac | |
18234 | done | |
18235 | ||
d7040cdb SE |
18236 | ac_aux_dir='$ac_aux_dir' |
18237 | xsi_shell='$xsi_shell' | |
18238 | lt_shell_append='$lt_shell_append' | |
18239 | ||
18240 | # See if we are running on zsh, and set the options which allow our | |
18241 | # commands through without removal of \ escapes INIT. | |
18242 | if test -n "\${ZSH_VERSION+set}" ; then | |
18243 | setopt NO_GLOB_SUBST | |
18244 | fi | |
18245 | ||
18246 | ||
18247 | PACKAGE='$PACKAGE' | |
18248 | VERSION='$VERSION' | |
18249 | TIMESTAMP='$TIMESTAMP' | |
18250 | RM='$RM' | |
18251 | ofile='$ofile' | |
18252 | ||
18253 | ||
18254 | ||
3cb62297 L |
18255 | |
18256 | ||
20e95c23 DJ |
18257 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
18258 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
18259 | # from automake. | |
18260 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
18261 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
18262 | LINGUAS="${LINGUAS-%UNSET%}" | |
18263 | ||
42ecbf5e DJ |
18264 | |
18265 | _ACEOF | |
18266 | ||
81ecdfbb | 18267 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 18268 | |
81ecdfbb | 18269 | # Handling of arguments. |
42ecbf5e | 18270 | for ac_config_target in $ac_config_targets |
252b5132 | 18271 | do |
81ecdfbb RW |
18272 | case $ac_config_target in |
18273 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
81ecdfbb | 18274 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
b879806f | 18275 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
81ecdfbb RW |
18276 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
18277 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18278 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
18279 | ||
18280 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 RH |
18281 | esac |
18282 | done | |
18283 | ||
81ecdfbb | 18284 | |
42ecbf5e DJ |
18285 | # If the user did not use the arguments to specify the items to instantiate, |
18286 | # then the envvar interface is used. Set only those that are not. | |
18287 | # We use the long form for the default assignment because of an extremely | |
18288 | # bizarre bug on SunOS 4.1.3. | |
18289 | if $ac_need_defaults; then | |
18290 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18291 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
18292 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
18293 | fi | |
18294 | ||
18295 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 18296 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 18297 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
18298 | # Hook for its removal unless debugging. |
18299 | # Note that there is a small window in which the directory will not be cleaned: | |
18300 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
18301 | $debug || |
18302 | { | |
81ecdfbb RW |
18303 | tmp= |
18304 | trap 'exit_status=$? | |
18305 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18306 | ' 0 | |
18307 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 18308 | } |
42ecbf5e | 18309 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 18310 | |
42ecbf5e | 18311 | { |
81ecdfbb | 18312 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
42ecbf5e DJ |
18313 | test -n "$tmp" && test -d "$tmp" |
18314 | } || | |
18315 | { | |
81ecdfbb RW |
18316 | tmp=./conf$$-$RANDOM |
18317 | (umask 077 && mkdir "$tmp") | |
18318 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
18319 | ||
18320 | # Set up the scripts for CONFIG_FILES section. | |
18321 | # No need to generate them if there are no CONFIG_FILES. | |
18322 | # This happens for instance with `./config.status config.h'. | |
18323 | if test -n "$CONFIG_FILES"; then | |
18324 | ||
18325 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
18326 | ac_cs_awk_getline=: | |
18327 | ac_cs_awk_pipe_init= | |
18328 | ac_cs_awk_read_file=' | |
18329 | while ((getline aline < (F[key])) > 0) | |
18330 | print(aline) | |
18331 | close(F[key])' | |
18332 | ac_cs_awk_pipe_fini= | |
18333 | else | |
18334 | ac_cs_awk_getline=false | |
18335 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
18336 | ac_cs_awk_read_file=' | |
18337 | print "|#_!!_#|" | |
18338 | print "cat " F[key] " &&" | |
18339 | '$ac_cs_awk_pipe_init | |
18340 | # The final `:' finishes the AND list. | |
18341 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
18342 | fi | |
18343 | ac_cr=`echo X | tr X '\015'` | |
18344 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18345 | # But we know of no other shell where ac_cr would be empty at this | |
18346 | # point, so we can use a bashism as a fallback. | |
18347 | if test "x$ac_cr" = x; then | |
18348 | eval ac_cr=\$\'\\r\' | |
18349 | fi | |
18350 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18351 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18352 | ac_cs_awk_cr='\r' | |
18353 | else | |
18354 | ac_cs_awk_cr=$ac_cr | |
18355 | fi | |
18356 | ||
18357 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
18358 | _ACEOF | |
18359 | ||
18360 | # Create commands to substitute file output variables. | |
42ecbf5e | 18361 | { |
81ecdfbb RW |
18362 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
18363 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
18364 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
18365 | echo "_ACAWK" && | |
18366 | echo "_ACEOF" | |
18367 | } >conf$$files.sh && | |
18368 | . ./conf$$files.sh || | |
18369 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18370 | rm -f conf$$files.sh | |
e5a52504 | 18371 | |
81ecdfbb RW |
18372 | { |
18373 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18374 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18375 | echo "_ACEOF" | |
18376 | } >conf$$subs.sh || | |
18377 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18378 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
18379 | ac_delim='%!_!# ' | |
18380 | for ac_last_try in false false false false false :; do | |
18381 | . ./conf$$subs.sh || | |
18382 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18383 | ||
18384 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18385 | if test $ac_delim_n = $ac_delim_num; then | |
18386 | break | |
18387 | elif $ac_last_try; then | |
18388 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18389 | else | |
18390 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18391 | fi | |
18392 | done | |
18393 | rm -f conf$$subs.sh | |
18394 | ||
18395 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18396 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18397 | _ACEOF | |
18398 | sed -n ' | |
18399 | h | |
18400 | s/^/S["/; s/!.*/"]=/ | |
18401 | p | |
18402 | g | |
18403 | s/^[^!]*!// | |
18404 | :repl | |
18405 | t repl | |
18406 | s/'"$ac_delim"'$// | |
18407 | t delim | |
18408 | :nl | |
18409 | h | |
18410 | s/\(.\{148\}\).*/\1/ | |
18411 | t more1 | |
18412 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18413 | p | |
18414 | n | |
18415 | b repl | |
18416 | :more1 | |
18417 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18418 | p | |
18419 | g | |
18420 | s/.\{148\}// | |
18421 | t nl | |
18422 | :delim | |
18423 | h | |
18424 | s/\(.\{148\}\).*/\1/ | |
18425 | t more2 | |
18426 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18427 | p | |
18428 | b | |
18429 | :more2 | |
18430 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18431 | p | |
18432 | g | |
18433 | s/.\{148\}// | |
18434 | t delim | |
18435 | ' <conf$$subs.awk | sed ' | |
18436 | /^[^""]/{ | |
18437 | N | |
18438 | s/\n// | |
18439 | } | |
18440 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18441 | rm -f conf$$subs.awk | |
18442 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18443 | _ACAWK | |
18444 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18445 | for (key in S) S_is_set[key] = 1 | |
18446 | FS = "\a" | |
18447 | \$ac_cs_awk_pipe_init | |
18448 | } | |
18449 | { | |
18450 | line = $ 0 | |
18451 | nfields = split(line, field, "@") | |
18452 | substed = 0 | |
18453 | len = length(field[1]) | |
18454 | for (i = 2; i < nfields; i++) { | |
18455 | key = field[i] | |
18456 | keylen = length(key) | |
18457 | if (S_is_set[key]) { | |
18458 | value = S[key] | |
18459 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18460 | len += length(value) + length(field[++i]) | |
18461 | substed = 1 | |
18462 | } else | |
18463 | len += 1 + keylen | |
18464 | } | |
18465 | if (nfields == 3 && !substed) { | |
18466 | key = field[2] | |
18467 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
18468 | \$ac_cs_awk_read_file | |
18469 | next | |
18470 | } | |
18471 | } | |
18472 | print line | |
18473 | } | |
18474 | \$ac_cs_awk_pipe_fini | |
18475 | _ACAWK | |
18476 | _ACEOF | |
18477 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18478 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18479 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18480 | else | |
18481 | cat | |
18482 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18483 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e | 18484 | _ACEOF |
d15b04bd | 18485 | |
81ecdfbb RW |
18486 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18487 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18488 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18489 | # (actually we leave an empty line to preserve line numbers). | |
18490 | if test "x$srcdir" = x.; then | |
18491 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18492 | s/:*\$(srcdir):*/:/ | |
18493 | s/:*\${srcdir}:*/:/ | |
18494 | s/:*@srcdir@:*/:/ | |
18495 | s/^\([^=]*=[ ]*\):*/\1/ | |
18496 | s/:*$// | |
18497 | s/^[^=]*=[ ]*$// | |
18498 | }' | |
18499 | fi | |
18500 | ||
18501 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18502 | fi # test -n "$CONFIG_FILES" | |
42ecbf5e | 18503 | |
81ecdfbb RW |
18504 | # Set up the scripts for CONFIG_HEADERS section. |
18505 | # No need to generate them if there are no CONFIG_HEADERS. | |
18506 | # This happens for instance with `./config.status Makefile'. | |
18507 | if test -n "$CONFIG_HEADERS"; then | |
18508 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18509 | BEGIN { | |
18510 | _ACEOF | |
42ecbf5e | 18511 | |
81ecdfbb RW |
18512 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
18513 | # here-document in config.status, that substitutes the proper values into | |
18514 | # config.h.in to produce config.h. | |
252b5132 | 18515 | |
81ecdfbb RW |
18516 | # Create a delimiter string that does not exist in confdefs.h, to ease |
18517 | # handling of long lines. | |
18518 | ac_delim='%!_!# ' | |
18519 | for ac_last_try in false false :; do | |
18520 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18521 | if test -z "$ac_t"; then | |
18522 | break | |
18523 | elif $ac_last_try; then | |
18524 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
18525 | else | |
18526 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18527 | fi | |
18528 | done | |
18529 | ||
18530 | # For the awk script, D is an array of macro values keyed by name, | |
18531 | # likewise P contains macro parameters if any. Preserve backslash | |
18532 | # newline sequences. | |
18533 | ||
18534 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18535 | sed -n ' | |
18536 | s/.\{148\}/&'"$ac_delim"'/g | |
18537 | t rset | |
18538 | :rset | |
18539 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18540 | t def | |
18541 | d | |
18542 | :def | |
18543 | s/\\$// | |
18544 | t bsnl | |
18545 | s/["\\]/\\&/g | |
18546 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18547 | D["\1"]=" \3"/p | |
18548 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18549 | d | |
18550 | :bsnl | |
18551 | s/["\\]/\\&/g | |
18552 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18553 | D["\1"]=" \3\\\\\\n"\\/p | |
18554 | t cont | |
18555 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18556 | t cont | |
18557 | d | |
18558 | :cont | |
18559 | n | |
18560 | s/.\{148\}/&'"$ac_delim"'/g | |
18561 | t clear | |
18562 | :clear | |
18563 | s/\\$// | |
18564 | t bsnlc | |
18565 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18566 | d | |
18567 | :bsnlc | |
18568 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18569 | b cont | |
18570 | ' <confdefs.h | sed ' | |
18571 | s/'"$ac_delim"'/"\\\ | |
18572 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18573 | ||
18574 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18575 | for (key in D) D_is_set[key] = 1 | |
18576 | FS = "\a" | |
18577 | } | |
18578 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18579 | line = \$ 0 | |
18580 | split(line, arg, " ") | |
18581 | if (arg[1] == "#") { | |
18582 | defundef = arg[2] | |
18583 | mac1 = arg[3] | |
18584 | } else { | |
18585 | defundef = substr(arg[1], 2) | |
18586 | mac1 = arg[2] | |
18587 | } | |
18588 | split(mac1, mac2, "(") #) | |
18589 | macro = mac2[1] | |
18590 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18591 | if (D_is_set[macro]) { | |
18592 | # Preserve the white space surrounding the "#". | |
18593 | print prefix "define", macro P[macro] D[macro] | |
18594 | next | |
18595 | } else { | |
18596 | # Replace #undef with comments. This is necessary, for example, | |
18597 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18598 | # on some systems where configure will not decide to define it. | |
18599 | if (defundef == "undef") { | |
18600 | print "/*", prefix defundef, macro, "*/" | |
18601 | next | |
18602 | } | |
18603 | } | |
18604 | } | |
18605 | { print } | |
18606 | _ACAWK | |
42ecbf5e | 18607 | _ACEOF |
81ecdfbb RW |
18608 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18609 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
18610 | fi # test -n "$CONFIG_HEADERS" | |
42ecbf5e | 18611 | |
81ecdfbb RW |
18612 | |
18613 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
18614 | shift | |
18615 | for ac_tag | |
18616 | do | |
18617 | case $ac_tag in | |
18618 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18619 | esac | |
18620 | case $ac_mode$ac_tag in | |
18621 | :[FHL]*:*);; | |
18622 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
18623 | :[FH]-) ac_tag=-:-;; | |
18624 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18625 | esac | |
18626 | ac_save_IFS=$IFS | |
18627 | IFS=: | |
18628 | set x $ac_tag | |
18629 | IFS=$ac_save_IFS | |
18630 | shift | |
18631 | ac_file=$1 | |
18632 | shift | |
18633 | ||
18634 | case $ac_mode in | |
18635 | :L) ac_source=$1;; | |
18636 | :[FH]) | |
18637 | ac_file_inputs= | |
18638 | for ac_f | |
18639 | do | |
18640 | case $ac_f in | |
18641 | -) ac_f="$tmp/stdin";; | |
18642 | *) # Look for the file first in the build tree, then in the source tree | |
18643 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18644 | # because $ac_f cannot contain `:'. | |
18645 | test -f "$ac_f" || | |
18646 | case $ac_f in | |
18647 | [\\/$]*) false;; | |
18648 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18649 | esac || | |
18650 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
18651 | esac | |
18652 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18653 | as_fn_append ac_file_inputs " '$ac_f'" | |
18654 | done | |
18655 | ||
18656 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18657 | # use $as_me), people would be surprised to read: | |
18658 | # /* config.h. Generated by config.status. */ | |
18659 | configure_input='Generated from '` | |
18660 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18661 | `' by configure.' | |
18662 | if test x"$ac_file" != x-; then | |
18663 | configure_input="$ac_file. $configure_input" | |
18664 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18665 | $as_echo "$as_me: creating $ac_file" >&6;} | |
252b5132 | 18666 | fi |
81ecdfbb RW |
18667 | # Neutralize special characters interpreted by sed in replacement strings. |
18668 | case $configure_input in #( | |
18669 | *\&* | *\|* | *\\* ) | |
18670 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18671 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18672 | *) ac_sed_conf_input=$configure_input;; | |
18673 | esac | |
252b5132 | 18674 | |
81ecdfbb RW |
18675 | case $ac_tag in |
18676 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
18677 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
18678 | esac | |
18679 | ;; | |
252b5132 RH |
18680 | esac |
18681 | ||
81ecdfbb | 18682 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
18683 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18684 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18685 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18686 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18687 | $as_echo X"$ac_file" | | |
18688 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18689 | s//\1/ | |
18690 | q | |
18691 | } | |
18692 | /^X\(\/\/\)[^/].*/{ | |
18693 | s//\1/ | |
18694 | q | |
18695 | } | |
18696 | /^X\(\/\/\)$/{ | |
18697 | s//\1/ | |
18698 | q | |
18699 | } | |
18700 | /^X\(\/\).*/{ | |
18701 | s//\1/ | |
18702 | q | |
18703 | } | |
18704 | s/.*/./; q'` | |
18705 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e DJ |
18706 | ac_builddir=. |
18707 | ||
81ecdfbb RW |
18708 | case "$ac_dir" in |
18709 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18710 | *) | |
18711 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18712 | # A ".." for each directory in $ac_dir_suffix. | |
18713 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18714 | case $ac_top_builddir_sub in | |
18715 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18716 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18717 | esac ;; | |
18718 | esac | |
18719 | ac_abs_top_builddir=$ac_pwd | |
18720 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18721 | # for backward compatibility: | |
18722 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 18723 | |
42ecbf5e | 18724 | case $srcdir in |
81ecdfbb | 18725 | .) # We are building in place. |
42ecbf5e | 18726 | ac_srcdir=. |
81ecdfbb RW |
18727 | ac_top_srcdir=$ac_top_builddir_sub |
18728 | ac_abs_top_srcdir=$ac_pwd ;; | |
18729 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 18730 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
18731 | ac_top_srcdir=$srcdir |
18732 | ac_abs_top_srcdir=$srcdir ;; | |
18733 | *) # Relative name. | |
18734 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18735 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18736 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 18737 | esac |
81ecdfbb | 18738 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
42ecbf5e | 18739 | |
252b5132 | 18740 | |
81ecdfbb RW |
18741 | case $ac_mode in |
18742 | :F) | |
18743 | # | |
18744 | # CONFIG_FILE | |
18745 | # | |
e5a52504 | 18746 | |
42ecbf5e DJ |
18747 | case $INSTALL in |
18748 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
18749 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
18750 | esac | |
18751 | ac_MKDIR_P=$MKDIR_P | |
18752 | case $MKDIR_P in | |
18753 | [\\/$]* | ?:[\\/]* ) ;; | |
18754 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 18755 | esac |
81ecdfbb | 18756 | _ACEOF |
e5a52504 | 18757 | |
81ecdfbb RW |
18758 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18759 | # If the template does not know about datarootdir, expand it. | |
18760 | # FIXME: This hack should be removed a few years after 2.60. | |
18761 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18762 | ac_sed_dataroot=' | |
18763 | /datarootdir/ { | |
18764 | p | |
18765 | q | |
18766 | } | |
18767 | /@datadir@/p | |
18768 | /@docdir@/p | |
18769 | /@infodir@/p | |
18770 | /@localedir@/p | |
18771 | /@mandir@/p' | |
18772 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18773 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18774 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18776 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18777 | _ACEOF | |
18778 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18779 | ac_datarootdir_hack=' | |
18780 | s&@datadir@&$datadir&g | |
18781 | s&@docdir@&$docdir&g | |
18782 | s&@infodir@&$infodir&g | |
18783 | s&@localedir@&$localedir&g | |
18784 | s&@mandir@&$mandir&g | |
18785 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18786 | esac | |
42ecbf5e | 18787 | _ACEOF |
81ecdfbb RW |
18788 | |
18789 | # Neutralize VPATH when `$srcdir' = `.'. | |
18790 | # Shell code in configure.ac might set extrasub. | |
18791 | # FIXME: do we really want to maintain this feature? | |
18792 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18793 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
18794 | $extrasub |
18795 | _ACEOF | |
81ecdfbb | 18796 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
18797 | :t |
18798 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
18799 | s|@configure_input@|$ac_sed_conf_input|;t t |
18800 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18801 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18802 | s&@srcdir@&$ac_srcdir&;t t | |
18803 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18804 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18805 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18806 | s&@builddir@&$ac_builddir&;t t | |
18807 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18808 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18809 | s&@INSTALL@&$ac_INSTALL&;t t | |
18810 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18811 | $ac_datarootdir_hack | |
18812 | " | |
18813 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
18814 | if $ac_cs_awk_getline; then | |
18815 | $AWK -f "$tmp/subs.awk" | |
18816 | else | |
18817 | $AWK -f "$tmp/subs.awk" | $SHELL | |
18818 | fi >$tmp/out \ | |
18819 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18820 | ||
18821 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
18822 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
18823 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
18824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18825 | which seems to be undefined. Please make sure it is defined." >&5 | |
18826 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
18827 | which seems to be undefined. Please make sure it is defined." >&2;} | |
18828 | ||
18829 | rm -f "$tmp/stdin" | |
42ecbf5e | 18830 | case $ac_file in |
81ecdfbb RW |
18831 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
18832 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
18833 | esac \ | |
18834 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18835 | ;; | |
18836 | :H) | |
18837 | # | |
18838 | # CONFIG_HEADER | |
18839 | # | |
42ecbf5e | 18840 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
18841 | { |
18842 | $as_echo "/* $configure_input */" \ | |
18843 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
18844 | } >"$tmp/config.h" \ | |
18845 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18846 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
18847 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
18848 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 18849 | else |
81ecdfbb RW |
18850 | rm -f "$ac_file" |
18851 | mv "$tmp/config.h" "$ac_file" \ | |
18852 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 18853 | fi |
42ecbf5e | 18854 | else |
81ecdfbb RW |
18855 | $as_echo "/* $configure_input */" \ |
18856 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
18857 | || as_fn_error "could not create -" "$LINENO" 5 | |
e5a52504 | 18858 | fi |
81ecdfbb RW |
18859 | # Compute "$ac_file"'s index in $config_headers. |
18860 | _am_arg="$ac_file" | |
42ecbf5e DJ |
18861 | _am_stamp_count=1 |
18862 | for _am_header in $config_headers :; do | |
18863 | case $_am_header in | |
81ecdfbb | 18864 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
18865 | break ;; |
18866 | * ) | |
18867 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18868 | esac | |
18869 | done | |
81ecdfbb RW |
18870 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
18871 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18872 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18873 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18874 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18875 | $as_echo X"$_am_arg" | | |
18876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18877 | s//\1/ | |
18878 | q | |
18879 | } | |
18880 | /^X\(\/\/\)[^/].*/{ | |
18881 | s//\1/ | |
18882 | q | |
18883 | } | |
18884 | /^X\(\/\/\)$/{ | |
18885 | s//\1/ | |
18886 | q | |
18887 | } | |
18888 | /^X\(\/\).*/{ | |
18889 | s//\1/ | |
18890 | q | |
18891 | } | |
18892 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18893 | ;; | |
42ecbf5e | 18894 | |
81ecdfbb RW |
18895 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
18896 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18897 | ;; | |
18898 | esac | |
42ecbf5e DJ |
18899 | |
18900 | ||
81ecdfbb RW |
18901 | case $ac_file$ac_mode in |
18902 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
18903 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
18904 | # are listed without --file. Let's play safe and only enable the eval | |
18905 | # if we detect the quoting. | |
18906 | case $CONFIG_FILES in | |
18907 | *\'*) eval set x "$CONFIG_FILES" ;; | |
18908 | *) set x $CONFIG_FILES ;; | |
18909 | esac | |
18910 | shift | |
18911 | for mf | |
18912 | do | |
18913 | # Strip MF so we end up with the name of the file. | |
18914 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18915 | # Check whether this is an Automake generated Makefile or not. | |
18916 | # We used to match only the files named `Makefile.in', but | |
18917 | # some people rename them; so instead we look at the file content. | |
18918 | # Grep'ing the first line is not enough: some people post-process | |
18919 | # each Makefile.in and add a new line on top of each file to say so. | |
18920 | # Grep'ing the whole file is not good either: AIX grep has a line | |
18921 | # limit of 2048, but all sed's we know have understand at least 4000. | |
18922 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
18923 | dirpart=`$as_dirname -- "$mf" || | |
42ecbf5e DJ |
18924 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18925 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18926 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18927 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
18928 | $as_echo X"$mf" | | |
18929 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18930 | s//\1/ | |
18931 | q | |
18932 | } | |
18933 | /^X\(\/\/\)[^/].*/{ | |
18934 | s//\1/ | |
18935 | q | |
18936 | } | |
18937 | /^X\(\/\/\)$/{ | |
18938 | s//\1/ | |
18939 | q | |
18940 | } | |
18941 | /^X\(\/\).*/{ | |
18942 | s//\1/ | |
18943 | q | |
18944 | } | |
18945 | s/.*/./; q'` | |
18946 | else | |
18947 | continue | |
18948 | fi | |
18949 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18950 | # from the Makefile without running `make'. | |
18951 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18952 | test -z "$DEPDIR" && continue | |
18953 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18954 | test -z "am__include" && continue | |
18955 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18956 | # When using ansi2knr, U may be empty or an underscore; expand it | |
18957 | U=`sed -n 's/^U = //p' < "$mf"` | |
18958 | # Find all dependency output files, they are included files with | |
18959 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18960 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18961 | # expansion. | |
18962 | for file in `sed -n " | |
18963 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18964 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
18965 | # Make sure the directory exists. | |
18966 | test -f "$dirpart/$file" && continue | |
18967 | fdir=`$as_dirname -- "$file" || | |
42ecbf5e DJ |
18968 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18969 | X"$file" : 'X\(//\)[^/]' \| \ | |
18970 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18971 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
18972 | $as_echo X"$file" | | |
18973 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18974 | s//\1/ | |
18975 | q | |
18976 | } | |
18977 | /^X\(\/\/\)[^/].*/{ | |
18978 | s//\1/ | |
18979 | q | |
18980 | } | |
18981 | /^X\(\/\/\)$/{ | |
18982 | s//\1/ | |
18983 | q | |
18984 | } | |
18985 | /^X\(\/\).*/{ | |
18986 | s//\1/ | |
18987 | q | |
18988 | } | |
18989 | s/.*/./; q'` | |
18990 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
18991 | # echo "creating $dirpart/$file" | |
18992 | echo '# dummy' > "$dirpart/$file" | |
42ecbf5e | 18993 | done |
42ecbf5e | 18994 | done |
81ecdfbb | 18995 | } |
d7040cdb | 18996 | ;; |
81ecdfbb | 18997 | "libtool":C) |
d7040cdb SE |
18998 | |
18999 | # See if we are running on zsh, and set the options which allow our | |
19000 | # commands through without removal of \ escapes. | |
19001 | if test -n "${ZSH_VERSION+set}" ; then | |
19002 | setopt NO_GLOB_SUBST | |
19003 | fi | |
19004 | ||
19005 | cfgfile="${ofile}T" | |
19006 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19007 | $RM "$cfgfile" | |
19008 | ||
19009 | cat <<_LT_EOF >> "$cfgfile" | |
19010 | #! $SHELL | |
19011 | ||
19012 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 19013 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
19014 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19015 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19016 | # | |
b214d478 | 19017 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 19018 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
b214d478 | 19019 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 19020 | # |
b214d478 | 19021 | # This file is part of GNU Libtool. |
d7040cdb | 19022 | # |
b214d478 SE |
19023 | # GNU Libtool is free software; you can redistribute it and/or |
19024 | # modify it under the terms of the GNU General Public License as | |
19025 | # published by the Free Software Foundation; either version 2 of | |
19026 | # the License, or (at your option) any later version. | |
d7040cdb | 19027 | # |
b214d478 SE |
19028 | # As a special exception to the GNU General Public License, |
19029 | # if you distribute this file as part of a program or library that | |
19030 | # is built using GNU Libtool, you may include this file under the | |
19031 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 19032 | # |
b214d478 SE |
19033 | # GNU Libtool is distributed in the hope that it will be useful, |
19034 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19035 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19036 | # GNU General Public License for more details. | |
d7040cdb | 19037 | # |
b214d478 SE |
19038 | # You should have received a copy of the GNU General Public License |
19039 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19040 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19041 | # obtained by writing to the Free Software Foundation, Inc., | |
19042 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
19043 | |
19044 | ||
19045 | # The names of the tagged configurations supported by this script. | |
3cb62297 | 19046 | available_tags="CXX " |
d7040cdb SE |
19047 | |
19048 | # ### BEGIN LIBTOOL CONFIG | |
19049 | ||
19050 | # Which release of libtool.m4 was used? | |
19051 | macro_version=$macro_version | |
19052 | macro_revision=$macro_revision | |
19053 | ||
19054 | # Whether or not to build shared libraries. | |
19055 | build_libtool_libs=$enable_shared | |
19056 | ||
19057 | # Whether or not to build static libraries. | |
19058 | build_old_libs=$enable_static | |
19059 | ||
19060 | # What type of objects to build. | |
19061 | pic_mode=$pic_mode | |
19062 | ||
19063 | # Whether or not to optimize for fast installation. | |
19064 | fast_install=$enable_fast_install | |
19065 | ||
3725885a RW |
19066 | # Shell to use when invoking shell scripts. |
19067 | SHELL=$lt_SHELL | |
19068 | ||
19069 | # An echo program that protects backslashes. | |
19070 | ECHO=$lt_ECHO | |
19071 | ||
d7040cdb SE |
19072 | # The host system. |
19073 | host_alias=$host_alias | |
19074 | host=$host | |
19075 | host_os=$host_os | |
19076 | ||
19077 | # The build system. | |
19078 | build_alias=$build_alias | |
19079 | build=$build | |
19080 | build_os=$build_os | |
19081 | ||
19082 | # A sed program that does not truncate output. | |
19083 | SED=$lt_SED | |
19084 | ||
19085 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19086 | Xsed="\$SED -e 1s/^X//" | |
19087 | ||
19088 | # A grep program that handles long lines. | |
19089 | GREP=$lt_GREP | |
19090 | ||
19091 | # An ERE matcher. | |
19092 | EGREP=$lt_EGREP | |
19093 | ||
19094 | # A literal string matcher. | |
19095 | FGREP=$lt_FGREP | |
19096 | ||
19097 | # A BSD- or MS-compatible name lister. | |
19098 | NM=$lt_NM | |
19099 | ||
19100 | # Whether we need soft or hard links. | |
19101 | LN_S=$lt_LN_S | |
19102 | ||
19103 | # What is the maximum length of a command? | |
19104 | max_cmd_len=$max_cmd_len | |
19105 | ||
19106 | # Object file suffix (normally "o"). | |
19107 | objext=$ac_objext | |
19108 | ||
19109 | # Executable file suffix (normally ""). | |
19110 | exeext=$exeext | |
19111 | ||
19112 | # whether the shell understands "unset". | |
19113 | lt_unset=$lt_unset | |
19114 | ||
19115 | # turn spaces into newlines. | |
19116 | SP2NL=$lt_lt_SP2NL | |
19117 | ||
19118 | # turn newlines into spaces. | |
19119 | NL2SP=$lt_lt_NL2SP | |
19120 | ||
b214d478 SE |
19121 | # An object symbol dumper. |
19122 | OBJDUMP=$lt_OBJDUMP | |
19123 | ||
d7040cdb SE |
19124 | # Method to check whether dependent libraries are shared objects. |
19125 | deplibs_check_method=$lt_deplibs_check_method | |
19126 | ||
19127 | # Command to use when deplibs_check_method == "file_magic". | |
19128 | file_magic_cmd=$lt_file_magic_cmd | |
19129 | ||
19130 | # The archiver. | |
19131 | AR=$lt_AR | |
19132 | AR_FLAGS=$lt_AR_FLAGS | |
19133 | ||
19134 | # A symbol stripping program. | |
19135 | STRIP=$lt_STRIP | |
19136 | ||
19137 | # Commands used to install an old-style archive. | |
19138 | RANLIB=$lt_RANLIB | |
19139 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19140 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19141 | ||
3725885a RW |
19142 | # Whether to use a lock for old archive extraction. |
19143 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19144 | ||
d7040cdb SE |
19145 | # A C compiler. |
19146 | LTCC=$lt_CC | |
19147 | ||
19148 | # LTCC compiler flags. | |
19149 | LTCFLAGS=$lt_CFLAGS | |
19150 | ||
19151 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19152 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19153 | ||
19154 | # Transform the output of nm in a proper C declaration. | |
19155 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19156 | ||
19157 | # Transform the output of nm in a C name address pair. | |
19158 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19159 | ||
b214d478 SE |
19160 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
19161 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19162 | ||
d7040cdb SE |
19163 | # The name of the directory that contains temporary libtool files. |
19164 | objdir=$objdir | |
19165 | ||
d7040cdb SE |
19166 | # Used to examine libraries when file_magic_cmd begins with "file". |
19167 | MAGIC_CMD=$MAGIC_CMD | |
19168 | ||
19169 | # Must we lock files when doing compilation? | |
19170 | need_locks=$lt_need_locks | |
19171 | ||
b214d478 SE |
19172 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19173 | DSYMUTIL=$lt_DSYMUTIL | |
19174 | ||
19175 | # Tool to change global to local symbols on Mac OS X. | |
19176 | NMEDIT=$lt_NMEDIT | |
19177 | ||
19178 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19179 | LIPO=$lt_LIPO | |
19180 | ||
19181 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19182 | OTOOL=$lt_OTOOL | |
19183 | ||
19184 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19185 | OTOOL64=$lt_OTOOL64 | |
19186 | ||
d7040cdb SE |
19187 | # Old archive suffix (normally "a"). |
19188 | libext=$libext | |
19189 | ||
19190 | # Shared library suffix (normally ".so"). | |
19191 | shrext_cmds=$lt_shrext_cmds | |
19192 | ||
19193 | # The commands to extract the exported symbol list from a shared archive. | |
19194 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19195 | ||
19196 | # Variables whose values should be saved in libtool wrapper scripts and | |
19197 | # restored at link time. | |
19198 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19199 | ||
19200 | # Do we need the "lib" prefix for modules? | |
19201 | need_lib_prefix=$need_lib_prefix | |
19202 | ||
19203 | # Do we need a version for libraries? | |
19204 | need_version=$need_version | |
19205 | ||
19206 | # Library versioning type. | |
19207 | version_type=$version_type | |
19208 | ||
19209 | # Shared library runtime path variable. | |
19210 | runpath_var=$runpath_var | |
19211 | ||
19212 | # Shared library path variable. | |
19213 | shlibpath_var=$shlibpath_var | |
19214 | ||
19215 | # Is shlibpath searched before the hard-coded library search path? | |
19216 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19217 | ||
19218 | # Format of library name prefix. | |
19219 | libname_spec=$lt_libname_spec | |
19220 | ||
19221 | # List of archive names. First name is the real one, the rest are links. | |
19222 | # The last name is the one that the linker finds with -lNAME | |
19223 | library_names_spec=$lt_library_names_spec | |
19224 | ||
19225 | # The coded name of the library, if different from the real name. | |
19226 | soname_spec=$lt_soname_spec | |
19227 | ||
3725885a RW |
19228 | # Permission mode override for installation of shared libraries. |
19229 | install_override_mode=$lt_install_override_mode | |
19230 | ||
d7040cdb SE |
19231 | # Command to use after installation of a shared archive. |
19232 | postinstall_cmds=$lt_postinstall_cmds | |
19233 | ||
19234 | # Command to use after uninstallation of a shared archive. | |
19235 | postuninstall_cmds=$lt_postuninstall_cmds | |
19236 | ||
19237 | # Commands used to finish a libtool library installation in a directory. | |
19238 | finish_cmds=$lt_finish_cmds | |
19239 | ||
19240 | # As "finish_cmds", except a single script fragment to be evaled but | |
19241 | # not shown. | |
19242 | finish_eval=$lt_finish_eval | |
19243 | ||
19244 | # Whether we should hardcode library paths into libraries. | |
19245 | hardcode_into_libs=$hardcode_into_libs | |
19246 | ||
19247 | # Compile-time system search path for libraries. | |
19248 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19249 | ||
19250 | # Run-time system search path for libraries. | |
19251 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19252 | ||
19253 | # Whether dlopen is supported. | |
19254 | dlopen_support=$enable_dlopen | |
19255 | ||
19256 | # Whether dlopen of programs is supported. | |
19257 | dlopen_self=$enable_dlopen_self | |
19258 | ||
19259 | # Whether dlopen of statically linked programs is supported. | |
19260 | dlopen_self_static=$enable_dlopen_self_static | |
19261 | ||
19262 | # Commands to strip libraries. | |
19263 | old_striplib=$lt_old_striplib | |
19264 | striplib=$lt_striplib | |
19265 | ||
19266 | ||
19267 | # The linker used to build libraries. | |
19268 | LD=$lt_LD | |
19269 | ||
3725885a RW |
19270 | # How to create reloadable object files. |
19271 | reload_flag=$lt_reload_flag | |
19272 | reload_cmds=$lt_reload_cmds | |
19273 | ||
d7040cdb SE |
19274 | # Commands used to build an old-style archive. |
19275 | old_archive_cmds=$lt_old_archive_cmds | |
19276 | ||
19277 | # A language specific compiler. | |
19278 | CC=$lt_compiler | |
19279 | ||
19280 | # Is the compiler the GNU compiler? | |
19281 | with_gcc=$GCC | |
19282 | ||
19283 | # Compiler flag to turn off builtin functions. | |
19284 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19285 | ||
19286 | # How to pass a linker flag through the compiler. | |
19287 | wl=$lt_lt_prog_compiler_wl | |
19288 | ||
19289 | # Additional compiler flags for building library objects. | |
19290 | pic_flag=$lt_lt_prog_compiler_pic | |
19291 | ||
19292 | # Compiler flag to prevent dynamic linking. | |
19293 | link_static_flag=$lt_lt_prog_compiler_static | |
19294 | ||
19295 | # Does compiler simultaneously support -c and -o options? | |
19296 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19297 | ||
19298 | # Whether or not to add -lc for building shared libraries. | |
19299 | build_libtool_need_lc=$archive_cmds_need_lc | |
19300 | ||
19301 | # Whether or not to disallow shared libs when runtime libs are static. | |
19302 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19303 | ||
19304 | # Compiler flag to allow reflexive dlopens. | |
19305 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19306 | ||
19307 | # Compiler flag to generate shared objects directly from archives. | |
19308 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19309 | ||
19310 | # Whether the compiler copes with passing no objects directly. | |
19311 | compiler_needs_object=$lt_compiler_needs_object | |
19312 | ||
19313 | # Create an old-style archive from a shared archive. | |
19314 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19315 | ||
19316 | # Create a temporary old-style archive to link instead of a shared archive. | |
19317 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19318 | ||
19319 | # Commands used to build a shared archive. | |
19320 | archive_cmds=$lt_archive_cmds | |
19321 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19322 | ||
19323 | # Commands used to build a loadable module if different from building | |
19324 | # a shared archive. | |
19325 | module_cmds=$lt_module_cmds | |
19326 | module_expsym_cmds=$lt_module_expsym_cmds | |
19327 | ||
19328 | # Whether we are building with GNU ld or not. | |
19329 | with_gnu_ld=$lt_with_gnu_ld | |
19330 | ||
19331 | # Flag that allows shared libraries with undefined symbols to be built. | |
19332 | allow_undefined_flag=$lt_allow_undefined_flag | |
19333 | ||
19334 | # Flag that enforces no undefined symbols. | |
19335 | no_undefined_flag=$lt_no_undefined_flag | |
19336 | ||
19337 | # Flag to hardcode \$libdir into a binary during linking. | |
19338 | # This must work even if \$libdir does not exist | |
19339 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19340 | ||
19341 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19342 | # during linking. This must work even if \$libdir does not exist. | |
19343 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19344 | ||
19345 | # Whether we need a single "-rpath" flag with a separated argument. | |
19346 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19347 | ||
19348 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19349 | # DIR into the resulting binary. | |
19350 | hardcode_direct=$hardcode_direct | |
19351 | ||
19352 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19353 | # DIR into the resulting binary and the resulting library dependency is | |
19354 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19355 | # library is relocated. | |
19356 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19357 | ||
19358 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19359 | # into the resulting binary. | |
19360 | hardcode_minus_L=$hardcode_minus_L | |
19361 | ||
19362 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19363 | # into the resulting binary. | |
19364 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19365 | ||
19366 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19367 | # into the library and all subsequent libraries and executables linked | |
19368 | # against it. | |
19369 | hardcode_automatic=$hardcode_automatic | |
19370 | ||
19371 | # Set to yes if linker adds runtime paths of dependent libraries | |
19372 | # to runtime path list. | |
19373 | inherit_rpath=$inherit_rpath | |
19374 | ||
19375 | # Whether libtool must link a program against all its dependency libraries. | |
19376 | link_all_deplibs=$link_all_deplibs | |
19377 | ||
19378 | # Fix the shell variable \$srcfile for the compiler. | |
19379 | fix_srcfile_path=$lt_fix_srcfile_path | |
19380 | ||
19381 | # Set to "yes" if exported symbols are required. | |
19382 | always_export_symbols=$always_export_symbols | |
19383 | ||
19384 | # The commands to list exported symbols. | |
19385 | export_symbols_cmds=$lt_export_symbols_cmds | |
19386 | ||
19387 | # Symbols that should not be listed in the preloaded symbols. | |
19388 | exclude_expsyms=$lt_exclude_expsyms | |
19389 | ||
19390 | # Symbols that must always be exported. | |
19391 | include_expsyms=$lt_include_expsyms | |
19392 | ||
19393 | # Commands necessary for linking programs (against libraries) with templates. | |
19394 | prelink_cmds=$lt_prelink_cmds | |
19395 | ||
19396 | # Specify filename containing input files. | |
19397 | file_list_spec=$lt_file_list_spec | |
19398 | ||
19399 | # How to hardcode a shared library path into an executable. | |
19400 | hardcode_action=$hardcode_action | |
19401 | ||
3cb62297 L |
19402 | # The directories searched by this compiler when creating a shared library. |
19403 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19404 | ||
19405 | # Dependencies to place before and after the objects being linked to | |
19406 | # create a shared library. | |
19407 | predep_objects=$lt_predep_objects | |
19408 | postdep_objects=$lt_postdep_objects | |
19409 | predeps=$lt_predeps | |
19410 | postdeps=$lt_postdeps | |
19411 | ||
19412 | # The library search path used internally by the compiler when linking | |
19413 | # a shared library. | |
19414 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19415 | ||
d7040cdb SE |
19416 | # ### END LIBTOOL CONFIG |
19417 | ||
19418 | _LT_EOF | |
19419 | ||
19420 | case $host_os in | |
19421 | aix3*) | |
19422 | cat <<\_LT_EOF >> "$cfgfile" | |
19423 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19424 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19425 | # vanish in a puff of smoke. | |
19426 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19427 | COLLECT_NAMES= | |
19428 | export COLLECT_NAMES | |
19429 | fi | |
19430 | _LT_EOF | |
19431 | ;; | |
19432 | esac | |
19433 | ||
19434 | ||
19435 | ltmain="$ac_aux_dir/ltmain.sh" | |
19436 | ||
19437 | ||
19438 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19439 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19440 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19441 | # is reportedly fixed, but why not run on old versions too? | |
19442 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19443 | || (rm -f "$cfgfile"; exit 1) | |
19444 | ||
19445 | case $xsi_shell in | |
19446 | yes) | |
19447 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19448 | |
d7040cdb SE |
19449 | # func_dirname file append nondir_replacement |
19450 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19451 | # otherwise set result to NONDIR_REPLACEMENT. | |
19452 | func_dirname () | |
19453 | { | |
19454 | case ${1} in | |
19455 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19456 | * ) func_dirname_result="${3}" ;; | |
19457 | esac | |
19458 | } | |
19459 | ||
19460 | # func_basename file | |
19461 | func_basename () | |
19462 | { | |
19463 | func_basename_result="${1##*/}" | |
19464 | } | |
19465 | ||
b214d478 SE |
19466 | # func_dirname_and_basename file append nondir_replacement |
19467 | # perform func_basename and func_dirname in a single function | |
19468 | # call: | |
19469 | # dirname: Compute the dirname of FILE. If nonempty, | |
19470 | # add APPEND to the result, otherwise set result | |
19471 | # to NONDIR_REPLACEMENT. | |
19472 | # value returned in "$func_dirname_result" | |
19473 | # basename: Compute filename of FILE. | |
19474 | # value retuned in "$func_basename_result" | |
19475 | # Implementation must be kept synchronized with func_dirname | |
19476 | # and func_basename. For efficiency, we do not delegate to | |
19477 | # those functions but instead duplicate the functionality here. | |
19478 | func_dirname_and_basename () | |
19479 | { | |
19480 | case ${1} in | |
19481 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19482 | * ) func_dirname_result="${3}" ;; | |
19483 | esac | |
19484 | func_basename_result="${1##*/}" | |
19485 | } | |
19486 | ||
d7040cdb SE |
19487 | # func_stripname prefix suffix name |
19488 | # strip PREFIX and SUFFIX off of NAME. | |
19489 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19490 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19491 | # dot (in which case that matches only a dot). | |
19492 | func_stripname () | |
19493 | { | |
19494 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19495 | # positional parameters, so assign one to ordinary parameter first. | |
19496 | func_stripname_result=${3} | |
19497 | func_stripname_result=${func_stripname_result#"${1}"} | |
19498 | func_stripname_result=${func_stripname_result%"${2}"} | |
19499 | } | |
19500 | ||
19501 | # func_opt_split | |
19502 | func_opt_split () | |
19503 | { | |
19504 | func_opt_split_opt=${1%%=*} | |
19505 | func_opt_split_arg=${1#*=} | |
19506 | } | |
19507 | ||
19508 | # func_lo2o object | |
19509 | func_lo2o () | |
19510 | { | |
19511 | case ${1} in | |
19512 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19513 | *) func_lo2o_result=${1} ;; | |
19514 | esac | |
19515 | } | |
b214d478 SE |
19516 | |
19517 | # func_xform libobj-or-source | |
19518 | func_xform () | |
19519 | { | |
19520 | func_xform_result=${1%.*}.lo | |
19521 | } | |
19522 | ||
19523 | # func_arith arithmetic-term... | |
19524 | func_arith () | |
19525 | { | |
19526 | func_arith_result=$(( $* )) | |
19527 | } | |
19528 | ||
19529 | # func_len string | |
19530 | # STRING may not start with a hyphen. | |
19531 | func_len () | |
19532 | { | |
19533 | func_len_result=${#1} | |
19534 | } | |
19535 | ||
d7040cdb SE |
19536 | _LT_EOF |
19537 | ;; | |
19538 | *) # Bourne compatible functions. | |
19539 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 19540 | |
d7040cdb SE |
19541 | # func_dirname file append nondir_replacement |
19542 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19543 | # otherwise set result to NONDIR_REPLACEMENT. | |
19544 | func_dirname () | |
19545 | { | |
19546 | # Extract subdirectory from the argument. | |
3725885a | 19547 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
19548 | if test "X$func_dirname_result" = "X${1}"; then |
19549 | func_dirname_result="${3}" | |
19550 | else | |
19551 | func_dirname_result="$func_dirname_result${2}" | |
19552 | fi | |
19553 | } | |
19554 | ||
19555 | # func_basename file | |
19556 | func_basename () | |
19557 | { | |
3725885a | 19558 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
19559 | } |
19560 | ||
b214d478 | 19561 | |
d7040cdb SE |
19562 | # func_stripname prefix suffix name |
19563 | # strip PREFIX and SUFFIX off of NAME. | |
19564 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19565 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19566 | # dot (in which case that matches only a dot). | |
19567 | # func_strip_suffix prefix name | |
19568 | func_stripname () | |
19569 | { | |
19570 | case ${2} in | |
3725885a RW |
19571 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
19572 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
19573 | esac |
19574 | } | |
19575 | ||
19576 | # sed scripts: | |
19577 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19578 | my_sed_long_arg='1s/^-[^=]*=//' | |
19579 | ||
19580 | # func_opt_split | |
19581 | func_opt_split () | |
19582 | { | |
3725885a RW |
19583 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
19584 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
19585 | } |
19586 | ||
19587 | # func_lo2o object | |
19588 | func_lo2o () | |
19589 | { | |
3725885a | 19590 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 19591 | } |
b214d478 SE |
19592 | |
19593 | # func_xform libobj-or-source | |
19594 | func_xform () | |
19595 | { | |
3725885a | 19596 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
b214d478 SE |
19597 | } |
19598 | ||
19599 | # func_arith arithmetic-term... | |
19600 | func_arith () | |
19601 | { | |
19602 | func_arith_result=`expr "$@"` | |
19603 | } | |
19604 | ||
19605 | # func_len string | |
19606 | # STRING may not start with a hyphen. | |
19607 | func_len () | |
19608 | { | |
19609 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19610 | } | |
19611 | ||
d7040cdb SE |
19612 | _LT_EOF |
19613 | esac | |
19614 | ||
19615 | case $lt_shell_append in | |
19616 | yes) | |
19617 | cat << \_LT_EOF >> "$cfgfile" | |
19618 | ||
19619 | # func_append var value | |
19620 | # Append VALUE to the end of shell variable VAR. | |
19621 | func_append () | |
19622 | { | |
19623 | eval "$1+=\$2" | |
19624 | } | |
19625 | _LT_EOF | |
19626 | ;; | |
19627 | *) | |
19628 | cat << \_LT_EOF >> "$cfgfile" | |
19629 | ||
19630 | # func_append var value | |
19631 | # Append VALUE to the end of shell variable VAR. | |
19632 | func_append () | |
19633 | { | |
19634 | eval "$1=\$$1\$2" | |
19635 | } | |
b214d478 | 19636 | |
d7040cdb SE |
19637 | _LT_EOF |
19638 | ;; | |
19639 | esac | |
19640 | ||
19641 | ||
19642 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19643 | || (rm -f "$cfgfile"; exit 1) | |
19644 | ||
19645 | mv -f "$cfgfile" "$ofile" || | |
19646 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19647 | chmod +x "$ofile" | |
19648 | ||
3cb62297 L |
19649 | |
19650 | cat <<_LT_EOF >> "$ofile" | |
19651 | ||
19652 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
19653 | ||
19654 | # The linker used to build libraries. | |
19655 | LD=$lt_LD_CXX | |
19656 | ||
19657 | # How to create reloadable object files. | |
19658 | reload_flag=$lt_reload_flag_CXX | |
19659 | reload_cmds=$lt_reload_cmds_CXX | |
19660 | ||
19661 | # Commands used to build an old-style archive. | |
19662 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
19663 | ||
19664 | # A language specific compiler. | |
19665 | CC=$lt_compiler_CXX | |
19666 | ||
19667 | # Is the compiler the GNU compiler? | |
19668 | with_gcc=$GCC_CXX | |
19669 | ||
19670 | # Compiler flag to turn off builtin functions. | |
19671 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
19672 | ||
19673 | # How to pass a linker flag through the compiler. | |
19674 | wl=$lt_lt_prog_compiler_wl_CXX | |
19675 | ||
19676 | # Additional compiler flags for building library objects. | |
19677 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
19678 | ||
19679 | # Compiler flag to prevent dynamic linking. | |
19680 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
19681 | ||
19682 | # Does compiler simultaneously support -c and -o options? | |
19683 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
19684 | ||
19685 | # Whether or not to add -lc for building shared libraries. | |
19686 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
19687 | ||
19688 | # Whether or not to disallow shared libs when runtime libs are static. | |
19689 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
19690 | ||
19691 | # Compiler flag to allow reflexive dlopens. | |
19692 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
19693 | ||
19694 | # Compiler flag to generate shared objects directly from archives. | |
19695 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
19696 | ||
19697 | # Whether the compiler copes with passing no objects directly. | |
19698 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
19699 | ||
19700 | # Create an old-style archive from a shared archive. | |
19701 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
19702 | ||
19703 | # Create a temporary old-style archive to link instead of a shared archive. | |
19704 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
19705 | ||
19706 | # Commands used to build a shared archive. | |
19707 | archive_cmds=$lt_archive_cmds_CXX | |
19708 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
19709 | ||
19710 | # Commands used to build a loadable module if different from building | |
19711 | # a shared archive. | |
19712 | module_cmds=$lt_module_cmds_CXX | |
19713 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
19714 | ||
19715 | # Whether we are building with GNU ld or not. | |
19716 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
19717 | ||
19718 | # Flag that allows shared libraries with undefined symbols to be built. | |
19719 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
19720 | ||
19721 | # Flag that enforces no undefined symbols. | |
19722 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
19723 | ||
19724 | # Flag to hardcode \$libdir into a binary during linking. | |
19725 | # This must work even if \$libdir does not exist | |
19726 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
19727 | ||
19728 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19729 | # during linking. This must work even if \$libdir does not exist. | |
19730 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
19731 | ||
19732 | # Whether we need a single "-rpath" flag with a separated argument. | |
19733 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
19734 | ||
19735 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19736 | # DIR into the resulting binary. | |
19737 | hardcode_direct=$hardcode_direct_CXX | |
19738 | ||
19739 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19740 | # DIR into the resulting binary and the resulting library dependency is | |
19741 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19742 | # library is relocated. | |
19743 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
19744 | ||
19745 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19746 | # into the resulting binary. | |
19747 | hardcode_minus_L=$hardcode_minus_L_CXX | |
19748 | ||
19749 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19750 | # into the resulting binary. | |
19751 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
19752 | ||
19753 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19754 | # into the library and all subsequent libraries and executables linked | |
19755 | # against it. | |
19756 | hardcode_automatic=$hardcode_automatic_CXX | |
19757 | ||
19758 | # Set to yes if linker adds runtime paths of dependent libraries | |
19759 | # to runtime path list. | |
19760 | inherit_rpath=$inherit_rpath_CXX | |
19761 | ||
19762 | # Whether libtool must link a program against all its dependency libraries. | |
19763 | link_all_deplibs=$link_all_deplibs_CXX | |
19764 | ||
19765 | # Fix the shell variable \$srcfile for the compiler. | |
19766 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
19767 | ||
19768 | # Set to "yes" if exported symbols are required. | |
19769 | always_export_symbols=$always_export_symbols_CXX | |
19770 | ||
19771 | # The commands to list exported symbols. | |
19772 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
19773 | ||
19774 | # Symbols that should not be listed in the preloaded symbols. | |
19775 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
19776 | ||
19777 | # Symbols that must always be exported. | |
19778 | include_expsyms=$lt_include_expsyms_CXX | |
19779 | ||
19780 | # Commands necessary for linking programs (against libraries) with templates. | |
19781 | prelink_cmds=$lt_prelink_cmds_CXX | |
19782 | ||
19783 | # Specify filename containing input files. | |
19784 | file_list_spec=$lt_file_list_spec_CXX | |
19785 | ||
19786 | # How to hardcode a shared library path into an executable. | |
19787 | hardcode_action=$hardcode_action_CXX | |
19788 | ||
19789 | # The directories searched by this compiler when creating a shared library. | |
19790 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
19791 | ||
19792 | # Dependencies to place before and after the objects being linked to | |
19793 | # create a shared library. | |
19794 | predep_objects=$lt_predep_objects_CXX | |
19795 | postdep_objects=$lt_postdep_objects_CXX | |
19796 | predeps=$lt_predeps_CXX | |
19797 | postdeps=$lt_postdeps_CXX | |
19798 | ||
19799 | # The library search path used internally by the compiler when linking | |
19800 | # a shared library. | |
19801 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19802 | ||
19803 | # ### END LIBTOOL TAG CONFIG: CXX | |
19804 | _LT_EOF | |
19805 | ||
42ecbf5e | 19806 | ;; |
81ecdfbb | 19807 | "default-1":C) |
20e95c23 DJ |
19808 | for ac_file in $CONFIG_FILES; do |
19809 | # Support "outfile[:infile[:infile...]]" | |
19810 | case "$ac_file" in | |
19811 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
19812 | esac | |
19813 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
19814 | case "$ac_file" in */Makefile.in) | |
19815 | # Adjust a relative srcdir. | |
19816 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 19817 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
19818 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
19819 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
19820 | # In autoconf-2.50 it is called $srcdir. | |
19821 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
19822 | case "$ac_given_srcdir" in | |
19823 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
19824 | /*) top_srcdir="$ac_given_srcdir" ;; | |
19825 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
19826 | esac | |
19827 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
19828 | rm -f "$ac_dir/POTFILES" | |
19829 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
19830 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
19831 | POMAKEFILEDEPS="POTFILES.in" | |
19832 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
19833 | # on $ac_dir but don't depend on user-specified configuration | |
19834 | # parameters. | |
19835 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
19836 | # The LINGUAS file contains the set of available languages. | |
19837 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
19838 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
19839 | fi | |
19840 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
19841 | # Hide the ALL_LINGUAS assigment from automake. | |
19842 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
19843 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
19844 | else | |
19845 | # The set of available languages was given in configure.in. | |
19846 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
19847 | fi | |
19848 | case "$ac_given_srcdir" in | |
19849 | .) srcdirpre= ;; | |
19850 | *) srcdirpre='$(srcdir)/' ;; | |
19851 | esac | |
19852 | POFILES= | |
19853 | GMOFILES= | |
19854 | UPDATEPOFILES= | |
19855 | DUMMYPOFILES= | |
19856 | for lang in $ALL_LINGUAS; do | |
19857 | POFILES="$POFILES $srcdirpre$lang.po" | |
19858 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
19859 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
19860 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
19861 | done | |
19862 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
19863 | # environment variable. | |
19864 | INST_LINGUAS= | |
19865 | if test -n "$ALL_LINGUAS"; then | |
19866 | for presentlang in $ALL_LINGUAS; do | |
19867 | useit=no | |
19868 | if test "%UNSET%" != "$LINGUAS"; then | |
19869 | desiredlanguages="$LINGUAS" | |
19870 | else | |
19871 | desiredlanguages="$ALL_LINGUAS" | |
19872 | fi | |
19873 | for desiredlang in $desiredlanguages; do | |
19874 | # Use the presentlang catalog if desiredlang is | |
19875 | # a. equal to presentlang, or | |
19876 | # b. a variant of presentlang (because in this case, | |
19877 | # presentlang can be used as a fallback for messages | |
19878 | # which are not translated in the desiredlang catalog). | |
19879 | case "$desiredlang" in | |
19880 | "$presentlang"*) useit=yes;; | |
19881 | esac | |
19882 | done | |
19883 | if test $useit = yes; then | |
19884 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
19885 | fi | |
19886 | done | |
19887 | fi | |
19888 | CATALOGS= | |
19889 | if test -n "$INST_LINGUAS"; then | |
19890 | for lang in $INST_LINGUAS; do | |
19891 | CATALOGS="$CATALOGS $lang.gmo" | |
19892 | done | |
19893 | fi | |
19894 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
19895 | 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" | |
19896 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
19897 | if test -f "$f"; then | |
19898 | case "$f" in | |
19899 | *.orig | *.bak | *~) ;; | |
19900 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
19901 | esac | |
19902 | fi | |
19903 | done | |
19904 | fi | |
19905 | ;; | |
19906 | esac | |
19907 | done ;; | |
81ecdfbb | 19908 | |
42ecbf5e | 19909 | esac |
81ecdfbb | 19910 | done # for ac_tag |
42ecbf5e | 19911 | |
42ecbf5e | 19912 | |
81ecdfbb | 19913 | as_fn_exit 0 |
42ecbf5e | 19914 | _ACEOF |
42ecbf5e DJ |
19915 | ac_clean_files=$ac_clean_files_save |
19916 | ||
81ecdfbb RW |
19917 | test $ac_write_fail = 0 || |
19918 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
19919 | ||
42ecbf5e DJ |
19920 | |
19921 | # configure is writing to config.log, and then calls config.status. | |
19922 | # config.status does its own redirection, appending to config.log. | |
19923 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19924 | # by configure, so config.status won't be able to write to it; its | |
19925 | # output is simply discarded. So we exec the FD to /dev/null, | |
19926 | # effectively closing config.log, so it can be properly (re)opened and | |
19927 | # appended to by config.status. When coming back to configure, we | |
19928 | # need to make the FD available again. | |
19929 | if test "$no_create" != yes; then | |
19930 | ac_cs_success=: | |
19931 | ac_config_status_args= | |
19932 | test "$silent" = yes && | |
19933 | ac_config_status_args="$ac_config_status_args --quiet" | |
19934 | exec 5>/dev/null | |
19935 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19936 | exec 5>>config.log | |
19937 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19938 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
19939 | $ac_cs_success || as_fn_exit $? |
19940 | fi | |
19941 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19942 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19943 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 19944 | fi |
252b5132 | 19945 |