]>
Commit | Line | Data |
---|---|---|
b57f37fb WP |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
12e39525 | 3 | # Generated by GNU Autoconf 2.68 for libratbox devel. |
b57f37fb | 4 | # |
f030cae8 | 5 | # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
b57f37fb | 6 | # |
1800d973 | 7 | # |
b57f37fb | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
12e39525 JH |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
10 | # Foundation, Inc. | |
1800d973 | 11 | # |
042acc47 | 12 | # |
b57f37fb WP |
13 | # This configure script is free software; the Free Software Foundation |
14 | # gives unlimited permission to copy, distribute and modify it. | |
042acc47 WP |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
b57f37fb WP |
18 | |
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
042acc47 | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b57f37fb WP |
22 | emulate sh |
23 | NULLCMD=: | |
f030cae8 | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b57f37fb WP |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
042acc47 WP |
29 | case `(set -o) 2>/dev/null` in #( |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
b57f37fb | 34 | esac |
b57f37fb WP |
35 | fi |
36 | ||
37 | ||
f030cae8 VY |
38 | as_nl=' |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
042acc47 WP |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
f030cae8 VY |
52 | as_echo='printf %s\n' |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
b57f37fb | 58 | else |
f030cae8 VY |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
042acc47 | 62 | case $arg in #( |
f030cae8 VY |
63 | *"$as_nl"*) |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
b57f37fb | 71 | fi |
f030cae8 VY |
72 | export as_echo_body |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
b57f37fb WP |
83 | fi |
84 | ||
b57f37fb WP |
85 | |
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
b57f37fb WP |
91 | IFS=" "" $as_nl" |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
12e39525 | 94 | as_myself= |
042acc47 | 95 | case $0 in #(( |
b57f37fb WP |
96 | *[\\/]* ) as_myself=$0 ;; |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
042acc47 WP |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
103 | done | |
b57f37fb WP |
104 | IFS=$as_save_IFS |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
f030cae8 | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
042acc47 | 115 | exit 1 |
b57f37fb WP |
116 | fi |
117 | ||
042acc47 WP |
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
b57f37fb WP |
125 | done |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
f030cae8 VY |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
b57f37fb | 135 | |
042acc47 WP |
136 | # CDPATH. |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
172 | test x\$exitcode = x0 || exit 1" | |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1" | |
178 | if (eval "$as_required") 2>/dev/null; then : | |
179 | as_have_required=yes | |
180 | else | |
181 | as_have_required=no | |
182 | fi | |
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | ||
185 | else | |
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 | as_found=false | |
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
189 | do | |
190 | IFS=$as_save_IFS | |
191 | test -z "$as_dir" && as_dir=. | |
192 | as_found=: | |
193 | case $as_dir in #( | |
194 | /*) | |
195 | for as_base in sh bash ksh sh5; do | |
196 | # Try only shells that exist, to save several forks. | |
197 | as_shell=$as_dir/$as_base | |
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | CONFIG_SHELL=$as_shell as_have_required=yes | |
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 | break 2 | |
203 | fi | |
204 | fi | |
205 | done;; | |
206 | esac | |
207 | as_found=false | |
208 | done | |
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 | CONFIG_SHELL=$SHELL as_have_required=yes | |
212 | fi; } | |
213 | IFS=$as_save_IFS | |
214 | ||
215 | ||
216 | if test "x$CONFIG_SHELL" != x; then : | |
217 | # We cannot yet assume a decent shell, so we have to provide a | |
218 | # neutralization value for shells without unset; and this also | |
219 | # works around shells that cannot unset nonexistent variables. | |
12e39525 | 220 | # Preserve -v and -x to the replacement shell. |
042acc47 WP |
221 | BASH_ENV=/dev/null |
222 | ENV=/dev/null | |
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 | export CONFIG_SHELL | |
12e39525 JH |
225 | case $- in # (((( |
226 | *v*x* | *x*v* ) as_opts=-vx ;; | |
227 | *v* ) as_opts=-v ;; | |
228 | *x* ) as_opts=-x ;; | |
229 | * ) as_opts= ;; | |
230 | esac | |
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
042acc47 WP |
232 | fi |
233 | ||
234 | if test x$as_have_required = xno; then : | |
235 | $as_echo "$0: This script requires a shell more modern than all" | |
236 | $as_echo "$0: the shells that I found on your system." | |
237 | if test x${ZSH_VERSION+set} = xset ; then | |
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
240 | else | |
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
242 | $0: including any error possibly output before this | |
243 | $0: message. Then install a modern shell, or manually run | |
244 | $0: the script under such a shell if you do have one." | |
245 | fi | |
246 | exit 1 | |
247 | fi | |
248 | fi | |
249 | fi | |
250 | SHELL=${CONFIG_SHELL-/bin/sh} | |
251 | export SHELL | |
252 | # Unset more variables known to interfere with behavior of common tools. | |
253 | CLICOLOR_FORCE= GREP_OPTIONS= | |
254 | unset CLICOLOR_FORCE GREP_OPTIONS | |
255 | ||
256 | ## --------------------- ## | |
257 | ## M4sh Shell Functions. ## | |
258 | ## --------------------- ## | |
259 | # as_fn_unset VAR | |
260 | # --------------- | |
261 | # Portably unset VAR. | |
262 | as_fn_unset () | |
263 | { | |
264 | { eval $1=; unset $1;} | |
265 | } | |
266 | as_unset=as_fn_unset | |
267 | ||
268 | # as_fn_set_status STATUS | |
269 | # ----------------------- | |
270 | # Set $? to STATUS, without forking. | |
271 | as_fn_set_status () | |
272 | { | |
273 | return $1 | |
274 | } # as_fn_set_status | |
275 | ||
276 | # as_fn_exit STATUS | |
277 | # ----------------- | |
278 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
279 | as_fn_exit () | |
280 | { | |
281 | set +e | |
282 | as_fn_set_status $1 | |
283 | exit $1 | |
284 | } # as_fn_exit | |
285 | ||
286 | # as_fn_mkdir_p | |
287 | # ------------- | |
288 | # Create "$as_dir" as a directory, including parents if necessary. | |
289 | as_fn_mkdir_p () | |
290 | { | |
291 | ||
292 | case $as_dir in #( | |
293 | -*) as_dir=./$as_dir;; | |
294 | esac | |
295 | test -d "$as_dir" || eval $as_mkdir_p || { | |
296 | as_dirs= | |
297 | while :; do | |
298 | case $as_dir in #( | |
299 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
300 | *) as_qdir=$as_dir;; | |
301 | esac | |
302 | as_dirs="'$as_qdir' $as_dirs" | |
303 | as_dir=`$as_dirname -- "$as_dir" || | |
304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
305 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
306 | X"$as_dir" : 'X\(//\)$' \| \ | |
307 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
308 | $as_echo X"$as_dir" | | |
309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)[^/].*/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\/\)$/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | /^X\(\/\).*/{ | |
322 | s//\1/ | |
323 | q | |
324 | } | |
325 | s/.*/./; q'` | |
326 | test -d "$as_dir" && break | |
327 | done | |
328 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12e39525 | 329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
042acc47 WP |
330 | |
331 | ||
332 | } # as_fn_mkdir_p | |
333 | # as_fn_append VAR VALUE | |
334 | # ---------------------- | |
335 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
336 | # advantage of any shell optimizations that allow amortized linear growth over | |
337 | # repeated appends, instead of the typical quadratic growth present in naive | |
338 | # implementations. | |
339 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
340 | eval 'as_fn_append () | |
341 | { | |
342 | eval $1+=\$2 | |
343 | }' | |
344 | else | |
345 | as_fn_append () | |
346 | { | |
347 | eval $1=\$$1\$2 | |
348 | } | |
349 | fi # as_fn_append | |
350 | ||
351 | # as_fn_arith ARG... | |
352 | # ------------------ | |
353 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
354 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
355 | # must be portable across $(()) and expr. | |
356 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
357 | eval 'as_fn_arith () | |
358 | { | |
359 | as_val=$(( $* )) | |
360 | }' | |
361 | else | |
362 | as_fn_arith () | |
363 | { | |
364 | as_val=`expr "$@" || test $? -eq 1` | |
365 | } | |
366 | fi # as_fn_arith | |
367 | ||
368 | ||
12e39525 JH |
369 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
370 | # ---------------------------------------- | |
042acc47 WP |
371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12e39525 | 373 | # script with STATUS, using 1 if that was 0. |
042acc47 WP |
374 | as_fn_error () |
375 | { | |
12e39525 JH |
376 | as_status=$1; test $as_status -eq 0 && as_status=1 |
377 | if test "$4"; then | |
378 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
042acc47 | 380 | fi |
12e39525 | 381 | $as_echo "$as_me: error: $2" >&2 |
042acc47 WP |
382 | as_fn_exit $as_status |
383 | } # as_fn_error | |
384 | ||
b57f37fb WP |
385 | if expr a : '\(a\)' >/dev/null 2>&1 && |
386 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
387 | as_expr=expr | |
388 | else | |
389 | as_expr=false | |
390 | fi | |
391 | ||
392 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
393 | as_basename=basename | |
394 | else | |
395 | as_basename=false | |
396 | fi | |
397 | ||
042acc47 WP |
398 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
399 | as_dirname=dirname | |
400 | else | |
401 | as_dirname=false | |
402 | fi | |
b57f37fb | 403 | |
b57f37fb WP |
404 | as_me=`$as_basename -- "$0" || |
405 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
406 | X"$0" : 'X\(//\)$' \| \ | |
407 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
f030cae8 | 408 | $as_echo X/"$0" | |
b57f37fb WP |
409 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\/\)$/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | /^X\/\(\/\).*/{ | |
418 | s//\1/ | |
419 | q | |
420 | } | |
421 | s/.*/./; q'` | |
422 | ||
042acc47 WP |
423 | # Avoid depending upon Character Ranges. |
424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
427 | as_cr_digits='0123456789' | |
428 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b57f37fb WP |
429 | |
430 | ||
042acc47 WP |
431 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
432 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
433 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
434 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
435 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
436 | sed -n ' | |
437 | p | |
438 | /[$]LINENO/= | |
439 | ' <$as_myself | | |
440 | sed ' | |
441 | s/[$]LINENO.*/&-/ | |
442 | t lineno | |
443 | b | |
444 | :lineno | |
445 | N | |
446 | :loop | |
447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
448 | t loop | |
449 | s/-\n.*// | |
450 | ' >$as_me.lineno && | |
451 | chmod +x "$as_me.lineno" || | |
452 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b57f37fb | 453 | |
042acc47 WP |
454 | # Don't try to exec as it changes $[0], causing all sort of problems |
455 | # (the dirname of $[0] is not the place where we might find the | |
456 | # original and so on. Autoconf is especially sensitive to this). | |
457 | . "./$as_me.lineno" | |
458 | # Exit status is that of the last command. | |
459 | exit | |
b57f37fb WP |
460 | } |
461 | ||
042acc47 WP |
462 | ECHO_C= ECHO_N= ECHO_T= |
463 | case `echo -n x` in #((((( | |
464 | -n*) | |
465 | case `echo 'xy\c'` in | |
466 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
467 | xy) ECHO_C='\c';; | |
468 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
469 | ECHO_T=' ';; | |
470 | esac;; | |
471 | *) | |
472 | ECHO_N='-n';; | |
473 | esac | |
b57f37fb | 474 | |
042acc47 WP |
475 | rm -f conf$$ conf$$.exe conf$$.file |
476 | if test -d conf$$.dir; then | |
477 | rm -f conf$$.dir/conf$$.file | |
478 | else | |
479 | rm -f conf$$.dir | |
480 | mkdir conf$$.dir 2>/dev/null | |
b57f37fb | 481 | fi |
042acc47 WP |
482 | if (echo >conf$$.file) 2>/dev/null; then |
483 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
484 | as_ln_s='ln -s' | |
485 | # ... but there are two gotchas: | |
486 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
487 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
488 | # In both cases, we have to default to `cp -p'. | |
489 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
490 | as_ln_s='cp -p' | |
491 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
492 | as_ln_s=ln | |
493 | else | |
494 | as_ln_s='cp -p' | |
495 | fi | |
b57f37fb | 496 | else |
042acc47 | 497 | as_ln_s='cp -p' |
b57f37fb | 498 | fi |
042acc47 WP |
499 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
500 | rmdir conf$$.dir 2>/dev/null | |
b57f37fb | 501 | |
042acc47 WP |
502 | if mkdir -p . 2>/dev/null; then |
503 | as_mkdir_p='mkdir -p "$as_dir"' | |
504 | else | |
505 | test -d ./-p && rmdir ./-p | |
506 | as_mkdir_p=false | |
b57f37fb WP |
507 | fi |
508 | ||
042acc47 WP |
509 | if test -x / >/dev/null 2>&1; then |
510 | as_test_x='test -x' | |
b57f37fb | 511 | else |
042acc47 WP |
512 | if ls -dL / >/dev/null 2>&1; then |
513 | as_ls_L_option=L | |
514 | else | |
515 | as_ls_L_option= | |
516 | fi | |
517 | as_test_x=' | |
518 | eval sh -c '\'' | |
519 | if test -d "$1"; then | |
520 | test -d "$1/."; | |
521 | else | |
522 | case $1 in #( | |
523 | -*)set "./$1";; | |
524 | esac; | |
525 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
526 | ???[sx]*):;;*)false;;esac;fi | |
527 | '\'' sh | |
528 | ' | |
b57f37fb | 529 | fi |
042acc47 | 530 | as_executable_p=$as_test_x |
b57f37fb | 531 | |
042acc47 WP |
532 | # Sed expression to map a string onto a valid CPP name. |
533 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
b57f37fb | 534 | |
042acc47 WP |
535 | # Sed expression to map a string onto a valid variable name. |
536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
b57f37fb WP |
537 | |
538 | ||
539 | ||
540 | # Check that we are running under the correct shell. | |
541 | SHELL=${CONFIG_SHELL-/bin/sh} | |
542 | ||
042acc47 | 543 | case X$lt_ECHO in |
b57f37fb WP |
544 | X*--fallback-echo) |
545 | # Remove one level of quotation (which was required for Make). | |
042acc47 | 546 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
b57f37fb WP |
547 | ;; |
548 | esac | |
549 | ||
042acc47 | 550 | ECHO=${lt_ECHO-echo} |
b57f37fb WP |
551 | if test "X$1" = X--no-reexec; then |
552 | # Discard the --no-reexec flag, and continue. | |
553 | shift | |
554 | elif test "X$1" = X--fallback-echo; then | |
555 | # Avoid inline document here, it may be left over | |
556 | : | |
042acc47 WP |
557 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
558 | # Yippee, $ECHO works! | |
b57f37fb WP |
559 | : |
560 | else | |
561 | # Restart under the correct shell. | |
562 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
563 | fi | |
564 | ||
565 | if test "X$1" = X--fallback-echo; then | |
566 | # used as fallback echo | |
567 | shift | |
042acc47 | 568 | cat <<_LT_EOF |
b57f37fb | 569 | $* |
042acc47 | 570 | _LT_EOF |
b57f37fb WP |
571 | exit 0 |
572 | fi | |
573 | ||
574 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
575 | # if CDPATH is set. | |
576 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
577 | ||
042acc47 WP |
578 | if test -z "$lt_ECHO"; then |
579 | if test "X${echo_test_string+set}" != Xset; then | |
580 | # find a string as large as possible, as long as the shell can cope with it | |
581 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
582 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
583 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
584 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
585 | then | |
586 | break | |
587 | fi | |
588 | done | |
589 | fi | |
b57f37fb | 590 | |
042acc47 WP |
591 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
592 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
593 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
594 | : | |
595 | else | |
596 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
597 | # backslashes. This makes it impossible to quote backslashes using | |
598 | # echo "$something" | sed 's/\\/\\\\/g' | |
599 | # | |
600 | # So, first we look for a working echo in the user's PATH. | |
b57f37fb | 601 | |
042acc47 WP |
602 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
603 | for dir in $PATH /usr/ucb; do | |
604 | IFS="$lt_save_ifs" | |
605 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
606 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
607 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
608 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
609 | ECHO="$dir/echo" | |
610 | break | |
611 | fi | |
612 | done | |
b57f37fb | 613 | IFS="$lt_save_ifs" |
b57f37fb | 614 | |
042acc47 WP |
615 | if test "X$ECHO" = Xecho; then |
616 | # We didn't find a better echo, so look for alternatives. | |
617 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
618 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
619 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
620 | # This shell has a builtin print -r that does the trick. | |
621 | ECHO='print -r' | |
622 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
623 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
624 | # If we have ksh, try running configure again with it. | |
625 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
626 | export ORIGINAL_CONFIG_SHELL | |
627 | CONFIG_SHELL=/bin/ksh | |
628 | export CONFIG_SHELL | |
629 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
b57f37fb | 630 | else |
042acc47 WP |
631 | # Try using printf. |
632 | ECHO='printf %s\n' | |
633 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
634 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
635 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
636 | # Cool, printf works | |
637 | : | |
638 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
639 | test "X$echo_testing_string" = 'X\t' && | |
640 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
641 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
642 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
643 | export CONFIG_SHELL | |
644 | SHELL="$CONFIG_SHELL" | |
645 | export SHELL | |
646 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
647 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
648 | test "X$echo_testing_string" = 'X\t' && | |
649 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
650 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
651 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
652 | else | |
653 | # maybe with a smaller string... | |
654 | prev=: | |
b57f37fb | 655 | |
042acc47 WP |
656 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
657 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
658 | then | |
659 | break | |
660 | fi | |
661 | prev="$cmd" | |
662 | done | |
b57f37fb | 663 | |
042acc47 WP |
664 | if test "$prev" != 'sed 50q "$0"'; then |
665 | echo_test_string=`eval $prev` | |
666 | export echo_test_string | |
667 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
668 | else | |
669 | # Oops. We lost completely, so just stick with echo. | |
670 | ECHO=echo | |
671 | fi | |
672 | fi | |
b57f37fb WP |
673 | fi |
674 | fi | |
675 | fi | |
676 | fi | |
b57f37fb WP |
677 | |
678 | # Copy echo and quote the copy suitably for passing to libtool from | |
679 | # the Makefile, instead of quoting the original, which is used later. | |
042acc47 WP |
680 | lt_ECHO=$ECHO |
681 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
682 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
b57f37fb WP |
683 | fi |
684 | ||
685 | ||
686 | ||
687 | ||
1800d973 WP |
688 | test -n "$DJDIR" || exec 7<&0 </dev/null |
689 | exec 6>&1 | |
b57f37fb WP |
690 | |
691 | # Name of the host. | |
12e39525 | 692 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b57f37fb WP |
693 | # so uname gets run too. |
694 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
695 | ||
696 | # | |
697 | # Initializations. | |
698 | # | |
699 | ac_default_prefix=/usr/local | |
700 | ac_clean_files= | |
701 | ac_config_libobj_dir=. | |
702 | LIBOBJS= | |
703 | cross_compiling=no | |
704 | subdirs= | |
705 | MFLAGS= | |
706 | MAKEFLAGS= | |
b57f37fb WP |
707 | |
708 | # Identity of this package. | |
709 | PACKAGE_NAME='libratbox' | |
710 | PACKAGE_TARNAME='libratbox' | |
711 | PACKAGE_VERSION='devel' | |
712 | PACKAGE_STRING='libratbox devel' | |
713 | PACKAGE_BUGREPORT='' | |
042acc47 | 714 | PACKAGE_URL='' |
b57f37fb WP |
715 | |
716 | ac_default_prefix=/usr/local/libratbox | |
717 | # Factoring default headers for most tests. | |
718 | ac_includes_default="\ | |
719 | #include <stdio.h> | |
720 | #ifdef HAVE_SYS_TYPES_H | |
721 | # include <sys/types.h> | |
722 | #endif | |
723 | #ifdef HAVE_SYS_STAT_H | |
724 | # include <sys/stat.h> | |
725 | #endif | |
726 | #ifdef STDC_HEADERS | |
727 | # include <stdlib.h> | |
728 | # include <stddef.h> | |
729 | #else | |
730 | # ifdef HAVE_STDLIB_H | |
731 | # include <stdlib.h> | |
732 | # endif | |
733 | #endif | |
734 | #ifdef HAVE_STRING_H | |
735 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
736 | # include <memory.h> | |
737 | # endif | |
738 | # include <string.h> | |
739 | #endif | |
740 | #ifdef HAVE_STRINGS_H | |
741 | # include <strings.h> | |
742 | #endif | |
743 | #ifdef HAVE_INTTYPES_H | |
744 | # include <inttypes.h> | |
745 | #endif | |
746 | #ifdef HAVE_STDINT_H | |
747 | # include <stdint.h> | |
748 | #endif | |
749 | #ifdef HAVE_UNISTD_H | |
750 | # include <unistd.h> | |
751 | #endif" | |
752 | ||
1800d973 | 753 | ac_header_list= |
042acc47 WP |
754 | ac_subst_vars='am__EXEEXT_FALSE |
755 | am__EXEEXT_TRUE | |
756 | LTLIBOBJS | |
f030cae8 VY |
757 | LIBOBJS |
758 | RB_PREFIX | |
759 | SSL_LIBS | |
760 | SSL_CFLAGS | |
761 | SEDOBJ | |
762 | PICFLAGS | |
763 | GNUTLS_LIBS | |
764 | GNUTLS_CFLAGS | |
765 | PKG_CONFIG | |
766 | ALLOCA | |
f030cae8 VY |
767 | MINGW_FALSE |
768 | MINGW_TRUE | |
042acc47 WP |
769 | OTOOL64 |
770 | OTOOL | |
771 | LIPO | |
f030cae8 VY |
772 | NMEDIT |
773 | DSYMUTIL | |
042acc47 | 774 | lt_ECHO |
f030cae8 VY |
775 | RANLIB |
776 | AR | |
042acc47 | 777 | OBJDUMP |
f030cae8 | 778 | LN_S |
042acc47 WP |
779 | NM |
780 | ac_ct_DUMPBIN | |
781 | DUMPBIN | |
782 | LD | |
783 | FGREP | |
f030cae8 VY |
784 | host_os |
785 | host_vendor | |
786 | host_cpu | |
787 | host | |
788 | build_os | |
789 | build_vendor | |
790 | build_cpu | |
791 | build | |
042acc47 | 792 | LIBTOOL |
f030cae8 VY |
793 | TOUCH |
794 | LN | |
795 | MV | |
796 | CP | |
797 | RM | |
798 | AS | |
799 | MAINT | |
800 | MAINTAINER_MODE_FALSE | |
801 | MAINTAINER_MODE_TRUE | |
802 | SED | |
803 | EGREP | |
804 | GREP | |
805 | CPP | |
806 | am__fastdepCC_FALSE | |
807 | am__fastdepCC_TRUE | |
808 | CCDEPMODE | |
809 | AMDEPBACKSLASH | |
810 | AMDEP_FALSE | |
811 | AMDEP_TRUE | |
812 | am__quote | |
813 | am__include | |
814 | DEPDIR | |
815 | OBJEXT | |
816 | EXEEXT | |
817 | ac_ct_CC | |
818 | CPPFLAGS | |
819 | LDFLAGS | |
820 | CFLAGS | |
821 | CC | |
822 | am__untar | |
823 | am__tar | |
824 | AMTAR | |
825 | am__leading_dot | |
826 | SET_MAKE | |
827 | AWK | |
828 | mkdir_p | |
829 | MKDIR_P | |
830 | INSTALL_STRIP_PROGRAM | |
831 | STRIP | |
832 | install_sh | |
833 | MAKEINFO | |
834 | AUTOHEADER | |
835 | AUTOMAKE | |
836 | AUTOCONF | |
837 | ACLOCAL | |
838 | VERSION | |
839 | PACKAGE | |
840 | CYGPATH_W | |
841 | am__isrc | |
842 | INSTALL_DATA | |
843 | INSTALL_SCRIPT | |
844 | INSTALL_PROGRAM | |
845 | target_alias | |
846 | host_alias | |
b57f37fb | 847 | build_alias |
f030cae8 VY |
848 | LIBS |
849 | ECHO_T | |
850 | ECHO_N | |
851 | ECHO_C | |
852 | DEFS | |
853 | mandir | |
854 | localedir | |
855 | libdir | |
856 | psdir | |
857 | pdfdir | |
858 | dvidir | |
859 | htmldir | |
860 | infodir | |
861 | docdir | |
862 | oldincludedir | |
863 | includedir | |
864 | localstatedir | |
865 | sharedstatedir | |
866 | sysconfdir | |
867 | datadir | |
868 | datarootdir | |
869 | libexecdir | |
870 | sbindir | |
871 | bindir | |
872 | program_transform_name | |
873 | prefix | |
874 | exec_prefix | |
042acc47 | 875 | PACKAGE_URL |
f030cae8 VY |
876 | PACKAGE_BUGREPORT |
877 | PACKAGE_STRING | |
878 | PACKAGE_VERSION | |
879 | PACKAGE_TARNAME | |
880 | PACKAGE_NAME | |
881 | PATH_SEPARATOR | |
882 | SHELL' | |
883 | ac_subst_files='' | |
884 | ac_user_opts=' | |
885 | enable_option_checking | |
886 | enable_dependency_tracking | |
887 | enable_static | |
888 | enable_shared | |
889 | enable_maintainer_mode | |
042acc47 | 890 | with_pic |
f030cae8 VY |
891 | enable_fast_install |
892 | with_gnu_ld | |
893 | enable_libtool_lock | |
f030cae8 VY |
894 | enable_ipv6 |
895 | enable_openssl | |
896 | enable_gnutls | |
897 | enable_assert | |
898 | enable_profile | |
899 | enable_balloc | |
900 | enable_warnings | |
901 | ' | |
902 | ac_precious_vars='build_alias | |
b57f37fb WP |
903 | host_alias |
904 | target_alias | |
b57f37fb WP |
905 | CC |
906 | CFLAGS | |
907 | LDFLAGS | |
f030cae8 | 908 | LIBS |
b57f37fb | 909 | CPPFLAGS |
b57f37fb | 910 | CPP |
dd910409 WP |
911 | PKG_CONFIG |
912 | GNUTLS_CFLAGS | |
913 | GNUTLS_LIBS' | |
94b4fbf9 | 914 | |
b57f37fb WP |
915 | |
916 | # Initialize some variables set by options. | |
917 | ac_init_help= | |
918 | ac_init_version=false | |
f030cae8 VY |
919 | ac_unrecognized_opts= |
920 | ac_unrecognized_sep= | |
b57f37fb WP |
921 | # The variables have the same names as the options, with |
922 | # dashes changed to underlines. | |
923 | cache_file=/dev/null | |
924 | exec_prefix=NONE | |
925 | no_create= | |
926 | no_recursion= | |
927 | prefix=NONE | |
928 | program_prefix=NONE | |
929 | program_suffix=NONE | |
930 | program_transform_name=s,x,x, | |
931 | silent= | |
932 | site= | |
933 | srcdir= | |
934 | verbose= | |
935 | x_includes=NONE | |
936 | x_libraries=NONE | |
937 | ||
938 | # Installation directory options. | |
939 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
940 | # and all the variables that are supposed to be based on exec_prefix | |
941 | # by default will actually change. | |
942 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
943 | # (The list follows the same order as the GNU Coding Standards.) | |
944 | bindir='${exec_prefix}/bin' | |
945 | sbindir='${exec_prefix}/sbin' | |
946 | libexecdir='${exec_prefix}/libexec' | |
947 | datarootdir='${prefix}/share' | |
948 | datadir='${datarootdir}' | |
949 | sysconfdir='${prefix}/etc' | |
950 | sharedstatedir='${prefix}/com' | |
951 | localstatedir='${prefix}/var' | |
952 | includedir='${prefix}/include' | |
953 | oldincludedir='/usr/include' | |
954 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
955 | infodir='${datarootdir}/info' | |
956 | htmldir='${docdir}' | |
957 | dvidir='${docdir}' | |
958 | pdfdir='${docdir}' | |
959 | psdir='${docdir}' | |
960 | libdir='${exec_prefix}/lib' | |
961 | localedir='${datarootdir}/locale' | |
962 | mandir='${datarootdir}/man' | |
963 | ||
964 | ac_prev= | |
965 | ac_dashdash= | |
966 | for ac_option | |
967 | do | |
968 | # If the previous option needs an argument, assign it. | |
969 | if test -n "$ac_prev"; then | |
970 | eval $ac_prev=\$ac_option | |
971 | ac_prev= | |
972 | continue | |
973 | fi | |
974 | ||
975 | case $ac_option in | |
12e39525 JH |
976 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
977 | *=) ac_optarg= ;; | |
978 | *) ac_optarg=yes ;; | |
b57f37fb WP |
979 | esac |
980 | ||
981 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
982 | ||
983 | case $ac_dashdash$ac_option in | |
984 | --) | |
985 | ac_dashdash=yes ;; | |
986 | ||
987 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
988 | ac_prev=bindir ;; | |
989 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
990 | bindir=$ac_optarg ;; | |
991 | ||
992 | -build | --build | --buil | --bui | --bu) | |
993 | ac_prev=build_alias ;; | |
994 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
995 | build_alias=$ac_optarg ;; | |
996 | ||
997 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
998 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
999 | ac_prev=cache_file ;; | |
1000 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1001 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1002 | cache_file=$ac_optarg ;; | |
1003 | ||
1004 | --config-cache | -C) | |
1005 | cache_file=config.cache ;; | |
1006 | ||
1007 | -datadir | --datadir | --datadi | --datad) | |
1008 | ac_prev=datadir ;; | |
1009 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1010 | datadir=$ac_optarg ;; | |
1011 | ||
1012 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1013 | | --dataroo | --dataro | --datar) | |
1014 | ac_prev=datarootdir ;; | |
1015 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1016 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1017 | datarootdir=$ac_optarg ;; | |
1018 | ||
1019 | -disable-* | --disable-*) | |
f030cae8 | 1020 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b57f37fb | 1021 | # Reject names that are not valid shell variable names. |
f030cae8 | 1022 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
12e39525 | 1023 | as_fn_error $? "invalid feature name: $ac_useropt" |
f030cae8 VY |
1024 | ac_useropt_orig=$ac_useropt |
1025 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1026 | case $ac_user_opts in | |
1027 | *" | |
1028 | "enable_$ac_useropt" | |
1029 | "*) ;; | |
1030 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1031 | ac_unrecognized_sep=', ';; | |
1032 | esac | |
1033 | eval enable_$ac_useropt=no ;; | |
b57f37fb WP |
1034 | |
1035 | -docdir | --docdir | --docdi | --doc | --do) | |
1036 | ac_prev=docdir ;; | |
1037 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1038 | docdir=$ac_optarg ;; | |
1039 | ||
1040 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1041 | ac_prev=dvidir ;; | |
1042 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1043 | dvidir=$ac_optarg ;; | |
1044 | ||
1045 | -enable-* | --enable-*) | |
f030cae8 | 1046 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b57f37fb | 1047 | # Reject names that are not valid shell variable names. |
f030cae8 | 1048 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
12e39525 | 1049 | as_fn_error $? "invalid feature name: $ac_useropt" |
f030cae8 VY |
1050 | ac_useropt_orig=$ac_useropt |
1051 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1052 | case $ac_user_opts in | |
1053 | *" | |
1054 | "enable_$ac_useropt" | |
1055 | "*) ;; | |
1056 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1057 | ac_unrecognized_sep=', ';; | |
1058 | esac | |
1059 | eval enable_$ac_useropt=\$ac_optarg ;; | |
b57f37fb WP |
1060 | |
1061 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1062 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1063 | | --exec | --exe | --ex) | |
1064 | ac_prev=exec_prefix ;; | |
1065 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1066 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1067 | | --exec=* | --exe=* | --ex=*) | |
1068 | exec_prefix=$ac_optarg ;; | |
1069 | ||
1070 | -gas | --gas | --ga | --g) | |
1071 | # Obsolete; use --with-gas. | |
1072 | with_gas=yes ;; | |
1073 | ||
1074 | -help | --help | --hel | --he | -h) | |
1075 | ac_init_help=long ;; | |
1076 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1077 | ac_init_help=recursive ;; | |
1078 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1079 | ac_init_help=short ;; | |
1080 | ||
1081 | -host | --host | --hos | --ho) | |
1082 | ac_prev=host_alias ;; | |
1083 | -host=* | --host=* | --hos=* | --ho=*) | |
1084 | host_alias=$ac_optarg ;; | |
1085 | ||
1086 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1087 | ac_prev=htmldir ;; | |
1088 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1089 | | --ht=*) | |
1090 | htmldir=$ac_optarg ;; | |
1091 | ||
1092 | -includedir | --includedir | --includedi | --included | --include \ | |
1093 | | --includ | --inclu | --incl | --inc) | |
1094 | ac_prev=includedir ;; | |
1095 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1096 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1097 | includedir=$ac_optarg ;; | |
1098 | ||
1099 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1100 | ac_prev=infodir ;; | |
1101 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1102 | infodir=$ac_optarg ;; | |
1103 | ||
1104 | -libdir | --libdir | --libdi | --libd) | |
1105 | ac_prev=libdir ;; | |
1106 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1107 | libdir=$ac_optarg ;; | |
1108 | ||
1109 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1110 | | --libexe | --libex | --libe) | |
1111 | ac_prev=libexecdir ;; | |
1112 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1113 | | --libexe=* | --libex=* | --libe=*) | |
1114 | libexecdir=$ac_optarg ;; | |
1115 | ||
1116 | -localedir | --localedir | --localedi | --localed | --locale) | |
1117 | ac_prev=localedir ;; | |
1118 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1119 | localedir=$ac_optarg ;; | |
1120 | ||
1121 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1122 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1123 | ac_prev=localstatedir ;; | |
1124 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1125 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1126 | localstatedir=$ac_optarg ;; | |
1127 | ||
1128 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1129 | ac_prev=mandir ;; | |
1130 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1131 | mandir=$ac_optarg ;; | |
1132 | ||
1133 | -nfp | --nfp | --nf) | |
1134 | # Obsolete; use --without-fp. | |
1135 | with_fp=no ;; | |
1136 | ||
1137 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1138 | | --no-cr | --no-c | -n) | |
1139 | no_create=yes ;; | |
1140 | ||
1141 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1142 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1143 | no_recursion=yes ;; | |
1144 | ||
1145 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1146 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1147 | | --oldin | --oldi | --old | --ol | --o) | |
1148 | ac_prev=oldincludedir ;; | |
1149 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1150 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1151 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1152 | oldincludedir=$ac_optarg ;; | |
1153 | ||
1154 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1155 | ac_prev=prefix ;; | |
1156 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1157 | prefix=$ac_optarg ;; | |
1158 | ||
1159 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1160 | | --program-pre | --program-pr | --program-p) | |
1161 | ac_prev=program_prefix ;; | |
1162 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1163 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1164 | program_prefix=$ac_optarg ;; | |
1165 | ||
1166 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1167 | | --program-suf | --program-su | --program-s) | |
1168 | ac_prev=program_suffix ;; | |
1169 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1170 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1171 | program_suffix=$ac_optarg ;; | |
1172 | ||
1173 | -program-transform-name | --program-transform-name \ | |
1174 | | --program-transform-nam | --program-transform-na \ | |
1175 | | --program-transform-n | --program-transform- \ | |
1176 | | --program-transform | --program-transfor \ | |
1177 | | --program-transfo | --program-transf \ | |
1178 | | --program-trans | --program-tran \ | |
1179 | | --progr-tra | --program-tr | --program-t) | |
1180 | ac_prev=program_transform_name ;; | |
1181 | -program-transform-name=* | --program-transform-name=* \ | |
1182 | | --program-transform-nam=* | --program-transform-na=* \ | |
1183 | | --program-transform-n=* | --program-transform-=* \ | |
1184 | | --program-transform=* | --program-transfor=* \ | |
1185 | | --program-transfo=* | --program-transf=* \ | |
1186 | | --program-trans=* | --program-tran=* \ | |
1187 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1188 | program_transform_name=$ac_optarg ;; | |
1189 | ||
1190 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1191 | ac_prev=pdfdir ;; | |
1192 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1193 | pdfdir=$ac_optarg ;; | |
1194 | ||
1195 | -psdir | --psdir | --psdi | --psd | --ps) | |
1196 | ac_prev=psdir ;; | |
1197 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1198 | psdir=$ac_optarg ;; | |
1199 | ||
1200 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1201 | | -silent | --silent | --silen | --sile | --sil) | |
1202 | silent=yes ;; | |
1203 | ||
1204 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1205 | ac_prev=sbindir ;; | |
1206 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1207 | | --sbi=* | --sb=*) | |
1208 | sbindir=$ac_optarg ;; | |
1209 | ||
1210 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1211 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1212 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1213 | | --sha | --sh) | |
1214 | ac_prev=sharedstatedir ;; | |
1215 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1216 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1217 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1218 | | --sha=* | --sh=*) | |
1219 | sharedstatedir=$ac_optarg ;; | |
1220 | ||
1221 | -site | --site | --sit) | |
1222 | ac_prev=site ;; | |
1223 | -site=* | --site=* | --sit=*) | |
1224 | site=$ac_optarg ;; | |
1225 | ||
1226 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1227 | ac_prev=srcdir ;; | |
1228 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1229 | srcdir=$ac_optarg ;; | |
1230 | ||
1231 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1232 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1233 | ac_prev=sysconfdir ;; | |
1234 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1235 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1236 | sysconfdir=$ac_optarg ;; | |
1237 | ||
1238 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1239 | ac_prev=target_alias ;; | |
1240 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1241 | target_alias=$ac_optarg ;; | |
1242 | ||
1243 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1244 | verbose=yes ;; | |
1245 | ||
1246 | -version | --version | --versio | --versi | --vers | -V) | |
1247 | ac_init_version=: ;; | |
1248 | ||
1249 | -with-* | --with-*) | |
f030cae8 | 1250 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b57f37fb | 1251 | # Reject names that are not valid shell variable names. |
f030cae8 | 1252 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
12e39525 | 1253 | as_fn_error $? "invalid package name: $ac_useropt" |
f030cae8 VY |
1254 | ac_useropt_orig=$ac_useropt |
1255 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1256 | case $ac_user_opts in | |
1257 | *" | |
1258 | "with_$ac_useropt" | |
1259 | "*) ;; | |
1260 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1261 | ac_unrecognized_sep=', ';; | |
1262 | esac | |
1263 | eval with_$ac_useropt=\$ac_optarg ;; | |
b57f37fb WP |
1264 | |
1265 | -without-* | --without-*) | |
f030cae8 | 1266 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b57f37fb | 1267 | # Reject names that are not valid shell variable names. |
f030cae8 | 1268 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
12e39525 | 1269 | as_fn_error $? "invalid package name: $ac_useropt" |
f030cae8 VY |
1270 | ac_useropt_orig=$ac_useropt |
1271 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1272 | case $ac_user_opts in | |
1273 | *" | |
1274 | "with_$ac_useropt" | |
1275 | "*) ;; | |
1276 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1277 | ac_unrecognized_sep=', ';; | |
1278 | esac | |
1279 | eval with_$ac_useropt=no ;; | |
b57f37fb WP |
1280 | |
1281 | --x) | |
1282 | # Obsolete; use --with-x. | |
1283 | with_x=yes ;; | |
1284 | ||
1285 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1286 | | --x-incl | --x-inc | --x-in | --x-i) | |
1287 | ac_prev=x_includes ;; | |
1288 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1289 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1290 | x_includes=$ac_optarg ;; | |
1291 | ||
1292 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1293 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1294 | ac_prev=x_libraries ;; | |
1295 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1296 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1297 | x_libraries=$ac_optarg ;; | |
1298 | ||
12e39525 JH |
1299 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1300 | Try \`$0 --help' for more information" | |
b57f37fb WP |
1301 | ;; |
1302 | ||
1303 | *=*) | |
1304 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1305 | # Reject names that are not valid shell variable names. | |
042acc47 WP |
1306 | case $ac_envvar in #( |
1307 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
12e39525 | 1308 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
042acc47 | 1309 | esac |
b57f37fb WP |
1310 | eval $ac_envvar=\$ac_optarg |
1311 | export $ac_envvar ;; | |
1312 | ||
1313 | *) | |
1314 | # FIXME: should be removed in autoconf 3.0. | |
f030cae8 | 1315 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b57f37fb | 1316 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
f030cae8 | 1317 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
12e39525 | 1318 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
b57f37fb WP |
1319 | ;; |
1320 | ||
1321 | esac | |
1322 | done | |
1323 | ||
1324 | if test -n "$ac_prev"; then | |
1325 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
12e39525 | 1326 | as_fn_error $? "missing argument to $ac_option" |
b57f37fb WP |
1327 | fi |
1328 | ||
f030cae8 VY |
1329 | if test -n "$ac_unrecognized_opts"; then |
1330 | case $enable_option_checking in | |
1331 | no) ;; | |
12e39525 | 1332 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
f030cae8 VY |
1333 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1334 | esac | |
1335 | fi | |
1336 | ||
1337 | # Check all directory arguments for consistency. | |
b57f37fb WP |
1338 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1339 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1340 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1341 | libdir localedir mandir | |
1342 | do | |
1343 | eval ac_val=\$$ac_var | |
f030cae8 VY |
1344 | # Remove trailing slashes. |
1345 | case $ac_val in | |
1346 | */ ) | |
1347 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1348 | eval $ac_var=\$ac_val;; | |
1349 | esac | |
1350 | # Be sure to have absolute directory names. | |
b57f37fb WP |
1351 | case $ac_val in |
1352 | [\\/$]* | ?:[\\/]* ) continue;; | |
1353 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1354 | esac | |
12e39525 | 1355 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
b57f37fb WP |
1356 | done |
1357 | ||
1358 | # There might be people who depend on the old broken behavior: `$host' | |
1359 | # used to hold the argument of --host etc. | |
1360 | # FIXME: To remove some day. | |
1361 | build=$build_alias | |
1362 | host=$host_alias | |
1363 | target=$target_alias | |
1364 | ||
1365 | # FIXME: To remove some day. | |
1366 | if test "x$host_alias" != x; then | |
1367 | if test "x$build_alias" = x; then | |
1368 | cross_compiling=maybe | |
12e39525 JH |
1369 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1370 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
b57f37fb WP |
1371 | elif test "x$build_alias" != "x$host_alias"; then |
1372 | cross_compiling=yes | |
1373 | fi | |
1374 | fi | |
1375 | ||
1376 | ac_tool_prefix= | |
1377 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1378 | ||
1379 | test "$silent" = yes && exec 6>/dev/null | |
1380 | ||
1381 | ||
1382 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1383 | ac_ls_di=`ls -di .` && | |
1384 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
12e39525 | 1385 | as_fn_error $? "working directory cannot be determined" |
b57f37fb | 1386 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
12e39525 | 1387 | as_fn_error $? "pwd does not report name of working directory" |
b57f37fb WP |
1388 | |
1389 | ||
1390 | # Find the source files, if location was not specified. | |
1391 | if test -z "$srcdir"; then | |
1392 | ac_srcdir_defaulted=yes | |
1393 | # Try the directory containing this script, then the parent directory. | |
f030cae8 VY |
1394 | ac_confdir=`$as_dirname -- "$as_myself" || |
1395 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1396 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1397 | X"$as_myself" : 'X\(//\)$' \| \ | |
1398 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1399 | $as_echo X"$as_myself" | | |
b57f37fb WP |
1400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1401 | s//\1/ | |
1402 | q | |
1403 | } | |
1404 | /^X\(\/\/\)[^/].*/{ | |
1405 | s//\1/ | |
1406 | q | |
1407 | } | |
1408 | /^X\(\/\/\)$/{ | |
1409 | s//\1/ | |
1410 | q | |
1411 | } | |
1412 | /^X\(\/\).*/{ | |
1413 | s//\1/ | |
1414 | q | |
1415 | } | |
1416 | s/.*/./; q'` | |
1417 | srcdir=$ac_confdir | |
1418 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1419 | srcdir=.. | |
1420 | fi | |
1421 | else | |
1422 | ac_srcdir_defaulted=no | |
1423 | fi | |
1424 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1425 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
12e39525 | 1426 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
b57f37fb WP |
1427 | fi |
1428 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1429 | ac_abs_confdir=`( | |
12e39525 | 1430 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
b57f37fb WP |
1431 | pwd)` |
1432 | # When building in place, set srcdir=. | |
1433 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1434 | srcdir=. | |
1435 | fi | |
1436 | # Remove unnecessary trailing slashes from srcdir. | |
1437 | # Double slashes in file names in object file debugging info | |
1438 | # mess up M-x gdb in Emacs. | |
1439 | case $srcdir in | |
1440 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1441 | esac | |
1442 | for ac_var in $ac_precious_vars; do | |
1443 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1444 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1445 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1446 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1447 | done | |
1448 | ||
1449 | # | |
1450 | # Report the --help message. | |
1451 | # | |
1452 | if test "$ac_init_help" = "long"; then | |
1453 | # Omit some internal or obsolete options to make the list less imposing. | |
1454 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1455 | cat <<_ACEOF | |
1456 | \`configure' configures libratbox devel to adapt to many kinds of systems. | |
1457 | ||
1458 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1459 | ||
1460 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1461 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1462 | ||
1463 | Defaults for the options are specified in brackets. | |
1464 | ||
1465 | Configuration: | |
1466 | -h, --help display this help and exit | |
1467 | --help=short display options specific to this package | |
1468 | --help=recursive display the short help of all the included packages | |
1469 | -V, --version display version information and exit | |
12e39525 | 1470 | -q, --quiet, --silent do not print \`checking ...' messages |
b57f37fb WP |
1471 | --cache-file=FILE cache test results in FILE [disabled] |
1472 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1473 | -n, --no-create do not create output files | |
1474 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1475 | ||
1476 | Installation directories: | |
1477 | --prefix=PREFIX install architecture-independent files in PREFIX | |
f030cae8 | 1478 | [$ac_default_prefix] |
b57f37fb | 1479 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
f030cae8 | 1480 | [PREFIX] |
b57f37fb WP |
1481 | |
1482 | By default, \`make install' will install all the files in | |
1483 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1484 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1485 | for instance \`--prefix=\$HOME'. | |
1486 | ||
1487 | For better control, use the options below. | |
1488 | ||
1489 | Fine tuning of the installation directories: | |
f030cae8 VY |
1490 | --bindir=DIR user executables [EPREFIX/bin] |
1491 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1492 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1493 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1494 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1495 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1496 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1497 | --includedir=DIR C header files [PREFIX/include] | |
1498 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1499 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1500 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1501 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1502 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1503 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1504 | --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox] | |
1505 | --htmldir=DIR html documentation [DOCDIR] | |
1506 | --dvidir=DIR dvi documentation [DOCDIR] | |
1507 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1508 | --psdir=DIR ps documentation [DOCDIR] | |
b57f37fb WP |
1509 | _ACEOF |
1510 | ||
1511 | cat <<\_ACEOF | |
1512 | ||
1513 | Program names: | |
1514 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1515 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1516 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1517 | ||
1518 | System types: | |
1519 | --build=BUILD configure for building on BUILD [guessed] | |
1520 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1521 | _ACEOF | |
1522 | fi | |
1523 | ||
1524 | if test -n "$ac_init_help"; then | |
1525 | case $ac_init_help in | |
1526 | short | recursive ) echo "Configuration of libratbox devel:";; | |
1527 | esac | |
1528 | cat <<\_ACEOF | |
1529 | ||
1530 | Optional Features: | |
f030cae8 | 1531 | --disable-option-checking ignore unrecognized --enable/--with options |
b57f37fb WP |
1532 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1533 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1534 | --disable-dependency-tracking speeds up one-time build | |
1535 | --enable-dependency-tracking do not reject slow dependency extractors | |
1536 | --enable-static[=PKGS] build static libraries [default=no] | |
1537 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1538 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1539 | (and sometimes confusing) to the casual installer | |
1540 | --enable-fast-install[=PKGS] | |
1541 | optimize for fast installation [default=yes] | |
1542 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1543 | --disable-ipv6 Disable IPv6 support | |
1544 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1545 | --disable-openssl Disable OpenSSL support. | |
033be687 VY |
1546 | --enable-gnutls Enable GnuTLS support. |
1547 | --disable-gnutls Disable GnuTLS support. | |
b57f37fb WP |
1548 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1549 | hard(aborts the daemon) | |
1550 | --enable-profile Enable profiling | |
1551 | --disable-balloc Disable the block allocator. | |
1552 | --enable-warnings Enable all sorts of warnings for debugging. | |
1553 | ||
1554 | Optional Packages: | |
1555 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1556 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b57f37fb WP |
1557 | --with-pic try to use only PIC/non-PIC objects [default=use |
1558 | both] | |
042acc47 | 1559 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
b57f37fb WP |
1560 | |
1561 | Some influential environment variables: | |
1562 | CC C compiler command | |
1563 | CFLAGS C compiler flags | |
1564 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1565 | nonstandard directory <lib dir> | |
1566 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1800d973 | 1567 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
b57f37fb WP |
1568 | you have headers in a nonstandard directory <include dir> |
1569 | CPP C preprocessor | |
dd910409 WP |
1570 | PKG_CONFIG path to pkg-config utility |
1571 | GNUTLS_CFLAGS | |
1572 | C compiler flags for GNUTLS, overriding pkg-config | |
1573 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config | |
b57f37fb WP |
1574 | |
1575 | Use these variables to override the choices made by `configure' or to help | |
1576 | it to find libraries and programs with nonstandard names/locations. | |
1577 | ||
042acc47 | 1578 | Report bugs to the package provider. |
b57f37fb WP |
1579 | _ACEOF |
1580 | ac_status=$? | |
1581 | fi | |
1582 | ||
1583 | if test "$ac_init_help" = "recursive"; then | |
1584 | # If there are subdirs, report their specific --help. | |
1585 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
f030cae8 VY |
1586 | test -d "$ac_dir" || |
1587 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1588 | continue | |
b57f37fb WP |
1589 | ac_builddir=. |
1590 | ||
1591 | case "$ac_dir" in | |
1592 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1593 | *) | |
f030cae8 | 1594 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
b57f37fb | 1595 | # A ".." for each directory in $ac_dir_suffix. |
f030cae8 | 1596 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
b57f37fb WP |
1597 | case $ac_top_builddir_sub in |
1598 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1599 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1600 | esac ;; | |
1601 | esac | |
1602 | ac_abs_top_builddir=$ac_pwd | |
1603 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1604 | # for backward compatibility: | |
1605 | ac_top_builddir=$ac_top_build_prefix | |
1606 | ||
1607 | case $srcdir in | |
1608 | .) # We are building in place. | |
1609 | ac_srcdir=. | |
1610 | ac_top_srcdir=$ac_top_builddir_sub | |
1611 | ac_abs_top_srcdir=$ac_pwd ;; | |
1612 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1613 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1614 | ac_top_srcdir=$srcdir | |
1615 | ac_abs_top_srcdir=$srcdir ;; | |
1616 | *) # Relative name. | |
1617 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1618 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1619 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1620 | esac | |
1621 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1622 | ||
1623 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1624 | # Check for guested configure. | |
1625 | if test -f "$ac_srcdir/configure.gnu"; then | |
1626 | echo && | |
1627 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1628 | elif test -f "$ac_srcdir/configure"; then | |
1629 | echo && | |
1630 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1631 | else | |
f030cae8 | 1632 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b57f37fb WP |
1633 | fi || ac_status=$? |
1634 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1635 | done | |
1636 | fi | |
1637 | ||
1638 | test -n "$ac_init_help" && exit $ac_status | |
1639 | if $ac_init_version; then | |
1640 | cat <<\_ACEOF | |
1641 | libratbox configure devel | |
12e39525 | 1642 | generated by GNU Autoconf 2.68 |
b57f37fb | 1643 | |
12e39525 | 1644 | Copyright (C) 2010 Free Software Foundation, Inc. |
b57f37fb WP |
1645 | This configure script is free software; the Free Software Foundation |
1646 | gives unlimited permission to copy, distribute and modify it. | |
1647 | ||
f030cae8 | 1648 | $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
b57f37fb WP |
1649 | _ACEOF |
1650 | exit | |
1651 | fi | |
042acc47 WP |
1652 | |
1653 | ## ------------------------ ## | |
1654 | ## Autoconf initialization. ## | |
1655 | ## ------------------------ ## | |
1656 | ||
1657 | # ac_fn_c_try_compile LINENO | |
1658 | # -------------------------- | |
1659 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1660 | ac_fn_c_try_compile () | |
1661 | { | |
1662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1663 | rm -f conftest.$ac_objext | |
1664 | if { { ac_try="$ac_compile" | |
1665 | case "(($ac_try" in | |
1666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1667 | *) ac_try_echo=$ac_try;; | |
1668 | esac | |
1669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1670 | $as_echo "$ac_try_echo"; } >&5 | |
1671 | (eval "$ac_compile") 2>conftest.err | |
1672 | ac_status=$? | |
1673 | if test -s conftest.err; then | |
1674 | grep -v '^ *+' conftest.err >conftest.er1 | |
1675 | cat conftest.er1 >&5 | |
1676 | mv -f conftest.er1 conftest.err | |
1677 | fi | |
1678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1679 | test $ac_status = 0; } && { | |
1680 | test -z "$ac_c_werror_flag" || | |
1681 | test ! -s conftest.err | |
1682 | } && test -s conftest.$ac_objext; then : | |
1683 | ac_retval=0 | |
1684 | else | |
1685 | $as_echo "$as_me: failed program was:" >&5 | |
1686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1687 | ||
1688 | ac_retval=1 | |
1689 | fi | |
12e39525 | 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1691 | as_fn_set_status $ac_retval |
042acc47 WP |
1692 | |
1693 | } # ac_fn_c_try_compile | |
1694 | ||
1695 | # ac_fn_c_try_cpp LINENO | |
1696 | # ---------------------- | |
1697 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1698 | ac_fn_c_try_cpp () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1702 | case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1709 | ac_status=$? | |
1710 | if test -s conftest.err; then | |
1711 | grep -v '^ *+' conftest.err >conftest.er1 | |
1712 | cat conftest.er1 >&5 | |
1713 | mv -f conftest.er1 conftest.err | |
1714 | fi | |
1715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12e39525 | 1716 | test $ac_status = 0; } > conftest.i && { |
042acc47 WP |
1717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1718 | test ! -s conftest.err | |
1719 | }; then : | |
1720 | ac_retval=0 | |
1721 | else | |
1722 | $as_echo "$as_me: failed program was:" >&5 | |
1723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1724 | ||
1725 | ac_retval=1 | |
1726 | fi | |
12e39525 | 1727 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1728 | as_fn_set_status $ac_retval |
042acc47 WP |
1729 | |
1730 | } # ac_fn_c_try_cpp | |
1731 | ||
1732 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1733 | # ------------------------------------------------------- | |
1734 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1735 | # the include files in INCLUDES and setting the cache variable VAR | |
1736 | # accordingly. | |
1737 | ac_fn_c_check_header_mongrel () | |
1738 | { | |
1739 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12e39525 | 1740 | if eval \${$3+:} false; then : |
042acc47 WP |
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1742 | $as_echo_n "checking for $2... " >&6; } | |
12e39525 | 1743 | if eval \${$3+:} false; then : |
042acc47 WP |
1744 | $as_echo_n "(cached) " >&6 |
1745 | fi | |
1746 | eval ac_res=\$$3 | |
1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1748 | $as_echo "$ac_res" >&6; } | |
1749 | else | |
1750 | # Is the header compilable? | |
1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1752 | $as_echo_n "checking $2 usability... " >&6; } | |
1753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1754 | /* end confdefs.h. */ | |
1755 | $4 | |
1756 | #include <$2> | |
1757 | _ACEOF | |
1758 | if ac_fn_c_try_compile "$LINENO"; then : | |
1759 | ac_header_compiler=yes | |
1760 | else | |
1761 | ac_header_compiler=no | |
1762 | fi | |
1763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1765 | $as_echo "$ac_header_compiler" >&6; } | |
1766 | ||
1767 | # Is the header present? | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1769 | $as_echo_n "checking $2 presence... " >&6; } | |
1770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1771 | /* end confdefs.h. */ | |
1772 | #include <$2> | |
1773 | _ACEOF | |
1774 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1775 | ac_header_preproc=yes | |
1776 | else | |
1777 | ac_header_preproc=no | |
1778 | fi | |
12e39525 | 1779 | rm -f conftest.err conftest.i conftest.$ac_ext |
042acc47 WP |
1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1781 | $as_echo "$ac_header_preproc" >&6; } | |
1782 | ||
1783 | # So? What about this header? | |
1784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1785 | yes:no: ) | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1787 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1789 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1790 | ;; | |
1791 | no:yes:* ) | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1793 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1795 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1797 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1799 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1801 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1802 | ;; | |
1803 | esac | |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1805 | $as_echo_n "checking for $2... " >&6; } | |
12e39525 | 1806 | if eval \${$3+:} false; then : |
042acc47 WP |
1807 | $as_echo_n "(cached) " >&6 |
1808 | else | |
1809 | eval "$3=\$ac_header_compiler" | |
1810 | fi | |
1811 | eval ac_res=\$$3 | |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1813 | $as_echo "$ac_res" >&6; } | |
1814 | fi | |
12e39525 | 1815 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
042acc47 WP |
1816 | |
1817 | } # ac_fn_c_check_header_mongrel | |
1818 | ||
1819 | # ac_fn_c_try_run LINENO | |
1820 | # ---------------------- | |
1821 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1822 | # that executables *can* be run. | |
1823 | ac_fn_c_try_run () | |
1824 | { | |
1825 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1826 | if { { ac_try="$ac_link" | |
1827 | case "(($ac_try" in | |
1828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1829 | *) ac_try_echo=$ac_try;; | |
1830 | esac | |
1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1832 | $as_echo "$ac_try_echo"; } >&5 | |
1833 | (eval "$ac_link") 2>&5 | |
1834 | ac_status=$? | |
1835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1836 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1837 | { { case "(($ac_try" in | |
1838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 | *) ac_try_echo=$ac_try;; | |
1840 | esac | |
1841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 | $as_echo "$ac_try_echo"; } >&5 | |
1843 | (eval "$ac_try") 2>&5 | |
1844 | ac_status=$? | |
1845 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1846 | test $ac_status = 0; }; }; then : | |
1847 | ac_retval=0 | |
1848 | else | |
1849 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1850 | $as_echo "$as_me: failed program was:" >&5 | |
1851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1852 | ||
1853 | ac_retval=$ac_status | |
1854 | fi | |
1855 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
12e39525 | 1856 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1857 | as_fn_set_status $ac_retval |
042acc47 WP |
1858 | |
1859 | } # ac_fn_c_try_run | |
1860 | ||
1861 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1862 | # ------------------------------------------------------- | |
1863 | # Tests whether HEADER exists and can be compiled using the include files in | |
1864 | # INCLUDES, setting the cache variable VAR accordingly. | |
1865 | ac_fn_c_check_header_compile () | |
1866 | { | |
1867 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1869 | $as_echo_n "checking for $2... " >&6; } | |
12e39525 | 1870 | if eval \${$3+:} false; then : |
042acc47 WP |
1871 | $as_echo_n "(cached) " >&6 |
1872 | else | |
1873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1874 | /* end confdefs.h. */ | |
1875 | $4 | |
1876 | #include <$2> | |
1877 | _ACEOF | |
1878 | if ac_fn_c_try_compile "$LINENO"; then : | |
1879 | eval "$3=yes" | |
1880 | else | |
1881 | eval "$3=no" | |
1882 | fi | |
1883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1884 | fi | |
1885 | eval ac_res=\$$3 | |
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1887 | $as_echo "$ac_res" >&6; } | |
12e39525 | 1888 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
042acc47 WP |
1889 | |
1890 | } # ac_fn_c_check_header_compile | |
1891 | ||
1892 | # ac_fn_c_try_link LINENO | |
1893 | # ----------------------- | |
1894 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1895 | ac_fn_c_try_link () | |
1896 | { | |
1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1899 | if { { ac_try="$ac_link" | |
1900 | case "(($ac_try" in | |
1901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1902 | *) ac_try_echo=$ac_try;; | |
1903 | esac | |
1904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1905 | $as_echo "$ac_try_echo"; } >&5 | |
1906 | (eval "$ac_link") 2>conftest.err | |
1907 | ac_status=$? | |
1908 | if test -s conftest.err; then | |
1909 | grep -v '^ *+' conftest.err >conftest.er1 | |
1910 | cat conftest.er1 >&5 | |
1911 | mv -f conftest.er1 conftest.err | |
1912 | fi | |
1913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1914 | test $ac_status = 0; } && { | |
1915 | test -z "$ac_c_werror_flag" || | |
1916 | test ! -s conftest.err | |
1917 | } && test -s conftest$ac_exeext && { | |
1918 | test "$cross_compiling" = yes || | |
1919 | $as_test_x conftest$ac_exeext | |
1920 | }; then : | |
1921 | ac_retval=0 | |
1922 | else | |
1923 | $as_echo "$as_me: failed program was:" >&5 | |
1924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1925 | ||
1926 | ac_retval=1 | |
1927 | fi | |
1928 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1929 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1930 | # interfere with the next link command; also delete a directory that is | |
1931 | # left behind by Apple's compiler. We do this before executing the actions. | |
1932 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
12e39525 | 1933 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1800d973 | 1934 | as_fn_set_status $ac_retval |
042acc47 WP |
1935 | |
1936 | } # ac_fn_c_try_link | |
1937 | ||
1938 | # ac_fn_c_check_func LINENO FUNC VAR | |
1939 | # ---------------------------------- | |
1940 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1941 | ac_fn_c_check_func () | |
1942 | { | |
1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1945 | $as_echo_n "checking for $2... " >&6; } | |
12e39525 | 1946 | if eval \${$3+:} false; then : |
042acc47 WP |
1947 | $as_echo_n "(cached) " >&6 |
1948 | else | |
1949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1950 | /* end confdefs.h. */ | |
1951 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1952 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1953 | #define $2 innocuous_$2 | |
1954 | ||
1955 | /* System header to define __stub macros and hopefully few prototypes, | |
1956 | which can conflict with char $2 (); below. | |
1957 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1958 | <limits.h> exists even on freestanding compilers. */ | |
1959 | ||
1960 | #ifdef __STDC__ | |
1961 | # include <limits.h> | |
1962 | #else | |
1963 | # include <assert.h> | |
1964 | #endif | |
1965 | ||
1966 | #undef $2 | |
1967 | ||
1968 | /* Override any GCC internal prototype to avoid an error. | |
1969 | Use char because int might match the return type of a GCC | |
1970 | builtin and then its argument prototype would still apply. */ | |
1971 | #ifdef __cplusplus | |
1972 | extern "C" | |
1973 | #endif | |
1974 | char $2 (); | |
1975 | /* The GNU C library defines this for functions which it implements | |
1976 | to always fail with ENOSYS. Some functions are actually named | |
1977 | something starting with __ and the normal name is an alias. */ | |
1978 | #if defined __stub_$2 || defined __stub___$2 | |
1979 | choke me | |
1980 | #endif | |
1981 | ||
1982 | int | |
1983 | main () | |
1984 | { | |
1985 | return $2 (); | |
1986 | ; | |
1987 | return 0; | |
1988 | } | |
1989 | _ACEOF | |
1990 | if ac_fn_c_try_link "$LINENO"; then : | |
1991 | eval "$3=yes" | |
1992 | else | |
1993 | eval "$3=no" | |
1994 | fi | |
1995 | rm -f core conftest.err conftest.$ac_objext \ | |
1996 | conftest$ac_exeext conftest.$ac_ext | |
1997 | fi | |
1998 | eval ac_res=\$$3 | |
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2000 | $as_echo "$ac_res" >&6; } | |
12e39525 | 2001 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
042acc47 WP |
2002 | |
2003 | } # ac_fn_c_check_func | |
2004 | ||
2005 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2006 | # ------------------------------------------- | |
2007 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2008 | # variable VAR accordingly. | |
2009 | ac_fn_c_check_type () | |
2010 | { | |
2011 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2013 | $as_echo_n "checking for $2... " >&6; } | |
12e39525 | 2014 | if eval \${$3+:} false; then : |
042acc47 WP |
2015 | $as_echo_n "(cached) " >&6 |
2016 | else | |
2017 | eval "$3=no" | |
2018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2019 | /* end confdefs.h. */ | |
2020 | $4 | |
2021 | int | |
2022 | main () | |
2023 | { | |
2024 | if (sizeof ($2)) | |
2025 | return 0; | |
2026 | ; | |
2027 | return 0; | |
2028 | } | |
2029 | _ACEOF | |
2030 | if ac_fn_c_try_compile "$LINENO"; then : | |
2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2032 | /* end confdefs.h. */ | |
2033 | $4 | |
2034 | int | |
2035 | main () | |
2036 | { | |
2037 | if (sizeof (($2))) | |
2038 | return 0; | |
2039 | ; | |
2040 | return 0; | |
2041 | } | |
2042 | _ACEOF | |
2043 | if ac_fn_c_try_compile "$LINENO"; then : | |
2044 | ||
2045 | else | |
2046 | eval "$3=yes" | |
2047 | fi | |
2048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2049 | fi | |
2050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2051 | fi | |
2052 | eval ac_res=\$$3 | |
2053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2054 | $as_echo "$ac_res" >&6; } | |
12e39525 | 2055 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
042acc47 WP |
2056 | |
2057 | } # ac_fn_c_check_type | |
2058 | ||
2059 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2060 | # ---------------------------------------------------- | |
2061 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2062 | # INCLUDES, setting cache variable VAR accordingly. | |
2063 | ac_fn_c_check_member () | |
2064 | { | |
2065 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2067 | $as_echo_n "checking for $2.$3... " >&6; } | |
12e39525 | 2068 | if eval \${$4+:} false; then : |
042acc47 WP |
2069 | $as_echo_n "(cached) " >&6 |
2070 | else | |
2071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2072 | /* end confdefs.h. */ | |
2073 | $5 | |
2074 | int | |
2075 | main () | |
2076 | { | |
2077 | static $2 ac_aggr; | |
2078 | if (ac_aggr.$3) | |
2079 | return 0; | |
2080 | ; | |
2081 | return 0; | |
2082 | } | |
2083 | _ACEOF | |
2084 | if ac_fn_c_try_compile "$LINENO"; then : | |
2085 | eval "$4=yes" | |
2086 | else | |
2087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2088 | /* end confdefs.h. */ | |
2089 | $5 | |
2090 | int | |
2091 | main () | |
2092 | { | |
2093 | static $2 ac_aggr; | |
2094 | if (sizeof ac_aggr.$3) | |
2095 | return 0; | |
2096 | ; | |
2097 | return 0; | |
2098 | } | |
2099 | _ACEOF | |
2100 | if ac_fn_c_try_compile "$LINENO"; then : | |
2101 | eval "$4=yes" | |
2102 | else | |
2103 | eval "$4=no" | |
2104 | fi | |
2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2106 | fi | |
2107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2108 | fi | |
2109 | eval ac_res=\$$4 | |
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2111 | $as_echo "$ac_res" >&6; } | |
12e39525 | 2112 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
042acc47 WP |
2113 | |
2114 | } # ac_fn_c_check_member | |
b57f37fb WP |
2115 | cat >config.log <<_ACEOF |
2116 | This file contains any messages produced by compilers while | |
2117 | running configure, to aid debugging if configure makes a mistake. | |
2118 | ||
2119 | It was created by libratbox $as_me devel, which was | |
12e39525 | 2120 | generated by GNU Autoconf 2.68. Invocation command line was |
b57f37fb WP |
2121 | |
2122 | $ $0 $@ | |
2123 | ||
2124 | _ACEOF | |
2125 | exec 5>>config.log | |
2126 | { | |
2127 | cat <<_ASUNAME | |
2128 | ## --------- ## | |
2129 | ## Platform. ## | |
2130 | ## --------- ## | |
2131 | ||
2132 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2133 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2134 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2135 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2136 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2137 | ||
2138 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2139 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2140 | ||
2141 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2142 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2143 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2144 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2145 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2146 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2147 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2148 | ||
2149 | _ASUNAME | |
2150 | ||
2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2152 | for as_dir in $PATH | |
2153 | do | |
2154 | IFS=$as_save_IFS | |
2155 | test -z "$as_dir" && as_dir=. | |
042acc47 WP |
2156 | $as_echo "PATH: $as_dir" |
2157 | done | |
b57f37fb WP |
2158 | IFS=$as_save_IFS |
2159 | ||
2160 | } >&5 | |
2161 | ||
2162 | cat >&5 <<_ACEOF | |
2163 | ||
2164 | ||
2165 | ## ----------- ## | |
2166 | ## Core tests. ## | |
2167 | ## ----------- ## | |
2168 | ||
2169 | _ACEOF | |
2170 | ||
2171 | ||
2172 | # Keep a trace of the command line. | |
2173 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2174 | # Strip out --silent because we don't want to record it for future runs. | |
2175 | # Also quote any args containing shell meta-characters. | |
2176 | # Make two passes to allow for proper duplicate-argument suppression. | |
2177 | ac_configure_args= | |
2178 | ac_configure_args0= | |
2179 | ac_configure_args1= | |
2180 | ac_must_keep_next=false | |
2181 | for ac_pass in 1 2 | |
2182 | do | |
2183 | for ac_arg | |
2184 | do | |
2185 | case $ac_arg in | |
2186 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2187 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2188 | | -silent | --silent | --silen | --sile | --sil) | |
2189 | continue ;; | |
2190 | *\'*) | |
f030cae8 | 2191 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
b57f37fb WP |
2192 | esac |
2193 | case $ac_pass in | |
042acc47 | 2194 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b57f37fb | 2195 | 2) |
042acc47 | 2196 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b57f37fb WP |
2197 | if test $ac_must_keep_next = true; then |
2198 | ac_must_keep_next=false # Got value, back to normal. | |
2199 | else | |
2200 | case $ac_arg in | |
2201 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2202 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2203 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2204 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2205 | case "$ac_configure_args0 " in | |
2206 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2207 | esac | |
2208 | ;; | |
2209 | -* ) ac_must_keep_next=true ;; | |
2210 | esac | |
2211 | fi | |
042acc47 | 2212 | as_fn_append ac_configure_args " '$ac_arg'" |
b57f37fb WP |
2213 | ;; |
2214 | esac | |
2215 | done | |
2216 | done | |
042acc47 WP |
2217 | { ac_configure_args0=; unset ac_configure_args0;} |
2218 | { ac_configure_args1=; unset ac_configure_args1;} | |
b57f37fb WP |
2219 | |
2220 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2221 | # config.log. We remove comments because anyway the quotes in there | |
2222 | # would cause problems or look ugly. | |
2223 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2224 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2225 | trap 'exit_status=$? | |
2226 | # Save into config.log some information that might help in debugging. | |
2227 | { | |
2228 | echo | |
2229 | ||
12e39525 | 2230 | $as_echo "## ---------------- ## |
b57f37fb | 2231 | ## Cache variables. ## |
12e39525 | 2232 | ## ---------------- ##" |
b57f37fb WP |
2233 | echo |
2234 | # The following way of writing the cache mishandles newlines in values, | |
2235 | ( | |
2236 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2237 | eval ac_val=\$$ac_var | |
2238 | case $ac_val in #( | |
2239 | *${as_nl}*) | |
2240 | case $ac_var in #( | |
042acc47 | 2241 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
f030cae8 | 2242 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
b57f37fb WP |
2243 | esac |
2244 | case $ac_var in #( | |
2245 | _ | IFS | as_nl) ;; #( | |
f030cae8 | 2246 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
042acc47 | 2247 | *) { eval $ac_var=; unset $ac_var;} ;; |
b57f37fb WP |
2248 | esac ;; |
2249 | esac | |
2250 | done | |
2251 | (set) 2>&1 | | |
2252 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2253 | *${as_nl}ac_space=\ *) | |
2254 | sed -n \ | |
2255 | "s/'\''/'\''\\\\'\'''\''/g; | |
2256 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2257 | ;; #( | |
2258 | *) | |
2259 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2260 | ;; | |
2261 | esac | | |
2262 | sort | |
2263 | ) | |
2264 | echo | |
2265 | ||
12e39525 | 2266 | $as_echo "## ----------------- ## |
b57f37fb | 2267 | ## Output variables. ## |
12e39525 | 2268 | ## ----------------- ##" |
b57f37fb WP |
2269 | echo |
2270 | for ac_var in $ac_subst_vars | |
2271 | do | |
2272 | eval ac_val=\$$ac_var | |
2273 | case $ac_val in | |
f030cae8 | 2274 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
b57f37fb | 2275 | esac |
f030cae8 | 2276 | $as_echo "$ac_var='\''$ac_val'\''" |
b57f37fb WP |
2277 | done | sort |
2278 | echo | |
2279 | ||
2280 | if test -n "$ac_subst_files"; then | |
12e39525 | 2281 | $as_echo "## ------------------- ## |
b57f37fb | 2282 | ## File substitutions. ## |
12e39525 | 2283 | ## ------------------- ##" |
b57f37fb WP |
2284 | echo |
2285 | for ac_var in $ac_subst_files | |
2286 | do | |
2287 | eval ac_val=\$$ac_var | |
2288 | case $ac_val in | |
f030cae8 | 2289 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
b57f37fb | 2290 | esac |
f030cae8 | 2291 | $as_echo "$ac_var='\''$ac_val'\''" |
b57f37fb WP |
2292 | done | sort |
2293 | echo | |
2294 | fi | |
2295 | ||
2296 | if test -s confdefs.h; then | |
12e39525 | 2297 | $as_echo "## ----------- ## |
b57f37fb | 2298 | ## confdefs.h. ## |
12e39525 | 2299 | ## ----------- ##" |
b57f37fb WP |
2300 | echo |
2301 | cat confdefs.h | |
2302 | echo | |
2303 | fi | |
2304 | test "$ac_signal" != 0 && | |
f030cae8 VY |
2305 | $as_echo "$as_me: caught signal $ac_signal" |
2306 | $as_echo "$as_me: exit $exit_status" | |
b57f37fb WP |
2307 | } >&5 |
2308 | rm -f core *.core core.conftest.* && | |
2309 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2310 | exit $exit_status | |
2311 | ' 0 | |
2312 | for ac_signal in 1 2 13 15; do | |
042acc47 | 2313 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b57f37fb WP |
2314 | done |
2315 | ac_signal=0 | |
2316 | ||
2317 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2318 | rm -f -r conftest* confdefs.h | |
2319 | ||
042acc47 WP |
2320 | $as_echo "/* confdefs.h */" > confdefs.h |
2321 | ||
b57f37fb WP |
2322 | # Predefined preprocessor variables. |
2323 | ||
2324 | cat >>confdefs.h <<_ACEOF | |
2325 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2326 | _ACEOF | |
2327 | ||
b57f37fb WP |
2328 | cat >>confdefs.h <<_ACEOF |
2329 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2330 | _ACEOF | |
2331 | ||
b57f37fb WP |
2332 | cat >>confdefs.h <<_ACEOF |
2333 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2334 | _ACEOF | |
2335 | ||
b57f37fb WP |
2336 | cat >>confdefs.h <<_ACEOF |
2337 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2338 | _ACEOF | |
2339 | ||
b57f37fb WP |
2340 | cat >>confdefs.h <<_ACEOF |
2341 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2342 | _ACEOF | |
2343 | ||
042acc47 WP |
2344 | cat >>confdefs.h <<_ACEOF |
2345 | #define PACKAGE_URL "$PACKAGE_URL" | |
2346 | _ACEOF | |
2347 | ||
b57f37fb WP |
2348 | |
2349 | # Let the site file select an alternate cache file if it wants to. | |
f030cae8 VY |
2350 | # Prefer an explicitly selected file to automatically selected ones. |
2351 | ac_site_file1=NONE | |
2352 | ac_site_file2=NONE | |
b57f37fb | 2353 | if test -n "$CONFIG_SITE"; then |
12e39525 JH |
2354 | # We do not want a PATH search for config.site. |
2355 | case $CONFIG_SITE in #(( | |
2356 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2357 | */*) ac_site_file1=$CONFIG_SITE;; | |
2358 | *) ac_site_file1=./$CONFIG_SITE;; | |
2359 | esac | |
b57f37fb | 2360 | elif test "x$prefix" != xNONE; then |
f030cae8 VY |
2361 | ac_site_file1=$prefix/share/config.site |
2362 | ac_site_file2=$prefix/etc/config.site | |
b57f37fb | 2363 | else |
f030cae8 VY |
2364 | ac_site_file1=$ac_default_prefix/share/config.site |
2365 | ac_site_file2=$ac_default_prefix/etc/config.site | |
b57f37fb | 2366 | fi |
f030cae8 | 2367 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
b57f37fb | 2368 | do |
f030cae8 | 2369 | test "x$ac_site_file" = xNONE && continue |
1800d973 | 2370 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
042acc47 | 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
f030cae8 | 2372 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
b57f37fb | 2373 | sed 's/^/| /' "$ac_site_file" >&5 |
12e39525 JH |
2374 | . "$ac_site_file" \ |
2375 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2377 | as_fn_error $? "failed to load site script $ac_site_file | |
2378 | See \`config.log' for more details" "$LINENO" 5; } | |
b57f37fb WP |
2379 | fi |
2380 | done | |
2381 | ||
2382 | if test -r "$cache_file"; then | |
1800d973 WP |
2383 | # Some versions of bash will fail to source /dev/null (special files |
2384 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2385 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
042acc47 | 2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
f030cae8 | 2387 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
b57f37fb WP |
2388 | case $cache_file in |
2389 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2390 | *) . "./$cache_file";; | |
2391 | esac | |
2392 | fi | |
2393 | else | |
042acc47 | 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
f030cae8 | 2395 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
b57f37fb WP |
2396 | >$cache_file |
2397 | fi | |
2398 | ||
1800d973 WP |
2399 | as_fn_append ac_header_list " stdlib.h" |
2400 | as_fn_append ac_header_list " unistd.h" | |
2401 | as_fn_append ac_header_list " sys/param.h" | |
b57f37fb WP |
2402 | # Check that the precious variables saved in the cache have kept the same |
2403 | # value. | |
2404 | ac_cache_corrupted=false | |
2405 | for ac_var in $ac_precious_vars; do | |
2406 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2407 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2408 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2409 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2410 | case $ac_old_set,$ac_new_set in | |
2411 | set,) | |
042acc47 | 2412 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
f030cae8 | 2413 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
b57f37fb WP |
2414 | ac_cache_corrupted=: ;; |
2415 | ,set) | |
042acc47 | 2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
f030cae8 | 2417 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
b57f37fb WP |
2418 | ac_cache_corrupted=: ;; |
2419 | ,);; | |
2420 | *) | |
2421 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
f030cae8 VY |
2422 | # differences in whitespace do not lead to failure. |
2423 | ac_old_val_w=`echo x $ac_old_val` | |
2424 | ac_new_val_w=`echo x $ac_new_val` | |
2425 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
042acc47 | 2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
f030cae8 VY |
2427 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2428 | ac_cache_corrupted=: | |
2429 | else | |
042acc47 | 2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
f030cae8 VY |
2431 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2432 | eval $ac_var=\$ac_old_val | |
2433 | fi | |
042acc47 | 2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
f030cae8 | 2435 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
042acc47 | 2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
f030cae8 | 2437 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
b57f37fb WP |
2438 | fi;; |
2439 | esac | |
2440 | # Pass precious variables to config.status. | |
2441 | if test "$ac_new_set" = set; then | |
2442 | case $ac_new_val in | |
f030cae8 | 2443 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b57f37fb WP |
2444 | *) ac_arg=$ac_var=$ac_new_val ;; |
2445 | esac | |
2446 | case " $ac_configure_args " in | |
2447 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
042acc47 | 2448 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b57f37fb WP |
2449 | esac |
2450 | fi | |
2451 | done | |
2452 | if $ac_cache_corrupted; then | |
042acc47 | 2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
f030cae8 | 2454 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
042acc47 | 2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
f030cae8 | 2456 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
12e39525 | 2457 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
b57f37fb | 2458 | fi |
042acc47 WP |
2459 | ## -------------------- ## |
2460 | ## Main body of script. ## | |
2461 | ## -------------------- ## | |
b57f37fb | 2462 | |
042acc47 WP |
2463 | ac_ext=c |
2464 | ac_cpp='$CPP $CPPFLAGS' | |
2465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b57f37fb WP |
2468 | |
2469 | ||
042acc47 | 2470 | am__api_version='1.11' |
b57f37fb | 2471 | |
042acc47 WP |
2472 | ac_aux_dir= |
2473 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
12e39525 JH |
2474 | if test -f "$ac_dir/install-sh"; then |
2475 | ac_aux_dir=$ac_dir | |
2476 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2477 | break | |
2478 | elif test -f "$ac_dir/install.sh"; then | |
2479 | ac_aux_dir=$ac_dir | |
2480 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2481 | break | |
2482 | elif test -f "$ac_dir/shtool"; then | |
2483 | ac_aux_dir=$ac_dir | |
2484 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2485 | break | |
2486 | fi | |
042acc47 WP |
2487 | done |
2488 | if test -z "$ac_aux_dir"; then | |
12e39525 | 2489 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
042acc47 | 2490 | fi |
b57f37fb | 2491 | |
042acc47 WP |
2492 | # These three variables are undocumented and unsupported, |
2493 | # and are intended to be withdrawn in a future Autoconf release. | |
2494 | # They can cause serious problems if a builder's source tree is in a directory | |
2495 | # whose full name contains unusual characters. | |
2496 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2497 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2498 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
b57f37fb WP |
2499 | |
2500 | ||
2501 | # Find a good install program. We prefer a C program (faster), | |
2502 | # so one script is as good as another. But avoid the broken or | |
2503 | # incompatible versions: | |
2504 | # SysV /etc/install, /usr/sbin/install | |
2505 | # SunOS /usr/etc/install | |
2506 | # IRIX /sbin/install | |
2507 | # AIX /bin/install | |
2508 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2509 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2510 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2511 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2512 | # OS/2's system install, which has a completely different semantic | |
2513 | # ./install, which can be erroneously created by make from ./install.sh. | |
f030cae8 | 2514 | # Reject install programs that cannot install multiple files. |
042acc47 | 2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
f030cae8 | 2516 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
b57f37fb | 2517 | if test -z "$INSTALL"; then |
12e39525 | 2518 | if ${ac_cv_path_install+:} false; then : |
f030cae8 | 2519 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
2520 | else |
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2522 | for as_dir in $PATH | |
2523 | do | |
2524 | IFS=$as_save_IFS | |
2525 | test -z "$as_dir" && as_dir=. | |
042acc47 WP |
2526 | # Account for people who put trailing slashes in PATH elements. |
2527 | case $as_dir/ in #(( | |
2528 | ./ | .// | /[cC]/* | \ | |
b57f37fb | 2529 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
042acc47 | 2530 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b57f37fb WP |
2531 | /usr/ucb/* ) ;; |
2532 | *) | |
2533 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2534 | # Don't use installbsd from OSF since it installs stuff as root | |
2535 | # by default. | |
2536 | for ac_prog in ginstall scoinst install; do | |
2537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2538 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2539 | if test $ac_prog = install && | |
2540 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2541 | # AIX install. It has an incompatible calling convention. | |
2542 | : | |
2543 | elif test $ac_prog = install && | |
2544 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2545 | # program-specific install script used by HP pwplus--don't use. | |
2546 | : | |
2547 | else | |
f030cae8 VY |
2548 | rm -rf conftest.one conftest.two conftest.dir |
2549 | echo one > conftest.one | |
2550 | echo two > conftest.two | |
2551 | mkdir conftest.dir | |
2552 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2553 | test -s conftest.one && test -s conftest.two && | |
2554 | test -s conftest.dir/conftest.one && | |
2555 | test -s conftest.dir/conftest.two | |
2556 | then | |
2557 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2558 | break 3 | |
2559 | fi | |
b57f37fb WP |
2560 | fi |
2561 | fi | |
2562 | done | |
2563 | done | |
2564 | ;; | |
2565 | esac | |
f030cae8 | 2566 | |
042acc47 | 2567 | done |
b57f37fb WP |
2568 | IFS=$as_save_IFS |
2569 | ||
f030cae8 | 2570 | rm -rf conftest.one conftest.two conftest.dir |
b57f37fb WP |
2571 | |
2572 | fi | |
2573 | if test "${ac_cv_path_install+set}" = set; then | |
2574 | INSTALL=$ac_cv_path_install | |
2575 | else | |
2576 | # As a last resort, use the slow shell script. Don't cache a | |
2577 | # value for INSTALL within a source directory, because that will | |
2578 | # break other packages using the cache if that directory is | |
2579 | # removed, or if the value is a relative name. | |
2580 | INSTALL=$ac_install_sh | |
2581 | fi | |
2582 | fi | |
042acc47 | 2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
f030cae8 | 2584 | $as_echo "$INSTALL" >&6; } |
b57f37fb WP |
2585 | |
2586 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2587 | # It thinks the first close brace ends the variable substitution. | |
2588 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2589 | ||
2590 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2591 | ||
2592 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2593 | ||
042acc47 | 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
f030cae8 | 2595 | $as_echo_n "checking whether build environment is sane... " >&6; } |
b57f37fb WP |
2596 | # Just in case |
2597 | sleep 1 | |
2598 | echo timestamp > conftest.file | |
042acc47 WP |
2599 | # Reject unsafe characters in $srcdir or the absolute working directory |
2600 | # name. Accept space and tab only in the latter. | |
2601 | am_lf=' | |
2602 | ' | |
2603 | case `pwd` in | |
2604 | *[\\\"\#\$\&\'\`$am_lf]*) | |
12e39525 | 2605 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
042acc47 WP |
2606 | esac |
2607 | case $srcdir in | |
2608 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
12e39525 | 2609 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
042acc47 WP |
2610 | esac |
2611 | ||
b57f37fb WP |
2612 | # Do `set' in a subshell so we don't clobber the current shell's |
2613 | # arguments. Must try -L first in case configure is actually a | |
2614 | # symlink; some systems play weird games with the mod time of symlinks | |
2615 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2616 | # directory). | |
2617 | if ( | |
042acc47 | 2618 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
b57f37fb WP |
2619 | if test "$*" = "X"; then |
2620 | # -L didn't work. | |
042acc47 | 2621 | set X `ls -t "$srcdir/configure" conftest.file` |
b57f37fb WP |
2622 | fi |
2623 | rm -f conftest.file | |
2624 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2625 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2626 | ||
2627 | # If neither matched, then we have a broken ls. This can happen | |
2628 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2629 | # broken ls alias from the environment. This has actually | |
2630 | # happened. Such a system could not be considered "sane". | |
12e39525 | 2631 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
042acc47 | 2632 | alias in your environment" "$LINENO" 5 |
b57f37fb WP |
2633 | fi |
2634 | ||
2635 | test "$2" = conftest.file | |
2636 | ) | |
2637 | then | |
2638 | # Ok. | |
2639 | : | |
2640 | else | |
12e39525 | 2641 | as_fn_error $? "newly created file is older than distributed files! |
042acc47 | 2642 | Check your system clock" "$LINENO" 5 |
b57f37fb | 2643 | fi |
042acc47 | 2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
f030cae8 | 2645 | $as_echo "yes" >&6; } |
b57f37fb WP |
2646 | test "$program_prefix" != NONE && |
2647 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2648 | # Use a double $ so make ignores it. | |
2649 | test "$program_suffix" != NONE && | |
2650 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
f030cae8 | 2651 | # Double any \ or $. |
b57f37fb | 2652 | # By default was `s,x,x', remove it if useless. |
f030cae8 VY |
2653 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2654 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
b57f37fb WP |
2655 | |
2656 | # expand $ac_aux_dir to an absolute path | |
2657 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2658 | ||
042acc47 WP |
2659 | if test x"${MISSING+set}" != xset; then |
2660 | case $am_aux_dir in | |
2661 | *\ * | *\ *) | |
2662 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2663 | *) | |
2664 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2665 | esac | |
2666 | fi | |
b57f37fb WP |
2667 | # Use eval to expand $SHELL |
2668 | if eval "$MISSING --run true"; then | |
2669 | am_missing_run="$MISSING --run " | |
2670 | else | |
2671 | am_missing_run= | |
042acc47 | 2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
f030cae8 | 2673 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
b57f37fb WP |
2674 | fi |
2675 | ||
042acc47 WP |
2676 | if test x"${install_sh}" != xset; then |
2677 | case $am_aux_dir in | |
2678 | *\ * | *\ *) | |
2679 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2680 | *) | |
2681 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2682 | esac | |
2683 | fi | |
2684 | ||
2685 | # Installed binaries are usually stripped using `strip' when the user | |
2686 | # run `make install-strip'. However `strip' might not be the right | |
2687 | # tool to use in cross-compilation environments, therefore Automake | |
2688 | # will honor the `STRIP' environment variable to overrule this program. | |
2689 | if test "$cross_compiling" != no; then | |
2690 | if test -n "$ac_tool_prefix"; then | |
2691 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2692 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2694 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 2695 | if ${ac_cv_prog_STRIP+:} false; then : |
042acc47 WP |
2696 | $as_echo_n "(cached) " >&6 |
2697 | else | |
2698 | if test -n "$STRIP"; then | |
2699 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2700 | else | |
2701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2702 | for as_dir in $PATH | |
2703 | do | |
2704 | IFS=$as_save_IFS | |
2705 | test -z "$as_dir" && as_dir=. | |
2706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2708 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2710 | break 2 | |
2711 | fi | |
2712 | done | |
2713 | done | |
2714 | IFS=$as_save_IFS | |
2715 | ||
2716 | fi | |
2717 | fi | |
2718 | STRIP=$ac_cv_prog_STRIP | |
2719 | if test -n "$STRIP"; then | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2721 | $as_echo "$STRIP" >&6; } | |
2722 | else | |
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2724 | $as_echo "no" >&6; } | |
2725 | fi | |
2726 | ||
2727 | ||
2728 | fi | |
2729 | if test -z "$ac_cv_prog_STRIP"; then | |
2730 | ac_ct_STRIP=$STRIP | |
2731 | # Extract the first word of "strip", so it can be a program name with args. | |
2732 | set dummy strip; ac_word=$2 | |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2734 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 2735 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
042acc47 WP |
2736 | $as_echo_n "(cached) " >&6 |
2737 | else | |
2738 | if test -n "$ac_ct_STRIP"; then | |
2739 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2740 | else | |
2741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2742 | for as_dir in $PATH | |
2743 | do | |
2744 | IFS=$as_save_IFS | |
2745 | test -z "$as_dir" && as_dir=. | |
2746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2748 | ac_cv_prog_ac_ct_STRIP="strip" | |
2749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2750 | break 2 | |
2751 | fi | |
2752 | done | |
2753 | done | |
2754 | IFS=$as_save_IFS | |
2755 | ||
2756 | fi | |
2757 | fi | |
2758 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2759 | if test -n "$ac_ct_STRIP"; then | |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2761 | $as_echo "$ac_ct_STRIP" >&6; } | |
2762 | else | |
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2764 | $as_echo "no" >&6; } | |
2765 | fi | |
2766 | ||
2767 | if test "x$ac_ct_STRIP" = x; then | |
2768 | STRIP=":" | |
2769 | else | |
2770 | case $cross_compiling:$ac_tool_warned in | |
2771 | yes:) | |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2773 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2774 | ac_tool_warned=yes ;; | |
2775 | esac | |
2776 | STRIP=$ac_ct_STRIP | |
2777 | fi | |
2778 | else | |
2779 | STRIP="$ac_cv_prog_STRIP" | |
2780 | fi | |
2781 | ||
2782 | fi | |
2783 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2784 | ||
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
f030cae8 | 2786 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
b57f37fb | 2787 | if test -z "$MKDIR_P"; then |
12e39525 | 2788 | if ${ac_cv_path_mkdir+:} false; then : |
f030cae8 | 2789 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
2790 | else |
2791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2792 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2793 | do | |
2794 | IFS=$as_save_IFS | |
2795 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2796 | for ac_prog in mkdir gmkdir; do |
b57f37fb WP |
2797 | for ac_exec_ext in '' $ac_executable_extensions; do |
2798 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2799 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2800 | 'mkdir (GNU coreutils) '* | \ | |
2801 | 'mkdir (coreutils) '* | \ | |
2802 | 'mkdir (fileutils) '4.1*) | |
2803 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2804 | break 3;; | |
2805 | esac | |
2806 | done | |
2807 | done | |
042acc47 | 2808 | done |
b57f37fb WP |
2809 | IFS=$as_save_IFS |
2810 | ||
2811 | fi | |
2812 | ||
1800d973 | 2813 | test -d ./--version && rmdir ./--version |
b57f37fb WP |
2814 | if test "${ac_cv_path_mkdir+set}" = set; then |
2815 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2816 | else | |
2817 | # As a last resort, use the slow shell script. Don't cache a | |
2818 | # value for MKDIR_P within a source directory, because that will | |
2819 | # break other packages using the cache if that directory is | |
2820 | # removed, or if the value is a relative name. | |
b57f37fb WP |
2821 | MKDIR_P="$ac_install_sh -d" |
2822 | fi | |
2823 | fi | |
042acc47 | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
f030cae8 | 2825 | $as_echo "$MKDIR_P" >&6; } |
b57f37fb WP |
2826 | |
2827 | mkdir_p="$MKDIR_P" | |
2828 | case $mkdir_p in | |
2829 | [\\/$]* | ?:[\\/]*) ;; | |
2830 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2831 | esac | |
2832 | ||
2833 | for ac_prog in gawk mawk nawk awk | |
2834 | do | |
2835 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2836 | set dummy $ac_prog; ac_word=$2 | |
042acc47 | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 2838 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 2839 | if ${ac_cv_prog_AWK+:} false; then : |
f030cae8 | 2840 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
2841 | else |
2842 | if test -n "$AWK"; then | |
2843 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2844 | else | |
2845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2846 | for as_dir in $PATH | |
2847 | do | |
2848 | IFS=$as_save_IFS | |
2849 | test -z "$as_dir" && as_dir=. | |
042acc47 | 2850 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb WP |
2851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2852 | ac_cv_prog_AWK="$ac_prog" | |
042acc47 | 2853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b57f37fb WP |
2854 | break 2 |
2855 | fi | |
2856 | done | |
042acc47 | 2857 | done |
b57f37fb WP |
2858 | IFS=$as_save_IFS |
2859 | ||
2860 | fi | |
2861 | fi | |
2862 | AWK=$ac_cv_prog_AWK | |
2863 | if test -n "$AWK"; then | |
042acc47 | 2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
f030cae8 | 2865 | $as_echo "$AWK" >&6; } |
b57f37fb | 2866 | else |
042acc47 | 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 2868 | $as_echo "no" >&6; } |
b57f37fb WP |
2869 | fi |
2870 | ||
2871 | ||
2872 | test -n "$AWK" && break | |
2873 | done | |
2874 | ||
042acc47 | 2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
f030cae8 VY |
2876 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2877 | set x ${MAKE-make} | |
2878 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
12e39525 | 2879 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
f030cae8 | 2880 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
2881 | else |
2882 | cat >conftest.make <<\_ACEOF | |
2883 | SHELL = /bin/sh | |
2884 | all: | |
2885 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2886 | _ACEOF | |
12e39525 | 2887 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
b57f37fb WP |
2888 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2889 | *@@@%%%=?*=@@@%%%*) | |
2890 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2891 | *) | |
2892 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2893 | esac | |
2894 | rm -f conftest.make | |
2895 | fi | |
2896 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
042acc47 | 2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
f030cae8 | 2898 | $as_echo "yes" >&6; } |
b57f37fb WP |
2899 | SET_MAKE= |
2900 | else | |
042acc47 | 2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 2902 | $as_echo "no" >&6; } |
b57f37fb WP |
2903 | SET_MAKE="MAKE=${MAKE-make}" |
2904 | fi | |
2905 | ||
2906 | rm -rf .tst 2>/dev/null | |
2907 | mkdir .tst 2>/dev/null | |
2908 | if test -d .tst; then | |
2909 | am__leading_dot=. | |
2910 | else | |
2911 | am__leading_dot=_ | |
2912 | fi | |
2913 | rmdir .tst 2>/dev/null | |
2914 | ||
2915 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2916 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2917 | # is not polluted with repeated "-I." | |
2918 | am__isrc=' -I$(srcdir)' | |
2919 | # test to see if srcdir already configured | |
2920 | if test -f $srcdir/config.status; then | |
12e39525 | 2921 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
b57f37fb WP |
2922 | fi |
2923 | fi | |
2924 | ||
2925 | # test whether we have cygpath | |
2926 | if test -z "$CYGPATH_W"; then | |
2927 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2928 | CYGPATH_W='cygpath -w' | |
2929 | else | |
2930 | CYGPATH_W=echo | |
2931 | fi | |
2932 | fi | |
2933 | ||
2934 | ||
2935 | # Define the identity of the package. | |
2936 | PACKAGE=libratbox | |
2937 | VERSION=devel | |
2938 | ||
2939 | ||
2940 | # Some tools Automake needs. | |
2941 | ||
2942 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2943 | ||
2944 | ||
2945 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2946 | ||
2947 | ||
2948 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2949 | ||
2950 | ||
2951 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2952 | ||
2953 | ||
2954 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2955 | ||
b57f37fb WP |
2956 | # We need awk for the "check" target. The system "awk" is bad on |
2957 | # some platforms. | |
2958 | # Always define AMTAR for backward compatibility. | |
2959 | ||
2960 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2961 | ||
2962 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2963 | ||
2964 | ||
2965 | ||
2966 | ||
2967 | ||
2968 | ||
2969 | ac_config_headers="$ac_config_headers include/libratbox_config.h" | |
2970 | ||
2971 | ||
2972 | ||
b57f37fb WP |
2973 | DEPDIR="${am__leading_dot}deps" |
2974 | ||
2975 | ac_config_commands="$ac_config_commands depfiles" | |
2976 | ||
2977 | ||
2978 | am_make=${MAKE-make} | |
2979 | cat > confinc << 'END' | |
2980 | am__doit: | |
042acc47 | 2981 | @echo this is the am__doit target |
b57f37fb WP |
2982 | .PHONY: am__doit |
2983 | END | |
2984 | # If we don't find an include directive, just comment out the code. | |
042acc47 | 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
f030cae8 | 2986 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
b57f37fb WP |
2987 | am__include="#" |
2988 | am__quote= | |
2989 | _am_result=none | |
2990 | # First try GNU make style include. | |
2991 | echo "include confinc" > confmf | |
042acc47 WP |
2992 | # Ignore all kinds of additional output from `make'. |
2993 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2994 | *the\ am__doit\ target*) | |
2995 | am__include=include | |
2996 | am__quote= | |
2997 | _am_result=GNU | |
2998 | ;; | |
2999 | esac | |
b57f37fb WP |
3000 | # Now try BSD make style include. |
3001 | if test "$am__include" = "#"; then | |
3002 | echo '.include "confinc"' > confmf | |
042acc47 WP |
3003 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3004 | *the\ am__doit\ target*) | |
3005 | am__include=.include | |
3006 | am__quote="\"" | |
3007 | _am_result=BSD | |
3008 | ;; | |
3009 | esac | |
b57f37fb WP |
3010 | fi |
3011 | ||
3012 | ||
042acc47 | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
f030cae8 | 3014 | $as_echo "$_am_result" >&6; } |
b57f37fb WP |
3015 | rm -f confinc confmf |
3016 | ||
3017 | # Check whether --enable-dependency-tracking was given. | |
042acc47 | 3018 | if test "${enable_dependency_tracking+set}" = set; then : |
b57f37fb WP |
3019 | enableval=$enable_dependency_tracking; |
3020 | fi | |
3021 | ||
3022 | if test "x$enable_dependency_tracking" != xno; then | |
3023 | am_depcomp="$ac_aux_dir/depcomp" | |
3024 | AMDEPBACKSLASH='\' | |
3025 | fi | |
3026 | if test "x$enable_dependency_tracking" != xno; then | |
3027 | AMDEP_TRUE= | |
3028 | AMDEP_FALSE='#' | |
3029 | else | |
3030 | AMDEP_TRUE='#' | |
3031 | AMDEP_FALSE= | |
3032 | fi | |
3033 | ||
3034 | ||
3035 | ac_ext=c | |
3036 | ac_cpp='$CPP $CPPFLAGS' | |
3037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3040 | if test -n "$ac_tool_prefix"; then | |
3041 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3042 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
042acc47 | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 3044 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 3045 | if ${ac_cv_prog_CC+:} false; then : |
f030cae8 | 3046 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3047 | else |
3048 | if test -n "$CC"; then | |
3049 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3050 | else | |
3051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3052 | for as_dir in $PATH | |
3053 | do | |
3054 | IFS=$as_save_IFS | |
3055 | test -z "$as_dir" && as_dir=. | |
042acc47 | 3056 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb WP |
3057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3058 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
042acc47 | 3059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b57f37fb WP |
3060 | break 2 |
3061 | fi | |
3062 | done | |
042acc47 | 3063 | done |
b57f37fb WP |
3064 | IFS=$as_save_IFS |
3065 | ||
3066 | fi | |
3067 | fi | |
3068 | CC=$ac_cv_prog_CC | |
3069 | if test -n "$CC"; then | |
042acc47 | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
f030cae8 | 3071 | $as_echo "$CC" >&6; } |
b57f37fb | 3072 | else |
042acc47 | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 3074 | $as_echo "no" >&6; } |
b57f37fb WP |
3075 | fi |
3076 | ||
3077 | ||
3078 | fi | |
3079 | if test -z "$ac_cv_prog_CC"; then | |
3080 | ac_ct_CC=$CC | |
3081 | # Extract the first word of "gcc", so it can be a program name with args. | |
3082 | set dummy gcc; ac_word=$2 | |
042acc47 | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 3084 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 3085 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
f030cae8 | 3086 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3087 | else |
3088 | if test -n "$ac_ct_CC"; then | |
3089 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3090 | else | |
3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3092 | for as_dir in $PATH | |
3093 | do | |
3094 | IFS=$as_save_IFS | |
3095 | test -z "$as_dir" && as_dir=. | |
042acc47 | 3096 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb WP |
3097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3098 | ac_cv_prog_ac_ct_CC="gcc" | |
042acc47 | 3099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b57f37fb WP |
3100 | break 2 |
3101 | fi | |
3102 | done | |
042acc47 | 3103 | done |
b57f37fb WP |
3104 | IFS=$as_save_IFS |
3105 | ||
3106 | fi | |
3107 | fi | |
3108 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3109 | if test -n "$ac_ct_CC"; then | |
042acc47 | 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
f030cae8 | 3111 | $as_echo "$ac_ct_CC" >&6; } |
b57f37fb | 3112 | else |
042acc47 | 3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 3114 | $as_echo "no" >&6; } |
b57f37fb WP |
3115 | fi |
3116 | ||
3117 | if test "x$ac_ct_CC" = x; then | |
3118 | CC="" | |
3119 | else | |
3120 | case $cross_compiling:$ac_tool_warned in | |
3121 | yes:) | |
042acc47 | 3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
f030cae8 | 3123 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b57f37fb WP |
3124 | ac_tool_warned=yes ;; |
3125 | esac | |
3126 | CC=$ac_ct_CC | |
3127 | fi | |
3128 | else | |
3129 | CC="$ac_cv_prog_CC" | |
3130 | fi | |
3131 | ||
3132 | if test -z "$CC"; then | |
3133 | if test -n "$ac_tool_prefix"; then | |
3134 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3135 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
042acc47 | 3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 3137 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 3138 | if ${ac_cv_prog_CC+:} false; then : |
f030cae8 | 3139 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3140 | else |
3141 | if test -n "$CC"; then | |
3142 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3143 | else | |
3144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3145 | for as_dir in $PATH | |
3146 | do | |
3147 | IFS=$as_save_IFS | |
3148 | test -z "$as_dir" && as_dir=. | |
042acc47 | 3149 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb WP |
3150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3151 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
042acc47 | 3152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b57f37fb WP |
3153 | break 2 |
3154 | fi | |
3155 | done | |
042acc47 | 3156 | done |
b57f37fb WP |
3157 | IFS=$as_save_IFS |
3158 | ||
3159 | fi | |
3160 | fi | |
3161 | CC=$ac_cv_prog_CC | |
3162 | if test -n "$CC"; then | |
042acc47 | 3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
f030cae8 | 3164 | $as_echo "$CC" >&6; } |
b57f37fb | 3165 | else |
042acc47 | 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 3167 | $as_echo "no" >&6; } |
b57f37fb WP |
3168 | fi |
3169 | ||
3170 | ||
3171 | fi | |
3172 | fi | |
3173 | if test -z "$CC"; then | |
3174 | # Extract the first word of "cc", so it can be a program name with args. | |
3175 | set dummy cc; ac_word=$2 | |
042acc47 | 3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 3177 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 3178 | if ${ac_cv_prog_CC+:} false; then : |
f030cae8 | 3179 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3180 | else |
3181 | if test -n "$CC"; then | |
3182 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3183 | else | |
3184 | ac_prog_rejected=no | |
3185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3186 | for as_dir in $PATH | |
3187 | do | |
3188 | IFS=$as_save_IFS | |
3189 | test -z "$as_dir" && as_dir=. | |
042acc47 | 3190 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb WP |
3191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3192 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3193 | ac_prog_rejected=yes | |
3194 | continue | |
3195 | fi | |
3196 | ac_cv_prog_CC="cc" | |
042acc47 | 3197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b57f37fb WP |
3198 | break 2 |
3199 | fi | |
3200 | done | |
042acc47 | 3201 | done |
b57f37fb WP |
3202 | IFS=$as_save_IFS |
3203 | ||
3204 | if test $ac_prog_rejected = yes; then | |
3205 | # We found a bogon in the path, so make sure we never use it. | |
3206 | set dummy $ac_cv_prog_CC | |
3207 | shift | |
3208 | if test $# != 0; then | |
3209 | # We chose a different compiler from the bogus one. | |
3210 | # However, it has the same basename, so the bogon will be chosen | |
3211 | # first if we set CC to just the basename; use the full file name. | |
3212 | shift | |
3213 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3214 | fi | |
3215 | fi | |
3216 | fi | |
3217 | fi | |
3218 | CC=$ac_cv_prog_CC | |
3219 | if test -n "$CC"; then | |
042acc47 | 3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
f030cae8 | 3221 | $as_echo "$CC" >&6; } |
b57f37fb | 3222 | else |
042acc47 | 3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 3224 | $as_echo "no" >&6; } |
b57f37fb WP |
3225 | fi |
3226 | ||
3227 | ||
3228 | fi | |
3229 | if test -z "$CC"; then | |
3230 | if test -n "$ac_tool_prefix"; then | |
3231 | for ac_prog in cl.exe | |
3232 | do | |
3233 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3234 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
042acc47 | 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 3236 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 3237 | if ${ac_cv_prog_CC+:} false; then : |
f030cae8 | 3238 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3239 | else |
3240 | if test -n "$CC"; then | |
3241 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3242 | else | |
3243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3244 | for as_dir in $PATH | |
3245 | do | |
3246 | IFS=$as_save_IFS | |
3247 | test -z "$as_dir" && as_dir=. | |
042acc47 | 3248 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb WP |
3249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3250 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
042acc47 | 3251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b57f37fb WP |
3252 | break 2 |
3253 | fi | |
3254 | done | |
042acc47 | 3255 | done |
b57f37fb WP |
3256 | IFS=$as_save_IFS |
3257 | ||
3258 | fi | |
3259 | fi | |
3260 | CC=$ac_cv_prog_CC | |
3261 | if test -n "$CC"; then | |
042acc47 | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
f030cae8 | 3263 | $as_echo "$CC" >&6; } |
b57f37fb | 3264 | else |
042acc47 | 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 3266 | $as_echo "no" >&6; } |
b57f37fb WP |
3267 | fi |
3268 | ||
3269 | ||
3270 | test -n "$CC" && break | |
3271 | done | |
3272 | fi | |
3273 | if test -z "$CC"; then | |
3274 | ac_ct_CC=$CC | |
3275 | for ac_prog in cl.exe | |
3276 | do | |
3277 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3278 | set dummy $ac_prog; ac_word=$2 | |
042acc47 | 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 3280 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 3281 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
f030cae8 | 3282 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3283 | else |
3284 | if test -n "$ac_ct_CC"; then | |
3285 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3286 | else | |
3287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3288 | for as_dir in $PATH | |
3289 | do | |
3290 | IFS=$as_save_IFS | |
3291 | test -z "$as_dir" && as_dir=. | |
042acc47 | 3292 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb WP |
3293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3294 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
042acc47 | 3295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b57f37fb WP |
3296 | break 2 |
3297 | fi | |
3298 | done | |
042acc47 | 3299 | done |
b57f37fb WP |
3300 | IFS=$as_save_IFS |
3301 | ||
3302 | fi | |
3303 | fi | |
3304 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3305 | if test -n "$ac_ct_CC"; then | |
042acc47 | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
f030cae8 | 3307 | $as_echo "$ac_ct_CC" >&6; } |
b57f37fb | 3308 | else |
042acc47 | 3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 3310 | $as_echo "no" >&6; } |
b57f37fb WP |
3311 | fi |
3312 | ||
3313 | ||
3314 | test -n "$ac_ct_CC" && break | |
3315 | done | |
3316 | ||
3317 | if test "x$ac_ct_CC" = x; then | |
3318 | CC="" | |
3319 | else | |
3320 | case $cross_compiling:$ac_tool_warned in | |
3321 | yes:) | |
042acc47 | 3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
f030cae8 | 3323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b57f37fb WP |
3324 | ac_tool_warned=yes ;; |
3325 | esac | |
3326 | CC=$ac_ct_CC | |
3327 | fi | |
3328 | fi | |
3329 | ||
3330 | fi | |
3331 | ||
3332 | ||
042acc47 | 3333 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
f030cae8 | 3334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
12e39525 JH |
3335 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3336 | See \`config.log' for more details" "$LINENO" 5; } | |
b57f37fb WP |
3337 | |
3338 | # Provide some information about the compiler. | |
042acc47 | 3339 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
f030cae8 VY |
3340 | set X $ac_compile |
3341 | ac_compiler=$2 | |
042acc47 WP |
3342 | for ac_option in --version -v -V -qversion; do |
3343 | { { ac_try="$ac_compiler $ac_option >&5" | |
b57f37fb WP |
3344 | case "(($ac_try" in |
3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3346 | *) ac_try_echo=$ac_try;; | |
3347 | esac | |
042acc47 WP |
3348 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3349 | $as_echo "$ac_try_echo"; } >&5 | |
3350 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b57f37fb | 3351 | ac_status=$? |
042acc47 WP |
3352 | if test -s conftest.err; then |
3353 | sed '10a\ | |
3354 | ... rest of stderr output deleted ... | |
3355 | 10q' conftest.err >conftest.er1 | |
3356 | cat conftest.er1 >&5 | |
042acc47 | 3357 | fi |
1800d973 | 3358 | rm -f conftest.er1 conftest.err |
042acc47 WP |
3359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3360 | test $ac_status = 0; } | |
3361 | done | |
b57f37fb | 3362 | |
042acc47 | 3363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 3364 | /* end confdefs.h. */ |
1800d973 | 3365 | |
b57f37fb WP |
3366 | int |
3367 | main () | |
3368 | { | |
3369 | ||
3370 | ; | |
3371 | return 0; | |
3372 | } | |
3373 | _ACEOF | |
3374 | ac_clean_files_save=$ac_clean_files | |
1800d973 | 3375 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b57f37fb WP |
3376 | # Try to create an executable without -o first, disregard a.out. |
3377 | # It will help us diagnose broken compilers, and finding out an intuition | |
3378 | # of exeext. | |
1800d973 WP |
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3380 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
f030cae8 VY |
3381 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3382 | ||
3383 | # The possible output files: | |
3384 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3385 | ||
b57f37fb WP |
3386 | ac_rmfiles= |
3387 | for ac_file in $ac_files | |
3388 | do | |
3389 | case $ac_file in | |
f030cae8 | 3390 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b57f37fb WP |
3391 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3392 | esac | |
3393 | done | |
3394 | rm -f $ac_rmfiles | |
3395 | ||
042acc47 | 3396 | if { { ac_try="$ac_link_default" |
b57f37fb WP |
3397 | case "(($ac_try" in |
3398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3399 | *) ac_try_echo=$ac_try;; | |
3400 | esac | |
042acc47 WP |
3401 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3402 | $as_echo "$ac_try_echo"; } >&5 | |
b57f37fb WP |
3403 | (eval "$ac_link_default") 2>&5 |
3404 | ac_status=$? | |
042acc47 WP |
3405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3406 | test $ac_status = 0; }; then : | |
b57f37fb WP |
3407 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3408 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3409 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3410 | # so that the user can short-circuit this test for compilers unknown to | |
3411 | # Autoconf. | |
3412 | for ac_file in $ac_files '' | |
3413 | do | |
3414 | test -f "$ac_file" || continue | |
3415 | case $ac_file in | |
f030cae8 | 3416 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b57f37fb WP |
3417 | ;; |
3418 | [ab].out ) | |
3419 | # We found the default executable, but exeext='' is most | |
3420 | # certainly right. | |
3421 | break;; | |
3422 | *.* ) | |
042acc47 | 3423 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
b57f37fb WP |
3424 | then :; else |
3425 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3426 | fi | |
3427 | # We set ac_cv_exeext here because the later test for it is not | |
3428 | # safe: cross compilers may not add the suffix if given an `-o' | |
3429 | # argument, so we may need to know it at that point already. | |
3430 | # Even if this section looks crufty: it has the advantage of | |
3431 | # actually working. | |
3432 | break;; | |
3433 | * ) | |
3434 | break;; | |
3435 | esac | |
3436 | done | |
3437 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3438 | ||
3439 | else | |
3440 | ac_file='' | |
3441 | fi | |
042acc47 | 3442 | if test -z "$ac_file"; then : |
1800d973 WP |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3444 | $as_echo "no" >&6; } | |
3445 | $as_echo "$as_me: failed program was:" >&5 | |
b57f37fb WP |
3446 | sed 's/^/| /' conftest.$ac_ext >&5 |
3447 | ||
042acc47 | 3448 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
f030cae8 | 3449 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
12e39525 JH |
3450 | as_fn_error 77 "C compiler cannot create executables |
3451 | See \`config.log' for more details" "$LINENO" 5; } | |
1800d973 WP |
3452 | else |
3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3454 | $as_echo "yes" >&6; } | |
b57f37fb | 3455 | fi |
1800d973 WP |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3457 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3459 | $as_echo "$ac_file" >&6; } | |
b57f37fb WP |
3460 | ac_exeext=$ac_cv_exeext |
3461 | ||
1800d973 | 3462 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b57f37fb | 3463 | ac_clean_files=$ac_clean_files_save |
042acc47 | 3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
f030cae8 | 3465 | $as_echo_n "checking for suffix of executables... " >&6; } |
042acc47 | 3466 | if { { ac_try="$ac_link" |
b57f37fb WP |
3467 | case "(($ac_try" in |
3468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3469 | *) ac_try_echo=$ac_try;; | |
3470 | esac | |
042acc47 WP |
3471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3472 | $as_echo "$ac_try_echo"; } >&5 | |
b57f37fb WP |
3473 | (eval "$ac_link") 2>&5 |
3474 | ac_status=$? | |
042acc47 WP |
3475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3476 | test $ac_status = 0; }; then : | |
b57f37fb WP |
3477 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3478 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3479 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3480 | # `rm'. | |
3481 | for ac_file in conftest.exe conftest conftest.*; do | |
3482 | test -f "$ac_file" || continue | |
3483 | case $ac_file in | |
f030cae8 | 3484 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b57f37fb WP |
3485 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3486 | break;; | |
3487 | * ) break;; | |
3488 | esac | |
3489 | done | |
3490 | else | |
042acc47 | 3491 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
f030cae8 | 3492 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
12e39525 JH |
3493 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3494 | See \`config.log' for more details" "$LINENO" 5; } | |
b57f37fb | 3495 | fi |
1800d973 | 3496 | rm -f conftest conftest$ac_cv_exeext |
042acc47 | 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
f030cae8 | 3498 | $as_echo "$ac_cv_exeext" >&6; } |
b57f37fb WP |
3499 | |
3500 | rm -f conftest.$ac_ext | |
3501 | EXEEXT=$ac_cv_exeext | |
3502 | ac_exeext=$EXEEXT | |
1800d973 WP |
3503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3504 | /* end confdefs.h. */ | |
3505 | #include <stdio.h> | |
3506 | int | |
3507 | main () | |
3508 | { | |
3509 | FILE *f = fopen ("conftest.out", "w"); | |
3510 | return ferror (f) || fclose (f) != 0; | |
3511 | ||
3512 | ; | |
3513 | return 0; | |
3514 | } | |
3515 | _ACEOF | |
3516 | ac_clean_files="$ac_clean_files conftest.out" | |
3517 | # Check that the compiler produces executables we can run. If not, either | |
3518 | # the compiler is broken, or we cross compile. | |
3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3520 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3521 | if test "$cross_compiling" != yes; then | |
3522 | { { ac_try="$ac_link" | |
3523 | case "(($ac_try" in | |
3524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3525 | *) ac_try_echo=$ac_try;; | |
3526 | esac | |
3527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3528 | $as_echo "$ac_try_echo"; } >&5 | |
3529 | (eval "$ac_link") 2>&5 | |
3530 | ac_status=$? | |
3531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3532 | test $ac_status = 0; } | |
3533 | if { ac_try='./conftest$ac_cv_exeext' | |
3534 | { { case "(($ac_try" in | |
3535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3536 | *) ac_try_echo=$ac_try;; | |
3537 | esac | |
3538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3539 | $as_echo "$ac_try_echo"; } >&5 | |
3540 | (eval "$ac_try") 2>&5 | |
3541 | ac_status=$? | |
3542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3543 | test $ac_status = 0; }; }; then | |
3544 | cross_compiling=no | |
3545 | else | |
3546 | if test "$cross_compiling" = maybe; then | |
3547 | cross_compiling=yes | |
3548 | else | |
3549 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3550 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12e39525 | 3551 | as_fn_error $? "cannot run C compiled programs. |
1800d973 | 3552 | If you meant to cross compile, use \`--host'. |
12e39525 | 3553 | See \`config.log' for more details" "$LINENO" 5; } |
1800d973 WP |
3554 | fi |
3555 | fi | |
3556 | fi | |
3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3558 | $as_echo "$cross_compiling" >&6; } | |
3559 | ||
3560 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3561 | ac_clean_files=$ac_clean_files_save | |
042acc47 | 3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
f030cae8 | 3563 | $as_echo_n "checking for suffix of object files... " >&6; } |
12e39525 | 3564 | if ${ac_cv_objext+:} false; then : |
f030cae8 | 3565 | $as_echo_n "(cached) " >&6 |
b57f37fb | 3566 | else |
042acc47 | 3567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb WP |
3568 | /* end confdefs.h. */ |
3569 | ||
3570 | int | |
3571 | main () | |
3572 | { | |
3573 | ||
3574 | ; | |
3575 | return 0; | |
3576 | } | |
3577 | _ACEOF | |
3578 | rm -f conftest.o conftest.obj | |
042acc47 | 3579 | if { { ac_try="$ac_compile" |
b57f37fb WP |
3580 | case "(($ac_try" in |
3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3582 | *) ac_try_echo=$ac_try;; | |
3583 | esac | |
042acc47 WP |
3584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3585 | $as_echo "$ac_try_echo"; } >&5 | |
b57f37fb WP |
3586 | (eval "$ac_compile") 2>&5 |
3587 | ac_status=$? | |
042acc47 WP |
3588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3589 | test $ac_status = 0; }; then : | |
b57f37fb WP |
3590 | for ac_file in conftest.o conftest.obj conftest.*; do |
3591 | test -f "$ac_file" || continue; | |
3592 | case $ac_file in | |
f030cae8 | 3593 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b57f37fb WP |
3594 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3595 | break;; | |
3596 | esac | |
3597 | done | |
3598 | else | |
f030cae8 | 3599 | $as_echo "$as_me: failed program was:" >&5 |
b57f37fb WP |
3600 | sed 's/^/| /' conftest.$ac_ext >&5 |
3601 | ||
042acc47 | 3602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
f030cae8 | 3603 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
12e39525 JH |
3604 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3605 | See \`config.log' for more details" "$LINENO" 5; } | |
b57f37fb | 3606 | fi |
b57f37fb WP |
3607 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3608 | fi | |
042acc47 | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
f030cae8 | 3610 | $as_echo "$ac_cv_objext" >&6; } |
b57f37fb WP |
3611 | OBJEXT=$ac_cv_objext |
3612 | ac_objext=$OBJEXT | |
042acc47 | 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
f030cae8 | 3614 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
12e39525 | 3615 | if ${ac_cv_c_compiler_gnu+:} false; then : |
f030cae8 | 3616 | $as_echo_n "(cached) " >&6 |
b57f37fb | 3617 | else |
042acc47 | 3618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb WP |
3619 | /* end confdefs.h. */ |
3620 | ||
3621 | int | |
3622 | main () | |
3623 | { | |
3624 | #ifndef __GNUC__ | |
3625 | choke me | |
3626 | #endif | |
3627 | ||
3628 | ; | |
3629 | return 0; | |
3630 | } | |
3631 | _ACEOF | |
042acc47 | 3632 | if ac_fn_c_try_compile "$LINENO"; then : |
b57f37fb WP |
3633 | ac_compiler_gnu=yes |
3634 | else | |
042acc47 | 3635 | ac_compiler_gnu=no |
b57f37fb | 3636 | fi |
b57f37fb WP |
3637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3638 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3639 | ||
3640 | fi | |
042acc47 | 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
f030cae8 VY |
3642 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3643 | if test $ac_compiler_gnu = yes; then | |
3644 | GCC=yes | |
3645 | else | |
3646 | GCC= | |
3647 | fi | |
b57f37fb WP |
3648 | ac_test_CFLAGS=${CFLAGS+set} |
3649 | ac_save_CFLAGS=$CFLAGS | |
042acc47 | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
f030cae8 | 3651 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
12e39525 | 3652 | if ${ac_cv_prog_cc_g+:} false; then : |
f030cae8 | 3653 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3654 | else |
3655 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3656 | ac_c_werror_flag=yes | |
3657 | ac_cv_prog_cc_g=no | |
3658 | CFLAGS="-g" | |
042acc47 | 3659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb WP |
3660 | /* end confdefs.h. */ |
3661 | ||
3662 | int | |
3663 | main () | |
3664 | { | |
3665 | ||
3666 | ; | |
3667 | return 0; | |
3668 | } | |
3669 | _ACEOF | |
042acc47 | 3670 | if ac_fn_c_try_compile "$LINENO"; then : |
b57f37fb WP |
3671 | ac_cv_prog_cc_g=yes |
3672 | else | |
042acc47 WP |
3673 | CFLAGS="" |
3674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb WP |
3675 | /* end confdefs.h. */ |
3676 | ||
3677 | int | |
3678 | main () | |
3679 | { | |
3680 | ||
3681 | ; | |
3682 | return 0; | |
3683 | } | |
3684 | _ACEOF | |
042acc47 | 3685 | if ac_fn_c_try_compile "$LINENO"; then : |
b57f37fb | 3686 | |
042acc47 WP |
3687 | else |
3688 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b57f37fb | 3689 | CFLAGS="-g" |
042acc47 | 3690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb WP |
3691 | /* end confdefs.h. */ |
3692 | ||
3693 | int | |
3694 | main () | |
3695 | { | |
3696 | ||
3697 | ; | |
3698 | return 0; | |
3699 | } | |
3700 | _ACEOF | |
042acc47 | 3701 | if ac_fn_c_try_compile "$LINENO"; then : |
b57f37fb | 3702 | ac_cv_prog_cc_g=yes |
b57f37fb | 3703 | fi |
b57f37fb WP |
3704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3705 | fi | |
b57f37fb WP |
3706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3707 | fi | |
b57f37fb WP |
3708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3709 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3710 | fi | |
042acc47 | 3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
f030cae8 | 3712 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
b57f37fb WP |
3713 | if test "$ac_test_CFLAGS" = set; then |
3714 | CFLAGS=$ac_save_CFLAGS | |
3715 | elif test $ac_cv_prog_cc_g = yes; then | |
3716 | if test "$GCC" = yes; then | |
3717 | CFLAGS="-g -O2" | |
3718 | else | |
3719 | CFLAGS="-g" | |
3720 | fi | |
3721 | else | |
3722 | if test "$GCC" = yes; then | |
3723 | CFLAGS="-O2" | |
3724 | else | |
3725 | CFLAGS= | |
3726 | fi | |
3727 | fi | |
042acc47 | 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
f030cae8 | 3729 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
12e39525 | 3730 | if ${ac_cv_prog_cc_c89+:} false; then : |
f030cae8 | 3731 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3732 | else |
3733 | ac_cv_prog_cc_c89=no | |
3734 | ac_save_CC=$CC | |
042acc47 | 3735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb WP |
3736 | /* end confdefs.h. */ |
3737 | #include <stdarg.h> | |
3738 | #include <stdio.h> | |
3739 | #include <sys/types.h> | |
3740 | #include <sys/stat.h> | |
3741 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3742 | struct buf { int x; }; | |
3743 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3744 | static char *e (p, i) | |
3745 | char **p; | |
3746 | int i; | |
3747 | { | |
3748 | return p[i]; | |
3749 | } | |
3750 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3751 | { | |
3752 | char *s; | |
3753 | va_list v; | |
3754 | va_start (v,p); | |
3755 | s = g (p, va_arg (v,int)); | |
3756 | va_end (v); | |
3757 | return s; | |
3758 | } | |
3759 | ||
3760 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3761 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3762 | These don't provoke an error unfortunately, instead are silently treated | |
3763 | as 'x'. The following induces an error, until -std is added to get | |
3764 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3765 | array size at least. It's necessary to write '\x00'==0 to get something | |
3766 | that's true only with -std. */ | |
3767 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3768 | ||
3769 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3770 | inside strings and character constants. */ | |
3771 | #define FOO(x) 'x' | |
3772 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3773 | ||
3774 | int test (int i, double x); | |
3775 | struct s1 {int (*f) (int a);}; | |
3776 | struct s2 {int (*f) (double a);}; | |
3777 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3778 | int argc; | |
3779 | char **argv; | |
3780 | int | |
3781 | main () | |
3782 | { | |
3783 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3784 | ; | |
3785 | return 0; | |
3786 | } | |
3787 | _ACEOF | |
3788 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3789 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3790 | do | |
3791 | CC="$ac_save_CC $ac_arg" | |
042acc47 | 3792 | if ac_fn_c_try_compile "$LINENO"; then : |
b57f37fb | 3793 | ac_cv_prog_cc_c89=$ac_arg |
b57f37fb | 3794 | fi |
b57f37fb WP |
3795 | rm -f core conftest.err conftest.$ac_objext |
3796 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3797 | done | |
3798 | rm -f conftest.$ac_ext | |
3799 | CC=$ac_save_CC | |
3800 | ||
3801 | fi | |
3802 | # AC_CACHE_VAL | |
3803 | case "x$ac_cv_prog_cc_c89" in | |
3804 | x) | |
042acc47 | 3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
f030cae8 | 3806 | $as_echo "none needed" >&6; } ;; |
b57f37fb | 3807 | xno) |
042acc47 | 3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
f030cae8 | 3809 | $as_echo "unsupported" >&6; } ;; |
b57f37fb WP |
3810 | *) |
3811 | CC="$CC $ac_cv_prog_cc_c89" | |
042acc47 | 3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
f030cae8 | 3813 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
b57f37fb | 3814 | esac |
042acc47 | 3815 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b57f37fb | 3816 | |
042acc47 | 3817 | fi |
b57f37fb WP |
3818 | |
3819 | ac_ext=c | |
3820 | ac_cpp='$CPP $CPPFLAGS' | |
3821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3824 | ||
3825 | depcc="$CC" am_compiler_list= | |
3826 | ||
042acc47 | 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
f030cae8 | 3828 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
12e39525 | 3829 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
f030cae8 | 3830 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
3831 | else |
3832 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3833 | # We make a subdir and do the tests there. Otherwise we can end up | |
3834 | # making bogus files that we don't know about and never remove. For | |
3835 | # instance it was reported that on HP-UX the gcc test will end up | |
3836 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3837 | # in D'. | |
3838 | mkdir conftest.dir | |
3839 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3840 | # using a relative directory. | |
3841 | cp "$am_depcomp" conftest.dir | |
3842 | cd conftest.dir | |
3843 | # We will build objects and dependencies in a subdirectory because | |
3844 | # it helps to detect inapplicable dependency modes. For instance | |
3845 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3846 | # side effect of compilation, but ICC will put the dependencies in | |
3847 | # the current directory while Tru64 will put them in the object | |
3848 | # directory. | |
3849 | mkdir sub | |
3850 | ||
3851 | am_cv_CC_dependencies_compiler_type=none | |
3852 | if test "$am_compiler_list" = ""; then | |
3853 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3854 | fi | |
042acc47 WP |
3855 | am__universal=false |
3856 | case " $depcc " in #( | |
3857 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3858 | esac | |
3859 | ||
b57f37fb WP |
3860 | for depmode in $am_compiler_list; do |
3861 | # Setup a source with many dependencies, because some compilers | |
3862 | # like to wrap large dependency lists on column 80 (with \), and | |
3863 | # we should not choose a depcomp mode which is confused by this. | |
3864 | # | |
3865 | # We need to recreate these files for each test, as the compiler may | |
3866 | # overwrite some of them when testing with obscure command lines. | |
3867 | # This happens at least with the AIX C compiler. | |
3868 | : > sub/conftest.c | |
3869 | for i in 1 2 3 4 5 6; do | |
3870 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3871 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3872 | # Solaris 8's {/usr,}/bin/sh. | |
3873 | touch sub/conftst$i.h | |
3874 | done | |
3875 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3876 | ||
042acc47 WP |
3877 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3878 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3879 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3880 | # versions had trouble with output in subdirs | |
3881 | am__obj=sub/conftest.${OBJEXT-o} | |
3882 | am__minus_obj="-o $am__obj" | |
b57f37fb | 3883 | case $depmode in |
042acc47 WP |
3884 | gcc) |
3885 | # This depmode causes a compiler race in universal mode. | |
3886 | test "$am__universal" = false || continue | |
3887 | ;; | |
b57f37fb WP |
3888 | nosideeffect) |
3889 | # after this tag, mechanisms are not by side-effect, so they'll | |
3890 | # only be used when explicitly requested | |
3891 | if test "x$enable_dependency_tracking" = xyes; then | |
3892 | continue | |
3893 | else | |
3894 | break | |
3895 | fi | |
3896 | ;; | |
042acc47 WP |
3897 | msvisualcpp | msvcmsys) |
3898 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3899 | # not run yet. These depmodes are late enough in the game, and | |
3900 | # so weak that their functioning should not be impacted. | |
3901 | am__obj=conftest.${OBJEXT-o} | |
3902 | am__minus_obj= | |
3903 | ;; | |
b57f37fb WP |
3904 | none) break ;; |
3905 | esac | |
b57f37fb | 3906 | if depmode=$depmode \ |
042acc47 | 3907 | source=sub/conftest.c object=$am__obj \ |
b57f37fb | 3908 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
042acc47 | 3909 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
b57f37fb WP |
3910 | >/dev/null 2>conftest.err && |
3911 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3912 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
042acc47 | 3913 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
b57f37fb WP |
3914 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3915 | # icc doesn't choke on unknown options, it will just issue warnings | |
3916 | # or remarks (even with -Werror). So we grep stderr for any message | |
3917 | # that says an option was ignored or not supported. | |
3918 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3919 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3920 | # The diagnosis changed in icc 8.0: | |
3921 | # icc: Command line remark: option '-MP' not supported | |
3922 | if (grep 'ignoring option' conftest.err || | |
3923 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3924 | am_cv_CC_dependencies_compiler_type=$depmode | |
3925 | break | |
3926 | fi | |
3927 | fi | |
3928 | done | |
3929 | ||
3930 | cd .. | |
3931 | rm -rf conftest.dir | |
3932 | else | |
3933 | am_cv_CC_dependencies_compiler_type=none | |
3934 | fi | |
3935 | ||
3936 | fi | |
042acc47 | 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
f030cae8 | 3938 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
b57f37fb WP |
3939 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3940 | ||
3941 | if | |
3942 | test "x$enable_dependency_tracking" != xno \ | |
3943 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3944 | am__fastdepCC_TRUE= | |
3945 | am__fastdepCC_FALSE='#' | |
3946 | else | |
3947 | am__fastdepCC_TRUE='#' | |
3948 | am__fastdepCC_FALSE= | |
3949 | fi | |
3950 | ||
3951 | ||
f030cae8 VY |
3952 | |
3953 | ac_ext=c | |
3954 | ac_cpp='$CPP $CPPFLAGS' | |
3955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
042acc47 | 3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
f030cae8 VY |
3959 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
3960 | # On Suns, sometimes $CPP names a directory. | |
3961 | if test -n "$CPP" && test -d "$CPP"; then | |
3962 | CPP= | |
3963 | fi | |
3964 | if test -z "$CPP"; then | |
12e39525 | 3965 | if ${ac_cv_prog_CPP+:} false; then : |
f030cae8 | 3966 | $as_echo_n "(cached) " >&6 |
b57f37fb | 3967 | else |
f030cae8 VY |
3968 | # Double quotes because CPP needs to be expanded |
3969 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3970 | do | |
3971 | ac_preproc_ok=false | |
3972 | for ac_c_preproc_warn_flag in '' yes | |
3973 | do | |
3974 | # Use a header file that comes with gcc, so configuring glibc | |
3975 | # with a fresh cross-compiler works. | |
3976 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3977 | # <limits.h> exists even on freestanding compilers. | |
3978 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3979 | # not just through cpp. "Syntax error" is here to catch this case. | |
042acc47 | 3980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 3981 | /* end confdefs.h. */ |
f030cae8 VY |
3982 | #ifdef __STDC__ |
3983 | # include <limits.h> | |
b57f37fb | 3984 | #else |
f030cae8 | 3985 | # include <assert.h> |
b57f37fb | 3986 | #endif |
f030cae8 | 3987 | Syntax error |
b57f37fb | 3988 | _ACEOF |
042acc47 | 3989 | if ac_fn_c_try_cpp "$LINENO"; then : |
b57f37fb | 3990 | |
042acc47 | 3991 | else |
f030cae8 VY |
3992 | # Broken: fails on valid input. |
3993 | continue | |
b57f37fb | 3994 | fi |
12e39525 | 3995 | rm -f conftest.err conftest.i conftest.$ac_ext |
b57f37fb | 3996 | |
f030cae8 VY |
3997 | # OK, works on sane cases. Now check whether nonexistent headers |
3998 | # can be detected and how. | |
042acc47 | 3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 VY |
4000 | /* end confdefs.h. */ |
4001 | #include <ac_nonexistent.h> | |
4002 | _ACEOF | |
042acc47 | 4003 | if ac_fn_c_try_cpp "$LINENO"; then : |
f030cae8 VY |
4004 | # Broken: success on invalid input. |
4005 | continue | |
4006 | else | |
f030cae8 VY |
4007 | # Passes both tests. |
4008 | ac_preproc_ok=: | |
4009 | break | |
4010 | fi | |
12e39525 | 4011 | rm -f conftest.err conftest.i conftest.$ac_ext |
b57f37fb | 4012 | |
f030cae8 VY |
4013 | done |
4014 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12e39525 | 4015 | rm -f conftest.i conftest.err conftest.$ac_ext |
042acc47 | 4016 | if $ac_preproc_ok; then : |
f030cae8 | 4017 | break |
b57f37fb WP |
4018 | fi |
4019 | ||
f030cae8 VY |
4020 | done |
4021 | ac_cv_prog_CPP=$CPP | |
b57f37fb | 4022 | |
f030cae8 VY |
4023 | fi |
4024 | CPP=$ac_cv_prog_CPP | |
b57f37fb | 4025 | else |
f030cae8 VY |
4026 | ac_cv_prog_CPP=$CPP |
4027 | fi | |
042acc47 | 4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
f030cae8 VY |
4029 | $as_echo "$CPP" >&6; } |
4030 | ac_preproc_ok=false | |
4031 | for ac_c_preproc_warn_flag in '' yes | |
b57f37fb | 4032 | do |
f030cae8 VY |
4033 | # Use a header file that comes with gcc, so configuring glibc |
4034 | # with a fresh cross-compiler works. | |
4035 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4036 | # <limits.h> exists even on freestanding compilers. | |
4037 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4038 | # not just through cpp. "Syntax error" is here to catch this case. | |
042acc47 | 4039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 VY |
4040 | /* end confdefs.h. */ |
4041 | #ifdef __STDC__ | |
4042 | # include <limits.h> | |
4043 | #else | |
4044 | # include <assert.h> | |
4045 | #endif | |
4046 | Syntax error | |
4047 | _ACEOF | |
042acc47 | 4048 | if ac_fn_c_try_cpp "$LINENO"; then : |
b57f37fb | 4049 | |
042acc47 | 4050 | else |
f030cae8 VY |
4051 | # Broken: fails on valid input. |
4052 | continue | |
b57f37fb | 4053 | fi |
12e39525 | 4054 | rm -f conftest.err conftest.i conftest.$ac_ext |
b57f37fb | 4055 | |
f030cae8 VY |
4056 | # OK, works on sane cases. Now check whether nonexistent headers |
4057 | # can be detected and how. | |
042acc47 | 4058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 VY |
4059 | /* end confdefs.h. */ |
4060 | #include <ac_nonexistent.h> | |
4061 | _ACEOF | |
042acc47 | 4062 | if ac_fn_c_try_cpp "$LINENO"; then : |
f030cae8 VY |
4063 | # Broken: success on invalid input. |
4064 | continue | |
4065 | else | |
f030cae8 VY |
4066 | # Passes both tests. |
4067 | ac_preproc_ok=: | |
4068 | break | |
4069 | fi | |
12e39525 | 4070 | rm -f conftest.err conftest.i conftest.$ac_ext |
f030cae8 VY |
4071 | |
4072 | done | |
4073 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12e39525 | 4074 | rm -f conftest.i conftest.err conftest.$ac_ext |
042acc47 WP |
4075 | if $ac_preproc_ok; then : |
4076 | ||
b57f37fb | 4077 | else |
042acc47 | 4078 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
f030cae8 | 4079 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
12e39525 JH |
4080 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4081 | See \`config.log' for more details" "$LINENO" 5; } | |
f030cae8 VY |
4082 | fi |
4083 | ||
4084 | ac_ext=c | |
4085 | ac_cpp='$CPP $CPPFLAGS' | |
4086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4089 | ||
4090 | ||
042acc47 | 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
f030cae8 | 4092 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
12e39525 | 4093 | if ${ac_cv_path_GREP+:} false; then : |
f030cae8 | 4094 | $as_echo_n "(cached) " >&6 |
b57f37fb | 4095 | else |
f030cae8 | 4096 | if test -z "$GREP"; then |
b57f37fb | 4097 | ac_path_GREP_found=false |
f030cae8 VY |
4098 | # Loop through the user's path and test for each of PROGNAME-LIST |
4099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b57f37fb WP |
4100 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4101 | do | |
4102 | IFS=$as_save_IFS | |
4103 | test -z "$as_dir" && as_dir=. | |
042acc47 | 4104 | for ac_prog in grep ggrep; do |
f030cae8 VY |
4105 | for ac_exec_ext in '' $ac_executable_extensions; do |
4106 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4107 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4108 | # Check for GNU ac_path_GREP and select it if it is found. | |
b57f37fb WP |
4109 | # Check for GNU $ac_path_GREP |
4110 | case `"$ac_path_GREP" --version 2>&1` in | |
4111 | *GNU*) | |
4112 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4113 | *) | |
4114 | ac_count=0 | |
f030cae8 | 4115 | $as_echo_n 0123456789 >"conftest.in" |
b57f37fb WP |
4116 | while : |
4117 | do | |
4118 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4119 | mv "conftest.tmp" "conftest.in" | |
4120 | cp "conftest.in" "conftest.nl" | |
f030cae8 | 4121 | $as_echo 'GREP' >> "conftest.nl" |
b57f37fb WP |
4122 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4123 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
042acc47 | 4124 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
b57f37fb WP |
4125 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4126 | # Best one so far, save it but keep looking for a better one | |
4127 | ac_cv_path_GREP="$ac_path_GREP" | |
4128 | ac_path_GREP_max=$ac_count | |
4129 | fi | |
4130 | # 10*(2^10) chars as input seems more than enough | |
4131 | test $ac_count -gt 10 && break | |
4132 | done | |
4133 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4134 | esac | |
4135 | ||
f030cae8 VY |
4136 | $ac_path_GREP_found && break 3 |
4137 | done | |
b57f37fb | 4138 | done |
042acc47 | 4139 | done |
b57f37fb | 4140 | IFS=$as_save_IFS |
f030cae8 | 4141 | if test -z "$ac_cv_path_GREP"; then |
12e39525 | 4142 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
f030cae8 | 4143 | fi |
b57f37fb WP |
4144 | else |
4145 | ac_cv_path_GREP=$GREP | |
4146 | fi | |
4147 | ||
b57f37fb | 4148 | fi |
042acc47 | 4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
f030cae8 | 4150 | $as_echo "$ac_cv_path_GREP" >&6; } |
b57f37fb WP |
4151 | GREP="$ac_cv_path_GREP" |
4152 | ||
4153 | ||
042acc47 | 4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
f030cae8 | 4155 | $as_echo_n "checking for egrep... " >&6; } |
12e39525 | 4156 | if ${ac_cv_path_EGREP+:} false; then : |
f030cae8 | 4157 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
4158 | else |
4159 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4160 | then ac_cv_path_EGREP="$GREP -E" | |
4161 | else | |
f030cae8 | 4162 | if test -z "$EGREP"; then |
b57f37fb | 4163 | ac_path_EGREP_found=false |
f030cae8 VY |
4164 | # Loop through the user's path and test for each of PROGNAME-LIST |
4165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b57f37fb WP |
4166 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4167 | do | |
4168 | IFS=$as_save_IFS | |
4169 | test -z "$as_dir" && as_dir=. | |
042acc47 | 4170 | for ac_prog in egrep; do |
f030cae8 VY |
4171 | for ac_exec_ext in '' $ac_executable_extensions; do |
4172 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4173 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4174 | # Check for GNU ac_path_EGREP and select it if it is found. | |
b57f37fb WP |
4175 | # Check for GNU $ac_path_EGREP |
4176 | case `"$ac_path_EGREP" --version 2>&1` in | |
4177 | *GNU*) | |
4178 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4179 | *) | |
4180 | ac_count=0 | |
f030cae8 | 4181 | $as_echo_n 0123456789 >"conftest.in" |
b57f37fb WP |
4182 | while : |
4183 | do | |
4184 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4185 | mv "conftest.tmp" "conftest.in" | |
4186 | cp "conftest.in" "conftest.nl" | |
f030cae8 | 4187 | $as_echo 'EGREP' >> "conftest.nl" |
b57f37fb WP |
4188 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4189 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
042acc47 | 4190 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
b57f37fb WP |
4191 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4192 | # Best one so far, save it but keep looking for a better one | |
4193 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4194 | ac_path_EGREP_max=$ac_count | |
4195 | fi | |
4196 | # 10*(2^10) chars as input seems more than enough | |
4197 | test $ac_count -gt 10 && break | |
4198 | done | |
4199 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4200 | esac | |
4201 | ||
f030cae8 VY |
4202 | $ac_path_EGREP_found && break 3 |
4203 | done | |
b57f37fb | 4204 | done |
042acc47 | 4205 | done |
b57f37fb | 4206 | IFS=$as_save_IFS |
f030cae8 | 4207 | if test -z "$ac_cv_path_EGREP"; then |
12e39525 | 4208 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
f030cae8 | 4209 | fi |
b57f37fb WP |
4210 | else |
4211 | ac_cv_path_EGREP=$EGREP | |
4212 | fi | |
4213 | ||
b57f37fb WP |
4214 | fi |
4215 | fi | |
042acc47 | 4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
f030cae8 | 4217 | $as_echo "$ac_cv_path_EGREP" >&6; } |
b57f37fb WP |
4218 | EGREP="$ac_cv_path_EGREP" |
4219 | ||
4220 | ||
042acc47 | 4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
f030cae8 | 4222 | $as_echo_n "checking for ANSI C header files... " >&6; } |
12e39525 | 4223 | if ${ac_cv_header_stdc+:} false; then : |
f030cae8 | 4224 | $as_echo_n "(cached) " >&6 |
b57f37fb | 4225 | else |
042acc47 | 4226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 4227 | /* end confdefs.h. */ |
f030cae8 VY |
4228 | #include <stdlib.h> |
4229 | #include <stdarg.h> | |
4230 | #include <string.h> | |
4231 | #include <float.h> | |
b57f37fb | 4232 | |
b57f37fb WP |
4233 | int |
4234 | main () | |
4235 | { | |
f030cae8 | 4236 | |
b57f37fb WP |
4237 | ; |
4238 | return 0; | |
4239 | } | |
4240 | _ACEOF | |
042acc47 | 4241 | if ac_fn_c_try_compile "$LINENO"; then : |
f030cae8 | 4242 | ac_cv_header_stdc=yes |
b57f37fb | 4243 | else |
042acc47 | 4244 | ac_cv_header_stdc=no |
b57f37fb | 4245 | fi |
f030cae8 VY |
4246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4247 | ||
4248 | if test $ac_cv_header_stdc = yes; then | |
4249 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
042acc47 | 4250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 VY |
4251 | /* end confdefs.h. */ |
4252 | #include <string.h> | |
4253 | ||
4254 | _ACEOF | |
4255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
042acc47 WP |
4256 | $EGREP "memchr" >/dev/null 2>&1; then : |
4257 | ||
b57f37fb | 4258 | else |
f030cae8 | 4259 | ac_cv_header_stdc=no |
b57f37fb | 4260 | fi |
f030cae8 | 4261 | rm -f conftest* |
b57f37fb WP |
4262 | |
4263 | fi | |
4264 | ||
f030cae8 VY |
4265 | if test $ac_cv_header_stdc = yes; then |
4266 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
042acc47 | 4267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 4268 | /* end confdefs.h. */ |
f030cae8 | 4269 | #include <stdlib.h> |
b57f37fb WP |
4270 | |
4271 | _ACEOF | |
f030cae8 | 4272 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
042acc47 WP |
4273 | $EGREP "free" >/dev/null 2>&1; then : |
4274 | ||
b57f37fb | 4275 | else |
f030cae8 | 4276 | ac_cv_header_stdc=no |
b57f37fb | 4277 | fi |
f030cae8 | 4278 | rm -f conftest* |
b57f37fb WP |
4279 | |
4280 | fi | |
b57f37fb | 4281 | |
f030cae8 VY |
4282 | if test $ac_cv_header_stdc = yes; then |
4283 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
042acc47 | 4284 | if test "$cross_compiling" = yes; then : |
f030cae8 | 4285 | : |
b57f37fb | 4286 | else |
042acc47 | 4287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 4288 | /* end confdefs.h. */ |
f030cae8 VY |
4289 | #include <ctype.h> |
4290 | #include <stdlib.h> | |
4291 | #if ((' ' & 0x0FF) == 0x020) | |
4292 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4293 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4294 | #else | |
4295 | # define ISLOWER(c) \ | |
4296 | (('a' <= (c) && (c) <= 'i') \ | |
4297 | || ('j' <= (c) && (c) <= 'r') \ | |
4298 | || ('s' <= (c) && (c) <= 'z')) | |
4299 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
b57f37fb WP |
4300 | #endif |
4301 | ||
f030cae8 VY |
4302 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4303 | int | |
4304 | main () | |
4305 | { | |
4306 | int i; | |
4307 | for (i = 0; i < 256; i++) | |
4308 | if (XOR (islower (i), ISLOWER (i)) | |
4309 | || toupper (i) != TOUPPER (i)) | |
4310 | return 2; | |
b57f37fb WP |
4311 | return 0; |
4312 | } | |
4313 | _ACEOF | |
042acc47 | 4314 | if ac_fn_c_try_run "$LINENO"; then : |
f030cae8 | 4315 | |
042acc47 WP |
4316 | else |
4317 | ac_cv_header_stdc=no | |
f030cae8 | 4318 | fi |
042acc47 WP |
4319 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4320 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
f030cae8 VY |
4321 | fi |
4322 | ||
f030cae8 VY |
4323 | fi |
4324 | fi | |
042acc47 | 4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
f030cae8 VY |
4326 | $as_echo "$ac_cv_header_stdc" >&6; } |
4327 | if test $ac_cv_header_stdc = yes; then | |
4328 | ||
042acc47 | 4329 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
f030cae8 VY |
4330 | |
4331 | fi | |
4332 | ||
4333 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
042acc47 WP |
4334 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4335 | inttypes.h stdint.h unistd.h | |
4336 | do : | |
4337 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4338 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4339 | " | |
12e39525 | 4340 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
042acc47 WP |
4341 | cat >>confdefs.h <<_ACEOF |
4342 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4343 | _ACEOF | |
f030cae8 | 4344 | |
042acc47 | 4345 | fi |
f030cae8 | 4346 | |
042acc47 | 4347 | done |
f030cae8 VY |
4348 | |
4349 | ||
4350 | ||
042acc47 | 4351 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
12e39525 | 4352 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
042acc47 WP |
4353 | MINIX=yes |
4354 | else | |
4355 | MINIX= | |
4356 | fi | |
f030cae8 VY |
4357 | |
4358 | ||
042acc47 | 4359 | if test "$MINIX" = yes; then |
f030cae8 | 4360 | |
042acc47 | 4361 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
f030cae8 | 4362 | |
b57f37fb | 4363 | |
042acc47 | 4364 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
b57f37fb | 4365 | |
b57f37fb | 4366 | |
042acc47 | 4367 | $as_echo "#define _MINIX 1" >>confdefs.h |
f030cae8 | 4368 | |
042acc47 | 4369 | fi |
f030cae8 VY |
4370 | |
4371 | ||
042acc47 | 4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
f030cae8 | 4373 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
12e39525 | 4374 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
f030cae8 | 4375 | $as_echo_n "(cached) " >&6 |
b57f37fb | 4376 | else |
042acc47 | 4377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 | 4378 | /* end confdefs.h. */ |
b57f37fb | 4379 | |
f030cae8 VY |
4380 | # define __EXTENSIONS__ 1 |
4381 | $ac_includes_default | |
4382 | int | |
4383 | main () | |
4384 | { | |
4385 | ||
4386 | ; | |
4387 | return 0; | |
4388 | } | |
4389 | _ACEOF | |
042acc47 | 4390 | if ac_fn_c_try_compile "$LINENO"; then : |
f030cae8 | 4391 | ac_cv_safe_to_define___extensions__=yes |
b57f37fb | 4392 | else |
042acc47 | 4393 | ac_cv_safe_to_define___extensions__=no |
b57f37fb | 4394 | fi |
f030cae8 VY |
4395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4396 | fi | |
042acc47 | 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
f030cae8 VY |
4398 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4399 | test $ac_cv_safe_to_define___extensions__ = yes && | |
042acc47 | 4400 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
b57f37fb | 4401 | |
042acc47 | 4402 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
f030cae8 | 4403 | |
042acc47 | 4404 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
f030cae8 | 4405 | |
042acc47 WP |
4406 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4407 | ||
4408 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
f030cae8 | 4409 | |
f030cae8 VY |
4410 | |
4411 | ||
4412 | ||
042acc47 | 4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
f030cae8 | 4414 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
12e39525 | 4415 | if ${ac_cv_prog_cc_c99+:} false; then : |
f030cae8 | 4416 | $as_echo_n "(cached) " >&6 |
b57f37fb | 4417 | else |
f030cae8 VY |
4418 | ac_cv_prog_cc_c99=no |
4419 | ac_save_CC=$CC | |
042acc47 | 4420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 VY |
4421 | /* end confdefs.h. */ |
4422 | #include <stdarg.h> | |
4423 | #include <stdbool.h> | |
4424 | #include <stdlib.h> | |
4425 | #include <wchar.h> | |
4426 | #include <stdio.h> | |
b57f37fb | 4427 | |
f030cae8 VY |
4428 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
4429 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4430 | #define showlist(...) puts (#__VA_ARGS__) | |
4431 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4432 | static void | |
4433 | test_varargs_macros (void) | |
4434 | { | |
4435 | int x = 1234; | |
4436 | int y = 5678; | |
4437 | debug ("Flag"); | |
4438 | debug ("X = %d\n", x); | |
4439 | showlist (The first, second, and third items.); | |
4440 | report (x>y, "x is %d but y is %d", x, y); | |
4441 | } | |
b57f37fb | 4442 | |
f030cae8 VY |
4443 | // Check long long types. |
4444 | #define BIG64 18446744073709551615ull | |
4445 | #define BIG32 4294967295ul | |
4446 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4447 | #if !BIG_OK | |
4448 | your preprocessor is broken; | |
4449 | #endif | |
4450 | #if BIG_OK | |
4451 | #else | |
4452 | your preprocessor is broken; | |
4453 | #endif | |
4454 | static long long int bignum = -9223372036854775807LL; | |
4455 | static unsigned long long int ubignum = BIG64; | |
b57f37fb | 4456 | |
f030cae8 VY |
4457 | struct incomplete_array |
4458 | { | |
4459 | int datasize; | |
4460 | double data[]; | |
4461 | }; | |
b57f37fb | 4462 | |
f030cae8 VY |
4463 | struct named_init { |
4464 | int number; | |
4465 | const wchar_t *name; | |
4466 | double average; | |
4467 | }; | |
b57f37fb | 4468 | |
f030cae8 | 4469 | typedef const char *ccp; |
b57f37fb | 4470 | |
f030cae8 VY |
4471 | static inline int |
4472 | test_restrict (ccp restrict text) | |
4473 | { | |
4474 | // See if C++-style comments work. | |
4475 | // Iterate through items via the restricted pointer. | |
4476 | // Also check for declarations in for loops. | |
4477 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4478 | continue; | |
4479 | return 0; | |
4480 | } | |
b57f37fb | 4481 | |
f030cae8 VY |
4482 | // Check varargs and va_copy. |
4483 | static void | |
4484 | test_varargs (const char *format, ...) | |
4485 | { | |
4486 | va_list args; | |
4487 | va_start (args, format); | |
4488 | va_list args_copy; | |
4489 | va_copy (args_copy, args); | |
b57f37fb | 4490 | |
f030cae8 VY |
4491 | const char *str; |
4492 | int number; | |
4493 | float fnumber; | |
b57f37fb | 4494 | |
f030cae8 VY |
4495 | while (*format) |
4496 | { | |
4497 | switch (*format++) | |
4498 | { | |
4499 | case 's': // string | |
4500 | str = va_arg (args_copy, const char *); | |
4501 | break; | |
4502 | case 'd': // int | |
4503 | number = va_arg (args_copy, int); | |
4504 | break; | |
4505 | case 'f': // float | |
4506 | fnumber = va_arg (args_copy, double); | |
4507 | break; | |
4508 | default: | |
4509 | break; | |
4510 | } | |
4511 | } | |
4512 | va_end (args_copy); | |
4513 | va_end (args); | |
4514 | } | |
b57f37fb | 4515 | |
f030cae8 VY |
4516 | int |
4517 | main () | |
4518 | { | |
b57f37fb | 4519 | |
f030cae8 VY |
4520 | // Check bool. |
4521 | _Bool success = false; | |
b57f37fb | 4522 | |
f030cae8 VY |
4523 | // Check restrict. |
4524 | if (test_restrict ("String literal") == 0) | |
4525 | success = true; | |
4526 | char *restrict newvar = "Another string"; | |
b57f37fb | 4527 | |
f030cae8 VY |
4528 | // Check varargs. |
4529 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4530 | test_varargs_macros (); | |
b57f37fb | 4531 | |
f030cae8 VY |
4532 | // Check flexible array members. |
4533 | struct incomplete_array *ia = | |
4534 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4535 | ia->datasize = 10; | |
4536 | for (int i = 0; i < ia->datasize; ++i) | |
4537 | ia->data[i] = i * 1.234; | |
b57f37fb | 4538 | |
f030cae8 VY |
4539 | // Check named initializers. |
4540 | struct named_init ni = { | |
4541 | .number = 34, | |
4542 | .name = L"Test wide string", | |
4543 | .average = 543.34343, | |
4544 | }; | |
b57f37fb | 4545 | |
f030cae8 | 4546 | ni.number = 58; |
b57f37fb | 4547 | |
f030cae8 VY |
4548 | int dynamic_array[ni.number]; |
4549 | dynamic_array[ni.number - 1] = 543; | |
4550 | ||
4551 | // work around unused variable warnings | |
4552 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4553 | || dynamic_array[ni.number - 1] != 543); | |
4554 | ||
4555 | ; | |
4556 | return 0; | |
4557 | } | |
4558 | _ACEOF | |
4559 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | |
4560 | do | |
4561 | CC="$ac_save_CC $ac_arg" | |
042acc47 | 4562 | if ac_fn_c_try_compile "$LINENO"; then : |
f030cae8 | 4563 | ac_cv_prog_cc_c99=$ac_arg |
b57f37fb | 4564 | fi |
f030cae8 VY |
4565 | rm -f core conftest.err conftest.$ac_objext |
4566 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4567 | done | |
4568 | rm -f conftest.$ac_ext | |
4569 | CC=$ac_save_CC | |
4570 | ||
b57f37fb | 4571 | fi |
f030cae8 VY |
4572 | # AC_CACHE_VAL |
4573 | case "x$ac_cv_prog_cc_c99" in | |
4574 | x) | |
042acc47 | 4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
f030cae8 VY |
4576 | $as_echo "none needed" >&6; } ;; |
4577 | xno) | |
042acc47 | 4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
f030cae8 VY |
4579 | $as_echo "unsupported" >&6; } ;; |
4580 | *) | |
4581 | CC="$CC $ac_cv_prog_cc_c99" | |
042acc47 | 4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
f030cae8 | 4583 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
b57f37fb | 4584 | esac |
042acc47 | 4585 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
b57f37fb | 4586 | |
f030cae8 VY |
4587 | fi |
4588 | ||
4589 | ||
f030cae8 | 4590 | |
042acc47 | 4591 | if test x"$ac_cv_prog_cc_c99" = "xno"; then |
12e39525 | 4592 | as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5 |
f030cae8 | 4593 | fi |
b57f37fb | 4594 | |
b57f37fb WP |
4595 | |
4596 | ||
042acc47 | 4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
f030cae8 | 4598 | $as_echo_n "checking for egrep... " >&6; } |
12e39525 | 4599 | if ${ac_cv_path_EGREP+:} false; then : |
f030cae8 | 4600 | $as_echo_n "(cached) " >&6 |
b57f37fb | 4601 | else |
f030cae8 VY |
4602 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4603 | then ac_cv_path_EGREP="$GREP -E" | |
4604 | else | |
4605 | if test -z "$EGREP"; then | |
4606 | ac_path_EGREP_found=false | |
4607 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4609 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4610 | do | |
4611 | IFS=$as_save_IFS | |
4612 | test -z "$as_dir" && as_dir=. | |
042acc47 | 4613 | for ac_prog in egrep; do |
f030cae8 VY |
4614 | for ac_exec_ext in '' $ac_executable_extensions; do |
4615 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4616 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4617 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4618 | # Check for GNU $ac_path_EGREP | |
4619 | case `"$ac_path_EGREP" --version 2>&1` in | |
4620 | *GNU*) | |
4621 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4622 | *) | |
4623 | ac_count=0 | |
4624 | $as_echo_n 0123456789 >"conftest.in" | |
4625 | while : | |
4626 | do | |
4627 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4628 | mv "conftest.tmp" "conftest.in" | |
4629 | cp "conftest.in" "conftest.nl" | |
4630 | $as_echo 'EGREP' >> "conftest.nl" | |
4631 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4632 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
042acc47 | 4633 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
f030cae8 VY |
4634 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4635 | # Best one so far, save it but keep looking for a better one | |
4636 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4637 | ac_path_EGREP_max=$ac_count | |
4638 | fi | |
4639 | # 10*(2^10) chars as input seems more than enough | |
4640 | test $ac_count -gt 10 && break | |
4641 | done | |
4642 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4643 | esac | |
b57f37fb | 4644 | |
f030cae8 VY |
4645 | $ac_path_EGREP_found && break 3 |
4646 | done | |
4647 | done | |
042acc47 | 4648 | done |
f030cae8 VY |
4649 | IFS=$as_save_IFS |
4650 | if test -z "$ac_cv_path_EGREP"; then | |
12e39525 | 4651 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
f030cae8 | 4652 | fi |
b57f37fb | 4653 | else |
f030cae8 | 4654 | ac_cv_path_EGREP=$EGREP |
b57f37fb | 4655 | fi |
f030cae8 VY |
4656 | |
4657 | fi | |
4658 | fi | |
042acc47 | 4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
f030cae8 VY |
4660 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4661 | EGREP="$ac_cv_path_EGREP" | |
4662 | ||
4663 | ||
042acc47 | 4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
f030cae8 | 4665 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
12e39525 | 4666 | if ${ac_cv_path_SED+:} false; then : |
f030cae8 VY |
4667 | $as_echo_n "(cached) " >&6 |
4668 | else | |
4669 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4670 | for ac_i in 1 2 3 4 5 6 7; do | |
4671 | ac_script="$ac_script$as_nl$ac_script" | |
4672 | done | |
4673 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
042acc47 | 4674 | { ac_script=; unset ac_script;} |
f030cae8 VY |
4675 | if test -z "$SED"; then |
4676 | ac_path_SED_found=false | |
4677 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4679 | for as_dir in $PATH | |
4680 | do | |
4681 | IFS=$as_save_IFS | |
4682 | test -z "$as_dir" && as_dir=. | |
042acc47 | 4683 | for ac_prog in sed gsed; do |
f030cae8 VY |
4684 | for ac_exec_ext in '' $ac_executable_extensions; do |
4685 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4686 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4687 | # Check for GNU ac_path_SED and select it if it is found. | |
4688 | # Check for GNU $ac_path_SED | |
4689 | case `"$ac_path_SED" --version 2>&1` in | |
4690 | *GNU*) | |
4691 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4692 | *) | |
4693 | ac_count=0 | |
4694 | $as_echo_n 0123456789 >"conftest.in" | |
4695 | while : | |
4696 | do | |
4697 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4698 | mv "conftest.tmp" "conftest.in" | |
4699 | cp "conftest.in" "conftest.nl" | |
4700 | $as_echo '' >> "conftest.nl" | |
4701 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4702 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
042acc47 | 4703 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
f030cae8 VY |
4704 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4705 | # Best one so far, save it but keep looking for a better one | |
4706 | ac_cv_path_SED="$ac_path_SED" | |
4707 | ac_path_SED_max=$ac_count | |
b57f37fb | 4708 | fi |
f030cae8 VY |
4709 | # 10*(2^10) chars as input seems more than enough |
4710 | test $ac_count -gt 10 && break | |
b57f37fb | 4711 | done |
f030cae8 VY |
4712 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4713 | esac | |
4714 | ||
4715 | $ac_path_SED_found && break 3 | |
4716 | done | |
4717 | done | |
042acc47 | 4718 | done |
f030cae8 VY |
4719 | IFS=$as_save_IFS |
4720 | if test -z "$ac_cv_path_SED"; then | |
12e39525 | 4721 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
f030cae8 | 4722 | fi |
b57f37fb | 4723 | else |
f030cae8 | 4724 | ac_cv_path_SED=$SED |
b57f37fb | 4725 | fi |
f030cae8 | 4726 | |
b57f37fb | 4727 | fi |
042acc47 | 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
f030cae8 VY |
4729 | $as_echo "$ac_cv_path_SED" >&6; } |
4730 | SED="$ac_cv_path_SED" | |
4731 | rm -f conftest.sed | |
b57f37fb | 4732 | |
f030cae8 VY |
4733 | |
4734 | F77=no | |
4735 | CXX=no | |
4736 | GCJ=no | |
4737 | ||
4738 | # Check whether --enable-static was given. | |
042acc47 | 4739 | if test "${enable_static+set}" = set; then : |
f030cae8 VY |
4740 | enableval=$enable_static; p=${PACKAGE-default} |
4741 | case $enableval in | |
4742 | yes) enable_static=yes ;; | |
4743 | no) enable_static=no ;; | |
4744 | *) | |
4745 | enable_static=no | |
4746 | # Look at the argument we got. We use all the common list separators. | |
4747 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4748 | for pkg in $enableval; do | |
4749 | IFS="$lt_save_ifs" | |
4750 | if test "X$pkg" = "X$p"; then | |
4751 | enable_static=yes | |
4752 | fi | |
4753 | done | |
4754 | IFS="$lt_save_ifs" | |
4755 | ;; | |
4756 | esac | |
b57f37fb | 4757 | else |
f030cae8 | 4758 | enable_static=no |
b57f37fb | 4759 | fi |
f030cae8 VY |
4760 | |
4761 | ||
4762 | ||
042acc47 WP |
4763 | |
4764 | ||
4765 | ||
4766 | ||
4767 | ||
4768 | ||
f030cae8 | 4769 | # Check whether --enable-shared was given. |
042acc47 | 4770 | if test "${enable_shared+set}" = set; then : |
f030cae8 VY |
4771 | enableval=$enable_shared; p=${PACKAGE-default} |
4772 | case $enableval in | |
4773 | yes) enable_shared=yes ;; | |
4774 | no) enable_shared=no ;; | |
4775 | *) | |
4776 | enable_shared=no | |
4777 | # Look at the argument we got. We use all the common list separators. | |
4778 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4779 | for pkg in $enableval; do | |
4780 | IFS="$lt_save_ifs" | |
4781 | if test "X$pkg" = "X$p"; then | |
4782 | enable_shared=yes | |
4783 | fi | |
4784 | done | |
4785 | IFS="$lt_save_ifs" | |
4786 | ;; | |
4787 | esac | |
b57f37fb | 4788 | else |
f030cae8 | 4789 | enable_shared=yes |
b57f37fb | 4790 | fi |
b57f37fb WP |
4791 | |
4792 | ||
042acc47 WP |
4793 | |
4794 | ||
4795 | ||
4796 | ||
4797 | ||
4798 | ||
4799 | ||
4800 | ||
4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
f030cae8 VY |
4802 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
4803 | # Check whether --enable-maintainer-mode was given. | |
042acc47 | 4804 | if test "${enable_maintainer_mode+set}" = set; then : |
f030cae8 | 4805 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
b57f37fb | 4806 | else |
f030cae8 | 4807 | USE_MAINTAINER_MODE=no |
b57f37fb | 4808 | fi |
f030cae8 | 4809 | |
042acc47 | 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
f030cae8 VY |
4811 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
4812 | if test $USE_MAINTAINER_MODE = yes; then | |
4813 | MAINTAINER_MODE_TRUE= | |
4814 | MAINTAINER_MODE_FALSE='#' | |
4815 | else | |
4816 | MAINTAINER_MODE_TRUE='#' | |
4817 | MAINTAINER_MODE_FALSE= | |
4818 | fi | |
4819 | ||
4820 | MAINT=$MAINTAINER_MODE_TRUE | |
4821 | ||
4822 | ||
4823 | ||
042acc47 | 4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
f030cae8 | 4825 | $as_echo_n "checking for library containing strerror... " >&6; } |
12e39525 | 4826 | if ${ac_cv_search_strerror+:} false; then : |
f030cae8 VY |
4827 | $as_echo_n "(cached) " >&6 |
4828 | else | |
4829 | ac_func_search_save_LIBS=$LIBS | |
042acc47 | 4830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 VY |
4831 | /* end confdefs.h. */ |
4832 | ||
4833 | /* Override any GCC internal prototype to avoid an error. | |
4834 | Use char because int might match the return type of a GCC | |
4835 | builtin and then its argument prototype would still apply. */ | |
4836 | #ifdef __cplusplus | |
4837 | extern "C" | |
4838 | #endif | |
4839 | char strerror (); | |
4840 | int | |
4841 | main () | |
4842 | { | |
4843 | return strerror (); | |
4844 | ; | |
4845 | return 0; | |
4846 | } | |
4847 | _ACEOF | |
4848 | for ac_lib in '' cposix; do | |
4849 | if test -z "$ac_lib"; then | |
4850 | ac_res="none required" | |
4851 | else | |
4852 | ac_res=-l$ac_lib | |
4853 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4854 | fi | |
042acc47 | 4855 | if ac_fn_c_try_link "$LINENO"; then : |
f030cae8 | 4856 | ac_cv_search_strerror=$ac_res |
f030cae8 | 4857 | fi |
042acc47 WP |
4858 | rm -f core conftest.err conftest.$ac_objext \ |
4859 | conftest$ac_exeext | |
12e39525 | 4860 | if ${ac_cv_search_strerror+:} false; then : |
f030cae8 VY |
4861 | break |
4862 | fi | |
4863 | done | |
12e39525 | 4864 | if ${ac_cv_search_strerror+:} false; then : |
042acc47 | 4865 | |
f030cae8 VY |
4866 | else |
4867 | ac_cv_search_strerror=no | |
4868 | fi | |
4869 | rm conftest.$ac_ext | |
4870 | LIBS=$ac_func_search_save_LIBS | |
4871 | fi | |
042acc47 | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
f030cae8 VY |
4873 | $as_echo "$ac_cv_search_strerror" >&6; } |
4874 | ac_res=$ac_cv_search_strerror | |
042acc47 | 4875 | if test "$ac_res" != no; then : |
f030cae8 VY |
4876 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4877 | ||
4878 | fi | |
4879 | ||
042acc47 | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
f030cae8 | 4881 | $as_echo_n "checking for inline... " >&6; } |
12e39525 | 4882 | if ${ac_cv_c_inline+:} false; then : |
f030cae8 VY |
4883 | $as_echo_n "(cached) " >&6 |
4884 | else | |
4885 | ac_cv_c_inline=no | |
4886 | for ac_kw in inline __inline__ __inline; do | |
042acc47 | 4887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 VY |
4888 | /* end confdefs.h. */ |
4889 | #ifndef __cplusplus | |
4890 | typedef int foo_t; | |
4891 | static $ac_kw foo_t static_foo () {return 0; } | |
4892 | $ac_kw foo_t foo () {return 0; } | |
4893 | #endif | |
4894 | ||
4895 | _ACEOF | |
042acc47 | 4896 | if ac_fn_c_try_compile "$LINENO"; then : |
f030cae8 | 4897 | ac_cv_c_inline=$ac_kw |
f030cae8 | 4898 | fi |
f030cae8 VY |
4899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4900 | test "$ac_cv_c_inline" != no && break | |
4901 | done | |
4902 | ||
4903 | fi | |
042acc47 | 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
f030cae8 VY |
4905 | $as_echo "$ac_cv_c_inline" >&6; } |
4906 | ||
f030cae8 VY |
4907 | case $ac_cv_c_inline in |
4908 | inline | yes) ;; | |
4909 | *) | |
4910 | case $ac_cv_c_inline in | |
4911 | no) ac_val=;; | |
4912 | *) ac_val=$ac_cv_c_inline;; | |
4913 | esac | |
4914 | cat >>confdefs.h <<_ACEOF | |
4915 | #ifndef __cplusplus | |
4916 | #define inline $ac_val | |
4917 | #endif | |
4918 | _ACEOF | |
b57f37fb WP |
4919 | ;; |
4920 | esac | |
4921 | ||
042acc47 | 4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
f030cae8 | 4923 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
12e39525 | 4924 | if ${ac_cv_c_const+:} false; then : |
f030cae8 | 4925 | $as_echo_n "(cached) " >&6 |
b57f37fb | 4926 | else |
042acc47 | 4927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 VY |
4928 | /* end confdefs.h. */ |
4929 | ||
4930 | int | |
4931 | main () | |
4932 | { | |
4933 | /* FIXME: Include the comments suggested by Paul. */ | |
4934 | #ifndef __cplusplus | |
4935 | /* Ultrix mips cc rejects this. */ | |
4936 | typedef int charset[2]; | |
4937 | const charset cs; | |
4938 | /* SunOS 4.1.1 cc rejects this. */ | |
4939 | char const *const *pcpcc; | |
4940 | char **ppc; | |
4941 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4942 | struct point {int x, y;}; | |
4943 | static struct point const zero = {0,0}; | |
4944 | /* AIX XL C 1.02.0.0 rejects this. | |
4945 | It does not let you subtract one const X* pointer from another in | |
4946 | an arm of an if-expression whose if-part is not a constant | |
4947 | expression */ | |
4948 | const char *g = "string"; | |
4949 | pcpcc = &g + (g ? g-g : 0); | |
4950 | /* HPUX 7.0 cc rejects these. */ | |
4951 | ++pcpcc; | |
4952 | ppc = (char**) pcpcc; | |
4953 | pcpcc = (char const *const *) ppc; | |
4954 | { /* SCO 3.2v4 cc rejects this. */ | |
4955 | char *t; | |
4956 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4957 | ||
4958 | *t++ = 0; | |
4959 | if (s) return 0; | |
4960 | } | |
4961 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4962 | int x[] = {25, 17}; | |
4963 | const int *foo = &x[0]; | |
4964 | ++foo; | |
4965 | } | |
4966 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4967 | typedef const int *iptr; | |
4968 | iptr p = 0; | |
4969 | ++p; | |
4970 | } | |
4971 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4972 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4973 | struct s { int j; const int *ap[3]; }; | |
4974 | struct s *b; b->j = 5; | |
4975 | } | |
4976 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4977 | const int foo = 10; | |
4978 | if (!foo) return 0; | |
4979 | } | |
4980 | return !cs[0] && !zero.x; | |
4981 | #endif | |
4982 | ||
4983 | ; | |
4984 | return 0; | |
4985 | } | |
4986 | _ACEOF | |
042acc47 | 4987 | if ac_fn_c_try_compile "$LINENO"; then : |
f030cae8 | 4988 | ac_cv_c_const=yes |
b57f37fb | 4989 | else |
042acc47 | 4990 | ac_cv_c_const=no |
f030cae8 | 4991 | fi |
f030cae8 VY |
4992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4993 | fi | |
042acc47 | 4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
f030cae8 VY |
4995 | $as_echo "$ac_cv_c_const" >&6; } |
4996 | if test $ac_cv_c_const = no; then | |
4997 | ||
042acc47 | 4998 | $as_echo "#define const /**/" >>confdefs.h |
f030cae8 VY |
4999 | |
5000 | fi | |
5001 | ||
6dec141a JH |
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5003 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5004 | if ${ac_cv_c_bigendian+:} false; then : | |
5005 | $as_echo_n "(cached) " >&6 | |
5006 | else | |
5007 | ac_cv_c_bigendian=unknown | |
5008 | # See if we're dealing with a universal compiler. | |
5009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5010 | /* end confdefs.h. */ | |
5011 | #ifndef __APPLE_CC__ | |
5012 | not a universal capable compiler | |
5013 | #endif | |
5014 | typedef int dummy; | |
5015 | ||
5016 | _ACEOF | |
5017 | if ac_fn_c_try_compile "$LINENO"; then : | |
5018 | ||
5019 | # Check for potential -arch flags. It is not universal unless | |
5020 | # there are at least two -arch flags with different values. | |
5021 | ac_arch= | |
5022 | ac_prev= | |
5023 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5024 | if test -n "$ac_prev"; then | |
5025 | case $ac_word in | |
5026 | i?86 | x86_64 | ppc | ppc64) | |
5027 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5028 | ac_arch=$ac_word | |
5029 | else | |
5030 | ac_cv_c_bigendian=universal | |
5031 | break | |
5032 | fi | |
5033 | ;; | |
5034 | esac | |
5035 | ac_prev= | |
5036 | elif test "x$ac_word" = "x-arch"; then | |
5037 | ac_prev=arch | |
5038 | fi | |
5039 | done | |
5040 | fi | |
5041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5042 | if test $ac_cv_c_bigendian = unknown; then | |
5043 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5045 | /* end confdefs.h. */ | |
5046 | #include <sys/types.h> | |
5047 | #include <sys/param.h> | |
5048 | ||
5049 | int | |
5050 | main () | |
5051 | { | |
5052 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
5053 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5054 | && LITTLE_ENDIAN) | |
5055 | bogus endian macros | |
5056 | #endif | |
5057 | ||
5058 | ; | |
5059 | return 0; | |
5060 | } | |
5061 | _ACEOF | |
5062 | if ac_fn_c_try_compile "$LINENO"; then : | |
5063 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5065 | /* end confdefs.h. */ | |
5066 | #include <sys/types.h> | |
5067 | #include <sys/param.h> | |
5068 | ||
5069 | int | |
5070 | main () | |
5071 | { | |
5072 | #if BYTE_ORDER != BIG_ENDIAN | |
5073 | not big endian | |
5074 | #endif | |
5075 | ||
5076 | ; | |
5077 | return 0; | |
5078 | } | |
5079 | _ACEOF | |
5080 | if ac_fn_c_try_compile "$LINENO"; then : | |
5081 | ac_cv_c_bigendian=yes | |
5082 | else | |
5083 | ac_cv_c_bigendian=no | |
5084 | fi | |
5085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5086 | fi | |
5087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5088 | fi | |
5089 | if test $ac_cv_c_bigendian = unknown; then | |
5090 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5092 | /* end confdefs.h. */ | |
5093 | #include <limits.h> | |
5094 | ||
5095 | int | |
5096 | main () | |
5097 | { | |
5098 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5099 | bogus endian macros | |
5100 | #endif | |
5101 | ||
5102 | ; | |
5103 | return 0; | |
5104 | } | |
5105 | _ACEOF | |
5106 | if ac_fn_c_try_compile "$LINENO"; then : | |
5107 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5109 | /* end confdefs.h. */ | |
5110 | #include <limits.h> | |
5111 | ||
5112 | int | |
5113 | main () | |
5114 | { | |
5115 | #ifndef _BIG_ENDIAN | |
5116 | not big endian | |
5117 | #endif | |
5118 | ||
5119 | ; | |
5120 | return 0; | |
5121 | } | |
5122 | _ACEOF | |
5123 | if ac_fn_c_try_compile "$LINENO"; then : | |
5124 | ac_cv_c_bigendian=yes | |
5125 | else | |
5126 | ac_cv_c_bigendian=no | |
5127 | fi | |
5128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5129 | fi | |
5130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5131 | fi | |
5132 | if test $ac_cv_c_bigendian = unknown; then | |
5133 | # Compile a test program. | |
5134 | if test "$cross_compiling" = yes; then : | |
5135 | # Try to guess by grepping values from an object file. | |
5136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5137 | /* end confdefs.h. */ | |
5138 | short int ascii_mm[] = | |
5139 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5140 | short int ascii_ii[] = | |
5141 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5142 | int use_ascii (int i) { | |
5143 | return ascii_mm[i] + ascii_ii[i]; | |
5144 | } | |
5145 | short int ebcdic_ii[] = | |
5146 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5147 | short int ebcdic_mm[] = | |
5148 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5149 | int use_ebcdic (int i) { | |
5150 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5151 | } | |
5152 | extern int foo; | |
5153 | ||
5154 | int | |
5155 | main () | |
5156 | { | |
5157 | return use_ascii (foo) == use_ebcdic (foo); | |
5158 | ; | |
5159 | return 0; | |
5160 | } | |
5161 | _ACEOF | |
5162 | if ac_fn_c_try_compile "$LINENO"; then : | |
5163 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5164 | ac_cv_c_bigendian=yes | |
5165 | fi | |
5166 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5167 | if test "$ac_cv_c_bigendian" = unknown; then | |
5168 | ac_cv_c_bigendian=no | |
5169 | else | |
5170 | # finding both strings is unlikely to happen, but who knows? | |
5171 | ac_cv_c_bigendian=unknown | |
5172 | fi | |
5173 | fi | |
5174 | fi | |
5175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5176 | else | |
5177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5178 | /* end confdefs.h. */ | |
5179 | $ac_includes_default | |
5180 | int | |
5181 | main () | |
5182 | { | |
5183 | ||
5184 | /* Are we little or big endian? From Harbison&Steele. */ | |
5185 | union | |
5186 | { | |
5187 | long int l; | |
5188 | char c[sizeof (long int)]; | |
5189 | } u; | |
5190 | u.l = 1; | |
5191 | return u.c[sizeof (long int) - 1] == 1; | |
5192 | ||
5193 | ; | |
5194 | return 0; | |
5195 | } | |
5196 | _ACEOF | |
5197 | if ac_fn_c_try_run "$LINENO"; then : | |
5198 | ac_cv_c_bigendian=no | |
5199 | else | |
5200 | ac_cv_c_bigendian=yes | |
5201 | fi | |
5202 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5203 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5204 | fi | |
5205 | ||
5206 | fi | |
5207 | fi | |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
5209 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5210 | case $ac_cv_c_bigendian in #( | |
5211 | yes) | |
5212 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5213 | ;; #( | |
5214 | no) | |
5215 | ;; #( | |
5216 | universal) | |
5217 | ||
5218 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5219 | ||
5220 | ;; #( | |
5221 | *) | |
5222 | as_fn_error $? "unknown endianness | |
5223 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
5224 | esac | |
5225 | ||
042acc47 | 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
f030cae8 VY |
5227 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
5228 | set x ${MAKE-make} | |
5229 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
12e39525 | 5230 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
f030cae8 VY |
5231 | $as_echo_n "(cached) " >&6 |
5232 | else | |
5233 | cat >conftest.make <<\_ACEOF | |
5234 | SHELL = /bin/sh | |
5235 | all: | |
5236 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5237 | _ACEOF | |
12e39525 | 5238 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
f030cae8 VY |
5239 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5240 | *@@@%%%=?*=@@@%%%*) | |
5241 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5242 | *) | |
5243 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5244 | esac | |
5245 | rm -f conftest.make | |
5246 | fi | |
5247 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
042acc47 | 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
f030cae8 VY |
5249 | $as_echo "yes" >&6; } |
5250 | SET_MAKE= | |
5251 | else | |
042acc47 | 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 VY |
5253 | $as_echo "no" >&6; } |
5254 | SET_MAKE="MAKE=${MAKE-make}" | |
5255 | fi | |
5256 | ||
b57f37fb | 5257 | |
f030cae8 VY |
5258 | # Extract the first word of "automake", so it can be a program name with args. |
5259 | set dummy automake; ac_word=$2 | |
042acc47 | 5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5261 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5262 | if ${ac_cv_path_AUTOMAKE+:} false; then : |
f030cae8 VY |
5263 | $as_echo_n "(cached) " >&6 |
5264 | else | |
5265 | case $AUTOMAKE in | |
5266 | [\\/]* | ?:[\\/]*) | |
5267 | ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path. | |
b57f37fb | 5268 | ;; |
f030cae8 VY |
5269 | *) |
5270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5271 | for as_dir in $PATH | |
5272 | do | |
5273 | IFS=$as_save_IFS | |
5274 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5275 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5277 | ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 VY |
5279 | break 2 |
5280 | fi | |
5281 | done | |
042acc47 | 5282 | done |
f030cae8 | 5283 | IFS=$as_save_IFS |
b57f37fb | 5284 | |
b57f37fb | 5285 | ;; |
f030cae8 VY |
5286 | esac |
5287 | fi | |
5288 | AUTOMAKE=$ac_cv_path_AUTOMAKE | |
5289 | if test -n "$AUTOMAKE"; then | |
042acc47 | 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5 |
f030cae8 VY |
5291 | $as_echo "$AUTOMAKE" >&6; } |
5292 | else | |
042acc47 | 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 VY |
5294 | $as_echo "no" >&6; } |
5295 | fi | |
b57f37fb | 5296 | |
b57f37fb | 5297 | |
f030cae8 VY |
5298 | # Extract the first word of "aclocal", so it can be a program name with args. |
5299 | set dummy aclocal; ac_word=$2 | |
042acc47 | 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5301 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5302 | if ${ac_cv_path_ACLOCAL+:} false; then : |
f030cae8 VY |
5303 | $as_echo_n "(cached) " >&6 |
5304 | else | |
5305 | case $ACLOCAL in | |
5306 | [\\/]* | ?:[\\/]*) | |
5307 | ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path. | |
b57f37fb | 5308 | ;; |
b57f37fb | 5309 | *) |
f030cae8 VY |
5310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5311 | for as_dir in $PATH | |
5312 | do | |
5313 | IFS=$as_save_IFS | |
5314 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5315 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5317 | ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 VY |
5319 | break 2 |
5320 | fi | |
5321 | done | |
042acc47 | 5322 | done |
f030cae8 | 5323 | IFS=$as_save_IFS |
b57f37fb | 5324 | |
b57f37fb | 5325 | ;; |
f030cae8 VY |
5326 | esac |
5327 | fi | |
5328 | ACLOCAL=$ac_cv_path_ACLOCAL | |
5329 | if test -n "$ACLOCAL"; then | |
042acc47 | 5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 |
f030cae8 VY |
5331 | $as_echo "$ACLOCAL" >&6; } |
5332 | else | |
042acc47 | 5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 VY |
5334 | $as_echo "no" >&6; } |
5335 | fi | |
b57f37fb | 5336 | |
b57f37fb | 5337 | |
f030cae8 VY |
5338 | # Extract the first word of "autoheader", so it can be a program name with args. |
5339 | set dummy autoheader; ac_word=$2 | |
042acc47 | 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5341 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5342 | if ${ac_cv_path_AUTOHEADER+:} false; then : |
f030cae8 VY |
5343 | $as_echo_n "(cached) " >&6 |
5344 | else | |
5345 | case $AUTOHEADER in | |
5346 | [\\/]* | ?:[\\/]*) | |
5347 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. | |
b57f37fb | 5348 | ;; |
f030cae8 VY |
5349 | *) |
5350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5351 | for as_dir in $PATH | |
5352 | do | |
5353 | IFS=$as_save_IFS | |
5354 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5355 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5357 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 | 5359 | break 2 |
b57f37fb | 5360 | fi |
f030cae8 | 5361 | done |
042acc47 | 5362 | done |
f030cae8 VY |
5363 | IFS=$as_save_IFS |
5364 | ||
b57f37fb | 5365 | ;; |
f030cae8 VY |
5366 | esac |
5367 | fi | |
5368 | AUTOHEADER=$ac_cv_path_AUTOHEADER | |
5369 | if test -n "$AUTOHEADER"; then | |
042acc47 | 5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 |
f030cae8 VY |
5371 | $as_echo "$AUTOHEADER" >&6; } |
5372 | else | |
042acc47 | 5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 VY |
5374 | $as_echo "no" >&6; } |
5375 | fi | |
b57f37fb | 5376 | |
f030cae8 VY |
5377 | |
5378 | # Extract the first word of "as", so it can be a program name with args. | |
5379 | set dummy as; ac_word=$2 | |
042acc47 | 5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5381 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5382 | if ${ac_cv_path_AS+:} false; then : |
f030cae8 VY |
5383 | $as_echo_n "(cached) " >&6 |
5384 | else | |
5385 | case $AS in | |
5386 | [\\/]* | ?:[\\/]*) | |
5387 | ac_cv_path_AS="$AS" # Let the user override the test with a path. | |
b57f37fb | 5388 | ;; |
f030cae8 VY |
5389 | *) |
5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5391 | for as_dir in $PATH | |
5392 | do | |
5393 | IFS=$as_save_IFS | |
5394 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5397 | ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 VY |
5399 | break 2 |
5400 | fi | |
5401 | done | |
042acc47 | 5402 | done |
f030cae8 | 5403 | IFS=$as_save_IFS |
b57f37fb | 5404 | |
b57f37fb | 5405 | ;; |
f030cae8 VY |
5406 | esac |
5407 | fi | |
5408 | AS=$ac_cv_path_AS | |
5409 | if test -n "$AS"; then | |
042acc47 | 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
f030cae8 VY |
5411 | $as_echo "$AS" >&6; } |
5412 | else | |
042acc47 | 5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 VY |
5414 | $as_echo "no" >&6; } |
5415 | fi | |
b57f37fb | 5416 | |
b57f37fb | 5417 | |
f030cae8 VY |
5418 | # Extract the first word of "rm", so it can be a program name with args. |
5419 | set dummy rm; ac_word=$2 | |
042acc47 | 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5421 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5422 | if ${ac_cv_path_RM+:} false; then : |
f030cae8 VY |
5423 | $as_echo_n "(cached) " >&6 |
5424 | else | |
5425 | case $RM in | |
5426 | [\\/]* | ?:[\\/]*) | |
5427 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
b57f37fb | 5428 | ;; |
f030cae8 VY |
5429 | *) |
5430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5431 | for as_dir in $PATH | |
5432 | do | |
5433 | IFS=$as_save_IFS | |
5434 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5435 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5437 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 VY |
5439 | break 2 |
5440 | fi | |
5441 | done | |
042acc47 | 5442 | done |
f030cae8 | 5443 | IFS=$as_save_IFS |
b57f37fb | 5444 | |
b57f37fb | 5445 | ;; |
f030cae8 VY |
5446 | esac |
5447 | fi | |
5448 | RM=$ac_cv_path_RM | |
5449 | if test -n "$RM"; then | |
042acc47 | 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
f030cae8 VY |
5451 | $as_echo "$RM" >&6; } |
5452 | else | |
042acc47 | 5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 VY |
5454 | $as_echo "no" >&6; } |
5455 | fi | |
b57f37fb | 5456 | |
b57f37fb | 5457 | |
f030cae8 VY |
5458 | # Extract the first word of "cp", so it can be a program name with args. |
5459 | set dummy cp; ac_word=$2 | |
042acc47 | 5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5461 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5462 | if ${ac_cv_path_CP+:} false; then : |
f030cae8 VY |
5463 | $as_echo_n "(cached) " >&6 |
5464 | else | |
5465 | case $CP in | |
5466 | [\\/]* | ?:[\\/]*) | |
5467 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
b57f37fb | 5468 | ;; |
f030cae8 VY |
5469 | *) |
5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5471 | for as_dir in $PATH | |
5472 | do | |
5473 | IFS=$as_save_IFS | |
5474 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5475 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5477 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 VY |
5479 | break 2 |
5480 | fi | |
5481 | done | |
042acc47 | 5482 | done |
f030cae8 | 5483 | IFS=$as_save_IFS |
b57f37fb | 5484 | |
b57f37fb WP |
5485 | ;; |
5486 | esac | |
b57f37fb | 5487 | fi |
f030cae8 VY |
5488 | CP=$ac_cv_path_CP |
5489 | if test -n "$CP"; then | |
042acc47 | 5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
f030cae8 VY |
5491 | $as_echo "$CP" >&6; } |
5492 | else | |
042acc47 | 5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 5494 | $as_echo "no" >&6; } |
b57f37fb WP |
5495 | fi |
5496 | ||
b57f37fb | 5497 | |
f030cae8 VY |
5498 | # Extract the first word of "mv", so it can be a program name with args. |
5499 | set dummy mv; ac_word=$2 | |
042acc47 | 5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5501 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5502 | if ${ac_cv_path_MV+:} false; then : |
f030cae8 VY |
5503 | $as_echo_n "(cached) " >&6 |
5504 | else | |
5505 | case $MV in | |
5506 | [\\/]* | ?:[\\/]*) | |
5507 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
b57f37fb | 5508 | ;; |
f030cae8 VY |
5509 | *) |
5510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5511 | for as_dir in $PATH | |
5512 | do | |
5513 | IFS=$as_save_IFS | |
5514 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5515 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5517 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 | 5519 | break 2 |
b57f37fb | 5520 | fi |
f030cae8 | 5521 | done |
042acc47 | 5522 | done |
f030cae8 | 5523 | IFS=$as_save_IFS |
b57f37fb | 5524 | |
b57f37fb | 5525 | ;; |
f030cae8 VY |
5526 | esac |
5527 | fi | |
5528 | MV=$ac_cv_path_MV | |
5529 | if test -n "$MV"; then | |
042acc47 | 5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
f030cae8 VY |
5531 | $as_echo "$MV" >&6; } |
5532 | else | |
042acc47 | 5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 VY |
5534 | $as_echo "no" >&6; } |
5535 | fi | |
5536 | ||
5537 | ||
5538 | # Extract the first word of "ln", so it can be a program name with args. | |
5539 | set dummy ln; ac_word=$2 | |
042acc47 | 5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5541 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5542 | if ${ac_cv_path_LN+:} false; then : |
f030cae8 VY |
5543 | $as_echo_n "(cached) " >&6 |
5544 | else | |
5545 | case $LN in | |
5546 | [\\/]* | ?:[\\/]*) | |
5547 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
5548 | ;; | |
5549 | *) | |
5550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5551 | for as_dir in $PATH | |
5552 | do | |
5553 | IFS=$as_save_IFS | |
5554 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5555 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5557 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 VY |
5559 | break 2 |
5560 | fi | |
5561 | done | |
042acc47 | 5562 | done |
f030cae8 | 5563 | IFS=$as_save_IFS |
b57f37fb | 5564 | |
f030cae8 VY |
5565 | ;; |
5566 | esac | |
5567 | fi | |
5568 | LN=$ac_cv_path_LN | |
5569 | if test -n "$LN"; then | |
042acc47 | 5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
f030cae8 | 5571 | $as_echo "$LN" >&6; } |
b57f37fb | 5572 | else |
042acc47 | 5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 VY |
5574 | $as_echo "no" >&6; } |
5575 | fi | |
b57f37fb | 5576 | |
b57f37fb | 5577 | |
f030cae8 VY |
5578 | # Extract the first word of "touch", so it can be a program name with args. |
5579 | set dummy touch; ac_word=$2 | |
042acc47 | 5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
f030cae8 | 5581 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 5582 | if ${ac_cv_path_TOUCH+:} false; then : |
f030cae8 VY |
5583 | $as_echo_n "(cached) " >&6 |
5584 | else | |
5585 | case $TOUCH in | |
5586 | [\\/]* | ?:[\\/]*) | |
5587 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5588 | ;; | |
5589 | *) | |
5590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5591 | for as_dir in $PATH | |
5592 | do | |
5593 | IFS=$as_save_IFS | |
5594 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5595 | for ac_exec_ext in '' $ac_executable_extensions; do |
f030cae8 VY |
5596 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5597 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
042acc47 | 5598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f030cae8 VY |
5599 | break 2 |
5600 | fi | |
5601 | done | |
042acc47 | 5602 | done |
f030cae8 | 5603 | IFS=$as_save_IFS |
b57f37fb | 5604 | |
f030cae8 | 5605 | ;; |
b57f37fb | 5606 | esac |
f030cae8 VY |
5607 | fi |
5608 | TOUCH=$ac_cv_path_TOUCH | |
5609 | if test -n "$TOUCH"; then | |
042acc47 | 5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 |
f030cae8 | 5611 | $as_echo "$TOUCH" >&6; } |
b57f37fb | 5612 | else |
042acc47 | 5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 5614 | $as_echo "no" >&6; } |
b57f37fb WP |
5615 | fi |
5616 | ||
f030cae8 VY |
5617 | |
5618 | ac_ext=c | |
b57f37fb WP |
5619 | ac_cpp='$CPP $CPPFLAGS' |
5620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5623 | ||
f030cae8 | 5624 | |
042acc47 WP |
5625 | case `pwd` in |
5626 | *\ * | *\ *) | |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5628 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5629 | esac | |
5630 | ||
5631 | ||
5632 | ||
1800d973 WP |
5633 | macro_version='2.2.6b' |
5634 | macro_revision='1.3017' | |
042acc47 WP |
5635 | |
5636 | ||
5637 | ||
5638 | ||
5639 | ||
5640 | ||
5641 | ||
5642 | ||
5643 | ||
f030cae8 VY |
5644 | |
5645 | ||
042acc47 WP |
5646 | |
5647 | ||
5648 | ltmain="$ac_aux_dir/ltmain.sh" | |
5649 | ||
f030cae8 VY |
5650 | # Make sure we can run config.sub. |
5651 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
12e39525 | 5652 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
f030cae8 | 5653 | |
042acc47 | 5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
f030cae8 | 5655 | $as_echo_n "checking build system type... " >&6; } |
12e39525 | 5656 | if ${ac_cv_build+:} false; then : |
f030cae8 VY |
5657 | $as_echo_n "(cached) " >&6 |
5658 | else | |
5659 | ac_build_alias=$build_alias | |
5660 | test "x$ac_build_alias" = x && | |
5661 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5662 | test "x$ac_build_alias" = x && | |
12e39525 | 5663 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
f030cae8 | 5664 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
12e39525 | 5665 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
f030cae8 VY |
5666 | |
5667 | fi | |
042acc47 | 5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
f030cae8 VY |
5669 | $as_echo "$ac_cv_build" >&6; } |
5670 | case $ac_cv_build in | |
5671 | *-*-*) ;; | |
12e39525 | 5672 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
f030cae8 VY |
5673 | esac |
5674 | build=$ac_cv_build | |
5675 | ac_save_IFS=$IFS; IFS='-' | |
5676 | set x $ac_cv_build | |
5677 | shift | |
5678 | build_cpu=$1 | |
5679 | build_vendor=$2 | |
5680 | shift; shift | |
5681 | # Remember, the first character of IFS is used to create $*, | |
5682 | # except with old shells: | |
5683 | build_os=$* | |
5684 | IFS=$ac_save_IFS | |
5685 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5686 | ||
5687 | ||
042acc47 | 5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
f030cae8 | 5689 | $as_echo_n "checking host system type... " >&6; } |
12e39525 | 5690 | if ${ac_cv_host+:} false; then : |
f030cae8 VY |
5691 | $as_echo_n "(cached) " >&6 |
5692 | else | |
5693 | if test "x$host_alias" = x; then | |
5694 | ac_cv_host=$ac_cv_build | |
5695 | else | |
5696 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
12e39525 | 5697 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
f030cae8 VY |
5698 | fi |
5699 | ||
5700 | fi | |
042acc47 | 5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
f030cae8 VY |
5702 | $as_echo "$ac_cv_host" >&6; } |
5703 | case $ac_cv_host in | |
5704 | *-*-*) ;; | |
12e39525 | 5705 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
f030cae8 VY |
5706 | esac |
5707 | host=$ac_cv_host | |
5708 | ac_save_IFS=$IFS; IFS='-' | |
5709 | set x $ac_cv_host | |
5710 | shift | |
5711 | host_cpu=$1 | |
5712 | host_vendor=$2 | |
5713 | shift; shift | |
5714 | # Remember, the first character of IFS is used to create $*, | |
5715 | # except with old shells: | |
5716 | host_os=$* | |
5717 | IFS=$ac_save_IFS | |
5718 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5719 | ||
5720 | ||
042acc47 | 5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
f030cae8 | 5722 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
12e39525 | 5723 | if ${ac_cv_path_SED+:} false; then : |
f030cae8 VY |
5724 | $as_echo_n "(cached) " >&6 |
5725 | else | |
042acc47 WP |
5726 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5727 | for ac_i in 1 2 3 4 5 6 7; do | |
5728 | ac_script="$ac_script$as_nl$ac_script" | |
5729 | done | |
5730 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5731 | { ac_script=; unset ac_script;} | |
5732 | if test -z "$SED"; then | |
5733 | ac_path_SED_found=false | |
5734 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
f030cae8 VY |
5736 | for as_dir in $PATH |
5737 | do | |
5738 | IFS=$as_save_IFS | |
5739 | test -z "$as_dir" && as_dir=. | |
042acc47 | 5740 | for ac_prog in sed gsed; do |
f030cae8 | 5741 | for ac_exec_ext in '' $ac_executable_extensions; do |
042acc47 WP |
5742 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5743 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5744 | # Check for GNU ac_path_SED and select it if it is found. | |
5745 | # Check for GNU $ac_path_SED | |
5746 | case `"$ac_path_SED" --version 2>&1` in | |
5747 | *GNU*) | |
5748 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5749 | *) | |
5750 | ac_count=0 | |
5751 | $as_echo_n 0123456789 >"conftest.in" | |
5752 | while : | |
5753 | do | |
5754 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5755 | mv "conftest.tmp" "conftest.in" | |
5756 | cp "conftest.in" "conftest.nl" | |
5757 | $as_echo '' >> "conftest.nl" | |
5758 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5759 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5760 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5761 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5762 | # Best one so far, save it but keep looking for a better one | |
5763 | ac_cv_path_SED="$ac_path_SED" | |
5764 | ac_path_SED_max=$ac_count | |
5765 | fi | |
5766 | # 10*(2^10) chars as input seems more than enough | |
5767 | test $ac_count -gt 10 && break | |
5768 | done | |
5769 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5770 | esac | |
5771 | ||
5772 | $ac_path_SED_found && break 3 | |
f030cae8 VY |
5773 | done |
5774 | done | |
042acc47 | 5775 | done |
f030cae8 | 5776 | IFS=$as_save_IFS |
042acc47 | 5777 | if test -z "$ac_cv_path_SED"; then |
12e39525 | 5778 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
b57f37fb | 5779 | fi |
042acc47 WP |
5780 | else |
5781 | ac_cv_path_SED=$SED | |
5782 | fi | |
b57f37fb | 5783 | |
f030cae8 | 5784 | fi |
042acc47 WP |
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
5786 | $as_echo "$ac_cv_path_SED" >&6; } | |
5787 | SED="$ac_cv_path_SED" | |
5788 | rm -f conftest.sed | |
b57f37fb | 5789 | |
042acc47 WP |
5790 | test -z "$SED" && SED=sed |
5791 | Xsed="$SED -e 1s/^X//" | |
b57f37fb | 5792 | |
b57f37fb WP |
5793 | |
5794 | ||
b57f37fb | 5795 | |
042acc47 WP |
5796 | |
5797 | ||
5798 | ||
5799 | ||
5800 | ||
5801 | ||
5802 | ||
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5804 | $as_echo_n "checking for fgrep... " >&6; } | |
12e39525 | 5805 | if ${ac_cv_path_FGREP+:} false; then : |
042acc47 WP |
5806 | $as_echo_n "(cached) " >&6 |
5807 | else | |
5808 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5809 | then ac_cv_path_FGREP="$GREP -F" | |
5810 | else | |
5811 | if test -z "$FGREP"; then | |
5812 | ac_path_FGREP_found=false | |
5813 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5815 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5816 | do | |
5817 | IFS=$as_save_IFS | |
5818 | test -z "$as_dir" && as_dir=. | |
5819 | for ac_prog in fgrep; do | |
5820 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5821 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5822 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5823 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5824 | # Check for GNU $ac_path_FGREP | |
5825 | case `"$ac_path_FGREP" --version 2>&1` in | |
5826 | *GNU*) | |
5827 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5828 | *) | |
5829 | ac_count=0 | |
5830 | $as_echo_n 0123456789 >"conftest.in" | |
5831 | while : | |
5832 | do | |
5833 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5834 | mv "conftest.tmp" "conftest.in" | |
5835 | cp "conftest.in" "conftest.nl" | |
5836 | $as_echo 'FGREP' >> "conftest.nl" | |
5837 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5838 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5839 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5840 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5841 | # Best one so far, save it but keep looking for a better one | |
5842 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5843 | ac_path_FGREP_max=$ac_count | |
5844 | fi | |
5845 | # 10*(2^10) chars as input seems more than enough | |
5846 | test $ac_count -gt 10 && break | |
5847 | done | |
5848 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5849 | esac | |
5850 | ||
5851 | $ac_path_FGREP_found && break 3 | |
5852 | done | |
5853 | done | |
5854 | done | |
5855 | IFS=$as_save_IFS | |
5856 | if test -z "$ac_cv_path_FGREP"; then | |
12e39525 | 5857 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
042acc47 WP |
5858 | fi |
5859 | else | |
5860 | ac_cv_path_FGREP=$FGREP | |
5861 | fi | |
5862 | ||
5863 | fi | |
5864 | fi | |
5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5866 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5867 | FGREP="$ac_cv_path_FGREP" | |
5868 | ||
5869 | ||
5870 | test -z "$GREP" && GREP=grep | |
5871 | ||
5872 | ||
5873 | ||
5874 | ||
5875 | ||
5876 | ||
5877 | ||
5878 | ||
5879 | ||
5880 | ||
5881 | ||
5882 | ||
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | ||
5890 | # Check whether --with-gnu-ld was given. | |
5891 | if test "${with_gnu_ld+set}" = set; then : | |
5892 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5893 | else | |
5894 | with_gnu_ld=no | |
5895 | fi | |
5896 | ||
5897 | ac_prog=ld | |
5898 | if test "$GCC" = yes; then | |
5899 | # Check if gcc -print-prog-name=ld gives a path. | |
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5901 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5902 | case $host in | |
5903 | *-*-mingw*) | |
5904 | # gcc leaves a trailing carriage return which upsets mingw | |
5905 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5906 | *) | |
5907 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5908 | esac | |
5909 | case $ac_prog in | |
5910 | # Accept absolute paths. | |
5911 | [\\/]* | ?:[\\/]*) | |
5912 | re_direlt='/[^/][^/]*/\.\./' | |
5913 | # Canonicalize the pathname of ld | |
5914 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5915 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5916 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5917 | done | |
5918 | test -z "$LD" && LD="$ac_prog" | |
5919 | ;; | |
5920 | "") | |
5921 | # If it fails, then pretend we aren't using GCC. | |
5922 | ac_prog=ld | |
5923 | ;; | |
5924 | *) | |
5925 | # If it is relative, then search for the first ld in PATH. | |
5926 | with_gnu_ld=unknown | |
5927 | ;; | |
5928 | esac | |
5929 | elif test "$with_gnu_ld" = yes; then | |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5931 | $as_echo_n "checking for GNU ld... " >&6; } | |
5932 | else | |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
f030cae8 | 5934 | $as_echo_n "checking for non-GNU ld... " >&6; } |
b57f37fb | 5935 | fi |
12e39525 | 5936 | if ${lt_cv_path_LD+:} false; then : |
f030cae8 VY |
5937 | $as_echo_n "(cached) " >&6 |
5938 | else | |
5939 | if test -z "$LD"; then | |
5940 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5941 | for ac_dir in $PATH; do | |
5942 | IFS="$lt_save_ifs" | |
5943 | test -z "$ac_dir" && ac_dir=. | |
5944 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5945 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5946 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5947 | # but apparently some variants of GNU ld only accept -v. | |
5948 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5949 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5950 | *GNU* | *'with BFD'*) | |
5951 | test "$with_gnu_ld" != no && break | |
5952 | ;; | |
5953 | *) | |
5954 | test "$with_gnu_ld" != yes && break | |
5955 | ;; | |
5956 | esac | |
5957 | fi | |
5958 | done | |
5959 | IFS="$lt_save_ifs" | |
5960 | else | |
5961 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
b57f37fb | 5962 | fi |
b57f37fb | 5963 | fi |
f030cae8 VY |
5964 | |
5965 | LD="$lt_cv_path_LD" | |
5966 | if test -n "$LD"; then | |
042acc47 | 5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
f030cae8 | 5968 | $as_echo "$LD" >&6; } |
b57f37fb | 5969 | else |
042acc47 | 5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 5971 | $as_echo "no" >&6; } |
b57f37fb | 5972 | fi |
12e39525 | 5973 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
042acc47 | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
f030cae8 | 5975 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
12e39525 | 5976 | if ${lt_cv_prog_gnu_ld+:} false; then : |
f030cae8 | 5977 | $as_echo_n "(cached) " >&6 |
b57f37fb | 5978 | else |
f030cae8 VY |
5979 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5980 | case `$LD -v 2>&1 </dev/null` in | |
5981 | *GNU* | *'with BFD'*) | |
5982 | lt_cv_prog_gnu_ld=yes | |
5983 | ;; | |
5984 | *) | |
5985 | lt_cv_prog_gnu_ld=no | |
5986 | ;; | |
5987 | esac | |
b57f37fb | 5988 | fi |
042acc47 | 5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
f030cae8 VY |
5990 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
5991 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
b57f37fb | 5992 | |
b57f37fb | 5993 | |
b57f37fb | 5994 | |
042acc47 WP |
5995 | |
5996 | ||
5997 | ||
5998 | ||
5999 | ||
6000 | ||
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6002 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
12e39525 | 6003 | if ${lt_cv_path_NM+:} false; then : |
f030cae8 VY |
6004 | $as_echo_n "(cached) " >&6 |
6005 | else | |
6006 | if test -n "$NM"; then | |
6007 | # Let the user override the test. | |
6008 | lt_cv_path_NM="$NM" | |
6009 | else | |
6010 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6011 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6012 | lt_nm_to_check="$lt_nm_to_check nm" | |
6013 | fi | |
6014 | for lt_tmp_nm in $lt_nm_to_check; do | |
6015 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6016 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6017 | IFS="$lt_save_ifs" | |
6018 | test -z "$ac_dir" && ac_dir=. | |
6019 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6020 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6021 | # Check to see if the nm accepts a BSD-compat flag. | |
6022 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6023 | # nm: unknown option "B" ignored | |
6024 | # Tru64's nm complains that /dev/null is an invalid object file | |
6025 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6026 | */dev/null* | *'Invalid file or object type'*) | |
6027 | lt_cv_path_NM="$tmp_nm -B" | |
6028 | break | |
6029 | ;; | |
6030 | *) | |
6031 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6032 | */dev/null*) | |
6033 | lt_cv_path_NM="$tmp_nm -p" | |
6034 | break | |
6035 | ;; | |
6036 | *) | |
6037 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6038 | continue # so that we can try to find one that supports BSD flags | |
6039 | ;; | |
6040 | esac | |
6041 | ;; | |
6042 | esac | |
6043 | fi | |
6044 | done | |
6045 | IFS="$lt_save_ifs" | |
6046 | done | |
042acc47 | 6047 | : ${lt_cv_path_NM=no} |
b57f37fb | 6048 | fi |
f030cae8 | 6049 | fi |
042acc47 | 6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
f030cae8 | 6051 | $as_echo "$lt_cv_path_NM" >&6; } |
042acc47 WP |
6052 | if test "$lt_cv_path_NM" != "no"; then |
6053 | NM="$lt_cv_path_NM" | |
6054 | else | |
6055 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6056 | if test -n "$ac_tool_prefix"; then | |
6057 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
6058 | do | |
6059 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6060 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6062 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 6063 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
042acc47 WP |
6064 | $as_echo_n "(cached) " >&6 |
6065 | else | |
6066 | if test -n "$DUMPBIN"; then | |
6067 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6068 | else | |
6069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6070 | for as_dir in $PATH | |
6071 | do | |
6072 | IFS=$as_save_IFS | |
6073 | test -z "$as_dir" && as_dir=. | |
6074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6076 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6078 | break 2 | |
6079 | fi | |
6080 | done | |
6081 | done | |
6082 | IFS=$as_save_IFS | |
b57f37fb | 6083 | |
042acc47 WP |
6084 | fi |
6085 | fi | |
6086 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6087 | if test -n "$DUMPBIN"; then | |
6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6089 | $as_echo "$DUMPBIN" >&6; } | |
b57f37fb | 6090 | else |
042acc47 WP |
6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6092 | $as_echo "no" >&6; } | |
b57f37fb WP |
6093 | fi |
6094 | ||
042acc47 WP |
6095 | |
6096 | test -n "$DUMPBIN" && break | |
6097 | done | |
6098 | fi | |
6099 | if test -z "$DUMPBIN"; then | |
6100 | ac_ct_DUMPBIN=$DUMPBIN | |
6101 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
6102 | do | |
6103 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6104 | set dummy $ac_prog; ac_word=$2 | |
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6106 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 6107 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
f030cae8 VY |
6108 | $as_echo_n "(cached) " >&6 |
6109 | else | |
042acc47 WP |
6110 | if test -n "$ac_ct_DUMPBIN"; then |
6111 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6112 | else | |
6113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6114 | for as_dir in $PATH | |
6115 | do | |
6116 | IFS=$as_save_IFS | |
6117 | test -z "$as_dir" && as_dir=. | |
6118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6120 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6122 | break 2 | |
6123 | fi | |
6124 | done | |
6125 | done | |
6126 | IFS=$as_save_IFS | |
b57f37fb | 6127 | |
042acc47 WP |
6128 | fi |
6129 | fi | |
6130 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6131 | if test -n "$ac_ct_DUMPBIN"; then | |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6133 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6134 | else | |
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6136 | $as_echo "no" >&6; } | |
6137 | fi | |
b57f37fb | 6138 | |
b57f37fb | 6139 | |
042acc47 WP |
6140 | test -n "$ac_ct_DUMPBIN" && break |
6141 | done | |
b57f37fb | 6142 | |
042acc47 WP |
6143 | if test "x$ac_ct_DUMPBIN" = x; then |
6144 | DUMPBIN=":" | |
f030cae8 | 6145 | else |
042acc47 WP |
6146 | case $cross_compiling:$ac_tool_warned in |
6147 | yes:) | |
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6149 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6150 | ac_tool_warned=yes ;; | |
6151 | esac | |
6152 | DUMPBIN=$ac_ct_DUMPBIN | |
f030cae8 | 6153 | fi |
042acc47 | 6154 | fi |
b57f37fb | 6155 | |
b57f37fb | 6156 | |
042acc47 WP |
6157 | if test "$DUMPBIN" != ":"; then |
6158 | NM="$DUMPBIN" | |
f030cae8 | 6159 | fi |
042acc47 WP |
6160 | fi |
6161 | test -z "$NM" && NM=nm | |
b57f37fb | 6162 | |
b57f37fb | 6163 | |
b57f37fb | 6164 | |
b57f37fb | 6165 | |
f030cae8 | 6166 | |
f030cae8 | 6167 | |
042acc47 WP |
6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6169 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
12e39525 | 6170 | if ${lt_cv_nm_interface+:} false; then : |
042acc47 WP |
6171 | $as_echo_n "(cached) " >&6 |
6172 | else | |
6173 | lt_cv_nm_interface="BSD nm" | |
6174 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6dec141a | 6175 | (eval echo "\"\$as_me:6175: $ac_compile\"" >&5) |
042acc47 WP |
6176 | (eval "$ac_compile" 2>conftest.err) |
6177 | cat conftest.err >&5 | |
6dec141a | 6178 | (eval echo "\"\$as_me:6178: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
042acc47 WP |
6179 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6180 | cat conftest.err >&5 | |
6dec141a | 6181 | (eval echo "\"\$as_me:6181: output\"" >&5) |
042acc47 WP |
6182 | cat conftest.out >&5 |
6183 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6184 | lt_cv_nm_interface="MS dumpbin" | |
f030cae8 | 6185 | fi |
042acc47 WP |
6186 | rm -f conftest* |
6187 | fi | |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6189 | $as_echo "$lt_cv_nm_interface" >&6; } | |
b57f37fb | 6190 | |
042acc47 WP |
6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6192 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6193 | LN_S=$as_ln_s | |
6194 | if test "$LN_S" = "ln -s"; then | |
6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6196 | $as_echo "yes" >&6; } | |
6197 | else | |
6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6199 | $as_echo "no, using $LN_S" >&6; } | |
6200 | fi | |
b57f37fb | 6201 | |
042acc47 WP |
6202 | # find the maximum length of command line arguments |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6204 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
12e39525 | 6205 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
042acc47 WP |
6206 | $as_echo_n "(cached) " >&6 |
6207 | else | |
6208 | i=0 | |
6209 | teststring="ABCD" | |
b57f37fb | 6210 | |
042acc47 WP |
6211 | case $build_os in |
6212 | msdosdjgpp*) | |
6213 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6214 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6215 | # during glob expansion). Even if it were fixed, the result of this | |
6216 | # check would be larger than it should be. | |
6217 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6218 | ;; | |
b57f37fb | 6219 | |
042acc47 WP |
6220 | gnu*) |
6221 | # Under GNU Hurd, this test is not required because there is | |
6222 | # no limit to the length of command line arguments. | |
6223 | # Libtool will interpret -1 as no limit whatsoever | |
6224 | lt_cv_sys_max_cmd_len=-1; | |
6225 | ;; | |
b57f37fb | 6226 | |
042acc47 WP |
6227 | cygwin* | mingw* | cegcc*) |
6228 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6229 | # about 5 minutes as the teststring grows exponentially. | |
6230 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6231 | # you end up with a "frozen" computer, even though with patience | |
6232 | # the test eventually succeeds (with a max line length of 256k). | |
6233 | # Instead, let's just punt: use the minimum linelength reported by | |
6234 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6235 | lt_cv_sys_max_cmd_len=8192; | |
6236 | ;; | |
b57f37fb | 6237 | |
042acc47 WP |
6238 | amigaos*) |
6239 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6240 | # So we just punt and use a minimum line length of 8192. | |
6241 | lt_cv_sys_max_cmd_len=8192; | |
6242 | ;; | |
b57f37fb | 6243 | |
042acc47 WP |
6244 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6245 | # This has been around since 386BSD, at least. Likely further. | |
6246 | if test -x /sbin/sysctl; then | |
6247 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6248 | elif test -x /usr/sbin/sysctl; then | |
6249 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6250 | else | |
6251 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6252 | fi | |
6253 | # And add a safety zone | |
6254 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6255 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
f030cae8 | 6256 | ;; |
042acc47 WP |
6257 | |
6258 | interix*) | |
6259 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6260 | lt_cv_sys_max_cmd_len=196608 | |
f030cae8 | 6261 | ;; |
042acc47 WP |
6262 | |
6263 | osf*) | |
6264 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6265 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6266 | # nice to cause kernel panics so lets avoid the loop below. | |
6267 | # First set a reasonable default. | |
6268 | lt_cv_sys_max_cmd_len=16384 | |
6269 | # | |
6270 | if test -x /sbin/sysconfig; then | |
6271 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6272 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6273 | esac | |
6274 | fi | |
f030cae8 | 6275 | ;; |
042acc47 WP |
6276 | sco3.2v5*) |
6277 | lt_cv_sys_max_cmd_len=102400 | |
f030cae8 | 6278 | ;; |
042acc47 WP |
6279 | sysv5* | sco5v6* | sysv4.2uw2*) |
6280 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6281 | if test -n "$kargmax"; then | |
6282 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6283 | else | |
6284 | lt_cv_sys_max_cmd_len=32768 | |
6285 | fi | |
f030cae8 | 6286 | ;; |
042acc47 WP |
6287 | *) |
6288 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6289 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6290 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6291 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6292 | else | |
6293 | # Make teststring a little bigger before we do anything with it. | |
6294 | # a 1K string should be a reasonable start. | |
6295 | for i in 1 2 3 4 5 6 7 8 ; do | |
6296 | teststring=$teststring$teststring | |
6297 | done | |
6298 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6299 | # If test is not a shell built-in, we'll probably end up computing a | |
6300 | # maximum length that is only half of the actual maximum length, but | |
6301 | # we can't tell. | |
6302 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
6303 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
6304 | test $i != 17 # 1/2 MB should be enough | |
6305 | do | |
6306 | i=`expr $i + 1` | |
6307 | teststring=$teststring$teststring | |
6308 | done | |
6309 | # Only check the string length outside the loop. | |
6310 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6311 | teststring= | |
6312 | # Add a significant safety factor because C++ compilers can tack on | |
6313 | # massive amounts of additional arguments before passing them to the | |
6314 | # linker. It appears as though 1/2 is a usable value. | |
6315 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6316 | fi | |
f030cae8 VY |
6317 | ;; |
6318 | esac | |
f030cae8 | 6319 | |
042acc47 | 6320 | fi |
b57f37fb | 6321 | |
042acc47 WP |
6322 | if test -n $lt_cv_sys_max_cmd_len ; then |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6324 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6325 | else | |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6327 | $as_echo "none" >&6; } | |
b57f37fb | 6328 | fi |
042acc47 | 6329 | max_cmd_len=$lt_cv_sys_max_cmd_len |
f030cae8 | 6330 | |
b57f37fb | 6331 | |
b57f37fb WP |
6332 | |
6333 | ||
6334 | ||
6335 | ||
042acc47 WP |
6336 | : ${CP="cp -f"} |
6337 | : ${MV="mv -f"} | |
6338 | : ${RM="rm -f"} | |
b57f37fb | 6339 | |
042acc47 WP |
6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6341 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6342 | # Try some XSI features | |
6343 | xsi_shell=no | |
6344 | ( _lt_dummy="a/b/c" | |
6345 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6346 | = c,a/b,, \ | |
6347 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6348 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6349 | && xsi_shell=yes | |
6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6351 | $as_echo "$xsi_shell" >&6; } | |
6352 | ||
6353 | ||
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6355 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6356 | lt_shell_append=no | |
6357 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6358 | >/dev/null 2>&1 \ | |
6359 | && lt_shell_append=yes | |
6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6361 | $as_echo "$lt_shell_append" >&6; } | |
6362 | ||
6363 | ||
6364 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6365 | lt_unset=unset | |
6366 | else | |
6367 | lt_unset=false | |
f030cae8 | 6368 | fi |
b57f37fb WP |
6369 | |
6370 | ||
042acc47 WP |
6371 | |
6372 | ||
6373 | ||
6374 | # test EBCDIC or ASCII | |
6375 | case `echo X|tr X '\101'` in | |
6376 | A) # ASCII based system | |
6377 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6378 | lt_SP2NL='tr \040 \012' | |
6379 | lt_NL2SP='tr \015\012 \040\040' | |
f030cae8 | 6380 | ;; |
042acc47 WP |
6381 | *) # EBCDIC based system |
6382 | lt_SP2NL='tr \100 \n' | |
6383 | lt_NL2SP='tr \r\n \100\100' | |
f030cae8 | 6384 | ;; |
042acc47 | 6385 | esac |
b57f37fb | 6386 | |
b57f37fb | 6387 | |
b57f37fb | 6388 | |
b57f37fb | 6389 | |
f030cae8 | 6390 | |
f030cae8 | 6391 | |
b57f37fb WP |
6392 | |
6393 | ||
6394 | ||
042acc47 WP |
6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6396 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
12e39525 | 6397 | if ${lt_cv_ld_reload_flag+:} false; then : |
f030cae8 | 6398 | $as_echo_n "(cached) " >&6 |
b57f37fb | 6399 | else |
042acc47 | 6400 | lt_cv_ld_reload_flag='-r' |
b57f37fb | 6401 | fi |
042acc47 WP |
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6403 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6404 | reload_flag=$lt_cv_ld_reload_flag | |
6405 | case $reload_flag in | |
6406 | "" | " "*) ;; | |
6407 | *) reload_flag=" $reload_flag" ;; | |
6408 | esac | |
6409 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6410 | case $host_os in | |
6411 | darwin*) | |
6412 | if test "$GCC" = yes; then | |
6413 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6414 | else | |
6415 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6416 | fi | |
6417 | ;; | |
b57f37fb | 6418 | esac |
b57f37fb | 6419 | |
b57f37fb | 6420 | |
b57f37fb | 6421 | |
b57f37fb | 6422 | |
b57f37fb | 6423 | |
b57f37fb | 6424 | |
b57f37fb | 6425 | |
b57f37fb | 6426 | |
042acc47 WP |
6427 | |
6428 | if test -n "$ac_tool_prefix"; then | |
6429 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6430 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 6432 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 6433 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
f030cae8 | 6434 | $as_echo_n "(cached) " >&6 |
b57f37fb | 6435 | else |
042acc47 WP |
6436 | if test -n "$OBJDUMP"; then |
6437 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
b57f37fb WP |
6438 | else |
6439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6440 | for as_dir in $PATH | |
6441 | do | |
6442 | IFS=$as_save_IFS | |
6443 | test -z "$as_dir" && as_dir=. | |
042acc47 | 6444 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb | 6445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
6446 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b57f37fb WP |
6448 | break 2 |
6449 | fi | |
6450 | done | |
042acc47 | 6451 | done |
b57f37fb WP |
6452 | IFS=$as_save_IFS |
6453 | ||
6454 | fi | |
6455 | fi | |
042acc47 WP |
6456 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6457 | if test -n "$OBJDUMP"; then | |
6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6459 | $as_echo "$OBJDUMP" >&6; } | |
b57f37fb | 6460 | else |
042acc47 | 6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 6462 | $as_echo "no" >&6; } |
b57f37fb WP |
6463 | fi |
6464 | ||
6465 | ||
b57f37fb | 6466 | fi |
042acc47 WP |
6467 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6468 | ac_ct_OBJDUMP=$OBJDUMP | |
6469 | # Extract the first word of "objdump", so it can be a program name with args. | |
6470 | set dummy objdump; ac_word=$2 | |
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 6472 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 6473 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
f030cae8 | 6474 | $as_echo_n "(cached) " >&6 |
b57f37fb | 6475 | else |
042acc47 WP |
6476 | if test -n "$ac_ct_OBJDUMP"; then |
6477 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
b57f37fb WP |
6478 | else |
6479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6480 | for as_dir in $PATH | |
6481 | do | |
6482 | IFS=$as_save_IFS | |
6483 | test -z "$as_dir" && as_dir=. | |
042acc47 | 6484 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb | 6485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
6486 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b57f37fb WP |
6488 | break 2 |
6489 | fi | |
6490 | done | |
042acc47 | 6491 | done |
b57f37fb WP |
6492 | IFS=$as_save_IFS |
6493 | ||
6494 | fi | |
6495 | fi | |
042acc47 WP |
6496 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6497 | if test -n "$ac_ct_OBJDUMP"; then | |
6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6499 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b57f37fb | 6500 | else |
042acc47 | 6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 6502 | $as_echo "no" >&6; } |
b57f37fb WP |
6503 | fi |
6504 | ||
042acc47 WP |
6505 | if test "x$ac_ct_OBJDUMP" = x; then |
6506 | OBJDUMP="false" | |
b57f37fb WP |
6507 | else |
6508 | case $cross_compiling:$ac_tool_warned in | |
6509 | yes:) | |
042acc47 | 6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
f030cae8 | 6511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b57f37fb WP |
6512 | ac_tool_warned=yes ;; |
6513 | esac | |
042acc47 | 6514 | OBJDUMP=$ac_ct_OBJDUMP |
b57f37fb | 6515 | fi |
042acc47 WP |
6516 | else |
6517 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
b57f37fb | 6518 | fi |
b57f37fb | 6519 | |
042acc47 | 6520 | test -z "$OBJDUMP" && OBJDUMP=objdump |
b57f37fb | 6521 | |
b57f37fb | 6522 | |
b57f37fb | 6523 | |
b57f37fb | 6524 | |
b57f37fb | 6525 | |
b57f37fb | 6526 | |
b57f37fb | 6527 | |
b57f37fb | 6528 | |
b57f37fb | 6529 | |
042acc47 WP |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6531 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
12e39525 | 6532 | if ${lt_cv_deplibs_check_method+:} false; then : |
042acc47 | 6533 | $as_echo_n "(cached) " >&6 |
b57f37fb | 6534 | else |
042acc47 WP |
6535 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6536 | lt_cv_file_magic_test_file= | |
6537 | lt_cv_deplibs_check_method='unknown' | |
6538 | # Need to set the preceding variable on all platforms that support | |
6539 | # interlibrary dependencies. | |
6540 | # 'none' -- dependencies not supported. | |
6541 | # `unknown' -- same as none, but documents that we really don't know. | |
6542 | # 'pass_all' -- all dependencies passed with no checks. | |
6543 | # 'test_compile' -- check by making test program. | |
6544 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6545 | # which responds to the $file_magic_cmd with a given extended regex. | |
6546 | # If you have `file' or equivalent on your system and you're not sure | |
6547 | # whether `pass_all' will *always* work, you probably want this one. | |
b57f37fb | 6548 | |
042acc47 WP |
6549 | case $host_os in |
6550 | aix[4-9]*) | |
6551 | lt_cv_deplibs_check_method=pass_all | |
6552 | ;; | |
b57f37fb | 6553 | |
042acc47 WP |
6554 | beos*) |
6555 | lt_cv_deplibs_check_method=pass_all | |
6556 | ;; | |
b57f37fb | 6557 | |
042acc47 WP |
6558 | bsdi[45]*) |
6559 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6560 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6561 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6562 | ;; | |
b57f37fb | 6563 | |
042acc47 WP |
6564 | cygwin*) |
6565 | # func_win32_libid is a shell function defined in ltmain.sh | |
6566 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6567 | lt_cv_file_magic_cmd='func_win32_libid' | |
6568 | ;; | |
b57f37fb | 6569 | |
042acc47 WP |
6570 | mingw* | pw32*) |
6571 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6572 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6573 | # unless we find 'file', for example because we are cross-compiling. | |
6574 | if ( file / ) >/dev/null 2>&1; then | |
6575 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6576 | lt_cv_file_magic_cmd='func_win32_libid' | |
6577 | else | |
6578 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6579 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6580 | fi | |
6581 | ;; | |
b57f37fb | 6582 | |
042acc47 WP |
6583 | cegcc) |
6584 | # use the weaker test based on 'objdump'. See mingw*. | |
6585 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6586 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6587 | ;; | |
b57f37fb | 6588 | |
042acc47 WP |
6589 | darwin* | rhapsody*) |
6590 | lt_cv_deplibs_check_method=pass_all | |
6591 | ;; | |
b57f37fb | 6592 | |
042acc47 WP |
6593 | freebsd* | dragonfly*) |
6594 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6595 | case $host_cpu in | |
6596 | i*86 ) | |
6597 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6598 | # Let's accept both of them until this is cleared up. | |
6599 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6600 | lt_cv_file_magic_cmd=/usr/bin/file | |
6601 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6602 | ;; | |
6603 | esac | |
b57f37fb | 6604 | else |
042acc47 | 6605 | lt_cv_deplibs_check_method=pass_all |
b57f37fb | 6606 | fi |
042acc47 | 6607 | ;; |
b57f37fb | 6608 | |
042acc47 WP |
6609 | gnu*) |
6610 | lt_cv_deplibs_check_method=pass_all | |
6611 | ;; | |
b57f37fb | 6612 | |
042acc47 WP |
6613 | hpux10.20* | hpux11*) |
6614 | lt_cv_file_magic_cmd=/usr/bin/file | |
6615 | case $host_cpu in | |
6616 | ia64*) | |
6617 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6618 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6619 | ;; | |
6620 | hppa*64*) | |
6621 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
6622 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6623 | ;; | |
6624 | *) | |
6625 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6626 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6627 | ;; | |
6628 | esac | |
6629 | ;; | |
b57f37fb | 6630 | |
042acc47 WP |
6631 | interix[3-9]*) |
6632 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6633 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6634 | ;; | |
b57f37fb | 6635 | |
042acc47 WP |
6636 | irix5* | irix6* | nonstopux*) |
6637 | case $LD in | |
6638 | *-32|*"-32 ") libmagic=32-bit;; | |
6639 | *-n32|*"-n32 ") libmagic=N32;; | |
6640 | *-64|*"-64 ") libmagic=64-bit;; | |
6641 | *) libmagic=never-match;; | |
6642 | esac | |
6643 | lt_cv_deplibs_check_method=pass_all | |
6644 | ;; | |
b57f37fb | 6645 | |
042acc47 WP |
6646 | # This must be Linux ELF. |
6647 | linux* | k*bsd*-gnu) | |
6648 | lt_cv_deplibs_check_method=pass_all | |
6649 | ;; | |
b57f37fb | 6650 | |
1800d973 | 6651 | netbsd*) |
042acc47 WP |
6652 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
6653 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6654 | else | |
6655 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6656 | fi | |
6657 | ;; | |
b57f37fb | 6658 | |
042acc47 WP |
6659 | newos6*) |
6660 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6661 | lt_cv_file_magic_cmd=/usr/bin/file | |
6662 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6663 | ;; | |
b57f37fb | 6664 | |
042acc47 WP |
6665 | *nto* | *qnx*) |
6666 | lt_cv_deplibs_check_method=pass_all | |
6667 | ;; | |
b57f37fb | 6668 | |
042acc47 WP |
6669 | openbsd*) |
6670 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6671 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6672 | else | |
6673 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6674 | fi | |
6675 | ;; | |
b57f37fb | 6676 | |
042acc47 WP |
6677 | osf3* | osf4* | osf5*) |
6678 | lt_cv_deplibs_check_method=pass_all | |
6679 | ;; | |
b57f37fb | 6680 | |
042acc47 WP |
6681 | rdos*) |
6682 | lt_cv_deplibs_check_method=pass_all | |
6683 | ;; | |
b57f37fb | 6684 | |
042acc47 WP |
6685 | solaris*) |
6686 | lt_cv_deplibs_check_method=pass_all | |
6687 | ;; | |
b57f37fb | 6688 | |
042acc47 WP |
6689 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6690 | lt_cv_deplibs_check_method=pass_all | |
6691 | ;; | |
b57f37fb | 6692 | |
042acc47 WP |
6693 | sysv4 | sysv4.3*) |
6694 | case $host_vendor in | |
6695 | motorola) | |
6696 | 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]' | |
6697 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6698 | ;; | |
6699 | ncr) | |
6700 | lt_cv_deplibs_check_method=pass_all | |
6701 | ;; | |
6702 | sequent) | |
6703 | lt_cv_file_magic_cmd='/bin/file' | |
6704 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6705 | ;; | |
6706 | sni) | |
6707 | lt_cv_file_magic_cmd='/bin/file' | |
6708 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6709 | lt_cv_file_magic_test_file=/lib/libc.so | |
6710 | ;; | |
6711 | siemens) | |
6712 | lt_cv_deplibs_check_method=pass_all | |
6713 | ;; | |
6714 | pc) | |
6715 | lt_cv_deplibs_check_method=pass_all | |
6716 | ;; | |
6717 | esac | |
6718 | ;; | |
b57f37fb | 6719 | |
042acc47 WP |
6720 | tpf*) |
6721 | lt_cv_deplibs_check_method=pass_all | |
6722 | ;; | |
6723 | esac | |
b57f37fb | 6724 | |
b57f37fb | 6725 | fi |
042acc47 WP |
6726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6727 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6728 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6729 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6730 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
b57f37fb | 6731 | |
b57f37fb | 6732 | |
b57f37fb | 6733 | |
b57f37fb | 6734 | |
b57f37fb | 6735 | |
b57f37fb | 6736 | |
b57f37fb | 6737 | |
b57f37fb | 6738 | |
b57f37fb | 6739 | |
b57f37fb | 6740 | |
b57f37fb WP |
6741 | |
6742 | ||
b57f37fb | 6743 | if test -n "$ac_tool_prefix"; then |
042acc47 WP |
6744 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6745 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 6747 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 6748 | if ${ac_cv_prog_AR+:} false; then : |
f030cae8 | 6749 | $as_echo_n "(cached) " >&6 |
b57f37fb | 6750 | else |
042acc47 WP |
6751 | if test -n "$AR"; then |
6752 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
b57f37fb WP |
6753 | else |
6754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6755 | for as_dir in $PATH | |
6756 | do | |
6757 | IFS=$as_save_IFS | |
6758 | test -z "$as_dir" && as_dir=. | |
042acc47 | 6759 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb | 6760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
6761 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b57f37fb WP |
6763 | break 2 |
6764 | fi | |
6765 | done | |
042acc47 | 6766 | done |
b57f37fb WP |
6767 | IFS=$as_save_IFS |
6768 | ||
6769 | fi | |
6770 | fi | |
042acc47 WP |
6771 | AR=$ac_cv_prog_AR |
6772 | if test -n "$AR"; then | |
6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6774 | $as_echo "$AR" >&6; } | |
b57f37fb | 6775 | else |
042acc47 | 6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 6777 | $as_echo "no" >&6; } |
b57f37fb WP |
6778 | fi |
6779 | ||
6780 | ||
b57f37fb | 6781 | fi |
042acc47 WP |
6782 | if test -z "$ac_cv_prog_AR"; then |
6783 | ac_ct_AR=$AR | |
6784 | # Extract the first word of "ar", so it can be a program name with args. | |
6785 | set dummy ar; ac_word=$2 | |
6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 6787 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 6788 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
f030cae8 | 6789 | $as_echo_n "(cached) " >&6 |
b57f37fb | 6790 | else |
042acc47 WP |
6791 | if test -n "$ac_ct_AR"; then |
6792 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b57f37fb WP |
6793 | else |
6794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6795 | for as_dir in $PATH | |
6796 | do | |
6797 | IFS=$as_save_IFS | |
6798 | test -z "$as_dir" && as_dir=. | |
042acc47 | 6799 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb | 6800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
6801 | ac_cv_prog_ac_ct_AR="ar" |
6802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b57f37fb WP |
6803 | break 2 |
6804 | fi | |
6805 | done | |
042acc47 | 6806 | done |
b57f37fb WP |
6807 | IFS=$as_save_IFS |
6808 | ||
6809 | fi | |
6810 | fi | |
042acc47 WP |
6811 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6812 | if test -n "$ac_ct_AR"; then | |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6814 | $as_echo "$ac_ct_AR" >&6; } | |
b57f37fb | 6815 | else |
042acc47 | 6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 6817 | $as_echo "no" >&6; } |
b57f37fb WP |
6818 | fi |
6819 | ||
042acc47 WP |
6820 | if test "x$ac_ct_AR" = x; then |
6821 | AR="false" | |
b57f37fb WP |
6822 | else |
6823 | case $cross_compiling:$ac_tool_warned in | |
6824 | yes:) | |
042acc47 | 6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
f030cae8 | 6826 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b57f37fb WP |
6827 | ac_tool_warned=yes ;; |
6828 | esac | |
042acc47 | 6829 | AR=$ac_ct_AR |
b57f37fb | 6830 | fi |
042acc47 WP |
6831 | else |
6832 | AR="$ac_cv_prog_AR" | |
b57f37fb WP |
6833 | fi |
6834 | ||
042acc47 WP |
6835 | test -z "$AR" && AR=ar |
6836 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
b57f37fb | 6837 | |
b57f37fb | 6838 | |
b57f37fb | 6839 | |
b57f37fb | 6840 | |
b57f37fb | 6841 | |
b57f37fb | 6842 | |
b57f37fb | 6843 | |
b57f37fb | 6844 | |
042acc47 WP |
6845 | |
6846 | ||
6847 | ||
6848 | if test -n "$ac_tool_prefix"; then | |
6849 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6850 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6852 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 6853 | if ${ac_cv_prog_STRIP+:} false; then : |
042acc47 WP |
6854 | $as_echo_n "(cached) " >&6 |
6855 | else | |
6856 | if test -n "$STRIP"; then | |
6857 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6858 | else | |
6859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6860 | for as_dir in $PATH | |
6861 | do | |
6862 | IFS=$as_save_IFS | |
6863 | test -z "$as_dir" && as_dir=. | |
6864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6866 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6868 | break 2 | |
b57f37fb | 6869 | fi |
042acc47 WP |
6870 | done |
6871 | done | |
6872 | IFS=$as_save_IFS | |
6873 | ||
6874 | fi | |
6875 | fi | |
6876 | STRIP=$ac_cv_prog_STRIP | |
6877 | if test -n "$STRIP"; then | |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6879 | $as_echo "$STRIP" >&6; } | |
b57f37fb | 6880 | else |
042acc47 WP |
6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6882 | $as_echo "no" >&6; } | |
6883 | fi | |
6884 | ||
6885 | ||
6886 | fi | |
6887 | if test -z "$ac_cv_prog_STRIP"; then | |
6888 | ac_ct_STRIP=$STRIP | |
6889 | # Extract the first word of "strip", so it can be a program name with args. | |
6890 | set dummy strip; ac_word=$2 | |
6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6892 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 6893 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
042acc47 WP |
6894 | $as_echo_n "(cached) " >&6 |
6895 | else | |
6896 | if test -n "$ac_ct_STRIP"; then | |
6897 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6898 | else | |
6899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6900 | for as_dir in $PATH | |
6901 | do | |
6902 | IFS=$as_save_IFS | |
6903 | test -z "$as_dir" && as_dir=. | |
6904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6906 | ac_cv_prog_ac_ct_STRIP="strip" | |
6907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6908 | break 2 | |
b57f37fb | 6909 | fi |
042acc47 WP |
6910 | done |
6911 | done | |
6912 | IFS=$as_save_IFS | |
6913 | ||
6914 | fi | |
6915 | fi | |
6916 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6917 | if test -n "$ac_ct_STRIP"; then | |
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6919 | $as_echo "$ac_ct_STRIP" >&6; } | |
6920 | else | |
6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6922 | $as_echo "no" >&6; } | |
b57f37fb WP |
6923 | fi |
6924 | ||
042acc47 WP |
6925 | if test "x$ac_ct_STRIP" = x; then |
6926 | STRIP=":" | |
6927 | else | |
6928 | case $cross_compiling:$ac_tool_warned in | |
6929 | yes:) | |
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6931 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6932 | ac_tool_warned=yes ;; | |
6933 | esac | |
6934 | STRIP=$ac_ct_STRIP | |
6935 | fi | |
f030cae8 | 6936 | else |
042acc47 | 6937 | STRIP="$ac_cv_prog_STRIP" |
f030cae8 | 6938 | fi |
b57f37fb | 6939 | |
042acc47 | 6940 | test -z "$STRIP" && STRIP=: |
b57f37fb WP |
6941 | |
6942 | ||
b57f37fb | 6943 | |
b57f37fb | 6944 | |
b57f37fb | 6945 | |
b57f37fb | 6946 | |
042acc47 WP |
6947 | if test -n "$ac_tool_prefix"; then |
6948 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6949 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6951 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 6952 | if ${ac_cv_prog_RANLIB+:} false; then : |
042acc47 WP |
6953 | $as_echo_n "(cached) " >&6 |
6954 | else | |
6955 | if test -n "$RANLIB"; then | |
6956 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6957 | else | |
6958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6959 | for as_dir in $PATH | |
6960 | do | |
6961 | IFS=$as_save_IFS | |
6962 | test -z "$as_dir" && as_dir=. | |
6963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6964 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6965 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6967 | break 2 | |
6968 | fi | |
6969 | done | |
6970 | done | |
6971 | IFS=$as_save_IFS | |
b57f37fb | 6972 | |
042acc47 WP |
6973 | fi |
6974 | fi | |
6975 | RANLIB=$ac_cv_prog_RANLIB | |
6976 | if test -n "$RANLIB"; then | |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6978 | $as_echo "$RANLIB" >&6; } | |
6979 | else | |
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6981 | $as_echo "no" >&6; } | |
6982 | fi | |
b57f37fb | 6983 | |
b57f37fb | 6984 | |
042acc47 WP |
6985 | fi |
6986 | if test -z "$ac_cv_prog_RANLIB"; then | |
6987 | ac_ct_RANLIB=$RANLIB | |
6988 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6989 | set dummy ranlib; ac_word=$2 | |
6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6991 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 6992 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
042acc47 WP |
6993 | $as_echo_n "(cached) " >&6 |
6994 | else | |
6995 | if test -n "$ac_ct_RANLIB"; then | |
6996 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6997 | else | |
6998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6999 | for as_dir in $PATH | |
7000 | do | |
7001 | IFS=$as_save_IFS | |
7002 | test -z "$as_dir" && as_dir=. | |
7003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7005 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7007 | break 2 | |
7008 | fi | |
7009 | done | |
7010 | done | |
7011 | IFS=$as_save_IFS | |
b57f37fb | 7012 | |
042acc47 WP |
7013 | fi |
7014 | fi | |
7015 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7016 | if test -n "$ac_ct_RANLIB"; then | |
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7018 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7019 | else | |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7021 | $as_echo "no" >&6; } | |
b57f37fb WP |
7022 | fi |
7023 | ||
042acc47 WP |
7024 | if test "x$ac_ct_RANLIB" = x; then |
7025 | RANLIB=":" | |
7026 | else | |
7027 | case $cross_compiling:$ac_tool_warned in | |
7028 | yes:) | |
7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7030 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7031 | ac_tool_warned=yes ;; | |
7032 | esac | |
7033 | RANLIB=$ac_ct_RANLIB | |
7034 | fi | |
b57f37fb | 7035 | else |
042acc47 | 7036 | RANLIB="$ac_cv_prog_RANLIB" |
b57f37fb WP |
7037 | fi |
7038 | ||
042acc47 | 7039 | test -z "$RANLIB" && RANLIB=: |
b57f37fb WP |
7040 | |
7041 | ||
7042 | ||
7043 | ||
042acc47 WP |
7044 | |
7045 | ||
7046 | # Determine commands to create old-style static archives. | |
7047 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7048 | old_postinstall_cmds='chmod 644 $oldlib' | |
7049 | old_postuninstall_cmds= | |
7050 | ||
7051 | if test -n "$RANLIB"; then | |
7052 | case $host_os in | |
7053 | openbsd*) | |
7054 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7055 | ;; | |
7056 | *) | |
7057 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7058 | ;; | |
7059 | esac | |
7060 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7061 | fi | |
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | ||
7068 | ||
7069 | ||
7070 | ||
7071 | ||
7072 | ||
7073 | ||
7074 | ||
7075 | ||
7076 | ||
7077 | ||
7078 | ||
7079 | ||
7080 | ||
7081 | ||
7082 | ||
7083 | ||
7084 | ||
7085 | ||
7086 | ||
7087 | ||
7088 | ||
7089 | ||
7090 | ||
7091 | ||
7092 | ||
7093 | ||
7094 | ||
7095 | ||
7096 | # If no C compiler was specified, use CC. | |
7097 | LTCC=${LTCC-"$CC"} | |
7098 | ||
7099 | # If no C compiler flags were specified, use CFLAGS. | |
7100 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7101 | ||
7102 | # Allow CC to be a program name with arguments. | |
7103 | compiler=$CC | |
7104 | ||
7105 | ||
7106 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7108 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
12e39525 | 7109 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
f030cae8 | 7110 | $as_echo_n "(cached) " >&6 |
b57f37fb WP |
7111 | else |
7112 | ||
7113 | # These are sane defaults that work on at least a few old systems. | |
7114 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7115 | ||
7116 | # Character class describing NM global symbol codes. | |
7117 | symcode='[BCDEGRST]' | |
7118 | ||
7119 | # Regexp to match symbols that can be accessed directly from C. | |
7120 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7121 | ||
b57f37fb WP |
7122 | # Define system-specific variables. |
7123 | case $host_os in | |
7124 | aix*) | |
7125 | symcode='[BCDT]' | |
7126 | ;; | |
042acc47 | 7127 | cygwin* | mingw* | pw32* | cegcc*) |
b57f37fb WP |
7128 | symcode='[ABCDGISTW]' |
7129 | ;; | |
042acc47 | 7130 | hpux*) |
b57f37fb WP |
7131 | if test "$host_cpu" = ia64; then |
7132 | symcode='[ABCDEGRST]' | |
7133 | fi | |
b57f37fb WP |
7134 | ;; |
7135 | irix* | nonstopux*) | |
7136 | symcode='[BCDEGRST]' | |
7137 | ;; | |
7138 | osf*) | |
7139 | symcode='[BCDEGQRST]' | |
7140 | ;; | |
7141 | solaris*) | |
7142 | symcode='[BDRT]' | |
7143 | ;; | |
7144 | sco3.2v5*) | |
7145 | symcode='[DT]' | |
7146 | ;; | |
7147 | sysv4.2uw2*) | |
7148 | symcode='[DT]' | |
7149 | ;; | |
7150 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7151 | symcode='[ABDT]' | |
7152 | ;; | |
7153 | sysv4) | |
7154 | symcode='[DFNSTU]' | |
7155 | ;; | |
7156 | esac | |
7157 | ||
042acc47 WP |
7158 | # If we're using GNU nm, then use its standard symbol codes. |
7159 | case `$NM -V 2>&1` in | |
7160 | *GNU* | *'with BFD'*) | |
7161 | symcode='[ABCDGIRSTW]' ;; | |
7162 | esac | |
7163 | ||
7164 | # Transform an extracted symbol line into a proper C declaration. | |
7165 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7166 | # so use this general approach. | |
7167 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7168 | ||
7169 | # Transform an extracted symbol line into symbol name and symbol address | |
7170 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7171 | 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'" | |
7172 | ||
b57f37fb WP |
7173 | # Handle CRLF in mingw tool chain |
7174 | opt_cr= | |
7175 | case $build_os in | |
7176 | mingw*) | |
042acc47 | 7177 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
b57f37fb WP |
7178 | ;; |
7179 | esac | |
7180 | ||
042acc47 | 7181 | # Try without a prefix underscore, then with it. |
b57f37fb WP |
7182 | for ac_symprfx in "" "_"; do |
7183 | ||
7184 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7185 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7186 | ||
7187 | # Write the raw and C identifiers. | |
042acc47 WP |
7188 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
7189 | # Fake it for dumpbin and say T for any non-static function | |
7190 | # and D for any global variable. | |
7191 | # Also find C++ and __fastcall symbols from MSVC++, | |
7192 | # which start with @ or ?. | |
7193 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7194 | " {last_section=section; section=\$ 3};"\ | |
7195 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7196 | " \$ 0!~/External *\|/{next};"\ | |
7197 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7198 | " {if(hide[section]) next};"\ | |
7199 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7200 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7201 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7202 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7203 | " ' prfx=^$ac_symprfx" | |
7204 | else | |
7205 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7206 | fi | |
b57f37fb WP |
7207 | |
7208 | # Check to see that the pipe works correctly. | |
7209 | pipe_works=no | |
7210 | ||
7211 | rm -f conftest* | |
042acc47 | 7212 | cat > conftest.$ac_ext <<_LT_EOF |
b57f37fb WP |
7213 | #ifdef __cplusplus |
7214 | extern "C" { | |
7215 | #endif | |
7216 | char nm_test_var; | |
042acc47 WP |
7217 | void nm_test_func(void); |
7218 | void nm_test_func(void){} | |
b57f37fb WP |
7219 | #ifdef __cplusplus |
7220 | } | |
7221 | #endif | |
7222 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
042acc47 | 7223 | _LT_EOF |
b57f37fb | 7224 | |
042acc47 | 7225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b57f37fb WP |
7226 | (eval $ac_compile) 2>&5 |
7227 | ac_status=$? | |
042acc47 WP |
7228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7229 | test $ac_status = 0; }; then | |
b57f37fb WP |
7230 | # Now try to grab the symbols. |
7231 | nlist=conftest.nm | |
042acc47 | 7232 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
b57f37fb WP |
7233 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
7234 | ac_status=$? | |
042acc47 WP |
7235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7236 | test $ac_status = 0; } && test -s "$nlist"; then | |
b57f37fb WP |
7237 | # Try sorting and uniquifying the output. |
7238 | if sort "$nlist" | uniq > "$nlist"T; then | |
7239 | mv -f "$nlist"T "$nlist" | |
7240 | else | |
7241 | rm -f "$nlist"T | |
7242 | fi | |
7243 | ||
7244 | # Make sure that we snagged all the symbols we need. | |
042acc47 WP |
7245 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
7246 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7247 | cat <<_LT_EOF > conftest.$ac_ext | |
b57f37fb WP |
7248 | #ifdef __cplusplus |
7249 | extern "C" { | |
7250 | #endif | |
7251 | ||
042acc47 | 7252 | _LT_EOF |
b57f37fb | 7253 | # Now generate the symbol file. |
042acc47 | 7254 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
b57f37fb | 7255 | |
042acc47 | 7256 | cat <<_LT_EOF >> conftest.$ac_ext |
b57f37fb | 7257 | |
042acc47 | 7258 | /* The mapping between symbol names and symbols. */ |
b57f37fb WP |
7259 | const struct { |
7260 | const char *name; | |
042acc47 | 7261 | void *address; |
b57f37fb | 7262 | } |
042acc47 | 7263 | lt__PROGRAM__LTX_preloaded_symbols[] = |
b57f37fb | 7264 | { |
042acc47 WP |
7265 | { "@PROGRAM@", (void *) 0 }, |
7266 | _LT_EOF | |
7267 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7268 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7269 | {0, (void *) 0} | |
b57f37fb WP |
7270 | }; |
7271 | ||
042acc47 WP |
7272 | /* This works around a problem in FreeBSD linker */ |
7273 | #ifdef FREEBSD_WORKAROUND | |
7274 | static const void *lt_preloaded_setup() { | |
7275 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7276 | } | |
7277 | #endif | |
7278 | ||
b57f37fb WP |
7279 | #ifdef __cplusplus |
7280 | } | |
7281 | #endif | |
042acc47 | 7282 | _LT_EOF |
b57f37fb WP |
7283 | # Now try linking the two files. |
7284 | mv conftest.$ac_objext conftstm.$ac_objext | |
7285 | lt_save_LIBS="$LIBS" | |
7286 | lt_save_CFLAGS="$CFLAGS" | |
7287 | LIBS="conftstm.$ac_objext" | |
7288 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
042acc47 | 7289 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
b57f37fb WP |
7290 | (eval $ac_link) 2>&5 |
7291 | ac_status=$? | |
042acc47 WP |
7292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7293 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
b57f37fb WP |
7294 | pipe_works=yes |
7295 | fi | |
7296 | LIBS="$lt_save_LIBS" | |
7297 | CFLAGS="$lt_save_CFLAGS" | |
7298 | else | |
7299 | echo "cannot find nm_test_func in $nlist" >&5 | |
7300 | fi | |
7301 | else | |
7302 | echo "cannot find nm_test_var in $nlist" >&5 | |
7303 | fi | |
7304 | else | |
7305 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7306 | fi | |
7307 | else | |
7308 | echo "$progname: failed program was:" >&5 | |
7309 | cat conftest.$ac_ext >&5 | |
7310 | fi | |
56efe974 | 7311 | rm -rf conftest* conftst* |
b57f37fb WP |
7312 | |
7313 | # Do not use the global_symbol_pipe unless it works. | |
7314 | if test "$pipe_works" = yes; then | |
7315 | break | |
7316 | else | |
7317 | lt_cv_sys_global_symbol_pipe= | |
7318 | fi | |
7319 | done | |
7320 | ||
7321 | fi | |
7322 | ||
7323 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7324 | lt_cv_sys_global_symbol_to_cdecl= | |
7325 | fi | |
7326 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
042acc47 | 7327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
f030cae8 | 7328 | $as_echo "failed" >&6; } |
b57f37fb | 7329 | else |
042acc47 | 7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
f030cae8 | 7331 | $as_echo "ok" >&6; } |
b57f37fb WP |
7332 | fi |
7333 | ||
b57f37fb WP |
7334 | |
7335 | ||
7336 | ||
7337 | ||
7338 | ||
b57f37fb | 7339 | |
b57f37fb | 7340 | |
b57f37fb | 7341 | |
b57f37fb | 7342 | |
b57f37fb | 7343 | |
b57f37fb | 7344 | |
b57f37fb | 7345 | |
b57f37fb | 7346 | |
b57f37fb | 7347 | |
b57f37fb WP |
7348 | |
7349 | ||
b57f37fb | 7350 | |
b57f37fb | 7351 | |
b57f37fb | 7352 | |
b57f37fb | 7353 | |
042acc47 WP |
7354 | |
7355 | # Check whether --enable-libtool-lock was given. | |
7356 | if test "${enable_libtool_lock+set}" = set; then : | |
7357 | enableval=$enable_libtool_lock; | |
b57f37fb WP |
7358 | fi |
7359 | ||
042acc47 | 7360 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
b57f37fb | 7361 | |
042acc47 WP |
7362 | # Some flags need to be propagated to the compiler or linker for good |
7363 | # libtool support. | |
7364 | case $host in | |
7365 | ia64-*-hpux*) | |
7366 | # Find out which ABI we are using. | |
7367 | echo 'int i;' > conftest.$ac_ext | |
7368 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7369 | (eval $ac_compile) 2>&5 | |
7370 | ac_status=$? | |
7371 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7372 | test $ac_status = 0; }; then | |
7373 | case `/usr/bin/file conftest.$ac_objext` in | |
7374 | *ELF-32*) | |
7375 | HPUX_IA64_MODE="32" | |
7376 | ;; | |
7377 | *ELF-64*) | |
7378 | HPUX_IA64_MODE="64" | |
7379 | ;; | |
7380 | esac | |
7381 | fi | |
7382 | rm -rf conftest* | |
7383 | ;; | |
7384 | *-*-irix6*) | |
7385 | # Find out which ABI we are using. | |
6dec141a | 7386 | echo '#line 7386 "configure"' > conftest.$ac_ext |
042acc47 WP |
7387 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7388 | (eval $ac_compile) 2>&5 | |
7389 | ac_status=$? | |
7390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7391 | test $ac_status = 0; }; then | |
7392 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7393 | case `/usr/bin/file conftest.$ac_objext` in | |
7394 | *32-bit*) | |
7395 | LD="${LD-ld} -melf32bsmip" | |
7396 | ;; | |
7397 | *N32*) | |
7398 | LD="${LD-ld} -melf32bmipn32" | |
7399 | ;; | |
7400 | *64-bit*) | |
7401 | LD="${LD-ld} -melf64bmip" | |
7402 | ;; | |
7403 | esac | |
7404 | else | |
7405 | case `/usr/bin/file conftest.$ac_objext` in | |
7406 | *32-bit*) | |
7407 | LD="${LD-ld} -32" | |
7408 | ;; | |
7409 | *N32*) | |
7410 | LD="${LD-ld} -n32" | |
7411 | ;; | |
7412 | *64-bit*) | |
7413 | LD="${LD-ld} -64" | |
7414 | ;; | |
7415 | esac | |
7416 | fi | |
7417 | fi | |
7418 | rm -rf conftest* | |
7419 | ;; | |
7420 | ||
7421 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
7422 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7423 | # Find out which ABI we are using. | |
7424 | echo 'int i;' > conftest.$ac_ext | |
7425 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7426 | (eval $ac_compile) 2>&5 | |
7427 | ac_status=$? | |
7428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7429 | test $ac_status = 0; }; then | |
7430 | case `/usr/bin/file conftest.o` in | |
7431 | *32-bit*) | |
7432 | case $host in | |
7433 | x86_64-*kfreebsd*-gnu) | |
7434 | LD="${LD-ld} -m elf_i386_fbsd" | |
7435 | ;; | |
7436 | x86_64-*linux*) | |
7437 | LD="${LD-ld} -m elf_i386" | |
7438 | ;; | |
7439 | ppc64-*linux*|powerpc64-*linux*) | |
7440 | LD="${LD-ld} -m elf32ppclinux" | |
7441 | ;; | |
7442 | s390x-*linux*) | |
7443 | LD="${LD-ld} -m elf_s390" | |
7444 | ;; | |
7445 | sparc64-*linux*) | |
7446 | LD="${LD-ld} -m elf32_sparc" | |
7447 | ;; | |
7448 | esac | |
7449 | ;; | |
7450 | *64-bit*) | |
7451 | case $host in | |
7452 | x86_64-*kfreebsd*-gnu) | |
7453 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7454 | ;; | |
7455 | x86_64-*linux*) | |
7456 | LD="${LD-ld} -m elf_x86_64" | |
7457 | ;; | |
7458 | ppc*-*linux*|powerpc*-*linux*) | |
7459 | LD="${LD-ld} -m elf64ppc" | |
7460 | ;; | |
7461 | s390*-*linux*|s390*-*tpf*) | |
7462 | LD="${LD-ld} -m elf64_s390" | |
7463 | ;; | |
7464 | sparc*-*linux*) | |
7465 | LD="${LD-ld} -m elf64_sparc" | |
7466 | ;; | |
7467 | esac | |
7468 | ;; | |
7469 | esac | |
7470 | fi | |
7471 | rm -rf conftest* | |
7472 | ;; | |
7473 | ||
7474 | *-*-sco3.2v5*) | |
7475 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7476 | SAVE_CFLAGS="$CFLAGS" | |
7477 | CFLAGS="$CFLAGS -belf" | |
7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7479 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
12e39525 | 7480 | if ${lt_cv_cc_needs_belf+:} false; then : |
042acc47 WP |
7481 | $as_echo_n "(cached) " >&6 |
7482 | else | |
7483 | ac_ext=c | |
7484 | ac_cpp='$CPP $CPPFLAGS' | |
7485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7488 | ||
7489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7490 | /* end confdefs.h. */ | |
7491 | ||
7492 | int | |
7493 | main () | |
7494 | { | |
7495 | ||
7496 | ; | |
7497 | return 0; | |
7498 | } | |
7499 | _ACEOF | |
7500 | if ac_fn_c_try_link "$LINENO"; then : | |
7501 | lt_cv_cc_needs_belf=yes | |
7502 | else | |
7503 | lt_cv_cc_needs_belf=no | |
7504 | fi | |
7505 | rm -f core conftest.err conftest.$ac_objext \ | |
7506 | conftest$ac_exeext conftest.$ac_ext | |
7507 | ac_ext=c | |
7508 | ac_cpp='$CPP $CPPFLAGS' | |
7509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7512 | ||
7513 | fi | |
7514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7515 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7516 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7517 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7518 | CFLAGS="$SAVE_CFLAGS" | |
7519 | fi | |
7520 | ;; | |
7521 | sparc*-*solaris*) | |
7522 | # Find out which ABI we are using. | |
7523 | echo 'int i;' > conftest.$ac_ext | |
7524 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7525 | (eval $ac_compile) 2>&5 | |
7526 | ac_status=$? | |
7527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7528 | test $ac_status = 0; }; then | |
7529 | case `/usr/bin/file conftest.o` in | |
7530 | *64-bit*) | |
7531 | case $lt_cv_prog_gnu_ld in | |
7532 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7533 | *) | |
7534 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7535 | LD="${LD-ld} -64" | |
7536 | fi | |
7537 | ;; | |
7538 | esac | |
7539 | ;; | |
7540 | esac | |
7541 | fi | |
7542 | rm -rf conftest* | |
7543 | ;; | |
7544 | esac | |
7545 | ||
7546 | need_locks="$enable_libtool_lock" | |
7547 | ||
7548 | ||
7549 | case $host_os in | |
7550 | rhapsody* | darwin*) | |
7551 | if test -n "$ac_tool_prefix"; then | |
7552 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7553 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7555 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 7556 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
042acc47 WP |
7557 | $as_echo_n "(cached) " >&6 |
7558 | else | |
7559 | if test -n "$DSYMUTIL"; then | |
7560 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7561 | else | |
7562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7563 | for as_dir in $PATH | |
b57f37fb WP |
7564 | do |
7565 | IFS=$as_save_IFS | |
7566 | test -z "$as_dir" && as_dir=. | |
042acc47 | 7567 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb | 7568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
7569 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b57f37fb WP |
7571 | break 2 |
7572 | fi | |
7573 | done | |
042acc47 WP |
7574 | done |
7575 | IFS=$as_save_IFS | |
7576 | ||
7577 | fi | |
7578 | fi | |
7579 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7580 | if test -n "$DSYMUTIL"; then | |
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7582 | $as_echo "$DSYMUTIL" >&6; } | |
7583 | else | |
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7585 | $as_echo "no" >&6; } | |
7586 | fi | |
7587 | ||
7588 | ||
7589 | fi | |
7590 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7591 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7592 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7593 | set dummy dsymutil; ac_word=$2 | |
7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7595 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 7596 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
042acc47 WP |
7597 | $as_echo_n "(cached) " >&6 |
7598 | else | |
7599 | if test -n "$ac_ct_DSYMUTIL"; then | |
7600 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7601 | else | |
7602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7603 | for as_dir in $PATH | |
7604 | do | |
7605 | IFS=$as_save_IFS | |
7606 | test -z "$as_dir" && as_dir=. | |
7607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7609 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7611 | break 2 | |
7612 | fi | |
b57f37fb | 7613 | done |
042acc47 | 7614 | done |
b57f37fb WP |
7615 | IFS=$as_save_IFS |
7616 | ||
7617 | fi | |
7618 | fi | |
042acc47 WP |
7619 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7620 | if test -n "$ac_ct_DSYMUTIL"; then | |
7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7622 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b57f37fb | 7623 | else |
042acc47 | 7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7625 | $as_echo "no" >&6; } |
b57f37fb WP |
7626 | fi |
7627 | ||
042acc47 WP |
7628 | if test "x$ac_ct_DSYMUTIL" = x; then |
7629 | DSYMUTIL=":" | |
b57f37fb WP |
7630 | else |
7631 | case $cross_compiling:$ac_tool_warned in | |
7632 | yes:) | |
042acc47 | 7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
f030cae8 | 7634 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b57f37fb WP |
7635 | ac_tool_warned=yes ;; |
7636 | esac | |
042acc47 | 7637 | DSYMUTIL=$ac_ct_DSYMUTIL |
b57f37fb WP |
7638 | fi |
7639 | else | |
042acc47 | 7640 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
b57f37fb WP |
7641 | fi |
7642 | ||
042acc47 WP |
7643 | if test -n "$ac_tool_prefix"; then |
7644 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7645 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 7647 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 7648 | if ${ac_cv_prog_NMEDIT+:} false; then : |
f030cae8 | 7649 | $as_echo_n "(cached) " >&6 |
b57f37fb | 7650 | else |
042acc47 WP |
7651 | if test -n "$NMEDIT"; then |
7652 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
b57f37fb WP |
7653 | else |
7654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7655 | for as_dir in $PATH | |
7656 | do | |
7657 | IFS=$as_save_IFS | |
7658 | test -z "$as_dir" && as_dir=. | |
042acc47 | 7659 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb | 7660 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
7661 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b57f37fb WP |
7663 | break 2 |
7664 | fi | |
7665 | done | |
042acc47 | 7666 | done |
b57f37fb WP |
7667 | IFS=$as_save_IFS |
7668 | ||
7669 | fi | |
7670 | fi | |
042acc47 WP |
7671 | NMEDIT=$ac_cv_prog_NMEDIT |
7672 | if test -n "$NMEDIT"; then | |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7674 | $as_echo "$NMEDIT" >&6; } | |
b57f37fb | 7675 | else |
042acc47 | 7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7677 | $as_echo "no" >&6; } |
b57f37fb WP |
7678 | fi |
7679 | ||
7680 | ||
7681 | fi | |
042acc47 WP |
7682 | if test -z "$ac_cv_prog_NMEDIT"; then |
7683 | ac_ct_NMEDIT=$NMEDIT | |
7684 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7685 | set dummy nmedit; ac_word=$2 | |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 7687 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 7688 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
f030cae8 | 7689 | $as_echo_n "(cached) " >&6 |
b57f37fb | 7690 | else |
042acc47 WP |
7691 | if test -n "$ac_ct_NMEDIT"; then |
7692 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
b57f37fb WP |
7693 | else |
7694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7695 | for as_dir in $PATH | |
7696 | do | |
7697 | IFS=$as_save_IFS | |
7698 | test -z "$as_dir" && as_dir=. | |
042acc47 | 7699 | for ac_exec_ext in '' $ac_executable_extensions; do |
b57f37fb | 7700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
7701 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b57f37fb WP |
7703 | break 2 |
7704 | fi | |
7705 | done | |
042acc47 | 7706 | done |
b57f37fb WP |
7707 | IFS=$as_save_IFS |
7708 | ||
7709 | fi | |
7710 | fi | |
042acc47 WP |
7711 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7712 | if test -n "$ac_ct_NMEDIT"; then | |
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7714 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b57f37fb | 7715 | else |
042acc47 | 7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7717 | $as_echo "no" >&6; } |
b57f37fb WP |
7718 | fi |
7719 | ||
042acc47 WP |
7720 | if test "x$ac_ct_NMEDIT" = x; then |
7721 | NMEDIT=":" | |
b57f37fb WP |
7722 | else |
7723 | case $cross_compiling:$ac_tool_warned in | |
7724 | yes:) | |
042acc47 | 7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
f030cae8 | 7726 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b57f37fb WP |
7727 | ac_tool_warned=yes ;; |
7728 | esac | |
042acc47 | 7729 | NMEDIT=$ac_ct_NMEDIT |
b57f37fb WP |
7730 | fi |
7731 | else | |
042acc47 | 7732 | NMEDIT="$ac_cv_prog_NMEDIT" |
b57f37fb WP |
7733 | fi |
7734 | ||
042acc47 WP |
7735 | if test -n "$ac_tool_prefix"; then |
7736 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7737 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7739 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 7740 | if ${ac_cv_prog_LIPO+:} false; then : |
042acc47 WP |
7741 | $as_echo_n "(cached) " >&6 |
7742 | else | |
7743 | if test -n "$LIPO"; then | |
7744 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7745 | else | |
7746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7747 | for as_dir in $PATH | |
7748 | do | |
7749 | IFS=$as_save_IFS | |
7750 | test -z "$as_dir" && as_dir=. | |
7751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7753 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7755 | break 2 | |
7756 | fi | |
7757 | done | |
7758 | done | |
7759 | IFS=$as_save_IFS | |
b57f37fb | 7760 | |
b57f37fb | 7761 | fi |
b57f37fb | 7762 | fi |
042acc47 WP |
7763 | LIPO=$ac_cv_prog_LIPO |
7764 | if test -n "$LIPO"; then | |
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7766 | $as_echo "$LIPO" >&6; } | |
b57f37fb | 7767 | else |
042acc47 | 7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7769 | $as_echo "no" >&6; } |
b57f37fb WP |
7770 | fi |
7771 | ||
042acc47 WP |
7772 | |
7773 | fi | |
7774 | if test -z "$ac_cv_prog_LIPO"; then | |
7775 | ac_ct_LIPO=$LIPO | |
7776 | # Extract the first word of "lipo", so it can be a program name with args. | |
7777 | set dummy lipo; ac_word=$2 | |
7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7779 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 7780 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
f030cae8 | 7781 | $as_echo_n "(cached) " >&6 |
b57f37fb | 7782 | else |
042acc47 WP |
7783 | if test -n "$ac_ct_LIPO"; then |
7784 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7785 | else | |
7786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7787 | for as_dir in $PATH | |
7788 | do | |
7789 | IFS=$as_save_IFS | |
7790 | test -z "$as_dir" && as_dir=. | |
7791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7793 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7795 | break 2 | |
7796 | fi | |
7797 | done | |
b57f37fb | 7798 | done |
042acc47 | 7799 | IFS=$as_save_IFS |
b57f37fb | 7800 | |
042acc47 WP |
7801 | fi |
7802 | fi | |
7803 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7804 | if test -n "$ac_ct_LIPO"; then | |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7806 | $as_echo "$ac_ct_LIPO" >&6; } | |
b57f37fb | 7807 | else |
042acc47 | 7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7809 | $as_echo "no" >&6; } |
b57f37fb WP |
7810 | fi |
7811 | ||
042acc47 WP |
7812 | if test "x$ac_ct_LIPO" = x; then |
7813 | LIPO=":" | |
b57f37fb | 7814 | else |
042acc47 WP |
7815 | case $cross_compiling:$ac_tool_warned in |
7816 | yes:) | |
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7818 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7819 | ac_tool_warned=yes ;; | |
7820 | esac | |
7821 | LIPO=$ac_ct_LIPO | |
b57f37fb | 7822 | fi |
042acc47 WP |
7823 | else |
7824 | LIPO="$ac_cv_prog_LIPO" | |
b57f37fb WP |
7825 | fi |
7826 | ||
56efe974 | 7827 | if test -n "$ac_tool_prefix"; then |
042acc47 WP |
7828 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
7829 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 7831 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 7832 | if ${ac_cv_prog_OTOOL+:} false; then : |
f030cae8 | 7833 | $as_echo_n "(cached) " >&6 |
56efe974 | 7834 | else |
042acc47 WP |
7835 | if test -n "$OTOOL"; then |
7836 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
56efe974 WP |
7837 | else |
7838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7839 | for as_dir in $PATH | |
7840 | do | |
7841 | IFS=$as_save_IFS | |
7842 | test -z "$as_dir" && as_dir=. | |
042acc47 | 7843 | for ac_exec_ext in '' $ac_executable_extensions; do |
56efe974 | 7844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
7845 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
56efe974 WP |
7847 | break 2 |
7848 | fi | |
7849 | done | |
042acc47 | 7850 | done |
56efe974 WP |
7851 | IFS=$as_save_IFS |
7852 | ||
7853 | fi | |
7854 | fi | |
042acc47 WP |
7855 | OTOOL=$ac_cv_prog_OTOOL |
7856 | if test -n "$OTOOL"; then | |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7858 | $as_echo "$OTOOL" >&6; } | |
56efe974 | 7859 | else |
042acc47 | 7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7861 | $as_echo "no" >&6; } |
56efe974 WP |
7862 | fi |
7863 | ||
7864 | ||
7865 | fi | |
042acc47 WP |
7866 | if test -z "$ac_cv_prog_OTOOL"; then |
7867 | ac_ct_OTOOL=$OTOOL | |
7868 | # Extract the first word of "otool", so it can be a program name with args. | |
7869 | set dummy otool; ac_word=$2 | |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 7871 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 7872 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
f030cae8 | 7873 | $as_echo_n "(cached) " >&6 |
56efe974 | 7874 | else |
042acc47 WP |
7875 | if test -n "$ac_ct_OTOOL"; then |
7876 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
56efe974 WP |
7877 | else |
7878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7879 | for as_dir in $PATH | |
7880 | do | |
7881 | IFS=$as_save_IFS | |
7882 | test -z "$as_dir" && as_dir=. | |
042acc47 | 7883 | for ac_exec_ext in '' $ac_executable_extensions; do |
56efe974 | 7884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
7885 | ac_cv_prog_ac_ct_OTOOL="otool" |
7886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
56efe974 WP |
7887 | break 2 |
7888 | fi | |
7889 | done | |
042acc47 | 7890 | done |
56efe974 WP |
7891 | IFS=$as_save_IFS |
7892 | ||
7893 | fi | |
7894 | fi | |
042acc47 WP |
7895 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7896 | if test -n "$ac_ct_OTOOL"; then | |
7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7898 | $as_echo "$ac_ct_OTOOL" >&6; } | |
56efe974 | 7899 | else |
042acc47 | 7900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7901 | $as_echo "no" >&6; } |
56efe974 WP |
7902 | fi |
7903 | ||
042acc47 WP |
7904 | if test "x$ac_ct_OTOOL" = x; then |
7905 | OTOOL=":" | |
56efe974 WP |
7906 | else |
7907 | case $cross_compiling:$ac_tool_warned in | |
7908 | yes:) | |
042acc47 | 7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
f030cae8 | 7910 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
56efe974 WP |
7911 | ac_tool_warned=yes ;; |
7912 | esac | |
042acc47 | 7913 | OTOOL=$ac_ct_OTOOL |
56efe974 WP |
7914 | fi |
7915 | else | |
042acc47 | 7916 | OTOOL="$ac_cv_prog_OTOOL" |
56efe974 WP |
7917 | fi |
7918 | ||
7919 | if test -n "$ac_tool_prefix"; then | |
042acc47 WP |
7920 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
7921 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 7923 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 7924 | if ${ac_cv_prog_OTOOL64+:} false; then : |
f030cae8 | 7925 | $as_echo_n "(cached) " >&6 |
56efe974 | 7926 | else |
042acc47 WP |
7927 | if test -n "$OTOOL64"; then |
7928 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
56efe974 WP |
7929 | else |
7930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7931 | for as_dir in $PATH | |
7932 | do | |
7933 | IFS=$as_save_IFS | |
7934 | test -z "$as_dir" && as_dir=. | |
042acc47 | 7935 | for ac_exec_ext in '' $ac_executable_extensions; do |
56efe974 | 7936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
7937 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
56efe974 WP |
7939 | break 2 |
7940 | fi | |
7941 | done | |
042acc47 | 7942 | done |
56efe974 WP |
7943 | IFS=$as_save_IFS |
7944 | ||
7945 | fi | |
7946 | fi | |
042acc47 WP |
7947 | OTOOL64=$ac_cv_prog_OTOOL64 |
7948 | if test -n "$OTOOL64"; then | |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7950 | $as_echo "$OTOOL64" >&6; } | |
56efe974 | 7951 | else |
042acc47 | 7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7953 | $as_echo "no" >&6; } |
56efe974 WP |
7954 | fi |
7955 | ||
7956 | ||
7957 | fi | |
042acc47 WP |
7958 | if test -z "$ac_cv_prog_OTOOL64"; then |
7959 | ac_ct_OTOOL64=$OTOOL64 | |
7960 | # Extract the first word of "otool64", so it can be a program name with args. | |
7961 | set dummy otool64; ac_word=$2 | |
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
f030cae8 | 7963 | $as_echo_n "checking for $ac_word... " >&6; } |
12e39525 | 7964 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
f030cae8 | 7965 | $as_echo_n "(cached) " >&6 |
56efe974 | 7966 | else |
042acc47 WP |
7967 | if test -n "$ac_ct_OTOOL64"; then |
7968 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
56efe974 WP |
7969 | else |
7970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7971 | for as_dir in $PATH | |
7972 | do | |
7973 | IFS=$as_save_IFS | |
7974 | test -z "$as_dir" && as_dir=. | |
042acc47 | 7975 | for ac_exec_ext in '' $ac_executable_extensions; do |
56efe974 | 7976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
042acc47 WP |
7977 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
7978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
56efe974 WP |
7979 | break 2 |
7980 | fi | |
7981 | done | |
042acc47 | 7982 | done |
56efe974 WP |
7983 | IFS=$as_save_IFS |
7984 | ||
7985 | fi | |
7986 | fi | |
042acc47 WP |
7987 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7988 | if test -n "$ac_ct_OTOOL64"; then | |
7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7990 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
56efe974 | 7991 | else |
042acc47 | 7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
f030cae8 | 7993 | $as_echo "no" >&6; } |
56efe974 WP |
7994 | fi |
7995 | ||
042acc47 WP |
7996 | if test "x$ac_ct_OTOOL64" = x; then |
7997 | OTOOL64=":" | |
56efe974 WP |
7998 | else |
7999 | case $cross_compiling:$ac_tool_warned in | |
8000 | yes:) | |
042acc47 | 8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
f030cae8 | 8002 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
56efe974 WP |
8003 | ac_tool_warned=yes ;; |
8004 | esac | |
042acc47 | 8005 | OTOOL64=$ac_ct_OTOOL64 |
56efe974 WP |
8006 | fi |
8007 | else | |
042acc47 | 8008 | OTOOL64="$ac_cv_prog_OTOOL64" |
56efe974 WP |
8009 | fi |
8010 | ||
8011 | ||
56efe974 | 8012 | |
56efe974 | 8013 | |
042acc47 WP |
8014 | |
8015 | ||
8016 | ||
8017 | ||
8018 | ||
8019 | ||
8020 | ||
8021 | ||
8022 | ||
8023 | ||
8024 | ||
8025 | ||
8026 | ||
8027 | ||
8028 | ||
8029 | ||
8030 | ||
8031 | ||
8032 | ||
8033 | ||
8034 | ||
8035 | ||
8036 | ||
8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8038 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
12e39525 | 8039 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
042acc47 WP |
8040 | $as_echo_n "(cached) " >&6 |
8041 | else | |
8042 | lt_cv_apple_cc_single_mod=no | |
8043 | if test -z "${LT_MULTI_MODULE}"; then | |
8044 | # By default we will add the -single_module flag. You can override | |
8045 | # by either setting the environment variable LT_MULTI_MODULE | |
8046 | # non-empty at configure time, or by adding -multi_module to the | |
8047 | # link flags. | |
8048 | rm -rf libconftest.dylib* | |
8049 | echo "int foo(void){return 1;}" > conftest.c | |
8050 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8051 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8052 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8053 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8054 | _lt_result=$? | |
8055 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8056 | lt_cv_apple_cc_single_mod=yes | |
8057 | else | |
8058 | cat conftest.err >&5 | |
8059 | fi | |
8060 | rm -rf libconftest.dylib* | |
8061 | rm -f conftest.* | |
8062 | fi | |
8063 | fi | |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8065 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8067 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
12e39525 | 8068 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
042acc47 WP |
8069 | $as_echo_n "(cached) " >&6 |
8070 | else | |
8071 | lt_cv_ld_exported_symbols_list=no | |
8072 | save_LDFLAGS=$LDFLAGS | |
8073 | echo "_main" > conftest.sym | |
8074 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8076 | /* end confdefs.h. */ | |
8077 | ||
8078 | int | |
8079 | main () | |
8080 | { | |
8081 | ||
8082 | ; | |
8083 | return 0; | |
56efe974 WP |
8084 | } |
8085 | _ACEOF | |
042acc47 | 8086 | if ac_fn_c_try_link "$LINENO"; then : |
56efe974 WP |
8087 | lt_cv_ld_exported_symbols_list=yes |
8088 | else | |
042acc47 | 8089 | lt_cv_ld_exported_symbols_list=no |
56efe974 | 8090 | fi |
042acc47 WP |
8091 | rm -f core conftest.err conftest.$ac_objext \ |
8092 | conftest$ac_exeext conftest.$ac_ext | |
8093 | LDFLAGS="$save_LDFLAGS" | |
56efe974 WP |
8094 | |
8095 | fi | |
042acc47 | 8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
f030cae8 | 8097 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
56efe974 | 8098 | case $host_os in |
042acc47 | 8099 | rhapsody* | darwin1.[012]) |
56efe974 WP |
8100 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
8101 | darwin1.*) | |
042acc47 WP |
8102 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8103 | darwin*) # darwin 5.x on | |
56efe974 WP |
8104 | # if running on 10.5 or later, the deployment target defaults |
8105 | # to the OS version, if on x86, and 10.4, the deployment | |
8106 | # target defaults to 10.4. Don't you love it? | |
8107 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
042acc47 WP |
8108 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
8109 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8110 | 10.[012]*) | |
8111 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8112 | 10.*) | |
8113 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
56efe974 WP |
8114 | esac |
8115 | ;; | |
8116 | esac | |
8117 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8118 | _lt_dar_single_mod='$single_module' | |
8119 | fi | |
8120 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8121 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8122 | else | |
042acc47 | 8123 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
56efe974 WP |
8124 | fi |
8125 | if test "$DSYMUTIL" != ":"; then | |
042acc47 | 8126 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
56efe974 WP |
8127 | else |
8128 | _lt_dsymutil= | |
8129 | fi | |
8130 | ;; | |
8131 | esac | |
8132 | ||
042acc47 WP |
8133 | for ac_header in dlfcn.h |
8134 | do : | |
8135 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8136 | " | |
12e39525 | 8137 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
042acc47 WP |
8138 | cat >>confdefs.h <<_ACEOF |
8139 | #define HAVE_DLFCN_H 1 | |
8140 | _ACEOF | |
56efe974 | 8141 | |
b57f37fb WP |
8142 | fi |
8143 | ||
042acc47 WP |
8144 | done |
8145 | ||
8146 | ||
8147 | ||
8148 | # Set options | |
8149 | ||
8150 | ||
8151 | ||
8152 | enable_dlopen=no | |
8153 | ||
8154 | ||
8155 | enable_win32_dll=no | |
8156 | ||
8157 | ||
8158 | ||
b57f37fb WP |
8159 | |
8160 | ||
8161 | # Check whether --with-pic was given. | |
042acc47 | 8162 | if test "${with_pic+set}" = set; then : |
b57f37fb WP |
8163 | withval=$with_pic; pic_mode="$withval" |
8164 | else | |
8165 | pic_mode=default | |
8166 | fi | |
8167 | ||
042acc47 | 8168 | |
b57f37fb WP |
8169 | test -z "$pic_mode" && pic_mode=default |
8170 | ||
b57f37fb WP |
8171 | |
8172 | ||
b57f37fb | 8173 | |
b57f37fb | 8174 | |
b57f37fb | 8175 | |
b57f37fb | 8176 | |
042acc47 WP |
8177 | # Check whether --enable-fast-install was given. |
8178 | if test "${enable_fast_install+set}" = set; then : | |
8179 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8180 | case $enableval in | |
8181 | yes) enable_fast_install=yes ;; | |
8182 | no) enable_fast_install=no ;; | |
8183 | *) | |
8184 | enable_fast_install=no | |
8185 | # Look at the argument we got. We use all the common list separators. | |
8186 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8187 | for pkg in $enableval; do | |
8188 | IFS="$lt_save_ifs" | |
8189 | if test "X$pkg" = "X$p"; then | |
8190 | enable_fast_install=yes | |
8191 | fi | |
8192 | done | |
8193 | IFS="$lt_save_ifs" | |
8194 | ;; | |
8195 | esac | |
8196 | else | |
8197 | enable_fast_install=yes | |
8198 | fi | |
b57f37fb | 8199 | |
b57f37fb | 8200 | |
b57f37fb | 8201 | |
b57f37fb WP |
8202 | |
8203 | ||
b57f37fb | 8204 | |
b57f37fb WP |
8205 | |
8206 | ||
8207 | ||
b57f37fb | 8208 | |
b57f37fb | 8209 | |
042acc47 WP |
8210 | # This can be used to rebuild libtool when needed |
8211 | LIBTOOL_DEPS="$ltmain" | |
b57f37fb | 8212 | |
042acc47 WP |
8213 | # Always use our own libtool. |
8214 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
b57f37fb | 8215 | |
b57f37fb | 8216 | |
b57f37fb | 8217 | |
b57f37fb | 8218 | |
b57f37fb | 8219 | |
b57f37fb | 8220 | |
b57f37fb | 8221 | |
b57f37fb | 8222 | |
b57f37fb | 8223 | |
b57f37fb | 8224 | |
b57f37fb | 8225 | |
b57f37fb | 8226 | |
b57f37fb | 8227 | |
b57f37fb | 8228 | |
b57f37fb | 8229 | |
b57f37fb | 8230 | |
b57f37fb | 8231 | |
b57f37fb | 8232 | |
b57f37fb | 8233 | |
b57f37fb | 8234 | |
b57f37fb | 8235 | |
b57f37fb | 8236 | |
b57f37fb | 8237 | |
b57f37fb | 8238 | |
b57f37fb | 8239 | |
042acc47 | 8240 | test -z "$LN_S" && LN_S="ln -s" |
b57f37fb | 8241 | |
b57f37fb | 8242 | |
b57f37fb | 8243 | |
b57f37fb | 8244 | |
b57f37fb | 8245 | |
b57f37fb | 8246 | |
b57f37fb | 8247 | |
b57f37fb | 8248 | |
b57f37fb | 8249 | |
b57f37fb | 8250 | |
b57f37fb | 8251 | |
b57f37fb | 8252 | |
b57f37fb | 8253 | |
b57f37fb | 8254 | |
042acc47 WP |
8255 | if test -n "${ZSH_VERSION+set}" ; then |
8256 | setopt NO_GLOB_SUBST | |
b57f37fb | 8257 | fi |
b57f37fb | 8258 | |
042acc47 WP |
8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8260 | $as_echo_n "checking for objdir... " >&6; } | |
12e39525 | 8261 | if ${lt_cv_objdir+:} false; then : |
042acc47 | 8262 | $as_echo_n "(cached) " >&6 |
b57f37fb | 8263 | else |
042acc47 WP |
8264 | rm -f .libs 2>/dev/null |
8265 | mkdir .libs 2>/dev/null | |
8266 | if test -d .libs; then | |
8267 | lt_cv_objdir=.libs | |
8268 | else | |
8269 | # MS-DOS does not allow filenames that begin with a dot. | |
8270 | lt_cv_objdir=_libs | |
8271 | fi | |
8272 | rmdir .libs 2>/dev/null | |
b57f37fb | 8273 | fi |
042acc47 WP |
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8275 | $as_echo "$lt_cv_objdir" >&6; } | |
8276 | objdir=$lt_cv_objdir | |
b57f37fb WP |
8277 | |
8278 | ||
b57f37fb | 8279 | |
b57f37fb | 8280 | |
b57f37fb | 8281 | |
042acc47 WP |
8282 | cat >>confdefs.h <<_ACEOF |
8283 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8284 | _ACEOF | |
b57f37fb | 8285 | |
b57f37fb | 8286 | |
b57f37fb | 8287 | |
b57f37fb | 8288 | |
b57f37fb | 8289 | |
b57f37fb | 8290 | |
b57f37fb | 8291 | |
b57f37fb | 8292 | |
b57f37fb | 8293 | |
b57f37fb | 8294 | |
b57f37fb | 8295 | |
b57f37fb | 8296 | |
b57f37fb | 8297 | |
b57f37fb | 8298 | |
b57f37fb | 8299 | |
b57f37fb | 8300 | |
b57f37fb | 8301 | |
042acc47 WP |
8302 | case $host_os in |
8303 | aix3*) | |
8304 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8305 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8306 | # vanish in a puff of smoke. | |
8307 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8308 | COLLECT_NAMES= | |
8309 | export COLLECT_NAMES | |
8310 | fi | |
8311 | ;; | |
8312 | esac | |
b57f37fb | 8313 | |
042acc47 WP |
8314 | # Sed substitution that helps us do robust quoting. It backslashifies |
8315 | # metacharacters that are still active within double-quoted strings. | |
8316 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
b57f37fb | 8317 | |
042acc47 WP |
8318 | # Same as above, but do not quote variable references. |
8319 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
b57f37fb | 8320 | |
042acc47 WP |
8321 | # Sed substitution to delay expansion of an escaped shell variable in a |
8322 | # double_quote_subst'ed string. | |
8323 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
b57f37fb | 8324 | |
042acc47 WP |
8325 | # Sed substitution to delay expansion of an escaped single quote. |
8326 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
b57f37fb | 8327 | |
042acc47 WP |
8328 | # Sed substitution to avoid accidental globbing in evaled expressions |
8329 | no_glob_subst='s/\*/\\\*/g' | |
b57f37fb | 8330 | |
042acc47 WP |
8331 | # Global variables: |
8332 | ofile=libtool | |
8333 | can_build_shared=yes | |
b57f37fb | 8334 | |
042acc47 WP |
8335 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8336 | # which needs '.lib'). | |
8337 | libext=a | |
b57f37fb | 8338 | |
042acc47 | 8339 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
b57f37fb | 8340 | |
042acc47 WP |
8341 | old_CC="$CC" |
8342 | old_CFLAGS="$CFLAGS" | |
b57f37fb | 8343 | |
042acc47 WP |
8344 | # Set sane defaults for various variables |
8345 | test -z "$CC" && CC=cc | |
8346 | test -z "$LTCC" && LTCC=$CC | |
8347 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8348 | test -z "$LD" && LD=ld | |
8349 | test -z "$ac_objext" && ac_objext=o | |
b57f37fb | 8350 | |
042acc47 WP |
8351 | for cc_temp in $compiler""; do |
8352 | case $cc_temp in | |
8353 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8354 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8355 | \-*) ;; | |
8356 | *) break;; | |
8357 | esac | |
8358 | done | |
8359 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
b57f37fb | 8360 | |
b57f37fb | 8361 | |
042acc47 WP |
8362 | # Only perform the check for file, if the check method requires it |
8363 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8364 | case $deplibs_check_method in | |
8365 | file_magic*) | |
8366 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8368 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
12e39525 | 8369 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
042acc47 WP |
8370 | $as_echo_n "(cached) " >&6 |
8371 | else | |
8372 | case $MAGIC_CMD in | |
8373 | [\\/*] | ?:[\\/]*) | |
8374 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8375 | ;; | |
8376 | *) | |
8377 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8378 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8379 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8380 | for ac_dir in $ac_dummy; do | |
8381 | IFS="$lt_save_ifs" | |
8382 | test -z "$ac_dir" && ac_dir=. | |
8383 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8384 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8385 | if test -n "$file_magic_test_file"; then | |
8386 | case $deplibs_check_method in | |
8387 | "file_magic "*) | |
8388 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8389 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8390 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8391 | $EGREP "$file_magic_regex" > /dev/null; then | |
8392 | : | |
8393 | else | |
8394 | cat <<_LT_EOF 1>&2 | |
b57f37fb | 8395 | |
042acc47 WP |
8396 | *** Warning: the command libtool uses to detect shared libraries, |
8397 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8398 | *** The result is that libtool may fail to recognize shared libraries | |
8399 | *** as such. This will affect the creation of libtool libraries that | |
8400 | *** depend on shared libraries, but programs linked with such libtool | |
8401 | *** libraries will work regardless of this problem. Nevertheless, you | |
8402 | *** may want to report the problem to your system manager and/or to | |
8403 | *** bug-libtool@gnu.org | |
b57f37fb | 8404 | |
042acc47 WP |
8405 | _LT_EOF |
8406 | fi ;; | |
b57f37fb | 8407 | esac |
b57f37fb | 8408 | fi |
042acc47 WP |
8409 | break |
8410 | fi | |
8411 | done | |
8412 | IFS="$lt_save_ifs" | |
8413 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8414 | ;; | |
8415 | esac | |
8416 | fi | |
b57f37fb | 8417 | |
042acc47 WP |
8418 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8419 | if test -n "$MAGIC_CMD"; then | |
8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8421 | $as_echo "$MAGIC_CMD" >&6; } | |
8422 | else | |
8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8424 | $as_echo "no" >&6; } | |
8425 | fi | |
b57f37fb | 8426 | |
b57f37fb | 8427 | |
b57f37fb | 8428 | |
042acc47 WP |
8429 | |
8430 | ||
8431 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8432 | if test -n "$ac_tool_prefix"; then | |
8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8434 | $as_echo_n "checking for file... " >&6; } | |
12e39525 | 8435 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
042acc47 | 8436 | $as_echo_n "(cached) " >&6 |
b57f37fb | 8437 | else |
042acc47 WP |
8438 | case $MAGIC_CMD in |
8439 | [\\/*] | ?:[\\/]*) | |
8440 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8441 | ;; | |
8442 | *) | |
8443 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8444 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8445 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8446 | for ac_dir in $ac_dummy; do | |
8447 | IFS="$lt_save_ifs" | |
8448 | test -z "$ac_dir" && ac_dir=. | |
8449 | if test -f $ac_dir/file; then | |
8450 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8451 | if test -n "$file_magic_test_file"; then | |
8452 | case $deplibs_check_method in | |
8453 | "file_magic "*) | |
8454 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8455 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8456 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8457 | $EGREP "$file_magic_regex" > /dev/null; then | |
8458 | : | |
8459 | else | |
8460 | cat <<_LT_EOF 1>&2 | |
b57f37fb | 8461 | |
042acc47 WP |
8462 | *** Warning: the command libtool uses to detect shared libraries, |
8463 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8464 | *** The result is that libtool may fail to recognize shared libraries | |
8465 | *** as such. This will affect the creation of libtool libraries that | |
8466 | *** depend on shared libraries, but programs linked with such libtool | |
8467 | *** libraries will work regardless of this problem. Nevertheless, you | |
8468 | *** may want to report the problem to your system manager and/or to | |
8469 | *** bug-libtool@gnu.org | |
b57f37fb | 8470 | |
042acc47 WP |
8471 | _LT_EOF |
8472 | fi ;; | |
8473 | esac | |
8474 | fi | |
8475 | break | |
8476 | fi | |
8477 | done | |
8478 | IFS="$lt_save_ifs" | |
8479 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8480 | ;; | |
8481 | esac | |
b57f37fb WP |
8482 | fi |
8483 | ||
042acc47 WP |
8484 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8485 | if test -n "$MAGIC_CMD"; then | |
8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8487 | $as_echo "$MAGIC_CMD" >&6; } | |
8488 | else | |
8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8490 | $as_echo "no" >&6; } | |
8491 | fi | |
b57f37fb | 8492 | |
b57f37fb | 8493 | |
042acc47 WP |
8494 | else |
8495 | MAGIC_CMD=: | |
8496 | fi | |
8497 | fi | |
b57f37fb | 8498 | |
042acc47 WP |
8499 | fi |
8500 | ;; | |
b57f37fb | 8501 | esac |
b57f37fb | 8502 | |
042acc47 WP |
8503 | # Use C for the default configuration in the libtool script |
8504 | ||
8505 | lt_save_CC="$CC" | |
8506 | ac_ext=c | |
8507 | ac_cpp='$CPP $CPPFLAGS' | |
8508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8511 | ||
8512 | ||
8513 | # Source file extension for C test sources. | |
8514 | ac_ext=c | |
8515 | ||
8516 | # Object file extension for compiled C test sources. | |
8517 | objext=o | |
8518 | objext=$objext | |
8519 | ||
8520 | # Code to be used in simple compile tests | |
8521 | lt_simple_compile_test_code="int some_variable = 0;" | |
8522 | ||
8523 | # Code to be used in simple link tests | |
8524 | lt_simple_link_test_code='int main(){return(0);}' | |
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | # If no C compiler was specified, use CC. | |
8533 | LTCC=${LTCC-"$CC"} | |
8534 | ||
8535 | # If no C compiler flags were specified, use CFLAGS. | |
8536 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8537 | ||
8538 | # Allow CC to be a program name with arguments. | |
8539 | compiler=$CC | |
8540 | ||
8541 | # Save the default compiler, since it gets overwritten when the other | |
8542 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8543 | compiler_DEFAULT=$CC | |
8544 | ||
8545 | # save warnings/boilerplate of simple test code | |
8546 | ac_outfile=conftest.$ac_objext | |
8547 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8548 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8549 | _lt_compiler_boilerplate=`cat conftest.err` | |
8550 | $RM conftest* | |
8551 | ||
8552 | ac_outfile=conftest.$ac_objext | |
8553 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8554 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8555 | _lt_linker_boilerplate=`cat conftest.err` | |
8556 | $RM -r conftest* | |
8557 | ||
8558 | ||
8559 | if test -n "$compiler"; then | |
8560 | ||
8561 | lt_prog_compiler_no_builtin_flag= | |
8562 | ||
8563 | if test "$GCC" = yes; then | |
8564 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8565 | ||
8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8567 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
12e39525 | 8568 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
042acc47 | 8569 | $as_echo_n "(cached) " >&6 |
b57f37fb | 8570 | else |
042acc47 WP |
8571 | lt_cv_prog_compiler_rtti_exceptions=no |
8572 | ac_outfile=conftest.$ac_objext | |
8573 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8574 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8575 | # Insert the option either (1) after the last *FLAGS variable, or | |
8576 | # (2) before a word containing "conftest.", or (3) at the end. | |
8577 | # Note that $ac_compile itself does not contain backslashes and begins | |
8578 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8579 | # The option is referenced via a variable to avoid confusing sed. | |
8580 | lt_compile=`echo "$ac_compile" | $SED \ | |
8581 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8582 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8583 | -e 's:$: $lt_compiler_flag:'` | |
6dec141a | 8584 | (eval echo "\"\$as_me:8584: $lt_compile\"" >&5) |
042acc47 WP |
8585 | (eval "$lt_compile" 2>conftest.err) |
8586 | ac_status=$? | |
8587 | cat conftest.err >&5 | |
6dec141a | 8588 | echo "$as_me:8588: \$? = $ac_status" >&5 |
042acc47 WP |
8589 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8590 | # The compiler can only warn and ignore the option if not recognized | |
8591 | # So say no if there are warnings other than the usual output. | |
8592 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8593 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8594 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8595 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8596 | fi | |
8597 | fi | |
8598 | $RM conftest* | |
b57f37fb | 8599 | |
042acc47 WP |
8600 | fi |
8601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8602 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
b57f37fb | 8603 | |
042acc47 WP |
8604 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8605 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8606 | else | |
8607 | : | |
b57f37fb WP |
8608 | fi |
8609 | ||
042acc47 | 8610 | fi |
b57f37fb | 8611 | |
042acc47 WP |
8612 | |
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | lt_prog_compiler_wl= | |
8618 | lt_prog_compiler_pic= | |
8619 | lt_prog_compiler_static= | |
8620 | ||
8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8622 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8623 | ||
8624 | if test "$GCC" = yes; then | |
8625 | lt_prog_compiler_wl='-Wl,' | |
8626 | lt_prog_compiler_static='-static' | |
8627 | ||
8628 | case $host_os in | |
8629 | aix*) | |
8630 | # All AIX code is PIC. | |
8631 | if test "$host_cpu" = ia64; then | |
8632 | # AIX 5 now supports IA64 processor | |
8633 | lt_prog_compiler_static='-Bstatic' | |
b57f37fb WP |
8634 | fi |
8635 | ;; | |
8636 | ||
8637 | amigaos*) | |
042acc47 WP |
8638 | case $host_cpu in |
8639 | powerpc) | |
8640 | # see comment about AmigaOS4 .so support | |
8641 | lt_prog_compiler_pic='-fPIC' | |
8642 | ;; | |
8643 | m68k) | |
8644 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8645 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8646 | # like `-m68040'. | |
8647 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8648 | ;; | |
8649 | esac | |
b57f37fb WP |
8650 | ;; |
8651 | ||
042acc47 WP |
8652 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8653 | # PIC is the default for these OSes. | |
b57f37fb WP |
8654 | ;; |
8655 | ||
042acc47 WP |
8656 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8657 | # This hack is so that the source file can tell whether it is being | |
8658 | # built for inclusion in a dll (and should export symbols for example). | |
8659 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8660 | # (--disable-auto-import) libraries | |
8661 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
b57f37fb WP |
8662 | ;; |
8663 | ||
8664 | darwin* | rhapsody*) | |
042acc47 WP |
8665 | # PIC is the default on this platform |
8666 | # Common symbols not allowed in MH_DYLIB files | |
8667 | lt_prog_compiler_pic='-fno-common' | |
b57f37fb WP |
8668 | ;; |
8669 | ||
042acc47 WP |
8670 | hpux*) |
8671 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8672 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8673 | # sets the default TLS model and affects inlining. | |
8674 | case $host_cpu in | |
8675 | hppa*64*) | |
8676 | # +Z the default | |
8677 | ;; | |
8678 | *) | |
8679 | lt_prog_compiler_pic='-fPIC' | |
8680 | ;; | |
8681 | esac | |
b57f37fb WP |
8682 | ;; |
8683 | ||
042acc47 WP |
8684 | interix[3-9]*) |
8685 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8686 | # Instead, we relocate shared libraries at runtime. | |
b57f37fb WP |
8687 | ;; |
8688 | ||
042acc47 WP |
8689 | msdosdjgpp*) |
8690 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8691 | # on systems that don't support them. | |
8692 | lt_prog_compiler_can_build_shared=no | |
8693 | enable_shared=no | |
b57f37fb WP |
8694 | ;; |
8695 | ||
042acc47 WP |
8696 | *nto* | *qnx*) |
8697 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8698 | # it will coredump. | |
8699 | lt_prog_compiler_pic='-fPIC -shared' | |
b57f37fb WP |
8700 | ;; |
8701 | ||
042acc47 WP |
8702 | sysv4*MP*) |
8703 | if test -d /usr/nec; then | |
8704 | lt_prog_compiler_pic=-Kconform_pic | |
8705 | fi | |
b57f37fb WP |
8706 | ;; |
8707 | ||
042acc47 WP |
8708 | *) |
8709 | lt_prog_compiler_pic='-fPIC' | |
8710 | ;; | |
8711 | esac | |
8712 | else | |
8713 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8714 | case $host_os in | |
8715 | aix*) | |
8716 | lt_prog_compiler_wl='-Wl,' | |
8717 | if test "$host_cpu" = ia64; then | |
8718 | # AIX 5 now supports IA64 processor | |
8719 | lt_prog_compiler_static='-Bstatic' | |
b57f37fb | 8720 | else |
042acc47 | 8721 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
b57f37fb | 8722 | fi |
b57f37fb WP |
8723 | ;; |
8724 | ||
042acc47 WP |
8725 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8726 | # This hack is so that the source file can tell whether it is being | |
8727 | # built for inclusion in a dll (and should export symbols for example). | |
8728 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8729 | ;; | |
b57f37fb | 8730 | |
042acc47 WP |
8731 | hpux9* | hpux10* | hpux11*) |
8732 | lt_prog_compiler_wl='-Wl,' | |
8733 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8734 | # not for PA HP-UX. | |
8735 | case $host_cpu in | |
8736 | hppa*64*|ia64*) | |
8737 | # +Z the default | |
8738 | ;; | |
8739 | *) | |
8740 | lt_prog_compiler_pic='+Z' | |
8741 | ;; | |
8742 | esac | |
8743 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8744 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8745 | ;; | |
b57f37fb | 8746 | |
042acc47 WP |
8747 | irix5* | irix6* | nonstopux*) |
8748 | lt_prog_compiler_wl='-Wl,' | |
8749 | # PIC (with -KPIC) is the default. | |
8750 | lt_prog_compiler_static='-non_shared' | |
b57f37fb WP |
8751 | ;; |
8752 | ||
042acc47 WP |
8753 | linux* | k*bsd*-gnu) |
8754 | case $cc_basename in | |
8755 | # old Intel for x86_64 which still supported -KPIC. | |
8756 | ecc*) | |
8757 | lt_prog_compiler_wl='-Wl,' | |
8758 | lt_prog_compiler_pic='-KPIC' | |
8759 | lt_prog_compiler_static='-static' | |
8760 | ;; | |
8761 | # icc used to be incompatible with GCC. | |
8762 | # ICC 10 doesn't accept -KPIC any more. | |
8763 | icc* | ifort*) | |
8764 | lt_prog_compiler_wl='-Wl,' | |
8765 | lt_prog_compiler_pic='-fPIC' | |
8766 | lt_prog_compiler_static='-static' | |
8767 | ;; | |
8768 | # Lahey Fortran 8.1. | |
8769 | lf95*) | |
8770 | lt_prog_compiler_wl='-Wl,' | |
8771 | lt_prog_compiler_pic='--shared' | |
8772 | lt_prog_compiler_static='--static' | |
8773 | ;; | |
8774 | pgcc* | pgf77* | pgf90* | pgf95*) | |
8775 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8776 | # which looks to be a dead project) | |
8777 | lt_prog_compiler_wl='-Wl,' | |
8778 | lt_prog_compiler_pic='-fpic' | |
8779 | lt_prog_compiler_static='-Bstatic' | |
8780 | ;; | |
8781 | ccc*) | |
8782 | lt_prog_compiler_wl='-Wl,' | |
8783 | # All Alpha code is PIC. | |
8784 | lt_prog_compiler_static='-non_shared' | |
8785 | ;; | |
8786 | xl*) | |
8787 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8788 | lt_prog_compiler_wl='-Wl,' | |
8789 | lt_prog_compiler_pic='-qpic' | |
8790 | lt_prog_compiler_static='-qstaticlink' | |
8791 | ;; | |
8792 | *) | |
8793 | case `$CC -V 2>&1 | sed 5q` in | |
8794 | *Sun\ C*) | |
8795 | # Sun C 5.9 | |
8796 | lt_prog_compiler_pic='-KPIC' | |
8797 | lt_prog_compiler_static='-Bstatic' | |
8798 | lt_prog_compiler_wl='-Wl,' | |
b57f37fb | 8799 | ;; |
042acc47 WP |
8800 | *Sun\ F*) |
8801 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8802 | lt_prog_compiler_pic='-KPIC' | |
8803 | lt_prog_compiler_static='-Bstatic' | |
8804 | lt_prog_compiler_wl='' | |
b57f37fb WP |
8805 | ;; |
8806 | esac | |
042acc47 WP |
8807 | ;; |
8808 | esac | |
8809 | ;; | |
b57f37fb | 8810 | |
042acc47 WP |
8811 | newsos6) |
8812 | lt_prog_compiler_pic='-KPIC' | |
8813 | lt_prog_compiler_static='-Bstatic' | |
8814 | ;; | |
b57f37fb | 8815 | |
042acc47 WP |
8816 | *nto* | *qnx*) |
8817 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8818 | # it will coredump. | |
8819 | lt_prog_compiler_pic='-fPIC -shared' | |
b57f37fb WP |
8820 | ;; |
8821 | ||
042acc47 WP |
8822 | osf3* | osf4* | osf5*) |
8823 | lt_prog_compiler_wl='-Wl,' | |
8824 | # All OSF/1 code is PIC. | |
8825 | lt_prog_compiler_static='-non_shared' | |
b57f37fb WP |
8826 | ;; |
8827 | ||
042acc47 WP |
8828 | rdos*) |
8829 | lt_prog_compiler_static='-non_shared' | |
b57f37fb WP |
8830 | ;; |
8831 | ||
042acc47 WP |
8832 | solaris*) |
8833 | lt_prog_compiler_pic='-KPIC' | |
8834 | lt_prog_compiler_static='-Bstatic' | |
8835 | case $cc_basename in | |
8836 | f77* | f90* | f95*) | |
8837 | lt_prog_compiler_wl='-Qoption ld ';; | |
8838 | *) | |
8839 | lt_prog_compiler_wl='-Wl,';; | |
8840 | esac | |
b57f37fb WP |
8841 | ;; |
8842 | ||
042acc47 WP |
8843 | sunos4*) |
8844 | lt_prog_compiler_wl='-Qoption ld ' | |
8845 | lt_prog_compiler_pic='-PIC' | |
8846 | lt_prog_compiler_static='-Bstatic' | |
b57f37fb WP |
8847 | ;; |
8848 | ||
042acc47 WP |
8849 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8850 | lt_prog_compiler_wl='-Wl,' | |
8851 | lt_prog_compiler_pic='-KPIC' | |
8852 | lt_prog_compiler_static='-Bstatic' | |
b57f37fb WP |
8853 | ;; |
8854 | ||
042acc47 WP |
8855 | sysv4*MP*) |
8856 | if test -d /usr/nec ;then | |
8857 | lt_prog_compiler_pic='-Kconform_pic' | |
8858 | lt_prog_compiler_static='-Bstatic' | |
b57f37fb | 8859 | fi |
b57f37fb WP |
8860 | ;; |
8861 | ||
042acc47 WP |
8862 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8863 | lt_prog_compiler_wl='-Wl,' | |
8864 | lt_prog_compiler_pic='-KPIC' | |
8865 | lt_prog_compiler_static='-Bstatic' | |
8866 | ;; | |
b57f37fb | 8867 | |
042acc47 WP |
8868 | unicos*) |
8869 | lt_prog_compiler_wl='-Wl,' | |
8870 | lt_prog_compiler_can_build_shared=no | |
b57f37fb WP |
8871 | ;; |
8872 | ||
042acc47 WP |
8873 | uts4*) |
8874 | lt_prog_compiler_pic='-pic' | |
8875 | lt_prog_compiler_static='-Bstatic' | |
b57f37fb WP |
8876 | ;; |
8877 | ||
042acc47 WP |
8878 | *) |
8879 | lt_prog_compiler_can_build_shared=no | |
b57f37fb | 8880 | ;; |
042acc47 WP |
8881 | esac |
8882 | fi | |
b57f37fb | 8883 | |
042acc47 WP |
8884 | case $host_os in |
8885 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8886 | *djgpp*) | |
8887 | lt_prog_compiler_pic= | |
8888 | ;; | |
8889 | *) | |
8890 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8891 | ;; | |
8892 | esac | |
8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8894 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
b57f37fb | 8895 | |
b57f37fb | 8896 | |
b57f37fb | 8897 | |
b57f37fb | 8898 | |
b57f37fb | 8899 | |
b57f37fb | 8900 | |
042acc47 WP |
8901 | # |
8902 | # Check to make sure the PIC flag actually works. | |
8903 | # | |
8904 | if test -n "$lt_prog_compiler_pic"; then | |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8906 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
12e39525 | 8907 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
042acc47 WP |
8908 | $as_echo_n "(cached) " >&6 |
8909 | else | |
8910 | lt_cv_prog_compiler_pic_works=no | |
8911 | ac_outfile=conftest.$ac_objext | |
8912 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8913 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8914 | # Insert the option either (1) after the last *FLAGS variable, or | |
8915 | # (2) before a word containing "conftest.", or (3) at the end. | |
8916 | # Note that $ac_compile itself does not contain backslashes and begins | |
8917 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8918 | # The option is referenced via a variable to avoid confusing sed. | |
8919 | lt_compile=`echo "$ac_compile" | $SED \ | |
8920 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8921 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8922 | -e 's:$: $lt_compiler_flag:'` | |
6dec141a | 8923 | (eval echo "\"\$as_me:8923: $lt_compile\"" >&5) |
042acc47 WP |
8924 | (eval "$lt_compile" 2>conftest.err) |
8925 | ac_status=$? | |
8926 | cat conftest.err >&5 | |
6dec141a | 8927 | echo "$as_me:8927: \$? = $ac_status" >&5 |
042acc47 WP |
8928 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8929 | # The compiler can only warn and ignore the option if not recognized | |
8930 | # So say no if there are warnings other than the usual output. | |
8931 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8932 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8933 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8934 | lt_cv_prog_compiler_pic_works=yes | |
8935 | fi | |
8936 | fi | |
8937 | $RM conftest* | |
8938 | ||
8939 | fi | |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8941 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8942 | ||
8943 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8944 | case $lt_prog_compiler_pic in | |
8945 | "" | " "*) ;; | |
8946 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8947 | esac | |
8948 | else | |
8949 | lt_prog_compiler_pic= | |
8950 | lt_prog_compiler_can_build_shared=no | |
8951 | fi | |
8952 | ||
8953 | fi | |
8954 | ||
8955 | ||
b57f37fb | 8956 | |
b57f37fb | 8957 | |
b57f37fb | 8958 | |
b57f37fb WP |
8959 | |
8960 | # | |
042acc47 | 8961 | # Check to make sure the static flag actually works. |
b57f37fb | 8962 | # |
042acc47 WP |
8963 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8965 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
12e39525 | 8966 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
042acc47 WP |
8967 | $as_echo_n "(cached) " >&6 |
8968 | else | |
8969 | lt_cv_prog_compiler_static_works=no | |
8970 | save_LDFLAGS="$LDFLAGS" | |
8971 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8972 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8973 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8974 | # The linker can only warn and ignore the option if not recognized | |
8975 | # So say no if there are warnings | |
8976 | if test -s conftest.err; then | |
8977 | # Append any errors to the config.log. | |
8978 | cat conftest.err 1>&5 | |
8979 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8980 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8981 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8982 | lt_cv_prog_compiler_static_works=yes | |
8983 | fi | |
8984 | else | |
8985 | lt_cv_prog_compiler_static_works=yes | |
8986 | fi | |
8987 | fi | |
8988 | $RM -r conftest* | |
8989 | LDFLAGS="$save_LDFLAGS" | |
b57f37fb | 8990 | |
042acc47 WP |
8991 | fi |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8993 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
b57f37fb | 8994 | |
042acc47 WP |
8995 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
8996 | : | |
8997 | else | |
8998 | lt_prog_compiler_static= | |
8999 | fi | |
b57f37fb | 9000 | |
b57f37fb | 9001 | |
b57f37fb | 9002 | |
b57f37fb | 9003 | |
b57f37fb | 9004 | |
b57f37fb | 9005 | |
b57f37fb | 9006 | |
042acc47 WP |
9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9008 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12e39525 | 9009 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
042acc47 WP |
9010 | $as_echo_n "(cached) " >&6 |
9011 | else | |
9012 | lt_cv_prog_compiler_c_o=no | |
9013 | $RM -r conftest 2>/dev/null | |
9014 | mkdir conftest | |
9015 | cd conftest | |
9016 | mkdir out | |
9017 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
b57f37fb | 9018 | |
042acc47 WP |
9019 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9020 | # Insert the option either (1) after the last *FLAGS variable, or | |
9021 | # (2) before a word containing "conftest.", or (3) at the end. | |
9022 | # Note that $ac_compile itself does not contain backslashes and begins | |
9023 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9024 | lt_compile=`echo "$ac_compile" | $SED \ | |
9025 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9026 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9027 | -e 's:$: $lt_compiler_flag:'` | |
6dec141a | 9028 | (eval echo "\"\$as_me:9028: $lt_compile\"" >&5) |
042acc47 WP |
9029 | (eval "$lt_compile" 2>out/conftest.err) |
9030 | ac_status=$? | |
9031 | cat out/conftest.err >&5 | |
6dec141a | 9032 | echo "$as_me:9032: \$? = $ac_status" >&5 |
042acc47 WP |
9033 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9034 | then | |
9035 | # The compiler can only warn and ignore the option if not recognized | |
9036 | # So say no if there are warnings | |
9037 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9038 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9039 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9040 | lt_cv_prog_compiler_c_o=yes | |
9041 | fi | |
9042 | fi | |
9043 | chmod u+w . 2>&5 | |
9044 | $RM conftest* | |
9045 | # SGI C++ compiler will create directory out/ii_files/ for | |
9046 | # template instantiation | |
9047 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9048 | $RM out/* && rmdir out | |
9049 | cd .. | |
9050 | $RM -r conftest | |
9051 | $RM conftest* | |
b57f37fb | 9052 | |
042acc47 WP |
9053 | fi |
9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9055 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
b57f37fb | 9056 | |
b57f37fb | 9057 | |
b57f37fb | 9058 | |
b57f37fb | 9059 | |
b57f37fb | 9060 | |
b57f37fb | 9061 | |
042acc47 WP |
9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9063 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12e39525 | 9064 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
042acc47 WP |
9065 | $as_echo_n "(cached) " >&6 |
9066 | else | |
9067 | lt_cv_prog_compiler_c_o=no | |
9068 | $RM -r conftest 2>/dev/null | |
9069 | mkdir conftest | |
9070 | cd conftest | |
9071 | mkdir out | |
9072 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
b57f37fb | 9073 | |
042acc47 WP |
9074 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9075 | # Insert the option either (1) after the last *FLAGS variable, or | |
9076 | # (2) before a word containing "conftest.", or (3) at the end. | |
9077 | # Note that $ac_compile itself does not contain backslashes and begins | |
9078 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9079 | lt_compile=`echo "$ac_compile" | $SED \ | |
9080 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9081 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9082 | -e 's:$: $lt_compiler_flag:'` | |
6dec141a | 9083 | (eval echo "\"\$as_me:9083: $lt_compile\"" >&5) |
042acc47 WP |
9084 | (eval "$lt_compile" 2>out/conftest.err) |
9085 | ac_status=$? | |
9086 | cat out/conftest.err >&5 | |
6dec141a | 9087 | echo "$as_me:9087: \$? = $ac_status" >&5 |
042acc47 WP |
9088 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9089 | then | |
9090 | # The compiler can only warn and ignore the option if not recognized | |
9091 | # So say no if there are warnings | |
9092 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9093 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9094 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9095 | lt_cv_prog_compiler_c_o=yes | |
9096 | fi | |
9097 | fi | |
9098 | chmod u+w . 2>&5 | |
9099 | $RM conftest* | |
9100 | # SGI C++ compiler will create directory out/ii_files/ for | |
9101 | # template instantiation | |
9102 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9103 | $RM out/* && rmdir out | |
9104 | cd .. | |
9105 | $RM -r conftest | |
9106 | $RM conftest* | |
b57f37fb | 9107 | |
042acc47 WP |
9108 | fi |
9109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9110 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9111 | ||
9112 | ||
9113 | ||
9114 | ||
9115 | hard_links="nottested" | |
9116 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9117 | # do not overwrite the value of need_locks provided by the user | |
9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9119 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9120 | hard_links=yes | |
9121 | $RM conftest* | |
9122 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9123 | touch conftest.a | |
9124 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9125 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9127 | $as_echo "$hard_links" >&6; } | |
9128 | if test "$hard_links" = no; then | |
9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9130 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9131 | need_locks=warn | |
9132 | fi | |
9133 | else | |
9134 | need_locks=no | |
9135 | fi | |
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | ||
9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9143 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9144 | ||
9145 | runpath_var= | |
9146 | allow_undefined_flag= | |
9147 | always_export_symbols=no | |
9148 | archive_cmds= | |
9149 | archive_expsym_cmds= | |
9150 | compiler_needs_object=no | |
9151 | enable_shared_with_static_runtimes=no | |
9152 | export_dynamic_flag_spec= | |
9153 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9154 | hardcode_automatic=no | |
9155 | hardcode_direct=no | |
9156 | hardcode_direct_absolute=no | |
9157 | hardcode_libdir_flag_spec= | |
9158 | hardcode_libdir_flag_spec_ld= | |
9159 | hardcode_libdir_separator= | |
9160 | hardcode_minus_L=no | |
9161 | hardcode_shlibpath_var=unsupported | |
9162 | inherit_rpath=no | |
9163 | link_all_deplibs=unknown | |
9164 | module_cmds= | |
9165 | module_expsym_cmds= | |
9166 | old_archive_from_new_cmds= | |
9167 | old_archive_from_expsyms_cmds= | |
9168 | thread_safe_flag_spec= | |
9169 | whole_archive_flag_spec= | |
9170 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9171 | # included in the symbol list | |
9172 | include_expsyms= | |
9173 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9174 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9175 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9176 | # as well as any symbol that contains `d'. | |
9177 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9178 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9179 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9180 | # the symbol is explicitly referenced. Since portable code cannot | |
9181 | # rely on this symbol name, it's probably fine to never include it in | |
9182 | # preloaded symbol tables. | |
9183 | # Exclude shared library initialization/finalization symbols. | |
9184 | extract_expsyms_cmds= | |
b57f37fb | 9185 | |
b57f37fb | 9186 | case $host_os in |
042acc47 WP |
9187 | cygwin* | mingw* | pw32* | cegcc*) |
9188 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9189 | # When not using gcc, we currently assume that we are using | |
9190 | # Microsoft Visual C++. | |
9191 | if test "$GCC" != yes; then | |
9192 | with_gnu_ld=no | |
9193 | fi | |
b57f37fb | 9194 | ;; |
042acc47 WP |
9195 | interix*) |
9196 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9197 | with_gnu_ld=yes | |
b57f37fb | 9198 | ;; |
042acc47 WP |
9199 | openbsd*) |
9200 | with_gnu_ld=no | |
b57f37fb | 9201 | ;; |
b57f37fb | 9202 | esac |
b57f37fb | 9203 | |
042acc47 WP |
9204 | ld_shlibs=yes |
9205 | if test "$with_gnu_ld" = yes; then | |
9206 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9207 | wlarc='${wl}' | |
b57f37fb | 9208 | |
042acc47 WP |
9209 | # Set some defaults for GNU ld with shared library support. These |
9210 | # are reset later if shared libraries are not supported. Putting them | |
9211 | # here allows them to be overridden if necessary. | |
9212 | runpath_var=LD_RUN_PATH | |
9213 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9214 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9215 | # ancient GNU ld didn't support --whole-archive et. al. | |
9216 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9217 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
b57f37fb | 9218 | else |
042acc47 | 9219 | whole_archive_flag_spec= |
b57f37fb | 9220 | fi |
042acc47 WP |
9221 | supports_anon_versioning=no |
9222 | case `$LD -v 2>&1` in | |
9223 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9224 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9225 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9226 | *\ 2.11.*) ;; # other 2.11 versions | |
9227 | *) supports_anon_versioning=yes ;; | |
b57f37fb | 9228 | esac |
b57f37fb | 9229 | |
042acc47 WP |
9230 | # See if GNU ld supports shared libraries. |
9231 | case $host_os in | |
9232 | aix[3-9]*) | |
9233 | # On AIX/PPC, the GNU linker is very broken | |
9234 | if test "$host_cpu" != ia64; then | |
9235 | ld_shlibs=no | |
9236 | cat <<_LT_EOF 1>&2 | |
b57f37fb | 9237 | |
042acc47 WP |
9238 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
9239 | *** to be unable to reliably create shared libraries on AIX. | |
9240 | *** Therefore, libtool is disabling shared libraries support. If you | |
9241 | *** really care for shared libraries, you may want to modify your PATH | |
9242 | *** so that a non-GNU linker is found, and then restart. | |
b57f37fb | 9243 | |
042acc47 WP |
9244 | _LT_EOF |
9245 | fi | |
9246 | ;; | |
b57f37fb WP |
9247 | |
9248 | amigaos*) | |
042acc47 WP |
9249 | case $host_cpu in |
9250 | powerpc) | |
9251 | # see comment about AmigaOS4 .so support | |
9252 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9253 | archive_expsym_cmds='' | |
9254 | ;; | |
9255 | m68k) | |
9256 | 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)' | |
9257 | hardcode_libdir_flag_spec='-L$libdir' | |
9258 | hardcode_minus_L=yes | |
9259 | ;; | |
9260 | esac | |
b57f37fb WP |
9261 | ;; |
9262 | ||
9263 | beos*) | |
042acc47 WP |
9264 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9265 | allow_undefined_flag=unsupported | |
b57f37fb WP |
9266 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9267 | # support --undefined. This deserves some investigation. FIXME | |
042acc47 | 9268 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
b57f37fb | 9269 | else |
042acc47 | 9270 | ld_shlibs=no |
b57f37fb WP |
9271 | fi |
9272 | ;; | |
9273 | ||
042acc47 WP |
9274 | cygwin* | mingw* | pw32* | cegcc*) |
9275 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
b57f37fb | 9276 | # as there is no search path for DLLs. |
042acc47 WP |
9277 | hardcode_libdir_flag_spec='-L$libdir' |
9278 | allow_undefined_flag=unsupported | |
9279 | always_export_symbols=no | |
9280 | enable_shared_with_static_runtimes=yes | |
9281 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9282 | ||
9283 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9284 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
b57f37fb WP |
9285 | # If the export-symbols file already is a .def file (1st line |
9286 | # is EXPORTS), use it as is; otherwise, prepend... | |
042acc47 | 9287 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
b57f37fb WP |
9288 | cp $export_symbols $output_objdir/$soname.def; |
9289 | else | |
9290 | echo EXPORTS > $output_objdir/$soname.def; | |
9291 | cat $export_symbols >> $output_objdir/$soname.def; | |
9292 | fi~ | |
9293 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9294 | else | |
042acc47 | 9295 | ld_shlibs=no |
b57f37fb WP |
9296 | fi |
9297 | ;; | |
9298 | ||
9299 | interix[3-9]*) | |
042acc47 WP |
9300 | hardcode_direct=no |
9301 | hardcode_shlibpath_var=no | |
9302 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9303 | export_dynamic_flag_spec='${wl}-E' | |
b57f37fb WP |
9304 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9305 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9306 | # default) and relocated if they conflict, which is a slow very memory | |
9307 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9308 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9309 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
042acc47 WP |
9310 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9311 | 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' | |
b57f37fb WP |
9312 | ;; |
9313 | ||
042acc47 WP |
9314 | gnu* | linux* | tpf* | k*bsd*-gnu) |
9315 | tmp_diet=no | |
9316 | if test "$host_os" = linux-dietlibc; then | |
9317 | case $cc_basename in | |
9318 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9319 | esac | |
9320 | fi | |
9321 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9322 | && test "$tmp_diet" = no | |
9323 | then | |
b57f37fb | 9324 | tmp_addflag= |
042acc47 | 9325 | tmp_sharedflag='-shared' |
b57f37fb | 9326 | case $cc_basename,$host_cpu in |
042acc47 WP |
9327 | pgcc*) # Portland Group C compiler |
9328 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
b57f37fb WP |
9329 | tmp_addflag=' $pic_flag' |
9330 | ;; | |
9331 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
042acc47 | 9332 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
b57f37fb | 9333 | tmp_addflag=' $pic_flag -Mnomain' ;; |
042acc47 | 9334 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
b57f37fb WP |
9335 | tmp_addflag=' -i_dynamic' ;; |
9336 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9337 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9338 | ifc* | ifort*) # Intel Fortran compiler | |
9339 | tmp_addflag=' -nofor_main' ;; | |
042acc47 WP |
9340 | lf95*) # Lahey Fortran 8.1 |
9341 | whole_archive_flag_spec= | |
9342 | tmp_sharedflag='--shared' ;; | |
9343 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9344 | tmp_sharedflag='-qmkshrobj' | |
9345 | tmp_addflag= ;; | |
b57f37fb WP |
9346 | esac |
9347 | case `$CC -V 2>&1 | sed 5q` in | |
9348 | *Sun\ C*) # Sun C 5.9 | |
042acc47 WP |
9349 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
9350 | compiler_needs_object=yes | |
b57f37fb WP |
9351 | tmp_sharedflag='-G' ;; |
9352 | *Sun\ F*) # Sun Fortran 8.3 | |
9353 | tmp_sharedflag='-G' ;; | |
b57f37fb | 9354 | esac |
042acc47 | 9355 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
b57f37fb | 9356 | |
042acc47 WP |
9357 | if test "x$supports_anon_versioning" = xyes; then |
9358 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9359 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9360 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9361 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9362 | fi | |
9363 | ||
9364 | case $cc_basename in | |
9365 | xlf*) | |
9366 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9367 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9368 | hardcode_libdir_flag_spec= | |
9369 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9370 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9371 | if test "x$supports_anon_versioning" = xyes; then | |
9372 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9373 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9374 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9375 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9376 | fi | |
9377 | ;; | |
9378 | esac | |
b57f37fb | 9379 | else |
042acc47 | 9380 | ld_shlibs=no |
b57f37fb WP |
9381 | fi |
9382 | ;; | |
9383 | ||
1800d973 | 9384 | netbsd*) |
042acc47 WP |
9385 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9386 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
b57f37fb WP |
9387 | wlarc= |
9388 | else | |
042acc47 WP |
9389 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9390 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
b57f37fb WP |
9391 | fi |
9392 | ;; | |
9393 | ||
9394 | solaris*) | |
042acc47 WP |
9395 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9396 | ld_shlibs=no | |
9397 | cat <<_LT_EOF 1>&2 | |
b57f37fb WP |
9398 | |
9399 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9400 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9401 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9402 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9403 | *** your PATH or compiler configuration so that the native linker is | |
9404 | *** used, and then restart. | |
9405 | ||
042acc47 WP |
9406 | _LT_EOF |
9407 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9408 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9409 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
b57f37fb | 9410 | else |
042acc47 | 9411 | ld_shlibs=no |
b57f37fb WP |
9412 | fi |
9413 | ;; | |
9414 | ||
9415 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9416 | case `$LD -v 2>&1` in | |
9417 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
042acc47 | 9418 | ld_shlibs=no |
b57f37fb WP |
9419 | cat <<_LT_EOF 1>&2 |
9420 | ||
9421 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9422 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9423 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9424 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9425 | *** your PATH or compiler configuration so that the native linker is | |
9426 | *** used, and then restart. | |
9427 | ||
9428 | _LT_EOF | |
9429 | ;; | |
9430 | *) | |
042acc47 WP |
9431 | # For security reasons, it is highly recommended that you always |
9432 | # use absolute paths for naming shared libraries, and exclude the | |
9433 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9434 | # requires that you compile everything twice, which is a pain. | |
9435 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9436 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9437 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9438 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
b57f37fb | 9439 | else |
042acc47 | 9440 | ld_shlibs=no |
b57f37fb WP |
9441 | fi |
9442 | ;; | |
9443 | esac | |
9444 | ;; | |
9445 | ||
9446 | sunos4*) | |
042acc47 | 9447 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
b57f37fb | 9448 | wlarc= |
042acc47 WP |
9449 | hardcode_direct=yes |
9450 | hardcode_shlibpath_var=no | |
b57f37fb WP |
9451 | ;; |
9452 | ||
9453 | *) | |
042acc47 WP |
9454 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9455 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9456 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
b57f37fb | 9457 | else |
042acc47 | 9458 | ld_shlibs=no |
b57f37fb WP |
9459 | fi |
9460 | ;; | |
9461 | esac | |
9462 | ||
042acc47 | 9463 | if test "$ld_shlibs" = no; then |
b57f37fb | 9464 | runpath_var= |
042acc47 WP |
9465 | hardcode_libdir_flag_spec= |
9466 | export_dynamic_flag_spec= | |
9467 | whole_archive_flag_spec= | |
b57f37fb WP |
9468 | fi |
9469 | else | |
9470 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9471 | case $host_os in | |
9472 | aix3*) | |
042acc47 WP |
9473 | allow_undefined_flag=unsupported |
9474 | always_export_symbols=yes | |
9475 | 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' | |
b57f37fb WP |
9476 | # Note: this linker hardcodes the directories in LIBPATH if there |
9477 | # are no directories specified by -L. | |
042acc47 | 9478 | hardcode_minus_L=yes |
b57f37fb WP |
9479 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
9480 | # Neither direct hardcoding nor static linking is supported with a | |
9481 | # broken collect2. | |
042acc47 | 9482 | hardcode_direct=unsupported |
b57f37fb WP |
9483 | fi |
9484 | ;; | |
9485 | ||
56efe974 | 9486 | aix[4-9]*) |
b57f37fb WP |
9487 | if test "$host_cpu" = ia64; then |
9488 | # On IA64, the linker does run time linking by default, so we don't | |
9489 | # have to do anything special. | |
9490 | aix_use_runtimelinking=no | |
9491 | exp_sym_flag='-Bexport' | |
9492 | no_entry_flag="" | |
9493 | else | |
9494 | # If we're using GNU nm, then we don't want the "-C" option. | |
9495 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
042acc47 WP |
9496 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9497 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
b57f37fb | 9498 | else |
042acc47 | 9499 | 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' |
b57f37fb WP |
9500 | fi |
9501 | aix_use_runtimelinking=no | |
9502 | ||
9503 | # Test if we are trying to use run time linking or normal | |
9504 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9505 | # need to do runtime linking. | |
56efe974 | 9506 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
b57f37fb | 9507 | for ld_flag in $LDFLAGS; do |
042acc47 WP |
9508 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
9509 | aix_use_runtimelinking=yes | |
9510 | break | |
9511 | fi | |
b57f37fb WP |
9512 | done |
9513 | ;; | |
9514 | esac | |
9515 | ||
9516 | exp_sym_flag='-bexport' | |
9517 | no_entry_flag='-bnoentry' | |
9518 | fi | |
9519 | ||
9520 | # When large executables or shared objects are built, AIX ld can | |
9521 | # have problems creating the table of contents. If linking a library | |
9522 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9523 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9524 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9525 | ||
042acc47 WP |
9526 | archive_cmds='' |
9527 | hardcode_direct=yes | |
9528 | hardcode_direct_absolute=yes | |
9529 | hardcode_libdir_separator=':' | |
9530 | link_all_deplibs=yes | |
9531 | file_list_spec='${wl}-f,' | |
b57f37fb WP |
9532 | |
9533 | if test "$GCC" = yes; then | |
9534 | case $host_os in aix4.[012]|aix4.[012].*) | |
9535 | # We only want to do this on AIX 4.2 and lower, the check | |
9536 | # below for broken collect2 doesn't work under 4.3+ | |
9537 | collect2name=`${CC} -print-prog-name=collect2` | |
042acc47 WP |
9538 | if test -f "$collect2name" && |
9539 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
b57f37fb | 9540 | then |
042acc47 WP |
9541 | # We have reworked collect2 |
9542 | : | |
b57f37fb | 9543 | else |
042acc47 WP |
9544 | # We have old collect2 |
9545 | hardcode_direct=unsupported | |
9546 | # It fails to find uninstalled libraries when the uninstalled | |
9547 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9548 | # to unsupported forces relinking | |
9549 | hardcode_minus_L=yes | |
9550 | hardcode_libdir_flag_spec='-L$libdir' | |
9551 | hardcode_libdir_separator= | |
b57f37fb WP |
9552 | fi |
9553 | ;; | |
9554 | esac | |
9555 | shared_flag='-shared' | |
9556 | if test "$aix_use_runtimelinking" = yes; then | |
9557 | shared_flag="$shared_flag "'${wl}-G' | |
9558 | fi | |
9559 | else | |
9560 | # not using gcc | |
9561 | if test "$host_cpu" = ia64; then | |
042acc47 WP |
9562 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9563 | # chokes on -Wl,-G. The following line is correct: | |
b57f37fb WP |
9564 | shared_flag='-G' |
9565 | else | |
9566 | if test "$aix_use_runtimelinking" = yes; then | |
9567 | shared_flag='${wl}-G' | |
9568 | else | |
9569 | shared_flag='${wl}-bM:SRE' | |
9570 | fi | |
9571 | fi | |
9572 | fi | |
9573 | ||
042acc47 | 9574 | export_dynamic_flag_spec='${wl}-bexpall' |
b57f37fb WP |
9575 | # It seems that -bexpall does not export symbols beginning with |
9576 | # underscore (_), so it is better to generate a list of symbols to export. | |
042acc47 | 9577 | always_export_symbols=yes |
b57f37fb WP |
9578 | if test "$aix_use_runtimelinking" = yes; then |
9579 | # Warning - without using the other runtime loading flags (-brtl), | |
9580 | # -berok will link without error, but may produce a broken library. | |
042acc47 WP |
9581 | allow_undefined_flag='-berok' |
9582 | # Determine the default libpath from the value encoded in an | |
9583 | # empty executable. | |
9584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb WP |
9585 | /* end confdefs.h. */ |
9586 | ||
9587 | int | |
9588 | main () | |
9589 | { | |
9590 | ||
9591 | ; | |
9592 | return 0; | |
9593 | } | |
9594 | _ACEOF | |
042acc47 | 9595 | if ac_fn_c_try_link "$LINENO"; then : |
b57f37fb WP |
9596 | |
9597 | lt_aix_libpath_sed=' | |
9598 | /Import File Strings/,/^$/ { | |
9599 | /^0/ { | |
9600 | s/^0 *\(.*\)$/\1/ | |
9601 | p | |
9602 | } | |
9603 | }' | |
9604 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9605 | # Check for a 64-bit object if we didn't find anything. | |
9606 | if test -z "$aix_libpath"; then | |
9607 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9608 | fi | |
b57f37fb | 9609 | fi |
042acc47 WP |
9610 | rm -f core conftest.err conftest.$ac_objext \ |
9611 | conftest$ac_exeext conftest.$ac_ext | |
b57f37fb WP |
9612 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9613 | ||
042acc47 WP |
9614 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9615 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9616 | else | |
b57f37fb | 9617 | if test "$host_cpu" = ia64; then |
042acc47 WP |
9618 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
9619 | allow_undefined_flag="-z nodefs" | |
9620 | 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" | |
b57f37fb | 9621 | else |
042acc47 WP |
9622 | # Determine the default libpath from the value encoded in an |
9623 | # empty executable. | |
9624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb WP |
9625 | /* end confdefs.h. */ |
9626 | ||
9627 | int | |
9628 | main () | |
9629 | { | |
9630 | ||
9631 | ; | |
9632 | return 0; | |
9633 | } | |
9634 | _ACEOF | |
042acc47 | 9635 | if ac_fn_c_try_link "$LINENO"; then : |
b57f37fb WP |
9636 | |
9637 | lt_aix_libpath_sed=' | |
9638 | /Import File Strings/,/^$/ { | |
9639 | /^0/ { | |
9640 | s/^0 *\(.*\)$/\1/ | |
9641 | p | |
9642 | } | |
9643 | }' | |
9644 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9645 | # Check for a 64-bit object if we didn't find anything. | |
9646 | if test -z "$aix_libpath"; then | |
9647 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9648 | fi | |
b57f37fb | 9649 | fi |
042acc47 WP |
9650 | rm -f core conftest.err conftest.$ac_objext \ |
9651 | conftest$ac_exeext conftest.$ac_ext | |
b57f37fb WP |
9652 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9653 | ||
042acc47 | 9654 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
b57f37fb WP |
9655 | # Warning - without using the other run time loading flags, |
9656 | # -berok will link without error, but may produce a broken library. | |
042acc47 WP |
9657 | no_undefined_flag=' ${wl}-bernotok' |
9658 | allow_undefined_flag=' ${wl}-berok' | |
b57f37fb | 9659 | # Exported symbols can be pulled into shared objects from archives |
042acc47 WP |
9660 | whole_archive_flag_spec='$convenience' |
9661 | archive_cmds_need_lc=yes | |
b57f37fb | 9662 | # This is similar to how AIX traditionally builds its shared libraries. |
042acc47 | 9663 | 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' |
b57f37fb WP |
9664 | fi |
9665 | fi | |
9666 | ;; | |
9667 | ||
9668 | amigaos*) | |
042acc47 WP |
9669 | case $host_cpu in |
9670 | powerpc) | |
9671 | # see comment about AmigaOS4 .so support | |
9672 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9673 | archive_expsym_cmds='' | |
9674 | ;; | |
9675 | m68k) | |
9676 | 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)' | |
9677 | hardcode_libdir_flag_spec='-L$libdir' | |
9678 | hardcode_minus_L=yes | |
9679 | ;; | |
9680 | esac | |
b57f37fb WP |
9681 | ;; |
9682 | ||
9683 | bsdi[45]*) | |
042acc47 | 9684 | export_dynamic_flag_spec=-rdynamic |
b57f37fb WP |
9685 | ;; |
9686 | ||
042acc47 | 9687 | cygwin* | mingw* | pw32* | cegcc*) |
b57f37fb WP |
9688 | # When not using gcc, we currently assume that we are using |
9689 | # Microsoft Visual C++. | |
9690 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9691 | # no search path for DLLs. | |
042acc47 WP |
9692 | hardcode_libdir_flag_spec=' ' |
9693 | allow_undefined_flag=unsupported | |
b57f37fb WP |
9694 | # Tell ltmain to make .lib files, not .a files. |
9695 | libext=lib | |
9696 | # Tell ltmain to make .dll files, not .so files. | |
9697 | shrext_cmds=".dll" | |
9698 | # FIXME: Setting linknames here is a bad hack. | |
042acc47 | 9699 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
b57f37fb | 9700 | # The linker will automatically build a .lib file if we build a DLL. |
042acc47 | 9701 | old_archive_from_new_cmds='true' |
b57f37fb | 9702 | # FIXME: Should let the user specify the lib program. |
042acc47 WP |
9703 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9704 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9705 | enable_shared_with_static_runtimes=yes | |
b57f37fb WP |
9706 | ;; |
9707 | ||
042acc47 WP |
9708 | darwin* | rhapsody*) |
9709 | ||
9710 | ||
9711 | archive_cmds_need_lc=no | |
9712 | hardcode_direct=no | |
9713 | hardcode_automatic=yes | |
9714 | hardcode_shlibpath_var=unsupported | |
9715 | whole_archive_flag_spec='' | |
9716 | link_all_deplibs=yes | |
9717 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9718 | case $cc_basename in | |
9719 | ifort*) _lt_dar_can_shared=yes ;; | |
9720 | *) _lt_dar_can_shared=$GCC ;; | |
9721 | esac | |
9722 | if test "$_lt_dar_can_shared" = "yes"; then | |
9723 | output_verbose_link_cmd=echo | |
9724 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9725 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9726 | 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}" | |
9727 | 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}" | |
9728 | ||
9729 | else | |
9730 | ld_shlibs=no | |
9731 | fi | |
9732 | ||
b57f37fb WP |
9733 | ;; |
9734 | ||
9735 | dgux*) | |
042acc47 WP |
9736 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9737 | hardcode_libdir_flag_spec='-L$libdir' | |
9738 | hardcode_shlibpath_var=no | |
b57f37fb WP |
9739 | ;; |
9740 | ||
9741 | freebsd1*) | |
042acc47 | 9742 | ld_shlibs=no |
b57f37fb WP |
9743 | ;; |
9744 | ||
9745 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9746 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9747 | # does not break anything, and helps significantly (at the cost of a little | |
9748 | # extra space). | |
9749 | freebsd2.2*) | |
042acc47 WP |
9750 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9751 | hardcode_libdir_flag_spec='-R$libdir' | |
9752 | hardcode_direct=yes | |
9753 | hardcode_shlibpath_var=no | |
b57f37fb WP |
9754 | ;; |
9755 | ||
9756 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9757 | freebsd2*) | |
042acc47 WP |
9758 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9759 | hardcode_direct=yes | |
9760 | hardcode_minus_L=yes | |
9761 | hardcode_shlibpath_var=no | |
b57f37fb WP |
9762 | ;; |
9763 | ||
9764 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9765 | freebsd* | dragonfly*) | |
042acc47 WP |
9766 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
9767 | hardcode_libdir_flag_spec='-R$libdir' | |
9768 | hardcode_direct=yes | |
9769 | hardcode_shlibpath_var=no | |
b57f37fb WP |
9770 | ;; |
9771 | ||
9772 | hpux9*) | |
9773 | if test "$GCC" = yes; then | |
042acc47 | 9774 | 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' |
b57f37fb | 9775 | else |
042acc47 | 9776 | 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' |
b57f37fb | 9777 | fi |
042acc47 WP |
9778 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9779 | hardcode_libdir_separator=: | |
9780 | hardcode_direct=yes | |
b57f37fb WP |
9781 | |
9782 | # hardcode_minus_L: Not really in the search PATH, | |
9783 | # but as the default location of the library. | |
042acc47 WP |
9784 | hardcode_minus_L=yes |
9785 | export_dynamic_flag_spec='${wl}-E' | |
b57f37fb WP |
9786 | ;; |
9787 | ||
9788 | hpux10*) | |
9789 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
042acc47 | 9790 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
b57f37fb | 9791 | else |
042acc47 | 9792 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
b57f37fb WP |
9793 | fi |
9794 | if test "$with_gnu_ld" = no; then | |
042acc47 WP |
9795 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9796 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9797 | hardcode_libdir_separator=: | |
9798 | hardcode_direct=yes | |
9799 | hardcode_direct_absolute=yes | |
9800 | export_dynamic_flag_spec='${wl}-E' | |
b57f37fb WP |
9801 | # hardcode_minus_L: Not really in the search PATH, |
9802 | # but as the default location of the library. | |
042acc47 | 9803 | hardcode_minus_L=yes |
b57f37fb WP |
9804 | fi |
9805 | ;; | |
9806 | ||
9807 | hpux11*) | |
9808 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9809 | case $host_cpu in | |
9810 | hppa*64*) | |
042acc47 | 9811 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
b57f37fb WP |
9812 | ;; |
9813 | ia64*) | |
042acc47 | 9814 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b57f37fb WP |
9815 | ;; |
9816 | *) | |
042acc47 | 9817 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
b57f37fb WP |
9818 | ;; |
9819 | esac | |
9820 | else | |
9821 | case $host_cpu in | |
9822 | hppa*64*) | |
042acc47 | 9823 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
b57f37fb WP |
9824 | ;; |
9825 | ia64*) | |
042acc47 | 9826 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b57f37fb WP |
9827 | ;; |
9828 | *) | |
042acc47 | 9829 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
b57f37fb WP |
9830 | ;; |
9831 | esac | |
9832 | fi | |
9833 | if test "$with_gnu_ld" = no; then | |
042acc47 WP |
9834 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9835 | hardcode_libdir_separator=: | |
b57f37fb WP |
9836 | |
9837 | case $host_cpu in | |
9838 | hppa*64*|ia64*) | |
042acc47 WP |
9839 | hardcode_direct=no |
9840 | hardcode_shlibpath_var=no | |
b57f37fb WP |
9841 | ;; |
9842 | *) | |
042acc47 WP |
9843 | hardcode_direct=yes |
9844 | hardcode_direct_absolute=yes | |
9845 | export_dynamic_flag_spec='${wl}-E' | |
b57f37fb WP |
9846 | |
9847 | # hardcode_minus_L: Not really in the search PATH, | |
9848 | # but as the default location of the library. | |
042acc47 | 9849 | hardcode_minus_L=yes |
b57f37fb WP |
9850 | ;; |
9851 | esac | |
9852 | fi | |
9853 | ;; | |
9854 | ||
9855 | irix5* | irix6* | nonstopux*) | |
9856 | if test "$GCC" = yes; then | |
042acc47 WP |
9857 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
9858 | # Try to use the -exported_symbol ld option, if it does not | |
9859 | # work, assume that -exports_file does not work either and | |
9860 | # implicitly export all symbols. | |
9861 | save_LDFLAGS="$LDFLAGS" | |
9862 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9864 | /* end confdefs.h. */ | |
9865 | int foo(void) {} | |
9866 | _ACEOF | |
9867 | if ac_fn_c_try_link "$LINENO"; then : | |
9868 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
9869 | ||
9870 | fi | |
9871 | rm -f core conftest.err conftest.$ac_objext \ | |
9872 | conftest$ac_exeext conftest.$ac_ext | |
9873 | LDFLAGS="$save_LDFLAGS" | |
b57f37fb | 9874 | else |
042acc47 WP |
9875 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
9876 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
b57f37fb | 9877 | fi |
042acc47 WP |
9878 | archive_cmds_need_lc='no' |
9879 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9880 | hardcode_libdir_separator=: | |
9881 | inherit_rpath=yes | |
9882 | link_all_deplibs=yes | |
b57f37fb WP |
9883 | ;; |
9884 | ||
1800d973 | 9885 | netbsd*) |
042acc47 WP |
9886 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9887 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
b57f37fb | 9888 | else |
042acc47 | 9889 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
b57f37fb | 9890 | fi |
042acc47 WP |
9891 | hardcode_libdir_flag_spec='-R$libdir' |
9892 | hardcode_direct=yes | |
9893 | hardcode_shlibpath_var=no | |
b57f37fb WP |
9894 | ;; |
9895 | ||
9896 | newsos6) | |
042acc47 WP |
9897 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9898 | hardcode_direct=yes | |
9899 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9900 | hardcode_libdir_separator=: | |
9901 | hardcode_shlibpath_var=no | |
9902 | ;; | |
9903 | ||
9904 | *nto* | *qnx*) | |
b57f37fb WP |
9905 | ;; |
9906 | ||
9907 | openbsd*) | |
9908 | if test -f /usr/libexec/ld.so; then | |
042acc47 WP |
9909 | hardcode_direct=yes |
9910 | hardcode_shlibpath_var=no | |
9911 | hardcode_direct_absolute=yes | |
9912 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9913 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9914 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9915 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9916 | export_dynamic_flag_spec='${wl}-E' | |
b57f37fb WP |
9917 | else |
9918 | case $host_os in | |
9919 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
042acc47 WP |
9920 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9921 | hardcode_libdir_flag_spec='-R$libdir' | |
b57f37fb WP |
9922 | ;; |
9923 | *) | |
042acc47 WP |
9924 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9925 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
b57f37fb WP |
9926 | ;; |
9927 | esac | |
042acc47 | 9928 | fi |
b57f37fb | 9929 | else |
042acc47 | 9930 | ld_shlibs=no |
b57f37fb WP |
9931 | fi |
9932 | ;; | |
9933 | ||
9934 | os2*) | |
042acc47 WP |
9935 | hardcode_libdir_flag_spec='-L$libdir' |
9936 | hardcode_minus_L=yes | |
9937 | allow_undefined_flag=unsupported | |
9938 | 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' | |
9939 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
b57f37fb WP |
9940 | ;; |
9941 | ||
9942 | osf3*) | |
9943 | if test "$GCC" = yes; then | |
042acc47 WP |
9944 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9945 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
b57f37fb | 9946 | else |
042acc47 WP |
9947 | allow_undefined_flag=' -expect_unresolved \*' |
9948 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
b57f37fb | 9949 | fi |
042acc47 WP |
9950 | archive_cmds_need_lc='no' |
9951 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9952 | hardcode_libdir_separator=: | |
b57f37fb WP |
9953 | ;; |
9954 | ||
9955 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9956 | if test "$GCC" = yes; then | |
042acc47 WP |
9957 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9958 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9959 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
b57f37fb | 9960 | else |
042acc47 WP |
9961 | allow_undefined_flag=' -expect_unresolved \*' |
9962 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9963 | 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~ | |
9964 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
b57f37fb WP |
9965 | |
9966 | # Both c and cxx compiler support -rpath directly | |
042acc47 | 9967 | hardcode_libdir_flag_spec='-rpath $libdir' |
b57f37fb | 9968 | fi |
042acc47 WP |
9969 | archive_cmds_need_lc='no' |
9970 | hardcode_libdir_separator=: | |
b57f37fb WP |
9971 | ;; |
9972 | ||
9973 | solaris*) | |
042acc47 | 9974 | no_undefined_flag=' -z defs' |
b57f37fb WP |
9975 | if test "$GCC" = yes; then |
9976 | wlarc='${wl}' | |
042acc47 WP |
9977 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9978 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9979 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
b57f37fb | 9980 | else |
042acc47 WP |
9981 | case `$CC -V 2>&1` in |
9982 | *"Compilers 5.0"*) | |
9983 | wlarc='' | |
9984 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9985 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9986 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9987 | ;; | |
9988 | *) | |
9989 | wlarc='${wl}' | |
9990 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9991 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9992 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9993 | ;; | |
9994 | esac | |
b57f37fb | 9995 | fi |
042acc47 WP |
9996 | hardcode_libdir_flag_spec='-R$libdir' |
9997 | hardcode_shlibpath_var=no | |
b57f37fb WP |
9998 | case $host_os in |
9999 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10000 | *) | |
10001 | # The compiler driver will combine and reorder linker options, | |
10002 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10003 | # but is careful enough not to reorder. | |
042acc47 | 10004 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
b57f37fb | 10005 | if test "$GCC" = yes; then |
042acc47 | 10006 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
b57f37fb | 10007 | else |
042acc47 | 10008 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
b57f37fb WP |
10009 | fi |
10010 | ;; | |
10011 | esac | |
042acc47 | 10012 | link_all_deplibs=yes |
b57f37fb WP |
10013 | ;; |
10014 | ||
10015 | sunos4*) | |
10016 | if test "x$host_vendor" = xsequent; then | |
10017 | # Use $CC to link under sequent, because it throws in some extra .o | |
10018 | # files that make .init and .fini sections work. | |
042acc47 | 10019 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
b57f37fb | 10020 | else |
042acc47 | 10021 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
b57f37fb | 10022 | fi |
042acc47 WP |
10023 | hardcode_libdir_flag_spec='-L$libdir' |
10024 | hardcode_direct=yes | |
10025 | hardcode_minus_L=yes | |
10026 | hardcode_shlibpath_var=no | |
b57f37fb WP |
10027 | ;; |
10028 | ||
10029 | sysv4) | |
10030 | case $host_vendor in | |
10031 | sni) | |
042acc47 WP |
10032 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10033 | hardcode_direct=yes # is this really true??? | |
b57f37fb WP |
10034 | ;; |
10035 | siemens) | |
10036 | ## LD is ld it makes a PLAMLIB | |
10037 | ## CC just makes a GrossModule. | |
042acc47 WP |
10038 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10039 | reload_cmds='$CC -r -o $output$reload_objs' | |
10040 | hardcode_direct=no | |
b57f37fb WP |
10041 | ;; |
10042 | motorola) | |
042acc47 WP |
10043 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10044 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
b57f37fb WP |
10045 | ;; |
10046 | esac | |
10047 | runpath_var='LD_RUN_PATH' | |
042acc47 | 10048 | hardcode_shlibpath_var=no |
b57f37fb WP |
10049 | ;; |
10050 | ||
10051 | sysv4.3*) | |
042acc47 WP |
10052 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10053 | hardcode_shlibpath_var=no | |
10054 | export_dynamic_flag_spec='-Bexport' | |
b57f37fb WP |
10055 | ;; |
10056 | ||
10057 | sysv4*MP*) | |
10058 | if test -d /usr/nec; then | |
042acc47 WP |
10059 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10060 | hardcode_shlibpath_var=no | |
b57f37fb WP |
10061 | runpath_var=LD_RUN_PATH |
10062 | hardcode_runpath_var=yes | |
042acc47 | 10063 | ld_shlibs=yes |
b57f37fb WP |
10064 | fi |
10065 | ;; | |
10066 | ||
10067 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
042acc47 WP |
10068 | no_undefined_flag='${wl}-z,text' |
10069 | archive_cmds_need_lc=no | |
10070 | hardcode_shlibpath_var=no | |
b57f37fb WP |
10071 | runpath_var='LD_RUN_PATH' |
10072 | ||
10073 | if test "$GCC" = yes; then | |
042acc47 WP |
10074 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10075 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
b57f37fb | 10076 | else |
042acc47 WP |
10077 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10078 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
b57f37fb WP |
10079 | fi |
10080 | ;; | |
10081 | ||
10082 | sysv5* | sco3.2v5* | sco5v6*) | |
10083 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10084 | # link with -lc, and that would cause any symbols used from libc to | |
10085 | # always be unresolved, which means just about no library would | |
10086 | # ever link correctly. If we're not using GNU ld we use -z text | |
10087 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10088 | # as -z defs. | |
042acc47 WP |
10089 | no_undefined_flag='${wl}-z,text' |
10090 | allow_undefined_flag='${wl}-z,nodefs' | |
10091 | archive_cmds_need_lc=no | |
10092 | hardcode_shlibpath_var=no | |
10093 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10094 | hardcode_libdir_separator=':' | |
10095 | link_all_deplibs=yes | |
10096 | export_dynamic_flag_spec='${wl}-Bexport' | |
b57f37fb WP |
10097 | runpath_var='LD_RUN_PATH' |
10098 | ||
10099 | if test "$GCC" = yes; then | |
042acc47 WP |
10100 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10101 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
b57f37fb | 10102 | else |
042acc47 WP |
10103 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10104 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
b57f37fb WP |
10105 | fi |
10106 | ;; | |
10107 | ||
10108 | uts4*) | |
042acc47 WP |
10109 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10110 | hardcode_libdir_flag_spec='-L$libdir' | |
10111 | hardcode_shlibpath_var=no | |
b57f37fb WP |
10112 | ;; |
10113 | ||
10114 | *) | |
042acc47 | 10115 | ld_shlibs=no |
b57f37fb WP |
10116 | ;; |
10117 | esac | |
042acc47 WP |
10118 | |
10119 | if test x$host_vendor = xsni; then | |
10120 | case $host in | |
10121 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10122 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10123 | ;; | |
10124 | esac | |
10125 | fi | |
b57f37fb WP |
10126 | fi |
10127 | ||
042acc47 WP |
10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10129 | $as_echo "$ld_shlibs" >&6; } | |
10130 | test "$ld_shlibs" = no && can_build_shared=no | |
10131 | ||
10132 | with_gnu_ld=$with_gnu_ld | |
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
b57f37fb WP |
10147 | |
10148 | # | |
10149 | # Do we need to explicitly link libc? | |
10150 | # | |
042acc47 | 10151 | case "x$archive_cmds_need_lc" in |
b57f37fb WP |
10152 | x|xyes) |
10153 | # Assume -lc should be added | |
042acc47 | 10154 | archive_cmds_need_lc=yes |
b57f37fb WP |
10155 | |
10156 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
042acc47 | 10157 | case $archive_cmds in |
b57f37fb WP |
10158 | *'~'*) |
10159 | # FIXME: we may have to deal with multi-command sequences. | |
10160 | ;; | |
10161 | '$CC '*) | |
10162 | # Test whether the compiler implicitly links with -lc since on some | |
10163 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10164 | # to ld, don't add -lc before -lgcc. | |
042acc47 | 10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
f030cae8 | 10166 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
042acc47 | 10167 | $RM conftest* |
b57f37fb WP |
10168 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
10169 | ||
042acc47 | 10170 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b57f37fb WP |
10171 | (eval $ac_compile) 2>&5 |
10172 | ac_status=$? | |
042acc47 WP |
10173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10174 | test $ac_status = 0; } 2>conftest.err; then | |
b57f37fb WP |
10175 | soname=conftest |
10176 | lib=conftest | |
10177 | libobjs=conftest.$ac_objext | |
10178 | deplibs= | |
042acc47 WP |
10179 | wl=$lt_prog_compiler_wl |
10180 | pic_flag=$lt_prog_compiler_pic | |
b57f37fb WP |
10181 | compiler_flags=-v |
10182 | linker_flags=-v | |
10183 | verstring= | |
10184 | output_objdir=. | |
10185 | libname=conftest | |
042acc47 WP |
10186 | lt_save_allow_undefined_flag=$allow_undefined_flag |
10187 | allow_undefined_flag= | |
10188 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10189 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
b57f37fb | 10190 | ac_status=$? |
042acc47 WP |
10191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10192 | test $ac_status = 0; } | |
b57f37fb | 10193 | then |
042acc47 | 10194 | archive_cmds_need_lc=no |
b57f37fb | 10195 | else |
042acc47 | 10196 | archive_cmds_need_lc=yes |
b57f37fb | 10197 | fi |
042acc47 | 10198 | allow_undefined_flag=$lt_save_allow_undefined_flag |
b57f37fb WP |
10199 | else |
10200 | cat conftest.err 1>&5 | |
10201 | fi | |
042acc47 WP |
10202 | $RM conftest* |
10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
10204 | $as_echo "$archive_cmds_need_lc" >&6; } | |
b57f37fb WP |
10205 | ;; |
10206 | esac | |
10207 | fi | |
10208 | ;; | |
10209 | esac | |
10210 | ||
b57f37fb | 10211 | |
b57f37fb | 10212 | |
b57f37fb | 10213 | |
b57f37fb | 10214 | |
b57f37fb | 10215 | |
b57f37fb | 10216 | |
b57f37fb | 10217 | |
b57f37fb | 10218 | |
b57f37fb | 10219 | |
b57f37fb | 10220 | |
b57f37fb | 10221 | |
b57f37fb | 10222 | |
b57f37fb | 10223 | |
b57f37fb | 10224 | |
b57f37fb | 10225 | |
b57f37fb | 10226 | |
b57f37fb | 10227 | |
b57f37fb | 10228 | |
b57f37fb | 10229 | |
b57f37fb | 10230 | |
b57f37fb | 10231 | |
b57f37fb | 10232 | |
b57f37fb | 10233 | |
b57f37fb | 10234 | |
b57f37fb | 10235 | |
b57f37fb | 10236 | |
b57f37fb | 10237 | |
b57f37fb | 10238 | |
b57f37fb | 10239 | |
b57f37fb | 10240 | |
b57f37fb | 10241 | |
b57f37fb | 10242 | |
b57f37fb | 10243 | |
b57f37fb | 10244 | |
b57f37fb | 10245 | |
b57f37fb | 10246 | |
b57f37fb | 10247 | |
b57f37fb | 10248 | |
b57f37fb | 10249 | |
b57f37fb | 10250 | |
b57f37fb | 10251 | |
56efe974 | 10252 | |
56efe974 | 10253 | |
56efe974 | 10254 | |
b57f37fb | 10255 | |
b57f37fb | 10256 | |
b57f37fb | 10257 | |
b57f37fb WP |
10258 | |
10259 | ||
b57f37fb | 10260 | |
b57f37fb | 10261 | |
b57f37fb | 10262 | |
b57f37fb | 10263 | |
b57f37fb | 10264 | |
b57f37fb | 10265 | |
b57f37fb | 10266 | |
b57f37fb | 10267 | |
b57f37fb | 10268 | |
b57f37fb | 10269 | |
b57f37fb | 10270 | |
b57f37fb | 10271 | |
b57f37fb | 10272 | |
b57f37fb | 10273 | |
b57f37fb | 10274 | |
b57f37fb | 10275 | |
b57f37fb | 10276 | |
b57f37fb | 10277 | |
b57f37fb | 10278 | |
b57f37fb | 10279 | |
b57f37fb | 10280 | |
b57f37fb | 10281 | |
b57f37fb | 10282 | |
b57f37fb | 10283 | |
b57f37fb | 10284 | |
b57f37fb | 10285 | |
b57f37fb | 10286 | |
b57f37fb | 10287 | |
b57f37fb | 10288 | |
b57f37fb | 10289 | |
b57f37fb | 10290 | |
b57f37fb | 10291 | |
b57f37fb | 10292 | |
b57f37fb | 10293 | |
b57f37fb | 10294 | |
b57f37fb | 10295 | |
b57f37fb | 10296 | |
b57f37fb | 10297 | |
b57f37fb | 10298 | |
b57f37fb | 10299 | |
b57f37fb | 10300 | |
b57f37fb | 10301 | |
b57f37fb | 10302 | |
b57f37fb | 10303 | |
b57f37fb | 10304 | |
b57f37fb | 10305 | |
b57f37fb | 10306 | |
b57f37fb | 10307 | |
b57f37fb | 10308 | |
b57f37fb | 10309 | |
b57f37fb | 10310 | |
b57f37fb | 10311 | |
b57f37fb | 10312 | |
b57f37fb | 10313 | |
b57f37fb | 10314 | |
b57f37fb | 10315 | |
b57f37fb | 10316 | |
b57f37fb | 10317 | |
b57f37fb | 10318 | |
b57f37fb | 10319 | |
b57f37fb | 10320 | |
b57f37fb | 10321 | |
b57f37fb | 10322 | |
56efe974 | 10323 | |
b57f37fb | 10324 | |
b57f37fb | 10325 | |
b57f37fb | 10326 | |
b57f37fb | 10327 | |
b57f37fb | 10328 | |
b57f37fb | 10329 | |
b57f37fb | 10330 | |
b57f37fb | 10331 | |
b57f37fb | 10332 | |
b57f37fb | 10333 | |
b57f37fb | 10334 | |
b57f37fb | 10335 | |
b57f37fb | 10336 | |
b57f37fb | 10337 | |
b57f37fb | 10338 | |
b57f37fb | 10339 | |
b57f37fb | 10340 | |
b57f37fb | 10341 | |
b57f37fb | 10342 | |
b57f37fb | 10343 | |
b57f37fb | 10344 | |
b57f37fb | 10345 | |
b57f37fb | 10346 | |
b57f37fb | 10347 | |
b57f37fb | 10348 | |
b57f37fb | 10349 | |
b57f37fb | 10350 | |
b57f37fb | 10351 | |
b57f37fb | 10352 | |
b57f37fb | 10353 | |
b57f37fb | 10354 | |
b57f37fb | 10355 | |
b57f37fb | 10356 | |
b57f37fb WP |
10357 | |
10358 | ||
042acc47 WP |
10359 | |
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10368 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10369 | ||
10370 | if test "$GCC" = yes; then | |
10371 | case $host_os in | |
10372 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10373 | *) lt_awk_arg="/^libraries:/" ;; | |
10374 | esac | |
10375 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10376 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
10377 | # if the path contains ";" then we assume it to be the separator | |
10378 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10379 | # assumed that no part of a normal pathname contains ";" but that should | |
10380 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10381 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10382 | else | |
10383 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10384 | fi | |
10385 | # Ok, now we have the path, separated by spaces, we can step through it | |
10386 | # and add multilib dir if necessary. | |
10387 | lt_tmp_lt_search_path_spec= | |
10388 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10389 | for lt_sys_path in $lt_search_path_spec; do | |
10390 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10391 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10392 | else | |
10393 | test -d "$lt_sys_path" && \ | |
10394 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10395 | fi | |
10396 | done | |
10397 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
10398 | BEGIN {RS=" "; FS="/|\n";} { | |
10399 | lt_foo=""; | |
10400 | lt_count=0; | |
10401 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10402 | if ($lt_i != "" && $lt_i != ".") { | |
10403 | if ($lt_i == "..") { | |
10404 | lt_count++; | |
10405 | } else { | |
10406 | if (lt_count == 0) { | |
10407 | lt_foo="/" $lt_i lt_foo; | |
10408 | } else { | |
10409 | lt_count--; | |
10410 | } | |
10411 | } | |
10412 | } | |
10413 | } | |
10414 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10415 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10416 | }'` | |
10417 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
10418 | else | |
10419 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10420 | fi | |
10421 | library_names_spec= | |
10422 | libname_spec='lib$name' | |
10423 | soname_spec= | |
10424 | shrext_cmds=".so" | |
10425 | postinstall_cmds= | |
10426 | postuninstall_cmds= | |
10427 | finish_cmds= | |
10428 | finish_eval= | |
10429 | shlibpath_var= | |
10430 | shlibpath_overrides_runpath=unknown | |
10431 | version_type=none | |
10432 | dynamic_linker="$host_os ld.so" | |
10433 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10434 | need_lib_prefix=unknown | |
10435 | hardcode_into_libs=no | |
10436 | ||
10437 | # when you set need_version to no, make sure it does not cause -set_version | |
10438 | # flags to be left without arguments | |
10439 | need_version=unknown | |
10440 | ||
10441 | case $host_os in | |
10442 | aix3*) | |
10443 | version_type=linux | |
10444 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10445 | shlibpath_var=LIBPATH | |
10446 | ||
10447 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10448 | soname_spec='${libname}${release}${shared_ext}$major' | |
10449 | ;; | |
10450 | ||
10451 | aix[4-9]*) | |
10452 | version_type=linux | |
10453 | need_lib_prefix=no | |
10454 | need_version=no | |
10455 | hardcode_into_libs=yes | |
10456 | if test "$host_cpu" = ia64; then | |
10457 | # AIX 5 supports IA64 | |
10458 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10459 | shlibpath_var=LD_LIBRARY_PATH | |
10460 | else | |
10461 | # With GCC up to 2.95.x, collect2 would create an import file | |
10462 | # for dependence libraries. The import file would start with | |
10463 | # the line `#! .'. This would cause the generated library to | |
10464 | # depend on `.', always an invalid library. This was fixed in | |
10465 | # development snapshots of GCC prior to 3.0. | |
10466 | case $host_os in | |
10467 | aix4 | aix4.[01] | aix4.[01].*) | |
10468 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10469 | echo ' yes ' | |
10470 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10471 | : | |
10472 | else | |
10473 | can_build_shared=no | |
10474 | fi | |
10475 | ;; | |
10476 | esac | |
10477 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10478 | # soname into executable. Probably we can add versioning support to | |
10479 | # collect2, so additional links can be useful in future. | |
10480 | if test "$aix_use_runtimelinking" = yes; then | |
10481 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10482 | # instead of lib<name>.a to let people know that these are not | |
10483 | # typical AIX shared libraries. | |
10484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10485 | else | |
10486 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10487 | # and later when we are not doing run time linking. | |
10488 | library_names_spec='${libname}${release}.a $libname.a' | |
10489 | soname_spec='${libname}${release}${shared_ext}$major' | |
10490 | fi | |
10491 | shlibpath_var=LIBPATH | |
10492 | fi | |
10493 | ;; | |
10494 | ||
10495 | amigaos*) | |
10496 | case $host_cpu in | |
10497 | powerpc) | |
10498 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10499 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10501 | ;; | |
10502 | m68k) | |
10503 | library_names_spec='$libname.ixlibrary $libname.a' | |
10504 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10505 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
10506 | ;; | |
10507 | esac | |
10508 | ;; | |
10509 | ||
10510 | beos*) | |
10511 | library_names_spec='${libname}${shared_ext}' | |
10512 | dynamic_linker="$host_os ld.so" | |
10513 | shlibpath_var=LIBRARY_PATH | |
10514 | ;; | |
10515 | ||
10516 | bsdi[45]*) | |
10517 | version_type=linux | |
10518 | need_version=no | |
10519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10520 | soname_spec='${libname}${release}${shared_ext}$major' | |
10521 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10522 | shlibpath_var=LD_LIBRARY_PATH | |
10523 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10524 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10525 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10526 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10527 | # libtool to hard-code these into programs | |
10528 | ;; | |
10529 | ||
10530 | cygwin* | mingw* | pw32* | cegcc*) | |
10531 | version_type=windows | |
10532 | shrext_cmds=".dll" | |
10533 | need_version=no | |
10534 | need_lib_prefix=no | |
10535 | ||
10536 | case $GCC,$host_os in | |
10537 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10538 | library_names_spec='$libname.dll.a' | |
10539 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10540 | postinstall_cmds='base_file=`basename \${file}`~ | |
10541 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10542 | dldir=$destdir/`dirname \$dlpath`~ | |
10543 | test -d \$dldir || mkdir -p \$dldir~ | |
10544 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10545 | chmod a+x \$dldir/$dlname~ | |
10546 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10547 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10548 | fi' | |
10549 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10550 | dlpath=$dir/\$dldll~ | |
10551 | $RM \$dlpath' | |
10552 | shlibpath_overrides_runpath=yes | |
10553 | ||
10554 | case $host_os in | |
10555 | cygwin*) | |
10556 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10557 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10558 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10559 | ;; | |
10560 | mingw* | cegcc*) | |
10561 | # MinGW DLLs use traditional 'lib' prefix | |
10562 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10563 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10564 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10565 | # It is most probably a Windows format PATH printed by | |
10566 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10567 | # path with ; separators, and with drive letters. We can handle the | |
10568 | # drive letters (cygwin fileutils understands them), so leave them, | |
10569 | # especially as we might pass files found there to a mingw objdump, | |
10570 | # which wouldn't understand a cygwinified path. Ahh. | |
10571 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10572 | else | |
10573 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10574 | fi | |
10575 | ;; | |
10576 | pw32*) | |
10577 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10578 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10579 | ;; | |
10580 | esac | |
10581 | ;; | |
10582 | ||
10583 | *) | |
10584 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10585 | ;; | |
10586 | esac | |
10587 | dynamic_linker='Win32 ld.exe' | |
10588 | # FIXME: first we should search . and the directory the executable is in | |
10589 | shlibpath_var=PATH | |
10590 | ;; | |
10591 | ||
10592 | darwin* | rhapsody*) | |
10593 | dynamic_linker="$host_os dyld" | |
10594 | version_type=darwin | |
10595 | need_lib_prefix=no | |
10596 | need_version=no | |
10597 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10598 | soname_spec='${libname}${release}${major}$shared_ext' | |
10599 | shlibpath_overrides_runpath=yes | |
10600 | shlibpath_var=DYLD_LIBRARY_PATH | |
10601 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10602 | ||
10603 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10604 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10605 | ;; | |
10606 | ||
10607 | dgux*) | |
10608 | version_type=linux | |
10609 | need_lib_prefix=no | |
10610 | need_version=no | |
10611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10612 | soname_spec='${libname}${release}${shared_ext}$major' | |
10613 | shlibpath_var=LD_LIBRARY_PATH | |
10614 | ;; | |
10615 | ||
10616 | freebsd1*) | |
10617 | dynamic_linker=no | |
10618 | ;; | |
10619 | ||
10620 | freebsd* | dragonfly*) | |
10621 | # DragonFly does not have aout. When/if they implement a new | |
10622 | # versioning mechanism, adjust this. | |
10623 | if test -x /usr/bin/objformat; then | |
10624 | objformat=`/usr/bin/objformat` | |
10625 | else | |
10626 | case $host_os in | |
10627 | freebsd[123]*) objformat=aout ;; | |
10628 | *) objformat=elf ;; | |
10629 | esac | |
b57f37fb | 10630 | fi |
1800d973 WP |
10631 | # Handle Gentoo/FreeBSD as it was Linux |
10632 | case $host_vendor in | |
10633 | gentoo) | |
10634 | version_type=linux ;; | |
10635 | *) | |
10636 | version_type=freebsd-$objformat ;; | |
10637 | esac | |
10638 | ||
042acc47 WP |
10639 | case $version_type in |
10640 | freebsd-elf*) | |
10641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10642 | need_version=no | |
10643 | need_lib_prefix=no | |
10644 | ;; | |
10645 | freebsd-*) | |
10646 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10647 | need_version=yes | |
10648 | ;; | |
1800d973 WP |
10649 | linux) |
10650 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10651 | soname_spec='${libname}${release}${shared_ext}$major' | |
10652 | need_lib_prefix=no | |
10653 | need_version=no | |
10654 | ;; | |
042acc47 WP |
10655 | esac |
10656 | shlibpath_var=LD_LIBRARY_PATH | |
10657 | case $host_os in | |
10658 | freebsd2*) | |
10659 | shlibpath_overrides_runpath=yes | |
10660 | ;; | |
10661 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10662 | shlibpath_overrides_runpath=yes | |
10663 | hardcode_into_libs=yes | |
10664 | ;; | |
10665 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10666 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10667 | shlibpath_overrides_runpath=no | |
10668 | hardcode_into_libs=yes | |
10669 | ;; | |
10670 | *) # from 4.6 on, and DragonFly | |
10671 | shlibpath_overrides_runpath=yes | |
10672 | hardcode_into_libs=yes | |
10673 | ;; | |
10674 | esac | |
10675 | ;; | |
b57f37fb | 10676 | |
042acc47 WP |
10677 | gnu*) |
10678 | version_type=linux | |
10679 | need_lib_prefix=no | |
10680 | need_version=no | |
10681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10682 | soname_spec='${libname}${release}${shared_ext}$major' | |
10683 | shlibpath_var=LD_LIBRARY_PATH | |
10684 | hardcode_into_libs=yes | |
10685 | ;; | |
b57f37fb | 10686 | |
042acc47 WP |
10687 | hpux9* | hpux10* | hpux11*) |
10688 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10689 | # link against other versions. | |
10690 | version_type=sunos | |
10691 | need_lib_prefix=no | |
10692 | need_version=no | |
10693 | case $host_cpu in | |
10694 | ia64*) | |
10695 | shrext_cmds='.so' | |
10696 | hardcode_into_libs=yes | |
10697 | dynamic_linker="$host_os dld.so" | |
10698 | shlibpath_var=LD_LIBRARY_PATH | |
10699 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10701 | soname_spec='${libname}${release}${shared_ext}$major' | |
10702 | if test "X$HPUX_IA64_MODE" = X32; then | |
10703 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10704 | else | |
10705 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10706 | fi | |
10707 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10708 | ;; | |
10709 | hppa*64*) | |
10710 | shrext_cmds='.sl' | |
10711 | hardcode_into_libs=yes | |
10712 | dynamic_linker="$host_os dld.sl" | |
10713 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10714 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10716 | soname_spec='${libname}${release}${shared_ext}$major' | |
10717 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10718 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10719 | ;; | |
10720 | *) | |
10721 | shrext_cmds='.sl' | |
10722 | dynamic_linker="$host_os dld.sl" | |
10723 | shlibpath_var=SHLIB_PATH | |
10724 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10726 | soname_spec='${libname}${release}${shared_ext}$major' | |
10727 | ;; | |
10728 | esac | |
10729 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10730 | postinstall_cmds='chmod 555 $lib' | |
10731 | ;; | |
b57f37fb | 10732 | |
042acc47 WP |
10733 | interix[3-9]*) |
10734 | version_type=linux | |
10735 | need_lib_prefix=no | |
10736 | need_version=no | |
10737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10738 | soname_spec='${libname}${release}${shared_ext}$major' | |
10739 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10740 | shlibpath_var=LD_LIBRARY_PATH | |
10741 | shlibpath_overrides_runpath=no | |
10742 | hardcode_into_libs=yes | |
10743 | ;; | |
b57f37fb | 10744 | |
042acc47 WP |
10745 | irix5* | irix6* | nonstopux*) |
10746 | case $host_os in | |
10747 | nonstopux*) version_type=nonstopux ;; | |
10748 | *) | |
10749 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10750 | version_type=linux | |
b57f37fb | 10751 | else |
042acc47 WP |
10752 | version_type=irix |
10753 | fi ;; | |
10754 | esac | |
10755 | need_lib_prefix=no | |
10756 | need_version=no | |
10757 | soname_spec='${libname}${release}${shared_ext}$major' | |
10758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10759 | case $host_os in | |
10760 | irix5* | nonstopux*) | |
10761 | libsuff= shlibsuff= | |
10762 | ;; | |
10763 | *) | |
10764 | case $LD in # libtool.m4 will add one of these switches to LD | |
10765 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10766 | libsuff= shlibsuff= libmagic=32-bit;; | |
10767 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10768 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10769 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10770 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10771 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10772 | esac | |
10773 | ;; | |
10774 | esac | |
10775 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10776 | shlibpath_overrides_runpath=no | |
10777 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10778 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10779 | hardcode_into_libs=yes | |
10780 | ;; | |
b57f37fb | 10781 | |
042acc47 WP |
10782 | # No shared lib support for Linux oldld, aout, or coff. |
10783 | linux*oldld* | linux*aout* | linux*coff*) | |
10784 | dynamic_linker=no | |
10785 | ;; | |
b57f37fb | 10786 | |
042acc47 WP |
10787 | # This must be Linux ELF. |
10788 | linux* | k*bsd*-gnu) | |
10789 | version_type=linux | |
10790 | need_lib_prefix=no | |
10791 | need_version=no | |
10792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10793 | soname_spec='${libname}${release}${shared_ext}$major' | |
10794 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10795 | shlibpath_var=LD_LIBRARY_PATH | |
10796 | shlibpath_overrides_runpath=no | |
10797 | # Some binutils ld are patched to set DT_RUNPATH | |
10798 | save_LDFLAGS=$LDFLAGS | |
10799 | save_libdir=$libdir | |
10800 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10801 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10803 | /* end confdefs.h. */ | |
b57f37fb | 10804 | |
042acc47 WP |
10805 | int |
10806 | main () | |
10807 | { | |
b57f37fb | 10808 | |
042acc47 WP |
10809 | ; |
10810 | return 0; | |
10811 | } | |
10812 | _ACEOF | |
10813 | if ac_fn_c_try_link "$LINENO"; then : | |
10814 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10815 | shlibpath_overrides_runpath=yes | |
10816 | fi | |
10817 | fi | |
10818 | rm -f core conftest.err conftest.$ac_objext \ | |
10819 | conftest$ac_exeext conftest.$ac_ext | |
10820 | LDFLAGS=$save_LDFLAGS | |
10821 | libdir=$save_libdir | |
b57f37fb | 10822 | |
042acc47 WP |
10823 | # This implies no fast_install, which is unacceptable. |
10824 | # Some rework will be needed to allow for fast_install | |
10825 | # before this can be enabled. | |
10826 | hardcode_into_libs=yes | |
b57f37fb | 10827 | |
042acc47 WP |
10828 | # Append ld.so.conf contents to the search path |
10829 | if test -f /etc/ld.so.conf; then | |
10830 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
10831 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
b57f37fb | 10832 | fi |
b57f37fb | 10833 | |
042acc47 WP |
10834 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
10835 | # powerpc, because MkLinux only supported shared libraries with the | |
10836 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10837 | # most powerpc-linux boxes support dynamic linking these days and | |
10838 | # people can always --disable-shared, the test was removed, and we | |
10839 | # assume the GNU/Linux dynamic linker is in use. | |
10840 | dynamic_linker='GNU/Linux ld.so' | |
10841 | ;; | |
10842 | ||
042acc47 WP |
10843 | netbsd*) |
10844 | version_type=sunos | |
10845 | need_lib_prefix=no | |
10846 | need_version=no | |
10847 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10849 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10850 | dynamic_linker='NetBSD (a.out) ld.so' | |
10851 | else | |
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 | dynamic_linker='NetBSD ld.elf_so' | |
10855 | fi | |
10856 | shlibpath_var=LD_LIBRARY_PATH | |
10857 | shlibpath_overrides_runpath=yes | |
10858 | hardcode_into_libs=yes | |
10859 | ;; | |
b57f37fb | 10860 | |
042acc47 WP |
10861 | newsos6) |
10862 | version_type=linux | |
10863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10864 | shlibpath_var=LD_LIBRARY_PATH | |
10865 | shlibpath_overrides_runpath=yes | |
10866 | ;; | |
b57f37fb | 10867 | |
042acc47 WP |
10868 | *nto* | *qnx*) |
10869 | version_type=qnx | |
10870 | need_lib_prefix=no | |
10871 | need_version=no | |
10872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10873 | soname_spec='${libname}${release}${shared_ext}$major' | |
10874 | shlibpath_var=LD_LIBRARY_PATH | |
10875 | shlibpath_overrides_runpath=no | |
10876 | hardcode_into_libs=yes | |
10877 | dynamic_linker='ldqnx.so' | |
10878 | ;; | |
b57f37fb | 10879 | |
042acc47 WP |
10880 | openbsd*) |
10881 | version_type=sunos | |
10882 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10883 | need_lib_prefix=no | |
10884 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10885 | case $host_os in | |
10886 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10887 | *) need_version=no ;; | |
10888 | esac | |
10889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10890 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10891 | shlibpath_var=LD_LIBRARY_PATH | |
10892 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10893 | case $host_os in | |
10894 | openbsd2.[89] | openbsd2.[89].*) | |
10895 | shlibpath_overrides_runpath=no | |
10896 | ;; | |
10897 | *) | |
10898 | shlibpath_overrides_runpath=yes | |
10899 | ;; | |
10900 | esac | |
10901 | else | |
10902 | shlibpath_overrides_runpath=yes | |
10903 | fi | |
10904 | ;; | |
b57f37fb | 10905 | |
042acc47 WP |
10906 | os2*) |
10907 | libname_spec='$name' | |
10908 | shrext_cmds=".dll" | |
10909 | need_lib_prefix=no | |
10910 | library_names_spec='$libname${shared_ext} $libname.a' | |
10911 | dynamic_linker='OS/2 ld.exe' | |
10912 | shlibpath_var=LIBPATH | |
10913 | ;; | |
b57f37fb | 10914 | |
042acc47 WP |
10915 | osf3* | osf4* | osf5*) |
10916 | version_type=osf | |
10917 | need_lib_prefix=no | |
10918 | need_version=no | |
10919 | soname_spec='${libname}${release}${shared_ext}$major' | |
10920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10921 | shlibpath_var=LD_LIBRARY_PATH | |
10922 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10923 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10924 | ;; | |
b57f37fb | 10925 | |
042acc47 WP |
10926 | rdos*) |
10927 | dynamic_linker=no | |
10928 | ;; | |
b57f37fb | 10929 | |
042acc47 WP |
10930 | solaris*) |
10931 | version_type=linux | |
10932 | need_lib_prefix=no | |
10933 | need_version=no | |
10934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10935 | soname_spec='${libname}${release}${shared_ext}$major' | |
10936 | shlibpath_var=LD_LIBRARY_PATH | |
10937 | shlibpath_overrides_runpath=yes | |
10938 | hardcode_into_libs=yes | |
10939 | # ldd complains unless libraries are executable | |
10940 | postinstall_cmds='chmod +x $lib' | |
10941 | ;; | |
b57f37fb | 10942 | |
042acc47 WP |
10943 | sunos4*) |
10944 | version_type=sunos | |
10945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10946 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10947 | shlibpath_var=LD_LIBRARY_PATH | |
10948 | shlibpath_overrides_runpath=yes | |
10949 | if test "$with_gnu_ld" = yes; then | |
10950 | need_lib_prefix=no | |
10951 | fi | |
10952 | need_version=yes | |
10953 | ;; | |
b57f37fb | 10954 | |
042acc47 WP |
10955 | sysv4 | sysv4.3*) |
10956 | version_type=linux | |
10957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10958 | soname_spec='${libname}${release}${shared_ext}$major' | |
10959 | shlibpath_var=LD_LIBRARY_PATH | |
10960 | case $host_vendor in | |
10961 | sni) | |
10962 | shlibpath_overrides_runpath=no | |
10963 | need_lib_prefix=no | |
10964 | runpath_var=LD_RUN_PATH | |
10965 | ;; | |
10966 | siemens) | |
10967 | need_lib_prefix=no | |
10968 | ;; | |
10969 | motorola) | |
10970 | need_lib_prefix=no | |
10971 | need_version=no | |
10972 | shlibpath_overrides_runpath=no | |
10973 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10974 | ;; | |
10975 | esac | |
10976 | ;; | |
b57f37fb | 10977 | |
042acc47 WP |
10978 | sysv4*MP*) |
10979 | if test -d /usr/nec ;then | |
10980 | version_type=linux | |
10981 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10982 | soname_spec='$libname${shared_ext}.$major' | |
10983 | shlibpath_var=LD_LIBRARY_PATH | |
10984 | fi | |
10985 | ;; | |
b57f37fb | 10986 | |
042acc47 WP |
10987 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
10988 | version_type=freebsd-elf | |
10989 | need_lib_prefix=no | |
10990 | need_version=no | |
10991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10992 | soname_spec='${libname}${release}${shared_ext}$major' | |
10993 | shlibpath_var=LD_LIBRARY_PATH | |
10994 | shlibpath_overrides_runpath=yes | |
10995 | hardcode_into_libs=yes | |
10996 | if test "$with_gnu_ld" = yes; then | |
10997 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10998 | else | |
10999 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11000 | case $host_os in | |
11001 | sco3.2v5*) | |
11002 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11003 | ;; | |
11004 | esac | |
11005 | fi | |
11006 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11007 | ;; | |
b57f37fb | 11008 | |
042acc47 WP |
11009 | tpf*) |
11010 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11011 | version_type=linux | |
11012 | need_lib_prefix=no | |
11013 | need_version=no | |
11014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11015 | shlibpath_var=LD_LIBRARY_PATH | |
11016 | shlibpath_overrides_runpath=no | |
11017 | hardcode_into_libs=yes | |
11018 | ;; | |
b57f37fb | 11019 | |
042acc47 WP |
11020 | uts4*) |
11021 | version_type=linux | |
11022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11023 | soname_spec='${libname}${release}${shared_ext}$major' | |
11024 | shlibpath_var=LD_LIBRARY_PATH | |
11025 | ;; | |
b57f37fb | 11026 | |
042acc47 WP |
11027 | *) |
11028 | dynamic_linker=no | |
11029 | ;; | |
11030 | esac | |
11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11032 | $as_echo "$dynamic_linker" >&6; } | |
11033 | test "$dynamic_linker" = no && can_build_shared=no | |
b57f37fb | 11034 | |
042acc47 WP |
11035 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11036 | if test "$GCC" = yes; then | |
11037 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11038 | fi | |
b57f37fb | 11039 | |
042acc47 WP |
11040 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11041 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11042 | fi | |
11043 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11044 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11045 | fi | |
b57f37fb | 11046 | |
b57f37fb | 11047 | |
b57f37fb | 11048 | |
b57f37fb | 11049 | |
b57f37fb | 11050 | |
b57f37fb | 11051 | |
b57f37fb | 11052 | |
b57f37fb | 11053 | |
b57f37fb | 11054 | |
b57f37fb | 11055 | |
b57f37fb | 11056 | |
b57f37fb | 11057 | |
b57f37fb | 11058 | |
b57f37fb | 11059 | |
b57f37fb | 11060 | |
b57f37fb | 11061 | |
b57f37fb | 11062 | |
b57f37fb | 11063 | |
b57f37fb | 11064 | |
b57f37fb | 11065 | |
b57f37fb | 11066 | |
b57f37fb | 11067 | |
b57f37fb | 11068 | |
b57f37fb | 11069 | |
b57f37fb | 11070 | |
b57f37fb | 11071 | |
b57f37fb | 11072 | |
b57f37fb | 11073 | |
b57f37fb | 11074 | |
b57f37fb | 11075 | |
b57f37fb | 11076 | |
b57f37fb | 11077 | |
b57f37fb | 11078 | |
b57f37fb | 11079 | |
b57f37fb | 11080 | |
b57f37fb | 11081 | |
b57f37fb | 11082 | |
b57f37fb | 11083 | |
b57f37fb | 11084 | |
b57f37fb | 11085 | |
b57f37fb | 11086 | |
b57f37fb | 11087 | |
b57f37fb | 11088 | |
b57f37fb | 11089 | |
b57f37fb | 11090 | |
56efe974 | 11091 | |
b57f37fb | 11092 | |
b57f37fb | 11093 | |
b57f37fb | 11094 | |
b57f37fb | 11095 | |
b57f37fb | 11096 | |
b57f37fb | 11097 | |
b57f37fb | 11098 | |
b57f37fb | 11099 | |
b57f37fb | 11100 | |
b57f37fb | 11101 | |
b57f37fb | 11102 | |
b57f37fb | 11103 | |
b57f37fb | 11104 | |
b57f37fb | 11105 | |
b57f37fb | 11106 | |
b57f37fb | 11107 | |
b57f37fb | 11108 | |
b57f37fb | 11109 | |
b57f37fb | 11110 | |
b57f37fb | 11111 | |
b57f37fb | 11112 | |
b57f37fb | 11113 | |
b57f37fb | 11114 | |
b57f37fb | 11115 | |
b57f37fb | 11116 | |
b57f37fb | 11117 | |
b57f37fb | 11118 | |
b57f37fb | 11119 | |
b57f37fb | 11120 | |
b57f37fb | 11121 | |
b57f37fb | 11122 | |
b57f37fb | 11123 | |
b57f37fb | 11124 | |
b57f37fb WP |
11125 | |
11126 | ||
b57f37fb WP |
11127 | |
11128 | ||
b57f37fb | 11129 | |
b57f37fb | 11130 | |
b57f37fb | 11131 | |
b57f37fb | 11132 | |
042acc47 WP |
11133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11134 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11135 | hardcode_action= | |
11136 | if test -n "$hardcode_libdir_flag_spec" || | |
11137 | test -n "$runpath_var" || | |
11138 | test "X$hardcode_automatic" = "Xyes" ; then | |
b57f37fb | 11139 | |
042acc47 WP |
11140 | # We can hardcode non-existent directories. |
11141 | if test "$hardcode_direct" != no && | |
11142 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11143 | # have to relink, otherwise we might link with an installed library | |
11144 | # when we should be linking with a yet-to-be-installed one | |
11145 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11146 | test "$hardcode_minus_L" != no; then | |
11147 | # Linking always hardcodes the temporary library directory. | |
11148 | hardcode_action=relink | |
b57f37fb | 11149 | else |
042acc47 WP |
11150 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
11151 | hardcode_action=immediate | |
b57f37fb | 11152 | fi |
042acc47 WP |
11153 | else |
11154 | # We cannot hardcode anything, or else we can only hardcode existing | |
11155 | # directories. | |
11156 | hardcode_action=unsupported | |
11157 | fi | |
11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11159 | $as_echo "$hardcode_action" >&6; } | |
11160 | ||
11161 | if test "$hardcode_action" = relink || | |
11162 | test "$inherit_rpath" = yes; then | |
11163 | # Fast installation is not supported | |
11164 | enable_fast_install=no | |
11165 | elif test "$shlibpath_overrides_runpath" = yes || | |
11166 | test "$enable_shared" = no; then | |
11167 | # Fast installation is not necessary | |
11168 | enable_fast_install=needless | |
b57f37fb WP |
11169 | fi |
11170 | ||
11171 | ||
11172 | ||
b57f37fb | 11173 | |
b57f37fb | 11174 | |
b57f37fb | 11175 | |
042acc47 WP |
11176 | if test "x$enable_dlopen" != xyes; then |
11177 | enable_dlopen=unknown | |
11178 | enable_dlopen_self=unknown | |
11179 | enable_dlopen_self_static=unknown | |
11180 | else | |
11181 | lt_cv_dlopen=no | |
11182 | lt_cv_dlopen_libs= | |
b57f37fb | 11183 | |
042acc47 WP |
11184 | case $host_os in |
11185 | beos*) | |
11186 | lt_cv_dlopen="load_add_on" | |
11187 | lt_cv_dlopen_libs= | |
11188 | lt_cv_dlopen_self=yes | |
11189 | ;; | |
b57f37fb | 11190 | |
042acc47 WP |
11191 | mingw* | pw32* | cegcc*) |
11192 | lt_cv_dlopen="LoadLibrary" | |
11193 | lt_cv_dlopen_libs= | |
11194 | ;; | |
b57f37fb | 11195 | |
042acc47 WP |
11196 | cygwin*) |
11197 | lt_cv_dlopen="dlopen" | |
11198 | lt_cv_dlopen_libs= | |
11199 | ;; | |
b57f37fb | 11200 | |
042acc47 WP |
11201 | darwin*) |
11202 | # if libdl is installed we need to link against it | |
11203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11204 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12e39525 | 11205 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
042acc47 WP |
11206 | $as_echo_n "(cached) " >&6 |
11207 | else | |
11208 | ac_check_lib_save_LIBS=$LIBS | |
11209 | LIBS="-ldl $LIBS" | |
11210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11211 | /* end confdefs.h. */ | |
b57f37fb | 11212 | |
042acc47 WP |
11213 | /* Override any GCC internal prototype to avoid an error. |
11214 | Use char because int might match the return type of a GCC | |
11215 | builtin and then its argument prototype would still apply. */ | |
11216 | #ifdef __cplusplus | |
11217 | extern "C" | |
11218 | #endif | |
11219 | char dlopen (); | |
11220 | int | |
11221 | main () | |
11222 | { | |
11223 | return dlopen (); | |
11224 | ; | |
11225 | return 0; | |
11226 | } | |
11227 | _ACEOF | |
11228 | if ac_fn_c_try_link "$LINENO"; then : | |
11229 | ac_cv_lib_dl_dlopen=yes | |
11230 | else | |
11231 | ac_cv_lib_dl_dlopen=no | |
11232 | fi | |
11233 | rm -f core conftest.err conftest.$ac_objext \ | |
11234 | conftest$ac_exeext conftest.$ac_ext | |
11235 | LIBS=$ac_check_lib_save_LIBS | |
11236 | fi | |
11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11238 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12e39525 | 11239 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
042acc47 WP |
11240 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11241 | else | |
b57f37fb | 11242 | |
042acc47 WP |
11243 | lt_cv_dlopen="dyld" |
11244 | lt_cv_dlopen_libs= | |
11245 | lt_cv_dlopen_self=yes | |
b57f37fb | 11246 | |
042acc47 | 11247 | fi |
b57f37fb | 11248 | |
042acc47 | 11249 | ;; |
b57f37fb | 11250 | |
042acc47 WP |
11251 | *) |
11252 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12e39525 | 11253 | if test "x$ac_cv_func_shl_load" = xyes; then : |
042acc47 WP |
11254 | lt_cv_dlopen="shl_load" |
11255 | else | |
11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11257 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12e39525 | 11258 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
042acc47 WP |
11259 | $as_echo_n "(cached) " >&6 |
11260 | else | |
11261 | ac_check_lib_save_LIBS=$LIBS | |
11262 | LIBS="-ldld $LIBS" | |
11263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11264 | /* end confdefs.h. */ | |
b57f37fb | 11265 | |
042acc47 WP |
11266 | /* Override any GCC internal prototype to avoid an error. |
11267 | Use char because int might match the return type of a GCC | |
11268 | builtin and then its argument prototype would still apply. */ | |
11269 | #ifdef __cplusplus | |
11270 | extern "C" | |
11271 | #endif | |
11272 | char shl_load (); | |
11273 | int | |
11274 | main () | |
11275 | { | |
11276 | return shl_load (); | |
11277 | ; | |
11278 | return 0; | |
11279 | } | |
11280 | _ACEOF | |
11281 | if ac_fn_c_try_link "$LINENO"; then : | |
11282 | ac_cv_lib_dld_shl_load=yes | |
11283 | else | |
11284 | ac_cv_lib_dld_shl_load=no | |
11285 | fi | |
11286 | rm -f core conftest.err conftest.$ac_objext \ | |
11287 | conftest$ac_exeext conftest.$ac_ext | |
11288 | LIBS=$ac_check_lib_save_LIBS | |
11289 | fi | |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11291 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12e39525 | 11292 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
042acc47 WP |
11293 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11294 | else | |
11295 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12e39525 | 11296 | if test "x$ac_cv_func_dlopen" = xyes; then : |
042acc47 WP |
11297 | lt_cv_dlopen="dlopen" |
11298 | else | |
11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11300 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12e39525 | 11301 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
042acc47 WP |
11302 | $as_echo_n "(cached) " >&6 |
11303 | else | |
11304 | ac_check_lib_save_LIBS=$LIBS | |
11305 | LIBS="-ldl $LIBS" | |
11306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11307 | /* end confdefs.h. */ | |
b57f37fb | 11308 | |
042acc47 WP |
11309 | /* Override any GCC internal prototype to avoid an error. |
11310 | Use char because int might match the return type of a GCC | |
11311 | builtin and then its argument prototype would still apply. */ | |
11312 | #ifdef __cplusplus | |
11313 | extern "C" | |
11314 | #endif | |
11315 | char dlopen (); | |
11316 | int | |
11317 | main () | |
11318 | { | |
11319 | return dlopen (); | |
11320 | ; | |
11321 | return 0; | |
11322 | } | |
11323 | _ACEOF | |
11324 | if ac_fn_c_try_link "$LINENO"; then : | |
11325 | ac_cv_lib_dl_dlopen=yes | |
11326 | else | |
11327 | ac_cv_lib_dl_dlopen=no | |
11328 | fi | |
11329 | rm -f core conftest.err conftest.$ac_objext \ | |
11330 | conftest$ac_exeext conftest.$ac_ext | |
11331 | LIBS=$ac_check_lib_save_LIBS | |
11332 | fi | |
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11334 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12e39525 | 11335 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
042acc47 WP |
11336 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11337 | else | |
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11339 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12e39525 | 11340 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
042acc47 WP |
11341 | $as_echo_n "(cached) " >&6 |
11342 | else | |
11343 | ac_check_lib_save_LIBS=$LIBS | |
11344 | LIBS="-lsvld $LIBS" | |
11345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11346 | /* end confdefs.h. */ | |
b57f37fb | 11347 | |
042acc47 WP |
11348 | /* Override any GCC internal prototype to avoid an error. |
11349 | Use char because int might match the return type of a GCC | |
11350 | builtin and then its argument prototype would still apply. */ | |
11351 | #ifdef __cplusplus | |
11352 | extern "C" | |
11353 | #endif | |
11354 | char dlopen (); | |
11355 | int | |
11356 | main () | |
11357 | { | |
11358 | return dlopen (); | |
11359 | ; | |
11360 | return 0; | |
11361 | } | |
11362 | _ACEOF | |
11363 | if ac_fn_c_try_link "$LINENO"; then : | |
11364 | ac_cv_lib_svld_dlopen=yes | |
11365 | else | |
11366 | ac_cv_lib_svld_dlopen=no | |
11367 | fi | |
11368 | rm -f core conftest.err conftest.$ac_objext \ | |
11369 | conftest$ac_exeext conftest.$ac_ext | |
11370 | LIBS=$ac_check_lib_save_LIBS | |
11371 | fi | |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11373 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12e39525 | 11374 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
042acc47 WP |
11375 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11376 | else | |
11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11378 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12e39525 | 11379 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
042acc47 WP |
11380 | $as_echo_n "(cached) " >&6 |
11381 | else | |
11382 | ac_check_lib_save_LIBS=$LIBS | |
11383 | LIBS="-ldld $LIBS" | |
11384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11385 | /* end confdefs.h. */ | |
b57f37fb | 11386 | |
042acc47 WP |
11387 | /* Override any GCC internal prototype to avoid an error. |
11388 | Use char because int might match the return type of a GCC | |
11389 | builtin and then its argument prototype would still apply. */ | |
11390 | #ifdef __cplusplus | |
11391 | extern "C" | |
11392 | #endif | |
11393 | char dld_link (); | |
11394 | int | |
11395 | main () | |
11396 | { | |
11397 | return dld_link (); | |
11398 | ; | |
11399 | return 0; | |
11400 | } | |
11401 | _ACEOF | |
11402 | if ac_fn_c_try_link "$LINENO"; then : | |
11403 | ac_cv_lib_dld_dld_link=yes | |
11404 | else | |
11405 | ac_cv_lib_dld_dld_link=no | |
11406 | fi | |
11407 | rm -f core conftest.err conftest.$ac_objext \ | |
11408 | conftest$ac_exeext conftest.$ac_ext | |
11409 | LIBS=$ac_check_lib_save_LIBS | |
11410 | fi | |
11411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11412 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12e39525 | 11413 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
042acc47 WP |
11414 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11415 | fi | |
b57f37fb WP |
11416 | |
11417 | ||
042acc47 | 11418 | fi |
b57f37fb WP |
11419 | |
11420 | ||
042acc47 | 11421 | fi |
b57f37fb WP |
11422 | |
11423 | ||
042acc47 | 11424 | fi |
b57f37fb | 11425 | |
b57f37fb | 11426 | |
042acc47 | 11427 | fi |
b57f37fb | 11428 | |
b57f37fb | 11429 | |
042acc47 | 11430 | fi |
b57f37fb | 11431 | |
042acc47 WP |
11432 | ;; |
11433 | esac | |
b57f37fb | 11434 | |
042acc47 WP |
11435 | if test "x$lt_cv_dlopen" != xno; then |
11436 | enable_dlopen=yes | |
11437 | else | |
11438 | enable_dlopen=no | |
11439 | fi | |
b57f37fb | 11440 | |
042acc47 WP |
11441 | case $lt_cv_dlopen in |
11442 | dlopen) | |
11443 | save_CPPFLAGS="$CPPFLAGS" | |
11444 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
b57f37fb | 11445 | |
042acc47 WP |
11446 | save_LDFLAGS="$LDFLAGS" |
11447 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
b57f37fb | 11448 | |
042acc47 WP |
11449 | save_LIBS="$LIBS" |
11450 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
b57f37fb | 11451 | |
042acc47 WP |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11453 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12e39525 | 11454 | if ${lt_cv_dlopen_self+:} false; then : |
f030cae8 | 11455 | $as_echo_n "(cached) " >&6 |
b57f37fb | 11456 | else |
042acc47 WP |
11457 | if test "$cross_compiling" = yes; then : |
11458 | lt_cv_dlopen_self=cross | |
b57f37fb | 11459 | else |
042acc47 WP |
11460 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11461 | lt_status=$lt_dlunknown | |
11462 | cat > conftest.$ac_ext <<_LT_EOF | |
6dec141a | 11463 | #line 11463 "configure" |
042acc47 | 11464 | #include "confdefs.h" |
b57f37fb | 11465 | |
042acc47 WP |
11466 | #if HAVE_DLFCN_H |
11467 | #include <dlfcn.h> | |
11468 | #endif | |
b57f37fb | 11469 | |
042acc47 | 11470 | #include <stdio.h> |
b57f37fb | 11471 | |
042acc47 WP |
11472 | #ifdef RTLD_GLOBAL |
11473 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11474 | #else | |
11475 | # ifdef DL_GLOBAL | |
11476 | # define LT_DLGLOBAL DL_GLOBAL | |
11477 | # else | |
11478 | # define LT_DLGLOBAL 0 | |
11479 | # endif | |
11480 | #endif | |
b57f37fb | 11481 | |
042acc47 WP |
11482 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11483 | find out it does not work in some platform. */ | |
11484 | #ifndef LT_DLLAZY_OR_NOW | |
11485 | # ifdef RTLD_LAZY | |
11486 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11487 | # else | |
11488 | # ifdef DL_LAZY | |
11489 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11490 | # else | |
11491 | # ifdef RTLD_NOW | |
11492 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11493 | # else | |
11494 | # ifdef DL_NOW | |
11495 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11496 | # else | |
11497 | # define LT_DLLAZY_OR_NOW 0 | |
11498 | # endif | |
11499 | # endif | |
11500 | # endif | |
11501 | # endif | |
11502 | #endif | |
b57f37fb | 11503 | |
042acc47 WP |
11504 | void fnord() { int i=42;} |
11505 | int main () | |
11506 | { | |
11507 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11508 | int status = $lt_dlunknown; | |
b57f37fb | 11509 | |
042acc47 WP |
11510 | if (self) |
11511 | { | |
11512 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11513 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11514 | /* dlclose (self); */ | |
11515 | } | |
11516 | else | |
11517 | puts (dlerror ()); | |
b57f37fb | 11518 | |
042acc47 WP |
11519 | return status; |
11520 | } | |
11521 | _LT_EOF | |
11522 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11523 | (eval $ac_link) 2>&5 | |
11524 | ac_status=$? | |
11525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11526 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11527 | (./conftest; exit; ) >&5 2>/dev/null | |
11528 | lt_status=$? | |
11529 | case x$lt_status in | |
11530 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11531 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11532 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11533 | esac | |
11534 | else : | |
11535 | # compilation failed | |
11536 | lt_cv_dlopen_self=no | |
11537 | fi | |
b57f37fb | 11538 | fi |
042acc47 | 11539 | rm -fr conftest* |
b57f37fb | 11540 | |
b57f37fb | 11541 | |
042acc47 WP |
11542 | fi |
11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11544 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
b57f37fb | 11545 | |
042acc47 WP |
11546 | if test "x$lt_cv_dlopen_self" = xyes; then |
11547 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11549 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12e39525 | 11550 | if ${lt_cv_dlopen_self_static+:} false; then : |
f030cae8 | 11551 | $as_echo_n "(cached) " >&6 |
b57f37fb | 11552 | else |
042acc47 WP |
11553 | if test "$cross_compiling" = yes; then : |
11554 | lt_cv_dlopen_self_static=cross | |
b57f37fb | 11555 | else |
042acc47 WP |
11556 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11557 | lt_status=$lt_dlunknown | |
11558 | cat > conftest.$ac_ext <<_LT_EOF | |
6dec141a | 11559 | #line 11559 "configure" |
042acc47 | 11560 | #include "confdefs.h" |
b57f37fb | 11561 | |
042acc47 WP |
11562 | #if HAVE_DLFCN_H |
11563 | #include <dlfcn.h> | |
11564 | #endif | |
b57f37fb | 11565 | |
042acc47 | 11566 | #include <stdio.h> |
b57f37fb | 11567 | |
042acc47 WP |
11568 | #ifdef RTLD_GLOBAL |
11569 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11570 | #else | |
11571 | # ifdef DL_GLOBAL | |
11572 | # define LT_DLGLOBAL DL_GLOBAL | |
11573 | # else | |
11574 | # define LT_DLGLOBAL 0 | |
11575 | # endif | |
11576 | #endif | |
b57f37fb | 11577 | |
042acc47 WP |
11578 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11579 | find out it does not work in some platform. */ | |
11580 | #ifndef LT_DLLAZY_OR_NOW | |
11581 | # ifdef RTLD_LAZY | |
11582 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11583 | # else | |
11584 | # ifdef DL_LAZY | |
11585 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11586 | # else | |
11587 | # ifdef RTLD_NOW | |
11588 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11589 | # else | |
11590 | # ifdef DL_NOW | |
11591 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11592 | # else | |
11593 | # define LT_DLLAZY_OR_NOW 0 | |
11594 | # endif | |
11595 | # endif | |
11596 | # endif | |
11597 | # endif | |
11598 | #endif | |
b57f37fb | 11599 | |
042acc47 WP |
11600 | void fnord() { int i=42;} |
11601 | int main () | |
11602 | { | |
11603 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11604 | int status = $lt_dlunknown; | |
b57f37fb | 11605 | |
042acc47 WP |
11606 | if (self) |
11607 | { | |
11608 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11609 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11610 | /* dlclose (self); */ | |
11611 | } | |
11612 | else | |
11613 | puts (dlerror ()); | |
b57f37fb | 11614 | |
042acc47 WP |
11615 | return status; |
11616 | } | |
11617 | _LT_EOF | |
11618 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11619 | (eval $ac_link) 2>&5 | |
11620 | ac_status=$? | |
11621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11622 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11623 | (./conftest; exit; ) >&5 2>/dev/null | |
11624 | lt_status=$? | |
11625 | case x$lt_status in | |
11626 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11627 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11628 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11629 | esac | |
11630 | else : | |
11631 | # compilation failed | |
11632 | lt_cv_dlopen_self_static=no | |
11633 | fi | |
b57f37fb | 11634 | fi |
042acc47 | 11635 | rm -fr conftest* |
94b4fbf9 | 11636 | |
b57f37fb | 11637 | |
b57f37fb | 11638 | fi |
042acc47 WP |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11640 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11641 | fi | |
b57f37fb | 11642 | |
042acc47 WP |
11643 | CPPFLAGS="$save_CPPFLAGS" |
11644 | LDFLAGS="$save_LDFLAGS" | |
11645 | LIBS="$save_LIBS" | |
11646 | ;; | |
11647 | esac | |
b57f37fb | 11648 | |
042acc47 WP |
11649 | case $lt_cv_dlopen_self in |
11650 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11651 | *) enable_dlopen_self=unknown ;; | |
11652 | esac | |
b57f37fb | 11653 | |
042acc47 WP |
11654 | case $lt_cv_dlopen_self_static in |
11655 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11656 | *) enable_dlopen_self_static=unknown ;; | |
11657 | esac | |
b57f37fb WP |
11658 | fi |
11659 | ||
b57f37fb | 11660 | |
b57f37fb | 11661 | |
f030cae8 VY |
11662 | |
11663 | ||
f030cae8 | 11664 | |
b57f37fb | 11665 | |
b57f37fb | 11666 | |
b57f37fb | 11667 | |
f030cae8 | 11668 | |
f030cae8 | 11669 | |
b57f37fb | 11670 | |
f030cae8 | 11671 | |
b57f37fb | 11672 | |
b57f37fb | 11673 | |
b57f37fb | 11674 | |
b57f37fb | 11675 | |
042acc47 WP |
11676 | striplib= |
11677 | old_striplib= | |
11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11679 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11680 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11681 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11682 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11684 | $as_echo "yes" >&6; } | |
f030cae8 | 11685 | else |
042acc47 WP |
11686 | # FIXME - insert some real tests, host_os isn't really good enough |
11687 | case $host_os in | |
11688 | darwin*) | |
11689 | if test -n "$STRIP" ; then | |
11690 | striplib="$STRIP -x" | |
11691 | old_striplib="$STRIP -S" | |
11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11693 | $as_echo "yes" >&6; } | |
11694 | else | |
11695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11696 | $as_echo "no" >&6; } | |
11697 | fi | |
11698 | ;; | |
11699 | *) | |
11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11701 | $as_echo "no" >&6; } | |
11702 | ;; | |
11703 | esac | |
f030cae8 VY |
11704 | fi |
11705 | ||
b57f37fb | 11706 | |
f030cae8 | 11707 | |
b57f37fb | 11708 | |
b57f37fb | 11709 | |
b57f37fb | 11710 | |
b57f37fb | 11711 | |
b57f37fb | 11712 | |
b57f37fb | 11713 | |
b57f37fb | 11714 | |
b57f37fb WP |
11715 | |
11716 | ||
042acc47 WP |
11717 | # Report which library types will actually be built |
11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11719 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11721 | $as_echo "$can_build_shared" >&6; } | |
b57f37fb | 11722 | |
042acc47 WP |
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11724 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11725 | test "$can_build_shared" = "no" && enable_shared=no | |
b57f37fb | 11726 | |
042acc47 WP |
11727 | # On AIX, shared libraries and static libraries use the same namespace, and |
11728 | # are all built from PIC. | |
11729 | case $host_os in | |
11730 | aix3*) | |
11731 | test "$enable_shared" = yes && enable_static=no | |
11732 | if test -n "$RANLIB"; then | |
11733 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11734 | postinstall_cmds='$RANLIB $lib' | |
11735 | fi | |
11736 | ;; | |
b57f37fb | 11737 | |
042acc47 WP |
11738 | aix[4-9]*) |
11739 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11740 | test "$enable_shared" = yes && enable_static=no | |
11741 | fi | |
11742 | ;; | |
11743 | esac | |
11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11745 | $as_echo "$enable_shared" >&6; } | |
11746 | ||
11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11748 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11749 | # Make sure either enable_shared or enable_static is yes. | |
11750 | test "$enable_shared" = yes || enable_static=yes | |
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11752 | $as_echo "$enable_static" >&6; } | |
b57f37fb | 11753 | |
b57f37fb | 11754 | |
b57f37fb | 11755 | |
b57f37fb | 11756 | |
b57f37fb | 11757 | fi |
042acc47 WP |
11758 | ac_ext=c |
11759 | ac_cpp='$CPP $CPPFLAGS' | |
11760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b57f37fb | 11763 | |
042acc47 | 11764 | CC="$lt_save_CC" |
b57f37fb | 11765 | |
b57f37fb | 11766 | |
b57f37fb | 11767 | |
b57f37fb | 11768 | |
b57f37fb | 11769 | |
b57f37fb | 11770 | |
b57f37fb | 11771 | |
b57f37fb | 11772 | |
b57f37fb | 11773 | |
b57f37fb WP |
11774 | |
11775 | ||
b57f37fb | 11776 | |
b57f37fb | 11777 | |
042acc47 | 11778 | ac_config_commands="$ac_config_commands libtool" |
b57f37fb WP |
11779 | |
11780 | ||
11781 | ||
11782 | ||
042acc47 | 11783 | # Only expand once: |
b57f37fb WP |
11784 | |
11785 | ||
11786 | ||
042acc47 | 11787 | LIBTOOL="$LIBTOOL --silent" |
b57f37fb | 11788 | |
042acc47 WP |
11789 | case "$host_os" in |
11790 | *cygwin*) | |
b57f37fb | 11791 | |
042acc47 WP |
11792 | cat >>confdefs.h <<_ACEOF |
11793 | #define CYGWIN 1 | |
11794 | _ACEOF | |
b57f37fb WP |
11795 | |
11796 | ||
042acc47 WP |
11797 | cat >>confdefs.h <<_ACEOF |
11798 | #define WINDOWS 1 | |
11799 | _ACEOF | |
b57f37fb | 11800 | |
042acc47 WP |
11801 | ;; |
11802 | *mingw*) | |
b57f37fb | 11803 | |
042acc47 WP |
11804 | cat >>confdefs.h <<_ACEOF |
11805 | #define MINGW 1 | |
11806 | _ACEOF | |
b57f37fb WP |
11807 | |
11808 | ||
042acc47 WP |
11809 | cat >>confdefs.h <<_ACEOF |
11810 | #define WINDOWS 1 | |
11811 | _ACEOF | |
b57f37fb | 11812 | |
042acc47 | 11813 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
12e39525 | 11814 | if test "x$ac_cv_header_windows_h" = xyes; then : |
b57f37fb | 11815 | |
042acc47 | 11816 | else |
12e39525 | 11817 | as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5 |
042acc47 | 11818 | fi |
b57f37fb WP |
11819 | |
11820 | ||
042acc47 | 11821 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
12e39525 | 11822 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
b57f37fb | 11823 | |
042acc47 | 11824 | else |
12e39525 | 11825 | as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5 |
042acc47 | 11826 | fi |
b57f37fb | 11827 | |
94b4fbf9 | 11828 | |
042acc47 WP |
11829 | |
11830 | cat >>confdefs.h <<_ACEOF | |
11831 | #define HAVE_WINSOCK2_H 1 | |
b57f37fb | 11832 | _ACEOF |
042acc47 WP |
11833 | |
11834 | ||
11835 | cat >>confdefs.h <<_ACEOF | |
11836 | #define HAVE_WINSOCK_H 1 | |
b57f37fb | 11837 | _ACEOF |
042acc47 WP |
11838 | |
11839 | LIBS="$LIBS -lws2_32 -liphlpapi" | |
11840 | is_mingw="yes" | |
11841 | ;; | |
11842 | *interix*) | |
11843 | CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500" | |
11844 | ;; | |
11845 | *solaris*) | |
11846 | CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2" | |
11847 | ;; | |
11848 | *) | |
11849 | ;; | |
b57f37fb | 11850 | esac |
b57f37fb | 11851 | |
042acc47 WP |
11852 | if test "$is_mingw" = "yes"; then |
11853 | MINGW_TRUE= | |
11854 | MINGW_FALSE='#' | |
11855 | else | |
11856 | MINGW_TRUE='#' | |
11857 | MINGW_FALSE= | |
b57f37fb WP |
11858 | fi |
11859 | ||
b57f37fb | 11860 | |
b57f37fb | 11861 | |
042acc47 WP |
11862 | # backwards support for IRC_CFLAGS |
11863 | CFLAGS="$IRC_CFLAGS $CFLAGS -Wall" | |
11864 | ||
11865 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
11866 | test "$localstatedir" = '${prefix}/var'; then | |
11867 | libexecdir='${bindir}' | |
11868 | localstatedir='${prefix}' | |
b57f37fb WP |
11869 | fi |
11870 | ||
042acc47 | 11871 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
12e39525 | 11872 | if test "x$ac_cv_type_pid_t" = xyes; then : |
b57f37fb | 11873 | |
b57f37fb | 11874 | else |
042acc47 WP |
11875 | |
11876 | cat >>confdefs.h <<_ACEOF | |
11877 | #define pid_t int | |
11878 | _ACEOF | |
b57f37fb WP |
11879 | |
11880 | fi | |
042acc47 WP |
11881 | |
11882 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
12e39525 | 11883 | if test "x$ac_cv_type_size_t" = xyes; then : |
042acc47 WP |
11884 | |
11885 | else | |
11886 | ||
11887 | cat >>confdefs.h <<_ACEOF | |
11888 | #define size_t unsigned int | |
b57f37fb WP |
11889 | _ACEOF |
11890 | ||
11891 | fi | |
11892 | ||
042acc47 | 11893 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
12e39525 | 11894 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
b57f37fb | 11895 | |
b57f37fb | 11896 | else |
042acc47 WP |
11897 | |
11898 | cat >>confdefs.h <<_ACEOF | |
11899 | #define ssize_t int | |
b57f37fb | 11900 | _ACEOF |
042acc47 WP |
11901 | |
11902 | fi | |
11903 | ||
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
11905 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
12e39525 | 11906 | if ${ac_cv_type_uid_t+:} false; then : |
042acc47 WP |
11907 | $as_echo_n "(cached) " >&6 |
11908 | else | |
11909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb WP |
11910 | /* end confdefs.h. */ |
11911 | #include <sys/types.h> | |
b57f37fb | 11912 | |
b57f37fb | 11913 | _ACEOF |
042acc47 WP |
11914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11915 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
11916 | ac_cv_type_uid_t=yes | |
b57f37fb | 11917 | else |
042acc47 | 11918 | ac_cv_type_uid_t=no |
b57f37fb | 11919 | fi |
042acc47 | 11920 | rm -f conftest* |
b57f37fb | 11921 | |
b57f37fb | 11922 | fi |
042acc47 WP |
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
11924 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
11925 | if test $ac_cv_type_uid_t = no; then | |
b57f37fb | 11926 | |
042acc47 WP |
11927 | $as_echo "#define uid_t int" >>confdefs.h |
11928 | ||
11929 | ||
11930 | $as_echo "#define gid_t int" >>confdefs.h | |
b57f37fb WP |
11931 | |
11932 | fi | |
11933 | ||
11934 | ||
11935 | ||
042acc47 WP |
11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
11937 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
12e39525 | 11938 | if ${ac_cv_header_stdc+:} false; then : |
f030cae8 | 11939 | $as_echo_n "(cached) " >&6 |
b57f37fb | 11940 | else |
042acc47 | 11941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 11942 | /* end confdefs.h. */ |
042acc47 WP |
11943 | #include <stdlib.h> |
11944 | #include <stdarg.h> | |
11945 | #include <string.h> | |
11946 | #include <float.h> | |
b57f37fb | 11947 | |
b57f37fb WP |
11948 | int |
11949 | main () | |
11950 | { | |
042acc47 | 11951 | |
b57f37fb WP |
11952 | ; |
11953 | return 0; | |
11954 | } | |
11955 | _ACEOF | |
042acc47 WP |
11956 | if ac_fn_c_try_compile "$LINENO"; then : |
11957 | ac_cv_header_stdc=yes | |
b57f37fb | 11958 | else |
042acc47 WP |
11959 | ac_cv_header_stdc=no |
11960 | fi | |
11961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b57f37fb | 11962 | |
042acc47 WP |
11963 | if test $ac_cv_header_stdc = yes; then |
11964 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11966 | /* end confdefs.h. */ | |
11967 | #include <string.h> | |
b57f37fb | 11968 | |
042acc47 WP |
11969 | _ACEOF |
11970 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11971 | $EGREP "memchr" >/dev/null 2>&1; then : | |
b57f37fb | 11972 | |
b57f37fb | 11973 | else |
042acc47 | 11974 | ac_cv_header_stdc=no |
b57f37fb | 11975 | fi |
042acc47 | 11976 | rm -f conftest* |
b57f37fb WP |
11977 | |
11978 | fi | |
11979 | ||
042acc47 WP |
11980 | if test $ac_cv_header_stdc = yes; then |
11981 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11983 | /* end confdefs.h. */ | |
11984 | #include <stdlib.h> | |
b57f37fb | 11985 | |
b57f37fb | 11986 | _ACEOF |
042acc47 WP |
11987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11988 | $EGREP "free" >/dev/null 2>&1; then : | |
b57f37fb | 11989 | |
042acc47 WP |
11990 | else |
11991 | ac_cv_header_stdc=no | |
11992 | fi | |
11993 | rm -f conftest* | |
b57f37fb | 11994 | |
042acc47 | 11995 | fi |
b57f37fb | 11996 | |
042acc47 WP |
11997 | if test $ac_cv_header_stdc = yes; then |
11998 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11999 | if test "$cross_compiling" = yes; then : | |
12000 | : | |
b57f37fb | 12001 | else |
042acc47 | 12002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 12003 | /* end confdefs.h. */ |
042acc47 WP |
12004 | #include <ctype.h> |
12005 | #include <stdlib.h> | |
12006 | #if ((' ' & 0x0FF) == 0x020) | |
12007 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12008 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12009 | #else | |
12010 | # define ISLOWER(c) \ | |
12011 | (('a' <= (c) && (c) <= 'i') \ | |
12012 | || ('j' <= (c) && (c) <= 'r') \ | |
12013 | || ('s' <= (c) && (c) <= 'z')) | |
12014 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
b57f37fb WP |
12015 | #endif |
12016 | ||
042acc47 | 12017 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b57f37fb WP |
12018 | int |
12019 | main () | |
12020 | { | |
042acc47 WP |
12021 | int i; |
12022 | for (i = 0; i < 256; i++) | |
12023 | if (XOR (islower (i), ISLOWER (i)) | |
12024 | || toupper (i) != TOUPPER (i)) | |
12025 | return 2; | |
b57f37fb WP |
12026 | return 0; |
12027 | } | |
12028 | _ACEOF | |
042acc47 | 12029 | if ac_fn_c_try_run "$LINENO"; then : |
b57f37fb | 12030 | |
042acc47 WP |
12031 | else |
12032 | ac_cv_header_stdc=no | |
12033 | fi | |
12034 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12035 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b57f37fb WP |
12036 | fi |
12037 | ||
b57f37fb | 12038 | fi |
042acc47 WP |
12039 | fi |
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
12041 | $as_echo "$ac_cv_header_stdc" >&6; } | |
12042 | if test $ac_cv_header_stdc = yes; then | |
12043 | ||
12044 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
b57f37fb | 12045 | |
b57f37fb | 12046 | fi |
b57f37fb | 12047 | |
042acc47 WP |
12048 | |
12049 | for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h | |
12050 | do : | |
12051 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12052 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12e39525 | 12053 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
042acc47 WP |
12054 | cat >>confdefs.h <<_ACEOF |
12055 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b57f37fb WP |
12056 | _ACEOF |
12057 | ||
12058 | fi | |
12059 | ||
042acc47 | 12060 | done |
b57f37fb | 12061 | |
042acc47 WP |
12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
12063 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
12e39525 | 12064 | if ${ac_cv_header_time+:} false; then : |
f030cae8 | 12065 | $as_echo_n "(cached) " >&6 |
b57f37fb | 12066 | else |
042acc47 | 12067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 12068 | /* end confdefs.h. */ |
b57f37fb | 12069 | #include <sys/types.h> |
042acc47 WP |
12070 | #include <sys/time.h> |
12071 | #include <time.h> | |
b57f37fb | 12072 | |
b57f37fb WP |
12073 | int |
12074 | main () | |
12075 | { | |
042acc47 WP |
12076 | if ((struct tm *) 0) |
12077 | return 0; | |
f030cae8 | 12078 | ; |
b57f37fb | 12079 | return 0; |
042acc47 | 12080 | } |
f030cae8 | 12081 | _ACEOF |
042acc47 WP |
12082 | if ac_fn_c_try_compile "$LINENO"; then : |
12083 | ac_cv_header_time=yes | |
12084 | else | |
12085 | ac_cv_header_time=no | |
12086 | fi | |
12087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12088 | fi | |
12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
12090 | $as_echo "$ac_cv_header_time" >&6; } | |
12091 | if test $ac_cv_header_time = yes; then | |
12092 | ||
12093 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
12094 | ||
12095 | fi | |
12096 | ||
12097 | ||
12098 | ||
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
12100 | $as_echo_n "checking for library containing socket... " >&6; } | |
12e39525 | 12101 | if ${ac_cv_search_socket+:} false; then : |
042acc47 WP |
12102 | $as_echo_n "(cached) " >&6 |
12103 | else | |
12104 | ac_func_search_save_LIBS=$LIBS | |
12105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f030cae8 | 12106 | /* end confdefs.h. */ |
f030cae8 | 12107 | |
042acc47 WP |
12108 | /* Override any GCC internal prototype to avoid an error. |
12109 | Use char because int might match the return type of a GCC | |
12110 | builtin and then its argument prototype would still apply. */ | |
12111 | #ifdef __cplusplus | |
12112 | extern "C" | |
12113 | #endif | |
12114 | char socket (); | |
f030cae8 VY |
12115 | int |
12116 | main () | |
12117 | { | |
042acc47 | 12118 | return socket (); |
b57f37fb WP |
12119 | ; |
12120 | return 0; | |
12121 | } | |
12122 | _ACEOF | |
042acc47 WP |
12123 | for ac_lib in '' socket; do |
12124 | if test -z "$ac_lib"; then | |
12125 | ac_res="none required" | |
12126 | else | |
12127 | ac_res=-l$ac_lib | |
12128 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12129 | fi | |
12130 | if ac_fn_c_try_link "$LINENO"; then : | |
12131 | ac_cv_search_socket=$ac_res | |
12132 | fi | |
12133 | rm -f core conftest.err conftest.$ac_objext \ | |
12134 | conftest$ac_exeext | |
12e39525 | 12135 | if ${ac_cv_search_socket+:} false; then : |
042acc47 WP |
12136 | break |
12137 | fi | |
12138 | done | |
12e39525 | 12139 | if ${ac_cv_search_socket+:} false; then : |
042acc47 | 12140 | |
b57f37fb | 12141 | else |
042acc47 WP |
12142 | ac_cv_search_socket=no |
12143 | fi | |
12144 | rm conftest.$ac_ext | |
12145 | LIBS=$ac_func_search_save_LIBS | |
12146 | fi | |
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
12148 | $as_echo "$ac_cv_search_socket" >&6; } | |
12149 | ac_res=$ac_cv_search_socket | |
12150 | if test "$ac_res" != no; then : | |
12151 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b57f37fb | 12152 | |
b57f37fb WP |
12153 | fi |
12154 | ||
f030cae8 VY |
12155 | |
12156 | ||
042acc47 WP |
12157 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " |
12158 | #ifdef HAVE_SYS_TYPES_H | |
12159 | #include <sys/types.h> | |
12160 | #endif | |
12161 | #ifdef HAVE_SYS_SOCKET_H | |
12162 | #include <sys/socket.h> | |
12163 | #endif | |
12164 | #ifdef HAVE_WINSOCK2_H | |
12165 | #include <winsock2.h> | |
12166 | #endif | |
12167 | ||
12168 | " | |
12e39525 | 12169 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
042acc47 WP |
12170 | |
12171 | $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h | |
f030cae8 | 12172 | |
f030cae8 | 12173 | fi |
042acc47 WP |
12174 | |
12175 | ||
12176 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
12177 | #include <sys/socket.h> | |
12178 | " | |
12e39525 | 12179 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
f030cae8 | 12180 | rb_cv_socklen_t=socklen_t |
b57f37fb WP |
12181 | else |
12182 | ||
042acc47 | 12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
f030cae8 | 12184 | $as_echo_n "checking for socklen_t equivalent... " >&6; } |
12e39525 | 12185 | if ${rb_cv_socklen_t+:} false; then : |
f030cae8 | 12186 | $as_echo_n "(cached) " >&6 |
4414eb3c VY |
12187 | else |
12188 | ||
12189 | # Systems have either "struct sockaddr *" or | |
12190 | # "void *" as the second argument to getpeername | |
f030cae8 | 12191 | rb_cv_socklen_t= |
4414eb3c VY |
12192 | for arg2 in "struct sockaddr" void; do |
12193 | for t in int size_t unsigned long "unsigned long"; do | |
042acc47 | 12194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4414eb3c VY |
12195 | /* end confdefs.h. */ |
12196 | ||
94b4fbf9 | 12197 | #ifdef HAVE_SYS_TYPES_H |
4414eb3c | 12198 | #include <sys/types.h> |
94b4fbf9 VY |
12199 | #endif |
12200 | #ifdef HAVE_SYS_SOCKET_H | |
4414eb3c | 12201 | #include <sys/socket.h> |
94b4fbf9 VY |
12202 | #endif |
12203 | #ifdef HAVE_WINSOCK2_H | |
12204 | #include <winsock2.h> | |
12205 | #endif | |
4414eb3c VY |
12206 | int getpeername (int, $arg2 *, $t *); |
12207 | ||
12208 | int | |
12209 | main () | |
12210 | { | |
12211 | ||
12212 | $t len; | |
12213 | getpeername(0,0,&len); | |
12214 | ||
12215 | ; | |
12216 | return 0; | |
12217 | } | |
b57f37fb | 12218 | _ACEOF |
042acc47 | 12219 | if ac_fn_c_try_compile "$LINENO"; then : |
4414eb3c | 12220 | |
f030cae8 | 12221 | rb_cv_socklen_t="$t" |
4414eb3c VY |
12222 | break |
12223 | ||
4414eb3c | 12224 | fi |
4414eb3c VY |
12225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12226 | done | |
12227 | done | |
12228 | ||
f030cae8 | 12229 | if test "x$rb_cv_socklen_t" = x; then |
042acc47 | 12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5 |
f030cae8 VY |
12231 | $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;} |
12232 | rb_cv_socklen_t=int | |
4414eb3c VY |
12233 | fi |
12234 | ||
12235 | fi | |
12236 | ||
042acc47 WP |
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5 |
12238 | $as_echo "$rb_cv_socklen_t" >&6; } | |
12239 | fi | |
12240 | ||
12241 | ||
12242 | rb_socklen_t=$rb_cv_socklen_t | |
12243 | ||
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | # Check whether --enable-ipv6 was given. | |
12249 | if test "${enable_ipv6+set}" = set; then : | |
12250 | enableval=$enable_ipv6; ipv6=$enableval | |
12251 | else | |
12252 | ipv6=yes | |
12253 | fi | |
12254 | ||
12255 | ||
12256 | if test x$ipv6 != xyes; then | |
12257 | have_v6="no" | |
12258 | else | |
12259 | ||
12260 | have_v6=yes | |
12261 | ||
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5 | |
12263 | $as_echo_n "checking for INET6 protocol support... " >&6; } | |
12e39525 | 12264 | if ${rb_cv_proto_inet6+:} false; then : |
042acc47 WP |
12265 | $as_echo_n "(cached) " >&6 |
12266 | else | |
12267 | ||
12268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12269 | /* end confdefs.h. */ | |
12270 | ||
12271 | #include <sys/types.h> | |
12272 | #include <sys/socket.h> | |
12273 | ||
12274 | #ifndef PF_INET6 | |
12275 | #error Missing PF_INET6 | |
12276 | #endif | |
12277 | #ifndef AF_INET6 | |
12278 | #error Mlssing AF_INET6 | |
12279 | #endif | |
12280 | ||
12281 | _ACEOF | |
12282 | if ac_fn_c_try_cpp "$LINENO"; then : | |
12283 | ||
12284 | rb_cv_proto_inet6=yes | |
12285 | ||
12286 | else | |
12287 | ||
12288 | rb_cv_proto_inet6=no | |
12289 | ||
12290 | fi | |
12e39525 | 12291 | rm -f conftest.err conftest.i conftest.$ac_ext |
042acc47 WP |
12292 | |
12293 | fi | |
12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5 | |
12295 | $as_echo "$rb_cv_proto_inet6" >&6; } | |
12296 | ||
12297 | if test "X$rb_cv_proto_inet6" = "Xyes"; then : | |
12298 | ||
12299 | else : | |
12300 | ||
12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5 | |
12302 | $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;} | |
12303 | have_v6=no | |
12304 | ||
12305 | fi | |
12306 | ||
12307 | ||
12308 | if test "X$have_v6" = "Xyes"; then | |
12309 | ||
12310 | rb_have_sockaddr_in6= | |
12311 | ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" " | |
12312 | #include <sys/types.h> | |
12313 | #include <sys/socket.h> | |
12314 | #include <netinet/in.h> | |
12315 | ||
12316 | " | |
12e39525 | 12317 | if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
042acc47 WP |
12318 | |
12319 | cat >>confdefs.h <<_ACEOF | |
12320 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | |
12321 | _ACEOF | |
12322 | ||
12323 | ||
12324 | rb_have_sockaddr_in6=yes | |
12325 | ||
12326 | else | |
12327 | ||
12328 | rb_have_sockaddr_in6=no | |
12329 | ||
12330 | fi | |
12331 | ||
12332 | ||
12333 | if test "X$rb_have_sockaddr_in6" = "Xyes"; then : | |
12334 | ||
12335 | else : | |
12336 | ||
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5 | |
12338 | $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;} | |
12339 | have_v6=no | |
12340 | ||
12341 | fi | |
12342 | ||
12343 | fi | |
12344 | ||
12345 | fi | |
12346 | ||
12347 | ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " | |
12348 | #include <sys/types.h> | |
12349 | #include <sys/socket.h> | |
12350 | ||
12351 | " | |
12e39525 | 12352 | if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
042acc47 WP |
12353 | |
12354 | cat >>confdefs.h <<_ACEOF | |
12355 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | |
12356 | _ACEOF | |
12357 | ||
12358 | ||
12359 | rb_have_sockaddr_storage=yes | |
12360 | ||
12361 | fi | |
12362 | ||
12363 | ||
12364 | ||
042acc47 | 12365 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
12e39525 | 12366 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
b57f37fb | 12367 | |
042acc47 | 12368 | else |
12e39525 | 12369 | as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5 |
042acc47 | 12370 | fi |
b57f37fb | 12371 | |
b57f37fb | 12372 | |
b57f37fb | 12373 | |
042acc47 WP |
12374 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
12375 | #include <sys/socket.h> | |
12376 | " | |
12e39525 | 12377 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
b57f37fb WP |
12378 | |
12379 | else | |
b57f37fb | 12380 | |
042acc47 | 12381 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
b57f37fb WP |
12382 | |
12383 | fi | |
b57f37fb | 12384 | |
b57f37fb | 12385 | |
b57f37fb | 12386 | |
042acc47 WP |
12387 | for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create |
12388 | do : | |
12389 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12390 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12e39525 | 12391 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
042acc47 WP |
12392 | cat >>confdefs.h <<_ACEOF |
12393 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12394 | _ACEOF | |
b57f37fb | 12395 | |
042acc47 WP |
12396 | fi |
12397 | done | |
b57f37fb | 12398 | |
b57f37fb | 12399 | |
042acc47 WP |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 |
12401 | $as_echo_n "checking for library containing nanosleep... " >&6; } | |
12e39525 | 12402 | if ${ac_cv_search_nanosleep+:} false; then : |
f030cae8 | 12403 | $as_echo_n "(cached) " >&6 |
b57f37fb | 12404 | else |
042acc47 WP |
12405 | ac_func_search_save_LIBS=$LIBS |
12406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb WP |
12407 | /* end confdefs.h. */ |
12408 | ||
042acc47 WP |
12409 | /* Override any GCC internal prototype to avoid an error. |
12410 | Use char because int might match the return type of a GCC | |
12411 | builtin and then its argument prototype would still apply. */ | |
12412 | #ifdef __cplusplus | |
12413 | extern "C" | |
12414 | #endif | |
12415 | char nanosleep (); | |
b57f37fb WP |
12416 | int |
12417 | main () | |
12418 | { | |
042acc47 | 12419 | return nanosleep (); |
f030cae8 | 12420 | ; |
b57f37fb | 12421 | return 0; |
f030cae8 VY |
12422 | } |
12423 | _ACEOF | |
042acc47 WP |
12424 | for ac_lib in '' rt posix4; do |
12425 | if test -z "$ac_lib"; then | |
12426 | ac_res="none required" | |
12427 | else | |
12428 | ac_res=-l$ac_lib | |
12429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12430 | fi | |
12431 | if ac_fn_c_try_link "$LINENO"; then : | |
12432 | ac_cv_search_nanosleep=$ac_res | |
12433 | fi | |
12434 | rm -f core conftest.err conftest.$ac_objext \ | |
12435 | conftest$ac_exeext | |
12e39525 | 12436 | if ${ac_cv_search_nanosleep+:} false; then : |
042acc47 WP |
12437 | break |
12438 | fi | |
12439 | done | |
12e39525 | 12440 | if ${ac_cv_search_nanosleep+:} false; then : |
f030cae8 | 12441 | |
042acc47 WP |
12442 | else |
12443 | ac_cv_search_nanosleep=no | |
12444 | fi | |
12445 | rm conftest.$ac_ext | |
12446 | LIBS=$ac_func_search_save_LIBS | |
12447 | fi | |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | |
12449 | $as_echo "$ac_cv_search_nanosleep" >&6; } | |
12450 | ac_res=$ac_cv_search_nanosleep | |
12451 | if test "$ac_res" != no; then : | |
12452 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
f030cae8 | 12453 | |
042acc47 WP |
12454 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
12455 | ||
12456 | fi | |
12457 | ||
12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5 | |
12459 | $as_echo_n "checking for library containing timer_create... " >&6; } | |
12e39525 | 12460 | if ${ac_cv_search_timer_create+:} false; then : |
042acc47 WP |
12461 | $as_echo_n "(cached) " >&6 |
12462 | else | |
12463 | ac_func_search_save_LIBS=$LIBS | |
12464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12465 | /* end confdefs.h. */ | |
f030cae8 | 12466 | |
042acc47 WP |
12467 | /* Override any GCC internal prototype to avoid an error. |
12468 | Use char because int might match the return type of a GCC | |
12469 | builtin and then its argument prototype would still apply. */ | |
12470 | #ifdef __cplusplus | |
12471 | extern "C" | |
12472 | #endif | |
12473 | char timer_create (); | |
f030cae8 VY |
12474 | int |
12475 | main () | |
12476 | { | |
042acc47 | 12477 | return timer_create (); |
b57f37fb WP |
12478 | ; |
12479 | return 0; | |
12480 | } | |
12481 | _ACEOF | |
042acc47 WP |
12482 | for ac_lib in '' rt; do |
12483 | if test -z "$ac_lib"; then | |
12484 | ac_res="none required" | |
12485 | else | |
12486 | ac_res=-l$ac_lib | |
12487 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12488 | fi | |
12489 | if ac_fn_c_try_link "$LINENO"; then : | |
12490 | ac_cv_search_timer_create=$ac_res | |
12491 | fi | |
12492 | rm -f core conftest.err conftest.$ac_objext \ | |
12493 | conftest$ac_exeext | |
12e39525 | 12494 | if ${ac_cv_search_timer_create+:} false; then : |
042acc47 | 12495 | break |
f030cae8 | 12496 | fi |
042acc47 | 12497 | done |
12e39525 | 12498 | if ${ac_cv_search_timer_create+:} false; then : |
f030cae8 | 12499 | |
b57f37fb | 12500 | else |
042acc47 | 12501 | ac_cv_search_timer_create=no |
b57f37fb | 12502 | fi |
042acc47 WP |
12503 | rm conftest.$ac_ext |
12504 | LIBS=$ac_func_search_save_LIBS | |
b57f37fb | 12505 | fi |
042acc47 WP |
12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5 |
12507 | $as_echo "$ac_cv_search_timer_create" >&6; } | |
12508 | ac_res=$ac_cv_search_timer_create | |
12509 | if test "$ac_res" != no; then : | |
12510 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b57f37fb | 12511 | |
042acc47 | 12512 | $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
b57f37fb | 12513 | |
042acc47 | 12514 | fi |
b57f37fb | 12515 | |
042acc47 WP |
12516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5 |
12517 | $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; } | |
12e39525 | 12518 | if ${rb__cv_timer_create_works+:} false; then : |
042acc47 WP |
12519 | $as_echo_n "(cached) " >&6 |
12520 | else | |
12521 | if test "$cross_compiling" = yes; then : | |
12522 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12e39525 JH |
12524 | as_fn_error $? "cannot run test program while cross compiling |
12525 | See \`config.log' for more details" "$LINENO" 5; } | |
b57f37fb | 12526 | else |
042acc47 WP |
12527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12528 | /* end confdefs.h. */ | |
b57f37fb | 12529 | |
042acc47 WP |
12530 | #ifdef HAVE_TIME_H |
12531 | #include <time.h> | |
12532 | #endif | |
12533 | #ifdef HAVE_SIGNAL_H | |
12534 | #include <signal.h> | |
12535 | #endif | |
12536 | #ifdef HAVE_UNISTD_H | |
12537 | #include <unistd.h> | |
12538 | #endif | |
12539 | int main(int argc, char *argv[]) | |
12540 | { | |
12541 | #if HAVE_TIMER_CREATE | |
12542 | struct sigevent ev; | |
12543 | timer_t timer; | |
12544 | ev.sigev_notify = SIGEV_SIGNAL; | |
12545 | ev.sigev_signo = SIGVTALRM; | |
12546 | if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) { | |
12547 | return 1; | |
12548 | } | |
12549 | #else | |
12550 | return 1; | |
12551 | #endif | |
12552 | return 0; | |
12553 | } | |
b57f37fb | 12554 | |
042acc47 WP |
12555 | _ACEOF |
12556 | if ac_fn_c_try_run "$LINENO"; then : | |
12557 | rb__cv_timer_create_works=yes | |
12558 | else | |
12559 | rb__cv_timer_create_works=no | |
12560 | fi | |
12561 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12562 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b57f37fb WP |
12563 | fi |
12564 | ||
12565 | ||
042acc47 WP |
12566 | fi |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5 | |
12568 | $as_echo "$rb__cv_timer_create_works" >&6; } | |
12569 | case $rb__cv_timer_create_works in | |
12570 | yes) | |
12571 | $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h | |
12572 | ;; | |
12573 | esac | |
b57f37fb | 12574 | |
042acc47 WP |
12575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5 |
12576 | $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; } | |
12e39525 | 12577 | if ${rb__cv_timerfd_create_works+:} false; then : |
042acc47 WP |
12578 | $as_echo_n "(cached) " >&6 |
12579 | else | |
12580 | if test "$cross_compiling" = yes; then : | |
12581 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12e39525 JH |
12583 | as_fn_error $? "cannot run test program while cross compiling |
12584 | See \`config.log' for more details" "$LINENO" 5; } | |
042acc47 WP |
12585 | else |
12586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12587 | /* end confdefs.h. */ | |
b57f37fb | 12588 | |
042acc47 WP |
12589 | #ifdef HAVE_TIME_H |
12590 | #include <time.h> | |
12591 | #endif | |
12592 | #ifdef HAVE_SIGNAL_H | |
12593 | #include <signal.h> | |
12594 | #endif | |
12595 | #ifdef HAVE_UNISTD_H | |
12596 | #include <unistd.h> | |
12597 | #endif | |
12598 | #ifdef HAVE_SYS_TIMERFD_H | |
12599 | #include <sys/timerfd.h> | |
12600 | #endif | |
12601 | int main(int argc, char *argv[]) | |
12602 | { | |
12603 | #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H) | |
12604 | if (timerfd_create(CLOCK_REALTIME, 0) < 0) { | |
12605 | return 1; | |
12606 | } | |
12607 | #else | |
12608 | return 1; | |
12609 | #endif | |
12610 | return 0; | |
12611 | } | |
b57f37fb | 12612 | |
042acc47 WP |
12613 | _ACEOF |
12614 | if ac_fn_c_try_run "$LINENO"; then : | |
12615 | rb__cv_timerfd_create_works=yes | |
12616 | else | |
12617 | rb__cv_timerfd_create_works=no | |
12618 | fi | |
12619 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12620 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12621 | fi | |
b57f37fb | 12622 | |
b57f37fb WP |
12623 | |
12624 | fi | |
042acc47 WP |
12625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5 |
12626 | $as_echo "$rb__cv_timerfd_create_works" >&6; } | |
12627 | case $rb__cv_timerfd_create_works in | |
12628 | yes) | |
12629 | $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h | |
12630 | ;; | |
12631 | esac | |
b57f37fb | 12632 | |
042acc47 WP |
12633 | |
12634 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12635 | # for constant arguments. Useless! | |
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
12637 | $as_echo_n "checking for working alloca.h... " >&6; } | |
12e39525 | 12638 | if ${ac_cv_working_alloca_h+:} false; then : |
f030cae8 | 12639 | $as_echo_n "(cached) " >&6 |
b57f37fb | 12640 | else |
042acc47 | 12641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f030cae8 | 12642 | /* end confdefs.h. */ |
042acc47 | 12643 | #include <alloca.h> |
f030cae8 VY |
12644 | int |
12645 | main () | |
12646 | { | |
042acc47 WP |
12647 | char *p = (char *) alloca (2 * sizeof (int)); |
12648 | if (p) return 0; | |
b57f37fb WP |
12649 | ; |
12650 | return 0; | |
12651 | } | |
12652 | _ACEOF | |
042acc47 WP |
12653 | if ac_fn_c_try_link "$LINENO"; then : |
12654 | ac_cv_working_alloca_h=yes | |
f030cae8 | 12655 | else |
042acc47 | 12656 | ac_cv_working_alloca_h=no |
b57f37fb | 12657 | fi |
042acc47 WP |
12658 | rm -f core conftest.err conftest.$ac_objext \ |
12659 | conftest$ac_exeext conftest.$ac_ext | |
f030cae8 | 12660 | fi |
042acc47 WP |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
12662 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
12663 | if test $ac_cv_working_alloca_h = yes; then | |
b57f37fb | 12664 | |
042acc47 | 12665 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
b57f37fb WP |
12666 | |
12667 | fi | |
12668 | ||
042acc47 WP |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
12670 | $as_echo_n "checking for alloca... " >&6; } | |
12e39525 | 12671 | if ${ac_cv_func_alloca_works+:} false; then : |
f030cae8 | 12672 | $as_echo_n "(cached) " >&6 |
b57f37fb | 12673 | else |
042acc47 | 12674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 12675 | /* end confdefs.h. */ |
042acc47 WP |
12676 | #ifdef __GNUC__ |
12677 | # define alloca __builtin_alloca | |
12678 | #else | |
12679 | # ifdef _MSC_VER | |
12680 | # include <malloc.h> | |
12681 | # define alloca _alloca | |
12682 | # else | |
12683 | # ifdef HAVE_ALLOCA_H | |
12684 | # include <alloca.h> | |
12685 | # else | |
12686 | # ifdef _AIX | |
12687 | #pragma alloca | |
12688 | # else | |
12689 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12e39525 | 12690 | void *alloca (size_t); |
042acc47 WP |
12691 | # endif |
12692 | # endif | |
12693 | # endif | |
12694 | # endif | |
b57f37fb | 12695 | #endif |
042acc47 | 12696 | |
b57f37fb WP |
12697 | int |
12698 | main () | |
12699 | { | |
042acc47 WP |
12700 | char *p = (char *) alloca (1); |
12701 | if (p) return 0; | |
b57f37fb WP |
12702 | ; |
12703 | return 0; | |
12704 | } | |
12705 | _ACEOF | |
042acc47 WP |
12706 | if ac_fn_c_try_link "$LINENO"; then : |
12707 | ac_cv_func_alloca_works=yes | |
b57f37fb | 12708 | else |
042acc47 | 12709 | ac_cv_func_alloca_works=no |
b57f37fb | 12710 | fi |
042acc47 WP |
12711 | rm -f core conftest.err conftest.$ac_objext \ |
12712 | conftest$ac_exeext conftest.$ac_ext | |
b57f37fb | 12713 | fi |
042acc47 WP |
12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
12715 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
b57f37fb | 12716 | |
042acc47 | 12717 | if test $ac_cv_func_alloca_works = yes; then |
b57f37fb | 12718 | |
042acc47 | 12719 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
b57f37fb | 12720 | |
b57f37fb | 12721 | else |
042acc47 WP |
12722 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
12723 | # that cause trouble. Some versions do not even contain alloca or | |
12724 | # contain a buggy version. If you still want to use their alloca, | |
12725 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
b57f37fb | 12726 | |
042acc47 | 12727 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b57f37fb | 12728 | |
042acc47 | 12729 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
b57f37fb WP |
12730 | |
12731 | ||
042acc47 WP |
12732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
12733 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
12e39525 | 12734 | if ${ac_cv_os_cray+:} false; then : |
f030cae8 | 12735 | $as_echo_n "(cached) " >&6 |
b57f37fb | 12736 | else |
042acc47 | 12737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 12738 | /* end confdefs.h. */ |
042acc47 WP |
12739 | #if defined CRAY && ! defined CRAY2 |
12740 | webecray | |
12741 | #else | |
12742 | wenotbecray | |
12743 | #endif | |
b57f37fb | 12744 | |
b57f37fb | 12745 | _ACEOF |
042acc47 WP |
12746 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12747 | $EGREP "webecray" >/dev/null 2>&1; then : | |
12748 | ac_cv_os_cray=yes | |
b57f37fb | 12749 | else |
042acc47 | 12750 | ac_cv_os_cray=no |
b57f37fb | 12751 | fi |
042acc47 | 12752 | rm -f conftest* |
b57f37fb | 12753 | |
b57f37fb | 12754 | fi |
042acc47 WP |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
12756 | $as_echo "$ac_cv_os_cray" >&6; } | |
12757 | if test $ac_cv_os_cray = yes; then | |
12758 | for ac_func in _getb67 GETB67 getb67; do | |
12759 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12760 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12e39525 | 12761 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
b57f37fb | 12762 | |
042acc47 WP |
12763 | cat >>confdefs.h <<_ACEOF |
12764 | #define CRAY_STACKSEG_END $ac_func | |
12765 | _ACEOF | |
b57f37fb | 12766 | |
042acc47 WP |
12767 | break |
12768 | fi | |
b57f37fb | 12769 | |
042acc47 WP |
12770 | done |
12771 | fi | |
b57f37fb | 12772 | |
042acc47 WP |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
12774 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
12e39525 | 12775 | if ${ac_cv_c_stack_direction+:} false; then : |
f030cae8 | 12776 | $as_echo_n "(cached) " >&6 |
b57f37fb | 12777 | else |
042acc47 WP |
12778 | if test "$cross_compiling" = yes; then : |
12779 | ac_cv_c_stack_direction=0 | |
12780 | else | |
12781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb | 12782 | /* end confdefs.h. */ |
042acc47 | 12783 | $ac_includes_default |
b57f37fb | 12784 | int |
042acc47 | 12785 | find_stack_direction () |
b57f37fb | 12786 | { |
042acc47 WP |
12787 | static char *addr = 0; |
12788 | auto char dummy; | |
12789 | if (addr == 0) | |
12790 | { | |
12791 | addr = &dummy; | |
12792 | return find_stack_direction (); | |
12793 | } | |
12794 | else | |
12795 | return (&dummy > addr) ? 1 : -1; | |
f030cae8 | 12796 | } |
f030cae8 VY |
12797 | |
12798 | int | |
12799 | main () | |
12800 | { | |
042acc47 | 12801 | return find_stack_direction () < 0; |
b57f37fb WP |
12802 | } |
12803 | _ACEOF | |
042acc47 WP |
12804 | if ac_fn_c_try_run "$LINENO"; then : |
12805 | ac_cv_c_stack_direction=1 | |
f030cae8 | 12806 | else |
042acc47 | 12807 | ac_cv_c_stack_direction=-1 |
f030cae8 | 12808 | fi |
042acc47 WP |
12809 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12810 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b57f37fb WP |
12811 | fi |
12812 | ||
b57f37fb | 12813 | fi |
042acc47 WP |
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
12815 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
12816 | cat >>confdefs.h <<_ACEOF | |
12817 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
b57f37fb WP |
12818 | _ACEOF |
12819 | ||
b57f37fb | 12820 | |
042acc47 | 12821 | fi |
b57f37fb | 12822 | |
042acc47 WP |
12823 | for ac_header in vfork.h |
12824 | do : | |
12825 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
12e39525 | 12826 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
042acc47 WP |
12827 | cat >>confdefs.h <<_ACEOF |
12828 | #define HAVE_VFORK_H 1 | |
12829 | _ACEOF | |
b57f37fb | 12830 | |
042acc47 | 12831 | fi |
b57f37fb | 12832 | |
042acc47 | 12833 | done |
4414eb3c | 12834 | |
042acc47 WP |
12835 | for ac_func in fork vfork |
12836 | do : | |
12837 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12838 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12e39525 | 12839 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
042acc47 WP |
12840 | cat >>confdefs.h <<_ACEOF |
12841 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12842 | _ACEOF | |
4414eb3c | 12843 | |
042acc47 WP |
12844 | fi |
12845 | done | |
94b4fbf9 | 12846 | |
042acc47 WP |
12847 | if test "x$ac_cv_func_fork" = xyes; then |
12848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
12849 | $as_echo_n "checking for working fork... " >&6; } | |
12e39525 | 12850 | if ${ac_cv_func_fork_works+:} false; then : |
f030cae8 | 12851 | $as_echo_n "(cached) " >&6 |
b57f37fb | 12852 | else |
042acc47 WP |
12853 | if test "$cross_compiling" = yes; then : |
12854 | ac_cv_func_fork_works=cross | |
12855 | else | |
12856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb | 12857 | /* end confdefs.h. */ |
042acc47 | 12858 | $ac_includes_default |
b57f37fb WP |
12859 | int |
12860 | main () | |
12861 | { | |
042acc47 WP |
12862 | |
12863 | /* By Ruediger Kuhlmann. */ | |
12864 | return fork () < 0; | |
12865 | ||
b57f37fb WP |
12866 | ; |
12867 | return 0; | |
12868 | } | |
12869 | _ACEOF | |
042acc47 WP |
12870 | if ac_fn_c_try_run "$LINENO"; then : |
12871 | ac_cv_func_fork_works=yes | |
b57f37fb | 12872 | else |
042acc47 | 12873 | ac_cv_func_fork_works=no |
b57f37fb | 12874 | fi |
042acc47 WP |
12875 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12876 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b57f37fb | 12877 | fi |
b57f37fb WP |
12878 | |
12879 | fi | |
042acc47 WP |
12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
12881 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
b57f37fb | 12882 | |
042acc47 WP |
12883 | else |
12884 | ac_cv_func_fork_works=$ac_cv_func_fork | |
12885 | fi | |
12886 | if test "x$ac_cv_func_fork_works" = xcross; then | |
12887 | case $host in | |
12888 | *-*-amigaos* | *-*-msdosdjgpp*) | |
12889 | # Override, as these systems have only a dummy fork() stub | |
12890 | ac_cv_func_fork_works=no | |
12891 | ;; | |
12892 | *) | |
12893 | ac_cv_func_fork_works=yes | |
12894 | ;; | |
12895 | esac | |
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
12897 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
12898 | fi | |
12899 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
12900 | if test "x$ac_cv_func_vfork" = xyes; then | |
12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
12902 | $as_echo_n "checking for working vfork... " >&6; } | |
12e39525 | 12903 | if ${ac_cv_func_vfork_works+:} false; then : |
f030cae8 | 12904 | $as_echo_n "(cached) " >&6 |
b57f37fb | 12905 | else |
042acc47 WP |
12906 | if test "$cross_compiling" = yes; then : |
12907 | ac_cv_func_vfork_works=cross | |
12908 | else | |
12909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb | 12910 | /* end confdefs.h. */ |
042acc47 WP |
12911 | /* Thanks to Paul Eggert for this test. */ |
12912 | $ac_includes_default | |
12913 | #include <sys/wait.h> | |
12914 | #ifdef HAVE_VFORK_H | |
12915 | # include <vfork.h> | |
12916 | #endif | |
12917 | /* On some sparc systems, changes by the child to local and incoming | |
12918 | argument registers are propagated back to the parent. The compiler | |
12919 | is told about this with #include <vfork.h>, but some compilers | |
12920 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
12921 | static variable whose address is put into a register that is | |
12922 | clobbered by the vfork. */ | |
12923 | static void | |
b57f37fb | 12924 | #ifdef __cplusplus |
042acc47 WP |
12925 | sparc_address_test (int arg) |
12926 | # else | |
12927 | sparc_address_test (arg) int arg; | |
b57f37fb | 12928 | #endif |
042acc47 WP |
12929 | { |
12930 | static pid_t child; | |
12931 | if (!child) { | |
12932 | child = vfork (); | |
12933 | if (child < 0) { | |
12934 | perror ("vfork"); | |
12935 | _exit(2); | |
12936 | } | |
12937 | if (!child) { | |
12938 | arg = getpid(); | |
12939 | write(-1, "", 0); | |
12940 | _exit (arg); | |
12941 | } | |
12942 | } | |
12943 | } | |
12944 | ||
b57f37fb WP |
12945 | int |
12946 | main () | |
12947 | { | |
042acc47 WP |
12948 | pid_t parent = getpid (); |
12949 | pid_t child; | |
12950 | ||
12951 | sparc_address_test (0); | |
12952 | ||
12953 | child = vfork (); | |
12954 | ||
12955 | if (child == 0) { | |
12956 | /* Here is another test for sparc vfork register problems. This | |
12957 | test uses lots of local variables, at least as many local | |
12958 | variables as main has allocated so far including compiler | |
12959 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
12960 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
12961 | reuse the register of parent for one of the local variables, | |
12962 | since it will think that parent can't possibly be used any more | |
12963 | in this routine. Assigning to the local variable will thus | |
12964 | munge parent in the parent process. */ | |
12965 | pid_t | |
12966 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
12967 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
12968 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
12969 | use the same hardware register for all 8 local variables. */ | |
12970 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
12971 | || p != p5 || p != p6 || p != p7) | |
12972 | _exit(1); | |
b57f37fb | 12973 | |
042acc47 WP |
12974 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
12975 | from child file descriptors. If the child closes a descriptor | |
12976 | before it execs or exits, this munges the parent's descriptor | |
12977 | as well. Test for this by closing stdout in the child. */ | |
12978 | _exit(close(fileno(stdout)) != 0); | |
12979 | } else { | |
12980 | int status; | |
12981 | struct stat st; | |
b57f37fb | 12982 | |
042acc47 WP |
12983 | while (wait(&status) != child) |
12984 | ; | |
12985 | return ( | |
12986 | /* Was there some problem with vforking? */ | |
12987 | child < 0 | |
b57f37fb | 12988 | |
042acc47 WP |
12989 | /* Did the child fail? (This shouldn't happen.) */ |
12990 | || status | |
12991 | ||
12992 | /* Did the vfork/compiler bug occur? */ | |
12993 | || parent != getpid() | |
12994 | ||
12995 | /* Did the file descriptor bug occur? */ | |
12996 | || fstat(fileno(stdout), &st) != 0 | |
12997 | ); | |
12998 | } | |
12999 | } | |
13000 | _ACEOF | |
13001 | if ac_fn_c_try_run "$LINENO"; then : | |
13002 | ac_cv_func_vfork_works=yes | |
b57f37fb | 13003 | else |
042acc47 | 13004 | ac_cv_func_vfork_works=no |
b57f37fb | 13005 | fi |
042acc47 WP |
13006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13007 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b57f37fb | 13008 | fi |
b57f37fb | 13009 | |
042acc47 WP |
13010 | fi |
13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
13012 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
b57f37fb | 13013 | |
042acc47 WP |
13014 | fi; |
13015 | if test "x$ac_cv_func_fork_works" = xcross; then | |
13016 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
13018 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
b57f37fb WP |
13019 | fi |
13020 | ||
042acc47 WP |
13021 | if test "x$ac_cv_func_vfork_works" = xyes; then |
13022 | ||
13023 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
b57f37fb | 13024 | |
b57f37fb | 13025 | else |
b57f37fb | 13026 | |
042acc47 | 13027 | $as_echo "#define vfork fork" >>confdefs.h |
b57f37fb WP |
13028 | |
13029 | fi | |
042acc47 WP |
13030 | if test "x$ac_cv_func_fork_works" = xyes; then |
13031 | ||
13032 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
b57f37fb | 13033 | |
b57f37fb | 13034 | fi |
042acc47 | 13035 | |
1800d973 WP |
13036 | |
13037 | ||
13038 | ||
13039 | for ac_header in $ac_header_list | |
042acc47 WP |
13040 | do : |
13041 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
1800d973 WP |
13042 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
13043 | " | |
12e39525 | 13044 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
042acc47 WP |
13045 | cat >>confdefs.h <<_ACEOF |
13046 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13047 | _ACEOF | |
13048 | ||
b57f37fb | 13049 | fi |
b57f37fb | 13050 | |
042acc47 WP |
13051 | done |
13052 | ||
1800d973 WP |
13053 | |
13054 | ||
13055 | ||
13056 | ||
13057 | ||
13058 | ||
13059 | ||
042acc47 WP |
13060 | for ac_func in getpagesize |
13061 | do : | |
13062 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
12e39525 | 13063 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
042acc47 WP |
13064 | cat >>confdefs.h <<_ACEOF |
13065 | #define HAVE_GETPAGESIZE 1 | |
b57f37fb WP |
13066 | _ACEOF |
13067 | ||
13068 | fi | |
042acc47 | 13069 | done |
b57f37fb | 13070 | |
042acc47 WP |
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
13072 | $as_echo_n "checking for working mmap... " >&6; } | |
12e39525 | 13073 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
f030cae8 | 13074 | $as_echo_n "(cached) " >&6 |
b57f37fb | 13075 | else |
042acc47 WP |
13076 | if test "$cross_compiling" = yes; then : |
13077 | ac_cv_func_mmap_fixed_mapped=no | |
13078 | else | |
13079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb | 13080 | /* end confdefs.h. */ |
042acc47 WP |
13081 | $ac_includes_default |
13082 | /* malloc might have been renamed as rpl_malloc. */ | |
13083 | #undef malloc | |
b57f37fb | 13084 | |
042acc47 WP |
13085 | /* Thanks to Mike Haertel and Jim Avera for this test. |
13086 | Here is a matrix of mmap possibilities: | |
13087 | mmap private not fixed | |
13088 | mmap private fixed at somewhere currently unmapped | |
13089 | mmap private fixed at somewhere already mapped | |
13090 | mmap shared not fixed | |
13091 | mmap shared fixed at somewhere currently unmapped | |
13092 | mmap shared fixed at somewhere already mapped | |
13093 | For private mappings, we should verify that changes cannot be read() | |
13094 | back from the file, nor mmap's back from the file at a different | |
13095 | address. (There have been systems where private was not correctly | |
13096 | implemented like the infamous i386 svr4.0, and systems where the | |
13097 | VM page cache was not coherent with the file system buffer cache | |
13098 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
13099 | For shared mappings, we should conversely verify that changes get | |
13100 | propagated back to all the places they're supposed to be. | |
13101 | ||
13102 | Grep wants private fixed already mapped. | |
13103 | The main things grep needs to know about mmap are: | |
13104 | * does it exist and is it safe to write into the mmap'd area | |
13105 | * how to use it (BSD variants) */ | |
13106 | ||
13107 | #include <fcntl.h> | |
13108 | #include <sys/mman.h> | |
13109 | ||
13110 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
13111 | char *malloc (); | |
b57f37fb | 13112 | #endif |
042acc47 WP |
13113 | |
13114 | /* This mess was copied from the GNU getpagesize.h. */ | |
13115 | #ifndef HAVE_GETPAGESIZE | |
042acc47 WP |
13116 | # ifdef _SC_PAGESIZE |
13117 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
13118 | # else /* no _SC_PAGESIZE */ | |
13119 | # ifdef HAVE_SYS_PARAM_H | |
13120 | # include <sys/param.h> | |
13121 | # ifdef EXEC_PAGESIZE | |
13122 | # define getpagesize() EXEC_PAGESIZE | |
13123 | # else /* no EXEC_PAGESIZE */ | |
13124 | # ifdef NBPG | |
13125 | # define getpagesize() NBPG * CLSIZE | |
13126 | # ifndef CLSIZE | |
13127 | # define CLSIZE 1 | |
13128 | # endif /* no CLSIZE */ | |
13129 | # else /* no NBPG */ | |
13130 | # ifdef NBPC | |
13131 | # define getpagesize() NBPC | |
13132 | # else /* no NBPC */ | |
13133 | # ifdef PAGESIZE | |
13134 | # define getpagesize() PAGESIZE | |
13135 | # endif /* PAGESIZE */ | |
13136 | # endif /* no NBPC */ | |
13137 | # endif /* no NBPG */ | |
13138 | # endif /* no EXEC_PAGESIZE */ | |
13139 | # else /* no HAVE_SYS_PARAM_H */ | |
13140 | # define getpagesize() 8192 /* punt totally */ | |
13141 | # endif /* no HAVE_SYS_PARAM_H */ | |
13142 | # endif /* no _SC_PAGESIZE */ | |
13143 | ||
13144 | #endif /* no HAVE_GETPAGESIZE */ | |
13145 | ||
13146 | int | |
13147 | main () | |
b57f37fb | 13148 | { |
042acc47 | 13149 | char *data, *data2, *data3; |
12e39525 | 13150 | const char *cdata2; |
042acc47 | 13151 | int i, pagesize; |
1800d973 | 13152 | int fd, fd2; |
042acc47 WP |
13153 | |
13154 | pagesize = getpagesize (); | |
13155 | ||
13156 | /* First, make a file with some known garbage in it. */ | |
13157 | data = (char *) malloc (pagesize); | |
13158 | if (!data) | |
13159 | return 1; | |
13160 | for (i = 0; i < pagesize; ++i) | |
13161 | *(data + i) = rand (); | |
13162 | umask (0); | |
13163 | fd = creat ("conftest.mmap", 0600); | |
13164 | if (fd < 0) | |
1800d973 | 13165 | return 2; |
042acc47 | 13166 | if (write (fd, data, pagesize) != pagesize) |
1800d973 | 13167 | return 3; |
042acc47 WP |
13168 | close (fd); |
13169 | ||
1800d973 WP |
13170 | /* Next, check that the tail of a page is zero-filled. File must have |
13171 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
13172 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
13173 | if (fd2 < 0) | |
13174 | return 4; | |
12e39525 JH |
13175 | cdata2 = ""; |
13176 | if (write (fd2, cdata2, 1) != 1) | |
1800d973 | 13177 | return 5; |
12e39525 | 13178 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
1800d973 WP |
13179 | if (data2 == MAP_FAILED) |
13180 | return 6; | |
13181 | for (i = 0; i < pagesize; ++i) | |
13182 | if (*(data2 + i)) | |
13183 | return 7; | |
13184 | close (fd2); | |
13185 | if (munmap (data2, pagesize)) | |
13186 | return 8; | |
13187 | ||
042acc47 WP |
13188 | /* Next, try to mmap the file at a fixed address which already has |
13189 | something else allocated at it. If we can, also make sure that | |
13190 | we see the same garbage. */ | |
13191 | fd = open ("conftest.mmap", O_RDWR); | |
13192 | if (fd < 0) | |
1800d973 | 13193 | return 9; |
042acc47 WP |
13194 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
13195 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
1800d973 | 13196 | return 10; |
042acc47 WP |
13197 | for (i = 0; i < pagesize; ++i) |
13198 | if (*(data + i) != *(data2 + i)) | |
1800d973 | 13199 | return 11; |
042acc47 WP |
13200 | |
13201 | /* Finally, make sure that changes to the mapped area do not | |
13202 | percolate back to the file as seen by read(). (This is a bug on | |
13203 | some variants of i386 svr4.0.) */ | |
13204 | for (i = 0; i < pagesize; ++i) | |
13205 | *(data2 + i) = *(data2 + i) + 1; | |
13206 | data3 = (char *) malloc (pagesize); | |
13207 | if (!data3) | |
1800d973 | 13208 | return 12; |
042acc47 | 13209 | if (read (fd, data3, pagesize) != pagesize) |
1800d973 | 13210 | return 13; |
042acc47 WP |
13211 | for (i = 0; i < pagesize; ++i) |
13212 | if (*(data + i) != *(data3 + i)) | |
1800d973 | 13213 | return 14; |
042acc47 WP |
13214 | close (fd); |
13215 | return 0; | |
b57f37fb | 13216 | } |
b57f37fb | 13217 | _ACEOF |
042acc47 WP |
13218 | if ac_fn_c_try_run "$LINENO"; then : |
13219 | ac_cv_func_mmap_fixed_mapped=yes | |
b57f37fb | 13220 | else |
042acc47 | 13221 | ac_cv_func_mmap_fixed_mapped=no |
b57f37fb | 13222 | fi |
042acc47 WP |
13223 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13224 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b57f37fb WP |
13225 | fi |
13226 | ||
042acc47 WP |
13227 | fi |
13228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
13229 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
13230 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
b57f37fb | 13231 | |
042acc47 | 13232 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
b57f37fb WP |
13233 | |
13234 | fi | |
1800d973 | 13235 | rm -f conftest.mmap conftest.txt |
b57f37fb | 13236 | |
94b4fbf9 | 13237 | |
042acc47 WP |
13238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 |
13239 | $as_echo_n "checking for /dev/poll... " >&6; } | |
13240 | if test -c "/dev/poll"; then | |
13241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13242 | $as_echo "yes" >&6; } | |
94b4fbf9 | 13243 | |
042acc47 | 13244 | $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h |
94b4fbf9 | 13245 | |
042acc47 WP |
13246 | else |
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13248 | $as_echo "no" >&6; } | |
94b4fbf9 VY |
13249 | fi |
13250 | ||
13251 | ||
042acc47 WP |
13252 | if test "$is_mingw" = "yes"; then |
13253 | ||
13254 | $as_echo "#define HAVE_WIN32 1" >>confdefs.h | |
94b4fbf9 VY |
13255 | |
13256 | fi | |
94b4fbf9 | 13257 | |
b57f37fb | 13258 | |
042acc47 WP |
13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
13260 | $as_echo_n "checking for OpenSSL... " >&6; } | |
13261 | # Check whether --enable-openssl was given. | |
13262 | if test "${enable_openssl+set}" = set; then : | |
13263 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
b57f37fb | 13264 | else |
042acc47 | 13265 | cf_enable_openssl="auto" |
b57f37fb WP |
13266 | fi |
13267 | ||
b57f37fb | 13268 | |
042acc47 WP |
13269 | if test "$cf_enable_openssl" != "no" ; then |
13270 | cf_openssl_basedir="" | |
13271 | if test "$cf_enable_openssl" != "auto" && | |
13272 | test "$cf_enable_openssl" != "yes" ; then | |
13273 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
13274 | else | |
13275 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
13276 | /usr/local/openssl ; do | |
13277 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
13278 | cf_openssl_basedir="${dirs}" | |
13279 | break | |
13280 | fi | |
13281 | done | |
13282 | unset dirs | |
13283 | fi | |
13284 | if test ! -z "$cf_openssl_basedir"; then | |
13285 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
13286 | SSL_CFLAGS="-I${cf_openssl_basedir}/include" | |
13287 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
13288 | else | |
13289 | cf_openssl_basedir="" | |
13290 | fi | |
13291 | else | |
13292 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
13293 | cf_openssl_basedir="/usr" | |
13294 | fi | |
13295 | fi | |
b57f37fb | 13296 | |
042acc47 WP |
13297 | if test ! -z "$cf_openssl_basedir"; then |
13298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 | |
13299 | $as_echo "$cf_openssl_basedir" >&6; } | |
13300 | cf_enable_openssl="yes" | |
13301 | else | |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 | |
13303 | $as_echo "not found. Specify a correct path?" >&6; } | |
13304 | cf_enable_openssl="no" | |
13305 | fi | |
13306 | unset cf_openssl_basedir | |
13307 | else | |
13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
13309 | $as_echo "disabled" >&6; } | |
b57f37fb WP |
13310 | fi |
13311 | ||
042acc47 WP |
13312 | save_CPPFLAGS="$CPPFLAGS" |
13313 | CPPFLAGS="$CPPFLAGS $SSL_CFLAGS" | |
13314 | save_LIBS="$LIBS" | |
13315 | LIBS="$LIBS $SSL_LIBS" | |
13316 | if test "$cf_enable_openssl" != no; then | |
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5 | |
13318 | $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; } | |
13319 | if test "$cross_compiling" = yes; then : | |
13320 | cf_enable_openssl=no | |
b57f37fb | 13321 | else |
042acc47 | 13322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b57f37fb | 13323 | /* end confdefs.h. */ |
042acc47 WP |
13324 | #include <openssl/opensslv.h> |
13325 | #include <stdlib.h> | |
b57f37fb WP |
13326 | int |
13327 | main () | |
13328 | { | |
042acc47 WP |
13329 | if (OPENSSL_VERSION_NUMBER >= 0x00907000) |
13330 | exit(0); else exit(1); | |
13331 | ; | |
13332 | return 0; | |
13333 | } | |
b57f37fb | 13334 | _ACEOF |
042acc47 WP |
13335 | if ac_fn_c_try_run "$LINENO"; then : |
13336 | cf_enable_openssl=yes | |
13337 | else | |
13338 | cf_enable_openssl=no | |
13339 | fi | |
13340 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13341 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13342 | fi | |
b57f37fb WP |
13343 | |
13344 | ||
042acc47 WP |
13345 | if test "$cf_enable_openssl" != no; then |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
13347 | $as_echo "found" >&6; } | |
13348 | else | |
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 | |
13350 | $as_echo "no - OpenSSL support disabled" >&6; } | |
13351 | fi | |
b57f37fb | 13352 | |
b57f37fb | 13353 | fi |
b57f37fb | 13354 | |
042acc47 WP |
13355 | |
13356 | if test "$cf_enable_openssl" != no; then | |
13357 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5 | |
13359 | $as_echo_n "checking for RAND_status in -lcrypto... " >&6; } | |
12e39525 | 13360 | if ${ac_cv_lib_crypto_RAND_status+:} false; then : |
f030cae8 | 13361 | $as_echo_n "(cached) " >&6 |
b57f37fb | 13362 | else |
042acc47 WP |
13363 | ac_check_lib_save_LIBS=$LIBS |
13364 | LIBS="-lcrypto $LIBS" | |
13365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb | 13366 | /* end confdefs.h. */ |
b57f37fb WP |
13367 | |
13368 | /* Override any GCC internal prototype to avoid an error. | |
13369 | Use char because int might match the return type of a GCC | |
13370 | builtin and then its argument prototype would still apply. */ | |
13371 | #ifdef __cplusplus | |
13372 | extern "C" | |
13373 | #endif | |
042acc47 | 13374 | char RAND_status (); |
b57f37fb WP |
13375 | int |
13376 | main () | |
13377 | { | |
042acc47 | 13378 | return RAND_status (); |
b57f37fb WP |
13379 | ; |
13380 | return 0; | |
13381 | } | |
13382 | _ACEOF | |
042acc47 WP |
13383 | if ac_fn_c_try_link "$LINENO"; then : |
13384 | ac_cv_lib_crypto_RAND_status=yes | |
b57f37fb | 13385 | else |
042acc47 | 13386 | ac_cv_lib_crypto_RAND_status=no |
b57f37fb | 13387 | fi |
042acc47 WP |
13388 | rm -f core conftest.err conftest.$ac_objext \ |
13389 | conftest$ac_exeext conftest.$ac_ext | |
13390 | LIBS=$ac_check_lib_save_LIBS | |
b57f37fb | 13391 | fi |
042acc47 WP |
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5 |
13393 | $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; } | |
12e39525 | 13394 | if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then : |
042acc47 WP |
13395 | cf_enable_openssl=yes |
13396 | else | |
13397 | cf_enable_openssl=no | |
b57f37fb WP |
13398 | fi |
13399 | ||
b57f37fb WP |
13400 | fi |
13401 | ||
042acc47 WP |
13402 | if test "$cf_enable_openssl" != no; then |
13403 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5 | |
13405 | $as_echo_n "checking for SSL_read in -lssl... " >&6; } | |
12e39525 | 13406 | if ${ac_cv_lib_ssl_SSL_read+:} false; then : |
f030cae8 | 13407 | $as_echo_n "(cached) " >&6 |
b57f37fb | 13408 | else |
042acc47 WP |
13409 | ac_check_lib_save_LIBS=$LIBS |
13410 | LIBS="-lssl -lcrypto $LIBS" | |
13411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b57f37fb | 13412 | /* end confdefs.h. */ |
b57f37fb | 13413 | |
042acc47 WP |
13414 | /* Override any GCC internal prototype to avoid an error. |
13415 | Use char because int might match the return type of a GCC | |
13416 | builtin and then its argument prototype would still apply. */ | |
13417 | #ifdef __cplusplus | |
13418 | extern "C" | |
13419 | #endif | |
13420 | char SSL_read (); | |
b57f37fb WP |
13421 | int |
13422 | main () | |
13423 | { | |
042acc47 WP |
13424 | return SSL_read (); |
13425 | ; | |
13426 | return 0; | |
b57f37fb WP |
13427 | } |
13428 | _ACEOF | |
042acc47 WP |
13429 | if ac_fn_c_try_link "$LINENO"; then : |
13430 | ac_cv_lib_ssl_SSL_read=yes | |
b57f37fb | 13431 | else |
042acc47 | 13432 | ac_cv_lib_ssl_SSL_read=no |
b57f37fb | 13433 | fi |
042acc47 WP |
13434 | rm -f core conftest.err conftest.$ac_objext \ |
13435 | conftest$ac_exeext conftest.$ac_ext | |
13436 | LIBS=$ac_check_lib_save_LIBS | |
13437 | fi | |
13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5 | |
13439 | $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; } | |
12e39525 | 13440 | if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then : |
042acc47 WP |
13441 | SSL_LIBS="$SSL_LIBS -lssl -lcrypto" |
13442 | else | |
13443 | cf_enable_openssl=no | |
b57f37fb | 13444 | fi |
b57f37fb WP |
13445 | |
13446 | fi | |
b57f37fb | 13447 | |
b57f37fb WP |
13448 | |
13449 | ||
042acc47 WP |
13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5 |
13451 | $as_echo_n "checking for GnuTLS... " >&6; } | |
13452 | # Check whether --enable-gnutls was given. | |
13453 | if test "${enable_gnutls+set}" = set; then : | |
13454 | enableval=$enable_gnutls; cf_enable_gnutls=$enableval | |
13455 | else | |
13456 | cf_enable_gnutls="auto" | |
b57f37fb WP |
13457 | fi |
13458 | ||
13459 | ||
042acc47 WP |
13460 | if test "$cf_enable_gnutls" != no; then |
13461 | ||
13462 | ||
13463 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
13464 | if test -n "$ac_tool_prefix"; then | |
13465 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
13466 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13468 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 13469 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
f030cae8 | 13470 | $as_echo_n "(cached) " >&6 |
b57f37fb | 13471 | else |
042acc47 WP |
13472 | case $PKG_CONFIG in |
13473 | [\\/]* | ?:[\\/]*) | |
13474 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13475 | ;; | |
13476 | *) | |
13477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13478 | for as_dir in $PATH | |
13479 | do | |
13480 | IFS=$as_save_IFS | |
13481 | test -z "$as_dir" && as_dir=. | |
13482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13484 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
13485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13486 | break 2 | |
13487 | fi | |
13488 | done | |
13489 | done | |
13490 | IFS=$as_save_IFS | |
13491 | ||
13492 | ;; | |
b57f37fb | 13493 | esac |
042acc47 WP |
13494 | fi |
13495 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
13496 | if test -n "$PKG_CONFIG"; then | |
13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
13498 | $as_echo "$PKG_CONFIG" >&6; } | |
b57f37fb | 13499 | else |
042acc47 WP |
13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13501 | $as_echo "no" >&6; } | |
13502 | fi | |
13503 | ||
b57f37fb | 13504 | |
b57f37fb | 13505 | fi |
042acc47 WP |
13506 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
13507 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
13508 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13509 | set dummy pkg-config; ac_word=$2 | |
13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13511 | $as_echo_n "checking for $ac_word... " >&6; } | |
12e39525 | 13512 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
042acc47 WP |
13513 | $as_echo_n "(cached) " >&6 |
13514 | else | |
13515 | case $ac_pt_PKG_CONFIG in | |
13516 | [\\/]* | ?:[\\/]*) | |
13517 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
13518 | ;; | |
13519 | *) | |
13520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13521 | for as_dir in $PATH | |
13522 | do | |
13523 | IFS=$as_save_IFS | |
13524 | test -z "$as_dir" && as_dir=. | |
13525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13527 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
13528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13529 | break 2 | |
13530 | fi | |
13531 | done | |
13532 | done | |
13533 | IFS=$as_save_IFS | |
b57f37fb | 13534 | |
042acc47 WP |
13535 | ;; |
13536 | esac | |
13537 | fi | |
13538 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
13539 | if test -n "$ac_pt_PKG_CONFIG"; then | |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
13541 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
13542 | else | |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13544 | $as_echo "no" >&6; } | |
13545 | fi | |
b57f37fb | 13546 | |
042acc47 WP |
13547 | if test "x$ac_pt_PKG_CONFIG" = x; then |
13548 | PKG_CONFIG="" | |
13549 | else | |
13550 | case $cross_compiling:$ac_tool_warned in | |
13551 | yes:) | |
13552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13553 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13554 | ac_tool_warned=yes ;; | |
b57f37fb | 13555 | esac |
042acc47 WP |
13556 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
13557 | fi | |
b57f37fb | 13558 | else |
042acc47 WP |
13559 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
13560 | fi | |
b57f37fb | 13561 | |
b57f37fb | 13562 | fi |
042acc47 WP |
13563 | if test -n "$PKG_CONFIG"; then |
13564 | _pkg_min_version=0.9.0 | |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
13566 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
13567 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13569 | $as_echo "yes" >&6; } | |
13570 | else | |
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13572 | $as_echo "no" >&6; } | |
13573 | PKG_CONFIG="" | |
13574 | fi | |
b57f37fb | 13575 | |
042acc47 | 13576 | fi |
b57f37fb | 13577 | |
042acc47 WP |
13578 | pkg_failed=no |
13579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 | |
13580 | $as_echo_n "checking for GNUTLS... " >&6; } | |
b57f37fb | 13581 | |
1800d973 WP |
13582 | if test -n "$GNUTLS_CFLAGS"; then |
13583 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" | |
13584 | elif test -n "$PKG_CONFIG"; then | |
13585 | if test -n "$PKG_CONFIG" && \ | |
042acc47 WP |
13586 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 |
13587 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
13588 | ac_status=$? | |
13589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13590 | test $ac_status = 0; }; then | |
13591 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` | |
b57f37fb | 13592 | else |
042acc47 | 13593 | pkg_failed=yes |
b57f37fb | 13594 | fi |
1800d973 WP |
13595 | else |
13596 | pkg_failed=untried | |
b57f37fb | 13597 | fi |
1800d973 WP |
13598 | if test -n "$GNUTLS_LIBS"; then |
13599 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" | |
13600 | elif test -n "$PKG_CONFIG"; then | |
13601 | if test -n "$PKG_CONFIG" && \ | |
042acc47 WP |
13602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 |
13603 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
13604 | ac_status=$? | |
13605 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13606 | test $ac_status = 0; }; then | |
13607 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` | |
13608 | else | |
13609 | pkg_failed=yes | |
13610 | fi | |
1800d973 WP |
13611 | else |
13612 | pkg_failed=untried | |
b57f37fb WP |
13613 | fi |
13614 | ||
b57f37fb WP |
13615 | |
13616 | ||
042acc47 | 13617 | if test $pkg_failed = yes; then |
b57f37fb | 13618 | |
042acc47 WP |
13619 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
13620 | _pkg_short_errors_supported=yes | |
b57f37fb | 13621 | else |
042acc47 WP |
13622 | _pkg_short_errors_supported=no |
13623 | fi | |
13624 | if test $_pkg_short_errors_supported = yes; then | |
1800d973 | 13625 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1` |
042acc47 | 13626 | else |
1800d973 | 13627 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1` |
042acc47 WP |
13628 | fi |
13629 | # Put the nasty error message in config.log where it belongs | |
13630 | echo "$GNUTLS_PKG_ERRORS" >&5 | |
b57f37fb | 13631 | |
042acc47 WP |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13633 | $as_echo "no" >&6; } | |
13634 | cf_enable_gnutls="no" | |
13635 | elif test $pkg_failed = untried; then | |
13636 | cf_enable_gnutls="no" | |
13637 | else | |
13638 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS | |
13639 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS | |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13641 | $as_echo "yes" >&6; } | |
b57f37fb | 13642 | |
042acc47 | 13643 | cf_enable_gnutls="yes" |
b57f37fb | 13644 | |
042acc47 WP |
13645 | fi |
13646 | fi | |
b57f37fb | 13647 | |
042acc47 WP |
13648 | if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then |
13649 | cf_enable_gnutls="no" | |
13650 | fi | |
b57f37fb | 13651 | |
042acc47 | 13652 | if test x"$cf_enable_openssl" != xno; then |
b57f37fb | 13653 | |
042acc47 | 13654 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
b57f37fb | 13655 | |
042acc47 WP |
13656 | GNUTLS_CFLAGS="" |
13657 | GNUTLS_LIBS="" | |
13658 | SSL_TYPE="openssl" | |
13659 | elif test x"$cf_enable_gnutls" != xno; then | |
13660 | ||
13661 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
b57f37fb | 13662 | |
042acc47 WP |
13663 | SSL_LIBS="" |
13664 | SSL_CFLAGS="" | |
13665 | SSL_TYPE="gnutls" | |
b57f37fb | 13666 | fi |
b57f37fb | 13667 | |
b57f37fb | 13668 | |
b57f37fb | 13669 | |
b57f37fb | 13670 | |
042acc47 WP |
13671 | CPPFLAGS="$save_CPPFLAGS" |
13672 | LIBS="$save_LIBS" | |
13673 | ||
13674 | ||
b57f37fb WP |
13675 | |
13676 | ||
b57f37fb | 13677 | |
b57f37fb | 13678 | |
042acc47 WP |
13679 | # Check whether --enable-assert was given. |
13680 | if test "${enable_assert+set}" = set; then : | |
13681 | enableval=$enable_assert; assert=$enableval | |
13682 | else | |
13683 | assert=no | |
13684 | fi | |
b57f37fb | 13685 | |
b57f37fb | 13686 | |
042acc47 | 13687 | if test "$assert" = no; then |
b57f37fb | 13688 | |
042acc47 | 13689 | $as_echo "#define NDEBUG 1" >>confdefs.h |
b57f37fb | 13690 | |
042acc47 | 13691 | elif test "$assert" = soft; then |
b57f37fb | 13692 | |
042acc47 | 13693 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
b57f37fb | 13694 | |
b57f37fb | 13695 | |
042acc47 | 13696 | $as_echo "#define NDEBUG 1" >>confdefs.h |
b57f37fb | 13697 | |
042acc47 WP |
13698 | elif test "$assert" = yes; then |
13699 | assert = "hard"; | |
13700 | fi | |
13701 | ||
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 | |
13703 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
13704 | # Check whether --enable-profile was given. | |
13705 | if test "${enable_profile+set}" = set; then : | |
13706 | enableval=$enable_profile; profile=$enableval | |
b57f37fb | 13707 | else |
042acc47 WP |
13708 | profile=no |
13709 | fi | |
13710 | ||
13711 | ||
13712 | if test "$profile" = yes; then | |
13713 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
13714 | CFLAGS="$CFLAGS -pg -static" | |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5 | |
13716 | $as_echo "yes, adding -pg -static" >&6; } | |
b57f37fb | 13717 | |
042acc47 WP |
13718 | $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h |
13719 | ||
13720 | else | |
13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 | |
13722 | $as_echo "no, profile builds only work with gcc" >&6; } | |
13723 | fi | |
13724 | else | |
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13726 | $as_echo "no" >&6; } | |
b57f37fb | 13727 | fi |
042acc47 WP |
13728 | |
13729 | # Check whether --enable-balloc was given. | |
13730 | if test "${enable_balloc+set}" = set; then : | |
13731 | enableval=$enable_balloc; balloc=$enableval | |
13732 | else | |
13733 | balloc=yes | |
b57f37fb WP |
13734 | fi |
13735 | ||
13736 | ||
042acc47 WP |
13737 | if test "$balloc" = no; then |
13738 | ||
13739 | $as_echo "#define NOBALLOC 1" >>confdefs.h | |
13740 | ||
b57f37fb | 13741 | fi |
b57f37fb | 13742 | |
042acc47 WP |
13743 | # Check whether --enable-warnings was given. |
13744 | if test "${enable_warnings+set}" = set; then : | |
13745 | enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable" | |
b57f37fb WP |
13746 | fi |
13747 | ||
b57f37fb | 13748 | |
b57f37fb | 13749 | |
b57f37fb | 13750 | |
b57f37fb | 13751 | |
b57f37fb | 13752 | |
b57f37fb | 13753 | |
b57f37fb WP |
13754 | |
13755 | ||
13756 | ||
042acc47 WP |
13757 | |
13758 | if test "$prefix" = "NONE"; then | |
13759 | ||
13760 | cat >>confdefs.h <<_ACEOF | |
13761 | #define RB_PREFIX "$ac_default_prefix" | |
b57f37fb | 13762 | _ACEOF |
042acc47 WP |
13763 | |
13764 | ||
b57f37fb | 13765 | else |
b57f37fb | 13766 | |
b57f37fb | 13767 | |
042acc47 | 13768 | prefix=`echo $prefix | sed 's/\/$//'` |
b57f37fb | 13769 | |
042acc47 WP |
13770 | cat >>confdefs.h <<_ACEOF |
13771 | #define RB_PREFIX "$prefix" | |
b57f37fb | 13772 | _ACEOF |
b57f37fb | 13773 | |
042acc47 | 13774 | |
b57f37fb WP |
13775 | fi |
13776 | ||
b57f37fb | 13777 | |
b57f37fb | 13778 | |
042acc47 | 13779 | ac_config_commands="$ac_config_commands include/librb-config.h" |
b57f37fb | 13780 | |
b57f37fb | 13781 | |
b57f37fb | 13782 | |
042acc47 | 13783 | ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc" |
b57f37fb WP |
13784 | |
13785 | ||
042acc47 WP |
13786 | cat >confcache <<\_ACEOF |
13787 | # This file is a shell script that caches the results of configure | |
13788 | # tests run on this system so they can be shared between configure | |
13789 | # scripts and configure runs, see configure's option --config-cache. | |
13790 | # It is not useful on other systems. If it contains results you don't | |
13791 | # want to keep, you may remove or edit it. | |
13792 | # | |
13793 | # config.status only pays attention to the cache file if you give it | |
13794 | # the --recheck option to rerun configure. | |
13795 | # | |
13796 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13797 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13798 | # following values. | |
13799 | ||
b57f37fb | 13800 | _ACEOF |
b57f37fb | 13801 | |
042acc47 WP |
13802 | # The following way of writing the cache mishandles newlines in values, |
13803 | # but we know of no workaround that is simple, portable, and efficient. | |
13804 | # So, we kill variables containing newlines. | |
13805 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13806 | # and sets the high bit in the cache file unless we assign to the vars. | |
13807 | ( | |
13808 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13809 | eval ac_val=\$$ac_var | |
13810 | case $ac_val in #( | |
13811 | *${as_nl}*) | |
13812 | case $ac_var in #( | |
13813 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
13814 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
13815 | esac | |
13816 | case $ac_var in #( | |
13817 | _ | IFS | as_nl) ;; #( | |
13818 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
13819 | *) { eval $ac_var=; unset $ac_var;} ;; | |
13820 | esac ;; | |
13821 | esac | |
13822 | done | |
13823 | ||
13824 | (set) 2>&1 | | |
13825 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
13826 | *${as_nl}ac_space=\ *) | |
13827 | # `set' does not quote correctly, so add quotes: double-quote | |
13828 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13829 | sed -n \ | |
13830 | "s/'/'\\\\''/g; | |
13831 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13832 | ;; #( | |
13833 | *) | |
13834 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13835 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
13836 | ;; | |
13837 | esac | | |
13838 | sort | |
13839 | ) | | |
13840 | sed ' | |
13841 | /^ac_cv_env_/b end | |
13842 | t clear | |
13843 | :clear | |
13844 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13845 | t end | |
13846 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13847 | :end' >>confcache | |
13848 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13849 | if test -w "$cache_file"; then | |
12e39525 | 13850 | if test "x$cache_file" != "x/dev/null"; then |
042acc47 WP |
13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
13852 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
12e39525 JH |
13853 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13854 | cat confcache >"$cache_file" | |
13855 | else | |
13856 | case $cache_file in #( | |
13857 | */* | ?:*) | |
13858 | mv -f confcache "$cache_file"$$ && | |
13859 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13860 | *) | |
13861 | mv -f confcache "$cache_file" ;; | |
13862 | esac | |
13863 | fi | |
13864 | fi | |
042acc47 WP |
13865 | else |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
13867 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13868 | fi | |
13869 | fi | |
13870 | rm -f confcache | |
13871 | ||
13872 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13873 | # Let make expand exec_prefix. | |
13874 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
b57f37fb | 13875 | |
042acc47 | 13876 | DEFS=-DHAVE_CONFIG_H |
b57f37fb | 13877 | |
042acc47 WP |
13878 | ac_libobjs= |
13879 | ac_ltlibobjs= | |
12e39525 | 13880 | U= |
042acc47 WP |
13881 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13882 | # 1. Remove the extension, and $U if already installed. | |
13883 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
13884 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13885 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13886 | # will be set to the directory where LIBOBJS objects are built. | |
13887 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
13888 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13889 | done | |
13890 | LIBOBJS=$ac_libobjs | |
b57f37fb | 13891 | |
042acc47 | 13892 | LTLIBOBJS=$ac_ltlibobjs |
b57f37fb | 13893 | |
b57f37fb | 13894 | |
042acc47 WP |
13895 | if test -n "$EXEEXT"; then |
13896 | am__EXEEXT_TRUE= | |
13897 | am__EXEEXT_FALSE='#' | |
13898 | else | |
13899 | am__EXEEXT_TRUE='#' | |
13900 | am__EXEEXT_FALSE= | |
b57f37fb WP |
13901 | fi |
13902 | ||
042acc47 | 13903 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
12e39525 | 13904 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
042acc47 | 13905 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
b57f37fb | 13906 | fi |
042acc47 | 13907 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
12e39525 | 13908 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
042acc47 WP |
13909 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13910 | fi | |
13911 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
12e39525 | 13912 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
042acc47 WP |
13913 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13914 | fi | |
6dec141a | 13915 | |
042acc47 | 13916 | if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then |
12e39525 | 13917 | as_fn_error $? "conditional \"MINGW\" was never defined. |
042acc47 | 13918 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
b57f37fb | 13919 | fi |
b57f37fb | 13920 | |
12e39525 | 13921 | : "${CONFIG_STATUS=./config.status}" |
042acc47 WP |
13922 | ac_write_fail=0 |
13923 | ac_clean_files_save=$ac_clean_files | |
13924 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
13926 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13927 | as_write_fail=0 | |
13928 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13929 | #! $SHELL | |
13930 | # Generated by $as_me. | |
13931 | # Run this file to recreate the current configuration. | |
13932 | # Compiler output produced by configure, useful for debugging | |
13933 | # configure, is in config.log if it exists. | |
b57f37fb | 13934 | |
042acc47 WP |
13935 | debug=false |
13936 | ac_cs_recheck=false | |
13937 | ac_cs_silent=false | |
b57f37fb | 13938 | |
042acc47 WP |
13939 | SHELL=\${CONFIG_SHELL-$SHELL} |
13940 | export SHELL | |
13941 | _ASEOF | |
13942 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13943 | ## -------------------- ## | |
13944 | ## M4sh Initialization. ## | |
13945 | ## -------------------- ## | |
b57f37fb | 13946 | |
042acc47 WP |
13947 | # Be more Bourne compatible |
13948 | DUALCASE=1; export DUALCASE # for MKS sh | |
13949 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13950 | emulate sh | |
13951 | NULLCMD=: | |
13952 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13953 | # is contrary to our usage. Disable this feature. | |
13954 | alias -g '${1+"$@"}'='"$@"' | |
13955 | setopt NO_GLOB_SUBST | |
13956 | else | |
13957 | case `(set -o) 2>/dev/null` in #( | |
13958 | *posix*) : | |
13959 | set -o posix ;; #( | |
13960 | *) : | |
13961 | ;; | |
13962 | esac | |
13963 | fi | |
b57f37fb | 13964 | |
b57f37fb | 13965 | |
042acc47 WP |
13966 | as_nl=' |
13967 | ' | |
13968 | export as_nl | |
13969 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13970 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13971 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13972 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13973 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
13974 | # but without wasting forks for bash or zsh. | |
13975 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13976 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13977 | as_echo='print -r --' | |
13978 | as_echo_n='print -rn --' | |
13979 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13980 | as_echo='printf %s\n' | |
13981 | as_echo_n='printf %s' | |
b57f37fb | 13982 | else |
042acc47 WP |
13983 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
13984 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13985 | as_echo_n='/usr/ucb/echo -n' | |
13986 | else | |
13987 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13988 | as_echo_n_body='eval | |
13989 | arg=$1; | |
13990 | case $arg in #( | |
13991 | *"$as_nl"*) | |
13992 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13993 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13994 | esac; | |
13995 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13996 | ' | |
13997 | export as_echo_n_body | |
13998 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13999 | fi | |
14000 | export as_echo_body | |
14001 | as_echo='sh -c $as_echo_body as_echo' | |
b57f37fb | 14002 | fi |
042acc47 WP |
14003 | |
14004 | # The user is always right. | |
14005 | if test "${PATH_SEPARATOR+set}" != set; then | |
14006 | PATH_SEPARATOR=: | |
14007 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14008 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14009 | PATH_SEPARATOR=';' | |
14010 | } | |
b57f37fb WP |
14011 | fi |
14012 | ||
14013 | ||
042acc47 WP |
14014 | # IFS |
14015 | # We need space, tab and new line, in precisely that order. Quoting is | |
14016 | # there to prevent editors from complaining about space-tab. | |
14017 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14018 | # splitting by setting IFS to empty value.) | |
14019 | IFS=" "" $as_nl" | |
b57f37fb | 14020 | |
042acc47 | 14021 | # Find who we are. Look in the path if we contain no directory separator. |
12e39525 | 14022 | as_myself= |
042acc47 WP |
14023 | case $0 in #(( |
14024 | *[\\/]* ) as_myself=$0 ;; | |
14025 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14026 | for as_dir in $PATH | |
14027 | do | |
14028 | IFS=$as_save_IFS | |
14029 | test -z "$as_dir" && as_dir=. | |
14030 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14031 | done | |
14032 | IFS=$as_save_IFS | |
b57f37fb | 14033 | |
042acc47 WP |
14034 | ;; |
14035 | esac | |
14036 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14037 | # in which case we are not to be found in the path. | |
14038 | if test "x$as_myself" = x; then | |
14039 | as_myself=$0 | |
14040 | fi | |
14041 | if test ! -f "$as_myself"; then | |
14042 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14043 | exit 1 | |
b57f37fb | 14044 | fi |
b57f37fb | 14045 | |
042acc47 WP |
14046 | # Unset variables that we do not need and which cause bugs (e.g. in |
14047 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14048 | # suppresses any "Segmentation fault" message there. '((' could | |
14049 | # trigger a bug in pdksh 5.2.14. | |
14050 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14051 | do eval test x\${$as_var+set} = xset \ | |
14052 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14053 | done | |
14054 | PS1='$ ' | |
14055 | PS2='> ' | |
14056 | PS4='+ ' | |
b57f37fb | 14057 | |
042acc47 WP |
14058 | # NLS nuisances. |
14059 | LC_ALL=C | |
14060 | export LC_ALL | |
14061 | LANGUAGE=C | |
14062 | export LANGUAGE | |
b57f37fb | 14063 | |
042acc47 WP |
14064 | # CDPATH. |
14065 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
b57f37fb | 14066 | |
b57f37fb | 14067 | |
12e39525 JH |
14068 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14069 | # ---------------------------------------- | |
042acc47 WP |
14070 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14071 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12e39525 | 14072 | # script with STATUS, using 1 if that was 0. |
042acc47 WP |
14073 | as_fn_error () |
14074 | { | |
12e39525 JH |
14075 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14076 | if test "$4"; then | |
14077 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14078 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
042acc47 | 14079 | fi |
12e39525 | 14080 | $as_echo "$as_me: error: $2" >&2 |
042acc47 WP |
14081 | as_fn_exit $as_status |
14082 | } # as_fn_error | |
b57f37fb | 14083 | |
b57f37fb | 14084 | |
042acc47 WP |
14085 | # as_fn_set_status STATUS |
14086 | # ----------------------- | |
14087 | # Set $? to STATUS, without forking. | |
14088 | as_fn_set_status () | |
14089 | { | |
14090 | return $1 | |
14091 | } # as_fn_set_status | |
14092 | ||
14093 | # as_fn_exit STATUS | |
14094 | # ----------------- | |
14095 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14096 | as_fn_exit () | |
14097 | { | |
14098 | set +e | |
14099 | as_fn_set_status $1 | |
14100 | exit $1 | |
14101 | } # as_fn_exit | |
14102 | ||
14103 | # as_fn_unset VAR | |
14104 | # --------------- | |
14105 | # Portably unset VAR. | |
14106 | as_fn_unset () | |
14107 | { | |
14108 | { eval $1=; unset $1;} | |
14109 | } | |
14110 | as_unset=as_fn_unset | |
14111 | # as_fn_append VAR VALUE | |
14112 | # ---------------------- | |
14113 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14114 | # advantage of any shell optimizations that allow amortized linear growth over | |
14115 | # repeated appends, instead of the typical quadratic growth present in naive | |
14116 | # implementations. | |
14117 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14118 | eval 'as_fn_append () | |
14119 | { | |
14120 | eval $1+=\$2 | |
14121 | }' | |
14122 | else | |
14123 | as_fn_append () | |
14124 | { | |
14125 | eval $1=\$$1\$2 | |
14126 | } | |
14127 | fi # as_fn_append | |
14128 | ||
14129 | # as_fn_arith ARG... | |
14130 | # ------------------ | |
14131 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14132 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14133 | # must be portable across $(()) and expr. | |
14134 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14135 | eval 'as_fn_arith () | |
14136 | { | |
14137 | as_val=$(( $* )) | |
14138 | }' | |
14139 | else | |
14140 | as_fn_arith () | |
14141 | { | |
14142 | as_val=`expr "$@" || test $? -eq 1` | |
14143 | } | |
14144 | fi # as_fn_arith | |
14145 | ||
b57f37fb | 14146 | |
042acc47 WP |
14147 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14148 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
14149 | as_expr=expr | |
14150 | else | |
14151 | as_expr=false | |
b57f37fb WP |
14152 | fi |
14153 | ||
042acc47 WP |
14154 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
14155 | as_basename=basename | |
14156 | else | |
14157 | as_basename=false | |
14158 | fi | |
b57f37fb | 14159 | |
042acc47 WP |
14160 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14161 | as_dirname=dirname | |
b57f37fb | 14162 | else |
042acc47 | 14163 | as_dirname=false |
b57f37fb WP |
14164 | fi |
14165 | ||
042acc47 WP |
14166 | as_me=`$as_basename -- "$0" || |
14167 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14168 | X"$0" : 'X\(//\)$' \| \ | |
14169 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
14170 | $as_echo X/"$0" | | |
14171 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14172 | s//\1/ | |
14173 | q | |
14174 | } | |
14175 | /^X\/\(\/\/\)$/{ | |
14176 | s//\1/ | |
14177 | q | |
14178 | } | |
14179 | /^X\/\(\/\).*/{ | |
14180 | s//\1/ | |
14181 | q | |
14182 | } | |
14183 | s/.*/./; q'` | |
b57f37fb | 14184 | |
042acc47 WP |
14185 | # Avoid depending upon Character Ranges. |
14186 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14187 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14188 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14189 | as_cr_digits='0123456789' | |
14190 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b57f37fb | 14191 | |
042acc47 WP |
14192 | ECHO_C= ECHO_N= ECHO_T= |
14193 | case `echo -n x` in #((((( | |
14194 | -n*) | |
14195 | case `echo 'xy\c'` in | |
14196 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14197 | xy) ECHO_C='\c';; | |
14198 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14199 | ECHO_T=' ';; | |
14200 | esac;; | |
14201 | *) | |
14202 | ECHO_N='-n';; | |
14203 | esac | |
14204 | ||
14205 | rm -f conf$$ conf$$.exe conf$$.file | |
14206 | if test -d conf$$.dir; then | |
14207 | rm -f conf$$.dir/conf$$.file | |
b57f37fb | 14208 | else |
042acc47 WP |
14209 | rm -f conf$$.dir |
14210 | mkdir conf$$.dir 2>/dev/null | |
b57f37fb | 14211 | fi |
042acc47 WP |
14212 | if (echo >conf$$.file) 2>/dev/null; then |
14213 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14214 | as_ln_s='ln -s' | |
14215 | # ... but there are two gotchas: | |
14216 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14217 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14218 | # In both cases, we have to default to `cp -p'. | |
14219 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14220 | as_ln_s='cp -p' | |
14221 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14222 | as_ln_s=ln | |
14223 | else | |
14224 | as_ln_s='cp -p' | |
14225 | fi | |
b57f37fb | 14226 | else |
042acc47 WP |
14227 | as_ln_s='cp -p' |
14228 | fi | |
14229 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
14230 | rmdir conf$$.dir 2>/dev/null | |
14231 | ||
14232 | ||
14233 | # as_fn_mkdir_p | |
14234 | # ------------- | |
14235 | # Create "$as_dir" as a directory, including parents if necessary. | |
14236 | as_fn_mkdir_p () | |
b57f37fb | 14237 | { |
b57f37fb | 14238 | |
042acc47 WP |
14239 | case $as_dir in #( |
14240 | -*) as_dir=./$as_dir;; | |
14241 | esac | |
14242 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14243 | as_dirs= | |
14244 | while :; do | |
14245 | case $as_dir in #( | |
14246 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14247 | *) as_qdir=$as_dir;; | |
14248 | esac | |
14249 | as_dirs="'$as_qdir' $as_dirs" | |
14250 | as_dir=`$as_dirname -- "$as_dir" || | |
14251 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14252 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14253 | X"$as_dir" : 'X\(//\)$' \| \ | |
14254 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14255 | $as_echo X"$as_dir" | | |
14256 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14257 | s//\1/ | |
14258 | q | |
14259 | } | |
14260 | /^X\(\/\/\)[^/].*/{ | |
14261 | s//\1/ | |
14262 | q | |
14263 | } | |
14264 | /^X\(\/\/\)$/{ | |
14265 | s//\1/ | |
14266 | q | |
14267 | } | |
14268 | /^X\(\/\).*/{ | |
14269 | s//\1/ | |
14270 | q | |
14271 | } | |
14272 | s/.*/./; q'` | |
14273 | test -d "$as_dir" && break | |
14274 | done | |
14275 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12e39525 | 14276 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
042acc47 WP |
14277 | |
14278 | ||
14279 | } # as_fn_mkdir_p | |
14280 | if mkdir -p . 2>/dev/null; then | |
14281 | as_mkdir_p='mkdir -p "$as_dir"' | |
14282 | else | |
14283 | test -d ./-p && rmdir ./-p | |
14284 | as_mkdir_p=false | |
b57f37fb | 14285 | fi |
042acc47 WP |
14286 | |
14287 | if test -x / >/dev/null 2>&1; then | |
14288 | as_test_x='test -x' | |
14289 | else | |
14290 | if ls -dL / >/dev/null 2>&1; then | |
14291 | as_ls_L_option=L | |
14292 | else | |
14293 | as_ls_L_option= | |
14294 | fi | |
14295 | as_test_x=' | |
14296 | eval sh -c '\'' | |
14297 | if test -d "$1"; then | |
14298 | test -d "$1/."; | |
14299 | else | |
14300 | case $1 in #( | |
14301 | -*)set "./$1";; | |
14302 | esac; | |
14303 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14304 | ???[sx]*):;;*)false;;esac;fi | |
14305 | '\'' sh | |
14306 | ' | |
b57f37fb | 14307 | fi |
042acc47 | 14308 | as_executable_p=$as_test_x |
b57f37fb | 14309 | |
042acc47 WP |
14310 | # Sed expression to map a string onto a valid CPP name. |
14311 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
b57f37fb | 14312 | |
042acc47 WP |
14313 | # Sed expression to map a string onto a valid variable name. |
14314 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
b57f37fb | 14315 | |
b57f37fb | 14316 | |
042acc47 WP |
14317 | exec 6>&1 |
14318 | ## ----------------------------------- ## | |
14319 | ## Main body of $CONFIG_STATUS script. ## | |
14320 | ## ----------------------------------- ## | |
14321 | _ASEOF | |
14322 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
b57f37fb | 14323 | |
042acc47 WP |
14324 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14325 | # Save the log message, to keep $0 and so on meaningful, and to | |
14326 | # report actual input values of CONFIG_FILES etc. instead of their | |
14327 | # values after options handling. | |
14328 | ac_log=" | |
14329 | This file was extended by libratbox $as_me devel, which was | |
12e39525 | 14330 | generated by GNU Autoconf 2.68. Invocation command line was |
b57f37fb | 14331 | |
042acc47 WP |
14332 | CONFIG_FILES = $CONFIG_FILES |
14333 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14334 | CONFIG_LINKS = $CONFIG_LINKS | |
14335 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14336 | $ $0 $@ | |
14337 | ||
14338 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
14339 | " | |
b57f37fb | 14340 | |
b57f37fb | 14341 | _ACEOF |
042acc47 WP |
14342 | |
14343 | case $ac_config_files in *" | |
14344 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
b57f37fb | 14345 | esac |
b57f37fb | 14346 | |
042acc47 WP |
14347 | case $ac_config_headers in *" |
14348 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14349 | esac | |
b57f37fb | 14350 | |
b57f37fb | 14351 | |
042acc47 WP |
14352 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14353 | # Files that config.status was made for. | |
14354 | config_files="$ac_config_files" | |
14355 | config_headers="$ac_config_headers" | |
14356 | config_commands="$ac_config_commands" | |
b57f37fb | 14357 | |
b57f37fb | 14358 | _ACEOF |
b57f37fb | 14359 | |
042acc47 WP |
14360 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14361 | ac_cs_usage="\ | |
14362 | \`$as_me' instantiates files and other configuration actions | |
14363 | from templates according to the current configuration. Unless the files | |
14364 | and actions are specified as TAGs, all are instantiated by default. | |
14365 | ||
14366 | Usage: $0 [OPTION]... [TAG]... | |
14367 | ||
14368 | -h, --help print this help, then exit | |
14369 | -V, --version print version number and configuration settings, then exit | |
1800d973 | 14370 | --config print configuration, then exit |
042acc47 WP |
14371 | -q, --quiet, --silent |
14372 | do not print progress messages | |
14373 | -d, --debug don't remove temporary files | |
14374 | --recheck update $as_me by reconfiguring in the same conditions | |
14375 | --file=FILE[:TEMPLATE] | |
14376 | instantiate the configuration file FILE | |
14377 | --header=FILE[:TEMPLATE] | |
14378 | instantiate the configuration header FILE | |
14379 | ||
14380 | Configuration files: | |
14381 | $config_files | |
14382 | ||
14383 | Configuration headers: | |
14384 | $config_headers | |
14385 | ||
14386 | Configuration commands: | |
14387 | $config_commands | |
14388 | ||
14389 | Report bugs to the package provider." | |
14390 | ||
b57f37fb | 14391 | _ACEOF |
042acc47 | 14392 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1800d973 | 14393 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
042acc47 WP |
14394 | ac_cs_version="\\ |
14395 | libratbox config.status devel | |
12e39525 | 14396 | configured by $0, generated by GNU Autoconf 2.68, |
1800d973 | 14397 | with options \\"\$ac_cs_config\\" |
b57f37fb | 14398 | |
12e39525 | 14399 | Copyright (C) 2010 Free Software Foundation, Inc. |
042acc47 WP |
14400 | This config.status script is free software; the Free Software Foundation |
14401 | gives unlimited permission to copy, distribute and modify it." | |
b57f37fb | 14402 | |
042acc47 WP |
14403 | ac_pwd='$ac_pwd' |
14404 | srcdir='$srcdir' | |
14405 | INSTALL='$INSTALL' | |
14406 | MKDIR_P='$MKDIR_P' | |
14407 | AWK='$AWK' | |
14408 | test -n "\$AWK" || AWK=awk | |
14409 | _ACEOF | |
b57f37fb | 14410 | |
042acc47 WP |
14411 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14412 | # The default lists apply if the user does not specify any file. | |
14413 | ac_need_defaults=: | |
14414 | while test $# != 0 | |
14415 | do | |
14416 | case $1 in | |
12e39525 | 14417 | --*=?*) |
042acc47 WP |
14418 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14419 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
14420 | ac_shift=: | |
14421 | ;; | |
12e39525 JH |
14422 | --*=) |
14423 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14424 | ac_optarg= | |
14425 | ac_shift=: | |
14426 | ;; | |
042acc47 WP |
14427 | *) |
14428 | ac_option=$1 | |
14429 | ac_optarg=$2 | |
14430 | ac_shift=shift | |
14431 | ;; | |
14432 | esac | |
14433 | ||
14434 | case $ac_option in | |
14435 | # Handling of the options. | |
14436 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14437 | ac_cs_recheck=: ;; | |
14438 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
14439 | $as_echo "$ac_cs_version"; exit ;; | |
1800d973 WP |
14440 | --config | --confi | --conf | --con | --co | --c ) |
14441 | $as_echo "$ac_cs_config"; exit ;; | |
042acc47 WP |
14442 | --debug | --debu | --deb | --de | --d | -d ) |
14443 | debug=: ;; | |
14444 | --file | --fil | --fi | --f ) | |
14445 | $ac_shift | |
14446 | case $ac_optarg in | |
14447 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12e39525 | 14448 | '') as_fn_error $? "missing file argument" ;; |
042acc47 WP |
14449 | esac |
14450 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
14451 | ac_need_defaults=false;; | |
14452 | --header | --heade | --head | --hea ) | |
14453 | $ac_shift | |
14454 | case $ac_optarg in | |
14455 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14456 | esac | |
14457 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
14458 | ac_need_defaults=false;; | |
14459 | --he | --h) | |
14460 | # Conflict between --help and --header | |
12e39525 | 14461 | as_fn_error $? "ambiguous option: \`$1' |
042acc47 WP |
14462 | Try \`$0 --help' for more information.";; |
14463 | --help | --hel | -h ) | |
14464 | $as_echo "$ac_cs_usage"; exit ;; | |
14465 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14466 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14467 | ac_cs_silent=: ;; | |
14468 | ||
14469 | # This is an error. | |
12e39525 | 14470 | -*) as_fn_error $? "unrecognized option: \`$1' |
042acc47 WP |
14471 | Try \`$0 --help' for more information." ;; |
14472 | ||
14473 | *) as_fn_append ac_config_targets " $1" | |
14474 | ac_need_defaults=false ;; | |
14475 | ||
14476 | esac | |
14477 | shift | |
14478 | done | |
b57f37fb | 14479 | |
042acc47 | 14480 | ac_configure_extra_args= |
033be687 | 14481 | |
042acc47 WP |
14482 | if $ac_cs_silent; then |
14483 | exec 6>/dev/null | |
14484 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14485 | fi | |
033be687 | 14486 | |
042acc47 WP |
14487 | _ACEOF |
14488 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14489 | if \$ac_cs_recheck; then | |
14490 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
14491 | shift | |
14492 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14493 | CONFIG_SHELL='$SHELL' | |
14494 | export CONFIG_SHELL | |
14495 | exec "\$@" | |
033be687 VY |
14496 | fi |
14497 | ||
042acc47 WP |
14498 | _ACEOF |
14499 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14500 | exec 5>>config.log | |
14501 | { | |
14502 | echo | |
14503 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14504 | ## Running $as_me. ## | |
14505 | _ASBOX | |
14506 | $as_echo "$ac_log" | |
14507 | } >&5 | |
033be687 | 14508 | |
042acc47 WP |
14509 | _ACEOF |
14510 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14511 | # | |
14512 | # INIT-COMMANDS | |
14513 | # | |
14514 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
033be687 VY |
14515 | |
14516 | ||
042acc47 WP |
14517 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
14518 | # if CDPATH is set. | |
14519 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14520 | ||
14521 | sed_quote_subst='$sed_quote_subst' | |
14522 | double_quote_subst='$double_quote_subst' | |
14523 | delay_variable_subst='$delay_variable_subst' | |
14524 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
14525 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
14526 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
14527 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
14528 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
14529 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
14530 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
14531 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
14532 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
14533 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
14534 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
14535 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
14536 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
14537 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
14538 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
14539 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
14540 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
14541 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
14542 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
14543 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
14544 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
14545 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
14546 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
14547 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
14548 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
14549 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
14550 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
14551 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14552 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
14553 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
14554 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
14555 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
14556 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
14557 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
14558 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
14559 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14560 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14561 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14562 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
14563 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
14564 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
14565 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
14566 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
14567 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
14568 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
14569 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
14570 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
14571 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
14572 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
14573 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
14574 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
14575 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
14576 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
14577 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
14578 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
14579 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
14580 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
14581 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
14582 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
14583 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
14584 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
14585 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
14586 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14587 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14588 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
14589 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
14590 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14591 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14592 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
14593 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14594 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14595 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14596 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14597 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14598 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14599 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
14600 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
14601 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
14602 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14603 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
14604 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
14605 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
14606 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
14607 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
14608 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
14609 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
14610 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
14611 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
14612 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
14613 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
14614 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14615 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
14616 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
14617 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14618 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14619 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
14620 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
14621 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
14622 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
14623 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
14624 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
14625 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
14626 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14627 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14628 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14629 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14630 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14631 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14632 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
14633 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
14634 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14635 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14636 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
14637 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
14638 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
14639 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
14640 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
14641 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
14642 | ||
14643 | LTCC='$LTCC' | |
14644 | LTCFLAGS='$LTCFLAGS' | |
14645 | compiler='$compiler_DEFAULT' | |
14646 | ||
14647 | # Quote evaled strings. | |
14648 | for var in SED \ | |
14649 | GREP \ | |
14650 | EGREP \ | |
14651 | FGREP \ | |
14652 | LD \ | |
14653 | NM \ | |
14654 | LN_S \ | |
14655 | lt_SP2NL \ | |
14656 | lt_NL2SP \ | |
14657 | reload_flag \ | |
14658 | OBJDUMP \ | |
14659 | deplibs_check_method \ | |
14660 | file_magic_cmd \ | |
14661 | AR \ | |
14662 | AR_FLAGS \ | |
14663 | STRIP \ | |
14664 | RANLIB \ | |
14665 | CC \ | |
14666 | CFLAGS \ | |
14667 | compiler \ | |
14668 | lt_cv_sys_global_symbol_pipe \ | |
14669 | lt_cv_sys_global_symbol_to_cdecl \ | |
14670 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14671 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
14672 | SHELL \ | |
14673 | ECHO \ | |
14674 | lt_prog_compiler_no_builtin_flag \ | |
14675 | lt_prog_compiler_wl \ | |
14676 | lt_prog_compiler_pic \ | |
14677 | lt_prog_compiler_static \ | |
14678 | lt_cv_prog_compiler_c_o \ | |
14679 | need_locks \ | |
14680 | DSYMUTIL \ | |
14681 | NMEDIT \ | |
14682 | LIPO \ | |
14683 | OTOOL \ | |
14684 | OTOOL64 \ | |
14685 | shrext_cmds \ | |
14686 | export_dynamic_flag_spec \ | |
14687 | whole_archive_flag_spec \ | |
14688 | compiler_needs_object \ | |
14689 | with_gnu_ld \ | |
14690 | allow_undefined_flag \ | |
14691 | no_undefined_flag \ | |
14692 | hardcode_libdir_flag_spec \ | |
14693 | hardcode_libdir_flag_spec_ld \ | |
14694 | hardcode_libdir_separator \ | |
14695 | fix_srcfile_path \ | |
14696 | exclude_expsyms \ | |
14697 | include_expsyms \ | |
14698 | file_list_spec \ | |
14699 | variables_saved_for_relink \ | |
14700 | libname_spec \ | |
14701 | library_names_spec \ | |
14702 | soname_spec \ | |
14703 | finish_eval \ | |
14704 | old_striplib \ | |
14705 | striplib; do | |
14706 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
14707 | *[\\\\\\\`\\"\\\$]*) | |
14708 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
14709 | ;; | |
14710 | *) | |
14711 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14712 | ;; | |
14713 | esac | |
033be687 | 14714 | done |
042acc47 WP |
14715 | |
14716 | # Double-quote double-evaled strings. | |
14717 | for var in reload_cmds \ | |
14718 | old_postinstall_cmds \ | |
14719 | old_postuninstall_cmds \ | |
14720 | old_archive_cmds \ | |
14721 | extract_expsyms_cmds \ | |
14722 | old_archive_from_new_cmds \ | |
14723 | old_archive_from_expsyms_cmds \ | |
14724 | archive_cmds \ | |
14725 | archive_expsym_cmds \ | |
14726 | module_cmds \ | |
14727 | module_expsym_cmds \ | |
14728 | export_symbols_cmds \ | |
14729 | prelink_cmds \ | |
14730 | postinstall_cmds \ | |
14731 | postuninstall_cmds \ | |
14732 | finish_cmds \ | |
14733 | sys_lib_search_path_spec \ | |
14734 | sys_lib_dlsearch_path_spec; do | |
14735 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
14736 | *[\\\\\\\`\\"\\\$]*) | |
14737 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
14738 | ;; | |
14739 | *) | |
14740 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14741 | ;; | |
14742 | esac | |
033be687 | 14743 | done |
033be687 | 14744 | |
042acc47 WP |
14745 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
14746 | case \$lt_ECHO in | |
14747 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
033be687 VY |
14748 | ;; |
14749 | esac | |
033be687 | 14750 | |
042acc47 WP |
14751 | ac_aux_dir='$ac_aux_dir' |
14752 | xsi_shell='$xsi_shell' | |
14753 | lt_shell_append='$lt_shell_append' | |
033be687 | 14754 | |
042acc47 WP |
14755 | # See if we are running on zsh, and set the options which allow our |
14756 | # commands through without removal of \ escapes INIT. | |
14757 | if test -n "\${ZSH_VERSION+set}" ; then | |
14758 | setopt NO_GLOB_SUBST | |
033be687 | 14759 | fi |
033be687 | 14760 | |
033be687 | 14761 | |
042acc47 WP |
14762 | PACKAGE='$PACKAGE' |
14763 | VERSION='$VERSION' | |
14764 | TIMESTAMP='$TIMESTAMP' | |
14765 | RM='$RM' | |
14766 | ofile='$ofile' | |
033be687 | 14767 | |
033be687 | 14768 | |
033be687 | 14769 | |
033be687 | 14770 | |
042acc47 WP |
14771 | if test x$ac_cv_header_stdc = xyes; then |
14772 | rb_header_stdc=yes | |
14773 | fi | |
14774 | if test x$ac_cv_header_stdlib_h = xyes; then | |
14775 | rb_header_stdlib_h=yes | |
14776 | fi | |
14777 | if test x$ac_cv_header_string_h = xyes; then | |
14778 | rb_header_string_h=yes | |
14779 | fi | |
14780 | if test x$ac_cv_header_memory_h = xyes; then | |
14781 | rb_header_memory_h=yes | |
14782 | fi | |
14783 | if test "x${ac_cv_working_alloca_h+set}" = xset ; then | |
14784 | rb_alloca_h="$ac_cv_working_alloca_h" | |
14785 | else | |
14786 | rb_alloc_h="$ac_cv_header_alloca_h" | |
14787 | fi | |
14788 | if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then | |
14789 | rb_sockaddr_sa_len=yes | |
14790 | fi | |
14791 | if test x$ac_cv_header_sys_socket_h = xyes; then | |
14792 | rb_sys_socket_h=yes | |
14793 | fi | |
14794 | if test x$ac_cv_header_sys_types_h = xyes; then | |
14795 | rb_sys_types_h=yes | |
14796 | fi | |
14797 | if test x$ac_cv_header_sys_stat_h = xyes; then | |
14798 | rb_sys_stat_h=yes | |
14799 | fi | |
14800 | if test x$ac_cv_header_sys_time_h = xyes; then | |
14801 | rb_sys_time_h=yes | |
14802 | fi | |
14803 | if test x$ac_cv_header_time = xyes; then | |
14804 | rb_time_h=yes | |
14805 | fi | |
033be687 | 14806 | |
042acc47 WP |
14807 | if test x$ac_cv_header_stdint_h = xyes; then |
14808 | rb_stdint_h=yes | |
14809 | fi | |
14810 | if test x$ac_cv_header_inttypes_h = xyes; then | |
14811 | rb_inttypes_h=yes | |
14812 | fi | |
14813 | if test x$ac_cv_header_netinet_in_h = xyes; then | |
14814 | rb_netinet_in_h=yes | |
14815 | fi | |
033be687 | 14816 | |
042acc47 WP |
14817 | if test x$ac_cv_header_crypt_h = xyes; then |
14818 | rb_crypt_h=yes | |
14819 | fi | |
14820 | if test x$ac_cv_header_errno_h = xyes; then | |
14821 | rb_errno_h=yes | |
14822 | fi | |
14823 | if test x$ac_cv_header_unistd_h = xyes; then | |
14824 | rb_unistd_h=yes | |
14825 | fi | |
14826 | if test x$ac_cv_header_windows_h = xyes; then | |
14827 | rb_windows_h=yes | |
14828 | fi | |
14829 | if test x$ac_cv_header_winsock2_h = xyes; then | |
14830 | rb_winsock2_h=yes | |
14831 | fi | |
033be687 | 14832 | |
042acc47 | 14833 | rb_socklen_t=$rb_socklen_t |
033be687 | 14834 | |
042acc47 WP |
14835 | if test "x$rb_have_sockaddr_storage" = "xyes"; then |
14836 | rb_sockaddr_storage="yes" | |
14837 | else | |
14838 | rb_sockaddr_storage="no" | |
14839 | fi | |
033be687 | 14840 | |
042acc47 | 14841 | rb_have_ipv6="$have_v6" |
033be687 | 14842 | |
042acc47 WP |
14843 | rb_mv="$MV" |
14844 | rb_rm="$RM" | |
033be687 | 14845 | |
033be687 | 14846 | |
033be687 | 14847 | |
b57f37fb | 14848 | |
b57f37fb | 14849 | |
033be687 | 14850 | |
033be687 VY |
14851 | _ACEOF |
14852 | ||
042acc47 | 14853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b57f37fb | 14854 | |
042acc47 WP |
14855 | # Handling of arguments. |
14856 | for ac_config_target in $ac_config_targets | |
14857 | do | |
14858 | case $ac_config_target in | |
14859 | "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;; | |
14860 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
14861 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
14862 | "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;; | |
14863 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
14864 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14865 | "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;; | |
033be687 | 14866 | |
12e39525 | 14867 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
042acc47 WP |
14868 | esac |
14869 | done | |
033be687 | 14870 | |
b57f37fb | 14871 | |
042acc47 WP |
14872 | # If the user did not use the arguments to specify the items to instantiate, |
14873 | # then the envvar interface is used. Set only those that are not. | |
14874 | # We use the long form for the default assignment because of an extremely | |
14875 | # bizarre bug on SunOS 4.1.3. | |
14876 | if $ac_need_defaults; then | |
14877 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14878 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14879 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14880 | fi | |
b57f37fb | 14881 | |
042acc47 WP |
14882 | # Have a temporary directory for convenience. Make it in the build tree |
14883 | # simply because there is no reason against having it here, and in addition, | |
14884 | # creating and moving files from /tmp can sometimes cause problems. | |
14885 | # Hook for its removal unless debugging. | |
14886 | # Note that there is a small window in which the directory will not be cleaned: | |
14887 | # after its creation but before its name has been assigned to `$tmp'. | |
14888 | $debug || | |
14889 | { | |
12e39525 | 14890 | tmp= ac_tmp= |
042acc47 | 14891 | trap 'exit_status=$? |
12e39525 JH |
14892 | : "${ac_tmp:=$tmp}" |
14893 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
042acc47 WP |
14894 | ' 0 |
14895 | trap 'as_fn_exit 1' 1 2 13 15 | |
14896 | } | |
14897 | # Create a (secure) tmp directory for tmp files. | |
b57f37fb | 14898 | |
042acc47 WP |
14899 | { |
14900 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
12e39525 | 14901 | test -d "$tmp" |
042acc47 WP |
14902 | } || |
14903 | { | |
14904 | tmp=./conf$$-$RANDOM | |
14905 | (umask 077 && mkdir "$tmp") | |
12e39525 JH |
14906 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14907 | ac_tmp=$tmp | |
b57f37fb | 14908 | |
042acc47 WP |
14909 | # Set up the scripts for CONFIG_FILES section. |
14910 | # No need to generate them if there are no CONFIG_FILES. | |
14911 | # This happens for instance with `./config.status config.h'. | |
14912 | if test -n "$CONFIG_FILES"; then | |
b57f37fb WP |
14913 | |
14914 | ||
042acc47 WP |
14915 | ac_cr=`echo X | tr X '\015'` |
14916 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14917 | # But we know of no other shell where ac_cr would be empty at this | |
14918 | # point, so we can use a bashism as a fallback. | |
14919 | if test "x$ac_cr" = x; then | |
14920 | eval ac_cr=\$\'\\r\' | |
14921 | fi | |
14922 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14923 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12e39525 | 14924 | ac_cs_awk_cr='\\r' |
b57f37fb | 14925 | else |
042acc47 | 14926 | ac_cs_awk_cr=$ac_cr |
b57f37fb WP |
14927 | fi |
14928 | ||
12e39525 | 14929 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
b57f37fb WP |
14930 | _ACEOF |
14931 | ||
b57f37fb | 14932 | |
042acc47 WP |
14933 | { |
14934 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14935 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14936 | echo "_ACEOF" | |
14937 | } >conf$$subs.sh || | |
12e39525 JH |
14938 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14939 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
042acc47 WP |
14940 | ac_delim='%!_!# ' |
14941 | for ac_last_try in false false false false false :; do | |
14942 | . ./conf$$subs.sh || | |
12e39525 | 14943 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
b57f37fb | 14944 | |
042acc47 WP |
14945 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
14946 | if test $ac_delim_n = $ac_delim_num; then | |
14947 | break | |
14948 | elif $ac_last_try; then | |
12e39525 | 14949 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
042acc47 WP |
14950 | else |
14951 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14952 | fi | |
14953 | done | |
14954 | rm -f conf$$subs.sh | |
b57f37fb | 14955 | |
042acc47 | 14956 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12e39525 | 14957 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
b57f37fb | 14958 | _ACEOF |
042acc47 WP |
14959 | sed -n ' |
14960 | h | |
14961 | s/^/S["/; s/!.*/"]=/ | |
14962 | p | |
14963 | g | |
14964 | s/^[^!]*!// | |
14965 | :repl | |
14966 | t repl | |
14967 | s/'"$ac_delim"'$// | |
14968 | t delim | |
14969 | :nl | |
14970 | h | |
1800d973 | 14971 | s/\(.\{148\}\)..*/\1/ |
042acc47 WP |
14972 | t more1 |
14973 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14974 | p | |
14975 | n | |
14976 | b repl | |
14977 | :more1 | |
14978 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14979 | p | |
14980 | g | |
14981 | s/.\{148\}// | |
14982 | t nl | |
14983 | :delim | |
14984 | h | |
1800d973 | 14985 | s/\(.\{148\}\)..*/\1/ |
042acc47 WP |
14986 | t more2 |
14987 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14988 | p | |
14989 | b | |
14990 | :more2 | |
14991 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14992 | p | |
14993 | g | |
14994 | s/.\{148\}// | |
14995 | t delim | |
14996 | ' <conf$$subs.awk | sed ' | |
14997 | /^[^""]/{ | |
14998 | N | |
14999 | s/\n// | |
15000 | } | |
15001 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15002 | rm -f conf$$subs.awk | |
15003 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15004 | _ACAWK | |
12e39525 | 15005 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
042acc47 WP |
15006 | for (key in S) S_is_set[key] = 1 |
15007 | FS = "\a" | |
b57f37fb | 15008 | |
042acc47 WP |
15009 | } |
15010 | { | |
15011 | line = $ 0 | |
15012 | nfields = split(line, field, "@") | |
15013 | substed = 0 | |
15014 | len = length(field[1]) | |
15015 | for (i = 2; i < nfields; i++) { | |
15016 | key = field[i] | |
15017 | keylen = length(key) | |
15018 | if (S_is_set[key]) { | |
15019 | value = S[key] | |
15020 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15021 | len += length(value) + length(field[++i]) | |
15022 | substed = 1 | |
15023 | } else | |
15024 | len += 1 + keylen | |
15025 | } | |
b57f37fb | 15026 | |
042acc47 WP |
15027 | print line |
15028 | } | |
15029 | ||
15030 | _ACAWK | |
15031 | _ACEOF | |
15032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15033 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15034 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
b57f37fb | 15035 | else |
042acc47 | 15036 | cat |
12e39525 JH |
15037 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15038 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
042acc47 | 15039 | _ACEOF |
b57f37fb | 15040 | |
12e39525 JH |
15041 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15042 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
042acc47 WP |
15043 | # trailing colons and then remove the whole line if VPATH becomes empty |
15044 | # (actually we leave an empty line to preserve line numbers). | |
15045 | if test "x$srcdir" = x.; then | |
12e39525 JH |
15046 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15047 | h | |
15048 | s/// | |
15049 | s/^/:/ | |
15050 | s/[ ]*$/:/ | |
15051 | s/:\$(srcdir):/:/g | |
15052 | s/:\${srcdir}:/:/g | |
15053 | s/:@srcdir@:/:/g | |
15054 | s/^:*// | |
042acc47 | 15055 | s/:*$// |
12e39525 JH |
15056 | x |
15057 | s/\(=[ ]*\).*/\1/ | |
15058 | G | |
15059 | s/\n// | |
042acc47 WP |
15060 | s/^[^=]*=[ ]*$// |
15061 | }' | |
15062 | fi | |
b57f37fb | 15063 | |
042acc47 WP |
15064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15065 | fi # test -n "$CONFIG_FILES" | |
b57f37fb | 15066 | |
042acc47 WP |
15067 | # Set up the scripts for CONFIG_HEADERS section. |
15068 | # No need to generate them if there are no CONFIG_HEADERS. | |
15069 | # This happens for instance with `./config.status Makefile'. | |
15070 | if test -n "$CONFIG_HEADERS"; then | |
12e39525 | 15071 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
042acc47 | 15072 | BEGIN { |
b57f37fb WP |
15073 | _ACEOF |
15074 | ||
042acc47 WP |
15075 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15076 | # here-document in config.status, that substitutes the proper values into | |
15077 | # config.h.in to produce config.h. | |
b57f37fb | 15078 | |
042acc47 WP |
15079 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15080 | # handling of long lines. | |
15081 | ac_delim='%!_!# ' | |
15082 | for ac_last_try in false false :; do | |
12e39525 JH |
15083 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15084 | if test -z "$ac_tt"; then | |
042acc47 WP |
15085 | break |
15086 | elif $ac_last_try; then | |
12e39525 | 15087 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
042acc47 WP |
15088 | else |
15089 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15090 | fi | |
15091 | done | |
b57f37fb | 15092 | |
042acc47 WP |
15093 | # For the awk script, D is an array of macro values keyed by name, |
15094 | # likewise P contains macro parameters if any. Preserve backslash | |
15095 | # newline sequences. | |
b57f37fb | 15096 | |
042acc47 WP |
15097 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
15098 | sed -n ' | |
15099 | s/.\{148\}/&'"$ac_delim"'/g | |
15100 | t rset | |
15101 | :rset | |
15102 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15103 | t def | |
15104 | d | |
15105 | :def | |
15106 | s/\\$// | |
15107 | t bsnl | |
15108 | s/["\\]/\\&/g | |
15109 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15110 | D["\1"]=" \3"/p | |
15111 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15112 | d | |
15113 | :bsnl | |
15114 | s/["\\]/\\&/g | |
15115 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15116 | D["\1"]=" \3\\\\\\n"\\/p | |
15117 | t cont | |
15118 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15119 | t cont | |
15120 | d | |
15121 | :cont | |
15122 | n | |
15123 | s/.\{148\}/&'"$ac_delim"'/g | |
15124 | t clear | |
15125 | :clear | |
15126 | s/\\$// | |
15127 | t bsnlc | |
15128 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15129 | d | |
15130 | :bsnlc | |
15131 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15132 | b cont | |
15133 | ' <confdefs.h | sed ' | |
15134 | s/'"$ac_delim"'/"\\\ | |
15135 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
b57f37fb | 15136 | |
042acc47 WP |
15137 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15138 | for (key in D) D_is_set[key] = 1 | |
15139 | FS = "\a" | |
15140 | } | |
15141 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15142 | line = \$ 0 | |
15143 | split(line, arg, " ") | |
15144 | if (arg[1] == "#") { | |
15145 | defundef = arg[2] | |
15146 | mac1 = arg[3] | |
15147 | } else { | |
15148 | defundef = substr(arg[1], 2) | |
15149 | mac1 = arg[2] | |
15150 | } | |
15151 | split(mac1, mac2, "(") #) | |
15152 | macro = mac2[1] | |
15153 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15154 | if (D_is_set[macro]) { | |
15155 | # Preserve the white space surrounding the "#". | |
15156 | print prefix "define", macro P[macro] D[macro] | |
15157 | next | |
15158 | } else { | |
15159 | # Replace #undef with comments. This is necessary, for example, | |
15160 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15161 | # on some systems where configure will not decide to define it. | |
15162 | if (defundef == "undef") { | |
15163 | print "/*", prefix defundef, macro, "*/" | |
15164 | next | |
15165 | } | |
15166 | } | |
15167 | } | |
15168 | { print } | |
15169 | _ACAWK | |
b57f37fb | 15170 | _ACEOF |
042acc47 | 15171 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12e39525 | 15172 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
042acc47 | 15173 | fi # test -n "$CONFIG_HEADERS" |
b57f37fb WP |
15174 | |
15175 | ||
042acc47 WP |
15176 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
15177 | shift | |
15178 | for ac_tag | |
15179 | do | |
15180 | case $ac_tag in | |
15181 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15182 | esac | |
15183 | case $ac_mode$ac_tag in | |
15184 | :[FHL]*:*);; | |
12e39525 | 15185 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
042acc47 WP |
15186 | :[FH]-) ac_tag=-:-;; |
15187 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15188 | esac | |
15189 | ac_save_IFS=$IFS | |
15190 | IFS=: | |
15191 | set x $ac_tag | |
15192 | IFS=$ac_save_IFS | |
15193 | shift | |
15194 | ac_file=$1 | |
15195 | shift | |
b57f37fb | 15196 | |
042acc47 WP |
15197 | case $ac_mode in |
15198 | :L) ac_source=$1;; | |
15199 | :[FH]) | |
15200 | ac_file_inputs= | |
15201 | for ac_f | |
15202 | do | |
15203 | case $ac_f in | |
12e39525 | 15204 | -) ac_f="$ac_tmp/stdin";; |
042acc47 WP |
15205 | *) # Look for the file first in the build tree, then in the source tree |
15206 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15207 | # because $ac_f cannot contain `:'. | |
15208 | test -f "$ac_f" || | |
15209 | case $ac_f in | |
15210 | [\\/$]*) false;; | |
15211 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15212 | esac || | |
12e39525 | 15213 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
042acc47 WP |
15214 | esac |
15215 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15216 | as_fn_append ac_file_inputs " '$ac_f'" | |
15217 | done | |
b57f37fb | 15218 | |
042acc47 WP |
15219 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15220 | # use $as_me), people would be surprised to read: | |
15221 | # /* config.h. Generated by config.status. */ | |
15222 | configure_input='Generated from '` | |
15223 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15224 | `' by configure.' | |
15225 | if test x"$ac_file" != x-; then | |
15226 | configure_input="$ac_file. $configure_input" | |
15227 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15228 | $as_echo "$as_me: creating $ac_file" >&6;} | |
15229 | fi | |
15230 | # Neutralize special characters interpreted by sed in replacement strings. | |
15231 | case $configure_input in #( | |
15232 | *\&* | *\|* | *\\* ) | |
15233 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15234 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15235 | *) ac_sed_conf_input=$configure_input;; | |
15236 | esac | |
b57f37fb | 15237 | |
042acc47 | 15238 | case $ac_tag in |
12e39525 JH |
15239 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15240 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
042acc47 WP |
15241 | esac |
15242 | ;; | |
15243 | esac | |
b57f37fb | 15244 | |
042acc47 WP |
15245 | ac_dir=`$as_dirname -- "$ac_file" || |
15246 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15247 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15248 | X"$ac_file" : 'X\(//\)$' \| \ | |
15249 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
15250 | $as_echo X"$ac_file" | | |
15251 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15252 | s//\1/ | |
15253 | q | |
15254 | } | |
15255 | /^X\(\/\/\)[^/].*/{ | |
15256 | s//\1/ | |
15257 | q | |
15258 | } | |
15259 | /^X\(\/\/\)$/{ | |
15260 | s//\1/ | |
15261 | q | |
15262 | } | |
15263 | /^X\(\/\).*/{ | |
15264 | s//\1/ | |
15265 | q | |
15266 | } | |
15267 | s/.*/./; q'` | |
15268 | as_dir="$ac_dir"; as_fn_mkdir_p | |
15269 | ac_builddir=. | |
b57f37fb | 15270 | |
042acc47 WP |
15271 | case "$ac_dir" in |
15272 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15273 | *) | |
15274 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15275 | # A ".." for each directory in $ac_dir_suffix. | |
15276 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15277 | case $ac_top_builddir_sub in | |
15278 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15279 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15280 | esac ;; | |
15281 | esac | |
15282 | ac_abs_top_builddir=$ac_pwd | |
15283 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15284 | # for backward compatibility: | |
15285 | ac_top_builddir=$ac_top_build_prefix | |
b57f37fb | 15286 | |
042acc47 WP |
15287 | case $srcdir in |
15288 | .) # We are building in place. | |
15289 | ac_srcdir=. | |
15290 | ac_top_srcdir=$ac_top_builddir_sub | |
15291 | ac_abs_top_srcdir=$ac_pwd ;; | |
15292 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15293 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15294 | ac_top_srcdir=$srcdir | |
15295 | ac_abs_top_srcdir=$srcdir ;; | |
15296 | *) # Relative name. | |
15297 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15298 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15299 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15300 | esac | |
15301 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
b57f37fb | 15302 | |
033be687 | 15303 | |
042acc47 WP |
15304 | case $ac_mode in |
15305 | :F) | |
15306 | # | |
15307 | # CONFIG_FILE | |
15308 | # | |
b57f37fb | 15309 | |
042acc47 WP |
15310 | case $INSTALL in |
15311 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15312 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
15313 | esac | |
15314 | ac_MKDIR_P=$MKDIR_P | |
15315 | case $MKDIR_P in | |
15316 | [\\/$]* | ?:[\\/]* ) ;; | |
15317 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
15318 | esac | |
b57f37fb WP |
15319 | _ACEOF |
15320 | ||
042acc47 WP |
15321 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15322 | # If the template does not know about datarootdir, expand it. | |
15323 | # FIXME: This hack should be removed a few years after 2.60. | |
15324 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15325 | ac_sed_dataroot=' | |
15326 | /datarootdir/ { | |
15327 | p | |
15328 | q | |
15329 | } | |
15330 | /@datadir@/p | |
15331 | /@docdir@/p | |
15332 | /@infodir@/p | |
15333 | /@localedir@/p | |
15334 | /@mandir@/p' | |
15335 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15336 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15337 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15339 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15340 | _ACEOF | |
15341 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15342 | ac_datarootdir_hack=' | |
15343 | s&@datadir@&$datadir&g | |
15344 | s&@docdir@&$docdir&g | |
15345 | s&@infodir@&$infodir&g | |
15346 | s&@localedir@&$localedir&g | |
15347 | s&@mandir@&$mandir&g | |
15348 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15349 | esac | |
b57f37fb WP |
15350 | _ACEOF |
15351 | ||
042acc47 WP |
15352 | # Neutralize VPATH when `$srcdir' = `.'. |
15353 | # Shell code in configure.ac might set extrasub. | |
15354 | # FIXME: do we really want to maintain this feature? | |
15355 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15356 | ac_sed_extra="$ac_vpsub | |
15357 | $extrasub | |
15358 | _ACEOF | |
15359 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15360 | :t | |
15361 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15362 | s|@configure_input@|$ac_sed_conf_input|;t t | |
15363 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15364 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15365 | s&@srcdir@&$ac_srcdir&;t t | |
15366 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15367 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15368 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15369 | s&@builddir@&$ac_builddir&;t t | |
15370 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15371 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15372 | s&@INSTALL@&$ac_INSTALL&;t t | |
15373 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
15374 | $ac_datarootdir_hack | |
15375 | " | |
12e39525 JH |
15376 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
15377 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
b57f37fb | 15378 | |
042acc47 | 15379 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12e39525 JH |
15380 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15381 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15382 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
042acc47 | 15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12e39525 | 15384 | which seems to be undefined. Please make sure it is defined" >&5 |
042acc47 | 15385 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12e39525 | 15386 | which seems to be undefined. Please make sure it is defined" >&2;} |
b57f37fb | 15387 | |
12e39525 | 15388 | rm -f "$ac_tmp/stdin" |
042acc47 | 15389 | case $ac_file in |
12e39525 JH |
15390 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15391 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
042acc47 | 15392 | esac \ |
12e39525 | 15393 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
042acc47 WP |
15394 | ;; |
15395 | :H) | |
15396 | # | |
15397 | # CONFIG_HEADER | |
15398 | # | |
15399 | if test x"$ac_file" != x-; then | |
15400 | { | |
15401 | $as_echo "/* $configure_input */" \ | |
12e39525 JH |
15402 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
15403 | } >"$ac_tmp/config.h" \ | |
15404 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15405 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
042acc47 WP |
15406 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
15407 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
15408 | else | |
15409 | rm -f "$ac_file" | |
12e39525 JH |
15410 | mv "$ac_tmp/config.h" "$ac_file" \ |
15411 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
042acc47 WP |
15412 | fi |
15413 | else | |
15414 | $as_echo "/* $configure_input */" \ | |
12e39525 JH |
15415 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
15416 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
042acc47 WP |
15417 | fi |
15418 | # Compute "$ac_file"'s index in $config_headers. | |
15419 | _am_arg="$ac_file" | |
15420 | _am_stamp_count=1 | |
15421 | for _am_header in $config_headers :; do | |
15422 | case $_am_header in | |
15423 | $_am_arg | $_am_arg:* ) | |
15424 | break ;; | |
15425 | * ) | |
15426 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15427 | esac | |
15428 | done | |
15429 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
15430 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15431 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15432 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15433 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15434 | $as_echo X"$_am_arg" | | |
15435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15436 | s//\1/ | |
15437 | q | |
15438 | } | |
15439 | /^X\(\/\/\)[^/].*/{ | |
15440 | s//\1/ | |
15441 | q | |
15442 | } | |
15443 | /^X\(\/\/\)$/{ | |
15444 | s//\1/ | |
15445 | q | |
15446 | } | |
15447 | /^X\(\/\).*/{ | |
15448 | s//\1/ | |
15449 | q | |
15450 | } | |
15451 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15452 | ;; | |
b57f37fb | 15453 | |
042acc47 WP |
15454 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
15455 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15456 | ;; | |
15457 | esac | |
b57f37fb | 15458 | |
b57f37fb | 15459 | |
042acc47 WP |
15460 | case $ac_file$ac_mode in |
15461 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
15462 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
15463 | # are listed without --file. Let's play safe and only enable the eval | |
15464 | # if we detect the quoting. | |
15465 | case $CONFIG_FILES in | |
15466 | *\'*) eval set x "$CONFIG_FILES" ;; | |
15467 | *) set x $CONFIG_FILES ;; | |
15468 | esac | |
15469 | shift | |
15470 | for mf | |
15471 | do | |
15472 | # Strip MF so we end up with the name of the file. | |
15473 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15474 | # Check whether this is an Automake generated Makefile or not. | |
15475 | # We used to match only the files named `Makefile.in', but | |
15476 | # some people rename them; so instead we look at the file content. | |
15477 | # Grep'ing the first line is not enough: some people post-process | |
15478 | # each Makefile.in and add a new line on top of each file to say so. | |
15479 | # Grep'ing the whole file is not good either: AIX grep has a line | |
15480 | # limit of 2048, but all sed's we know have understand at least 4000. | |
15481 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
15482 | dirpart=`$as_dirname -- "$mf" || | |
15483 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15484 | X"$mf" : 'X\(//\)[^/]' \| \ | |
15485 | X"$mf" : 'X\(//\)$' \| \ | |
15486 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
15487 | $as_echo X"$mf" | | |
15488 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15489 | s//\1/ | |
15490 | q | |
15491 | } | |
15492 | /^X\(\/\/\)[^/].*/{ | |
15493 | s//\1/ | |
15494 | q | |
15495 | } | |
15496 | /^X\(\/\/\)$/{ | |
15497 | s//\1/ | |
15498 | q | |
15499 | } | |
15500 | /^X\(\/\).*/{ | |
15501 | s//\1/ | |
15502 | q | |
15503 | } | |
15504 | s/.*/./; q'` | |
15505 | else | |
15506 | continue | |
15507 | fi | |
15508 | # Extract the definition of DEPDIR, am__include, and am__quote | |
15509 | # from the Makefile without running `make'. | |
15510 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
15511 | test -z "$DEPDIR" && continue | |
15512 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
15513 | test -z "am__include" && continue | |
15514 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
15515 | # When using ansi2knr, U may be empty or an underscore; expand it | |
15516 | U=`sed -n 's/^U = //p' < "$mf"` | |
15517 | # Find all dependency output files, they are included files with | |
15518 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
15519 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
15520 | # expansion. | |
15521 | for file in `sed -n " | |
15522 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
15523 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
15524 | # Make sure the directory exists. | |
15525 | test -f "$dirpart/$file" && continue | |
15526 | fdir=`$as_dirname -- "$file" || | |
15527 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15528 | X"$file" : 'X\(//\)[^/]' \| \ | |
15529 | X"$file" : 'X\(//\)$' \| \ | |
15530 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
15531 | $as_echo X"$file" | | |
15532 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15533 | s//\1/ | |
15534 | q | |
15535 | } | |
15536 | /^X\(\/\/\)[^/].*/{ | |
15537 | s//\1/ | |
15538 | q | |
15539 | } | |
15540 | /^X\(\/\/\)$/{ | |
15541 | s//\1/ | |
15542 | q | |
15543 | } | |
15544 | /^X\(\/\).*/{ | |
15545 | s//\1/ | |
15546 | q | |
15547 | } | |
15548 | s/.*/./; q'` | |
15549 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
15550 | # echo "creating $dirpart/$file" | |
15551 | echo '# dummy' > "$dirpart/$file" | |
15552 | done | |
15553 | done | |
15554 | } | |
15555 | ;; | |
15556 | "libtool":C) | |
b57f37fb | 15557 | |
042acc47 WP |
15558 | # See if we are running on zsh, and set the options which allow our |
15559 | # commands through without removal of \ escapes. | |
15560 | if test -n "${ZSH_VERSION+set}" ; then | |
15561 | setopt NO_GLOB_SUBST | |
15562 | fi | |
033be687 | 15563 | |
042acc47 WP |
15564 | cfgfile="${ofile}T" |
15565 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15566 | $RM "$cfgfile" | |
b57f37fb | 15567 | |
042acc47 WP |
15568 | cat <<_LT_EOF >> "$cfgfile" |
15569 | #! $SHELL | |
b57f37fb | 15570 | |
042acc47 WP |
15571 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
15572 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
15573 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15574 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
b57f37fb | 15575 | # |
042acc47 WP |
15576 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
15577 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
15578 | # Written by Gordon Matzigkeit, 1996 | |
b57f37fb | 15579 | # |
042acc47 WP |
15580 | # This file is part of GNU Libtool. |
15581 | # | |
15582 | # GNU Libtool is free software; you can redistribute it and/or | |
15583 | # modify it under the terms of the GNU General Public License as | |
15584 | # published by the Free Software Foundation; either version 2 of | |
15585 | # the License, or (at your option) any later version. | |
15586 | # | |
15587 | # As a special exception to the GNU General Public License, | |
15588 | # if you distribute this file as part of a program or library that | |
15589 | # is built using GNU Libtool, you may include this file under the | |
15590 | # same distribution terms that you use for the rest of that program. | |
15591 | # | |
15592 | # GNU Libtool is distributed in the hope that it will be useful, | |
15593 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15594 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15595 | # GNU General Public License for more details. | |
15596 | # | |
15597 | # You should have received a copy of the GNU General Public License | |
15598 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15599 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15600 | # obtained by writing to the Free Software Foundation, Inc., | |
15601 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
b57f37fb | 15602 | |
b57f37fb | 15603 | |
042acc47 WP |
15604 | # The names of the tagged configurations supported by this script. |
15605 | available_tags="" | |
b57f37fb | 15606 | |
042acc47 | 15607 | # ### BEGIN LIBTOOL CONFIG |
b57f37fb | 15608 | |
042acc47 WP |
15609 | # Whether or not to build static libraries. |
15610 | build_old_libs=$enable_static | |
b57f37fb | 15611 | |
042acc47 WP |
15612 | # Whether or not to build shared libraries. |
15613 | build_libtool_libs=$enable_shared | |
b57f37fb | 15614 | |
042acc47 WP |
15615 | # Which release of libtool.m4 was used? |
15616 | macro_version=$macro_version | |
15617 | macro_revision=$macro_revision | |
b57f37fb | 15618 | |
042acc47 WP |
15619 | # What type of objects to build. |
15620 | pic_mode=$pic_mode | |
b57f37fb | 15621 | |
042acc47 WP |
15622 | # Whether or not to optimize for fast installation. |
15623 | fast_install=$enable_fast_install | |
b57f37fb | 15624 | |
042acc47 WP |
15625 | # The host system. |
15626 | host_alias=$host_alias | |
15627 | host=$host | |
15628 | host_os=$host_os | |
b57f37fb | 15629 | |
042acc47 WP |
15630 | # The build system. |
15631 | build_alias=$build_alias | |
15632 | build=$build | |
15633 | build_os=$build_os | |
b57f37fb | 15634 | |
042acc47 WP |
15635 | # A sed program that does not truncate output. |
15636 | SED=$lt_SED | |
b57f37fb | 15637 | |
042acc47 WP |
15638 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
15639 | Xsed="\$SED -e 1s/^X//" | |
b57f37fb | 15640 | |
042acc47 WP |
15641 | # A grep program that handles long lines. |
15642 | GREP=$lt_GREP | |
b57f37fb | 15643 | |
042acc47 WP |
15644 | # An ERE matcher. |
15645 | EGREP=$lt_EGREP | |
b57f37fb | 15646 | |
042acc47 WP |
15647 | # A literal string matcher. |
15648 | FGREP=$lt_FGREP | |
b57f37fb | 15649 | |
042acc47 WP |
15650 | # A BSD- or MS-compatible name lister. |
15651 | NM=$lt_NM | |
f030cae8 | 15652 | |
042acc47 WP |
15653 | # Whether we need soft or hard links. |
15654 | LN_S=$lt_LN_S | |
b57f37fb | 15655 | |
042acc47 WP |
15656 | # What is the maximum length of a command? |
15657 | max_cmd_len=$max_cmd_len | |
b57f37fb | 15658 | |
042acc47 WP |
15659 | # Object file suffix (normally "o"). |
15660 | objext=$ac_objext | |
b57f37fb | 15661 | |
042acc47 WP |
15662 | # Executable file suffix (normally ""). |
15663 | exeext=$exeext | |
b57f37fb | 15664 | |
042acc47 WP |
15665 | # whether the shell understands "unset". |
15666 | lt_unset=$lt_unset | |
b57f37fb | 15667 | |
042acc47 WP |
15668 | # turn spaces into newlines. |
15669 | SP2NL=$lt_lt_SP2NL | |
b57f37fb | 15670 | |
042acc47 WP |
15671 | # turn newlines into spaces. |
15672 | NL2SP=$lt_lt_NL2SP | |
b57f37fb | 15673 | |
042acc47 WP |
15674 | # How to create reloadable object files. |
15675 | reload_flag=$lt_reload_flag | |
15676 | reload_cmds=$lt_reload_cmds | |
b57f37fb | 15677 | |
042acc47 WP |
15678 | # An object symbol dumper. |
15679 | OBJDUMP=$lt_OBJDUMP | |
b57f37fb | 15680 | |
042acc47 WP |
15681 | # Method to check whether dependent libraries are shared objects. |
15682 | deplibs_check_method=$lt_deplibs_check_method | |
b57f37fb | 15683 | |
042acc47 WP |
15684 | # Command to use when deplibs_check_method == "file_magic". |
15685 | file_magic_cmd=$lt_file_magic_cmd | |
b57f37fb | 15686 | |
042acc47 WP |
15687 | # The archiver. |
15688 | AR=$lt_AR | |
15689 | AR_FLAGS=$lt_AR_FLAGS | |
b57f37fb | 15690 | |
042acc47 WP |
15691 | # A symbol stripping program. |
15692 | STRIP=$lt_STRIP | |
b57f37fb | 15693 | |
042acc47 WP |
15694 | # Commands used to install an old-style archive. |
15695 | RANLIB=$lt_RANLIB | |
15696 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15697 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
b57f37fb | 15698 | |
042acc47 WP |
15699 | # A C compiler. |
15700 | LTCC=$lt_CC | |
b57f37fb | 15701 | |
042acc47 WP |
15702 | # LTCC compiler flags. |
15703 | LTCFLAGS=$lt_CFLAGS | |
b57f37fb | 15704 | |
042acc47 WP |
15705 | # Take the output of nm and produce a listing of raw symbols and C names. |
15706 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
b57f37fb | 15707 | |
042acc47 WP |
15708 | # Transform the output of nm in a proper C declaration. |
15709 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
b57f37fb | 15710 | |
042acc47 WP |
15711 | # Transform the output of nm in a C name address pair. |
15712 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
b57f37fb | 15713 | |
042acc47 WP |
15714 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
15715 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
b57f37fb | 15716 | |
042acc47 WP |
15717 | # The name of the directory that contains temporary libtool files. |
15718 | objdir=$objdir | |
b57f37fb | 15719 | |
042acc47 WP |
15720 | # Shell to use when invoking shell scripts. |
15721 | SHELL=$lt_SHELL | |
b57f37fb | 15722 | |
042acc47 WP |
15723 | # An echo program that does not interpret backslashes. |
15724 | ECHO=$lt_ECHO | |
b57f37fb | 15725 | |
042acc47 WP |
15726 | # Used to examine libraries when file_magic_cmd begins with "file". |
15727 | MAGIC_CMD=$MAGIC_CMD | |
15728 | ||
15729 | # Must we lock files when doing compilation? | |
15730 | need_locks=$lt_need_locks | |
b57f37fb | 15731 | |
042acc47 WP |
15732 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15733 | DSYMUTIL=$lt_DSYMUTIL | |
b57f37fb | 15734 | |
042acc47 WP |
15735 | # Tool to change global to local symbols on Mac OS X. |
15736 | NMEDIT=$lt_NMEDIT | |
b57f37fb | 15737 | |
042acc47 WP |
15738 | # Tool to manipulate fat objects and archives on Mac OS X. |
15739 | LIPO=$lt_LIPO | |
b57f37fb | 15740 | |
042acc47 WP |
15741 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
15742 | OTOOL=$lt_OTOOL | |
b57f37fb | 15743 | |
042acc47 WP |
15744 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
15745 | OTOOL64=$lt_OTOOL64 | |
b57f37fb | 15746 | |
042acc47 WP |
15747 | # Old archive suffix (normally "a"). |
15748 | libext=$libext | |
b57f37fb | 15749 | |
042acc47 WP |
15750 | # Shared library suffix (normally ".so"). |
15751 | shrext_cmds=$lt_shrext_cmds | |
b57f37fb | 15752 | |
042acc47 WP |
15753 | # The commands to extract the exported symbol list from a shared archive. |
15754 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
b57f37fb | 15755 | |
042acc47 WP |
15756 | # Variables whose values should be saved in libtool wrapper scripts and |
15757 | # restored at link time. | |
15758 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
f030cae8 | 15759 | |
042acc47 WP |
15760 | # Do we need the "lib" prefix for modules? |
15761 | need_lib_prefix=$need_lib_prefix | |
f030cae8 | 15762 | |
042acc47 WP |
15763 | # Do we need a version for libraries? |
15764 | need_version=$need_version | |
f030cae8 | 15765 | |
042acc47 WP |
15766 | # Library versioning type. |
15767 | version_type=$version_type | |
b57f37fb | 15768 | |
042acc47 WP |
15769 | # Shared library runtime path variable. |
15770 | runpath_var=$runpath_var | |
b57f37fb | 15771 | |
042acc47 WP |
15772 | # Shared library path variable. |
15773 | shlibpath_var=$shlibpath_var | |
b57f37fb | 15774 | |
042acc47 WP |
15775 | # Is shlibpath searched before the hard-coded library search path? |
15776 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
b57f37fb | 15777 | |
042acc47 WP |
15778 | # Format of library name prefix. |
15779 | libname_spec=$lt_libname_spec | |
b57f37fb | 15780 | |
042acc47 WP |
15781 | # List of archive names. First name is the real one, the rest are links. |
15782 | # The last name is the one that the linker finds with -lNAME | |
15783 | library_names_spec=$lt_library_names_spec | |
b57f37fb | 15784 | |
042acc47 WP |
15785 | # The coded name of the library, if different from the real name. |
15786 | soname_spec=$lt_soname_spec | |
b57f37fb | 15787 | |
042acc47 WP |
15788 | # Command to use after installation of a shared archive. |
15789 | postinstall_cmds=$lt_postinstall_cmds | |
b57f37fb | 15790 | |
042acc47 WP |
15791 | # Command to use after uninstallation of a shared archive. |
15792 | postuninstall_cmds=$lt_postuninstall_cmds | |
b57f37fb | 15793 | |
042acc47 WP |
15794 | # Commands used to finish a libtool library installation in a directory. |
15795 | finish_cmds=$lt_finish_cmds | |
b57f37fb | 15796 | |
042acc47 WP |
15797 | # As "finish_cmds", except a single script fragment to be evaled but |
15798 | # not shown. | |
15799 | finish_eval=$lt_finish_eval | |
b57f37fb | 15800 | |
042acc47 WP |
15801 | # Whether we should hardcode library paths into libraries. |
15802 | hardcode_into_libs=$hardcode_into_libs | |
b57f37fb | 15803 | |
042acc47 WP |
15804 | # Compile-time system search path for libraries. |
15805 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
b57f37fb | 15806 | |
042acc47 WP |
15807 | # Run-time system search path for libraries. |
15808 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
b57f37fb | 15809 | |
042acc47 WP |
15810 | # Whether dlopen is supported. |
15811 | dlopen_support=$enable_dlopen | |
b57f37fb | 15812 | |
042acc47 WP |
15813 | # Whether dlopen of programs is supported. |
15814 | dlopen_self=$enable_dlopen_self | |
b57f37fb | 15815 | |
042acc47 WP |
15816 | # Whether dlopen of statically linked programs is supported. |
15817 | dlopen_self_static=$enable_dlopen_self_static | |
b57f37fb | 15818 | |
042acc47 WP |
15819 | # Commands to strip libraries. |
15820 | old_striplib=$lt_old_striplib | |
15821 | striplib=$lt_striplib | |
b57f37fb | 15822 | |
b57f37fb | 15823 | |
042acc47 WP |
15824 | # The linker used to build libraries. |
15825 | LD=$lt_LD | |
b57f37fb | 15826 | |
042acc47 WP |
15827 | # Commands used to build an old-style archive. |
15828 | old_archive_cmds=$lt_old_archive_cmds | |
b57f37fb | 15829 | |
042acc47 WP |
15830 | # A language specific compiler. |
15831 | CC=$lt_compiler | |
b57f37fb | 15832 | |
042acc47 WP |
15833 | # Is the compiler the GNU compiler? |
15834 | with_gcc=$GCC | |
b57f37fb | 15835 | |
042acc47 WP |
15836 | # Compiler flag to turn off builtin functions. |
15837 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
b57f37fb | 15838 | |
042acc47 WP |
15839 | # How to pass a linker flag through the compiler. |
15840 | wl=$lt_lt_prog_compiler_wl | |
15841 | ||
15842 | # Additional compiler flags for building library objects. | |
15843 | pic_flag=$lt_lt_prog_compiler_pic | |
15844 | ||
15845 | # Compiler flag to prevent dynamic linking. | |
15846 | link_static_flag=$lt_lt_prog_compiler_static | |
15847 | ||
15848 | # Does compiler simultaneously support -c and -o options? | |
15849 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
4414eb3c | 15850 | |
042acc47 WP |
15851 | # Whether or not to add -lc for building shared libraries. |
15852 | build_libtool_need_lc=$archive_cmds_need_lc | |
4414eb3c | 15853 | |
042acc47 WP |
15854 | # Whether or not to disallow shared libs when runtime libs are static. |
15855 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
b57f37fb | 15856 | |
042acc47 WP |
15857 | # Compiler flag to allow reflexive dlopens. |
15858 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
b57f37fb | 15859 | |
042acc47 WP |
15860 | # Compiler flag to generate shared objects directly from archives. |
15861 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
b57f37fb | 15862 | |
042acc47 WP |
15863 | # Whether the compiler copes with passing no objects directly. |
15864 | compiler_needs_object=$lt_compiler_needs_object | |
b57f37fb | 15865 | |
042acc47 WP |
15866 | # Create an old-style archive from a shared archive. |
15867 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
b57f37fb | 15868 | |
042acc47 WP |
15869 | # Create a temporary old-style archive to link instead of a shared archive. |
15870 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
b57f37fb | 15871 | |
042acc47 WP |
15872 | # Commands used to build a shared archive. |
15873 | archive_cmds=$lt_archive_cmds | |
15874 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
b57f37fb | 15875 | |
042acc47 WP |
15876 | # Commands used to build a loadable module if different from building |
15877 | # a shared archive. | |
15878 | module_cmds=$lt_module_cmds | |
15879 | module_expsym_cmds=$lt_module_expsym_cmds | |
b57f37fb | 15880 | |
042acc47 WP |
15881 | # Whether we are building with GNU ld or not. |
15882 | with_gnu_ld=$lt_with_gnu_ld | |
b57f37fb | 15883 | |
042acc47 WP |
15884 | # Flag that allows shared libraries with undefined symbols to be built. |
15885 | allow_undefined_flag=$lt_allow_undefined_flag | |
b57f37fb | 15886 | |
042acc47 WP |
15887 | # Flag that enforces no undefined symbols. |
15888 | no_undefined_flag=$lt_no_undefined_flag | |
b57f37fb | 15889 | |
042acc47 WP |
15890 | # Flag to hardcode \$libdir into a binary during linking. |
15891 | # This must work even if \$libdir does not exist | |
15892 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
b57f37fb | 15893 | |
042acc47 WP |
15894 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
15895 | # during linking. This must work even if \$libdir does not exist. | |
15896 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
b57f37fb | 15897 | |
042acc47 WP |
15898 | # Whether we need a single "-rpath" flag with a separated argument. |
15899 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
b57f37fb | 15900 | |
042acc47 WP |
15901 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
15902 | # DIR into the resulting binary. | |
15903 | hardcode_direct=$hardcode_direct | |
b57f37fb | 15904 | |
042acc47 WP |
15905 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
15906 | # DIR into the resulting binary and the resulting library dependency is | |
15907 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
15908 | # library is relocated. | |
15909 | hardcode_direct_absolute=$hardcode_direct_absolute | |
b57f37fb | 15910 | |
042acc47 WP |
15911 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
15912 | # into the resulting binary. | |
15913 | hardcode_minus_L=$hardcode_minus_L | |
b57f37fb | 15914 | |
042acc47 WP |
15915 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
15916 | # into the resulting binary. | |
15917 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
b57f37fb | 15918 | |
042acc47 WP |
15919 | # Set to "yes" if building a shared library automatically hardcodes DIR |
15920 | # into the library and all subsequent libraries and executables linked | |
15921 | # against it. | |
15922 | hardcode_automatic=$hardcode_automatic | |
b57f37fb | 15923 | |
042acc47 WP |
15924 | # Set to yes if linker adds runtime paths of dependent libraries |
15925 | # to runtime path list. | |
15926 | inherit_rpath=$inherit_rpath | |
b57f37fb | 15927 | |
042acc47 WP |
15928 | # Whether libtool must link a program against all its dependency libraries. |
15929 | link_all_deplibs=$link_all_deplibs | |
b57f37fb | 15930 | |
042acc47 WP |
15931 | # Fix the shell variable \$srcfile for the compiler. |
15932 | fix_srcfile_path=$lt_fix_srcfile_path | |
f030cae8 | 15933 | |
042acc47 WP |
15934 | # Set to "yes" if exported symbols are required. |
15935 | always_export_symbols=$always_export_symbols | |
f030cae8 | 15936 | |
042acc47 WP |
15937 | # The commands to list exported symbols. |
15938 | export_symbols_cmds=$lt_export_symbols_cmds | |
b57f37fb | 15939 | |
042acc47 WP |
15940 | # Symbols that should not be listed in the preloaded symbols. |
15941 | exclude_expsyms=$lt_exclude_expsyms | |
f030cae8 | 15942 | |
042acc47 WP |
15943 | # Symbols that must always be exported. |
15944 | include_expsyms=$lt_include_expsyms | |
b57f37fb | 15945 | |
042acc47 WP |
15946 | # Commands necessary for linking programs (against libraries) with templates. |
15947 | prelink_cmds=$lt_prelink_cmds | |
b57f37fb | 15948 | |
042acc47 WP |
15949 | # Specify filename containing input files. |
15950 | file_list_spec=$lt_file_list_spec | |
b57f37fb | 15951 | |
042acc47 WP |
15952 | # How to hardcode a shared library path into an executable. |
15953 | hardcode_action=$hardcode_action | |
b57f37fb | 15954 | |
042acc47 | 15955 | # ### END LIBTOOL CONFIG |
f030cae8 | 15956 | |
042acc47 WP |
15957 | _LT_EOF |
15958 | ||
15959 | case $host_os in | |
15960 | aix3*) | |
15961 | cat <<\_LT_EOF >> "$cfgfile" | |
15962 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15963 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15964 | # vanish in a puff of smoke. | |
15965 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
15966 | COLLECT_NAMES= | |
15967 | export COLLECT_NAMES | |
15968 | fi | |
15969 | _LT_EOF | |
15970 | ;; | |
15971 | esac | |
f030cae8 | 15972 | |
f030cae8 | 15973 | |
042acc47 | 15974 | ltmain="$ac_aux_dir/ltmain.sh" |
f030cae8 | 15975 | |
f030cae8 | 15976 | |
042acc47 WP |
15977 | # We use sed instead of cat because bash on DJGPP gets confused if |
15978 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15979 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15980 | # is reportedly fixed, but why not run on old versions too? | |
15981 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
15982 | || (rm -f "$cfgfile"; exit 1) | |
f030cae8 | 15983 | |
042acc47 WP |
15984 | case $xsi_shell in |
15985 | yes) | |
15986 | cat << \_LT_EOF >> "$cfgfile" | |
b57f37fb | 15987 | |
042acc47 WP |
15988 | # func_dirname file append nondir_replacement |
15989 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15990 | # otherwise set result to NONDIR_REPLACEMENT. | |
15991 | func_dirname () | |
15992 | { | |
15993 | case ${1} in | |
15994 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15995 | * ) func_dirname_result="${3}" ;; | |
b57f37fb | 15996 | esac |
042acc47 WP |
15997 | } |
15998 | ||
15999 | # func_basename file | |
16000 | func_basename () | |
16001 | { | |
16002 | func_basename_result="${1##*/}" | |
16003 | } | |
16004 | ||
16005 | # func_dirname_and_basename file append nondir_replacement | |
16006 | # perform func_basename and func_dirname in a single function | |
16007 | # call: | |
16008 | # dirname: Compute the dirname of FILE. If nonempty, | |
16009 | # add APPEND to the result, otherwise set result | |
16010 | # to NONDIR_REPLACEMENT. | |
16011 | # value returned in "$func_dirname_result" | |
16012 | # basename: Compute filename of FILE. | |
16013 | # value retuned in "$func_basename_result" | |
16014 | # Implementation must be kept synchronized with func_dirname | |
16015 | # and func_basename. For efficiency, we do not delegate to | |
16016 | # those functions but instead duplicate the functionality here. | |
16017 | func_dirname_and_basename () | |
16018 | { | |
16019 | case ${1} in | |
16020 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16021 | * ) func_dirname_result="${3}" ;; | |
b57f37fb | 16022 | esac |
042acc47 WP |
16023 | func_basename_result="${1##*/}" |
16024 | } | |
b57f37fb | 16025 | |
042acc47 WP |
16026 | # func_stripname prefix suffix name |
16027 | # strip PREFIX and SUFFIX off of NAME. | |
16028 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16029 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16030 | # dot (in which case that matches only a dot). | |
16031 | func_stripname () | |
16032 | { | |
16033 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16034 | # positional parameters, so assign one to ordinary parameter first. | |
16035 | func_stripname_result=${3} | |
16036 | func_stripname_result=${func_stripname_result#"${1}"} | |
16037 | func_stripname_result=${func_stripname_result%"${2}"} | |
16038 | } | |
b57f37fb | 16039 | |
042acc47 WP |
16040 | # func_opt_split |
16041 | func_opt_split () | |
16042 | { | |
16043 | func_opt_split_opt=${1%%=*} | |
16044 | func_opt_split_arg=${1#*=} | |
16045 | } | |
b57f37fb | 16046 | |
042acc47 WP |
16047 | # func_lo2o object |
16048 | func_lo2o () | |
16049 | { | |
16050 | case ${1} in | |
16051 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16052 | *) func_lo2o_result=${1} ;; | |
b57f37fb | 16053 | esac |
042acc47 | 16054 | } |
b57f37fb | 16055 | |
042acc47 WP |
16056 | # func_xform libobj-or-source |
16057 | func_xform () | |
16058 | { | |
16059 | func_xform_result=${1%.*}.lo | |
16060 | } | |
b57f37fb | 16061 | |
042acc47 WP |
16062 | # func_arith arithmetic-term... |
16063 | func_arith () | |
16064 | { | |
16065 | func_arith_result=$(( $* )) | |
16066 | } | |
b57f37fb | 16067 | |
042acc47 WP |
16068 | # func_len string |
16069 | # STRING may not start with a hyphen. | |
16070 | func_len () | |
16071 | { | |
16072 | func_len_result=${#1} | |
16073 | } | |
16074 | ||
16075 | _LT_EOF | |
16076 | ;; | |
16077 | *) # Bourne compatible functions. | |
16078 | cat << \_LT_EOF >> "$cfgfile" | |
16079 | ||
16080 | # func_dirname file append nondir_replacement | |
16081 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16082 | # otherwise set result to NONDIR_REPLACEMENT. | |
16083 | func_dirname () | |
16084 | { | |
16085 | # Extract subdirectory from the argument. | |
16086 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
16087 | if test "X$func_dirname_result" = "X${1}"; then | |
16088 | func_dirname_result="${3}" | |
16089 | else | |
16090 | func_dirname_result="$func_dirname_result${2}" | |
16091 | fi | |
16092 | } | |
b57f37fb | 16093 | |
042acc47 WP |
16094 | # func_basename file |
16095 | func_basename () | |
16096 | { | |
16097 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
16098 | } | |
b57f37fb | 16099 | |
b57f37fb | 16100 | |
042acc47 WP |
16101 | # func_stripname prefix suffix name |
16102 | # strip PREFIX and SUFFIX off of NAME. | |
16103 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16104 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16105 | # dot (in which case that matches only a dot). | |
16106 | # func_strip_suffix prefix name | |
16107 | func_stripname () | |
16108 | { | |
16109 | case ${2} in | |
16110 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
16111 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
16112 | *) func_stripname_result=`$ECHO "X${3}" \ | |
16113 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
b57f37fb | 16114 | esac |
042acc47 | 16115 | } |
b57f37fb | 16116 | |
042acc47 WP |
16117 | # sed scripts: |
16118 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16119 | my_sed_long_arg='1s/^-[^=]*=//' | |
b57f37fb | 16120 | |
042acc47 WP |
16121 | # func_opt_split |
16122 | func_opt_split () | |
16123 | { | |
16124 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
16125 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
b57f37fb | 16126 | } |
042acc47 WP |
16127 | |
16128 | # func_lo2o object | |
16129 | func_lo2o () | |
16130 | { | |
16131 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
16132 | } | |
16133 | ||
16134 | # func_xform libobj-or-source | |
16135 | func_xform () | |
16136 | { | |
16137 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
16138 | } | |
16139 | ||
16140 | # func_arith arithmetic-term... | |
16141 | func_arith () | |
16142 | { | |
16143 | func_arith_result=`expr "$@"` | |
16144 | } | |
16145 | ||
16146 | # func_len string | |
16147 | # STRING may not start with a hyphen. | |
16148 | func_len () | |
16149 | { | |
16150 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16151 | } | |
16152 | ||
16153 | _LT_EOF | |
b57f37fb | 16154 | esac |
b57f37fb | 16155 | |
042acc47 WP |
16156 | case $lt_shell_append in |
16157 | yes) | |
16158 | cat << \_LT_EOF >> "$cfgfile" | |
b57f37fb | 16159 | |
042acc47 WP |
16160 | # func_append var value |
16161 | # Append VALUE to the end of shell variable VAR. | |
16162 | func_append () | |
16163 | { | |
16164 | eval "$1+=\$2" | |
16165 | } | |
16166 | _LT_EOF | |
16167 | ;; | |
16168 | *) | |
16169 | cat << \_LT_EOF >> "$cfgfile" | |
b57f37fb | 16170 | |
042acc47 WP |
16171 | # func_append var value |
16172 | # Append VALUE to the end of shell variable VAR. | |
16173 | func_append () | |
16174 | { | |
16175 | eval "$1=\$$1\$2" | |
16176 | } | |
b57f37fb | 16177 | |
042acc47 WP |
16178 | _LT_EOF |
16179 | ;; | |
b57f37fb WP |
16180 | esac |
16181 | ||
16182 | ||
042acc47 WP |
16183 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
16184 | || (rm -f "$cfgfile"; exit 1) | |
16185 | ||
16186 | mv -f "$cfgfile" "$ofile" || | |
16187 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16188 | chmod +x "$ofile" | |
16189 | ||
b57f37fb WP |
16190 | ;; |
16191 | "include/librb-config.h":C) | |
16192 | outfile=include/librb-config.h.tmp | |
16193 | cat > $outfile <<\_______EOF | |
16194 | /* | |
16195 | * librb-config.h: libratbox config file. Please modify configure.ac | |
16196 | */ | |
16197 | ||
16198 | #ifndef __LIBRB_CONFIG_H | |
16199 | #define __LIBRB_CONFIG_H | |
16200 | ||
16201 | _______EOF | |
16202 | ||
16203 | if test "x$rb_have_ipv6" = "xyes"; then | |
16204 | echo "#define RB_IPV6 1" >> $outfile | |
16205 | fi | |
16206 | ||
16207 | if test "x$rb_windows_h" = "xyes"; then | |
16208 | echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile | |
16209 | echo '#include <windows.h>' >> $outfile | |
16210 | echo '#include <winsock2.h>' >> $outfile | |
16211 | echo '#include <iphlpapi.h>' >> $outfile | |
16212 | fi | |
16213 | ||
16214 | if test "x$rb_alloca_h" = "xyes"; then | |
16215 | echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile | |
16216 | fi | |
16217 | ||
16218 | if test "x$rb_header_stdc" = "xyes"; then | |
16219 | echo '#include <stdlib.h>' >> $outfile | |
16220 | echo '#include <stddef.h>' >> $outfile | |
16221 | elif test "x$rb_header_stdlib" = "xyes"; then | |
16222 | echo '#include <stdlib.h>' >> $outfile | |
16223 | fi | |
16224 | ||
16225 | if test "x$rb_header_string_h" = "xyes"; then | |
16226 | echo '#include <string.h>' >> $outfile | |
16227 | fi | |
16228 | ||
16229 | if test "x$rb_stdint_h" = "xyes"; then | |
16230 | echo '#include <stdint.h>' >> $outfile | |
16231 | fi | |
16232 | ||
16233 | if test "x$rb_inttypes_h" = "xyes"; then | |
16234 | echo '#include <inttypes.h>' >> $outfile | |
16235 | fi | |
16236 | ||
16237 | if test "x$rb_sys_types_h" = "xyes"; then | |
16238 | echo '#include <sys/types.h>' >> $outfile | |
16239 | fi | |
16240 | if test "x$rb_sys_time_h" = "xyes"; then | |
16241 | echo '#include <sys/time.h>' >> $outfile | |
16242 | fi | |
16243 | if test "x$rb_sys_stat_h" = "xyes"; then | |
16244 | echo '#include <sys/stat.h>' >> $outfile | |
16245 | fi | |
16246 | if test "x$rb_time_h" = "xyes"; then | |
16247 | echo '#include <time.h>' >> $outfile | |
16248 | fi | |
16249 | ||
16250 | if test "x$rb_sys_socket_h" = "xyes"; then | |
16251 | echo '#include <sys/socket.h>' >> $outfile | |
16252 | fi | |
16253 | ||
16254 | if test "x$rb_netinet_in_h" = "xyes"; then | |
16255 | echo '#include <netinet/in.h>' >> $outfile | |
16256 | fi | |
16257 | ||
16258 | if test "x$rb_arpa_inet_h" = "xyes"; then | |
16259 | echo '#include <arpa/inet.h>' >> $outfile | |
16260 | fi | |
16261 | ||
16262 | if test "x$rb_unistd_h" = "xyes"; then | |
16263 | echo '#include <unistd.h>' >> $outfile | |
16264 | fi | |
16265 | ||
16266 | if test "x$rb_crypt_h" = "xyes"; then | |
16267 | echo '#include <crypt.h>' >> $outfile | |
16268 | fi | |
16269 | ||
16270 | if test "x$rb_errno_h" = "xyes"; then | |
16271 | echo '#include <errno.h>' >> $outfile | |
16272 | fi | |
16273 | ||
4414eb3c VY |
16274 | echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile |
16275 | ||
16276 | ||
b57f37fb WP |
16277 | if test "x$rb_sockaddr_sa_len" = "xyes"; then |
16278 | echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile | |
16279 | fi | |
16280 | ||
b57f37fb WP |
16281 | if test "x$rb_sockaddr_storage" = "xyes"; then |
16282 | echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile | |
16283 | else | |
94b4fbf9 | 16284 | echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile |
b57f37fb WP |
16285 | fi |
16286 | ||
16287 | cat >> $outfile <<\_______EOF | |
16288 | #endif /* __LIBRB_CONFIG_H */ | |
16289 | _______EOF | |
16290 | ||
16291 | if cmp -s $outfile include/librb-config.h; then | |
042acc47 | 16292 | { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5 |
f030cae8 | 16293 | $as_echo "$as_me: include/librb-config.h is unchanged" >&6;} |
b57f37fb WP |
16294 | ${rb_rm} -f $outfile |
16295 | else | |
16296 | ${rb_mv} $outfile include/librb-config.h | |
16297 | fi | |
16298 | ||
16299 | ;; | |
16300 | ||
16301 | esac | |
16302 | done # for ac_tag | |
16303 | ||
16304 | ||
042acc47 | 16305 | as_fn_exit 0 |
b57f37fb | 16306 | _ACEOF |
b57f37fb WP |
16307 | ac_clean_files=$ac_clean_files_save |
16308 | ||
f030cae8 | 16309 | test $ac_write_fail = 0 || |
12e39525 | 16310 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
f030cae8 | 16311 | |
b57f37fb WP |
16312 | |
16313 | # configure is writing to config.log, and then calls config.status. | |
16314 | # config.status does its own redirection, appending to config.log. | |
16315 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16316 | # by configure, so config.status won't be able to write to it; its | |
16317 | # output is simply discarded. So we exec the FD to /dev/null, | |
16318 | # effectively closing config.log, so it can be properly (re)opened and | |
16319 | # appended to by config.status. When coming back to configure, we | |
16320 | # need to make the FD available again. | |
16321 | if test "$no_create" != yes; then | |
16322 | ac_cs_success=: | |
16323 | ac_config_status_args= | |
16324 | test "$silent" = yes && | |
16325 | ac_config_status_args="$ac_config_status_args --quiet" | |
16326 | exec 5>/dev/null | |
16327 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16328 | exec 5>>config.log | |
16329 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16330 | # would make configure fail if this is the last instruction. | |
12e39525 | 16331 | $ac_cs_success || as_fn_exit 1 |
b57f37fb | 16332 | fi |
f030cae8 | 16333 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
042acc47 | 16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
f030cae8 VY |
16335 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
16336 | fi | |
b57f37fb | 16337 | |
b57f37fb WP |
16338 | |
16339 | ||
16340 | echo | |
16341 | echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" | |
16342 | echo | |
16343 | ||
16344 | echo "Installing into: $prefix" | |
16345 | ||
16346 | echo "IPv6 support ................... $have_v6" | |
16347 | echo "Assert debugging ............... $assert" | |
16348 | echo "Block allocator ................ $balloc" | |
033be687 | 16349 | echo "SSL Type........................ $SSL_TYPE" |
b57f37fb WP |
16350 | echo |
16351 |