]>
Commit | Line | Data |
---|---|---|
db137867 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
08c2568c | 3 | # Generated by GNU Autoconf 2.68 for libratbox devel. |
db137867 | 4 | # |
030272f3 | 5 | # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
db137867 | 6 | # |
96f4052b | 7 | # |
db137867 | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
08c2568c EM |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
10 | # Foundation, Inc. | |
96f4052b | 11 | # |
7083c021 | 12 | # |
db137867 AC |
13 | # This configure script is free software; the Free Software Foundation |
14 | # gives unlimited permission to copy, distribute and modify it. | |
7083c021 AC |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
db137867 AC |
18 | |
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
db137867 AC |
22 | emulate sh |
23 | NULLCMD=: | |
030272f3 | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
db137867 AC |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
7083c021 AC |
29 | case `(set -o) 2>/dev/null` in #( |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
db137867 | 34 | esac |
db137867 AC |
35 | fi |
36 | ||
37 | ||
030272f3 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 | |
7083c021 AC |
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 | |
030272f3 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' | |
db137867 | 58 | else |
030272f3 VY |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
7083c021 | 62 | case $arg in #( |
030272f3 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' | |
db137867 | 71 | fi |
030272f3 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 | } | |
db137867 AC |
83 | fi |
84 | ||
db137867 AC |
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.) | |
db137867 AC |
91 | IFS=" "" $as_nl" |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
08c2568c | 94 | as_myself= |
7083c021 | 95 | case $0 in #(( |
db137867 AC |
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=. | |
7083c021 AC |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
103 | done | |
db137867 AC |
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 | |
030272f3 | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7083c021 | 115 | exit 1 |
db137867 AC |
116 | fi |
117 | ||
7083c021 AC |
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 || : | |
db137867 AC |
125 | done |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
030272f3 VY |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
db137867 | 135 | |
7083c021 AC |
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 | |
b6d0720c AC |
177 | test \$(( 1 + 1 )) = 2 || exit 1 |
178 | ||
179 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
180 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
181 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
182 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
183 | PATH=/empty FPATH=/empty; export PATH FPATH | |
184 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
185 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
7083c021 AC |
186 | if (eval "$as_required") 2>/dev/null; then : |
187 | as_have_required=yes | |
188 | else | |
189 | as_have_required=no | |
190 | fi | |
191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
192 | ||
193 | else | |
194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
195 | as_found=false | |
196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
197 | do | |
198 | IFS=$as_save_IFS | |
199 | test -z "$as_dir" && as_dir=. | |
200 | as_found=: | |
201 | case $as_dir in #( | |
202 | /*) | |
203 | for as_base in sh bash ksh sh5; do | |
204 | # Try only shells that exist, to save several forks. | |
205 | as_shell=$as_dir/$as_base | |
206 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$as_shell as_have_required=yes | |
209 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
210 | break 2 | |
211 | fi | |
212 | fi | |
213 | done;; | |
214 | esac | |
215 | as_found=false | |
216 | done | |
217 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
218 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
219 | CONFIG_SHELL=$SHELL as_have_required=yes | |
220 | fi; } | |
221 | IFS=$as_save_IFS | |
222 | ||
223 | ||
224 | if test "x$CONFIG_SHELL" != x; then : | |
225 | # We cannot yet assume a decent shell, so we have to provide a | |
226 | # neutralization value for shells without unset; and this also | |
227 | # works around shells that cannot unset nonexistent variables. | |
08c2568c | 228 | # Preserve -v and -x to the replacement shell. |
7083c021 AC |
229 | BASH_ENV=/dev/null |
230 | ENV=/dev/null | |
231 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
232 | export CONFIG_SHELL | |
08c2568c EM |
233 | case $- in # (((( |
234 | *v*x* | *x*v* ) as_opts=-vx ;; | |
235 | *v* ) as_opts=-v ;; | |
236 | *x* ) as_opts=-x ;; | |
237 | * ) as_opts= ;; | |
238 | esac | |
239 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
7083c021 AC |
240 | fi |
241 | ||
242 | if test x$as_have_required = xno; then : | |
243 | $as_echo "$0: This script requires a shell more modern than all" | |
244 | $as_echo "$0: the shells that I found on your system." | |
245 | if test x${ZSH_VERSION+set} = xset ; then | |
246 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
247 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
248 | else | |
249 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
250 | $0: including any error possibly output before this | |
251 | $0: message. Then install a modern shell, or manually run | |
252 | $0: the script under such a shell if you do have one." | |
253 | fi | |
254 | exit 1 | |
255 | fi | |
256 | fi | |
257 | fi | |
258 | SHELL=${CONFIG_SHELL-/bin/sh} | |
259 | export SHELL | |
260 | # Unset more variables known to interfere with behavior of common tools. | |
261 | CLICOLOR_FORCE= GREP_OPTIONS= | |
262 | unset CLICOLOR_FORCE GREP_OPTIONS | |
263 | ||
264 | ## --------------------- ## | |
265 | ## M4sh Shell Functions. ## | |
266 | ## --------------------- ## | |
267 | # as_fn_unset VAR | |
268 | # --------------- | |
269 | # Portably unset VAR. | |
270 | as_fn_unset () | |
271 | { | |
272 | { eval $1=; unset $1;} | |
273 | } | |
274 | as_unset=as_fn_unset | |
275 | ||
276 | # as_fn_set_status STATUS | |
277 | # ----------------------- | |
278 | # Set $? to STATUS, without forking. | |
279 | as_fn_set_status () | |
280 | { | |
281 | return $1 | |
282 | } # as_fn_set_status | |
283 | ||
284 | # as_fn_exit STATUS | |
285 | # ----------------- | |
286 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
287 | as_fn_exit () | |
288 | { | |
289 | set +e | |
290 | as_fn_set_status $1 | |
291 | exit $1 | |
292 | } # as_fn_exit | |
293 | ||
294 | # as_fn_mkdir_p | |
295 | # ------------- | |
296 | # Create "$as_dir" as a directory, including parents if necessary. | |
297 | as_fn_mkdir_p () | |
298 | { | |
299 | ||
300 | case $as_dir in #( | |
301 | -*) as_dir=./$as_dir;; | |
302 | esac | |
303 | test -d "$as_dir" || eval $as_mkdir_p || { | |
304 | as_dirs= | |
305 | while :; do | |
306 | case $as_dir in #( | |
307 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
308 | *) as_qdir=$as_dir;; | |
309 | esac | |
310 | as_dirs="'$as_qdir' $as_dirs" | |
311 | as_dir=`$as_dirname -- "$as_dir" || | |
312 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
313 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
314 | X"$as_dir" : 'X\(//\)$' \| \ | |
315 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
316 | $as_echo X"$as_dir" | | |
317 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | /^X\(\/\/\)[^/].*/{ | |
322 | s//\1/ | |
323 | q | |
324 | } | |
325 | /^X\(\/\/\)$/{ | |
326 | s//\1/ | |
327 | q | |
328 | } | |
329 | /^X\(\/\).*/{ | |
330 | s//\1/ | |
331 | q | |
332 | } | |
333 | s/.*/./; q'` | |
334 | test -d "$as_dir" && break | |
335 | done | |
336 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
08c2568c | 337 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
338 | |
339 | ||
340 | } # as_fn_mkdir_p | |
341 | # as_fn_append VAR VALUE | |
342 | # ---------------------- | |
343 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
344 | # advantage of any shell optimizations that allow amortized linear growth over | |
345 | # repeated appends, instead of the typical quadratic growth present in naive | |
346 | # implementations. | |
347 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
348 | eval 'as_fn_append () | |
349 | { | |
350 | eval $1+=\$2 | |
351 | }' | |
352 | else | |
353 | as_fn_append () | |
354 | { | |
355 | eval $1=\$$1\$2 | |
356 | } | |
357 | fi # as_fn_append | |
358 | ||
359 | # as_fn_arith ARG... | |
360 | # ------------------ | |
361 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
362 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
363 | # must be portable across $(()) and expr. | |
364 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
365 | eval 'as_fn_arith () | |
366 | { | |
367 | as_val=$(( $* )) | |
368 | }' | |
369 | else | |
370 | as_fn_arith () | |
371 | { | |
372 | as_val=`expr "$@" || test $? -eq 1` | |
373 | } | |
374 | fi # as_fn_arith | |
375 | ||
376 | ||
08c2568c EM |
377 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
378 | # ---------------------------------------- | |
7083c021 AC |
379 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
380 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
08c2568c | 381 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
382 | as_fn_error () |
383 | { | |
08c2568c EM |
384 | as_status=$1; test $as_status -eq 0 && as_status=1 |
385 | if test "$4"; then | |
386 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
387 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 388 | fi |
08c2568c | 389 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
390 | as_fn_exit $as_status |
391 | } # as_fn_error | |
392 | ||
db137867 AC |
393 | if expr a : '\(a\)' >/dev/null 2>&1 && |
394 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
395 | as_expr=expr | |
396 | else | |
397 | as_expr=false | |
398 | fi | |
399 | ||
400 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
401 | as_basename=basename | |
402 | else | |
403 | as_basename=false | |
404 | fi | |
405 | ||
7083c021 AC |
406 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
407 | as_dirname=dirname | |
408 | else | |
409 | as_dirname=false | |
410 | fi | |
db137867 | 411 | |
db137867 AC |
412 | as_me=`$as_basename -- "$0" || |
413 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
414 | X"$0" : 'X\(//\)$' \| \ | |
415 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
030272f3 | 416 | $as_echo X/"$0" | |
db137867 AC |
417 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
418 | s//\1/ | |
419 | q | |
420 | } | |
421 | /^X\/\(\/\/\)$/{ | |
422 | s//\1/ | |
423 | q | |
424 | } | |
425 | /^X\/\(\/\).*/{ | |
426 | s//\1/ | |
427 | q | |
428 | } | |
429 | s/.*/./; q'` | |
430 | ||
7083c021 AC |
431 | # Avoid depending upon Character Ranges. |
432 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
433 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
434 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
435 | as_cr_digits='0123456789' | |
436 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
db137867 AC |
437 | |
438 | ||
7083c021 AC |
439 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
440 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
441 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
442 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
443 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
444 | sed -n ' | |
445 | p | |
446 | /[$]LINENO/= | |
447 | ' <$as_myself | | |
448 | sed ' | |
449 | s/[$]LINENO.*/&-/ | |
450 | t lineno | |
451 | b | |
452 | :lineno | |
453 | N | |
454 | :loop | |
455 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
456 | t loop | |
457 | s/-\n.*// | |
458 | ' >$as_me.lineno && | |
459 | chmod +x "$as_me.lineno" || | |
460 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
db137867 | 461 | |
7083c021 AC |
462 | # Don't try to exec as it changes $[0], causing all sort of problems |
463 | # (the dirname of $[0] is not the place where we might find the | |
464 | # original and so on. Autoconf is especially sensitive to this). | |
465 | . "./$as_me.lineno" | |
466 | # Exit status is that of the last command. | |
467 | exit | |
db137867 AC |
468 | } |
469 | ||
7083c021 AC |
470 | ECHO_C= ECHO_N= ECHO_T= |
471 | case `echo -n x` in #((((( | |
472 | -n*) | |
473 | case `echo 'xy\c'` in | |
474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
475 | xy) ECHO_C='\c';; | |
476 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
477 | ECHO_T=' ';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
481 | esac | |
db137867 | 482 | |
7083c021 AC |
483 | rm -f conf$$ conf$$.exe conf$$.file |
484 | if test -d conf$$.dir; then | |
485 | rm -f conf$$.dir/conf$$.file | |
486 | else | |
487 | rm -f conf$$.dir | |
488 | mkdir conf$$.dir 2>/dev/null | |
db137867 | 489 | fi |
7083c021 AC |
490 | if (echo >conf$$.file) 2>/dev/null; then |
491 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
492 | as_ln_s='ln -s' | |
493 | # ... but there are two gotchas: | |
494 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
495 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
496 | # In both cases, we have to default to `cp -p'. | |
497 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
498 | as_ln_s='cp -p' | |
499 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
500 | as_ln_s=ln | |
501 | else | |
502 | as_ln_s='cp -p' | |
503 | fi | |
db137867 | 504 | else |
7083c021 | 505 | as_ln_s='cp -p' |
db137867 | 506 | fi |
7083c021 AC |
507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
508 | rmdir conf$$.dir 2>/dev/null | |
db137867 | 509 | |
7083c021 AC |
510 | if mkdir -p . 2>/dev/null; then |
511 | as_mkdir_p='mkdir -p "$as_dir"' | |
512 | else | |
513 | test -d ./-p && rmdir ./-p | |
514 | as_mkdir_p=false | |
db137867 AC |
515 | fi |
516 | ||
7083c021 AC |
517 | if test -x / >/dev/null 2>&1; then |
518 | as_test_x='test -x' | |
db137867 | 519 | else |
7083c021 AC |
520 | if ls -dL / >/dev/null 2>&1; then |
521 | as_ls_L_option=L | |
522 | else | |
523 | as_ls_L_option= | |
524 | fi | |
525 | as_test_x=' | |
526 | eval sh -c '\'' | |
527 | if test -d "$1"; then | |
528 | test -d "$1/."; | |
529 | else | |
530 | case $1 in #( | |
531 | -*)set "./$1";; | |
532 | esac; | |
533 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
534 | ???[sx]*):;;*)false;;esac;fi | |
535 | '\'' sh | |
536 | ' | |
db137867 | 537 | fi |
7083c021 | 538 | as_executable_p=$as_test_x |
db137867 | 539 | |
7083c021 AC |
540 | # Sed expression to map a string onto a valid CPP name. |
541 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 542 | |
7083c021 AC |
543 | # Sed expression to map a string onto a valid variable name. |
544 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 545 | |
db137867 AC |
546 | SHELL=${CONFIG_SHELL-/bin/sh} |
547 | ||
db137867 | 548 | |
96f4052b AC |
549 | test -n "$DJDIR" || exec 7<&0 </dev/null |
550 | exec 6>&1 | |
db137867 AC |
551 | |
552 | # Name of the host. | |
08c2568c | 553 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
db137867 AC |
554 | # so uname gets run too. |
555 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
556 | ||
557 | # | |
558 | # Initializations. | |
559 | # | |
560 | ac_default_prefix=/usr/local | |
561 | ac_clean_files= | |
562 | ac_config_libobj_dir=. | |
563 | LIBOBJS= | |
564 | cross_compiling=no | |
565 | subdirs= | |
566 | MFLAGS= | |
567 | MAKEFLAGS= | |
db137867 AC |
568 | |
569 | # Identity of this package. | |
570 | PACKAGE_NAME='libratbox' | |
571 | PACKAGE_TARNAME='libratbox' | |
572 | PACKAGE_VERSION='devel' | |
573 | PACKAGE_STRING='libratbox devel' | |
574 | PACKAGE_BUGREPORT='' | |
7083c021 | 575 | PACKAGE_URL='' |
db137867 AC |
576 | |
577 | ac_default_prefix=/usr/local/libratbox | |
578 | # Factoring default headers for most tests. | |
579 | ac_includes_default="\ | |
580 | #include <stdio.h> | |
581 | #ifdef HAVE_SYS_TYPES_H | |
582 | # include <sys/types.h> | |
583 | #endif | |
584 | #ifdef HAVE_SYS_STAT_H | |
585 | # include <sys/stat.h> | |
586 | #endif | |
587 | #ifdef STDC_HEADERS | |
588 | # include <stdlib.h> | |
589 | # include <stddef.h> | |
590 | #else | |
591 | # ifdef HAVE_STDLIB_H | |
592 | # include <stdlib.h> | |
593 | # endif | |
594 | #endif | |
595 | #ifdef HAVE_STRING_H | |
596 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
597 | # include <memory.h> | |
598 | # endif | |
599 | # include <string.h> | |
600 | #endif | |
601 | #ifdef HAVE_STRINGS_H | |
602 | # include <strings.h> | |
603 | #endif | |
604 | #ifdef HAVE_INTTYPES_H | |
605 | # include <inttypes.h> | |
606 | #endif | |
607 | #ifdef HAVE_STDINT_H | |
608 | # include <stdint.h> | |
609 | #endif | |
610 | #ifdef HAVE_UNISTD_H | |
611 | # include <unistd.h> | |
612 | #endif" | |
613 | ||
96f4052b | 614 | ac_header_list= |
7083c021 AC |
615 | ac_subst_vars='am__EXEEXT_FALSE |
616 | am__EXEEXT_TRUE | |
617 | LTLIBOBJS | |
030272f3 VY |
618 | LIBOBJS |
619 | RB_PREFIX | |
620 | SSL_LIBS | |
621 | SSL_CFLAGS | |
622 | SEDOBJ | |
623 | PICFLAGS | |
624 | GNUTLS_LIBS | |
625 | GNUTLS_CFLAGS | |
a949ab1a AC |
626 | PKG_CONFIG_LIBDIR |
627 | PKG_CONFIG_PATH | |
030272f3 VY |
628 | PKG_CONFIG |
629 | ALLOCA | |
030272f3 VY |
630 | MINGW_FALSE |
631 | MINGW_TRUE | |
7083c021 AC |
632 | OTOOL64 |
633 | OTOOL | |
634 | LIPO | |
030272f3 VY |
635 | NMEDIT |
636 | DSYMUTIL | |
b6d0720c | 637 | MANIFEST_TOOL |
030272f3 | 638 | RANLIB |
b6d0720c | 639 | ac_ct_AR |
030272f3 | 640 | AR |
b6d0720c | 641 | DLLTOOL |
7083c021 | 642 | OBJDUMP |
030272f3 | 643 | LN_S |
7083c021 AC |
644 | NM |
645 | ac_ct_DUMPBIN | |
646 | DUMPBIN | |
647 | LD | |
648 | FGREP | |
030272f3 VY |
649 | host_os |
650 | host_vendor | |
651 | host_cpu | |
652 | host | |
653 | build_os | |
654 | build_vendor | |
655 | build_cpu | |
656 | build | |
7083c021 | 657 | LIBTOOL |
030272f3 VY |
658 | TOUCH |
659 | LN | |
660 | MV | |
661 | CP | |
662 | RM | |
663 | AS | |
664 | MAINT | |
665 | MAINTAINER_MODE_FALSE | |
666 | MAINTAINER_MODE_TRUE | |
667 | SED | |
668 | EGREP | |
669 | GREP | |
670 | CPP | |
671 | am__fastdepCC_FALSE | |
672 | am__fastdepCC_TRUE | |
673 | CCDEPMODE | |
a949ab1a | 674 | am__nodep |
030272f3 VY |
675 | AMDEPBACKSLASH |
676 | AMDEP_FALSE | |
677 | AMDEP_TRUE | |
678 | am__quote | |
679 | am__include | |
680 | DEPDIR | |
681 | OBJEXT | |
682 | EXEEXT | |
683 | ac_ct_CC | |
684 | CPPFLAGS | |
685 | LDFLAGS | |
686 | CFLAGS | |
687 | CC | |
688 | am__untar | |
689 | am__tar | |
690 | AMTAR | |
691 | am__leading_dot | |
692 | SET_MAKE | |
693 | AWK | |
694 | mkdir_p | |
695 | MKDIR_P | |
696 | INSTALL_STRIP_PROGRAM | |
697 | STRIP | |
698 | install_sh | |
699 | MAKEINFO | |
700 | AUTOHEADER | |
701 | AUTOMAKE | |
702 | AUTOCONF | |
703 | ACLOCAL | |
704 | VERSION | |
705 | PACKAGE | |
706 | CYGPATH_W | |
707 | am__isrc | |
708 | INSTALL_DATA | |
709 | INSTALL_SCRIPT | |
710 | INSTALL_PROGRAM | |
711 | target_alias | |
712 | host_alias | |
db137867 | 713 | build_alias |
030272f3 VY |
714 | LIBS |
715 | ECHO_T | |
716 | ECHO_N | |
717 | ECHO_C | |
718 | DEFS | |
719 | mandir | |
720 | localedir | |
721 | libdir | |
722 | psdir | |
723 | pdfdir | |
724 | dvidir | |
725 | htmldir | |
726 | infodir | |
727 | docdir | |
728 | oldincludedir | |
729 | includedir | |
730 | localstatedir | |
731 | sharedstatedir | |
732 | sysconfdir | |
733 | datadir | |
734 | datarootdir | |
735 | libexecdir | |
736 | sbindir | |
737 | bindir | |
738 | program_transform_name | |
739 | prefix | |
740 | exec_prefix | |
7083c021 | 741 | PACKAGE_URL |
030272f3 VY |
742 | PACKAGE_BUGREPORT |
743 | PACKAGE_STRING | |
744 | PACKAGE_VERSION | |
745 | PACKAGE_TARNAME | |
746 | PACKAGE_NAME | |
747 | PATH_SEPARATOR | |
748 | SHELL' | |
749 | ac_subst_files='' | |
750 | ac_user_opts=' | |
751 | enable_option_checking | |
752 | enable_dependency_tracking | |
753 | enable_static | |
754 | enable_shared | |
755 | enable_maintainer_mode | |
7083c021 | 756 | with_pic |
030272f3 VY |
757 | enable_fast_install |
758 | with_gnu_ld | |
b6d0720c | 759 | with_sysroot |
030272f3 | 760 | enable_libtool_lock |
030272f3 VY |
761 | enable_ipv6 |
762 | enable_openssl | |
763 | enable_gnutls | |
764 | enable_assert | |
765 | enable_profile | |
766 | enable_balloc | |
767 | enable_warnings | |
768 | ' | |
769 | ac_precious_vars='build_alias | |
db137867 AC |
770 | host_alias |
771 | target_alias | |
db137867 AC |
772 | CC |
773 | CFLAGS | |
774 | LDFLAGS | |
030272f3 | 775 | LIBS |
db137867 | 776 | CPPFLAGS |
db137867 | 777 | CPP |
709c1951 | 778 | PKG_CONFIG |
a949ab1a AC |
779 | PKG_CONFIG_PATH |
780 | PKG_CONFIG_LIBDIR | |
709c1951 AC |
781 | GNUTLS_CFLAGS |
782 | GNUTLS_LIBS' | |
3202e249 | 783 | |
db137867 AC |
784 | |
785 | # Initialize some variables set by options. | |
786 | ac_init_help= | |
787 | ac_init_version=false | |
030272f3 VY |
788 | ac_unrecognized_opts= |
789 | ac_unrecognized_sep= | |
db137867 AC |
790 | # The variables have the same names as the options, with |
791 | # dashes changed to underlines. | |
792 | cache_file=/dev/null | |
793 | exec_prefix=NONE | |
794 | no_create= | |
795 | no_recursion= | |
796 | prefix=NONE | |
797 | program_prefix=NONE | |
798 | program_suffix=NONE | |
799 | program_transform_name=s,x,x, | |
800 | silent= | |
801 | site= | |
802 | srcdir= | |
803 | verbose= | |
804 | x_includes=NONE | |
805 | x_libraries=NONE | |
806 | ||
807 | # Installation directory options. | |
808 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
809 | # and all the variables that are supposed to be based on exec_prefix | |
810 | # by default will actually change. | |
811 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
812 | # (The list follows the same order as the GNU Coding Standards.) | |
813 | bindir='${exec_prefix}/bin' | |
814 | sbindir='${exec_prefix}/sbin' | |
815 | libexecdir='${exec_prefix}/libexec' | |
816 | datarootdir='${prefix}/share' | |
817 | datadir='${datarootdir}' | |
818 | sysconfdir='${prefix}/etc' | |
819 | sharedstatedir='${prefix}/com' | |
820 | localstatedir='${prefix}/var' | |
821 | includedir='${prefix}/include' | |
822 | oldincludedir='/usr/include' | |
823 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
824 | infodir='${datarootdir}/info' | |
825 | htmldir='${docdir}' | |
826 | dvidir='${docdir}' | |
827 | pdfdir='${docdir}' | |
828 | psdir='${docdir}' | |
829 | libdir='${exec_prefix}/lib' | |
830 | localedir='${datarootdir}/locale' | |
831 | mandir='${datarootdir}/man' | |
832 | ||
833 | ac_prev= | |
834 | ac_dashdash= | |
835 | for ac_option | |
836 | do | |
837 | # If the previous option needs an argument, assign it. | |
838 | if test -n "$ac_prev"; then | |
839 | eval $ac_prev=\$ac_option | |
840 | ac_prev= | |
841 | continue | |
842 | fi | |
843 | ||
844 | case $ac_option in | |
08c2568c EM |
845 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
846 | *=) ac_optarg= ;; | |
847 | *) ac_optarg=yes ;; | |
db137867 AC |
848 | esac |
849 | ||
850 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
851 | ||
852 | case $ac_dashdash$ac_option in | |
853 | --) | |
854 | ac_dashdash=yes ;; | |
855 | ||
856 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
857 | ac_prev=bindir ;; | |
858 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
859 | bindir=$ac_optarg ;; | |
860 | ||
861 | -build | --build | --buil | --bui | --bu) | |
862 | ac_prev=build_alias ;; | |
863 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
864 | build_alias=$ac_optarg ;; | |
865 | ||
866 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
867 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
868 | ac_prev=cache_file ;; | |
869 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
870 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
871 | cache_file=$ac_optarg ;; | |
872 | ||
873 | --config-cache | -C) | |
874 | cache_file=config.cache ;; | |
875 | ||
876 | -datadir | --datadir | --datadi | --datad) | |
877 | ac_prev=datadir ;; | |
878 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
879 | datadir=$ac_optarg ;; | |
880 | ||
881 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
882 | | --dataroo | --dataro | --datar) | |
883 | ac_prev=datarootdir ;; | |
884 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
885 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
886 | datarootdir=$ac_optarg ;; | |
887 | ||
888 | -disable-* | --disable-*) | |
030272f3 | 889 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
db137867 | 890 | # Reject names that are not valid shell variable names. |
030272f3 | 891 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 892 | as_fn_error $? "invalid feature name: $ac_useropt" |
030272f3 VY |
893 | ac_useropt_orig=$ac_useropt |
894 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
895 | case $ac_user_opts in | |
896 | *" | |
897 | "enable_$ac_useropt" | |
898 | "*) ;; | |
899 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
900 | ac_unrecognized_sep=', ';; | |
901 | esac | |
902 | eval enable_$ac_useropt=no ;; | |
db137867 AC |
903 | |
904 | -docdir | --docdir | --docdi | --doc | --do) | |
905 | ac_prev=docdir ;; | |
906 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
907 | docdir=$ac_optarg ;; | |
908 | ||
909 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
910 | ac_prev=dvidir ;; | |
911 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
912 | dvidir=$ac_optarg ;; | |
913 | ||
914 | -enable-* | --enable-*) | |
030272f3 | 915 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
db137867 | 916 | # Reject names that are not valid shell variable names. |
030272f3 | 917 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 918 | as_fn_error $? "invalid feature name: $ac_useropt" |
030272f3 VY |
919 | ac_useropt_orig=$ac_useropt |
920 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
921 | case $ac_user_opts in | |
922 | *" | |
923 | "enable_$ac_useropt" | |
924 | "*) ;; | |
925 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
926 | ac_unrecognized_sep=', ';; | |
927 | esac | |
928 | eval enable_$ac_useropt=\$ac_optarg ;; | |
db137867 AC |
929 | |
930 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
931 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
932 | | --exec | --exe | --ex) | |
933 | ac_prev=exec_prefix ;; | |
934 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
935 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
936 | | --exec=* | --exe=* | --ex=*) | |
937 | exec_prefix=$ac_optarg ;; | |
938 | ||
939 | -gas | --gas | --ga | --g) | |
940 | # Obsolete; use --with-gas. | |
941 | with_gas=yes ;; | |
942 | ||
943 | -help | --help | --hel | --he | -h) | |
944 | ac_init_help=long ;; | |
945 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
946 | ac_init_help=recursive ;; | |
947 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
948 | ac_init_help=short ;; | |
949 | ||
950 | -host | --host | --hos | --ho) | |
951 | ac_prev=host_alias ;; | |
952 | -host=* | --host=* | --hos=* | --ho=*) | |
953 | host_alias=$ac_optarg ;; | |
954 | ||
955 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
956 | ac_prev=htmldir ;; | |
957 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
958 | | --ht=*) | |
959 | htmldir=$ac_optarg ;; | |
960 | ||
961 | -includedir | --includedir | --includedi | --included | --include \ | |
962 | | --includ | --inclu | --incl | --inc) | |
963 | ac_prev=includedir ;; | |
964 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
965 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
966 | includedir=$ac_optarg ;; | |
967 | ||
968 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
969 | ac_prev=infodir ;; | |
970 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
971 | infodir=$ac_optarg ;; | |
972 | ||
973 | -libdir | --libdir | --libdi | --libd) | |
974 | ac_prev=libdir ;; | |
975 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
976 | libdir=$ac_optarg ;; | |
977 | ||
978 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
979 | | --libexe | --libex | --libe) | |
980 | ac_prev=libexecdir ;; | |
981 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
982 | | --libexe=* | --libex=* | --libe=*) | |
983 | libexecdir=$ac_optarg ;; | |
984 | ||
985 | -localedir | --localedir | --localedi | --localed | --locale) | |
986 | ac_prev=localedir ;; | |
987 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
988 | localedir=$ac_optarg ;; | |
989 | ||
990 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
991 | | --localstate | --localstat | --localsta | --localst | --locals) | |
992 | ac_prev=localstatedir ;; | |
993 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
994 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
995 | localstatedir=$ac_optarg ;; | |
996 | ||
997 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
998 | ac_prev=mandir ;; | |
999 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1000 | mandir=$ac_optarg ;; | |
1001 | ||
1002 | -nfp | --nfp | --nf) | |
1003 | # Obsolete; use --without-fp. | |
1004 | with_fp=no ;; | |
1005 | ||
1006 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1007 | | --no-cr | --no-c | -n) | |
1008 | no_create=yes ;; | |
1009 | ||
1010 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1011 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1012 | no_recursion=yes ;; | |
1013 | ||
1014 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1015 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1016 | | --oldin | --oldi | --old | --ol | --o) | |
1017 | ac_prev=oldincludedir ;; | |
1018 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1019 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1020 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1021 | oldincludedir=$ac_optarg ;; | |
1022 | ||
1023 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1024 | ac_prev=prefix ;; | |
1025 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1026 | prefix=$ac_optarg ;; | |
1027 | ||
1028 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1029 | | --program-pre | --program-pr | --program-p) | |
1030 | ac_prev=program_prefix ;; | |
1031 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1032 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1033 | program_prefix=$ac_optarg ;; | |
1034 | ||
1035 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1036 | | --program-suf | --program-su | --program-s) | |
1037 | ac_prev=program_suffix ;; | |
1038 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1039 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1040 | program_suffix=$ac_optarg ;; | |
1041 | ||
1042 | -program-transform-name | --program-transform-name \ | |
1043 | | --program-transform-nam | --program-transform-na \ | |
1044 | | --program-transform-n | --program-transform- \ | |
1045 | | --program-transform | --program-transfor \ | |
1046 | | --program-transfo | --program-transf \ | |
1047 | | --program-trans | --program-tran \ | |
1048 | | --progr-tra | --program-tr | --program-t) | |
1049 | ac_prev=program_transform_name ;; | |
1050 | -program-transform-name=* | --program-transform-name=* \ | |
1051 | | --program-transform-nam=* | --program-transform-na=* \ | |
1052 | | --program-transform-n=* | --program-transform-=* \ | |
1053 | | --program-transform=* | --program-transfor=* \ | |
1054 | | --program-transfo=* | --program-transf=* \ | |
1055 | | --program-trans=* | --program-tran=* \ | |
1056 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1057 | program_transform_name=$ac_optarg ;; | |
1058 | ||
1059 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1060 | ac_prev=pdfdir ;; | |
1061 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1062 | pdfdir=$ac_optarg ;; | |
1063 | ||
1064 | -psdir | --psdir | --psdi | --psd | --ps) | |
1065 | ac_prev=psdir ;; | |
1066 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1067 | psdir=$ac_optarg ;; | |
1068 | ||
1069 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1070 | | -silent | --silent | --silen | --sile | --sil) | |
1071 | silent=yes ;; | |
1072 | ||
1073 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1074 | ac_prev=sbindir ;; | |
1075 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1076 | | --sbi=* | --sb=*) | |
1077 | sbindir=$ac_optarg ;; | |
1078 | ||
1079 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1080 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1081 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1082 | | --sha | --sh) | |
1083 | ac_prev=sharedstatedir ;; | |
1084 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1085 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1086 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1087 | | --sha=* | --sh=*) | |
1088 | sharedstatedir=$ac_optarg ;; | |
1089 | ||
1090 | -site | --site | --sit) | |
1091 | ac_prev=site ;; | |
1092 | -site=* | --site=* | --sit=*) | |
1093 | site=$ac_optarg ;; | |
1094 | ||
1095 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1096 | ac_prev=srcdir ;; | |
1097 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1098 | srcdir=$ac_optarg ;; | |
1099 | ||
1100 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1101 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1102 | ac_prev=sysconfdir ;; | |
1103 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1104 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1105 | sysconfdir=$ac_optarg ;; | |
1106 | ||
1107 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1108 | ac_prev=target_alias ;; | |
1109 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1110 | target_alias=$ac_optarg ;; | |
1111 | ||
1112 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1113 | verbose=yes ;; | |
1114 | ||
1115 | -version | --version | --versio | --versi | --vers | -V) | |
1116 | ac_init_version=: ;; | |
1117 | ||
1118 | -with-* | --with-*) | |
030272f3 | 1119 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
db137867 | 1120 | # Reject names that are not valid shell variable names. |
030272f3 | 1121 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 1122 | as_fn_error $? "invalid package name: $ac_useropt" |
030272f3 VY |
1123 | ac_useropt_orig=$ac_useropt |
1124 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1125 | case $ac_user_opts in | |
1126 | *" | |
1127 | "with_$ac_useropt" | |
1128 | "*) ;; | |
1129 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1130 | ac_unrecognized_sep=', ';; | |
1131 | esac | |
1132 | eval with_$ac_useropt=\$ac_optarg ;; | |
db137867 AC |
1133 | |
1134 | -without-* | --without-*) | |
030272f3 | 1135 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
db137867 | 1136 | # Reject names that are not valid shell variable names. |
030272f3 | 1137 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
08c2568c | 1138 | as_fn_error $? "invalid package name: $ac_useropt" |
030272f3 VY |
1139 | ac_useropt_orig=$ac_useropt |
1140 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1141 | case $ac_user_opts in | |
1142 | *" | |
1143 | "with_$ac_useropt" | |
1144 | "*) ;; | |
1145 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1146 | ac_unrecognized_sep=', ';; | |
1147 | esac | |
1148 | eval with_$ac_useropt=no ;; | |
db137867 AC |
1149 | |
1150 | --x) | |
1151 | # Obsolete; use --with-x. | |
1152 | with_x=yes ;; | |
1153 | ||
1154 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1155 | | --x-incl | --x-inc | --x-in | --x-i) | |
1156 | ac_prev=x_includes ;; | |
1157 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1158 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1159 | x_includes=$ac_optarg ;; | |
1160 | ||
1161 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1162 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1163 | ac_prev=x_libraries ;; | |
1164 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1165 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1166 | x_libraries=$ac_optarg ;; | |
1167 | ||
08c2568c EM |
1168 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1169 | Try \`$0 --help' for more information" | |
db137867 AC |
1170 | ;; |
1171 | ||
1172 | *=*) | |
1173 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1174 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1175 | case $ac_envvar in #( |
1176 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
08c2568c | 1177 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1178 | esac |
db137867 AC |
1179 | eval $ac_envvar=\$ac_optarg |
1180 | export $ac_envvar ;; | |
1181 | ||
1182 | *) | |
1183 | # FIXME: should be removed in autoconf 3.0. | |
030272f3 | 1184 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
db137867 | 1185 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
030272f3 | 1186 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
08c2568c | 1187 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
db137867 AC |
1188 | ;; |
1189 | ||
1190 | esac | |
1191 | done | |
1192 | ||
1193 | if test -n "$ac_prev"; then | |
1194 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
08c2568c | 1195 | as_fn_error $? "missing argument to $ac_option" |
db137867 AC |
1196 | fi |
1197 | ||
030272f3 VY |
1198 | if test -n "$ac_unrecognized_opts"; then |
1199 | case $enable_option_checking in | |
1200 | no) ;; | |
08c2568c | 1201 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
030272f3 VY |
1202 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1203 | esac | |
1204 | fi | |
1205 | ||
1206 | # Check all directory arguments for consistency. | |
db137867 AC |
1207 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1208 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1209 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1210 | libdir localedir mandir | |
1211 | do | |
1212 | eval ac_val=\$$ac_var | |
030272f3 VY |
1213 | # Remove trailing slashes. |
1214 | case $ac_val in | |
1215 | */ ) | |
1216 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1217 | eval $ac_var=\$ac_val;; | |
1218 | esac | |
1219 | # Be sure to have absolute directory names. | |
db137867 AC |
1220 | case $ac_val in |
1221 | [\\/$]* | ?:[\\/]* ) continue;; | |
1222 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1223 | esac | |
08c2568c | 1224 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
db137867 AC |
1225 | done |
1226 | ||
1227 | # There might be people who depend on the old broken behavior: `$host' | |
1228 | # used to hold the argument of --host etc. | |
1229 | # FIXME: To remove some day. | |
1230 | build=$build_alias | |
1231 | host=$host_alias | |
1232 | target=$target_alias | |
1233 | ||
1234 | # FIXME: To remove some day. | |
1235 | if test "x$host_alias" != x; then | |
1236 | if test "x$build_alias" = x; then | |
1237 | cross_compiling=maybe | |
08c2568c EM |
1238 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1239 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
db137867 AC |
1240 | elif test "x$build_alias" != "x$host_alias"; then |
1241 | cross_compiling=yes | |
1242 | fi | |
1243 | fi | |
1244 | ||
1245 | ac_tool_prefix= | |
1246 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1247 | ||
1248 | test "$silent" = yes && exec 6>/dev/null | |
1249 | ||
1250 | ||
1251 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1252 | ac_ls_di=`ls -di .` && | |
1253 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
08c2568c | 1254 | as_fn_error $? "working directory cannot be determined" |
db137867 | 1255 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
08c2568c | 1256 | as_fn_error $? "pwd does not report name of working directory" |
db137867 AC |
1257 | |
1258 | ||
1259 | # Find the source files, if location was not specified. | |
1260 | if test -z "$srcdir"; then | |
1261 | ac_srcdir_defaulted=yes | |
1262 | # Try the directory containing this script, then the parent directory. | |
030272f3 VY |
1263 | ac_confdir=`$as_dirname -- "$as_myself" || |
1264 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1265 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1266 | X"$as_myself" : 'X\(//\)$' \| \ | |
1267 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1268 | $as_echo X"$as_myself" | | |
db137867 AC |
1269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1270 | s//\1/ | |
1271 | q | |
1272 | } | |
1273 | /^X\(\/\/\)[^/].*/{ | |
1274 | s//\1/ | |
1275 | q | |
1276 | } | |
1277 | /^X\(\/\/\)$/{ | |
1278 | s//\1/ | |
1279 | q | |
1280 | } | |
1281 | /^X\(\/\).*/{ | |
1282 | s//\1/ | |
1283 | q | |
1284 | } | |
1285 | s/.*/./; q'` | |
1286 | srcdir=$ac_confdir | |
1287 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1288 | srcdir=.. | |
1289 | fi | |
1290 | else | |
1291 | ac_srcdir_defaulted=no | |
1292 | fi | |
1293 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1294 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
08c2568c | 1295 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
db137867 AC |
1296 | fi |
1297 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1298 | ac_abs_confdir=`( | |
08c2568c | 1299 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
db137867 AC |
1300 | pwd)` |
1301 | # When building in place, set srcdir=. | |
1302 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1303 | srcdir=. | |
1304 | fi | |
1305 | # Remove unnecessary trailing slashes from srcdir. | |
1306 | # Double slashes in file names in object file debugging info | |
1307 | # mess up M-x gdb in Emacs. | |
1308 | case $srcdir in | |
1309 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1310 | esac | |
1311 | for ac_var in $ac_precious_vars; do | |
1312 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1313 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1314 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1315 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1316 | done | |
1317 | ||
1318 | # | |
1319 | # Report the --help message. | |
1320 | # | |
1321 | if test "$ac_init_help" = "long"; then | |
1322 | # Omit some internal or obsolete options to make the list less imposing. | |
1323 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1324 | cat <<_ACEOF | |
1325 | \`configure' configures libratbox devel to adapt to many kinds of systems. | |
1326 | ||
1327 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1328 | ||
1329 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1330 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1331 | ||
1332 | Defaults for the options are specified in brackets. | |
1333 | ||
1334 | Configuration: | |
1335 | -h, --help display this help and exit | |
1336 | --help=short display options specific to this package | |
1337 | --help=recursive display the short help of all the included packages | |
1338 | -V, --version display version information and exit | |
08c2568c | 1339 | -q, --quiet, --silent do not print \`checking ...' messages |
db137867 AC |
1340 | --cache-file=FILE cache test results in FILE [disabled] |
1341 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1342 | -n, --no-create do not create output files | |
1343 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1344 | ||
1345 | Installation directories: | |
1346 | --prefix=PREFIX install architecture-independent files in PREFIX | |
030272f3 | 1347 | [$ac_default_prefix] |
db137867 | 1348 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
030272f3 | 1349 | [PREFIX] |
db137867 AC |
1350 | |
1351 | By default, \`make install' will install all the files in | |
1352 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1353 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1354 | for instance \`--prefix=\$HOME'. | |
1355 | ||
1356 | For better control, use the options below. | |
1357 | ||
1358 | Fine tuning of the installation directories: | |
030272f3 VY |
1359 | --bindir=DIR user executables [EPREFIX/bin] |
1360 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1361 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1362 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1363 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1364 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1365 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1366 | --includedir=DIR C header files [PREFIX/include] | |
1367 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1368 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1369 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1370 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1371 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1372 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1373 | --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox] | |
1374 | --htmldir=DIR html documentation [DOCDIR] | |
1375 | --dvidir=DIR dvi documentation [DOCDIR] | |
1376 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1377 | --psdir=DIR ps documentation [DOCDIR] | |
db137867 AC |
1378 | _ACEOF |
1379 | ||
1380 | cat <<\_ACEOF | |
1381 | ||
1382 | Program names: | |
1383 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1384 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1385 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1386 | ||
1387 | System types: | |
1388 | --build=BUILD configure for building on BUILD [guessed] | |
1389 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1390 | _ACEOF | |
1391 | fi | |
1392 | ||
1393 | if test -n "$ac_init_help"; then | |
1394 | case $ac_init_help in | |
1395 | short | recursive ) echo "Configuration of libratbox devel:";; | |
1396 | esac | |
1397 | cat <<\_ACEOF | |
1398 | ||
1399 | Optional Features: | |
030272f3 | 1400 | --disable-option-checking ignore unrecognized --enable/--with options |
db137867 AC |
1401 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1402 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1403 | --disable-dependency-tracking speeds up one-time build | |
1404 | --enable-dependency-tracking do not reject slow dependency extractors | |
1405 | --enable-static[=PKGS] build static libraries [default=no] | |
1406 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1407 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1408 | (and sometimes confusing) to the casual installer | |
1409 | --enable-fast-install[=PKGS] | |
1410 | optimize for fast installation [default=yes] | |
1411 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1412 | --disable-ipv6 Disable IPv6 support | |
1413 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1414 | --disable-openssl Disable OpenSSL support. | |
c2ac22cc VY |
1415 | --enable-gnutls Enable GnuTLS support. |
1416 | --disable-gnutls Disable GnuTLS support. | |
db137867 AC |
1417 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1418 | hard(aborts the daemon) | |
1419 | --enable-profile Enable profiling | |
1420 | --disable-balloc Disable the block allocator. | |
1421 | --enable-warnings Enable all sorts of warnings for debugging. | |
1422 | ||
1423 | Optional Packages: | |
1424 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1425 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
a949ab1a | 1426 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
db137867 | 1427 | both] |
7083c021 | 1428 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
b6d0720c AC |
1429 | --with-sysroot=DIR Search for dependent libraries within DIR |
1430 | (or the compiler's sysroot if not specified). | |
db137867 AC |
1431 | |
1432 | Some influential environment variables: | |
1433 | CC C compiler command | |
1434 | CFLAGS C compiler flags | |
1435 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1436 | nonstandard directory <lib dir> | |
1437 | LIBS libraries to pass to the linker, e.g. -l<library> | |
96f4052b | 1438 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
db137867 AC |
1439 | you have headers in a nonstandard directory <include dir> |
1440 | CPP C preprocessor | |
709c1951 | 1441 | PKG_CONFIG path to pkg-config utility |
a949ab1a AC |
1442 | PKG_CONFIG_PATH |
1443 | directories to add to pkg-config's search path | |
1444 | PKG_CONFIG_LIBDIR | |
1445 | path overriding pkg-config's built-in search path | |
709c1951 AC |
1446 | GNUTLS_CFLAGS |
1447 | C compiler flags for GNUTLS, overriding pkg-config | |
1448 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config | |
db137867 AC |
1449 | |
1450 | Use these variables to override the choices made by `configure' or to help | |
1451 | it to find libraries and programs with nonstandard names/locations. | |
1452 | ||
7083c021 | 1453 | Report bugs to the package provider. |
db137867 AC |
1454 | _ACEOF |
1455 | ac_status=$? | |
1456 | fi | |
1457 | ||
1458 | if test "$ac_init_help" = "recursive"; then | |
1459 | # If there are subdirs, report their specific --help. | |
1460 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
030272f3 VY |
1461 | test -d "$ac_dir" || |
1462 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1463 | continue | |
db137867 AC |
1464 | ac_builddir=. |
1465 | ||
1466 | case "$ac_dir" in | |
1467 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1468 | *) | |
030272f3 | 1469 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
db137867 | 1470 | # A ".." for each directory in $ac_dir_suffix. |
030272f3 | 1471 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
db137867 AC |
1472 | case $ac_top_builddir_sub in |
1473 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1474 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1475 | esac ;; | |
1476 | esac | |
1477 | ac_abs_top_builddir=$ac_pwd | |
1478 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1479 | # for backward compatibility: | |
1480 | ac_top_builddir=$ac_top_build_prefix | |
1481 | ||
1482 | case $srcdir in | |
1483 | .) # We are building in place. | |
1484 | ac_srcdir=. | |
1485 | ac_top_srcdir=$ac_top_builddir_sub | |
1486 | ac_abs_top_srcdir=$ac_pwd ;; | |
1487 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1488 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1489 | ac_top_srcdir=$srcdir | |
1490 | ac_abs_top_srcdir=$srcdir ;; | |
1491 | *) # Relative name. | |
1492 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1493 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1494 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1495 | esac | |
1496 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1497 | ||
1498 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1499 | # Check for guested configure. | |
1500 | if test -f "$ac_srcdir/configure.gnu"; then | |
1501 | echo && | |
1502 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1503 | elif test -f "$ac_srcdir/configure"; then | |
1504 | echo && | |
1505 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1506 | else | |
030272f3 | 1507 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
db137867 AC |
1508 | fi || ac_status=$? |
1509 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1510 | done | |
1511 | fi | |
1512 | ||
1513 | test -n "$ac_init_help" && exit $ac_status | |
1514 | if $ac_init_version; then | |
1515 | cat <<\_ACEOF | |
1516 | libratbox configure devel | |
08c2568c | 1517 | generated by GNU Autoconf 2.68 |
db137867 | 1518 | |
08c2568c | 1519 | Copyright (C) 2010 Free Software Foundation, Inc. |
db137867 AC |
1520 | This configure script is free software; the Free Software Foundation |
1521 | gives unlimited permission to copy, distribute and modify it. | |
1522 | ||
030272f3 | 1523 | $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $ |
db137867 AC |
1524 | _ACEOF |
1525 | exit | |
1526 | fi | |
7083c021 AC |
1527 | |
1528 | ## ------------------------ ## | |
1529 | ## Autoconf initialization. ## | |
1530 | ## ------------------------ ## | |
1531 | ||
1532 | # ac_fn_c_try_compile LINENO | |
1533 | # -------------------------- | |
1534 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1535 | ac_fn_c_try_compile () | |
1536 | { | |
1537 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1538 | rm -f conftest.$ac_objext | |
1539 | if { { ac_try="$ac_compile" | |
1540 | case "(($ac_try" in | |
1541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1542 | *) ac_try_echo=$ac_try;; | |
1543 | esac | |
1544 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1545 | $as_echo "$ac_try_echo"; } >&5 | |
1546 | (eval "$ac_compile") 2>conftest.err | |
1547 | ac_status=$? | |
1548 | if test -s conftest.err; then | |
1549 | grep -v '^ *+' conftest.err >conftest.er1 | |
1550 | cat conftest.er1 >&5 | |
1551 | mv -f conftest.er1 conftest.err | |
1552 | fi | |
1553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1554 | test $ac_status = 0; } && { | |
1555 | test -z "$ac_c_werror_flag" || | |
1556 | test ! -s conftest.err | |
1557 | } && test -s conftest.$ac_objext; then : | |
1558 | ac_retval=0 | |
1559 | else | |
1560 | $as_echo "$as_me: failed program was:" >&5 | |
1561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1562 | ||
1563 | ac_retval=1 | |
1564 | fi | |
08c2568c | 1565 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1566 | as_fn_set_status $ac_retval |
7083c021 AC |
1567 | |
1568 | } # ac_fn_c_try_compile | |
1569 | ||
1570 | # ac_fn_c_try_cpp LINENO | |
1571 | # ---------------------- | |
1572 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1573 | ac_fn_c_try_cpp () | |
1574 | { | |
1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1576 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1577 | case "(($ac_try" in | |
1578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1579 | *) ac_try_echo=$ac_try;; | |
1580 | esac | |
1581 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1582 | $as_echo "$ac_try_echo"; } >&5 | |
1583 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1584 | ac_status=$? | |
1585 | if test -s conftest.err; then | |
1586 | grep -v '^ *+' conftest.err >conftest.er1 | |
1587 | cat conftest.er1 >&5 | |
1588 | mv -f conftest.er1 conftest.err | |
1589 | fi | |
1590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
08c2568c | 1591 | test $ac_status = 0; } > conftest.i && { |
7083c021 AC |
1592 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1593 | test ! -s conftest.err | |
1594 | }; then : | |
1595 | ac_retval=0 | |
1596 | else | |
1597 | $as_echo "$as_me: failed program was:" >&5 | |
1598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1599 | ||
1600 | ac_retval=1 | |
1601 | fi | |
08c2568c | 1602 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1603 | as_fn_set_status $ac_retval |
7083c021 AC |
1604 | |
1605 | } # ac_fn_c_try_cpp | |
1606 | ||
1607 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1608 | # ------------------------------------------------------- | |
1609 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1610 | # the include files in INCLUDES and setting the cache variable VAR | |
1611 | # accordingly. | |
1612 | ac_fn_c_check_header_mongrel () | |
1613 | { | |
1614 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
08c2568c | 1615 | if eval \${$3+:} false; then : |
7083c021 AC |
1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1617 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1618 | if eval \${$3+:} false; then : |
7083c021 AC |
1619 | $as_echo_n "(cached) " >&6 |
1620 | fi | |
1621 | eval ac_res=\$$3 | |
1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1623 | $as_echo "$ac_res" >&6; } | |
1624 | else | |
1625 | # Is the header compilable? | |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1627 | $as_echo_n "checking $2 usability... " >&6; } | |
1628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1629 | /* end confdefs.h. */ | |
1630 | $4 | |
1631 | #include <$2> | |
1632 | _ACEOF | |
1633 | if ac_fn_c_try_compile "$LINENO"; then : | |
1634 | ac_header_compiler=yes | |
1635 | else | |
1636 | ac_header_compiler=no | |
1637 | fi | |
1638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1640 | $as_echo "$ac_header_compiler" >&6; } | |
1641 | ||
1642 | # Is the header present? | |
1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1644 | $as_echo_n "checking $2 presence... " >&6; } | |
1645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1646 | /* end confdefs.h. */ | |
1647 | #include <$2> | |
1648 | _ACEOF | |
1649 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1650 | ac_header_preproc=yes | |
1651 | else | |
1652 | ac_header_preproc=no | |
1653 | fi | |
08c2568c | 1654 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
1655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1656 | $as_echo "$ac_header_preproc" >&6; } | |
1657 | ||
1658 | # So? What about this header? | |
1659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1660 | yes:no: ) | |
1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1662 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1664 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1665 | ;; | |
1666 | no:yes:* ) | |
1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1668 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1669 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1670 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1672 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1674 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1676 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1677 | ;; | |
1678 | esac | |
1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1680 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1681 | if eval \${$3+:} false; then : |
7083c021 AC |
1682 | $as_echo_n "(cached) " >&6 |
1683 | else | |
1684 | eval "$3=\$ac_header_compiler" | |
1685 | fi | |
1686 | eval ac_res=\$$3 | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1688 | $as_echo "$ac_res" >&6; } | |
1689 | fi | |
08c2568c | 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1691 | |
1692 | } # ac_fn_c_check_header_mongrel | |
1693 | ||
1694 | # ac_fn_c_try_run LINENO | |
1695 | # ---------------------- | |
1696 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1697 | # that executables *can* be run. | |
1698 | ac_fn_c_try_run () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | if { { ac_try="$ac_link" | |
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_link") 2>&5 | |
1709 | ac_status=$? | |
1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1712 | { { case "(($ac_try" in | |
1713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1714 | *) ac_try_echo=$ac_try;; | |
1715 | esac | |
1716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1717 | $as_echo "$ac_try_echo"; } >&5 | |
1718 | (eval "$ac_try") 2>&5 | |
1719 | ac_status=$? | |
1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1721 | test $ac_status = 0; }; }; then : | |
1722 | ac_retval=0 | |
1723 | else | |
1724 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1725 | $as_echo "$as_me: failed program was:" >&5 | |
1726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1727 | ||
1728 | ac_retval=$ac_status | |
1729 | fi | |
1730 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
08c2568c | 1731 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1732 | as_fn_set_status $ac_retval |
7083c021 AC |
1733 | |
1734 | } # ac_fn_c_try_run | |
1735 | ||
1736 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1737 | # ------------------------------------------------------- | |
1738 | # Tests whether HEADER exists and can be compiled using the include files in | |
1739 | # INCLUDES, setting the cache variable VAR accordingly. | |
1740 | ac_fn_c_check_header_compile () | |
1741 | { | |
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1744 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1745 | if eval \${$3+:} false; then : |
7083c021 AC |
1746 | $as_echo_n "(cached) " >&6 |
1747 | else | |
1748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1749 | /* end confdefs.h. */ | |
1750 | $4 | |
1751 | #include <$2> | |
1752 | _ACEOF | |
1753 | if ac_fn_c_try_compile "$LINENO"; then : | |
1754 | eval "$3=yes" | |
1755 | else | |
1756 | eval "$3=no" | |
1757 | fi | |
1758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1759 | fi | |
1760 | eval ac_res=\$$3 | |
1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1762 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1763 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1764 | |
1765 | } # ac_fn_c_check_header_compile | |
1766 | ||
1767 | # ac_fn_c_try_link LINENO | |
1768 | # ----------------------- | |
1769 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1770 | ac_fn_c_try_link () | |
1771 | { | |
1772 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1774 | if { { ac_try="$ac_link" | |
1775 | case "(($ac_try" in | |
1776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1777 | *) ac_try_echo=$ac_try;; | |
1778 | esac | |
1779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1780 | $as_echo "$ac_try_echo"; } >&5 | |
1781 | (eval "$ac_link") 2>conftest.err | |
1782 | ac_status=$? | |
1783 | if test -s conftest.err; then | |
1784 | grep -v '^ *+' conftest.err >conftest.er1 | |
1785 | cat conftest.er1 >&5 | |
1786 | mv -f conftest.er1 conftest.err | |
1787 | fi | |
1788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1789 | test $ac_status = 0; } && { | |
1790 | test -z "$ac_c_werror_flag" || | |
1791 | test ! -s conftest.err | |
1792 | } && test -s conftest$ac_exeext && { | |
1793 | test "$cross_compiling" = yes || | |
1794 | $as_test_x conftest$ac_exeext | |
1795 | }; then : | |
1796 | ac_retval=0 | |
1797 | else | |
1798 | $as_echo "$as_me: failed program was:" >&5 | |
1799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1800 | ||
1801 | ac_retval=1 | |
1802 | fi | |
1803 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1804 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1805 | # interfere with the next link command; also delete a directory that is | |
1806 | # left behind by Apple's compiler. We do this before executing the actions. | |
1807 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
08c2568c | 1808 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
96f4052b | 1809 | as_fn_set_status $ac_retval |
7083c021 AC |
1810 | |
1811 | } # ac_fn_c_try_link | |
1812 | ||
1813 | # ac_fn_c_check_func LINENO FUNC VAR | |
1814 | # ---------------------------------- | |
1815 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1816 | ac_fn_c_check_func () | |
1817 | { | |
1818 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1820 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1821 | if eval \${$3+:} false; then : |
7083c021 AC |
1822 | $as_echo_n "(cached) " >&6 |
1823 | else | |
1824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1825 | /* end confdefs.h. */ | |
1826 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1827 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1828 | #define $2 innocuous_$2 | |
1829 | ||
1830 | /* System header to define __stub macros and hopefully few prototypes, | |
1831 | which can conflict with char $2 (); below. | |
1832 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1833 | <limits.h> exists even on freestanding compilers. */ | |
1834 | ||
1835 | #ifdef __STDC__ | |
1836 | # include <limits.h> | |
1837 | #else | |
1838 | # include <assert.h> | |
1839 | #endif | |
1840 | ||
1841 | #undef $2 | |
1842 | ||
1843 | /* Override any GCC internal prototype to avoid an error. | |
1844 | Use char because int might match the return type of a GCC | |
1845 | builtin and then its argument prototype would still apply. */ | |
1846 | #ifdef __cplusplus | |
1847 | extern "C" | |
1848 | #endif | |
1849 | char $2 (); | |
1850 | /* The GNU C library defines this for functions which it implements | |
1851 | to always fail with ENOSYS. Some functions are actually named | |
1852 | something starting with __ and the normal name is an alias. */ | |
1853 | #if defined __stub_$2 || defined __stub___$2 | |
1854 | choke me | |
1855 | #endif | |
1856 | ||
1857 | int | |
1858 | main () | |
1859 | { | |
1860 | return $2 (); | |
1861 | ; | |
1862 | return 0; | |
1863 | } | |
1864 | _ACEOF | |
1865 | if ac_fn_c_try_link "$LINENO"; then : | |
1866 | eval "$3=yes" | |
1867 | else | |
1868 | eval "$3=no" | |
1869 | fi | |
1870 | rm -f core conftest.err conftest.$ac_objext \ | |
1871 | conftest$ac_exeext conftest.$ac_ext | |
1872 | fi | |
1873 | eval ac_res=\$$3 | |
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1875 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1876 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1877 | |
1878 | } # ac_fn_c_check_func | |
1879 | ||
1880 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1881 | # ------------------------------------------- | |
1882 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1883 | # variable VAR accordingly. | |
1884 | ac_fn_c_check_type () | |
1885 | { | |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1888 | $as_echo_n "checking for $2... " >&6; } | |
08c2568c | 1889 | if eval \${$3+:} false; then : |
7083c021 AC |
1890 | $as_echo_n "(cached) " >&6 |
1891 | else | |
1892 | eval "$3=no" | |
1893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1894 | /* end confdefs.h. */ | |
1895 | $4 | |
1896 | int | |
1897 | main () | |
1898 | { | |
1899 | if (sizeof ($2)) | |
1900 | return 0; | |
1901 | ; | |
1902 | return 0; | |
1903 | } | |
1904 | _ACEOF | |
1905 | if ac_fn_c_try_compile "$LINENO"; then : | |
1906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1907 | /* end confdefs.h. */ | |
1908 | $4 | |
1909 | int | |
1910 | main () | |
1911 | { | |
1912 | if (sizeof (($2))) | |
1913 | return 0; | |
1914 | ; | |
1915 | return 0; | |
1916 | } | |
1917 | _ACEOF | |
1918 | if ac_fn_c_try_compile "$LINENO"; then : | |
1919 | ||
1920 | else | |
1921 | eval "$3=yes" | |
1922 | fi | |
1923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1924 | fi | |
1925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1926 | fi | |
1927 | eval ac_res=\$$3 | |
1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1929 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1930 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1931 | |
1932 | } # ac_fn_c_check_type | |
1933 | ||
1934 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1935 | # ---------------------------------------------------- | |
1936 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1937 | # INCLUDES, setting cache variable VAR accordingly. | |
1938 | ac_fn_c_check_member () | |
1939 | { | |
1940 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1942 | $as_echo_n "checking for $2.$3... " >&6; } | |
08c2568c | 1943 | if eval \${$4+:} false; then : |
7083c021 AC |
1944 | $as_echo_n "(cached) " >&6 |
1945 | else | |
1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1947 | /* end confdefs.h. */ | |
1948 | $5 | |
1949 | int | |
1950 | main () | |
1951 | { | |
1952 | static $2 ac_aggr; | |
1953 | if (ac_aggr.$3) | |
1954 | return 0; | |
1955 | ; | |
1956 | return 0; | |
1957 | } | |
1958 | _ACEOF | |
1959 | if ac_fn_c_try_compile "$LINENO"; then : | |
1960 | eval "$4=yes" | |
1961 | else | |
1962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1963 | /* end confdefs.h. */ | |
1964 | $5 | |
1965 | int | |
1966 | main () | |
1967 | { | |
1968 | static $2 ac_aggr; | |
1969 | if (sizeof ac_aggr.$3) | |
1970 | return 0; | |
1971 | ; | |
1972 | return 0; | |
1973 | } | |
1974 | _ACEOF | |
1975 | if ac_fn_c_try_compile "$LINENO"; then : | |
1976 | eval "$4=yes" | |
1977 | else | |
1978 | eval "$4=no" | |
1979 | fi | |
1980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1981 | fi | |
1982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1983 | fi | |
1984 | eval ac_res=\$$4 | |
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1986 | $as_echo "$ac_res" >&6; } | |
08c2568c | 1987 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7083c021 AC |
1988 | |
1989 | } # ac_fn_c_check_member | |
db137867 AC |
1990 | cat >config.log <<_ACEOF |
1991 | This file contains any messages produced by compilers while | |
1992 | running configure, to aid debugging if configure makes a mistake. | |
1993 | ||
1994 | It was created by libratbox $as_me devel, which was | |
08c2568c | 1995 | generated by GNU Autoconf 2.68. Invocation command line was |
db137867 AC |
1996 | |
1997 | $ $0 $@ | |
1998 | ||
1999 | _ACEOF | |
2000 | exec 5>>config.log | |
2001 | { | |
2002 | cat <<_ASUNAME | |
2003 | ## --------- ## | |
2004 | ## Platform. ## | |
2005 | ## --------- ## | |
2006 | ||
2007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2008 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2009 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2010 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2011 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2012 | ||
2013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2015 | ||
2016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2019 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2023 | ||
2024 | _ASUNAME | |
2025 | ||
2026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2027 | for as_dir in $PATH | |
2028 | do | |
2029 | IFS=$as_save_IFS | |
2030 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
2031 | $as_echo "PATH: $as_dir" |
2032 | done | |
db137867 AC |
2033 | IFS=$as_save_IFS |
2034 | ||
2035 | } >&5 | |
2036 | ||
2037 | cat >&5 <<_ACEOF | |
2038 | ||
2039 | ||
2040 | ## ----------- ## | |
2041 | ## Core tests. ## | |
2042 | ## ----------- ## | |
2043 | ||
2044 | _ACEOF | |
2045 | ||
2046 | ||
2047 | # Keep a trace of the command line. | |
2048 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2049 | # Strip out --silent because we don't want to record it for future runs. | |
2050 | # Also quote any args containing shell meta-characters. | |
2051 | # Make two passes to allow for proper duplicate-argument suppression. | |
2052 | ac_configure_args= | |
2053 | ac_configure_args0= | |
2054 | ac_configure_args1= | |
2055 | ac_must_keep_next=false | |
2056 | for ac_pass in 1 2 | |
2057 | do | |
2058 | for ac_arg | |
2059 | do | |
2060 | case $ac_arg in | |
2061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2063 | | -silent | --silent | --silen | --sile | --sil) | |
2064 | continue ;; | |
2065 | *\'*) | |
030272f3 | 2066 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
db137867 AC |
2067 | esac |
2068 | case $ac_pass in | |
7083c021 | 2069 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
db137867 | 2070 | 2) |
7083c021 | 2071 | as_fn_append ac_configure_args1 " '$ac_arg'" |
db137867 AC |
2072 | if test $ac_must_keep_next = true; then |
2073 | ac_must_keep_next=false # Got value, back to normal. | |
2074 | else | |
2075 | case $ac_arg in | |
2076 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2079 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2080 | case "$ac_configure_args0 " in | |
2081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2082 | esac | |
2083 | ;; | |
2084 | -* ) ac_must_keep_next=true ;; | |
2085 | esac | |
2086 | fi | |
7083c021 | 2087 | as_fn_append ac_configure_args " '$ac_arg'" |
db137867 AC |
2088 | ;; |
2089 | esac | |
2090 | done | |
2091 | done | |
7083c021 AC |
2092 | { ac_configure_args0=; unset ac_configure_args0;} |
2093 | { ac_configure_args1=; unset ac_configure_args1;} | |
db137867 AC |
2094 | |
2095 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2096 | # config.log. We remove comments because anyway the quotes in there | |
2097 | # would cause problems or look ugly. | |
2098 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2099 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2100 | trap 'exit_status=$? | |
2101 | # Save into config.log some information that might help in debugging. | |
2102 | { | |
2103 | echo | |
2104 | ||
08c2568c | 2105 | $as_echo "## ---------------- ## |
db137867 | 2106 | ## Cache variables. ## |
08c2568c | 2107 | ## ---------------- ##" |
db137867 AC |
2108 | echo |
2109 | # The following way of writing the cache mishandles newlines in values, | |
2110 | ( | |
2111 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2112 | eval ac_val=\$$ac_var | |
2113 | case $ac_val in #( | |
2114 | *${as_nl}*) | |
2115 | case $ac_var in #( | |
7083c021 | 2116 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
030272f3 | 2117 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
db137867 AC |
2118 | esac |
2119 | case $ac_var in #( | |
2120 | _ | IFS | as_nl) ;; #( | |
030272f3 | 2121 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7083c021 | 2122 | *) { eval $ac_var=; unset $ac_var;} ;; |
db137867 AC |
2123 | esac ;; |
2124 | esac | |
2125 | done | |
2126 | (set) 2>&1 | | |
2127 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2128 | *${as_nl}ac_space=\ *) | |
2129 | sed -n \ | |
2130 | "s/'\''/'\''\\\\'\'''\''/g; | |
2131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2132 | ;; #( | |
2133 | *) | |
2134 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2135 | ;; | |
2136 | esac | | |
2137 | sort | |
2138 | ) | |
2139 | echo | |
2140 | ||
08c2568c | 2141 | $as_echo "## ----------------- ## |
db137867 | 2142 | ## Output variables. ## |
08c2568c | 2143 | ## ----------------- ##" |
db137867 AC |
2144 | echo |
2145 | for ac_var in $ac_subst_vars | |
2146 | do | |
2147 | eval ac_val=\$$ac_var | |
2148 | case $ac_val in | |
030272f3 | 2149 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
db137867 | 2150 | esac |
030272f3 | 2151 | $as_echo "$ac_var='\''$ac_val'\''" |
db137867 AC |
2152 | done | sort |
2153 | echo | |
2154 | ||
2155 | if test -n "$ac_subst_files"; then | |
08c2568c | 2156 | $as_echo "## ------------------- ## |
db137867 | 2157 | ## File substitutions. ## |
08c2568c | 2158 | ## ------------------- ##" |
db137867 AC |
2159 | echo |
2160 | for ac_var in $ac_subst_files | |
2161 | do | |
2162 | eval ac_val=\$$ac_var | |
2163 | case $ac_val in | |
030272f3 | 2164 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
db137867 | 2165 | esac |
030272f3 | 2166 | $as_echo "$ac_var='\''$ac_val'\''" |
db137867 AC |
2167 | done | sort |
2168 | echo | |
2169 | fi | |
2170 | ||
2171 | if test -s confdefs.h; then | |
08c2568c | 2172 | $as_echo "## ----------- ## |
db137867 | 2173 | ## confdefs.h. ## |
08c2568c | 2174 | ## ----------- ##" |
db137867 AC |
2175 | echo |
2176 | cat confdefs.h | |
2177 | echo | |
2178 | fi | |
2179 | test "$ac_signal" != 0 && | |
030272f3 VY |
2180 | $as_echo "$as_me: caught signal $ac_signal" |
2181 | $as_echo "$as_me: exit $exit_status" | |
db137867 AC |
2182 | } >&5 |
2183 | rm -f core *.core core.conftest.* && | |
2184 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2185 | exit $exit_status | |
2186 | ' 0 | |
2187 | for ac_signal in 1 2 13 15; do | |
7083c021 | 2188 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
db137867 AC |
2189 | done |
2190 | ac_signal=0 | |
2191 | ||
2192 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2193 | rm -f -r conftest* confdefs.h | |
2194 | ||
7083c021 AC |
2195 | $as_echo "/* confdefs.h */" > confdefs.h |
2196 | ||
db137867 AC |
2197 | # Predefined preprocessor variables. |
2198 | ||
2199 | cat >>confdefs.h <<_ACEOF | |
2200 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2201 | _ACEOF | |
2202 | ||
db137867 AC |
2203 | cat >>confdefs.h <<_ACEOF |
2204 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2205 | _ACEOF | |
2206 | ||
db137867 AC |
2207 | cat >>confdefs.h <<_ACEOF |
2208 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2209 | _ACEOF | |
2210 | ||
db137867 AC |
2211 | cat >>confdefs.h <<_ACEOF |
2212 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2213 | _ACEOF | |
2214 | ||
db137867 AC |
2215 | cat >>confdefs.h <<_ACEOF |
2216 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2217 | _ACEOF | |
2218 | ||
7083c021 AC |
2219 | cat >>confdefs.h <<_ACEOF |
2220 | #define PACKAGE_URL "$PACKAGE_URL" | |
2221 | _ACEOF | |
2222 | ||
db137867 AC |
2223 | |
2224 | # Let the site file select an alternate cache file if it wants to. | |
030272f3 VY |
2225 | # Prefer an explicitly selected file to automatically selected ones. |
2226 | ac_site_file1=NONE | |
2227 | ac_site_file2=NONE | |
db137867 | 2228 | if test -n "$CONFIG_SITE"; then |
08c2568c EM |
2229 | # We do not want a PATH search for config.site. |
2230 | case $CONFIG_SITE in #(( | |
2231 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2232 | */*) ac_site_file1=$CONFIG_SITE;; | |
2233 | *) ac_site_file1=./$CONFIG_SITE;; | |
2234 | esac | |
db137867 | 2235 | elif test "x$prefix" != xNONE; then |
030272f3 VY |
2236 | ac_site_file1=$prefix/share/config.site |
2237 | ac_site_file2=$prefix/etc/config.site | |
db137867 | 2238 | else |
030272f3 VY |
2239 | ac_site_file1=$ac_default_prefix/share/config.site |
2240 | ac_site_file2=$ac_default_prefix/etc/config.site | |
db137867 | 2241 | fi |
030272f3 | 2242 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
db137867 | 2243 | do |
030272f3 | 2244 | test "x$ac_site_file" = xNONE && continue |
96f4052b | 2245 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 | 2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
030272f3 | 2247 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
db137867 | 2248 | sed 's/^/| /' "$ac_site_file" >&5 |
08c2568c EM |
2249 | . "$ac_site_file" \ |
2250 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2251 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2252 | as_fn_error $? "failed to load site script $ac_site_file | |
2253 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 AC |
2254 | fi |
2255 | done | |
2256 | ||
2257 | if test -r "$cache_file"; then | |
96f4052b AC |
2258 | # Some versions of bash will fail to source /dev/null (special files |
2259 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2260 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 | 2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
030272f3 | 2262 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
db137867 AC |
2263 | case $cache_file in |
2264 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2265 | *) . "./$cache_file";; | |
2266 | esac | |
2267 | fi | |
2268 | else | |
7083c021 | 2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
030272f3 | 2270 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
db137867 AC |
2271 | >$cache_file |
2272 | fi | |
2273 | ||
96f4052b AC |
2274 | as_fn_append ac_header_list " stdlib.h" |
2275 | as_fn_append ac_header_list " unistd.h" | |
2276 | as_fn_append ac_header_list " sys/param.h" | |
db137867 AC |
2277 | # Check that the precious variables saved in the cache have kept the same |
2278 | # value. | |
2279 | ac_cache_corrupted=false | |
2280 | for ac_var in $ac_precious_vars; do | |
2281 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2282 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2283 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2284 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2285 | case $ac_old_set,$ac_new_set in | |
2286 | set,) | |
7083c021 | 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
030272f3 | 2288 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
db137867 AC |
2289 | ac_cache_corrupted=: ;; |
2290 | ,set) | |
7083c021 | 2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
030272f3 | 2292 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
db137867 AC |
2293 | ac_cache_corrupted=: ;; |
2294 | ,);; | |
2295 | *) | |
2296 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
030272f3 VY |
2297 | # differences in whitespace do not lead to failure. |
2298 | ac_old_val_w=`echo x $ac_old_val` | |
2299 | ac_new_val_w=`echo x $ac_new_val` | |
2300 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
7083c021 | 2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
030272f3 VY |
2302 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2303 | ac_cache_corrupted=: | |
2304 | else | |
7083c021 | 2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
030272f3 VY |
2306 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2307 | eval $ac_var=\$ac_old_val | |
2308 | fi | |
7083c021 | 2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
030272f3 | 2310 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
7083c021 | 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
030272f3 | 2312 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
db137867 AC |
2313 | fi;; |
2314 | esac | |
2315 | # Pass precious variables to config.status. | |
2316 | if test "$ac_new_set" = set; then | |
2317 | case $ac_new_val in | |
030272f3 | 2318 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
db137867 AC |
2319 | *) ac_arg=$ac_var=$ac_new_val ;; |
2320 | esac | |
2321 | case " $ac_configure_args " in | |
2322 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
7083c021 | 2323 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
db137867 AC |
2324 | esac |
2325 | fi | |
2326 | done | |
2327 | if $ac_cache_corrupted; then | |
7083c021 | 2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 2329 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7083c021 | 2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
030272f3 | 2331 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
08c2568c | 2332 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
db137867 | 2333 | fi |
7083c021 AC |
2334 | ## -------------------- ## |
2335 | ## Main body of script. ## | |
2336 | ## -------------------- ## | |
db137867 | 2337 | |
7083c021 AC |
2338 | ac_ext=c |
2339 | ac_cpp='$CPP $CPPFLAGS' | |
2340 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2341 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2342 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
db137867 AC |
2343 | |
2344 | ||
7083c021 | 2345 | am__api_version='1.11' |
db137867 | 2346 | |
7083c021 AC |
2347 | ac_aux_dir= |
2348 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
08c2568c EM |
2349 | if test -f "$ac_dir/install-sh"; then |
2350 | ac_aux_dir=$ac_dir | |
2351 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2352 | break | |
2353 | elif test -f "$ac_dir/install.sh"; then | |
2354 | ac_aux_dir=$ac_dir | |
2355 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2356 | break | |
2357 | elif test -f "$ac_dir/shtool"; then | |
2358 | ac_aux_dir=$ac_dir | |
2359 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2360 | break | |
2361 | fi | |
7083c021 AC |
2362 | done |
2363 | if test -z "$ac_aux_dir"; then | |
08c2568c | 2364 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
7083c021 | 2365 | fi |
db137867 | 2366 | |
7083c021 AC |
2367 | # These three variables are undocumented and unsupported, |
2368 | # and are intended to be withdrawn in a future Autoconf release. | |
2369 | # They can cause serious problems if a builder's source tree is in a directory | |
2370 | # whose full name contains unusual characters. | |
2371 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2372 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2373 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
db137867 AC |
2374 | |
2375 | ||
2376 | # Find a good install program. We prefer a C program (faster), | |
2377 | # so one script is as good as another. But avoid the broken or | |
2378 | # incompatible versions: | |
2379 | # SysV /etc/install, /usr/sbin/install | |
2380 | # SunOS /usr/etc/install | |
2381 | # IRIX /sbin/install | |
2382 | # AIX /bin/install | |
2383 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2384 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2385 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2386 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2387 | # OS/2's system install, which has a completely different semantic | |
2388 | # ./install, which can be erroneously created by make from ./install.sh. | |
030272f3 | 2389 | # Reject install programs that cannot install multiple files. |
7083c021 | 2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
030272f3 | 2391 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
db137867 | 2392 | if test -z "$INSTALL"; then |
08c2568c | 2393 | if ${ac_cv_path_install+:} false; then : |
030272f3 | 2394 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2395 | else |
2396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2397 | for as_dir in $PATH | |
2398 | do | |
2399 | IFS=$as_save_IFS | |
2400 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
2401 | # Account for people who put trailing slashes in PATH elements. |
2402 | case $as_dir/ in #(( | |
2403 | ./ | .// | /[cC]/* | \ | |
db137867 | 2404 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
7083c021 | 2405 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
db137867 AC |
2406 | /usr/ucb/* ) ;; |
2407 | *) | |
2408 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2409 | # Don't use installbsd from OSF since it installs stuff as root | |
2410 | # by default. | |
2411 | for ac_prog in ginstall scoinst install; do | |
2412 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2413 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2414 | if test $ac_prog = install && | |
2415 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2416 | # AIX install. It has an incompatible calling convention. | |
2417 | : | |
2418 | elif test $ac_prog = install && | |
2419 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2420 | # program-specific install script used by HP pwplus--don't use. | |
2421 | : | |
2422 | else | |
030272f3 VY |
2423 | rm -rf conftest.one conftest.two conftest.dir |
2424 | echo one > conftest.one | |
2425 | echo two > conftest.two | |
2426 | mkdir conftest.dir | |
2427 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2428 | test -s conftest.one && test -s conftest.two && | |
2429 | test -s conftest.dir/conftest.one && | |
2430 | test -s conftest.dir/conftest.two | |
2431 | then | |
2432 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2433 | break 3 | |
2434 | fi | |
db137867 AC |
2435 | fi |
2436 | fi | |
2437 | done | |
2438 | done | |
2439 | ;; | |
2440 | esac | |
030272f3 | 2441 | |
7083c021 | 2442 | done |
db137867 AC |
2443 | IFS=$as_save_IFS |
2444 | ||
030272f3 | 2445 | rm -rf conftest.one conftest.two conftest.dir |
db137867 AC |
2446 | |
2447 | fi | |
2448 | if test "${ac_cv_path_install+set}" = set; then | |
2449 | INSTALL=$ac_cv_path_install | |
2450 | else | |
2451 | # As a last resort, use the slow shell script. Don't cache a | |
2452 | # value for INSTALL within a source directory, because that will | |
2453 | # break other packages using the cache if that directory is | |
2454 | # removed, or if the value is a relative name. | |
2455 | INSTALL=$ac_install_sh | |
2456 | fi | |
2457 | fi | |
7083c021 | 2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
030272f3 | 2459 | $as_echo "$INSTALL" >&6; } |
db137867 AC |
2460 | |
2461 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2462 | # It thinks the first close brace ends the variable substitution. | |
2463 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2464 | ||
2465 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2466 | ||
2467 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2468 | ||
7083c021 | 2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
030272f3 | 2470 | $as_echo_n "checking whether build environment is sane... " >&6; } |
db137867 AC |
2471 | # Just in case |
2472 | sleep 1 | |
2473 | echo timestamp > conftest.file | |
7083c021 AC |
2474 | # Reject unsafe characters in $srcdir or the absolute working directory |
2475 | # name. Accept space and tab only in the latter. | |
2476 | am_lf=' | |
2477 | ' | |
2478 | case `pwd` in | |
2479 | *[\\\"\#\$\&\'\`$am_lf]*) | |
08c2568c | 2480 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
7083c021 AC |
2481 | esac |
2482 | case $srcdir in | |
2483 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
08c2568c | 2484 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
7083c021 AC |
2485 | esac |
2486 | ||
db137867 AC |
2487 | # Do `set' in a subshell so we don't clobber the current shell's |
2488 | # arguments. Must try -L first in case configure is actually a | |
2489 | # symlink; some systems play weird games with the mod time of symlinks | |
2490 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2491 | # directory). | |
2492 | if ( | |
7083c021 | 2493 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
db137867 AC |
2494 | if test "$*" = "X"; then |
2495 | # -L didn't work. | |
7083c021 | 2496 | set X `ls -t "$srcdir/configure" conftest.file` |
db137867 AC |
2497 | fi |
2498 | rm -f conftest.file | |
2499 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2500 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2501 | ||
2502 | # If neither matched, then we have a broken ls. This can happen | |
2503 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2504 | # broken ls alias from the environment. This has actually | |
2505 | # happened. Such a system could not be considered "sane". | |
08c2568c | 2506 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
7083c021 | 2507 | alias in your environment" "$LINENO" 5 |
db137867 AC |
2508 | fi |
2509 | ||
2510 | test "$2" = conftest.file | |
2511 | ) | |
2512 | then | |
2513 | # Ok. | |
2514 | : | |
2515 | else | |
08c2568c | 2516 | as_fn_error $? "newly created file is older than distributed files! |
7083c021 | 2517 | Check your system clock" "$LINENO" 5 |
db137867 | 2518 | fi |
7083c021 | 2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 | 2520 | $as_echo "yes" >&6; } |
db137867 AC |
2521 | test "$program_prefix" != NONE && |
2522 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2523 | # Use a double $ so make ignores it. | |
2524 | test "$program_suffix" != NONE && | |
2525 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
030272f3 | 2526 | # Double any \ or $. |
db137867 | 2527 | # By default was `s,x,x', remove it if useless. |
030272f3 VY |
2528 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2529 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
db137867 AC |
2530 | |
2531 | # expand $ac_aux_dir to an absolute path | |
2532 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2533 | ||
7083c021 AC |
2534 | if test x"${MISSING+set}" != xset; then |
2535 | case $am_aux_dir in | |
2536 | *\ * | *\ *) | |
2537 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2538 | *) | |
2539 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2540 | esac | |
2541 | fi | |
db137867 AC |
2542 | # Use eval to expand $SHELL |
2543 | if eval "$MISSING --run true"; then | |
2544 | am_missing_run="$MISSING --run " | |
2545 | else | |
2546 | am_missing_run= | |
7083c021 | 2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
030272f3 | 2548 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
db137867 AC |
2549 | fi |
2550 | ||
7083c021 AC |
2551 | if test x"${install_sh}" != xset; then |
2552 | case $am_aux_dir in | |
2553 | *\ * | *\ *) | |
2554 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2555 | *) | |
2556 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2557 | esac | |
2558 | fi | |
2559 | ||
2560 | # Installed binaries are usually stripped using `strip' when the user | |
2561 | # run `make install-strip'. However `strip' might not be the right | |
2562 | # tool to use in cross-compilation environments, therefore Automake | |
2563 | # will honor the `STRIP' environment variable to overrule this program. | |
2564 | if test "$cross_compiling" != no; then | |
2565 | if test -n "$ac_tool_prefix"; then | |
2566 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2567 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2569 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 2570 | if ${ac_cv_prog_STRIP+:} false; then : |
7083c021 AC |
2571 | $as_echo_n "(cached) " >&6 |
2572 | else | |
2573 | if test -n "$STRIP"; then | |
2574 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2575 | else | |
2576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2577 | for as_dir in $PATH | |
2578 | do | |
2579 | IFS=$as_save_IFS | |
2580 | test -z "$as_dir" && as_dir=. | |
2581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2583 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2585 | break 2 | |
2586 | fi | |
2587 | done | |
2588 | done | |
2589 | IFS=$as_save_IFS | |
2590 | ||
2591 | fi | |
2592 | fi | |
2593 | STRIP=$ac_cv_prog_STRIP | |
2594 | if test -n "$STRIP"; then | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2596 | $as_echo "$STRIP" >&6; } | |
2597 | else | |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2599 | $as_echo "no" >&6; } | |
2600 | fi | |
2601 | ||
2602 | ||
2603 | fi | |
2604 | if test -z "$ac_cv_prog_STRIP"; then | |
2605 | ac_ct_STRIP=$STRIP | |
2606 | # Extract the first word of "strip", so it can be a program name with args. | |
2607 | set dummy strip; ac_word=$2 | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2609 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 2610 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
7083c021 AC |
2611 | $as_echo_n "(cached) " >&6 |
2612 | else | |
2613 | if test -n "$ac_ct_STRIP"; then | |
2614 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2615 | else | |
2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2617 | for as_dir in $PATH | |
2618 | do | |
2619 | IFS=$as_save_IFS | |
2620 | test -z "$as_dir" && as_dir=. | |
2621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2623 | ac_cv_prog_ac_ct_STRIP="strip" | |
2624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2625 | break 2 | |
2626 | fi | |
2627 | done | |
2628 | done | |
2629 | IFS=$as_save_IFS | |
2630 | ||
2631 | fi | |
2632 | fi | |
2633 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2634 | if test -n "$ac_ct_STRIP"; then | |
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2636 | $as_echo "$ac_ct_STRIP" >&6; } | |
2637 | else | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2639 | $as_echo "no" >&6; } | |
2640 | fi | |
2641 | ||
2642 | if test "x$ac_ct_STRIP" = x; then | |
2643 | STRIP=":" | |
2644 | else | |
2645 | case $cross_compiling:$ac_tool_warned in | |
2646 | yes:) | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2648 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2649 | ac_tool_warned=yes ;; | |
2650 | esac | |
2651 | STRIP=$ac_ct_STRIP | |
2652 | fi | |
2653 | else | |
2654 | STRIP="$ac_cv_prog_STRIP" | |
2655 | fi | |
2656 | ||
2657 | fi | |
2658 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2659 | ||
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
030272f3 | 2661 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
db137867 | 2662 | if test -z "$MKDIR_P"; then |
08c2568c | 2663 | if ${ac_cv_path_mkdir+:} false; then : |
030272f3 | 2664 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2665 | else |
2666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2667 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2668 | do | |
2669 | IFS=$as_save_IFS | |
2670 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2671 | for ac_prog in mkdir gmkdir; do |
db137867 AC |
2672 | for ac_exec_ext in '' $ac_executable_extensions; do |
2673 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2674 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2675 | 'mkdir (GNU coreutils) '* | \ | |
2676 | 'mkdir (coreutils) '* | \ | |
2677 | 'mkdir (fileutils) '4.1*) | |
2678 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2679 | break 3;; | |
2680 | esac | |
2681 | done | |
2682 | done | |
7083c021 | 2683 | done |
db137867 AC |
2684 | IFS=$as_save_IFS |
2685 | ||
2686 | fi | |
2687 | ||
96f4052b | 2688 | test -d ./--version && rmdir ./--version |
db137867 AC |
2689 | if test "${ac_cv_path_mkdir+set}" = set; then |
2690 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2691 | else | |
2692 | # As a last resort, use the slow shell script. Don't cache a | |
2693 | # value for MKDIR_P within a source directory, because that will | |
2694 | # break other packages using the cache if that directory is | |
2695 | # removed, or if the value is a relative name. | |
db137867 AC |
2696 | MKDIR_P="$ac_install_sh -d" |
2697 | fi | |
2698 | fi | |
7083c021 | 2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
030272f3 | 2700 | $as_echo "$MKDIR_P" >&6; } |
db137867 AC |
2701 | |
2702 | mkdir_p="$MKDIR_P" | |
2703 | case $mkdir_p in | |
2704 | [\\/$]* | ?:[\\/]*) ;; | |
2705 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2706 | esac | |
2707 | ||
2708 | for ac_prog in gawk mawk nawk awk | |
2709 | do | |
2710 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2711 | set dummy $ac_prog; ac_word=$2 | |
7083c021 | 2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 2713 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 2714 | if ${ac_cv_prog_AWK+:} false; then : |
030272f3 | 2715 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2716 | else |
2717 | if test -n "$AWK"; then | |
2718 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2719 | else | |
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2721 | for as_dir in $PATH | |
2722 | do | |
2723 | IFS=$as_save_IFS | |
2724 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2725 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 AC |
2726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2727 | ac_cv_prog_AWK="$ac_prog" | |
7083c021 | 2728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2729 | break 2 |
2730 | fi | |
2731 | done | |
7083c021 | 2732 | done |
db137867 AC |
2733 | IFS=$as_save_IFS |
2734 | ||
2735 | fi | |
2736 | fi | |
2737 | AWK=$ac_cv_prog_AWK | |
2738 | if test -n "$AWK"; then | |
7083c021 | 2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
030272f3 | 2740 | $as_echo "$AWK" >&6; } |
db137867 | 2741 | else |
7083c021 | 2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 2743 | $as_echo "no" >&6; } |
db137867 AC |
2744 | fi |
2745 | ||
2746 | ||
2747 | test -n "$AWK" && break | |
2748 | done | |
2749 | ||
7083c021 | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
030272f3 VY |
2751 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2752 | set x ${MAKE-make} | |
2753 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
08c2568c | 2754 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
030272f3 | 2755 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2756 | else |
2757 | cat >conftest.make <<\_ACEOF | |
2758 | SHELL = /bin/sh | |
2759 | all: | |
2760 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2761 | _ACEOF | |
08c2568c | 2762 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
db137867 AC |
2763 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2764 | *@@@%%%=?*=@@@%%%*) | |
2765 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2766 | *) | |
2767 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2768 | esac | |
2769 | rm -f conftest.make | |
2770 | fi | |
2771 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
7083c021 | 2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 | 2773 | $as_echo "yes" >&6; } |
db137867 AC |
2774 | SET_MAKE= |
2775 | else | |
7083c021 | 2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 2777 | $as_echo "no" >&6; } |
db137867 AC |
2778 | SET_MAKE="MAKE=${MAKE-make}" |
2779 | fi | |
2780 | ||
2781 | rm -rf .tst 2>/dev/null | |
2782 | mkdir .tst 2>/dev/null | |
2783 | if test -d .tst; then | |
2784 | am__leading_dot=. | |
2785 | else | |
2786 | am__leading_dot=_ | |
2787 | fi | |
2788 | rmdir .tst 2>/dev/null | |
2789 | ||
2790 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2791 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2792 | # is not polluted with repeated "-I." | |
2793 | am__isrc=' -I$(srcdir)' | |
2794 | # test to see if srcdir already configured | |
2795 | if test -f $srcdir/config.status; then | |
08c2568c | 2796 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
db137867 AC |
2797 | fi |
2798 | fi | |
2799 | ||
2800 | # test whether we have cygpath | |
2801 | if test -z "$CYGPATH_W"; then | |
2802 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2803 | CYGPATH_W='cygpath -w' | |
2804 | else | |
2805 | CYGPATH_W=echo | |
2806 | fi | |
2807 | fi | |
2808 | ||
2809 | ||
2810 | # Define the identity of the package. | |
2811 | PACKAGE=libratbox | |
2812 | VERSION=devel | |
2813 | ||
2814 | ||
2815 | # Some tools Automake needs. | |
2816 | ||
2817 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2818 | ||
2819 | ||
2820 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2821 | ||
2822 | ||
2823 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2824 | ||
2825 | ||
2826 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2827 | ||
2828 | ||
2829 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2830 | ||
db137867 AC |
2831 | # We need awk for the "check" target. The system "awk" is bad on |
2832 | # some platforms. | |
2833 | # Always define AMTAR for backward compatibility. | |
2834 | ||
2835 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2836 | ||
2837 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2838 | ||
2839 | ||
2840 | ||
2841 | ||
2842 | ||
2843 | ||
2844 | ac_config_headers="$ac_config_headers include/libratbox_config.h" | |
2845 | ||
2846 | ||
2847 | ||
db137867 AC |
2848 | DEPDIR="${am__leading_dot}deps" |
2849 | ||
2850 | ac_config_commands="$ac_config_commands depfiles" | |
2851 | ||
2852 | ||
2853 | am_make=${MAKE-make} | |
2854 | cat > confinc << 'END' | |
2855 | am__doit: | |
7083c021 | 2856 | @echo this is the am__doit target |
db137867 AC |
2857 | .PHONY: am__doit |
2858 | END | |
2859 | # If we don't find an include directive, just comment out the code. | |
7083c021 | 2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
030272f3 | 2861 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
db137867 AC |
2862 | am__include="#" |
2863 | am__quote= | |
2864 | _am_result=none | |
2865 | # First try GNU make style include. | |
2866 | echo "include confinc" > confmf | |
7083c021 AC |
2867 | # Ignore all kinds of additional output from `make'. |
2868 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2869 | *the\ am__doit\ target*) | |
2870 | am__include=include | |
2871 | am__quote= | |
2872 | _am_result=GNU | |
2873 | ;; | |
2874 | esac | |
db137867 AC |
2875 | # Now try BSD make style include. |
2876 | if test "$am__include" = "#"; then | |
2877 | echo '.include "confinc"' > confmf | |
7083c021 AC |
2878 | case `$am_make -s -f confmf 2> /dev/null` in #( |
2879 | *the\ am__doit\ target*) | |
2880 | am__include=.include | |
2881 | am__quote="\"" | |
2882 | _am_result=BSD | |
2883 | ;; | |
2884 | esac | |
db137867 AC |
2885 | fi |
2886 | ||
2887 | ||
7083c021 | 2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
030272f3 | 2889 | $as_echo "$_am_result" >&6; } |
db137867 AC |
2890 | rm -f confinc confmf |
2891 | ||
2892 | # Check whether --enable-dependency-tracking was given. | |
7083c021 | 2893 | if test "${enable_dependency_tracking+set}" = set; then : |
db137867 AC |
2894 | enableval=$enable_dependency_tracking; |
2895 | fi | |
2896 | ||
2897 | if test "x$enable_dependency_tracking" != xno; then | |
2898 | am_depcomp="$ac_aux_dir/depcomp" | |
2899 | AMDEPBACKSLASH='\' | |
a949ab1a | 2900 | am__nodep='_no' |
db137867 AC |
2901 | fi |
2902 | if test "x$enable_dependency_tracking" != xno; then | |
2903 | AMDEP_TRUE= | |
2904 | AMDEP_FALSE='#' | |
2905 | else | |
2906 | AMDEP_TRUE='#' | |
2907 | AMDEP_FALSE= | |
2908 | fi | |
2909 | ||
2910 | ||
2911 | ac_ext=c | |
2912 | ac_cpp='$CPP $CPPFLAGS' | |
2913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2916 | if test -n "$ac_tool_prefix"; then | |
2917 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2918 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
7083c021 | 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 2920 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 2921 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 2922 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2923 | else |
2924 | if test -n "$CC"; then | |
2925 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2926 | else | |
2927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2928 | for as_dir in $PATH | |
2929 | do | |
2930 | IFS=$as_save_IFS | |
2931 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2932 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 AC |
2933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2934 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
7083c021 | 2935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2936 | break 2 |
2937 | fi | |
2938 | done | |
7083c021 | 2939 | done |
db137867 AC |
2940 | IFS=$as_save_IFS |
2941 | ||
2942 | fi | |
2943 | fi | |
2944 | CC=$ac_cv_prog_CC | |
2945 | if test -n "$CC"; then | |
7083c021 | 2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 2947 | $as_echo "$CC" >&6; } |
db137867 | 2948 | else |
7083c021 | 2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 2950 | $as_echo "no" >&6; } |
db137867 AC |
2951 | fi |
2952 | ||
2953 | ||
2954 | fi | |
2955 | if test -z "$ac_cv_prog_CC"; then | |
2956 | ac_ct_CC=$CC | |
2957 | # Extract the first word of "gcc", so it can be a program name with args. | |
2958 | set dummy gcc; ac_word=$2 | |
7083c021 | 2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 2960 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 2961 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
030272f3 | 2962 | $as_echo_n "(cached) " >&6 |
db137867 AC |
2963 | else |
2964 | if test -n "$ac_ct_CC"; then | |
2965 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2966 | else | |
2967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2968 | for as_dir in $PATH | |
2969 | do | |
2970 | IFS=$as_save_IFS | |
2971 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2972 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 AC |
2973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2974 | ac_cv_prog_ac_ct_CC="gcc" | |
7083c021 | 2975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
2976 | break 2 |
2977 | fi | |
2978 | done | |
7083c021 | 2979 | done |
db137867 AC |
2980 | IFS=$as_save_IFS |
2981 | ||
2982 | fi | |
2983 | fi | |
2984 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2985 | if test -n "$ac_ct_CC"; then | |
7083c021 | 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
030272f3 | 2987 | $as_echo "$ac_ct_CC" >&6; } |
db137867 | 2988 | else |
7083c021 | 2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 2990 | $as_echo "no" >&6; } |
db137867 AC |
2991 | fi |
2992 | ||
2993 | if test "x$ac_ct_CC" = x; then | |
2994 | CC="" | |
2995 | else | |
2996 | case $cross_compiling:$ac_tool_warned in | |
2997 | yes:) | |
7083c021 | 2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 2999 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
3000 | ac_tool_warned=yes ;; |
3001 | esac | |
3002 | CC=$ac_ct_CC | |
3003 | fi | |
3004 | else | |
3005 | CC="$ac_cv_prog_CC" | |
3006 | fi | |
3007 | ||
3008 | if test -z "$CC"; then | |
3009 | if test -n "$ac_tool_prefix"; then | |
3010 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3011 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7083c021 | 3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3013 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3014 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3015 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3016 | else |
3017 | if test -n "$CC"; then | |
3018 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3019 | else | |
3020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3021 | for as_dir in $PATH | |
3022 | do | |
3023 | IFS=$as_save_IFS | |
3024 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3025 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 AC |
3026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3027 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
7083c021 | 3028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3029 | break 2 |
3030 | fi | |
3031 | done | |
7083c021 | 3032 | done |
db137867 AC |
3033 | IFS=$as_save_IFS |
3034 | ||
3035 | fi | |
3036 | fi | |
3037 | CC=$ac_cv_prog_CC | |
3038 | if test -n "$CC"; then | |
7083c021 | 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3040 | $as_echo "$CC" >&6; } |
db137867 | 3041 | else |
7083c021 | 3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3043 | $as_echo "no" >&6; } |
db137867 AC |
3044 | fi |
3045 | ||
3046 | ||
3047 | fi | |
3048 | fi | |
3049 | if test -z "$CC"; then | |
3050 | # Extract the first word of "cc", so it can be a program name with args. | |
3051 | set dummy cc; ac_word=$2 | |
7083c021 | 3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3053 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3054 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3055 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3056 | else |
3057 | if test -n "$CC"; then | |
3058 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3059 | else | |
3060 | ac_prog_rejected=no | |
3061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3062 | for as_dir in $PATH | |
3063 | do | |
3064 | IFS=$as_save_IFS | |
3065 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3066 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 AC |
3067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3068 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3069 | ac_prog_rejected=yes | |
3070 | continue | |
3071 | fi | |
3072 | ac_cv_prog_CC="cc" | |
7083c021 | 3073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3074 | break 2 |
3075 | fi | |
3076 | done | |
7083c021 | 3077 | done |
db137867 AC |
3078 | IFS=$as_save_IFS |
3079 | ||
3080 | if test $ac_prog_rejected = yes; then | |
3081 | # We found a bogon in the path, so make sure we never use it. | |
3082 | set dummy $ac_cv_prog_CC | |
3083 | shift | |
3084 | if test $# != 0; then | |
3085 | # We chose a different compiler from the bogus one. | |
3086 | # However, it has the same basename, so the bogon will be chosen | |
3087 | # first if we set CC to just the basename; use the full file name. | |
3088 | shift | |
3089 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3090 | fi | |
3091 | fi | |
3092 | fi | |
3093 | fi | |
3094 | CC=$ac_cv_prog_CC | |
3095 | if test -n "$CC"; then | |
7083c021 | 3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3097 | $as_echo "$CC" >&6; } |
db137867 | 3098 | else |
7083c021 | 3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3100 | $as_echo "no" >&6; } |
db137867 AC |
3101 | fi |
3102 | ||
3103 | ||
3104 | fi | |
3105 | if test -z "$CC"; then | |
3106 | if test -n "$ac_tool_prefix"; then | |
3107 | for ac_prog in cl.exe | |
3108 | do | |
3109 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3110 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 | 3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3112 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3113 | if ${ac_cv_prog_CC+:} false; then : |
030272f3 | 3114 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3115 | else |
3116 | if test -n "$CC"; then | |
3117 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3118 | else | |
3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3120 | for as_dir in $PATH | |
3121 | do | |
3122 | IFS=$as_save_IFS | |
3123 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3124 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 AC |
3125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3126 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
7083c021 | 3127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3128 | break 2 |
3129 | fi | |
3130 | done | |
7083c021 | 3131 | done |
db137867 AC |
3132 | IFS=$as_save_IFS |
3133 | ||
3134 | fi | |
3135 | fi | |
3136 | CC=$ac_cv_prog_CC | |
3137 | if test -n "$CC"; then | |
7083c021 | 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
030272f3 | 3139 | $as_echo "$CC" >&6; } |
db137867 | 3140 | else |
7083c021 | 3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3142 | $as_echo "no" >&6; } |
db137867 AC |
3143 | fi |
3144 | ||
3145 | ||
3146 | test -n "$CC" && break | |
3147 | done | |
3148 | fi | |
3149 | if test -z "$CC"; then | |
3150 | ac_ct_CC=$CC | |
3151 | for ac_prog in cl.exe | |
3152 | do | |
3153 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3154 | set dummy $ac_prog; ac_word=$2 | |
7083c021 | 3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 3156 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 3157 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
030272f3 | 3158 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3159 | else |
3160 | if test -n "$ac_ct_CC"; then | |
3161 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3162 | else | |
3163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3164 | for as_dir in $PATH | |
3165 | do | |
3166 | IFS=$as_save_IFS | |
3167 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3168 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 AC |
3169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3170 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
7083c021 | 3171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
3172 | break 2 |
3173 | fi | |
3174 | done | |
7083c021 | 3175 | done |
db137867 AC |
3176 | IFS=$as_save_IFS |
3177 | ||
3178 | fi | |
3179 | fi | |
3180 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3181 | if test -n "$ac_ct_CC"; then | |
7083c021 | 3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
030272f3 | 3183 | $as_echo "$ac_ct_CC" >&6; } |
db137867 | 3184 | else |
7083c021 | 3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 3186 | $as_echo "no" >&6; } |
db137867 AC |
3187 | fi |
3188 | ||
3189 | ||
3190 | test -n "$ac_ct_CC" && break | |
3191 | done | |
3192 | ||
3193 | if test "x$ac_ct_CC" = x; then | |
3194 | CC="" | |
3195 | else | |
3196 | case $cross_compiling:$ac_tool_warned in | |
3197 | yes:) | |
7083c021 | 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 3199 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
3200 | ac_tool_warned=yes ;; |
3201 | esac | |
3202 | CC=$ac_ct_CC | |
3203 | fi | |
3204 | fi | |
3205 | ||
3206 | fi | |
3207 | ||
3208 | ||
7083c021 | 3209 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3210 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3211 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3212 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 AC |
3213 | |
3214 | # Provide some information about the compiler. | |
7083c021 | 3215 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
030272f3 VY |
3216 | set X $ac_compile |
3217 | ac_compiler=$2 | |
7083c021 AC |
3218 | for ac_option in --version -v -V -qversion; do |
3219 | { { ac_try="$ac_compiler $ac_option >&5" | |
db137867 AC |
3220 | case "(($ac_try" in |
3221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3222 | *) ac_try_echo=$ac_try;; | |
3223 | esac | |
7083c021 AC |
3224 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3225 | $as_echo "$ac_try_echo"; } >&5 | |
3226 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
db137867 | 3227 | ac_status=$? |
7083c021 AC |
3228 | if test -s conftest.err; then |
3229 | sed '10a\ | |
3230 | ... rest of stderr output deleted ... | |
3231 | 10q' conftest.err >conftest.er1 | |
3232 | cat conftest.er1 >&5 | |
7083c021 | 3233 | fi |
96f4052b | 3234 | rm -f conftest.er1 conftest.err |
7083c021 AC |
3235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3236 | test $ac_status = 0; } | |
3237 | done | |
db137867 | 3238 | |
7083c021 | 3239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 3240 | /* end confdefs.h. */ |
96f4052b | 3241 | |
db137867 AC |
3242 | int |
3243 | main () | |
3244 | { | |
3245 | ||
3246 | ; | |
3247 | return 0; | |
3248 | } | |
3249 | _ACEOF | |
3250 | ac_clean_files_save=$ac_clean_files | |
96f4052b | 3251 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
db137867 AC |
3252 | # Try to create an executable without -o first, disregard a.out. |
3253 | # It will help us diagnose broken compilers, and finding out an intuition | |
3254 | # of exeext. | |
96f4052b AC |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3256 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
030272f3 VY |
3257 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3258 | ||
3259 | # The possible output files: | |
3260 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3261 | ||
db137867 AC |
3262 | ac_rmfiles= |
3263 | for ac_file in $ac_files | |
3264 | do | |
3265 | case $ac_file in | |
030272f3 | 3266 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
db137867 AC |
3267 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3268 | esac | |
3269 | done | |
3270 | rm -f $ac_rmfiles | |
3271 | ||
7083c021 | 3272 | if { { ac_try="$ac_link_default" |
db137867 AC |
3273 | case "(($ac_try" in |
3274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3275 | *) ac_try_echo=$ac_try;; | |
3276 | esac | |
7083c021 AC |
3277 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3278 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3279 | (eval "$ac_link_default") 2>&5 |
3280 | ac_status=$? | |
7083c021 AC |
3281 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3282 | test $ac_status = 0; }; then : | |
db137867 AC |
3283 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3284 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3285 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3286 | # so that the user can short-circuit this test for compilers unknown to | |
3287 | # Autoconf. | |
3288 | for ac_file in $ac_files '' | |
3289 | do | |
3290 | test -f "$ac_file" || continue | |
3291 | case $ac_file in | |
030272f3 | 3292 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
db137867 AC |
3293 | ;; |
3294 | [ab].out ) | |
3295 | # We found the default executable, but exeext='' is most | |
3296 | # certainly right. | |
3297 | break;; | |
3298 | *.* ) | |
7083c021 | 3299 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
db137867 AC |
3300 | then :; else |
3301 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3302 | fi | |
3303 | # We set ac_cv_exeext here because the later test for it is not | |
3304 | # safe: cross compilers may not add the suffix if given an `-o' | |
3305 | # argument, so we may need to know it at that point already. | |
3306 | # Even if this section looks crufty: it has the advantage of | |
3307 | # actually working. | |
3308 | break;; | |
3309 | * ) | |
3310 | break;; | |
3311 | esac | |
3312 | done | |
3313 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3314 | ||
3315 | else | |
3316 | ac_file='' | |
3317 | fi | |
7083c021 | 3318 | if test -z "$ac_file"; then : |
96f4052b AC |
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3320 | $as_echo "no" >&6; } | |
3321 | $as_echo "$as_me: failed program was:" >&5 | |
db137867 AC |
3322 | sed 's/^/| /' conftest.$ac_ext >&5 |
3323 | ||
7083c021 | 3324 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3325 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3326 | as_fn_error 77 "C compiler cannot create executables |
3327 | See \`config.log' for more details" "$LINENO" 5; } | |
96f4052b AC |
3328 | else |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3330 | $as_echo "yes" >&6; } | |
db137867 | 3331 | fi |
96f4052b AC |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3333 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3335 | $as_echo "$ac_file" >&6; } | |
db137867 AC |
3336 | ac_exeext=$ac_cv_exeext |
3337 | ||
96f4052b | 3338 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
db137867 | 3339 | ac_clean_files=$ac_clean_files_save |
7083c021 | 3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
030272f3 | 3341 | $as_echo_n "checking for suffix of executables... " >&6; } |
7083c021 | 3342 | if { { ac_try="$ac_link" |
db137867 AC |
3343 | case "(($ac_try" in |
3344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3345 | *) ac_try_echo=$ac_try;; | |
3346 | esac | |
7083c021 AC |
3347 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3348 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3349 | (eval "$ac_link") 2>&5 |
3350 | ac_status=$? | |
7083c021 AC |
3351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3352 | test $ac_status = 0; }; then : | |
db137867 AC |
3353 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3354 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3355 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3356 | # `rm'. | |
3357 | for ac_file in conftest.exe conftest conftest.*; do | |
3358 | test -f "$ac_file" || continue | |
3359 | case $ac_file in | |
030272f3 | 3360 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
db137867 AC |
3361 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3362 | break;; | |
3363 | * ) break;; | |
3364 | esac | |
3365 | done | |
3366 | else | |
7083c021 | 3367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3369 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3370 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 3371 | fi |
96f4052b | 3372 | rm -f conftest conftest$ac_cv_exeext |
7083c021 | 3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
030272f3 | 3374 | $as_echo "$ac_cv_exeext" >&6; } |
db137867 AC |
3375 | |
3376 | rm -f conftest.$ac_ext | |
3377 | EXEEXT=$ac_cv_exeext | |
3378 | ac_exeext=$EXEEXT | |
96f4052b AC |
3379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3380 | /* end confdefs.h. */ | |
3381 | #include <stdio.h> | |
3382 | int | |
3383 | main () | |
3384 | { | |
3385 | FILE *f = fopen ("conftest.out", "w"); | |
3386 | return ferror (f) || fclose (f) != 0; | |
3387 | ||
3388 | ; | |
3389 | return 0; | |
3390 | } | |
3391 | _ACEOF | |
3392 | ac_clean_files="$ac_clean_files conftest.out" | |
3393 | # Check that the compiler produces executables we can run. If not, either | |
3394 | # the compiler is broken, or we cross compile. | |
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3396 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3397 | if test "$cross_compiling" != yes; then | |
3398 | { { ac_try="$ac_link" | |
3399 | case "(($ac_try" in | |
3400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3401 | *) ac_try_echo=$ac_try;; | |
3402 | esac | |
3403 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3404 | $as_echo "$ac_try_echo"; } >&5 | |
3405 | (eval "$ac_link") 2>&5 | |
3406 | ac_status=$? | |
3407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3408 | test $ac_status = 0; } | |
3409 | if { ac_try='./conftest$ac_cv_exeext' | |
3410 | { { case "(($ac_try" in | |
3411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3412 | *) ac_try_echo=$ac_try;; | |
3413 | esac | |
3414 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3415 | $as_echo "$ac_try_echo"; } >&5 | |
3416 | (eval "$ac_try") 2>&5 | |
3417 | ac_status=$? | |
3418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3419 | test $ac_status = 0; }; }; then | |
3420 | cross_compiling=no | |
3421 | else | |
3422 | if test "$cross_compiling" = maybe; then | |
3423 | cross_compiling=yes | |
3424 | else | |
3425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3426 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c | 3427 | as_fn_error $? "cannot run C compiled programs. |
96f4052b | 3428 | If you meant to cross compile, use \`--host'. |
08c2568c | 3429 | See \`config.log' for more details" "$LINENO" 5; } |
96f4052b AC |
3430 | fi |
3431 | fi | |
3432 | fi | |
3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3434 | $as_echo "$cross_compiling" >&6; } | |
3435 | ||
3436 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3437 | ac_clean_files=$ac_clean_files_save | |
7083c021 | 3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
030272f3 | 3439 | $as_echo_n "checking for suffix of object files... " >&6; } |
08c2568c | 3440 | if ${ac_cv_objext+:} false; then : |
030272f3 | 3441 | $as_echo_n "(cached) " >&6 |
db137867 | 3442 | else |
7083c021 | 3443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3444 | /* end confdefs.h. */ |
3445 | ||
3446 | int | |
3447 | main () | |
3448 | { | |
3449 | ||
3450 | ; | |
3451 | return 0; | |
3452 | } | |
3453 | _ACEOF | |
3454 | rm -f conftest.o conftest.obj | |
7083c021 | 3455 | if { { ac_try="$ac_compile" |
db137867 AC |
3456 | case "(($ac_try" in |
3457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3458 | *) ac_try_echo=$ac_try;; | |
3459 | esac | |
7083c021 AC |
3460 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3461 | $as_echo "$ac_try_echo"; } >&5 | |
db137867 AC |
3462 | (eval "$ac_compile") 2>&5 |
3463 | ac_status=$? | |
7083c021 AC |
3464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3465 | test $ac_status = 0; }; then : | |
db137867 AC |
3466 | for ac_file in conftest.o conftest.obj conftest.*; do |
3467 | test -f "$ac_file" || continue; | |
3468 | case $ac_file in | |
030272f3 | 3469 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
db137867 AC |
3470 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3471 | break;; | |
3472 | esac | |
3473 | done | |
3474 | else | |
030272f3 | 3475 | $as_echo "$as_me: failed program was:" >&5 |
db137867 AC |
3476 | sed 's/^/| /' conftest.$ac_ext >&5 |
3477 | ||
7083c021 | 3478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3480 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3481 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 3482 | fi |
db137867 AC |
3483 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3484 | fi | |
7083c021 | 3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
030272f3 | 3486 | $as_echo "$ac_cv_objext" >&6; } |
db137867 AC |
3487 | OBJEXT=$ac_cv_objext |
3488 | ac_objext=$OBJEXT | |
7083c021 | 3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
030272f3 | 3490 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
08c2568c | 3491 | if ${ac_cv_c_compiler_gnu+:} false; then : |
030272f3 | 3492 | $as_echo_n "(cached) " >&6 |
db137867 | 3493 | else |
7083c021 | 3494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3495 | /* end confdefs.h. */ |
3496 | ||
3497 | int | |
3498 | main () | |
3499 | { | |
3500 | #ifndef __GNUC__ | |
3501 | choke me | |
3502 | #endif | |
3503 | ||
3504 | ; | |
3505 | return 0; | |
3506 | } | |
3507 | _ACEOF | |
7083c021 | 3508 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 AC |
3509 | ac_compiler_gnu=yes |
3510 | else | |
7083c021 | 3511 | ac_compiler_gnu=no |
db137867 | 3512 | fi |
db137867 AC |
3513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3514 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3515 | ||
3516 | fi | |
7083c021 | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
030272f3 VY |
3518 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3519 | if test $ac_compiler_gnu = yes; then | |
3520 | GCC=yes | |
3521 | else | |
3522 | GCC= | |
3523 | fi | |
db137867 AC |
3524 | ac_test_CFLAGS=${CFLAGS+set} |
3525 | ac_save_CFLAGS=$CFLAGS | |
7083c021 | 3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
030272f3 | 3527 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
08c2568c | 3528 | if ${ac_cv_prog_cc_g+:} false; then : |
030272f3 | 3529 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3530 | else |
3531 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3532 | ac_c_werror_flag=yes | |
3533 | ac_cv_prog_cc_g=no | |
3534 | CFLAGS="-g" | |
7083c021 | 3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3536 | /* end confdefs.h. */ |
3537 | ||
3538 | int | |
3539 | main () | |
3540 | { | |
3541 | ||
3542 | ; | |
3543 | return 0; | |
3544 | } | |
3545 | _ACEOF | |
7083c021 | 3546 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 AC |
3547 | ac_cv_prog_cc_g=yes |
3548 | else | |
7083c021 AC |
3549 | CFLAGS="" |
3550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
3551 | /* end confdefs.h. */ |
3552 | ||
3553 | int | |
3554 | main () | |
3555 | { | |
3556 | ||
3557 | ; | |
3558 | return 0; | |
3559 | } | |
3560 | _ACEOF | |
7083c021 | 3561 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3562 | |
7083c021 AC |
3563 | else |
3564 | ac_c_werror_flag=$ac_save_c_werror_flag | |
db137867 | 3565 | CFLAGS="-g" |
7083c021 | 3566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3567 | /* end confdefs.h. */ |
3568 | ||
3569 | int | |
3570 | main () | |
3571 | { | |
3572 | ||
3573 | ; | |
3574 | return 0; | |
3575 | } | |
3576 | _ACEOF | |
7083c021 | 3577 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3578 | ac_cv_prog_cc_g=yes |
db137867 | 3579 | fi |
db137867 AC |
3580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3581 | fi | |
db137867 AC |
3582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3583 | fi | |
db137867 AC |
3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3585 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3586 | fi | |
7083c021 | 3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
030272f3 | 3588 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
db137867 AC |
3589 | if test "$ac_test_CFLAGS" = set; then |
3590 | CFLAGS=$ac_save_CFLAGS | |
3591 | elif test $ac_cv_prog_cc_g = yes; then | |
3592 | if test "$GCC" = yes; then | |
3593 | CFLAGS="-g -O2" | |
3594 | else | |
3595 | CFLAGS="-g" | |
3596 | fi | |
3597 | else | |
3598 | if test "$GCC" = yes; then | |
3599 | CFLAGS="-O2" | |
3600 | else | |
3601 | CFLAGS= | |
3602 | fi | |
3603 | fi | |
7083c021 | 3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
030272f3 | 3605 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
08c2568c | 3606 | if ${ac_cv_prog_cc_c89+:} false; then : |
030272f3 | 3607 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3608 | else |
3609 | ac_cv_prog_cc_c89=no | |
3610 | ac_save_CC=$CC | |
7083c021 | 3611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 AC |
3612 | /* end confdefs.h. */ |
3613 | #include <stdarg.h> | |
3614 | #include <stdio.h> | |
3615 | #include <sys/types.h> | |
3616 | #include <sys/stat.h> | |
3617 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3618 | struct buf { int x; }; | |
3619 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3620 | static char *e (p, i) | |
3621 | char **p; | |
3622 | int i; | |
3623 | { | |
3624 | return p[i]; | |
3625 | } | |
3626 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3627 | { | |
3628 | char *s; | |
3629 | va_list v; | |
3630 | va_start (v,p); | |
3631 | s = g (p, va_arg (v,int)); | |
3632 | va_end (v); | |
3633 | return s; | |
3634 | } | |
3635 | ||
3636 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3637 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3638 | These don't provoke an error unfortunately, instead are silently treated | |
3639 | as 'x'. The following induces an error, until -std is added to get | |
3640 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3641 | array size at least. It's necessary to write '\x00'==0 to get something | |
3642 | that's true only with -std. */ | |
3643 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3644 | ||
3645 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3646 | inside strings and character constants. */ | |
3647 | #define FOO(x) 'x' | |
3648 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3649 | ||
3650 | int test (int i, double x); | |
3651 | struct s1 {int (*f) (int a);}; | |
3652 | struct s2 {int (*f) (double a);}; | |
3653 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3654 | int argc; | |
3655 | char **argv; | |
3656 | int | |
3657 | main () | |
3658 | { | |
3659 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3660 | ; | |
3661 | return 0; | |
3662 | } | |
3663 | _ACEOF | |
3664 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3665 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3666 | do | |
3667 | CC="$ac_save_CC $ac_arg" | |
7083c021 | 3668 | if ac_fn_c_try_compile "$LINENO"; then : |
db137867 | 3669 | ac_cv_prog_cc_c89=$ac_arg |
db137867 | 3670 | fi |
db137867 AC |
3671 | rm -f core conftest.err conftest.$ac_objext |
3672 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3673 | done | |
3674 | rm -f conftest.$ac_ext | |
3675 | CC=$ac_save_CC | |
3676 | ||
3677 | fi | |
3678 | # AC_CACHE_VAL | |
3679 | case "x$ac_cv_prog_cc_c89" in | |
3680 | x) | |
7083c021 | 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
030272f3 | 3682 | $as_echo "none needed" >&6; } ;; |
db137867 | 3683 | xno) |
7083c021 | 3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
030272f3 | 3685 | $as_echo "unsupported" >&6; } ;; |
db137867 AC |
3686 | *) |
3687 | CC="$CC $ac_cv_prog_cc_c89" | |
7083c021 | 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
030272f3 | 3689 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
db137867 | 3690 | esac |
7083c021 | 3691 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
db137867 | 3692 | |
7083c021 | 3693 | fi |
db137867 AC |
3694 | |
3695 | ac_ext=c | |
3696 | ac_cpp='$CPP $CPPFLAGS' | |
3697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3700 | ||
3701 | depcc="$CC" am_compiler_list= | |
3702 | ||
7083c021 | 3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
030272f3 | 3704 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
08c2568c | 3705 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
030272f3 | 3706 | $as_echo_n "(cached) " >&6 |
db137867 AC |
3707 | else |
3708 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3709 | # We make a subdir and do the tests there. Otherwise we can end up | |
3710 | # making bogus files that we don't know about and never remove. For | |
3711 | # instance it was reported that on HP-UX the gcc test will end up | |
3712 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3713 | # in D'. | |
a949ab1a | 3714 | rm -rf conftest.dir |
db137867 AC |
3715 | mkdir conftest.dir |
3716 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3717 | # using a relative directory. | |
3718 | cp "$am_depcomp" conftest.dir | |
3719 | cd conftest.dir | |
3720 | # We will build objects and dependencies in a subdirectory because | |
3721 | # it helps to detect inapplicable dependency modes. For instance | |
3722 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3723 | # side effect of compilation, but ICC will put the dependencies in | |
3724 | # the current directory while Tru64 will put them in the object | |
3725 | # directory. | |
3726 | mkdir sub | |
3727 | ||
3728 | am_cv_CC_dependencies_compiler_type=none | |
3729 | if test "$am_compiler_list" = ""; then | |
3730 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3731 | fi | |
7083c021 AC |
3732 | am__universal=false |
3733 | case " $depcc " in #( | |
3734 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3735 | esac | |
3736 | ||
db137867 AC |
3737 | for depmode in $am_compiler_list; do |
3738 | # Setup a source with many dependencies, because some compilers | |
3739 | # like to wrap large dependency lists on column 80 (with \), and | |
3740 | # we should not choose a depcomp mode which is confused by this. | |
3741 | # | |
3742 | # We need to recreate these files for each test, as the compiler may | |
3743 | # overwrite some of them when testing with obscure command lines. | |
3744 | # This happens at least with the AIX C compiler. | |
3745 | : > sub/conftest.c | |
3746 | for i in 1 2 3 4 5 6; do | |
3747 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3748 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3749 | # Solaris 8's {/usr,}/bin/sh. | |
3750 | touch sub/conftst$i.h | |
3751 | done | |
3752 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3753 | ||
7083c021 AC |
3754 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3755 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3756 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3757 | # versions had trouble with output in subdirs | |
3758 | am__obj=sub/conftest.${OBJEXT-o} | |
3759 | am__minus_obj="-o $am__obj" | |
db137867 | 3760 | case $depmode in |
7083c021 AC |
3761 | gcc) |
3762 | # This depmode causes a compiler race in universal mode. | |
3763 | test "$am__universal" = false || continue | |
3764 | ;; | |
db137867 AC |
3765 | nosideeffect) |
3766 | # after this tag, mechanisms are not by side-effect, so they'll | |
3767 | # only be used when explicitly requested | |
3768 | if test "x$enable_dependency_tracking" = xyes; then | |
3769 | continue | |
3770 | else | |
3771 | break | |
3772 | fi | |
3773 | ;; | |
a949ab1a | 3774 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
7083c021 AC |
3775 | # This compiler won't grok `-c -o', but also, the minuso test has |
3776 | # not run yet. These depmodes are late enough in the game, and | |
3777 | # so weak that their functioning should not be impacted. | |
3778 | am__obj=conftest.${OBJEXT-o} | |
3779 | am__minus_obj= | |
3780 | ;; | |
db137867 AC |
3781 | none) break ;; |
3782 | esac | |
db137867 | 3783 | if depmode=$depmode \ |
7083c021 | 3784 | source=sub/conftest.c object=$am__obj \ |
db137867 | 3785 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
7083c021 | 3786 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
db137867 AC |
3787 | >/dev/null 2>conftest.err && |
3788 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3789 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
7083c021 | 3790 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
db137867 AC |
3791 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3792 | # icc doesn't choke on unknown options, it will just issue warnings | |
3793 | # or remarks (even with -Werror). So we grep stderr for any message | |
3794 | # that says an option was ignored or not supported. | |
3795 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3796 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3797 | # The diagnosis changed in icc 8.0: | |
3798 | # icc: Command line remark: option '-MP' not supported | |
3799 | if (grep 'ignoring option' conftest.err || | |
3800 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3801 | am_cv_CC_dependencies_compiler_type=$depmode | |
3802 | break | |
3803 | fi | |
3804 | fi | |
3805 | done | |
3806 | ||
3807 | cd .. | |
3808 | rm -rf conftest.dir | |
3809 | else | |
3810 | am_cv_CC_dependencies_compiler_type=none | |
3811 | fi | |
3812 | ||
3813 | fi | |
7083c021 | 3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
030272f3 | 3815 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
db137867 AC |
3816 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3817 | ||
3818 | if | |
3819 | test "x$enable_dependency_tracking" != xno \ | |
3820 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3821 | am__fastdepCC_TRUE= | |
3822 | am__fastdepCC_FALSE='#' | |
3823 | else | |
3824 | am__fastdepCC_TRUE='#' | |
3825 | am__fastdepCC_FALSE= | |
3826 | fi | |
3827 | ||
3828 | ||
030272f3 VY |
3829 | |
3830 | ac_ext=c | |
3831 | ac_cpp='$CPP $CPPFLAGS' | |
3832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7083c021 | 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
030272f3 VY |
3836 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
3837 | # On Suns, sometimes $CPP names a directory. | |
3838 | if test -n "$CPP" && test -d "$CPP"; then | |
3839 | CPP= | |
3840 | fi | |
3841 | if test -z "$CPP"; then | |
08c2568c | 3842 | if ${ac_cv_prog_CPP+:} false; then : |
030272f3 | 3843 | $as_echo_n "(cached) " >&6 |
db137867 | 3844 | else |
030272f3 VY |
3845 | # Double quotes because CPP needs to be expanded |
3846 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3847 | do | |
3848 | ac_preproc_ok=false | |
3849 | for ac_c_preproc_warn_flag in '' yes | |
3850 | do | |
3851 | # Use a header file that comes with gcc, so configuring glibc | |
3852 | # with a fresh cross-compiler works. | |
3853 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3854 | # <limits.h> exists even on freestanding compilers. | |
3855 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3856 | # not just through cpp. "Syntax error" is here to catch this case. | |
7083c021 | 3857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 3858 | /* end confdefs.h. */ |
030272f3 VY |
3859 | #ifdef __STDC__ |
3860 | # include <limits.h> | |
db137867 | 3861 | #else |
030272f3 | 3862 | # include <assert.h> |
db137867 | 3863 | #endif |
030272f3 | 3864 | Syntax error |
db137867 | 3865 | _ACEOF |
7083c021 | 3866 | if ac_fn_c_try_cpp "$LINENO"; then : |
db137867 | 3867 | |
7083c021 | 3868 | else |
030272f3 VY |
3869 | # Broken: fails on valid input. |
3870 | continue | |
db137867 | 3871 | fi |
08c2568c | 3872 | rm -f conftest.err conftest.i conftest.$ac_ext |
db137867 | 3873 | |
030272f3 VY |
3874 | # OK, works on sane cases. Now check whether nonexistent headers |
3875 | # can be detected and how. | |
7083c021 | 3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
3877 | /* end confdefs.h. */ |
3878 | #include <ac_nonexistent.h> | |
3879 | _ACEOF | |
7083c021 | 3880 | if ac_fn_c_try_cpp "$LINENO"; then : |
030272f3 VY |
3881 | # Broken: success on invalid input. |
3882 | continue | |
3883 | else | |
030272f3 VY |
3884 | # Passes both tests. |
3885 | ac_preproc_ok=: | |
3886 | break | |
3887 | fi | |
08c2568c | 3888 | rm -f conftest.err conftest.i conftest.$ac_ext |
db137867 | 3889 | |
030272f3 VY |
3890 | done |
3891 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
08c2568c | 3892 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 | 3893 | if $ac_preproc_ok; then : |
030272f3 | 3894 | break |
db137867 AC |
3895 | fi |
3896 | ||
030272f3 VY |
3897 | done |
3898 | ac_cv_prog_CPP=$CPP | |
db137867 | 3899 | |
030272f3 VY |
3900 | fi |
3901 | CPP=$ac_cv_prog_CPP | |
db137867 | 3902 | else |
030272f3 VY |
3903 | ac_cv_prog_CPP=$CPP |
3904 | fi | |
7083c021 | 3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
030272f3 VY |
3906 | $as_echo "$CPP" >&6; } |
3907 | ac_preproc_ok=false | |
3908 | for ac_c_preproc_warn_flag in '' yes | |
db137867 | 3909 | do |
030272f3 VY |
3910 | # Use a header file that comes with gcc, so configuring glibc |
3911 | # with a fresh cross-compiler works. | |
3912 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3913 | # <limits.h> exists even on freestanding compilers. | |
3914 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3915 | # not just through cpp. "Syntax error" is here to catch this case. | |
7083c021 | 3916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
3917 | /* end confdefs.h. */ |
3918 | #ifdef __STDC__ | |
3919 | # include <limits.h> | |
3920 | #else | |
3921 | # include <assert.h> | |
3922 | #endif | |
3923 | Syntax error | |
3924 | _ACEOF | |
7083c021 | 3925 | if ac_fn_c_try_cpp "$LINENO"; then : |
db137867 | 3926 | |
7083c021 | 3927 | else |
030272f3 VY |
3928 | # Broken: fails on valid input. |
3929 | continue | |
db137867 | 3930 | fi |
08c2568c | 3931 | rm -f conftest.err conftest.i conftest.$ac_ext |
db137867 | 3932 | |
030272f3 VY |
3933 | # OK, works on sane cases. Now check whether nonexistent headers |
3934 | # can be detected and how. | |
7083c021 | 3935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
3936 | /* end confdefs.h. */ |
3937 | #include <ac_nonexistent.h> | |
3938 | _ACEOF | |
7083c021 | 3939 | if ac_fn_c_try_cpp "$LINENO"; then : |
030272f3 VY |
3940 | # Broken: success on invalid input. |
3941 | continue | |
3942 | else | |
030272f3 VY |
3943 | # Passes both tests. |
3944 | ac_preproc_ok=: | |
3945 | break | |
3946 | fi | |
08c2568c | 3947 | rm -f conftest.err conftest.i conftest.$ac_ext |
030272f3 VY |
3948 | |
3949 | done | |
3950 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
08c2568c | 3951 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 AC |
3952 | if $ac_preproc_ok; then : |
3953 | ||
db137867 | 3954 | else |
7083c021 | 3955 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
030272f3 | 3956 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
08c2568c EM |
3957 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3958 | See \`config.log' for more details" "$LINENO" 5; } | |
030272f3 VY |
3959 | fi |
3960 | ||
3961 | ac_ext=c | |
3962 | ac_cpp='$CPP $CPPFLAGS' | |
3963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3966 | ||
3967 | ||
7083c021 | 3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
030272f3 | 3969 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
08c2568c | 3970 | if ${ac_cv_path_GREP+:} false; then : |
030272f3 | 3971 | $as_echo_n "(cached) " >&6 |
db137867 | 3972 | else |
030272f3 | 3973 | if test -z "$GREP"; then |
db137867 | 3974 | ac_path_GREP_found=false |
030272f3 VY |
3975 | # Loop through the user's path and test for each of PROGNAME-LIST |
3976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
db137867 AC |
3977 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3978 | do | |
3979 | IFS=$as_save_IFS | |
3980 | test -z "$as_dir" && as_dir=. | |
7083c021 | 3981 | for ac_prog in grep ggrep; do |
030272f3 VY |
3982 | for ac_exec_ext in '' $ac_executable_extensions; do |
3983 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3984 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3985 | # Check for GNU ac_path_GREP and select it if it is found. | |
db137867 AC |
3986 | # Check for GNU $ac_path_GREP |
3987 | case `"$ac_path_GREP" --version 2>&1` in | |
3988 | *GNU*) | |
3989 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3990 | *) | |
3991 | ac_count=0 | |
030272f3 | 3992 | $as_echo_n 0123456789 >"conftest.in" |
db137867 AC |
3993 | while : |
3994 | do | |
3995 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3996 | mv "conftest.tmp" "conftest.in" | |
3997 | cp "conftest.in" "conftest.nl" | |
030272f3 | 3998 | $as_echo 'GREP' >> "conftest.nl" |
db137867 AC |
3999 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4000 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4001 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
db137867 AC |
4002 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4003 | # Best one so far, save it but keep looking for a better one | |
4004 | ac_cv_path_GREP="$ac_path_GREP" | |
4005 | ac_path_GREP_max=$ac_count | |
4006 | fi | |
4007 | # 10*(2^10) chars as input seems more than enough | |
4008 | test $ac_count -gt 10 && break | |
4009 | done | |
4010 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4011 | esac | |
4012 | ||
030272f3 VY |
4013 | $ac_path_GREP_found && break 3 |
4014 | done | |
db137867 | 4015 | done |
7083c021 | 4016 | done |
db137867 | 4017 | IFS=$as_save_IFS |
030272f3 | 4018 | if test -z "$ac_cv_path_GREP"; then |
08c2568c | 4019 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4020 | fi |
db137867 AC |
4021 | else |
4022 | ac_cv_path_GREP=$GREP | |
4023 | fi | |
4024 | ||
db137867 | 4025 | fi |
7083c021 | 4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
030272f3 | 4027 | $as_echo "$ac_cv_path_GREP" >&6; } |
db137867 AC |
4028 | GREP="$ac_cv_path_GREP" |
4029 | ||
4030 | ||
7083c021 | 4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
030272f3 | 4032 | $as_echo_n "checking for egrep... " >&6; } |
08c2568c | 4033 | if ${ac_cv_path_EGREP+:} false; then : |
030272f3 | 4034 | $as_echo_n "(cached) " >&6 |
db137867 AC |
4035 | else |
4036 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4037 | then ac_cv_path_EGREP="$GREP -E" | |
4038 | else | |
030272f3 | 4039 | if test -z "$EGREP"; then |
db137867 | 4040 | ac_path_EGREP_found=false |
030272f3 VY |
4041 | # Loop through the user's path and test for each of PROGNAME-LIST |
4042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
db137867 AC |
4043 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4044 | do | |
4045 | IFS=$as_save_IFS | |
4046 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4047 | for ac_prog in egrep; do |
030272f3 VY |
4048 | for ac_exec_ext in '' $ac_executable_extensions; do |
4049 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4050 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4051 | # Check for GNU ac_path_EGREP and select it if it is found. | |
db137867 AC |
4052 | # Check for GNU $ac_path_EGREP |
4053 | case `"$ac_path_EGREP" --version 2>&1` in | |
4054 | *GNU*) | |
4055 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4056 | *) | |
4057 | ac_count=0 | |
030272f3 | 4058 | $as_echo_n 0123456789 >"conftest.in" |
db137867 AC |
4059 | while : |
4060 | do | |
4061 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4062 | mv "conftest.tmp" "conftest.in" | |
4063 | cp "conftest.in" "conftest.nl" | |
030272f3 | 4064 | $as_echo 'EGREP' >> "conftest.nl" |
db137867 AC |
4065 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4066 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4067 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
db137867 AC |
4068 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4069 | # Best one so far, save it but keep looking for a better one | |
4070 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4071 | ac_path_EGREP_max=$ac_count | |
4072 | fi | |
4073 | # 10*(2^10) chars as input seems more than enough | |
4074 | test $ac_count -gt 10 && break | |
4075 | done | |
4076 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4077 | esac | |
4078 | ||
030272f3 VY |
4079 | $ac_path_EGREP_found && break 3 |
4080 | done | |
db137867 | 4081 | done |
7083c021 | 4082 | done |
db137867 | 4083 | IFS=$as_save_IFS |
030272f3 | 4084 | if test -z "$ac_cv_path_EGREP"; then |
08c2568c | 4085 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4086 | fi |
db137867 AC |
4087 | else |
4088 | ac_cv_path_EGREP=$EGREP | |
4089 | fi | |
4090 | ||
db137867 AC |
4091 | fi |
4092 | fi | |
7083c021 | 4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
030272f3 | 4094 | $as_echo "$ac_cv_path_EGREP" >&6; } |
db137867 AC |
4095 | EGREP="$ac_cv_path_EGREP" |
4096 | ||
4097 | ||
7083c021 | 4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
030272f3 | 4099 | $as_echo_n "checking for ANSI C header files... " >&6; } |
08c2568c | 4100 | if ${ac_cv_header_stdc+:} false; then : |
030272f3 | 4101 | $as_echo_n "(cached) " >&6 |
db137867 | 4102 | else |
7083c021 | 4103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4104 | /* end confdefs.h. */ |
030272f3 VY |
4105 | #include <stdlib.h> |
4106 | #include <stdarg.h> | |
4107 | #include <string.h> | |
4108 | #include <float.h> | |
db137867 | 4109 | |
db137867 AC |
4110 | int |
4111 | main () | |
4112 | { | |
030272f3 | 4113 | |
db137867 AC |
4114 | ; |
4115 | return 0; | |
4116 | } | |
4117 | _ACEOF | |
7083c021 | 4118 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4119 | ac_cv_header_stdc=yes |
db137867 | 4120 | else |
7083c021 | 4121 | ac_cv_header_stdc=no |
db137867 | 4122 | fi |
030272f3 VY |
4123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4124 | ||
4125 | if test $ac_cv_header_stdc = yes; then | |
4126 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7083c021 | 4127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4128 | /* end confdefs.h. */ |
4129 | #include <string.h> | |
4130 | ||
4131 | _ACEOF | |
4132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 AC |
4133 | $EGREP "memchr" >/dev/null 2>&1; then : |
4134 | ||
db137867 | 4135 | else |
030272f3 | 4136 | ac_cv_header_stdc=no |
db137867 | 4137 | fi |
030272f3 | 4138 | rm -f conftest* |
db137867 AC |
4139 | |
4140 | fi | |
4141 | ||
030272f3 VY |
4142 | if test $ac_cv_header_stdc = yes; then |
4143 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7083c021 | 4144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4145 | /* end confdefs.h. */ |
030272f3 | 4146 | #include <stdlib.h> |
db137867 AC |
4147 | |
4148 | _ACEOF | |
030272f3 | 4149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7083c021 AC |
4150 | $EGREP "free" >/dev/null 2>&1; then : |
4151 | ||
db137867 | 4152 | else |
030272f3 | 4153 | ac_cv_header_stdc=no |
db137867 | 4154 | fi |
030272f3 | 4155 | rm -f conftest* |
db137867 AC |
4156 | |
4157 | fi | |
db137867 | 4158 | |
030272f3 VY |
4159 | if test $ac_cv_header_stdc = yes; then |
4160 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7083c021 | 4161 | if test "$cross_compiling" = yes; then : |
030272f3 | 4162 | : |
db137867 | 4163 | else |
7083c021 | 4164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 4165 | /* end confdefs.h. */ |
030272f3 VY |
4166 | #include <ctype.h> |
4167 | #include <stdlib.h> | |
4168 | #if ((' ' & 0x0FF) == 0x020) | |
4169 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4170 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4171 | #else | |
4172 | # define ISLOWER(c) \ | |
4173 | (('a' <= (c) && (c) <= 'i') \ | |
4174 | || ('j' <= (c) && (c) <= 'r') \ | |
4175 | || ('s' <= (c) && (c) <= 'z')) | |
4176 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
db137867 AC |
4177 | #endif |
4178 | ||
030272f3 VY |
4179 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4180 | int | |
4181 | main () | |
4182 | { | |
4183 | int i; | |
4184 | for (i = 0; i < 256; i++) | |
4185 | if (XOR (islower (i), ISLOWER (i)) | |
4186 | || toupper (i) != TOUPPER (i)) | |
4187 | return 2; | |
db137867 AC |
4188 | return 0; |
4189 | } | |
4190 | _ACEOF | |
7083c021 | 4191 | if ac_fn_c_try_run "$LINENO"; then : |
030272f3 | 4192 | |
7083c021 AC |
4193 | else |
4194 | ac_cv_header_stdc=no | |
030272f3 | 4195 | fi |
7083c021 AC |
4196 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4197 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
030272f3 VY |
4198 | fi |
4199 | ||
030272f3 VY |
4200 | fi |
4201 | fi | |
7083c021 | 4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
030272f3 VY |
4203 | $as_echo "$ac_cv_header_stdc" >&6; } |
4204 | if test $ac_cv_header_stdc = yes; then | |
4205 | ||
7083c021 | 4206 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
030272f3 VY |
4207 | |
4208 | fi | |
4209 | ||
4210 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7083c021 AC |
4211 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4212 | inttypes.h stdint.h unistd.h | |
4213 | do : | |
4214 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4215 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4216 | " | |
08c2568c | 4217 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
4218 | cat >>confdefs.h <<_ACEOF |
4219 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4220 | _ACEOF | |
030272f3 | 4221 | |
7083c021 | 4222 | fi |
030272f3 | 4223 | |
7083c021 | 4224 | done |
030272f3 VY |
4225 | |
4226 | ||
4227 | ||
7083c021 | 4228 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
08c2568c | 4229 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7083c021 AC |
4230 | MINIX=yes |
4231 | else | |
4232 | MINIX= | |
4233 | fi | |
030272f3 VY |
4234 | |
4235 | ||
7083c021 | 4236 | if test "$MINIX" = yes; then |
030272f3 | 4237 | |
7083c021 | 4238 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
030272f3 | 4239 | |
db137867 | 4240 | |
7083c021 | 4241 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
db137867 | 4242 | |
db137867 | 4243 | |
7083c021 | 4244 | $as_echo "#define _MINIX 1" >>confdefs.h |
030272f3 | 4245 | |
7083c021 | 4246 | fi |
030272f3 VY |
4247 | |
4248 | ||
7083c021 | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
030272f3 | 4250 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
08c2568c | 4251 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
030272f3 | 4252 | $as_echo_n "(cached) " >&6 |
db137867 | 4253 | else |
7083c021 | 4254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 | 4255 | /* end confdefs.h. */ |
db137867 | 4256 | |
030272f3 VY |
4257 | # define __EXTENSIONS__ 1 |
4258 | $ac_includes_default | |
4259 | int | |
4260 | main () | |
4261 | { | |
4262 | ||
4263 | ; | |
4264 | return 0; | |
4265 | } | |
4266 | _ACEOF | |
7083c021 | 4267 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4268 | ac_cv_safe_to_define___extensions__=yes |
db137867 | 4269 | else |
7083c021 | 4270 | ac_cv_safe_to_define___extensions__=no |
db137867 | 4271 | fi |
030272f3 VY |
4272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4273 | fi | |
7083c021 | 4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
030272f3 VY |
4275 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4276 | test $ac_cv_safe_to_define___extensions__ = yes && | |
7083c021 | 4277 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
db137867 | 4278 | |
7083c021 | 4279 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
030272f3 | 4280 | |
7083c021 | 4281 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
030272f3 | 4282 | |
7083c021 AC |
4283 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4284 | ||
4285 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
030272f3 | 4286 | |
030272f3 VY |
4287 | |
4288 | ||
4289 | ||
7083c021 | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
030272f3 | 4291 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
08c2568c | 4292 | if ${ac_cv_prog_cc_c99+:} false; then : |
030272f3 | 4293 | $as_echo_n "(cached) " >&6 |
db137867 | 4294 | else |
030272f3 VY |
4295 | ac_cv_prog_cc_c99=no |
4296 | ac_save_CC=$CC | |
7083c021 | 4297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4298 | /* end confdefs.h. */ |
4299 | #include <stdarg.h> | |
4300 | #include <stdbool.h> | |
4301 | #include <stdlib.h> | |
4302 | #include <wchar.h> | |
4303 | #include <stdio.h> | |
db137867 | 4304 | |
030272f3 VY |
4305 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
4306 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4307 | #define showlist(...) puts (#__VA_ARGS__) | |
4308 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4309 | static void | |
4310 | test_varargs_macros (void) | |
4311 | { | |
4312 | int x = 1234; | |
4313 | int y = 5678; | |
4314 | debug ("Flag"); | |
4315 | debug ("X = %d\n", x); | |
4316 | showlist (The first, second, and third items.); | |
4317 | report (x>y, "x is %d but y is %d", x, y); | |
4318 | } | |
db137867 | 4319 | |
030272f3 VY |
4320 | // Check long long types. |
4321 | #define BIG64 18446744073709551615ull | |
4322 | #define BIG32 4294967295ul | |
4323 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4324 | #if !BIG_OK | |
4325 | your preprocessor is broken; | |
4326 | #endif | |
4327 | #if BIG_OK | |
4328 | #else | |
4329 | your preprocessor is broken; | |
4330 | #endif | |
4331 | static long long int bignum = -9223372036854775807LL; | |
4332 | static unsigned long long int ubignum = BIG64; | |
db137867 | 4333 | |
030272f3 VY |
4334 | struct incomplete_array |
4335 | { | |
4336 | int datasize; | |
4337 | double data[]; | |
4338 | }; | |
db137867 | 4339 | |
030272f3 VY |
4340 | struct named_init { |
4341 | int number; | |
4342 | const wchar_t *name; | |
4343 | double average; | |
4344 | }; | |
db137867 | 4345 | |
030272f3 | 4346 | typedef const char *ccp; |
db137867 | 4347 | |
030272f3 VY |
4348 | static inline int |
4349 | test_restrict (ccp restrict text) | |
4350 | { | |
4351 | // See if C++-style comments work. | |
4352 | // Iterate through items via the restricted pointer. | |
4353 | // Also check for declarations in for loops. | |
4354 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4355 | continue; | |
4356 | return 0; | |
4357 | } | |
db137867 | 4358 | |
030272f3 VY |
4359 | // Check varargs and va_copy. |
4360 | static void | |
4361 | test_varargs (const char *format, ...) | |
4362 | { | |
4363 | va_list args; | |
4364 | va_start (args, format); | |
4365 | va_list args_copy; | |
4366 | va_copy (args_copy, args); | |
db137867 | 4367 | |
030272f3 VY |
4368 | const char *str; |
4369 | int number; | |
4370 | float fnumber; | |
db137867 | 4371 | |
030272f3 VY |
4372 | while (*format) |
4373 | { | |
4374 | switch (*format++) | |
4375 | { | |
4376 | case 's': // string | |
4377 | str = va_arg (args_copy, const char *); | |
4378 | break; | |
4379 | case 'd': // int | |
4380 | number = va_arg (args_copy, int); | |
4381 | break; | |
4382 | case 'f': // float | |
4383 | fnumber = va_arg (args_copy, double); | |
4384 | break; | |
4385 | default: | |
4386 | break; | |
4387 | } | |
4388 | } | |
4389 | va_end (args_copy); | |
4390 | va_end (args); | |
4391 | } | |
db137867 | 4392 | |
030272f3 VY |
4393 | int |
4394 | main () | |
4395 | { | |
db137867 | 4396 | |
030272f3 VY |
4397 | // Check bool. |
4398 | _Bool success = false; | |
db137867 | 4399 | |
030272f3 VY |
4400 | // Check restrict. |
4401 | if (test_restrict ("String literal") == 0) | |
4402 | success = true; | |
4403 | char *restrict newvar = "Another string"; | |
db137867 | 4404 | |
030272f3 VY |
4405 | // Check varargs. |
4406 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
4407 | test_varargs_macros (); | |
db137867 | 4408 | |
030272f3 VY |
4409 | // Check flexible array members. |
4410 | struct incomplete_array *ia = | |
4411 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4412 | ia->datasize = 10; | |
4413 | for (int i = 0; i < ia->datasize; ++i) | |
4414 | ia->data[i] = i * 1.234; | |
db137867 | 4415 | |
030272f3 VY |
4416 | // Check named initializers. |
4417 | struct named_init ni = { | |
4418 | .number = 34, | |
4419 | .name = L"Test wide string", | |
4420 | .average = 543.34343, | |
4421 | }; | |
db137867 | 4422 | |
030272f3 | 4423 | ni.number = 58; |
db137867 | 4424 | |
030272f3 VY |
4425 | int dynamic_array[ni.number]; |
4426 | dynamic_array[ni.number - 1] = 543; | |
4427 | ||
4428 | // work around unused variable warnings | |
4429 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4430 | || dynamic_array[ni.number - 1] != 543); | |
4431 | ||
4432 | ; | |
4433 | return 0; | |
4434 | } | |
4435 | _ACEOF | |
4436 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | |
4437 | do | |
4438 | CC="$ac_save_CC $ac_arg" | |
7083c021 | 4439 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4440 | ac_cv_prog_cc_c99=$ac_arg |
db137867 | 4441 | fi |
030272f3 VY |
4442 | rm -f core conftest.err conftest.$ac_objext |
4443 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4444 | done | |
4445 | rm -f conftest.$ac_ext | |
4446 | CC=$ac_save_CC | |
4447 | ||
db137867 | 4448 | fi |
030272f3 VY |
4449 | # AC_CACHE_VAL |
4450 | case "x$ac_cv_prog_cc_c99" in | |
4451 | x) | |
7083c021 | 4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
030272f3 VY |
4453 | $as_echo "none needed" >&6; } ;; |
4454 | xno) | |
7083c021 | 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
030272f3 VY |
4456 | $as_echo "unsupported" >&6; } ;; |
4457 | *) | |
4458 | CC="$CC $ac_cv_prog_cc_c99" | |
7083c021 | 4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
030272f3 | 4460 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
db137867 | 4461 | esac |
7083c021 | 4462 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
db137867 | 4463 | |
030272f3 VY |
4464 | fi |
4465 | ||
4466 | ||
030272f3 | 4467 | |
7083c021 | 4468 | if test x"$ac_cv_prog_cc_c99" = "xno"; then |
08c2568c | 4469 | as_fn_error $? "ircd-ratbox requires a C99 capable compiler" "$LINENO" 5 |
030272f3 | 4470 | fi |
db137867 | 4471 | |
db137867 AC |
4472 | |
4473 | ||
7083c021 | 4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
030272f3 | 4475 | $as_echo_n "checking for egrep... " >&6; } |
08c2568c | 4476 | if ${ac_cv_path_EGREP+:} false; then : |
030272f3 | 4477 | $as_echo_n "(cached) " >&6 |
db137867 | 4478 | else |
030272f3 VY |
4479 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4480 | then ac_cv_path_EGREP="$GREP -E" | |
4481 | else | |
4482 | if test -z "$EGREP"; then | |
4483 | ac_path_EGREP_found=false | |
4484 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4486 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4487 | do | |
4488 | IFS=$as_save_IFS | |
4489 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4490 | for ac_prog in egrep; do |
030272f3 VY |
4491 | for ac_exec_ext in '' $ac_executable_extensions; do |
4492 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4493 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4494 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4495 | # Check for GNU $ac_path_EGREP | |
4496 | case `"$ac_path_EGREP" --version 2>&1` in | |
4497 | *GNU*) | |
4498 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4499 | *) | |
4500 | ac_count=0 | |
4501 | $as_echo_n 0123456789 >"conftest.in" | |
4502 | while : | |
4503 | do | |
4504 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4505 | mv "conftest.tmp" "conftest.in" | |
4506 | cp "conftest.in" "conftest.nl" | |
4507 | $as_echo 'EGREP' >> "conftest.nl" | |
4508 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4509 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4510 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
030272f3 VY |
4511 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4512 | # Best one so far, save it but keep looking for a better one | |
4513 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4514 | ac_path_EGREP_max=$ac_count | |
4515 | fi | |
4516 | # 10*(2^10) chars as input seems more than enough | |
4517 | test $ac_count -gt 10 && break | |
4518 | done | |
4519 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4520 | esac | |
db137867 | 4521 | |
030272f3 VY |
4522 | $ac_path_EGREP_found && break 3 |
4523 | done | |
4524 | done | |
7083c021 | 4525 | done |
030272f3 VY |
4526 | IFS=$as_save_IFS |
4527 | if test -z "$ac_cv_path_EGREP"; then | |
08c2568c | 4528 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
030272f3 | 4529 | fi |
db137867 | 4530 | else |
030272f3 | 4531 | ac_cv_path_EGREP=$EGREP |
db137867 | 4532 | fi |
030272f3 VY |
4533 | |
4534 | fi | |
4535 | fi | |
7083c021 | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
030272f3 VY |
4537 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4538 | EGREP="$ac_cv_path_EGREP" | |
4539 | ||
4540 | ||
7083c021 | 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
030272f3 | 4542 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
08c2568c | 4543 | if ${ac_cv_path_SED+:} false; then : |
030272f3 VY |
4544 | $as_echo_n "(cached) " >&6 |
4545 | else | |
4546 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4547 | for ac_i in 1 2 3 4 5 6 7; do | |
4548 | ac_script="$ac_script$as_nl$ac_script" | |
4549 | done | |
4550 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
7083c021 | 4551 | { ac_script=; unset ac_script;} |
030272f3 VY |
4552 | if test -z "$SED"; then |
4553 | ac_path_SED_found=false | |
4554 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4556 | for as_dir in $PATH | |
4557 | do | |
4558 | IFS=$as_save_IFS | |
4559 | test -z "$as_dir" && as_dir=. | |
7083c021 | 4560 | for ac_prog in sed gsed; do |
030272f3 VY |
4561 | for ac_exec_ext in '' $ac_executable_extensions; do |
4562 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4563 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4564 | # Check for GNU ac_path_SED and select it if it is found. | |
4565 | # Check for GNU $ac_path_SED | |
4566 | case `"$ac_path_SED" --version 2>&1` in | |
4567 | *GNU*) | |
4568 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4569 | *) | |
4570 | ac_count=0 | |
4571 | $as_echo_n 0123456789 >"conftest.in" | |
4572 | while : | |
4573 | do | |
4574 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4575 | mv "conftest.tmp" "conftest.in" | |
4576 | cp "conftest.in" "conftest.nl" | |
4577 | $as_echo '' >> "conftest.nl" | |
4578 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4579 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7083c021 | 4580 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
030272f3 VY |
4581 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4582 | # Best one so far, save it but keep looking for a better one | |
4583 | ac_cv_path_SED="$ac_path_SED" | |
4584 | ac_path_SED_max=$ac_count | |
db137867 | 4585 | fi |
030272f3 VY |
4586 | # 10*(2^10) chars as input seems more than enough |
4587 | test $ac_count -gt 10 && break | |
db137867 | 4588 | done |
030272f3 VY |
4589 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4590 | esac | |
4591 | ||
4592 | $ac_path_SED_found && break 3 | |
4593 | done | |
4594 | done | |
7083c021 | 4595 | done |
030272f3 VY |
4596 | IFS=$as_save_IFS |
4597 | if test -z "$ac_cv_path_SED"; then | |
08c2568c | 4598 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
030272f3 | 4599 | fi |
db137867 | 4600 | else |
030272f3 | 4601 | ac_cv_path_SED=$SED |
db137867 | 4602 | fi |
030272f3 | 4603 | |
db137867 | 4604 | fi |
7083c021 | 4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
030272f3 VY |
4606 | $as_echo "$ac_cv_path_SED" >&6; } |
4607 | SED="$ac_cv_path_SED" | |
4608 | rm -f conftest.sed | |
db137867 | 4609 | |
030272f3 VY |
4610 | |
4611 | F77=no | |
4612 | CXX=no | |
4613 | GCJ=no | |
4614 | ||
4615 | # Check whether --enable-static was given. | |
7083c021 | 4616 | if test "${enable_static+set}" = set; then : |
030272f3 VY |
4617 | enableval=$enable_static; p=${PACKAGE-default} |
4618 | case $enableval in | |
4619 | yes) enable_static=yes ;; | |
4620 | no) enable_static=no ;; | |
4621 | *) | |
4622 | enable_static=no | |
4623 | # Look at the argument we got. We use all the common list separators. | |
4624 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4625 | for pkg in $enableval; do | |
4626 | IFS="$lt_save_ifs" | |
4627 | if test "X$pkg" = "X$p"; then | |
4628 | enable_static=yes | |
4629 | fi | |
4630 | done | |
4631 | IFS="$lt_save_ifs" | |
4632 | ;; | |
4633 | esac | |
db137867 | 4634 | else |
030272f3 | 4635 | enable_static=no |
db137867 | 4636 | fi |
030272f3 VY |
4637 | |
4638 | ||
4639 | ||
7083c021 AC |
4640 | |
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
030272f3 | 4646 | # Check whether --enable-shared was given. |
7083c021 | 4647 | if test "${enable_shared+set}" = set; then : |
030272f3 VY |
4648 | enableval=$enable_shared; p=${PACKAGE-default} |
4649 | case $enableval in | |
4650 | yes) enable_shared=yes ;; | |
4651 | no) enable_shared=no ;; | |
4652 | *) | |
4653 | enable_shared=no | |
4654 | # Look at the argument we got. We use all the common list separators. | |
4655 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4656 | for pkg in $enableval; do | |
4657 | IFS="$lt_save_ifs" | |
4658 | if test "X$pkg" = "X$p"; then | |
4659 | enable_shared=yes | |
4660 | fi | |
4661 | done | |
4662 | IFS="$lt_save_ifs" | |
4663 | ;; | |
4664 | esac | |
db137867 | 4665 | else |
030272f3 | 4666 | enable_shared=yes |
db137867 | 4667 | fi |
db137867 AC |
4668 | |
4669 | ||
7083c021 AC |
4670 | |
4671 | ||
4672 | ||
4673 | ||
4674 | ||
4675 | ||
4676 | ||
4677 | ||
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
030272f3 VY |
4679 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
4680 | # Check whether --enable-maintainer-mode was given. | |
7083c021 | 4681 | if test "${enable_maintainer_mode+set}" = set; then : |
030272f3 | 4682 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
db137867 | 4683 | else |
030272f3 | 4684 | USE_MAINTAINER_MODE=no |
db137867 | 4685 | fi |
030272f3 | 4686 | |
7083c021 | 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
030272f3 VY |
4688 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
4689 | if test $USE_MAINTAINER_MODE = yes; then | |
4690 | MAINTAINER_MODE_TRUE= | |
4691 | MAINTAINER_MODE_FALSE='#' | |
4692 | else | |
4693 | MAINTAINER_MODE_TRUE='#' | |
4694 | MAINTAINER_MODE_FALSE= | |
4695 | fi | |
4696 | ||
4697 | MAINT=$MAINTAINER_MODE_TRUE | |
4698 | ||
4699 | ||
4700 | ||
7083c021 | 4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
030272f3 | 4702 | $as_echo_n "checking for library containing strerror... " >&6; } |
08c2568c | 4703 | if ${ac_cv_search_strerror+:} false; then : |
030272f3 VY |
4704 | $as_echo_n "(cached) " >&6 |
4705 | else | |
4706 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 4707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4708 | /* end confdefs.h. */ |
4709 | ||
4710 | /* Override any GCC internal prototype to avoid an error. | |
4711 | Use char because int might match the return type of a GCC | |
4712 | builtin and then its argument prototype would still apply. */ | |
4713 | #ifdef __cplusplus | |
4714 | extern "C" | |
4715 | #endif | |
4716 | char strerror (); | |
4717 | int | |
4718 | main () | |
4719 | { | |
4720 | return strerror (); | |
4721 | ; | |
4722 | return 0; | |
4723 | } | |
4724 | _ACEOF | |
4725 | for ac_lib in '' cposix; do | |
4726 | if test -z "$ac_lib"; then | |
4727 | ac_res="none required" | |
4728 | else | |
4729 | ac_res=-l$ac_lib | |
4730 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4731 | fi | |
7083c021 | 4732 | if ac_fn_c_try_link "$LINENO"; then : |
030272f3 | 4733 | ac_cv_search_strerror=$ac_res |
030272f3 | 4734 | fi |
7083c021 AC |
4735 | rm -f core conftest.err conftest.$ac_objext \ |
4736 | conftest$ac_exeext | |
08c2568c | 4737 | if ${ac_cv_search_strerror+:} false; then : |
030272f3 VY |
4738 | break |
4739 | fi | |
4740 | done | |
08c2568c | 4741 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 4742 | |
030272f3 VY |
4743 | else |
4744 | ac_cv_search_strerror=no | |
4745 | fi | |
4746 | rm conftest.$ac_ext | |
4747 | LIBS=$ac_func_search_save_LIBS | |
4748 | fi | |
7083c021 | 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
030272f3 VY |
4750 | $as_echo "$ac_cv_search_strerror" >&6; } |
4751 | ac_res=$ac_cv_search_strerror | |
7083c021 | 4752 | if test "$ac_res" != no; then : |
030272f3 VY |
4753 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4754 | ||
4755 | fi | |
4756 | ||
7083c021 | 4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
030272f3 | 4758 | $as_echo_n "checking for inline... " >&6; } |
08c2568c | 4759 | if ${ac_cv_c_inline+:} false; then : |
030272f3 VY |
4760 | $as_echo_n "(cached) " >&6 |
4761 | else | |
4762 | ac_cv_c_inline=no | |
4763 | for ac_kw in inline __inline__ __inline; do | |
7083c021 | 4764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4765 | /* end confdefs.h. */ |
4766 | #ifndef __cplusplus | |
4767 | typedef int foo_t; | |
4768 | static $ac_kw foo_t static_foo () {return 0; } | |
4769 | $ac_kw foo_t foo () {return 0; } | |
4770 | #endif | |
4771 | ||
4772 | _ACEOF | |
7083c021 | 4773 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4774 | ac_cv_c_inline=$ac_kw |
030272f3 | 4775 | fi |
030272f3 VY |
4776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4777 | test "$ac_cv_c_inline" != no && break | |
4778 | done | |
4779 | ||
4780 | fi | |
7083c021 | 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
030272f3 VY |
4782 | $as_echo "$ac_cv_c_inline" >&6; } |
4783 | ||
030272f3 VY |
4784 | case $ac_cv_c_inline in |
4785 | inline | yes) ;; | |
4786 | *) | |
4787 | case $ac_cv_c_inline in | |
4788 | no) ac_val=;; | |
4789 | *) ac_val=$ac_cv_c_inline;; | |
4790 | esac | |
4791 | cat >>confdefs.h <<_ACEOF | |
4792 | #ifndef __cplusplus | |
4793 | #define inline $ac_val | |
4794 | #endif | |
4795 | _ACEOF | |
db137867 AC |
4796 | ;; |
4797 | esac | |
4798 | ||
7083c021 | 4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
030272f3 | 4800 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
08c2568c | 4801 | if ${ac_cv_c_const+:} false; then : |
030272f3 | 4802 | $as_echo_n "(cached) " >&6 |
db137867 | 4803 | else |
7083c021 | 4804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 VY |
4805 | /* end confdefs.h. */ |
4806 | ||
4807 | int | |
4808 | main () | |
4809 | { | |
4810 | /* FIXME: Include the comments suggested by Paul. */ | |
4811 | #ifndef __cplusplus | |
4812 | /* Ultrix mips cc rejects this. */ | |
4813 | typedef int charset[2]; | |
4814 | const charset cs; | |
4815 | /* SunOS 4.1.1 cc rejects this. */ | |
4816 | char const *const *pcpcc; | |
4817 | char **ppc; | |
4818 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4819 | struct point {int x, y;}; | |
4820 | static struct point const zero = {0,0}; | |
4821 | /* AIX XL C 1.02.0.0 rejects this. | |
4822 | It does not let you subtract one const X* pointer from another in | |
4823 | an arm of an if-expression whose if-part is not a constant | |
4824 | expression */ | |
4825 | const char *g = "string"; | |
4826 | pcpcc = &g + (g ? g-g : 0); | |
4827 | /* HPUX 7.0 cc rejects these. */ | |
4828 | ++pcpcc; | |
4829 | ppc = (char**) pcpcc; | |
4830 | pcpcc = (char const *const *) ppc; | |
4831 | { /* SCO 3.2v4 cc rejects this. */ | |
4832 | char *t; | |
4833 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4834 | ||
4835 | *t++ = 0; | |
4836 | if (s) return 0; | |
4837 | } | |
4838 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4839 | int x[] = {25, 17}; | |
4840 | const int *foo = &x[0]; | |
4841 | ++foo; | |
4842 | } | |
4843 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4844 | typedef const int *iptr; | |
4845 | iptr p = 0; | |
4846 | ++p; | |
4847 | } | |
4848 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4849 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4850 | struct s { int j; const int *ap[3]; }; | |
4851 | struct s *b; b->j = 5; | |
4852 | } | |
4853 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4854 | const int foo = 10; | |
4855 | if (!foo) return 0; | |
4856 | } | |
4857 | return !cs[0] && !zero.x; | |
4858 | #endif | |
4859 | ||
4860 | ; | |
4861 | return 0; | |
4862 | } | |
4863 | _ACEOF | |
7083c021 | 4864 | if ac_fn_c_try_compile "$LINENO"; then : |
030272f3 | 4865 | ac_cv_c_const=yes |
db137867 | 4866 | else |
7083c021 | 4867 | ac_cv_c_const=no |
030272f3 | 4868 | fi |
030272f3 VY |
4869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4870 | fi | |
7083c021 | 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
030272f3 VY |
4872 | $as_echo "$ac_cv_c_const" >&6; } |
4873 | if test $ac_cv_c_const = no; then | |
4874 | ||
7083c021 | 4875 | $as_echo "#define const /**/" >>confdefs.h |
030272f3 VY |
4876 | |
4877 | fi | |
4878 | ||
f171dafb EM |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
4880 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4881 | if ${ac_cv_c_bigendian+:} false; then : | |
4882 | $as_echo_n "(cached) " >&6 | |
4883 | else | |
4884 | ac_cv_c_bigendian=unknown | |
4885 | # See if we're dealing with a universal compiler. | |
4886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4887 | /* end confdefs.h. */ | |
4888 | #ifndef __APPLE_CC__ | |
4889 | not a universal capable compiler | |
4890 | #endif | |
4891 | typedef int dummy; | |
4892 | ||
4893 | _ACEOF | |
4894 | if ac_fn_c_try_compile "$LINENO"; then : | |
4895 | ||
4896 | # Check for potential -arch flags. It is not universal unless | |
4897 | # there are at least two -arch flags with different values. | |
4898 | ac_arch= | |
4899 | ac_prev= | |
4900 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
4901 | if test -n "$ac_prev"; then | |
4902 | case $ac_word in | |
4903 | i?86 | x86_64 | ppc | ppc64) | |
4904 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
4905 | ac_arch=$ac_word | |
4906 | else | |
4907 | ac_cv_c_bigendian=universal | |
4908 | break | |
4909 | fi | |
4910 | ;; | |
4911 | esac | |
4912 | ac_prev= | |
4913 | elif test "x$ac_word" = "x-arch"; then | |
4914 | ac_prev=arch | |
4915 | fi | |
4916 | done | |
4917 | fi | |
4918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4919 | if test $ac_cv_c_bigendian = unknown; then | |
4920 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4922 | /* end confdefs.h. */ | |
4923 | #include <sys/types.h> | |
4924 | #include <sys/param.h> | |
4925 | ||
4926 | int | |
4927 | main () | |
4928 | { | |
4929 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
4930 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
4931 | && LITTLE_ENDIAN) | |
4932 | bogus endian macros | |
4933 | #endif | |
4934 | ||
4935 | ; | |
4936 | return 0; | |
4937 | } | |
4938 | _ACEOF | |
4939 | if ac_fn_c_try_compile "$LINENO"; then : | |
4940 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4942 | /* end confdefs.h. */ | |
4943 | #include <sys/types.h> | |
4944 | #include <sys/param.h> | |
4945 | ||
4946 | int | |
4947 | main () | |
4948 | { | |
4949 | #if BYTE_ORDER != BIG_ENDIAN | |
4950 | not big endian | |
4951 | #endif | |
4952 | ||
4953 | ; | |
4954 | return 0; | |
4955 | } | |
4956 | _ACEOF | |
4957 | if ac_fn_c_try_compile "$LINENO"; then : | |
4958 | ac_cv_c_bigendian=yes | |
4959 | else | |
4960 | ac_cv_c_bigendian=no | |
4961 | fi | |
4962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4963 | fi | |
4964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4965 | fi | |
4966 | if test $ac_cv_c_bigendian = unknown; then | |
4967 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
4968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4969 | /* end confdefs.h. */ | |
4970 | #include <limits.h> | |
4971 | ||
4972 | int | |
4973 | main () | |
4974 | { | |
4975 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
4976 | bogus endian macros | |
4977 | #endif | |
4978 | ||
4979 | ; | |
4980 | return 0; | |
4981 | } | |
4982 | _ACEOF | |
4983 | if ac_fn_c_try_compile "$LINENO"; then : | |
4984 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
4985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4986 | /* end confdefs.h. */ | |
4987 | #include <limits.h> | |
4988 | ||
4989 | int | |
4990 | main () | |
4991 | { | |
4992 | #ifndef _BIG_ENDIAN | |
4993 | not big endian | |
4994 | #endif | |
4995 | ||
4996 | ; | |
4997 | return 0; | |
4998 | } | |
4999 | _ACEOF | |
5000 | if ac_fn_c_try_compile "$LINENO"; then : | |
5001 | ac_cv_c_bigendian=yes | |
5002 | else | |
5003 | ac_cv_c_bigendian=no | |
5004 | fi | |
5005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5006 | fi | |
5007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5008 | fi | |
5009 | if test $ac_cv_c_bigendian = unknown; then | |
5010 | # Compile a test program. | |
5011 | if test "$cross_compiling" = yes; then : | |
5012 | # Try to guess by grepping values from an object file. | |
5013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5014 | /* end confdefs.h. */ | |
5015 | short int ascii_mm[] = | |
5016 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5017 | short int ascii_ii[] = | |
5018 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5019 | int use_ascii (int i) { | |
5020 | return ascii_mm[i] + ascii_ii[i]; | |
5021 | } | |
5022 | short int ebcdic_ii[] = | |
5023 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5024 | short int ebcdic_mm[] = | |
5025 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5026 | int use_ebcdic (int i) { | |
5027 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5028 | } | |
5029 | extern int foo; | |
5030 | ||
5031 | int | |
5032 | main () | |
5033 | { | |
5034 | return use_ascii (foo) == use_ebcdic (foo); | |
5035 | ; | |
5036 | return 0; | |
5037 | } | |
5038 | _ACEOF | |
5039 | if ac_fn_c_try_compile "$LINENO"; then : | |
5040 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5041 | ac_cv_c_bigendian=yes | |
5042 | fi | |
5043 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5044 | if test "$ac_cv_c_bigendian" = unknown; then | |
5045 | ac_cv_c_bigendian=no | |
5046 | else | |
5047 | # finding both strings is unlikely to happen, but who knows? | |
5048 | ac_cv_c_bigendian=unknown | |
5049 | fi | |
5050 | fi | |
5051 | fi | |
5052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5053 | else | |
5054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5055 | /* end confdefs.h. */ | |
5056 | $ac_includes_default | |
5057 | int | |
5058 | main () | |
5059 | { | |
5060 | ||
5061 | /* Are we little or big endian? From Harbison&Steele. */ | |
5062 | union | |
5063 | { | |
5064 | long int l; | |
5065 | char c[sizeof (long int)]; | |
5066 | } u; | |
5067 | u.l = 1; | |
5068 | return u.c[sizeof (long int) - 1] == 1; | |
5069 | ||
5070 | ; | |
5071 | return 0; | |
5072 | } | |
5073 | _ACEOF | |
5074 | if ac_fn_c_try_run "$LINENO"; then : | |
5075 | ac_cv_c_bigendian=no | |
5076 | else | |
5077 | ac_cv_c_bigendian=yes | |
5078 | fi | |
5079 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5080 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5081 | fi | |
5082 | ||
5083 | fi | |
5084 | fi | |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
5086 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5087 | case $ac_cv_c_bigendian in #( | |
5088 | yes) | |
5089 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5090 | ;; #( | |
5091 | no) | |
5092 | ;; #( | |
5093 | universal) | |
5094 | ||
5095 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5096 | ||
5097 | ;; #( | |
5098 | *) | |
5099 | as_fn_error $? "unknown endianness | |
5100 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
5101 | esac | |
5102 | ||
7083c021 | 5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
030272f3 VY |
5104 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
5105 | set x ${MAKE-make} | |
5106 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
08c2568c | 5107 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
030272f3 VY |
5108 | $as_echo_n "(cached) " >&6 |
5109 | else | |
5110 | cat >conftest.make <<\_ACEOF | |
5111 | SHELL = /bin/sh | |
5112 | all: | |
5113 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5114 | _ACEOF | |
08c2568c | 5115 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
030272f3 VY |
5116 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
5117 | *@@@%%%=?*=@@@%%%*) | |
5118 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5119 | *) | |
5120 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5121 | esac | |
5122 | rm -f conftest.make | |
5123 | fi | |
5124 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
7083c021 | 5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
030272f3 VY |
5126 | $as_echo "yes" >&6; } |
5127 | SET_MAKE= | |
5128 | else | |
7083c021 | 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5130 | $as_echo "no" >&6; } |
5131 | SET_MAKE="MAKE=${MAKE-make}" | |
5132 | fi | |
5133 | ||
db137867 | 5134 | |
030272f3 VY |
5135 | # Extract the first word of "automake", so it can be a program name with args. |
5136 | set dummy automake; ac_word=$2 | |
7083c021 | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5138 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5139 | if ${ac_cv_path_AUTOMAKE+:} false; then : |
030272f3 VY |
5140 | $as_echo_n "(cached) " >&6 |
5141 | else | |
5142 | case $AUTOMAKE in | |
5143 | [\\/]* | ?:[\\/]*) | |
5144 | ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path. | |
db137867 | 5145 | ;; |
030272f3 VY |
5146 | *) |
5147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5148 | for as_dir in $PATH | |
5149 | do | |
5150 | IFS=$as_save_IFS | |
5151 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5152 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5154 | ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5156 | break 2 |
5157 | fi | |
5158 | done | |
7083c021 | 5159 | done |
030272f3 | 5160 | IFS=$as_save_IFS |
db137867 | 5161 | |
db137867 | 5162 | ;; |
030272f3 VY |
5163 | esac |
5164 | fi | |
5165 | AUTOMAKE=$ac_cv_path_AUTOMAKE | |
5166 | if test -n "$AUTOMAKE"; then | |
7083c021 | 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5 |
030272f3 VY |
5168 | $as_echo "$AUTOMAKE" >&6; } |
5169 | else | |
7083c021 | 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5171 | $as_echo "no" >&6; } |
5172 | fi | |
db137867 | 5173 | |
db137867 | 5174 | |
030272f3 VY |
5175 | # Extract the first word of "aclocal", so it can be a program name with args. |
5176 | set dummy aclocal; ac_word=$2 | |
7083c021 | 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5178 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5179 | if ${ac_cv_path_ACLOCAL+:} false; then : |
030272f3 VY |
5180 | $as_echo_n "(cached) " >&6 |
5181 | else | |
5182 | case $ACLOCAL in | |
5183 | [\\/]* | ?:[\\/]*) | |
5184 | ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path. | |
db137867 | 5185 | ;; |
db137867 | 5186 | *) |
030272f3 VY |
5187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5188 | for as_dir in $PATH | |
5189 | do | |
5190 | IFS=$as_save_IFS | |
5191 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5192 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5194 | ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5196 | break 2 |
5197 | fi | |
5198 | done | |
7083c021 | 5199 | done |
030272f3 | 5200 | IFS=$as_save_IFS |
db137867 | 5201 | |
db137867 | 5202 | ;; |
030272f3 VY |
5203 | esac |
5204 | fi | |
5205 | ACLOCAL=$ac_cv_path_ACLOCAL | |
5206 | if test -n "$ACLOCAL"; then | |
7083c021 | 5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 |
030272f3 VY |
5208 | $as_echo "$ACLOCAL" >&6; } |
5209 | else | |
7083c021 | 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5211 | $as_echo "no" >&6; } |
5212 | fi | |
db137867 | 5213 | |
db137867 | 5214 | |
030272f3 VY |
5215 | # Extract the first word of "autoheader", so it can be a program name with args. |
5216 | set dummy autoheader; ac_word=$2 | |
7083c021 | 5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5218 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5219 | if ${ac_cv_path_AUTOHEADER+:} false; then : |
030272f3 VY |
5220 | $as_echo_n "(cached) " >&6 |
5221 | else | |
5222 | case $AUTOHEADER in | |
5223 | [\\/]* | ?:[\\/]*) | |
5224 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. | |
db137867 | 5225 | ;; |
030272f3 VY |
5226 | *) |
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5228 | for as_dir in $PATH | |
5229 | do | |
5230 | IFS=$as_save_IFS | |
5231 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5232 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5234 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 | 5236 | break 2 |
db137867 | 5237 | fi |
030272f3 | 5238 | done |
7083c021 | 5239 | done |
030272f3 VY |
5240 | IFS=$as_save_IFS |
5241 | ||
db137867 | 5242 | ;; |
030272f3 VY |
5243 | esac |
5244 | fi | |
5245 | AUTOHEADER=$ac_cv_path_AUTOHEADER | |
5246 | if test -n "$AUTOHEADER"; then | |
7083c021 | 5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 |
030272f3 VY |
5248 | $as_echo "$AUTOHEADER" >&6; } |
5249 | else | |
7083c021 | 5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5251 | $as_echo "no" >&6; } |
5252 | fi | |
db137867 | 5253 | |
030272f3 VY |
5254 | |
5255 | # Extract the first word of "as", so it can be a program name with args. | |
5256 | set dummy as; ac_word=$2 | |
7083c021 | 5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5258 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5259 | if ${ac_cv_path_AS+:} false; then : |
030272f3 VY |
5260 | $as_echo_n "(cached) " >&6 |
5261 | else | |
5262 | case $AS in | |
5263 | [\\/]* | ?:[\\/]*) | |
5264 | ac_cv_path_AS="$AS" # Let the user override the test with a path. | |
db137867 | 5265 | ;; |
030272f3 VY |
5266 | *) |
5267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5268 | for as_dir in $PATH | |
5269 | do | |
5270 | IFS=$as_save_IFS | |
5271 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5272 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5274 | ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5276 | break 2 |
5277 | fi | |
5278 | done | |
7083c021 | 5279 | done |
030272f3 | 5280 | IFS=$as_save_IFS |
db137867 | 5281 | |
db137867 | 5282 | ;; |
030272f3 VY |
5283 | esac |
5284 | fi | |
5285 | AS=$ac_cv_path_AS | |
5286 | if test -n "$AS"; then | |
7083c021 | 5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
030272f3 VY |
5288 | $as_echo "$AS" >&6; } |
5289 | else | |
7083c021 | 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5291 | $as_echo "no" >&6; } |
5292 | fi | |
db137867 | 5293 | |
db137867 | 5294 | |
030272f3 VY |
5295 | # Extract the first word of "rm", so it can be a program name with args. |
5296 | set dummy rm; ac_word=$2 | |
7083c021 | 5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5298 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5299 | if ${ac_cv_path_RM+:} false; then : |
030272f3 VY |
5300 | $as_echo_n "(cached) " >&6 |
5301 | else | |
5302 | case $RM in | |
5303 | [\\/]* | ?:[\\/]*) | |
5304 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
db137867 | 5305 | ;; |
030272f3 VY |
5306 | *) |
5307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5308 | for as_dir in $PATH | |
5309 | do | |
5310 | IFS=$as_save_IFS | |
5311 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5312 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5314 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5316 | break 2 |
5317 | fi | |
5318 | done | |
7083c021 | 5319 | done |
030272f3 | 5320 | IFS=$as_save_IFS |
db137867 | 5321 | |
db137867 | 5322 | ;; |
030272f3 VY |
5323 | esac |
5324 | fi | |
5325 | RM=$ac_cv_path_RM | |
5326 | if test -n "$RM"; then | |
7083c021 | 5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
030272f3 VY |
5328 | $as_echo "$RM" >&6; } |
5329 | else | |
7083c021 | 5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5331 | $as_echo "no" >&6; } |
5332 | fi | |
db137867 | 5333 | |
db137867 | 5334 | |
030272f3 VY |
5335 | # Extract the first word of "cp", so it can be a program name with args. |
5336 | set dummy cp; ac_word=$2 | |
7083c021 | 5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5338 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5339 | if ${ac_cv_path_CP+:} false; then : |
030272f3 VY |
5340 | $as_echo_n "(cached) " >&6 |
5341 | else | |
5342 | case $CP in | |
5343 | [\\/]* | ?:[\\/]*) | |
5344 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
db137867 | 5345 | ;; |
030272f3 VY |
5346 | *) |
5347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5348 | for as_dir in $PATH | |
5349 | do | |
5350 | IFS=$as_save_IFS | |
5351 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5352 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5354 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5356 | break 2 |
5357 | fi | |
5358 | done | |
7083c021 | 5359 | done |
030272f3 | 5360 | IFS=$as_save_IFS |
db137867 | 5361 | |
db137867 AC |
5362 | ;; |
5363 | esac | |
db137867 | 5364 | fi |
030272f3 VY |
5365 | CP=$ac_cv_path_CP |
5366 | if test -n "$CP"; then | |
7083c021 | 5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
030272f3 VY |
5368 | $as_echo "$CP" >&6; } |
5369 | else | |
7083c021 | 5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 5371 | $as_echo "no" >&6; } |
db137867 AC |
5372 | fi |
5373 | ||
db137867 | 5374 | |
030272f3 VY |
5375 | # Extract the first word of "mv", so it can be a program name with args. |
5376 | set dummy mv; ac_word=$2 | |
7083c021 | 5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5378 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5379 | if ${ac_cv_path_MV+:} false; then : |
030272f3 VY |
5380 | $as_echo_n "(cached) " >&6 |
5381 | else | |
5382 | case $MV in | |
5383 | [\\/]* | ?:[\\/]*) | |
5384 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
db137867 | 5385 | ;; |
030272f3 VY |
5386 | *) |
5387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5388 | for as_dir in $PATH | |
5389 | do | |
5390 | IFS=$as_save_IFS | |
5391 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5392 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5394 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 | 5396 | break 2 |
db137867 | 5397 | fi |
030272f3 | 5398 | done |
7083c021 | 5399 | done |
030272f3 | 5400 | IFS=$as_save_IFS |
db137867 | 5401 | |
db137867 | 5402 | ;; |
030272f3 VY |
5403 | esac |
5404 | fi | |
5405 | MV=$ac_cv_path_MV | |
5406 | if test -n "$MV"; then | |
7083c021 | 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
030272f3 VY |
5408 | $as_echo "$MV" >&6; } |
5409 | else | |
7083c021 | 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5411 | $as_echo "no" >&6; } |
5412 | fi | |
5413 | ||
5414 | ||
5415 | # Extract the first word of "ln", so it can be a program name with args. | |
5416 | set dummy ln; ac_word=$2 | |
7083c021 | 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5418 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5419 | if ${ac_cv_path_LN+:} false; then : |
030272f3 VY |
5420 | $as_echo_n "(cached) " >&6 |
5421 | else | |
5422 | case $LN in | |
5423 | [\\/]* | ?:[\\/]*) | |
5424 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
5425 | ;; | |
5426 | *) | |
5427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5428 | for as_dir in $PATH | |
5429 | do | |
5430 | IFS=$as_save_IFS | |
5431 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5432 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5434 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5436 | break 2 |
5437 | fi | |
5438 | done | |
7083c021 | 5439 | done |
030272f3 | 5440 | IFS=$as_save_IFS |
db137867 | 5441 | |
030272f3 VY |
5442 | ;; |
5443 | esac | |
5444 | fi | |
5445 | LN=$ac_cv_path_LN | |
5446 | if test -n "$LN"; then | |
7083c021 | 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
030272f3 | 5448 | $as_echo "$LN" >&6; } |
db137867 | 5449 | else |
7083c021 | 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 VY |
5451 | $as_echo "no" >&6; } |
5452 | fi | |
db137867 | 5453 | |
db137867 | 5454 | |
030272f3 VY |
5455 | # Extract the first word of "touch", so it can be a program name with args. |
5456 | set dummy touch; ac_word=$2 | |
7083c021 | 5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 5458 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 5459 | if ${ac_cv_path_TOUCH+:} false; then : |
030272f3 VY |
5460 | $as_echo_n "(cached) " >&6 |
5461 | else | |
5462 | case $TOUCH in | |
5463 | [\\/]* | ?:[\\/]*) | |
5464 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5465 | ;; | |
5466 | *) | |
5467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5468 | for as_dir in $PATH | |
5469 | do | |
5470 | IFS=$as_save_IFS | |
5471 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5472 | for ac_exec_ext in '' $ac_executable_extensions; do |
030272f3 VY |
5473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5474 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
7083c021 | 5475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
030272f3 VY |
5476 | break 2 |
5477 | fi | |
5478 | done | |
7083c021 | 5479 | done |
030272f3 | 5480 | IFS=$as_save_IFS |
db137867 | 5481 | |
030272f3 | 5482 | ;; |
db137867 | 5483 | esac |
030272f3 VY |
5484 | fi |
5485 | TOUCH=$ac_cv_path_TOUCH | |
5486 | if test -n "$TOUCH"; then | |
7083c021 | 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 |
030272f3 | 5488 | $as_echo "$TOUCH" >&6; } |
db137867 | 5489 | else |
7083c021 | 5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 5491 | $as_echo "no" >&6; } |
db137867 AC |
5492 | fi |
5493 | ||
030272f3 VY |
5494 | |
5495 | ac_ext=c | |
db137867 AC |
5496 | ac_cpp='$CPP $CPPFLAGS' |
5497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5500 | ||
030272f3 | 5501 | |
7083c021 AC |
5502 | case `pwd` in |
5503 | *\ * | *\ *) | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5505 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5506 | esac | |
5507 | ||
5508 | ||
5509 | ||
a949ab1a AC |
5510 | macro_version='2.4.2' |
5511 | macro_revision='1.3337' | |
7083c021 AC |
5512 | |
5513 | ||
5514 | ||
5515 | ||
5516 | ||
5517 | ||
5518 | ||
5519 | ||
5520 | ||
030272f3 VY |
5521 | |
5522 | ||
7083c021 AC |
5523 | |
5524 | ||
5525 | ltmain="$ac_aux_dir/ltmain.sh" | |
5526 | ||
030272f3 VY |
5527 | # Make sure we can run config.sub. |
5528 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
08c2568c | 5529 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
030272f3 | 5530 | |
7083c021 | 5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
030272f3 | 5532 | $as_echo_n "checking build system type... " >&6; } |
08c2568c | 5533 | if ${ac_cv_build+:} false; then : |
030272f3 VY |
5534 | $as_echo_n "(cached) " >&6 |
5535 | else | |
5536 | ac_build_alias=$build_alias | |
5537 | test "x$ac_build_alias" = x && | |
5538 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5539 | test "x$ac_build_alias" = x && | |
08c2568c | 5540 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
030272f3 | 5541 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
08c2568c | 5542 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
030272f3 VY |
5543 | |
5544 | fi | |
7083c021 | 5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
030272f3 VY |
5546 | $as_echo "$ac_cv_build" >&6; } |
5547 | case $ac_cv_build in | |
5548 | *-*-*) ;; | |
08c2568c | 5549 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
030272f3 VY |
5550 | esac |
5551 | build=$ac_cv_build | |
5552 | ac_save_IFS=$IFS; IFS='-' | |
5553 | set x $ac_cv_build | |
5554 | shift | |
5555 | build_cpu=$1 | |
5556 | build_vendor=$2 | |
5557 | shift; shift | |
5558 | # Remember, the first character of IFS is used to create $*, | |
5559 | # except with old shells: | |
5560 | build_os=$* | |
5561 | IFS=$ac_save_IFS | |
5562 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5563 | ||
5564 | ||
7083c021 | 5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
030272f3 | 5566 | $as_echo_n "checking host system type... " >&6; } |
08c2568c | 5567 | if ${ac_cv_host+:} false; then : |
030272f3 VY |
5568 | $as_echo_n "(cached) " >&6 |
5569 | else | |
5570 | if test "x$host_alias" = x; then | |
5571 | ac_cv_host=$ac_cv_build | |
5572 | else | |
5573 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
08c2568c | 5574 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
030272f3 VY |
5575 | fi |
5576 | ||
5577 | fi | |
7083c021 | 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
030272f3 VY |
5579 | $as_echo "$ac_cv_host" >&6; } |
5580 | case $ac_cv_host in | |
5581 | *-*-*) ;; | |
08c2568c | 5582 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
030272f3 VY |
5583 | esac |
5584 | host=$ac_cv_host | |
5585 | ac_save_IFS=$IFS; IFS='-' | |
5586 | set x $ac_cv_host | |
5587 | shift | |
5588 | host_cpu=$1 | |
5589 | host_vendor=$2 | |
5590 | shift; shift | |
5591 | # Remember, the first character of IFS is used to create $*, | |
5592 | # except with old shells: | |
5593 | host_os=$* | |
5594 | IFS=$ac_save_IFS | |
5595 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5596 | ||
5597 | ||
b6d0720c AC |
5598 | # Backslashify metacharacters that are still active within |
5599 | # double-quoted strings. | |
5600 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5601 | ||
5602 | # Same as above, but do not quote variable references. | |
5603 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5604 | ||
5605 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5606 | # double_quote_subst'ed string. | |
5607 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5608 | ||
5609 | # Sed substitution to delay expansion of an escaped single quote. | |
5610 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5611 | ||
5612 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5613 | no_glob_subst='s/\*/\\\*/g' | |
5614 | ||
5615 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5616 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5617 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5618 | ||
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5620 | $as_echo_n "checking how to print strings... " >&6; } | |
5621 | # Test print first, because it will be a builtin if present. | |
5622 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5623 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5624 | ECHO='print -r --' | |
5625 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5626 | ECHO='printf %s\n' | |
5627 | else | |
5628 | # Use this function as a fallback that always works. | |
5629 | func_fallback_echo () | |
5630 | { | |
5631 | eval 'cat <<_LTECHO_EOF | |
5632 | $1 | |
5633 | _LTECHO_EOF' | |
5634 | } | |
5635 | ECHO='func_fallback_echo' | |
5636 | fi | |
5637 | ||
5638 | # func_echo_all arg... | |
5639 | # Invoke $ECHO with all args, space-separated. | |
5640 | func_echo_all () | |
5641 | { | |
5642 | $ECHO "" | |
5643 | } | |
5644 | ||
5645 | case "$ECHO" in | |
5646 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5647 | $as_echo "printf" >&6; } ;; | |
5648 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5649 | $as_echo "print -r" >&6; } ;; | |
5650 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5651 | $as_echo "cat" >&6; } ;; | |
5652 | esac | |
5653 | ||
5654 | ||
5655 | ||
5656 | ||
5657 | ||
5658 | ||
5659 | ||
5660 | ||
5661 | ||
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | ||
7083c021 | 5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
030272f3 | 5668 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
08c2568c | 5669 | if ${ac_cv_path_SED+:} false; then : |
030272f3 VY |
5670 | $as_echo_n "(cached) " >&6 |
5671 | else | |
7083c021 AC |
5672 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5673 | for ac_i in 1 2 3 4 5 6 7; do | |
5674 | ac_script="$ac_script$as_nl$ac_script" | |
5675 | done | |
5676 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5677 | { ac_script=; unset ac_script;} | |
5678 | if test -z "$SED"; then | |
5679 | ac_path_SED_found=false | |
5680 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
030272f3 VY |
5682 | for as_dir in $PATH |
5683 | do | |
5684 | IFS=$as_save_IFS | |
5685 | test -z "$as_dir" && as_dir=. | |
7083c021 | 5686 | for ac_prog in sed gsed; do |
030272f3 | 5687 | for ac_exec_ext in '' $ac_executable_extensions; do |
7083c021 AC |
5688 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5689 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5690 | # Check for GNU ac_path_SED and select it if it is found. | |
5691 | # Check for GNU $ac_path_SED | |
5692 | case `"$ac_path_SED" --version 2>&1` in | |
5693 | *GNU*) | |
5694 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5695 | *) | |
5696 | ac_count=0 | |
5697 | $as_echo_n 0123456789 >"conftest.in" | |
5698 | while : | |
5699 | do | |
5700 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5701 | mv "conftest.tmp" "conftest.in" | |
5702 | cp "conftest.in" "conftest.nl" | |
5703 | $as_echo '' >> "conftest.nl" | |
5704 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5705 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5706 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5707 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5708 | # Best one so far, save it but keep looking for a better one | |
5709 | ac_cv_path_SED="$ac_path_SED" | |
5710 | ac_path_SED_max=$ac_count | |
5711 | fi | |
5712 | # 10*(2^10) chars as input seems more than enough | |
5713 | test $ac_count -gt 10 && break | |
5714 | done | |
5715 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5716 | esac | |
5717 | ||
5718 | $ac_path_SED_found && break 3 | |
030272f3 VY |
5719 | done |
5720 | done | |
7083c021 | 5721 | done |
030272f3 | 5722 | IFS=$as_save_IFS |
7083c021 | 5723 | if test -z "$ac_cv_path_SED"; then |
08c2568c | 5724 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
db137867 | 5725 | fi |
7083c021 AC |
5726 | else |
5727 | ac_cv_path_SED=$SED | |
5728 | fi | |
db137867 | 5729 | |
030272f3 | 5730 | fi |
7083c021 AC |
5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
5732 | $as_echo "$ac_cv_path_SED" >&6; } | |
5733 | SED="$ac_cv_path_SED" | |
5734 | rm -f conftest.sed | |
db137867 | 5735 | |
7083c021 AC |
5736 | test -z "$SED" && SED=sed |
5737 | Xsed="$SED -e 1s/^X//" | |
db137867 | 5738 | |
db137867 AC |
5739 | |
5740 | ||
db137867 | 5741 | |
7083c021 AC |
5742 | |
5743 | ||
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5750 | $as_echo_n "checking for fgrep... " >&6; } | |
08c2568c | 5751 | if ${ac_cv_path_FGREP+:} false; then : |
7083c021 AC |
5752 | $as_echo_n "(cached) " >&6 |
5753 | else | |
5754 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5755 | then ac_cv_path_FGREP="$GREP -F" | |
5756 | else | |
5757 | if test -z "$FGREP"; then | |
5758 | ac_path_FGREP_found=false | |
5759 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5761 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5762 | do | |
5763 | IFS=$as_save_IFS | |
5764 | test -z "$as_dir" && as_dir=. | |
5765 | for ac_prog in fgrep; do | |
5766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5767 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5768 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5769 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5770 | # Check for GNU $ac_path_FGREP | |
5771 | case `"$ac_path_FGREP" --version 2>&1` in | |
5772 | *GNU*) | |
5773 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5774 | *) | |
5775 | ac_count=0 | |
5776 | $as_echo_n 0123456789 >"conftest.in" | |
5777 | while : | |
5778 | do | |
5779 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5780 | mv "conftest.tmp" "conftest.in" | |
5781 | cp "conftest.in" "conftest.nl" | |
5782 | $as_echo 'FGREP' >> "conftest.nl" | |
5783 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5784 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5785 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5786 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5787 | # Best one so far, save it but keep looking for a better one | |
5788 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5789 | ac_path_FGREP_max=$ac_count | |
5790 | fi | |
5791 | # 10*(2^10) chars as input seems more than enough | |
5792 | test $ac_count -gt 10 && break | |
5793 | done | |
5794 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5795 | esac | |
5796 | ||
5797 | $ac_path_FGREP_found && break 3 | |
5798 | done | |
5799 | done | |
5800 | done | |
5801 | IFS=$as_save_IFS | |
5802 | if test -z "$ac_cv_path_FGREP"; then | |
08c2568c | 5803 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 AC |
5804 | fi |
5805 | else | |
5806 | ac_cv_path_FGREP=$FGREP | |
5807 | fi | |
5808 | ||
5809 | fi | |
5810 | fi | |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5812 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5813 | FGREP="$ac_cv_path_FGREP" | |
5814 | ||
5815 | ||
5816 | test -z "$GREP" && GREP=grep | |
5817 | ||
5818 | ||
5819 | ||
5820 | ||
5821 | ||
5822 | ||
5823 | ||
5824 | ||
5825 | ||
5826 | ||
5827 | ||
5828 | ||
5829 | ||
5830 | ||
5831 | ||
5832 | ||
5833 | ||
5834 | ||
5835 | ||
5836 | # Check whether --with-gnu-ld was given. | |
5837 | if test "${with_gnu_ld+set}" = set; then : | |
5838 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5839 | else | |
5840 | with_gnu_ld=no | |
5841 | fi | |
5842 | ||
5843 | ac_prog=ld | |
5844 | if test "$GCC" = yes; then | |
5845 | # Check if gcc -print-prog-name=ld gives a path. | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5847 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5848 | case $host in | |
5849 | *-*-mingw*) | |
5850 | # gcc leaves a trailing carriage return which upsets mingw | |
5851 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5852 | *) | |
5853 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5854 | esac | |
5855 | case $ac_prog in | |
5856 | # Accept absolute paths. | |
5857 | [\\/]* | ?:[\\/]*) | |
5858 | re_direlt='/[^/][^/]*/\.\./' | |
5859 | # Canonicalize the pathname of ld | |
5860 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5861 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5862 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5863 | done | |
5864 | test -z "$LD" && LD="$ac_prog" | |
5865 | ;; | |
5866 | "") | |
5867 | # If it fails, then pretend we aren't using GCC. | |
5868 | ac_prog=ld | |
5869 | ;; | |
5870 | *) | |
5871 | # If it is relative, then search for the first ld in PATH. | |
5872 | with_gnu_ld=unknown | |
5873 | ;; | |
5874 | esac | |
5875 | elif test "$with_gnu_ld" = yes; then | |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5877 | $as_echo_n "checking for GNU ld... " >&6; } | |
5878 | else | |
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
030272f3 | 5880 | $as_echo_n "checking for non-GNU ld... " >&6; } |
db137867 | 5881 | fi |
08c2568c | 5882 | if ${lt_cv_path_LD+:} false; then : |
030272f3 VY |
5883 | $as_echo_n "(cached) " >&6 |
5884 | else | |
5885 | if test -z "$LD"; then | |
5886 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5887 | for ac_dir in $PATH; do | |
5888 | IFS="$lt_save_ifs" | |
5889 | test -z "$ac_dir" && ac_dir=. | |
5890 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5891 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5892 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5893 | # but apparently some variants of GNU ld only accept -v. | |
5894 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5895 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5896 | *GNU* | *'with BFD'*) | |
5897 | test "$with_gnu_ld" != no && break | |
5898 | ;; | |
5899 | *) | |
5900 | test "$with_gnu_ld" != yes && break | |
5901 | ;; | |
5902 | esac | |
5903 | fi | |
5904 | done | |
5905 | IFS="$lt_save_ifs" | |
5906 | else | |
5907 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
db137867 | 5908 | fi |
db137867 | 5909 | fi |
030272f3 VY |
5910 | |
5911 | LD="$lt_cv_path_LD" | |
5912 | if test -n "$LD"; then | |
7083c021 | 5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
030272f3 | 5914 | $as_echo "$LD" >&6; } |
db137867 | 5915 | else |
7083c021 | 5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 5917 | $as_echo "no" >&6; } |
db137867 | 5918 | fi |
08c2568c | 5919 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
7083c021 | 5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
030272f3 | 5921 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
08c2568c | 5922 | if ${lt_cv_prog_gnu_ld+:} false; then : |
030272f3 | 5923 | $as_echo_n "(cached) " >&6 |
db137867 | 5924 | else |
030272f3 VY |
5925 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5926 | case `$LD -v 2>&1 </dev/null` in | |
5927 | *GNU* | *'with BFD'*) | |
5928 | lt_cv_prog_gnu_ld=yes | |
5929 | ;; | |
5930 | *) | |
5931 | lt_cv_prog_gnu_ld=no | |
5932 | ;; | |
5933 | esac | |
db137867 | 5934 | fi |
7083c021 | 5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
030272f3 VY |
5936 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
5937 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
db137867 | 5938 | |
db137867 | 5939 | |
db137867 | 5940 | |
7083c021 AC |
5941 | |
5942 | ||
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5948 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
08c2568c | 5949 | if ${lt_cv_path_NM+:} false; then : |
030272f3 VY |
5950 | $as_echo_n "(cached) " >&6 |
5951 | else | |
5952 | if test -n "$NM"; then | |
5953 | # Let the user override the test. | |
5954 | lt_cv_path_NM="$NM" | |
5955 | else | |
5956 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5957 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5958 | lt_nm_to_check="$lt_nm_to_check nm" | |
5959 | fi | |
5960 | for lt_tmp_nm in $lt_nm_to_check; do | |
5961 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5962 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5963 | IFS="$lt_save_ifs" | |
5964 | test -z "$ac_dir" && ac_dir=. | |
5965 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5966 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5967 | # Check to see if the nm accepts a BSD-compat flag. | |
5968 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5969 | # nm: unknown option "B" ignored | |
5970 | # Tru64's nm complains that /dev/null is an invalid object file | |
5971 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5972 | */dev/null* | *'Invalid file or object type'*) | |
5973 | lt_cv_path_NM="$tmp_nm -B" | |
5974 | break | |
5975 | ;; | |
5976 | *) | |
5977 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5978 | */dev/null*) | |
5979 | lt_cv_path_NM="$tmp_nm -p" | |
5980 | break | |
5981 | ;; | |
5982 | *) | |
5983 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5984 | continue # so that we can try to find one that supports BSD flags | |
5985 | ;; | |
5986 | esac | |
5987 | ;; | |
5988 | esac | |
5989 | fi | |
5990 | done | |
5991 | IFS="$lt_save_ifs" | |
5992 | done | |
7083c021 | 5993 | : ${lt_cv_path_NM=no} |
db137867 | 5994 | fi |
030272f3 | 5995 | fi |
7083c021 | 5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
030272f3 | 5997 | $as_echo "$lt_cv_path_NM" >&6; } |
7083c021 AC |
5998 | if test "$lt_cv_path_NM" != "no"; then |
5999 | NM="$lt_cv_path_NM" | |
6000 | else | |
6001 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b6d0720c AC |
6002 | if test -n "$DUMPBIN"; then : |
6003 | # Let the user override the test. | |
6004 | else | |
6005 | if test -n "$ac_tool_prefix"; then | |
6006 | for ac_prog in dumpbin "link -dump" | |
7083c021 AC |
6007 | do |
6008 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6009 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6011 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 6012 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
7083c021 AC |
6013 | $as_echo_n "(cached) " >&6 |
6014 | else | |
6015 | if test -n "$DUMPBIN"; then | |
6016 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6017 | else | |
6018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6019 | for as_dir in $PATH | |
6020 | do | |
6021 | IFS=$as_save_IFS | |
6022 | test -z "$as_dir" && as_dir=. | |
6023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6025 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6027 | break 2 | |
6028 | fi | |
6029 | done | |
6030 | done | |
6031 | IFS=$as_save_IFS | |
db137867 | 6032 | |
7083c021 AC |
6033 | fi |
6034 | fi | |
6035 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6036 | if test -n "$DUMPBIN"; then | |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6038 | $as_echo "$DUMPBIN" >&6; } | |
db137867 | 6039 | else |
7083c021 AC |
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6041 | $as_echo "no" >&6; } | |
db137867 AC |
6042 | fi |
6043 | ||
7083c021 AC |
6044 | |
6045 | test -n "$DUMPBIN" && break | |
6046 | done | |
6047 | fi | |
6048 | if test -z "$DUMPBIN"; then | |
6049 | ac_ct_DUMPBIN=$DUMPBIN | |
b6d0720c | 6050 | for ac_prog in dumpbin "link -dump" |
7083c021 AC |
6051 | do |
6052 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6053 | set dummy $ac_prog; ac_word=$2 | |
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6055 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 6056 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
030272f3 VY |
6057 | $as_echo_n "(cached) " >&6 |
6058 | else | |
7083c021 AC |
6059 | if test -n "$ac_ct_DUMPBIN"; then |
6060 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6061 | else | |
6062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6063 | for as_dir in $PATH | |
6064 | do | |
6065 | IFS=$as_save_IFS | |
6066 | test -z "$as_dir" && as_dir=. | |
6067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6069 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6071 | break 2 | |
6072 | fi | |
6073 | done | |
6074 | done | |
6075 | IFS=$as_save_IFS | |
db137867 | 6076 | |
7083c021 AC |
6077 | fi |
6078 | fi | |
6079 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6080 | if test -n "$ac_ct_DUMPBIN"; then | |
6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6082 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6083 | else | |
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6085 | $as_echo "no" >&6; } | |
6086 | fi | |
db137867 | 6087 | |
db137867 | 6088 | |
7083c021 AC |
6089 | test -n "$ac_ct_DUMPBIN" && break |
6090 | done | |
db137867 | 6091 | |
7083c021 AC |
6092 | if test "x$ac_ct_DUMPBIN" = x; then |
6093 | DUMPBIN=":" | |
030272f3 | 6094 | else |
7083c021 AC |
6095 | case $cross_compiling:$ac_tool_warned in |
6096 | yes:) | |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6098 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6099 | ac_tool_warned=yes ;; | |
6100 | esac | |
6101 | DUMPBIN=$ac_ct_DUMPBIN | |
030272f3 | 6102 | fi |
7083c021 | 6103 | fi |
db137867 | 6104 | |
b6d0720c AC |
6105 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6106 | *COFF*) | |
6107 | DUMPBIN="$DUMPBIN -symbols" | |
6108 | ;; | |
6109 | *) | |
6110 | DUMPBIN=: | |
6111 | ;; | |
6112 | esac | |
6113 | fi | |
db137867 | 6114 | |
7083c021 AC |
6115 | if test "$DUMPBIN" != ":"; then |
6116 | NM="$DUMPBIN" | |
030272f3 | 6117 | fi |
7083c021 AC |
6118 | fi |
6119 | test -z "$NM" && NM=nm | |
db137867 | 6120 | |
db137867 | 6121 | |
db137867 | 6122 | |
db137867 | 6123 | |
030272f3 | 6124 | |
030272f3 | 6125 | |
7083c021 AC |
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6127 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
08c2568c | 6128 | if ${lt_cv_nm_interface+:} false; then : |
7083c021 AC |
6129 | $as_echo_n "(cached) " >&6 |
6130 | else | |
6131 | lt_cv_nm_interface="BSD nm" | |
6132 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b6d0720c | 6133 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
7083c021 AC |
6134 | (eval "$ac_compile" 2>conftest.err) |
6135 | cat conftest.err >&5 | |
b6d0720c | 6136 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7083c021 AC |
6137 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6138 | cat conftest.err >&5 | |
b6d0720c | 6139 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
7083c021 AC |
6140 | cat conftest.out >&5 |
6141 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6142 | lt_cv_nm_interface="MS dumpbin" | |
030272f3 | 6143 | fi |
7083c021 AC |
6144 | rm -f conftest* |
6145 | fi | |
6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6147 | $as_echo "$lt_cv_nm_interface" >&6; } | |
db137867 | 6148 | |
7083c021 AC |
6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6150 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6151 | LN_S=$as_ln_s | |
6152 | if test "$LN_S" = "ln -s"; then | |
6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6154 | $as_echo "yes" >&6; } | |
6155 | else | |
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6157 | $as_echo "no, using $LN_S" >&6; } | |
6158 | fi | |
db137867 | 6159 | |
7083c021 AC |
6160 | # find the maximum length of command line arguments |
6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6162 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
08c2568c | 6163 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
7083c021 AC |
6164 | $as_echo_n "(cached) " >&6 |
6165 | else | |
6166 | i=0 | |
6167 | teststring="ABCD" | |
db137867 | 6168 | |
7083c021 AC |
6169 | case $build_os in |
6170 | msdosdjgpp*) | |
6171 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6172 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6173 | # during glob expansion). Even if it were fixed, the result of this | |
6174 | # check would be larger than it should be. | |
6175 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6176 | ;; | |
db137867 | 6177 | |
7083c021 AC |
6178 | gnu*) |
6179 | # Under GNU Hurd, this test is not required because there is | |
6180 | # no limit to the length of command line arguments. | |
6181 | # Libtool will interpret -1 as no limit whatsoever | |
6182 | lt_cv_sys_max_cmd_len=-1; | |
6183 | ;; | |
db137867 | 6184 | |
7083c021 AC |
6185 | cygwin* | mingw* | cegcc*) |
6186 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6187 | # about 5 minutes as the teststring grows exponentially. | |
6188 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6189 | # you end up with a "frozen" computer, even though with patience | |
6190 | # the test eventually succeeds (with a max line length of 256k). | |
6191 | # Instead, let's just punt: use the minimum linelength reported by | |
6192 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6193 | lt_cv_sys_max_cmd_len=8192; | |
6194 | ;; | |
db137867 | 6195 | |
b6d0720c AC |
6196 | mint*) |
6197 | # On MiNT this can take a long time and run out of memory. | |
6198 | lt_cv_sys_max_cmd_len=8192; | |
6199 | ;; | |
6200 | ||
7083c021 AC |
6201 | amigaos*) |
6202 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6203 | # So we just punt and use a minimum line length of 8192. | |
6204 | lt_cv_sys_max_cmd_len=8192; | |
6205 | ;; | |
db137867 | 6206 | |
7083c021 AC |
6207 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6208 | # This has been around since 386BSD, at least. Likely further. | |
6209 | if test -x /sbin/sysctl; then | |
6210 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6211 | elif test -x /usr/sbin/sysctl; then | |
6212 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6213 | else | |
6214 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6215 | fi | |
6216 | # And add a safety zone | |
6217 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6218 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
030272f3 | 6219 | ;; |
7083c021 AC |
6220 | |
6221 | interix*) | |
6222 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6223 | lt_cv_sys_max_cmd_len=196608 | |
030272f3 | 6224 | ;; |
7083c021 | 6225 | |
a949ab1a AC |
6226 | os2*) |
6227 | # The test takes a long time on OS/2. | |
6228 | lt_cv_sys_max_cmd_len=8192 | |
6229 | ;; | |
6230 | ||
7083c021 AC |
6231 | osf*) |
6232 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6233 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6234 | # nice to cause kernel panics so lets avoid the loop below. | |
6235 | # First set a reasonable default. | |
6236 | lt_cv_sys_max_cmd_len=16384 | |
6237 | # | |
6238 | if test -x /sbin/sysconfig; then | |
6239 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6240 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6241 | esac | |
6242 | fi | |
030272f3 | 6243 | ;; |
7083c021 AC |
6244 | sco3.2v5*) |
6245 | lt_cv_sys_max_cmd_len=102400 | |
030272f3 | 6246 | ;; |
7083c021 AC |
6247 | sysv5* | sco5v6* | sysv4.2uw2*) |
6248 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6249 | if test -n "$kargmax"; then | |
6250 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6251 | else | |
6252 | lt_cv_sys_max_cmd_len=32768 | |
6253 | fi | |
030272f3 | 6254 | ;; |
7083c021 AC |
6255 | *) |
6256 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6257 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6258 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6259 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6260 | else | |
6261 | # Make teststring a little bigger before we do anything with it. | |
6262 | # a 1K string should be a reasonable start. | |
6263 | for i in 1 2 3 4 5 6 7 8 ; do | |
6264 | teststring=$teststring$teststring | |
6265 | done | |
6266 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6267 | # If test is not a shell built-in, we'll probably end up computing a | |
6268 | # maximum length that is only half of the actual maximum length, but | |
6269 | # we can't tell. | |
a949ab1a | 6270 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
b6d0720c | 6271 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
7083c021 AC |
6272 | test $i != 17 # 1/2 MB should be enough |
6273 | do | |
6274 | i=`expr $i + 1` | |
6275 | teststring=$teststring$teststring | |
6276 | done | |
6277 | # Only check the string length outside the loop. | |
6278 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6279 | teststring= | |
6280 | # Add a significant safety factor because C++ compilers can tack on | |
6281 | # massive amounts of additional arguments before passing them to the | |
6282 | # linker. It appears as though 1/2 is a usable value. | |
6283 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6284 | fi | |
030272f3 VY |
6285 | ;; |
6286 | esac | |
030272f3 | 6287 | |
7083c021 | 6288 | fi |
db137867 | 6289 | |
7083c021 AC |
6290 | if test -n $lt_cv_sys_max_cmd_len ; then |
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6292 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6293 | else | |
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6295 | $as_echo "none" >&6; } | |
db137867 | 6296 | fi |
7083c021 | 6297 | max_cmd_len=$lt_cv_sys_max_cmd_len |
030272f3 | 6298 | |
db137867 | 6299 | |
db137867 AC |
6300 | |
6301 | ||
6302 | ||
6303 | ||
7083c021 AC |
6304 | : ${CP="cp -f"} |
6305 | : ${MV="mv -f"} | |
6306 | : ${RM="rm -f"} | |
db137867 | 6307 | |
7083c021 AC |
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6309 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6310 | # Try some XSI features | |
6311 | xsi_shell=no | |
6312 | ( _lt_dummy="a/b/c" | |
b6d0720c AC |
6313 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
6314 | = c,a/b,b/c, \ | |
7083c021 AC |
6315 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
6316 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6317 | && xsi_shell=yes | |
6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6319 | $as_echo "$xsi_shell" >&6; } | |
6320 | ||
6321 | ||
6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6323 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6324 | lt_shell_append=no | |
6325 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6326 | >/dev/null 2>&1 \ | |
6327 | && lt_shell_append=yes | |
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6329 | $as_echo "$lt_shell_append" >&6; } | |
6330 | ||
6331 | ||
6332 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6333 | lt_unset=unset | |
6334 | else | |
6335 | lt_unset=false | |
030272f3 | 6336 | fi |
db137867 AC |
6337 | |
6338 | ||
7083c021 AC |
6339 | |
6340 | ||
6341 | ||
6342 | # test EBCDIC or ASCII | |
6343 | case `echo X|tr X '\101'` in | |
6344 | A) # ASCII based system | |
6345 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6346 | lt_SP2NL='tr \040 \012' | |
6347 | lt_NL2SP='tr \015\012 \040\040' | |
030272f3 | 6348 | ;; |
7083c021 AC |
6349 | *) # EBCDIC based system |
6350 | lt_SP2NL='tr \100 \n' | |
6351 | lt_NL2SP='tr \r\n \100\100' | |
030272f3 | 6352 | ;; |
7083c021 | 6353 | esac |
db137867 | 6354 | |
db137867 | 6355 | |
db137867 | 6356 | |
db137867 | 6357 | |
030272f3 | 6358 | |
030272f3 | 6359 | |
db137867 AC |
6360 | |
6361 | ||
6362 | ||
b6d0720c AC |
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
6364 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6365 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6366 | $as_echo_n "(cached) " >&6 | |
6367 | else | |
6368 | case $host in | |
6369 | *-*-mingw* ) | |
6370 | case $build in | |
6371 | *-*-mingw* ) # actually msys | |
6372 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6373 | ;; | |
6374 | *-*-cygwin* ) | |
6375 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6376 | ;; | |
6377 | * ) # otherwise, assume *nix | |
6378 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6379 | ;; | |
6380 | esac | |
6381 | ;; | |
6382 | *-*-cygwin* ) | |
6383 | case $build in | |
6384 | *-*-mingw* ) # actually msys | |
6385 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6386 | ;; | |
6387 | *-*-cygwin* ) | |
6388 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6389 | ;; | |
6390 | * ) # otherwise, assume *nix | |
6391 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6392 | ;; | |
6393 | esac | |
6394 | ;; | |
6395 | * ) # unhandled hosts (and "normal" native builds) | |
6396 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6397 | ;; | |
6398 | esac | |
6399 | ||
6400 | fi | |
6401 | ||
6402 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6404 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6411 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6412 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6413 | $as_echo_n "(cached) " >&6 | |
6414 | else | |
6415 | #assume ordinary cross tools, or native build. | |
6416 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6417 | case $host in | |
6418 | *-*-mingw* ) | |
6419 | case $build in | |
6420 | *-*-mingw* ) # actually msys | |
6421 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6422 | ;; | |
6423 | esac | |
6424 | ;; | |
6425 | esac | |
6426 | ||
6427 | fi | |
6428 | ||
6429 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6431 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
7083c021 AC |
6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6438 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
08c2568c | 6439 | if ${lt_cv_ld_reload_flag+:} false; then : |
030272f3 | 6440 | $as_echo_n "(cached) " >&6 |
db137867 | 6441 | else |
7083c021 | 6442 | lt_cv_ld_reload_flag='-r' |
db137867 | 6443 | fi |
7083c021 AC |
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6445 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6446 | reload_flag=$lt_cv_ld_reload_flag | |
6447 | case $reload_flag in | |
6448 | "" | " "*) ;; | |
6449 | *) reload_flag=" $reload_flag" ;; | |
6450 | esac | |
6451 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6452 | case $host_os in | |
b6d0720c AC |
6453 | cygwin* | mingw* | pw32* | cegcc*) |
6454 | if test "$GCC" != yes; then | |
6455 | reload_cmds=false | |
6456 | fi | |
6457 | ;; | |
7083c021 AC |
6458 | darwin*) |
6459 | if test "$GCC" = yes; then | |
6460 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6461 | else | |
6462 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6463 | fi | |
6464 | ;; | |
db137867 | 6465 | esac |
db137867 | 6466 | |
db137867 | 6467 | |
db137867 | 6468 | |
db137867 | 6469 | |
db137867 | 6470 | |
db137867 | 6471 | |
db137867 | 6472 | |
db137867 | 6473 | |
7083c021 AC |
6474 | |
6475 | if test -n "$ac_tool_prefix"; then | |
6476 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6477 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 6479 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 6480 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
030272f3 | 6481 | $as_echo_n "(cached) " >&6 |
db137867 | 6482 | else |
7083c021 AC |
6483 | if test -n "$OBJDUMP"; then |
6484 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
db137867 AC |
6485 | else |
6486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6487 | for as_dir in $PATH | |
6488 | do | |
6489 | IFS=$as_save_IFS | |
6490 | test -z "$as_dir" && as_dir=. | |
7083c021 | 6491 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 | 6492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
6493 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
6495 | break 2 |
6496 | fi | |
6497 | done | |
7083c021 | 6498 | done |
db137867 AC |
6499 | IFS=$as_save_IFS |
6500 | ||
6501 | fi | |
6502 | fi | |
7083c021 AC |
6503 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6504 | if test -n "$OBJDUMP"; then | |
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6506 | $as_echo "$OBJDUMP" >&6; } | |
db137867 | 6507 | else |
7083c021 | 6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6509 | $as_echo "no" >&6; } |
db137867 AC |
6510 | fi |
6511 | ||
6512 | ||
db137867 | 6513 | fi |
7083c021 AC |
6514 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6515 | ac_ct_OBJDUMP=$OBJDUMP | |
6516 | # Extract the first word of "objdump", so it can be a program name with args. | |
6517 | set dummy objdump; ac_word=$2 | |
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 6519 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 6520 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
030272f3 | 6521 | $as_echo_n "(cached) " >&6 |
db137867 | 6522 | else |
7083c021 AC |
6523 | if test -n "$ac_ct_OBJDUMP"; then |
6524 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
db137867 AC |
6525 | else |
6526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6527 | for as_dir in $PATH | |
6528 | do | |
6529 | IFS=$as_save_IFS | |
6530 | test -z "$as_dir" && as_dir=. | |
7083c021 | 6531 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 | 6532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
6533 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
6535 | break 2 |
6536 | fi | |
6537 | done | |
7083c021 | 6538 | done |
db137867 AC |
6539 | IFS=$as_save_IFS |
6540 | ||
6541 | fi | |
6542 | fi | |
7083c021 AC |
6543 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6544 | if test -n "$ac_ct_OBJDUMP"; then | |
6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6546 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
db137867 | 6547 | else |
7083c021 | 6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6549 | $as_echo "no" >&6; } |
db137867 AC |
6550 | fi |
6551 | ||
7083c021 AC |
6552 | if test "x$ac_ct_OBJDUMP" = x; then |
6553 | OBJDUMP="false" | |
db137867 AC |
6554 | else |
6555 | case $cross_compiling:$ac_tool_warned in | |
6556 | yes:) | |
7083c021 | 6557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 6558 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
6559 | ac_tool_warned=yes ;; |
6560 | esac | |
7083c021 | 6561 | OBJDUMP=$ac_ct_OBJDUMP |
db137867 | 6562 | fi |
7083c021 AC |
6563 | else |
6564 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
db137867 | 6565 | fi |
db137867 | 6566 | |
7083c021 | 6567 | test -z "$OBJDUMP" && OBJDUMP=objdump |
db137867 | 6568 | |
db137867 | 6569 | |
db137867 | 6570 | |
db137867 | 6571 | |
db137867 | 6572 | |
db137867 | 6573 | |
db137867 | 6574 | |
db137867 | 6575 | |
db137867 | 6576 | |
7083c021 AC |
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6578 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
08c2568c | 6579 | if ${lt_cv_deplibs_check_method+:} false; then : |
7083c021 | 6580 | $as_echo_n "(cached) " >&6 |
db137867 | 6581 | else |
7083c021 AC |
6582 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6583 | lt_cv_file_magic_test_file= | |
6584 | lt_cv_deplibs_check_method='unknown' | |
6585 | # Need to set the preceding variable on all platforms that support | |
6586 | # interlibrary dependencies. | |
6587 | # 'none' -- dependencies not supported. | |
6588 | # `unknown' -- same as none, but documents that we really don't know. | |
6589 | # 'pass_all' -- all dependencies passed with no checks. | |
6590 | # 'test_compile' -- check by making test program. | |
6591 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6592 | # which responds to the $file_magic_cmd with a given extended regex. | |
6593 | # If you have `file' or equivalent on your system and you're not sure | |
6594 | # whether `pass_all' will *always* work, you probably want this one. | |
db137867 | 6595 | |
7083c021 AC |
6596 | case $host_os in |
6597 | aix[4-9]*) | |
6598 | lt_cv_deplibs_check_method=pass_all | |
6599 | ;; | |
db137867 | 6600 | |
7083c021 AC |
6601 | beos*) |
6602 | lt_cv_deplibs_check_method=pass_all | |
6603 | ;; | |
db137867 | 6604 | |
7083c021 AC |
6605 | bsdi[45]*) |
6606 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6607 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6608 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6609 | ;; | |
db137867 | 6610 | |
7083c021 AC |
6611 | cygwin*) |
6612 | # func_win32_libid is a shell function defined in ltmain.sh | |
6613 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6614 | lt_cv_file_magic_cmd='func_win32_libid' | |
6615 | ;; | |
db137867 | 6616 | |
7083c021 AC |
6617 | mingw* | pw32*) |
6618 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6619 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6620 | # unless we find 'file', for example because we are cross-compiling. | |
b6d0720c AC |
6621 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6622 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7083c021 AC |
6623 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6624 | lt_cv_file_magic_cmd='func_win32_libid' | |
6625 | else | |
b6d0720c AC |
6626 | # Keep this pattern in sync with the one in func_win32_libid. |
6627 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
7083c021 AC |
6628 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6629 | fi | |
6630 | ;; | |
db137867 | 6631 | |
b6d0720c | 6632 | cegcc*) |
7083c021 AC |
6633 | # use the weaker test based on 'objdump'. See mingw*. |
6634 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6635 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6636 | ;; | |
db137867 | 6637 | |
7083c021 AC |
6638 | darwin* | rhapsody*) |
6639 | lt_cv_deplibs_check_method=pass_all | |
6640 | ;; | |
db137867 | 6641 | |
7083c021 AC |
6642 | freebsd* | dragonfly*) |
6643 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6644 | case $host_cpu in | |
6645 | i*86 ) | |
6646 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6647 | # Let's accept both of them until this is cleared up. | |
6648 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6649 | lt_cv_file_magic_cmd=/usr/bin/file | |
6650 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6651 | ;; | |
6652 | esac | |
db137867 | 6653 | else |
7083c021 | 6654 | lt_cv_deplibs_check_method=pass_all |
db137867 | 6655 | fi |
7083c021 | 6656 | ;; |
db137867 | 6657 | |
7083c021 AC |
6658 | gnu*) |
6659 | lt_cv_deplibs_check_method=pass_all | |
6660 | ;; | |
db137867 | 6661 | |
b6d0720c AC |
6662 | haiku*) |
6663 | lt_cv_deplibs_check_method=pass_all | |
6664 | ;; | |
6665 | ||
7083c021 AC |
6666 | hpux10.20* | hpux11*) |
6667 | lt_cv_file_magic_cmd=/usr/bin/file | |
6668 | case $host_cpu in | |
6669 | ia64*) | |
6670 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6671 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6672 | ;; | |
6673 | hppa*64*) | |
b6d0720c | 6674 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
7083c021 AC |
6675 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6676 | ;; | |
6677 | *) | |
b6d0720c | 6678 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
7083c021 AC |
6679 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6680 | ;; | |
6681 | esac | |
6682 | ;; | |
db137867 | 6683 | |
7083c021 AC |
6684 | interix[3-9]*) |
6685 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6686 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6687 | ;; | |
db137867 | 6688 | |
7083c021 AC |
6689 | irix5* | irix6* | nonstopux*) |
6690 | case $LD in | |
6691 | *-32|*"-32 ") libmagic=32-bit;; | |
6692 | *-n32|*"-n32 ") libmagic=N32;; | |
6693 | *-64|*"-64 ") libmagic=64-bit;; | |
6694 | *) libmagic=never-match;; | |
6695 | esac | |
6696 | lt_cv_deplibs_check_method=pass_all | |
6697 | ;; | |
db137867 | 6698 | |
a949ab1a | 6699 | # This must be glibc/ELF. |
b6d0720c | 6700 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7083c021 AC |
6701 | lt_cv_deplibs_check_method=pass_all |
6702 | ;; | |
db137867 | 6703 | |
96f4052b | 6704 | netbsd*) |
7083c021 AC |
6705 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
6706 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6707 | else | |
6708 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6709 | fi | |
6710 | ;; | |
db137867 | 6711 | |
7083c021 AC |
6712 | newos6*) |
6713 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6714 | lt_cv_file_magic_cmd=/usr/bin/file | |
6715 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6716 | ;; | |
db137867 | 6717 | |
7083c021 AC |
6718 | *nto* | *qnx*) |
6719 | lt_cv_deplibs_check_method=pass_all | |
6720 | ;; | |
db137867 | 6721 | |
7083c021 AC |
6722 | openbsd*) |
6723 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6724 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6725 | else | |
6726 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6727 | fi | |
6728 | ;; | |
db137867 | 6729 | |
7083c021 AC |
6730 | osf3* | osf4* | osf5*) |
6731 | lt_cv_deplibs_check_method=pass_all | |
6732 | ;; | |
db137867 | 6733 | |
7083c021 AC |
6734 | rdos*) |
6735 | lt_cv_deplibs_check_method=pass_all | |
6736 | ;; | |
db137867 | 6737 | |
7083c021 AC |
6738 | solaris*) |
6739 | lt_cv_deplibs_check_method=pass_all | |
6740 | ;; | |
db137867 | 6741 | |
7083c021 AC |
6742 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6743 | lt_cv_deplibs_check_method=pass_all | |
6744 | ;; | |
db137867 | 6745 | |
7083c021 AC |
6746 | sysv4 | sysv4.3*) |
6747 | case $host_vendor in | |
6748 | motorola) | |
6749 | 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]' | |
6750 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6751 | ;; | |
6752 | ncr) | |
6753 | lt_cv_deplibs_check_method=pass_all | |
6754 | ;; | |
6755 | sequent) | |
6756 | lt_cv_file_magic_cmd='/bin/file' | |
6757 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6758 | ;; | |
6759 | sni) | |
6760 | lt_cv_file_magic_cmd='/bin/file' | |
6761 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6762 | lt_cv_file_magic_test_file=/lib/libc.so | |
6763 | ;; | |
6764 | siemens) | |
6765 | lt_cv_deplibs_check_method=pass_all | |
6766 | ;; | |
6767 | pc) | |
6768 | lt_cv_deplibs_check_method=pass_all | |
6769 | ;; | |
6770 | esac | |
6771 | ;; | |
db137867 | 6772 | |
7083c021 AC |
6773 | tpf*) |
6774 | lt_cv_deplibs_check_method=pass_all | |
6775 | ;; | |
6776 | esac | |
db137867 | 6777 | |
db137867 | 6778 | fi |
7083c021 AC |
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6780 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
b6d0720c AC |
6781 | |
6782 | file_magic_glob= | |
6783 | want_nocaseglob=no | |
6784 | if test "$build" = "$host"; then | |
6785 | case $host_os in | |
6786 | mingw* | pw32*) | |
6787 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6788 | want_nocaseglob=yes | |
6789 | else | |
6790 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6791 | fi | |
6792 | ;; | |
6793 | esac | |
6794 | fi | |
6795 | ||
7083c021 AC |
6796 | file_magic_cmd=$lt_cv_file_magic_cmd |
6797 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6798 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
db137867 | 6799 | |
db137867 | 6800 | |
db137867 | 6801 | |
db137867 | 6802 | |
db137867 | 6803 | |
db137867 | 6804 | |
db137867 | 6805 | |
db137867 | 6806 | |
db137867 | 6807 | |
db137867 | 6808 | |
b6d0720c AC |
6809 | |
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | ||
db137867 AC |
6819 | |
6820 | ||
db137867 | 6821 | if test -n "$ac_tool_prefix"; then |
b6d0720c AC |
6822 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
6823 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
7083c021 | 6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 6825 | $as_echo_n "checking for $ac_word... " >&6; } |
b6d0720c | 6826 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
030272f3 | 6827 | $as_echo_n "(cached) " >&6 |
db137867 | 6828 | else |
b6d0720c AC |
6829 | if test -n "$DLLTOOL"; then |
6830 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
db137867 AC |
6831 | else |
6832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6833 | for as_dir in $PATH | |
6834 | do | |
6835 | IFS=$as_save_IFS | |
6836 | test -z "$as_dir" && as_dir=. | |
7083c021 | 6837 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 | 6838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b6d0720c | 6839 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
7083c021 | 6840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
6841 | break 2 |
6842 | fi | |
6843 | done | |
7083c021 | 6844 | done |
db137867 AC |
6845 | IFS=$as_save_IFS |
6846 | ||
6847 | fi | |
6848 | fi | |
b6d0720c AC |
6849 | DLLTOOL=$ac_cv_prog_DLLTOOL |
6850 | if test -n "$DLLTOOL"; then | |
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6852 | $as_echo "$DLLTOOL" >&6; } | |
db137867 | 6853 | else |
7083c021 | 6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6855 | $as_echo "no" >&6; } |
db137867 AC |
6856 | fi |
6857 | ||
6858 | ||
db137867 | 6859 | fi |
b6d0720c AC |
6860 | if test -z "$ac_cv_prog_DLLTOOL"; then |
6861 | ac_ct_DLLTOOL=$DLLTOOL | |
6862 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6863 | set dummy dlltool; ac_word=$2 | |
7083c021 | 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
030272f3 | 6865 | $as_echo_n "checking for $ac_word... " >&6; } |
b6d0720c | 6866 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
030272f3 | 6867 | $as_echo_n "(cached) " >&6 |
db137867 | 6868 | else |
b6d0720c AC |
6869 | if test -n "$ac_ct_DLLTOOL"; then |
6870 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
db137867 AC |
6871 | else |
6872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6873 | for as_dir in $PATH | |
6874 | do | |
6875 | IFS=$as_save_IFS | |
6876 | test -z "$as_dir" && as_dir=. | |
7083c021 | 6877 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 | 6878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
b6d0720c | 6879 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
7083c021 | 6880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
db137867 AC |
6881 | break 2 |
6882 | fi | |
6883 | done | |
7083c021 | 6884 | done |
db137867 AC |
6885 | IFS=$as_save_IFS |
6886 | ||
6887 | fi | |
6888 | fi | |
b6d0720c AC |
6889 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6890 | if test -n "$ac_ct_DLLTOOL"; then | |
6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6892 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
db137867 | 6893 | else |
7083c021 | 6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 6895 | $as_echo "no" >&6; } |
db137867 AC |
6896 | fi |
6897 | ||
b6d0720c AC |
6898 | if test "x$ac_ct_DLLTOOL" = x; then |
6899 | DLLTOOL="false" | |
db137867 AC |
6900 | else |
6901 | case $cross_compiling:$ac_tool_warned in | |
6902 | yes:) | |
7083c021 | 6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 6904 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
6905 | ac_tool_warned=yes ;; |
6906 | esac | |
b6d0720c | 6907 | DLLTOOL=$ac_ct_DLLTOOL |
db137867 | 6908 | fi |
7083c021 | 6909 | else |
b6d0720c | 6910 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
db137867 AC |
6911 | fi |
6912 | ||
b6d0720c AC |
6913 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6914 | ||
6915 | ||
6916 | ||
6917 | ||
6918 | ||
6919 | ||
6920 | ||
db137867 | 6921 | |
db137867 | 6922 | |
db137867 | 6923 | |
b6d0720c AC |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
6925 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6926 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6927 | $as_echo_n "(cached) " >&6 | |
6928 | else | |
6929 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6930 | ||
6931 | case $host_os in | |
6932 | cygwin* | mingw* | pw32* | cegcc*) | |
6933 | # two different shell functions defined in ltmain.sh | |
6934 | # decide which to use based on capabilities of $DLLTOOL | |
6935 | case `$DLLTOOL --help 2>&1` in | |
6936 | *--identify-strict*) | |
6937 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6938 | ;; | |
6939 | *) | |
6940 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6941 | ;; | |
6942 | esac | |
6943 | ;; | |
6944 | *) | |
6945 | # fallback: assume linklib IS sharedlib | |
6946 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6947 | ;; | |
6948 | esac | |
db137867 | 6949 | |
b6d0720c AC |
6950 | fi |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6952 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6953 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6954 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
db137867 | 6955 | |
db137867 | 6956 | |
db137867 | 6957 | |
db137867 | 6958 | |
7083c021 AC |
6959 | |
6960 | ||
6961 | ||
6962 | if test -n "$ac_tool_prefix"; then | |
b6d0720c AC |
6963 | for ac_prog in ar |
6964 | do | |
6965 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6966 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 AC |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6968 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 6969 | if ${ac_cv_prog_AR+:} false; then : |
7083c021 AC |
6970 | $as_echo_n "(cached) " >&6 |
6971 | else | |
b6d0720c AC |
6972 | if test -n "$AR"; then |
6973 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7083c021 AC |
6974 | else |
6975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6976 | for as_dir in $PATH | |
6977 | do | |
6978 | IFS=$as_save_IFS | |
6979 | test -z "$as_dir" && as_dir=. | |
6980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b6d0720c | 6982 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
7083c021 AC |
6983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6984 | break 2 | |
db137867 | 6985 | fi |
7083c021 AC |
6986 | done |
6987 | done | |
6988 | IFS=$as_save_IFS | |
6989 | ||
6990 | fi | |
6991 | fi | |
b6d0720c AC |
6992 | AR=$ac_cv_prog_AR |
6993 | if test -n "$AR"; then | |
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6995 | $as_echo "$AR" >&6; } | |
db137867 | 6996 | else |
7083c021 AC |
6997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6998 | $as_echo "no" >&6; } | |
6999 | fi | |
7000 | ||
7001 | ||
b6d0720c AC |
7002 | test -n "$AR" && break |
7003 | done | |
7083c021 | 7004 | fi |
b6d0720c AC |
7005 | if test -z "$AR"; then |
7006 | ac_ct_AR=$AR | |
7007 | for ac_prog in ar | |
7008 | do | |
7009 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7010 | set dummy $ac_prog; ac_word=$2 | |
7083c021 AC |
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7012 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 7013 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
7083c021 AC |
7014 | $as_echo_n "(cached) " >&6 |
7015 | else | |
b6d0720c AC |
7016 | if test -n "$ac_ct_AR"; then |
7017 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7083c021 AC |
7018 | else |
7019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7020 | for as_dir in $PATH | |
7021 | do | |
7022 | IFS=$as_save_IFS | |
7023 | test -z "$as_dir" && as_dir=. | |
7024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b6d0720c | 7026 | ac_cv_prog_ac_ct_AR="$ac_prog" |
7083c021 AC |
7027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7028 | break 2 | |
db137867 | 7029 | fi |
7083c021 AC |
7030 | done |
7031 | done | |
7032 | IFS=$as_save_IFS | |
7033 | ||
7034 | fi | |
7035 | fi | |
b6d0720c AC |
7036 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7037 | if test -n "$ac_ct_AR"; then | |
7038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7039 | $as_echo "$ac_ct_AR" >&6; } | |
7083c021 AC |
7040 | else |
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7042 | $as_echo "no" >&6; } | |
db137867 AC |
7043 | fi |
7044 | ||
b6d0720c AC |
7045 | |
7046 | test -n "$ac_ct_AR" && break | |
7047 | done | |
7048 | ||
7049 | if test "x$ac_ct_AR" = x; then | |
7050 | AR="false" | |
7051 | else | |
7052 | case $cross_compiling:$ac_tool_warned in | |
7053 | yes:) | |
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7055 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7056 | ac_tool_warned=yes ;; | |
7057 | esac | |
7058 | AR=$ac_ct_AR | |
7059 | fi | |
7060 | fi | |
7061 | ||
7062 | : ${AR=ar} | |
7063 | : ${AR_FLAGS=cru} | |
7064 | ||
7065 | ||
7066 | ||
7067 | ||
7068 | ||
7069 | ||
7070 | ||
7071 | ||
7072 | ||
7073 | ||
7074 | ||
7075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
7076 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
7077 | if ${lt_cv_ar_at_file+:} false; then : | |
7078 | $as_echo_n "(cached) " >&6 | |
7079 | else | |
7080 | lt_cv_ar_at_file=no | |
7081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7082 | /* end confdefs.h. */ | |
7083 | ||
7084 | int | |
7085 | main () | |
7086 | { | |
7087 | ||
7088 | ; | |
7089 | return 0; | |
7090 | } | |
7091 | _ACEOF | |
7092 | if ac_fn_c_try_compile "$LINENO"; then : | |
7093 | echo conftest.$ac_objext > conftest.lst | |
7094 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
7095 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7096 | (eval $lt_ar_try) 2>&5 | |
7097 | ac_status=$? | |
7098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7099 | test $ac_status = 0; } | |
7100 | if test "$ac_status" -eq 0; then | |
7101 | # Ensure the archiver fails upon bogus file names. | |
7102 | rm -f conftest.$ac_objext libconftest.a | |
7103 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7104 | (eval $lt_ar_try) 2>&5 | |
7105 | ac_status=$? | |
7106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7107 | test $ac_status = 0; } | |
7108 | if test "$ac_status" -ne 0; then | |
7109 | lt_cv_ar_at_file=@ | |
7110 | fi | |
7111 | fi | |
7112 | rm -f conftest.* libconftest.a | |
7113 | ||
7114 | fi | |
7115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7116 | ||
7117 | fi | |
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
7119 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
7120 | ||
7121 | if test "x$lt_cv_ar_at_file" = xno; then | |
7122 | archiver_list_spec= | |
7123 | else | |
7124 | archiver_list_spec=$lt_cv_ar_at_file | |
7125 | fi | |
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | if test -n "$ac_tool_prefix"; then | |
7134 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7135 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7137 | $as_echo_n "checking for $ac_word... " >&6; } | |
7138 | if ${ac_cv_prog_STRIP+:} false; then : | |
7139 | $as_echo_n "(cached) " >&6 | |
7140 | else | |
7141 | if test -n "$STRIP"; then | |
7142 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7143 | else | |
7144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7145 | for as_dir in $PATH | |
7146 | do | |
7147 | IFS=$as_save_IFS | |
7148 | test -z "$as_dir" && as_dir=. | |
7149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7151 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7153 | break 2 | |
7154 | fi | |
7155 | done | |
7156 | done | |
7157 | IFS=$as_save_IFS | |
7158 | ||
7159 | fi | |
7160 | fi | |
7161 | STRIP=$ac_cv_prog_STRIP | |
7162 | if test -n "$STRIP"; then | |
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7164 | $as_echo "$STRIP" >&6; } | |
7165 | else | |
7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7167 | $as_echo "no" >&6; } | |
7168 | fi | |
7169 | ||
7170 | ||
7171 | fi | |
7172 | if test -z "$ac_cv_prog_STRIP"; then | |
7173 | ac_ct_STRIP=$STRIP | |
7174 | # Extract the first word of "strip", so it can be a program name with args. | |
7175 | set dummy strip; ac_word=$2 | |
7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7177 | $as_echo_n "checking for $ac_word... " >&6; } | |
7178 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
7179 | $as_echo_n "(cached) " >&6 | |
7180 | else | |
7181 | if test -n "$ac_ct_STRIP"; then | |
7182 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7183 | else | |
7184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7185 | for as_dir in $PATH | |
7186 | do | |
7187 | IFS=$as_save_IFS | |
7188 | test -z "$as_dir" && as_dir=. | |
7189 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7191 | ac_cv_prog_ac_ct_STRIP="strip" | |
7192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7193 | break 2 | |
7194 | fi | |
7195 | done | |
7196 | done | |
7197 | IFS=$as_save_IFS | |
7198 | ||
7199 | fi | |
7200 | fi | |
7201 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7202 | if test -n "$ac_ct_STRIP"; then | |
7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7204 | $as_echo "$ac_ct_STRIP" >&6; } | |
7205 | else | |
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7207 | $as_echo "no" >&6; } | |
7208 | fi | |
7209 | ||
7210 | if test "x$ac_ct_STRIP" = x; then | |
7211 | STRIP=":" | |
7212 | else | |
7213 | case $cross_compiling:$ac_tool_warned in | |
7214 | yes:) | |
7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7083c021 AC |
7216 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7217 | ac_tool_warned=yes ;; | |
7218 | esac | |
7219 | STRIP=$ac_ct_STRIP | |
7220 | fi | |
030272f3 | 7221 | else |
7083c021 | 7222 | STRIP="$ac_cv_prog_STRIP" |
030272f3 | 7223 | fi |
db137867 | 7224 | |
7083c021 | 7225 | test -z "$STRIP" && STRIP=: |
db137867 AC |
7226 | |
7227 | ||
db137867 | 7228 | |
db137867 | 7229 | |
db137867 | 7230 | |
db137867 | 7231 | |
7083c021 AC |
7232 | if test -n "$ac_tool_prefix"; then |
7233 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7234 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7236 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 7237 | if ${ac_cv_prog_RANLIB+:} false; then : |
7083c021 AC |
7238 | $as_echo_n "(cached) " >&6 |
7239 | else | |
7240 | if test -n "$RANLIB"; then | |
7241 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7242 | else | |
7243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7244 | for as_dir in $PATH | |
7245 | do | |
7246 | IFS=$as_save_IFS | |
7247 | test -z "$as_dir" && as_dir=. | |
7248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7250 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7252 | break 2 | |
7253 | fi | |
7254 | done | |
7255 | done | |
7256 | IFS=$as_save_IFS | |
db137867 | 7257 | |
7083c021 AC |
7258 | fi |
7259 | fi | |
7260 | RANLIB=$ac_cv_prog_RANLIB | |
7261 | if test -n "$RANLIB"; then | |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7263 | $as_echo "$RANLIB" >&6; } | |
7264 | else | |
7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7266 | $as_echo "no" >&6; } | |
7267 | fi | |
db137867 | 7268 | |
db137867 | 7269 | |
7083c021 AC |
7270 | fi |
7271 | if test -z "$ac_cv_prog_RANLIB"; then | |
7272 | ac_ct_RANLIB=$RANLIB | |
7273 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7274 | set dummy ranlib; ac_word=$2 | |
7275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7276 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 7277 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
7083c021 AC |
7278 | $as_echo_n "(cached) " >&6 |
7279 | else | |
7280 | if test -n "$ac_ct_RANLIB"; then | |
7281 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7282 | else | |
7283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7284 | for as_dir in $PATH | |
7285 | do | |
7286 | IFS=$as_save_IFS | |
7287 | test -z "$as_dir" && as_dir=. | |
7288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7290 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7292 | break 2 | |
7293 | fi | |
7294 | done | |
7295 | done | |
7296 | IFS=$as_save_IFS | |
db137867 | 7297 | |
7083c021 AC |
7298 | fi |
7299 | fi | |
7300 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7301 | if test -n "$ac_ct_RANLIB"; then | |
7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7303 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7304 | else | |
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7306 | $as_echo "no" >&6; } | |
db137867 AC |
7307 | fi |
7308 | ||
7083c021 AC |
7309 | if test "x$ac_ct_RANLIB" = x; then |
7310 | RANLIB=":" | |
7311 | else | |
7312 | case $cross_compiling:$ac_tool_warned in | |
7313 | yes:) | |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7316 | ac_tool_warned=yes ;; | |
7317 | esac | |
7318 | RANLIB=$ac_ct_RANLIB | |
7319 | fi | |
db137867 | 7320 | else |
7083c021 | 7321 | RANLIB="$ac_cv_prog_RANLIB" |
db137867 AC |
7322 | fi |
7323 | ||
7083c021 | 7324 | test -z "$RANLIB" && RANLIB=: |
db137867 AC |
7325 | |
7326 | ||
7327 | ||
7328 | ||
7083c021 AC |
7329 | |
7330 | ||
7331 | # Determine commands to create old-style static archives. | |
7332 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7333 | old_postinstall_cmds='chmod 644 $oldlib' | |
7334 | old_postuninstall_cmds= | |
7335 | ||
7336 | if test -n "$RANLIB"; then | |
7337 | case $host_os in | |
7338 | openbsd*) | |
a949ab1a | 7339 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
7083c021 AC |
7340 | ;; |
7341 | *) | |
a949ab1a | 7342 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
7083c021 AC |
7343 | ;; |
7344 | esac | |
a949ab1a | 7345 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
7083c021 AC |
7346 | fi |
7347 | ||
b6d0720c AC |
7348 | case $host_os in |
7349 | darwin*) | |
7350 | lock_old_archive_extraction=yes ;; | |
7351 | *) | |
7352 | lock_old_archive_extraction=no ;; | |
7353 | esac | |
7354 | ||
7355 | ||
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7083c021 AC |
7360 | |
7361 | ||
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | ||
7368 | ||
7369 | ||
7370 | ||
7371 | ||
7372 | ||
7373 | ||
7374 | ||
7375 | ||
7376 | ||
7377 | ||
7378 | ||
7379 | ||
7380 | ||
7381 | ||
7382 | ||
7383 | ||
7384 | ||
7385 | ||
7386 | ||
7387 | ||
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | # If no C compiler was specified, use CC. | |
7394 | LTCC=${LTCC-"$CC"} | |
7395 | ||
7396 | # If no C compiler flags were specified, use CFLAGS. | |
7397 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7398 | ||
7399 | # Allow CC to be a program name with arguments. | |
7400 | compiler=$CC | |
7401 | ||
7402 | ||
7403 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7405 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
08c2568c | 7406 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
030272f3 | 7407 | $as_echo_n "(cached) " >&6 |
db137867 AC |
7408 | else |
7409 | ||
7410 | # These are sane defaults that work on at least a few old systems. | |
7411 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7412 | ||
7413 | # Character class describing NM global symbol codes. | |
7414 | symcode='[BCDEGRST]' | |
7415 | ||
7416 | # Regexp to match symbols that can be accessed directly from C. | |
7417 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7418 | ||
db137867 AC |
7419 | # Define system-specific variables. |
7420 | case $host_os in | |
7421 | aix*) | |
7422 | symcode='[BCDT]' | |
7423 | ;; | |
7083c021 | 7424 | cygwin* | mingw* | pw32* | cegcc*) |
db137867 AC |
7425 | symcode='[ABCDGISTW]' |
7426 | ;; | |
7083c021 | 7427 | hpux*) |
db137867 AC |
7428 | if test "$host_cpu" = ia64; then |
7429 | symcode='[ABCDEGRST]' | |
7430 | fi | |
db137867 AC |
7431 | ;; |
7432 | irix* | nonstopux*) | |
7433 | symcode='[BCDEGRST]' | |
7434 | ;; | |
7435 | osf*) | |
7436 | symcode='[BCDEGQRST]' | |
7437 | ;; | |
7438 | solaris*) | |
7439 | symcode='[BDRT]' | |
7440 | ;; | |
7441 | sco3.2v5*) | |
7442 | symcode='[DT]' | |
7443 | ;; | |
7444 | sysv4.2uw2*) | |
7445 | symcode='[DT]' | |
7446 | ;; | |
7447 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7448 | symcode='[ABDT]' | |
7449 | ;; | |
7450 | sysv4) | |
7451 | symcode='[DFNSTU]' | |
7452 | ;; | |
7453 | esac | |
7454 | ||
7083c021 AC |
7455 | # If we're using GNU nm, then use its standard symbol codes. |
7456 | case `$NM -V 2>&1` in | |
7457 | *GNU* | *'with BFD'*) | |
7458 | symcode='[ABCDGIRSTW]' ;; | |
7459 | esac | |
7460 | ||
7461 | # Transform an extracted symbol line into a proper C declaration. | |
7462 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7463 | # so use this general approach. | |
7464 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7465 | ||
7466 | # Transform an extracted symbol line into symbol name and symbol address | |
b6d0720c AC |
7467 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
7468 | 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'" | |
7083c021 | 7469 | |
db137867 AC |
7470 | # Handle CRLF in mingw tool chain |
7471 | opt_cr= | |
7472 | case $build_os in | |
7473 | mingw*) | |
7083c021 | 7474 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
db137867 AC |
7475 | ;; |
7476 | esac | |
7477 | ||
7083c021 | 7478 | # Try without a prefix underscore, then with it. |
db137867 AC |
7479 | for ac_symprfx in "" "_"; do |
7480 | ||
7481 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7482 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7483 | ||
7484 | # Write the raw and C identifiers. | |
7083c021 AC |
7485 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
7486 | # Fake it for dumpbin and say T for any non-static function | |
7487 | # and D for any global variable. | |
7488 | # Also find C++ and __fastcall symbols from MSVC++, | |
7489 | # which start with @ or ?. | |
7490 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7491 | " {last_section=section; section=\$ 3};"\ | |
a949ab1a | 7492 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
7083c021 AC |
7493 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
7494 | " \$ 0!~/External *\|/{next};"\ | |
7495 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7496 | " {if(hide[section]) next};"\ | |
7497 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7498 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7499 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7500 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7501 | " ' prfx=^$ac_symprfx" | |
7502 | else | |
7503 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7504 | fi | |
b6d0720c | 7505 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
db137867 AC |
7506 | |
7507 | # Check to see that the pipe works correctly. | |
7508 | pipe_works=no | |
7509 | ||
7510 | rm -f conftest* | |
7083c021 | 7511 | cat > conftest.$ac_ext <<_LT_EOF |
db137867 AC |
7512 | #ifdef __cplusplus |
7513 | extern "C" { | |
7514 | #endif | |
7515 | char nm_test_var; | |
7083c021 AC |
7516 | void nm_test_func(void); |
7517 | void nm_test_func(void){} | |
db137867 AC |
7518 | #ifdef __cplusplus |
7519 | } | |
7520 | #endif | |
7521 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7083c021 | 7522 | _LT_EOF |
db137867 | 7523 | |
7083c021 | 7524 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
db137867 AC |
7525 | (eval $ac_compile) 2>&5 |
7526 | ac_status=$? | |
7083c021 AC |
7527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7528 | test $ac_status = 0; }; then | |
db137867 AC |
7529 | # Now try to grab the symbols. |
7530 | nlist=conftest.nm | |
b6d0720c AC |
7531 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7532 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
db137867 | 7533 | ac_status=$? |
7083c021 AC |
7534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7535 | test $ac_status = 0; } && test -s "$nlist"; then | |
db137867 AC |
7536 | # Try sorting and uniquifying the output. |
7537 | if sort "$nlist" | uniq > "$nlist"T; then | |
7538 | mv -f "$nlist"T "$nlist" | |
7539 | else | |
7540 | rm -f "$nlist"T | |
7541 | fi | |
7542 | ||
7543 | # Make sure that we snagged all the symbols we need. | |
7083c021 AC |
7544 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
7545 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7546 | cat <<_LT_EOF > conftest.$ac_ext | |
b6d0720c AC |
7547 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
7548 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7549 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7550 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7551 | # define LT_DLSYM_CONST | |
7552 | #elif defined(__osf__) | |
7553 | /* This system does not cope well with relocations in const data. */ | |
7554 | # define LT_DLSYM_CONST | |
7555 | #else | |
7556 | # define LT_DLSYM_CONST const | |
7557 | #endif | |
7558 | ||
db137867 AC |
7559 | #ifdef __cplusplus |
7560 | extern "C" { | |
7561 | #endif | |
7562 | ||
7083c021 | 7563 | _LT_EOF |
db137867 | 7564 | # Now generate the symbol file. |
7083c021 | 7565 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
db137867 | 7566 | |
7083c021 | 7567 | cat <<_LT_EOF >> conftest.$ac_ext |
db137867 | 7568 | |
7083c021 | 7569 | /* The mapping between symbol names and symbols. */ |
b6d0720c | 7570 | LT_DLSYM_CONST struct { |
db137867 | 7571 | const char *name; |
7083c021 | 7572 | void *address; |
db137867 | 7573 | } |
7083c021 | 7574 | lt__PROGRAM__LTX_preloaded_symbols[] = |
db137867 | 7575 | { |
7083c021 AC |
7576 | { "@PROGRAM@", (void *) 0 }, |
7577 | _LT_EOF | |
7578 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7579 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7580 | {0, (void *) 0} | |
db137867 AC |
7581 | }; |
7582 | ||
7083c021 AC |
7583 | /* This works around a problem in FreeBSD linker */ |
7584 | #ifdef FREEBSD_WORKAROUND | |
7585 | static const void *lt_preloaded_setup() { | |
7586 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7587 | } | |
7588 | #endif | |
7589 | ||
db137867 AC |
7590 | #ifdef __cplusplus |
7591 | } | |
7592 | #endif | |
7083c021 | 7593 | _LT_EOF |
db137867 AC |
7594 | # Now try linking the two files. |
7595 | mv conftest.$ac_objext conftstm.$ac_objext | |
b6d0720c AC |
7596 | lt_globsym_save_LIBS=$LIBS |
7597 | lt_globsym_save_CFLAGS=$CFLAGS | |
db137867 AC |
7598 | LIBS="conftstm.$ac_objext" |
7599 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7083c021 | 7600 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
db137867 AC |
7601 | (eval $ac_link) 2>&5 |
7602 | ac_status=$? | |
7083c021 AC |
7603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7604 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
db137867 AC |
7605 | pipe_works=yes |
7606 | fi | |
b6d0720c AC |
7607 | LIBS=$lt_globsym_save_LIBS |
7608 | CFLAGS=$lt_globsym_save_CFLAGS | |
db137867 AC |
7609 | else |
7610 | echo "cannot find nm_test_func in $nlist" >&5 | |
7611 | fi | |
7612 | else | |
7613 | echo "cannot find nm_test_var in $nlist" >&5 | |
7614 | fi | |
7615 | else | |
7616 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7617 | fi | |
7618 | else | |
7619 | echo "$progname: failed program was:" >&5 | |
7620 | cat conftest.$ac_ext >&5 | |
7621 | fi | |
b676ea3b | 7622 | rm -rf conftest* conftst* |
db137867 AC |
7623 | |
7624 | # Do not use the global_symbol_pipe unless it works. | |
7625 | if test "$pipe_works" = yes; then | |
7626 | break | |
7627 | else | |
7628 | lt_cv_sys_global_symbol_pipe= | |
7629 | fi | |
7630 | done | |
7631 | ||
7632 | fi | |
7633 | ||
7634 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7635 | lt_cv_sys_global_symbol_to_cdecl= | |
7636 | fi | |
7637 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7083c021 | 7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
030272f3 | 7639 | $as_echo "failed" >&6; } |
db137867 | 7640 | else |
7083c021 | 7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
030272f3 | 7642 | $as_echo "ok" >&6; } |
db137867 AC |
7643 | fi |
7644 | ||
b6d0720c AC |
7645 | # Response file support. |
7646 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7647 | nm_file_list_spec='@' | |
7648 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7649 | nm_file_list_spec='@' | |
7650 | fi | |
7651 | ||
7652 | ||
7653 | ||
7654 | ||
7655 | ||
7656 | ||
7657 | ||
db137867 AC |
7658 | |
7659 | ||
7660 | ||
7661 | ||
7662 | ||
db137867 | 7663 | |
db137867 | 7664 | |
db137867 | 7665 | |
db137867 | 7666 | |
db137867 | 7667 | |
db137867 | 7668 | |
db137867 | 7669 | |
db137867 | 7670 | |
db137867 | 7671 | |
db137867 AC |
7672 | |
7673 | ||
b6d0720c AC |
7674 | |
7675 | ||
7676 | ||
7677 | ||
7678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7679 | $as_echo_n "checking for sysroot... " >&6; } | |
7680 | ||
7681 | # Check whether --with-sysroot was given. | |
7682 | if test "${with_sysroot+set}" = set; then : | |
7683 | withval=$with_sysroot; | |
7684 | else | |
7685 | with_sysroot=no | |
7686 | fi | |
7687 | ||
7688 | ||
7689 | lt_sysroot= | |
7690 | case ${with_sysroot} in #( | |
7691 | yes) | |
7692 | if test "$GCC" = yes; then | |
7693 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7694 | fi | |
7695 | ;; #( | |
7696 | /*) | |
7697 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7698 | ;; #( | |
7699 | no|'') | |
7700 | ;; #( | |
7701 | *) | |
7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7703 | $as_echo "${with_sysroot}" >&6; } | |
7704 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7705 | ;; | |
7706 | esac | |
7707 | ||
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7709 | $as_echo "${lt_sysroot:-no}" >&6; } | |
db137867 | 7710 | |
db137867 | 7711 | |
db137867 | 7712 | |
db137867 | 7713 | |
7083c021 AC |
7714 | |
7715 | # Check whether --enable-libtool-lock was given. | |
7716 | if test "${enable_libtool_lock+set}" = set; then : | |
7717 | enableval=$enable_libtool_lock; | |
db137867 AC |
7718 | fi |
7719 | ||
7083c021 | 7720 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
db137867 | 7721 | |
7083c021 AC |
7722 | # Some flags need to be propagated to the compiler or linker for good |
7723 | # libtool support. | |
7724 | case $host in | |
7725 | ia64-*-hpux*) | |
7726 | # Find out which ABI we are using. | |
7727 | echo 'int i;' > conftest.$ac_ext | |
7728 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7729 | (eval $ac_compile) 2>&5 | |
7730 | ac_status=$? | |
7731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7732 | test $ac_status = 0; }; then | |
7733 | case `/usr/bin/file conftest.$ac_objext` in | |
7734 | *ELF-32*) | |
7735 | HPUX_IA64_MODE="32" | |
7736 | ;; | |
7737 | *ELF-64*) | |
7738 | HPUX_IA64_MODE="64" | |
7739 | ;; | |
7740 | esac | |
7741 | fi | |
7742 | rm -rf conftest* | |
7743 | ;; | |
7744 | *-*-irix6*) | |
7745 | # Find out which ABI we are using. | |
b6d0720c | 7746 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
7083c021 AC |
7747 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7748 | (eval $ac_compile) 2>&5 | |
7749 | ac_status=$? | |
7750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7751 | test $ac_status = 0; }; then | |
7752 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7753 | case `/usr/bin/file conftest.$ac_objext` in | |
7754 | *32-bit*) | |
7755 | LD="${LD-ld} -melf32bsmip" | |
7756 | ;; | |
7757 | *N32*) | |
7758 | LD="${LD-ld} -melf32bmipn32" | |
7759 | ;; | |
7760 | *64-bit*) | |
7761 | LD="${LD-ld} -melf64bmip" | |
7762 | ;; | |
7763 | esac | |
7764 | else | |
7765 | case `/usr/bin/file conftest.$ac_objext` in | |
7766 | *32-bit*) | |
7767 | LD="${LD-ld} -32" | |
7768 | ;; | |
7769 | *N32*) | |
7770 | LD="${LD-ld} -n32" | |
7771 | ;; | |
7772 | *64-bit*) | |
7773 | LD="${LD-ld} -64" | |
7774 | ;; | |
7775 | esac | |
7776 | fi | |
7777 | fi | |
7778 | rm -rf conftest* | |
7779 | ;; | |
7780 | ||
7781 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
7782 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7783 | # Find out which ABI we are using. | |
7784 | echo 'int i;' > conftest.$ac_ext | |
7785 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7786 | (eval $ac_compile) 2>&5 | |
7787 | ac_status=$? | |
7788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7789 | test $ac_status = 0; }; then | |
7790 | case `/usr/bin/file conftest.o` in | |
7791 | *32-bit*) | |
7792 | case $host in | |
7793 | x86_64-*kfreebsd*-gnu) | |
7794 | LD="${LD-ld} -m elf_i386_fbsd" | |
7795 | ;; | |
7796 | x86_64-*linux*) | |
7797 | LD="${LD-ld} -m elf_i386" | |
7798 | ;; | |
7799 | ppc64-*linux*|powerpc64-*linux*) | |
7800 | LD="${LD-ld} -m elf32ppclinux" | |
7801 | ;; | |
7802 | s390x-*linux*) | |
7803 | LD="${LD-ld} -m elf_s390" | |
7804 | ;; | |
7805 | sparc64-*linux*) | |
7806 | LD="${LD-ld} -m elf32_sparc" | |
7807 | ;; | |
7808 | esac | |
7809 | ;; | |
7810 | *64-bit*) | |
7811 | case $host in | |
7812 | x86_64-*kfreebsd*-gnu) | |
7813 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7814 | ;; | |
7815 | x86_64-*linux*) | |
7816 | LD="${LD-ld} -m elf_x86_64" | |
7817 | ;; | |
7818 | ppc*-*linux*|powerpc*-*linux*) | |
7819 | LD="${LD-ld} -m elf64ppc" | |
7820 | ;; | |
7821 | s390*-*linux*|s390*-*tpf*) | |
7822 | LD="${LD-ld} -m elf64_s390" | |
7823 | ;; | |
7824 | sparc*-*linux*) | |
7825 | LD="${LD-ld} -m elf64_sparc" | |
7826 | ;; | |
7827 | esac | |
7828 | ;; | |
7829 | esac | |
7830 | fi | |
7831 | rm -rf conftest* | |
7832 | ;; | |
7833 | ||
7834 | *-*-sco3.2v5*) | |
7835 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7836 | SAVE_CFLAGS="$CFLAGS" | |
7837 | CFLAGS="$CFLAGS -belf" | |
7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7839 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
08c2568c | 7840 | if ${lt_cv_cc_needs_belf+:} false; then : |
7083c021 AC |
7841 | $as_echo_n "(cached) " >&6 |
7842 | else | |
7843 | ac_ext=c | |
7844 | ac_cpp='$CPP $CPPFLAGS' | |
7845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7848 | ||
7849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7850 | /* end confdefs.h. */ | |
7851 | ||
7852 | int | |
7853 | main () | |
7854 | { | |
7855 | ||
7856 | ; | |
7857 | return 0; | |
7858 | } | |
7859 | _ACEOF | |
7860 | if ac_fn_c_try_link "$LINENO"; then : | |
7861 | lt_cv_cc_needs_belf=yes | |
7862 | else | |
7863 | lt_cv_cc_needs_belf=no | |
7864 | fi | |
7865 | rm -f core conftest.err conftest.$ac_objext \ | |
7866 | conftest$ac_exeext conftest.$ac_ext | |
7867 | ac_ext=c | |
7868 | ac_cpp='$CPP $CPPFLAGS' | |
7869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7872 | ||
7873 | fi | |
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7875 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7876 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7877 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7878 | CFLAGS="$SAVE_CFLAGS" | |
7879 | fi | |
7880 | ;; | |
a949ab1a | 7881 | *-*solaris*) |
7083c021 AC |
7882 | # Find out which ABI we are using. |
7883 | echo 'int i;' > conftest.$ac_ext | |
7884 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7885 | (eval $ac_compile) 2>&5 | |
7886 | ac_status=$? | |
7887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7888 | test $ac_status = 0; }; then | |
7889 | case `/usr/bin/file conftest.o` in | |
7890 | *64-bit*) | |
7891 | case $lt_cv_prog_gnu_ld in | |
a949ab1a AC |
7892 | yes*) |
7893 | case $host in | |
7894 | i?86-*-solaris*) | |
7895 | LD="${LD-ld} -m elf_x86_64" | |
7896 | ;; | |
7897 | sparc*-*-solaris*) | |
7898 | LD="${LD-ld} -m elf64_sparc" | |
7899 | ;; | |
7900 | esac | |
7901 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7902 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7903 | LD="${LD-ld}_sol2" | |
7904 | fi | |
7905 | ;; | |
7083c021 AC |
7906 | *) |
7907 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7908 | LD="${LD-ld} -64" | |
7909 | fi | |
7910 | ;; | |
7911 | esac | |
7912 | ;; | |
7913 | esac | |
7914 | fi | |
7915 | rm -rf conftest* | |
7916 | ;; | |
7917 | esac | |
7918 | ||
7919 | need_locks="$enable_libtool_lock" | |
7920 | ||
b6d0720c AC |
7921 | if test -n "$ac_tool_prefix"; then |
7922 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7923 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7925 | $as_echo_n "checking for $ac_word... " >&6; } | |
7926 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7927 | $as_echo_n "(cached) " >&6 | |
7928 | else | |
7929 | if test -n "$MANIFEST_TOOL"; then | |
7930 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7931 | else | |
7932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7933 | for as_dir in $PATH | |
7934 | do | |
7935 | IFS=$as_save_IFS | |
7936 | test -z "$as_dir" && as_dir=. | |
7937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7939 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7941 | break 2 | |
7942 | fi | |
7943 | done | |
7944 | done | |
7945 | IFS=$as_save_IFS | |
7946 | ||
7947 | fi | |
7948 | fi | |
7949 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7950 | if test -n "$MANIFEST_TOOL"; then | |
7951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7952 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7953 | else | |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7955 | $as_echo "no" >&6; } | |
7956 | fi | |
7957 | ||
7958 | ||
7959 | fi | |
7960 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7961 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7962 | # Extract the first word of "mt", so it can be a program name with args. | |
7963 | set dummy mt; ac_word=$2 | |
7964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7965 | $as_echo_n "checking for $ac_word... " >&6; } | |
7966 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7967 | $as_echo_n "(cached) " >&6 | |
7968 | else | |
7969 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7970 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7971 | else | |
7972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7973 | for as_dir in $PATH | |
7974 | do | |
7975 | IFS=$as_save_IFS | |
7976 | test -z "$as_dir" && as_dir=. | |
7977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7979 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7981 | break 2 | |
7982 | fi | |
7983 | done | |
7984 | done | |
7985 | IFS=$as_save_IFS | |
7986 | ||
7987 | fi | |
7988 | fi | |
7989 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7990 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7992 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7993 | else | |
7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7995 | $as_echo "no" >&6; } | |
7996 | fi | |
7997 | ||
7998 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7999 | MANIFEST_TOOL=":" | |
8000 | else | |
8001 | case $cross_compiling:$ac_tool_warned in | |
8002 | yes:) | |
8003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8004 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8005 | ac_tool_warned=yes ;; | |
8006 | esac | |
8007 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
8008 | fi | |
8009 | else | |
8010 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
8011 | fi | |
8012 | ||
8013 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
8015 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
8016 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
8017 | $as_echo_n "(cached) " >&6 | |
8018 | else | |
8019 | lt_cv_path_mainfest_tool=no | |
8020 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
8021 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
8022 | cat conftest.err >&5 | |
8023 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
8024 | lt_cv_path_mainfest_tool=yes | |
8025 | fi | |
8026 | rm -f conftest* | |
8027 | fi | |
8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
8029 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
8030 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
8031 | MANIFEST_TOOL=: | |
8032 | fi | |
8033 | ||
8034 | ||
8035 | ||
8036 | ||
8037 | ||
7083c021 AC |
8038 | |
8039 | case $host_os in | |
8040 | rhapsody* | darwin*) | |
8041 | if test -n "$ac_tool_prefix"; then | |
8042 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8043 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8045 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8046 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
7083c021 AC |
8047 | $as_echo_n "(cached) " >&6 |
8048 | else | |
8049 | if test -n "$DSYMUTIL"; then | |
8050 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8051 | else | |
8052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8053 | for as_dir in $PATH | |
db137867 AC |
8054 | do |
8055 | IFS=$as_save_IFS | |
8056 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8057 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 | 8058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
8059 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
8060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8061 | break 2 |
8062 | fi | |
8063 | done | |
7083c021 AC |
8064 | done |
8065 | IFS=$as_save_IFS | |
8066 | ||
8067 | fi | |
8068 | fi | |
8069 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8070 | if test -n "$DSYMUTIL"; then | |
8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8072 | $as_echo "$DSYMUTIL" >&6; } | |
8073 | else | |
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8075 | $as_echo "no" >&6; } | |
8076 | fi | |
8077 | ||
8078 | ||
8079 | fi | |
8080 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8081 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8082 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8083 | set dummy dsymutil; ac_word=$2 | |
8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8085 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8086 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
7083c021 AC |
8087 | $as_echo_n "(cached) " >&6 |
8088 | else | |
8089 | if test -n "$ac_ct_DSYMUTIL"; then | |
8090 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8091 | else | |
8092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8093 | for as_dir in $PATH | |
8094 | do | |
8095 | IFS=$as_save_IFS | |
8096 | test -z "$as_dir" && as_dir=. | |
8097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8098 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8099 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8101 | break 2 | |
8102 | fi | |
db137867 | 8103 | done |
7083c021 | 8104 | done |
db137867 AC |
8105 | IFS=$as_save_IFS |
8106 | ||
8107 | fi | |
8108 | fi | |
7083c021 AC |
8109 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8110 | if test -n "$ac_ct_DSYMUTIL"; then | |
8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8112 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
db137867 | 8113 | else |
7083c021 | 8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8115 | $as_echo "no" >&6; } |
db137867 AC |
8116 | fi |
8117 | ||
7083c021 AC |
8118 | if test "x$ac_ct_DSYMUTIL" = x; then |
8119 | DSYMUTIL=":" | |
db137867 AC |
8120 | else |
8121 | case $cross_compiling:$ac_tool_warned in | |
8122 | yes:) | |
7083c021 | 8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8124 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
8125 | ac_tool_warned=yes ;; |
8126 | esac | |
7083c021 | 8127 | DSYMUTIL=$ac_ct_DSYMUTIL |
db137867 AC |
8128 | fi |
8129 | else | |
7083c021 | 8130 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
db137867 AC |
8131 | fi |
8132 | ||
7083c021 AC |
8133 | if test -n "$ac_tool_prefix"; then |
8134 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8135 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8137 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8138 | if ${ac_cv_prog_NMEDIT+:} false; then : |
030272f3 | 8139 | $as_echo_n "(cached) " >&6 |
db137867 | 8140 | else |
7083c021 AC |
8141 | if test -n "$NMEDIT"; then |
8142 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
db137867 AC |
8143 | else |
8144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8145 | for as_dir in $PATH | |
8146 | do | |
8147 | IFS=$as_save_IFS | |
8148 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8149 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 | 8150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
8151 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
8152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8153 | break 2 |
8154 | fi | |
8155 | done | |
7083c021 | 8156 | done |
db137867 AC |
8157 | IFS=$as_save_IFS |
8158 | ||
8159 | fi | |
8160 | fi | |
7083c021 AC |
8161 | NMEDIT=$ac_cv_prog_NMEDIT |
8162 | if test -n "$NMEDIT"; then | |
8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8164 | $as_echo "$NMEDIT" >&6; } | |
db137867 | 8165 | else |
7083c021 | 8166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8167 | $as_echo "no" >&6; } |
db137867 AC |
8168 | fi |
8169 | ||
8170 | ||
8171 | fi | |
7083c021 AC |
8172 | if test -z "$ac_cv_prog_NMEDIT"; then |
8173 | ac_ct_NMEDIT=$NMEDIT | |
8174 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8175 | set dummy nmedit; ac_word=$2 | |
8176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8177 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8178 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
030272f3 | 8179 | $as_echo_n "(cached) " >&6 |
db137867 | 8180 | else |
7083c021 AC |
8181 | if test -n "$ac_ct_NMEDIT"; then |
8182 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
db137867 AC |
8183 | else |
8184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8185 | for as_dir in $PATH | |
8186 | do | |
8187 | IFS=$as_save_IFS | |
8188 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8189 | for ac_exec_ext in '' $ac_executable_extensions; do |
db137867 | 8190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
8191 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
8192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
db137867 AC |
8193 | break 2 |
8194 | fi | |
8195 | done | |
7083c021 | 8196 | done |
db137867 AC |
8197 | IFS=$as_save_IFS |
8198 | ||
8199 | fi | |
8200 | fi | |
7083c021 AC |
8201 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8202 | if test -n "$ac_ct_NMEDIT"; then | |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8204 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
db137867 | 8205 | else |
7083c021 | 8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8207 | $as_echo "no" >&6; } |
db137867 AC |
8208 | fi |
8209 | ||
7083c021 AC |
8210 | if test "x$ac_ct_NMEDIT" = x; then |
8211 | NMEDIT=":" | |
db137867 AC |
8212 | else |
8213 | case $cross_compiling:$ac_tool_warned in | |
8214 | yes:) | |
7083c021 | 8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8216 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
db137867 AC |
8217 | ac_tool_warned=yes ;; |
8218 | esac | |
7083c021 | 8219 | NMEDIT=$ac_ct_NMEDIT |
db137867 AC |
8220 | fi |
8221 | else | |
7083c021 | 8222 | NMEDIT="$ac_cv_prog_NMEDIT" |
db137867 AC |
8223 | fi |
8224 | ||
7083c021 AC |
8225 | if test -n "$ac_tool_prefix"; then |
8226 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8227 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8229 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8230 | if ${ac_cv_prog_LIPO+:} false; then : |
7083c021 AC |
8231 | $as_echo_n "(cached) " >&6 |
8232 | else | |
8233 | if test -n "$LIPO"; then | |
8234 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8235 | else | |
8236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8237 | for as_dir in $PATH | |
8238 | do | |
8239 | IFS=$as_save_IFS | |
8240 | test -z "$as_dir" && as_dir=. | |
8241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8243 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8245 | break 2 | |
8246 | fi | |
8247 | done | |
8248 | done | |
8249 | IFS=$as_save_IFS | |
db137867 | 8250 | |
db137867 | 8251 | fi |
db137867 | 8252 | fi |
7083c021 AC |
8253 | LIPO=$ac_cv_prog_LIPO |
8254 | if test -n "$LIPO"; then | |
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8256 | $as_echo "$LIPO" >&6; } | |
db137867 | 8257 | else |
7083c021 | 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8259 | $as_echo "no" >&6; } |
db137867 AC |
8260 | fi |
8261 | ||
7083c021 AC |
8262 | |
8263 | fi | |
8264 | if test -z "$ac_cv_prog_LIPO"; then | |
8265 | ac_ct_LIPO=$LIPO | |
8266 | # Extract the first word of "lipo", so it can be a program name with args. | |
8267 | set dummy lipo; ac_word=$2 | |
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8269 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 8270 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
030272f3 | 8271 | $as_echo_n "(cached) " >&6 |
db137867 | 8272 | else |
7083c021 AC |
8273 | if test -n "$ac_ct_LIPO"; then |
8274 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8275 | else | |
8276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8277 | for as_dir in $PATH | |
8278 | do | |
8279 | IFS=$as_save_IFS | |
8280 | test -z "$as_dir" && as_dir=. | |
8281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8283 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8285 | break 2 | |
8286 | fi | |
8287 | done | |
db137867 | 8288 | done |
7083c021 | 8289 | IFS=$as_save_IFS |
db137867 | 8290 | |
7083c021 AC |
8291 | fi |
8292 | fi | |
8293 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8294 | if test -n "$ac_ct_LIPO"; then | |
8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8296 | $as_echo "$ac_ct_LIPO" >&6; } | |
db137867 | 8297 | else |
7083c021 | 8298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8299 | $as_echo "no" >&6; } |
db137867 AC |
8300 | fi |
8301 | ||
7083c021 AC |
8302 | if test "x$ac_ct_LIPO" = x; then |
8303 | LIPO=":" | |
db137867 | 8304 | else |
7083c021 AC |
8305 | case $cross_compiling:$ac_tool_warned in |
8306 | yes:) | |
8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8308 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8309 | ac_tool_warned=yes ;; | |
8310 | esac | |
8311 | LIPO=$ac_ct_LIPO | |
db137867 | 8312 | fi |
7083c021 AC |
8313 | else |
8314 | LIPO="$ac_cv_prog_LIPO" | |
db137867 AC |
8315 | fi |
8316 | ||
b676ea3b | 8317 | if test -n "$ac_tool_prefix"; then |
7083c021 AC |
8318 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
8319 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8321 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8322 | if ${ac_cv_prog_OTOOL+:} false; then : |
030272f3 | 8323 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8324 | else |
7083c021 AC |
8325 | if test -n "$OTOOL"; then |
8326 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
b676ea3b AC |
8327 | else |
8328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8329 | for as_dir in $PATH | |
8330 | do | |
8331 | IFS=$as_save_IFS | |
8332 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8333 | for ac_exec_ext in '' $ac_executable_extensions; do |
b676ea3b | 8334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
8335 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8337 | break 2 |
8338 | fi | |
8339 | done | |
7083c021 | 8340 | done |
b676ea3b AC |
8341 | IFS=$as_save_IFS |
8342 | ||
8343 | fi | |
8344 | fi | |
7083c021 AC |
8345 | OTOOL=$ac_cv_prog_OTOOL |
8346 | if test -n "$OTOOL"; then | |
8347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8348 | $as_echo "$OTOOL" >&6; } | |
b676ea3b | 8349 | else |
7083c021 | 8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8351 | $as_echo "no" >&6; } |
b676ea3b AC |
8352 | fi |
8353 | ||
8354 | ||
8355 | fi | |
7083c021 AC |
8356 | if test -z "$ac_cv_prog_OTOOL"; then |
8357 | ac_ct_OTOOL=$OTOOL | |
8358 | # Extract the first word of "otool", so it can be a program name with args. | |
8359 | set dummy otool; ac_word=$2 | |
8360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8361 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8362 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
030272f3 | 8363 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8364 | else |
7083c021 AC |
8365 | if test -n "$ac_ct_OTOOL"; then |
8366 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
b676ea3b AC |
8367 | else |
8368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8369 | for as_dir in $PATH | |
8370 | do | |
8371 | IFS=$as_save_IFS | |
8372 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8373 | for ac_exec_ext in '' $ac_executable_extensions; do |
b676ea3b | 8374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
8375 | ac_cv_prog_ac_ct_OTOOL="otool" |
8376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8377 | break 2 |
8378 | fi | |
8379 | done | |
7083c021 | 8380 | done |
b676ea3b AC |
8381 | IFS=$as_save_IFS |
8382 | ||
8383 | fi | |
8384 | fi | |
7083c021 AC |
8385 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
8386 | if test -n "$ac_ct_OTOOL"; then | |
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8388 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b676ea3b | 8389 | else |
7083c021 | 8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8391 | $as_echo "no" >&6; } |
b676ea3b AC |
8392 | fi |
8393 | ||
7083c021 AC |
8394 | if test "x$ac_ct_OTOOL" = x; then |
8395 | OTOOL=":" | |
b676ea3b AC |
8396 | else |
8397 | case $cross_compiling:$ac_tool_warned in | |
8398 | yes:) | |
7083c021 | 8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8400 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b676ea3b AC |
8401 | ac_tool_warned=yes ;; |
8402 | esac | |
7083c021 | 8403 | OTOOL=$ac_ct_OTOOL |
b676ea3b AC |
8404 | fi |
8405 | else | |
7083c021 | 8406 | OTOOL="$ac_cv_prog_OTOOL" |
b676ea3b AC |
8407 | fi |
8408 | ||
8409 | if test -n "$ac_tool_prefix"; then | |
7083c021 AC |
8410 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
8411 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8413 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8414 | if ${ac_cv_prog_OTOOL64+:} false; then : |
030272f3 | 8415 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8416 | else |
7083c021 AC |
8417 | if test -n "$OTOOL64"; then |
8418 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
b676ea3b AC |
8419 | else |
8420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8421 | for as_dir in $PATH | |
8422 | do | |
8423 | IFS=$as_save_IFS | |
8424 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8425 | for ac_exec_ext in '' $ac_executable_extensions; do |
b676ea3b | 8426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
8427 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8429 | break 2 |
8430 | fi | |
8431 | done | |
7083c021 | 8432 | done |
b676ea3b AC |
8433 | IFS=$as_save_IFS |
8434 | ||
8435 | fi | |
8436 | fi | |
7083c021 AC |
8437 | OTOOL64=$ac_cv_prog_OTOOL64 |
8438 | if test -n "$OTOOL64"; then | |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8440 | $as_echo "$OTOOL64" >&6; } | |
b676ea3b | 8441 | else |
7083c021 | 8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8443 | $as_echo "no" >&6; } |
b676ea3b AC |
8444 | fi |
8445 | ||
8446 | ||
8447 | fi | |
7083c021 AC |
8448 | if test -z "$ac_cv_prog_OTOOL64"; then |
8449 | ac_ct_OTOOL64=$OTOOL64 | |
8450 | # Extract the first word of "otool64", so it can be a program name with args. | |
8451 | set dummy otool64; ac_word=$2 | |
8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
030272f3 | 8453 | $as_echo_n "checking for $ac_word... " >&6; } |
08c2568c | 8454 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
030272f3 | 8455 | $as_echo_n "(cached) " >&6 |
b676ea3b | 8456 | else |
7083c021 AC |
8457 | if test -n "$ac_ct_OTOOL64"; then |
8458 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
b676ea3b AC |
8459 | else |
8460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8461 | for as_dir in $PATH | |
8462 | do | |
8463 | IFS=$as_save_IFS | |
8464 | test -z "$as_dir" && as_dir=. | |
7083c021 | 8465 | for ac_exec_ext in '' $ac_executable_extensions; do |
b676ea3b | 8466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
8467 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b676ea3b AC |
8469 | break 2 |
8470 | fi | |
8471 | done | |
7083c021 | 8472 | done |
b676ea3b AC |
8473 | IFS=$as_save_IFS |
8474 | ||
8475 | fi | |
8476 | fi | |
7083c021 AC |
8477 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
8478 | if test -n "$ac_ct_OTOOL64"; then | |
8479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8480 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b676ea3b | 8481 | else |
7083c021 | 8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
030272f3 | 8483 | $as_echo "no" >&6; } |
b676ea3b AC |
8484 | fi |
8485 | ||
7083c021 AC |
8486 | if test "x$ac_ct_OTOOL64" = x; then |
8487 | OTOOL64=":" | |
b676ea3b AC |
8488 | else |
8489 | case $cross_compiling:$ac_tool_warned in | |
8490 | yes:) | |
7083c021 | 8491 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
030272f3 | 8492 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
b676ea3b AC |
8493 | ac_tool_warned=yes ;; |
8494 | esac | |
7083c021 | 8495 | OTOOL64=$ac_ct_OTOOL64 |
b676ea3b AC |
8496 | fi |
8497 | else | |
7083c021 | 8498 | OTOOL64="$ac_cv_prog_OTOOL64" |
b676ea3b AC |
8499 | fi |
8500 | ||
8501 | ||
b676ea3b | 8502 | |
b676ea3b | 8503 | |
7083c021 AC |
8504 | |
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8528 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
08c2568c | 8529 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
7083c021 AC |
8530 | $as_echo_n "(cached) " >&6 |
8531 | else | |
8532 | lt_cv_apple_cc_single_mod=no | |
8533 | if test -z "${LT_MULTI_MODULE}"; then | |
8534 | # By default we will add the -single_module flag. You can override | |
8535 | # by either setting the environment variable LT_MULTI_MODULE | |
8536 | # non-empty at configure time, or by adding -multi_module to the | |
8537 | # link flags. | |
8538 | rm -rf libconftest.dylib* | |
8539 | echo "int foo(void){return 1;}" > conftest.c | |
8540 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8541 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8542 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8543 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8544 | _lt_result=$? | |
a949ab1a AC |
8545 | # If there is a non-empty error log, and "single_module" |
8546 | # appears in it, assume the flag caused a linker warning | |
8547 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8548 | cat conftest.err >&5 | |
8549 | # Otherwise, if the output was created with a 0 exit code from | |
8550 | # the compiler, it worked. | |
8551 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
7083c021 AC |
8552 | lt_cv_apple_cc_single_mod=yes |
8553 | else | |
8554 | cat conftest.err >&5 | |
8555 | fi | |
8556 | rm -rf libconftest.dylib* | |
8557 | rm -f conftest.* | |
8558 | fi | |
8559 | fi | |
8560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8561 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
a949ab1a | 8562 | |
7083c021 AC |
8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8564 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
08c2568c | 8565 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7083c021 AC |
8566 | $as_echo_n "(cached) " >&6 |
8567 | else | |
8568 | lt_cv_ld_exported_symbols_list=no | |
8569 | save_LDFLAGS=$LDFLAGS | |
8570 | echo "_main" > conftest.sym | |
8571 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8573 | /* end confdefs.h. */ | |
8574 | ||
8575 | int | |
8576 | main () | |
8577 | { | |
8578 | ||
8579 | ; | |
8580 | return 0; | |
b676ea3b AC |
8581 | } |
8582 | _ACEOF | |
7083c021 | 8583 | if ac_fn_c_try_link "$LINENO"; then : |
b676ea3b AC |
8584 | lt_cv_ld_exported_symbols_list=yes |
8585 | else | |
7083c021 | 8586 | lt_cv_ld_exported_symbols_list=no |
b676ea3b | 8587 | fi |
7083c021 AC |
8588 | rm -f core conftest.err conftest.$ac_objext \ |
8589 | conftest$ac_exeext conftest.$ac_ext | |
8590 | LDFLAGS="$save_LDFLAGS" | |
b676ea3b AC |
8591 | |
8592 | fi | |
7083c021 | 8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
030272f3 | 8594 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
a949ab1a | 8595 | |
b6d0720c AC |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8597 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8598 | if ${lt_cv_ld_force_load+:} false; then : | |
8599 | $as_echo_n "(cached) " >&6 | |
8600 | else | |
8601 | lt_cv_ld_force_load=no | |
8602 | cat > conftest.c << _LT_EOF | |
8603 | int forced_loaded() { return 2;} | |
8604 | _LT_EOF | |
8605 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8606 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8607 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8608 | $AR cru libconftest.a conftest.o 2>&5 | |
8609 | echo "$RANLIB libconftest.a" >&5 | |
8610 | $RANLIB libconftest.a 2>&5 | |
8611 | cat > conftest.c << _LT_EOF | |
8612 | int main() { return 0;} | |
8613 | _LT_EOF | |
8614 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8615 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8616 | _lt_result=$? | |
a949ab1a AC |
8617 | if test -s conftest.err && $GREP force_load conftest.err; then |
8618 | cat conftest.err >&5 | |
8619 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
b6d0720c AC |
8620 | lt_cv_ld_force_load=yes |
8621 | else | |
8622 | cat conftest.err >&5 | |
8623 | fi | |
8624 | rm -f conftest.err libconftest.a conftest conftest.c | |
8625 | rm -rf conftest.dSYM | |
8626 | ||
8627 | fi | |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8629 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
b676ea3b | 8630 | case $host_os in |
7083c021 | 8631 | rhapsody* | darwin1.[012]) |
b676ea3b AC |
8632 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
8633 | darwin1.*) | |
7083c021 AC |
8634 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8635 | darwin*) # darwin 5.x on | |
b676ea3b AC |
8636 | # if running on 10.5 or later, the deployment target defaults |
8637 | # to the OS version, if on x86, and 10.4, the deployment | |
8638 | # target defaults to 10.4. Don't you love it? | |
8639 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7083c021 AC |
8640 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
8641 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8642 | 10.[012]*) | |
8643 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8644 | 10.*) | |
8645 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
b676ea3b AC |
8646 | esac |
8647 | ;; | |
8648 | esac | |
8649 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8650 | _lt_dar_single_mod='$single_module' | |
8651 | fi | |
8652 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8653 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8654 | else | |
7083c021 | 8655 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
b676ea3b | 8656 | fi |
b6d0720c | 8657 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
7083c021 | 8658 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
b676ea3b AC |
8659 | else |
8660 | _lt_dsymutil= | |
8661 | fi | |
8662 | ;; | |
8663 | esac | |
8664 | ||
7083c021 AC |
8665 | for ac_header in dlfcn.h |
8666 | do : | |
8667 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8668 | " | |
08c2568c | 8669 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
7083c021 AC |
8670 | cat >>confdefs.h <<_ACEOF |
8671 | #define HAVE_DLFCN_H 1 | |
8672 | _ACEOF | |
b676ea3b | 8673 | |
db137867 AC |
8674 | fi |
8675 | ||
7083c021 AC |
8676 | done |
8677 | ||
8678 | ||
8679 | ||
b6d0720c AC |
8680 | |
8681 | ||
7083c021 AC |
8682 | # Set options |
8683 | ||
8684 | ||
8685 | ||
8686 | enable_dlopen=no | |
8687 | ||
8688 | ||
8689 | enable_win32_dll=no | |
8690 | ||
8691 | ||
8692 | ||
db137867 AC |
8693 | |
8694 | ||
8695 | # Check whether --with-pic was given. | |
7083c021 | 8696 | if test "${with_pic+set}" = set; then : |
a949ab1a AC |
8697 | withval=$with_pic; lt_p=${PACKAGE-default} |
8698 | case $withval in | |
8699 | yes|no) pic_mode=$withval ;; | |
8700 | *) | |
8701 | pic_mode=default | |
8702 | # Look at the argument we got. We use all the common list separators. | |
8703 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8704 | for lt_pkg in $withval; do | |
8705 | IFS="$lt_save_ifs" | |
8706 | if test "X$lt_pkg" = "X$lt_p"; then | |
8707 | pic_mode=yes | |
8708 | fi | |
8709 | done | |
8710 | IFS="$lt_save_ifs" | |
8711 | ;; | |
8712 | esac | |
db137867 AC |
8713 | else |
8714 | pic_mode=default | |
8715 | fi | |
8716 | ||
7083c021 | 8717 | |
db137867 AC |
8718 | test -z "$pic_mode" && pic_mode=default |
8719 | ||
db137867 AC |
8720 | |
8721 | ||
db137867 | 8722 | |
db137867 | 8723 | |
db137867 | 8724 | |
db137867 | 8725 | |
7083c021 AC |
8726 | # Check whether --enable-fast-install was given. |
8727 | if test "${enable_fast_install+set}" = set; then : | |
8728 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8729 | case $enableval in | |
8730 | yes) enable_fast_install=yes ;; | |
8731 | no) enable_fast_install=no ;; | |
8732 | *) | |
8733 | enable_fast_install=no | |
8734 | # Look at the argument we got. We use all the common list separators. | |
8735 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8736 | for pkg in $enableval; do | |
8737 | IFS="$lt_save_ifs" | |
8738 | if test "X$pkg" = "X$p"; then | |
8739 | enable_fast_install=yes | |
8740 | fi | |
8741 | done | |
8742 | IFS="$lt_save_ifs" | |
8743 | ;; | |
8744 | esac | |
8745 | else | |
8746 | enable_fast_install=yes | |
8747 | fi | |
db137867 | 8748 | |
db137867 | 8749 | |
db137867 | 8750 | |
db137867 AC |
8751 | |
8752 | ||
db137867 | 8753 | |
db137867 AC |
8754 | |
8755 | ||
8756 | ||
db137867 | 8757 | |
db137867 | 8758 | |
7083c021 AC |
8759 | # This can be used to rebuild libtool when needed |
8760 | LIBTOOL_DEPS="$ltmain" | |
db137867 | 8761 | |
7083c021 AC |
8762 | # Always use our own libtool. |
8763 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
db137867 | 8764 | |
db137867 | 8765 | |
db137867 | 8766 | |
db137867 | 8767 | |
db137867 | 8768 | |
db137867 | 8769 | |
db137867 | 8770 | |
db137867 | 8771 | |
db137867 | 8772 | |
db137867 | 8773 | |
db137867 | 8774 | |
db137867 | 8775 | |
db137867 | 8776 | |
db137867 | 8777 | |
db137867 | 8778 | |
db137867 | 8779 | |
db137867 | 8780 | |
db137867 | 8781 | |
db137867 | 8782 | |
db137867 | 8783 | |
db137867 | 8784 | |
a949ab1a AC |
8785 | |
8786 | ||
8787 | ||
8788 | ||
db137867 | 8789 | |
db137867 | 8790 | |
b6d0720c | 8791 | |
db137867 | 8792 | |
db137867 | 8793 | |
7083c021 | 8794 | test -z "$LN_S" && LN_S="ln -s" |
db137867 | 8795 | |
db137867 | 8796 | |
db137867 | 8797 | |
db137867 | 8798 | |
db137867 | 8799 | |
db137867 | 8800 | |
db137867 | 8801 | |
db137867 | 8802 | |
db137867 | 8803 | |
db137867 | 8804 | |
db137867 | 8805 | |
db137867 | 8806 | |
db137867 | 8807 | |
db137867 | 8808 | |
7083c021 AC |
8809 | if test -n "${ZSH_VERSION+set}" ; then |
8810 | setopt NO_GLOB_SUBST | |
db137867 | 8811 | fi |
db137867 | 8812 | |
7083c021 AC |
8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8814 | $as_echo_n "checking for objdir... " >&6; } | |
08c2568c | 8815 | if ${lt_cv_objdir+:} false; then : |
7083c021 | 8816 | $as_echo_n "(cached) " >&6 |
db137867 | 8817 | else |
7083c021 AC |
8818 | rm -f .libs 2>/dev/null |
8819 | mkdir .libs 2>/dev/null | |
8820 | if test -d .libs; then | |
8821 | lt_cv_objdir=.libs | |
8822 | else | |
8823 | # MS-DOS does not allow filenames that begin with a dot. | |
8824 | lt_cv_objdir=_libs | |
8825 | fi | |
8826 | rmdir .libs 2>/dev/null | |
db137867 | 8827 | fi |
7083c021 AC |
8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8829 | $as_echo "$lt_cv_objdir" >&6; } | |
8830 | objdir=$lt_cv_objdir | |
db137867 AC |
8831 | |
8832 | ||
db137867 | 8833 | |
db137867 | 8834 | |
db137867 | 8835 | |
7083c021 AC |
8836 | cat >>confdefs.h <<_ACEOF |
8837 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8838 | _ACEOF | |
db137867 | 8839 | |
db137867 | 8840 | |
db137867 | 8841 | |
db137867 | 8842 | |
7083c021 AC |
8843 | case $host_os in |
8844 | aix3*) | |
8845 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8846 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8847 | # vanish in a puff of smoke. | |
8848 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8849 | COLLECT_NAMES= | |
8850 | export COLLECT_NAMES | |
8851 | fi | |
8852 | ;; | |
8853 | esac | |
db137867 | 8854 | |
7083c021 AC |
8855 | # Global variables: |
8856 | ofile=libtool | |
8857 | can_build_shared=yes | |
db137867 | 8858 | |
7083c021 AC |
8859 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8860 | # which needs '.lib'). | |
8861 | libext=a | |
db137867 | 8862 | |
7083c021 | 8863 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
db137867 | 8864 | |
7083c021 AC |
8865 | old_CC="$CC" |
8866 | old_CFLAGS="$CFLAGS" | |
db137867 | 8867 | |
7083c021 AC |
8868 | # Set sane defaults for various variables |
8869 | test -z "$CC" && CC=cc | |
8870 | test -z "$LTCC" && LTCC=$CC | |
8871 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8872 | test -z "$LD" && LD=ld | |
8873 | test -z "$ac_objext" && ac_objext=o | |
db137867 | 8874 | |
7083c021 AC |
8875 | for cc_temp in $compiler""; do |
8876 | case $cc_temp in | |
8877 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8878 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8879 | \-*) ;; | |
8880 | *) break;; | |
8881 | esac | |
8882 | done | |
b6d0720c | 8883 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
db137867 | 8884 | |
db137867 | 8885 | |
7083c021 AC |
8886 | # Only perform the check for file, if the check method requires it |
8887 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8888 | case $deplibs_check_method in | |
8889 | file_magic*) | |
8890 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8892 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
08c2568c | 8893 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
7083c021 AC |
8894 | $as_echo_n "(cached) " >&6 |
8895 | else | |
8896 | case $MAGIC_CMD in | |
8897 | [\\/*] | ?:[\\/]*) | |
8898 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8899 | ;; | |
8900 | *) | |
8901 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8902 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8903 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8904 | for ac_dir in $ac_dummy; do | |
8905 | IFS="$lt_save_ifs" | |
8906 | test -z "$ac_dir" && ac_dir=. | |
8907 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8908 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8909 | if test -n "$file_magic_test_file"; then | |
8910 | case $deplibs_check_method in | |
8911 | "file_magic "*) | |
8912 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8913 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8914 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8915 | $EGREP "$file_magic_regex" > /dev/null; then | |
8916 | : | |
8917 | else | |
8918 | cat <<_LT_EOF 1>&2 | |
db137867 | 8919 | |
7083c021 AC |
8920 | *** Warning: the command libtool uses to detect shared libraries, |
8921 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8922 | *** The result is that libtool may fail to recognize shared libraries | |
8923 | *** as such. This will affect the creation of libtool libraries that | |
8924 | *** depend on shared libraries, but programs linked with such libtool | |
8925 | *** libraries will work regardless of this problem. Nevertheless, you | |
8926 | *** may want to report the problem to your system manager and/or to | |
8927 | *** bug-libtool@gnu.org | |
db137867 | 8928 | |
7083c021 AC |
8929 | _LT_EOF |
8930 | fi ;; | |
db137867 | 8931 | esac |
db137867 | 8932 | fi |
7083c021 AC |
8933 | break |
8934 | fi | |
8935 | done | |
8936 | IFS="$lt_save_ifs" | |
8937 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8938 | ;; | |
8939 | esac | |
8940 | fi | |
db137867 | 8941 | |
7083c021 AC |
8942 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8943 | if test -n "$MAGIC_CMD"; then | |
8944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8945 | $as_echo "$MAGIC_CMD" >&6; } | |
8946 | else | |
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8948 | $as_echo "no" >&6; } | |
8949 | fi | |
db137867 | 8950 | |
db137867 | 8951 | |
db137867 | 8952 | |
7083c021 AC |
8953 | |
8954 | ||
8955 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8956 | if test -n "$ac_tool_prefix"; then | |
8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8958 | $as_echo_n "checking for file... " >&6; } | |
08c2568c | 8959 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
7083c021 | 8960 | $as_echo_n "(cached) " >&6 |
db137867 | 8961 | else |
7083c021 AC |
8962 | case $MAGIC_CMD in |
8963 | [\\/*] | ?:[\\/]*) | |
8964 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8965 | ;; | |
8966 | *) | |
8967 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8968 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8969 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8970 | for ac_dir in $ac_dummy; do | |
8971 | IFS="$lt_save_ifs" | |
8972 | test -z "$ac_dir" && ac_dir=. | |
8973 | if test -f $ac_dir/file; then | |
8974 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8975 | if test -n "$file_magic_test_file"; then | |
8976 | case $deplibs_check_method in | |
8977 | "file_magic "*) | |
8978 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8979 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8980 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8981 | $EGREP "$file_magic_regex" > /dev/null; then | |
8982 | : | |
8983 | else | |
8984 | cat <<_LT_EOF 1>&2 | |
db137867 | 8985 | |
7083c021 AC |
8986 | *** Warning: the command libtool uses to detect shared libraries, |
8987 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8988 | *** The result is that libtool may fail to recognize shared libraries | |
8989 | *** as such. This will affect the creation of libtool libraries that | |
8990 | *** depend on shared libraries, but programs linked with such libtool | |
8991 | *** libraries will work regardless of this problem. Nevertheless, you | |
8992 | *** may want to report the problem to your system manager and/or to | |
8993 | *** bug-libtool@gnu.org | |
db137867 | 8994 | |
7083c021 AC |
8995 | _LT_EOF |
8996 | fi ;; | |
8997 | esac | |
8998 | fi | |
8999 | break | |
9000 | fi | |
9001 | done | |
9002 | IFS="$lt_save_ifs" | |
9003 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9004 | ;; | |
9005 | esac | |
db137867 AC |
9006 | fi |
9007 | ||
7083c021 AC |
9008 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9009 | if test -n "$MAGIC_CMD"; then | |
9010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9011 | $as_echo "$MAGIC_CMD" >&6; } | |
9012 | else | |
9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9014 | $as_echo "no" >&6; } | |
9015 | fi | |
db137867 | 9016 | |
db137867 | 9017 | |
7083c021 AC |
9018 | else |
9019 | MAGIC_CMD=: | |
9020 | fi | |
9021 | fi | |
db137867 | 9022 | |
7083c021 AC |
9023 | fi |
9024 | ;; | |
db137867 | 9025 | esac |
db137867 | 9026 | |
7083c021 AC |
9027 | # Use C for the default configuration in the libtool script |
9028 | ||
9029 | lt_save_CC="$CC" | |
9030 | ac_ext=c | |
9031 | ac_cpp='$CPP $CPPFLAGS' | |
9032 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9033 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9034 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9035 | ||
9036 | ||
9037 | # Source file extension for C test sources. | |
9038 | ac_ext=c | |
9039 | ||
9040 | # Object file extension for compiled C test sources. | |
9041 | objext=o | |
9042 | objext=$objext | |
9043 | ||
9044 | # Code to be used in simple compile tests | |
9045 | lt_simple_compile_test_code="int some_variable = 0;" | |
9046 | ||
9047 | # Code to be used in simple link tests | |
9048 | lt_simple_link_test_code='int main(){return(0);}' | |
9049 | ||
9050 | ||
9051 | ||
9052 | ||
9053 | ||
9054 | ||
9055 | ||
9056 | # If no C compiler was specified, use CC. | |
9057 | LTCC=${LTCC-"$CC"} | |
9058 | ||
9059 | # If no C compiler flags were specified, use CFLAGS. | |
9060 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9061 | ||
9062 | # Allow CC to be a program name with arguments. | |
9063 | compiler=$CC | |
9064 | ||
9065 | # Save the default compiler, since it gets overwritten when the other | |
9066 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9067 | compiler_DEFAULT=$CC | |
9068 | ||
9069 | # save warnings/boilerplate of simple test code | |
9070 | ac_outfile=conftest.$ac_objext | |
9071 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9072 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9073 | _lt_compiler_boilerplate=`cat conftest.err` | |
9074 | $RM conftest* | |
9075 | ||
9076 | ac_outfile=conftest.$ac_objext | |
9077 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9078 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9079 | _lt_linker_boilerplate=`cat conftest.err` | |
9080 | $RM -r conftest* | |
9081 | ||
9082 | ||
9083 | if test -n "$compiler"; then | |
9084 | ||
9085 | lt_prog_compiler_no_builtin_flag= | |
9086 | ||
9087 | if test "$GCC" = yes; then | |
b6d0720c AC |
9088 | case $cc_basename in |
9089 | nvcc*) | |
9090 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9091 | *) | |
9092 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9093 | esac | |
7083c021 AC |
9094 | |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9096 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
08c2568c | 9097 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
7083c021 | 9098 | $as_echo_n "(cached) " >&6 |
db137867 | 9099 | else |
7083c021 AC |
9100 | lt_cv_prog_compiler_rtti_exceptions=no |
9101 | ac_outfile=conftest.$ac_objext | |
9102 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9103 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9104 | # Insert the option either (1) after the last *FLAGS variable, or | |
9105 | # (2) before a word containing "conftest.", or (3) at the end. | |
9106 | # Note that $ac_compile itself does not contain backslashes and begins | |
9107 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9108 | # The option is referenced via a variable to avoid confusing sed. | |
9109 | lt_compile=`echo "$ac_compile" | $SED \ | |
9110 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9111 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9112 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9113 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9114 | (eval "$lt_compile" 2>conftest.err) |
9115 | ac_status=$? | |
9116 | cat conftest.err >&5 | |
b6d0720c | 9117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9118 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9119 | # The compiler can only warn and ignore the option if not recognized | |
9120 | # So say no if there are warnings other than the usual output. | |
b6d0720c | 9121 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
7083c021 AC |
9122 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9123 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9124 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9125 | fi | |
9126 | fi | |
9127 | $RM conftest* | |
db137867 | 9128 | |
7083c021 AC |
9129 | fi |
9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9131 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
db137867 | 9132 | |
7083c021 AC |
9133 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9134 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9135 | else | |
9136 | : | |
db137867 AC |
9137 | fi |
9138 | ||
7083c021 | 9139 | fi |
db137867 | 9140 | |
7083c021 AC |
9141 | |
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | lt_prog_compiler_wl= | |
9147 | lt_prog_compiler_pic= | |
9148 | lt_prog_compiler_static= | |
9149 | ||
7083c021 AC |
9150 | |
9151 | if test "$GCC" = yes; then | |
9152 | lt_prog_compiler_wl='-Wl,' | |
9153 | lt_prog_compiler_static='-static' | |
9154 | ||
9155 | case $host_os in | |
9156 | aix*) | |
9157 | # All AIX code is PIC. | |
9158 | if test "$host_cpu" = ia64; then | |
9159 | # AIX 5 now supports IA64 processor | |
9160 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9161 | fi |
9162 | ;; | |
9163 | ||
9164 | amigaos*) | |
7083c021 AC |
9165 | case $host_cpu in |
9166 | powerpc) | |
9167 | # see comment about AmigaOS4 .so support | |
9168 | lt_prog_compiler_pic='-fPIC' | |
9169 | ;; | |
9170 | m68k) | |
9171 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9172 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9173 | # like `-m68040'. | |
9174 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9175 | ;; | |
9176 | esac | |
db137867 AC |
9177 | ;; |
9178 | ||
7083c021 AC |
9179 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9180 | # PIC is the default for these OSes. | |
db137867 AC |
9181 | ;; |
9182 | ||
7083c021 AC |
9183 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9184 | # This hack is so that the source file can tell whether it is being | |
9185 | # built for inclusion in a dll (and should export symbols for example). | |
9186 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9187 | # (--disable-auto-import) libraries | |
9188 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
db137867 AC |
9189 | ;; |
9190 | ||
9191 | darwin* | rhapsody*) | |
7083c021 AC |
9192 | # PIC is the default on this platform |
9193 | # Common symbols not allowed in MH_DYLIB files | |
9194 | lt_prog_compiler_pic='-fno-common' | |
db137867 AC |
9195 | ;; |
9196 | ||
b6d0720c AC |
9197 | haiku*) |
9198 | # PIC is the default for Haiku. | |
9199 | # The "-static" flag exists, but is broken. | |
9200 | lt_prog_compiler_static= | |
9201 | ;; | |
9202 | ||
7083c021 AC |
9203 | hpux*) |
9204 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9205 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9206 | # sets the default TLS model and affects inlining. | |
9207 | case $host_cpu in | |
9208 | hppa*64*) | |
9209 | # +Z the default | |
9210 | ;; | |
9211 | *) | |
9212 | lt_prog_compiler_pic='-fPIC' | |
9213 | ;; | |
9214 | esac | |
db137867 AC |
9215 | ;; |
9216 | ||
7083c021 AC |
9217 | interix[3-9]*) |
9218 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9219 | # Instead, we relocate shared libraries at runtime. | |
db137867 AC |
9220 | ;; |
9221 | ||
7083c021 AC |
9222 | msdosdjgpp*) |
9223 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9224 | # on systems that don't support them. | |
9225 | lt_prog_compiler_can_build_shared=no | |
9226 | enable_shared=no | |
db137867 AC |
9227 | ;; |
9228 | ||
7083c021 AC |
9229 | *nto* | *qnx*) |
9230 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9231 | # it will coredump. | |
9232 | lt_prog_compiler_pic='-fPIC -shared' | |
db137867 AC |
9233 | ;; |
9234 | ||
7083c021 AC |
9235 | sysv4*MP*) |
9236 | if test -d /usr/nec; then | |
9237 | lt_prog_compiler_pic=-Kconform_pic | |
9238 | fi | |
db137867 AC |
9239 | ;; |
9240 | ||
7083c021 AC |
9241 | *) |
9242 | lt_prog_compiler_pic='-fPIC' | |
9243 | ;; | |
9244 | esac | |
b6d0720c AC |
9245 | |
9246 | case $cc_basename in | |
9247 | nvcc*) # Cuda Compiler Driver 2.2 | |
9248 | lt_prog_compiler_wl='-Xlinker ' | |
a949ab1a AC |
9249 | if test -n "$lt_prog_compiler_pic"; then |
9250 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9251 | fi | |
b6d0720c AC |
9252 | ;; |
9253 | esac | |
7083c021 AC |
9254 | else |
9255 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9256 | case $host_os in | |
9257 | aix*) | |
9258 | lt_prog_compiler_wl='-Wl,' | |
9259 | if test "$host_cpu" = ia64; then | |
9260 | # AIX 5 now supports IA64 processor | |
9261 | lt_prog_compiler_static='-Bstatic' | |
db137867 | 9262 | else |
7083c021 | 9263 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
db137867 | 9264 | fi |
db137867 AC |
9265 | ;; |
9266 | ||
7083c021 AC |
9267 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9268 | # This hack is so that the source file can tell whether it is being | |
9269 | # built for inclusion in a dll (and should export symbols for example). | |
9270 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9271 | ;; | |
db137867 | 9272 | |
7083c021 AC |
9273 | hpux9* | hpux10* | hpux11*) |
9274 | lt_prog_compiler_wl='-Wl,' | |
9275 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9276 | # not for PA HP-UX. | |
9277 | case $host_cpu in | |
9278 | hppa*64*|ia64*) | |
9279 | # +Z the default | |
9280 | ;; | |
9281 | *) | |
9282 | lt_prog_compiler_pic='+Z' | |
9283 | ;; | |
9284 | esac | |
9285 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9286 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9287 | ;; | |
db137867 | 9288 | |
7083c021 AC |
9289 | irix5* | irix6* | nonstopux*) |
9290 | lt_prog_compiler_wl='-Wl,' | |
9291 | # PIC (with -KPIC) is the default. | |
9292 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9293 | ;; |
9294 | ||
b6d0720c | 9295 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7083c021 AC |
9296 | case $cc_basename in |
9297 | # old Intel for x86_64 which still supported -KPIC. | |
9298 | ecc*) | |
9299 | lt_prog_compiler_wl='-Wl,' | |
9300 | lt_prog_compiler_pic='-KPIC' | |
9301 | lt_prog_compiler_static='-static' | |
9302 | ;; | |
9303 | # icc used to be incompatible with GCC. | |
9304 | # ICC 10 doesn't accept -KPIC any more. | |
9305 | icc* | ifort*) | |
9306 | lt_prog_compiler_wl='-Wl,' | |
9307 | lt_prog_compiler_pic='-fPIC' | |
9308 | lt_prog_compiler_static='-static' | |
9309 | ;; | |
9310 | # Lahey Fortran 8.1. | |
9311 | lf95*) | |
9312 | lt_prog_compiler_wl='-Wl,' | |
9313 | lt_prog_compiler_pic='--shared' | |
9314 | lt_prog_compiler_static='--static' | |
9315 | ;; | |
b6d0720c AC |
9316 | nagfor*) |
9317 | # NAG Fortran compiler | |
9318 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9319 | lt_prog_compiler_pic='-PIC' | |
9320 | lt_prog_compiler_static='-Bstatic' | |
9321 | ;; | |
9322 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
7083c021 AC |
9323 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9324 | # which looks to be a dead project) | |
9325 | lt_prog_compiler_wl='-Wl,' | |
9326 | lt_prog_compiler_pic='-fpic' | |
9327 | lt_prog_compiler_static='-Bstatic' | |
9328 | ;; | |
9329 | ccc*) | |
9330 | lt_prog_compiler_wl='-Wl,' | |
9331 | # All Alpha code is PIC. | |
9332 | lt_prog_compiler_static='-non_shared' | |
9333 | ;; | |
b6d0720c AC |
9334 | xl* | bgxl* | bgf* | mpixl*) |
9335 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
7083c021 AC |
9336 | lt_prog_compiler_wl='-Wl,' |
9337 | lt_prog_compiler_pic='-qpic' | |
9338 | lt_prog_compiler_static='-qstaticlink' | |
9339 | ;; | |
9340 | *) | |
9341 | case `$CC -V 2>&1 | sed 5q` in | |
a949ab1a | 9342 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
b6d0720c | 9343 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
7083c021 AC |
9344 | lt_prog_compiler_pic='-KPIC' |
9345 | lt_prog_compiler_static='-Bstatic' | |
b6d0720c | 9346 | lt_prog_compiler_wl='' |
db137867 | 9347 | ;; |
a949ab1a AC |
9348 | *Sun\ F* | *Sun*Fortran*) |
9349 | lt_prog_compiler_pic='-KPIC' | |
9350 | lt_prog_compiler_static='-Bstatic' | |
9351 | lt_prog_compiler_wl='-Qoption ld ' | |
9352 | ;; | |
b6d0720c AC |
9353 | *Sun\ C*) |
9354 | # Sun C 5.9 | |
7083c021 AC |
9355 | lt_prog_compiler_pic='-KPIC' |
9356 | lt_prog_compiler_static='-Bstatic' | |
b6d0720c | 9357 | lt_prog_compiler_wl='-Wl,' |
db137867 | 9358 | ;; |
a949ab1a AC |
9359 | *Intel*\ [CF]*Compiler*) |
9360 | lt_prog_compiler_wl='-Wl,' | |
9361 | lt_prog_compiler_pic='-fPIC' | |
9362 | lt_prog_compiler_static='-static' | |
9363 | ;; | |
9364 | *Portland\ Group*) | |
9365 | lt_prog_compiler_wl='-Wl,' | |
9366 | lt_prog_compiler_pic='-fpic' | |
9367 | lt_prog_compiler_static='-Bstatic' | |
9368 | ;; | |
db137867 | 9369 | esac |
7083c021 AC |
9370 | ;; |
9371 | esac | |
9372 | ;; | |
db137867 | 9373 | |
7083c021 AC |
9374 | newsos6) |
9375 | lt_prog_compiler_pic='-KPIC' | |
9376 | lt_prog_compiler_static='-Bstatic' | |
9377 | ;; | |
db137867 | 9378 | |
7083c021 AC |
9379 | *nto* | *qnx*) |
9380 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9381 | # it will coredump. | |
9382 | lt_prog_compiler_pic='-fPIC -shared' | |
db137867 AC |
9383 | ;; |
9384 | ||
7083c021 AC |
9385 | osf3* | osf4* | osf5*) |
9386 | lt_prog_compiler_wl='-Wl,' | |
9387 | # All OSF/1 code is PIC. | |
9388 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9389 | ;; |
9390 | ||
7083c021 AC |
9391 | rdos*) |
9392 | lt_prog_compiler_static='-non_shared' | |
db137867 AC |
9393 | ;; |
9394 | ||
7083c021 AC |
9395 | solaris*) |
9396 | lt_prog_compiler_pic='-KPIC' | |
9397 | lt_prog_compiler_static='-Bstatic' | |
9398 | case $cc_basename in | |
b6d0720c | 9399 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
7083c021 AC |
9400 | lt_prog_compiler_wl='-Qoption ld ';; |
9401 | *) | |
9402 | lt_prog_compiler_wl='-Wl,';; | |
9403 | esac | |
db137867 AC |
9404 | ;; |
9405 | ||
7083c021 AC |
9406 | sunos4*) |
9407 | lt_prog_compiler_wl='-Qoption ld ' | |
9408 | lt_prog_compiler_pic='-PIC' | |
9409 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9410 | ;; |
9411 | ||
7083c021 AC |
9412 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9413 | lt_prog_compiler_wl='-Wl,' | |
9414 | lt_prog_compiler_pic='-KPIC' | |
9415 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9416 | ;; |
9417 | ||
7083c021 AC |
9418 | sysv4*MP*) |
9419 | if test -d /usr/nec ;then | |
9420 | lt_prog_compiler_pic='-Kconform_pic' | |
9421 | lt_prog_compiler_static='-Bstatic' | |
db137867 | 9422 | fi |
db137867 AC |
9423 | ;; |
9424 | ||
7083c021 AC |
9425 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9426 | lt_prog_compiler_wl='-Wl,' | |
9427 | lt_prog_compiler_pic='-KPIC' | |
9428 | lt_prog_compiler_static='-Bstatic' | |
9429 | ;; | |
db137867 | 9430 | |
7083c021 AC |
9431 | unicos*) |
9432 | lt_prog_compiler_wl='-Wl,' | |
9433 | lt_prog_compiler_can_build_shared=no | |
db137867 AC |
9434 | ;; |
9435 | ||
7083c021 AC |
9436 | uts4*) |
9437 | lt_prog_compiler_pic='-pic' | |
9438 | lt_prog_compiler_static='-Bstatic' | |
db137867 AC |
9439 | ;; |
9440 | ||
7083c021 AC |
9441 | *) |
9442 | lt_prog_compiler_can_build_shared=no | |
db137867 | 9443 | ;; |
7083c021 AC |
9444 | esac |
9445 | fi | |
db137867 | 9446 | |
7083c021 AC |
9447 | case $host_os in |
9448 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9449 | *djgpp*) | |
9450 | lt_prog_compiler_pic= | |
9451 | ;; | |
9452 | *) | |
9453 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9454 | ;; | |
9455 | esac | |
db137867 | 9456 | |
b6d0720c AC |
9457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9458 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9459 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9460 | $as_echo_n "(cached) " >&6 | |
9461 | else | |
9462 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9463 | fi | |
9464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9465 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9466 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
db137867 | 9467 | |
7083c021 AC |
9468 | # |
9469 | # Check to make sure the PIC flag actually works. | |
9470 | # | |
9471 | if test -n "$lt_prog_compiler_pic"; then | |
9472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9473 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
08c2568c | 9474 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
7083c021 AC |
9475 | $as_echo_n "(cached) " >&6 |
9476 | else | |
9477 | lt_cv_prog_compiler_pic_works=no | |
9478 | ac_outfile=conftest.$ac_objext | |
9479 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9480 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9481 | # Insert the option either (1) after the last *FLAGS variable, or | |
9482 | # (2) before a word containing "conftest.", or (3) at the end. | |
9483 | # Note that $ac_compile itself does not contain backslashes and begins | |
9484 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9485 | # The option is referenced via a variable to avoid confusing sed. | |
9486 | lt_compile=`echo "$ac_compile" | $SED \ | |
9487 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9488 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9489 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9490 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9491 | (eval "$lt_compile" 2>conftest.err) |
9492 | ac_status=$? | |
9493 | cat conftest.err >&5 | |
b6d0720c | 9494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9495 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9496 | # The compiler can only warn and ignore the option if not recognized | |
9497 | # So say no if there are warnings other than the usual output. | |
b6d0720c | 9498 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
7083c021 AC |
9499 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9500 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9501 | lt_cv_prog_compiler_pic_works=yes | |
9502 | fi | |
9503 | fi | |
9504 | $RM conftest* | |
9505 | ||
9506 | fi | |
9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9508 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9509 | ||
9510 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9511 | case $lt_prog_compiler_pic in | |
9512 | "" | " "*) ;; | |
9513 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9514 | esac | |
9515 | else | |
9516 | lt_prog_compiler_pic= | |
9517 | lt_prog_compiler_can_build_shared=no | |
9518 | fi | |
9519 | ||
9520 | fi | |
9521 | ||
9522 | ||
db137867 | 9523 | |
db137867 | 9524 | |
db137867 | 9525 | |
db137867 | 9526 | |
b6d0720c AC |
9527 | |
9528 | ||
9529 | ||
9530 | ||
9531 | ||
db137867 | 9532 | # |
7083c021 | 9533 | # Check to make sure the static flag actually works. |
db137867 | 9534 | # |
7083c021 AC |
9535 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9537 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
08c2568c | 9538 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
7083c021 AC |
9539 | $as_echo_n "(cached) " >&6 |
9540 | else | |
9541 | lt_cv_prog_compiler_static_works=no | |
9542 | save_LDFLAGS="$LDFLAGS" | |
9543 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9544 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9545 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9546 | # The linker can only warn and ignore the option if not recognized | |
9547 | # So say no if there are warnings | |
9548 | if test -s conftest.err; then | |
9549 | # Append any errors to the config.log. | |
9550 | cat conftest.err 1>&5 | |
b6d0720c | 9551 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
7083c021 AC |
9552 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9553 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9554 | lt_cv_prog_compiler_static_works=yes | |
9555 | fi | |
9556 | else | |
9557 | lt_cv_prog_compiler_static_works=yes | |
9558 | fi | |
9559 | fi | |
9560 | $RM -r conftest* | |
9561 | LDFLAGS="$save_LDFLAGS" | |
db137867 | 9562 | |
7083c021 AC |
9563 | fi |
9564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9565 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
db137867 | 9566 | |
7083c021 AC |
9567 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9568 | : | |
9569 | else | |
9570 | lt_prog_compiler_static= | |
9571 | fi | |
db137867 | 9572 | |
db137867 | 9573 | |
db137867 | 9574 | |
db137867 | 9575 | |
db137867 | 9576 | |
db137867 | 9577 | |
db137867 | 9578 | |
7083c021 AC |
9579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9580 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
08c2568c | 9581 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
7083c021 AC |
9582 | $as_echo_n "(cached) " >&6 |
9583 | else | |
9584 | lt_cv_prog_compiler_c_o=no | |
9585 | $RM -r conftest 2>/dev/null | |
9586 | mkdir conftest | |
9587 | cd conftest | |
9588 | mkdir out | |
9589 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 9590 | |
7083c021 AC |
9591 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9592 | # Insert the option either (1) after the last *FLAGS variable, or | |
9593 | # (2) before a word containing "conftest.", or (3) at the end. | |
9594 | # Note that $ac_compile itself does not contain backslashes and begins | |
9595 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9596 | lt_compile=`echo "$ac_compile" | $SED \ | |
9597 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9598 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9599 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9600 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9601 | (eval "$lt_compile" 2>out/conftest.err) |
9602 | ac_status=$? | |
9603 | cat out/conftest.err >&5 | |
b6d0720c | 9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9605 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9606 | then | |
9607 | # The compiler can only warn and ignore the option if not recognized | |
9608 | # So say no if there are warnings | |
b6d0720c | 9609 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
7083c021 AC |
9610 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9611 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9612 | lt_cv_prog_compiler_c_o=yes | |
9613 | fi | |
9614 | fi | |
9615 | chmod u+w . 2>&5 | |
9616 | $RM conftest* | |
9617 | # SGI C++ compiler will create directory out/ii_files/ for | |
9618 | # template instantiation | |
9619 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9620 | $RM out/* && rmdir out | |
9621 | cd .. | |
9622 | $RM -r conftest | |
9623 | $RM conftest* | |
db137867 | 9624 | |
7083c021 AC |
9625 | fi |
9626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9627 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
db137867 | 9628 | |
db137867 | 9629 | |
db137867 | 9630 | |
db137867 | 9631 | |
db137867 | 9632 | |
db137867 | 9633 | |
7083c021 AC |
9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9635 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
08c2568c | 9636 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
7083c021 AC |
9637 | $as_echo_n "(cached) " >&6 |
9638 | else | |
9639 | lt_cv_prog_compiler_c_o=no | |
9640 | $RM -r conftest 2>/dev/null | |
9641 | mkdir conftest | |
9642 | cd conftest | |
9643 | mkdir out | |
9644 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 9645 | |
7083c021 AC |
9646 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9647 | # Insert the option either (1) after the last *FLAGS variable, or | |
9648 | # (2) before a word containing "conftest.", or (3) at the end. | |
9649 | # Note that $ac_compile itself does not contain backslashes and begins | |
9650 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9651 | lt_compile=`echo "$ac_compile" | $SED \ | |
9652 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9653 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9654 | -e 's:$: $lt_compiler_flag:'` | |
b6d0720c | 9655 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
7083c021 AC |
9656 | (eval "$lt_compile" 2>out/conftest.err) |
9657 | ac_status=$? | |
9658 | cat out/conftest.err >&5 | |
b6d0720c | 9659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7083c021 AC |
9660 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9661 | then | |
9662 | # The compiler can only warn and ignore the option if not recognized | |
9663 | # So say no if there are warnings | |
b6d0720c | 9664 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
7083c021 AC |
9665 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9666 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9667 | lt_cv_prog_compiler_c_o=yes | |
9668 | fi | |
9669 | fi | |
9670 | chmod u+w . 2>&5 | |
9671 | $RM conftest* | |
9672 | # SGI C++ compiler will create directory out/ii_files/ for | |
9673 | # template instantiation | |
9674 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9675 | $RM out/* && rmdir out | |
9676 | cd .. | |
9677 | $RM -r conftest | |
9678 | $RM conftest* | |
db137867 | 9679 | |
7083c021 AC |
9680 | fi |
9681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9682 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9683 | ||
9684 | ||
9685 | ||
9686 | ||
9687 | hard_links="nottested" | |
9688 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9689 | # do not overwrite the value of need_locks provided by the user | |
9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9691 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9692 | hard_links=yes | |
9693 | $RM conftest* | |
9694 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9695 | touch conftest.a | |
9696 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9697 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9699 | $as_echo "$hard_links" >&6; } | |
9700 | if test "$hard_links" = no; then | |
9701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9702 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9703 | need_locks=warn | |
9704 | fi | |
9705 | else | |
9706 | need_locks=no | |
9707 | fi | |
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9715 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9716 | ||
9717 | runpath_var= | |
9718 | allow_undefined_flag= | |
9719 | always_export_symbols=no | |
9720 | archive_cmds= | |
9721 | archive_expsym_cmds= | |
9722 | compiler_needs_object=no | |
9723 | enable_shared_with_static_runtimes=no | |
9724 | export_dynamic_flag_spec= | |
9725 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9726 | hardcode_automatic=no | |
9727 | hardcode_direct=no | |
9728 | hardcode_direct_absolute=no | |
9729 | hardcode_libdir_flag_spec= | |
7083c021 AC |
9730 | hardcode_libdir_separator= |
9731 | hardcode_minus_L=no | |
9732 | hardcode_shlibpath_var=unsupported | |
9733 | inherit_rpath=no | |
9734 | link_all_deplibs=unknown | |
9735 | module_cmds= | |
9736 | module_expsym_cmds= | |
9737 | old_archive_from_new_cmds= | |
9738 | old_archive_from_expsyms_cmds= | |
9739 | thread_safe_flag_spec= | |
9740 | whole_archive_flag_spec= | |
9741 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9742 | # included in the symbol list | |
9743 | include_expsyms= | |
9744 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9745 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9746 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9747 | # as well as any symbol that contains `d'. | |
9748 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9749 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9750 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9751 | # the symbol is explicitly referenced. Since portable code cannot | |
9752 | # rely on this symbol name, it's probably fine to never include it in | |
9753 | # preloaded symbol tables. | |
9754 | # Exclude shared library initialization/finalization symbols. | |
9755 | extract_expsyms_cmds= | |
db137867 | 9756 | |
db137867 | 9757 | case $host_os in |
7083c021 AC |
9758 | cygwin* | mingw* | pw32* | cegcc*) |
9759 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9760 | # When not using gcc, we currently assume that we are using | |
9761 | # Microsoft Visual C++. | |
9762 | if test "$GCC" != yes; then | |
9763 | with_gnu_ld=no | |
9764 | fi | |
db137867 | 9765 | ;; |
7083c021 AC |
9766 | interix*) |
9767 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9768 | with_gnu_ld=yes | |
db137867 | 9769 | ;; |
7083c021 AC |
9770 | openbsd*) |
9771 | with_gnu_ld=no | |
db137867 | 9772 | ;; |
db137867 | 9773 | esac |
db137867 | 9774 | |
7083c021 | 9775 | ld_shlibs=yes |
b6d0720c AC |
9776 | |
9777 | # On some targets, GNU ld is compatible enough with the native linker | |
9778 | # that we're better off using the native interface for both. | |
9779 | lt_use_gnu_ld_interface=no | |
7083c021 | 9780 | if test "$with_gnu_ld" = yes; then |
b6d0720c AC |
9781 | case $host_os in |
9782 | aix*) | |
9783 | # The AIX port of GNU ld has always aspired to compatibility | |
9784 | # with the native linker. However, as the warning in the GNU ld | |
9785 | # block says, versions before 2.19.5* couldn't really create working | |
9786 | # shared libraries, regardless of the interface used. | |
9787 | case `$LD -v 2>&1` in | |
9788 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9789 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9790 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9791 | *) | |
9792 | lt_use_gnu_ld_interface=yes | |
9793 | ;; | |
9794 | esac | |
9795 | ;; | |
9796 | *) | |
9797 | lt_use_gnu_ld_interface=yes | |
9798 | ;; | |
9799 | esac | |
9800 | fi | |
9801 | ||
9802 | if test "$lt_use_gnu_ld_interface" = yes; then | |
7083c021 AC |
9803 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9804 | wlarc='${wl}' | |
db137867 | 9805 | |
7083c021 AC |
9806 | # Set some defaults for GNU ld with shared library support. These |
9807 | # are reset later if shared libraries are not supported. Putting them | |
9808 | # here allows them to be overridden if necessary. | |
9809 | runpath_var=LD_RUN_PATH | |
9810 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9811 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9812 | # ancient GNU ld didn't support --whole-archive et. al. | |
9813 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9814 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
db137867 | 9815 | else |
7083c021 | 9816 | whole_archive_flag_spec= |
db137867 | 9817 | fi |
7083c021 AC |
9818 | supports_anon_versioning=no |
9819 | case `$LD -v 2>&1` in | |
b6d0720c | 9820 | *GNU\ gold*) supports_anon_versioning=yes ;; |
7083c021 AC |
9821 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9822 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9823 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9824 | *\ 2.11.*) ;; # other 2.11 versions | |
9825 | *) supports_anon_versioning=yes ;; | |
db137867 | 9826 | esac |
db137867 | 9827 | |
7083c021 AC |
9828 | # See if GNU ld supports shared libraries. |
9829 | case $host_os in | |
9830 | aix[3-9]*) | |
9831 | # On AIX/PPC, the GNU linker is very broken | |
9832 | if test "$host_cpu" != ia64; then | |
9833 | ld_shlibs=no | |
9834 | cat <<_LT_EOF 1>&2 | |
db137867 | 9835 | |
b6d0720c | 9836 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
7083c021 AC |
9837 | *** to be unable to reliably create shared libraries on AIX. |
9838 | *** Therefore, libtool is disabling shared libraries support. If you | |
b6d0720c AC |
9839 | *** really care for shared libraries, you may want to install binutils |
9840 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9841 | *** You will then need to restart the configuration process. | |
db137867 | 9842 | |
7083c021 AC |
9843 | _LT_EOF |
9844 | fi | |
9845 | ;; | |
db137867 AC |
9846 | |
9847 | amigaos*) | |
7083c021 AC |
9848 | case $host_cpu in |
9849 | powerpc) | |
9850 | # see comment about AmigaOS4 .so support | |
9851 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9852 | archive_expsym_cmds='' | |
9853 | ;; | |
9854 | m68k) | |
9855 | 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)' | |
9856 | hardcode_libdir_flag_spec='-L$libdir' | |
9857 | hardcode_minus_L=yes | |
9858 | ;; | |
9859 | esac | |
db137867 AC |
9860 | ;; |
9861 | ||
9862 | beos*) | |
7083c021 AC |
9863 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9864 | allow_undefined_flag=unsupported | |
db137867 AC |
9865 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9866 | # support --undefined. This deserves some investigation. FIXME | |
7083c021 | 9867 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
db137867 | 9868 | else |
7083c021 | 9869 | ld_shlibs=no |
db137867 AC |
9870 | fi |
9871 | ;; | |
9872 | ||
7083c021 AC |
9873 | cygwin* | mingw* | pw32* | cegcc*) |
9874 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
db137867 | 9875 | # as there is no search path for DLLs. |
7083c021 | 9876 | hardcode_libdir_flag_spec='-L$libdir' |
b6d0720c | 9877 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
7083c021 AC |
9878 | allow_undefined_flag=unsupported |
9879 | always_export_symbols=no | |
9880 | enable_shared_with_static_runtimes=yes | |
b6d0720c AC |
9881 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
9882 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
7083c021 AC |
9883 | |
9884 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9885 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
db137867 AC |
9886 | # If the export-symbols file already is a .def file (1st line |
9887 | # is EXPORTS), use it as is; otherwise, prepend... | |
7083c021 | 9888 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
db137867 AC |
9889 | cp $export_symbols $output_objdir/$soname.def; |
9890 | else | |
9891 | echo EXPORTS > $output_objdir/$soname.def; | |
9892 | cat $export_symbols >> $output_objdir/$soname.def; | |
9893 | fi~ | |
9894 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9895 | else | |
7083c021 | 9896 | ld_shlibs=no |
db137867 AC |
9897 | fi |
9898 | ;; | |
9899 | ||
b6d0720c AC |
9900 | haiku*) |
9901 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9902 | link_all_deplibs=yes | |
9903 | ;; | |
9904 | ||
db137867 | 9905 | interix[3-9]*) |
7083c021 AC |
9906 | hardcode_direct=no |
9907 | hardcode_shlibpath_var=no | |
9908 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9909 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
9910 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9911 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9912 | # default) and relocated if they conflict, which is a slow very memory | |
9913 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9914 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9915 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7083c021 AC |
9916 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9917 | 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' | |
db137867 AC |
9918 | ;; |
9919 | ||
b6d0720c | 9920 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
7083c021 AC |
9921 | tmp_diet=no |
9922 | if test "$host_os" = linux-dietlibc; then | |
9923 | case $cc_basename in | |
9924 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9925 | esac | |
9926 | fi | |
9927 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9928 | && test "$tmp_diet" = no | |
9929 | then | |
b6d0720c | 9930 | tmp_addflag=' $pic_flag' |
7083c021 | 9931 | tmp_sharedflag='-shared' |
db137867 | 9932 | case $cc_basename,$host_cpu in |
7083c021 | 9933 | pgcc*) # Portland Group C compiler |
b6d0720c | 9934 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
db137867 AC |
9935 | tmp_addflag=' $pic_flag' |
9936 | ;; | |
b6d0720c AC |
9937 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9938 | # Portland Group f77 and f90 compilers | |
9939 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
db137867 | 9940 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7083c021 | 9941 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
db137867 AC |
9942 | tmp_addflag=' -i_dynamic' ;; |
9943 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9944 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9945 | ifc* | ifort*) # Intel Fortran compiler | |
9946 | tmp_addflag=' -nofor_main' ;; | |
7083c021 AC |
9947 | lf95*) # Lahey Fortran 8.1 |
9948 | whole_archive_flag_spec= | |
9949 | tmp_sharedflag='--shared' ;; | |
b6d0720c | 9950 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
7083c021 AC |
9951 | tmp_sharedflag='-qmkshrobj' |
9952 | tmp_addflag= ;; | |
b6d0720c AC |
9953 | nvcc*) # Cuda Compiler Driver 2.2 |
9954 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9955 | compiler_needs_object=yes | |
9956 | ;; | |
db137867 AC |
9957 | esac |
9958 | case `$CC -V 2>&1 | sed 5q` in | |
9959 | *Sun\ C*) # Sun C 5.9 | |
b6d0720c | 9960 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
7083c021 | 9961 | compiler_needs_object=yes |
db137867 AC |
9962 | tmp_sharedflag='-G' ;; |
9963 | *Sun\ F*) # Sun Fortran 8.3 | |
9964 | tmp_sharedflag='-G' ;; | |
db137867 | 9965 | esac |
7083c021 | 9966 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
db137867 | 9967 | |
7083c021 AC |
9968 | if test "x$supports_anon_versioning" = xyes; then |
9969 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9970 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9971 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9972 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9973 | fi | |
9974 | ||
9975 | case $cc_basename in | |
b6d0720c | 9976 | xlf* | bgf* | bgxlf* | mpixlf*) |
7083c021 AC |
9977 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9978 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
a949ab1a | 9979 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
b6d0720c | 9980 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
7083c021 AC |
9981 | if test "x$supports_anon_versioning" = xyes; then |
9982 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9983 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9984 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
b6d0720c | 9985 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
7083c021 AC |
9986 | fi |
9987 | ;; | |
9988 | esac | |
db137867 | 9989 | else |
7083c021 | 9990 | ld_shlibs=no |
db137867 AC |
9991 | fi |
9992 | ;; | |
9993 | ||
96f4052b | 9994 | netbsd*) |
7083c021 AC |
9995 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9996 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
db137867 AC |
9997 | wlarc= |
9998 | else | |
b6d0720c AC |
9999 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10000 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 AC |
10001 | fi |
10002 | ;; | |
10003 | ||
10004 | solaris*) | |
7083c021 AC |
10005 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
10006 | ld_shlibs=no | |
10007 | cat <<_LT_EOF 1>&2 | |
db137867 AC |
10008 | |
10009 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10010 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10011 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10012 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10013 | *** your PATH or compiler configuration so that the native linker is | |
10014 | *** used, and then restart. | |
10015 | ||
7083c021 AC |
10016 | _LT_EOF |
10017 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
b6d0720c AC |
10018 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10019 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 | 10020 | else |
7083c021 | 10021 | ld_shlibs=no |
db137867 AC |
10022 | fi |
10023 | ;; | |
10024 | ||
10025 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10026 | case `$LD -v 2>&1` in | |
10027 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7083c021 | 10028 | ld_shlibs=no |
db137867 AC |
10029 | cat <<_LT_EOF 1>&2 |
10030 | ||
10031 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10032 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10033 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10034 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10035 | *** your PATH or compiler configuration so that the native linker is | |
10036 | *** used, and then restart. | |
10037 | ||
10038 | _LT_EOF | |
10039 | ;; | |
10040 | *) | |
7083c021 AC |
10041 | # For security reasons, it is highly recommended that you always |
10042 | # use absolute paths for naming shared libraries, and exclude the | |
10043 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10044 | # requires that you compile everything twice, which is a pain. | |
10045 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10046 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10047 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10048 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 | 10049 | else |
7083c021 | 10050 | ld_shlibs=no |
db137867 AC |
10051 | fi |
10052 | ;; | |
10053 | esac | |
10054 | ;; | |
10055 | ||
10056 | sunos4*) | |
7083c021 | 10057 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
db137867 | 10058 | wlarc= |
7083c021 AC |
10059 | hardcode_direct=yes |
10060 | hardcode_shlibpath_var=no | |
db137867 AC |
10061 | ;; |
10062 | ||
10063 | *) | |
7083c021 | 10064 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
b6d0720c AC |
10065 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10066 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
db137867 | 10067 | else |
7083c021 | 10068 | ld_shlibs=no |
db137867 AC |
10069 | fi |
10070 | ;; | |
10071 | esac | |
10072 | ||
7083c021 | 10073 | if test "$ld_shlibs" = no; then |
db137867 | 10074 | runpath_var= |
7083c021 AC |
10075 | hardcode_libdir_flag_spec= |
10076 | export_dynamic_flag_spec= | |
10077 | whole_archive_flag_spec= | |
db137867 AC |
10078 | fi |
10079 | else | |
10080 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10081 | case $host_os in | |
10082 | aix3*) | |
7083c021 AC |
10083 | allow_undefined_flag=unsupported |
10084 | always_export_symbols=yes | |
10085 | 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' | |
db137867 AC |
10086 | # Note: this linker hardcodes the directories in LIBPATH if there |
10087 | # are no directories specified by -L. | |
7083c021 | 10088 | hardcode_minus_L=yes |
db137867 AC |
10089 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
10090 | # Neither direct hardcoding nor static linking is supported with a | |
10091 | # broken collect2. | |
7083c021 | 10092 | hardcode_direct=unsupported |
db137867 AC |
10093 | fi |
10094 | ;; | |
10095 | ||
b676ea3b | 10096 | aix[4-9]*) |
db137867 AC |
10097 | if test "$host_cpu" = ia64; then |
10098 | # On IA64, the linker does run time linking by default, so we don't | |
10099 | # have to do anything special. | |
10100 | aix_use_runtimelinking=no | |
10101 | exp_sym_flag='-Bexport' | |
10102 | no_entry_flag="" | |
10103 | else | |
10104 | # If we're using GNU nm, then we don't want the "-C" option. | |
10105 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
b6d0720c AC |
10106 | # Also, AIX nm treats weak defined symbols like other global |
10107 | # defined symbols, whereas GNU nm marks them as "W". | |
7083c021 | 10108 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
b6d0720c | 10109 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
db137867 | 10110 | else |
7083c021 | 10111 | 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' |
db137867 AC |
10112 | fi |
10113 | aix_use_runtimelinking=no | |
10114 | ||
10115 | # Test if we are trying to use run time linking or normal | |
10116 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10117 | # need to do runtime linking. | |
b676ea3b | 10118 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
db137867 | 10119 | for ld_flag in $LDFLAGS; do |
7083c021 AC |
10120 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
10121 | aix_use_runtimelinking=yes | |
10122 | break | |
10123 | fi | |
db137867 AC |
10124 | done |
10125 | ;; | |
10126 | esac | |
10127 | ||
10128 | exp_sym_flag='-bexport' | |
10129 | no_entry_flag='-bnoentry' | |
10130 | fi | |
10131 | ||
10132 | # When large executables or shared objects are built, AIX ld can | |
10133 | # have problems creating the table of contents. If linking a library | |
10134 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10135 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10136 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10137 | ||
7083c021 AC |
10138 | archive_cmds='' |
10139 | hardcode_direct=yes | |
10140 | hardcode_direct_absolute=yes | |
10141 | hardcode_libdir_separator=':' | |
10142 | link_all_deplibs=yes | |
10143 | file_list_spec='${wl}-f,' | |
db137867 AC |
10144 | |
10145 | if test "$GCC" = yes; then | |
10146 | case $host_os in aix4.[012]|aix4.[012].*) | |
10147 | # We only want to do this on AIX 4.2 and lower, the check | |
10148 | # below for broken collect2 doesn't work under 4.3+ | |
10149 | collect2name=`${CC} -print-prog-name=collect2` | |
7083c021 AC |
10150 | if test -f "$collect2name" && |
10151 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
db137867 | 10152 | then |
7083c021 AC |
10153 | # We have reworked collect2 |
10154 | : | |
db137867 | 10155 | else |
7083c021 AC |
10156 | # We have old collect2 |
10157 | hardcode_direct=unsupported | |
10158 | # It fails to find uninstalled libraries when the uninstalled | |
10159 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10160 | # to unsupported forces relinking | |
10161 | hardcode_minus_L=yes | |
10162 | hardcode_libdir_flag_spec='-L$libdir' | |
10163 | hardcode_libdir_separator= | |
db137867 AC |
10164 | fi |
10165 | ;; | |
10166 | esac | |
10167 | shared_flag='-shared' | |
10168 | if test "$aix_use_runtimelinking" = yes; then | |
10169 | shared_flag="$shared_flag "'${wl}-G' | |
10170 | fi | |
10171 | else | |
10172 | # not using gcc | |
10173 | if test "$host_cpu" = ia64; then | |
7083c021 AC |
10174 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10175 | # chokes on -Wl,-G. The following line is correct: | |
db137867 AC |
10176 | shared_flag='-G' |
10177 | else | |
10178 | if test "$aix_use_runtimelinking" = yes; then | |
10179 | shared_flag='${wl}-G' | |
10180 | else | |
10181 | shared_flag='${wl}-bM:SRE' | |
10182 | fi | |
10183 | fi | |
10184 | fi | |
10185 | ||
7083c021 | 10186 | export_dynamic_flag_spec='${wl}-bexpall' |
db137867 AC |
10187 | # It seems that -bexpall does not export symbols beginning with |
10188 | # underscore (_), so it is better to generate a list of symbols to export. | |
7083c021 | 10189 | always_export_symbols=yes |
db137867 AC |
10190 | if test "$aix_use_runtimelinking" = yes; then |
10191 | # Warning - without using the other runtime loading flags (-brtl), | |
10192 | # -berok will link without error, but may produce a broken library. | |
7083c021 AC |
10193 | allow_undefined_flag='-berok' |
10194 | # Determine the default libpath from the value encoded in an | |
10195 | # empty executable. | |
b6d0720c AC |
10196 | if test "${lt_cv_aix_libpath+set}" = set; then |
10197 | aix_libpath=$lt_cv_aix_libpath | |
10198 | else | |
10199 | if ${lt_cv_aix_libpath_+:} false; then : | |
10200 | $as_echo_n "(cached) " >&6 | |
10201 | else | |
10202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
10203 | /* end confdefs.h. */ |
10204 | ||
10205 | int | |
10206 | main () | |
10207 | { | |
10208 | ||
10209 | ; | |
10210 | return 0; | |
10211 | } | |
10212 | _ACEOF | |
7083c021 | 10213 | if ac_fn_c_try_link "$LINENO"; then : |
db137867 | 10214 | |
b6d0720c AC |
10215 | lt_aix_libpath_sed=' |
10216 | /Import File Strings/,/^$/ { | |
10217 | /^0/ { | |
10218 | s/^0 *\([^ ]*\) *$/\1/ | |
10219 | p | |
10220 | } | |
10221 | }' | |
10222 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10223 | # Check for a 64-bit object if we didn't find anything. | |
10224 | if test -z "$lt_cv_aix_libpath_"; then | |
10225 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10226 | fi | |
db137867 | 10227 | fi |
7083c021 AC |
10228 | rm -f core conftest.err conftest.$ac_objext \ |
10229 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
10230 | if test -z "$lt_cv_aix_libpath_"; then |
10231 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10232 | fi | |
10233 | ||
10234 | fi | |
10235 | ||
10236 | aix_libpath=$lt_cv_aix_libpath_ | |
10237 | fi | |
db137867 | 10238 | |
7083c021 | 10239 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
b6d0720c | 10240 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7083c021 | 10241 | else |
db137867 | 10242 | if test "$host_cpu" = ia64; then |
7083c021 AC |
10243 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
10244 | allow_undefined_flag="-z nodefs" | |
10245 | 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" | |
db137867 | 10246 | else |
7083c021 AC |
10247 | # Determine the default libpath from the value encoded in an |
10248 | # empty executable. | |
b6d0720c AC |
10249 | if test "${lt_cv_aix_libpath+set}" = set; then |
10250 | aix_libpath=$lt_cv_aix_libpath | |
10251 | else | |
10252 | if ${lt_cv_aix_libpath_+:} false; then : | |
10253 | $as_echo_n "(cached) " >&6 | |
10254 | else | |
10255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
10256 | /* end confdefs.h. */ |
10257 | ||
10258 | int | |
10259 | main () | |
10260 | { | |
10261 | ||
10262 | ; | |
10263 | return 0; | |
10264 | } | |
10265 | _ACEOF | |
7083c021 | 10266 | if ac_fn_c_try_link "$LINENO"; then : |
db137867 | 10267 | |
b6d0720c AC |
10268 | lt_aix_libpath_sed=' |
10269 | /Import File Strings/,/^$/ { | |
10270 | /^0/ { | |
10271 | s/^0 *\([^ ]*\) *$/\1/ | |
10272 | p | |
10273 | } | |
10274 | }' | |
10275 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10276 | # Check for a 64-bit object if we didn't find anything. | |
10277 | if test -z "$lt_cv_aix_libpath_"; then | |
10278 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10279 | fi | |
db137867 | 10280 | fi |
7083c021 AC |
10281 | rm -f core conftest.err conftest.$ac_objext \ |
10282 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
10283 | if test -z "$lt_cv_aix_libpath_"; then |
10284 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
10285 | fi | |
10286 | ||
10287 | fi | |
10288 | ||
10289 | aix_libpath=$lt_cv_aix_libpath_ | |
10290 | fi | |
db137867 | 10291 | |
7083c021 | 10292 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
db137867 AC |
10293 | # Warning - without using the other run time loading flags, |
10294 | # -berok will link without error, but may produce a broken library. | |
7083c021 AC |
10295 | no_undefined_flag=' ${wl}-bernotok' |
10296 | allow_undefined_flag=' ${wl}-berok' | |
b6d0720c AC |
10297 | if test "$with_gnu_ld" = yes; then |
10298 | # We only use this code for GNU lds that support --whole-archive. | |
10299 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10300 | else | |
10301 | # Exported symbols can be pulled into shared objects from archives | |
10302 | whole_archive_flag_spec='$convenience' | |
10303 | fi | |
7083c021 | 10304 | archive_cmds_need_lc=yes |
db137867 | 10305 | # This is similar to how AIX traditionally builds its shared libraries. |
7083c021 | 10306 | 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' |
db137867 AC |
10307 | fi |
10308 | fi | |
10309 | ;; | |
10310 | ||
10311 | amigaos*) | |
7083c021 AC |
10312 | case $host_cpu in |
10313 | powerpc) | |
10314 | # see comment about AmigaOS4 .so support | |
10315 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10316 | archive_expsym_cmds='' | |
10317 | ;; | |
10318 | m68k) | |
10319 | 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)' | |
10320 | hardcode_libdir_flag_spec='-L$libdir' | |
10321 | hardcode_minus_L=yes | |
10322 | ;; | |
10323 | esac | |
db137867 AC |
10324 | ;; |
10325 | ||
10326 | bsdi[45]*) | |
7083c021 | 10327 | export_dynamic_flag_spec=-rdynamic |
db137867 AC |
10328 | ;; |
10329 | ||
7083c021 | 10330 | cygwin* | mingw* | pw32* | cegcc*) |
db137867 AC |
10331 | # When not using gcc, we currently assume that we are using |
10332 | # Microsoft Visual C++. | |
10333 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10334 | # no search path for DLLs. | |
b6d0720c AC |
10335 | case $cc_basename in |
10336 | cl*) | |
10337 | # Native MSVC | |
10338 | hardcode_libdir_flag_spec=' ' | |
10339 | allow_undefined_flag=unsupported | |
10340 | always_export_symbols=yes | |
10341 | file_list_spec='@' | |
10342 | # Tell ltmain to make .lib files, not .a files. | |
10343 | libext=lib | |
10344 | # Tell ltmain to make .dll files, not .so files. | |
10345 | shrext_cmds=".dll" | |
10346 | # FIXME: Setting linknames here is a bad hack. | |
10347 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10348 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10349 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10350 | else | |
10351 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10352 | fi~ | |
10353 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10354 | linknames=' | |
10355 | # The linker will not automatically build a static lib if we build a DLL. | |
10356 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10357 | enable_shared_with_static_runtimes=yes | |
a949ab1a | 10358 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
b6d0720c AC |
10359 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
10360 | # Don't use ranlib | |
10361 | old_postinstall_cmds='chmod 644 $oldlib' | |
10362 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10363 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10364 | case $lt_outputfile in | |
10365 | *.exe|*.EXE) ;; | |
10366 | *) | |
10367 | lt_outputfile="$lt_outputfile.exe" | |
10368 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10369 | ;; | |
10370 | esac~ | |
10371 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10372 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10373 | $RM "$lt_outputfile.manifest"; | |
10374 | fi' | |
10375 | ;; | |
10376 | *) | |
10377 | # Assume MSVC wrapper | |
10378 | hardcode_libdir_flag_spec=' ' | |
10379 | allow_undefined_flag=unsupported | |
10380 | # Tell ltmain to make .lib files, not .a files. | |
10381 | libext=lib | |
10382 | # Tell ltmain to make .dll files, not .so files. | |
10383 | shrext_cmds=".dll" | |
10384 | # FIXME: Setting linknames here is a bad hack. | |
10385 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10386 | # The linker will automatically build a .lib file if we build a DLL. | |
10387 | old_archive_from_new_cmds='true' | |
10388 | # FIXME: Should let the user specify the lib program. | |
10389 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10390 | enable_shared_with_static_runtimes=yes | |
10391 | ;; | |
10392 | esac | |
db137867 AC |
10393 | ;; |
10394 | ||
7083c021 AC |
10395 | darwin* | rhapsody*) |
10396 | ||
10397 | ||
10398 | archive_cmds_need_lc=no | |
10399 | hardcode_direct=no | |
10400 | hardcode_automatic=yes | |
10401 | hardcode_shlibpath_var=unsupported | |
b6d0720c AC |
10402 | if test "$lt_cv_ld_force_load" = "yes"; then |
10403 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
a949ab1a | 10404 | |
b6d0720c AC |
10405 | else |
10406 | whole_archive_flag_spec='' | |
10407 | fi | |
7083c021 AC |
10408 | link_all_deplibs=yes |
10409 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10410 | case $cc_basename in | |
10411 | ifort*) _lt_dar_can_shared=yes ;; | |
10412 | *) _lt_dar_can_shared=$GCC ;; | |
10413 | esac | |
10414 | if test "$_lt_dar_can_shared" = "yes"; then | |
b6d0720c | 10415 | output_verbose_link_cmd=func_echo_all |
7083c021 AC |
10416 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10417 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10418 | 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}" | |
10419 | 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}" | |
10420 | ||
10421 | else | |
10422 | ld_shlibs=no | |
10423 | fi | |
10424 | ||
db137867 AC |
10425 | ;; |
10426 | ||
10427 | dgux*) | |
7083c021 AC |
10428 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10429 | hardcode_libdir_flag_spec='-L$libdir' | |
10430 | hardcode_shlibpath_var=no | |
db137867 AC |
10431 | ;; |
10432 | ||
db137867 AC |
10433 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10434 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10435 | # does not break anything, and helps significantly (at the cost of a little | |
10436 | # extra space). | |
10437 | freebsd2.2*) | |
7083c021 AC |
10438 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
10439 | hardcode_libdir_flag_spec='-R$libdir' | |
10440 | hardcode_direct=yes | |
10441 | hardcode_shlibpath_var=no | |
db137867 AC |
10442 | ;; |
10443 | ||
10444 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
a949ab1a | 10445 | freebsd2.*) |
7083c021 AC |
10446 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10447 | hardcode_direct=yes | |
10448 | hardcode_minus_L=yes | |
10449 | hardcode_shlibpath_var=no | |
db137867 AC |
10450 | ;; |
10451 | ||
10452 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10453 | freebsd* | dragonfly*) | |
b6d0720c | 10454 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7083c021 AC |
10455 | hardcode_libdir_flag_spec='-R$libdir' |
10456 | hardcode_direct=yes | |
10457 | hardcode_shlibpath_var=no | |
db137867 AC |
10458 | ;; |
10459 | ||
10460 | hpux9*) | |
10461 | if test "$GCC" = yes; then | |
b6d0720c | 10462 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
db137867 | 10463 | else |
7083c021 | 10464 | 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' |
db137867 | 10465 | fi |
7083c021 AC |
10466 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
10467 | hardcode_libdir_separator=: | |
10468 | hardcode_direct=yes | |
db137867 AC |
10469 | |
10470 | # hardcode_minus_L: Not really in the search PATH, | |
10471 | # but as the default location of the library. | |
7083c021 AC |
10472 | hardcode_minus_L=yes |
10473 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10474 | ;; |
10475 | ||
10476 | hpux10*) | |
b6d0720c AC |
10477 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
10478 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 10479 | else |
7083c021 | 10480 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
db137867 AC |
10481 | fi |
10482 | if test "$with_gnu_ld" = no; then | |
7083c021 | 10483 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7083c021 AC |
10484 | hardcode_libdir_separator=: |
10485 | hardcode_direct=yes | |
10486 | hardcode_direct_absolute=yes | |
10487 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10488 | # hardcode_minus_L: Not really in the search PATH, |
10489 | # but as the default location of the library. | |
7083c021 | 10490 | hardcode_minus_L=yes |
db137867 AC |
10491 | fi |
10492 | ;; | |
10493 | ||
10494 | hpux11*) | |
b6d0720c | 10495 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
db137867 AC |
10496 | case $host_cpu in |
10497 | hppa*64*) | |
7083c021 | 10498 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10499 | ;; |
10500 | ia64*) | |
b6d0720c | 10501 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10502 | ;; |
10503 | *) | |
b6d0720c | 10504 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10505 | ;; |
10506 | esac | |
10507 | else | |
10508 | case $host_cpu in | |
10509 | hppa*64*) | |
7083c021 | 10510 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10511 | ;; |
10512 | ia64*) | |
7083c021 | 10513 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
db137867 AC |
10514 | ;; |
10515 | *) | |
b6d0720c AC |
10516 | |
10517 | # Older versions of the 11.00 compiler do not understand -b yet | |
10518 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10520 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10521 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10522 | $as_echo_n "(cached) " >&6 | |
10523 | else | |
10524 | lt_cv_prog_compiler__b=no | |
10525 | save_LDFLAGS="$LDFLAGS" | |
10526 | LDFLAGS="$LDFLAGS -b" | |
10527 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10528 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10529 | # The linker can only warn and ignore the option if not recognized | |
10530 | # So say no if there are warnings | |
10531 | if test -s conftest.err; then | |
10532 | # Append any errors to the config.log. | |
10533 | cat conftest.err 1>&5 | |
10534 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10535 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10536 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10537 | lt_cv_prog_compiler__b=yes | |
10538 | fi | |
10539 | else | |
10540 | lt_cv_prog_compiler__b=yes | |
10541 | fi | |
10542 | fi | |
10543 | $RM -r conftest* | |
10544 | LDFLAGS="$save_LDFLAGS" | |
10545 | ||
10546 | fi | |
10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10548 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10549 | ||
10550 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10551 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10552 | else | |
10553 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10554 | fi | |
10555 | ||
db137867 AC |
10556 | ;; |
10557 | esac | |
10558 | fi | |
10559 | if test "$with_gnu_ld" = no; then | |
7083c021 AC |
10560 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
10561 | hardcode_libdir_separator=: | |
db137867 AC |
10562 | |
10563 | case $host_cpu in | |
10564 | hppa*64*|ia64*) | |
7083c021 AC |
10565 | hardcode_direct=no |
10566 | hardcode_shlibpath_var=no | |
db137867 AC |
10567 | ;; |
10568 | *) | |
7083c021 AC |
10569 | hardcode_direct=yes |
10570 | hardcode_direct_absolute=yes | |
10571 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10572 | |
10573 | # hardcode_minus_L: Not really in the search PATH, | |
10574 | # but as the default location of the library. | |
7083c021 | 10575 | hardcode_minus_L=yes |
db137867 AC |
10576 | ;; |
10577 | esac | |
10578 | fi | |
10579 | ;; | |
10580 | ||
10581 | irix5* | irix6* | nonstopux*) | |
10582 | if test "$GCC" = yes; then | |
b6d0720c | 10583 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
7083c021 AC |
10584 | # Try to use the -exported_symbol ld option, if it does not |
10585 | # work, assume that -exports_file does not work either and | |
10586 | # implicitly export all symbols. | |
b6d0720c AC |
10587 | # This should be the same for all languages, so no per-tag cache variable. |
10588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10589 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10590 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10591 | $as_echo_n "(cached) " >&6 | |
10592 | else | |
10593 | save_LDFLAGS="$LDFLAGS" | |
10594 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 | 10596 | /* end confdefs.h. */ |
b6d0720c | 10597 | int foo (void) { return 0; } |
7083c021 AC |
10598 | _ACEOF |
10599 | if ac_fn_c_try_link "$LINENO"; then : | |
b6d0720c AC |
10600 | lt_cv_irix_exported_symbol=yes |
10601 | else | |
10602 | lt_cv_irix_exported_symbol=no | |
7083c021 AC |
10603 | fi |
10604 | rm -f core conftest.err conftest.$ac_objext \ | |
10605 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
10606 | LDFLAGS="$save_LDFLAGS" |
10607 | fi | |
10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10609 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10610 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10611 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
10612 | fi | |
db137867 | 10613 | else |
b6d0720c AC |
10614 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
10615 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
db137867 | 10616 | fi |
7083c021 AC |
10617 | archive_cmds_need_lc='no' |
10618 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10619 | hardcode_libdir_separator=: | |
10620 | inherit_rpath=yes | |
10621 | link_all_deplibs=yes | |
db137867 AC |
10622 | ;; |
10623 | ||
96f4052b | 10624 | netbsd*) |
7083c021 AC |
10625 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10626 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
db137867 | 10627 | else |
7083c021 | 10628 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
db137867 | 10629 | fi |
7083c021 AC |
10630 | hardcode_libdir_flag_spec='-R$libdir' |
10631 | hardcode_direct=yes | |
10632 | hardcode_shlibpath_var=no | |
db137867 AC |
10633 | ;; |
10634 | ||
10635 | newsos6) | |
7083c021 AC |
10636 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10637 | hardcode_direct=yes | |
10638 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10639 | hardcode_libdir_separator=: | |
10640 | hardcode_shlibpath_var=no | |
10641 | ;; | |
10642 | ||
10643 | *nto* | *qnx*) | |
db137867 AC |
10644 | ;; |
10645 | ||
10646 | openbsd*) | |
10647 | if test -f /usr/libexec/ld.so; then | |
7083c021 AC |
10648 | hardcode_direct=yes |
10649 | hardcode_shlibpath_var=no | |
10650 | hardcode_direct_absolute=yes | |
10651 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10652 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10653 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10654 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10655 | export_dynamic_flag_spec='${wl}-E' | |
db137867 AC |
10656 | else |
10657 | case $host_os in | |
10658 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7083c021 AC |
10659 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10660 | hardcode_libdir_flag_spec='-R$libdir' | |
db137867 AC |
10661 | ;; |
10662 | *) | |
7083c021 AC |
10663 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10664 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
db137867 AC |
10665 | ;; |
10666 | esac | |
7083c021 | 10667 | fi |
db137867 | 10668 | else |
7083c021 | 10669 | ld_shlibs=no |
db137867 AC |
10670 | fi |
10671 | ;; | |
10672 | ||
10673 | os2*) | |
7083c021 AC |
10674 | hardcode_libdir_flag_spec='-L$libdir' |
10675 | hardcode_minus_L=yes | |
10676 | allow_undefined_flag=unsupported | |
b6d0720c | 10677 | 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' |
7083c021 | 10678 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
db137867 AC |
10679 | ;; |
10680 | ||
10681 | osf3*) | |
10682 | if test "$GCC" = yes; then | |
7083c021 | 10683 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
b6d0720c | 10684 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
db137867 | 10685 | else |
7083c021 | 10686 | allow_undefined_flag=' -expect_unresolved \*' |
b6d0720c | 10687 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
db137867 | 10688 | fi |
7083c021 AC |
10689 | archive_cmds_need_lc='no' |
10690 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10691 | hardcode_libdir_separator=: | |
db137867 AC |
10692 | ;; |
10693 | ||
10694 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10695 | if test "$GCC" = yes; then | |
7083c021 | 10696 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
b6d0720c | 10697 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
7083c021 | 10698 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
db137867 | 10699 | else |
7083c021 | 10700 | allow_undefined_flag=' -expect_unresolved \*' |
b6d0720c | 10701 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
7083c021 | 10702 | 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~ |
b6d0720c | 10703 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
db137867 AC |
10704 | |
10705 | # Both c and cxx compiler support -rpath directly | |
7083c021 | 10706 | hardcode_libdir_flag_spec='-rpath $libdir' |
db137867 | 10707 | fi |
7083c021 AC |
10708 | archive_cmds_need_lc='no' |
10709 | hardcode_libdir_separator=: | |
db137867 AC |
10710 | ;; |
10711 | ||
10712 | solaris*) | |
7083c021 | 10713 | no_undefined_flag=' -z defs' |
db137867 AC |
10714 | if test "$GCC" = yes; then |
10715 | wlarc='${wl}' | |
b6d0720c | 10716 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7083c021 | 10717 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
b6d0720c | 10718 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
db137867 | 10719 | else |
7083c021 AC |
10720 | case `$CC -V 2>&1` in |
10721 | *"Compilers 5.0"*) | |
10722 | wlarc='' | |
10723 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10724 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10725 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10726 | ;; | |
10727 | *) | |
10728 | wlarc='${wl}' | |
10729 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10730 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10731 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10732 | ;; | |
10733 | esac | |
db137867 | 10734 | fi |
7083c021 AC |
10735 | hardcode_libdir_flag_spec='-R$libdir' |
10736 | hardcode_shlibpath_var=no | |
db137867 AC |
10737 | case $host_os in |
10738 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10739 | *) | |
10740 | # The compiler driver will combine and reorder linker options, | |
10741 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10742 | # but is careful enough not to reorder. | |
7083c021 | 10743 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
db137867 | 10744 | if test "$GCC" = yes; then |
7083c021 | 10745 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
db137867 | 10746 | else |
7083c021 | 10747 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
db137867 AC |
10748 | fi |
10749 | ;; | |
10750 | esac | |
7083c021 | 10751 | link_all_deplibs=yes |
db137867 AC |
10752 | ;; |
10753 | ||
10754 | sunos4*) | |
10755 | if test "x$host_vendor" = xsequent; then | |
10756 | # Use $CC to link under sequent, because it throws in some extra .o | |
10757 | # files that make .init and .fini sections work. | |
7083c021 | 10758 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
db137867 | 10759 | else |
7083c021 | 10760 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
db137867 | 10761 | fi |
7083c021 AC |
10762 | hardcode_libdir_flag_spec='-L$libdir' |
10763 | hardcode_direct=yes | |
10764 | hardcode_minus_L=yes | |
10765 | hardcode_shlibpath_var=no | |
db137867 AC |
10766 | ;; |
10767 | ||
10768 | sysv4) | |
10769 | case $host_vendor in | |
10770 | sni) | |
7083c021 AC |
10771 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10772 | hardcode_direct=yes # is this really true??? | |
db137867 AC |
10773 | ;; |
10774 | siemens) | |
10775 | ## LD is ld it makes a PLAMLIB | |
10776 | ## CC just makes a GrossModule. | |
7083c021 AC |
10777 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10778 | reload_cmds='$CC -r -o $output$reload_objs' | |
10779 | hardcode_direct=no | |
db137867 AC |
10780 | ;; |
10781 | motorola) | |
7083c021 AC |
10782 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10783 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
db137867 AC |
10784 | ;; |
10785 | esac | |
10786 | runpath_var='LD_RUN_PATH' | |
7083c021 | 10787 | hardcode_shlibpath_var=no |
db137867 AC |
10788 | ;; |
10789 | ||
10790 | sysv4.3*) | |
7083c021 AC |
10791 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10792 | hardcode_shlibpath_var=no | |
10793 | export_dynamic_flag_spec='-Bexport' | |
db137867 AC |
10794 | ;; |
10795 | ||
10796 | sysv4*MP*) | |
10797 | if test -d /usr/nec; then | |
7083c021 AC |
10798 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10799 | hardcode_shlibpath_var=no | |
db137867 AC |
10800 | runpath_var=LD_RUN_PATH |
10801 | hardcode_runpath_var=yes | |
7083c021 | 10802 | ld_shlibs=yes |
db137867 AC |
10803 | fi |
10804 | ;; | |
10805 | ||
10806 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
7083c021 AC |
10807 | no_undefined_flag='${wl}-z,text' |
10808 | archive_cmds_need_lc=no | |
10809 | hardcode_shlibpath_var=no | |
db137867 AC |
10810 | runpath_var='LD_RUN_PATH' |
10811 | ||
10812 | if test "$GCC" = yes; then | |
7083c021 AC |
10813 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10814 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 10815 | else |
7083c021 AC |
10816 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10817 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 AC |
10818 | fi |
10819 | ;; | |
10820 | ||
10821 | sysv5* | sco3.2v5* | sco5v6*) | |
10822 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10823 | # link with -lc, and that would cause any symbols used from libc to | |
10824 | # always be unresolved, which means just about no library would | |
10825 | # ever link correctly. If we're not using GNU ld we use -z text | |
10826 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10827 | # as -z defs. | |
7083c021 AC |
10828 | no_undefined_flag='${wl}-z,text' |
10829 | allow_undefined_flag='${wl}-z,nodefs' | |
10830 | archive_cmds_need_lc=no | |
10831 | hardcode_shlibpath_var=no | |
10832 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10833 | hardcode_libdir_separator=':' | |
10834 | link_all_deplibs=yes | |
10835 | export_dynamic_flag_spec='${wl}-Bexport' | |
db137867 AC |
10836 | runpath_var='LD_RUN_PATH' |
10837 | ||
10838 | if test "$GCC" = yes; then | |
7083c021 AC |
10839 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10840 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 | 10841 | else |
7083c021 AC |
10842 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10843 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
db137867 AC |
10844 | fi |
10845 | ;; | |
10846 | ||
10847 | uts4*) | |
7083c021 AC |
10848 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10849 | hardcode_libdir_flag_spec='-L$libdir' | |
10850 | hardcode_shlibpath_var=no | |
db137867 AC |
10851 | ;; |
10852 | ||
10853 | *) | |
7083c021 | 10854 | ld_shlibs=no |
db137867 AC |
10855 | ;; |
10856 | esac | |
7083c021 AC |
10857 | |
10858 | if test x$host_vendor = xsni; then | |
10859 | case $host in | |
10860 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10861 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10862 | ;; | |
10863 | esac | |
10864 | fi | |
db137867 AC |
10865 | fi |
10866 | ||
7083c021 AC |
10867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10868 | $as_echo "$ld_shlibs" >&6; } | |
10869 | test "$ld_shlibs" = no && can_build_shared=no | |
10870 | ||
10871 | with_gnu_ld=$with_gnu_ld | |
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | ||
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
db137867 AC |
10886 | |
10887 | # | |
10888 | # Do we need to explicitly link libc? | |
10889 | # | |
7083c021 | 10890 | case "x$archive_cmds_need_lc" in |
db137867 AC |
10891 | x|xyes) |
10892 | # Assume -lc should be added | |
7083c021 | 10893 | archive_cmds_need_lc=yes |
db137867 AC |
10894 | |
10895 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
7083c021 | 10896 | case $archive_cmds in |
db137867 AC |
10897 | *'~'*) |
10898 | # FIXME: we may have to deal with multi-command sequences. | |
10899 | ;; | |
10900 | '$CC '*) | |
10901 | # Test whether the compiler implicitly links with -lc since on some | |
10902 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10903 | # to ld, don't add -lc before -lgcc. | |
7083c021 | 10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
030272f3 | 10905 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b6d0720c AC |
10906 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10907 | $as_echo_n "(cached) " >&6 | |
10908 | else | |
10909 | $RM conftest* | |
10910 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
db137867 | 10911 | |
b6d0720c | 10912 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
db137867 AC |
10913 | (eval $ac_compile) 2>&5 |
10914 | ac_status=$? | |
7083c021 AC |
10915 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10916 | test $ac_status = 0; } 2>conftest.err; then | |
b6d0720c AC |
10917 | soname=conftest |
10918 | lib=conftest | |
10919 | libobjs=conftest.$ac_objext | |
10920 | deplibs= | |
10921 | wl=$lt_prog_compiler_wl | |
10922 | pic_flag=$lt_prog_compiler_pic | |
10923 | compiler_flags=-v | |
10924 | linker_flags=-v | |
10925 | verstring= | |
10926 | output_objdir=. | |
10927 | libname=conftest | |
10928 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10929 | allow_undefined_flag= | |
10930 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
7083c021 | 10931 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
db137867 | 10932 | ac_status=$? |
7083c021 AC |
10933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10934 | test $ac_status = 0; } | |
b6d0720c AC |
10935 | then |
10936 | lt_cv_archive_cmds_need_lc=no | |
10937 | else | |
10938 | lt_cv_archive_cmds_need_lc=yes | |
10939 | fi | |
10940 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10941 | else | |
10942 | cat conftest.err 1>&5 | |
10943 | fi | |
10944 | $RM conftest* | |
10945 | ||
10946 | fi | |
10947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10948 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10949 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
db137867 AC |
10950 | ;; |
10951 | esac | |
10952 | fi | |
10953 | ;; | |
10954 | esac | |
10955 | ||
db137867 | 10956 | |
db137867 | 10957 | |
db137867 | 10958 | |
db137867 | 10959 | |
db137867 | 10960 | |
db137867 | 10961 | |
db137867 | 10962 | |
db137867 | 10963 | |
db137867 | 10964 | |
db137867 | 10965 | |
db137867 | 10966 | |
db137867 | 10967 | |
db137867 | 10968 | |
db137867 | 10969 | |
db137867 | 10970 | |
db137867 | 10971 | |
db137867 | 10972 | |
db137867 | 10973 | |
db137867 | 10974 | |
db137867 | 10975 | |
db137867 | 10976 | |
db137867 | 10977 | |
db137867 | 10978 | |
db137867 | 10979 | |
db137867 | 10980 | |
db137867 | 10981 | |
db137867 | 10982 | |
db137867 | 10983 | |
db137867 | 10984 | |
db137867 | 10985 | |
db137867 | 10986 | |
db137867 | 10987 | |
db137867 | 10988 | |
db137867 | 10989 | |
db137867 | 10990 | |
db137867 | 10991 | |
db137867 | 10992 | |
db137867 | 10993 | |
db137867 | 10994 | |
db137867 | 10995 | |
db137867 | 10996 | |
b676ea3b | 10997 | |
b676ea3b | 10998 | |
b676ea3b | 10999 | |
db137867 | 11000 | |
db137867 | 11001 | |
db137867 | 11002 | |
db137867 AC |
11003 | |
11004 | ||
db137867 | 11005 | |
db137867 | 11006 | |
db137867 | 11007 | |
db137867 | 11008 | |
db137867 | 11009 | |
db137867 | 11010 | |
db137867 | 11011 | |
db137867 | 11012 | |
db137867 | 11013 | |
db137867 | 11014 | |
db137867 | 11015 | |
db137867 | 11016 | |
db137867 | 11017 | |
db137867 | 11018 | |
db137867 | 11019 | |
db137867 | 11020 | |
db137867 | 11021 | |
db137867 | 11022 | |
db137867 | 11023 | |
db137867 | 11024 | |
db137867 | 11025 | |
db137867 | 11026 | |
db137867 | 11027 | |
db137867 | 11028 | |
db137867 | 11029 | |
db137867 | 11030 | |
db137867 | 11031 | |
db137867 | 11032 | |
db137867 | 11033 | |
db137867 | 11034 | |
db137867 | 11035 | |
db137867 | 11036 | |
db137867 | 11037 | |
db137867 | 11038 | |
db137867 | 11039 | |
db137867 | 11040 | |
db137867 | 11041 | |
db137867 | 11042 | |
db137867 | 11043 | |
db137867 | 11044 | |
db137867 | 11045 | |
db137867 | 11046 | |
db137867 | 11047 | |
db137867 | 11048 | |
db137867 | 11049 | |
db137867 | 11050 | |
db137867 | 11051 | |
db137867 | 11052 | |
db137867 | 11053 | |
db137867 | 11054 | |
db137867 | 11055 | |
db137867 | 11056 | |
db137867 | 11057 | |
db137867 | 11058 | |
db137867 | 11059 | |
db137867 | 11060 | |
db137867 | 11061 | |
db137867 | 11062 | |
db137867 | 11063 | |
db137867 | 11064 | |
db137867 | 11065 | |
db137867 | 11066 | |
db137867 | 11067 | |
b676ea3b | 11068 | |
db137867 | 11069 | |
db137867 | 11070 | |
db137867 | 11071 | |
db137867 | 11072 | |
db137867 | 11073 | |
db137867 | 11074 | |
db137867 | 11075 | |
db137867 | 11076 | |
db137867 | 11077 | |
db137867 | 11078 | |
db137867 | 11079 | |
db137867 | 11080 | |
db137867 | 11081 | |
db137867 | 11082 | |
db137867 | 11083 | |
db137867 | 11084 | |
db137867 | 11085 | |
db137867 | 11086 | |
db137867 | 11087 | |
db137867 | 11088 | |
db137867 | 11089 | |
db137867 | 11090 | |
db137867 | 11091 | |
db137867 | 11092 | |
db137867 | 11093 | |
db137867 | 11094 | |
db137867 | 11095 | |
db137867 | 11096 | |
db137867 | 11097 | |
db137867 | 11098 | |
db137867 | 11099 | |
db137867 | 11100 | |
7083c021 AC |
11101 | |
11102 | ||
11103 | ||
11104 | ||
11105 | ||
11106 | ||
11107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11108 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11109 | ||
11110 | if test "$GCC" = yes; then | |
11111 | case $host_os in | |
11112 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11113 | *) lt_awk_arg="/^libraries:/" ;; | |
11114 | esac | |
b6d0720c AC |
11115 | case $host_os in |
11116 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11117 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11118 | esac | |
11119 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11120 | case $lt_search_path_spec in | |
11121 | *\;*) | |
7083c021 AC |
11122 | # if the path contains ";" then we assume it to be the separator |
11123 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11124 | # assumed that no part of a normal pathname contains ";" but that should | |
11125 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b6d0720c AC |
11126 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11127 | ;; | |
11128 | *) | |
11129 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11130 | ;; | |
11131 | esac | |
7083c021 AC |
11132 | # Ok, now we have the path, separated by spaces, we can step through it |
11133 | # and add multilib dir if necessary. | |
11134 | lt_tmp_lt_search_path_spec= | |
11135 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11136 | for lt_sys_path in $lt_search_path_spec; do | |
11137 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11138 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11139 | else | |
11140 | test -d "$lt_sys_path" && \ | |
11141 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11142 | fi | |
11143 | done | |
b6d0720c | 11144 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
7083c021 AC |
11145 | BEGIN {RS=" "; FS="/|\n";} { |
11146 | lt_foo=""; | |
11147 | lt_count=0; | |
11148 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11149 | if ($lt_i != "" && $lt_i != ".") { | |
11150 | if ($lt_i == "..") { | |
11151 | lt_count++; | |
11152 | } else { | |
11153 | if (lt_count == 0) { | |
11154 | lt_foo="/" $lt_i lt_foo; | |
11155 | } else { | |
11156 | lt_count--; | |
11157 | } | |
11158 | } | |
11159 | } | |
11160 | } | |
11161 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11162 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11163 | }'` | |
b6d0720c AC |
11164 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11165 | # for these hosts. | |
11166 | case $host_os in | |
11167 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11168 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11169 | esac | |
11170 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
7083c021 AC |
11171 | else |
11172 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11173 | fi | |
11174 | library_names_spec= | |
11175 | libname_spec='lib$name' | |
11176 | soname_spec= | |
11177 | shrext_cmds=".so" | |
11178 | postinstall_cmds= | |
11179 | postuninstall_cmds= | |
11180 | finish_cmds= | |
11181 | finish_eval= | |
11182 | shlibpath_var= | |
11183 | shlibpath_overrides_runpath=unknown | |
11184 | version_type=none | |
11185 | dynamic_linker="$host_os ld.so" | |
11186 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11187 | need_lib_prefix=unknown | |
11188 | hardcode_into_libs=no | |
11189 | ||
11190 | # when you set need_version to no, make sure it does not cause -set_version | |
11191 | # flags to be left without arguments | |
11192 | need_version=unknown | |
11193 | ||
11194 | case $host_os in | |
11195 | aix3*) | |
a949ab1a | 11196 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11197 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11198 | shlibpath_var=LIBPATH | |
11199 | ||
11200 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11201 | soname_spec='${libname}${release}${shared_ext}$major' | |
11202 | ;; | |
11203 | ||
11204 | aix[4-9]*) | |
a949ab1a | 11205 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11206 | need_lib_prefix=no |
11207 | need_version=no | |
11208 | hardcode_into_libs=yes | |
11209 | if test "$host_cpu" = ia64; then | |
11210 | # AIX 5 supports IA64 | |
11211 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11212 | shlibpath_var=LD_LIBRARY_PATH | |
11213 | else | |
11214 | # With GCC up to 2.95.x, collect2 would create an import file | |
11215 | # for dependence libraries. The import file would start with | |
11216 | # the line `#! .'. This would cause the generated library to | |
11217 | # depend on `.', always an invalid library. This was fixed in | |
11218 | # development snapshots of GCC prior to 3.0. | |
11219 | case $host_os in | |
11220 | aix4 | aix4.[01] | aix4.[01].*) | |
11221 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11222 | echo ' yes ' | |
11223 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11224 | : | |
11225 | else | |
11226 | can_build_shared=no | |
11227 | fi | |
11228 | ;; | |
11229 | esac | |
11230 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11231 | # soname into executable. Probably we can add versioning support to | |
11232 | # collect2, so additional links can be useful in future. | |
11233 | if test "$aix_use_runtimelinking" = yes; then | |
11234 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11235 | # instead of lib<name>.a to let people know that these are not | |
11236 | # typical AIX shared libraries. | |
11237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11238 | else | |
11239 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11240 | # and later when we are not doing run time linking. | |
11241 | library_names_spec='${libname}${release}.a $libname.a' | |
11242 | soname_spec='${libname}${release}${shared_ext}$major' | |
11243 | fi | |
11244 | shlibpath_var=LIBPATH | |
11245 | fi | |
11246 | ;; | |
11247 | ||
11248 | amigaos*) | |
11249 | case $host_cpu in | |
11250 | powerpc) | |
11251 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11252 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11254 | ;; | |
11255 | m68k) | |
11256 | library_names_spec='$libname.ixlibrary $libname.a' | |
11257 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
b6d0720c | 11258 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
7083c021 AC |
11259 | ;; |
11260 | esac | |
11261 | ;; | |
11262 | ||
11263 | beos*) | |
11264 | library_names_spec='${libname}${shared_ext}' | |
11265 | dynamic_linker="$host_os ld.so" | |
11266 | shlibpath_var=LIBRARY_PATH | |
11267 | ;; | |
11268 | ||
11269 | bsdi[45]*) | |
a949ab1a | 11270 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11271 | need_version=no |
11272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11273 | soname_spec='${libname}${release}${shared_ext}$major' | |
11274 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11275 | shlibpath_var=LD_LIBRARY_PATH | |
11276 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11277 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11278 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11279 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11280 | # libtool to hard-code these into programs | |
11281 | ;; | |
11282 | ||
11283 | cygwin* | mingw* | pw32* | cegcc*) | |
11284 | version_type=windows | |
11285 | shrext_cmds=".dll" | |
11286 | need_version=no | |
11287 | need_lib_prefix=no | |
11288 | ||
b6d0720c AC |
11289 | case $GCC,$cc_basename in |
11290 | yes,*) | |
11291 | # gcc | |
7083c021 AC |
11292 | library_names_spec='$libname.dll.a' |
11293 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11294 | postinstall_cmds='base_file=`basename \${file}`~ | |
11295 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11296 | dldir=$destdir/`dirname \$dlpath`~ | |
11297 | test -d \$dldir || mkdir -p \$dldir~ | |
11298 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11299 | chmod a+x \$dldir/$dlname~ | |
11300 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11301 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11302 | fi' | |
11303 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11304 | dlpath=$dir/\$dldll~ | |
11305 | $RM \$dlpath' | |
11306 | shlibpath_overrides_runpath=yes | |
11307 | ||
11308 | case $host_os in | |
11309 | cygwin*) | |
11310 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11311 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
b6d0720c AC |
11312 | |
11313 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
7083c021 AC |
11314 | ;; |
11315 | mingw* | cegcc*) | |
11316 | # MinGW DLLs use traditional 'lib' prefix | |
11317 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
7083c021 AC |
11318 | ;; |
11319 | pw32*) | |
11320 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11321 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11322 | ;; | |
11323 | esac | |
b6d0720c AC |
11324 | dynamic_linker='Win32 ld.exe' |
11325 | ;; | |
11326 | ||
11327 | *,cl*) | |
11328 | # Native MSVC | |
11329 | libname_spec='$name' | |
11330 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11331 | library_names_spec='${libname}.dll.lib' | |
11332 | ||
11333 | case $build_os in | |
11334 | mingw*) | |
11335 | sys_lib_search_path_spec= | |
11336 | lt_save_ifs=$IFS | |
11337 | IFS=';' | |
11338 | for lt_path in $LIB | |
11339 | do | |
11340 | IFS=$lt_save_ifs | |
11341 | # Let DOS variable expansion print the short 8.3 style file name. | |
11342 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11343 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11344 | done | |
11345 | IFS=$lt_save_ifs | |
11346 | # Convert to MSYS style. | |
11347 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11348 | ;; | |
11349 | cygwin*) | |
11350 | # Convert to unix form, then to dos form, then back to unix form | |
11351 | # but this time dos style (no spaces!) so that the unix form looks | |
11352 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11353 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11354 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11355 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11356 | ;; | |
11357 | *) | |
11358 | sys_lib_search_path_spec="$LIB" | |
11359 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11360 | # It is most probably a Windows format PATH. | |
11361 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11362 | else | |
11363 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11364 | fi | |
11365 | # FIXME: find the short name or the path components, as spaces are | |
11366 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11367 | ;; | |
11368 | esac | |
11369 | ||
11370 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11371 | postinstall_cmds='base_file=`basename \${file}`~ | |
11372 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11373 | dldir=$destdir/`dirname \$dlpath`~ | |
11374 | test -d \$dldir || mkdir -p \$dldir~ | |
11375 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11376 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11377 | dlpath=$dir/\$dldll~ | |
11378 | $RM \$dlpath' | |
11379 | shlibpath_overrides_runpath=yes | |
11380 | dynamic_linker='Win32 link.exe' | |
7083c021 AC |
11381 | ;; |
11382 | ||
11383 | *) | |
b6d0720c | 11384 | # Assume MSVC wrapper |
7083c021 | 11385 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
b6d0720c | 11386 | dynamic_linker='Win32 ld.exe' |
7083c021 AC |
11387 | ;; |
11388 | esac | |
7083c021 AC |
11389 | # FIXME: first we should search . and the directory the executable is in |
11390 | shlibpath_var=PATH | |
11391 | ;; | |
11392 | ||
11393 | darwin* | rhapsody*) | |
11394 | dynamic_linker="$host_os dyld" | |
11395 | version_type=darwin | |
11396 | need_lib_prefix=no | |
11397 | need_version=no | |
11398 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11399 | soname_spec='${libname}${release}${major}$shared_ext' | |
11400 | shlibpath_overrides_runpath=yes | |
11401 | shlibpath_var=DYLD_LIBRARY_PATH | |
11402 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11403 | ||
11404 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11405 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11406 | ;; | |
11407 | ||
11408 | dgux*) | |
a949ab1a | 11409 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11410 | need_lib_prefix=no |
11411 | need_version=no | |
11412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11413 | soname_spec='${libname}${release}${shared_ext}$major' | |
11414 | shlibpath_var=LD_LIBRARY_PATH | |
11415 | ;; | |
11416 | ||
7083c021 AC |
11417 | freebsd* | dragonfly*) |
11418 | # DragonFly does not have aout. When/if they implement a new | |
11419 | # versioning mechanism, adjust this. | |
11420 | if test -x /usr/bin/objformat; then | |
11421 | objformat=`/usr/bin/objformat` | |
11422 | else | |
11423 | case $host_os in | |
a949ab1a | 11424 | freebsd[23].*) objformat=aout ;; |
7083c021 AC |
11425 | *) objformat=elf ;; |
11426 | esac | |
db137867 | 11427 | fi |
5a241f54 | 11428 | version_type=freebsd-$objformat |
7083c021 AC |
11429 | case $version_type in |
11430 | freebsd-elf*) | |
11431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11432 | need_version=no | |
11433 | need_lib_prefix=no | |
11434 | ;; | |
11435 | freebsd-*) | |
11436 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11437 | need_version=yes | |
11438 | ;; | |
11439 | esac | |
11440 | shlibpath_var=LD_LIBRARY_PATH | |
11441 | case $host_os in | |
a949ab1a | 11442 | freebsd2.*) |
7083c021 AC |
11443 | shlibpath_overrides_runpath=yes |
11444 | ;; | |
11445 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11446 | shlibpath_overrides_runpath=yes | |
11447 | hardcode_into_libs=yes | |
11448 | ;; | |
11449 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11450 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11451 | shlibpath_overrides_runpath=no | |
11452 | hardcode_into_libs=yes | |
11453 | ;; | |
11454 | *) # from 4.6 on, and DragonFly | |
11455 | shlibpath_overrides_runpath=yes | |
11456 | hardcode_into_libs=yes | |
11457 | ;; | |
11458 | esac | |
11459 | ;; | |
db137867 | 11460 | |
7083c021 | 11461 | gnu*) |
a949ab1a | 11462 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11463 | need_lib_prefix=no |
11464 | need_version=no | |
11465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11466 | soname_spec='${libname}${release}${shared_ext}$major' | |
11467 | shlibpath_var=LD_LIBRARY_PATH | |
a949ab1a | 11468 | shlibpath_overrides_runpath=no |
7083c021 AC |
11469 | hardcode_into_libs=yes |
11470 | ;; | |
db137867 | 11471 | |
b6d0720c | 11472 | haiku*) |
a949ab1a | 11473 | version_type=linux # correct to gnu/linux during the next big refactor |
b6d0720c AC |
11474 | need_lib_prefix=no |
11475 | need_version=no | |
11476 | dynamic_linker="$host_os runtime_loader" | |
11477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11478 | soname_spec='${libname}${release}${shared_ext}$major' | |
11479 | shlibpath_var=LIBRARY_PATH | |
11480 | shlibpath_overrides_runpath=yes | |
11481 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11482 | hardcode_into_libs=yes | |
11483 | ;; | |
11484 | ||
7083c021 AC |
11485 | hpux9* | hpux10* | hpux11*) |
11486 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11487 | # link against other versions. | |
11488 | version_type=sunos | |
11489 | need_lib_prefix=no | |
11490 | need_version=no | |
11491 | case $host_cpu in | |
11492 | ia64*) | |
11493 | shrext_cmds='.so' | |
11494 | hardcode_into_libs=yes | |
11495 | dynamic_linker="$host_os dld.so" | |
11496 | shlibpath_var=LD_LIBRARY_PATH | |
11497 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11499 | soname_spec='${libname}${release}${shared_ext}$major' | |
11500 | if test "X$HPUX_IA64_MODE" = X32; then | |
11501 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11502 | else | |
11503 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11504 | fi | |
11505 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11506 | ;; | |
11507 | hppa*64*) | |
11508 | shrext_cmds='.sl' | |
11509 | hardcode_into_libs=yes | |
11510 | dynamic_linker="$host_os dld.sl" | |
11511 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11512 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11514 | soname_spec='${libname}${release}${shared_ext}$major' | |
11515 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11516 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11517 | ;; | |
11518 | *) | |
11519 | shrext_cmds='.sl' | |
11520 | dynamic_linker="$host_os dld.sl" | |
11521 | shlibpath_var=SHLIB_PATH | |
11522 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11524 | soname_spec='${libname}${release}${shared_ext}$major' | |
11525 | ;; | |
11526 | esac | |
b6d0720c | 11527 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
7083c021 | 11528 | postinstall_cmds='chmod 555 $lib' |
b6d0720c AC |
11529 | # or fails outright, so override atomically: |
11530 | install_override_mode=555 | |
7083c021 | 11531 | ;; |
db137867 | 11532 | |
7083c021 | 11533 | interix[3-9]*) |
a949ab1a | 11534 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11535 | need_lib_prefix=no |
11536 | need_version=no | |
11537 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11538 | soname_spec='${libname}${release}${shared_ext}$major' | |
11539 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11540 | shlibpath_var=LD_LIBRARY_PATH | |
11541 | shlibpath_overrides_runpath=no | |
11542 | hardcode_into_libs=yes | |
11543 | ;; | |
db137867 | 11544 | |
7083c021 AC |
11545 | irix5* | irix6* | nonstopux*) |
11546 | case $host_os in | |
11547 | nonstopux*) version_type=nonstopux ;; | |
11548 | *) | |
11549 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
a949ab1a | 11550 | version_type=linux # correct to gnu/linux during the next big refactor |
db137867 | 11551 | else |
7083c021 AC |
11552 | version_type=irix |
11553 | fi ;; | |
11554 | esac | |
11555 | need_lib_prefix=no | |
11556 | need_version=no | |
11557 | soname_spec='${libname}${release}${shared_ext}$major' | |
11558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11559 | case $host_os in | |
11560 | irix5* | nonstopux*) | |
11561 | libsuff= shlibsuff= | |
11562 | ;; | |
11563 | *) | |
11564 | case $LD in # libtool.m4 will add one of these switches to LD | |
11565 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11566 | libsuff= shlibsuff= libmagic=32-bit;; | |
11567 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11568 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11569 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11570 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11571 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11572 | esac | |
11573 | ;; | |
11574 | esac | |
11575 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11576 | shlibpath_overrides_runpath=no | |
11577 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11578 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11579 | hardcode_into_libs=yes | |
11580 | ;; | |
db137867 | 11581 | |
7083c021 AC |
11582 | # No shared lib support for Linux oldld, aout, or coff. |
11583 | linux*oldld* | linux*aout* | linux*coff*) | |
11584 | dynamic_linker=no | |
11585 | ;; | |
db137867 | 11586 | |
a949ab1a | 11587 | # This must be glibc/ELF. |
b6d0720c | 11588 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
a949ab1a | 11589 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11590 | need_lib_prefix=no |
11591 | need_version=no | |
11592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11593 | soname_spec='${libname}${release}${shared_ext}$major' | |
11594 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11595 | shlibpath_var=LD_LIBRARY_PATH | |
11596 | shlibpath_overrides_runpath=no | |
b6d0720c | 11597 | |
7083c021 | 11598 | # Some binutils ld are patched to set DT_RUNPATH |
b6d0720c AC |
11599 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11600 | $as_echo_n "(cached) " >&6 | |
11601 | else | |
11602 | lt_cv_shlibpath_overrides_runpath=no | |
11603 | save_LDFLAGS=$LDFLAGS | |
11604 | save_libdir=$libdir | |
11605 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11606 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 | 11608 | /* end confdefs.h. */ |
db137867 | 11609 | |
7083c021 AC |
11610 | int |
11611 | main () | |
11612 | { | |
db137867 | 11613 | |
7083c021 AC |
11614 | ; |
11615 | return 0; | |
11616 | } | |
11617 | _ACEOF | |
11618 | if ac_fn_c_try_link "$LINENO"; then : | |
11619 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
b6d0720c | 11620 | lt_cv_shlibpath_overrides_runpath=yes |
7083c021 AC |
11621 | fi |
11622 | fi | |
11623 | rm -f core conftest.err conftest.$ac_objext \ | |
11624 | conftest$ac_exeext conftest.$ac_ext | |
b6d0720c AC |
11625 | LDFLAGS=$save_LDFLAGS |
11626 | libdir=$save_libdir | |
11627 | ||
11628 | fi | |
11629 | ||
11630 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
db137867 | 11631 | |
7083c021 AC |
11632 | # This implies no fast_install, which is unacceptable. |
11633 | # Some rework will be needed to allow for fast_install | |
11634 | # before this can be enabled. | |
11635 | hardcode_into_libs=yes | |
db137867 | 11636 | |
7083c021 AC |
11637 | # Append ld.so.conf contents to the search path |
11638 | if test -f /etc/ld.so.conf; then | |
b6d0720c AC |
11639 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
11640 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
db137867 | 11641 | fi |
db137867 | 11642 | |
7083c021 AC |
11643 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11644 | # powerpc, because MkLinux only supported shared libraries with the | |
11645 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11646 | # most powerpc-linux boxes support dynamic linking these days and | |
11647 | # people can always --disable-shared, the test was removed, and we | |
11648 | # assume the GNU/Linux dynamic linker is in use. | |
11649 | dynamic_linker='GNU/Linux ld.so' | |
11650 | ;; | |
11651 | ||
7083c021 AC |
11652 | netbsd*) |
11653 | version_type=sunos | |
11654 | need_lib_prefix=no | |
11655 | need_version=no | |
11656 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11658 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11659 | dynamic_linker='NetBSD (a.out) ld.so' | |
11660 | else | |
11661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11662 | soname_spec='${libname}${release}${shared_ext}$major' | |
11663 | dynamic_linker='NetBSD ld.elf_so' | |
11664 | fi | |
11665 | shlibpath_var=LD_LIBRARY_PATH | |
11666 | shlibpath_overrides_runpath=yes | |
11667 | hardcode_into_libs=yes | |
11668 | ;; | |
db137867 | 11669 | |
7083c021 | 11670 | newsos6) |
a949ab1a | 11671 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11673 | shlibpath_var=LD_LIBRARY_PATH | |
11674 | shlibpath_overrides_runpath=yes | |
11675 | ;; | |
db137867 | 11676 | |
7083c021 AC |
11677 | *nto* | *qnx*) |
11678 | version_type=qnx | |
11679 | need_lib_prefix=no | |
11680 | need_version=no | |
11681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11682 | soname_spec='${libname}${release}${shared_ext}$major' | |
11683 | shlibpath_var=LD_LIBRARY_PATH | |
11684 | shlibpath_overrides_runpath=no | |
11685 | hardcode_into_libs=yes | |
11686 | dynamic_linker='ldqnx.so' | |
11687 | ;; | |
db137867 | 11688 | |
7083c021 AC |
11689 | openbsd*) |
11690 | version_type=sunos | |
11691 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11692 | need_lib_prefix=no | |
11693 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11694 | case $host_os in | |
11695 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11696 | *) need_version=no ;; | |
11697 | esac | |
11698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11699 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11700 | shlibpath_var=LD_LIBRARY_PATH | |
11701 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11702 | case $host_os in | |
11703 | openbsd2.[89] | openbsd2.[89].*) | |
11704 | shlibpath_overrides_runpath=no | |
11705 | ;; | |
11706 | *) | |
11707 | shlibpath_overrides_runpath=yes | |
11708 | ;; | |
11709 | esac | |
11710 | else | |
11711 | shlibpath_overrides_runpath=yes | |
11712 | fi | |
11713 | ;; | |
db137867 | 11714 | |
7083c021 AC |
11715 | os2*) |
11716 | libname_spec='$name' | |
11717 | shrext_cmds=".dll" | |
11718 | need_lib_prefix=no | |
11719 | library_names_spec='$libname${shared_ext} $libname.a' | |
11720 | dynamic_linker='OS/2 ld.exe' | |
11721 | shlibpath_var=LIBPATH | |
11722 | ;; | |
db137867 | 11723 | |
7083c021 AC |
11724 | osf3* | osf4* | osf5*) |
11725 | version_type=osf | |
11726 | need_lib_prefix=no | |
11727 | need_version=no | |
11728 | soname_spec='${libname}${release}${shared_ext}$major' | |
11729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11730 | shlibpath_var=LD_LIBRARY_PATH | |
11731 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11732 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11733 | ;; | |
db137867 | 11734 | |
7083c021 AC |
11735 | rdos*) |
11736 | dynamic_linker=no | |
11737 | ;; | |
db137867 | 11738 | |
7083c021 | 11739 | solaris*) |
a949ab1a | 11740 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11741 | need_lib_prefix=no |
11742 | need_version=no | |
11743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11744 | soname_spec='${libname}${release}${shared_ext}$major' | |
11745 | shlibpath_var=LD_LIBRARY_PATH | |
11746 | shlibpath_overrides_runpath=yes | |
11747 | hardcode_into_libs=yes | |
11748 | # ldd complains unless libraries are executable | |
11749 | postinstall_cmds='chmod +x $lib' | |
11750 | ;; | |
db137867 | 11751 | |
7083c021 AC |
11752 | sunos4*) |
11753 | version_type=sunos | |
11754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11755 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11756 | shlibpath_var=LD_LIBRARY_PATH | |
11757 | shlibpath_overrides_runpath=yes | |
11758 | if test "$with_gnu_ld" = yes; then | |
11759 | need_lib_prefix=no | |
11760 | fi | |
11761 | need_version=yes | |
11762 | ;; | |
db137867 | 11763 | |
7083c021 | 11764 | sysv4 | sysv4.3*) |
a949ab1a | 11765 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11767 | soname_spec='${libname}${release}${shared_ext}$major' | |
11768 | shlibpath_var=LD_LIBRARY_PATH | |
11769 | case $host_vendor in | |
11770 | sni) | |
11771 | shlibpath_overrides_runpath=no | |
11772 | need_lib_prefix=no | |
11773 | runpath_var=LD_RUN_PATH | |
11774 | ;; | |
11775 | siemens) | |
11776 | need_lib_prefix=no | |
11777 | ;; | |
11778 | motorola) | |
11779 | need_lib_prefix=no | |
11780 | need_version=no | |
11781 | shlibpath_overrides_runpath=no | |
11782 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11783 | ;; | |
11784 | esac | |
11785 | ;; | |
db137867 | 11786 | |
7083c021 AC |
11787 | sysv4*MP*) |
11788 | if test -d /usr/nec ;then | |
a949ab1a | 11789 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11790 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
11791 | soname_spec='$libname${shared_ext}.$major' | |
11792 | shlibpath_var=LD_LIBRARY_PATH | |
11793 | fi | |
11794 | ;; | |
db137867 | 11795 | |
7083c021 AC |
11796 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11797 | version_type=freebsd-elf | |
11798 | need_lib_prefix=no | |
11799 | need_version=no | |
11800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11801 | soname_spec='${libname}${release}${shared_ext}$major' | |
11802 | shlibpath_var=LD_LIBRARY_PATH | |
11803 | shlibpath_overrides_runpath=yes | |
11804 | hardcode_into_libs=yes | |
11805 | if test "$with_gnu_ld" = yes; then | |
11806 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11807 | else | |
11808 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11809 | case $host_os in | |
11810 | sco3.2v5*) | |
11811 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11812 | ;; | |
11813 | esac | |
11814 | fi | |
11815 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11816 | ;; | |
db137867 | 11817 | |
7083c021 AC |
11818 | tpf*) |
11819 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
a949ab1a | 11820 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11821 | need_lib_prefix=no |
11822 | need_version=no | |
11823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11824 | shlibpath_var=LD_LIBRARY_PATH | |
11825 | shlibpath_overrides_runpath=no | |
11826 | hardcode_into_libs=yes | |
11827 | ;; | |
db137867 | 11828 | |
7083c021 | 11829 | uts4*) |
a949ab1a | 11830 | version_type=linux # correct to gnu/linux during the next big refactor |
7083c021 AC |
11831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11832 | soname_spec='${libname}${release}${shared_ext}$major' | |
11833 | shlibpath_var=LD_LIBRARY_PATH | |
11834 | ;; | |
db137867 | 11835 | |
7083c021 AC |
11836 | *) |
11837 | dynamic_linker=no | |
11838 | ;; | |
11839 | esac | |
11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11841 | $as_echo "$dynamic_linker" >&6; } | |
11842 | test "$dynamic_linker" = no && can_build_shared=no | |
db137867 | 11843 | |
7083c021 AC |
11844 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11845 | if test "$GCC" = yes; then | |
11846 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11847 | fi | |
db137867 | 11848 | |
7083c021 AC |
11849 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11850 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11851 | fi | |
11852 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11853 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11854 | fi | |
db137867 | 11855 | |
db137867 | 11856 | |
db137867 | 11857 | |
db137867 | 11858 | |
db137867 | 11859 | |
db137867 | 11860 | |
db137867 | 11861 | |
db137867 | 11862 | |
db137867 | 11863 | |
db137867 | 11864 | |
db137867 | 11865 | |
db137867 | 11866 | |
db137867 | 11867 | |
db137867 | 11868 | |
db137867 | 11869 | |
db137867 | 11870 | |
db137867 | 11871 | |
db137867 | 11872 | |
db137867 | 11873 | |
db137867 | 11874 | |
db137867 | 11875 | |
db137867 | 11876 | |
db137867 | 11877 | |
db137867 | 11878 | |
db137867 | 11879 | |
db137867 | 11880 | |
db137867 | 11881 | |
db137867 | 11882 | |
db137867 | 11883 | |
db137867 | 11884 | |
db137867 | 11885 | |
db137867 | 11886 | |
db137867 | 11887 | |
db137867 | 11888 | |
db137867 | 11889 | |
db137867 | 11890 | |
db137867 | 11891 | |
db137867 | 11892 | |
db137867 | 11893 | |
db137867 | 11894 | |
db137867 | 11895 | |
db137867 | 11896 | |
db137867 | 11897 | |
db137867 | 11898 | |
db137867 | 11899 | |
b676ea3b | 11900 | |
db137867 | 11901 | |
db137867 | 11902 | |
db137867 | 11903 | |
db137867 | 11904 | |
db137867 | 11905 | |
db137867 | 11906 | |
db137867 | 11907 | |
db137867 | 11908 | |
db137867 | 11909 | |
db137867 | 11910 | |
db137867 | 11911 | |
db137867 | 11912 | |
db137867 | 11913 | |
db137867 | 11914 | |
db137867 | 11915 | |
db137867 | 11916 | |
db137867 | 11917 | |
db137867 | 11918 | |
db137867 | 11919 | |
db137867 | 11920 | |
db137867 | 11921 | |
db137867 | 11922 | |
db137867 | 11923 | |
db137867 | 11924 | |
db137867 | 11925 | |
db137867 | 11926 | |
db137867 | 11927 | |
db137867 | 11928 | |
db137867 | 11929 | |
db137867 | 11930 | |
db137867 | 11931 | |
db137867 | 11932 | |
db137867 | 11933 | |
db137867 AC |
11934 | |
11935 | ||
b6d0720c AC |
11936 | |
11937 | ||
11938 | ||
11939 | ||
11940 | ||
db137867 AC |
11941 | |
11942 | ||
db137867 | 11943 | |
db137867 | 11944 | |
db137867 | 11945 | |
db137867 | 11946 | |
7083c021 AC |
11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11948 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11949 | hardcode_action= | |
11950 | if test -n "$hardcode_libdir_flag_spec" || | |
11951 | test -n "$runpath_var" || | |
11952 | test "X$hardcode_automatic" = "Xyes" ; then | |
db137867 | 11953 | |
7083c021 AC |
11954 | # We can hardcode non-existent directories. |
11955 | if test "$hardcode_direct" != no && | |
11956 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11957 | # have to relink, otherwise we might link with an installed library | |
11958 | # when we should be linking with a yet-to-be-installed one | |
11959 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11960 | test "$hardcode_minus_L" != no; then | |
11961 | # Linking always hardcodes the temporary library directory. | |
11962 | hardcode_action=relink | |
db137867 | 11963 | else |
7083c021 AC |
11964 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
11965 | hardcode_action=immediate | |
db137867 | 11966 | fi |
7083c021 AC |
11967 | else |
11968 | # We cannot hardcode anything, or else we can only hardcode existing | |
11969 | # directories. | |
11970 | hardcode_action=unsupported | |
11971 | fi | |
11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11973 | $as_echo "$hardcode_action" >&6; } | |
11974 | ||
11975 | if test "$hardcode_action" = relink || | |
11976 | test "$inherit_rpath" = yes; then | |
11977 | # Fast installation is not supported | |
11978 | enable_fast_install=no | |
11979 | elif test "$shlibpath_overrides_runpath" = yes || | |
11980 | test "$enable_shared" = no; then | |
11981 | # Fast installation is not necessary | |
11982 | enable_fast_install=needless | |
db137867 AC |
11983 | fi |
11984 | ||
11985 | ||
11986 | ||
db137867 | 11987 | |
db137867 | 11988 | |
db137867 | 11989 | |
7083c021 AC |
11990 | if test "x$enable_dlopen" != xyes; then |
11991 | enable_dlopen=unknown | |
11992 | enable_dlopen_self=unknown | |
11993 | enable_dlopen_self_static=unknown | |
11994 | else | |
11995 | lt_cv_dlopen=no | |
11996 | lt_cv_dlopen_libs= | |
db137867 | 11997 | |
7083c021 AC |
11998 | case $host_os in |
11999 | beos*) | |
12000 | lt_cv_dlopen="load_add_on" | |
12001 | lt_cv_dlopen_libs= | |
12002 | lt_cv_dlopen_self=yes | |
12003 | ;; | |
db137867 | 12004 | |
7083c021 AC |
12005 | mingw* | pw32* | cegcc*) |
12006 | lt_cv_dlopen="LoadLibrary" | |
12007 | lt_cv_dlopen_libs= | |
12008 | ;; | |
db137867 | 12009 | |
7083c021 AC |
12010 | cygwin*) |
12011 | lt_cv_dlopen="dlopen" | |
12012 | lt_cv_dlopen_libs= | |
12013 | ;; | |
db137867 | 12014 | |
7083c021 AC |
12015 | darwin*) |
12016 | # if libdl is installed we need to link against it | |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12018 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
08c2568c | 12019 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
7083c021 AC |
12020 | $as_echo_n "(cached) " >&6 |
12021 | else | |
12022 | ac_check_lib_save_LIBS=$LIBS | |
12023 | LIBS="-ldl $LIBS" | |
12024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12025 | /* end confdefs.h. */ | |
db137867 | 12026 | |
7083c021 AC |
12027 | /* Override any GCC internal prototype to avoid an error. |
12028 | Use char because int might match the return type of a GCC | |
12029 | builtin and then its argument prototype would still apply. */ | |
12030 | #ifdef __cplusplus | |
12031 | extern "C" | |
12032 | #endif | |
12033 | char dlopen (); | |
12034 | int | |
12035 | main () | |
12036 | { | |
12037 | return dlopen (); | |
12038 | ; | |
12039 | return 0; | |
12040 | } | |
12041 | _ACEOF | |
12042 | if ac_fn_c_try_link "$LINENO"; then : | |
12043 | ac_cv_lib_dl_dlopen=yes | |
12044 | else | |
12045 | ac_cv_lib_dl_dlopen=no | |
12046 | fi | |
12047 | rm -f core conftest.err conftest.$ac_objext \ | |
12048 | conftest$ac_exeext conftest.$ac_ext | |
12049 | LIBS=$ac_check_lib_save_LIBS | |
12050 | fi | |
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12052 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
08c2568c | 12053 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
7083c021 AC |
12054 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12055 | else | |
db137867 | 12056 | |
7083c021 AC |
12057 | lt_cv_dlopen="dyld" |
12058 | lt_cv_dlopen_libs= | |
12059 | lt_cv_dlopen_self=yes | |
db137867 | 12060 | |
7083c021 | 12061 | fi |
db137867 | 12062 | |
7083c021 | 12063 | ;; |
db137867 | 12064 | |
7083c021 AC |
12065 | *) |
12066 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
08c2568c | 12067 | if test "x$ac_cv_func_shl_load" = xyes; then : |
7083c021 AC |
12068 | lt_cv_dlopen="shl_load" |
12069 | else | |
12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12071 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
08c2568c | 12072 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
7083c021 AC |
12073 | $as_echo_n "(cached) " >&6 |
12074 | else | |
12075 | ac_check_lib_save_LIBS=$LIBS | |
12076 | LIBS="-ldld $LIBS" | |
12077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12078 | /* end confdefs.h. */ | |
db137867 | 12079 | |
7083c021 AC |
12080 | /* Override any GCC internal prototype to avoid an error. |
12081 | Use char because int might match the return type of a GCC | |
12082 | builtin and then its argument prototype would still apply. */ | |
12083 | #ifdef __cplusplus | |
12084 | extern "C" | |
12085 | #endif | |
12086 | char shl_load (); | |
12087 | int | |
12088 | main () | |
12089 | { | |
12090 | return shl_load (); | |
12091 | ; | |
12092 | return 0; | |
12093 | } | |
12094 | _ACEOF | |
12095 | if ac_fn_c_try_link "$LINENO"; then : | |
12096 | ac_cv_lib_dld_shl_load=yes | |
12097 | else | |
12098 | ac_cv_lib_dld_shl_load=no | |
12099 | fi | |
12100 | rm -f core conftest.err conftest.$ac_objext \ | |
12101 | conftest$ac_exeext conftest.$ac_ext | |
12102 | LIBS=$ac_check_lib_save_LIBS | |
12103 | fi | |
12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12105 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
08c2568c | 12106 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
7083c021 AC |
12107 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
12108 | else | |
12109 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
08c2568c | 12110 | if test "x$ac_cv_func_dlopen" = xyes; then : |
7083c021 AC |
12111 | lt_cv_dlopen="dlopen" |
12112 | else | |
12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12114 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
08c2568c | 12115 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
7083c021 AC |
12116 | $as_echo_n "(cached) " >&6 |
12117 | else | |
12118 | ac_check_lib_save_LIBS=$LIBS | |
12119 | LIBS="-ldl $LIBS" | |
12120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12121 | /* end confdefs.h. */ | |
db137867 | 12122 | |
7083c021 AC |
12123 | /* Override any GCC internal prototype to avoid an error. |
12124 | Use char because int might match the return type of a GCC | |
12125 | builtin and then its argument prototype would still apply. */ | |
12126 | #ifdef __cplusplus | |
12127 | extern "C" | |
12128 | #endif | |
12129 | char dlopen (); | |
12130 | int | |
12131 | main () | |
12132 | { | |
12133 | return dlopen (); | |
12134 | ; | |
12135 | return 0; | |
12136 | } | |
12137 | _ACEOF | |
12138 | if ac_fn_c_try_link "$LINENO"; then : | |
12139 | ac_cv_lib_dl_dlopen=yes | |
12140 | else | |
12141 | ac_cv_lib_dl_dlopen=no | |
12142 | fi | |
12143 | rm -f core conftest.err conftest.$ac_objext \ | |
12144 | conftest$ac_exeext conftest.$ac_ext | |
12145 | LIBS=$ac_check_lib_save_LIBS | |
12146 | fi | |
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12148 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
08c2568c | 12149 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
7083c021 AC |
12150 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12151 | else | |
12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12153 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
08c2568c | 12154 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
7083c021 AC |
12155 | $as_echo_n "(cached) " >&6 |
12156 | else | |
12157 | ac_check_lib_save_LIBS=$LIBS | |
12158 | LIBS="-lsvld $LIBS" | |
12159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12160 | /* end confdefs.h. */ | |
db137867 | 12161 | |
7083c021 AC |
12162 | /* Override any GCC internal prototype to avoid an error. |
12163 | Use char because int might match the return type of a GCC | |
12164 | builtin and then its argument prototype would still apply. */ | |
12165 | #ifdef __cplusplus | |
12166 | extern "C" | |
12167 | #endif | |
12168 | char dlopen (); | |
12169 | int | |
12170 | main () | |
12171 | { | |
12172 | return dlopen (); | |
12173 | ; | |
12174 | return 0; | |
12175 | } | |
12176 | _ACEOF | |
12177 | if ac_fn_c_try_link "$LINENO"; then : | |
12178 | ac_cv_lib_svld_dlopen=yes | |
12179 | else | |
12180 | ac_cv_lib_svld_dlopen=no | |
12181 | fi | |
12182 | rm -f core conftest.err conftest.$ac_objext \ | |
12183 | conftest$ac_exeext conftest.$ac_ext | |
12184 | LIBS=$ac_check_lib_save_LIBS | |
12185 | fi | |
12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12187 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
08c2568c | 12188 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
7083c021 AC |
12189 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12190 | else | |
12191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12192 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
08c2568c | 12193 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
7083c021 AC |
12194 | $as_echo_n "(cached) " >&6 |
12195 | else | |
12196 | ac_check_lib_save_LIBS=$LIBS | |
12197 | LIBS="-ldld $LIBS" | |
12198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12199 | /* end confdefs.h. */ | |
db137867 | 12200 | |
7083c021 AC |
12201 | /* Override any GCC internal prototype to avoid an error. |
12202 | Use char because int might match the return type of a GCC | |
12203 | builtin and then its argument prototype would still apply. */ | |
12204 | #ifdef __cplusplus | |
12205 | extern "C" | |
12206 | #endif | |
12207 | char dld_link (); | |
12208 | int | |
12209 | main () | |
12210 | { | |
12211 | return dld_link (); | |
12212 | ; | |
12213 | return 0; | |
12214 | } | |
12215 | _ACEOF | |
12216 | if ac_fn_c_try_link "$LINENO"; then : | |
12217 | ac_cv_lib_dld_dld_link=yes | |
12218 | else | |
12219 | ac_cv_lib_dld_dld_link=no | |
12220 | fi | |
12221 | rm -f core conftest.err conftest.$ac_objext \ | |
12222 | conftest$ac_exeext conftest.$ac_ext | |
12223 | LIBS=$ac_check_lib_save_LIBS | |
12224 | fi | |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12226 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
08c2568c | 12227 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
7083c021 AC |
12228 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
12229 | fi | |
db137867 AC |
12230 | |
12231 | ||
7083c021 | 12232 | fi |
db137867 AC |
12233 | |
12234 | ||
7083c021 | 12235 | fi |
db137867 AC |
12236 | |
12237 | ||
7083c021 | 12238 | fi |
db137867 | 12239 | |
db137867 | 12240 | |
7083c021 | 12241 | fi |
db137867 | 12242 | |
db137867 | 12243 | |
7083c021 | 12244 | fi |
db137867 | 12245 | |
7083c021 AC |
12246 | ;; |
12247 | esac | |
db137867 | 12248 | |
7083c021 AC |
12249 | if test "x$lt_cv_dlopen" != xno; then |
12250 | enable_dlopen=yes | |
12251 | else | |
12252 | enable_dlopen=no | |
12253 | fi | |
db137867 | 12254 | |
7083c021 AC |
12255 | case $lt_cv_dlopen in |
12256 | dlopen) | |
12257 | save_CPPFLAGS="$CPPFLAGS" | |
12258 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
db137867 | 12259 | |
7083c021 AC |
12260 | save_LDFLAGS="$LDFLAGS" |
12261 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
db137867 | 12262 | |
7083c021 AC |
12263 | save_LIBS="$LIBS" |
12264 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
db137867 | 12265 | |
7083c021 AC |
12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12267 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
08c2568c | 12268 | if ${lt_cv_dlopen_self+:} false; then : |
030272f3 | 12269 | $as_echo_n "(cached) " >&6 |
db137867 | 12270 | else |
7083c021 AC |
12271 | if test "$cross_compiling" = yes; then : |
12272 | lt_cv_dlopen_self=cross | |
db137867 | 12273 | else |
7083c021 AC |
12274 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12275 | lt_status=$lt_dlunknown | |
12276 | cat > conftest.$ac_ext <<_LT_EOF | |
b6d0720c | 12277 | #line $LINENO "configure" |
7083c021 | 12278 | #include "confdefs.h" |
db137867 | 12279 | |
7083c021 AC |
12280 | #if HAVE_DLFCN_H |
12281 | #include <dlfcn.h> | |
12282 | #endif | |
db137867 | 12283 | |
7083c021 | 12284 | #include <stdio.h> |
db137867 | 12285 | |
7083c021 AC |
12286 | #ifdef RTLD_GLOBAL |
12287 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12288 | #else | |
12289 | # ifdef DL_GLOBAL | |
12290 | # define LT_DLGLOBAL DL_GLOBAL | |
12291 | # else | |
12292 | # define LT_DLGLOBAL 0 | |
12293 | # endif | |
12294 | #endif | |
db137867 | 12295 | |
7083c021 AC |
12296 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12297 | find out it does not work in some platform. */ | |
12298 | #ifndef LT_DLLAZY_OR_NOW | |
12299 | # ifdef RTLD_LAZY | |
12300 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12301 | # else | |
12302 | # ifdef DL_LAZY | |
12303 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12304 | # else | |
12305 | # ifdef RTLD_NOW | |
12306 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12307 | # else | |
12308 | # ifdef DL_NOW | |
12309 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12310 | # else | |
12311 | # define LT_DLLAZY_OR_NOW 0 | |
12312 | # endif | |
12313 | # endif | |
12314 | # endif | |
12315 | # endif | |
12316 | #endif | |
db137867 | 12317 | |
b6d0720c AC |
12318 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12319 | correspondingly for the symbols needed. */ | |
12320 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12321 | int fnord () __attribute__((visibility("default"))); | |
12322 | #endif | |
12323 | ||
12324 | int fnord () { return 42; } | |
7083c021 AC |
12325 | int main () |
12326 | { | |
12327 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12328 | int status = $lt_dlunknown; | |
db137867 | 12329 | |
7083c021 AC |
12330 | if (self) |
12331 | { | |
12332 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b6d0720c AC |
12333 | else |
12334 | { | |
12335 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12336 | else puts (dlerror ()); | |
12337 | } | |
7083c021 AC |
12338 | /* dlclose (self); */ |
12339 | } | |
12340 | else | |
12341 | puts (dlerror ()); | |
db137867 | 12342 | |
7083c021 AC |
12343 | return status; |
12344 | } | |
12345 | _LT_EOF | |
12346 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12347 | (eval $ac_link) 2>&5 | |
12348 | ac_status=$? | |
12349 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12350 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12351 | (./conftest; exit; ) >&5 2>/dev/null | |
12352 | lt_status=$? | |
12353 | case x$lt_status in | |
12354 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12355 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12356 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12357 | esac | |
12358 | else : | |
12359 | # compilation failed | |
12360 | lt_cv_dlopen_self=no | |
12361 | fi | |
db137867 | 12362 | fi |
7083c021 | 12363 | rm -fr conftest* |
db137867 | 12364 | |
db137867 | 12365 | |
7083c021 AC |
12366 | fi |
12367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12368 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
db137867 | 12369 | |
7083c021 AC |
12370 | if test "x$lt_cv_dlopen_self" = xyes; then |
12371 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12373 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
08c2568c | 12374 | if ${lt_cv_dlopen_self_static+:} false; then : |
030272f3 | 12375 | $as_echo_n "(cached) " >&6 |
db137867 | 12376 | else |
7083c021 AC |
12377 | if test "$cross_compiling" = yes; then : |
12378 | lt_cv_dlopen_self_static=cross | |
db137867 | 12379 | else |
7083c021 AC |
12380 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12381 | lt_status=$lt_dlunknown | |
12382 | cat > conftest.$ac_ext <<_LT_EOF | |
b6d0720c | 12383 | #line $LINENO "configure" |
7083c021 | 12384 | #include "confdefs.h" |
db137867 | 12385 | |
7083c021 AC |
12386 | #if HAVE_DLFCN_H |
12387 | #include <dlfcn.h> | |
12388 | #endif | |
db137867 | 12389 | |
7083c021 | 12390 | #include <stdio.h> |
db137867 | 12391 | |
7083c021 AC |
12392 | #ifdef RTLD_GLOBAL |
12393 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12394 | #else | |
12395 | # ifdef DL_GLOBAL | |
12396 | # define LT_DLGLOBAL DL_GLOBAL | |
12397 | # else | |
12398 | # define LT_DLGLOBAL 0 | |
12399 | # endif | |
12400 | #endif | |
db137867 | 12401 | |
7083c021 AC |
12402 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12403 | find out it does not work in some platform. */ | |
12404 | #ifndef LT_DLLAZY_OR_NOW | |
12405 | # ifdef RTLD_LAZY | |
12406 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12407 | # else | |
12408 | # ifdef DL_LAZY | |
12409 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12410 | # else | |
12411 | # ifdef RTLD_NOW | |
12412 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12413 | # else | |
12414 | # ifdef DL_NOW | |
12415 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12416 | # else | |
12417 | # define LT_DLLAZY_OR_NOW 0 | |
12418 | # endif | |
12419 | # endif | |
12420 | # endif | |
12421 | # endif | |
12422 | #endif | |
db137867 | 12423 | |
b6d0720c AC |
12424 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12425 | correspondingly for the symbols needed. */ | |
12426 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12427 | int fnord () __attribute__((visibility("default"))); | |
12428 | #endif | |
12429 | ||
12430 | int fnord () { return 42; } | |
7083c021 AC |
12431 | int main () |
12432 | { | |
12433 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12434 | int status = $lt_dlunknown; | |
db137867 | 12435 | |
7083c021 AC |
12436 | if (self) |
12437 | { | |
12438 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b6d0720c AC |
12439 | else |
12440 | { | |
12441 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12442 | else puts (dlerror ()); | |
12443 | } | |
7083c021 AC |
12444 | /* dlclose (self); */ |
12445 | } | |
12446 | else | |
12447 | puts (dlerror ()); | |
db137867 | 12448 | |
7083c021 AC |
12449 | return status; |
12450 | } | |
12451 | _LT_EOF | |
12452 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12453 | (eval $ac_link) 2>&5 | |
12454 | ac_status=$? | |
12455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12456 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12457 | (./conftest; exit; ) >&5 2>/dev/null | |
12458 | lt_status=$? | |
12459 | case x$lt_status in | |
12460 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12461 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12462 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12463 | esac | |
12464 | else : | |
12465 | # compilation failed | |
12466 | lt_cv_dlopen_self_static=no | |
12467 | fi | |
db137867 | 12468 | fi |
7083c021 | 12469 | rm -fr conftest* |
3202e249 | 12470 | |
db137867 | 12471 | |
db137867 | 12472 | fi |
7083c021 AC |
12473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12474 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12475 | fi | |
db137867 | 12476 | |
7083c021 AC |
12477 | CPPFLAGS="$save_CPPFLAGS" |
12478 | LDFLAGS="$save_LDFLAGS" | |
12479 | LIBS="$save_LIBS" | |
12480 | ;; | |
12481 | esac | |
db137867 | 12482 | |
7083c021 AC |
12483 | case $lt_cv_dlopen_self in |
12484 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12485 | *) enable_dlopen_self=unknown ;; | |
12486 | esac | |
db137867 | 12487 | |
7083c021 AC |
12488 | case $lt_cv_dlopen_self_static in |
12489 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12490 | *) enable_dlopen_self_static=unknown ;; | |
12491 | esac | |
db137867 AC |
12492 | fi |
12493 | ||
db137867 | 12494 | |
db137867 | 12495 | |
030272f3 VY |
12496 | |
12497 | ||
030272f3 | 12498 | |
db137867 | 12499 | |
db137867 | 12500 | |
db137867 | 12501 | |
030272f3 | 12502 | |
030272f3 | 12503 | |
db137867 | 12504 | |
030272f3 | 12505 | |
db137867 | 12506 | |
db137867 | 12507 | |
db137867 | 12508 | |
db137867 | 12509 | |
7083c021 AC |
12510 | striplib= |
12511 | old_striplib= | |
12512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12513 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12514 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12515 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12516 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12518 | $as_echo "yes" >&6; } | |
030272f3 | 12519 | else |
7083c021 AC |
12520 | # FIXME - insert some real tests, host_os isn't really good enough |
12521 | case $host_os in | |
12522 | darwin*) | |
12523 | if test -n "$STRIP" ; then | |
12524 | striplib="$STRIP -x" | |
12525 | old_striplib="$STRIP -S" | |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12527 | $as_echo "yes" >&6; } | |
12528 | else | |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12530 | $as_echo "no" >&6; } | |
12531 | fi | |
12532 | ;; | |
12533 | *) | |
12534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12535 | $as_echo "no" >&6; } | |
12536 | ;; | |
12537 | esac | |
030272f3 VY |
12538 | fi |
12539 | ||
db137867 | 12540 | |
030272f3 | 12541 | |
db137867 | 12542 | |
db137867 | 12543 | |
db137867 | 12544 | |
db137867 | 12545 | |
db137867 | 12546 | |
db137867 | 12547 | |
db137867 | 12548 | |
db137867 AC |
12549 | |
12550 | ||
7083c021 AC |
12551 | # Report which library types will actually be built |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12553 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12555 | $as_echo "$can_build_shared" >&6; } | |
db137867 | 12556 | |
7083c021 AC |
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12558 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12559 | test "$can_build_shared" = "no" && enable_shared=no | |
db137867 | 12560 | |
7083c021 AC |
12561 | # On AIX, shared libraries and static libraries use the same namespace, and |
12562 | # are all built from PIC. | |
12563 | case $host_os in | |
12564 | aix3*) | |
12565 | test "$enable_shared" = yes && enable_static=no | |
12566 | if test -n "$RANLIB"; then | |
12567 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12568 | postinstall_cmds='$RANLIB $lib' | |
12569 | fi | |
12570 | ;; | |
db137867 | 12571 | |
7083c021 AC |
12572 | aix[4-9]*) |
12573 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12574 | test "$enable_shared" = yes && enable_static=no | |
12575 | fi | |
12576 | ;; | |
12577 | esac | |
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12579 | $as_echo "$enable_shared" >&6; } | |
12580 | ||
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12582 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12583 | # Make sure either enable_shared or enable_static is yes. | |
12584 | test "$enable_shared" = yes || enable_static=yes | |
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12586 | $as_echo "$enable_static" >&6; } | |
db137867 | 12587 | |
db137867 | 12588 | |
db137867 | 12589 | |
db137867 | 12590 | |
db137867 | 12591 | fi |
7083c021 AC |
12592 | ac_ext=c |
12593 | ac_cpp='$CPP $CPPFLAGS' | |
12594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
db137867 | 12597 | |
7083c021 | 12598 | CC="$lt_save_CC" |
db137867 | 12599 | |
db137867 | 12600 | |
db137867 | 12601 | |
db137867 | 12602 | |
db137867 | 12603 | |
db137867 | 12604 | |
db137867 | 12605 | |
db137867 | 12606 | |
db137867 | 12607 | |
db137867 AC |
12608 | |
12609 | ||
db137867 | 12610 | |
db137867 | 12611 | |
a949ab1a AC |
12612 | |
12613 | ||
7083c021 | 12614 | ac_config_commands="$ac_config_commands libtool" |
db137867 AC |
12615 | |
12616 | ||
12617 | ||
12618 | ||
7083c021 | 12619 | # Only expand once: |
db137867 AC |
12620 | |
12621 | ||
12622 | ||
7083c021 | 12623 | LIBTOOL="$LIBTOOL --silent" |
db137867 | 12624 | |
7083c021 AC |
12625 | case "$host_os" in |
12626 | *cygwin*) | |
db137867 | 12627 | |
7083c021 AC |
12628 | cat >>confdefs.h <<_ACEOF |
12629 | #define CYGWIN 1 | |
12630 | _ACEOF | |
db137867 AC |
12631 | |
12632 | ||
7083c021 AC |
12633 | cat >>confdefs.h <<_ACEOF |
12634 | #define WINDOWS 1 | |
12635 | _ACEOF | |
db137867 | 12636 | |
7083c021 AC |
12637 | ;; |
12638 | *mingw*) | |
db137867 | 12639 | |
7083c021 AC |
12640 | cat >>confdefs.h <<_ACEOF |
12641 | #define MINGW 1 | |
12642 | _ACEOF | |
db137867 AC |
12643 | |
12644 | ||
7083c021 AC |
12645 | cat >>confdefs.h <<_ACEOF |
12646 | #define WINDOWS 1 | |
12647 | _ACEOF | |
db137867 | 12648 | |
7083c021 | 12649 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
08c2568c | 12650 | if test "x$ac_cv_header_windows_h" = xyes; then : |
db137867 | 12651 | |
7083c021 | 12652 | else |
08c2568c | 12653 | as_fn_error $? "** MinGW and no windows.h. I give up." "$LINENO" 5 |
7083c021 | 12654 | fi |
db137867 AC |
12655 | |
12656 | ||
7083c021 | 12657 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
08c2568c | 12658 | if test "x$ac_cv_header_winsock2_h" = xyes; then : |
db137867 | 12659 | |
7083c021 | 12660 | else |
08c2568c | 12661 | as_fn_error $? "** MinGW and no winsock2.h. I give up." "$LINENO" 5 |
7083c021 | 12662 | fi |
db137867 | 12663 | |
3202e249 | 12664 | |
7083c021 AC |
12665 | |
12666 | cat >>confdefs.h <<_ACEOF | |
12667 | #define HAVE_WINSOCK2_H 1 | |
db137867 | 12668 | _ACEOF |
7083c021 AC |
12669 | |
12670 | ||
12671 | cat >>confdefs.h <<_ACEOF | |
12672 | #define HAVE_WINSOCK_H 1 | |
db137867 | 12673 | _ACEOF |
7083c021 AC |
12674 | |
12675 | LIBS="$LIBS -lws2_32 -liphlpapi" | |
12676 | is_mingw="yes" | |
12677 | ;; | |
12678 | *interix*) | |
12679 | CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500" | |
12680 | ;; | |
12681 | *solaris*) | |
12682 | CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2" | |
12683 | ;; | |
12684 | *) | |
12685 | ;; | |
db137867 | 12686 | esac |
db137867 | 12687 | |
7083c021 AC |
12688 | if test "$is_mingw" = "yes"; then |
12689 | MINGW_TRUE= | |
12690 | MINGW_FALSE='#' | |
12691 | else | |
12692 | MINGW_TRUE='#' | |
12693 | MINGW_FALSE= | |
db137867 AC |
12694 | fi |
12695 | ||
db137867 | 12696 | |
db137867 | 12697 | |
7083c021 AC |
12698 | # backwards support for IRC_CFLAGS |
12699 | CFLAGS="$IRC_CFLAGS $CFLAGS -Wall" | |
12700 | ||
12701 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
12702 | test "$localstatedir" = '${prefix}/var'; then | |
12703 | libexecdir='${bindir}' | |
12704 | localstatedir='${prefix}' | |
db137867 AC |
12705 | fi |
12706 | ||
7083c021 | 12707 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
08c2568c | 12708 | if test "x$ac_cv_type_pid_t" = xyes; then : |
db137867 | 12709 | |
db137867 | 12710 | else |
7083c021 AC |
12711 | |
12712 | cat >>confdefs.h <<_ACEOF | |
12713 | #define pid_t int | |
12714 | _ACEOF | |
db137867 AC |
12715 | |
12716 | fi | |
7083c021 AC |
12717 | |
12718 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
08c2568c | 12719 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 AC |
12720 | |
12721 | else | |
12722 | ||
12723 | cat >>confdefs.h <<_ACEOF | |
12724 | #define size_t unsigned int | |
db137867 AC |
12725 | _ACEOF |
12726 | ||
12727 | fi | |
12728 | ||
7083c021 | 12729 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
08c2568c | 12730 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
db137867 | 12731 | |
db137867 | 12732 | else |
7083c021 AC |
12733 | |
12734 | cat >>confdefs.h <<_ACEOF | |
12735 | #define ssize_t int | |
db137867 | 12736 | _ACEOF |
7083c021 AC |
12737 | |
12738 | fi | |
12739 | ||
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
12741 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
08c2568c | 12742 | if ${ac_cv_type_uid_t+:} false; then : |
7083c021 AC |
12743 | $as_echo_n "(cached) " >&6 |
12744 | else | |
12745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
12746 | /* end confdefs.h. */ |
12747 | #include <sys/types.h> | |
db137867 | 12748 | |
db137867 | 12749 | _ACEOF |
7083c021 AC |
12750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12751 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
12752 | ac_cv_type_uid_t=yes | |
db137867 | 12753 | else |
7083c021 | 12754 | ac_cv_type_uid_t=no |
db137867 | 12755 | fi |
7083c021 | 12756 | rm -f conftest* |
db137867 | 12757 | |
db137867 | 12758 | fi |
7083c021 AC |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
12760 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
12761 | if test $ac_cv_type_uid_t = no; then | |
db137867 | 12762 | |
7083c021 AC |
12763 | $as_echo "#define uid_t int" >>confdefs.h |
12764 | ||
12765 | ||
12766 | $as_echo "#define gid_t int" >>confdefs.h | |
db137867 AC |
12767 | |
12768 | fi | |
12769 | ||
12770 | ||
12771 | ||
7083c021 AC |
12772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
12773 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
08c2568c | 12774 | if ${ac_cv_header_stdc+:} false; then : |
030272f3 | 12775 | $as_echo_n "(cached) " >&6 |
db137867 | 12776 | else |
7083c021 | 12777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 12778 | /* end confdefs.h. */ |
7083c021 AC |
12779 | #include <stdlib.h> |
12780 | #include <stdarg.h> | |
12781 | #include <string.h> | |
12782 | #include <float.h> | |
db137867 | 12783 | |
db137867 AC |
12784 | int |
12785 | main () | |
12786 | { | |
7083c021 | 12787 | |
db137867 AC |
12788 | ; |
12789 | return 0; | |
12790 | } | |
12791 | _ACEOF | |
7083c021 AC |
12792 | if ac_fn_c_try_compile "$LINENO"; then : |
12793 | ac_cv_header_stdc=yes | |
db137867 | 12794 | else |
7083c021 AC |
12795 | ac_cv_header_stdc=no |
12796 | fi | |
12797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
db137867 | 12798 | |
7083c021 AC |
12799 | if test $ac_cv_header_stdc = yes; then |
12800 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12802 | /* end confdefs.h. */ | |
12803 | #include <string.h> | |
db137867 | 12804 | |
7083c021 AC |
12805 | _ACEOF |
12806 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12807 | $EGREP "memchr" >/dev/null 2>&1; then : | |
db137867 | 12808 | |
db137867 | 12809 | else |
7083c021 | 12810 | ac_cv_header_stdc=no |
db137867 | 12811 | fi |
7083c021 | 12812 | rm -f conftest* |
db137867 AC |
12813 | |
12814 | fi | |
12815 | ||
7083c021 AC |
12816 | if test $ac_cv_header_stdc = yes; then |
12817 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12819 | /* end confdefs.h. */ | |
12820 | #include <stdlib.h> | |
db137867 | 12821 | |
db137867 | 12822 | _ACEOF |
7083c021 AC |
12823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12824 | $EGREP "free" >/dev/null 2>&1; then : | |
db137867 | 12825 | |
7083c021 AC |
12826 | else |
12827 | ac_cv_header_stdc=no | |
12828 | fi | |
12829 | rm -f conftest* | |
db137867 | 12830 | |
7083c021 | 12831 | fi |
db137867 | 12832 | |
7083c021 AC |
12833 | if test $ac_cv_header_stdc = yes; then |
12834 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12835 | if test "$cross_compiling" = yes; then : | |
12836 | : | |
db137867 | 12837 | else |
7083c021 | 12838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 12839 | /* end confdefs.h. */ |
7083c021 AC |
12840 | #include <ctype.h> |
12841 | #include <stdlib.h> | |
12842 | #if ((' ' & 0x0FF) == 0x020) | |
12843 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12844 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12845 | #else | |
12846 | # define ISLOWER(c) \ | |
12847 | (('a' <= (c) && (c) <= 'i') \ | |
12848 | || ('j' <= (c) && (c) <= 'r') \ | |
12849 | || ('s' <= (c) && (c) <= 'z')) | |
12850 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
db137867 AC |
12851 | #endif |
12852 | ||
7083c021 | 12853 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
db137867 AC |
12854 | int |
12855 | main () | |
12856 | { | |
7083c021 AC |
12857 | int i; |
12858 | for (i = 0; i < 256; i++) | |
12859 | if (XOR (islower (i), ISLOWER (i)) | |
12860 | || toupper (i) != TOUPPER (i)) | |
12861 | return 2; | |
db137867 AC |
12862 | return 0; |
12863 | } | |
12864 | _ACEOF | |
7083c021 | 12865 | if ac_fn_c_try_run "$LINENO"; then : |
db137867 | 12866 | |
7083c021 AC |
12867 | else |
12868 | ac_cv_header_stdc=no | |
12869 | fi | |
12870 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12871 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
12872 | fi |
12873 | ||
db137867 | 12874 | fi |
7083c021 AC |
12875 | fi |
12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
12877 | $as_echo "$ac_cv_header_stdc" >&6; } | |
12878 | if test $ac_cv_header_stdc = yes; then | |
12879 | ||
12880 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
db137867 | 12881 | |
db137867 | 12882 | fi |
db137867 | 12883 | |
7083c021 AC |
12884 | |
12885 | 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 | |
12886 | do : | |
12887 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12888 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
08c2568c | 12889 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
12890 | cat >>confdefs.h <<_ACEOF |
12891 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
db137867 AC |
12892 | _ACEOF |
12893 | ||
12894 | fi | |
12895 | ||
7083c021 | 12896 | done |
db137867 | 12897 | |
7083c021 AC |
12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
12899 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
08c2568c | 12900 | if ${ac_cv_header_time+:} false; then : |
030272f3 | 12901 | $as_echo_n "(cached) " >&6 |
db137867 | 12902 | else |
7083c021 | 12903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 12904 | /* end confdefs.h. */ |
db137867 | 12905 | #include <sys/types.h> |
7083c021 AC |
12906 | #include <sys/time.h> |
12907 | #include <time.h> | |
db137867 | 12908 | |
db137867 AC |
12909 | int |
12910 | main () | |
12911 | { | |
7083c021 AC |
12912 | if ((struct tm *) 0) |
12913 | return 0; | |
030272f3 | 12914 | ; |
db137867 | 12915 | return 0; |
7083c021 | 12916 | } |
030272f3 | 12917 | _ACEOF |
7083c021 AC |
12918 | if ac_fn_c_try_compile "$LINENO"; then : |
12919 | ac_cv_header_time=yes | |
12920 | else | |
12921 | ac_cv_header_time=no | |
12922 | fi | |
12923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12924 | fi | |
12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
12926 | $as_echo "$ac_cv_header_time" >&6; } | |
12927 | if test $ac_cv_header_time = yes; then | |
12928 | ||
12929 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
12930 | ||
12931 | fi | |
12932 | ||
12933 | ||
12934 | ||
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
12936 | $as_echo_n "checking for library containing socket... " >&6; } | |
08c2568c | 12937 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
12938 | $as_echo_n "(cached) " >&6 |
12939 | else | |
12940 | ac_func_search_save_LIBS=$LIBS | |
12941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
030272f3 | 12942 | /* end confdefs.h. */ |
030272f3 | 12943 | |
7083c021 AC |
12944 | /* Override any GCC internal prototype to avoid an error. |
12945 | Use char because int might match the return type of a GCC | |
12946 | builtin and then its argument prototype would still apply. */ | |
12947 | #ifdef __cplusplus | |
12948 | extern "C" | |
12949 | #endif | |
12950 | char socket (); | |
030272f3 VY |
12951 | int |
12952 | main () | |
12953 | { | |
7083c021 | 12954 | return socket (); |
db137867 AC |
12955 | ; |
12956 | return 0; | |
12957 | } | |
12958 | _ACEOF | |
7083c021 AC |
12959 | for ac_lib in '' socket; do |
12960 | if test -z "$ac_lib"; then | |
12961 | ac_res="none required" | |
12962 | else | |
12963 | ac_res=-l$ac_lib | |
12964 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12965 | fi | |
12966 | if ac_fn_c_try_link "$LINENO"; then : | |
12967 | ac_cv_search_socket=$ac_res | |
12968 | fi | |
12969 | rm -f core conftest.err conftest.$ac_objext \ | |
12970 | conftest$ac_exeext | |
08c2568c | 12971 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
12972 | break |
12973 | fi | |
12974 | done | |
08c2568c | 12975 | if ${ac_cv_search_socket+:} false; then : |
7083c021 | 12976 | |
db137867 | 12977 | else |
7083c021 AC |
12978 | ac_cv_search_socket=no |
12979 | fi | |
12980 | rm conftest.$ac_ext | |
12981 | LIBS=$ac_func_search_save_LIBS | |
12982 | fi | |
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
12984 | $as_echo "$ac_cv_search_socket" >&6; } | |
12985 | ac_res=$ac_cv_search_socket | |
12986 | if test "$ac_res" != no; then : | |
12987 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
db137867 | 12988 | |
db137867 AC |
12989 | fi |
12990 | ||
030272f3 VY |
12991 | |
12992 | ||
7083c021 AC |
12993 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " |
12994 | #ifdef HAVE_SYS_TYPES_H | |
12995 | #include <sys/types.h> | |
12996 | #endif | |
12997 | #ifdef HAVE_SYS_SOCKET_H | |
12998 | #include <sys/socket.h> | |
12999 | #endif | |
13000 | #ifdef HAVE_WINSOCK2_H | |
13001 | #include <winsock2.h> | |
13002 | #endif | |
13003 | ||
13004 | " | |
08c2568c | 13005 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
7083c021 AC |
13006 | |
13007 | $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h | |
030272f3 | 13008 | |
030272f3 | 13009 | fi |
7083c021 AC |
13010 | |
13011 | ||
13012 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
13013 | #include <sys/socket.h> | |
13014 | " | |
08c2568c | 13015 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
030272f3 | 13016 | rb_cv_socklen_t=socklen_t |
db137867 AC |
13017 | else |
13018 | ||
7083c021 | 13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
030272f3 | 13020 | $as_echo_n "checking for socklen_t equivalent... " >&6; } |
08c2568c | 13021 | if ${rb_cv_socklen_t+:} false; then : |
030272f3 | 13022 | $as_echo_n "(cached) " >&6 |
a9fb3ed0 VY |
13023 | else |
13024 | ||
13025 | # Systems have either "struct sockaddr *" or | |
13026 | # "void *" as the second argument to getpeername | |
030272f3 | 13027 | rb_cv_socklen_t= |
a9fb3ed0 VY |
13028 | for arg2 in "struct sockaddr" void; do |
13029 | for t in int size_t unsigned long "unsigned long"; do | |
7083c021 | 13030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9fb3ed0 VY |
13031 | /* end confdefs.h. */ |
13032 | ||
3202e249 | 13033 | #ifdef HAVE_SYS_TYPES_H |
a9fb3ed0 | 13034 | #include <sys/types.h> |
3202e249 VY |
13035 | #endif |
13036 | #ifdef HAVE_SYS_SOCKET_H | |
a9fb3ed0 | 13037 | #include <sys/socket.h> |
3202e249 VY |
13038 | #endif |
13039 | #ifdef HAVE_WINSOCK2_H | |
13040 | #include <winsock2.h> | |
13041 | #endif | |
a9fb3ed0 VY |
13042 | int getpeername (int, $arg2 *, $t *); |
13043 | ||
13044 | int | |
13045 | main () | |
13046 | { | |
13047 | ||
13048 | $t len; | |
13049 | getpeername(0,0,&len); | |
13050 | ||
13051 | ; | |
13052 | return 0; | |
13053 | } | |
db137867 | 13054 | _ACEOF |
7083c021 | 13055 | if ac_fn_c_try_compile "$LINENO"; then : |
a9fb3ed0 | 13056 | |
030272f3 | 13057 | rb_cv_socklen_t="$t" |
a9fb3ed0 VY |
13058 | break |
13059 | ||
a9fb3ed0 | 13060 | fi |
a9fb3ed0 VY |
13061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13062 | done | |
13063 | done | |
13064 | ||
030272f3 | 13065 | if test "x$rb_cv_socklen_t" = x; then |
7083c021 | 13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5 |
030272f3 VY |
13067 | $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;} |
13068 | rb_cv_socklen_t=int | |
a9fb3ed0 VY |
13069 | fi |
13070 | ||
13071 | fi | |
13072 | ||
7083c021 AC |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5 |
13074 | $as_echo "$rb_cv_socklen_t" >&6; } | |
13075 | fi | |
13076 | ||
13077 | ||
13078 | rb_socklen_t=$rb_cv_socklen_t | |
13079 | ||
13080 | ||
13081 | ||
13082 | ||
13083 | ||
13084 | # Check whether --enable-ipv6 was given. | |
13085 | if test "${enable_ipv6+set}" = set; then : | |
13086 | enableval=$enable_ipv6; ipv6=$enableval | |
13087 | else | |
13088 | ipv6=yes | |
13089 | fi | |
13090 | ||
13091 | ||
13092 | if test x$ipv6 != xyes; then | |
13093 | have_v6="no" | |
13094 | else | |
13095 | ||
13096 | have_v6=yes | |
13097 | ||
13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5 | |
13099 | $as_echo_n "checking for INET6 protocol support... " >&6; } | |
08c2568c | 13100 | if ${rb_cv_proto_inet6+:} false; then : |
7083c021 AC |
13101 | $as_echo_n "(cached) " >&6 |
13102 | else | |
13103 | ||
13104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13105 | /* end confdefs.h. */ | |
13106 | ||
13107 | #include <sys/types.h> | |
13108 | #include <sys/socket.h> | |
13109 | ||
13110 | #ifndef PF_INET6 | |
13111 | #error Missing PF_INET6 | |
13112 | #endif | |
13113 | #ifndef AF_INET6 | |
13114 | #error Mlssing AF_INET6 | |
13115 | #endif | |
13116 | ||
13117 | _ACEOF | |
13118 | if ac_fn_c_try_cpp "$LINENO"; then : | |
13119 | ||
13120 | rb_cv_proto_inet6=yes | |
13121 | ||
13122 | else | |
13123 | ||
13124 | rb_cv_proto_inet6=no | |
13125 | ||
13126 | fi | |
08c2568c | 13127 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
13128 | |
13129 | fi | |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5 | |
13131 | $as_echo "$rb_cv_proto_inet6" >&6; } | |
13132 | ||
13133 | if test "X$rb_cv_proto_inet6" = "Xyes"; then : | |
13134 | ||
13135 | else : | |
13136 | ||
13137 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5 | |
13138 | $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;} | |
13139 | have_v6=no | |
13140 | ||
13141 | fi | |
13142 | ||
13143 | ||
13144 | if test "X$have_v6" = "Xyes"; then | |
13145 | ||
13146 | rb_have_sockaddr_in6= | |
13147 | ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" " | |
13148 | #include <sys/types.h> | |
13149 | #include <sys/socket.h> | |
13150 | #include <netinet/in.h> | |
13151 | ||
13152 | " | |
08c2568c | 13153 | if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
7083c021 AC |
13154 | |
13155 | cat >>confdefs.h <<_ACEOF | |
13156 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | |
13157 | _ACEOF | |
13158 | ||
13159 | ||
13160 | rb_have_sockaddr_in6=yes | |
13161 | ||
13162 | else | |
13163 | ||
13164 | rb_have_sockaddr_in6=no | |
13165 | ||
13166 | fi | |
13167 | ||
13168 | ||
13169 | if test "X$rb_have_sockaddr_in6" = "Xyes"; then : | |
13170 | ||
13171 | else : | |
13172 | ||
13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5 | |
13174 | $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;} | |
13175 | have_v6=no | |
13176 | ||
13177 | fi | |
13178 | ||
13179 | fi | |
13180 | ||
13181 | fi | |
13182 | ||
13183 | ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " | |
13184 | #include <sys/types.h> | |
13185 | #include <sys/socket.h> | |
13186 | ||
13187 | " | |
08c2568c | 13188 | if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
7083c021 AC |
13189 | |
13190 | cat >>confdefs.h <<_ACEOF | |
13191 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | |
13192 | _ACEOF | |
13193 | ||
13194 | ||
13195 | rb_have_sockaddr_storage=yes | |
13196 | ||
13197 | fi | |
13198 | ||
13199 | ||
13200 | ||
7083c021 | 13201 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
08c2568c | 13202 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
db137867 | 13203 | |
7083c021 | 13204 | else |
08c2568c | 13205 | as_fn_error $? "** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5 |
7083c021 | 13206 | fi |
db137867 | 13207 | |
db137867 | 13208 | |
db137867 | 13209 | |
7083c021 AC |
13210 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
13211 | #include <sys/socket.h> | |
13212 | " | |
08c2568c | 13213 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
db137867 AC |
13214 | |
13215 | else | |
db137867 | 13216 | |
7083c021 | 13217 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
db137867 AC |
13218 | |
13219 | fi | |
db137867 | 13220 | |
db137867 | 13221 | |
db137867 | 13222 | |
7083c021 AC |
13223 | 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 |
13224 | do : | |
13225 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13226 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 13227 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
13228 | cat >>confdefs.h <<_ACEOF |
13229 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13230 | _ACEOF | |
db137867 | 13231 | |
7083c021 AC |
13232 | fi |
13233 | done | |
db137867 | 13234 | |
db137867 | 13235 | |
7083c021 AC |
13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 |
13237 | $as_echo_n "checking for library containing nanosleep... " >&6; } | |
08c2568c | 13238 | if ${ac_cv_search_nanosleep+:} false; then : |
030272f3 | 13239 | $as_echo_n "(cached) " >&6 |
db137867 | 13240 | else |
7083c021 AC |
13241 | ac_func_search_save_LIBS=$LIBS |
13242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 AC |
13243 | /* end confdefs.h. */ |
13244 | ||
7083c021 AC |
13245 | /* Override any GCC internal prototype to avoid an error. |
13246 | Use char because int might match the return type of a GCC | |
13247 | builtin and then its argument prototype would still apply. */ | |
13248 | #ifdef __cplusplus | |
13249 | extern "C" | |
13250 | #endif | |
13251 | char nanosleep (); | |
db137867 AC |
13252 | int |
13253 | main () | |
13254 | { | |
7083c021 | 13255 | return nanosleep (); |
030272f3 | 13256 | ; |
db137867 | 13257 | return 0; |
030272f3 VY |
13258 | } |
13259 | _ACEOF | |
7083c021 AC |
13260 | for ac_lib in '' rt posix4; do |
13261 | if test -z "$ac_lib"; then | |
13262 | ac_res="none required" | |
13263 | else | |
13264 | ac_res=-l$ac_lib | |
13265 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13266 | fi | |
13267 | if ac_fn_c_try_link "$LINENO"; then : | |
13268 | ac_cv_search_nanosleep=$ac_res | |
13269 | fi | |
13270 | rm -f core conftest.err conftest.$ac_objext \ | |
13271 | conftest$ac_exeext | |
08c2568c | 13272 | if ${ac_cv_search_nanosleep+:} false; then : |
7083c021 AC |
13273 | break |
13274 | fi | |
13275 | done | |
08c2568c | 13276 | if ${ac_cv_search_nanosleep+:} false; then : |
030272f3 | 13277 | |
7083c021 AC |
13278 | else |
13279 | ac_cv_search_nanosleep=no | |
13280 | fi | |
13281 | rm conftest.$ac_ext | |
13282 | LIBS=$ac_func_search_save_LIBS | |
13283 | fi | |
13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | |
13285 | $as_echo "$ac_cv_search_nanosleep" >&6; } | |
13286 | ac_res=$ac_cv_search_nanosleep | |
13287 | if test "$ac_res" != no; then : | |
13288 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
030272f3 | 13289 | |
7083c021 AC |
13290 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
13291 | ||
13292 | fi | |
13293 | ||
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5 | |
13295 | $as_echo_n "checking for library containing timer_create... " >&6; } | |
08c2568c | 13296 | if ${ac_cv_search_timer_create+:} false; then : |
7083c021 AC |
13297 | $as_echo_n "(cached) " >&6 |
13298 | else | |
13299 | ac_func_search_save_LIBS=$LIBS | |
13300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13301 | /* end confdefs.h. */ | |
030272f3 | 13302 | |
7083c021 AC |
13303 | /* Override any GCC internal prototype to avoid an error. |
13304 | Use char because int might match the return type of a GCC | |
13305 | builtin and then its argument prototype would still apply. */ | |
13306 | #ifdef __cplusplus | |
13307 | extern "C" | |
13308 | #endif | |
13309 | char timer_create (); | |
030272f3 VY |
13310 | int |
13311 | main () | |
13312 | { | |
7083c021 | 13313 | return timer_create (); |
db137867 AC |
13314 | ; |
13315 | return 0; | |
13316 | } | |
13317 | _ACEOF | |
7083c021 AC |
13318 | for ac_lib in '' rt; do |
13319 | if test -z "$ac_lib"; then | |
13320 | ac_res="none required" | |
13321 | else | |
13322 | ac_res=-l$ac_lib | |
13323 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13324 | fi | |
13325 | if ac_fn_c_try_link "$LINENO"; then : | |
13326 | ac_cv_search_timer_create=$ac_res | |
13327 | fi | |
13328 | rm -f core conftest.err conftest.$ac_objext \ | |
13329 | conftest$ac_exeext | |
08c2568c | 13330 | if ${ac_cv_search_timer_create+:} false; then : |
7083c021 | 13331 | break |
030272f3 | 13332 | fi |
7083c021 | 13333 | done |
08c2568c | 13334 | if ${ac_cv_search_timer_create+:} false; then : |
030272f3 | 13335 | |
db137867 | 13336 | else |
7083c021 | 13337 | ac_cv_search_timer_create=no |
db137867 | 13338 | fi |
7083c021 AC |
13339 | rm conftest.$ac_ext |
13340 | LIBS=$ac_func_search_save_LIBS | |
db137867 | 13341 | fi |
7083c021 AC |
13342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5 |
13343 | $as_echo "$ac_cv_search_timer_create" >&6; } | |
13344 | ac_res=$ac_cv_search_timer_create | |
13345 | if test "$ac_res" != no; then : | |
13346 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
db137867 | 13347 | |
7083c021 | 13348 | $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
db137867 | 13349 | |
7083c021 | 13350 | fi |
db137867 | 13351 | |
7083c021 AC |
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5 |
13353 | $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; } | |
08c2568c | 13354 | if ${rb__cv_timer_create_works+:} false; then : |
7083c021 AC |
13355 | $as_echo_n "(cached) " >&6 |
13356 | else | |
13357 | if test "$cross_compiling" = yes; then : | |
13358 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13359 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c EM |
13360 | as_fn_error $? "cannot run test program while cross compiling |
13361 | See \`config.log' for more details" "$LINENO" 5; } | |
db137867 | 13362 | else |
7083c021 AC |
13363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13364 | /* end confdefs.h. */ | |
db137867 | 13365 | |
7083c021 AC |
13366 | #ifdef HAVE_TIME_H |
13367 | #include <time.h> | |
13368 | #endif | |
13369 | #ifdef HAVE_SIGNAL_H | |
13370 | #include <signal.h> | |
13371 | #endif | |
13372 | #ifdef HAVE_UNISTD_H | |
13373 | #include <unistd.h> | |
13374 | #endif | |
13375 | int main(int argc, char *argv[]) | |
13376 | { | |
13377 | #if HAVE_TIMER_CREATE | |
13378 | struct sigevent ev; | |
13379 | timer_t timer; | |
13380 | ev.sigev_notify = SIGEV_SIGNAL; | |
13381 | ev.sigev_signo = SIGVTALRM; | |
13382 | if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) { | |
13383 | return 1; | |
13384 | } | |
13385 | #else | |
13386 | return 1; | |
13387 | #endif | |
13388 | return 0; | |
13389 | } | |
db137867 | 13390 | |
7083c021 AC |
13391 | _ACEOF |
13392 | if ac_fn_c_try_run "$LINENO"; then : | |
13393 | rb__cv_timer_create_works=yes | |
13394 | else | |
13395 | rb__cv_timer_create_works=no | |
13396 | fi | |
13397 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13398 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
13399 | fi |
13400 | ||
13401 | ||
7083c021 AC |
13402 | fi |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5 | |
13404 | $as_echo "$rb__cv_timer_create_works" >&6; } | |
13405 | case $rb__cv_timer_create_works in | |
13406 | yes) | |
13407 | $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h | |
13408 | ;; | |
13409 | esac | |
db137867 | 13410 | |
7083c021 AC |
13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5 |
13412 | $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; } | |
08c2568c | 13413 | if ${rb__cv_timerfd_create_works+:} false; then : |
7083c021 AC |
13414 | $as_echo_n "(cached) " >&6 |
13415 | else | |
13416 | if test "$cross_compiling" = yes; then : | |
13417 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13418 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
08c2568c EM |
13419 | as_fn_error $? "cannot run test program while cross compiling |
13420 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
13421 | else |
13422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13423 | /* end confdefs.h. */ | |
db137867 | 13424 | |
7083c021 AC |
13425 | #ifdef HAVE_TIME_H |
13426 | #include <time.h> | |
13427 | #endif | |
13428 | #ifdef HAVE_SIGNAL_H | |
13429 | #include <signal.h> | |
13430 | #endif | |
13431 | #ifdef HAVE_UNISTD_H | |
13432 | #include <unistd.h> | |
13433 | #endif | |
13434 | #ifdef HAVE_SYS_TIMERFD_H | |
13435 | #include <sys/timerfd.h> | |
13436 | #endif | |
13437 | int main(int argc, char *argv[]) | |
13438 | { | |
13439 | #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H) | |
13440 | if (timerfd_create(CLOCK_REALTIME, 0) < 0) { | |
13441 | return 1; | |
13442 | } | |
13443 | #else | |
13444 | return 1; | |
13445 | #endif | |
13446 | return 0; | |
13447 | } | |
db137867 | 13448 | |
7083c021 AC |
13449 | _ACEOF |
13450 | if ac_fn_c_try_run "$LINENO"; then : | |
13451 | rb__cv_timerfd_create_works=yes | |
13452 | else | |
13453 | rb__cv_timerfd_create_works=no | |
13454 | fi | |
13455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13456 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13457 | fi | |
db137867 | 13458 | |
db137867 AC |
13459 | |
13460 | fi | |
7083c021 AC |
13461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5 |
13462 | $as_echo "$rb__cv_timerfd_create_works" >&6; } | |
13463 | case $rb__cv_timerfd_create_works in | |
13464 | yes) | |
13465 | $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h | |
13466 | ;; | |
13467 | esac | |
db137867 | 13468 | |
7083c021 AC |
13469 | |
13470 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
13471 | # for constant arguments. Useless! | |
13472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
13473 | $as_echo_n "checking for working alloca.h... " >&6; } | |
08c2568c | 13474 | if ${ac_cv_working_alloca_h+:} false; then : |
030272f3 | 13475 | $as_echo_n "(cached) " >&6 |
db137867 | 13476 | else |
7083c021 | 13477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
030272f3 | 13478 | /* end confdefs.h. */ |
7083c021 | 13479 | #include <alloca.h> |
030272f3 VY |
13480 | int |
13481 | main () | |
13482 | { | |
7083c021 AC |
13483 | char *p = (char *) alloca (2 * sizeof (int)); |
13484 | if (p) return 0; | |
db137867 AC |
13485 | ; |
13486 | return 0; | |
13487 | } | |
13488 | _ACEOF | |
7083c021 AC |
13489 | if ac_fn_c_try_link "$LINENO"; then : |
13490 | ac_cv_working_alloca_h=yes | |
030272f3 | 13491 | else |
7083c021 | 13492 | ac_cv_working_alloca_h=no |
db137867 | 13493 | fi |
7083c021 AC |
13494 | rm -f core conftest.err conftest.$ac_objext \ |
13495 | conftest$ac_exeext conftest.$ac_ext | |
030272f3 | 13496 | fi |
7083c021 AC |
13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
13498 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
13499 | if test $ac_cv_working_alloca_h = yes; then | |
db137867 | 13500 | |
7083c021 | 13501 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
db137867 AC |
13502 | |
13503 | fi | |
13504 | ||
7083c021 AC |
13505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
13506 | $as_echo_n "checking for alloca... " >&6; } | |
08c2568c | 13507 | if ${ac_cv_func_alloca_works+:} false; then : |
030272f3 | 13508 | $as_echo_n "(cached) " >&6 |
db137867 | 13509 | else |
7083c021 | 13510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13511 | /* end confdefs.h. */ |
7083c021 AC |
13512 | #ifdef __GNUC__ |
13513 | # define alloca __builtin_alloca | |
13514 | #else | |
13515 | # ifdef _MSC_VER | |
13516 | # include <malloc.h> | |
13517 | # define alloca _alloca | |
13518 | # else | |
13519 | # ifdef HAVE_ALLOCA_H | |
13520 | # include <alloca.h> | |
13521 | # else | |
13522 | # ifdef _AIX | |
13523 | #pragma alloca | |
13524 | # else | |
13525 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
08c2568c | 13526 | void *alloca (size_t); |
7083c021 AC |
13527 | # endif |
13528 | # endif | |
13529 | # endif | |
13530 | # endif | |
db137867 | 13531 | #endif |
7083c021 | 13532 | |
db137867 AC |
13533 | int |
13534 | main () | |
13535 | { | |
7083c021 AC |
13536 | char *p = (char *) alloca (1); |
13537 | if (p) return 0; | |
db137867 AC |
13538 | ; |
13539 | return 0; | |
13540 | } | |
13541 | _ACEOF | |
7083c021 AC |
13542 | if ac_fn_c_try_link "$LINENO"; then : |
13543 | ac_cv_func_alloca_works=yes | |
db137867 | 13544 | else |
7083c021 | 13545 | ac_cv_func_alloca_works=no |
db137867 | 13546 | fi |
7083c021 AC |
13547 | rm -f core conftest.err conftest.$ac_objext \ |
13548 | conftest$ac_exeext conftest.$ac_ext | |
db137867 | 13549 | fi |
7083c021 AC |
13550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
13551 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
db137867 | 13552 | |
7083c021 | 13553 | if test $ac_cv_func_alloca_works = yes; then |
db137867 | 13554 | |
7083c021 | 13555 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
db137867 | 13556 | |
db137867 | 13557 | else |
7083c021 AC |
13558 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13559 | # that cause trouble. Some versions do not even contain alloca or | |
13560 | # contain a buggy version. If you still want to use their alloca, | |
13561 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
db137867 | 13562 | |
7083c021 | 13563 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
db137867 | 13564 | |
7083c021 | 13565 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
db137867 AC |
13566 | |
13567 | ||
7083c021 AC |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
13569 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
08c2568c | 13570 | if ${ac_cv_os_cray+:} false; then : |
030272f3 | 13571 | $as_echo_n "(cached) " >&6 |
db137867 | 13572 | else |
7083c021 | 13573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 13574 | /* end confdefs.h. */ |
7083c021 AC |
13575 | #if defined CRAY && ! defined CRAY2 |
13576 | webecray | |
13577 | #else | |
13578 | wenotbecray | |
13579 | #endif | |
db137867 | 13580 | |
db137867 | 13581 | _ACEOF |
7083c021 AC |
13582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13583 | $EGREP "webecray" >/dev/null 2>&1; then : | |
13584 | ac_cv_os_cray=yes | |
db137867 | 13585 | else |
7083c021 | 13586 | ac_cv_os_cray=no |
db137867 | 13587 | fi |
7083c021 | 13588 | rm -f conftest* |
db137867 | 13589 | |
db137867 | 13590 | fi |
7083c021 AC |
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
13592 | $as_echo "$ac_cv_os_cray" >&6; } | |
13593 | if test $ac_cv_os_cray = yes; then | |
13594 | for ac_func in _getb67 GETB67 getb67; do | |
13595 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13596 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 13597 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
db137867 | 13598 | |
7083c021 AC |
13599 | cat >>confdefs.h <<_ACEOF |
13600 | #define CRAY_STACKSEG_END $ac_func | |
13601 | _ACEOF | |
db137867 | 13602 | |
7083c021 AC |
13603 | break |
13604 | fi | |
db137867 | 13605 | |
7083c021 AC |
13606 | done |
13607 | fi | |
db137867 | 13608 | |
7083c021 AC |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
13610 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
08c2568c | 13611 | if ${ac_cv_c_stack_direction+:} false; then : |
030272f3 | 13612 | $as_echo_n "(cached) " >&6 |
db137867 | 13613 | else |
7083c021 AC |
13614 | if test "$cross_compiling" = yes; then : |
13615 | ac_cv_c_stack_direction=0 | |
13616 | else | |
13617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 13618 | /* end confdefs.h. */ |
7083c021 | 13619 | $ac_includes_default |
db137867 | 13620 | int |
7083c021 | 13621 | find_stack_direction () |
db137867 | 13622 | { |
7083c021 AC |
13623 | static char *addr = 0; |
13624 | auto char dummy; | |
13625 | if (addr == 0) | |
13626 | { | |
13627 | addr = &dummy; | |
13628 | return find_stack_direction (); | |
13629 | } | |
13630 | else | |
13631 | return (&dummy > addr) ? 1 : -1; | |
030272f3 | 13632 | } |
030272f3 VY |
13633 | |
13634 | int | |
13635 | main () | |
13636 | { | |
7083c021 | 13637 | return find_stack_direction () < 0; |
db137867 AC |
13638 | } |
13639 | _ACEOF | |
7083c021 AC |
13640 | if ac_fn_c_try_run "$LINENO"; then : |
13641 | ac_cv_c_stack_direction=1 | |
030272f3 | 13642 | else |
7083c021 | 13643 | ac_cv_c_stack_direction=-1 |
030272f3 | 13644 | fi |
7083c021 AC |
13645 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13646 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
13647 | fi |
13648 | ||
db137867 | 13649 | fi |
7083c021 AC |
13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
13651 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
13652 | cat >>confdefs.h <<_ACEOF | |
13653 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
db137867 AC |
13654 | _ACEOF |
13655 | ||
db137867 | 13656 | |
7083c021 | 13657 | fi |
db137867 | 13658 | |
7083c021 AC |
13659 | for ac_header in vfork.h |
13660 | do : | |
13661 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
08c2568c | 13662 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
7083c021 AC |
13663 | cat >>confdefs.h <<_ACEOF |
13664 | #define HAVE_VFORK_H 1 | |
13665 | _ACEOF | |
db137867 | 13666 | |
7083c021 | 13667 | fi |
db137867 | 13668 | |
7083c021 | 13669 | done |
a9fb3ed0 | 13670 | |
7083c021 AC |
13671 | for ac_func in fork vfork |
13672 | do : | |
13673 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13674 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
08c2568c | 13675 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
13676 | cat >>confdefs.h <<_ACEOF |
13677 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13678 | _ACEOF | |
a9fb3ed0 | 13679 | |
7083c021 AC |
13680 | fi |
13681 | done | |
3202e249 | 13682 | |
7083c021 AC |
13683 | if test "x$ac_cv_func_fork" = xyes; then |
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
13685 | $as_echo_n "checking for working fork... " >&6; } | |
08c2568c | 13686 | if ${ac_cv_func_fork_works+:} false; then : |
030272f3 | 13687 | $as_echo_n "(cached) " >&6 |
db137867 | 13688 | else |
7083c021 AC |
13689 | if test "$cross_compiling" = yes; then : |
13690 | ac_cv_func_fork_works=cross | |
13691 | else | |
13692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 13693 | /* end confdefs.h. */ |
7083c021 | 13694 | $ac_includes_default |
db137867 AC |
13695 | int |
13696 | main () | |
13697 | { | |
7083c021 AC |
13698 | |
13699 | /* By Ruediger Kuhlmann. */ | |
13700 | return fork () < 0; | |
13701 | ||
db137867 AC |
13702 | ; |
13703 | return 0; | |
13704 | } | |
13705 | _ACEOF | |
7083c021 AC |
13706 | if ac_fn_c_try_run "$LINENO"; then : |
13707 | ac_cv_func_fork_works=yes | |
db137867 | 13708 | else |
7083c021 | 13709 | ac_cv_func_fork_works=no |
db137867 | 13710 | fi |
7083c021 AC |
13711 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13712 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 | 13713 | fi |
db137867 AC |
13714 | |
13715 | fi | |
7083c021 AC |
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
13717 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
db137867 | 13718 | |
7083c021 AC |
13719 | else |
13720 | ac_cv_func_fork_works=$ac_cv_func_fork | |
13721 | fi | |
13722 | if test "x$ac_cv_func_fork_works" = xcross; then | |
13723 | case $host in | |
13724 | *-*-amigaos* | *-*-msdosdjgpp*) | |
13725 | # Override, as these systems have only a dummy fork() stub | |
13726 | ac_cv_func_fork_works=no | |
13727 | ;; | |
13728 | *) | |
13729 | ac_cv_func_fork_works=yes | |
13730 | ;; | |
13731 | esac | |
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
13733 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
13734 | fi | |
13735 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
13736 | if test "x$ac_cv_func_vfork" = xyes; then | |
13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
13738 | $as_echo_n "checking for working vfork... " >&6; } | |
08c2568c | 13739 | if ${ac_cv_func_vfork_works+:} false; then : |
030272f3 | 13740 | $as_echo_n "(cached) " >&6 |
db137867 | 13741 | else |
7083c021 AC |
13742 | if test "$cross_compiling" = yes; then : |
13743 | ac_cv_func_vfork_works=cross | |
13744 | else | |
13745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 13746 | /* end confdefs.h. */ |
7083c021 AC |
13747 | /* Thanks to Paul Eggert for this test. */ |
13748 | $ac_includes_default | |
13749 | #include <sys/wait.h> | |
13750 | #ifdef HAVE_VFORK_H | |
13751 | # include <vfork.h> | |
13752 | #endif | |
13753 | /* On some sparc systems, changes by the child to local and incoming | |
13754 | argument registers are propagated back to the parent. The compiler | |
13755 | is told about this with #include <vfork.h>, but some compilers | |
13756 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
13757 | static variable whose address is put into a register that is | |
13758 | clobbered by the vfork. */ | |
13759 | static void | |
db137867 | 13760 | #ifdef __cplusplus |
7083c021 AC |
13761 | sparc_address_test (int arg) |
13762 | # else | |
13763 | sparc_address_test (arg) int arg; | |
db137867 | 13764 | #endif |
7083c021 AC |
13765 | { |
13766 | static pid_t child; | |
13767 | if (!child) { | |
13768 | child = vfork (); | |
13769 | if (child < 0) { | |
13770 | perror ("vfork"); | |
13771 | _exit(2); | |
13772 | } | |
13773 | if (!child) { | |
13774 | arg = getpid(); | |
13775 | write(-1, "", 0); | |
13776 | _exit (arg); | |
13777 | } | |
13778 | } | |
13779 | } | |
13780 | ||
db137867 AC |
13781 | int |
13782 | main () | |
13783 | { | |
7083c021 AC |
13784 | pid_t parent = getpid (); |
13785 | pid_t child; | |
13786 | ||
13787 | sparc_address_test (0); | |
13788 | ||
13789 | child = vfork (); | |
13790 | ||
13791 | if (child == 0) { | |
13792 | /* Here is another test for sparc vfork register problems. This | |
13793 | test uses lots of local variables, at least as many local | |
13794 | variables as main has allocated so far including compiler | |
13795 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
13796 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
13797 | reuse the register of parent for one of the local variables, | |
13798 | since it will think that parent can't possibly be used any more | |
13799 | in this routine. Assigning to the local variable will thus | |
13800 | munge parent in the parent process. */ | |
13801 | pid_t | |
13802 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
13803 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
13804 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
13805 | use the same hardware register for all 8 local variables. */ | |
13806 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
13807 | || p != p5 || p != p6 || p != p7) | |
13808 | _exit(1); | |
db137867 | 13809 | |
7083c021 AC |
13810 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
13811 | from child file descriptors. If the child closes a descriptor | |
13812 | before it execs or exits, this munges the parent's descriptor | |
13813 | as well. Test for this by closing stdout in the child. */ | |
13814 | _exit(close(fileno(stdout)) != 0); | |
13815 | } else { | |
13816 | int status; | |
13817 | struct stat st; | |
db137867 | 13818 | |
7083c021 AC |
13819 | while (wait(&status) != child) |
13820 | ; | |
13821 | return ( | |
13822 | /* Was there some problem with vforking? */ | |
13823 | child < 0 | |
db137867 | 13824 | |
7083c021 AC |
13825 | /* Did the child fail? (This shouldn't happen.) */ |
13826 | || status | |
13827 | ||
13828 | /* Did the vfork/compiler bug occur? */ | |
13829 | || parent != getpid() | |
13830 | ||
13831 | /* Did the file descriptor bug occur? */ | |
13832 | || fstat(fileno(stdout), &st) != 0 | |
13833 | ); | |
13834 | } | |
13835 | } | |
13836 | _ACEOF | |
13837 | if ac_fn_c_try_run "$LINENO"; then : | |
13838 | ac_cv_func_vfork_works=yes | |
db137867 | 13839 | else |
7083c021 | 13840 | ac_cv_func_vfork_works=no |
db137867 | 13841 | fi |
7083c021 AC |
13842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13843 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 | 13844 | fi |
db137867 | 13845 | |
7083c021 AC |
13846 | fi |
13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
13848 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
db137867 | 13849 | |
7083c021 AC |
13850 | fi; |
13851 | if test "x$ac_cv_func_fork_works" = xcross; then | |
13852 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
13854 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
db137867 AC |
13855 | fi |
13856 | ||
7083c021 AC |
13857 | if test "x$ac_cv_func_vfork_works" = xyes; then |
13858 | ||
13859 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
db137867 | 13860 | |
db137867 | 13861 | else |
db137867 | 13862 | |
7083c021 | 13863 | $as_echo "#define vfork fork" >>confdefs.h |
db137867 AC |
13864 | |
13865 | fi | |
7083c021 AC |
13866 | if test "x$ac_cv_func_fork_works" = xyes; then |
13867 | ||
13868 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
db137867 | 13869 | |
db137867 | 13870 | fi |
7083c021 | 13871 | |
96f4052b AC |
13872 | |
13873 | ||
13874 | ||
13875 | for ac_header in $ac_header_list | |
7083c021 AC |
13876 | do : |
13877 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
96f4052b AC |
13878 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
13879 | " | |
08c2568c | 13880 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
13881 | cat >>confdefs.h <<_ACEOF |
13882 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13883 | _ACEOF | |
13884 | ||
db137867 | 13885 | fi |
db137867 | 13886 | |
7083c021 AC |
13887 | done |
13888 | ||
96f4052b AC |
13889 | |
13890 | ||
13891 | ||
13892 | ||
13893 | ||
13894 | ||
13895 | ||
7083c021 AC |
13896 | for ac_func in getpagesize |
13897 | do : | |
13898 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
08c2568c | 13899 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
7083c021 AC |
13900 | cat >>confdefs.h <<_ACEOF |
13901 | #define HAVE_GETPAGESIZE 1 | |
db137867 AC |
13902 | _ACEOF |
13903 | ||
13904 | fi | |
7083c021 | 13905 | done |
db137867 | 13906 | |
7083c021 AC |
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
13908 | $as_echo_n "checking for working mmap... " >&6; } | |
08c2568c | 13909 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
030272f3 | 13910 | $as_echo_n "(cached) " >&6 |
db137867 | 13911 | else |
7083c021 AC |
13912 | if test "$cross_compiling" = yes; then : |
13913 | ac_cv_func_mmap_fixed_mapped=no | |
13914 | else | |
13915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 13916 | /* end confdefs.h. */ |
7083c021 AC |
13917 | $ac_includes_default |
13918 | /* malloc might have been renamed as rpl_malloc. */ | |
13919 | #undef malloc | |
db137867 | 13920 | |
7083c021 AC |
13921 | /* Thanks to Mike Haertel and Jim Avera for this test. |
13922 | Here is a matrix of mmap possibilities: | |
13923 | mmap private not fixed | |
13924 | mmap private fixed at somewhere currently unmapped | |
13925 | mmap private fixed at somewhere already mapped | |
13926 | mmap shared not fixed | |
13927 | mmap shared fixed at somewhere currently unmapped | |
13928 | mmap shared fixed at somewhere already mapped | |
13929 | For private mappings, we should verify that changes cannot be read() | |
13930 | back from the file, nor mmap's back from the file at a different | |
13931 | address. (There have been systems where private was not correctly | |
13932 | implemented like the infamous i386 svr4.0, and systems where the | |
13933 | VM page cache was not coherent with the file system buffer cache | |
13934 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
13935 | For shared mappings, we should conversely verify that changes get | |
13936 | propagated back to all the places they're supposed to be. | |
13937 | ||
13938 | Grep wants private fixed already mapped. | |
13939 | The main things grep needs to know about mmap are: | |
13940 | * does it exist and is it safe to write into the mmap'd area | |
13941 | * how to use it (BSD variants) */ | |
13942 | ||
13943 | #include <fcntl.h> | |
13944 | #include <sys/mman.h> | |
13945 | ||
13946 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
13947 | char *malloc (); | |
db137867 | 13948 | #endif |
7083c021 AC |
13949 | |
13950 | /* This mess was copied from the GNU getpagesize.h. */ | |
13951 | #ifndef HAVE_GETPAGESIZE | |
7083c021 AC |
13952 | # ifdef _SC_PAGESIZE |
13953 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
13954 | # else /* no _SC_PAGESIZE */ | |
13955 | # ifdef HAVE_SYS_PARAM_H | |
13956 | # include <sys/param.h> | |
13957 | # ifdef EXEC_PAGESIZE | |
13958 | # define getpagesize() EXEC_PAGESIZE | |
13959 | # else /* no EXEC_PAGESIZE */ | |
13960 | # ifdef NBPG | |
13961 | # define getpagesize() NBPG * CLSIZE | |
13962 | # ifndef CLSIZE | |
13963 | # define CLSIZE 1 | |
13964 | # endif /* no CLSIZE */ | |
13965 | # else /* no NBPG */ | |
13966 | # ifdef NBPC | |
13967 | # define getpagesize() NBPC | |
13968 | # else /* no NBPC */ | |
13969 | # ifdef PAGESIZE | |
13970 | # define getpagesize() PAGESIZE | |
13971 | # endif /* PAGESIZE */ | |
13972 | # endif /* no NBPC */ | |
13973 | # endif /* no NBPG */ | |
13974 | # endif /* no EXEC_PAGESIZE */ | |
13975 | # else /* no HAVE_SYS_PARAM_H */ | |
13976 | # define getpagesize() 8192 /* punt totally */ | |
13977 | # endif /* no HAVE_SYS_PARAM_H */ | |
13978 | # endif /* no _SC_PAGESIZE */ | |
13979 | ||
13980 | #endif /* no HAVE_GETPAGESIZE */ | |
13981 | ||
13982 | int | |
13983 | main () | |
db137867 | 13984 | { |
7083c021 | 13985 | char *data, *data2, *data3; |
5a241f54 | 13986 | const char *cdata2; |
7083c021 | 13987 | int i, pagesize; |
96f4052b | 13988 | int fd, fd2; |
7083c021 AC |
13989 | |
13990 | pagesize = getpagesize (); | |
13991 | ||
13992 | /* First, make a file with some known garbage in it. */ | |
13993 | data = (char *) malloc (pagesize); | |
13994 | if (!data) | |
13995 | return 1; | |
13996 | for (i = 0; i < pagesize; ++i) | |
13997 | *(data + i) = rand (); | |
13998 | umask (0); | |
13999 | fd = creat ("conftest.mmap", 0600); | |
14000 | if (fd < 0) | |
96f4052b | 14001 | return 2; |
7083c021 | 14002 | if (write (fd, data, pagesize) != pagesize) |
96f4052b | 14003 | return 3; |
7083c021 AC |
14004 | close (fd); |
14005 | ||
96f4052b AC |
14006 | /* Next, check that the tail of a page is zero-filled. File must have |
14007 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
14008 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
14009 | if (fd2 < 0) | |
14010 | return 4; | |
5a241f54 AC |
14011 | cdata2 = ""; |
14012 | if (write (fd2, cdata2, 1) != 1) | |
96f4052b | 14013 | return 5; |
5a241f54 | 14014 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
96f4052b AC |
14015 | if (data2 == MAP_FAILED) |
14016 | return 6; | |
14017 | for (i = 0; i < pagesize; ++i) | |
14018 | if (*(data2 + i)) | |
14019 | return 7; | |
14020 | close (fd2); | |
14021 | if (munmap (data2, pagesize)) | |
14022 | return 8; | |
14023 | ||
7083c021 AC |
14024 | /* Next, try to mmap the file at a fixed address which already has |
14025 | something else allocated at it. If we can, also make sure that | |
14026 | we see the same garbage. */ | |
14027 | fd = open ("conftest.mmap", O_RDWR); | |
14028 | if (fd < 0) | |
96f4052b | 14029 | return 9; |
7083c021 AC |
14030 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
14031 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
96f4052b | 14032 | return 10; |
7083c021 AC |
14033 | for (i = 0; i < pagesize; ++i) |
14034 | if (*(data + i) != *(data2 + i)) | |
96f4052b | 14035 | return 11; |
7083c021 AC |
14036 | |
14037 | /* Finally, make sure that changes to the mapped area do not | |
14038 | percolate back to the file as seen by read(). (This is a bug on | |
14039 | some variants of i386 svr4.0.) */ | |
14040 | for (i = 0; i < pagesize; ++i) | |
14041 | *(data2 + i) = *(data2 + i) + 1; | |
14042 | data3 = (char *) malloc (pagesize); | |
14043 | if (!data3) | |
96f4052b | 14044 | return 12; |
7083c021 | 14045 | if (read (fd, data3, pagesize) != pagesize) |
96f4052b | 14046 | return 13; |
7083c021 AC |
14047 | for (i = 0; i < pagesize; ++i) |
14048 | if (*(data + i) != *(data3 + i)) | |
96f4052b | 14049 | return 14; |
7083c021 AC |
14050 | close (fd); |
14051 | return 0; | |
db137867 | 14052 | } |
db137867 | 14053 | _ACEOF |
7083c021 AC |
14054 | if ac_fn_c_try_run "$LINENO"; then : |
14055 | ac_cv_func_mmap_fixed_mapped=yes | |
db137867 | 14056 | else |
7083c021 | 14057 | ac_cv_func_mmap_fixed_mapped=no |
db137867 | 14058 | fi |
7083c021 AC |
14059 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14060 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
db137867 AC |
14061 | fi |
14062 | ||
7083c021 AC |
14063 | fi |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
14065 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
14066 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
db137867 | 14067 | |
7083c021 | 14068 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
db137867 AC |
14069 | |
14070 | fi | |
96f4052b | 14071 | rm -f conftest.mmap conftest.txt |
db137867 | 14072 | |
3202e249 | 14073 | |
7083c021 AC |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 |
14075 | $as_echo_n "checking for /dev/poll... " >&6; } | |
14076 | if test -c "/dev/poll"; then | |
14077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14078 | $as_echo "yes" >&6; } | |
3202e249 | 14079 | |
7083c021 | 14080 | $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h |
3202e249 | 14081 | |
7083c021 AC |
14082 | else |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14084 | $as_echo "no" >&6; } | |
3202e249 VY |
14085 | fi |
14086 | ||
14087 | ||
7083c021 AC |
14088 | if test "$is_mingw" = "yes"; then |
14089 | ||
14090 | $as_echo "#define HAVE_WIN32 1" >>confdefs.h | |
3202e249 VY |
14091 | |
14092 | fi | |
3202e249 | 14093 | |
db137867 | 14094 | |
7083c021 AC |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
14096 | $as_echo_n "checking for OpenSSL... " >&6; } | |
14097 | # Check whether --enable-openssl was given. | |
14098 | if test "${enable_openssl+set}" = set; then : | |
14099 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
db137867 | 14100 | else |
7083c021 | 14101 | cf_enable_openssl="auto" |
db137867 AC |
14102 | fi |
14103 | ||
db137867 | 14104 | |
7083c021 AC |
14105 | if test "$cf_enable_openssl" != "no" ; then |
14106 | cf_openssl_basedir="" | |
14107 | if test "$cf_enable_openssl" != "auto" && | |
14108 | test "$cf_enable_openssl" != "yes" ; then | |
14109 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
14110 | else | |
14111 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
14112 | /usr/local/openssl ; do | |
14113 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
14114 | cf_openssl_basedir="${dirs}" | |
14115 | break | |
14116 | fi | |
14117 | done | |
14118 | unset dirs | |
14119 | fi | |
14120 | if test ! -z "$cf_openssl_basedir"; then | |
14121 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
14122 | SSL_CFLAGS="-I${cf_openssl_basedir}/include" | |
14123 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
14124 | else | |
14125 | cf_openssl_basedir="" | |
14126 | fi | |
14127 | else | |
14128 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
14129 | cf_openssl_basedir="/usr" | |
14130 | fi | |
14131 | fi | |
db137867 | 14132 | |
7083c021 AC |
14133 | if test ! -z "$cf_openssl_basedir"; then |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 | |
14135 | $as_echo "$cf_openssl_basedir" >&6; } | |
14136 | cf_enable_openssl="yes" | |
14137 | else | |
14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 | |
14139 | $as_echo "not found. Specify a correct path?" >&6; } | |
14140 | cf_enable_openssl="no" | |
14141 | fi | |
14142 | unset cf_openssl_basedir | |
14143 | else | |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
14145 | $as_echo "disabled" >&6; } | |
db137867 AC |
14146 | fi |
14147 | ||
7083c021 AC |
14148 | save_CPPFLAGS="$CPPFLAGS" |
14149 | CPPFLAGS="$CPPFLAGS $SSL_CFLAGS" | |
14150 | save_LIBS="$LIBS" | |
14151 | LIBS="$LIBS $SSL_LIBS" | |
14152 | if test "$cf_enable_openssl" != no; then | |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5 | |
14154 | $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; } | |
14155 | if test "$cross_compiling" = yes; then : | |
14156 | cf_enable_openssl=no | |
db137867 | 14157 | else |
7083c021 | 14158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db137867 | 14159 | /* end confdefs.h. */ |
7083c021 AC |
14160 | #include <openssl/opensslv.h> |
14161 | #include <stdlib.h> | |
db137867 AC |
14162 | int |
14163 | main () | |
14164 | { | |
7083c021 AC |
14165 | if (OPENSSL_VERSION_NUMBER >= 0x00907000) |
14166 | exit(0); else exit(1); | |
14167 | ; | |
14168 | return 0; | |
14169 | } | |
db137867 | 14170 | _ACEOF |
7083c021 AC |
14171 | if ac_fn_c_try_run "$LINENO"; then : |
14172 | cf_enable_openssl=yes | |
14173 | else | |
14174 | cf_enable_openssl=no | |
14175 | fi | |
14176 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14177 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14178 | fi | |
db137867 AC |
14179 | |
14180 | ||
7083c021 AC |
14181 | if test "$cf_enable_openssl" != no; then |
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
14183 | $as_echo "found" >&6; } | |
14184 | else | |
14185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 | |
14186 | $as_echo "no - OpenSSL support disabled" >&6; } | |
14187 | fi | |
db137867 | 14188 | |
db137867 | 14189 | fi |
db137867 | 14190 | |
7083c021 AC |
14191 | |
14192 | if test "$cf_enable_openssl" != no; then | |
14193 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5 | |
14195 | $as_echo_n "checking for RAND_status in -lcrypto... " >&6; } | |
08c2568c | 14196 | if ${ac_cv_lib_crypto_RAND_status+:} false; then : |
030272f3 | 14197 | $as_echo_n "(cached) " >&6 |
db137867 | 14198 | else |
7083c021 AC |
14199 | ac_check_lib_save_LIBS=$LIBS |
14200 | LIBS="-lcrypto $LIBS" | |
14201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14202 | /* end confdefs.h. */ |
db137867 AC |
14203 | |
14204 | /* Override any GCC internal prototype to avoid an error. | |
14205 | Use char because int might match the return type of a GCC | |
14206 | builtin and then its argument prototype would still apply. */ | |
14207 | #ifdef __cplusplus | |
14208 | extern "C" | |
14209 | #endif | |
7083c021 | 14210 | char RAND_status (); |
db137867 AC |
14211 | int |
14212 | main () | |
14213 | { | |
7083c021 | 14214 | return RAND_status (); |
db137867 AC |
14215 | ; |
14216 | return 0; | |
14217 | } | |
14218 | _ACEOF | |
7083c021 AC |
14219 | if ac_fn_c_try_link "$LINENO"; then : |
14220 | ac_cv_lib_crypto_RAND_status=yes | |
db137867 | 14221 | else |
7083c021 | 14222 | ac_cv_lib_crypto_RAND_status=no |
db137867 | 14223 | fi |
7083c021 AC |
14224 | rm -f core conftest.err conftest.$ac_objext \ |
14225 | conftest$ac_exeext conftest.$ac_ext | |
14226 | LIBS=$ac_check_lib_save_LIBS | |
db137867 | 14227 | fi |
7083c021 AC |
14228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5 |
14229 | $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; } | |
08c2568c | 14230 | if test "x$ac_cv_lib_crypto_RAND_status" = xyes; then : |
7083c021 AC |
14231 | cf_enable_openssl=yes |
14232 | else | |
14233 | cf_enable_openssl=no | |
db137867 AC |
14234 | fi |
14235 | ||
db137867 AC |
14236 | fi |
14237 | ||
7083c021 AC |
14238 | if test "$cf_enable_openssl" != no; then |
14239 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5 | |
14241 | $as_echo_n "checking for SSL_read in -lssl... " >&6; } | |
08c2568c | 14242 | if ${ac_cv_lib_ssl_SSL_read+:} false; then : |
030272f3 | 14243 | $as_echo_n "(cached) " >&6 |
db137867 | 14244 | else |
7083c021 AC |
14245 | ac_check_lib_save_LIBS=$LIBS |
14246 | LIBS="-lssl -lcrypto $LIBS" | |
14247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
db137867 | 14248 | /* end confdefs.h. */ |
db137867 | 14249 | |
7083c021 AC |
14250 | /* Override any GCC internal prototype to avoid an error. |
14251 | Use char because int might match the return type of a GCC | |
14252 | builtin and then its argument prototype would still apply. */ | |
14253 | #ifdef __cplusplus | |
14254 | extern "C" | |
14255 | #endif | |
14256 | char SSL_read (); | |
db137867 AC |
14257 | int |
14258 | main () | |
14259 | { | |
7083c021 AC |
14260 | return SSL_read (); |
14261 | ; | |
14262 | return 0; | |
db137867 AC |
14263 | } |
14264 | _ACEOF | |
7083c021 AC |
14265 | if ac_fn_c_try_link "$LINENO"; then : |
14266 | ac_cv_lib_ssl_SSL_read=yes | |
db137867 | 14267 | else |
7083c021 | 14268 | ac_cv_lib_ssl_SSL_read=no |
db137867 | 14269 | fi |
7083c021 AC |
14270 | rm -f core conftest.err conftest.$ac_objext \ |
14271 | conftest$ac_exeext conftest.$ac_ext | |
14272 | LIBS=$ac_check_lib_save_LIBS | |
14273 | fi | |
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5 | |
14275 | $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; } | |
08c2568c | 14276 | if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then : |
7083c021 AC |
14277 | SSL_LIBS="$SSL_LIBS -lssl -lcrypto" |
14278 | else | |
14279 | cf_enable_openssl=no | |
db137867 | 14280 | fi |
db137867 AC |
14281 | |
14282 | fi | |
db137867 | 14283 | |
db137867 AC |
14284 | |
14285 | ||
7083c021 AC |
14286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5 |
14287 | $as_echo_n "checking for GnuTLS... " >&6; } | |
14288 | # Check whether --enable-gnutls was given. | |
14289 | if test "${enable_gnutls+set}" = set; then : | |
14290 | enableval=$enable_gnutls; cf_enable_gnutls=$enableval | |
14291 | else | |
14292 | cf_enable_gnutls="auto" | |
db137867 AC |
14293 | fi |
14294 | ||
14295 | ||
7083c021 AC |
14296 | if test "$cf_enable_gnutls" != no; then |
14297 | ||
14298 | ||
a949ab1a AC |
14299 | |
14300 | ||
14301 | ||
14302 | ||
7083c021 AC |
14303 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
14304 | if test -n "$ac_tool_prefix"; then | |
14305 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
14306 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
14307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14308 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 14309 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
030272f3 | 14310 | $as_echo_n "(cached) " >&6 |
db137867 | 14311 | else |
7083c021 AC |
14312 | case $PKG_CONFIG in |
14313 | [\\/]* | ?:[\\/]*) | |
14314 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14315 | ;; | |
14316 | *) | |
14317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14318 | for as_dir in $PATH | |
14319 | do | |
14320 | IFS=$as_save_IFS | |
14321 | test -z "$as_dir" && as_dir=. | |
14322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14324 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
14325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14326 | break 2 | |
14327 | fi | |
14328 | done | |
14329 | done | |
14330 | IFS=$as_save_IFS | |
14331 | ||
14332 | ;; | |
db137867 | 14333 | esac |
7083c021 AC |
14334 | fi |
14335 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
14336 | if test -n "$PKG_CONFIG"; then | |
14337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
14338 | $as_echo "$PKG_CONFIG" >&6; } | |
db137867 | 14339 | else |
7083c021 AC |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14341 | $as_echo "no" >&6; } | |
14342 | fi | |
14343 | ||
db137867 | 14344 | |
db137867 | 14345 | fi |
7083c021 AC |
14346 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
14347 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
14348 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14349 | set dummy pkg-config; ac_word=$2 | |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14351 | $as_echo_n "checking for $ac_word... " >&6; } | |
08c2568c | 14352 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
7083c021 AC |
14353 | $as_echo_n "(cached) " >&6 |
14354 | else | |
14355 | case $ac_pt_PKG_CONFIG in | |
14356 | [\\/]* | ?:[\\/]*) | |
14357 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
14358 | ;; | |
14359 | *) | |
14360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14361 | for as_dir in $PATH | |
14362 | do | |
14363 | IFS=$as_save_IFS | |
14364 | test -z "$as_dir" && as_dir=. | |
14365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14367 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
14368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14369 | break 2 | |
14370 | fi | |
14371 | done | |
14372 | done | |
14373 | IFS=$as_save_IFS | |
db137867 | 14374 | |
7083c021 AC |
14375 | ;; |
14376 | esac | |
14377 | fi | |
14378 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
14379 | if test -n "$ac_pt_PKG_CONFIG"; then | |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
14381 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
14382 | else | |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14384 | $as_echo "no" >&6; } | |
14385 | fi | |
db137867 | 14386 | |
7083c021 AC |
14387 | if test "x$ac_pt_PKG_CONFIG" = x; then |
14388 | PKG_CONFIG="" | |
14389 | else | |
14390 | case $cross_compiling:$ac_tool_warned in | |
14391 | yes:) | |
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14393 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14394 | ac_tool_warned=yes ;; | |
db137867 | 14395 | esac |
7083c021 AC |
14396 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
14397 | fi | |
db137867 | 14398 | else |
7083c021 AC |
14399 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
14400 | fi | |
db137867 | 14401 | |
db137867 | 14402 | fi |
7083c021 AC |
14403 | if test -n "$PKG_CONFIG"; then |
14404 | _pkg_min_version=0.9.0 | |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
14406 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
14407 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14409 | $as_echo "yes" >&6; } | |
14410 | else | |
14411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14412 | $as_echo "no" >&6; } | |
14413 | PKG_CONFIG="" | |
14414 | fi | |
7083c021 | 14415 | fi |
db137867 | 14416 | |
7083c021 AC |
14417 | pkg_failed=no |
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 | |
14419 | $as_echo_n "checking for GNUTLS... " >&6; } | |
db137867 | 14420 | |
96f4052b AC |
14421 | if test -n "$GNUTLS_CFLAGS"; then |
14422 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" | |
14423 | elif test -n "$PKG_CONFIG"; then | |
14424 | if test -n "$PKG_CONFIG" && \ | |
7083c021 AC |
14425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 |
14426 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
14427 | ac_status=$? | |
14428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14429 | test $ac_status = 0; }; then | |
14430 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` | |
db137867 | 14431 | else |
7083c021 | 14432 | pkg_failed=yes |
db137867 | 14433 | fi |
96f4052b AC |
14434 | else |
14435 | pkg_failed=untried | |
db137867 | 14436 | fi |
96f4052b AC |
14437 | if test -n "$GNUTLS_LIBS"; then |
14438 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" | |
14439 | elif test -n "$PKG_CONFIG"; then | |
14440 | if test -n "$PKG_CONFIG" && \ | |
7083c021 AC |
14441 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 |
14442 | ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 | |
14443 | ac_status=$? | |
14444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14445 | test $ac_status = 0; }; then | |
14446 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` | |
14447 | else | |
14448 | pkg_failed=yes | |
14449 | fi | |
96f4052b AC |
14450 | else |
14451 | pkg_failed=untried | |
db137867 AC |
14452 | fi |
14453 | ||
db137867 AC |
14454 | |
14455 | ||
7083c021 | 14456 | if test $pkg_failed = yes; then |
a949ab1a AC |
14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14458 | $as_echo "no" >&6; } | |
db137867 | 14459 | |
7083c021 AC |
14460 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
14461 | _pkg_short_errors_supported=yes | |
db137867 | 14462 | else |
7083c021 AC |
14463 | _pkg_short_errors_supported=no |
14464 | fi | |
14465 | if test $_pkg_short_errors_supported = yes; then | |
96f4052b | 14466 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1` |
7083c021 | 14467 | else |
96f4052b | 14468 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls" 2>&1` |
7083c021 AC |
14469 | fi |
14470 | # Put the nasty error message in config.log where it belongs | |
14471 | echo "$GNUTLS_PKG_ERRORS" >&5 | |
db137867 | 14472 | |
a949ab1a | 14473 | cf_enable_gnutls="no" |
7083c021 | 14474 | elif test $pkg_failed = untried; then |
a949ab1a AC |
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14476 | $as_echo "no" >&6; } | |
7083c021 AC |
14477 | cf_enable_gnutls="no" |
14478 | else | |
14479 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS | |
14480 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS | |
14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14482 | $as_echo "yes" >&6; } | |
db137867 | 14483 | |
7083c021 | 14484 | cf_enable_gnutls="yes" |
db137867 | 14485 | |
7083c021 AC |
14486 | fi |
14487 | fi | |
db137867 | 14488 | |
7083c021 AC |
14489 | if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then |
14490 | cf_enable_gnutls="no" | |
14491 | fi | |
db137867 | 14492 | |
7083c021 | 14493 | if test x"$cf_enable_openssl" != xno; then |
db137867 | 14494 | |
7083c021 | 14495 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
db137867 | 14496 | |
7083c021 AC |
14497 | GNUTLS_CFLAGS="" |
14498 | GNUTLS_LIBS="" | |
14499 | SSL_TYPE="openssl" | |
14500 | elif test x"$cf_enable_gnutls" != xno; then | |
14501 | ||
14502 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
db137867 | 14503 | |
7083c021 AC |
14504 | SSL_LIBS="" |
14505 | SSL_CFLAGS="" | |
14506 | SSL_TYPE="gnutls" | |
db137867 | 14507 | fi |
db137867 | 14508 | |
db137867 | 14509 | |
db137867 | 14510 | |
db137867 | 14511 | |
7083c021 AC |
14512 | CPPFLAGS="$save_CPPFLAGS" |
14513 | LIBS="$save_LIBS" | |
14514 | ||
14515 | ||
db137867 AC |
14516 | |
14517 | ||
db137867 | 14518 | |
db137867 | 14519 | |
7083c021 AC |
14520 | # Check whether --enable-assert was given. |
14521 | if test "${enable_assert+set}" = set; then : | |
14522 | enableval=$enable_assert; assert=$enableval | |
14523 | else | |
14524 | assert=no | |
14525 | fi | |
db137867 | 14526 | |
db137867 | 14527 | |
7083c021 | 14528 | if test "$assert" = no; then |
db137867 | 14529 | |
7083c021 | 14530 | $as_echo "#define NDEBUG 1" >>confdefs.h |
db137867 | 14531 | |
7083c021 | 14532 | elif test "$assert" = soft; then |
db137867 | 14533 | |
7083c021 | 14534 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
db137867 | 14535 | |
db137867 | 14536 | |
7083c021 | 14537 | $as_echo "#define NDEBUG 1" >>confdefs.h |
db137867 | 14538 | |
7083c021 AC |
14539 | elif test "$assert" = yes; then |
14540 | assert = "hard"; | |
14541 | fi | |
14542 | ||
14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 | |
14544 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
14545 | # Check whether --enable-profile was given. | |
14546 | if test "${enable_profile+set}" = set; then : | |
14547 | enableval=$enable_profile; profile=$enableval | |
db137867 | 14548 | else |
7083c021 AC |
14549 | profile=no |
14550 | fi | |
14551 | ||
14552 | ||
14553 | if test "$profile" = yes; then | |
14554 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
14555 | CFLAGS="$CFLAGS -pg -static" | |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5 | |
14557 | $as_echo "yes, adding -pg -static" >&6; } | |
db137867 | 14558 | |
7083c021 AC |
14559 | $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h |
14560 | ||
14561 | else | |
14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 | |
14563 | $as_echo "no, profile builds only work with gcc" >&6; } | |
14564 | fi | |
14565 | else | |
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14567 | $as_echo "no" >&6; } | |
db137867 | 14568 | fi |
7083c021 AC |
14569 | |
14570 | # Check whether --enable-balloc was given. | |
14571 | if test "${enable_balloc+set}" = set; then : | |
14572 | enableval=$enable_balloc; balloc=$enableval | |
14573 | else | |
14574 | balloc=yes | |
db137867 AC |
14575 | fi |
14576 | ||
14577 | ||
7083c021 AC |
14578 | if test "$balloc" = no; then |
14579 | ||
14580 | $as_echo "#define NOBALLOC 1" >>confdefs.h | |
14581 | ||
db137867 | 14582 | fi |
db137867 | 14583 | |
7083c021 AC |
14584 | # Check whether --enable-warnings was given. |
14585 | if test "${enable_warnings+set}" = set; then : | |
14586 | 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" | |
db137867 AC |
14587 | fi |
14588 | ||
db137867 | 14589 | |
db137867 | 14590 | |
db137867 | 14591 | |
db137867 | 14592 | |
db137867 | 14593 | |
db137867 | 14594 | |
db137867 AC |
14595 | |
14596 | ||
14597 | ||
7083c021 AC |
14598 | |
14599 | if test "$prefix" = "NONE"; then | |
14600 | ||
14601 | cat >>confdefs.h <<_ACEOF | |
14602 | #define RB_PREFIX "$ac_default_prefix" | |
db137867 | 14603 | _ACEOF |
7083c021 AC |
14604 | |
14605 | ||
db137867 | 14606 | else |
db137867 | 14607 | |
db137867 | 14608 | |
7083c021 | 14609 | prefix=`echo $prefix | sed 's/\/$//'` |
db137867 | 14610 | |
7083c021 AC |
14611 | cat >>confdefs.h <<_ACEOF |
14612 | #define RB_PREFIX "$prefix" | |
db137867 | 14613 | _ACEOF |
db137867 | 14614 | |
7083c021 | 14615 | |
db137867 AC |
14616 | fi |
14617 | ||
db137867 | 14618 | |
db137867 | 14619 | |
7083c021 | 14620 | ac_config_commands="$ac_config_commands include/librb-config.h" |
db137867 | 14621 | |
db137867 | 14622 | |
db137867 | 14623 | |
7083c021 | 14624 | ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc" |
db137867 AC |
14625 | |
14626 | ||
7083c021 AC |
14627 | cat >confcache <<\_ACEOF |
14628 | # This file is a shell script that caches the results of configure | |
14629 | # tests run on this system so they can be shared between configure | |
14630 | # scripts and configure runs, see configure's option --config-cache. | |
14631 | # It is not useful on other systems. If it contains results you don't | |
14632 | # want to keep, you may remove or edit it. | |
14633 | # | |
14634 | # config.status only pays attention to the cache file if you give it | |
14635 | # the --recheck option to rerun configure. | |
14636 | # | |
14637 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14638 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14639 | # following values. | |
14640 | ||
db137867 | 14641 | _ACEOF |
db137867 | 14642 | |
7083c021 AC |
14643 | # The following way of writing the cache mishandles newlines in values, |
14644 | # but we know of no workaround that is simple, portable, and efficient. | |
14645 | # So, we kill variables containing newlines. | |
14646 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14647 | # and sets the high bit in the cache file unless we assign to the vars. | |
14648 | ( | |
14649 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14650 | eval ac_val=\$$ac_var | |
14651 | case $ac_val in #( | |
14652 | *${as_nl}*) | |
14653 | case $ac_var in #( | |
14654 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14655 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14656 | esac | |
14657 | case $ac_var in #( | |
14658 | _ | IFS | as_nl) ;; #( | |
14659 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14660 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14661 | esac ;; | |
14662 | esac | |
14663 | done | |
14664 | ||
14665 | (set) 2>&1 | | |
14666 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
14667 | *${as_nl}ac_space=\ *) | |
14668 | # `set' does not quote correctly, so add quotes: double-quote | |
14669 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
14670 | sed -n \ | |
14671 | "s/'/'\\\\''/g; | |
14672 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
14673 | ;; #( | |
14674 | *) | |
14675 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14676 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
14677 | ;; | |
14678 | esac | | |
14679 | sort | |
14680 | ) | | |
14681 | sed ' | |
14682 | /^ac_cv_env_/b end | |
14683 | t clear | |
14684 | :clear | |
14685 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14686 | t end | |
14687 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14688 | :end' >>confcache | |
14689 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14690 | if test -w "$cache_file"; then | |
08c2568c | 14691 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14693 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
08c2568c EM |
14694 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14695 | cat confcache >"$cache_file" | |
14696 | else | |
14697 | case $cache_file in #( | |
14698 | */* | ?:*) | |
14699 | mv -f confcache "$cache_file"$$ && | |
14700 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14701 | *) | |
14702 | mv -f confcache "$cache_file" ;; | |
14703 | esac | |
14704 | fi | |
14705 | fi | |
7083c021 AC |
14706 | else |
14707 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
14708 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
14709 | fi | |
14710 | fi | |
14711 | rm -f confcache | |
14712 | ||
14713 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14714 | # Let make expand exec_prefix. | |
14715 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
db137867 | 14716 | |
7083c021 | 14717 | DEFS=-DHAVE_CONFIG_H |
db137867 | 14718 | |
7083c021 AC |
14719 | ac_libobjs= |
14720 | ac_ltlibobjs= | |
08c2568c | 14721 | U= |
7083c021 AC |
14722 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14723 | # 1. Remove the extension, and $U if already installed. | |
14724 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
14725 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14726 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14727 | # will be set to the directory where LIBOBJS objects are built. | |
14728 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14729 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
14730 | done | |
14731 | LIBOBJS=$ac_libobjs | |
db137867 | 14732 | |
7083c021 | 14733 | LTLIBOBJS=$ac_ltlibobjs |
db137867 | 14734 | |
db137867 | 14735 | |
7083c021 AC |
14736 | if test -n "$EXEEXT"; then |
14737 | am__EXEEXT_TRUE= | |
14738 | am__EXEEXT_FALSE='#' | |
14739 | else | |
14740 | am__EXEEXT_TRUE='#' | |
14741 | am__EXEEXT_FALSE= | |
db137867 AC |
14742 | fi |
14743 | ||
7083c021 | 14744 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
08c2568c | 14745 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
7083c021 | 14746 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
db137867 | 14747 | fi |
7083c021 | 14748 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
08c2568c | 14749 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
7083c021 AC |
14750 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14751 | fi | |
14752 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
08c2568c | 14753 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
7083c021 AC |
14754 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14755 | fi | |
f171dafb | 14756 | |
7083c021 | 14757 | if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then |
08c2568c | 14758 | as_fn_error $? "conditional \"MINGW\" was never defined. |
7083c021 | 14759 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
db137867 | 14760 | fi |
db137867 | 14761 | |
08c2568c | 14762 | : "${CONFIG_STATUS=./config.status}" |
7083c021 AC |
14763 | ac_write_fail=0 |
14764 | ac_clean_files_save=$ac_clean_files | |
14765 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14766 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
14767 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14768 | as_write_fail=0 | |
14769 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
14770 | #! $SHELL | |
14771 | # Generated by $as_me. | |
14772 | # Run this file to recreate the current configuration. | |
14773 | # Compiler output produced by configure, useful for debugging | |
14774 | # configure, is in config.log if it exists. | |
db137867 | 14775 | |
7083c021 AC |
14776 | debug=false |
14777 | ac_cs_recheck=false | |
14778 | ac_cs_silent=false | |
db137867 | 14779 | |
7083c021 AC |
14780 | SHELL=\${CONFIG_SHELL-$SHELL} |
14781 | export SHELL | |
14782 | _ASEOF | |
14783 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14784 | ## -------------------- ## | |
14785 | ## M4sh Initialization. ## | |
14786 | ## -------------------- ## | |
db137867 | 14787 | |
7083c021 AC |
14788 | # Be more Bourne compatible |
14789 | DUALCASE=1; export DUALCASE # for MKS sh | |
14790 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
14791 | emulate sh | |
14792 | NULLCMD=: | |
14793 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
14794 | # is contrary to our usage. Disable this feature. | |
14795 | alias -g '${1+"$@"}'='"$@"' | |
14796 | setopt NO_GLOB_SUBST | |
14797 | else | |
14798 | case `(set -o) 2>/dev/null` in #( | |
14799 | *posix*) : | |
14800 | set -o posix ;; #( | |
14801 | *) : | |
14802 | ;; | |
14803 | esac | |
14804 | fi | |
db137867 | 14805 | |
db137867 | 14806 | |
7083c021 AC |
14807 | as_nl=' |
14808 | ' | |
14809 | export as_nl | |
14810 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14811 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14812 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14813 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14814 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14815 | # but without wasting forks for bash or zsh. | |
14816 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14817 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14818 | as_echo='print -r --' | |
14819 | as_echo_n='print -rn --' | |
14820 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14821 | as_echo='printf %s\n' | |
14822 | as_echo_n='printf %s' | |
db137867 | 14823 | else |
7083c021 AC |
14824 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
14825 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14826 | as_echo_n='/usr/ucb/echo -n' | |
14827 | else | |
14828 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14829 | as_echo_n_body='eval | |
14830 | arg=$1; | |
14831 | case $arg in #( | |
14832 | *"$as_nl"*) | |
14833 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14834 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14835 | esac; | |
14836 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14837 | ' | |
14838 | export as_echo_n_body | |
14839 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14840 | fi | |
14841 | export as_echo_body | |
14842 | as_echo='sh -c $as_echo_body as_echo' | |
db137867 | 14843 | fi |
7083c021 AC |
14844 | |
14845 | # The user is always right. | |
14846 | if test "${PATH_SEPARATOR+set}" != set; then | |
14847 | PATH_SEPARATOR=: | |
14848 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14849 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14850 | PATH_SEPARATOR=';' | |
14851 | } | |
db137867 AC |
14852 | fi |
14853 | ||
14854 | ||
7083c021 AC |
14855 | # IFS |
14856 | # We need space, tab and new line, in precisely that order. Quoting is | |
14857 | # there to prevent editors from complaining about space-tab. | |
14858 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14859 | # splitting by setting IFS to empty value.) | |
14860 | IFS=" "" $as_nl" | |
db137867 | 14861 | |
7083c021 | 14862 | # Find who we are. Look in the path if we contain no directory separator. |
08c2568c | 14863 | as_myself= |
7083c021 AC |
14864 | case $0 in #(( |
14865 | *[\\/]* ) as_myself=$0 ;; | |
14866 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14867 | for as_dir in $PATH | |
14868 | do | |
14869 | IFS=$as_save_IFS | |
14870 | test -z "$as_dir" && as_dir=. | |
14871 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14872 | done | |
14873 | IFS=$as_save_IFS | |
db137867 | 14874 | |
7083c021 AC |
14875 | ;; |
14876 | esac | |
14877 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14878 | # in which case we are not to be found in the path. | |
14879 | if test "x$as_myself" = x; then | |
14880 | as_myself=$0 | |
14881 | fi | |
14882 | if test ! -f "$as_myself"; then | |
14883 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14884 | exit 1 | |
db137867 | 14885 | fi |
db137867 | 14886 | |
7083c021 AC |
14887 | # Unset variables that we do not need and which cause bugs (e.g. in |
14888 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14889 | # suppresses any "Segmentation fault" message there. '((' could | |
14890 | # trigger a bug in pdksh 5.2.14. | |
14891 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14892 | do eval test x\${$as_var+set} = xset \ | |
14893 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14894 | done | |
14895 | PS1='$ ' | |
14896 | PS2='> ' | |
14897 | PS4='+ ' | |
db137867 | 14898 | |
7083c021 AC |
14899 | # NLS nuisances. |
14900 | LC_ALL=C | |
14901 | export LC_ALL | |
14902 | LANGUAGE=C | |
14903 | export LANGUAGE | |
db137867 | 14904 | |
7083c021 AC |
14905 | # CDPATH. |
14906 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
db137867 | 14907 | |
db137867 | 14908 | |
08c2568c EM |
14909 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14910 | # ---------------------------------------- | |
7083c021 AC |
14911 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14912 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
08c2568c | 14913 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
14914 | as_fn_error () |
14915 | { | |
08c2568c EM |
14916 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14917 | if test "$4"; then | |
14918 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14919 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 14920 | fi |
08c2568c | 14921 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
14922 | as_fn_exit $as_status |
14923 | } # as_fn_error | |
db137867 | 14924 | |
db137867 | 14925 | |
7083c021 AC |
14926 | # as_fn_set_status STATUS |
14927 | # ----------------------- | |
14928 | # Set $? to STATUS, without forking. | |
14929 | as_fn_set_status () | |
14930 | { | |
14931 | return $1 | |
14932 | } # as_fn_set_status | |
14933 | ||
14934 | # as_fn_exit STATUS | |
14935 | # ----------------- | |
14936 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14937 | as_fn_exit () | |
14938 | { | |
14939 | set +e | |
14940 | as_fn_set_status $1 | |
14941 | exit $1 | |
14942 | } # as_fn_exit | |
14943 | ||
14944 | # as_fn_unset VAR | |
14945 | # --------------- | |
14946 | # Portably unset VAR. | |
14947 | as_fn_unset () | |
14948 | { | |
14949 | { eval $1=; unset $1;} | |
14950 | } | |
14951 | as_unset=as_fn_unset | |
14952 | # as_fn_append VAR VALUE | |
14953 | # ---------------------- | |
14954 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14955 | # advantage of any shell optimizations that allow amortized linear growth over | |
14956 | # repeated appends, instead of the typical quadratic growth present in naive | |
14957 | # implementations. | |
14958 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14959 | eval 'as_fn_append () | |
14960 | { | |
14961 | eval $1+=\$2 | |
14962 | }' | |
14963 | else | |
14964 | as_fn_append () | |
14965 | { | |
14966 | eval $1=\$$1\$2 | |
14967 | } | |
14968 | fi # as_fn_append | |
14969 | ||
14970 | # as_fn_arith ARG... | |
14971 | # ------------------ | |
14972 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14973 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14974 | # must be portable across $(()) and expr. | |
14975 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14976 | eval 'as_fn_arith () | |
14977 | { | |
14978 | as_val=$(( $* )) | |
14979 | }' | |
14980 | else | |
14981 | as_fn_arith () | |
14982 | { | |
14983 | as_val=`expr "$@" || test $? -eq 1` | |
14984 | } | |
14985 | fi # as_fn_arith | |
14986 | ||
db137867 | 14987 | |
7083c021 AC |
14988 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14989 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
14990 | as_expr=expr | |
14991 | else | |
14992 | as_expr=false | |
db137867 AC |
14993 | fi |
14994 | ||
7083c021 AC |
14995 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
14996 | as_basename=basename | |
14997 | else | |
14998 | as_basename=false | |
14999 | fi | |
db137867 | 15000 | |
7083c021 AC |
15001 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15002 | as_dirname=dirname | |
db137867 | 15003 | else |
7083c021 | 15004 | as_dirname=false |
db137867 AC |
15005 | fi |
15006 | ||
7083c021 AC |
15007 | as_me=`$as_basename -- "$0" || |
15008 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
15009 | X"$0" : 'X\(//\)$' \| \ | |
15010 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
15011 | $as_echo X/"$0" | | |
15012 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15013 | s//\1/ | |
15014 | q | |
15015 | } | |
15016 | /^X\/\(\/\/\)$/{ | |
15017 | s//\1/ | |
15018 | q | |
15019 | } | |
15020 | /^X\/\(\/\).*/{ | |
15021 | s//\1/ | |
15022 | q | |
15023 | } | |
15024 | s/.*/./; q'` | |
db137867 | 15025 | |
7083c021 AC |
15026 | # Avoid depending upon Character Ranges. |
15027 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15028 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15029 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15030 | as_cr_digits='0123456789' | |
15031 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
db137867 | 15032 | |
7083c021 AC |
15033 | ECHO_C= ECHO_N= ECHO_T= |
15034 | case `echo -n x` in #((((( | |
15035 | -n*) | |
15036 | case `echo 'xy\c'` in | |
15037 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15038 | xy) ECHO_C='\c';; | |
15039 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15040 | ECHO_T=' ';; | |
15041 | esac;; | |
15042 | *) | |
15043 | ECHO_N='-n';; | |
15044 | esac | |
15045 | ||
15046 | rm -f conf$$ conf$$.exe conf$$.file | |
15047 | if test -d conf$$.dir; then | |
15048 | rm -f conf$$.dir/conf$$.file | |
db137867 | 15049 | else |
7083c021 AC |
15050 | rm -f conf$$.dir |
15051 | mkdir conf$$.dir 2>/dev/null | |
db137867 | 15052 | fi |
7083c021 AC |
15053 | if (echo >conf$$.file) 2>/dev/null; then |
15054 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15055 | as_ln_s='ln -s' | |
15056 | # ... but there are two gotchas: | |
15057 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15058 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15059 | # In both cases, we have to default to `cp -p'. | |
15060 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15061 | as_ln_s='cp -p' | |
15062 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15063 | as_ln_s=ln | |
15064 | else | |
15065 | as_ln_s='cp -p' | |
15066 | fi | |
db137867 | 15067 | else |
7083c021 AC |
15068 | as_ln_s='cp -p' |
15069 | fi | |
15070 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
15071 | rmdir conf$$.dir 2>/dev/null | |
15072 | ||
15073 | ||
15074 | # as_fn_mkdir_p | |
15075 | # ------------- | |
15076 | # Create "$as_dir" as a directory, including parents if necessary. | |
15077 | as_fn_mkdir_p () | |
db137867 | 15078 | { |
db137867 | 15079 | |
7083c021 AC |
15080 | case $as_dir in #( |
15081 | -*) as_dir=./$as_dir;; | |
15082 | esac | |
15083 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15084 | as_dirs= | |
15085 | while :; do | |
15086 | case $as_dir in #( | |
15087 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15088 | *) as_qdir=$as_dir;; | |
15089 | esac | |
15090 | as_dirs="'$as_qdir' $as_dirs" | |
15091 | as_dir=`$as_dirname -- "$as_dir" || | |
15092 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15093 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15094 | X"$as_dir" : 'X\(//\)$' \| \ | |
15095 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15096 | $as_echo X"$as_dir" | | |
15097 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15098 | s//\1/ | |
15099 | q | |
15100 | } | |
15101 | /^X\(\/\/\)[^/].*/{ | |
15102 | s//\1/ | |
15103 | q | |
15104 | } | |
15105 | /^X\(\/\/\)$/{ | |
15106 | s//\1/ | |
15107 | q | |
15108 | } | |
15109 | /^X\(\/\).*/{ | |
15110 | s//\1/ | |
15111 | q | |
15112 | } | |
15113 | s/.*/./; q'` | |
15114 | test -d "$as_dir" && break | |
15115 | done | |
15116 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
08c2568c | 15117 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
15118 | |
15119 | ||
15120 | } # as_fn_mkdir_p | |
15121 | if mkdir -p . 2>/dev/null; then | |
15122 | as_mkdir_p='mkdir -p "$as_dir"' | |
15123 | else | |
15124 | test -d ./-p && rmdir ./-p | |
15125 | as_mkdir_p=false | |
db137867 | 15126 | fi |
7083c021 AC |
15127 | |
15128 | if test -x / >/dev/null 2>&1; then | |
15129 | as_test_x='test -x' | |
15130 | else | |
15131 | if ls -dL / >/dev/null 2>&1; then | |
15132 | as_ls_L_option=L | |
15133 | else | |
15134 | as_ls_L_option= | |
15135 | fi | |
15136 | as_test_x=' | |
15137 | eval sh -c '\'' | |
15138 | if test -d "$1"; then | |
15139 | test -d "$1/."; | |
15140 | else | |
15141 | case $1 in #( | |
15142 | -*)set "./$1";; | |
15143 | esac; | |
15144 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15145 | ???[sx]*):;;*)false;;esac;fi | |
15146 | '\'' sh | |
15147 | ' | |
db137867 | 15148 | fi |
7083c021 | 15149 | as_executable_p=$as_test_x |
db137867 | 15150 | |
7083c021 AC |
15151 | # Sed expression to map a string onto a valid CPP name. |
15152 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 15153 | |
7083c021 AC |
15154 | # Sed expression to map a string onto a valid variable name. |
15155 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
db137867 | 15156 | |
db137867 | 15157 | |
7083c021 AC |
15158 | exec 6>&1 |
15159 | ## ----------------------------------- ## | |
15160 | ## Main body of $CONFIG_STATUS script. ## | |
15161 | ## ----------------------------------- ## | |
15162 | _ASEOF | |
15163 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
db137867 | 15164 | |
7083c021 AC |
15165 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15166 | # Save the log message, to keep $0 and so on meaningful, and to | |
15167 | # report actual input values of CONFIG_FILES etc. instead of their | |
15168 | # values after options handling. | |
15169 | ac_log=" | |
15170 | This file was extended by libratbox $as_me devel, which was | |
08c2568c | 15171 | generated by GNU Autoconf 2.68. Invocation command line was |
db137867 | 15172 | |
7083c021 AC |
15173 | CONFIG_FILES = $CONFIG_FILES |
15174 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15175 | CONFIG_LINKS = $CONFIG_LINKS | |
15176 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15177 | $ $0 $@ | |
15178 | ||
15179 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
15180 | " | |
db137867 | 15181 | |
db137867 | 15182 | _ACEOF |
7083c021 AC |
15183 | |
15184 | case $ac_config_files in *" | |
15185 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
db137867 | 15186 | esac |
db137867 | 15187 | |
7083c021 AC |
15188 | case $ac_config_headers in *" |
15189 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15190 | esac | |
db137867 | 15191 | |
db137867 | 15192 | |
7083c021 AC |
15193 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15194 | # Files that config.status was made for. | |
15195 | config_files="$ac_config_files" | |
15196 | config_headers="$ac_config_headers" | |
15197 | config_commands="$ac_config_commands" | |
db137867 | 15198 | |
db137867 | 15199 | _ACEOF |
db137867 | 15200 | |
7083c021 AC |
15201 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15202 | ac_cs_usage="\ | |
15203 | \`$as_me' instantiates files and other configuration actions | |
15204 | from templates according to the current configuration. Unless the files | |
15205 | and actions are specified as TAGs, all are instantiated by default. | |
15206 | ||
15207 | Usage: $0 [OPTION]... [TAG]... | |
15208 | ||
15209 | -h, --help print this help, then exit | |
15210 | -V, --version print version number and configuration settings, then exit | |
96f4052b | 15211 | --config print configuration, then exit |
7083c021 AC |
15212 | -q, --quiet, --silent |
15213 | do not print progress messages | |
15214 | -d, --debug don't remove temporary files | |
15215 | --recheck update $as_me by reconfiguring in the same conditions | |
15216 | --file=FILE[:TEMPLATE] | |
15217 | instantiate the configuration file FILE | |
15218 | --header=FILE[:TEMPLATE] | |
15219 | instantiate the configuration header FILE | |
15220 | ||
15221 | Configuration files: | |
15222 | $config_files | |
15223 | ||
15224 | Configuration headers: | |
15225 | $config_headers | |
15226 | ||
15227 | Configuration commands: | |
15228 | $config_commands | |
15229 | ||
15230 | Report bugs to the package provider." | |
15231 | ||
db137867 | 15232 | _ACEOF |
7083c021 | 15233 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
96f4052b | 15234 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
7083c021 AC |
15235 | ac_cs_version="\\ |
15236 | libratbox config.status devel | |
08c2568c | 15237 | configured by $0, generated by GNU Autoconf 2.68, |
96f4052b | 15238 | with options \\"\$ac_cs_config\\" |
db137867 | 15239 | |
08c2568c | 15240 | Copyright (C) 2010 Free Software Foundation, Inc. |
7083c021 AC |
15241 | This config.status script is free software; the Free Software Foundation |
15242 | gives unlimited permission to copy, distribute and modify it." | |
db137867 | 15243 | |
7083c021 AC |
15244 | ac_pwd='$ac_pwd' |
15245 | srcdir='$srcdir' | |
15246 | INSTALL='$INSTALL' | |
15247 | MKDIR_P='$MKDIR_P' | |
15248 | AWK='$AWK' | |
15249 | test -n "\$AWK" || AWK=awk | |
15250 | _ACEOF | |
db137867 | 15251 | |
7083c021 AC |
15252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15253 | # The default lists apply if the user does not specify any file. | |
15254 | ac_need_defaults=: | |
15255 | while test $# != 0 | |
15256 | do | |
15257 | case $1 in | |
08c2568c | 15258 | --*=?*) |
7083c021 AC |
15259 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15260 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
15261 | ac_shift=: | |
15262 | ;; | |
08c2568c EM |
15263 | --*=) |
15264 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15265 | ac_optarg= | |
15266 | ac_shift=: | |
15267 | ;; | |
7083c021 AC |
15268 | *) |
15269 | ac_option=$1 | |
15270 | ac_optarg=$2 | |
15271 | ac_shift=shift | |
15272 | ;; | |
15273 | esac | |
15274 | ||
15275 | case $ac_option in | |
15276 | # Handling of the options. | |
15277 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
15278 | ac_cs_recheck=: ;; | |
15279 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
15280 | $as_echo "$ac_cs_version"; exit ;; | |
96f4052b AC |
15281 | --config | --confi | --conf | --con | --co | --c ) |
15282 | $as_echo "$ac_cs_config"; exit ;; | |
7083c021 AC |
15283 | --debug | --debu | --deb | --de | --d | -d ) |
15284 | debug=: ;; | |
15285 | --file | --fil | --fi | --f ) | |
15286 | $ac_shift | |
15287 | case $ac_optarg in | |
15288 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
08c2568c | 15289 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
15290 | esac |
15291 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
15292 | ac_need_defaults=false;; | |
15293 | --header | --heade | --head | --hea ) | |
15294 | $ac_shift | |
15295 | case $ac_optarg in | |
15296 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15297 | esac | |
15298 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
15299 | ac_need_defaults=false;; | |
15300 | --he | --h) | |
15301 | # Conflict between --help and --header | |
08c2568c | 15302 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 AC |
15303 | Try \`$0 --help' for more information.";; |
15304 | --help | --hel | -h ) | |
15305 | $as_echo "$ac_cs_usage"; exit ;; | |
15306 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
15307 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15308 | ac_cs_silent=: ;; | |
15309 | ||
15310 | # This is an error. | |
08c2568c | 15311 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 AC |
15312 | Try \`$0 --help' for more information." ;; |
15313 | ||
15314 | *) as_fn_append ac_config_targets " $1" | |
15315 | ac_need_defaults=false ;; | |
15316 | ||
15317 | esac | |
15318 | shift | |
15319 | done | |
db137867 | 15320 | |
7083c021 | 15321 | ac_configure_extra_args= |
c2ac22cc | 15322 | |
7083c021 AC |
15323 | if $ac_cs_silent; then |
15324 | exec 6>/dev/null | |
15325 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15326 | fi | |
c2ac22cc | 15327 | |
7083c021 AC |
15328 | _ACEOF |
15329 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15330 | if \$ac_cs_recheck; then | |
15331 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
15332 | shift | |
15333 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15334 | CONFIG_SHELL='$SHELL' | |
15335 | export CONFIG_SHELL | |
15336 | exec "\$@" | |
c2ac22cc VY |
15337 | fi |
15338 | ||
7083c021 AC |
15339 | _ACEOF |
15340 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15341 | exec 5>>config.log | |
15342 | { | |
15343 | echo | |
15344 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15345 | ## Running $as_me. ## | |
15346 | _ASBOX | |
15347 | $as_echo "$ac_log" | |
15348 | } >&5 | |
c2ac22cc | 15349 | |
7083c021 AC |
15350 | _ACEOF |
15351 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15352 | # | |
15353 | # INIT-COMMANDS | |
15354 | # | |
15355 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
c2ac22cc VY |
15356 | |
15357 | ||
7083c021 AC |
15358 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
15359 | # if CDPATH is set. | |
15360 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15361 | ||
15362 | sed_quote_subst='$sed_quote_subst' | |
15363 | double_quote_subst='$double_quote_subst' | |
15364 | delay_variable_subst='$delay_variable_subst' | |
b6d0720c AC |
15365 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
15366 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
15367 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
15368 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
15369 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
15370 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
15371 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
15372 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
a949ab1a | 15373 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
b6d0720c AC |
15374 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
15375 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
15376 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
15377 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
15378 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
15379 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
15380 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
15381 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
15382 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
15383 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
15384 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
15385 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
15386 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
15387 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
15388 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
15389 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
15390 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
15391 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
15392 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
15393 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
15394 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
15395 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
15396 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
15397 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
15398 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
15399 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
15400 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
15401 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
15402 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
15403 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
15404 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
15405 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
15406 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
15407 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
15408 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
15409 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
15410 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15411 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15412 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15413 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
15414 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
15415 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
15416 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
15417 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
15418 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
15419 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
15420 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
15421 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15422 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15423 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
15424 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
15425 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
15426 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
15427 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
15428 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
15429 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
15430 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
15431 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
15432 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
15433 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
15434 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
15435 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
15436 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
15437 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
15438 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
15439 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
15440 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15441 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
15442 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
15443 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15444 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15445 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
15446 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
15447 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15448 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15449 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15450 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
15451 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15452 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
15453 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15454 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15455 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
b6d0720c AC |
15456 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
15457 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
15458 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
15459 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
15460 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15461 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
15462 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
15463 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
15464 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
15465 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
15466 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
15467 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
15468 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
15469 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
15470 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15471 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
15472 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15473 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
15474 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
15475 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
15476 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15477 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
15478 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
15479 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
15480 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
15481 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
15482 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15483 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15484 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
15485 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
15486 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
15487 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
15488 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
15489 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
15490 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
15491 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
15492 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
15493 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
15494 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
7083c021 AC |
15495 | |
15496 | LTCC='$LTCC' | |
15497 | LTCFLAGS='$LTCFLAGS' | |
15498 | compiler='$compiler_DEFAULT' | |
15499 | ||
b6d0720c AC |
15500 | # A function that is used when there is no print builtin or printf. |
15501 | func_fallback_echo () | |
15502 | { | |
15503 | eval 'cat <<_LTECHO_EOF | |
15504 | \$1 | |
15505 | _LTECHO_EOF' | |
15506 | } | |
15507 | ||
7083c021 | 15508 | # Quote evaled strings. |
b6d0720c AC |
15509 | for var in SHELL \ |
15510 | ECHO \ | |
a949ab1a | 15511 | PATH_SEPARATOR \ |
b6d0720c | 15512 | SED \ |
7083c021 AC |
15513 | GREP \ |
15514 | EGREP \ | |
15515 | FGREP \ | |
15516 | LD \ | |
15517 | NM \ | |
15518 | LN_S \ | |
15519 | lt_SP2NL \ | |
15520 | lt_NL2SP \ | |
15521 | reload_flag \ | |
15522 | OBJDUMP \ | |
15523 | deplibs_check_method \ | |
15524 | file_magic_cmd \ | |
b6d0720c AC |
15525 | file_magic_glob \ |
15526 | want_nocaseglob \ | |
15527 | DLLTOOL \ | |
15528 | sharedlib_from_linklib_cmd \ | |
7083c021 AC |
15529 | AR \ |
15530 | AR_FLAGS \ | |
b6d0720c | 15531 | archiver_list_spec \ |
7083c021 AC |
15532 | STRIP \ |
15533 | RANLIB \ | |
15534 | CC \ | |
15535 | CFLAGS \ | |
15536 | compiler \ | |
15537 | lt_cv_sys_global_symbol_pipe \ | |
15538 | lt_cv_sys_global_symbol_to_cdecl \ | |
15539 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15540 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
b6d0720c | 15541 | nm_file_list_spec \ |
7083c021 | 15542 | lt_prog_compiler_no_builtin_flag \ |
7083c021 | 15543 | lt_prog_compiler_pic \ |
b6d0720c | 15544 | lt_prog_compiler_wl \ |
7083c021 AC |
15545 | lt_prog_compiler_static \ |
15546 | lt_cv_prog_compiler_c_o \ | |
15547 | need_locks \ | |
b6d0720c | 15548 | MANIFEST_TOOL \ |
7083c021 AC |
15549 | DSYMUTIL \ |
15550 | NMEDIT \ | |
15551 | LIPO \ | |
15552 | OTOOL \ | |
15553 | OTOOL64 \ | |
15554 | shrext_cmds \ | |
15555 | export_dynamic_flag_spec \ | |
15556 | whole_archive_flag_spec \ | |
15557 | compiler_needs_object \ | |
15558 | with_gnu_ld \ | |
15559 | allow_undefined_flag \ | |
15560 | no_undefined_flag \ | |
15561 | hardcode_libdir_flag_spec \ | |
7083c021 | 15562 | hardcode_libdir_separator \ |
7083c021 AC |
15563 | exclude_expsyms \ |
15564 | include_expsyms \ | |
15565 | file_list_spec \ | |
15566 | variables_saved_for_relink \ | |
15567 | libname_spec \ | |
15568 | library_names_spec \ | |
15569 | soname_spec \ | |
b6d0720c | 15570 | install_override_mode \ |
7083c021 AC |
15571 | finish_eval \ |
15572 | old_striplib \ | |
15573 | striplib; do | |
b6d0720c | 15574 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
7083c021 | 15575 | *[\\\\\\\`\\"\\\$]*) |
b6d0720c | 15576 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
7083c021 AC |
15577 | ;; |
15578 | *) | |
15579 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15580 | ;; | |
15581 | esac | |
c2ac22cc | 15582 | done |
7083c021 AC |
15583 | |
15584 | # Double-quote double-evaled strings. | |
15585 | for var in reload_cmds \ | |
15586 | old_postinstall_cmds \ | |
15587 | old_postuninstall_cmds \ | |
15588 | old_archive_cmds \ | |
15589 | extract_expsyms_cmds \ | |
15590 | old_archive_from_new_cmds \ | |
15591 | old_archive_from_expsyms_cmds \ | |
15592 | archive_cmds \ | |
15593 | archive_expsym_cmds \ | |
15594 | module_cmds \ | |
15595 | module_expsym_cmds \ | |
15596 | export_symbols_cmds \ | |
15597 | prelink_cmds \ | |
b6d0720c | 15598 | postlink_cmds \ |
7083c021 AC |
15599 | postinstall_cmds \ |
15600 | postuninstall_cmds \ | |
15601 | finish_cmds \ | |
15602 | sys_lib_search_path_spec \ | |
15603 | sys_lib_dlsearch_path_spec; do | |
b6d0720c | 15604 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
7083c021 | 15605 | *[\\\\\\\`\\"\\\$]*) |
b6d0720c | 15606 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
7083c021 AC |
15607 | ;; |
15608 | *) | |
15609 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15610 | ;; | |
15611 | esac | |
c2ac22cc | 15612 | done |
c2ac22cc | 15613 | |
7083c021 AC |
15614 | ac_aux_dir='$ac_aux_dir' |
15615 | xsi_shell='$xsi_shell' | |
15616 | lt_shell_append='$lt_shell_append' | |
c2ac22cc | 15617 | |
7083c021 AC |
15618 | # See if we are running on zsh, and set the options which allow our |
15619 | # commands through without removal of \ escapes INIT. | |
15620 | if test -n "\${ZSH_VERSION+set}" ; then | |
15621 | setopt NO_GLOB_SUBST | |
c2ac22cc | 15622 | fi |
c2ac22cc | 15623 | |
c2ac22cc | 15624 | |
7083c021 AC |
15625 | PACKAGE='$PACKAGE' |
15626 | VERSION='$VERSION' | |
15627 | TIMESTAMP='$TIMESTAMP' | |
15628 | RM='$RM' | |
15629 | ofile='$ofile' | |
c2ac22cc | 15630 | |
c2ac22cc | 15631 | |
c2ac22cc | 15632 | |
c2ac22cc | 15633 | |
7083c021 AC |
15634 | if test x$ac_cv_header_stdc = xyes; then |
15635 | rb_header_stdc=yes | |
15636 | fi | |
15637 | if test x$ac_cv_header_stdlib_h = xyes; then | |
15638 | rb_header_stdlib_h=yes | |
15639 | fi | |
15640 | if test x$ac_cv_header_string_h = xyes; then | |
15641 | rb_header_string_h=yes | |
15642 | fi | |
15643 | if test x$ac_cv_header_memory_h = xyes; then | |
15644 | rb_header_memory_h=yes | |
15645 | fi | |
15646 | if test "x${ac_cv_working_alloca_h+set}" = xset ; then | |
15647 | rb_alloca_h="$ac_cv_working_alloca_h" | |
15648 | else | |
15649 | rb_alloc_h="$ac_cv_header_alloca_h" | |
15650 | fi | |
15651 | if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then | |
15652 | rb_sockaddr_sa_len=yes | |
15653 | fi | |
15654 | if test x$ac_cv_header_sys_socket_h = xyes; then | |
15655 | rb_sys_socket_h=yes | |
15656 | fi | |
15657 | if test x$ac_cv_header_sys_types_h = xyes; then | |
15658 | rb_sys_types_h=yes | |
15659 | fi | |
15660 | if test x$ac_cv_header_sys_stat_h = xyes; then | |
15661 | rb_sys_stat_h=yes | |
15662 | fi | |
15663 | if test x$ac_cv_header_sys_time_h = xyes; then | |
15664 | rb_sys_time_h=yes | |
15665 | fi | |
15666 | if test x$ac_cv_header_time = xyes; then | |
15667 | rb_time_h=yes | |
15668 | fi | |
c2ac22cc | 15669 | |
7083c021 AC |
15670 | if test x$ac_cv_header_stdint_h = xyes; then |
15671 | rb_stdint_h=yes | |
15672 | fi | |
15673 | if test x$ac_cv_header_inttypes_h = xyes; then | |
15674 | rb_inttypes_h=yes | |
15675 | fi | |
15676 | if test x$ac_cv_header_netinet_in_h = xyes; then | |
15677 | rb_netinet_in_h=yes | |
15678 | fi | |
c2ac22cc | 15679 | |
7083c021 AC |
15680 | if test x$ac_cv_header_crypt_h = xyes; then |
15681 | rb_crypt_h=yes | |
15682 | fi | |
15683 | if test x$ac_cv_header_errno_h = xyes; then | |
15684 | rb_errno_h=yes | |
15685 | fi | |
15686 | if test x$ac_cv_header_unistd_h = xyes; then | |
15687 | rb_unistd_h=yes | |
15688 | fi | |
15689 | if test x$ac_cv_header_windows_h = xyes; then | |
15690 | rb_windows_h=yes | |
15691 | fi | |
15692 | if test x$ac_cv_header_winsock2_h = xyes; then | |
15693 | rb_winsock2_h=yes | |
15694 | fi | |
c2ac22cc | 15695 | |
7083c021 | 15696 | rb_socklen_t=$rb_socklen_t |
c2ac22cc | 15697 | |
7083c021 AC |
15698 | if test "x$rb_have_sockaddr_storage" = "xyes"; then |
15699 | rb_sockaddr_storage="yes" | |
15700 | else | |
15701 | rb_sockaddr_storage="no" | |
15702 | fi | |
c2ac22cc | 15703 | |
7083c021 | 15704 | rb_have_ipv6="$have_v6" |
c2ac22cc | 15705 | |
7083c021 AC |
15706 | rb_mv="$MV" |
15707 | rb_rm="$RM" | |
c2ac22cc | 15708 | |
c2ac22cc | 15709 | |
c2ac22cc | 15710 | |
db137867 | 15711 | |
db137867 | 15712 | |
c2ac22cc | 15713 | |
c2ac22cc VY |
15714 | _ACEOF |
15715 | ||
7083c021 | 15716 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
db137867 | 15717 | |
7083c021 AC |
15718 | # Handling of arguments. |
15719 | for ac_config_target in $ac_config_targets | |
15720 | do | |
15721 | case $ac_config_target in | |
15722 | "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;; | |
15723 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15724 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15725 | "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;; | |
15726 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
15727 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15728 | "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;; | |
c2ac22cc | 15729 | |
08c2568c | 15730 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
7083c021 AC |
15731 | esac |
15732 | done | |
c2ac22cc | 15733 | |
db137867 | 15734 | |
7083c021 AC |
15735 | # If the user did not use the arguments to specify the items to instantiate, |
15736 | # then the envvar interface is used. Set only those that are not. | |
15737 | # We use the long form for the default assignment because of an extremely | |
15738 | # bizarre bug on SunOS 4.1.3. | |
15739 | if $ac_need_defaults; then | |
15740 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15741 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15742 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15743 | fi | |
db137867 | 15744 | |
7083c021 AC |
15745 | # Have a temporary directory for convenience. Make it in the build tree |
15746 | # simply because there is no reason against having it here, and in addition, | |
15747 | # creating and moving files from /tmp can sometimes cause problems. | |
15748 | # Hook for its removal unless debugging. | |
15749 | # Note that there is a small window in which the directory will not be cleaned: | |
15750 | # after its creation but before its name has been assigned to `$tmp'. | |
15751 | $debug || | |
15752 | { | |
08c2568c | 15753 | tmp= ac_tmp= |
7083c021 | 15754 | trap 'exit_status=$? |
08c2568c EM |
15755 | : "${ac_tmp:=$tmp}" |
15756 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7083c021 AC |
15757 | ' 0 |
15758 | trap 'as_fn_exit 1' 1 2 13 15 | |
15759 | } | |
15760 | # Create a (secure) tmp directory for tmp files. | |
db137867 | 15761 | |
7083c021 AC |
15762 | { |
15763 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
08c2568c | 15764 | test -d "$tmp" |
7083c021 AC |
15765 | } || |
15766 | { | |
15767 | tmp=./conf$$-$RANDOM | |
15768 | (umask 077 && mkdir "$tmp") | |
08c2568c EM |
15769 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15770 | ac_tmp=$tmp | |
db137867 | 15771 | |
7083c021 AC |
15772 | # Set up the scripts for CONFIG_FILES section. |
15773 | # No need to generate them if there are no CONFIG_FILES. | |
15774 | # This happens for instance with `./config.status config.h'. | |
15775 | if test -n "$CONFIG_FILES"; then | |
db137867 AC |
15776 | |
15777 | ||
7083c021 AC |
15778 | ac_cr=`echo X | tr X '\015'` |
15779 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15780 | # But we know of no other shell where ac_cr would be empty at this | |
15781 | # point, so we can use a bashism as a fallback. | |
15782 | if test "x$ac_cr" = x; then | |
15783 | eval ac_cr=\$\'\\r\' | |
15784 | fi | |
15785 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15786 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
08c2568c | 15787 | ac_cs_awk_cr='\\r' |
db137867 | 15788 | else |
7083c021 | 15789 | ac_cs_awk_cr=$ac_cr |
db137867 AC |
15790 | fi |
15791 | ||
08c2568c | 15792 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
db137867 AC |
15793 | _ACEOF |
15794 | ||
db137867 | 15795 | |
7083c021 AC |
15796 | { |
15797 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15798 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15799 | echo "_ACEOF" | |
15800 | } >conf$$subs.sh || | |
08c2568c EM |
15801 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15802 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7083c021 AC |
15803 | ac_delim='%!_!# ' |
15804 | for ac_last_try in false false false false false :; do | |
15805 | . ./conf$$subs.sh || | |
08c2568c | 15806 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
db137867 | 15807 | |
7083c021 AC |
15808 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
15809 | if test $ac_delim_n = $ac_delim_num; then | |
15810 | break | |
15811 | elif $ac_last_try; then | |
08c2568c | 15812 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
15813 | else |
15814 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15815 | fi | |
15816 | done | |
15817 | rm -f conf$$subs.sh | |
db137867 | 15818 | |
7083c021 | 15819 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
08c2568c | 15820 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
db137867 | 15821 | _ACEOF |
7083c021 AC |
15822 | sed -n ' |
15823 | h | |
15824 | s/^/S["/; s/!.*/"]=/ | |
15825 | p | |
15826 | g | |
15827 | s/^[^!]*!// | |
15828 | :repl | |
15829 | t repl | |
15830 | s/'"$ac_delim"'$// | |
15831 | t delim | |
15832 | :nl | |
15833 | h | |
96f4052b | 15834 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
15835 | t more1 |
15836 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15837 | p | |
15838 | n | |
15839 | b repl | |
15840 | :more1 | |
15841 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15842 | p | |
15843 | g | |
15844 | s/.\{148\}// | |
15845 | t nl | |
15846 | :delim | |
15847 | h | |
96f4052b | 15848 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
15849 | t more2 |
15850 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15851 | p | |
15852 | b | |
15853 | :more2 | |
15854 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15855 | p | |
15856 | g | |
15857 | s/.\{148\}// | |
15858 | t delim | |
15859 | ' <conf$$subs.awk | sed ' | |
15860 | /^[^""]/{ | |
15861 | N | |
15862 | s/\n// | |
15863 | } | |
15864 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15865 | rm -f conf$$subs.awk | |
15866 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15867 | _ACAWK | |
08c2568c | 15868 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
15869 | for (key in S) S_is_set[key] = 1 |
15870 | FS = "\a" | |
db137867 | 15871 | |
7083c021 AC |
15872 | } |
15873 | { | |
15874 | line = $ 0 | |
15875 | nfields = split(line, field, "@") | |
15876 | substed = 0 | |
15877 | len = length(field[1]) | |
15878 | for (i = 2; i < nfields; i++) { | |
15879 | key = field[i] | |
15880 | keylen = length(key) | |
15881 | if (S_is_set[key]) { | |
15882 | value = S[key] | |
15883 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15884 | len += length(value) + length(field[++i]) | |
15885 | substed = 1 | |
15886 | } else | |
15887 | len += 1 + keylen | |
15888 | } | |
db137867 | 15889 | |
7083c021 AC |
15890 | print line |
15891 | } | |
15892 | ||
15893 | _ACAWK | |
15894 | _ACEOF | |
15895 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15896 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15897 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
db137867 | 15898 | else |
7083c021 | 15899 | cat |
08c2568c EM |
15900 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15901 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
7083c021 | 15902 | _ACEOF |
db137867 | 15903 | |
08c2568c EM |
15904 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15905 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7083c021 AC |
15906 | # trailing colons and then remove the whole line if VPATH becomes empty |
15907 | # (actually we leave an empty line to preserve line numbers). | |
15908 | if test "x$srcdir" = x.; then | |
08c2568c EM |
15909 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15910 | h | |
15911 | s/// | |
15912 | s/^/:/ | |
15913 | s/[ ]*$/:/ | |
15914 | s/:\$(srcdir):/:/g | |
15915 | s/:\${srcdir}:/:/g | |
15916 | s/:@srcdir@:/:/g | |
15917 | s/^:*// | |
7083c021 | 15918 | s/:*$// |
08c2568c EM |
15919 | x |
15920 | s/\(=[ ]*\).*/\1/ | |
15921 | G | |
15922 | s/\n// | |
7083c021 AC |
15923 | s/^[^=]*=[ ]*$// |
15924 | }' | |
15925 | fi | |
db137867 | 15926 | |
7083c021 AC |
15927 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15928 | fi # test -n "$CONFIG_FILES" | |
db137867 | 15929 | |
7083c021 AC |
15930 | # Set up the scripts for CONFIG_HEADERS section. |
15931 | # No need to generate them if there are no CONFIG_HEADERS. | |
15932 | # This happens for instance with `./config.status Makefile'. | |
15933 | if test -n "$CONFIG_HEADERS"; then | |
08c2568c | 15934 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 | 15935 | BEGIN { |
db137867 AC |
15936 | _ACEOF |
15937 | ||
7083c021 AC |
15938 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15939 | # here-document in config.status, that substitutes the proper values into | |
15940 | # config.h.in to produce config.h. | |
db137867 | 15941 | |
7083c021 AC |
15942 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15943 | # handling of long lines. | |
15944 | ac_delim='%!_!# ' | |
15945 | for ac_last_try in false false :; do | |
08c2568c EM |
15946 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15947 | if test -z "$ac_tt"; then | |
7083c021 AC |
15948 | break |
15949 | elif $ac_last_try; then | |
08c2568c | 15950 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
15951 | else |
15952 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15953 | fi | |
15954 | done | |
db137867 | 15955 | |
7083c021 AC |
15956 | # For the awk script, D is an array of macro values keyed by name, |
15957 | # likewise P contains macro parameters if any. Preserve backslash | |
15958 | # newline sequences. | |
db137867 | 15959 | |
7083c021 AC |
15960 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
15961 | sed -n ' | |
15962 | s/.\{148\}/&'"$ac_delim"'/g | |
15963 | t rset | |
15964 | :rset | |
15965 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15966 | t def | |
15967 | d | |
15968 | :def | |
15969 | s/\\$// | |
15970 | t bsnl | |
15971 | s/["\\]/\\&/g | |
15972 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15973 | D["\1"]=" \3"/p | |
15974 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15975 | d | |
15976 | :bsnl | |
15977 | s/["\\]/\\&/g | |
15978 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15979 | D["\1"]=" \3\\\\\\n"\\/p | |
15980 | t cont | |
15981 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15982 | t cont | |
15983 | d | |
15984 | :cont | |
15985 | n | |
15986 | s/.\{148\}/&'"$ac_delim"'/g | |
15987 | t clear | |
15988 | :clear | |
15989 | s/\\$// | |
15990 | t bsnlc | |
15991 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15992 | d | |
15993 | :bsnlc | |
15994 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15995 | b cont | |
15996 | ' <confdefs.h | sed ' | |
15997 | s/'"$ac_delim"'/"\\\ | |
15998 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
db137867 | 15999 | |
7083c021 AC |
16000 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16001 | for (key in D) D_is_set[key] = 1 | |
16002 | FS = "\a" | |
16003 | } | |
16004 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16005 | line = \$ 0 | |
16006 | split(line, arg, " ") | |
16007 | if (arg[1] == "#") { | |
16008 | defundef = arg[2] | |
16009 | mac1 = arg[3] | |
16010 | } else { | |
16011 | defundef = substr(arg[1], 2) | |
16012 | mac1 = arg[2] | |
16013 | } | |
16014 | split(mac1, mac2, "(") #) | |
16015 | macro = mac2[1] | |
16016 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16017 | if (D_is_set[macro]) { | |
16018 | # Preserve the white space surrounding the "#". | |
16019 | print prefix "define", macro P[macro] D[macro] | |
16020 | next | |
16021 | } else { | |
16022 | # Replace #undef with comments. This is necessary, for example, | |
16023 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16024 | # on some systems where configure will not decide to define it. | |
16025 | if (defundef == "undef") { | |
16026 | print "/*", prefix defundef, macro, "*/" | |
16027 | next | |
16028 | } | |
16029 | } | |
16030 | } | |
16031 | { print } | |
16032 | _ACAWK | |
db137867 | 16033 | _ACEOF |
7083c021 | 16034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
08c2568c | 16035 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 | 16036 | fi # test -n "$CONFIG_HEADERS" |
db137867 AC |
16037 | |
16038 | ||
7083c021 AC |
16039 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
16040 | shift | |
16041 | for ac_tag | |
16042 | do | |
16043 | case $ac_tag in | |
16044 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16045 | esac | |
16046 | case $ac_mode$ac_tag in | |
16047 | :[FHL]*:*);; | |
08c2568c | 16048 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7083c021 AC |
16049 | :[FH]-) ac_tag=-:-;; |
16050 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16051 | esac | |
16052 | ac_save_IFS=$IFS | |
16053 | IFS=: | |
16054 | set x $ac_tag | |
16055 | IFS=$ac_save_IFS | |
16056 | shift | |
16057 | ac_file=$1 | |
16058 | shift | |
db137867 | 16059 | |
7083c021 AC |
16060 | case $ac_mode in |
16061 | :L) ac_source=$1;; | |
16062 | :[FH]) | |
16063 | ac_file_inputs= | |
16064 | for ac_f | |
16065 | do | |
16066 | case $ac_f in | |
08c2568c | 16067 | -) ac_f="$ac_tmp/stdin";; |
7083c021 AC |
16068 | *) # Look for the file first in the build tree, then in the source tree |
16069 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16070 | # because $ac_f cannot contain `:'. | |
16071 | test -f "$ac_f" || | |
16072 | case $ac_f in | |
16073 | [\\/$]*) false;; | |
16074 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16075 | esac || | |
08c2568c | 16076 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7083c021 AC |
16077 | esac |
16078 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16079 | as_fn_append ac_file_inputs " '$ac_f'" | |
16080 | done | |
db137867 | 16081 | |
7083c021 AC |
16082 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
16083 | # use $as_me), people would be surprised to read: | |
16084 | # /* config.h. Generated by config.status. */ | |
16085 | configure_input='Generated from '` | |
16086 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16087 | `' by configure.' | |
16088 | if test x"$ac_file" != x-; then | |
16089 | configure_input="$ac_file. $configure_input" | |
16090 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16091 | $as_echo "$as_me: creating $ac_file" >&6;} | |
16092 | fi | |
16093 | # Neutralize special characters interpreted by sed in replacement strings. | |
16094 | case $configure_input in #( | |
16095 | *\&* | *\|* | *\\* ) | |
16096 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16097 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16098 | *) ac_sed_conf_input=$configure_input;; | |
16099 | esac | |
db137867 | 16100 | |
7083c021 | 16101 | case $ac_tag in |
08c2568c EM |
16102 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16103 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
7083c021 AC |
16104 | esac |
16105 | ;; | |
16106 | esac | |
db137867 | 16107 | |
7083c021 AC |
16108 | ac_dir=`$as_dirname -- "$ac_file" || |
16109 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16110 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16111 | X"$ac_file" : 'X\(//\)$' \| \ | |
16112 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
16113 | $as_echo X"$ac_file" | | |
16114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16115 | s//\1/ | |
16116 | q | |
16117 | } | |
16118 | /^X\(\/\/\)[^/].*/{ | |
16119 | s//\1/ | |
16120 | q | |
16121 | } | |
16122 | /^X\(\/\/\)$/{ | |
16123 | s//\1/ | |
16124 | q | |
16125 | } | |
16126 | /^X\(\/\).*/{ | |
16127 | s//\1/ | |
16128 | q | |
16129 | } | |
16130 | s/.*/./; q'` | |
16131 | as_dir="$ac_dir"; as_fn_mkdir_p | |
16132 | ac_builddir=. | |
db137867 | 16133 | |
7083c021 AC |
16134 | case "$ac_dir" in |
16135 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16136 | *) | |
16137 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16138 | # A ".." for each directory in $ac_dir_suffix. | |
16139 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16140 | case $ac_top_builddir_sub in | |
16141 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16142 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16143 | esac ;; | |
16144 | esac | |
16145 | ac_abs_top_builddir=$ac_pwd | |
16146 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16147 | # for backward compatibility: | |
16148 | ac_top_builddir=$ac_top_build_prefix | |
db137867 | 16149 | |
7083c021 AC |
16150 | case $srcdir in |
16151 | .) # We are building in place. | |
16152 | ac_srcdir=. | |
16153 | ac_top_srcdir=$ac_top_builddir_sub | |
16154 | ac_abs_top_srcdir=$ac_pwd ;; | |
16155 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
16156 | ac_srcdir=$srcdir$ac_dir_suffix; | |
16157 | ac_top_srcdir=$srcdir | |
16158 | ac_abs_top_srcdir=$srcdir ;; | |
16159 | *) # Relative name. | |
16160 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16161 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16162 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
16163 | esac | |
16164 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
db137867 | 16165 | |
c2ac22cc | 16166 | |
7083c021 AC |
16167 | case $ac_mode in |
16168 | :F) | |
16169 | # | |
16170 | # CONFIG_FILE | |
16171 | # | |
db137867 | 16172 | |
7083c021 AC |
16173 | case $INSTALL in |
16174 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
16175 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
16176 | esac | |
16177 | ac_MKDIR_P=$MKDIR_P | |
16178 | case $MKDIR_P in | |
16179 | [\\/$]* | ?:[\\/]* ) ;; | |
16180 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16181 | esac | |
db137867 AC |
16182 | _ACEOF |
16183 | ||
7083c021 AC |
16184 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16185 | # If the template does not know about datarootdir, expand it. | |
16186 | # FIXME: This hack should be removed a few years after 2.60. | |
16187 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16188 | ac_sed_dataroot=' | |
16189 | /datarootdir/ { | |
16190 | p | |
16191 | q | |
16192 | } | |
16193 | /@datadir@/p | |
16194 | /@docdir@/p | |
16195 | /@infodir@/p | |
16196 | /@localedir@/p | |
16197 | /@mandir@/p' | |
16198 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16199 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16200 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16202 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
16203 | _ACEOF | |
16204 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16205 | ac_datarootdir_hack=' | |
16206 | s&@datadir@&$datadir&g | |
16207 | s&@docdir@&$docdir&g | |
16208 | s&@infodir@&$infodir&g | |
16209 | s&@localedir@&$localedir&g | |
16210 | s&@mandir@&$mandir&g | |
16211 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16212 | esac | |
db137867 AC |
16213 | _ACEOF |
16214 | ||
7083c021 AC |
16215 | # Neutralize VPATH when `$srcdir' = `.'. |
16216 | # Shell code in configure.ac might set extrasub. | |
16217 | # FIXME: do we really want to maintain this feature? | |
16218 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16219 | ac_sed_extra="$ac_vpsub | |
16220 | $extrasub | |
16221 | _ACEOF | |
16222 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16223 | :t | |
16224 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16225 | s|@configure_input@|$ac_sed_conf_input|;t t | |
16226 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16227 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16228 | s&@srcdir@&$ac_srcdir&;t t | |
16229 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16230 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16231 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16232 | s&@builddir@&$ac_builddir&;t t | |
16233 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16234 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16235 | s&@INSTALL@&$ac_INSTALL&;t t | |
16236 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16237 | $ac_datarootdir_hack | |
16238 | " | |
08c2568c EM |
16239 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16240 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
db137867 | 16241 | |
7083c021 | 16242 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
08c2568c EM |
16243 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16244 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16245 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 16246 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
08c2568c | 16247 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 16248 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
08c2568c | 16249 | which seems to be undefined. Please make sure it is defined" >&2;} |
db137867 | 16250 | |
08c2568c | 16251 | rm -f "$ac_tmp/stdin" |
7083c021 | 16252 | case $ac_file in |
08c2568c EM |
16253 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16254 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 16255 | esac \ |
08c2568c | 16256 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7083c021 AC |
16257 | ;; |
16258 | :H) | |
16259 | # | |
16260 | # CONFIG_HEADER | |
16261 | # | |
16262 | if test x"$ac_file" != x-; then | |
16263 | { | |
16264 | $as_echo "/* $configure_input */" \ | |
08c2568c EM |
16265 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16266 | } >"$ac_tmp/config.h" \ | |
16267 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16268 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
16269 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16270 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
16271 | else | |
16272 | rm -f "$ac_file" | |
08c2568c EM |
16273 | mv "$ac_tmp/config.h" "$ac_file" \ |
16274 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7083c021 AC |
16275 | fi |
16276 | else | |
16277 | $as_echo "/* $configure_input */" \ | |
08c2568c EM |
16278 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16279 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
7083c021 AC |
16280 | fi |
16281 | # Compute "$ac_file"'s index in $config_headers. | |
16282 | _am_arg="$ac_file" | |
16283 | _am_stamp_count=1 | |
16284 | for _am_header in $config_headers :; do | |
16285 | case $_am_header in | |
16286 | $_am_arg | $_am_arg:* ) | |
16287 | break ;; | |
16288 | * ) | |
16289 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
16290 | esac | |
16291 | done | |
16292 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
16293 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16294 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
16295 | X"$_am_arg" : 'X\(//\)$' \| \ | |
16296 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
16297 | $as_echo X"$_am_arg" | | |
16298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16299 | s//\1/ | |
16300 | q | |
16301 | } | |
16302 | /^X\(\/\/\)[^/].*/{ | |
16303 | s//\1/ | |
16304 | q | |
16305 | } | |
16306 | /^X\(\/\/\)$/{ | |
16307 | s//\1/ | |
16308 | q | |
16309 | } | |
16310 | /^X\(\/\).*/{ | |
16311 | s//\1/ | |
16312 | q | |
16313 | } | |
16314 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
16315 | ;; | |
db137867 | 16316 | |
7083c021 AC |
16317 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16318 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
16319 | ;; | |
16320 | esac | |
db137867 | 16321 | |
db137867 | 16322 | |
7083c021 AC |
16323 | case $ac_file$ac_mode in |
16324 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
16325 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
16326 | # are listed without --file. Let's play safe and only enable the eval | |
16327 | # if we detect the quoting. | |
16328 | case $CONFIG_FILES in | |
16329 | *\'*) eval set x "$CONFIG_FILES" ;; | |
16330 | *) set x $CONFIG_FILES ;; | |
16331 | esac | |
16332 | shift | |
16333 | for mf | |
16334 | do | |
16335 | # Strip MF so we end up with the name of the file. | |
16336 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
16337 | # Check whether this is an Automake generated Makefile or not. | |
16338 | # We used to match only the files named `Makefile.in', but | |
16339 | # some people rename them; so instead we look at the file content. | |
16340 | # Grep'ing the first line is not enough: some people post-process | |
16341 | # each Makefile.in and add a new line on top of each file to say so. | |
16342 | # Grep'ing the whole file is not good either: AIX grep has a line | |
16343 | # limit of 2048, but all sed's we know have understand at least 4000. | |
16344 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
16345 | dirpart=`$as_dirname -- "$mf" || | |
16346 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16347 | X"$mf" : 'X\(//\)[^/]' \| \ | |
16348 | X"$mf" : 'X\(//\)$' \| \ | |
16349 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
16350 | $as_echo X"$mf" | | |
16351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16352 | s//\1/ | |
16353 | q | |
16354 | } | |
16355 | /^X\(\/\/\)[^/].*/{ | |
16356 | s//\1/ | |
16357 | q | |
16358 | } | |
16359 | /^X\(\/\/\)$/{ | |
16360 | s//\1/ | |
16361 | q | |
16362 | } | |
16363 | /^X\(\/\).*/{ | |
16364 | s//\1/ | |
16365 | q | |
16366 | } | |
16367 | s/.*/./; q'` | |
16368 | else | |
16369 | continue | |
16370 | fi | |
16371 | # Extract the definition of DEPDIR, am__include, and am__quote | |
16372 | # from the Makefile without running `make'. | |
16373 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
16374 | test -z "$DEPDIR" && continue | |
16375 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
16376 | test -z "am__include" && continue | |
16377 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
16378 | # When using ansi2knr, U may be empty or an underscore; expand it | |
16379 | U=`sed -n 's/^U = //p' < "$mf"` | |
16380 | # Find all dependency output files, they are included files with | |
16381 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16382 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16383 | # expansion. | |
16384 | for file in `sed -n " | |
16385 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
16386 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
16387 | # Make sure the directory exists. | |
16388 | test -f "$dirpart/$file" && continue | |
16389 | fdir=`$as_dirname -- "$file" || | |
16390 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16391 | X"$file" : 'X\(//\)[^/]' \| \ | |
16392 | X"$file" : 'X\(//\)$' \| \ | |
16393 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
16394 | $as_echo X"$file" | | |
16395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16396 | s//\1/ | |
16397 | q | |
16398 | } | |
16399 | /^X\(\/\/\)[^/].*/{ | |
16400 | s//\1/ | |
16401 | q | |
16402 | } | |
16403 | /^X\(\/\/\)$/{ | |
16404 | s//\1/ | |
16405 | q | |
16406 | } | |
16407 | /^X\(\/\).*/{ | |
16408 | s//\1/ | |
16409 | q | |
16410 | } | |
16411 | s/.*/./; q'` | |
16412 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
16413 | # echo "creating $dirpart/$file" | |
16414 | echo '# dummy' > "$dirpart/$file" | |
16415 | done | |
16416 | done | |
16417 | } | |
16418 | ;; | |
16419 | "libtool":C) | |
db137867 | 16420 | |
7083c021 AC |
16421 | # See if we are running on zsh, and set the options which allow our |
16422 | # commands through without removal of \ escapes. | |
16423 | if test -n "${ZSH_VERSION+set}" ; then | |
16424 | setopt NO_GLOB_SUBST | |
16425 | fi | |
c2ac22cc | 16426 | |
7083c021 AC |
16427 | cfgfile="${ofile}T" |
16428 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
16429 | $RM "$cfgfile" | |
db137867 | 16430 | |
7083c021 AC |
16431 | cat <<_LT_EOF >> "$cfgfile" |
16432 | #! $SHELL | |
db137867 | 16433 | |
7083c021 AC |
16434 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
16435 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
16436 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
16437 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
db137867 | 16438 | # |
7083c021 | 16439 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
a949ab1a AC |
16440 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
16441 | # Foundation, Inc. | |
7083c021 | 16442 | # Written by Gordon Matzigkeit, 1996 |
db137867 | 16443 | # |
7083c021 AC |
16444 | # This file is part of GNU Libtool. |
16445 | # | |
16446 | # GNU Libtool is free software; you can redistribute it and/or | |
16447 | # modify it under the terms of the GNU General Public License as | |
16448 | # published by the Free Software Foundation; either version 2 of | |
16449 | # the License, or (at your option) any later version. | |
16450 | # | |
16451 | # As a special exception to the GNU General Public License, | |
16452 | # if you distribute this file as part of a program or library that | |
16453 | # is built using GNU Libtool, you may include this file under the | |
16454 | # same distribution terms that you use for the rest of that program. | |
16455 | # | |
16456 | # GNU Libtool is distributed in the hope that it will be useful, | |
16457 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16458 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16459 | # GNU General Public License for more details. | |
16460 | # | |
16461 | # You should have received a copy of the GNU General Public License | |
16462 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
16463 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
16464 | # obtained by writing to the Free Software Foundation, Inc., | |
16465 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
db137867 | 16466 | |
db137867 | 16467 | |
7083c021 AC |
16468 | # The names of the tagged configurations supported by this script. |
16469 | available_tags="" | |
db137867 | 16470 | |
7083c021 | 16471 | # ### BEGIN LIBTOOL CONFIG |
db137867 | 16472 | |
7083c021 AC |
16473 | # Whether or not to build static libraries. |
16474 | build_old_libs=$enable_static | |
db137867 | 16475 | |
7083c021 AC |
16476 | # Whether or not to build shared libraries. |
16477 | build_libtool_libs=$enable_shared | |
db137867 | 16478 | |
7083c021 AC |
16479 | # Which release of libtool.m4 was used? |
16480 | macro_version=$macro_version | |
16481 | macro_revision=$macro_revision | |
db137867 | 16482 | |
7083c021 AC |
16483 | # What type of objects to build. |
16484 | pic_mode=$pic_mode | |
db137867 | 16485 | |
7083c021 AC |
16486 | # Whether or not to optimize for fast installation. |
16487 | fast_install=$enable_fast_install | |
db137867 | 16488 | |
b6d0720c AC |
16489 | # Shell to use when invoking shell scripts. |
16490 | SHELL=$lt_SHELL | |
16491 | ||
16492 | # An echo program that protects backslashes. | |
16493 | ECHO=$lt_ECHO | |
16494 | ||
a949ab1a AC |
16495 | # The PATH separator for the build system. |
16496 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
16497 | ||
7083c021 AC |
16498 | # The host system. |
16499 | host_alias=$host_alias | |
16500 | host=$host | |
16501 | host_os=$host_os | |
db137867 | 16502 | |
7083c021 AC |
16503 | # The build system. |
16504 | build_alias=$build_alias | |
16505 | build=$build | |
16506 | build_os=$build_os | |
db137867 | 16507 | |
7083c021 AC |
16508 | # A sed program that does not truncate output. |
16509 | SED=$lt_SED | |
db137867 | 16510 | |
7083c021 AC |
16511 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
16512 | Xsed="\$SED -e 1s/^X//" | |
db137867 | 16513 | |
7083c021 AC |
16514 | # A grep program that handles long lines. |
16515 | GREP=$lt_GREP | |
db137867 | 16516 | |
7083c021 AC |
16517 | # An ERE matcher. |
16518 | EGREP=$lt_EGREP | |
db137867 | 16519 | |
7083c021 AC |
16520 | # A literal string matcher. |
16521 | FGREP=$lt_FGREP | |
db137867 | 16522 | |
7083c021 AC |
16523 | # A BSD- or MS-compatible name lister. |
16524 | NM=$lt_NM | |
030272f3 | 16525 | |
7083c021 AC |
16526 | # Whether we need soft or hard links. |
16527 | LN_S=$lt_LN_S | |
db137867 | 16528 | |
7083c021 AC |
16529 | # What is the maximum length of a command? |
16530 | max_cmd_len=$max_cmd_len | |
db137867 | 16531 | |
7083c021 AC |
16532 | # Object file suffix (normally "o"). |
16533 | objext=$ac_objext | |
db137867 | 16534 | |
7083c021 AC |
16535 | # Executable file suffix (normally ""). |
16536 | exeext=$exeext | |
db137867 | 16537 | |
7083c021 AC |
16538 | # whether the shell understands "unset". |
16539 | lt_unset=$lt_unset | |
db137867 | 16540 | |
7083c021 AC |
16541 | # turn spaces into newlines. |
16542 | SP2NL=$lt_lt_SP2NL | |
db137867 | 16543 | |
7083c021 AC |
16544 | # turn newlines into spaces. |
16545 | NL2SP=$lt_lt_NL2SP | |
db137867 | 16546 | |
b6d0720c AC |
16547 | # convert \$build file names to \$host format. |
16548 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
16549 | ||
16550 | # convert \$build files to toolchain format. | |
16551 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
db137867 | 16552 | |
7083c021 AC |
16553 | # An object symbol dumper. |
16554 | OBJDUMP=$lt_OBJDUMP | |
db137867 | 16555 | |
7083c021 AC |
16556 | # Method to check whether dependent libraries are shared objects. |
16557 | deplibs_check_method=$lt_deplibs_check_method | |
db137867 | 16558 | |
b6d0720c | 16559 | # Command to use when deplibs_check_method = "file_magic". |
7083c021 | 16560 | file_magic_cmd=$lt_file_magic_cmd |
db137867 | 16561 | |
b6d0720c AC |
16562 | # How to find potential files when deplibs_check_method = "file_magic". |
16563 | file_magic_glob=$lt_file_magic_glob | |
16564 | ||
16565 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
16566 | want_nocaseglob=$lt_want_nocaseglob | |
16567 | ||
16568 | # DLL creation program. | |
16569 | DLLTOOL=$lt_DLLTOOL | |
16570 | ||
16571 | # Command to associate shared and link libraries. | |
16572 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
16573 | ||
7083c021 AC |
16574 | # The archiver. |
16575 | AR=$lt_AR | |
b6d0720c AC |
16576 | |
16577 | # Flags to create an archive. | |
7083c021 | 16578 | AR_FLAGS=$lt_AR_FLAGS |
db137867 | 16579 | |
b6d0720c AC |
16580 | # How to feed a file listing to the archiver. |
16581 | archiver_list_spec=$lt_archiver_list_spec | |
16582 | ||
7083c021 AC |
16583 | # A symbol stripping program. |
16584 | STRIP=$lt_STRIP | |
db137867 | 16585 | |
7083c021 AC |
16586 | # Commands used to install an old-style archive. |
16587 | RANLIB=$lt_RANLIB | |
16588 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
16589 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
db137867 | 16590 | |
b6d0720c AC |
16591 | # Whether to use a lock for old archive extraction. |
16592 | lock_old_archive_extraction=$lock_old_archive_extraction | |
16593 | ||
7083c021 AC |
16594 | # A C compiler. |
16595 | LTCC=$lt_CC | |
db137867 | 16596 | |
7083c021 AC |
16597 | # LTCC compiler flags. |
16598 | LTCFLAGS=$lt_CFLAGS | |
db137867 | 16599 | |
7083c021 AC |
16600 | # Take the output of nm and produce a listing of raw symbols and C names. |
16601 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
db137867 | 16602 | |
7083c021 AC |
16603 | # Transform the output of nm in a proper C declaration. |
16604 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
db137867 | 16605 | |
7083c021 AC |
16606 | # Transform the output of nm in a C name address pair. |
16607 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
db137867 | 16608 | |
7083c021 AC |
16609 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
16610 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
db137867 | 16611 | |
b6d0720c AC |
16612 | # Specify filename containing input files for \$NM. |
16613 | nm_file_list_spec=$lt_nm_file_list_spec | |
db137867 | 16614 | |
b6d0720c AC |
16615 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
16616 | lt_sysroot=$lt_sysroot | |
db137867 | 16617 | |
b6d0720c AC |
16618 | # The name of the directory that contains temporary libtool files. |
16619 | objdir=$objdir | |
db137867 | 16620 | |
7083c021 AC |
16621 | # Used to examine libraries when file_magic_cmd begins with "file". |
16622 | MAGIC_CMD=$MAGIC_CMD | |
16623 | ||
16624 | # Must we lock files when doing compilation? | |
16625 | need_locks=$lt_need_locks | |
db137867 | 16626 | |
b6d0720c AC |
16627 | # Manifest tool. |
16628 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
16629 | ||
7083c021 AC |
16630 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16631 | DSYMUTIL=$lt_DSYMUTIL | |
db137867 | 16632 | |
7083c021 AC |
16633 | # Tool to change global to local symbols on Mac OS X. |
16634 | NMEDIT=$lt_NMEDIT | |
db137867 | 16635 | |
7083c021 AC |
16636 | # Tool to manipulate fat objects and archives on Mac OS X. |
16637 | LIPO=$lt_LIPO | |
db137867 | 16638 | |
7083c021 AC |
16639 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
16640 | OTOOL=$lt_OTOOL | |
db137867 | 16641 | |
7083c021 AC |
16642 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
16643 | OTOOL64=$lt_OTOOL64 | |
db137867 | 16644 | |
7083c021 AC |
16645 | # Old archive suffix (normally "a"). |
16646 | libext=$libext | |
db137867 | 16647 | |
7083c021 AC |
16648 | # Shared library suffix (normally ".so"). |
16649 | shrext_cmds=$lt_shrext_cmds | |
db137867 | 16650 | |
7083c021 AC |
16651 | # The commands to extract the exported symbol list from a shared archive. |
16652 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
db137867 | 16653 | |
7083c021 AC |
16654 | # Variables whose values should be saved in libtool wrapper scripts and |
16655 | # restored at link time. | |
16656 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
030272f3 | 16657 | |
7083c021 AC |
16658 | # Do we need the "lib" prefix for modules? |
16659 | need_lib_prefix=$need_lib_prefix | |
030272f3 | 16660 | |
7083c021 AC |
16661 | # Do we need a version for libraries? |
16662 | need_version=$need_version | |
030272f3 | 16663 | |
7083c021 AC |
16664 | # Library versioning type. |
16665 | version_type=$version_type | |
db137867 | 16666 | |
7083c021 AC |
16667 | # Shared library runtime path variable. |
16668 | runpath_var=$runpath_var | |
db137867 | 16669 | |
7083c021 AC |
16670 | # Shared library path variable. |
16671 | shlibpath_var=$shlibpath_var | |
db137867 | 16672 | |
7083c021 AC |
16673 | # Is shlibpath searched before the hard-coded library search path? |
16674 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
db137867 | 16675 | |
7083c021 AC |
16676 | # Format of library name prefix. |
16677 | libname_spec=$lt_libname_spec | |
db137867 | 16678 | |
7083c021 AC |
16679 | # List of archive names. First name is the real one, the rest are links. |
16680 | # The last name is the one that the linker finds with -lNAME | |
16681 | library_names_spec=$lt_library_names_spec | |
db137867 | 16682 | |
7083c021 AC |
16683 | # The coded name of the library, if different from the real name. |
16684 | soname_spec=$lt_soname_spec | |
db137867 | 16685 | |
b6d0720c AC |
16686 | # Permission mode override for installation of shared libraries. |
16687 | install_override_mode=$lt_install_override_mode | |
16688 | ||
7083c021 AC |
16689 | # Command to use after installation of a shared archive. |
16690 | postinstall_cmds=$lt_postinstall_cmds | |
db137867 | 16691 | |
7083c021 AC |
16692 | # Command to use after uninstallation of a shared archive. |
16693 | postuninstall_cmds=$lt_postuninstall_cmds | |
db137867 | 16694 | |
7083c021 AC |
16695 | # Commands used to finish a libtool library installation in a directory. |
16696 | finish_cmds=$lt_finish_cmds | |
db137867 | 16697 | |
7083c021 AC |
16698 | # As "finish_cmds", except a single script fragment to be evaled but |
16699 | # not shown. | |
16700 | finish_eval=$lt_finish_eval | |
db137867 | 16701 | |
7083c021 AC |
16702 | # Whether we should hardcode library paths into libraries. |
16703 | hardcode_into_libs=$hardcode_into_libs | |
db137867 | 16704 | |
7083c021 AC |
16705 | # Compile-time system search path for libraries. |
16706 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
db137867 | 16707 | |
7083c021 AC |
16708 | # Run-time system search path for libraries. |
16709 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
db137867 | 16710 | |
7083c021 AC |
16711 | # Whether dlopen is supported. |
16712 | dlopen_support=$enable_dlopen | |
db137867 | 16713 | |
7083c021 AC |
16714 | # Whether dlopen of programs is supported. |
16715 | dlopen_self=$enable_dlopen_self | |
db137867 | 16716 | |
7083c021 AC |
16717 | # Whether dlopen of statically linked programs is supported. |
16718 | dlopen_self_static=$enable_dlopen_self_static | |
db137867 | 16719 | |
7083c021 AC |
16720 | # Commands to strip libraries. |
16721 | old_striplib=$lt_old_striplib | |
16722 | striplib=$lt_striplib | |
db137867 | 16723 | |
db137867 | 16724 | |
7083c021 AC |
16725 | # The linker used to build libraries. |
16726 | LD=$lt_LD | |
db137867 | 16727 | |
b6d0720c AC |
16728 | # How to create reloadable object files. |
16729 | reload_flag=$lt_reload_flag | |
16730 | reload_cmds=$lt_reload_cmds | |
16731 | ||
7083c021 AC |
16732 | # Commands used to build an old-style archive. |
16733 | old_archive_cmds=$lt_old_archive_cmds | |
db137867 | 16734 | |
7083c021 AC |
16735 | # A language specific compiler. |
16736 | CC=$lt_compiler | |
db137867 | 16737 | |
7083c021 AC |
16738 | # Is the compiler the GNU compiler? |
16739 | with_gcc=$GCC | |
db137867 | 16740 | |
7083c021 AC |
16741 | # Compiler flag to turn off builtin functions. |
16742 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
db137867 | 16743 | |
7083c021 AC |
16744 | # Additional compiler flags for building library objects. |
16745 | pic_flag=$lt_lt_prog_compiler_pic | |
16746 | ||
b6d0720c AC |
16747 | # How to pass a linker flag through the compiler. |
16748 | wl=$lt_lt_prog_compiler_wl | |
16749 | ||
7083c021 AC |
16750 | # Compiler flag to prevent dynamic linking. |
16751 | link_static_flag=$lt_lt_prog_compiler_static | |
16752 | ||
16753 | # Does compiler simultaneously support -c and -o options? | |
16754 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
a9fb3ed0 | 16755 | |
7083c021 AC |
16756 | # Whether or not to add -lc for building shared libraries. |
16757 | build_libtool_need_lc=$archive_cmds_need_lc | |
a9fb3ed0 | 16758 | |
7083c021 AC |
16759 | # Whether or not to disallow shared libs when runtime libs are static. |
16760 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
db137867 | 16761 | |
7083c021 AC |
16762 | # Compiler flag to allow reflexive dlopens. |
16763 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
db137867 | 16764 | |
7083c021 AC |
16765 | # Compiler flag to generate shared objects directly from archives. |
16766 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
db137867 | 16767 | |
7083c021 AC |
16768 | # Whether the compiler copes with passing no objects directly. |
16769 | compiler_needs_object=$lt_compiler_needs_object | |
db137867 | 16770 | |
7083c021 AC |
16771 | # Create an old-style archive from a shared archive. |
16772 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
db137867 | 16773 | |
7083c021 AC |
16774 | # Create a temporary old-style archive to link instead of a shared archive. |
16775 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
db137867 | 16776 | |
7083c021 AC |
16777 | # Commands used to build a shared archive. |
16778 | archive_cmds=$lt_archive_cmds | |
16779 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
db137867 | 16780 | |
7083c021 AC |
16781 | # Commands used to build a loadable module if different from building |
16782 | # a shared archive. | |
16783 | module_cmds=$lt_module_cmds | |
16784 | module_expsym_cmds=$lt_module_expsym_cmds | |
db137867 | 16785 | |
7083c021 AC |
16786 | # Whether we are building with GNU ld or not. |
16787 | with_gnu_ld=$lt_with_gnu_ld | |
db137867 | 16788 | |
7083c021 AC |
16789 | # Flag that allows shared libraries with undefined symbols to be built. |
16790 | allow_undefined_flag=$lt_allow_undefined_flag | |
db137867 | 16791 | |
7083c021 AC |
16792 | # Flag that enforces no undefined symbols. |
16793 | no_undefined_flag=$lt_no_undefined_flag | |
db137867 | 16794 | |
7083c021 AC |
16795 | # Flag to hardcode \$libdir into a binary during linking. |
16796 | # This must work even if \$libdir does not exist | |
16797 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
db137867 | 16798 | |
7083c021 AC |
16799 | # Whether we need a single "-rpath" flag with a separated argument. |
16800 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
db137867 | 16801 | |
7083c021 AC |
16802 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16803 | # DIR into the resulting binary. | |
16804 | hardcode_direct=$hardcode_direct | |
db137867 | 16805 | |
7083c021 AC |
16806 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16807 | # DIR into the resulting binary and the resulting library dependency is | |
16808 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16809 | # library is relocated. | |
16810 | hardcode_direct_absolute=$hardcode_direct_absolute | |
db137867 | 16811 | |
7083c021 AC |
16812 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
16813 | # into the resulting binary. | |
16814 | hardcode_minus_L=$hardcode_minus_L | |
db137867 | 16815 | |
7083c021 AC |
16816 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
16817 | # into the resulting binary. | |
16818 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
db137867 | 16819 | |
7083c021 AC |
16820 | # Set to "yes" if building a shared library automatically hardcodes DIR |
16821 | # into the library and all subsequent libraries and executables linked | |
16822 | # against it. | |
16823 | hardcode_automatic=$hardcode_automatic | |
db137867 | 16824 | |
7083c021 AC |
16825 | # Set to yes if linker adds runtime paths of dependent libraries |
16826 | # to runtime path list. | |
16827 | inherit_rpath=$inherit_rpath | |
db137867 | 16828 | |
7083c021 AC |
16829 | # Whether libtool must link a program against all its dependency libraries. |
16830 | link_all_deplibs=$link_all_deplibs | |
db137867 | 16831 | |
7083c021 AC |
16832 | # Set to "yes" if exported symbols are required. |
16833 | always_export_symbols=$always_export_symbols | |
030272f3 | 16834 | |
7083c021 AC |
16835 | # The commands to list exported symbols. |
16836 | export_symbols_cmds=$lt_export_symbols_cmds | |
db137867 | 16837 | |
7083c021 AC |
16838 | # Symbols that should not be listed in the preloaded symbols. |
16839 | exclude_expsyms=$lt_exclude_expsyms | |
030272f3 | 16840 | |
7083c021 AC |
16841 | # Symbols that must always be exported. |
16842 | include_expsyms=$lt_include_expsyms | |
db137867 | 16843 | |
7083c021 AC |
16844 | # Commands necessary for linking programs (against libraries) with templates. |
16845 | prelink_cmds=$lt_prelink_cmds | |
db137867 | 16846 | |
b6d0720c AC |
16847 | # Commands necessary for finishing linking programs. |
16848 | postlink_cmds=$lt_postlink_cmds | |
16849 | ||
7083c021 AC |
16850 | # Specify filename containing input files. |
16851 | file_list_spec=$lt_file_list_spec | |
db137867 | 16852 | |
7083c021 AC |
16853 | # How to hardcode a shared library path into an executable. |
16854 | hardcode_action=$hardcode_action | |
db137867 | 16855 | |
7083c021 | 16856 | # ### END LIBTOOL CONFIG |
030272f3 | 16857 | |
7083c021 AC |
16858 | _LT_EOF |
16859 | ||
16860 | case $host_os in | |
16861 | aix3*) | |
16862 | cat <<\_LT_EOF >> "$cfgfile" | |
16863 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16864 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16865 | # vanish in a puff of smoke. | |
16866 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16867 | COLLECT_NAMES= | |
16868 | export COLLECT_NAMES | |
16869 | fi | |
16870 | _LT_EOF | |
16871 | ;; | |
16872 | esac | |
030272f3 | 16873 | |
030272f3 | 16874 | |
7083c021 | 16875 | ltmain="$ac_aux_dir/ltmain.sh" |
030272f3 | 16876 | |
030272f3 | 16877 | |
7083c021 AC |
16878 | # We use sed instead of cat because bash on DJGPP gets confused if |
16879 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16880 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16881 | # is reportedly fixed, but why not run on old versions too? | |
b6d0720c AC |
16882 | sed '$q' "$ltmain" >> "$cfgfile" \ |
16883 | || (rm -f "$cfgfile"; exit 1) | |
16884 | ||
16885 | if test x"$xsi_shell" = xyes; then | |
16886 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
16887 | func_dirname ()\ | |
16888 | {\ | |
16889 | \ case ${1} in\ | |
16890 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
16891 | \ * ) func_dirname_result="${3}" ;;\ | |
16892 | \ esac\ | |
16893 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
16894 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16895 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16896 | test 0 -eq $? || _lt_function_replace_fail=: | |
16897 | ||
16898 | ||
16899 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
16900 | func_basename ()\ | |
16901 | {\ | |
16902 | \ func_basename_result="${1##*/}"\ | |
16903 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
16904 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16905 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16906 | test 0 -eq $? || _lt_function_replace_fail=: | |
16907 | ||
16908 | ||
16909 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
16910 | func_dirname_and_basename ()\ | |
16911 | {\ | |
16912 | \ case ${1} in\ | |
16913 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
16914 | \ * ) func_dirname_result="${3}" ;;\ | |
16915 | \ esac\ | |
16916 | \ func_basename_result="${1##*/}"\ | |
16917 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
16918 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16919 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16920 | test 0 -eq $? || _lt_function_replace_fail=: | |
16921 | ||
16922 | ||
16923 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
16924 | func_stripname ()\ | |
16925 | {\ | |
16926 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
16927 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
16928 | \ func_stripname_result=${3}\ | |
16929 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
16930 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
16931 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
16932 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16933 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16934 | test 0 -eq $? || _lt_function_replace_fail=: | |
16935 | ||
16936 | ||
16937 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
16938 | func_split_long_opt ()\ | |
16939 | {\ | |
16940 | \ func_split_long_opt_name=${1%%=*}\ | |
16941 | \ func_split_long_opt_arg=${1#*=}\ | |
16942 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
16943 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16944 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16945 | test 0 -eq $? || _lt_function_replace_fail=: | |
16946 | ||
16947 | ||
16948 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
16949 | func_split_short_opt ()\ | |
16950 | {\ | |
16951 | \ func_split_short_opt_arg=${1#??}\ | |
16952 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
16953 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
16954 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16955 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16956 | test 0 -eq $? || _lt_function_replace_fail=: | |
16957 | ||
16958 | ||
16959 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
16960 | func_lo2o ()\ | |
16961 | {\ | |
16962 | \ case ${1} in\ | |
16963 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
16964 | \ *) func_lo2o_result=${1} ;;\ | |
16965 | \ esac\ | |
16966 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
16967 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16968 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16969 | test 0 -eq $? || _lt_function_replace_fail=: | |
16970 | ||
16971 | ||
16972 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
16973 | func_xform ()\ | |
16974 | {\ | |
16975 | func_xform_result=${1%.*}.lo\ | |
16976 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
16977 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16978 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16979 | test 0 -eq $? || _lt_function_replace_fail=: | |
16980 | ||
16981 | ||
16982 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
16983 | func_arith ()\ | |
16984 | {\ | |
16985 | func_arith_result=$(( $* ))\ | |
16986 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
16987 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16988 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16989 | test 0 -eq $? || _lt_function_replace_fail=: | |
16990 | ||
16991 | ||
16992 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
16993 | func_len ()\ | |
16994 | {\ | |
16995 | func_len_result=${#1}\ | |
16996 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
16997 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16998 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16999 | test 0 -eq $? || _lt_function_replace_fail=: | |
17000 | ||
17001 | fi | |
17002 | ||
17003 | if test x"$lt_shell_append" = xyes; then | |
17004 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
17005 | func_append ()\ | |
17006 | {\ | |
17007 | eval "${1}+=\\${2}"\ | |
17008 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
17009 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17010 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17011 | test 0 -eq $? || _lt_function_replace_fail=: | |
17012 | ||
17013 | ||
17014 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
17015 | func_append_quoted ()\ | |
17016 | {\ | |
17017 | \ func_quote_for_eval "${2}"\ | |
17018 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
17019 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
17020 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17021 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17022 | test 0 -eq $? || _lt_function_replace_fail=: | |
17023 | ||
17024 | ||
17025 | # Save a `func_append' function call where possible by direct use of '+=' | |
17026 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
17027 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17028 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17029 | test 0 -eq $? || _lt_function_replace_fail=: | |
17030 | else | |
17031 | # Save a `func_append' function call even when '+=' is not available | |
17032 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
17033 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17034 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17035 | test 0 -eq $? || _lt_function_replace_fail=: | |
17036 | fi | |
17037 | ||
17038 | if test x"$_lt_function_replace_fail" = x":"; then | |
17039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
17040 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
17041 | fi | |
17042 | ||
17043 | ||
17044 | mv -f "$cfgfile" "$ofile" || | |
7083c021 AC |
17045 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
17046 | chmod +x "$ofile" | |
17047 | ||
db137867 AC |
17048 | ;; |
17049 | "include/librb-config.h":C) | |
17050 | outfile=include/librb-config.h.tmp | |
17051 | cat > $outfile <<\_______EOF | |
17052 | /* | |
17053 | * librb-config.h: libratbox config file. Please modify configure.ac | |
17054 | */ | |
17055 | ||
17056 | #ifndef __LIBRB_CONFIG_H | |
17057 | #define __LIBRB_CONFIG_H | |
17058 | ||
17059 | _______EOF | |
17060 | ||
17061 | if test "x$rb_have_ipv6" = "xyes"; then | |
17062 | echo "#define RB_IPV6 1" >> $outfile | |
17063 | fi | |
17064 | ||
17065 | if test "x$rb_windows_h" = "xyes"; then | |
17066 | echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile | |
17067 | echo '#include <windows.h>' >> $outfile | |
17068 | echo '#include <winsock2.h>' >> $outfile | |
17069 | echo '#include <iphlpapi.h>' >> $outfile | |
17070 | fi | |
17071 | ||
17072 | if test "x$rb_alloca_h" = "xyes"; then | |
17073 | echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile | |
17074 | fi | |
17075 | ||
17076 | if test "x$rb_header_stdc" = "xyes"; then | |
17077 | echo '#include <stdlib.h>' >> $outfile | |
17078 | echo '#include <stddef.h>' >> $outfile | |
17079 | elif test "x$rb_header_stdlib" = "xyes"; then | |
17080 | echo '#include <stdlib.h>' >> $outfile | |
17081 | fi | |
17082 | ||
17083 | if test "x$rb_header_string_h" = "xyes"; then | |
17084 | echo '#include <string.h>' >> $outfile | |
17085 | fi | |
17086 | ||
17087 | if test "x$rb_stdint_h" = "xyes"; then | |
17088 | echo '#include <stdint.h>' >> $outfile | |
17089 | fi | |
17090 | ||
17091 | if test "x$rb_inttypes_h" = "xyes"; then | |
17092 | echo '#include <inttypes.h>' >> $outfile | |
17093 | fi | |
17094 | ||
17095 | if test "x$rb_sys_types_h" = "xyes"; then | |
17096 | echo '#include <sys/types.h>' >> $outfile | |
17097 | fi | |
17098 | if test "x$rb_sys_time_h" = "xyes"; then | |
17099 | echo '#include <sys/time.h>' >> $outfile | |
17100 | fi | |
17101 | if test "x$rb_sys_stat_h" = "xyes"; then | |
17102 | echo '#include <sys/stat.h>' >> $outfile | |
17103 | fi | |
17104 | if test "x$rb_time_h" = "xyes"; then | |
17105 | echo '#include <time.h>' >> $outfile | |
17106 | fi | |
17107 | ||
17108 | if test "x$rb_sys_socket_h" = "xyes"; then | |
17109 | echo '#include <sys/socket.h>' >> $outfile | |
17110 | fi | |
17111 | ||
17112 | if test "x$rb_netinet_in_h" = "xyes"; then | |
17113 | echo '#include <netinet/in.h>' >> $outfile | |
17114 | fi | |
17115 | ||
17116 | if test "x$rb_arpa_inet_h" = "xyes"; then | |
17117 | echo '#include <arpa/inet.h>' >> $outfile | |
17118 | fi | |
17119 | ||
17120 | if test "x$rb_unistd_h" = "xyes"; then | |
17121 | echo '#include <unistd.h>' >> $outfile | |
17122 | fi | |
17123 | ||
17124 | if test "x$rb_crypt_h" = "xyes"; then | |
17125 | echo '#include <crypt.h>' >> $outfile | |
17126 | fi | |
17127 | ||
17128 | if test "x$rb_errno_h" = "xyes"; then | |
17129 | echo '#include <errno.h>' >> $outfile | |
17130 | fi | |
17131 | ||
a9fb3ed0 VY |
17132 | echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile |
17133 | ||
17134 | ||
db137867 AC |
17135 | if test "x$rb_sockaddr_sa_len" = "xyes"; then |
17136 | echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile | |
17137 | fi | |
17138 | ||
db137867 AC |
17139 | if test "x$rb_sockaddr_storage" = "xyes"; then |
17140 | echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile | |
17141 | else | |
3202e249 | 17142 | echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile |
db137867 AC |
17143 | fi |
17144 | ||
17145 | cat >> $outfile <<\_______EOF | |
17146 | #endif /* __LIBRB_CONFIG_H */ | |
17147 | _______EOF | |
17148 | ||
17149 | if cmp -s $outfile include/librb-config.h; then | |
7083c021 | 17150 | { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5 |
030272f3 | 17151 | $as_echo "$as_me: include/librb-config.h is unchanged" >&6;} |
db137867 AC |
17152 | ${rb_rm} -f $outfile |
17153 | else | |
17154 | ${rb_mv} $outfile include/librb-config.h | |
17155 | fi | |
17156 | ||
17157 | ;; | |
17158 | ||
17159 | esac | |
17160 | done # for ac_tag | |
17161 | ||
17162 | ||
7083c021 | 17163 | as_fn_exit 0 |
db137867 | 17164 | _ACEOF |
db137867 AC |
17165 | ac_clean_files=$ac_clean_files_save |
17166 | ||
030272f3 | 17167 | test $ac_write_fail = 0 || |
08c2568c | 17168 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
030272f3 | 17169 | |
db137867 AC |
17170 | |
17171 | # configure is writing to config.log, and then calls config.status. | |
17172 | # config.status does its own redirection, appending to config.log. | |
17173 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17174 | # by configure, so config.status won't be able to write to it; its | |
17175 | # output is simply discarded. So we exec the FD to /dev/null, | |
17176 | # effectively closing config.log, so it can be properly (re)opened and | |
17177 | # appended to by config.status. When coming back to configure, we | |
17178 | # need to make the FD available again. | |
17179 | if test "$no_create" != yes; then | |
17180 | ac_cs_success=: | |
17181 | ac_config_status_args= | |
17182 | test "$silent" = yes && | |
17183 | ac_config_status_args="$ac_config_status_args --quiet" | |
17184 | exec 5>/dev/null | |
17185 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17186 | exec 5>>config.log | |
17187 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17188 | # would make configure fail if this is the last instruction. | |
08c2568c | 17189 | $ac_cs_success || as_fn_exit 1 |
db137867 | 17190 | fi |
030272f3 | 17191 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
7083c021 | 17192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
030272f3 VY |
17193 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
17194 | fi | |
db137867 | 17195 | |
db137867 AC |
17196 | |
17197 | ||
17198 | echo | |
17199 | echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" | |
17200 | echo | |
17201 | ||
17202 | echo "Installing into: $prefix" | |
17203 | ||
17204 | echo "IPv6 support ................... $have_v6" | |
17205 | echo "Assert debugging ............... $assert" | |
17206 | echo "Block allocator ................ $balloc" | |
c2ac22cc | 17207 | echo "SSL Type........................ $SSL_TYPE" |
db137867 AC |
17208 | echo |
17209 |