]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
b6d0720c | 3 | # Generated by GNU Autoconf 2.68 for charybdis 3.3.0. |
212380e3 | 4 | # |
b676ea3b | 5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 6 | # |
6fb6bd15 | 7 | # |
631ef239 | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
b6d0720c AC |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
10 | # Foundation, Inc. | |
6fb6bd15 | 11 | # |
7083c021 | 12 | # |
212380e3 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 | ## -------------------- ## | |
212380e3 | 18 | |
631ef239 AC |
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 : |
212380e3 AC |
22 | emulate sh |
23 | NULLCMD=: | |
7083c021 | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 AC |
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 | ;; | |
631ef239 | 34 | esac |
631ef239 AC |
35 | fi |
36 | ||
37 | ||
7083c021 AC |
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 | |
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 | |
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' | |
631ef239 | 58 | else |
7083c021 AC |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
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' | |
631ef239 | 71 | fi |
7083c021 AC |
72 | export as_echo_body |
73 | as_echo='sh -c $as_echo_body as_echo' | |
212380e3 | 74 | fi |
212380e3 | 75 | |
7083c021 AC |
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 | } | |
212380e3 AC |
83 | fi |
84 | ||
85 | ||
631ef239 AC |
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.) | |
631ef239 AC |
91 | IFS=" "" $as_nl" |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 94 | as_myself= |
7083c021 | 95 | case $0 in #(( |
631ef239 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 | |
631ef239 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 | |
7083c021 AC |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
115 | exit 1 | |
631ef239 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 || : | |
631ef239 | 125 | done |
212380e3 AC |
126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
7083c021 AC |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
172 | test x\$exitcode = x0 || exit 1" | |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1" | |
178 | if (eval "$as_required") 2>/dev/null; then : | |
179 | as_have_required=yes | |
180 | else | |
181 | as_have_required=no | |
182 | fi | |
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | ||
185 | else | |
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 | as_found=false | |
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212380e3 | 189 | do |
7083c021 AC |
190 | IFS=$as_save_IFS |
191 | test -z "$as_dir" && as_dir=. | |
192 | as_found=: | |
193 | case $as_dir in #( | |
194 | /*) | |
195 | for as_base in sh bash ksh sh5; do | |
196 | # Try only shells that exist, to save several forks. | |
197 | as_shell=$as_dir/$as_base | |
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | CONFIG_SHELL=$as_shell as_have_required=yes | |
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 | break 2 | |
203 | fi | |
204 | fi | |
205 | done;; | |
206 | esac | |
207 | as_found=false | |
208 | done | |
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 | CONFIG_SHELL=$SHELL as_have_required=yes | |
212 | fi; } | |
213 | IFS=$as_save_IFS | |
214 | ||
215 | ||
216 | if test "x$CONFIG_SHELL" != x; then : | |
217 | # We cannot yet assume a decent shell, so we have to provide a | |
218 | # neutralization value for shells without unset; and this also | |
219 | # works around shells that cannot unset nonexistent variables. | |
b6d0720c | 220 | # Preserve -v and -x to the replacement shell. |
7083c021 AC |
221 | BASH_ENV=/dev/null |
222 | ENV=/dev/null | |
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 | export CONFIG_SHELL | |
b6d0720c AC |
225 | case $- in # (((( |
226 | *v*x* | *x*v* ) as_opts=-vx ;; | |
227 | *v* ) as_opts=-v ;; | |
228 | *x* ) as_opts=-x ;; | |
229 | * ) as_opts= ;; | |
230 | esac | |
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
7083c021 AC |
232 | fi |
233 | ||
234 | if test x$as_have_required = xno; then : | |
235 | $as_echo "$0: This script requires a shell more modern than all" | |
236 | $as_echo "$0: the shells that I found on your system." | |
237 | if test x${ZSH_VERSION+set} = xset ; then | |
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
212380e3 | 240 | else |
7083c021 AC |
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
242 | $0: including any error possibly output before this | |
243 | $0: message. Then install a modern shell, or manually run | |
244 | $0: the script under such a shell if you do have one." | |
212380e3 | 245 | fi |
7083c021 AC |
246 | exit 1 |
247 | fi | |
248 | fi | |
249 | fi | |
250 | SHELL=${CONFIG_SHELL-/bin/sh} | |
251 | export SHELL | |
252 | # Unset more variables known to interfere with behavior of common tools. | |
253 | CLICOLOR_FORCE= GREP_OPTIONS= | |
254 | unset CLICOLOR_FORCE GREP_OPTIONS | |
255 | ||
256 | ## --------------------- ## | |
257 | ## M4sh Shell Functions. ## | |
258 | ## --------------------- ## | |
259 | # as_fn_unset VAR | |
260 | # --------------- | |
261 | # Portably unset VAR. | |
262 | as_fn_unset () | |
263 | { | |
264 | { eval $1=; unset $1;} | |
265 | } | |
266 | as_unset=as_fn_unset | |
267 | ||
268 | # as_fn_set_status STATUS | |
269 | # ----------------------- | |
270 | # Set $? to STATUS, without forking. | |
271 | as_fn_set_status () | |
272 | { | |
273 | return $1 | |
274 | } # as_fn_set_status | |
275 | ||
276 | # as_fn_exit STATUS | |
277 | # ----------------- | |
278 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
279 | as_fn_exit () | |
280 | { | |
281 | set +e | |
282 | as_fn_set_status $1 | |
283 | exit $1 | |
284 | } # as_fn_exit | |
285 | ||
286 | # as_fn_mkdir_p | |
287 | # ------------- | |
288 | # Create "$as_dir" as a directory, including parents if necessary. | |
289 | as_fn_mkdir_p () | |
290 | { | |
291 | ||
292 | case $as_dir in #( | |
293 | -*) as_dir=./$as_dir;; | |
294 | esac | |
295 | test -d "$as_dir" || eval $as_mkdir_p || { | |
296 | as_dirs= | |
297 | while :; do | |
298 | case $as_dir in #( | |
299 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
300 | *) as_qdir=$as_dir;; | |
301 | esac | |
302 | as_dirs="'$as_qdir' $as_dirs" | |
303 | as_dir=`$as_dirname -- "$as_dir" || | |
304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
305 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
306 | X"$as_dir" : 'X\(//\)$' \| \ | |
307 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
308 | $as_echo X"$as_dir" | | |
309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)[^/].*/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\/\)$/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | /^X\(\/\).*/{ | |
322 | s//\1/ | |
323 | q | |
324 | } | |
325 | s/.*/./; q'` | |
326 | test -d "$as_dir" && break | |
327 | done | |
328 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
330 | |
331 | ||
332 | } # as_fn_mkdir_p | |
333 | # as_fn_append VAR VALUE | |
334 | # ---------------------- | |
335 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
336 | # advantage of any shell optimizations that allow amortized linear growth over | |
337 | # repeated appends, instead of the typical quadratic growth present in naive | |
338 | # implementations. | |
339 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
340 | eval 'as_fn_append () | |
341 | { | |
342 | eval $1+=\$2 | |
343 | }' | |
344 | else | |
345 | as_fn_append () | |
346 | { | |
347 | eval $1=\$$1\$2 | |
348 | } | |
349 | fi # as_fn_append | |
350 | ||
351 | # as_fn_arith ARG... | |
352 | # ------------------ | |
353 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
354 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
355 | # must be portable across $(()) and expr. | |
356 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
357 | eval 'as_fn_arith () | |
358 | { | |
359 | as_val=$(( $* )) | |
360 | }' | |
361 | else | |
362 | as_fn_arith () | |
363 | { | |
364 | as_val=`expr "$@" || test $? -eq 1` | |
365 | } | |
366 | fi # as_fn_arith | |
367 | ||
368 | ||
b6d0720c AC |
369 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
370 | # ---------------------------------------- | |
7083c021 AC |
371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 373 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
374 | as_fn_error () |
375 | { | |
b6d0720c AC |
376 | as_status=$1; test $as_status -eq 0 && as_status=1 |
377 | if test "$4"; then | |
378 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7083c021 | 380 | fi |
b6d0720c | 381 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
382 | as_fn_exit $as_status |
383 | } # as_fn_error | |
212380e3 | 384 | |
631ef239 AC |
385 | if expr a : '\(a\)' >/dev/null 2>&1 && |
386 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
387 | as_expr=expr |
388 | else | |
389 | as_expr=false | |
390 | fi | |
391 | ||
631ef239 | 392 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
393 | as_basename=basename |
394 | else | |
395 | as_basename=false | |
396 | fi | |
397 | ||
7083c021 AC |
398 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
399 | as_dirname=dirname | |
400 | else | |
401 | as_dirname=false | |
402 | fi | |
212380e3 | 403 | |
631ef239 | 404 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
405 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
406 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 407 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 408 | $as_echo X/"$0" | |
631ef239 AC |
409 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\/\)$/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | /^X\/\(\/\).*/{ | |
418 | s//\1/ | |
419 | q | |
420 | } | |
421 | s/.*/./; q'` | |
212380e3 | 422 | |
7083c021 AC |
423 | # Avoid depending upon Character Ranges. |
424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
427 | as_cr_digits='0123456789' | |
428 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
212380e3 | 429 | |
212380e3 | 430 | |
7083c021 AC |
431 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
432 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
433 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
434 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
435 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
436 | sed -n ' | |
437 | p | |
438 | /[$]LINENO/= | |
439 | ' <$as_myself | | |
440 | sed ' | |
441 | s/[$]LINENO.*/&-/ | |
442 | t lineno | |
443 | b | |
444 | :lineno | |
445 | N | |
446 | :loop | |
447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
448 | t loop | |
449 | s/-\n.*// | |
450 | ' >$as_me.lineno && | |
451 | chmod +x "$as_me.lineno" || | |
452 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
212380e3 | 453 | |
7083c021 AC |
454 | # Don't try to exec as it changes $[0], causing all sort of problems |
455 | # (the dirname of $[0] is not the place where we might find the | |
456 | # original and so on. Autoconf is especially sensitive to this). | |
457 | . "./$as_me.lineno" | |
458 | # Exit status is that of the last command. | |
459 | exit | |
631ef239 | 460 | } |
212380e3 | 461 | |
7083c021 AC |
462 | ECHO_C= ECHO_N= ECHO_T= |
463 | case `echo -n x` in #((((( | |
464 | -n*) | |
465 | case `echo 'xy\c'` in | |
466 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
467 | xy) ECHO_C='\c';; | |
468 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
469 | ECHO_T=' ';; | |
470 | esac;; | |
471 | *) | |
472 | ECHO_N='-n';; | |
473 | esac | |
631ef239 | 474 | |
7083c021 AC |
475 | rm -f conf$$ conf$$.exe conf$$.file |
476 | if test -d conf$$.dir; then | |
477 | rm -f conf$$.dir/conf$$.file | |
478 | else | |
479 | rm -f conf$$.dir | |
480 | mkdir conf$$.dir 2>/dev/null | |
481 | fi | |
482 | if (echo >conf$$.file) 2>/dev/null; then | |
483 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
484 | as_ln_s='ln -s' | |
485 | # ... but there are two gotchas: | |
486 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
487 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
488 | # In both cases, we have to default to `cp -p'. | |
489 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
490 | as_ln_s='cp -p' | |
491 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
492 | as_ln_s=ln | |
493 | else | |
494 | as_ln_s='cp -p' | |
495 | fi | |
631ef239 | 496 | else |
7083c021 | 497 | as_ln_s='cp -p' |
631ef239 | 498 | fi |
7083c021 AC |
499 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
500 | rmdir conf$$.dir 2>/dev/null | |
631ef239 | 501 | |
7083c021 AC |
502 | if mkdir -p . 2>/dev/null; then |
503 | as_mkdir_p='mkdir -p "$as_dir"' | |
504 | else | |
505 | test -d ./-p && rmdir ./-p | |
506 | as_mkdir_p=false | |
631ef239 AC |
507 | fi |
508 | ||
7083c021 AC |
509 | if test -x / >/dev/null 2>&1; then |
510 | as_test_x='test -x' | |
631ef239 | 511 | else |
7083c021 AC |
512 | if ls -dL / >/dev/null 2>&1; then |
513 | as_ls_L_option=L | |
514 | else | |
515 | as_ls_L_option= | |
516 | fi | |
517 | as_test_x=' | |
518 | eval sh -c '\'' | |
519 | if test -d "$1"; then | |
520 | test -d "$1/."; | |
521 | else | |
522 | case $1 in #( | |
523 | -*)set "./$1";; | |
524 | esac; | |
525 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
526 | ???[sx]*):;;*)false;;esac;fi | |
527 | '\'' sh | |
528 | ' | |
631ef239 | 529 | fi |
7083c021 | 530 | as_executable_p=$as_test_x |
631ef239 | 531 | |
7083c021 AC |
532 | # Sed expression to map a string onto a valid CPP name. |
533 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 | 534 | |
7083c021 AC |
535 | # Sed expression to map a string onto a valid variable name. |
536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
631ef239 AC |
537 | |
538 | ||
6fb6bd15 AC |
539 | test -n "$DJDIR" || exec 7<&0 </dev/null |
540 | exec 6>&1 | |
631ef239 | 541 | |
7083c021 | 542 | # Name of the host. |
b6d0720c | 543 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
7083c021 AC |
544 | # so uname gets run too. |
545 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
631ef239 | 546 | |
7083c021 AC |
547 | # |
548 | # Initializations. | |
549 | # | |
550 | ac_default_prefix=/usr/local | |
551 | ac_clean_files= | |
552 | ac_config_libobj_dir=. | |
553 | LIBOBJS= | |
554 | cross_compiling=no | |
555 | subdirs= | |
556 | MFLAGS= | |
557 | MAKEFLAGS= | |
212380e3 | 558 | |
212380e3 AC |
559 | # Identity of this package. |
560 | PACKAGE_NAME='charybdis' | |
561 | PACKAGE_TARNAME='charybdis' | |
5a241f54 AC |
562 | PACKAGE_VERSION='3.3.0' |
563 | PACKAGE_STRING='charybdis 3.3.0' | |
212380e3 | 564 | PACKAGE_BUGREPORT='' |
7083c021 | 565 | PACKAGE_URL='' |
212380e3 AC |
566 | |
567 | ac_default_prefix=$HOME/ircd | |
568 | # Factoring default headers for most tests. | |
569 | ac_includes_default="\ | |
570 | #include <stdio.h> | |
631ef239 | 571 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
572 | # include <sys/types.h> |
573 | #endif | |
631ef239 | 574 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
575 | # include <sys/stat.h> |
576 | #endif | |
631ef239 | 577 | #ifdef STDC_HEADERS |
212380e3 AC |
578 | # include <stdlib.h> |
579 | # include <stddef.h> | |
580 | #else | |
631ef239 | 581 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
582 | # include <stdlib.h> |
583 | # endif | |
584 | #endif | |
631ef239 AC |
585 | #ifdef HAVE_STRING_H |
586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
587 | # include <memory.h> |
588 | # endif | |
589 | # include <string.h> | |
590 | #endif | |
631ef239 | 591 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
592 | # include <strings.h> |
593 | #endif | |
631ef239 | 594 | #ifdef HAVE_INTTYPES_H |
212380e3 | 595 | # include <inttypes.h> |
212380e3 | 596 | #endif |
631ef239 AC |
597 | #ifdef HAVE_STDINT_H |
598 | # include <stdint.h> | |
599 | #endif | |
600 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
601 | # include <unistd.h> |
602 | #endif" | |
603 | ||
7083c021 AC |
604 | enable_option_checking=no |
605 | ac_subst_vars='LTLIBOBJS | |
631ef239 | 606 | LIBOBJS |
7083c021 AC |
607 | SEDOBJ |
608 | IRC_CFLAGS | |
609 | PICFLAGS | |
610 | SSL_LIBS | |
611 | SSL_INCLUDES | |
612 | SSL_SRCS_ENABLE | |
613 | MOD_TARGET | |
614 | MODULES_LIBS | |
615 | SELECT_TYPE | |
616 | moduledir | |
617 | MODULE_DIR | |
618 | helpdir | |
619 | HELP_DIR | |
620 | logdir | |
621 | LOG_DIR | |
622 | confdir | |
623 | ETC_DIR | |
624 | ZLIB_LD | |
625 | ENCSPEED | |
626 | ALLOCA | |
627 | VICONF | |
628 | CRYPT_LIB | |
629 | LEXLIB | |
630 | LEX_OUTPUT_ROOT | |
631 | LEX | |
632 | YFLAGS | |
633 | YACC | |
634 | TOUCH | |
635 | RANLIB | |
636 | LD | |
637 | AR | |
638 | SED | |
639 | LN | |
640 | MV | |
641 | CP | |
642 | RM | |
643 | INSTALL_DATA | |
644 | INSTALL_SCRIPT | |
645 | INSTALL_PROGRAM | |
646 | SET_MAKE | |
647 | STDOUT | |
648 | MAKEDEPEND | |
649 | MKDEP | |
650 | subdirs | |
651 | EGREP | |
652 | GREP | |
653 | CPP | |
654 | OBJEXT | |
655 | EXEEXT | |
656 | ac_ct_CC | |
657 | CPPFLAGS | |
658 | LDFLAGS | |
659 | CFLAGS | |
660 | CC | |
661 | target_alias | |
662 | host_alias | |
663 | build_alias | |
664 | LIBS | |
665 | ECHO_T | |
666 | ECHO_N | |
667 | ECHO_C | |
668 | DEFS | |
669 | mandir | |
670 | localedir | |
671 | libdir | |
672 | psdir | |
673 | pdfdir | |
674 | dvidir | |
675 | htmldir | |
676 | infodir | |
677 | docdir | |
678 | oldincludedir | |
679 | includedir | |
680 | localstatedir | |
681 | sharedstatedir | |
682 | sysconfdir | |
683 | datadir | |
684 | datarootdir | |
685 | libexecdir | |
686 | sbindir | |
687 | bindir | |
688 | program_transform_name | |
689 | prefix | |
690 | exec_prefix | |
691 | PACKAGE_URL | |
692 | PACKAGE_BUGREPORT | |
693 | PACKAGE_STRING | |
694 | PACKAGE_VERSION | |
695 | PACKAGE_TARNAME | |
696 | PACKAGE_NAME | |
697 | PATH_SEPARATOR | |
698 | SHELL' | |
212380e3 | 699 | ac_subst_files='' |
7083c021 AC |
700 | ac_user_opts=' |
701 | enable_option_checking | |
702 | enable_ipv6 | |
703 | enable_openssl | |
704 | with_zlib_path | |
705 | enable_zlib | |
706 | enable_ports | |
707 | enable_poll | |
708 | enable_select | |
709 | enable_kqueue | |
710 | enable_epoll | |
711 | with_confdir | |
712 | with_logdir | |
713 | with_helpdir | |
714 | with_moduledir | |
b6d0720c AC |
715 | with_custom_branding |
716 | with_custom_version | |
7083c021 AC |
717 | enable_assert |
718 | enable_iodebug | |
719 | enable_profile | |
720 | enable_balloc | |
721 | enable_small_net | |
722 | with_nicklen | |
723 | with_topiclen | |
724 | enable_warnings | |
725 | ' | |
631ef239 AC |
726 | ac_precious_vars='build_alias |
727 | host_alias | |
728 | target_alias | |
729 | CC | |
730 | CFLAGS | |
731 | LDFLAGS | |
732 | LIBS | |
733 | CPPFLAGS | |
734 | CPP | |
735 | YACC | |
736 | YFLAGS' | |
b676ea3b | 737 | ac_subdirs_all='libratbox' |
212380e3 AC |
738 | |
739 | # Initialize some variables set by options. | |
740 | ac_init_help= | |
741 | ac_init_version=false | |
7083c021 AC |
742 | ac_unrecognized_opts= |
743 | ac_unrecognized_sep= | |
212380e3 AC |
744 | # The variables have the same names as the options, with |
745 | # dashes changed to underlines. | |
746 | cache_file=/dev/null | |
747 | exec_prefix=NONE | |
748 | no_create= | |
749 | no_recursion= | |
750 | prefix=NONE | |
751 | program_prefix=NONE | |
752 | program_suffix=NONE | |
753 | program_transform_name=s,x,x, | |
754 | silent= | |
755 | site= | |
756 | srcdir= | |
757 | verbose= | |
758 | x_includes=NONE | |
759 | x_libraries=NONE | |
760 | ||
761 | # Installation directory options. | |
762 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
763 | # and all the variables that are supposed to be based on exec_prefix | |
764 | # by default will actually change. | |
765 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 766 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
767 | bindir='${exec_prefix}/bin' |
768 | sbindir='${exec_prefix}/sbin' | |
769 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
770 | datarootdir='${prefix}/share' |
771 | datadir='${datarootdir}' | |
212380e3 AC |
772 | sysconfdir='${prefix}/etc' |
773 | sharedstatedir='${prefix}/com' | |
774 | localstatedir='${prefix}/var' | |
212380e3 AC |
775 | includedir='${prefix}/include' |
776 | oldincludedir='/usr/include' | |
631ef239 AC |
777 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
778 | infodir='${datarootdir}/info' | |
779 | htmldir='${docdir}' | |
780 | dvidir='${docdir}' | |
781 | pdfdir='${docdir}' | |
782 | psdir='${docdir}' | |
783 | libdir='${exec_prefix}/lib' | |
784 | localedir='${datarootdir}/locale' | |
785 | mandir='${datarootdir}/man' | |
212380e3 AC |
786 | |
787 | ac_prev= | |
631ef239 | 788 | ac_dashdash= |
212380e3 AC |
789 | for ac_option |
790 | do | |
791 | # If the previous option needs an argument, assign it. | |
792 | if test -n "$ac_prev"; then | |
631ef239 | 793 | eval $ac_prev=\$ac_option |
212380e3 AC |
794 | ac_prev= |
795 | continue | |
796 | fi | |
797 | ||
631ef239 | 798 | case $ac_option in |
b6d0720c AC |
799 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
800 | *=) ac_optarg= ;; | |
801 | *) ac_optarg=yes ;; | |
631ef239 | 802 | esac |
212380e3 AC |
803 | |
804 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
805 | ||
631ef239 AC |
806 | case $ac_dashdash$ac_option in |
807 | --) | |
808 | ac_dashdash=yes ;; | |
212380e3 AC |
809 | |
810 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
811 | ac_prev=bindir ;; | |
812 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
813 | bindir=$ac_optarg ;; | |
814 | ||
815 | -build | --build | --buil | --bui | --bu) | |
816 | ac_prev=build_alias ;; | |
817 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
818 | build_alias=$ac_optarg ;; | |
819 | ||
820 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
821 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
822 | ac_prev=cache_file ;; | |
823 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
824 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
825 | cache_file=$ac_optarg ;; | |
826 | ||
827 | --config-cache | -C) | |
828 | cache_file=config.cache ;; | |
829 | ||
631ef239 | 830 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 831 | ac_prev=datadir ;; |
631ef239 | 832 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
833 | datadir=$ac_optarg ;; |
834 | ||
631ef239 AC |
835 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
836 | | --dataroo | --dataro | --datar) | |
837 | ac_prev=datarootdir ;; | |
838 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
839 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
840 | datarootdir=$ac_optarg ;; | |
841 | ||
212380e3 | 842 | -disable-* | --disable-*) |
7083c021 | 843 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 844 | # Reject names that are not valid shell variable names. |
7083c021 | 845 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 846 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
847 | ac_useropt_orig=$ac_useropt |
848 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
849 | case $ac_user_opts in | |
850 | *" | |
851 | "enable_$ac_useropt" | |
852 | "*) ;; | |
853 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
854 | ac_unrecognized_sep=', ';; | |
855 | esac | |
856 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
857 | |
858 | -docdir | --docdir | --docdi | --doc | --do) | |
859 | ac_prev=docdir ;; | |
860 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
861 | docdir=$ac_optarg ;; | |
862 | ||
863 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
864 | ac_prev=dvidir ;; | |
865 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
866 | dvidir=$ac_optarg ;; | |
212380e3 AC |
867 | |
868 | -enable-* | --enable-*) | |
7083c021 | 869 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 870 | # Reject names that are not valid shell variable names. |
7083c021 | 871 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 872 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
873 | ac_useropt_orig=$ac_useropt |
874 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
875 | case $ac_user_opts in | |
876 | *" | |
877 | "enable_$ac_useropt" | |
878 | "*) ;; | |
879 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
880 | ac_unrecognized_sep=', ';; | |
881 | esac | |
882 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
883 | |
884 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
885 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
886 | | --exec | --exe | --ex) | |
887 | ac_prev=exec_prefix ;; | |
888 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
889 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
890 | | --exec=* | --exe=* | --ex=*) | |
891 | exec_prefix=$ac_optarg ;; | |
892 | ||
893 | -gas | --gas | --ga | --g) | |
894 | # Obsolete; use --with-gas. | |
895 | with_gas=yes ;; | |
896 | ||
897 | -help | --help | --hel | --he | -h) | |
898 | ac_init_help=long ;; | |
899 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
900 | ac_init_help=recursive ;; | |
901 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
902 | ac_init_help=short ;; | |
903 | ||
904 | -host | --host | --hos | --ho) | |
905 | ac_prev=host_alias ;; | |
906 | -host=* | --host=* | --hos=* | --ho=*) | |
907 | host_alias=$ac_optarg ;; | |
908 | ||
631ef239 AC |
909 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
910 | ac_prev=htmldir ;; | |
911 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
912 | | --ht=*) | |
913 | htmldir=$ac_optarg ;; | |
914 | ||
212380e3 AC |
915 | -includedir | --includedir | --includedi | --included | --include \ |
916 | | --includ | --inclu | --incl | --inc) | |
917 | ac_prev=includedir ;; | |
918 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
919 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
920 | includedir=$ac_optarg ;; | |
921 | ||
922 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
923 | ac_prev=infodir ;; | |
924 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
925 | infodir=$ac_optarg ;; | |
926 | ||
927 | -libdir | --libdir | --libdi | --libd) | |
928 | ac_prev=libdir ;; | |
929 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
930 | libdir=$ac_optarg ;; | |
931 | ||
932 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
933 | | --libexe | --libex | --libe) | |
934 | ac_prev=libexecdir ;; | |
935 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
936 | | --libexe=* | --libex=* | --libe=*) | |
937 | libexecdir=$ac_optarg ;; | |
938 | ||
631ef239 AC |
939 | -localedir | --localedir | --localedi | --localed | --locale) |
940 | ac_prev=localedir ;; | |
941 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
942 | localedir=$ac_optarg ;; | |
943 | ||
212380e3 | 944 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 945 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
946 | ac_prev=localstatedir ;; |
947 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 948 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
949 | localstatedir=$ac_optarg ;; |
950 | ||
951 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
952 | ac_prev=mandir ;; | |
953 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
954 | mandir=$ac_optarg ;; | |
955 | ||
956 | -nfp | --nfp | --nf) | |
957 | # Obsolete; use --without-fp. | |
958 | with_fp=no ;; | |
959 | ||
960 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
961 | | --no-cr | --no-c | -n) | |
962 | no_create=yes ;; | |
963 | ||
964 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
965 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
966 | no_recursion=yes ;; | |
967 | ||
968 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
969 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
970 | | --oldin | --oldi | --old | --ol | --o) | |
971 | ac_prev=oldincludedir ;; | |
972 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
973 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
974 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
975 | oldincludedir=$ac_optarg ;; | |
976 | ||
977 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
978 | ac_prev=prefix ;; | |
979 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
980 | prefix=$ac_optarg ;; | |
981 | ||
982 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
983 | | --program-pre | --program-pr | --program-p) | |
984 | ac_prev=program_prefix ;; | |
985 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
986 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
987 | program_prefix=$ac_optarg ;; | |
988 | ||
989 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
990 | | --program-suf | --program-su | --program-s) | |
991 | ac_prev=program_suffix ;; | |
992 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
993 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
994 | program_suffix=$ac_optarg ;; | |
995 | ||
996 | -program-transform-name | --program-transform-name \ | |
997 | | --program-transform-nam | --program-transform-na \ | |
998 | | --program-transform-n | --program-transform- \ | |
999 | | --program-transform | --program-transfor \ | |
1000 | | --program-transfo | --program-transf \ | |
1001 | | --program-trans | --program-tran \ | |
1002 | | --progr-tra | --program-tr | --program-t) | |
1003 | ac_prev=program_transform_name ;; | |
1004 | -program-transform-name=* | --program-transform-name=* \ | |
1005 | | --program-transform-nam=* | --program-transform-na=* \ | |
1006 | | --program-transform-n=* | --program-transform-=* \ | |
1007 | | --program-transform=* | --program-transfor=* \ | |
1008 | | --program-transfo=* | --program-transf=* \ | |
1009 | | --program-trans=* | --program-tran=* \ | |
1010 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1011 | program_transform_name=$ac_optarg ;; | |
1012 | ||
631ef239 AC |
1013 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1014 | ac_prev=pdfdir ;; | |
1015 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1016 | pdfdir=$ac_optarg ;; | |
1017 | ||
1018 | -psdir | --psdir | --psdi | --psd | --ps) | |
1019 | ac_prev=psdir ;; | |
1020 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1021 | psdir=$ac_optarg ;; | |
1022 | ||
212380e3 AC |
1023 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1024 | | -silent | --silent | --silen | --sile | --sil) | |
1025 | silent=yes ;; | |
1026 | ||
1027 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1028 | ac_prev=sbindir ;; | |
1029 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1030 | | --sbi=* | --sb=*) | |
1031 | sbindir=$ac_optarg ;; | |
1032 | ||
1033 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1034 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1035 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1036 | | --sha | --sh) | |
1037 | ac_prev=sharedstatedir ;; | |
1038 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1039 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1040 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1041 | | --sha=* | --sh=*) | |
1042 | sharedstatedir=$ac_optarg ;; | |
1043 | ||
1044 | -site | --site | --sit) | |
1045 | ac_prev=site ;; | |
1046 | -site=* | --site=* | --sit=*) | |
1047 | site=$ac_optarg ;; | |
1048 | ||
1049 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1050 | ac_prev=srcdir ;; | |
1051 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1052 | srcdir=$ac_optarg ;; | |
1053 | ||
1054 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1055 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1056 | ac_prev=sysconfdir ;; | |
1057 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1058 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1059 | sysconfdir=$ac_optarg ;; | |
1060 | ||
1061 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1062 | ac_prev=target_alias ;; | |
1063 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1064 | target_alias=$ac_optarg ;; | |
1065 | ||
1066 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1067 | verbose=yes ;; | |
1068 | ||
1069 | -version | --version | --versio | --versi | --vers | -V) | |
1070 | ac_init_version=: ;; | |
1071 | ||
1072 | -with-* | --with-*) | |
7083c021 | 1073 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1074 | # Reject names that are not valid shell variable names. |
7083c021 | 1075 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1076 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1077 | ac_useropt_orig=$ac_useropt |
1078 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1079 | case $ac_user_opts in | |
1080 | *" | |
1081 | "with_$ac_useropt" | |
1082 | "*) ;; | |
1083 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1084 | ac_unrecognized_sep=', ';; | |
1085 | esac | |
1086 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1087 | |
1088 | -without-* | --without-*) | |
7083c021 | 1089 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1090 | # Reject names that are not valid shell variable names. |
7083c021 | 1091 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1092 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1093 | ac_useropt_orig=$ac_useropt |
1094 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1095 | case $ac_user_opts in | |
1096 | *" | |
1097 | "with_$ac_useropt" | |
1098 | "*) ;; | |
1099 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1100 | ac_unrecognized_sep=', ';; | |
1101 | esac | |
1102 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1103 | |
1104 | --x) | |
1105 | # Obsolete; use --with-x. | |
1106 | with_x=yes ;; | |
1107 | ||
1108 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1109 | | --x-incl | --x-inc | --x-in | --x-i) | |
1110 | ac_prev=x_includes ;; | |
1111 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1112 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1113 | x_includes=$ac_optarg ;; | |
1114 | ||
1115 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1116 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1117 | ac_prev=x_libraries ;; | |
1118 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1119 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1120 | x_libraries=$ac_optarg ;; | |
1121 | ||
b6d0720c AC |
1122 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1123 | Try \`$0 --help' for more information" | |
212380e3 AC |
1124 | ;; |
1125 | ||
1126 | *=*) | |
1127 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1128 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1129 | case $ac_envvar in #( |
1130 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1131 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1132 | esac |
631ef239 | 1133 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1134 | export $ac_envvar ;; |
1135 | ||
1136 | *) | |
1137 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1138 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1139 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1140 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1141 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1142 | ;; |
1143 | ||
1144 | esac | |
1145 | done | |
1146 | ||
1147 | if test -n "$ac_prev"; then | |
1148 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1149 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1150 | fi |
1151 | ||
7083c021 AC |
1152 | if test -n "$ac_unrecognized_opts"; then |
1153 | case $enable_option_checking in | |
1154 | no) ;; | |
b6d0720c | 1155 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1156 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1157 | esac | |
1158 | fi | |
1159 | ||
1160 | # Check all directory arguments for consistency. | |
631ef239 AC |
1161 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1162 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1163 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1164 | libdir localedir mandir | |
212380e3 | 1165 | do |
631ef239 | 1166 | eval ac_val=\$$ac_var |
7083c021 AC |
1167 | # Remove trailing slashes. |
1168 | case $ac_val in | |
1169 | */ ) | |
1170 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1171 | eval $ac_var=\$ac_val;; | |
1172 | esac | |
1173 | # Be sure to have absolute directory names. | |
212380e3 | 1174 | case $ac_val in |
631ef239 AC |
1175 | [\\/$]* | ?:[\\/]* ) continue;; |
1176 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1177 | esac |
b6d0720c | 1178 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1179 | done |
1180 | ||
1181 | # There might be people who depend on the old broken behavior: `$host' | |
1182 | # used to hold the argument of --host etc. | |
1183 | # FIXME: To remove some day. | |
1184 | build=$build_alias | |
1185 | host=$host_alias | |
1186 | target=$target_alias | |
1187 | ||
1188 | # FIXME: To remove some day. | |
1189 | if test "x$host_alias" != x; then | |
1190 | if test "x$build_alias" = x; then | |
1191 | cross_compiling=maybe | |
b6d0720c AC |
1192 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1193 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
212380e3 AC |
1194 | elif test "x$build_alias" != "x$host_alias"; then |
1195 | cross_compiling=yes | |
1196 | fi | |
1197 | fi | |
1198 | ||
1199 | ac_tool_prefix= | |
1200 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1201 | ||
1202 | test "$silent" = yes && exec 6>/dev/null | |
1203 | ||
1204 | ||
631ef239 AC |
1205 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1206 | ac_ls_di=`ls -di .` && | |
1207 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1208 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1209 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1210 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1211 | |
1212 | ||
1213 | # Find the source files, if location was not specified. | |
1214 | if test -z "$srcdir"; then | |
212380e3 | 1215 | ac_srcdir_defaulted=yes |
631ef239 | 1216 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1217 | ac_confdir=`$as_dirname -- "$as_myself" || |
1218 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1219 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1220 | X"$as_myself" : 'X\(//\)$' \| \ | |
1221 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1222 | $as_echo X"$as_myself" | | |
631ef239 AC |
1223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1224 | s//\1/ | |
1225 | q | |
1226 | } | |
1227 | /^X\(\/\/\)[^/].*/{ | |
1228 | s//\1/ | |
1229 | q | |
1230 | } | |
1231 | /^X\(\/\/\)$/{ | |
1232 | s//\1/ | |
1233 | q | |
1234 | } | |
1235 | /^X\(\/\).*/{ | |
1236 | s//\1/ | |
1237 | q | |
1238 | } | |
1239 | s/.*/./; q'` | |
212380e3 | 1240 | srcdir=$ac_confdir |
631ef239 | 1241 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1242 | srcdir=.. |
1243 | fi | |
1244 | else | |
1245 | ac_srcdir_defaulted=no | |
1246 | fi | |
631ef239 AC |
1247 | if test ! -r "$srcdir/$ac_unique_file"; then |
1248 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1249 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1250 | fi |
631ef239 AC |
1251 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1252 | ac_abs_confdir=`( | |
b6d0720c | 1253 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1254 | pwd)` |
1255 | # When building in place, set srcdir=. | |
1256 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1257 | srcdir=. | |
1258 | fi | |
1259 | # Remove unnecessary trailing slashes from srcdir. | |
1260 | # Double slashes in file names in object file debugging info | |
1261 | # mess up M-x gdb in Emacs. | |
1262 | case $srcdir in | |
1263 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1264 | esac | |
1265 | for ac_var in $ac_precious_vars; do | |
1266 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1267 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1268 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1269 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1270 | done | |
212380e3 AC |
1271 | |
1272 | # | |
1273 | # Report the --help message. | |
1274 | # | |
1275 | if test "$ac_init_help" = "long"; then | |
1276 | # Omit some internal or obsolete options to make the list less imposing. | |
1277 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1278 | cat <<_ACEOF | |
5a241f54 | 1279 | \`configure' configures charybdis 3.3.0 to adapt to many kinds of systems. |
212380e3 AC |
1280 | |
1281 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1282 | ||
1283 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1284 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1285 | ||
1286 | Defaults for the options are specified in brackets. | |
1287 | ||
1288 | Configuration: | |
1289 | -h, --help display this help and exit | |
1290 | --help=short display options specific to this package | |
1291 | --help=recursive display the short help of all the included packages | |
1292 | -V, --version display version information and exit | |
b6d0720c | 1293 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1294 | --cache-file=FILE cache test results in FILE [disabled] |
1295 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1296 | -n, --no-create do not create output files | |
1297 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1298 | ||
212380e3 AC |
1299 | Installation directories: |
1300 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1301 | [$ac_default_prefix] |
212380e3 | 1302 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1303 | [PREFIX] |
212380e3 AC |
1304 | |
1305 | By default, \`make install' will install all the files in | |
1306 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1307 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1308 | for instance \`--prefix=\$HOME'. | |
1309 | ||
1310 | For better control, use the options below. | |
1311 | ||
1312 | Fine tuning of the installation directories: | |
7083c021 AC |
1313 | --bindir=DIR user executables [EPREFIX/bin] |
1314 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1315 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1316 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1317 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1318 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1319 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1320 | --includedir=DIR C header files [PREFIX/include] | |
1321 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1322 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1323 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1324 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1325 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1326 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1327 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1328 | --htmldir=DIR html documentation [DOCDIR] | |
1329 | --dvidir=DIR dvi documentation [DOCDIR] | |
1330 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1331 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1332 | _ACEOF |
1333 | ||
1334 | cat <<\_ACEOF | |
1335 | _ACEOF | |
1336 | fi | |
1337 | ||
1338 | if test -n "$ac_init_help"; then | |
1339 | case $ac_init_help in | |
5a241f54 | 1340 | short | recursive ) echo "Configuration of charybdis 3.3.0:";; |
212380e3 AC |
1341 | esac |
1342 | cat <<\_ACEOF | |
1343 | ||
1344 | Optional Features: | |
7083c021 | 1345 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1346 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1347 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1348 | --enable-ipv6 Enable IPv6 support | |
631ef239 | 1349 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1350 | --disable-openssl Disable OpenSSL support. |
1351 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1352 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1353 | --enable-poll Force poll() usage. |
1354 | --enable-select Force select() usage. | |
1355 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1356 | --enable-epoll Force sys_epoll usage (Linux only). |
1357 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1358 | hard(aborts the daemon) | |
1359 | --enable-iodebug Enable IO Debugging hooks | |
1360 | --enable-profile Enable profiling | |
1361 | --disable-balloc Disable the block allocator. | |
212380e3 | 1362 | --enable-small-net Enable small network support. |
212380e3 AC |
1363 | --enable-warnings Enable all sorts of warnings for debugging. |
1364 | ||
1365 | Optional Packages: | |
1366 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1367 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1368 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1369 | --with-confdir=DIR Directory to install config files. | |
1370 | --with-logdir=DIR Directory where to write logfiles. | |
1371 | --with-helpdir=DIR Directory to install help files. | |
1372 | --with-moduledir=DIR Directory to install modules. | |
b6d0720c AC |
1373 | --with-custom-branding=NAME |
1374 | Custom branding name. | |
1375 | --with-custom-version=NAME | |
1376 | Custom version branding. | |
b583faf9 | 1377 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1378 | 31, max 50) |
212380e3 AC |
1379 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1380 | 390) | |
212380e3 AC |
1381 | |
1382 | Some influential environment variables: | |
1383 | CC C compiler command | |
1384 | CFLAGS C compiler flags | |
1385 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1386 | nonstandard directory <lib dir> | |
631ef239 | 1387 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1388 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1389 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1390 | CPP C preprocessor |
b6d0720c AC |
1391 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1392 | Defaults to the first program found out of: `bison -y', `byacc', | |
1393 | `yacc'. | |
631ef239 AC |
1394 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1395 | This script will default YFLAGS to the empty string to avoid a | |
1396 | default value of `-d' given by some make applications. | |
212380e3 AC |
1397 | |
1398 | Use these variables to override the choices made by `configure' or to help | |
1399 | it to find libraries and programs with nonstandard names/locations. | |
1400 | ||
7083c021 | 1401 | Report bugs to the package provider. |
212380e3 | 1402 | _ACEOF |
631ef239 | 1403 | ac_status=$? |
212380e3 AC |
1404 | fi |
1405 | ||
1406 | if test "$ac_init_help" = "recursive"; then | |
1407 | # If there are subdirs, report their specific --help. | |
212380e3 | 1408 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1409 | test -d "$ac_dir" || |
1410 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1411 | continue | |
212380e3 AC |
1412 | ac_builddir=. |
1413 | ||
631ef239 AC |
1414 | case "$ac_dir" in |
1415 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1416 | *) | |
7083c021 | 1417 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1418 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1419 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1420 | case $ac_top_builddir_sub in |
1421 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1422 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1423 | esac ;; | |
1424 | esac | |
1425 | ac_abs_top_builddir=$ac_pwd | |
1426 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1427 | # for backward compatibility: | |
1428 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1429 | |
1430 | case $srcdir in | |
631ef239 | 1431 | .) # We are building in place. |
212380e3 | 1432 | ac_srcdir=. |
631ef239 AC |
1433 | ac_top_srcdir=$ac_top_builddir_sub |
1434 | ac_abs_top_srcdir=$ac_pwd ;; | |
1435 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1436 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1437 | ac_top_srcdir=$srcdir |
1438 | ac_abs_top_srcdir=$srcdir ;; | |
1439 | *) # Relative name. | |
1440 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1441 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1442 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1443 | esac |
631ef239 AC |
1444 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1445 | ||
1446 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1447 | # Check for guested configure. | |
1448 | if test -f "$ac_srcdir/configure.gnu"; then | |
1449 | echo && | |
1450 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1451 | elif test -f "$ac_srcdir/configure"; then | |
1452 | echo && | |
1453 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1454 | else |
7083c021 | 1455 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1456 | fi || ac_status=$? |
1457 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1458 | done |
1459 | fi | |
1460 | ||
631ef239 | 1461 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1462 | if $ac_init_version; then |
1463 | cat <<\_ACEOF | |
5a241f54 | 1464 | charybdis configure 3.3.0 |
b6d0720c | 1465 | generated by GNU Autoconf 2.68 |
212380e3 | 1466 | |
b6d0720c | 1467 | Copyright (C) 2010 Free Software Foundation, Inc. |
212380e3 AC |
1468 | This configure script is free software; the Free Software Foundation |
1469 | gives unlimited permission to copy, distribute and modify it. | |
1470 | ||
b676ea3b | 1471 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 1472 | _ACEOF |
631ef239 | 1473 | exit |
212380e3 | 1474 | fi |
212380e3 | 1475 | |
7083c021 AC |
1476 | ## ------------------------ ## |
1477 | ## Autoconf initialization. ## | |
1478 | ## ------------------------ ## | |
212380e3 | 1479 | |
7083c021 AC |
1480 | # ac_fn_c_try_compile LINENO |
1481 | # -------------------------- | |
1482 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1483 | ac_fn_c_try_compile () | |
1484 | { | |
1485 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1486 | rm -f conftest.$ac_objext | |
1487 | if { { ac_try="$ac_compile" | |
1488 | case "(($ac_try" in | |
1489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1490 | *) ac_try_echo=$ac_try;; | |
1491 | esac | |
1492 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1493 | $as_echo "$ac_try_echo"; } >&5 | |
1494 | (eval "$ac_compile") 2>conftest.err | |
1495 | ac_status=$? | |
1496 | if test -s conftest.err; then | |
1497 | grep -v '^ *+' conftest.err >conftest.er1 | |
1498 | cat conftest.er1 >&5 | |
1499 | mv -f conftest.er1 conftest.err | |
1500 | fi | |
1501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1502 | test $ac_status = 0; } && { | |
1503 | test -z "$ac_c_werror_flag" || | |
1504 | test ! -s conftest.err | |
1505 | } && test -s conftest.$ac_objext; then : | |
1506 | ac_retval=0 | |
1507 | else | |
1508 | $as_echo "$as_me: failed program was:" >&5 | |
1509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1510 | |
7083c021 AC |
1511 | ac_retval=1 |
1512 | fi | |
b6d0720c | 1513 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1514 | as_fn_set_status $ac_retval |
7083c021 AC |
1515 | |
1516 | } # ac_fn_c_try_compile | |
1517 | ||
1518 | # ac_fn_c_try_cpp LINENO | |
1519 | # ---------------------- | |
1520 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1521 | ac_fn_c_try_cpp () | |
212380e3 | 1522 | { |
7083c021 AC |
1523 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1524 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1525 | case "(($ac_try" in | |
1526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1527 | *) ac_try_echo=$ac_try;; | |
1528 | esac | |
1529 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1530 | $as_echo "$ac_try_echo"; } >&5 | |
1531 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1532 | ac_status=$? | |
1533 | if test -s conftest.err; then | |
1534 | grep -v '^ *+' conftest.err >conftest.er1 | |
1535 | cat conftest.er1 >&5 | |
1536 | mv -f conftest.er1 conftest.err | |
1537 | fi | |
1538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
b6d0720c | 1539 | test $ac_status = 0; } > conftest.i && { |
7083c021 AC |
1540 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1541 | test ! -s conftest.err | |
1542 | }; then : | |
1543 | ac_retval=0 | |
1544 | else | |
1545 | $as_echo "$as_me: failed program was:" >&5 | |
1546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1547 | |
7083c021 AC |
1548 | ac_retval=1 |
1549 | fi | |
b6d0720c | 1550 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1551 | as_fn_set_status $ac_retval |
212380e3 | 1552 | |
7083c021 | 1553 | } # ac_fn_c_try_cpp |
212380e3 | 1554 | |
7083c021 AC |
1555 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1556 | # ------------------------------------------------------- | |
1557 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1558 | # the include files in INCLUDES and setting the cache variable VAR | |
1559 | # accordingly. | |
1560 | ac_fn_c_check_header_mongrel () | |
1561 | { | |
1562 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b6d0720c | 1563 | if eval \${$3+:} false; then : |
7083c021 AC |
1564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1565 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1566 | if eval \${$3+:} false; then : |
7083c021 AC |
1567 | $as_echo_n "(cached) " >&6 |
1568 | fi | |
1569 | eval ac_res=\$$3 | |
1570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1571 | $as_echo "$ac_res" >&6; } | |
1572 | else | |
1573 | # Is the header compilable? | |
1574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1575 | $as_echo_n "checking $2 usability... " >&6; } | |
1576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1577 | /* end confdefs.h. */ | |
1578 | $4 | |
1579 | #include <$2> | |
1580 | _ACEOF | |
1581 | if ac_fn_c_try_compile "$LINENO"; then : | |
1582 | ac_header_compiler=yes | |
1583 | else | |
1584 | ac_header_compiler=no | |
1585 | fi | |
1586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1588 | $as_echo "$ac_header_compiler" >&6; } | |
212380e3 | 1589 | |
7083c021 AC |
1590 | # Is the header present? |
1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1592 | $as_echo_n "checking $2 presence... " >&6; } | |
1593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1594 | /* end confdefs.h. */ | |
1595 | #include <$2> | |
1596 | _ACEOF | |
1597 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1598 | ac_header_preproc=yes | |
1599 | else | |
1600 | ac_header_preproc=no | |
1601 | fi | |
b6d0720c | 1602 | rm -f conftest.err conftest.i conftest.$ac_ext |
7083c021 AC |
1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1604 | $as_echo "$ac_header_preproc" >&6; } | |
212380e3 | 1605 | |
7083c021 AC |
1606 | # So? What about this header? |
1607 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1608 | yes:no: ) | |
1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1610 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1611 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1612 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1613 | ;; | |
1614 | no:yes:* ) | |
1615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1616 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1617 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1618 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1620 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1622 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1624 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1625 | ;; | |
1626 | esac | |
1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1628 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1629 | if eval \${$3+:} false; then : |
7083c021 AC |
1630 | $as_echo_n "(cached) " >&6 |
1631 | else | |
1632 | eval "$3=\$ac_header_compiler" | |
1633 | fi | |
1634 | eval ac_res=\$$3 | |
1635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1636 | $as_echo "$ac_res" >&6; } | |
1637 | fi | |
b6d0720c | 1638 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1639 | |
7083c021 | 1640 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1641 | |
7083c021 AC |
1642 | # ac_fn_c_try_run LINENO |
1643 | # ---------------------- | |
1644 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1645 | # that executables *can* be run. | |
1646 | ac_fn_c_try_run () | |
1647 | { | |
1648 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1649 | if { { ac_try="$ac_link" | |
1650 | case "(($ac_try" in | |
1651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1652 | *) ac_try_echo=$ac_try;; | |
1653 | esac | |
1654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1655 | $as_echo "$ac_try_echo"; } >&5 | |
1656 | (eval "$ac_link") 2>&5 | |
1657 | ac_status=$? | |
1658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1659 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1660 | { { case "(($ac_try" in | |
1661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1662 | *) ac_try_echo=$ac_try;; | |
1663 | esac | |
1664 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1665 | $as_echo "$ac_try_echo"; } >&5 | |
1666 | (eval "$ac_try") 2>&5 | |
1667 | ac_status=$? | |
1668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1669 | test $ac_status = 0; }; }; then : | |
1670 | ac_retval=0 | |
1671 | else | |
1672 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1673 | $as_echo "$as_me: failed program was:" >&5 | |
1674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1675 | |
7083c021 AC |
1676 | ac_retval=$ac_status |
1677 | fi | |
1678 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1680 | as_fn_set_status $ac_retval |
212380e3 | 1681 | |
7083c021 | 1682 | } # ac_fn_c_try_run |
212380e3 | 1683 | |
7083c021 AC |
1684 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1685 | # ------------------------------------------------------- | |
1686 | # Tests whether HEADER exists and can be compiled using the include files in | |
1687 | # INCLUDES, setting the cache variable VAR accordingly. | |
1688 | ac_fn_c_check_header_compile () | |
1689 | { | |
1690 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1692 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1693 | if eval \${$3+:} false; then : |
7083c021 AC |
1694 | $as_echo_n "(cached) " >&6 |
1695 | else | |
1696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1697 | /* end confdefs.h. */ | |
1698 | $4 | |
1699 | #include <$2> | |
212380e3 | 1700 | _ACEOF |
7083c021 AC |
1701 | if ac_fn_c_try_compile "$LINENO"; then : |
1702 | eval "$3=yes" | |
1703 | else | |
1704 | eval "$3=no" | |
1705 | fi | |
1706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1707 | fi | |
1708 | eval ac_res=\$$3 | |
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1710 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1712 | |
7083c021 | 1713 | } # ac_fn_c_check_header_compile |
212380e3 | 1714 | |
7083c021 AC |
1715 | # ac_fn_c_try_link LINENO |
1716 | # ----------------------- | |
1717 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1718 | ac_fn_c_try_link () | |
1719 | { | |
1720 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1722 | if { { ac_try="$ac_link" | |
1723 | case "(($ac_try" in | |
1724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1725 | *) ac_try_echo=$ac_try;; | |
1726 | esac | |
1727 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1728 | $as_echo "$ac_try_echo"; } >&5 | |
1729 | (eval "$ac_link") 2>conftest.err | |
1730 | ac_status=$? | |
1731 | if test -s conftest.err; then | |
1732 | grep -v '^ *+' conftest.err >conftest.er1 | |
1733 | cat conftest.er1 >&5 | |
1734 | mv -f conftest.er1 conftest.err | |
1735 | fi | |
1736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1737 | test $ac_status = 0; } && { | |
1738 | test -z "$ac_c_werror_flag" || | |
1739 | test ! -s conftest.err | |
1740 | } && test -s conftest$ac_exeext && { | |
1741 | test "$cross_compiling" = yes || | |
1742 | $as_test_x conftest$ac_exeext | |
1743 | }; then : | |
1744 | ac_retval=0 | |
212380e3 | 1745 | else |
7083c021 AC |
1746 | $as_echo "$as_me: failed program was:" >&5 |
1747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1748 | |
7083c021 | 1749 | ac_retval=1 |
212380e3 | 1750 | fi |
7083c021 AC |
1751 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1752 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1753 | # interfere with the next link command; also delete a directory that is | |
1754 | # left behind by Apple's compiler. We do this before executing the actions. | |
1755 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1756 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1757 | as_fn_set_status $ac_retval |
212380e3 | 1758 | |
7083c021 | 1759 | } # ac_fn_c_try_link |
212380e3 | 1760 | |
7083c021 AC |
1761 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1762 | # ------------------------------------------- | |
1763 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1764 | # variable VAR accordingly. | |
1765 | ac_fn_c_check_type () | |
1766 | { | |
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1769 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1770 | if eval \${$3+:} false; then : |
7083c021 | 1771 | $as_echo_n "(cached) " >&6 |
212380e3 | 1772 | else |
7083c021 AC |
1773 | eval "$3=no" |
1774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1775 | /* end confdefs.h. */ | |
1776 | $4 | |
1777 | int | |
1778 | main () | |
1779 | { | |
1780 | if (sizeof ($2)) | |
1781 | return 0; | |
1782 | ; | |
1783 | return 0; | |
1784 | } | |
212380e3 | 1785 | _ACEOF |
7083c021 AC |
1786 | if ac_fn_c_try_compile "$LINENO"; then : |
1787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1788 | /* end confdefs.h. */ |
7083c021 | 1789 | $4 |
212380e3 AC |
1790 | int |
1791 | main () | |
1792 | { | |
7083c021 AC |
1793 | if (sizeof (($2))) |
1794 | return 0; | |
212380e3 AC |
1795 | ; |
1796 | return 0; | |
1797 | } | |
1798 | _ACEOF | |
7083c021 | 1799 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 1800 | |
631ef239 | 1801 | else |
7083c021 | 1802 | eval "$3=yes" |
212380e3 | 1803 | fi |
7083c021 | 1804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1805 | fi |
7083c021 | 1806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 1807 | fi |
7083c021 AC |
1808 | eval ac_res=\$$3 |
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1810 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1812 | |
7083c021 AC |
1813 | } # ac_fn_c_check_type |
1814 | ||
1815 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1816 | # -------------------------------------------- | |
1817 | # Tries to find the compile-time value of EXPR in a program that includes | |
1818 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1819 | # computed | |
1820 | ac_fn_c_compute_int () | |
1821 | { | |
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1823 | if test "$cross_compiling" = yes; then | |
1824 | # Depending upon the size, compute the lo and hi bounds. | |
1825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1826 | /* end confdefs.h. */ | |
1827 | $4 | |
1828 | int | |
1829 | main () | |
1830 | { | |
1831 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1832 | test_array [0] = 0 | |
1833 | ||
1834 | ; | |
1835 | return 0; | |
1836 | } | |
212380e3 | 1837 | _ACEOF |
7083c021 AC |
1838 | if ac_fn_c_try_compile "$LINENO"; then : |
1839 | ac_lo=0 ac_mid=0 | |
1840 | while :; do | |
1841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1842 | /* end confdefs.h. */ |
7083c021 AC |
1843 | $4 |
1844 | int | |
1845 | main () | |
1846 | { | |
1847 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1848 | test_array [0] = 0 | |
212380e3 | 1849 | |
7083c021 AC |
1850 | ; |
1851 | return 0; | |
1852 | } | |
212380e3 | 1853 | _ACEOF |
7083c021 AC |
1854 | if ac_fn_c_try_compile "$LINENO"; then : |
1855 | ac_hi=$ac_mid; break | |
212380e3 | 1856 | else |
7083c021 AC |
1857 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
1858 | if test $ac_lo -le $ac_mid; then | |
1859 | ac_lo= ac_hi= | |
1860 | break | |
1861 | fi | |
1862 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 1863 | fi |
631ef239 | 1864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
1865 | done |
1866 | else | |
1867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1868 | /* end confdefs.h. */ | |
1869 | $4 | |
1870 | int | |
1871 | main () | |
1872 | { | |
1873 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1874 | test_array [0] = 0 | |
212380e3 | 1875 | |
7083c021 AC |
1876 | ; |
1877 | return 0; | |
1878 | } | |
212380e3 | 1879 | _ACEOF |
7083c021 AC |
1880 | if ac_fn_c_try_compile "$LINENO"; then : |
1881 | ac_hi=-1 ac_mid=-1 | |
1882 | while :; do | |
1883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1884 | /* end confdefs.h. */ | |
1885 | $4 | |
1886 | int | |
1887 | main () | |
1888 | { | |
1889 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1890 | test_array [0] = 0 | |
212380e3 | 1891 | |
7083c021 AC |
1892 | ; |
1893 | return 0; | |
1894 | } | |
1895 | _ACEOF | |
1896 | if ac_fn_c_try_compile "$LINENO"; then : | |
1897 | ac_lo=$ac_mid; break | |
1898 | else | |
1899 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1900 | if test $ac_mid -le $ac_hi; then | |
1901 | ac_lo= ac_hi= | |
1902 | break | |
1903 | fi | |
1904 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 1905 | fi |
7083c021 AC |
1906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1907 | done | |
212380e3 | 1908 | else |
7083c021 AC |
1909 | ac_lo= ac_hi= |
1910 | fi | |
1911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1912 | fi | |
1913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1914 | # Binary search between lo and hi bounds. | |
1915 | while test "x$ac_lo" != "x$ac_hi"; do | |
1916 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 1918 | /* end confdefs.h. */ |
7083c021 AC |
1919 | $4 |
1920 | int | |
1921 | main () | |
1922 | { | |
1923 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1924 | test_array [0] = 0 | |
1925 | ||
1926 | ; | |
1927 | return 0; | |
1928 | } | |
212380e3 | 1929 | _ACEOF |
7083c021 AC |
1930 | if ac_fn_c_try_compile "$LINENO"; then : |
1931 | ac_hi=$ac_mid | |
212380e3 | 1932 | else |
7083c021 | 1933 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 1934 | fi |
7083c021 AC |
1935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1936 | done | |
1937 | case $ac_lo in #(( | |
1938 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1939 | '') ac_retval=1 ;; | |
1940 | esac | |
1941 | else | |
1942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1943 | /* end confdefs.h. */ | |
1944 | $4 | |
1945 | static long int longval () { return $2; } | |
1946 | static unsigned long int ulongval () { return $2; } | |
1947 | #include <stdio.h> | |
1948 | #include <stdlib.h> | |
1949 | int | |
1950 | main () | |
1951 | { | |
631ef239 | 1952 | |
7083c021 AC |
1953 | FILE *f = fopen ("conftest.val", "w"); |
1954 | if (! f) | |
1955 | return 1; | |
1956 | if (($2) < 0) | |
1957 | { | |
1958 | long int i = longval (); | |
1959 | if (i != ($2)) | |
1960 | return 1; | |
1961 | fprintf (f, "%ld", i); | |
1962 | } | |
1963 | else | |
1964 | { | |
1965 | unsigned long int i = ulongval (); | |
1966 | if (i != ($2)) | |
1967 | return 1; | |
1968 | fprintf (f, "%lu", i); | |
1969 | } | |
1970 | /* Do not output a trailing newline, as this causes \r\n confusion | |
1971 | on some platforms. */ | |
1972 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 1973 | |
7083c021 AC |
1974 | ; |
1975 | return 0; | |
1976 | } | |
212380e3 | 1977 | _ACEOF |
7083c021 AC |
1978 | if ac_fn_c_try_run "$LINENO"; then : |
1979 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 1980 | else |
7083c021 | 1981 | ac_retval=1 |
212380e3 | 1982 | fi |
7083c021 AC |
1983 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
1984 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1985 | rm -f conftest.val | |
631ef239 | 1986 | |
7083c021 | 1987 | fi |
b6d0720c | 1988 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1989 | as_fn_set_status $ac_retval |
212380e3 | 1990 | |
7083c021 | 1991 | } # ac_fn_c_compute_int |
212380e3 | 1992 | |
7083c021 AC |
1993 | # ac_fn_c_check_func LINENO FUNC VAR |
1994 | # ---------------------------------- | |
1995 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1996 | ac_fn_c_check_func () | |
1997 | { | |
1998 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2000 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2001 | if eval \${$3+:} false; then : |
7083c021 | 2002 | $as_echo_n "(cached) " >&6 |
212380e3 | 2003 | else |
7083c021 | 2004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 2005 | /* end confdefs.h. */ |
7083c021 AC |
2006 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2008 | #define $2 innocuous_$2 | |
2009 | ||
2010 | /* System header to define __stub macros and hopefully few prototypes, | |
2011 | which can conflict with char $2 (); below. | |
2012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2013 | <limits.h> exists even on freestanding compilers. */ | |
2014 | ||
212380e3 AC |
2015 | #ifdef __STDC__ |
2016 | # include <limits.h> | |
2017 | #else | |
2018 | # include <assert.h> | |
2019 | #endif | |
212380e3 | 2020 | |
7083c021 | 2021 | #undef $2 |
631ef239 | 2022 | |
7083c021 AC |
2023 | /* Override any GCC internal prototype to avoid an error. |
2024 | Use char because int might match the return type of a GCC | |
2025 | builtin and then its argument prototype would still apply. */ | |
2026 | #ifdef __cplusplus | |
2027 | extern "C" | |
2028 | #endif | |
2029 | char $2 (); | |
2030 | /* The GNU C library defines this for functions which it implements | |
2031 | to always fail with ENOSYS. Some functions are actually named | |
2032 | something starting with __ and the normal name is an alias. */ | |
2033 | #if defined __stub_$2 || defined __stub___$2 | |
2034 | choke me | |
2035 | #endif | |
212380e3 | 2036 | |
7083c021 AC |
2037 | int |
2038 | main () | |
2039 | { | |
2040 | return $2 (); | |
2041 | ; | |
2042 | return 0; | |
2043 | } | |
212380e3 | 2044 | _ACEOF |
7083c021 AC |
2045 | if ac_fn_c_try_link "$LINENO"; then : |
2046 | eval "$3=yes" | |
212380e3 | 2047 | else |
7083c021 AC |
2048 | eval "$3=no" |
2049 | fi | |
2050 | rm -f core conftest.err conftest.$ac_objext \ | |
2051 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 2052 | fi |
7083c021 AC |
2053 | eval ac_res=\$$3 |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2055 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2056 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
631ef239 | 2057 | |
7083c021 AC |
2058 | } # ac_fn_c_check_func |
2059 | cat >config.log <<_ACEOF | |
2060 | This file contains any messages produced by compilers while | |
2061 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2062 | |
5a241f54 | 2063 | It was created by charybdis $as_me 3.3.0, which was |
b6d0720c | 2064 | generated by GNU Autoconf 2.68. Invocation command line was |
212380e3 | 2065 | |
7083c021 | 2066 | $ $0 $@ |
212380e3 | 2067 | |
7083c021 AC |
2068 | _ACEOF |
2069 | exec 5>>config.log | |
2070 | { | |
2071 | cat <<_ASUNAME | |
2072 | ## --------- ## | |
2073 | ## Platform. ## | |
2074 | ## --------- ## | |
2075 | ||
2076 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2077 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2078 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2079 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2080 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2081 | ||
2082 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2083 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2084 | ||
2085 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2086 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2087 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2088 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2089 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2090 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2091 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2092 | ||
2093 | _ASUNAME | |
212380e3 | 2094 | |
631ef239 | 2095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2096 | for as_dir in $PATH |
631ef239 AC |
2097 | do |
2098 | IFS=$as_save_IFS | |
2099 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2100 | $as_echo "PATH: $as_dir" |
631ef239 | 2101 | done |
631ef239 AC |
2102 | IFS=$as_save_IFS |
2103 | ||
7083c021 | 2104 | } >&5 |
631ef239 | 2105 | |
7083c021 | 2106 | cat >&5 <<_ACEOF |
631ef239 | 2107 | |
631ef239 | 2108 | |
7083c021 AC |
2109 | ## ----------- ## |
2110 | ## Core tests. ## | |
2111 | ## ----------- ## | |
631ef239 | 2112 | |
7083c021 | 2113 | _ACEOF |
631ef239 AC |
2114 | |
2115 | ||
7083c021 AC |
2116 | # Keep a trace of the command line. |
2117 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2118 | # Strip out --silent because we don't want to record it for future runs. | |
2119 | # Also quote any args containing shell meta-characters. | |
2120 | # Make two passes to allow for proper duplicate-argument suppression. | |
2121 | ac_configure_args= | |
2122 | ac_configure_args0= | |
2123 | ac_configure_args1= | |
2124 | ac_must_keep_next=false | |
2125 | for ac_pass in 1 2 | |
631ef239 | 2126 | do |
7083c021 | 2127 | for ac_arg |
631ef239 | 2128 | do |
7083c021 AC |
2129 | case $ac_arg in |
2130 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2131 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2132 | | -silent | --silent | --silen | --sile | --sil) | |
2133 | continue ;; | |
2134 | *\'*) | |
2135 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2136 | esac | |
2137 | case $ac_pass in | |
2138 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2139 | 2) | |
2140 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2141 | if test $ac_must_keep_next = true; then | |
2142 | ac_must_keep_next=false # Got value, back to normal. | |
2143 | else | |
2144 | case $ac_arg in | |
2145 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2146 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2147 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2148 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2149 | case "$ac_configure_args0 " in | |
2150 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2151 | esac | |
2152 | ;; | |
2153 | -* ) ac_must_keep_next=true ;; | |
2154 | esac | |
2155 | fi | |
2156 | as_fn_append ac_configure_args " '$ac_arg'" | |
2157 | ;; | |
2158 | esac | |
631ef239 AC |
2159 | done |
2160 | done | |
7083c021 AC |
2161 | { ac_configure_args0=; unset ac_configure_args0;} |
2162 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2163 | |
7083c021 AC |
2164 | # When interrupted or exit'd, cleanup temporary files, and complete |
2165 | # config.log. We remove comments because anyway the quotes in there | |
2166 | # would cause problems or look ugly. | |
2167 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2168 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2169 | trap 'exit_status=$? | |
2170 | # Save into config.log some information that might help in debugging. | |
2171 | { | |
2172 | echo | |
631ef239 | 2173 | |
b6d0720c | 2174 | $as_echo "## ---------------- ## |
7083c021 | 2175 | ## Cache variables. ## |
b6d0720c | 2176 | ## ---------------- ##" |
7083c021 AC |
2177 | echo |
2178 | # The following way of writing the cache mishandles newlines in values, | |
2179 | ( | |
2180 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2181 | eval ac_val=\$$ac_var | |
2182 | case $ac_val in #( | |
2183 | *${as_nl}*) | |
2184 | case $ac_var in #( | |
2185 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2186 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2187 | esac | |
2188 | case $ac_var in #( | |
2189 | _ | IFS | as_nl) ;; #( | |
2190 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2191 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2192 | esac ;; | |
2193 | esac | |
2194 | done | |
2195 | (set) 2>&1 | | |
2196 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2197 | *${as_nl}ac_space=\ *) | |
2198 | sed -n \ | |
2199 | "s/'\''/'\''\\\\'\'''\''/g; | |
2200 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2201 | ;; #( | |
2202 | *) | |
2203 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2204 | ;; | |
2205 | esac | | |
2206 | sort | |
2207 | ) | |
2208 | echo | |
631ef239 | 2209 | |
b6d0720c | 2210 | $as_echo "## ----------------- ## |
7083c021 | 2211 | ## Output variables. ## |
b6d0720c | 2212 | ## ----------------- ##" |
7083c021 AC |
2213 | echo |
2214 | for ac_var in $ac_subst_vars | |
2215 | do | |
2216 | eval ac_val=\$$ac_var | |
2217 | case $ac_val in | |
2218 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2219 | esac | |
2220 | $as_echo "$ac_var='\''$ac_val'\''" | |
2221 | done | sort | |
2222 | echo | |
631ef239 | 2223 | |
7083c021 | 2224 | if test -n "$ac_subst_files"; then |
b6d0720c | 2225 | $as_echo "## ------------------- ## |
7083c021 | 2226 | ## File substitutions. ## |
b6d0720c | 2227 | ## ------------------- ##" |
7083c021 AC |
2228 | echo |
2229 | for ac_var in $ac_subst_files | |
2230 | do | |
2231 | eval ac_val=\$$ac_var | |
2232 | case $ac_val in | |
2233 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2234 | esac | |
2235 | $as_echo "$ac_var='\''$ac_val'\''" | |
2236 | done | sort | |
2237 | echo | |
2238 | fi | |
631ef239 | 2239 | |
7083c021 | 2240 | if test -s confdefs.h; then |
b6d0720c | 2241 | $as_echo "## ----------- ## |
7083c021 | 2242 | ## confdefs.h. ## |
b6d0720c | 2243 | ## ----------- ##" |
7083c021 AC |
2244 | echo |
2245 | cat confdefs.h | |
2246 | echo | |
2247 | fi | |
2248 | test "$ac_signal" != 0 && | |
2249 | $as_echo "$as_me: caught signal $ac_signal" | |
2250 | $as_echo "$as_me: exit $exit_status" | |
2251 | } >&5 | |
2252 | rm -f core *.core core.conftest.* && | |
2253 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2254 | exit $exit_status | |
2255 | ' 0 | |
2256 | for ac_signal in 1 2 13 15; do | |
2257 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2258 | done | |
2259 | ac_signal=0 | |
631ef239 | 2260 | |
7083c021 AC |
2261 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2262 | rm -f -r conftest* confdefs.h | |
631ef239 | 2263 | |
7083c021 | 2264 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2265 | |
7083c021 | 2266 | # Predefined preprocessor variables. |
212380e3 | 2267 | |
7083c021 AC |
2268 | cat >>confdefs.h <<_ACEOF |
2269 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2270 | _ACEOF |
212380e3 | 2271 | |
7083c021 AC |
2272 | cat >>confdefs.h <<_ACEOF |
2273 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2274 | _ACEOF |
212380e3 | 2275 | |
7083c021 AC |
2276 | cat >>confdefs.h <<_ACEOF |
2277 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2278 | _ACEOF |
212380e3 | 2279 | |
7083c021 AC |
2280 | cat >>confdefs.h <<_ACEOF |
2281 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2282 | _ACEOF | |
212380e3 | 2283 | |
7083c021 AC |
2284 | cat >>confdefs.h <<_ACEOF |
2285 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2286 | _ACEOF | |
212380e3 | 2287 | |
7083c021 AC |
2288 | cat >>confdefs.h <<_ACEOF |
2289 | #define PACKAGE_URL "$PACKAGE_URL" | |
2290 | _ACEOF | |
212380e3 | 2291 | |
631ef239 | 2292 | |
7083c021 AC |
2293 | # Let the site file select an alternate cache file if it wants to. |
2294 | # Prefer an explicitly selected file to automatically selected ones. | |
2295 | ac_site_file1=NONE | |
2296 | ac_site_file2=NONE | |
2297 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2298 | # We do not want a PATH search for config.site. |
2299 | case $CONFIG_SITE in #(( | |
2300 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2301 | */*) ac_site_file1=$CONFIG_SITE;; | |
2302 | *) ac_site_file1=./$CONFIG_SITE;; | |
2303 | esac | |
7083c021 AC |
2304 | elif test "x$prefix" != xNONE; then |
2305 | ac_site_file1=$prefix/share/config.site | |
2306 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2307 | else |
7083c021 AC |
2308 | ac_site_file1=$ac_default_prefix/share/config.site |
2309 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2310 | fi | |
2311 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2312 | do |
7083c021 | 2313 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2314 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2316 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2317 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2318 | . "$ac_site_file" \ |
2319 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2320 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2321 | as_fn_error $? "failed to load site script $ac_site_file | |
2322 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2323 | fi |
2324 | done | |
212380e3 | 2325 | |
7083c021 | 2326 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2327 | # Some versions of bash will fail to source /dev/null (special files |
2328 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2329 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2331 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2332 | case $cache_file in | |
2333 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2334 | *) . "./$cache_file";; | |
2335 | esac | |
2336 | fi | |
212380e3 | 2337 | else |
7083c021 AC |
2338 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2339 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2340 | >$cache_file | |
212380e3 AC |
2341 | fi |
2342 | ||
7083c021 AC |
2343 | # Check that the precious variables saved in the cache have kept the same |
2344 | # value. | |
2345 | ac_cache_corrupted=false | |
2346 | for ac_var in $ac_precious_vars; do | |
2347 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2348 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2349 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2350 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2351 | case $ac_old_set,$ac_new_set in | |
2352 | set,) | |
2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2354 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2355 | ac_cache_corrupted=: ;; | |
2356 | ,set) | |
2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2358 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2359 | ac_cache_corrupted=: ;; | |
2360 | ,);; | |
2361 | *) | |
2362 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2363 | # differences in whitespace do not lead to failure. | |
2364 | ac_old_val_w=`echo x $ac_old_val` | |
2365 | ac_new_val_w=`echo x $ac_new_val` | |
2366 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2368 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2369 | ac_cache_corrupted=: | |
2370 | else | |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2372 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2373 | eval $ac_var=\$ac_old_val | |
2374 | fi | |
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2376 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2378 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2379 | fi;; | |
2380 | esac | |
2381 | # Pass precious variables to config.status. | |
2382 | if test "$ac_new_set" = set; then | |
2383 | case $ac_new_val in | |
2384 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2385 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2386 | esac | |
2387 | case " $ac_configure_args " in | |
2388 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2389 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2390 | esac | |
212380e3 AC |
2391 | fi |
2392 | done | |
7083c021 AC |
2393 | if $ac_cache_corrupted; then |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2395 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2397 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2398 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2399 | fi |
7083c021 AC |
2400 | ## -------------------- ## |
2401 | ## Main body of script. ## | |
2402 | ## -------------------- ## | |
212380e3 | 2403 | |
7083c021 AC |
2404 | ac_ext=c |
2405 | ac_cpp='$CPP $CPPFLAGS' | |
2406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2409 | |
212380e3 | 2410 | |
212380e3 | 2411 | |
7083c021 | 2412 | ac_config_headers="$ac_config_headers include/setup.h" |
631ef239 | 2413 | |
212380e3 | 2414 | |
212380e3 | 2415 | |
631ef239 | 2416 | |
7083c021 AC |
2417 | ac_ext=c |
2418 | ac_cpp='$CPP $CPPFLAGS' | |
2419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2422 | if test -n "$ac_tool_prefix"; then | |
2423 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2424 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2426 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2427 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2428 | $as_echo_n "(cached) " >&6 |
212380e3 | 2429 | else |
7083c021 AC |
2430 | if test -n "$CC"; then |
2431 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2432 | else | |
2433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2434 | for as_dir in $PATH |
2435 | do | |
2436 | IFS=$as_save_IFS | |
2437 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2438 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2440 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2442 | break 2 |
2443 | fi | |
2444 | done | |
7083c021 | 2445 | done |
631ef239 | 2446 | IFS=$as_save_IFS |
212380e3 | 2447 | |
212380e3 | 2448 | fi |
7083c021 AC |
2449 | fi |
2450 | CC=$ac_cv_prog_CC | |
2451 | if test -n "$CC"; then | |
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2453 | $as_echo "$CC" >&6; } | |
212380e3 | 2454 | else |
7083c021 AC |
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2456 | $as_echo "no" >&6; } | |
212380e3 AC |
2457 | fi |
2458 | ||
631ef239 | 2459 | |
7083c021 AC |
2460 | fi |
2461 | if test -z "$ac_cv_prog_CC"; then | |
2462 | ac_ct_CC=$CC | |
2463 | # Extract the first word of "gcc", so it can be a program name with args. | |
2464 | set dummy gcc; ac_word=$2 | |
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2466 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2467 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 2468 | $as_echo_n "(cached) " >&6 |
212380e3 | 2469 | else |
7083c021 AC |
2470 | if test -n "$ac_ct_CC"; then |
2471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2472 | else | |
2473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2474 | for as_dir in $PATH |
2475 | do | |
2476 | IFS=$as_save_IFS | |
2477 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2478 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2480 | ac_cv_prog_ac_ct_CC="gcc" |
2481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2482 | break 2 |
2483 | fi | |
2484 | done | |
7083c021 | 2485 | done |
631ef239 | 2486 | IFS=$as_save_IFS |
212380e3 | 2487 | |
212380e3 | 2488 | fi |
7083c021 AC |
2489 | fi |
2490 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2491 | if test -n "$ac_ct_CC"; then | |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2493 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2494 | else |
7083c021 AC |
2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2496 | $as_echo "no" >&6; } | |
212380e3 AC |
2497 | fi |
2498 | ||
7083c021 AC |
2499 | if test "x$ac_ct_CC" = x; then |
2500 | CC="" | |
2501 | else | |
2502 | case $cross_compiling:$ac_tool_warned in | |
2503 | yes:) | |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2505 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2506 | ac_tool_warned=yes ;; | |
2507 | esac | |
2508 | CC=$ac_ct_CC | |
2509 | fi | |
2510 | else | |
2511 | CC="$ac_cv_prog_CC" | |
2512 | fi | |
631ef239 | 2513 | |
7083c021 AC |
2514 | if test -z "$CC"; then |
2515 | if test -n "$ac_tool_prefix"; then | |
2516 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2517 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2519 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2520 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2521 | $as_echo_n "(cached) " >&6 |
212380e3 | 2522 | else |
7083c021 AC |
2523 | if test -n "$CC"; then |
2524 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2525 | else | |
2526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2527 | for as_dir in $PATH |
2528 | do | |
2529 | IFS=$as_save_IFS | |
2530 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2531 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2533 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2535 | break 2 |
2536 | fi | |
2537 | done | |
7083c021 | 2538 | done |
631ef239 | 2539 | IFS=$as_save_IFS |
7083c021 | 2540 | |
212380e3 | 2541 | fi |
7083c021 AC |
2542 | fi |
2543 | CC=$ac_cv_prog_CC | |
2544 | if test -n "$CC"; then | |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2546 | $as_echo "$CC" >&6; } | |
212380e3 | 2547 | else |
7083c021 AC |
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2549 | $as_echo "no" >&6; } | |
212380e3 AC |
2550 | fi |
2551 | ||
631ef239 | 2552 | |
7083c021 AC |
2553 | fi |
2554 | fi | |
2555 | if test -z "$CC"; then | |
2556 | # Extract the first word of "cc", so it can be a program name with args. | |
2557 | set dummy cc; ac_word=$2 | |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2559 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2560 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2561 | $as_echo_n "(cached) " >&6 |
212380e3 | 2562 | else |
7083c021 AC |
2563 | if test -n "$CC"; then |
2564 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2565 | else | |
2566 | ac_prog_rejected=no | |
2567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2568 | for as_dir in $PATH |
2569 | do | |
2570 | IFS=$as_save_IFS | |
2571 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2572 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2574 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2575 | ac_prog_rejected=yes | |
2576 | continue | |
2577 | fi | |
2578 | ac_cv_prog_CC="cc" | |
2579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2580 | break 2 |
2581 | fi | |
2582 | done | |
7083c021 | 2583 | done |
631ef239 | 2584 | IFS=$as_save_IFS |
212380e3 | 2585 | |
7083c021 AC |
2586 | if test $ac_prog_rejected = yes; then |
2587 | # We found a bogon in the path, so make sure we never use it. | |
2588 | set dummy $ac_cv_prog_CC | |
2589 | shift | |
2590 | if test $# != 0; then | |
2591 | # We chose a different compiler from the bogus one. | |
2592 | # However, it has the same basename, so the bogon will be chosen | |
2593 | # first if we set CC to just the basename; use the full file name. | |
2594 | shift | |
2595 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2596 | fi | |
212380e3 | 2597 | fi |
7083c021 AC |
2598 | fi |
2599 | fi | |
2600 | CC=$ac_cv_prog_CC | |
2601 | if test -n "$CC"; then | |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2603 | $as_echo "$CC" >&6; } | |
212380e3 | 2604 | else |
7083c021 AC |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2606 | $as_echo "no" >&6; } | |
212380e3 AC |
2607 | fi |
2608 | ||
2609 | ||
7083c021 AC |
2610 | fi |
2611 | if test -z "$CC"; then | |
2612 | if test -n "$ac_tool_prefix"; then | |
2613 | for ac_prog in cl.exe | |
2614 | do | |
2615 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2616 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2618 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2619 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2620 | $as_echo_n "(cached) " >&6 |
212380e3 | 2621 | else |
7083c021 AC |
2622 | if test -n "$CC"; then |
2623 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2624 | else |
2625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2626 | for as_dir in $PATH | |
2627 | do | |
2628 | IFS=$as_save_IFS | |
2629 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2630 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2632 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2634 | break 2 |
2635 | fi | |
2636 | done | |
7083c021 | 2637 | done |
631ef239 | 2638 | IFS=$as_save_IFS |
212380e3 AC |
2639 | |
2640 | fi | |
2641 | fi | |
7083c021 AC |
2642 | CC=$ac_cv_prog_CC |
2643 | if test -n "$CC"; then | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2645 | $as_echo "$CC" >&6; } | |
212380e3 | 2646 | else |
7083c021 AC |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2648 | $as_echo "no" >&6; } | |
212380e3 AC |
2649 | fi |
2650 | ||
631ef239 | 2651 | |
7083c021 AC |
2652 | test -n "$CC" && break |
2653 | done | |
212380e3 | 2654 | fi |
7083c021 AC |
2655 | if test -z "$CC"; then |
2656 | ac_ct_CC=$CC | |
2657 | for ac_prog in cl.exe | |
212380e3 AC |
2658 | do |
2659 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2660 | set dummy $ac_prog; ac_word=$2 | |
7083c021 AC |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2662 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 2663 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 2664 | $as_echo_n "(cached) " >&6 |
212380e3 | 2665 | else |
7083c021 AC |
2666 | if test -n "$ac_ct_CC"; then |
2667 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 AC |
2668 | else |
2669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2670 | for as_dir in $PATH | |
2671 | do | |
2672 | IFS=$as_save_IFS | |
2673 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2674 | for ac_exec_ext in '' $ac_executable_extensions; do |
631ef239 | 2675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7083c021 AC |
2676 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
212380e3 AC |
2678 | break 2 |
2679 | fi | |
2680 | done | |
7083c021 | 2681 | done |
631ef239 | 2682 | IFS=$as_save_IFS |
212380e3 AC |
2683 | |
2684 | fi | |
2685 | fi | |
7083c021 AC |
2686 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2687 | if test -n "$ac_ct_CC"; then | |
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2689 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 2690 | else |
7083c021 AC |
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2692 | $as_echo "no" >&6; } | |
212380e3 AC |
2693 | fi |
2694 | ||
631ef239 | 2695 | |
7083c021 | 2696 | test -n "$ac_ct_CC" && break |
212380e3 | 2697 | done |
212380e3 | 2698 | |
7083c021 AC |
2699 | if test "x$ac_ct_CC" = x; then |
2700 | CC="" | |
2701 | else | |
2702 | case $cross_compiling:$ac_tool_warned in | |
2703 | yes:) | |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2705 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2706 | ac_tool_warned=yes ;; | |
2707 | esac | |
2708 | CC=$ac_ct_CC | |
2709 | fi | |
2710 | fi | |
2711 | ||
2712 | fi | |
2713 | ||
2714 | ||
2715 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2716 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2717 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2718 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
2719 | |
2720 | # Provide some information about the compiler. | |
2721 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2722 | set X $ac_compile | |
2723 | ac_compiler=$2 | |
2724 | for ac_option in --version -v -V -qversion; do | |
2725 | { { ac_try="$ac_compiler $ac_option >&5" | |
2726 | case "(($ac_try" in | |
2727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2728 | *) ac_try_echo=$ac_try;; | |
2729 | esac | |
2730 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2731 | $as_echo "$ac_try_echo"; } >&5 | |
2732 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2733 | ac_status=$? | |
2734 | if test -s conftest.err; then | |
2735 | sed '10a\ | |
2736 | ... rest of stderr output deleted ... | |
2737 | 10q' conftest.err >conftest.er1 | |
2738 | cat conftest.er1 >&5 | |
7083c021 | 2739 | fi |
6fb6bd15 | 2740 | rm -f conftest.er1 conftest.err |
7083c021 AC |
2741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2742 | test $ac_status = 0; } | |
2743 | done | |
2744 | ||
2745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2746 | /* end confdefs.h. */ | |
6fb6bd15 | 2747 | |
212380e3 | 2748 | int |
7083c021 | 2749 | main () |
212380e3 | 2750 | { |
7083c021 AC |
2751 | |
2752 | ; | |
2753 | return 0; | |
212380e3 AC |
2754 | } |
2755 | _ACEOF | |
7083c021 | 2756 | ac_clean_files_save=$ac_clean_files |
6fb6bd15 | 2757 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
7083c021 AC |
2758 | # Try to create an executable without -o first, disregard a.out. |
2759 | # It will help us diagnose broken compilers, and finding out an intuition | |
2760 | # of exeext. | |
6fb6bd15 AC |
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2762 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
7083c021 AC |
2763 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2764 | ||
2765 | # The possible output files: | |
2766 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2767 | ||
2768 | ac_rmfiles= | |
2769 | for ac_file in $ac_files | |
2770 | do | |
2771 | case $ac_file in | |
2772 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2773 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2774 | esac | |
2775 | done | |
2776 | rm -f $ac_rmfiles | |
2777 | ||
2778 | if { { ac_try="$ac_link_default" | |
631ef239 AC |
2779 | case "(($ac_try" in |
2780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2781 | *) ac_try_echo=$ac_try;; | |
2782 | esac | |
7083c021 AC |
2783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2784 | $as_echo "$ac_try_echo"; } >&5 | |
2785 | (eval "$ac_link_default") 2>&5 | |
212380e3 | 2786 | ac_status=$? |
7083c021 AC |
2787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2788 | test $ac_status = 0; }; then : | |
2789 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2790 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2791 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2792 | # so that the user can short-circuit this test for compilers unknown to | |
2793 | # Autoconf. | |
2794 | for ac_file in $ac_files '' | |
2795 | do | |
2796 | test -f "$ac_file" || continue | |
2797 | case $ac_file in | |
2798 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2799 | ;; | |
2800 | [ab].out ) | |
2801 | # We found the default executable, but exeext='' is most | |
2802 | # certainly right. | |
2803 | break;; | |
2804 | *.* ) | |
2805 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2806 | then :; else | |
2807 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2808 | fi | |
2809 | # We set ac_cv_exeext here because the later test for it is not | |
2810 | # safe: cross compilers may not add the suffix if given an `-o' | |
2811 | # argument, so we may need to know it at that point already. | |
2812 | # Even if this section looks crufty: it has the advantage of | |
2813 | # actually working. | |
2814 | break;; | |
2815 | * ) | |
2816 | break;; | |
2817 | esac | |
2818 | done | |
2819 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
212380e3 | 2820 | |
212380e3 | 2821 | else |
7083c021 | 2822 | ac_file='' |
631ef239 | 2823 | fi |
7083c021 | 2824 | if test -z "$ac_file"; then : |
6fb6bd15 AC |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2826 | $as_echo "no" >&6; } | |
2827 | $as_echo "$as_me: failed program was:" >&5 | |
7083c021 AC |
2828 | sed 's/^/| /' conftest.$ac_ext >&5 |
2829 | ||
2830 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2831 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2832 | as_fn_error 77 "C compiler cannot create executables |
2833 | See \`config.log' for more details" "$LINENO" 5; } | |
6fb6bd15 AC |
2834 | else |
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2836 | $as_echo "yes" >&6; } | |
631ef239 | 2837 | fi |
6fb6bd15 AC |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2839 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2841 | $as_echo "$ac_file" >&6; } | |
7083c021 | 2842 | ac_exeext=$ac_cv_exeext |
631ef239 | 2843 | |
6fb6bd15 | 2844 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
7083c021 | 2845 | ac_clean_files=$ac_clean_files_save |
7083c021 AC |
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2847 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2848 | if { { ac_try="$ac_link" | |
2849 | case "(($ac_try" in | |
2850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2851 | *) ac_try_echo=$ac_try;; | |
2852 | esac | |
2853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2854 | $as_echo "$ac_try_echo"; } >&5 | |
2855 | (eval "$ac_link") 2>&5 | |
2856 | ac_status=$? | |
2857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2858 | test $ac_status = 0; }; then : | |
2859 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2860 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2861 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2862 | # `rm'. | |
2863 | for ac_file in conftest.exe conftest conftest.*; do | |
2864 | test -f "$ac_file" || continue | |
2865 | case $ac_file in | |
2866 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2867 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2868 | break;; | |
2869 | * ) break;; | |
2870 | esac | |
2871 | done | |
212380e3 | 2872 | else |
7083c021 AC |
2873 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2874 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2875 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2876 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 | 2877 | fi |
6fb6bd15 | 2878 | rm -f conftest conftest$ac_cv_exeext |
7083c021 AC |
2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2880 | $as_echo "$ac_cv_exeext" >&6; } | |
2881 | ||
2882 | rm -f conftest.$ac_ext | |
2883 | EXEEXT=$ac_cv_exeext | |
2884 | ac_exeext=$EXEEXT | |
6fb6bd15 AC |
2885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2886 | /* end confdefs.h. */ | |
2887 | #include <stdio.h> | |
2888 | int | |
2889 | main () | |
2890 | { | |
2891 | FILE *f = fopen ("conftest.out", "w"); | |
2892 | return ferror (f) || fclose (f) != 0; | |
2893 | ||
2894 | ; | |
2895 | return 0; | |
2896 | } | |
2897 | _ACEOF | |
2898 | ac_clean_files="$ac_clean_files conftest.out" | |
2899 | # Check that the compiler produces executables we can run. If not, either | |
2900 | # the compiler is broken, or we cross compile. | |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2902 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2903 | if test "$cross_compiling" != yes; then | |
2904 | { { ac_try="$ac_link" | |
2905 | case "(($ac_try" in | |
2906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2907 | *) ac_try_echo=$ac_try;; | |
2908 | esac | |
2909 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2910 | $as_echo "$ac_try_echo"; } >&5 | |
2911 | (eval "$ac_link") 2>&5 | |
2912 | ac_status=$? | |
2913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2914 | test $ac_status = 0; } | |
2915 | if { ac_try='./conftest$ac_cv_exeext' | |
2916 | { { case "(($ac_try" in | |
2917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2918 | *) ac_try_echo=$ac_try;; | |
2919 | esac | |
2920 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2921 | $as_echo "$ac_try_echo"; } >&5 | |
2922 | (eval "$ac_try") 2>&5 | |
2923 | ac_status=$? | |
2924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2925 | test $ac_status = 0; }; }; then | |
2926 | cross_compiling=no | |
2927 | else | |
2928 | if test "$cross_compiling" = maybe; then | |
2929 | cross_compiling=yes | |
2930 | else | |
2931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c | 2933 | as_fn_error $? "cannot run C compiled programs. |
6fb6bd15 | 2934 | If you meant to cross compile, use \`--host'. |
b6d0720c | 2935 | See \`config.log' for more details" "$LINENO" 5; } |
6fb6bd15 AC |
2936 | fi |
2937 | fi | |
2938 | fi | |
2939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2940 | $as_echo "$cross_compiling" >&6; } | |
2941 | ||
2942 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2943 | ac_clean_files=$ac_clean_files_save | |
7083c021 AC |
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2945 | $as_echo_n "checking for suffix of object files... " >&6; } | |
b6d0720c | 2946 | if ${ac_cv_objext+:} false; then : |
7083c021 AC |
2947 | $as_echo_n "(cached) " >&6 |
2948 | else | |
2949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2950 | /* end confdefs.h. */ | |
212380e3 | 2951 | |
7083c021 AC |
2952 | int |
2953 | main () | |
2954 | { | |
2955 | ||
2956 | ; | |
2957 | return 0; | |
2958 | } | |
212380e3 | 2959 | _ACEOF |
7083c021 AC |
2960 | rm -f conftest.o conftest.obj |
2961 | if { { ac_try="$ac_compile" | |
631ef239 AC |
2962 | case "(($ac_try" in |
2963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2964 | *) ac_try_echo=$ac_try;; | |
2965 | esac | |
7083c021 AC |
2966 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2967 | $as_echo "$ac_try_echo"; } >&5 | |
2968 | (eval "$ac_compile") 2>&5 | |
212380e3 | 2969 | ac_status=$? |
7083c021 AC |
2970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2971 | test $ac_status = 0; }; then : | |
2972 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2973 | test -f "$ac_file" || continue; | |
2974 | case $ac_file in | |
2975 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2976 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2977 | break;; | |
2978 | esac | |
2979 | done | |
212380e3 | 2980 | else |
7083c021 | 2981 | $as_echo "$as_me: failed program was:" >&5 |
212380e3 AC |
2982 | sed 's/^/| /' conftest.$ac_ext >&5 |
2983 | ||
7083c021 AC |
2984 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
2986 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2987 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
2988 | fi |
2989 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
212380e3 | 2990 | fi |
7083c021 AC |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2992 | $as_echo "$ac_cv_objext" >&6; } | |
2993 | OBJEXT=$ac_cv_objext | |
2994 | ac_objext=$OBJEXT | |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2996 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 2997 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 AC |
2998 | $as_echo_n "(cached) " >&6 |
2999 | else | |
3000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3001 | /* end confdefs.h. */ | |
212380e3 | 3002 | |
7083c021 AC |
3003 | int |
3004 | main () | |
3005 | { | |
3006 | #ifndef __GNUC__ | |
3007 | choke me | |
3008 | #endif | |
212380e3 | 3009 | |
7083c021 AC |
3010 | ; |
3011 | return 0; | |
3012 | } | |
3013 | _ACEOF | |
3014 | if ac_fn_c_try_compile "$LINENO"; then : | |
3015 | ac_compiler_gnu=yes | |
3016 | else | |
3017 | ac_compiler_gnu=no | |
212380e3 | 3018 | fi |
7083c021 AC |
3019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3020 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3021 | ||
3022 | fi | |
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3024 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3025 | if test $ac_compiler_gnu = yes; then | |
3026 | GCC=yes | |
3027 | else | |
3028 | GCC= | |
212380e3 | 3029 | fi |
7083c021 AC |
3030 | ac_test_CFLAGS=${CFLAGS+set} |
3031 | ac_save_CFLAGS=$CFLAGS | |
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3033 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 3034 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
3035 | $as_echo_n "(cached) " >&6 |
3036 | else | |
3037 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3038 | ac_c_werror_flag=yes | |
3039 | ac_cv_prog_cc_g=no | |
3040 | CFLAGS="-g" | |
3041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3042 | /* end confdefs.h. */ | |
212380e3 | 3043 | |
7083c021 AC |
3044 | int |
3045 | main () | |
3046 | { | |
631ef239 | 3047 | |
7083c021 AC |
3048 | ; |
3049 | return 0; | |
3050 | } | |
212380e3 | 3051 | _ACEOF |
7083c021 AC |
3052 | if ac_fn_c_try_compile "$LINENO"; then : |
3053 | ac_cv_prog_cc_g=yes | |
212380e3 | 3054 | else |
7083c021 AC |
3055 | CFLAGS="" |
3056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3057 | /* end confdefs.h. */ | |
212380e3 | 3058 | |
7083c021 AC |
3059 | int |
3060 | main () | |
3061 | { | |
631ef239 | 3062 | |
7083c021 AC |
3063 | ; |
3064 | return 0; | |
3065 | } | |
3066 | _ACEOF | |
3067 | if ac_fn_c_try_compile "$LINENO"; then : | |
631ef239 | 3068 | |
7083c021 AC |
3069 | else |
3070 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3071 | CFLAGS="-g" | |
3072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3073 | /* end confdefs.h. */ | |
212380e3 | 3074 | |
7083c021 AC |
3075 | int |
3076 | main () | |
3077 | { | |
212380e3 | 3078 | |
7083c021 AC |
3079 | ; |
3080 | return 0; | |
3081 | } | |
212380e3 | 3082 | _ACEOF |
7083c021 AC |
3083 | if ac_fn_c_try_compile "$LINENO"; then : |
3084 | ac_cv_prog_cc_g=yes | |
212380e3 | 3085 | fi |
7083c021 | 3086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3087 | fi |
7083c021 | 3088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3089 | fi |
7083c021 AC |
3090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3091 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 3092 | fi |
7083c021 AC |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3094 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3095 | if test "$ac_test_CFLAGS" = set; then | |
3096 | CFLAGS=$ac_save_CFLAGS | |
3097 | elif test $ac_cv_prog_cc_g = yes; then | |
3098 | if test "$GCC" = yes; then | |
3099 | CFLAGS="-g -O2" | |
3100 | else | |
3101 | CFLAGS="-g" | |
3102 | fi | |
212380e3 | 3103 | else |
7083c021 AC |
3104 | if test "$GCC" = yes; then |
3105 | CFLAGS="-O2" | |
3106 | else | |
3107 | CFLAGS= | |
3108 | fi | |
3109 | fi | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3111 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 3112 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
3113 | $as_echo_n "(cached) " >&6 |
3114 | else | |
3115 | ac_cv_prog_cc_c89=no | |
3116 | ac_save_CC=$CC | |
3117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3118 | /* end confdefs.h. */ |
212380e3 | 3119 | #include <stdarg.h> |
7083c021 AC |
3120 | #include <stdio.h> |
3121 | #include <sys/types.h> | |
3122 | #include <sys/stat.h> | |
3123 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3124 | struct buf { int x; }; | |
3125 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3126 | static char *e (p, i) | |
3127 | char **p; | |
3128 | int i; | |
3129 | { | |
3130 | return p[i]; | |
3131 | } | |
3132 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3133 | { | |
3134 | char *s; | |
3135 | va_list v; | |
3136 | va_start (v,p); | |
3137 | s = g (p, va_arg (v,int)); | |
3138 | va_end (v); | |
3139 | return s; | |
3140 | } | |
3141 | ||
3142 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3143 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3144 | These don't provoke an error unfortunately, instead are silently treated | |
3145 | as 'x'. The following induces an error, until -std is added to get | |
3146 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3147 | array size at least. It's necessary to write '\x00'==0 to get something | |
3148 | that's true only with -std. */ | |
3149 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3150 | ||
3151 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3152 | inside strings and character constants. */ | |
3153 | #define FOO(x) 'x' | |
3154 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
212380e3 | 3155 | |
7083c021 AC |
3156 | int test (int i, double x); |
3157 | struct s1 {int (*f) (int a);}; | |
3158 | struct s2 {int (*f) (double a);}; | |
3159 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3160 | int argc; | |
3161 | char **argv; | |
212380e3 AC |
3162 | int |
3163 | main () | |
3164 | { | |
7083c021 | 3165 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
3166 | ; |
3167 | return 0; | |
3168 | } | |
3169 | _ACEOF | |
7083c021 AC |
3170 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3171 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3172 | do | |
3173 | CC="$ac_save_CC $ac_arg" | |
3174 | if ac_fn_c_try_compile "$LINENO"; then : | |
3175 | ac_cv_prog_cc_c89=$ac_arg | |
3176 | fi | |
3177 | rm -f core conftest.err conftest.$ac_objext | |
3178 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3179 | done | |
3180 | rm -f conftest.$ac_ext | |
3181 | CC=$ac_save_CC | |
3182 | ||
3183 | fi | |
3184 | # AC_CACHE_VAL | |
3185 | case "x$ac_cv_prog_cc_c89" in | |
3186 | x) | |
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3188 | $as_echo "none needed" >&6; } ;; | |
3189 | xno) | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3191 | $as_echo "unsupported" >&6; } ;; | |
3192 | *) | |
3193 | CC="$CC $ac_cv_prog_cc_c89" | |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3195 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 3196 | esac |
7083c021 | 3197 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 3198 | |
212380e3 | 3199 | fi |
631ef239 | 3200 | |
7083c021 AC |
3201 | ac_ext=c |
3202 | ac_cpp='$CPP $CPPFLAGS' | |
3203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 | 3206 | |
212380e3 | 3207 | |
7083c021 AC |
3208 | ac_ext=c |
3209 | ac_cpp='$CPP $CPPFLAGS' | |
3210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3214 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3215 | # On Suns, sometimes $CPP names a directory. | |
3216 | if test -n "$CPP" && test -d "$CPP"; then | |
3217 | CPP= | |
3218 | fi | |
3219 | if test -z "$CPP"; then | |
b6d0720c | 3220 | if ${ac_cv_prog_CPP+:} false; then : |
7083c021 AC |
3221 | $as_echo_n "(cached) " >&6 |
3222 | else | |
3223 | # Double quotes because CPP needs to be expanded | |
3224 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3225 | do | |
3226 | ac_preproc_ok=false | |
3227 | for ac_c_preproc_warn_flag in '' yes | |
3228 | do | |
3229 | # Use a header file that comes with gcc, so configuring glibc | |
3230 | # with a fresh cross-compiler works. | |
3231 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3232 | # <limits.h> exists even on freestanding compilers. | |
3233 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3234 | # not just through cpp. "Syntax error" is here to catch this case. | |
3235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3236 | /* end confdefs.h. */ | |
3237 | #ifdef __STDC__ | |
3238 | # include <limits.h> | |
3239 | #else | |
3240 | # include <assert.h> | |
3241 | #endif | |
3242 | Syntax error | |
212380e3 | 3243 | _ACEOF |
7083c021 | 3244 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3245 | |
7083c021 AC |
3246 | else |
3247 | # Broken: fails on valid input. | |
3248 | continue | |
212380e3 | 3249 | fi |
b6d0720c | 3250 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3251 | |
7083c021 AC |
3252 | # OK, works on sane cases. Now check whether nonexistent headers |
3253 | # can be detected and how. | |
3254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3255 | /* end confdefs.h. */ |
7083c021 | 3256 | #include <ac_nonexistent.h> |
212380e3 | 3257 | _ACEOF |
7083c021 AC |
3258 | if ac_fn_c_try_cpp "$LINENO"; then : |
3259 | # Broken: success on invalid input. | |
3260 | continue | |
212380e3 | 3261 | else |
7083c021 AC |
3262 | # Passes both tests. |
3263 | ac_preproc_ok=: | |
3264 | break | |
212380e3 | 3265 | fi |
b6d0720c | 3266 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3267 | |
7083c021 AC |
3268 | done |
3269 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b6d0720c | 3270 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 AC |
3271 | if $ac_preproc_ok; then : |
3272 | break | |
212380e3 AC |
3273 | fi |
3274 | ||
7083c021 AC |
3275 | done |
3276 | ac_cv_prog_CPP=$CPP | |
3277 | ||
3278 | fi | |
3279 | CPP=$ac_cv_prog_CPP | |
212380e3 | 3280 | else |
7083c021 AC |
3281 | ac_cv_prog_CPP=$CPP |
3282 | fi | |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3284 | $as_echo "$CPP" >&6; } | |
3285 | ac_preproc_ok=false | |
3286 | for ac_c_preproc_warn_flag in '' yes | |
3287 | do | |
3288 | # Use a header file that comes with gcc, so configuring glibc | |
3289 | # with a fresh cross-compiler works. | |
3290 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3291 | # <limits.h> exists even on freestanding compilers. | |
3292 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3293 | # not just through cpp. "Syntax error" is here to catch this case. | |
3294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3295 | /* end confdefs.h. */ |
7083c021 AC |
3296 | #ifdef __STDC__ |
3297 | # include <limits.h> | |
212380e3 | 3298 | #else |
7083c021 | 3299 | # include <assert.h> |
212380e3 | 3300 | #endif |
7083c021 | 3301 | Syntax error |
212380e3 | 3302 | _ACEOF |
7083c021 | 3303 | if ac_fn_c_try_cpp "$LINENO"; then : |
212380e3 | 3304 | |
7083c021 AC |
3305 | else |
3306 | # Broken: fails on valid input. | |
3307 | continue | |
212380e3 | 3308 | fi |
b6d0720c | 3309 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 | 3310 | |
7083c021 AC |
3311 | # OK, works on sane cases. Now check whether nonexistent headers |
3312 | # can be detected and how. | |
3313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3314 | /* end confdefs.h. */ |
7083c021 | 3315 | #include <ac_nonexistent.h> |
212380e3 | 3316 | _ACEOF |
7083c021 AC |
3317 | if ac_fn_c_try_cpp "$LINENO"; then : |
3318 | # Broken: success on invalid input. | |
3319 | continue | |
212380e3 | 3320 | else |
7083c021 AC |
3321 | # Passes both tests. |
3322 | ac_preproc_ok=: | |
3323 | break | |
212380e3 | 3324 | fi |
b6d0720c | 3325 | rm -f conftest.err conftest.i conftest.$ac_ext |
212380e3 AC |
3326 | |
3327 | done | |
7083c021 | 3328 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
b6d0720c | 3329 | rm -f conftest.i conftest.err conftest.$ac_ext |
7083c021 | 3330 | if $ac_preproc_ok; then : |
212380e3 | 3331 | |
7083c021 AC |
3332 | else |
3333 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
3335 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3336 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 | 3337 | fi |
212380e3 | 3338 | |
7083c021 AC |
3339 | ac_ext=c |
3340 | ac_cpp='$CPP $CPPFLAGS' | |
3341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 AC |
3344 | |
3345 | ||
7083c021 AC |
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3347 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
b6d0720c | 3348 | if ${ac_cv_path_GREP+:} false; then : |
7083c021 | 3349 | $as_echo_n "(cached) " >&6 |
212380e3 | 3350 | else |
7083c021 AC |
3351 | if test -z "$GREP"; then |
3352 | ac_path_GREP_found=false | |
3353 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3355 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3356 | do | |
3357 | IFS=$as_save_IFS | |
3358 | test -z "$as_dir" && as_dir=. | |
3359 | for ac_prog in grep ggrep; do | |
3360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3361 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3362 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3363 | # Check for GNU ac_path_GREP and select it if it is found. | |
3364 | # Check for GNU $ac_path_GREP | |
3365 | case `"$ac_path_GREP" --version 2>&1` in | |
3366 | *GNU*) | |
3367 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3368 | *) | |
3369 | ac_count=0 | |
3370 | $as_echo_n 0123456789 >"conftest.in" | |
3371 | while : | |
3372 | do | |
3373 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3374 | mv "conftest.tmp" "conftest.in" | |
3375 | cp "conftest.in" "conftest.nl" | |
3376 | $as_echo 'GREP' >> "conftest.nl" | |
3377 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3378 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3379 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3380 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3381 | # Best one so far, save it but keep looking for a better one | |
3382 | ac_cv_path_GREP="$ac_path_GREP" | |
3383 | ac_path_GREP_max=$ac_count | |
3384 | fi | |
3385 | # 10*(2^10) chars as input seems more than enough | |
3386 | test $ac_count -gt 10 && break | |
3387 | done | |
3388 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3389 | esac |
7083c021 AC |
3390 | |
3391 | $ac_path_GREP_found && break 3 | |
3392 | done | |
3393 | done | |
3394 | done | |
3395 | IFS=$as_save_IFS | |
3396 | if test -z "$ac_cv_path_GREP"; then | |
b6d0720c | 3397 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 | 3398 | fi |
212380e3 | 3399 | else |
7083c021 AC |
3400 | ac_cv_path_GREP=$GREP |
3401 | fi | |
212380e3 | 3402 | |
212380e3 | 3403 | fi |
7083c021 AC |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3405 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3406 | GREP="$ac_cv_path_GREP" | |
631ef239 | 3407 | |
212380e3 | 3408 | |
7083c021 AC |
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3410 | $as_echo_n "checking for egrep... " >&6; } | |
b6d0720c | 3411 | if ${ac_cv_path_EGREP+:} false; then : |
7083c021 AC |
3412 | $as_echo_n "(cached) " >&6 |
3413 | else | |
3414 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3415 | then ac_cv_path_EGREP="$GREP -E" | |
3416 | else | |
3417 | if test -z "$EGREP"; then | |
3418 | ac_path_EGREP_found=false | |
3419 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3421 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3422 | do | |
3423 | IFS=$as_save_IFS | |
3424 | test -z "$as_dir" && as_dir=. | |
3425 | for ac_prog in egrep; do | |
3426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3427 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3428 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3429 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3430 | # Check for GNU $ac_path_EGREP | |
3431 | case `"$ac_path_EGREP" --version 2>&1` in | |
3432 | *GNU*) | |
3433 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3434 | *) | |
3435 | ac_count=0 | |
3436 | $as_echo_n 0123456789 >"conftest.in" | |
3437 | while : | |
3438 | do | |
3439 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3440 | mv "conftest.tmp" "conftest.in" | |
3441 | cp "conftest.in" "conftest.nl" | |
3442 | $as_echo 'EGREP' >> "conftest.nl" | |
3443 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3444 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3445 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3446 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3447 | # Best one so far, save it but keep looking for a better one | |
3448 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3449 | ac_path_EGREP_max=$ac_count | |
3450 | fi | |
3451 | # 10*(2^10) chars as input seems more than enough | |
3452 | test $ac_count -gt 10 && break | |
3453 | done | |
3454 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
631ef239 | 3455 | esac |
212380e3 | 3456 | |
7083c021 AC |
3457 | $ac_path_EGREP_found && break 3 |
3458 | done | |
3459 | done | |
3460 | done | |
3461 | IFS=$as_save_IFS | |
3462 | if test -z "$ac_cv_path_EGREP"; then | |
b6d0720c | 3463 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
7083c021 | 3464 | fi |
212380e3 | 3465 | else |
7083c021 | 3466 | ac_cv_path_EGREP=$EGREP |
212380e3 | 3467 | fi |
212380e3 | 3468 | |
7083c021 | 3469 | fi |
212380e3 | 3470 | fi |
7083c021 AC |
3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3472 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3473 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3474 | |
3475 | ||
7083c021 AC |
3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3477 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 3478 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 3479 | $as_echo_n "(cached) " >&6 |
212380e3 | 3480 | else |
7083c021 | 3481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3482 | /* end confdefs.h. */ |
7083c021 AC |
3483 | #include <stdlib.h> |
3484 | #include <stdarg.h> | |
3485 | #include <string.h> | |
3486 | #include <float.h> | |
212380e3 AC |
3487 | |
3488 | int | |
3489 | main () | |
3490 | { | |
212380e3 AC |
3491 | |
3492 | ; | |
3493 | return 0; | |
3494 | } | |
3495 | _ACEOF | |
7083c021 AC |
3496 | if ac_fn_c_try_compile "$LINENO"; then : |
3497 | ac_cv_header_stdc=yes | |
212380e3 | 3498 | else |
7083c021 | 3499 | ac_cv_header_stdc=no |
212380e3 | 3500 | fi |
631ef239 | 3501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3502 | |
7083c021 AC |
3503 | if test $ac_cv_header_stdc = yes; then |
3504 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3506 | /* end confdefs.h. */ | |
3507 | #include <string.h> | |
212380e3 | 3508 | |
7083c021 AC |
3509 | _ACEOF |
3510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3511 | $EGREP "memchr" >/dev/null 2>&1; then : | |
212380e3 | 3512 | |
212380e3 | 3513 | else |
7083c021 AC |
3514 | ac_cv_header_stdc=no |
3515 | fi | |
3516 | rm -f conftest* | |
212380e3 | 3517 | |
7083c021 | 3518 | fi |
212380e3 | 3519 | |
7083c021 AC |
3520 | if test $ac_cv_header_stdc = yes; then |
3521 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 3523 | /* end confdefs.h. */ |
7083c021 | 3524 | #include <stdlib.h> |
212380e3 | 3525 | |
212380e3 | 3526 | _ACEOF |
7083c021 AC |
3527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3528 | $EGREP "free" >/dev/null 2>&1; then : | |
3529 | ||
212380e3 | 3530 | else |
7083c021 AC |
3531 | ac_cv_header_stdc=no |
3532 | fi | |
3533 | rm -f conftest* | |
212380e3 | 3534 | |
212380e3 | 3535 | fi |
631ef239 | 3536 | |
7083c021 AC |
3537 | if test $ac_cv_header_stdc = yes; then |
3538 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3539 | if test "$cross_compiling" = yes; then : | |
3540 | : | |
212380e3 | 3541 | else |
7083c021 | 3542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3543 | /* end confdefs.h. */ |
7083c021 AC |
3544 | #include <ctype.h> |
3545 | #include <stdlib.h> | |
3546 | #if ((' ' & 0x0FF) == 0x020) | |
3547 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3548 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3549 | #else | |
3550 | # define ISLOWER(c) \ | |
3551 | (('a' <= (c) && (c) <= 'i') \ | |
3552 | || ('j' <= (c) && (c) <= 'r') \ | |
3553 | || ('s' <= (c) && (c) <= 'z')) | |
3554 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3555 | #endif | |
3556 | ||
3557 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
3558 | int |
3559 | main () | |
3560 | { | |
7083c021 AC |
3561 | int i; |
3562 | for (i = 0; i < 256; i++) | |
3563 | if (XOR (islower (i), ISLOWER (i)) | |
3564 | || toupper (i) != TOUPPER (i)) | |
3565 | return 2; | |
212380e3 AC |
3566 | return 0; |
3567 | } | |
3568 | _ACEOF | |
7083c021 AC |
3569 | if ac_fn_c_try_run "$LINENO"; then : |
3570 | ||
3571 | else | |
3572 | ac_cv_header_stdc=no | |
212380e3 | 3573 | fi |
7083c021 AC |
3574 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3575 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 3576 | fi |
212380e3 | 3577 | |
7083c021 AC |
3578 | fi |
3579 | fi | |
3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3581 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3582 | if test $ac_cv_header_stdc = yes; then | |
3583 | ||
3584 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
631ef239 | 3585 | |
212380e3 | 3586 | fi |
631ef239 | 3587 | |
7083c021 AC |
3588 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3589 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3590 | inttypes.h stdint.h unistd.h | |
3591 | do : | |
3592 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3593 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3594 | " | |
b6d0720c | 3595 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
3596 | cat >>confdefs.h <<_ACEOF |
3597 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 3598 | _ACEOF |
631ef239 | 3599 | |
7083c021 | 3600 | fi |
631ef239 | 3601 | |
7083c021 AC |
3602 | done |
3603 | ||
3604 | ||
3605 | ||
3606 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
b6d0720c | 3607 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7083c021 | 3608 | MINIX=yes |
212380e3 | 3609 | else |
7083c021 AC |
3610 | MINIX= |
3611 | fi | |
3612 | ||
3613 | ||
3614 | if test "$MINIX" = yes; then | |
3615 | ||
3616 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3617 | ||
212380e3 | 3618 | |
7083c021 | 3619 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
631ef239 AC |
3620 | |
3621 | ||
7083c021 | 3622 | $as_echo "#define _MINIX 1" >>confdefs.h |
631ef239 | 3623 | |
7083c021 | 3624 | fi |
212380e3 | 3625 | |
212380e3 | 3626 | |
7083c021 AC |
3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3628 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
b6d0720c | 3629 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
7083c021 | 3630 | $as_echo_n "(cached) " >&6 |
212380e3 | 3631 | else |
7083c021 | 3632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 3633 | /* end confdefs.h. */ |
7083c021 AC |
3634 | |
3635 | # define __EXTENSIONS__ 1 | |
3636 | $ac_includes_default | |
212380e3 AC |
3637 | int |
3638 | main () | |
3639 | { | |
7083c021 | 3640 | |
212380e3 AC |
3641 | ; |
3642 | return 0; | |
3643 | } | |
3644 | _ACEOF | |
7083c021 AC |
3645 | if ac_fn_c_try_compile "$LINENO"; then : |
3646 | ac_cv_safe_to_define___extensions__=yes | |
212380e3 | 3647 | else |
7083c021 | 3648 | ac_cv_safe_to_define___extensions__=no |
212380e3 | 3649 | fi |
631ef239 | 3650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 3651 | fi |
7083c021 AC |
3652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3653 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3654 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3655 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
212380e3 | 3656 | |
7083c021 | 3657 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
212380e3 | 3658 | |
7083c021 AC |
3659 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3660 | ||
3661 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3662 | ||
3663 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
212380e3 | 3664 | |
7083c021 AC |
3665 | |
3666 | ||
3667 | ||
3668 | OLD_CFLAGS="$CFLAGS" | |
3669 | ac_ext=c | |
3670 | ac_cpp='$CPP $CPPFLAGS' | |
3671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3674 | if test -n "$ac_tool_prefix"; then | |
3675 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3676 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3678 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3679 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3680 | $as_echo_n "(cached) " >&6 |
212380e3 | 3681 | else |
7083c021 AC |
3682 | if test -n "$CC"; then |
3683 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3684 | else |
7083c021 AC |
3685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3686 | for as_dir in $PATH | |
3687 | do | |
3688 | IFS=$as_save_IFS | |
3689 | test -z "$as_dir" && as_dir=. | |
3690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3692 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3694 | break 2 | |
3695 | fi | |
3696 | done | |
3697 | done | |
3698 | IFS=$as_save_IFS | |
212380e3 | 3699 | |
212380e3 | 3700 | fi |
212380e3 | 3701 | fi |
7083c021 AC |
3702 | CC=$ac_cv_prog_CC |
3703 | if test -n "$CC"; then | |
3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3705 | $as_echo "$CC" >&6; } | |
212380e3 | 3706 | else |
7083c021 AC |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3708 | $as_echo "no" >&6; } | |
3709 | fi | |
212380e3 | 3710 | |
212380e3 AC |
3711 | |
3712 | fi | |
7083c021 AC |
3713 | if test -z "$ac_cv_prog_CC"; then |
3714 | ac_ct_CC=$CC | |
3715 | # Extract the first word of "gcc", so it can be a program name with args. | |
3716 | set dummy gcc; ac_word=$2 | |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3718 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3719 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 3720 | $as_echo_n "(cached) " >&6 |
212380e3 | 3721 | else |
7083c021 AC |
3722 | if test -n "$ac_ct_CC"; then |
3723 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
212380e3 | 3724 | else |
7083c021 AC |
3725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3726 | for as_dir in $PATH | |
3727 | do | |
3728 | IFS=$as_save_IFS | |
3729 | test -z "$as_dir" && as_dir=. | |
3730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3732 | ac_cv_prog_ac_ct_CC="gcc" | |
3733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3734 | break 2 | |
3735 | fi | |
3736 | done | |
3737 | done | |
3738 | IFS=$as_save_IFS | |
212380e3 | 3739 | |
212380e3 | 3740 | fi |
212380e3 | 3741 | fi |
7083c021 AC |
3742 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3743 | if test -n "$ac_ct_CC"; then | |
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3745 | $as_echo "$ac_ct_CC" >&6; } | |
212380e3 | 3746 | else |
7083c021 AC |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3748 | $as_echo "no" >&6; } | |
3749 | fi | |
212380e3 | 3750 | |
7083c021 AC |
3751 | if test "x$ac_ct_CC" = x; then |
3752 | CC="" | |
3753 | else | |
3754 | case $cross_compiling:$ac_tool_warned in | |
3755 | yes:) | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3758 | ac_tool_warned=yes ;; | |
631ef239 | 3759 | esac |
7083c021 AC |
3760 | CC=$ac_ct_CC |
3761 | fi | |
212380e3 | 3762 | else |
7083c021 | 3763 | CC="$ac_cv_prog_CC" |
212380e3 | 3764 | fi |
631ef239 | 3765 | |
7083c021 AC |
3766 | if test -z "$CC"; then |
3767 | if test -n "$ac_tool_prefix"; then | |
3768 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3769 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3771 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3772 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3773 | $as_echo_n "(cached) " >&6 |
212380e3 | 3774 | else |
7083c021 AC |
3775 | if test -n "$CC"; then |
3776 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 | 3777 | else |
7083c021 AC |
3778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3779 | for as_dir in $PATH | |
3780 | do | |
3781 | IFS=$as_save_IFS | |
3782 | test -z "$as_dir" && as_dir=. | |
3783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3785 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3787 | break 2 | |
3788 | fi | |
3789 | done | |
3790 | done | |
3791 | IFS=$as_save_IFS | |
212380e3 | 3792 | |
212380e3 | 3793 | fi |
7083c021 AC |
3794 | fi |
3795 | CC=$ac_cv_prog_CC | |
3796 | if test -n "$CC"; then | |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3798 | $as_echo "$CC" >&6; } | |
212380e3 | 3799 | else |
7083c021 AC |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3801 | $as_echo "no" >&6; } | |
3802 | fi | |
3803 | ||
212380e3 | 3804 | |
7083c021 | 3805 | fi |
212380e3 | 3806 | fi |
7083c021 AC |
3807 | if test -z "$CC"; then |
3808 | # Extract the first word of "cc", so it can be a program name with args. | |
3809 | set dummy cc; ac_word=$2 | |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3811 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3812 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 AC |
3813 | $as_echo_n "(cached) " >&6 |
3814 | else | |
3815 | if test -n "$CC"; then | |
3816 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3817 | else | |
3818 | ac_prog_rejected=no | |
3819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3820 | for as_dir in $PATH | |
3821 | do | |
3822 | IFS=$as_save_IFS | |
3823 | test -z "$as_dir" && as_dir=. | |
3824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3826 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3827 | ac_prog_rejected=yes | |
3828 | continue | |
3829 | fi | |
3830 | ac_cv_prog_CC="cc" | |
3831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3832 | break 2 | |
3833 | fi | |
3834 | done | |
3835 | done | |
3836 | IFS=$as_save_IFS | |
631ef239 | 3837 | |
7083c021 AC |
3838 | if test $ac_prog_rejected = yes; then |
3839 | # We found a bogon in the path, so make sure we never use it. | |
3840 | set dummy $ac_cv_prog_CC | |
3841 | shift | |
3842 | if test $# != 0; then | |
3843 | # We chose a different compiler from the bogus one. | |
3844 | # However, it has the same basename, so the bogon will be chosen | |
3845 | # first if we set CC to just the basename; use the full file name. | |
3846 | shift | |
3847 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3848 | fi | |
3849 | fi | |
3850 | fi | |
3851 | fi | |
3852 | CC=$ac_cv_prog_CC | |
3853 | if test -n "$CC"; then | |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3855 | $as_echo "$CC" >&6; } | |
3856 | else | |
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3858 | $as_echo "no" >&6; } | |
212380e3 | 3859 | fi |
631ef239 | 3860 | |
212380e3 | 3861 | |
7083c021 AC |
3862 | fi |
3863 | if test -z "$CC"; then | |
3864 | if test -n "$ac_tool_prefix"; then | |
3865 | for ac_prog in cl.exe | |
3866 | do | |
3867 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3868 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3870 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3871 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 3872 | $as_echo_n "(cached) " >&6 |
212380e3 | 3873 | else |
7083c021 AC |
3874 | if test -n "$CC"; then |
3875 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3876 | else | |
3877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3878 | for as_dir in $PATH | |
3879 | do | |
3880 | IFS=$as_save_IFS | |
3881 | test -z "$as_dir" && as_dir=. | |
3882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3884 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3886 | break 2 | |
3887 | fi | |
3888 | done | |
3889 | done | |
3890 | IFS=$as_save_IFS | |
212380e3 | 3891 | |
212380e3 | 3892 | fi |
7083c021 AC |
3893 | fi |
3894 | CC=$ac_cv_prog_CC | |
3895 | if test -n "$CC"; then | |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3897 | $as_echo "$CC" >&6; } | |
212380e3 | 3898 | else |
7083c021 AC |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3900 | $as_echo "no" >&6; } | |
3901 | fi | |
212380e3 | 3902 | |
212380e3 | 3903 | |
7083c021 AC |
3904 | test -n "$CC" && break |
3905 | done | |
3906 | fi | |
3907 | if test -z "$CC"; then | |
3908 | ac_ct_CC=$CC | |
3909 | for ac_prog in cl.exe | |
3910 | do | |
3911 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3912 | set dummy $ac_prog; ac_word=$2 | |
3913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3914 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 3915 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
7083c021 | 3916 | $as_echo_n "(cached) " >&6 |
212380e3 | 3917 | else |
7083c021 AC |
3918 | if test -n "$ac_ct_CC"; then |
3919 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3920 | else | |
3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3922 | for as_dir in $PATH | |
3923 | do | |
3924 | IFS=$as_save_IFS | |
3925 | test -z "$as_dir" && as_dir=. | |
3926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3928 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3930 | break 2 | |
3931 | fi | |
3932 | done | |
3933 | done | |
3934 | IFS=$as_save_IFS | |
212380e3 | 3935 | |
212380e3 AC |
3936 | fi |
3937 | fi | |
7083c021 AC |
3938 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3939 | if test -n "$ac_ct_CC"; then | |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3941 | $as_echo "$ac_ct_CC" >&6; } | |
3942 | else | |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3944 | $as_echo "no" >&6; } | |
212380e3 | 3945 | fi |
631ef239 AC |
3946 | |
3947 | ||
7083c021 AC |
3948 | test -n "$ac_ct_CC" && break |
3949 | done | |
631ef239 | 3950 | |
7083c021 AC |
3951 | if test "x$ac_ct_CC" = x; then |
3952 | CC="" | |
3953 | else | |
3954 | case $cross_compiling:$ac_tool_warned in | |
3955 | yes:) | |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3957 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3958 | ac_tool_warned=yes ;; | |
3959 | esac | |
3960 | CC=$ac_ct_CC | |
3961 | fi | |
3962 | fi | |
212380e3 | 3963 | |
7083c021 | 3964 | fi |
212380e3 | 3965 | |
7083c021 AC |
3966 | |
3967 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3968 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
3969 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3970 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
3971 | |
3972 | # Provide some information about the compiler. | |
3973 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3974 | set X $ac_compile | |
3975 | ac_compiler=$2 | |
3976 | for ac_option in --version -v -V -qversion; do | |
3977 | { { ac_try="$ac_compiler $ac_option >&5" | |
631ef239 AC |
3978 | case "(($ac_try" in |
3979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3980 | *) ac_try_echo=$ac_try;; | |
3981 | esac | |
7083c021 AC |
3982 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3983 | $as_echo "$ac_try_echo"; } >&5 | |
3984 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
212380e3 | 3985 | ac_status=$? |
7083c021 AC |
3986 | if test -s conftest.err; then |
3987 | sed '10a\ | |
3988 | ... rest of stderr output deleted ... | |
3989 | 10q' conftest.err >conftest.er1 | |
3990 | cat conftest.er1 >&5 | |
7083c021 | 3991 | fi |
6fb6bd15 | 3992 | rm -f conftest.er1 conftest.err |
7083c021 AC |
3993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3994 | test $ac_status = 0; } | |
3995 | done | |
212380e3 | 3996 | |
7083c021 AC |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3998 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
b6d0720c | 3999 | if ${ac_cv_c_compiler_gnu+:} false; then : |
7083c021 | 4000 | $as_echo_n "(cached) " >&6 |
212380e3 | 4001 | else |
7083c021 | 4002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 4003 | /* end confdefs.h. */ |
7083c021 | 4004 | |
212380e3 AC |
4005 | int |
4006 | main () | |
4007 | { | |
7083c021 AC |
4008 | #ifndef __GNUC__ |
4009 | choke me | |
4010 | #endif | |
212380e3 AC |
4011 | |
4012 | ; | |
4013 | return 0; | |
4014 | } | |
4015 | _ACEOF | |
7083c021 AC |
4016 | if ac_fn_c_try_compile "$LINENO"; then : |
4017 | ac_compiler_gnu=yes | |
4018 | else | |
4019 | ac_compiler_gnu=no | |
4020 | fi | |
4021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4022 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4023 | ||
4024 | fi | |
4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4026 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4027 | if test $ac_compiler_gnu = yes; then | |
4028 | GCC=yes | |
4029 | else | |
4030 | GCC= | |
4031 | fi | |
4032 | ac_test_CFLAGS=${CFLAGS+set} | |
4033 | ac_save_CFLAGS=$CFLAGS | |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4035 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
b6d0720c | 4036 | if ${ac_cv_prog_cc_g+:} false; then : |
7083c021 AC |
4037 | $as_echo_n "(cached) " >&6 |
4038 | else | |
4039 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4040 | ac_c_werror_flag=yes | |
4041 | ac_cv_prog_cc_g=no | |
4042 | CFLAGS="-g" | |
4043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4044 | /* end confdefs.h. */ |
7083c021 | 4045 | |
212380e3 AC |
4046 | int |
4047 | main () | |
4048 | { | |
212380e3 AC |
4049 | |
4050 | ; | |
4051 | return 0; | |
4052 | } | |
4053 | _ACEOF | |
7083c021 AC |
4054 | if ac_fn_c_try_compile "$LINENO"; then : |
4055 | ac_cv_prog_cc_g=yes | |
212380e3 | 4056 | else |
7083c021 AC |
4057 | CFLAGS="" |
4058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4059 | /* end confdefs.h. */ |
7083c021 | 4060 | |
212380e3 AC |
4061 | int |
4062 | main () | |
4063 | { | |
212380e3 AC |
4064 | |
4065 | ; | |
4066 | return 0; | |
4067 | } | |
4068 | _ACEOF | |
7083c021 AC |
4069 | if ac_fn_c_try_compile "$LINENO"; then : |
4070 | ||
4071 | else | |
4072 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4073 | CFLAGS="-g" | |
4074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4075 | /* end confdefs.h. */ |
7083c021 | 4076 | |
212380e3 AC |
4077 | int |
4078 | main () | |
4079 | { | |
212380e3 AC |
4080 | |
4081 | ; | |
4082 | return 0; | |
4083 | } | |
4084 | _ACEOF | |
7083c021 AC |
4085 | if ac_fn_c_try_compile "$LINENO"; then : |
4086 | ac_cv_prog_cc_g=yes | |
212380e3 | 4087 | fi |
631ef239 | 4088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4089 | fi |
631ef239 | 4090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4091 | fi |
631ef239 | 4092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
4093 | ac_c_werror_flag=$ac_save_c_werror_flag |
4094 | fi | |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4096 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4097 | if test "$ac_test_CFLAGS" = set; then | |
4098 | CFLAGS=$ac_save_CFLAGS | |
4099 | elif test $ac_cv_prog_cc_g = yes; then | |
4100 | if test "$GCC" = yes; then | |
4101 | CFLAGS="-g -O2" | |
4102 | else | |
4103 | CFLAGS="-g" | |
4104 | fi | |
4105 | else | |
4106 | if test "$GCC" = yes; then | |
4107 | CFLAGS="-O2" | |
4108 | else | |
4109 | CFLAGS= | |
4110 | fi | |
4111 | fi | |
4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4113 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
b6d0720c | 4114 | if ${ac_cv_prog_cc_c89+:} false; then : |
7083c021 AC |
4115 | $as_echo_n "(cached) " >&6 |
4116 | else | |
4117 | ac_cv_prog_cc_c89=no | |
4118 | ac_save_CC=$CC | |
4119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4120 | /* end confdefs.h. */ |
7083c021 AC |
4121 | #include <stdarg.h> |
4122 | #include <stdio.h> | |
4123 | #include <sys/types.h> | |
4124 | #include <sys/stat.h> | |
4125 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4126 | struct buf { int x; }; | |
4127 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4128 | static char *e (p, i) | |
4129 | char **p; | |
4130 | int i; | |
4131 | { | |
4132 | return p[i]; | |
4133 | } | |
4134 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4135 | { | |
4136 | char *s; | |
4137 | va_list v; | |
4138 | va_start (v,p); | |
4139 | s = g (p, va_arg (v,int)); | |
4140 | va_end (v); | |
4141 | return s; | |
4142 | } | |
4143 | ||
4144 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4145 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4146 | These don't provoke an error unfortunately, instead are silently treated | |
4147 | as 'x'. The following induces an error, until -std is added to get | |
4148 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4149 | array size at least. It's necessary to write '\x00'==0 to get something | |
4150 | that's true only with -std. */ | |
4151 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4152 | ||
4153 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4154 | inside strings and character constants. */ | |
4155 | #define FOO(x) 'x' | |
4156 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4157 | ||
4158 | int test (int i, double x); | |
4159 | struct s1 {int (*f) (int a);}; | |
4160 | struct s2 {int (*f) (double a);}; | |
4161 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4162 | int argc; | |
4163 | char **argv; | |
212380e3 AC |
4164 | int |
4165 | main () | |
4166 | { | |
7083c021 | 4167 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
212380e3 AC |
4168 | ; |
4169 | return 0; | |
4170 | } | |
4171 | _ACEOF | |
7083c021 AC |
4172 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4173 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4174 | do | |
4175 | CC="$ac_save_CC $ac_arg" | |
4176 | if ac_fn_c_try_compile "$LINENO"; then : | |
4177 | ac_cv_prog_cc_c89=$ac_arg | |
4178 | fi | |
4179 | rm -f core conftest.err conftest.$ac_objext | |
4180 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4181 | done | |
4182 | rm -f conftest.$ac_ext | |
4183 | CC=$ac_save_CC | |
4184 | ||
4185 | fi | |
4186 | # AC_CACHE_VAL | |
4187 | case "x$ac_cv_prog_cc_c89" in | |
4188 | x) | |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4190 | $as_echo "none needed" >&6; } ;; | |
4191 | xno) | |
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4193 | $as_echo "unsupported" >&6; } ;; | |
4194 | *) | |
4195 | CC="$CC $ac_cv_prog_cc_c89" | |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4197 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
631ef239 | 4198 | esac |
7083c021 | 4199 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
212380e3 | 4200 | |
212380e3 | 4201 | fi |
631ef239 | 4202 | |
7083c021 AC |
4203 | ac_ext=c |
4204 | ac_cpp='$CPP $CPPFLAGS' | |
4205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4208 | ||
4209 | ac_ext=c | |
4210 | ac_cpp='$CPP $CPPFLAGS' | |
4211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4214 | ||
4215 | ||
4216 | CFLAGS="$OLD_CFLAGS" | |
4217 | ||
4218 | ac_aux_dir= | |
4219 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
b6d0720c AC |
4220 | if test -f "$ac_dir/install-sh"; then |
4221 | ac_aux_dir=$ac_dir | |
4222 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4223 | break | |
4224 | elif test -f "$ac_dir/install.sh"; then | |
4225 | ac_aux_dir=$ac_dir | |
4226 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4227 | break | |
4228 | elif test -f "$ac_dir/shtool"; then | |
4229 | ac_aux_dir=$ac_dir | |
4230 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4231 | break | |
4232 | fi | |
212380e3 | 4233 | done |
7083c021 | 4234 | if test -z "$ac_aux_dir"; then |
b6d0720c | 4235 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
7083c021 | 4236 | fi |
212380e3 | 4237 | |
7083c021 AC |
4238 | # These three variables are undocumented and unsupported, |
4239 | # and are intended to be withdrawn in a future Autoconf release. | |
4240 | # They can cause serious problems if a builder's source tree is in a directory | |
4241 | # whose full name contains unusual characters. | |
4242 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4243 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4244 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
212380e3 | 4245 | |
7083c021 AC |
4246 | |
4247 | ||
4248 | ||
4249 | subdirs="$subdirs libratbox" | |
4250 | ||
4251 | ||
4252 | ||
4253 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
4254 | ||
4255 | SGS=no | |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5 | |
4257 | $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; } | |
4258 | case `$CC -version 2>&1` in | |
4259 | *TenDRA*) | |
4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5 | |
4261 | $as_echo "yes, TenDRA" >&6; } | |
4262 | IRC_CFLAGS="" | |
4263 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
4264 | SGS=yes | |
4265 | TenDRA=yes | |
4266 | ;; | |
4267 | *MIPSpro*) | |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5 | |
4269 | $as_echo "yes, MIPSpro" >&6; } | |
4270 | MIPSpro=yes | |
4271 | SGS=yes | |
4272 | ;; | |
4273 | *) | |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4275 | $as_echo "no" >&6; } | |
4276 | TenDRA=no | |
4277 | MIPSpro=no | |
4278 | ;; | |
631ef239 | 4279 | esac |
7083c021 AC |
4280 | |
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 | |
4282 | $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; } | |
4283 | case `$CC -V 2>&1` in | |
4284 | *Sun*WorkShop* | *Forte*Developer*) | |
4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5 | |
4286 | $as_echo "Sun Workshop/Forte" >&6; } | |
4287 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" | |
4288 | SunWorkShop=yes | |
4289 | SGS=yes | |
4290 | ;; | |
4291 | *Tru64*) | |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5 | |
4293 | $as_echo "Tru64 cc" >&6; } | |
4294 | IRC_CFLAGS="-O2" | |
4295 | CPPFLAGS="-I/usr/local/include" | |
4296 | Tru=yes | |
4297 | ;; | |
4298 | *HP*ANSI*) | |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5 | |
4300 | $as_echo "HPUX cc" >&6; } | |
4301 | HPUX=yes | |
4302 | IRC_CFLAGS="+e" | |
4303 | ;; | |
4304 | *) | |
4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4306 | $as_echo "no" >&6; } | |
4307 | ;; | |
631ef239 | 4308 | esac |
212380e3 | 4309 | |
212380e3 | 4310 | fi |
631ef239 | 4311 | |
7083c021 AC |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5 |
4313 | $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; } | |
4314 | OSNAME=`uname -s` | |
4315 | case "$OSNAME" in | |
4316 | HP-UX*) | |
631ef239 | 4317 | |
7083c021 AC |
4318 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5 | |
4320 | $as_echo "assuming old HPUX with its own cc" >&6; } | |
4321 | IRC_CFLAGS="$IRC_CFLAGS +e" | |
4322 | HPUX=yes | |
4323 | else | |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5 | |
4325 | $as_echo "already using newer HPUX" >&6; } | |
4326 | fi | |
4327 | ;; | |
4328 | SunOS*) | |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5 | |
4330 | $as_echo "SunOS or Solaris" >&6; } | |
212380e3 | 4331 | |
7083c021 | 4332 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
212380e3 | 4333 | |
7083c021 AC |
4334 | SUN=yes |
4335 | ;; | |
4336 | AIX*) | |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5 | |
4338 | $as_echo "AIX - Sorry you poor bastard..really we are" >&6; } | |
4339 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" | |
4340 | ;; | |
4341 | *) | |
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4343 | $as_echo "no" >&6; } | |
4344 | ;; | |
631ef239 | 4345 | esac |
212380e3 | 4346 | |
7083c021 AC |
4347 | if test "$ac_cv_c_compiler_gnu" = yes; then |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5 | |
4349 | $as_echo_n "checking if $CC is Apple GCC... " >&6; } | |
4350 | ||
4351 | case `$CC -v 2>&1 | tail -n 1` in | |
4352 | *Apple*) | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4354 | $as_echo "yes" >&6; } | |
4355 | AppleGCC=yes | |
4356 | ;; | |
4357 | *) | |
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4359 | $as_echo "no" >&6; } | |
4360 | AppleGCC=no | |
4361 | ;; | |
4362 | esac | |
4363 | ||
4364 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" | |
212380e3 | 4365 | fi |
631ef239 | 4366 | |
7083c021 AC |
4367 | if test "$ac_cv_prog_cc_g" = yes; then |
4368 | if test "$Tru" = yes; then | |
4369 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
4370 | else | |
4371 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
4372 | fi | |
212380e3 | 4373 | fi |
212380e3 | 4374 | |
7083c021 AC |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5 |
4376 | $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; } | |
4377 | if test "$SGS" = "yes"; then | |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4379 | $as_echo "yes" >&6; } | |
212380e3 | 4380 | else |
7083c021 AC |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4382 | $as_echo "no" >&6; } | |
4383 | fi | |
212380e3 | 4384 | |
7083c021 AC |
4385 | # Extract the first word of "mkdep", so it can be a program name with args. |
4386 | set dummy mkdep; ac_word=$2 | |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4388 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4389 | if ${ac_cv_path_MKDEP+:} false; then : |
7083c021 AC |
4390 | $as_echo_n "(cached) " >&6 |
4391 | else | |
4392 | case $MKDEP in | |
4393 | [\\/]* | ?:[\\/]*) | |
4394 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
4395 | ;; | |
4396 | *) | |
4397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4398 | for as_dir in $PATH | |
4399 | do | |
4400 | IFS=$as_save_IFS | |
4401 | test -z "$as_dir" && as_dir=. | |
4402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4404 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" | |
4405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4406 | break 2 | |
4407 | fi | |
4408 | done | |
4409 | done | |
4410 | IFS=$as_save_IFS | |
212380e3 | 4411 | |
7083c021 | 4412 | ;; |
631ef239 | 4413 | esac |
7083c021 AC |
4414 | fi |
4415 | MKDEP=$ac_cv_path_MKDEP | |
4416 | if test -n "$MKDEP"; then | |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5 | |
4418 | $as_echo "$MKDEP" >&6; } | |
212380e3 | 4419 | else |
7083c021 AC |
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4421 | $as_echo "no" >&6; } | |
212380e3 | 4422 | fi |
631ef239 | 4423 | |
7083c021 AC |
4424 | |
4425 | # Extract the first word of "makedepend", so it can be a program name with args. | |
4426 | set dummy makedepend; ac_word=$2 | |
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4428 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4429 | if ${ac_cv_path_MAKEDEPEND+:} false; then : |
7083c021 AC |
4430 | $as_echo_n "(cached) " >&6 |
4431 | else | |
4432 | case $MAKEDEPEND in | |
4433 | [\\/]* | ?:[\\/]*) | |
4434 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
4435 | ;; | |
4436 | *) | |
4437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4438 | for as_dir in $PATH | |
4439 | do | |
4440 | IFS=$as_save_IFS | |
4441 | test -z "$as_dir" && as_dir=. | |
4442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4444 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" | |
4445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4446 | break 2 | |
4447 | fi | |
4448 | done | |
212380e3 | 4449 | done |
7083c021 AC |
4450 | IFS=$as_save_IFS |
4451 | ||
4452 | ;; | |
4453 | esac | |
4454 | fi | |
4455 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
4456 | if test -n "$MAKEDEPEND"; then | |
4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5 | |
4458 | $as_echo "$MAKEDEPEND" >&6; } | |
212380e3 | 4459 | else |
7083c021 AC |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4461 | $as_echo "no" >&6; } | |
4462 | fi | |
212380e3 | 4463 | |
212380e3 | 4464 | |
212380e3 | 4465 | |
7083c021 AC |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5 |
4467 | $as_echo_n "checking how to generate dependency info... " >&6; } | |
4468 | ||
4469 | STDOUT="> .depend" | |
4470 | ||
4471 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5 | |
4473 | $as_echo "gcc -MM" >&6; } | |
4474 | MKDEP="$CC -MM" | |
4475 | elif test ! -z "$MKDEP"; then | |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5 | |
4477 | $as_echo "mkdep" >&6; } | |
4478 | ||
4479 | if test -z "$Tru"; then | |
4480 | STDOUT="" | |
4481 | else | |
4482 | STDOUT=" 2> /dev/null" | |
4483 | fi | |
4484 | elif test "$SunWorkShop" = yes; then | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5 | |
4486 | $as_echo "$CC -xM" >&6; } | |
4487 | MKDEP="$CC -xM" | |
4488 | STDOUT="> .depend 2> /dev/null" | |
4489 | elif test ! -z "$MAKEDEPEND"; then | |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5 | |
4491 | $as_echo "makedepend" >&6; } | |
4492 | MKDEP="$MAKEDEPEND -f-" | |
212380e3 | 4493 | else |
7083c021 AC |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5 |
4495 | $as_echo "nothing suitable.. forget it!" >&6; } | |
4496 | MKDEP=":" | |
212380e3 | 4497 | fi |
631ef239 | 4498 | |
7083c021 AC |
4499 | |
4500 | ||
4501 | ||
4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
4503 | $as_echo_n "checking for /dev/null... " >&6; } | |
4504 | if test -c /dev/null ; then | |
4505 | ||
4506 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
4507 | ||
4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4509 | $as_echo "yes" >&6; } | |
212380e3 | 4510 | else |
212380e3 | 4511 | |
7083c021 AC |
4512 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
4513 | ||
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
4515 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 4516 | fi |
631ef239 | 4517 | |
7083c021 AC |
4518 | if test ! -z "$CFLAGS"; then |
4519 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 4520 | fi |
631ef239 | 4521 | |
7083c021 AC |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
4523 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 4524 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
4525 | $as_echo_n "(cached) " >&6 |
4526 | else | |
4527 | ac_func_search_save_LIBS=$LIBS | |
4528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4529 | /* end confdefs.h. */ |
7083c021 AC |
4530 | |
4531 | /* Override any GCC internal prototype to avoid an error. | |
4532 | Use char because int might match the return type of a GCC | |
4533 | builtin and then its argument prototype would still apply. */ | |
4534 | #ifdef __cplusplus | |
4535 | extern "C" | |
4536 | #endif | |
4537 | char strerror (); | |
212380e3 AC |
4538 | int |
4539 | main () | |
4540 | { | |
7083c021 | 4541 | return strerror (); |
212380e3 AC |
4542 | ; |
4543 | return 0; | |
4544 | } | |
4545 | _ACEOF | |
7083c021 AC |
4546 | for ac_lib in '' cposix; do |
4547 | if test -z "$ac_lib"; then | |
4548 | ac_res="none required" | |
4549 | else | |
4550 | ac_res=-l$ac_lib | |
4551 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4552 | fi | |
4553 | if ac_fn_c_try_link "$LINENO"; then : | |
4554 | ac_cv_search_strerror=$ac_res | |
4555 | fi | |
4556 | rm -f core conftest.err conftest.$ac_objext \ | |
4557 | conftest$ac_exeext | |
b6d0720c | 4558 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
4559 | break |
4560 | fi | |
4561 | done | |
b6d0720c | 4562 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 4563 | |
212380e3 | 4564 | else |
7083c021 AC |
4565 | ac_cv_search_strerror=no |
4566 | fi | |
4567 | rm conftest.$ac_ext | |
4568 | LIBS=$ac_func_search_save_LIBS | |
4569 | fi | |
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
4571 | $as_echo "$ac_cv_search_strerror" >&6; } | |
4572 | ac_res=$ac_cv_search_strerror | |
4573 | if test "$ac_res" != no; then : | |
4574 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 4575 | |
212380e3 | 4576 | fi |
631ef239 | 4577 | |
7083c021 AC |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
4579 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 4580 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
4581 | $as_echo_n "(cached) " >&6 |
4582 | else | |
4583 | ac_cv_c_inline=no | |
4584 | for ac_kw in inline __inline__ __inline; do | |
4585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4586 | /* end confdefs.h. */ | |
4587 | #ifndef __cplusplus | |
4588 | typedef int foo_t; | |
4589 | static $ac_kw foo_t static_foo () {return 0; } | |
4590 | $ac_kw foo_t foo () {return 0; } | |
4591 | #endif | |
4592 | ||
4593 | _ACEOF | |
4594 | if ac_fn_c_try_compile "$LINENO"; then : | |
4595 | ac_cv_c_inline=$ac_kw | |
4596 | fi | |
631ef239 | 4597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 4598 | test "$ac_cv_c_inline" != no && break |
212380e3 | 4599 | done |
7083c021 AC |
4600 | |
4601 | fi | |
4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
4603 | $as_echo "$ac_cv_c_inline" >&6; } | |
4604 | ||
4605 | case $ac_cv_c_inline in | |
4606 | inline | yes) ;; | |
4607 | *) | |
4608 | case $ac_cv_c_inline in | |
4609 | no) ac_val=;; | |
4610 | *) ac_val=$ac_cv_c_inline;; | |
4611 | esac | |
4612 | cat >>confdefs.h <<_ACEOF | |
4613 | #ifndef __cplusplus | |
4614 | #define inline $ac_val | |
4615 | #endif | |
4616 | _ACEOF | |
4617 | ;; | |
212380e3 | 4618 | esac |
7083c021 AC |
4619 | |
4620 | if test $ac_cv_c_compiler_gnu = yes; then | |
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4622 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
b6d0720c | 4623 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
7083c021 | 4624 | $as_echo_n "(cached) " >&6 |
212380e3 | 4625 | else |
7083c021 AC |
4626 | ac_pattern="Autoconf.*'x'" |
4627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4628 | /* end confdefs.h. */ | |
4629 | #include <sgtty.h> | |
4630 | Autoconf TIOCGETP | |
212380e3 | 4631 | _ACEOF |
7083c021 AC |
4632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4633 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4634 | ac_cv_prog_gcc_traditional=yes | |
4635 | else | |
4636 | ac_cv_prog_gcc_traditional=no | |
4637 | fi | |
4638 | rm -f conftest* | |
4639 | ||
4640 | ||
4641 | if test $ac_cv_prog_gcc_traditional = no; then | |
4642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 4643 | /* end confdefs.h. */ |
7083c021 AC |
4644 | #include <termio.h> |
4645 | Autoconf TCGETA | |
4646 | _ACEOF | |
4647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4648 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4649 | ac_cv_prog_gcc_traditional=yes | |
4650 | fi | |
4651 | rm -f conftest* | |
212380e3 | 4652 | |
7083c021 AC |
4653 | fi |
4654 | fi | |
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
4656 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4657 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4658 | CC="$CC -traditional" | |
4659 | fi | |
4660 | fi | |
212380e3 | 4661 | |
7083c021 AC |
4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4663 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4664 | set x ${MAKE-make} | |
4665 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 4666 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
4667 | $as_echo_n "(cached) " >&6 |
4668 | else | |
4669 | cat >conftest.make <<\_ACEOF | |
4670 | SHELL = /bin/sh | |
4671 | all: | |
4672 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 4673 | _ACEOF |
b6d0720c | 4674 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
4675 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4676 | *@@@%%%=?*=@@@%%%*) | |
4677 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4678 | *) | |
4679 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 4680 | esac |
7083c021 AC |
4681 | rm -f conftest.make |
4682 | fi | |
4683 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4685 | $as_echo "yes" >&6; } | |
4686 | SET_MAKE= | |
4687 | else | |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4689 | $as_echo "no" >&6; } | |
4690 | SET_MAKE="MAKE=${MAKE-make}" | |
4691 | fi | |
4692 | ||
4693 | # Find a good install program. We prefer a C program (faster), | |
4694 | # so one script is as good as another. But avoid the broken or | |
4695 | # incompatible versions: | |
4696 | # SysV /etc/install, /usr/sbin/install | |
4697 | # SunOS /usr/etc/install | |
4698 | # IRIX /sbin/install | |
4699 | # AIX /bin/install | |
4700 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4701 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4702 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4703 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4704 | # OS/2's system install, which has a completely different semantic | |
4705 | # ./install, which can be erroneously created by make from ./install.sh. | |
4706 | # Reject install programs that cannot install multiple files. | |
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4708 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4709 | if test -z "$INSTALL"; then | |
b6d0720c | 4710 | if ${ac_cv_path_install+:} false; then : |
7083c021 AC |
4711 | $as_echo_n "(cached) " >&6 |
4712 | else | |
4713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4714 | for as_dir in $PATH | |
4715 | do | |
4716 | IFS=$as_save_IFS | |
4717 | test -z "$as_dir" && as_dir=. | |
4718 | # Account for people who put trailing slashes in PATH elements. | |
4719 | case $as_dir/ in #(( | |
4720 | ./ | .// | /[cC]/* | \ | |
4721 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4722 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4723 | /usr/ucb/* ) ;; | |
4724 | *) | |
4725 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4726 | # Don't use installbsd from OSF since it installs stuff as root | |
4727 | # by default. | |
4728 | for ac_prog in ginstall scoinst install; do | |
4729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4730 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4731 | if test $ac_prog = install && | |
4732 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4733 | # AIX install. It has an incompatible calling convention. | |
4734 | : | |
4735 | elif test $ac_prog = install && | |
4736 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4737 | # program-specific install script used by HP pwplus--don't use. | |
4738 | : | |
4739 | else | |
4740 | rm -rf conftest.one conftest.two conftest.dir | |
4741 | echo one > conftest.one | |
4742 | echo two > conftest.two | |
4743 | mkdir conftest.dir | |
4744 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4745 | test -s conftest.one && test -s conftest.two && | |
4746 | test -s conftest.dir/conftest.one && | |
4747 | test -s conftest.dir/conftest.two | |
4748 | then | |
4749 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4750 | break 3 | |
4751 | fi | |
4752 | fi | |
4753 | fi | |
4754 | done | |
4755 | done | |
4756 | ;; | |
631ef239 | 4757 | esac |
7083c021 AC |
4758 | |
4759 | done | |
4760 | IFS=$as_save_IFS | |
4761 | ||
4762 | rm -rf conftest.one conftest.two conftest.dir | |
4763 | ||
4764 | fi | |
4765 | if test "${ac_cv_path_install+set}" = set; then | |
4766 | INSTALL=$ac_cv_path_install | |
4767 | else | |
4768 | # As a last resort, use the slow shell script. Don't cache a | |
4769 | # value for INSTALL within a source directory, because that will | |
4770 | # break other packages using the cache if that directory is | |
4771 | # removed, or if the value is a relative name. | |
4772 | INSTALL=$ac_install_sh | |
4773 | fi | |
4774 | fi | |
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4776 | $as_echo "$INSTALL" >&6; } | |
4777 | ||
4778 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4779 | # It thinks the first close brace ends the variable substitution. | |
4780 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4781 | ||
4782 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4783 | ||
4784 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4785 | ||
4786 | # Extract the first word of "rm", so it can be a program name with args. | |
4787 | set dummy rm; ac_word=$2 | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4789 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4790 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 4791 | $as_echo_n "(cached) " >&6 |
212380e3 | 4792 | else |
7083c021 AC |
4793 | case $RM in |
4794 | [\\/]* | ?:[\\/]*) | |
4795 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4796 | ;; | |
4797 | *) | |
4798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4799 | for as_dir in $PATH | |
4800 | do | |
4801 | IFS=$as_save_IFS | |
4802 | test -z "$as_dir" && as_dir=. | |
4803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4804 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4805 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
4806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4807 | break 2 | |
4808 | fi | |
4809 | done | |
4810 | done | |
4811 | IFS=$as_save_IFS | |
212380e3 | 4812 | |
7083c021 AC |
4813 | ;; |
4814 | esac | |
212380e3 | 4815 | fi |
7083c021 AC |
4816 | RM=$ac_cv_path_RM |
4817 | if test -n "$RM"; then | |
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
4819 | $as_echo "$RM" >&6; } | |
4820 | else | |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4822 | $as_echo "no" >&6; } | |
212380e3 | 4823 | fi |
631ef239 AC |
4824 | |
4825 | ||
7083c021 AC |
4826 | # Extract the first word of "cp", so it can be a program name with args. |
4827 | set dummy cp; ac_word=$2 | |
4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4829 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4830 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
4831 | $as_echo_n "(cached) " >&6 |
4832 | else | |
4833 | case $CP in | |
4834 | [\\/]* | ?:[\\/]*) | |
4835 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
4836 | ;; | |
4837 | *) | |
4838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4839 | for as_dir in $PATH | |
4840 | do | |
4841 | IFS=$as_save_IFS | |
4842 | test -z "$as_dir" && as_dir=. | |
4843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4845 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
4846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4847 | break 2 | |
4848 | fi | |
4849 | done | |
4850 | done | |
4851 | IFS=$as_save_IFS | |
631ef239 | 4852 | |
7083c021 AC |
4853 | ;; |
4854 | esac | |
4855 | fi | |
4856 | CP=$ac_cv_path_CP | |
4857 | if test -n "$CP"; then | |
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
4859 | $as_echo "$CP" >&6; } | |
4860 | else | |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4862 | $as_echo "no" >&6; } | |
4863 | fi | |
212380e3 AC |
4864 | |
4865 | ||
7083c021 AC |
4866 | # Extract the first word of "mv", so it can be a program name with args. |
4867 | set dummy mv; ac_word=$2 | |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4869 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4870 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 4871 | $as_echo_n "(cached) " >&6 |
212380e3 | 4872 | else |
7083c021 AC |
4873 | case $MV in |
4874 | [\\/]* | ?:[\\/]*) | |
4875 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4876 | ;; | |
4877 | *) | |
4878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4879 | for as_dir in $PATH | |
4880 | do | |
4881 | IFS=$as_save_IFS | |
4882 | test -z "$as_dir" && as_dir=. | |
4883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4885 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
4886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4887 | break 2 | |
4888 | fi | |
4889 | done | |
4890 | done | |
4891 | IFS=$as_save_IFS | |
4892 | ||
4893 | ;; | |
631ef239 | 4894 | esac |
7083c021 AC |
4895 | fi |
4896 | MV=$ac_cv_path_MV | |
4897 | if test -n "$MV"; then | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
4899 | $as_echo "$MV" >&6; } | |
212380e3 | 4900 | else |
7083c021 AC |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4902 | $as_echo "no" >&6; } | |
212380e3 | 4903 | fi |
631ef239 | 4904 | |
212380e3 | 4905 | |
7083c021 AC |
4906 | # Extract the first word of "ln", so it can be a program name with args. |
4907 | set dummy ln; ac_word=$2 | |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4909 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4910 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 4911 | $as_echo_n "(cached) " >&6 |
212380e3 | 4912 | else |
7083c021 AC |
4913 | case $LN in |
4914 | [\\/]* | ?:[\\/]*) | |
4915 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4916 | ;; | |
4917 | *) | |
4918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4919 | for as_dir in $PATH | |
4920 | do | |
4921 | IFS=$as_save_IFS | |
4922 | test -z "$as_dir" && as_dir=. | |
4923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4925 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
4926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4927 | break 2 | |
4928 | fi | |
4929 | done | |
4930 | done | |
4931 | IFS=$as_save_IFS | |
212380e3 | 4932 | |
7083c021 | 4933 | ;; |
631ef239 | 4934 | esac |
7083c021 AC |
4935 | fi |
4936 | LN=$ac_cv_path_LN | |
4937 | if test -n "$LN"; then | |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
4939 | $as_echo "$LN" >&6; } | |
212380e3 | 4940 | else |
7083c021 AC |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4942 | $as_echo "no" >&6; } | |
212380e3 | 4943 | fi |
631ef239 | 4944 | |
7083c021 AC |
4945 | |
4946 | # Extract the first word of "sed", so it can be a program name with args. | |
4947 | set dummy sed; ac_word=$2 | |
4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4949 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4950 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
4951 | $as_echo_n "(cached) " >&6 |
4952 | else | |
4953 | case $SED in | |
4954 | [\\/]* | ?:[\\/]*) | |
4955 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4956 | ;; | |
4957 | *) | |
4958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4959 | for as_dir in $PATH | |
4960 | do | |
4961 | IFS=$as_save_IFS | |
4962 | test -z "$as_dir" && as_dir=. | |
4963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4964 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4965 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
4966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4967 | break 2 | |
4968 | fi | |
4969 | done | |
212380e3 | 4970 | done |
7083c021 AC |
4971 | IFS=$as_save_IFS |
4972 | ||
4973 | ;; | |
4974 | esac | |
4975 | fi | |
4976 | SED=$ac_cv_path_SED | |
4977 | if test -n "$SED"; then | |
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4979 | $as_echo "$SED" >&6; } | |
212380e3 | 4980 | else |
7083c021 AC |
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4982 | $as_echo "no" >&6; } | |
4983 | fi | |
212380e3 | 4984 | |
212380e3 | 4985 | |
7083c021 AC |
4986 | # Extract the first word of "ar", so it can be a program name with args. |
4987 | set dummy ar; ac_word=$2 | |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4989 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 4990 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
4991 | $as_echo_n "(cached) " >&6 |
4992 | else | |
4993 | case $AR in | |
4994 | [\\/]* | ?:[\\/]*) | |
4995 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
4996 | ;; | |
4997 | *) | |
4998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4999 | for as_dir in $PATH | |
5000 | do | |
5001 | IFS=$as_save_IFS | |
5002 | test -z "$as_dir" && as_dir=. | |
5003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5005 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
5006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5007 | break 2 | |
5008 | fi | |
5009 | done | |
5010 | done | |
5011 | IFS=$as_save_IFS | |
212380e3 | 5012 | |
7083c021 | 5013 | ;; |
631ef239 | 5014 | esac |
7083c021 AC |
5015 | fi |
5016 | AR=$ac_cv_path_AR | |
5017 | if test -n "$AR"; then | |
5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5019 | $as_echo "$AR" >&6; } | |
212380e3 | 5020 | else |
7083c021 AC |
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5022 | $as_echo "no" >&6; } | |
212380e3 | 5023 | fi |
631ef239 | 5024 | |
7083c021 AC |
5025 | |
5026 | # Extract the first word of "ld", so it can be a program name with args. | |
5027 | set dummy ld; ac_word=$2 | |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5029 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5030 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 5031 | $as_echo_n "(cached) " >&6 |
212380e3 | 5032 | else |
7083c021 AC |
5033 | case $LD in |
5034 | [\\/]* | ?:[\\/]*) | |
5035 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
5036 | ;; | |
5037 | *) | |
5038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5039 | for as_dir in $PATH | |
5040 | do | |
5041 | IFS=$as_save_IFS | |
5042 | test -z "$as_dir" && as_dir=. | |
5043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5045 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" | |
5046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5047 | break 2 | |
5048 | fi | |
5049 | done | |
5050 | done | |
5051 | IFS=$as_save_IFS | |
212380e3 | 5052 | |
7083c021 AC |
5053 | ;; |
5054 | esac | |
212380e3 | 5055 | fi |
7083c021 AC |
5056 | LD=$ac_cv_path_LD |
5057 | if test -n "$LD"; then | |
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5059 | $as_echo "$LD" >&6; } | |
5060 | else | |
5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5062 | $as_echo "no" >&6; } | |
212380e3 | 5063 | fi |
631ef239 | 5064 | |
212380e3 | 5065 | |
7083c021 AC |
5066 | # Extract the first word of "ranlib", so it can be a program name with args. |
5067 | set dummy ranlib; ac_word=$2 | |
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5069 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5070 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 5071 | $as_echo_n "(cached) " >&6 |
212380e3 | 5072 | else |
7083c021 AC |
5073 | case $RANLIB in |
5074 | [\\/]* | ?:[\\/]*) | |
5075 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
5076 | ;; | |
5077 | *) | |
5078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5079 | for as_dir in $PATH | |
5080 | do | |
5081 | IFS=$as_save_IFS | |
5082 | test -z "$as_dir" && as_dir=. | |
5083 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5085 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" | |
5086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5087 | break 2 | |
5088 | fi | |
5089 | done | |
5090 | done | |
5091 | IFS=$as_save_IFS | |
212380e3 | 5092 | |
7083c021 AC |
5093 | ;; |
5094 | esac | |
5095 | fi | |
5096 | RANLIB=$ac_cv_path_RANLIB | |
5097 | if test -n "$RANLIB"; then | |
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5099 | $as_echo "$RANLIB" >&6; } | |
5100 | else | |
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5102 | $as_echo "no" >&6; } | |
212380e3 | 5103 | fi |
631ef239 | 5104 | |
7083c021 AC |
5105 | |
5106 | # Extract the first word of "touch", so it can be a program name with args. | |
5107 | set dummy touch; ac_word=$2 | |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5109 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5110 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
5111 | $as_echo_n "(cached) " >&6 |
5112 | else | |
5113 | case $TOUCH in | |
5114 | [\\/]* | ?:[\\/]*) | |
5115 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
5116 | ;; | |
5117 | *) | |
5118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5119 | for as_dir in $PATH | |
5120 | do | |
5121 | IFS=$as_save_IFS | |
5122 | test -z "$as_dir" && as_dir=. | |
5123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5124 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5125 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
5126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5127 | break 2 | |
5128 | fi | |
212380e3 | 5129 | done |
7083c021 AC |
5130 | done |
5131 | IFS=$as_save_IFS | |
5132 | ||
5133 | ;; | |
212380e3 | 5134 | esac |
7083c021 AC |
5135 | fi |
5136 | TOUCH=$ac_cv_path_TOUCH | |
5137 | if test -n "$TOUCH"; then | |
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
5139 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 5140 | else |
7083c021 AC |
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5142 | $as_echo "no" >&6; } | |
5143 | fi | |
212380e3 | 5144 | |
212380e3 | 5145 | |
7083c021 AC |
5146 | |
5147 | for ac_prog in 'bison -y' byacc | |
5148 | do | |
5149 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5150 | set dummy $ac_prog; ac_word=$2 | |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5152 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5153 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 5154 | $as_echo_n "(cached) " >&6 |
212380e3 | 5155 | else |
7083c021 AC |
5156 | if test -n "$YACC"; then |
5157 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5158 | else | |
5159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5160 | for as_dir in $PATH | |
5161 | do | |
5162 | IFS=$as_save_IFS | |
5163 | test -z "$as_dir" && as_dir=. | |
5164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5166 | ac_cv_prog_YACC="$ac_prog" | |
5167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5168 | break 2 | |
5169 | fi | |
5170 | done | |
5171 | done | |
5172 | IFS=$as_save_IFS | |
212380e3 | 5173 | |
212380e3 AC |
5174 | fi |
5175 | fi | |
7083c021 AC |
5176 | YACC=$ac_cv_prog_YACC |
5177 | if test -n "$YACC"; then | |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5179 | $as_echo "$YACC" >&6; } | |
5180 | else | |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5182 | $as_echo "no" >&6; } | |
212380e3 | 5183 | fi |
631ef239 AC |
5184 | |
5185 | ||
7083c021 AC |
5186 | test -n "$YACC" && break |
5187 | done | |
5188 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
5189 | |
5190 | ||
7083c021 | 5191 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 5192 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 5193 | fi |
212380e3 | 5194 | |
7083c021 AC |
5195 | for ac_prog in flex lex |
5196 | do | |
5197 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5198 | set dummy $ac_prog; ac_word=$2 | |
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5200 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 5201 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 5202 | $as_echo_n "(cached) " >&6 |
212380e3 | 5203 | else |
7083c021 AC |
5204 | if test -n "$LEX"; then |
5205 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 5206 | else |
7083c021 AC |
5207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5208 | for as_dir in $PATH | |
5209 | do | |
5210 | IFS=$as_save_IFS | |
5211 | test -z "$as_dir" && as_dir=. | |
5212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5214 | ac_cv_prog_LEX="$ac_prog" | |
5215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5216 | break 2 | |
5217 | fi | |
631ef239 | 5218 | done |
7083c021 AC |
5219 | done |
5220 | IFS=$as_save_IFS | |
631ef239 | 5221 | |
7083c021 AC |
5222 | fi |
5223 | fi | |
5224 | LEX=$ac_cv_prog_LEX | |
5225 | if test -n "$LEX"; then | |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
5227 | $as_echo "$LEX" >&6; } | |
631ef239 | 5228 | else |
7083c021 AC |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5230 | $as_echo "no" >&6; } | |
631ef239 AC |
5231 | fi |
5232 | ||
5233 | ||
7083c021 AC |
5234 | test -n "$LEX" && break |
5235 | done | |
5236 | test -n "$LEX" || LEX=":" | |
212380e3 | 5237 | |
7083c021 AC |
5238 | if test "x$LEX" != "x:"; then |
5239 | cat >conftest.l <<_ACEOF | |
5240 | %% | |
5241 | a { ECHO; } | |
5242 | b { REJECT; } | |
5243 | c { yymore (); } | |
5244 | d { yyless (1); } | |
5245 | e { yyless (input () != 0); } | |
5246 | f { unput (yytext[0]); } | |
5247 | . { BEGIN INITIAL; } | |
5248 | %% | |
5249 | #ifdef YYTEXT_POINTER | |
5250 | extern char *yytext; | |
212380e3 | 5251 | #endif |
212380e3 | 5252 | int |
7083c021 | 5253 | main (void) |
212380e3 | 5254 | { |
7083c021 | 5255 | return ! yylex () + ! yywrap (); |
212380e3 AC |
5256 | } |
5257 | _ACEOF | |
7083c021 | 5258 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
5259 | case "(($ac_try" in |
5260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5261 | *) ac_try_echo=$ac_try;; | |
5262 | esac | |
7083c021 AC |
5263 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5264 | $as_echo "$ac_try_echo"; } >&5 | |
5265 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 5266 | ac_status=$? |
7083c021 AC |
5267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5268 | test $ac_status = 0; } | |
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
5270 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 5271 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 5272 | $as_echo_n "(cached) " >&6 |
212380e3 | 5273 | else |
212380e3 | 5274 | |
7083c021 AC |
5275 | if test -f lex.yy.c; then |
5276 | ac_cv_prog_lex_root=lex.yy | |
5277 | elif test -f lexyy.c; then | |
5278 | ac_cv_prog_lex_root=lexyy | |
5279 | else | |
b6d0720c | 5280 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
5281 | fi |
5282 | fi | |
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
5284 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
5285 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
5286 | ||
5287 | if test -z "${LEXLIB+set}"; then | |
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
5289 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 5290 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
5291 | $as_echo_n "(cached) " >&6 |
5292 | else | |
631ef239 | 5293 | |
7083c021 AC |
5294 | ac_save_LIBS=$LIBS |
5295 | ac_cv_lib_lex='none needed' | |
5296 | for ac_lib in '' -lfl -ll; do | |
5297 | LIBS="$ac_lib $ac_save_LIBS" | |
5298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5299 | /* end confdefs.h. */ | |
5300 | `cat $LEX_OUTPUT_ROOT.c` | |
5301 | _ACEOF | |
5302 | if ac_fn_c_try_link "$LINENO"; then : | |
5303 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 5304 | fi |
7083c021 AC |
5305 | rm -f core conftest.err conftest.$ac_objext \ |
5306 | conftest$ac_exeext conftest.$ac_ext | |
5307 | test "$ac_cv_lib_lex" != 'none needed' && break | |
5308 | done | |
5309 | LIBS=$ac_save_LIBS | |
631ef239 | 5310 | |
631ef239 | 5311 | fi |
7083c021 AC |
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
5313 | $as_echo "$ac_cv_lib_lex" >&6; } | |
5314 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
5315 | fi | |
5316 | ||
5317 | ||
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
5319 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 5320 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 5321 | $as_echo_n "(cached) " >&6 |
631ef239 | 5322 | else |
7083c021 AC |
5323 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5324 | # default is implementation-dependent. Figure out which it is, since | |
5325 | # not all implementations provide the %pointer and %array declarations. | |
5326 | ac_cv_prog_lex_yytext_pointer=no | |
5327 | ac_save_LIBS=$LIBS | |
5328 | LIBS="$LEXLIB $ac_save_LIBS" | |
5329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5330 | /* end confdefs.h. */ | |
b6d0720c AC |
5331 | |
5332 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
5333 | `cat $LEX_OUTPUT_ROOT.c` |
5334 | _ACEOF | |
5335 | if ac_fn_c_try_link "$LINENO"; then : | |
5336 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 5337 | fi |
7083c021 AC |
5338 | rm -f core conftest.err conftest.$ac_objext \ |
5339 | conftest$ac_exeext conftest.$ac_ext | |
5340 | LIBS=$ac_save_LIBS | |
5341 | ||
212380e3 | 5342 | fi |
7083c021 AC |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5344 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
5345 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 5346 | |
7083c021 AC |
5347 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
5348 | ||
5349 | fi | |
5350 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
5351 | ||
5352 | fi | |
5353 | ||
5354 | if test "$LEX" = ":"; then | |
b6d0720c | 5355 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
5356 | fi |
5357 | ||
7083c021 AC |
5358 | if test "$libexecdir" = '${exec_prefix}/libexec' && |
5359 | test "$localstatedir" = '${prefix}/var'; then | |
5360 | libexecdir='${bindir}' | |
5361 | localstatedir='${prefix}' | |
631ef239 | 5362 | fi |
212380e3 | 5363 | |
7083c021 AC |
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5365 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 5366 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 5367 | $as_echo_n "(cached) " >&6 |
212380e3 | 5368 | else |
7083c021 | 5369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5370 | /* end confdefs.h. */ |
7083c021 AC |
5371 | #include <stdlib.h> |
5372 | #include <stdarg.h> | |
5373 | #include <string.h> | |
5374 | #include <float.h> | |
212380e3 AC |
5375 | |
5376 | int | |
5377 | main () | |
5378 | { | |
7083c021 | 5379 | |
212380e3 AC |
5380 | ; |
5381 | return 0; | |
5382 | } | |
5383 | _ACEOF | |
7083c021 AC |
5384 | if ac_fn_c_try_compile "$LINENO"; then : |
5385 | ac_cv_header_stdc=yes | |
212380e3 | 5386 | else |
7083c021 | 5387 | ac_cv_header_stdc=no |
212380e3 | 5388 | fi |
631ef239 | 5389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5390 | |
7083c021 AC |
5391 | if test $ac_cv_header_stdc = yes; then |
5392 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5394 | /* end confdefs.h. */ | |
5395 | #include <string.h> | |
5396 | ||
212380e3 | 5397 | _ACEOF |
7083c021 AC |
5398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5399 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5400 | ||
5401 | else | |
5402 | ac_cv_header_stdc=no | |
5403 | fi | |
5404 | rm -f conftest* | |
212380e3 AC |
5405 | |
5406 | fi | |
5407 | ||
7083c021 AC |
5408 | if test $ac_cv_header_stdc = yes; then |
5409 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5411 | /* end confdefs.h. */ | |
5412 | #include <stdlib.h> | |
5413 | ||
5414 | _ACEOF | |
5415 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5416 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 5417 | |
212380e3 | 5418 | else |
7083c021 | 5419 | ac_cv_header_stdc=no |
631ef239 | 5420 | fi |
7083c021 | 5421 | rm -f conftest* |
631ef239 | 5422 | |
7083c021 | 5423 | fi |
212380e3 | 5424 | |
7083c021 AC |
5425 | if test $ac_cv_header_stdc = yes; then |
5426 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5427 | if test "$cross_compiling" = yes; then : | |
5428 | : | |
212380e3 | 5429 | else |
7083c021 | 5430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5431 | /* end confdefs.h. */ |
7083c021 AC |
5432 | #include <ctype.h> |
5433 | #include <stdlib.h> | |
5434 | #if ((' ' & 0x0FF) == 0x020) | |
5435 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5436 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5437 | #else | |
5438 | # define ISLOWER(c) \ | |
5439 | (('a' <= (c) && (c) <= 'i') \ | |
5440 | || ('j' <= (c) && (c) <= 'r') \ | |
5441 | || ('s' <= (c) && (c) <= 'z')) | |
5442 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 5443 | #endif |
7083c021 AC |
5444 | |
5445 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
5446 | int |
5447 | main () | |
5448 | { | |
7083c021 AC |
5449 | int i; |
5450 | for (i = 0; i < 256; i++) | |
5451 | if (XOR (islower (i), ISLOWER (i)) | |
5452 | || toupper (i) != TOUPPER (i)) | |
5453 | return 2; | |
212380e3 AC |
5454 | return 0; |
5455 | } | |
5456 | _ACEOF | |
7083c021 | 5457 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 5458 | |
7083c021 AC |
5459 | else |
5460 | ac_cv_header_stdc=no | |
631ef239 | 5461 | fi |
7083c021 AC |
5462 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5463 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5464 | fi |
7083c021 | 5465 | |
212380e3 | 5466 | fi |
212380e3 | 5467 | fi |
7083c021 AC |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5469 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5470 | if test $ac_cv_header_stdc = yes; then | |
5471 | ||
5472 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
5473 | |
5474 | fi | |
5475 | ||
5476 | ||
7083c021 AC |
5477 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h |
5478 | do : | |
5479 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5480 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 5481 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
5482 | cat >>confdefs.h <<_ACEOF |
5483 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5484 | _ACEOF | |
212380e3 | 5485 | |
212380e3 AC |
5486 | fi |
5487 | ||
7083c021 | 5488 | done |
212380e3 AC |
5489 | |
5490 | ||
212380e3 | 5491 | |
7083c021 AC |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
5493 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 5494 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
5495 | $as_echo_n "(cached) " >&6 |
5496 | else | |
5497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5498 | /* end confdefs.h. */ | |
212380e3 | 5499 | |
7083c021 AC |
5500 | int |
5501 | main () | |
5502 | { | |
5503 | /* FIXME: Include the comments suggested by Paul. */ | |
5504 | #ifndef __cplusplus | |
5505 | /* Ultrix mips cc rejects this. */ | |
5506 | typedef int charset[2]; | |
5507 | const charset cs; | |
5508 | /* SunOS 4.1.1 cc rejects this. */ | |
5509 | char const *const *pcpcc; | |
5510 | char **ppc; | |
5511 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5512 | struct point {int x, y;}; | |
5513 | static struct point const zero = {0,0}; | |
5514 | /* AIX XL C 1.02.0.0 rejects this. | |
5515 | It does not let you subtract one const X* pointer from another in | |
5516 | an arm of an if-expression whose if-part is not a constant | |
5517 | expression */ | |
5518 | const char *g = "string"; | |
5519 | pcpcc = &g + (g ? g-g : 0); | |
5520 | /* HPUX 7.0 cc rejects these. */ | |
5521 | ++pcpcc; | |
5522 | ppc = (char**) pcpcc; | |
5523 | pcpcc = (char const *const *) ppc; | |
5524 | { /* SCO 3.2v4 cc rejects this. */ | |
5525 | char *t; | |
5526 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
212380e3 | 5527 | |
7083c021 AC |
5528 | *t++ = 0; |
5529 | if (s) return 0; | |
5530 | } | |
5531 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5532 | int x[] = {25, 17}; | |
5533 | const int *foo = &x[0]; | |
5534 | ++foo; | |
5535 | } | |
5536 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5537 | typedef const int *iptr; | |
5538 | iptr p = 0; | |
5539 | ++p; | |
5540 | } | |
5541 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5542 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5543 | struct s { int j; const int *ap[3]; }; | |
5544 | struct s *b; b->j = 5; | |
5545 | } | |
5546 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5547 | const int foo = 10; | |
5548 | if (!foo) return 0; | |
5549 | } | |
5550 | return !cs[0] && !zero.x; | |
5551 | #endif | |
212380e3 | 5552 | |
7083c021 AC |
5553 | ; |
5554 | return 0; | |
5555 | } | |
212380e3 | 5556 | _ACEOF |
7083c021 AC |
5557 | if ac_fn_c_try_compile "$LINENO"; then : |
5558 | ac_cv_c_const=yes | |
212380e3 | 5559 | else |
7083c021 | 5560 | ac_cv_c_const=no |
212380e3 | 5561 | fi |
631ef239 | 5562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5563 | fi |
7083c021 AC |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5565 | $as_echo "$ac_cv_c_const" >&6; } | |
5566 | if test $ac_cv_c_const = no; then | |
212380e3 | 5567 | |
7083c021 | 5568 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
5569 | |
5570 | fi | |
5571 | ||
7083c021 AC |
5572 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5574 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 5575 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 5576 | $as_echo_n "(cached) " >&6 |
212380e3 | 5577 | else |
7083c021 AC |
5578 | ac_cv_c_bigendian=unknown |
5579 | # See if we're dealing with a universal compiler. | |
5580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5581 | /* end confdefs.h. */ | |
5582 | #ifndef __APPLE_CC__ | |
5583 | not a universal capable compiler | |
5584 | #endif | |
5585 | typedef int dummy; | |
5586 | ||
5587 | _ACEOF | |
5588 | if ac_fn_c_try_compile "$LINENO"; then : | |
5589 | ||
5590 | # Check for potential -arch flags. It is not universal unless | |
5591 | # there are at least two -arch flags with different values. | |
5592 | ac_arch= | |
5593 | ac_prev= | |
5594 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5595 | if test -n "$ac_prev"; then | |
5596 | case $ac_word in | |
5597 | i?86 | x86_64 | ppc | ppc64) | |
5598 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5599 | ac_arch=$ac_word | |
5600 | else | |
5601 | ac_cv_c_bigendian=universal | |
5602 | break | |
5603 | fi | |
5604 | ;; | |
5605 | esac | |
5606 | ac_prev= | |
5607 | elif test "x$ac_word" = "x-arch"; then | |
5608 | ac_prev=arch | |
5609 | fi | |
5610 | done | |
5611 | fi | |
5612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5613 | if test $ac_cv_c_bigendian = unknown; then | |
5614 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
5616 | /* end confdefs.h. */ |
5617 | #include <sys/types.h> | |
7083c021 | 5618 | #include <sys/param.h> |
212380e3 AC |
5619 | |
5620 | int | |
5621 | main () | |
5622 | { | |
7083c021 AC |
5623 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5624 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5625 | && LITTLE_ENDIAN) | |
5626 | bogus endian macros | |
5627 | #endif | |
212380e3 AC |
5628 | |
5629 | ; | |
5630 | return 0; | |
5631 | } | |
5632 | _ACEOF | |
7083c021 | 5633 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5634 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 5635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
5636 | /* end confdefs.h. */ |
5637 | #include <sys/types.h> | |
7083c021 | 5638 | #include <sys/param.h> |
212380e3 AC |
5639 | |
5640 | int | |
5641 | main () | |
5642 | { | |
5643 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
5644 | not big endian |
5645 | #endif | |
212380e3 AC |
5646 | |
5647 | ; | |
5648 | return 0; | |
5649 | } | |
5650 | _ACEOF | |
7083c021 | 5651 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
5652 | ac_cv_c_bigendian=yes |
5653 | else | |
7083c021 | 5654 | ac_cv_c_bigendian=no |
212380e3 | 5655 | fi |
631ef239 | 5656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
5657 | fi |
5658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5659 | fi | |
5660 | if test $ac_cv_c_bigendian = unknown; then | |
5661 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5663 | /* end confdefs.h. */ | |
5664 | #include <limits.h> | |
212380e3 | 5665 | |
7083c021 AC |
5666 | int |
5667 | main () | |
5668 | { | |
5669 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5670 | bogus endian macros | |
5671 | #endif | |
5672 | ||
5673 | ; | |
5674 | return 0; | |
5675 | } | |
212380e3 | 5676 | _ACEOF |
7083c021 AC |
5677 | if ac_fn_c_try_compile "$LINENO"; then : |
5678 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 5680 | /* end confdefs.h. */ |
7083c021 AC |
5681 | #include <limits.h> |
5682 | ||
212380e3 AC |
5683 | int |
5684 | main () | |
5685 | { | |
7083c021 AC |
5686 | #ifndef _BIG_ENDIAN |
5687 | not big endian | |
5688 | #endif | |
5689 | ||
212380e3 AC |
5690 | ; |
5691 | return 0; | |
5692 | } | |
5693 | _ACEOF | |
7083c021 | 5694 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 5695 | ac_cv_c_bigendian=yes |
7083c021 AC |
5696 | else |
5697 | ac_cv_c_bigendian=no | |
212380e3 | 5698 | fi |
7083c021 | 5699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5700 | fi |
7083c021 AC |
5701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5702 | fi | |
5703 | if test $ac_cv_c_bigendian = unknown; then | |
5704 | # Compile a test program. | |
5705 | if test "$cross_compiling" = yes; then : | |
5706 | # Try to guess by grepping values from an object file. | |
5707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5708 | /* end confdefs.h. */ | |
5709 | short int ascii_mm[] = | |
5710 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5711 | short int ascii_ii[] = | |
5712 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5713 | int use_ascii (int i) { | |
5714 | return ascii_mm[i] + ascii_ii[i]; | |
5715 | } | |
5716 | short int ebcdic_ii[] = | |
5717 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5718 | short int ebcdic_mm[] = | |
5719 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5720 | int use_ebcdic (int i) { | |
5721 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5722 | } | |
5723 | extern int foo; | |
631ef239 | 5724 | |
7083c021 AC |
5725 | int |
5726 | main () | |
5727 | { | |
5728 | return use_ascii (foo) == use_ebcdic (foo); | |
5729 | ; | |
5730 | return 0; | |
5731 | } | |
5732 | _ACEOF | |
5733 | if ac_fn_c_try_compile "$LINENO"; then : | |
5734 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5735 | ac_cv_c_bigendian=yes | |
5736 | fi | |
5737 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5738 | if test "$ac_cv_c_bigendian" = unknown; then | |
5739 | ac_cv_c_bigendian=no | |
5740 | else | |
5741 | # finding both strings is unlikely to happen, but who knows? | |
5742 | ac_cv_c_bigendian=unknown | |
5743 | fi | |
5744 | fi | |
212380e3 | 5745 | fi |
631ef239 | 5746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5747 | else |
7083c021 | 5748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 5749 | /* end confdefs.h. */ |
631ef239 | 5750 | $ac_includes_default |
212380e3 AC |
5751 | int |
5752 | main () | |
5753 | { | |
631ef239 | 5754 | |
7083c021 AC |
5755 | /* Are we little or big endian? From Harbison&Steele. */ |
5756 | union | |
5757 | { | |
5758 | long int l; | |
5759 | char c[sizeof (long int)]; | |
5760 | } u; | |
5761 | u.l = 1; | |
5762 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
5763 | |
5764 | ; | |
5765 | return 0; | |
212380e3 AC |
5766 | } |
5767 | _ACEOF | |
7083c021 | 5768 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
5769 | ac_cv_c_bigendian=no |
5770 | else | |
7083c021 | 5771 | ac_cv_c_bigendian=yes |
212380e3 | 5772 | fi |
7083c021 AC |
5773 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5774 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 5775 | fi |
631ef239 | 5776 | |
7083c021 | 5777 | fi |
212380e3 | 5778 | fi |
7083c021 AC |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5780 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5781 | case $ac_cv_c_bigendian in #( | |
5782 | yes) | |
5783 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5784 | ;; #( | |
5785 | no) | |
5786 | ;; #( | |
5787 | universal) | |
5788 | ||
5789 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5790 | ||
5791 | ;; #( | |
5792 | *) | |
b6d0720c | 5793 | as_fn_error $? "unknown endianness |
7083c021 AC |
5794 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
5795 | esac | |
631ef239 | 5796 | |
212380e3 | 5797 | fi |
7083c021 | 5798 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 5799 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 5800 | |
7083c021 | 5801 | else |
212380e3 | 5802 | |
7083c021 AC |
5803 | cat >>confdefs.h <<_ACEOF |
5804 | #define pid_t int | |
5805 | _ACEOF | |
212380e3 | 5806 | |
212380e3 | 5807 | fi |
7083c021 AC |
5808 | |
5809 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 5810 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 5811 | |
212380e3 | 5812 | else |
7083c021 AC |
5813 | |
5814 | cat >>confdefs.h <<_ACEOF | |
5815 | #define size_t unsigned int | |
212380e3 | 5816 | _ACEOF |
7083c021 AC |
5817 | |
5818 | fi | |
5819 | ||
5820 | # The cast to long int works around a bug in the HP C Compiler | |
5821 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5822 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5823 | # This bug is HP SR number 8606223364. | |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
5825 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 5826 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 5827 | $as_echo_n "(cached) " >&6 |
212380e3 | 5828 | else |
7083c021 AC |
5829 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
5830 | ||
5831 | else | |
5832 | if test "$ac_cv_type_short" = yes; then | |
5833 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5835 | as_fn_error 77 "cannot compute sizeof (short) |
5836 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5837 | else |
5838 | ac_cv_sizeof_short=0 | |
5839 | fi | |
5840 | fi | |
212380e3 | 5841 | |
212380e3 | 5842 | fi |
7083c021 AC |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
5844 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 5845 | |
212380e3 | 5846 | |
7083c021 AC |
5847 | |
5848 | cat >>confdefs.h <<_ACEOF | |
5849 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 5850 | _ACEOF |
7083c021 AC |
5851 | |
5852 | ||
5853 | # The cast to long int works around a bug in the HP C Compiler | |
5854 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5855 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5856 | # This bug is HP SR number 8606223364. | |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
5858 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 5859 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
5860 | $as_echo_n "(cached) " >&6 |
5861 | else | |
5862 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
5863 | ||
5864 | else | |
5865 | if test "$ac_cv_type_int" = yes; then | |
5866 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5867 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5868 | as_fn_error 77 "cannot compute sizeof (int) |
5869 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5870 | else |
5871 | ac_cv_sizeof_int=0 | |
5872 | fi | |
5873 | fi | |
5874 | ||
5875 | fi | |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
5877 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
5878 | ||
5879 | ||
5880 | ||
5881 | cat >>confdefs.h <<_ACEOF | |
5882 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 5883 | _ACEOF |
7083c021 AC |
5884 | |
5885 | ||
5886 | # The cast to long int works around a bug in the HP C Compiler | |
5887 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5888 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5889 | # This bug is HP SR number 8606223364. | |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
5891 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 5892 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 5893 | $as_echo_n "(cached) " >&6 |
212380e3 | 5894 | else |
7083c021 | 5895 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 5896 | |
7083c021 AC |
5897 | else |
5898 | if test "$ac_cv_type_long" = yes; then | |
5899 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5901 | as_fn_error 77 "cannot compute sizeof (long) |
5902 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5903 | else |
5904 | ac_cv_sizeof_long=0 | |
5905 | fi | |
212380e3 | 5906 | fi |
631ef239 | 5907 | |
7083c021 AC |
5908 | fi |
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
5910 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 5911 | |
631ef239 | 5912 | |
7083c021 AC |
5913 | |
5914 | cat >>confdefs.h <<_ACEOF | |
5915 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
5916 | _ACEOF | |
5917 | ||
5918 | ||
5919 | # The cast to long int works around a bug in the HP C Compiler | |
5920 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5921 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5922 | # This bug is HP SR number 8606223364. | |
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
5924 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 5925 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
5926 | $as_echo_n "(cached) " >&6 |
5927 | else | |
5928 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
5929 | ||
212380e3 | 5930 | else |
7083c021 AC |
5931 | if test "$ac_cv_type_long_long" = yes; then |
5932 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5933 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
5934 | as_fn_error 77 "cannot compute sizeof (long long) |
5935 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
5936 | else |
5937 | ac_cv_sizeof_long_long=0 | |
5938 | fi | |
212380e3 | 5939 | fi |
212380e3 AC |
5940 | |
5941 | fi | |
7083c021 AC |
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
5943 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
5944 | |
5945 | ||
5946 | ||
7083c021 AC |
5947 | cat >>confdefs.h <<_ACEOF |
5948 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5949 | _ACEOF | |
212380e3 | 5950 | |
212380e3 | 5951 | |
212380e3 | 5952 | |
7083c021 AC |
5953 | |
5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
5955 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 5956 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
5957 | $as_echo_n "(cached) " >&6 |
5958 | else | |
5959 | ac_func_search_save_LIBS=$LIBS | |
5960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 5961 | /* end confdefs.h. */ |
7083c021 AC |
5962 | |
5963 | /* Override any GCC internal prototype to avoid an error. | |
5964 | Use char because int might match the return type of a GCC | |
5965 | builtin and then its argument prototype would still apply. */ | |
5966 | #ifdef __cplusplus | |
5967 | extern "C" | |
5968 | #endif | |
5969 | char socket (); | |
212380e3 AC |
5970 | int |
5971 | main () | |
5972 | { | |
7083c021 | 5973 | return socket (); |
212380e3 AC |
5974 | ; |
5975 | return 0; | |
5976 | } | |
5977 | _ACEOF | |
7083c021 AC |
5978 | for ac_lib in '' socket; do |
5979 | if test -z "$ac_lib"; then | |
5980 | ac_res="none required" | |
5981 | else | |
5982 | ac_res=-l$ac_lib | |
5983 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5984 | fi | |
5985 | if ac_fn_c_try_link "$LINENO"; then : | |
5986 | ac_cv_search_socket=$ac_res | |
5987 | fi | |
5988 | rm -f core conftest.err conftest.$ac_objext \ | |
5989 | conftest$ac_exeext | |
b6d0720c | 5990 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
5991 | break |
5992 | fi | |
5993 | done | |
b6d0720c | 5994 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
5995 | |
5996 | else | |
7083c021 AC |
5997 | ac_cv_search_socket=no |
5998 | fi | |
5999 | rm conftest.$ac_ext | |
6000 | LIBS=$ac_func_search_save_LIBS | |
6001 | fi | |
6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
6003 | $as_echo "$ac_cv_search_socket" >&6; } | |
6004 | ac_res=$ac_cv_search_socket | |
6005 | if test "$ac_res" != no; then : | |
6006 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6007 | |
7083c021 | 6008 | else |
b6d0720c | 6009 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 6010 | fi |
631ef239 | 6011 | |
212380e3 | 6012 | |
7083c021 AC |
6013 | if test x"$SUN" = xyes; then |
6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
6015 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 6016 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
6017 | $as_echo_n "(cached) " >&6 |
6018 | else | |
6019 | ac_func_search_save_LIBS=$LIBS | |
6020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6021 | /* end confdefs.h. */ |
7083c021 AC |
6022 | |
6023 | /* Override any GCC internal prototype to avoid an error. | |
6024 | Use char because int might match the return type of a GCC | |
6025 | builtin and then its argument prototype would still apply. */ | |
6026 | #ifdef __cplusplus | |
6027 | extern "C" | |
6028 | #endif | |
6029 | char inet_ntoa (); | |
212380e3 AC |
6030 | int |
6031 | main () | |
6032 | { | |
7083c021 | 6033 | return inet_ntoa (); |
212380e3 AC |
6034 | ; |
6035 | return 0; | |
6036 | } | |
6037 | _ACEOF | |
7083c021 AC |
6038 | for ac_lib in '' nsl; do |
6039 | if test -z "$ac_lib"; then | |
6040 | ac_res="none required" | |
6041 | else | |
6042 | ac_res=-l$ac_lib | |
6043 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6044 | fi | |
6045 | if ac_fn_c_try_link "$LINENO"; then : | |
6046 | ac_cv_search_inet_ntoa=$ac_res | |
6047 | fi | |
6048 | rm -f core conftest.err conftest.$ac_objext \ | |
6049 | conftest$ac_exeext | |
b6d0720c | 6050 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
6051 | break |
6052 | fi | |
6053 | done | |
b6d0720c | 6054 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
6055 | |
6056 | else | |
7083c021 AC |
6057 | ac_cv_search_inet_ntoa=no |
6058 | fi | |
6059 | rm conftest.$ac_ext | |
6060 | LIBS=$ac_func_search_save_LIBS | |
6061 | fi | |
6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
6063 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
6064 | ac_res=$ac_cv_search_inet_ntoa | |
6065 | if test "$ac_res" != no; then : | |
6066 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6067 | |
7083c021 | 6068 | else |
b6d0720c | 6069 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 6070 | fi |
631ef239 | 6071 | |
7083c021 | 6072 | fi |
212380e3 | 6073 | |
7083c021 AC |
6074 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
6075 | #include <sys/socket.h> | |
6076 | " | |
b6d0720c | 6077 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
6078 | |
6079 | else | |
6080 | ||
7083c021 | 6081 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 6082 | |
7083c021 | 6083 | fi |
212380e3 AC |
6084 | |
6085 | ||
7083c021 AC |
6086 | # Check whether --enable-ipv6 was given. |
6087 | if test "${enable_ipv6+set}" = set; then : | |
6088 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 6089 | else |
7083c021 AC |
6090 | ipv6=no |
6091 | fi | |
212380e3 | 6092 | |
212380e3 | 6093 | |
7083c021 AC |
6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
6095 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 6096 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
6097 | $as_echo_n "(cached) " >&6 |
6098 | else | |
6099 | ac_func_search_save_LIBS=$LIBS | |
6100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6101 | /* end confdefs.h. */ | |
212380e3 | 6102 | |
631ef239 AC |
6103 | /* Override any GCC internal prototype to avoid an error. |
6104 | Use char because int might match the return type of a GCC | |
6105 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6106 | #ifdef __cplusplus |
6107 | extern "C" | |
212380e3 | 6108 | #endif |
7083c021 | 6109 | char crypt (); |
212380e3 AC |
6110 | int |
6111 | main () | |
6112 | { | |
7083c021 | 6113 | return crypt (); |
212380e3 AC |
6114 | ; |
6115 | return 0; | |
6116 | } | |
6117 | _ACEOF | |
7083c021 AC |
6118 | for ac_lib in '' crypt descrypt; do |
6119 | if test -z "$ac_lib"; then | |
6120 | ac_res="none required" | |
6121 | else | |
6122 | ac_res=-l$ac_lib | |
6123 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6124 | fi | |
6125 | if ac_fn_c_try_link "$LINENO"; then : | |
6126 | ac_cv_search_crypt=$ac_res | |
6127 | fi | |
6128 | rm -f core conftest.err conftest.$ac_objext \ | |
6129 | conftest$ac_exeext | |
b6d0720c | 6130 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
6131 | break |
6132 | fi | |
6133 | done | |
b6d0720c | 6134 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 6135 | |
212380e3 | 6136 | else |
7083c021 AC |
6137 | ac_cv_search_crypt=no |
6138 | fi | |
6139 | rm conftest.$ac_ext | |
6140 | LIBS=$ac_func_search_save_LIBS | |
6141 | fi | |
6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
6143 | $as_echo "$ac_cv_search_crypt" >&6; } | |
6144 | ac_res=$ac_cv_search_crypt | |
6145 | if test "$ac_res" != no; then : | |
6146 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 6147 | |
212380e3 | 6148 | fi |
631ef239 | 6149 | |
7083c021 AC |
6150 | |
6151 | CRYPT_LIB=$ac_cv_search_crypt | |
6152 | ||
6153 | if test "$CRYPT_LIB" = "none required"; then | |
6154 | unset CRYPT_LIB | |
6155 | elif test "$CRYPT_LIB" = no; then | |
6156 | unset CRYPT_LIB | |
212380e3 | 6157 | fi |
7083c021 AC |
6158 | |
6159 | ||
6160 | ||
6161 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
6162 | VICONF=viconf | |
6163 | else | |
6164 | VICONF="" | |
6165 | fi | |
6166 | ||
6167 | ||
6168 | ||
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
6170 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
b6d0720c | 6171 | if ${gcc_cv_header_string+:} false; then : |
7083c021 AC |
6172 | $as_echo_n "(cached) " >&6 |
6173 | else | |
6174 | ||
6175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6176 | /* end confdefs.h. */ | |
6177 | #include <string.h> | |
6178 | #include <strings.h> | |
212380e3 | 6179 | _ACEOF |
7083c021 AC |
6180 | if ac_fn_c_try_compile "$LINENO"; then : |
6181 | gcc_cv_header_string=yes | |
6182 | else | |
6183 | gcc_cv_header_string=no | |
6184 | fi | |
6185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6186 | |
6187 | fi | |
7083c021 AC |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 |
6189 | $as_echo "$gcc_cv_header_string" >&6; } | |
212380e3 | 6190 | |
7083c021 AC |
6191 | if test "$gcc_cv_header_string" = "yes"; then |
6192 | ||
6193 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
6194 | ||
6195 | fi | |
212380e3 | 6196 | |
7083c021 AC |
6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
6198 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 6199 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
6200 | $as_echo_n "(cached) " >&6 |
6201 | else | |
6202 | ac_cv_c_bigendian=unknown | |
6203 | # See if we're dealing with a universal compiler. | |
6204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6205 | /* end confdefs.h. */ | |
6206 | #ifndef __APPLE_CC__ | |
6207 | not a universal capable compiler | |
6208 | #endif | |
6209 | typedef int dummy; | |
6210 | ||
6211 | _ACEOF | |
6212 | if ac_fn_c_try_compile "$LINENO"; then : | |
6213 | ||
6214 | # Check for potential -arch flags. It is not universal unless | |
6215 | # there are at least two -arch flags with different values. | |
6216 | ac_arch= | |
6217 | ac_prev= | |
6218 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6219 | if test -n "$ac_prev"; then | |
6220 | case $ac_word in | |
6221 | i?86 | x86_64 | ppc | ppc64) | |
6222 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6223 | ac_arch=$ac_word | |
6224 | else | |
6225 | ac_cv_c_bigendian=universal | |
6226 | break | |
6227 | fi | |
6228 | ;; | |
6229 | esac | |
6230 | ac_prev= | |
6231 | elif test "x$ac_word" = "x-arch"; then | |
6232 | ac_prev=arch | |
6233 | fi | |
6234 | done | |
212380e3 | 6235 | fi |
7083c021 AC |
6236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6237 | if test $ac_cv_c_bigendian = unknown; then | |
6238 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6240 | /* end confdefs.h. */ | |
6241 | #include <sys/types.h> | |
6242 | #include <sys/param.h> | |
6243 | ||
6244 | int | |
6245 | main () | |
6246 | { | |
6247 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
6248 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6249 | && LITTLE_ENDIAN) | |
6250 | bogus endian macros | |
6251 | #endif | |
6252 | ||
6253 | ; | |
6254 | return 0; | |
6255 | } | |
6256 | _ACEOF | |
6257 | if ac_fn_c_try_compile "$LINENO"; then : | |
6258 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6260 | /* end confdefs.h. */ | |
6261 | #include <sys/types.h> | |
6262 | #include <sys/param.h> | |
6263 | ||
6264 | int | |
6265 | main () | |
6266 | { | |
6267 | #if BYTE_ORDER != BIG_ENDIAN | |
6268 | not big endian | |
6269 | #endif | |
212380e3 | 6270 | |
7083c021 AC |
6271 | ; |
6272 | return 0; | |
6273 | } | |
6274 | _ACEOF | |
6275 | if ac_fn_c_try_compile "$LINENO"; then : | |
6276 | ac_cv_c_bigendian=yes | |
212380e3 | 6277 | else |
7083c021 AC |
6278 | ac_cv_c_bigendian=no |
6279 | fi | |
6280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6281 | fi | |
6282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6283 | fi | |
6284 | if test $ac_cv_c_bigendian = unknown; then | |
6285 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6287 | /* end confdefs.h. */ | |
6288 | #include <limits.h> | |
6289 | ||
6290 | int | |
6291 | main () | |
6292 | { | |
6293 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6294 | bogus endian macros | |
6295 | #endif | |
6296 | ||
6297 | ; | |
6298 | return 0; | |
6299 | } | |
212380e3 | 6300 | _ACEOF |
7083c021 AC |
6301 | if ac_fn_c_try_compile "$LINENO"; then : |
6302 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6304 | /* end confdefs.h. */ |
7083c021 AC |
6305 | #include <limits.h> |
6306 | ||
212380e3 AC |
6307 | int |
6308 | main () | |
6309 | { | |
7083c021 AC |
6310 | #ifndef _BIG_ENDIAN |
6311 | not big endian | |
6312 | #endif | |
6313 | ||
212380e3 AC |
6314 | ; |
6315 | return 0; | |
6316 | } | |
6317 | _ACEOF | |
7083c021 AC |
6318 | if ac_fn_c_try_compile "$LINENO"; then : |
6319 | ac_cv_c_bigendian=yes | |
212380e3 | 6320 | else |
7083c021 | 6321 | ac_cv_c_bigendian=no |
212380e3 | 6322 | fi |
631ef239 | 6323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6324 | fi |
7083c021 AC |
6325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6326 | fi | |
6327 | if test $ac_cv_c_bigendian = unknown; then | |
6328 | # Compile a test program. | |
6329 | if test "$cross_compiling" = yes; then : | |
6330 | # Try to guess by grepping values from an object file. | |
6331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6332 | /* end confdefs.h. */ | |
6333 | short int ascii_mm[] = | |
6334 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6335 | short int ascii_ii[] = | |
6336 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6337 | int use_ascii (int i) { | |
6338 | return ascii_mm[i] + ascii_ii[i]; | |
6339 | } | |
6340 | short int ebcdic_ii[] = | |
6341 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6342 | short int ebcdic_mm[] = | |
6343 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6344 | int use_ebcdic (int i) { | |
6345 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6346 | } | |
6347 | extern int foo; | |
212380e3 | 6348 | |
7083c021 AC |
6349 | int |
6350 | main () | |
6351 | { | |
6352 | return use_ascii (foo) == use_ebcdic (foo); | |
6353 | ; | |
6354 | return 0; | |
6355 | } | |
212380e3 | 6356 | _ACEOF |
7083c021 AC |
6357 | if ac_fn_c_try_compile "$LINENO"; then : |
6358 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6359 | ac_cv_c_bigendian=yes | |
6360 | fi | |
6361 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6362 | if test "$ac_cv_c_bigendian" = unknown; then | |
6363 | ac_cv_c_bigendian=no | |
6364 | else | |
6365 | # finding both strings is unlikely to happen, but who knows? | |
6366 | ac_cv_c_bigendian=unknown | |
6367 | fi | |
6368 | fi | |
6369 | fi | |
6370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6371 | else | |
6372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
6373 | /* end confdefs.h. */ |
6374 | $ac_includes_default | |
6375 | int | |
6376 | main () | |
6377 | { | |
7083c021 AC |
6378 | |
6379 | /* Are we little or big endian? From Harbison&Steele. */ | |
6380 | union | |
6381 | { | |
6382 | long int l; | |
6383 | char c[sizeof (long int)]; | |
6384 | } u; | |
6385 | u.l = 1; | |
6386 | return u.c[sizeof (long int) - 1] == 1; | |
6387 | ||
212380e3 AC |
6388 | ; |
6389 | return 0; | |
6390 | } | |
6391 | _ACEOF | |
7083c021 AC |
6392 | if ac_fn_c_try_run "$LINENO"; then : |
6393 | ac_cv_c_bigendian=no | |
212380e3 | 6394 | else |
7083c021 | 6395 | ac_cv_c_bigendian=yes |
212380e3 | 6396 | fi |
7083c021 AC |
6397 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6398 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6399 | fi |
212380e3 | 6400 | |
7083c021 AC |
6401 | fi |
6402 | fi | |
6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6404 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6405 | case $ac_cv_c_bigendian in #( | |
6406 | yes) | |
6407 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6408 | ;; #( | |
6409 | no) | |
6410 | ;; #( | |
6411 | universal) | |
212380e3 | 6412 | |
7083c021 | 6413 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 6414 | |
7083c021 AC |
6415 | ;; #( |
6416 | *) | |
b6d0720c | 6417 | as_fn_error $? "unknown endianness |
7083c021 AC |
6418 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
6419 | esac | |
212380e3 | 6420 | |
212380e3 | 6421 | |
7083c021 | 6422 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 6423 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 6424 | |
7083c021 | 6425 | else |
b6d0720c | 6426 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 6427 | fi |
212380e3 AC |
6428 | |
6429 | ||
212380e3 AC |
6430 | |
6431 | ||
7083c021 | 6432 | if test "$ac_cv_c_compiler_gnu" = yes; then |
212380e3 | 6433 | |
7083c021 AC |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 |
6435 | $as_echo_n "checking for strlcpy... " >&6; } | |
6436 | save_CFLAGS=$CFLAGS | |
6437 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
212380e3 | 6438 | |
7083c021 | 6439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6440 | /* end confdefs.h. */ |
7083c021 AC |
6441 | #include <string.h> |
6442 | #include <stdlib.h> | |
212380e3 AC |
6443 | int |
6444 | main () | |
6445 | { | |
7083c021 AC |
6446 | char *a = malloc(6); |
6447 | strlcpy(a, "hello", 6); | |
6448 | ||
212380e3 AC |
6449 | ; |
6450 | return 0; | |
6451 | } | |
6452 | _ACEOF | |
7083c021 AC |
6453 | if ac_fn_c_try_link "$LINENO"; then : |
6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6455 | $as_echo "yes" >&6; } | |
212380e3 | 6456 | |
7083c021 | 6457 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
631ef239 | 6458 | |
212380e3 | 6459 | else |
7083c021 AC |
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6461 | $as_echo "no" >&6; } | |
212380e3 | 6462 | |
7083c021 AC |
6463 | fi |
6464 | rm -f core conftest.err conftest.$ac_objext \ | |
6465 | conftest$ac_exeext conftest.$ac_ext | |
6466 | ||
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 | |
6468 | $as_echo_n "checking for strlcat... " >&6; } | |
6469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 6470 | /* end confdefs.h. */ |
7083c021 AC |
6471 | #include <string.h> |
6472 | #include <stdlib.h> | |
212380e3 AC |
6473 | int |
6474 | main () | |
6475 | { | |
7083c021 AC |
6476 | char *a = malloc(6); |
6477 | a[0] = '\0'; | |
6478 | strlcat(a, "hello", 6); | |
6479 | ||
212380e3 AC |
6480 | ; |
6481 | return 0; | |
6482 | } | |
6483 | _ACEOF | |
7083c021 AC |
6484 | if ac_fn_c_try_link "$LINENO"; then : |
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6486 | $as_echo "yes" >&6; } | |
631ef239 | 6487 | |
7083c021 | 6488 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h |
212380e3 | 6489 | |
7083c021 AC |
6490 | else |
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6492 | $as_echo "no" >&6; } | |
212380e3 | 6493 | |
7083c021 AC |
6494 | fi |
6495 | rm -f core conftest.err conftest.$ac_objext \ | |
6496 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6497 | |
7083c021 | 6498 | CFLAGS=$save_CFLAGS |
212380e3 AC |
6499 | |
6500 | else | |
6501 | ||
212380e3 | 6502 | |
7083c021 AC |
6503 | for ac_func in strlcat strlcpy |
6504 | do : | |
6505 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6506 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6507 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
6508 | cat >>confdefs.h <<_ACEOF |
6509 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
6510 | _ACEOF |
6511 | ||
212380e3 | 6512 | fi |
7083c021 | 6513 | done |
212380e3 AC |
6514 | |
6515 | ||
6516 | fi | |
6517 | ||
7083c021 | 6518 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 6519 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 6520 | |
212380e3 | 6521 | else |
212380e3 | 6522 | |
7083c021 | 6523 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 6524 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 6525 | |
631ef239 | 6526 | |
7083c021 | 6527 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 6528 | |
212380e3 | 6529 | |
7083c021 | 6530 | else |
212380e3 | 6531 | |
7083c021 AC |
6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
6533 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 6534 | |
7083c021 | 6535 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 6536 | |
212380e3 | 6537 | |
212380e3 | 6538 | fi |
631ef239 | 6539 | |
7083c021 | 6540 | |
212380e3 | 6541 | fi |
7083c021 AC |
6542 | |
6543 | ||
6544 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 6545 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 6546 | |
212380e3 AC |
6547 | else |
6548 | ||
7083c021 | 6549 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 6550 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 6551 | |
7083c021 AC |
6552 | |
6553 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
6554 | |
6555 | ||
212380e3 | 6556 | else |
212380e3 | 6557 | |
7083c021 AC |
6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
6559 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 6560 | |
7083c021 | 6561 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 6562 | |
7083c021 AC |
6563 | |
6564 | fi | |
212380e3 AC |
6565 | |
6566 | ||
6567 | fi | |
6568 | ||
6569 | ||
7083c021 AC |
6570 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
6571 | #include <netinet/in.h> | |
6572 | " | |
b6d0720c | 6573 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 6574 | |
7083c021 | 6575 | else |
212380e3 | 6576 | |
7083c021 | 6577 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 6578 | |
7083c021 | 6579 | fi |
212380e3 AC |
6580 | |
6581 | ||
7083c021 AC |
6582 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
6583 | #include <sys/socket.h> | |
6584 | " | |
b6d0720c | 6585 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 6586 | |
212380e3 | 6587 | else |
212380e3 | 6588 | |
7083c021 | 6589 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 6590 | |
7083c021 | 6591 | fi |
212380e3 | 6592 | |
212380e3 | 6593 | |
7083c021 | 6594 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 6595 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 6596 | |
7083c021 AC |
6597 | cat >>confdefs.h <<_ACEOF |
6598 | #define HAVE_UINTPTR_T 1 | |
6599 | _ACEOF | |
212380e3 | 6600 | |
631ef239 | 6601 | |
212380e3 | 6602 | fi |
7083c021 AC |
6603 | |
6604 | ||
6605 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
6606 | do : | |
6607 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6608 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6609 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 6610 | cat >>confdefs.h <<_ACEOF |
7083c021 | 6611 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
6612 | _ACEOF |
6613 | ||
6614 | fi | |
6615 | done | |
6616 | ||
6617 | ||
6618 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6619 | # for constant arguments. Useless! | |
7083c021 AC |
6620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
6621 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 6622 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 6623 | $as_echo_n "(cached) " >&6 |
212380e3 | 6624 | else |
7083c021 | 6625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6626 | /* end confdefs.h. */ |
6627 | #include <alloca.h> | |
6628 | int | |
6629 | main () | |
6630 | { | |
6631 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 6632 | if (p) return 0; |
212380e3 AC |
6633 | ; |
6634 | return 0; | |
6635 | } | |
6636 | _ACEOF | |
7083c021 | 6637 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6638 | ac_cv_working_alloca_h=yes |
6639 | else | |
7083c021 | 6640 | ac_cv_working_alloca_h=no |
212380e3 | 6641 | fi |
7083c021 AC |
6642 | rm -f core conftest.err conftest.$ac_objext \ |
6643 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6644 | fi |
7083c021 AC |
6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
6646 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
6647 | if test $ac_cv_working_alloca_h = yes; then |
6648 | ||
7083c021 | 6649 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
6650 | |
6651 | fi | |
6652 | ||
7083c021 AC |
6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
6654 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 6655 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 6656 | $as_echo_n "(cached) " >&6 |
212380e3 | 6657 | else |
7083c021 | 6658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6659 | /* end confdefs.h. */ |
6660 | #ifdef __GNUC__ | |
6661 | # define alloca __builtin_alloca | |
6662 | #else | |
6663 | # ifdef _MSC_VER | |
6664 | # include <malloc.h> | |
6665 | # define alloca _alloca | |
6666 | # else | |
631ef239 | 6667 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
6668 | # include <alloca.h> |
6669 | # else | |
6670 | # ifdef _AIX | |
6671 | #pragma alloca | |
6672 | # else | |
6673 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 6674 | void *alloca (size_t); |
212380e3 AC |
6675 | # endif |
6676 | # endif | |
6677 | # endif | |
6678 | # endif | |
6679 | #endif | |
6680 | ||
6681 | int | |
6682 | main () | |
6683 | { | |
6684 | char *p = (char *) alloca (1); | |
631ef239 | 6685 | if (p) return 0; |
212380e3 AC |
6686 | ; |
6687 | return 0; | |
6688 | } | |
6689 | _ACEOF | |
7083c021 | 6690 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6691 | ac_cv_func_alloca_works=yes |
6692 | else | |
7083c021 | 6693 | ac_cv_func_alloca_works=no |
212380e3 | 6694 | fi |
7083c021 AC |
6695 | rm -f core conftest.err conftest.$ac_objext \ |
6696 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 6697 | fi |
7083c021 AC |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
6699 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
6700 | |
6701 | if test $ac_cv_func_alloca_works = yes; then | |
6702 | ||
7083c021 | 6703 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
6704 | |
6705 | else | |
6706 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6707 | # that cause trouble. Some versions do not even contain alloca or | |
6708 | # contain a buggy version. If you still want to use their alloca, | |
6709 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6710 | ||
631ef239 | 6711 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 6712 | |
7083c021 | 6713 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
6714 | |
6715 | ||
7083c021 AC |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
6717 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 6718 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 6719 | $as_echo_n "(cached) " >&6 |
212380e3 | 6720 | else |
7083c021 | 6721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6722 | /* end confdefs.h. */ |
631ef239 | 6723 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
6724 | webecray |
6725 | #else | |
6726 | wenotbecray | |
6727 | #endif | |
6728 | ||
6729 | _ACEOF | |
6730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 6731 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
6732 | ac_cv_os_cray=yes |
6733 | else | |
6734 | ac_cv_os_cray=no | |
6735 | fi | |
6736 | rm -f conftest* | |
6737 | ||
6738 | fi | |
7083c021 AC |
6739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
6740 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
6741 | if test $ac_cv_os_cray = yes; then |
6742 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
6743 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6744 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 6745 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
6746 | |
6747 | cat >>confdefs.h <<_ACEOF | |
6748 | #define CRAY_STACKSEG_END $ac_func | |
6749 | _ACEOF | |
6750 | ||
6751 | break | |
6752 | fi | |
6753 | ||
6754 | done | |
6755 | fi | |
6756 | ||
7083c021 AC |
6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
6758 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 6759 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 6760 | $as_echo_n "(cached) " >&6 |
212380e3 | 6761 | else |
7083c021 | 6762 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
6763 | ac_cv_c_stack_direction=0 |
6764 | else | |
7083c021 | 6765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 6766 | /* end confdefs.h. */ |
631ef239 | 6767 | $ac_includes_default |
212380e3 AC |
6768 | int |
6769 | find_stack_direction () | |
6770 | { | |
6771 | static char *addr = 0; | |
6772 | auto char dummy; | |
6773 | if (addr == 0) | |
6774 | { | |
6775 | addr = &dummy; | |
6776 | return find_stack_direction (); | |
6777 | } | |
6778 | else | |
6779 | return (&dummy > addr) ? 1 : -1; | |
6780 | } | |
6781 | ||
6782 | int | |
6783 | main () | |
6784 | { | |
631ef239 | 6785 | return find_stack_direction () < 0; |
212380e3 AC |
6786 | } |
6787 | _ACEOF | |
7083c021 | 6788 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
6789 | ac_cv_c_stack_direction=1 |
6790 | else | |
7083c021 | 6791 | ac_cv_c_stack_direction=-1 |
212380e3 | 6792 | fi |
7083c021 AC |
6793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6794 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 6795 | fi |
631ef239 | 6796 | |
212380e3 | 6797 | fi |
7083c021 AC |
6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
6799 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
6800 | cat >>confdefs.h <<_ACEOF |
6801 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6802 | _ACEOF | |
6803 | ||
6804 | ||
6805 | fi | |
6806 | ||
6807 | ||
6808 | ||
7083c021 | 6809 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 6810 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 6811 | |
212380e3 | 6812 | else |
7083c021 AC |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
6814 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 6815 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 6816 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
6817 | else |
6818 | ac_check_lib_save_LIBS=$LIBS | |
6819 | LIBS="-lrt $LIBS" | |
7083c021 | 6820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6821 | /* end confdefs.h. */ |
6822 | ||
631ef239 AC |
6823 | /* Override any GCC internal prototype to avoid an error. |
6824 | Use char because int might match the return type of a GCC | |
6825 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6826 | #ifdef __cplusplus |
6827 | extern "C" | |
6828 | #endif | |
212380e3 AC |
6829 | char nanosleep (); |
6830 | int | |
6831 | main () | |
6832 | { | |
631ef239 | 6833 | return nanosleep (); |
212380e3 AC |
6834 | ; |
6835 | return 0; | |
6836 | } | |
6837 | _ACEOF | |
7083c021 | 6838 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6839 | ac_cv_lib_rt_nanosleep=yes |
6840 | else | |
7083c021 | 6841 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 6842 | fi |
7083c021 AC |
6843 | rm -f core conftest.err conftest.$ac_objext \ |
6844 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
6845 | LIBS=$ac_check_lib_save_LIBS |
6846 | fi | |
7083c021 AC |
6847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
6848 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 6849 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
6850 | LIBS="${LIBS} -lrt" |
6851 | else | |
7083c021 AC |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
6853 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 6854 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 6855 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
6856 | else |
6857 | ac_check_lib_save_LIBS=$LIBS | |
6858 | LIBS="-lposix4 $LIBS" | |
7083c021 | 6859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6860 | /* end confdefs.h. */ |
6861 | ||
631ef239 AC |
6862 | /* Override any GCC internal prototype to avoid an error. |
6863 | Use char because int might match the return type of a GCC | |
6864 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6865 | #ifdef __cplusplus |
6866 | extern "C" | |
6867 | #endif | |
212380e3 AC |
6868 | char nanosleep (); |
6869 | int | |
6870 | main () | |
6871 | { | |
631ef239 | 6872 | return nanosleep (); |
212380e3 AC |
6873 | ; |
6874 | return 0; | |
6875 | } | |
6876 | _ACEOF | |
7083c021 | 6877 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
6878 | ac_cv_lib_posix4_nanosleep=yes |
6879 | else | |
7083c021 | 6880 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 6881 | fi |
7083c021 AC |
6882 | rm -f core conftest.err conftest.$ac_objext \ |
6883 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
6884 | LIBS=$ac_check_lib_save_LIBS |
6885 | fi | |
7083c021 AC |
6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
6887 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 6888 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
6889 | LIBS="${LIBS} -lposix4" |
6890 | ||
6891 | fi | |
6892 | ||
6893 | fi | |
6894 | ||
6895 | fi | |
6896 | ||
6897 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
6898 | then | |
7083c021 AC |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
6900 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
6901 | else |
6902 | ||
7083c021 | 6903 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
6904 | |
6905 | fi | |
6906 | ||
7083c021 AC |
6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
6908 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 6909 | # Check whether --enable-openssl was given. |
7083c021 | 6910 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 6911 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
6912 | else |
6913 | cf_enable_openssl="auto" | |
631ef239 AC |
6914 | fi |
6915 | ||
212380e3 AC |
6916 | |
6917 | if test "$cf_enable_openssl" != "no" ; then | |
6918 | cf_openssl_basedir="" | |
6919 | if test "$cf_enable_openssl" != "auto" && | |
6920 | test "$cf_enable_openssl" != "yes" ; then | |
6921 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
6922 | else | |
6923 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
6924 | /usr/local/openssl ; do | |
6925 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
6926 | cf_openssl_basedir="${dirs}" | |
6927 | break | |
6928 | fi | |
6929 | done | |
6930 | unset dirs | |
6931 | fi | |
6932 | if test ! -z "$cf_openssl_basedir"; then | |
6933 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
6934 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
6935 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
6936 | else | |
6937 | cf_openssl_basedir="" | |
6938 | fi | |
6939 | else | |
6940 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
6941 | cf_openssl_basedir="/usr" | |
6942 | fi | |
6943 | fi | |
6944 | ||
6945 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
6947 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
6948 | cf_enable_openssl="yes" |
6949 | else | |
7083c021 AC |
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
6951 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
6952 | cf_enable_openssl="no" |
6953 | fi | |
6954 | unset cf_openssl_basedir | |
6955 | else | |
7083c021 AC |
6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
6957 | $as_echo "disabled" >&6; } | |
212380e3 AC |
6958 | fi |
6959 | ||
6960 | save_CPPFLAGS="$CPPFLAGS" | |
6961 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
6962 | save_LIBS="$LIBS" | |
6963 | LIBS="$LIBS $SSL_LIBS" | |
6964 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
6966 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
6967 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
6968 | cf_openssl_version_ok=no |
6969 | else | |
7083c021 | 6970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
6971 | /* end confdefs.h. */ |
6972 | #include <openssl/opensslv.h> | |
6973 | #include <stdlib.h> | |
6974 | int | |
6975 | main () | |
6976 | { | |
6977 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
6978 | exit(0); else exit(1); | |
6979 | ; | |
6980 | return 0; | |
6981 | } | |
6982 | _ACEOF | |
7083c021 | 6983 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
6984 | cf_openssl_version_ok=yes |
6985 | else | |
7083c021 | 6986 | cf_openssl_version_ok=no |
212380e3 | 6987 | fi |
7083c021 AC |
6988 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6989 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
6990 | fi |
6991 | ||
631ef239 | 6992 | |
212380e3 | 6993 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
6995 | $as_echo "found" >&6; } | |
212380e3 AC |
6996 | |
6997 | ENCSPEED=encspeed | |
6998 | ||
6999 | ||
7000 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
7002 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 7003 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 7004 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7005 | else |
7006 | ac_check_lib_save_LIBS=$LIBS | |
7007 | LIBS="-lcrypto $LIBS" | |
7083c021 | 7008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7009 | /* end confdefs.h. */ |
7010 | ||
631ef239 AC |
7011 | /* Override any GCC internal prototype to avoid an error. |
7012 | Use char because int might match the return type of a GCC | |
7013 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7014 | #ifdef __cplusplus |
7015 | extern "C" | |
7016 | #endif | |
212380e3 AC |
7017 | char RSA_free (); |
7018 | int | |
7019 | main () | |
7020 | { | |
631ef239 | 7021 | return RSA_free (); |
212380e3 AC |
7022 | ; |
7023 | return 0; | |
7024 | } | |
7025 | _ACEOF | |
7083c021 | 7026 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7027 | ac_cv_lib_crypto_RSA_free=yes |
7028 | else | |
7083c021 | 7029 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 7030 | fi |
7083c021 AC |
7031 | rm -f core conftest.err conftest.$ac_objext \ |
7032 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7033 | LIBS=$ac_check_lib_save_LIBS |
7034 | fi | |
7083c021 AC |
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
7036 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 7037 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
7038 | cat >>confdefs.h <<_ACEOF |
7039 | #define HAVE_LIBCRYPTO 1 | |
7040 | _ACEOF | |
7041 | ||
7042 | LIBS="-lcrypto $LIBS" | |
7043 | ||
7044 | fi | |
7045 | ||
7046 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
7047 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
7048 | else | |
7083c021 AC |
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
7050 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
7051 | fi |
7052 | fi | |
7053 | ||
7054 | CPPFLAGS="$save_CPPFLAGS" | |
7055 | LIBS="$save_LIBS" | |
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
631ef239 | 7061 | # Check whether --with-zlib-path was given. |
7083c021 | 7062 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
7063 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
7064 | fi | |
212380e3 | 7065 | |
7083c021 AC |
7066 | |
7067 | # Check whether --enable-zlib was given. | |
7068 | if test "${enable_zlib+set}" = set; then : | |
7069 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 7070 | else |
7083c021 | 7071 | zlib=yes |
212380e3 | 7072 | fi |
212380e3 | 7073 | |
212380e3 | 7074 | |
7083c021 AC |
7075 | if test "$zlib" = yes; then |
7076 | ||
7077 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 7078 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
7079 | |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
7081 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 7082 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 7083 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7084 | else |
7085 | ac_check_lib_save_LIBS=$LIBS | |
7086 | LIBS="-lz $LIBS" | |
7083c021 | 7087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7088 | /* end confdefs.h. */ |
7089 | ||
631ef239 AC |
7090 | /* Override any GCC internal prototype to avoid an error. |
7091 | Use char because int might match the return type of a GCC | |
7092 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7093 | #ifdef __cplusplus |
7094 | extern "C" | |
7095 | #endif | |
212380e3 AC |
7096 | char zlibVersion (); |
7097 | int | |
7098 | main () | |
7099 | { | |
631ef239 | 7100 | return zlibVersion (); |
212380e3 AC |
7101 | ; |
7102 | return 0; | |
7103 | } | |
7104 | _ACEOF | |
7083c021 | 7105 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
7106 | ac_cv_lib_z_zlibVersion=yes |
7107 | else | |
7083c021 | 7108 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 7109 | fi |
7083c021 AC |
7110 | rm -f core conftest.err conftest.$ac_objext \ |
7111 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
7112 | LIBS=$ac_check_lib_save_LIBS |
7113 | fi | |
7083c021 AC |
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
7115 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 7116 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
7117 | |
7118 | ZLIB_LD=-lz | |
7119 | ||
7120 | ||
7083c021 | 7121 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
7122 | |
7123 | ||
7124 | else | |
7125 | zlib=no | |
7126 | fi | |
7127 | ||
7128 | ||
7129 | else | |
7130 | zlib=no | |
7131 | fi | |
7132 | ||
7133 | ||
7134 | ||
7135 | fi | |
7136 | ||
7137 | ||
c1c5fdc4 | 7138 | # Check whether --enable-ports was given. |
7083c021 | 7139 | if test "${enable_ports+set}" = set; then : |
c1c5fdc4 AC |
7140 | enableval=$enable_ports; if test $enableval = yes; then |
7141 | SELECT_TYPE_EXPLICIT="ports" | |
7142 | else | |
7143 | use_ports=no | |
7144 | fi | |
7145 | ||
7146 | fi | |
7147 | ||
7148 | ||
631ef239 | 7149 | # Check whether --enable-poll was given. |
7083c021 | 7150 | if test "${enable_poll+set}" = set; then : |
631ef239 | 7151 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
7152 | SELECT_TYPE_EXPLICIT="poll" |
7153 | else | |
7154 | use_poll=no | |
7155 | fi | |
7156 | ||
631ef239 AC |
7157 | fi |
7158 | ||
212380e3 | 7159 | |
631ef239 | 7160 | # Check whether --enable-select was given. |
7083c021 | 7161 | if test "${enable_select+set}" = set; then : |
631ef239 | 7162 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
7163 | SELECT_TYPE_EXPLICIT="select" |
7164 | else | |
7165 | use_select=no | |
7166 | fi | |
7167 | ||
631ef239 AC |
7168 | fi |
7169 | ||
212380e3 | 7170 | |
631ef239 | 7171 | # Check whether --enable-kqueue was given. |
7083c021 | 7172 | if test "${enable_kqueue+set}" = set; then : |
631ef239 | 7173 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
7174 | SELECT_TYPE_EXPLICIT="kqueue" |
7175 | else | |
7176 | use_kqueue=no | |
7177 | fi | |
7178 | ||
631ef239 AC |
7179 | fi |
7180 | ||
212380e3 | 7181 | |
631ef239 | 7182 | # Check whether --enable-epoll was given. |
7083c021 | 7183 | if test "${enable_epoll+set}" = set; then : |
631ef239 | 7184 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 7185 | SELECT_TYPE_EXPLICIT="epoll" |
7083c021 AC |
7186 | for ac_func in epoll_ctl |
7187 | do : | |
7188 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 7189 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
3ad1a781 | 7190 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7191 | #define HAVE_EPOLL_CTL 1 |
3ad1a781 JT |
7192 | _ACEOF |
7193 | haveepoll=yes | |
7194 | else | |
7195 | haveepoll=no | |
7196 | fi | |
7197 | done | |
7198 | ||
212380e3 AC |
7199 | else |
7200 | use_epoll=no | |
7201 | fi | |
7202 | ||
631ef239 AC |
7203 | fi |
7204 | ||
212380e3 AC |
7205 | |
7206 | ||
7083c021 AC |
7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5 |
7208 | $as_echo_n "checking whether to modify confdir... " >&6; } | |
212380e3 | 7209 | |
631ef239 | 7210 | # Check whether --with-confdir was given. |
7083c021 | 7211 | if test "${with_confdir+set}" = set; then : |
631ef239 | 7212 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7214 | $as_echo "yes" >&6; } | |
212380e3 AC |
7215 | |
7216 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7217 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7218 | ac_define_dir=`eval echo $confdir` | |
7219 | ac_define_dir=`eval echo $ac_define_dir` | |
7220 | ETC_DIR="$ac_define_dir" | |
7221 | ||
7222 | ||
7223 | cat >>confdefs.h <<_ACEOF | |
7224 | #define ETC_DIR "$ac_define_dir" | |
7225 | _ACEOF | |
7226 | ||
7227 | ||
7228 | ||
7229 | ||
7230 | confdir=`( | |
7231 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7232 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7233 | eval echo \""$confdir"\" | |
7234 | )` | |
7235 | ||
7236 | ||
7237 | else | |
7238 | confdir='${prefix}/etc' | |
7083c021 AC |
7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7240 | $as_echo "no" >&6; } | |
212380e3 AC |
7241 | |
7242 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7243 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7244 | ac_define_dir=`eval echo $confdir` | |
7245 | ac_define_dir=`eval echo $ac_define_dir` | |
7246 | ETC_DIR="$ac_define_dir" | |
7247 | ||
7248 | ||
7249 | cat >>confdefs.h <<_ACEOF | |
7250 | #define ETC_DIR "$ac_define_dir" | |
7251 | _ACEOF | |
7252 | ||
7253 | ||
7254 | ||
7255 | ||
7256 | confdir=`( | |
7257 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7258 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7259 | eval echo \""$confdir"\" | |
7260 | )` | |
7261 | ||
7262 | ||
7263 | ||
631ef239 AC |
7264 | fi |
7265 | ||
212380e3 AC |
7266 | |
7267 | ||
7083c021 AC |
7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
7269 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 7270 | |
631ef239 | 7271 | # Check whether --with-logdir was given. |
7083c021 | 7272 | if test "${with_logdir+set}" = set; then : |
631ef239 | 7273 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7275 | $as_echo "yes" >&6; } | |
212380e3 AC |
7276 | |
7277 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7278 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7279 | ac_define_dir=`eval echo $logdir` | |
7280 | ac_define_dir=`eval echo $ac_define_dir` | |
7281 | LOG_DIR="$ac_define_dir" | |
7282 | ||
7283 | ||
7284 | cat >>confdefs.h <<_ACEOF | |
7285 | #define LOG_DIR "$ac_define_dir" | |
7286 | _ACEOF | |
7287 | ||
7288 | ||
7289 | ||
7290 | ||
7291 | logdir=`( | |
7292 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7293 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7294 | eval echo \""$logdir"\" | |
7295 | )` | |
7296 | ||
7297 | ||
7298 | else | |
7299 | logdir='${prefix}/logs' | |
7083c021 AC |
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7301 | $as_echo "no" >&6; } | |
212380e3 AC |
7302 | |
7303 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7304 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7305 | ac_define_dir=`eval echo $logdir` | |
7306 | ac_define_dir=`eval echo $ac_define_dir` | |
7307 | LOG_DIR="$ac_define_dir" | |
7308 | ||
7309 | ||
7310 | cat >>confdefs.h <<_ACEOF | |
7311 | #define LOG_DIR "$ac_define_dir" | |
7312 | _ACEOF | |
7313 | ||
7314 | ||
7315 | ||
7316 | ||
7317 | logdir=`( | |
7318 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7319 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7320 | eval echo \""$logdir"\" | |
7321 | )` | |
7322 | ||
7323 | ||
7324 | ||
631ef239 AC |
7325 | fi |
7326 | ||
212380e3 AC |
7327 | |
7328 | ||
7083c021 AC |
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
7330 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 7331 | |
631ef239 | 7332 | # Check whether --with-helpdir was given. |
7083c021 | 7333 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 7334 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7336 | $as_echo "yes" >&6; } | |
212380e3 AC |
7337 | |
7338 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7339 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7340 | ac_define_dir=`eval echo $helpdir` | |
7341 | ac_define_dir=`eval echo $ac_define_dir` | |
7342 | HELP_DIR="$ac_define_dir" | |
7343 | ||
7344 | ||
7345 | cat >>confdefs.h <<_ACEOF | |
7346 | #define HELP_DIR "$ac_define_dir" | |
7347 | _ACEOF | |
7348 | ||
7349 | ||
7350 | ||
7351 | ||
7352 | helpdir=`( | |
7353 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7354 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7355 | eval echo \""$helpdir"\" | |
7356 | )` | |
7357 | ||
7358 | ||
7359 | else | |
7360 | helpdir='${prefix}/help' | |
7083c021 AC |
7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7362 | $as_echo "no" >&6; } | |
212380e3 AC |
7363 | |
7364 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7365 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7366 | ac_define_dir=`eval echo $helpdir` | |
7367 | ac_define_dir=`eval echo $ac_define_dir` | |
7368 | HELP_DIR="$ac_define_dir" | |
7369 | ||
7370 | ||
7371 | cat >>confdefs.h <<_ACEOF | |
7372 | #define HELP_DIR "$ac_define_dir" | |
7373 | _ACEOF | |
7374 | ||
7375 | ||
7376 | ||
7377 | ||
7378 | helpdir=`( | |
7379 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7380 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7381 | eval echo \""$helpdir"\" | |
7382 | )` | |
7383 | ||
7384 | ||
7385 | ||
631ef239 AC |
7386 | fi |
7387 | ||
212380e3 AC |
7388 | |
7389 | ||
7083c021 AC |
7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
7391 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 7392 | |
631ef239 | 7393 | # Check whether --with-moduledir was given. |
7083c021 | 7394 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 7395 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7397 | $as_echo "yes" >&6; } | |
212380e3 AC |
7398 | |
7399 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7400 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7401 | ac_define_dir=`eval echo $moduledir` | |
7402 | ac_define_dir=`eval echo $ac_define_dir` | |
7403 | MODULE_DIR="$ac_define_dir" | |
7404 | ||
7405 | ||
7406 | cat >>confdefs.h <<_ACEOF | |
7407 | #define MODULE_DIR "$ac_define_dir" | |
7408 | _ACEOF | |
7409 | ||
7410 | ||
7411 | ||
7412 | ||
7413 | moduledir=`( | |
7414 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7415 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7416 | eval echo \""$moduledir"\" | |
7417 | )` | |
7418 | ||
7419 | ||
7420 | else | |
7421 | moduledir='${prefix}/modules' | |
7083c021 AC |
7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7423 | $as_echo "no" >&6; } | |
212380e3 AC |
7424 | |
7425 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7426 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7427 | ac_define_dir=`eval echo $moduledir` | |
7428 | ac_define_dir=`eval echo $ac_define_dir` | |
7429 | MODULE_DIR="$ac_define_dir" | |
7430 | ||
7431 | ||
7432 | cat >>confdefs.h <<_ACEOF | |
7433 | #define MODULE_DIR "$ac_define_dir" | |
7434 | _ACEOF | |
7435 | ||
7436 | ||
7437 | ||
7438 | ||
7439 | moduledir=`( | |
7440 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
7441 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
7442 | eval echo \""$moduledir"\" | |
7443 | )` | |
7444 | ||
7445 | ||
7446 | ||
631ef239 AC |
7447 | fi |
7448 | ||
7083c021 | 7449 | |
b6d0720c AC |
7450 | |
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
7452 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
7453 | ||
7454 | # Check whether --with-custom-branding was given. | |
7455 | if test "${with_custom_branding+set}" = set; then : | |
7456 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
7457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7458 | $as_echo "yes" >&6; } | |
7459 | else | |
7460 | BRANDING_NAME=$PACKAGE_NAME | |
7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7462 | $as_echo "no" >&6; } | |
7463 | ||
7464 | fi | |
7465 | ||
7466 | ||
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
7468 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
7469 | ||
7470 | # Check whether --with-custom-version was given. | |
7471 | if test "${with_custom_version+set}" = set; then : | |
7472 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7474 | $as_echo "yes" >&6; } | |
7475 | else | |
7476 | BRANDING_VERSION=$PACKAGE_VERSION | |
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7478 | $as_echo "no" >&6; } | |
7479 | ||
7480 | fi | |
7481 | ||
7482 | ||
7483 | ||
7484 | cat >>confdefs.h <<_ACEOF | |
7485 | #define BRANDING_NAME "$BRANDING_NAME" | |
7486 | _ACEOF | |
7487 | ||
7488 | ||
7489 | cat >>confdefs.h <<_ACEOF | |
7490 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
7491 | _ACEOF | |
7492 | ||
7493 | ||
f5493691 AC |
7494 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
7495 | ||
7496 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
7497 | ||
7498 | fi | |
7499 | ||
7083c021 AC |
7500 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then |
7501 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
7502 | echo "Forcing $SELECT_TYPE to be enabled" | |
7503 | else | |
7504 | ||
7505 | if test ! "x$use_ports" = "xno"; then | |
7506 | for ac_func in port_getn | |
7507 | do : | |
7508 | ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn" | |
b6d0720c | 7509 | if test "x$ac_cv_func_port_getn" = xyes; then : |
212380e3 | 7510 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7511 | #define HAVE_PORT_GETN 1 |
212380e3 | 7512 | _ACEOF |
7083c021 | 7513 | haveports=yes |
212380e3 | 7514 | else |
7083c021 | 7515 | haveports=no |
212380e3 AC |
7516 | fi |
7517 | done | |
7518 | ||
7083c021 AC |
7519 | if test "x$haveports" = "xyes" ; then |
7520 | SELECT_TYPE="ports" | |
212380e3 AC |
7521 | fi |
7522 | fi | |
7523 | ||
7083c021 AC |
7524 | if test ! "x$use_select" = "xno"; then |
7525 | for ac_func in select | |
7526 | do : | |
7527 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" | |
b6d0720c | 7528 | if test "x$ac_cv_func_select" = xyes; then : |
7083c021 AC |
7529 | cat >>confdefs.h <<_ACEOF |
7530 | #define HAVE_SELECT 1 | |
212380e3 | 7531 | _ACEOF |
7083c021 AC |
7532 | haveselect=yes |
7533 | else | |
7534 | haveselect=no | |
7535 | fi | |
7536 | done | |
212380e3 | 7537 | |
7083c021 AC |
7538 | if test "x$haveselect" = "xyes" ; then |
7539 | SELECT_TYPE="select" | |
7540 | fi | |
7541 | fi | |
212380e3 | 7542 | |
7083c021 AC |
7543 | if test ! "x$use_poll" = "xno"; then |
7544 | for ac_func in poll | |
7545 | do : | |
7546 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
b6d0720c | 7547 | if test "x$ac_cv_func_poll" = xyes; then : |
7083c021 AC |
7548 | cat >>confdefs.h <<_ACEOF |
7549 | #define HAVE_POLL 1 | |
212380e3 | 7550 | _ACEOF |
7083c021 | 7551 | havepoll=yes |
212380e3 | 7552 | else |
7083c021 | 7553 | havepoll=no |
212380e3 | 7554 | fi |
7083c021 | 7555 | done |
631ef239 | 7556 | |
7083c021 AC |
7557 | if test "x$havepoll" = "xyes" ; then |
7558 | SELECT_TYPE="poll" | |
7559 | fi | |
212380e3 | 7560 | fi |
7083c021 AC |
7561 | |
7562 | if test ! "x$use_kqueue" = "xno"; then | |
7563 | for ac_func in kevent | |
7564 | do : | |
7565 | ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" | |
b6d0720c | 7566 | if test "x$ac_cv_func_kevent" = xyes; then : |
212380e3 | 7567 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7568 | #define HAVE_KEVENT 1 |
212380e3 AC |
7569 | _ACEOF |
7570 | havekqueue=yes | |
7571 | else | |
7572 | havekqueue=no | |
7573 | fi | |
7574 | done | |
7575 | ||
7576 | if test "x$havekqueue" = "xyes" ; then | |
7577 | SELECT_TYPE="kqueue" | |
7578 | fi | |
7579 | fi | |
7580 | ||
7581 | if test ! "x$use_epoll" = "xno"; then | |
7083c021 AC |
7582 | for ac_func in epoll_ctl |
7583 | do : | |
7584 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
b6d0720c | 7585 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : |
212380e3 | 7586 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7587 | #define HAVE_EPOLL_CTL 1 |
212380e3 AC |
7588 | _ACEOF |
7589 | haveepoll=yes | |
7590 | else | |
7591 | haveepoll=no | |
7592 | fi | |
7593 | done | |
7594 | ||
7595 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7596 | if test "x$haveepoll" = "xyes" ; then | |
7083c021 AC |
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 |
7598 | $as_echo_n "checking for epoll support in kernel... " >&6; } | |
7599 | if test "$cross_compiling" = yes; then : | |
7600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7601 | $as_echo "no" >&6; } | |
212380e3 | 7602 | else |
7083c021 | 7603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7604 | /* end confdefs.h. */ |
7605 | #include <stdint.h> | |
7606 | #include <sys/param.h> | |
7607 | #include <sys/types.h> | |
7608 | #include <sys/epoll.h> | |
7609 | #include <sys/syscall.h> | |
7610 | #include <unistd.h> | |
7611 | ||
7612 | int | |
7613 | main(int argc, char **argv) | |
7614 | { | |
7615 | int epfd; | |
7616 | ||
7617 | epfd = epoll_create(256); | |
b676ea3b | 7618 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
7619 | } |
7620 | _ACEOF | |
7083c021 AC |
7621 | if ac_fn_c_try_run "$LINENO"; then : |
7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7623 | $as_echo "yes" >&6; } | |
212380e3 | 7624 | |
7083c021 | 7625 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
7626 | |
7627 | SELECT_TYPE="epoll" | |
7628 | else | |
7083c021 AC |
7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7630 | $as_echo "no" >&6; } | |
212380e3 | 7631 | fi |
7083c021 AC |
7632 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7633 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7634 | fi |
631ef239 | 7635 | |
212380e3 AC |
7636 | fi |
7637 | fi | |
7638 | ||
7639 | haveepollsyscall=no | |
7640 | ||
7641 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
7642 | if test "x$haveepoll" = "xno" ; then | |
7083c021 AC |
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 |
7644 | $as_echo_n "checking for epoll system call... " >&6; } | |
7645 | if test "$cross_compiling" = yes; then : | |
7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7647 | $as_echo "no" >&6; } | |
212380e3 | 7648 | else |
7083c021 | 7649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7650 | /* end confdefs.h. */ |
7651 | #include <stdint.h> | |
7652 | #include <sys/param.h> | |
7653 | #include <sys/types.h> | |
7654 | #include <sys/epoll.h> | |
7655 | #include <sys/syscall.h> | |
7656 | #include <unistd.h> | |
7657 | ||
7658 | int | |
7659 | epoll_create(int size) | |
7660 | { | |
7661 | return (syscall(__NR_epoll_create, size)); | |
7662 | } | |
7663 | ||
7664 | int | |
7665 | main(int argc, char **argv) | |
7666 | { | |
7667 | int epfd; | |
7668 | ||
7669 | epfd = epoll_create(256); | |
7670 | exit (epfd == -1 ? 1 : 0); | |
7671 | } | |
7672 | _ACEOF | |
7083c021 AC |
7673 | if ac_fn_c_try_run "$LINENO"; then : |
7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7675 | $as_echo "yes" >&6; } | |
212380e3 | 7676 | |
7083c021 | 7677 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h |
212380e3 AC |
7678 | |
7679 | SELECT_TYPE="epoll" | |
7680 | else | |
7083c021 AC |
7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7682 | $as_echo "no" >&6; } | |
212380e3 | 7683 | fi |
7083c021 AC |
7684 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7685 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 7686 | fi |
631ef239 | 7687 | |
212380e3 AC |
7688 | fi |
7689 | fi | |
7690 | ||
7691 | fi | |
7692 | ||
7693 | fi | |
7694 | ||
7695 | if test -z "$SELECT_TYPE"; then | |
b6d0720c | 7696 | as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5 |
212380e3 AC |
7697 | fi |
7698 | ||
7699 | echo "Using $SELECT_TYPE for select loop." | |
7700 | ||
7701 | ||
7702 | cat >>confdefs.h <<_ACEOF | |
7703 | #define SELECT_TYPE "$SELECT_TYPE" | |
7704 | _ACEOF | |
7705 | ||
7706 | ||
7707 | ||
7708 | ||
7709 | ||
631ef239 | 7710 | # Check whether --enable-assert was given. |
7083c021 | 7711 | if test "${enable_assert+set}" = set; then : |
631ef239 | 7712 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
7713 | else |
7714 | assert=no | |
631ef239 AC |
7715 | fi |
7716 | ||
212380e3 AC |
7717 | |
7718 | if test "$assert" = no; then | |
7719 | ||
7083c021 | 7720 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
7721 | |
7722 | elif test "$assert" = soft; then | |
7723 | ||
7083c021 | 7724 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
7725 | |
7726 | ||
7083c021 | 7727 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
7728 | |
7729 | elif test "$assert" = yes; then | |
7730 | assert = "hard"; | |
7731 | fi | |
7732 | ||
7083c021 AC |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
7734 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 7735 | # Check whether --enable-iodebug was given. |
7083c021 | 7736 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 7737 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
7738 | else |
7739 | iodebug=no | |
631ef239 AC |
7740 | fi |
7741 | ||
212380e3 AC |
7742 | |
7743 | if test "$iodebug" = yes; then | |
7744 | ||
7083c021 | 7745 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 7746 | |
7083c021 AC |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7748 | $as_echo "yes" >&6; } | |
212380e3 | 7749 | else |
7083c021 AC |
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7751 | $as_echo "no" >&6; } | |
212380e3 AC |
7752 | fi |
7753 | ||
7754 | ||
7083c021 AC |
7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
7756 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 7757 | # Check whether --enable-profile was given. |
7083c021 | 7758 | if test "${enable_profile+set}" = set; then : |
631ef239 | 7759 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
7760 | else |
7761 | profile=no | |
631ef239 AC |
7762 | fi |
7763 | ||
212380e3 AC |
7764 | |
7765 | if test "$profile" = yes; then | |
7766 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7767 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
7769 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 7770 | |
7083c021 | 7771 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
7772 | |
7773 | else | |
7083c021 AC |
7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
7775 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
7776 | fi |
7777 | else | |
7083c021 AC |
7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7779 | $as_echo "no" >&6; } | |
212380e3 AC |
7780 | fi |
7781 | ||
631ef239 | 7782 | # Check whether --enable-balloc was given. |
7083c021 | 7783 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 7784 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
7785 | else |
7786 | balloc=yes | |
631ef239 AC |
7787 | fi |
7788 | ||
212380e3 AC |
7789 | |
7790 | if test "$balloc" = no; then | |
7791 | ||
7083c021 | 7792 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 AC |
7793 | |
7794 | fi | |
7795 | ||
631ef239 | 7796 | # Check whether --enable-small-net was given. |
7083c021 | 7797 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 7798 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
7799 | else |
7800 | small_net=no | |
631ef239 AC |
7801 | fi |
7802 | ||
212380e3 AC |
7803 | |
7804 | if test "$small_net" = yes; then | |
7805 | ||
7083c021 | 7806 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 AC |
7807 | |
7808 | ||
7083c021 | 7809 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7810 | |
7811 | ||
7083c021 | 7812 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7813 | |
7814 | ||
7083c021 | 7815 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7816 | |
7817 | ||
7083c021 | 7818 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7819 | |
7820 | ||
7083c021 | 7821 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 AC |
7822 | |
7823 | ||
7083c021 | 7824 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7825 | |
7826 | ||
7083c021 | 7827 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7828 | |
7829 | ||
7083c021 | 7830 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7831 | |
7832 | ||
7083c021 | 7833 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7834 | |
7835 | ||
7083c021 | 7836 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7837 | |
7838 | ||
7083c021 | 7839 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7840 | |
7841 | ||
7083c021 | 7842 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
7843 | |
7844 | ||
7083c021 | 7845 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 7846 | |
f589ec6f | 7847 | |
7083c021 | 7848 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
2b428185 AC |
7849 | |
7850 | ||
7083c021 | 7851 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f589ec6f | 7852 | |
212380e3 AC |
7853 | else |
7854 | ||
7083c021 | 7855 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
7856 | |
7857 | ||
7083c021 | 7858 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
7859 | |
7860 | ||
7083c021 | 7861 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
7862 | |
7863 | ||
7083c021 | 7864 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
7865 | |
7866 | ||
7083c021 | 7867 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
7868 | |
7869 | ||
7083c021 | 7870 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7871 | |
7872 | ||
7083c021 | 7873 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
7874 | |
7875 | ||
7083c021 | 7876 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
7877 | |
7878 | ||
7083c021 | 7879 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
7880 | |
7881 | ||
7083c021 | 7882 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
7883 | |
7884 | ||
7083c021 | 7885 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
7886 | |
7887 | ||
7083c021 | 7888 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
7889 | |
7890 | ||
7083c021 | 7891 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
7892 | |
7893 | ||
7083c021 | 7894 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 7895 | |
f589ec6f | 7896 | |
7083c021 | 7897 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
7898 | |
7899 | ||
7083c021 | 7900 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 7901 | |
212380e3 AC |
7902 | fi |
7903 | ||
7904 | ||
631ef239 | 7905 | # Check whether --with-nicklen was given. |
7083c021 | 7906 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 7907 | withval=$with_nicklen; |
aa769893 | 7908 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 7909 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 7910 | fi |
cf533739 | 7911 | if test $withval -gt 50; then |
212380e3 | 7912 | NICKLEN=50 |
7083c021 AC |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
7914 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
7915 | elif test $withval -lt 9; then |
7916 | NICKLEN=9 | |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
7918 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
7919 | else |
7920 | NICKLEN="$withval" | |
7921 | fi | |
7922 | ||
7923 | else | |
cf533739 | 7924 | NICKLEN=31 |
631ef239 | 7925 | fi |
212380e3 AC |
7926 | |
7927 | ||
212380e3 | 7928 | |
631ef239 | 7929 | # Check whether --with-topiclen was given. |
7083c021 | 7930 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 7931 | withval=$with_topiclen; |
212380e3 AC |
7932 | if test $withval -ge 390; then |
7933 | TOPICLEN=390 | |
7083c021 AC |
7934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
7935 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
7936 | else |
7937 | TOPICLEN=$withval | |
7938 | fi | |
7939 | ||
7940 | else | |
7941 | TOPICLEN=390 | |
212380e3 AC |
7942 | fi |
7943 | ||
212380e3 AC |
7944 | |
7945 | ||
7946 | cat >>confdefs.h <<_ACEOF | |
7947 | #define TOPICLEN ${TOPICLEN} | |
7948 | _ACEOF | |
7949 | ||
7950 | ||
7951 | cat >>confdefs.h <<_ACEOF | |
7952 | #define NICKLEN (${NICKLEN}+1) | |
7953 | _ACEOF | |
7954 | ||
7955 | ||
b676ea3b | 7956 | shared_modules="yes" |
212380e3 | 7957 | if test "$shared_modules" = yes; then |
212380e3 | 7958 | if test "$CC" = tcc -a "$TenDRA" = "no"; then |
7083c021 AC |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 |
7960 | $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
212380e3 AC |
7961 | shared_modules="no" |
7962 | fi | |
7963 | fi | |
7964 | ||
7965 | if test "$shared_modules" = yes; then | |
7083c021 AC |
7966 | DYNLINK_C=dynlink.c |
7967 | for ac_header in dlfcn.h | |
7968 | do : | |
7969 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
b6d0720c | 7970 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
212380e3 | 7971 | cat >>confdefs.h <<_ACEOF |
7083c021 | 7972 | #define HAVE_DLFCN_H 1 |
212380e3 AC |
7973 | _ACEOF |
7974 | ||
7975 | fi | |
7976 | ||
7977 | done | |
7978 | ||
7083c021 AC |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 |
7980 | $as_echo_n "checking for library containing shl_load... " >&6; } | |
b6d0720c | 7981 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 7982 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
7983 | else |
7984 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 7985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
7986 | /* end confdefs.h. */ |
7987 | ||
631ef239 AC |
7988 | /* Override any GCC internal prototype to avoid an error. |
7989 | Use char because int might match the return type of a GCC | |
7990 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7991 | #ifdef __cplusplus |
7992 | extern "C" | |
7993 | #endif | |
212380e3 AC |
7994 | char shl_load (); |
7995 | int | |
7996 | main () | |
7997 | { | |
631ef239 | 7998 | return shl_load (); |
212380e3 AC |
7999 | ; |
8000 | return 0; | |
8001 | } | |
8002 | _ACEOF | |
631ef239 AC |
8003 | for ac_lib in '' dld; do |
8004 | if test -z "$ac_lib"; then | |
8005 | ac_res="none required" | |
8006 | else | |
8007 | ac_res=-l$ac_lib | |
8008 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8009 | fi | |
7083c021 | 8010 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8011 | ac_cv_search_shl_load=$ac_res |
631ef239 | 8012 | fi |
7083c021 AC |
8013 | rm -f core conftest.err conftest.$ac_objext \ |
8014 | conftest$ac_exeext | |
b6d0720c | 8015 | if ${ac_cv_search_shl_load+:} false; then : |
631ef239 | 8016 | break |
212380e3 | 8017 | fi |
631ef239 | 8018 | done |
b6d0720c | 8019 | if ${ac_cv_search_shl_load+:} false; then : |
7083c021 | 8020 | |
631ef239 AC |
8021 | else |
8022 | ac_cv_search_shl_load=no | |
212380e3 | 8023 | fi |
631ef239 | 8024 | rm conftest.$ac_ext |
212380e3 AC |
8025 | LIBS=$ac_func_search_save_LIBS |
8026 | fi | |
7083c021 AC |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 |
8028 | $as_echo "$ac_cv_search_shl_load" >&6; } | |
631ef239 | 8029 | ac_res=$ac_cv_search_shl_load |
7083c021 | 8030 | if test "$ac_res" != no; then : |
631ef239 | 8031 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
8032 | |
8033 | ||
7083c021 | 8034 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 AC |
8035 | |
8036 | SUFFIX=".sl" | |
8037 | MOD_TARGET=hpux_shared | |
8038 | SEDOBJ="s/\.o/.sl/g" | |
8039 | ||
8040 | else | |
8041 | ||
7083c021 AC |
8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
8043 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
b6d0720c | 8044 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 8045 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8046 | else |
8047 | ac_func_search_save_LIBS=$LIBS | |
7083c021 | 8048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8049 | /* end confdefs.h. */ |
8050 | ||
631ef239 AC |
8051 | /* Override any GCC internal prototype to avoid an error. |
8052 | Use char because int might match the return type of a GCC | |
8053 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8054 | #ifdef __cplusplus |
8055 | extern "C" | |
8056 | #endif | |
212380e3 AC |
8057 | char dlopen (); |
8058 | int | |
8059 | main () | |
8060 | { | |
631ef239 | 8061 | return dlopen (); |
212380e3 AC |
8062 | ; |
8063 | return 0; | |
8064 | } | |
8065 | _ACEOF | |
631ef239 AC |
8066 | for ac_lib in '' dl c_r; do |
8067 | if test -z "$ac_lib"; then | |
8068 | ac_res="none required" | |
8069 | else | |
8070 | ac_res=-l$ac_lib | |
8071 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8072 | fi | |
7083c021 | 8073 | if ac_fn_c_try_link "$LINENO"; then : |
631ef239 | 8074 | ac_cv_search_dlopen=$ac_res |
631ef239 | 8075 | fi |
7083c021 AC |
8076 | rm -f core conftest.err conftest.$ac_objext \ |
8077 | conftest$ac_exeext | |
b6d0720c | 8078 | if ${ac_cv_search_dlopen+:} false; then : |
631ef239 | 8079 | break |
212380e3 | 8080 | fi |
631ef239 | 8081 | done |
b6d0720c | 8082 | if ${ac_cv_search_dlopen+:} false; then : |
7083c021 | 8083 | |
631ef239 AC |
8084 | else |
8085 | ac_cv_search_dlopen=no | |
212380e3 | 8086 | fi |
631ef239 | 8087 | rm conftest.$ac_ext |
212380e3 AC |
8088 | LIBS=$ac_func_search_save_LIBS |
8089 | fi | |
7083c021 AC |
8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
8091 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
631ef239 | 8092 | ac_res=$ac_cv_search_dlopen |
7083c021 | 8093 | if test "$ac_res" != no; then : |
631ef239 | 8094 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
212380e3 AC |
8095 | |
8096 | ||
7083c021 | 8097 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
212380e3 AC |
8098 | |
8099 | SUFFIX=".so" | |
8100 | MOD_TARGET=shared_modules | |
8101 | SEDOBJ="s/\.o/.so/g" | |
8102 | if test "$AppleGCC" = yes; then | |
7083c021 AC |
8103 | for ac_header in mach-o/dyld.h |
8104 | do : | |
8105 | ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" | |
b6d0720c | 8106 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : |
212380e3 | 8107 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8108 | #define HAVE_MACH_O_DYLD_H 1 |
212380e3 AC |
8109 | _ACEOF |
8110 | ||
8111 | fi | |
8112 | ||
8113 | done | |
8114 | ||
8115 | fi | |
7083c021 | 8116 | ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
b6d0720c | 8117 | if test "x$ac_cv_func_dlsym" = xyes; then : |
631ef239 | 8118 | |
212380e3 AC |
8119 | else |
8120 | ||
7083c021 AC |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5 |
8122 | $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
212380e3 AC |
8123 | shared_modules=no |
8124 | ||
8125 | fi | |
8126 | ||
7083c021 AC |
8127 | for ac_func in dlfunc |
8128 | do : | |
8129 | ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc" | |
b6d0720c | 8130 | if test "x$ac_cv_func_dlfunc" = xyes; then : |
212380e3 | 8131 | cat >>confdefs.h <<_ACEOF |
7083c021 | 8132 | #define HAVE_DLFUNC 1 |
212380e3 AC |
8133 | _ACEOF |
8134 | ||
8135 | fi | |
8136 | done | |
8137 | ||
8138 | ||
8139 | else | |
8140 | ||
8141 | shared_modules=no | |
8142 | ||
8143 | fi | |
8144 | ||
8145 | ||
8146 | fi | |
8147 | ||
8148 | fi | |
8149 | ||
8150 | ||
8151 | cat >>confdefs.h <<_ACEOF | |
8152 | #define SHARED_SUFFIX "$SUFFIX" | |
8153 | _ACEOF | |
8154 | ||
8155 | ||
8156 | if test "$shared_modules" = yes; then | |
8157 | # The GNU linker requires the -export-dynamic option to make | |
8158 | # all symbols visible in the dynamic symbol table. | |
8159 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5 |
8161 | $as_echo_n "checking for the ld -export-dynamic flag... " >&6; } | |
212380e3 | 8162 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
7083c021 | 8163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8164 | /* end confdefs.h. */ |
8165 | ||
8166 | int | |
8167 | main () | |
8168 | { | |
8169 | int i; | |
8170 | ; | |
8171 | return 0; | |
8172 | } | |
8173 | _ACEOF | |
7083c021 | 8174 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
8175 | found=yes |
8176 | else | |
7083c021 | 8177 | found=no |
212380e3 | 8178 | fi |
7083c021 AC |
8179 | rm -f core conftest.err conftest.$ac_objext \ |
8180 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
8181 | LDFLAGS=$hold_ldflags |
8182 | ||
8183 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
8184 | found="no, IRIX ld uses -B,dynamic" | |
8185 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
8186 | fi | |
8187 | ||
8188 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
8189 | found="no, AIX ld uses -G -brtl" | |
8190 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
8191 | fi | |
8192 | ||
7083c021 AC |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8194 | $as_echo "$found" >&6; } | |
212380e3 AC |
8195 | |
8196 | if test "$found" = yes; then | |
8197 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
8198 | fi | |
8199 | ||
7083c021 AC |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5 |
8201 | $as_echo_n "checking for compiler option to produce PIC... " >&6; } | |
212380e3 | 8202 | if test "$SGS" = "yes"; then |
7083c021 AC |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
8204 | $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
8205 | PICFLAGS="-KPIC -DPIC -G" |
8206 | fi | |
8207 | ||
8208 | if test "$AppleGCC" = "yes"; then | |
7083c021 AC |
8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
8210 | $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
8211 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
8212 | fi | |
8213 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
7083c021 AC |
8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5 |
8215 | $as_echo "HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 8216 | PICFLAGS="+z -r -q -n -c" |
7083c021 AC |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5 |
8218 | $as_echo_n "checking if +ESfic is required on this platform... " >&6; } | |
212380e3 AC |
8219 | |
8220 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
7083c021 AC |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8222 | $as_echo "no" >&6; } | |
212380e3 | 8223 | else |
7083c021 AC |
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8225 | $as_echo "yes" >&6; } | |
212380e3 AC |
8226 | PICFLAGS="$PICFLAGS +ESfic" |
8227 | fi | |
8228 | ||
8229 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
8230 | fi | |
8231 | if test "$Tru" = yes -a "$CC" != gcc; then | |
7083c021 AC |
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5 |
8233 | $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
8234 | PICFLAGS="-shared -expect_unresolved '*' " |
8235 | LDFLAGS="-call_shared" | |
8236 | fi | |
8237 | if test -z "$PICFLAGS"; then | |
8238 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
7083c021 AC |
8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5 |
8240 | $as_echo "gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
8241 | PICFLAGS="-fPIC -DPIC -shared" |
8242 | else | |
7083c021 AC |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8244 | $as_echo "no" >&6; } | |
212380e3 AC |
8245 | shared_modules=no |
8246 | fi | |
8247 | fi | |
8248 | fi | |
8249 | ||
1a82970f JT |
8250 | # rpath, for finding libratbox.so at run time |
8251 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
8253 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 8254 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 8255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
8256 | /* end confdefs.h. */ |
8257 | ||
8258 | int | |
8259 | main () | |
8260 | { | |
8261 | int i; | |
8262 | ; | |
8263 | return 0; | |
8264 | } | |
8265 | _ACEOF | |
7083c021 | 8266 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
8267 | found=yes |
8268 | else | |
7083c021 | 8269 | found=no |
1a82970f | 8270 | fi |
7083c021 AC |
8271 | rm -f core conftest.err conftest.$ac_objext \ |
8272 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 8273 | LDFLAGS=$hold_ldflags |
7083c021 AC |
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
8275 | $as_echo "$found" >&6; } | |
1a82970f JT |
8276 | if test "$found" = yes; then |
8277 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
8278 | fi | |
8279 | ||
212380e3 AC |
8280 | # This must be down here, or it will mess up checks like the ones |
8281 | # for -Wl,-export-dynamic | |
8282 | # -- jilles | |
d2c5159a | 8283 | CWARNS="" |
631ef239 | 8284 | # Check whether --enable-warnings was given. |
7083c021 | 8285 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 8286 | enableval=$enable_warnings; |
212380e3 AC |
8287 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
8288 | CFLAGS="$IRC_CFLAGS" | |
8289 | ||
8290 | ||
7083c021 AC |
8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
8292 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
8293 | if test "${GCC-no}" = yes |
8294 | then | |
b6d0720c | 8295 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 8296 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8297 | else |
8298 | ||
8299 | oldcflags="${CFLAGS-}" | |
8300 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 8301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8302 | /* end confdefs.h. */ |
8303 | ||
8304 | #include <string.h> | |
8305 | #include <stdio.h> | |
8306 | int main(void); | |
8307 | ||
8308 | int | |
8309 | main () | |
8310 | { | |
8311 | ||
b1fc1658 | 8312 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8313 | |
8314 | ; | |
8315 | return 0; | |
8316 | } | |
8317 | _ACEOF | |
7083c021 | 8318 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8319 | charybdis_cv_c_gcc_w_all=yes |
8320 | else | |
7083c021 | 8321 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 8322 | fi |
631ef239 | 8323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8324 | CFLAGS="${oldcflags}" |
8325 | fi | |
8326 | ||
8327 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
8328 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8330 | $as_echo "ok" >&6; } | |
212380e3 AC |
8331 | else |
8332 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
8333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8334 | $as_echo "no" >&6; } | |
212380e3 AC |
8335 | fi |
8336 | else | |
7083c021 AC |
8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8338 | $as_echo "no" >&6; } | |
212380e3 AC |
8339 | fi |
8340 | ||
8341 | ||
7083c021 AC |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
8343 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
8344 | if test "${GCC-no}" = yes |
8345 | then | |
b6d0720c | 8346 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 8347 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8348 | else |
8349 | ||
8350 | oldcflags="${CFLAGS-}" | |
8351 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 8352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8353 | /* end confdefs.h. */ |
8354 | ||
8355 | #include <string.h> | |
8356 | #include <stdio.h> | |
8357 | int main(void); | |
8358 | ||
8359 | int | |
8360 | main () | |
8361 | { | |
8362 | ||
b1fc1658 | 8363 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8364 | |
8365 | ; | |
8366 | return 0; | |
8367 | } | |
8368 | _ACEOF | |
7083c021 | 8369 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8370 | charybdis_cv_c_gcc_w_pointer_arith=yes |
8371 | else | |
7083c021 | 8372 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 8373 | fi |
631ef239 | 8374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8375 | CFLAGS="${oldcflags}" |
8376 | fi | |
8377 | ||
8378 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
8379 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8381 | $as_echo "ok" >&6; } | |
212380e3 AC |
8382 | else |
8383 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8385 | $as_echo "no" >&6; } | |
212380e3 AC |
8386 | fi |
8387 | else | |
7083c021 AC |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8389 | $as_echo "no" >&6; } | |
212380e3 AC |
8390 | fi |
8391 | ||
8392 | ||
7083c021 AC |
8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
8394 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
8395 | if test "${GCC-no}" = yes |
8396 | then | |
b6d0720c | 8397 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 8398 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8399 | else |
8400 | ||
8401 | oldcflags="${CFLAGS-}" | |
8402 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 8403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8404 | /* end confdefs.h. */ |
8405 | ||
8406 | #include <string.h> | |
8407 | #include <stdio.h> | |
8408 | int main(void); | |
8409 | ||
8410 | int | |
8411 | main () | |
8412 | { | |
8413 | ||
b1fc1658 | 8414 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8415 | |
8416 | ; | |
8417 | return 0; | |
8418 | } | |
8419 | _ACEOF | |
7083c021 | 8420 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8421 | charybdis_cv_c_gcc_w_implicit=yes |
8422 | else | |
7083c021 | 8423 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 8424 | fi |
631ef239 | 8425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8426 | CFLAGS="${oldcflags}" |
8427 | fi | |
8428 | ||
8429 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
8430 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
8431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8432 | $as_echo "ok" >&6; } | |
212380e3 AC |
8433 | else |
8434 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8436 | $as_echo "no" >&6; } | |
212380e3 AC |
8437 | fi |
8438 | else | |
7083c021 AC |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8440 | $as_echo "no" >&6; } | |
212380e3 AC |
8441 | fi |
8442 | ||
8443 | ||
7083c021 AC |
8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
8445 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
8446 | if test "${GCC-no}" = yes |
8447 | then | |
b6d0720c | 8448 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 8449 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8450 | else |
8451 | ||
8452 | oldcflags="${CFLAGS-}" | |
8453 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 8454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8455 | /* end confdefs.h. */ |
8456 | ||
8457 | #include <string.h> | |
8458 | #include <stdio.h> | |
8459 | int main(void); | |
8460 | ||
8461 | int | |
8462 | main () | |
8463 | { | |
8464 | ||
b1fc1658 | 8465 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
8466 | |
8467 | ; | |
8468 | return 0; | |
8469 | } | |
8470 | _ACEOF | |
8471 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
8472 | charybdis_cv_c_gcc_w_cast_align=yes |
8473 | else | |
7083c021 | 8474 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 8475 | fi |
631ef239 | 8476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8477 | CFLAGS="${oldcflags}" |
8478 | fi | |
8479 | ||
8480 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
8481 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8483 | $as_echo "ok" >&6; } | |
212380e3 AC |
8484 | else |
8485 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8487 | $as_echo "no" >&6; } | |
212380e3 AC |
8488 | fi |
8489 | else | |
7083c021 AC |
8490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8491 | $as_echo "no" >&6; } | |
212380e3 AC |
8492 | fi |
8493 | ||
8494 | ||
7083c021 AC |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
8496 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
8497 | if test "${GCC-no}" = yes |
8498 | then | |
b6d0720c | 8499 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 8500 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8501 | else |
8502 | ||
8503 | oldcflags="${CFLAGS-}" | |
8504 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 8505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8506 | /* end confdefs.h. */ |
8507 | ||
8508 | #include <string.h> | |
8509 | #include <stdio.h> | |
8510 | int main(void); | |
8511 | ||
8512 | int | |
8513 | main () | |
8514 | { | |
8515 | ||
b1fc1658 | 8516 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8517 | |
8518 | ; | |
8519 | return 0; | |
8520 | } | |
8521 | _ACEOF | |
7083c021 | 8522 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8523 | charybdis_cv_c_gcc_w_cast_qual=yes |
8524 | else | |
7083c021 | 8525 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 8526 | fi |
631ef239 | 8527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8528 | CFLAGS="${oldcflags}" |
8529 | fi | |
8530 | ||
8531 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
8532 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8534 | $as_echo "ok" >&6; } | |
212380e3 AC |
8535 | else |
8536 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
8537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8538 | $as_echo "no" >&6; } | |
212380e3 AC |
8539 | fi |
8540 | else | |
7083c021 AC |
8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8542 | $as_echo "no" >&6; } | |
212380e3 AC |
8543 | fi |
8544 | ||
8545 | ||
7083c021 AC |
8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
8547 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
8548 | if test "${GCC-no}" = yes |
8549 | then | |
b6d0720c | 8550 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 8551 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
8552 | else |
8553 | ||
8554 | oldcflags="${CFLAGS-}" | |
8555 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 8556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
8557 | /* end confdefs.h. */ |
8558 | ||
8559 | #include <string.h> | |
8560 | #include <stdio.h> | |
8561 | int main(void); | |
8562 | ||
8563 | int | |
8564 | main () | |
8565 | { | |
8566 | ||
8567 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8568 | ||
8569 | ; | |
8570 | return 0; | |
8571 | } | |
8572 | _ACEOF | |
7083c021 | 8573 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 8574 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 8575 | else |
7083c021 | 8576 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 8577 | fi |
d2c5159a JT |
8578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8579 | CFLAGS="${oldcflags}" | |
8580 | fi | |
8581 | ||
bbe58888 | 8582 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 8583 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8585 | $as_echo "ok" >&6; } | |
d2c5159a | 8586 | else |
bbe58888 | 8587 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8589 | $as_echo "no" >&6; } | |
bbe58888 VY |
8590 | fi |
8591 | else | |
7083c021 AC |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8593 | $as_echo "no" >&6; } | |
bbe58888 VY |
8594 | fi |
8595 | ||
8596 | ||
7083c021 AC |
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
8598 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
8599 | if test "${GCC-no}" = yes |
8600 | then | |
b6d0720c | 8601 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 8602 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
8603 | else |
8604 | ||
8605 | oldcflags="${CFLAGS-}" | |
8606 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 8607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
8608 | /* end confdefs.h. */ |
8609 | ||
8610 | #include <string.h> | |
8611 | #include <stdio.h> | |
8612 | int main(void); | |
8613 | ||
8614 | int | |
8615 | main () | |
8616 | { | |
8617 | ||
8618 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
8619 | ||
8620 | ; | |
8621 | return 0; | |
8622 | } | |
8623 | _ACEOF | |
7083c021 | 8624 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
8625 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
8626 | else | |
7083c021 | 8627 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 8628 | fi |
bbe58888 VY |
8629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8630 | CFLAGS="${oldcflags}" | |
8631 | fi | |
8632 | ||
8633 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
8634 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8636 | $as_echo "ok" >&6; } | |
bbe58888 VY |
8637 | else |
8638 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8640 | $as_echo "no" >&6; } | |
d2c5159a JT |
8641 | fi |
8642 | else | |
7083c021 AC |
8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8644 | $as_echo "no" >&6; } | |
d2c5159a JT |
8645 | fi |
8646 | ||
8647 | ||
7083c021 AC |
8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
8649 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
8650 | if test "${GCC-no}" = yes |
8651 | then | |
b6d0720c | 8652 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 8653 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8654 | else |
8655 | ||
8656 | oldcflags="${CFLAGS-}" | |
8657 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 8658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8659 | /* end confdefs.h. */ |
8660 | ||
8661 | #include <string.h> | |
8662 | #include <stdio.h> | |
8663 | int main(void); | |
8664 | ||
8665 | int | |
8666 | main () | |
8667 | { | |
8668 | ||
b1fc1658 | 8669 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8670 | |
8671 | ; | |
8672 | return 0; | |
8673 | } | |
8674 | _ACEOF | |
7083c021 | 8675 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8676 | charybdis_cv_c_gcc_prototypes=yes |
8677 | else | |
7083c021 | 8678 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 8679 | fi |
631ef239 | 8680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8681 | CFLAGS="${oldcflags}" |
8682 | fi | |
8683 | ||
8684 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
8685 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8687 | $as_echo "ok" >&6; } | |
212380e3 AC |
8688 | else |
8689 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
8690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8691 | $as_echo "no" >&6; } | |
212380e3 AC |
8692 | fi |
8693 | else | |
7083c021 AC |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8695 | $as_echo "no" >&6; } | |
212380e3 AC |
8696 | fi |
8697 | ||
8698 | ||
7083c021 AC |
8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
8700 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
8701 | if test "${GCC-no}" = yes |
8702 | then | |
b6d0720c | 8703 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 8704 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8705 | else |
8706 | ||
8707 | oldcflags="${CFLAGS-}" | |
8708 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 8709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8710 | /* end confdefs.h. */ |
8711 | ||
8712 | #include <string.h> | |
8713 | #include <stdio.h> | |
8714 | int main(void); | |
8715 | ||
8716 | int | |
8717 | main () | |
8718 | { | |
8719 | ||
b1fc1658 | 8720 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8721 | |
8722 | ; | |
8723 | return 0; | |
8724 | } | |
8725 | _ACEOF | |
7083c021 | 8726 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8727 | charybdis_cv_c_gcc_parenthesis=yes |
8728 | else | |
7083c021 | 8729 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 8730 | fi |
631ef239 | 8731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8732 | CFLAGS="${oldcflags}" |
8733 | fi | |
8734 | ||
8735 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
8736 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8738 | $as_echo "ok" >&6; } | |
212380e3 AC |
8739 | else |
8740 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8742 | $as_echo "no" >&6; } | |
212380e3 AC |
8743 | fi |
8744 | else | |
7083c021 AC |
8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8746 | $as_echo "no" >&6; } | |
212380e3 AC |
8747 | fi |
8748 | ||
8749 | ||
7083c021 AC |
8750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
8751 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
8752 | if test "${GCC-no}" = yes |
8753 | then | |
b6d0720c | 8754 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 8755 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8756 | else |
8757 | ||
8758 | oldcflags="${CFLAGS-}" | |
8759 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 8760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8761 | /* end confdefs.h. */ |
8762 | ||
8763 | #include <string.h> | |
8764 | #include <stdio.h> | |
8765 | int main(void); | |
8766 | ||
8767 | int | |
8768 | main () | |
8769 | { | |
8770 | ||
b1fc1658 | 8771 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8772 | |
8773 | ; | |
8774 | return 0; | |
8775 | } | |
8776 | _ACEOF | |
7083c021 | 8777 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8778 | charybdis_cv_c_gcc_w=yes |
8779 | else | |
7083c021 | 8780 | charybdis_cv_c_gcc_w=no |
212380e3 | 8781 | fi |
631ef239 | 8782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8783 | CFLAGS="${oldcflags}" |
8784 | fi | |
8785 | ||
8786 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
8787 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8789 | $as_echo "ok" >&6; } | |
212380e3 AC |
8790 | else |
8791 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8793 | $as_echo "no" >&6; } | |
212380e3 AC |
8794 | fi |
8795 | else | |
7083c021 AC |
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8797 | $as_echo "no" >&6; } | |
212380e3 AC |
8798 | fi |
8799 | ||
8800 | ||
7083c021 AC |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
8802 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
8803 | if test "${GCC-no}" = yes |
8804 | then | |
b6d0720c | 8805 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 8806 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8807 | else |
8808 | ||
8809 | oldcflags="${CFLAGS-}" | |
8810 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 8811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8812 | /* end confdefs.h. */ |
8813 | ||
8814 | #include <string.h> | |
8815 | #include <stdio.h> | |
8816 | int main(void); | |
8817 | ||
8818 | int | |
8819 | main () | |
8820 | { | |
8821 | ||
b1fc1658 | 8822 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8823 | |
8824 | ; | |
8825 | return 0; | |
8826 | } | |
8827 | _ACEOF | |
7083c021 | 8828 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8829 | charybdis_cv_c_gcc_w_extra=yes |
8830 | else | |
7083c021 | 8831 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 8832 | fi |
631ef239 | 8833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8834 | CFLAGS="${oldcflags}" |
8835 | fi | |
8836 | ||
8837 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
8838 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8840 | $as_echo "ok" >&6; } | |
212380e3 AC |
8841 | else |
8842 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8844 | $as_echo "no" >&6; } | |
212380e3 AC |
8845 | fi |
8846 | else | |
7083c021 AC |
8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8848 | $as_echo "no" >&6; } | |
212380e3 AC |
8849 | fi |
8850 | ||
8851 | ||
7083c021 AC |
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
8853 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
8854 | if test "${GCC-no}" = yes |
8855 | then | |
b6d0720c | 8856 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 8857 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8858 | else |
8859 | ||
8860 | oldcflags="${CFLAGS-}" | |
8861 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 8862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8863 | /* end confdefs.h. */ |
8864 | ||
8865 | #include <string.h> | |
8866 | #include <stdio.h> | |
8867 | int main(void); | |
8868 | ||
8869 | int | |
8870 | main () | |
8871 | { | |
8872 | ||
b1fc1658 | 8873 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8874 | |
8875 | ; | |
8876 | return 0; | |
8877 | } | |
8878 | _ACEOF | |
7083c021 | 8879 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8880 | charybdis_cv_c_gcc_w_shadow=yes |
8881 | else | |
7083c021 | 8882 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 8883 | fi |
631ef239 | 8884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8885 | CFLAGS="${oldcflags}" |
8886 | fi | |
8887 | ||
8888 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
8889 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
8890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8891 | $as_echo "ok" >&6; } | |
212380e3 AC |
8892 | else |
8893 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8895 | $as_echo "no" >&6; } | |
212380e3 AC |
8896 | fi |
8897 | else | |
7083c021 AC |
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8899 | $as_echo "no" >&6; } | |
212380e3 AC |
8900 | fi |
8901 | ||
8902 | ||
7083c021 AC |
8903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
8904 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
8905 | if test "${GCC-no}" = yes |
8906 | then | |
b6d0720c | 8907 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 8908 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8909 | else |
8910 | ||
8911 | oldcflags="${CFLAGS-}" | |
8912 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 8913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8914 | /* end confdefs.h. */ |
8915 | ||
8916 | #include <string.h> | |
8917 | #include <stdio.h> | |
8918 | int main(void); | |
8919 | ||
8920 | int | |
8921 | main () | |
8922 | { | |
8923 | ||
b1fc1658 | 8924 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8925 | |
8926 | ; | |
8927 | return 0; | |
8928 | } | |
8929 | _ACEOF | |
7083c021 | 8930 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8931 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
8932 | else | |
7083c021 | 8933 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 8934 | fi |
631ef239 | 8935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8936 | CFLAGS="${oldcflags}" |
8937 | fi | |
8938 | ||
8939 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
8940 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8942 | $as_echo "ok" >&6; } | |
212380e3 AC |
8943 | else |
8944 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8946 | $as_echo "no" >&6; } | |
212380e3 AC |
8947 | fi |
8948 | else | |
7083c021 AC |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8950 | $as_echo "no" >&6; } | |
212380e3 AC |
8951 | fi |
8952 | ||
8953 | ||
7083c021 AC |
8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
8955 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
8956 | if test "${GCC-no}" = yes |
8957 | then | |
b6d0720c | 8958 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 8959 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
8960 | else |
8961 | ||
8962 | oldcflags="${CFLAGS-}" | |
8963 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 8964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
8965 | /* end confdefs.h. */ |
8966 | ||
8967 | #include <string.h> | |
8968 | #include <stdio.h> | |
8969 | int main(void); | |
8970 | ||
8971 | int | |
8972 | main () | |
8973 | { | |
8974 | ||
b1fc1658 | 8975 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
8976 | |
8977 | ; | |
8978 | return 0; | |
8979 | } | |
8980 | _ACEOF | |
7083c021 | 8981 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
8982 | charybdis_cv_c_gcc_w_undef=yes |
8983 | else | |
7083c021 | 8984 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 8985 | fi |
631ef239 | 8986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
8987 | CFLAGS="${oldcflags}" |
8988 | fi | |
8989 | ||
8990 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
8991 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8993 | $as_echo "ok" >&6; } | |
212380e3 AC |
8994 | else |
8995 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8997 | $as_echo "no" >&6; } | |
212380e3 AC |
8998 | fi |
8999 | else | |
7083c021 AC |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9001 | $as_echo "no" >&6; } | |
212380e3 AC |
9002 | fi |
9003 | ||
9004 | ||
7083c021 AC |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
9006 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
9007 | if test "${GCC-no}" = yes |
9008 | then | |
b6d0720c | 9009 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 9010 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9011 | else |
9012 | ||
9013 | oldcflags="${CFLAGS-}" | |
9014 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 9015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9016 | /* end confdefs.h. */ |
9017 | ||
9018 | #include <string.h> | |
9019 | #include <stdio.h> | |
9020 | int main(void); | |
9021 | ||
9022 | int | |
9023 | main () | |
9024 | { | |
9025 | ||
b1fc1658 | 9026 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9027 | |
9028 | ; | |
9029 | return 0; | |
9030 | } | |
9031 | _ACEOF | |
7083c021 | 9032 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9033 | charybdis_cv_c_gcc_w_packed=yes |
9034 | else | |
7083c021 | 9035 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 9036 | fi |
631ef239 | 9037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9038 | CFLAGS="${oldcflags}" |
9039 | fi | |
9040 | ||
9041 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
9042 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9044 | $as_echo "ok" >&6; } | |
212380e3 AC |
9045 | else |
9046 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9048 | $as_echo "no" >&6; } | |
212380e3 AC |
9049 | fi |
9050 | else | |
7083c021 AC |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9052 | $as_echo "no" >&6; } | |
212380e3 AC |
9053 | fi |
9054 | ||
9055 | ||
7083c021 AC |
9056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
9057 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
9058 | if test "${GCC-no}" = yes |
9059 | then | |
b6d0720c | 9060 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 9061 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9062 | else |
9063 | ||
9064 | oldcflags="${CFLAGS-}" | |
9065 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 9066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9067 | /* end confdefs.h. */ |
9068 | ||
9069 | #include <string.h> | |
9070 | #include <stdio.h> | |
9071 | int main(void); | |
9072 | ||
9073 | int | |
9074 | main () | |
9075 | { | |
9076 | ||
b1fc1658 | 9077 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9078 | |
9079 | ; | |
9080 | return 0; | |
9081 | } | |
9082 | _ACEOF | |
7083c021 | 9083 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9084 | charybdis_cv_c_gcc_w_nested_externs=yes |
9085 | else | |
7083c021 | 9086 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 9087 | fi |
631ef239 | 9088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9089 | CFLAGS="${oldcflags}" |
9090 | fi | |
9091 | ||
9092 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
9093 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9095 | $as_echo "ok" >&6; } | |
212380e3 AC |
9096 | else |
9097 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9099 | $as_echo "no" >&6; } | |
212380e3 AC |
9100 | fi |
9101 | else | |
7083c021 AC |
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9103 | $as_echo "no" >&6; } | |
212380e3 AC |
9104 | fi |
9105 | ||
9106 | ||
7083c021 AC |
9107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
9108 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
9109 | if test "${GCC-no}" = yes |
9110 | then | |
b6d0720c | 9111 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 9112 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9113 | else |
9114 | ||
9115 | oldcflags="${CFLAGS-}" | |
9116 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 9117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9118 | /* end confdefs.h. */ |
9119 | ||
9120 | #include <string.h> | |
9121 | #include <stdio.h> | |
9122 | int main(void); | |
9123 | ||
9124 | int | |
9125 | main () | |
9126 | { | |
9127 | ||
b1fc1658 | 9128 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9129 | |
9130 | ; | |
9131 | return 0; | |
9132 | } | |
9133 | _ACEOF | |
7083c021 | 9134 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9135 | charybdis_cv_c_gcc_w_unused=yes |
9136 | else | |
7083c021 | 9137 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 9138 | fi |
631ef239 | 9139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9140 | CFLAGS="${oldcflags}" |
9141 | fi | |
9142 | ||
9143 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
9144 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9146 | $as_echo "ok" >&6; } | |
212380e3 AC |
9147 | else |
9148 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9150 | $as_echo "no" >&6; } | |
212380e3 AC |
9151 | fi |
9152 | else | |
7083c021 AC |
9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9154 | $as_echo "no" >&6; } | |
212380e3 AC |
9155 | fi |
9156 | ||
9157 | ||
7083c021 AC |
9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
9159 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
9160 | if test "${GCC-no}" = yes |
9161 | then | |
b6d0720c | 9162 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 9163 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9164 | else |
9165 | ||
9166 | oldcflags="${CFLAGS-}" | |
9167 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 9168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9169 | /* end confdefs.h. */ |
9170 | ||
9171 | #include <string.h> | |
9172 | #include <stdio.h> | |
9173 | int main(void); | |
9174 | ||
9175 | int | |
9176 | main () | |
9177 | { | |
9178 | ||
b1fc1658 | 9179 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9180 | |
9181 | ; | |
9182 | return 0; | |
9183 | } | |
9184 | _ACEOF | |
7083c021 | 9185 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9186 | charybdis_cv_c_gcc_w_redundant_decls=yes |
9187 | else | |
7083c021 | 9188 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 9189 | fi |
631ef239 | 9190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9191 | CFLAGS="${oldcflags}" |
9192 | fi | |
9193 | ||
9194 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
9195 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9197 | $as_echo "ok" >&6; } | |
212380e3 AC |
9198 | else |
9199 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
9200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9201 | $as_echo "no" >&6; } | |
212380e3 AC |
9202 | fi |
9203 | else | |
7083c021 AC |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9205 | $as_echo "no" >&6; } | |
212380e3 AC |
9206 | fi |
9207 | ||
9208 | ||
7083c021 AC |
9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
9210 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
9211 | if test "${GCC-no}" = yes |
9212 | then | |
b6d0720c | 9213 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 9214 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9215 | else |
9216 | ||
9217 | oldcflags="${CFLAGS-}" | |
9218 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 9219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9220 | /* end confdefs.h. */ |
9221 | ||
9222 | #include <string.h> | |
9223 | #include <stdio.h> | |
9224 | int main(void); | |
9225 | ||
9226 | int | |
9227 | main () | |
9228 | { | |
9229 | ||
b1fc1658 | 9230 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
9231 | |
9232 | ; | |
9233 | return 0; | |
9234 | } | |
9235 | _ACEOF | |
7083c021 | 9236 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
9237 | charybdis_cv_c_gcc_w_float_equal=yes |
9238 | else | |
7083c021 | 9239 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 9240 | fi |
631ef239 | 9241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9242 | CFLAGS="${oldcflags}" |
9243 | fi | |
9244 | ||
9245 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
9246 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
9248 | $as_echo "ok" >&6; } | |
212380e3 AC |
9249 | else |
9250 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9252 | $as_echo "no" >&6; } | |
212380e3 AC |
9253 | fi |
9254 | else | |
7083c021 AC |
9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9256 | $as_echo "no" >&6; } | |
212380e3 AC |
9257 | fi |
9258 | ||
9259 | ||
7083c021 AC |
9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
9261 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
9262 | if test "${GCC-no}" = yes |
9263 | then | |
b6d0720c | 9264 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 9265 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9266 | else |
9267 | ||
9268 | oldcflags="${CFLAGS-}" | |
4a584d41 | 9269 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 9270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9271 | /* end confdefs.h. */ |
9272 | ||
9273 | #include <string.h> | |
9274 | #include <stdio.h> | |
9275 | int main(void); | |
9276 | ||
9277 | int | |
9278 | main () | |
9279 | { | |
7083c021 AC |
9280 | |
9281 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
9282 | ||
212380e3 AC |
9283 | ; |
9284 | return 0; | |
9285 | } | |
9286 | _ACEOF | |
7083c021 AC |
9287 | if ac_fn_c_try_compile "$LINENO"; then : |
9288 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 9289 | else |
7083c021 AC |
9290 | charybdis_cv_c_gcc_w_format=no |
9291 | fi | |
9292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9293 | CFLAGS="${oldcflags}" | |
9294 | fi | |
9295 | ||
9296 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
9297 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
9299 | $as_echo "ok" >&6; } | |
9300 | else | |
9301 | charybdis_cv_c_gcc_w_format='' | |
9302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9303 | $as_echo "no" >&6; } | |
9304 | fi | |
9305 | else | |
9306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9307 | $as_echo "no" >&6; } | |
9308 | fi | |
9309 | ||
9310 | ||
9311 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 9312 | |
212380e3 | 9313 | fi |
631ef239 | 9314 | |
7083c021 AC |
9315 | |
9316 | if test "$shared_modules" = no; then | |
9317 | DYNLINK_C="" | |
9318 | MOD_TARGET="libmodules.a" | |
9319 | MODULES_LIBS="../modules/libmodules.a" | |
9320 | SEDOBJ="" | |
9321 | ||
9322 | $as_echo "#define STATIC_MODULES 1" >>confdefs.h | |
9323 | ||
9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5 | |
9325 | $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
212380e3 | 9326 | fi |
7083c021 AC |
9327 | |
9328 | if test "$shared_modules" = yes; then | |
9329 | ||
9330 | ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist" | |
b6d0720c | 9331 | if test "x$ac_cv_func_nlist" = xyes; then : |
7083c021 | 9332 | |
212380e3 | 9333 | else |
7083c021 AC |
9334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5 |
9335 | $as_echo_n "checking for nlist in -ldl... " >&6; } | |
b6d0720c | 9336 | if ${ac_cv_lib_dl_nlist+:} false; then : |
7083c021 | 9337 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9338 | else |
9339 | ac_check_lib_save_LIBS=$LIBS | |
9340 | LIBS="-ldl $LIBS" | |
7083c021 | 9341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9342 | /* end confdefs.h. */ |
9343 | ||
631ef239 AC |
9344 | /* Override any GCC internal prototype to avoid an error. |
9345 | Use char because int might match the return type of a GCC | |
9346 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9347 | #ifdef __cplusplus |
9348 | extern "C" | |
9349 | #endif | |
212380e3 AC |
9350 | char nlist (); |
9351 | int | |
9352 | main () | |
9353 | { | |
631ef239 | 9354 | return nlist (); |
212380e3 AC |
9355 | ; |
9356 | return 0; | |
9357 | } | |
9358 | _ACEOF | |
7083c021 | 9359 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
9360 | ac_cv_lib_dl_nlist=yes |
9361 | else | |
7083c021 | 9362 | ac_cv_lib_dl_nlist=no |
212380e3 | 9363 | fi |
7083c021 AC |
9364 | rm -f core conftest.err conftest.$ac_objext \ |
9365 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
9366 | LIBS=$ac_check_lib_save_LIBS |
9367 | fi | |
7083c021 AC |
9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5 |
9369 | $as_echo "$ac_cv_lib_dl_nlist" >&6; } | |
b6d0720c | 9370 | if test "x$ac_cv_lib_dl_nlist" = xyes; then : |
212380e3 AC |
9371 | nlist_lib="-ldl" |
9372 | else | |
7083c021 AC |
9373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 |
9374 | $as_echo_n "checking for nlist in -lelf... " >&6; } | |
b6d0720c | 9375 | if ${ac_cv_lib_elf_nlist+:} false; then : |
7083c021 | 9376 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9377 | else |
9378 | ac_check_lib_save_LIBS=$LIBS | |
9379 | LIBS="-lelf $LIBS" | |
7083c021 | 9380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
9381 | /* end confdefs.h. */ |
9382 | ||
631ef239 AC |
9383 | /* Override any GCC internal prototype to avoid an error. |
9384 | Use char because int might match the return type of a GCC | |
9385 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9386 | #ifdef __cplusplus |
9387 | extern "C" | |
9388 | #endif | |
212380e3 AC |
9389 | char nlist (); |
9390 | int | |
9391 | main () | |
9392 | { | |
631ef239 | 9393 | return nlist (); |
212380e3 AC |
9394 | ; |
9395 | return 0; | |
9396 | } | |
9397 | _ACEOF | |
7083c021 | 9398 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
9399 | ac_cv_lib_elf_nlist=yes |
9400 | else | |
7083c021 | 9401 | ac_cv_lib_elf_nlist=no |
212380e3 | 9402 | fi |
7083c021 AC |
9403 | rm -f core conftest.err conftest.$ac_objext \ |
9404 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
9405 | LIBS=$ac_check_lib_save_LIBS |
9406 | fi | |
7083c021 AC |
9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 |
9408 | $as_echo "$ac_cv_lib_elf_nlist" >&6; } | |
b6d0720c | 9409 | if test "x$ac_cv_lib_elf_nlist" = xyes; then : |
212380e3 AC |
9410 | nlist_lib="-lelf" |
9411 | fi | |
9412 | ||
9413 | ||
9414 | fi | |
9415 | ||
9416 | ||
9417 | fi | |
9418 | ||
9419 | ||
7083c021 | 9420 | ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default" |
b6d0720c | 9421 | if test "x$ac_cv_header_libelf_nlist_h" = xyes; then : |
212380e3 AC |
9422 | nlist_h="libelf/nlist.h" |
9423 | fi | |
9424 | ||
9425 | ||
7083c021 | 9426 | ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default" |
b6d0720c | 9427 | if test "x$ac_cv_header_elf_nlist_h" = xyes; then : |
212380e3 AC |
9428 | nlist_h="elf/nlist.h" |
9429 | fi | |
9430 | ||
9431 | ||
7083c021 | 9432 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
b6d0720c | 9433 | if test "x$ac_cv_header_nlist_h" = xyes; then : |
212380e3 AC |
9434 | nlist_h="nlist.h" |
9435 | fi | |
9436 | ||
9437 | ||
9438 | if test x"$nlist_h" = "x"; then | |
9439 | ||
9440 | cat >>confdefs.h <<_ACEOF | |
9441 | #define SYMBOL_PREFIX "" | |
9442 | _ACEOF | |
9443 | ||
9444 | else | |
7083c021 AC |
9445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5 |
9446 | $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; } | |
b6d0720c | 9447 | if ${symbol_underscores+:} false; then : |
7083c021 | 9448 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
9449 | else |
9450 | ||
9451 | cat << EOF > conftest.c | |
9452 | #include <$nlist_h> | |
9453 | #include <stdio.h> | |
9454 | #include <stdlib.h> | |
9455 | void _modinit(void); | |
9456 | int main(int argc, char *argv[]) { | |
9457 | int i; | |
9458 | struct nlist nl[5]; | |
9459 | ||
9460 | /* fill the names in this way, so it'll work almost everywhere */ | |
9461 | nl[0].n_name = "_modinit"; | |
9462 | nl[1].n_name = "__modinit"; | |
9463 | nl[2].n_name = "___modinit"; | |
9464 | nl[3].n_name = "____modinit"; | |
9465 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
9466 | ||
9467 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
9468 | for(i = 0; i < 4; i++) { | |
9469 | if(nl[i].n_value != NULL) | |
9470 | { | |
9471 | int j; | |
9472 | for(j = 0; j < i; j++) | |
9473 | printf("_"); | |
9474 | exit(i); | |
9475 | } | |
9476 | } | |
9477 | exit(-1); | |
9478 | } | |
9479 | void _modinit(void) { return; } | |
9480 | EOF | |
9481 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
9482 | symbol_underscores=`./conftest conftest` | |
7083c021 AC |
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5 |
9484 | $as_echo "$symbol_underscores" >&6; } | |
212380e3 AC |
9485 | $RM -f conftest conftest.c |
9486 | ||
9487 | fi | |
9488 | ||
9489 | ||
9490 | cat >>confdefs.h <<_ACEOF | |
9491 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
9492 | _ACEOF | |
9493 | ||
9494 | fi | |
9495 | fi | |
9496 | ||
d2c5159a JT |
9497 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
9498 | ||
212380e3 AC |
9499 | |
9500 | ||
9501 | ||
9502 | ||
9503 | ||
9504 | ||
9505 | ||
9506 | ||
9507 | ||
9508 | ||
9509 | ||
9510 | ||
9511 | ||
9512 | if test "$prefix" = "NONE"; then | |
9513 | ||
9514 | cat >>confdefs.h <<_ACEOF | |
9515 | #define IRCD_PREFIX "$ac_default_prefix" | |
9516 | _ACEOF | |
9517 | ||
9518 | ||
9519 | else | |
9520 | ||
9521 | ||
9522 | prefix=`echo $prefix | sed 's/\/$//'` | |
9523 | ||
9524 | cat >>confdefs.h <<_ACEOF | |
9525 | #define IRCD_PREFIX "$prefix" | |
9526 | _ACEOF | |
9527 | ||
9528 | ||
9529 | fi | |
9530 | ||
6fb6bd15 | 9531 | ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" |
212380e3 AC |
9532 | |
9533 | ||
9534 | cat >confcache <<\_ACEOF | |
9535 | # This file is a shell script that caches the results of configure | |
9536 | # tests run on this system so they can be shared between configure | |
9537 | # scripts and configure runs, see configure's option --config-cache. | |
9538 | # It is not useful on other systems. If it contains results you don't | |
9539 | # want to keep, you may remove or edit it. | |
9540 | # | |
9541 | # config.status only pays attention to the cache file if you give it | |
9542 | # the --recheck option to rerun configure. | |
9543 | # | |
9544 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9545 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9546 | # following values. | |
9547 | ||
9548 | _ACEOF | |
9549 | ||
9550 | # The following way of writing the cache mishandles newlines in values, | |
9551 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 9552 | # So, we kill variables containing newlines. |
212380e3 AC |
9553 | # Ultrix sh set writes to stderr and can't be redirected directly, |
9554 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
9555 | ( |
9556 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9557 | eval ac_val=\$$ac_var | |
9558 | case $ac_val in #( | |
9559 | *${as_nl}*) | |
9560 | case $ac_var in #( | |
7083c021 AC |
9561 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
9562 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
9563 | esac |
9564 | case $ac_var in #( | |
9565 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
9566 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
9567 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
9568 | esac ;; |
9569 | esac | |
9570 | done | |
9571 | ||
212380e3 | 9572 | (set) 2>&1 | |
631ef239 AC |
9573 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9574 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
9575 | # `set' does not quote correctly, so add quotes: double-quote |
9576 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
9577 | sed -n \ |
9578 | "s/'/'\\\\''/g; | |
9579 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 9580 | ;; #( |
212380e3 AC |
9581 | *) |
9582 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 9583 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 9584 | ;; |
631ef239 AC |
9585 | esac | |
9586 | sort | |
9587 | ) | | |
212380e3 | 9588 | sed ' |
631ef239 | 9589 | /^ac_cv_env_/b end |
212380e3 | 9590 | t clear |
631ef239 | 9591 | :clear |
212380e3 AC |
9592 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
9593 | t end | |
631ef239 AC |
9594 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
9595 | :end' >>confcache | |
9596 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9597 | if test -w "$cache_file"; then | |
b6d0720c | 9598 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
9600 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
9601 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
9602 | cat confcache >"$cache_file" | |
9603 | else | |
9604 | case $cache_file in #( | |
9605 | */* | ?:*) | |
9606 | mv -f confcache "$cache_file"$$ && | |
9607 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
9608 | *) | |
9609 | mv -f confcache "$cache_file" ;; | |
9610 | esac | |
9611 | fi | |
9612 | fi | |
212380e3 | 9613 | else |
7083c021 AC |
9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
9615 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
9616 | fi |
9617 | fi | |
9618 | rm -f confcache | |
9619 | ||
9620 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9621 | # Let make expand exec_prefix. | |
9622 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9623 | ||
212380e3 AC |
9624 | DEFS=-DHAVE_CONFIG_H |
9625 | ||
9626 | ac_libobjs= | |
9627 | ac_ltlibobjs= | |
b6d0720c | 9628 | U= |
212380e3 AC |
9629 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9630 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 9631 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 9632 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
9633 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9634 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
9635 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9636 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
9637 | done |
9638 | LIBOBJS=$ac_libobjs | |
9639 | ||
9640 | LTLIBOBJS=$ac_ltlibobjs | |
9641 | ||
9642 | ||
9643 | ||
7083c021 AC |
9644 | |
9645 | ||
b6d0720c | 9646 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 9647 | ac_write_fail=0 |
212380e3 AC |
9648 | ac_clean_files_save=$ac_clean_files |
9649 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
9651 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
9652 | as_write_fail=0 | |
9653 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
9654 | #! $SHELL |
9655 | # Generated by $as_me. | |
9656 | # Run this file to recreate the current configuration. | |
9657 | # Compiler output produced by configure, useful for debugging | |
9658 | # configure, is in config.log if it exists. | |
9659 | ||
9660 | debug=false | |
9661 | ac_cs_recheck=false | |
9662 | ac_cs_silent=false | |
212380e3 | 9663 | |
7083c021 AC |
9664 | SHELL=\${CONFIG_SHELL-$SHELL} |
9665 | export SHELL | |
9666 | _ASEOF | |
9667 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
9668 | ## -------------------- ## | |
9669 | ## M4sh Initialization. ## | |
9670 | ## -------------------- ## | |
212380e3 | 9671 | |
631ef239 AC |
9672 | # Be more Bourne compatible |
9673 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 9674 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
9675 | emulate sh |
9676 | NULLCMD=: | |
7083c021 | 9677 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
9678 | # is contrary to our usage. Disable this feature. |
9679 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 9680 | setopt NO_GLOB_SUBST |
212380e3 | 9681 | else |
7083c021 AC |
9682 | case `(set -o) 2>/dev/null` in #( |
9683 | *posix*) : | |
9684 | set -o posix ;; #( | |
9685 | *) : | |
9686 | ;; | |
631ef239 | 9687 | esac |
212380e3 AC |
9688 | fi |
9689 | ||
9690 | ||
7083c021 AC |
9691 | as_nl=' |
9692 | ' | |
9693 | export as_nl | |
9694 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
9695 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
9696 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
9697 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
9698 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
9699 | # but without wasting forks for bash or zsh. | |
9700 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
9701 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
9702 | as_echo='print -r --' | |
9703 | as_echo_n='print -rn --' | |
9704 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
9705 | as_echo='printf %s\n' | |
9706 | as_echo_n='printf %s' | |
9707 | else | |
9708 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
9709 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
9710 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 9711 | else |
7083c021 AC |
9712 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
9713 | as_echo_n_body='eval | |
9714 | arg=$1; | |
9715 | case $arg in #( | |
9716 | *"$as_nl"*) | |
9717 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
9718 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
9719 | esac; | |
9720 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
9721 | ' | |
9722 | export as_echo_n_body | |
9723 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 9724 | fi |
7083c021 AC |
9725 | export as_echo_body |
9726 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
9727 | fi |
9728 | ||
7083c021 AC |
9729 | # The user is always right. |
9730 | if test "${PATH_SEPARATOR+set}" != set; then | |
9731 | PATH_SEPARATOR=: | |
9732 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
9733 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
9734 | PATH_SEPARATOR=';' | |
9735 | } | |
631ef239 AC |
9736 | fi |
9737 | ||
9738 | ||
9739 | # IFS | |
9740 | # We need space, tab and new line, in precisely that order. Quoting is | |
9741 | # there to prevent editors from complaining about space-tab. | |
9742 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
9743 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
9744 | IFS=" "" $as_nl" |
9745 | ||
9746 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 9747 | as_myself= |
7083c021 | 9748 | case $0 in #(( |
631ef239 AC |
9749 | *[\\/]* ) as_myself=$0 ;; |
9750 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9751 | for as_dir in $PATH | |
9752 | do | |
9753 | IFS=$as_save_IFS | |
9754 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
9755 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
9756 | done | |
631ef239 AC |
9757 | IFS=$as_save_IFS |
9758 | ||
9759 | ;; | |
9760 | esac | |
9761 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
9762 | # in which case we are not to be found in the path. | |
9763 | if test "x$as_myself" = x; then | |
9764 | as_myself=$0 | |
9765 | fi | |
9766 | if test ! -f "$as_myself"; then | |
7083c021 AC |
9767 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
9768 | exit 1 | |
631ef239 AC |
9769 | fi |
9770 | ||
7083c021 AC |
9771 | # Unset variables that we do not need and which cause bugs (e.g. in |
9772 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
9773 | # suppresses any "Segmentation fault" message there. '((' could | |
9774 | # trigger a bug in pdksh 5.2.14. | |
9775 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
9776 | do eval test x\${$as_var+set} = xset \ | |
9777 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 9778 | done |
212380e3 AC |
9779 | PS1='$ ' |
9780 | PS2='> ' | |
9781 | PS4='+ ' | |
9782 | ||
7083c021 AC |
9783 | # NLS nuisances. |
9784 | LC_ALL=C | |
9785 | export LC_ALL | |
9786 | LANGUAGE=C | |
9787 | export LANGUAGE | |
9788 | ||
9789 | # CDPATH. | |
9790 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
9791 | ||
9792 | ||
b6d0720c AC |
9793 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
9794 | # ---------------------------------------- | |
7083c021 AC |
9795 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
9796 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 9797 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
9798 | as_fn_error () |
9799 | { | |
b6d0720c AC |
9800 | as_status=$1; test $as_status -eq 0 && as_status=1 |
9801 | if test "$4"; then | |
9802 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9803 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 9804 | fi |
b6d0720c | 9805 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
9806 | as_fn_exit $as_status |
9807 | } # as_fn_error | |
9808 | ||
9809 | ||
9810 | # as_fn_set_status STATUS | |
9811 | # ----------------------- | |
9812 | # Set $? to STATUS, without forking. | |
9813 | as_fn_set_status () | |
9814 | { | |
9815 | return $1 | |
9816 | } # as_fn_set_status | |
9817 | ||
9818 | # as_fn_exit STATUS | |
9819 | # ----------------- | |
9820 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
9821 | as_fn_exit () | |
9822 | { | |
9823 | set +e | |
9824 | as_fn_set_status $1 | |
9825 | exit $1 | |
9826 | } # as_fn_exit | |
9827 | ||
9828 | # as_fn_unset VAR | |
9829 | # --------------- | |
9830 | # Portably unset VAR. | |
9831 | as_fn_unset () | |
9832 | { | |
9833 | { eval $1=; unset $1;} | |
9834 | } | |
9835 | as_unset=as_fn_unset | |
9836 | # as_fn_append VAR VALUE | |
9837 | # ---------------------- | |
9838 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
9839 | # advantage of any shell optimizations that allow amortized linear growth over | |
9840 | # repeated appends, instead of the typical quadratic growth present in naive | |
9841 | # implementations. | |
9842 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
9843 | eval 'as_fn_append () | |
9844 | { | |
9845 | eval $1+=\$2 | |
9846 | }' | |
9847 | else | |
9848 | as_fn_append () | |
9849 | { | |
9850 | eval $1=\$$1\$2 | |
9851 | } | |
9852 | fi # as_fn_append | |
9853 | ||
9854 | # as_fn_arith ARG... | |
9855 | # ------------------ | |
9856 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
9857 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
9858 | # must be portable across $(()) and expr. | |
9859 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
9860 | eval 'as_fn_arith () | |
9861 | { | |
9862 | as_val=$(( $* )) | |
9863 | }' | |
9864 | else | |
9865 | as_fn_arith () | |
9866 | { | |
9867 | as_val=`expr "$@" || test $? -eq 1` | |
9868 | } | |
9869 | fi # as_fn_arith | |
9870 | ||
212380e3 | 9871 | |
631ef239 AC |
9872 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9873 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
9874 | as_expr=expr |
9875 | else | |
9876 | as_expr=false | |
9877 | fi | |
9878 | ||
631ef239 | 9879 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
9880 | as_basename=basename |
9881 | else | |
9882 | as_basename=false | |
9883 | fi | |
9884 | ||
7083c021 AC |
9885 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
9886 | as_dirname=dirname | |
9887 | else | |
9888 | as_dirname=false | |
9889 | fi | |
212380e3 | 9890 | |
631ef239 | 9891 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
9892 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9893 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 9894 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 9895 | $as_echo X/"$0" | |
631ef239 AC |
9896 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
9897 | s//\1/ | |
9898 | q | |
9899 | } | |
9900 | /^X\/\(\/\/\)$/{ | |
9901 | s//\1/ | |
9902 | q | |
9903 | } | |
9904 | /^X\/\(\/\).*/{ | |
9905 | s//\1/ | |
9906 | q | |
9907 | } | |
9908 | s/.*/./; q'` | |
212380e3 | 9909 | |
7083c021 AC |
9910 | # Avoid depending upon Character Ranges. |
9911 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9912 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9913 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9914 | as_cr_digits='0123456789' | |
9915 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
9916 | |
9917 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 9918 | case `echo -n x` in #((((( |
631ef239 | 9919 | -n*) |
7083c021 | 9920 | case `echo 'xy\c'` in |
631ef239 | 9921 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
9922 | xy) ECHO_C='\c';; |
9923 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
9924 | ECHO_T=' ';; | |
631ef239 AC |
9925 | esac;; |
9926 | *) | |
9927 | ECHO_N='-n';; | |
212380e3 AC |
9928 | esac |
9929 | ||
212380e3 | 9930 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
9931 | if test -d conf$$.dir; then |
9932 | rm -f conf$$.dir/conf$$.file | |
9933 | else | |
9934 | rm -f conf$$.dir | |
7083c021 AC |
9935 | mkdir conf$$.dir 2>/dev/null |
9936 | fi | |
9937 | if (echo >conf$$.file) 2>/dev/null; then | |
9938 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9939 | as_ln_s='ln -s' | |
9940 | # ... but there are two gotchas: | |
9941 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
9942 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
9943 | # In both cases, we have to default to `cp -p'. | |
9944 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
9945 | as_ln_s='cp -p' | |
9946 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
9947 | as_ln_s=ln | |
9948 | else | |
212380e3 | 9949 | as_ln_s='cp -p' |
7083c021 | 9950 | fi |
212380e3 AC |
9951 | else |
9952 | as_ln_s='cp -p' | |
9953 | fi | |
631ef239 AC |
9954 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
9955 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 9956 | |
7083c021 AC |
9957 | |
9958 | # as_fn_mkdir_p | |
9959 | # ------------- | |
9960 | # Create "$as_dir" as a directory, including parents if necessary. | |
9961 | as_fn_mkdir_p () | |
9962 | { | |
9963 | ||
9964 | case $as_dir in #( | |
9965 | -*) as_dir=./$as_dir;; | |
9966 | esac | |
9967 | test -d "$as_dir" || eval $as_mkdir_p || { | |
9968 | as_dirs= | |
9969 | while :; do | |
9970 | case $as_dir in #( | |
9971 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
9972 | *) as_qdir=$as_dir;; | |
9973 | esac | |
9974 | as_dirs="'$as_qdir' $as_dirs" | |
9975 | as_dir=`$as_dirname -- "$as_dir" || | |
9976 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9977 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9978 | X"$as_dir" : 'X\(//\)$' \| \ | |
9979 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
9980 | $as_echo X"$as_dir" | | |
9981 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9982 | s//\1/ | |
9983 | q | |
9984 | } | |
9985 | /^X\(\/\/\)[^/].*/{ | |
9986 | s//\1/ | |
9987 | q | |
9988 | } | |
9989 | /^X\(\/\/\)$/{ | |
9990 | s//\1/ | |
9991 | q | |
9992 | } | |
9993 | /^X\(\/\).*/{ | |
9994 | s//\1/ | |
9995 | q | |
9996 | } | |
9997 | s/.*/./; q'` | |
9998 | test -d "$as_dir" && break | |
9999 | done | |
10000 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 10001 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
10002 | |
10003 | ||
10004 | } # as_fn_mkdir_p | |
212380e3 | 10005 | if mkdir -p . 2>/dev/null; then |
7083c021 | 10006 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
10007 | else |
10008 | test -d ./-p && rmdir ./-p | |
10009 | as_mkdir_p=false | |
10010 | fi | |
10011 | ||
631ef239 AC |
10012 | if test -x / >/dev/null 2>&1; then |
10013 | as_test_x='test -x' | |
10014 | else | |
10015 | if ls -dL / >/dev/null 2>&1; then | |
10016 | as_ls_L_option=L | |
10017 | else | |
10018 | as_ls_L_option= | |
10019 | fi | |
10020 | as_test_x=' | |
10021 | eval sh -c '\'' | |
10022 | if test -d "$1"; then | |
7083c021 | 10023 | test -d "$1/."; |
631ef239 | 10024 | else |
7083c021 AC |
10025 | case $1 in #( |
10026 | -*)set "./$1";; | |
631ef239 | 10027 | esac; |
7083c021 | 10028 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
631ef239 AC |
10029 | ???[sx]*):;;*)false;;esac;fi |
10030 | '\'' sh | |
10031 | ' | |
10032 | fi | |
10033 | as_executable_p=$as_test_x | |
212380e3 AC |
10034 | |
10035 | # Sed expression to map a string onto a valid CPP name. | |
10036 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10037 | ||
10038 | # Sed expression to map a string onto a valid variable name. | |
10039 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10040 | ||
10041 | ||
212380e3 | 10042 | exec 6>&1 |
7083c021 AC |
10043 | ## ----------------------------------- ## |
10044 | ## Main body of $CONFIG_STATUS script. ## | |
10045 | ## ----------------------------------- ## | |
10046 | _ASEOF | |
10047 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 10048 | |
7083c021 AC |
10049 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10050 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 10051 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
10052 | # values after options handling. |
10053 | ac_log=" | |
5a241f54 | 10054 | This file was extended by charybdis $as_me 3.3.0, which was |
b6d0720c | 10055 | generated by GNU Autoconf 2.68. Invocation command line was |
212380e3 AC |
10056 | |
10057 | CONFIG_FILES = $CONFIG_FILES | |
10058 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10059 | CONFIG_LINKS = $CONFIG_LINKS | |
10060 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10061 | $ $0 $@ | |
10062 | ||
631ef239 AC |
10063 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10064 | " | |
10065 | ||
212380e3 AC |
10066 | _ACEOF |
10067 | ||
7083c021 AC |
10068 | case $ac_config_files in *" |
10069 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10070 | esac | |
10071 | ||
10072 | case $ac_config_headers in *" | |
10073 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10074 | esac | |
10075 | ||
10076 | ||
10077 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 10078 | # Files that config.status was made for. |
631ef239 AC |
10079 | config_files="$ac_config_files" |
10080 | config_headers="$ac_config_headers" | |
212380e3 | 10081 | |
631ef239 | 10082 | _ACEOF |
212380e3 | 10083 | |
7083c021 | 10084 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 10085 | ac_cs_usage="\ |
7083c021 AC |
10086 | \`$as_me' instantiates files and other configuration actions |
10087 | from templates according to the current configuration. Unless the files | |
10088 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 10089 | |
7083c021 | 10090 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
10091 | |
10092 | -h, --help print this help, then exit | |
631ef239 | 10093 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 10094 | --config print configuration, then exit |
7083c021 AC |
10095 | -q, --quiet, --silent |
10096 | do not print progress messages | |
212380e3 AC |
10097 | -d, --debug don't remove temporary files |
10098 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
10099 | --file=FILE[:TEMPLATE] |
10100 | instantiate the configuration file FILE | |
10101 | --header=FILE[:TEMPLATE] | |
10102 | instantiate the configuration header FILE | |
212380e3 AC |
10103 | |
10104 | Configuration files: | |
10105 | $config_files | |
10106 | ||
10107 | Configuration headers: | |
10108 | $config_headers | |
10109 | ||
7083c021 | 10110 | Report bugs to the package provider." |
212380e3 | 10111 | |
631ef239 | 10112 | _ACEOF |
7083c021 | 10113 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 10114 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 10115 | ac_cs_version="\\ |
5a241f54 | 10116 | charybdis config.status 3.3.0 |
b6d0720c | 10117 | configured by $0, generated by GNU Autoconf 2.68, |
6fb6bd15 | 10118 | with options \\"\$ac_cs_config\\" |
212380e3 | 10119 | |
b6d0720c | 10120 | Copyright (C) 2010 Free Software Foundation, Inc. |
212380e3 AC |
10121 | This config.status script is free software; the Free Software Foundation |
10122 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
10123 | |
10124 | ac_pwd='$ac_pwd' | |
10125 | srcdir='$srcdir' | |
10126 | INSTALL='$INSTALL' | |
7083c021 | 10127 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
10128 | _ACEOF |
10129 | ||
7083c021 AC |
10130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10131 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
10132 | ac_need_defaults=: |
10133 | while test $# != 0 | |
10134 | do | |
10135 | case $1 in | |
b6d0720c | 10136 | --*=?*) |
631ef239 AC |
10137 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10138 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
10139 | ac_shift=: |
10140 | ;; | |
b6d0720c AC |
10141 | --*=) |
10142 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10143 | ac_optarg= | |
10144 | ac_shift=: | |
10145 | ;; | |
631ef239 | 10146 | *) |
212380e3 AC |
10147 | ac_option=$1 |
10148 | ac_optarg=$2 | |
10149 | ac_shift=shift | |
10150 | ;; | |
212380e3 AC |
10151 | esac |
10152 | ||
10153 | case $ac_option in | |
10154 | # Handling of the options. | |
212380e3 AC |
10155 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10156 | ac_cs_recheck=: ;; | |
631ef239 | 10157 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 10158 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
10159 | --config | --confi | --conf | --con | --co | --c ) |
10160 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 10161 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
10162 | debug=: ;; |
10163 | --file | --fil | --fi | --f ) | |
10164 | $ac_shift | |
7083c021 AC |
10165 | case $ac_optarg in |
10166 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 10167 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
10168 | esac |
10169 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
10170 | ac_need_defaults=false;; |
10171 | --header | --heade | --head | --hea ) | |
10172 | $ac_shift | |
7083c021 AC |
10173 | case $ac_optarg in |
10174 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10175 | esac | |
10176 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 10177 | ac_need_defaults=false;; |
631ef239 AC |
10178 | --he | --h) |
10179 | # Conflict between --help and --header | |
b6d0720c | 10180 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 10181 | Try \`$0 --help' for more information.";; |
631ef239 | 10182 | --help | --hel | -h ) |
7083c021 | 10183 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
10184 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10185 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10186 | ac_cs_silent=: ;; | |
10187 | ||
10188 | # This is an error. | |
b6d0720c | 10189 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 10190 | Try \`$0 --help' for more information." ;; |
212380e3 | 10191 | |
7083c021 | 10192 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 10193 | ac_need_defaults=false ;; |
212380e3 AC |
10194 | |
10195 | esac | |
10196 | shift | |
10197 | done | |
10198 | ||
10199 | ac_configure_extra_args= | |
10200 | ||
10201 | if $ac_cs_silent; then | |
10202 | exec 6>/dev/null | |
10203 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10204 | fi | |
10205 | ||
10206 | _ACEOF | |
7083c021 | 10207 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 10208 | if \$ac_cs_recheck; then |
7083c021 AC |
10209 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10210 | shift | |
10211 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10212 | CONFIG_SHELL='$SHELL' | |
631ef239 | 10213 | export CONFIG_SHELL |
7083c021 | 10214 | exec "\$@" |
212380e3 AC |
10215 | fi |
10216 | ||
10217 | _ACEOF | |
7083c021 | 10218 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10219 | exec 5>>config.log |
10220 | { | |
10221 | echo | |
10222 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10223 | ## Running $as_me. ## | |
10224 | _ASBOX | |
7083c021 | 10225 | $as_echo "$ac_log" |
631ef239 | 10226 | } >&5 |
212380e3 | 10227 | |
631ef239 | 10228 | _ACEOF |
7083c021 | 10229 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 | 10230 | _ACEOF |
212380e3 | 10231 | |
7083c021 | 10232 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10233 | |
10234 | # Handling of arguments. | |
212380e3 AC |
10235 | for ac_config_target in $ac_config_targets |
10236 | do | |
631ef239 AC |
10237 | case $ac_config_target in |
10238 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
10239 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7083c021 | 10240 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 10241 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 10242 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
631ef239 AC |
10243 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
10244 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
10245 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
10246 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
10247 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
10248 | ||
b6d0720c | 10249 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
10250 | esac |
10251 | done | |
10252 | ||
631ef239 | 10253 | |
212380e3 AC |
10254 | # If the user did not use the arguments to specify the items to instantiate, |
10255 | # then the envvar interface is used. Set only those that are not. | |
10256 | # We use the long form for the default assignment because of an extremely | |
10257 | # bizarre bug on SunOS 4.1.3. | |
10258 | if $ac_need_defaults; then | |
10259 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10260 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10261 | fi | |
10262 | ||
10263 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 10264 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 10265 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
10266 | # Hook for its removal unless debugging. |
10267 | # Note that there is a small window in which the directory will not be cleaned: | |
10268 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
10269 | $debug || |
10270 | { | |
b6d0720c | 10271 | tmp= ac_tmp= |
631ef239 | 10272 | trap 'exit_status=$? |
b6d0720c AC |
10273 | : "${ac_tmp:=$tmp}" |
10274 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 10275 | ' 0 |
7083c021 | 10276 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 10277 | } |
212380e3 AC |
10278 | # Create a (secure) tmp directory for tmp files. |
10279 | ||
10280 | { | |
631ef239 | 10281 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 10282 | test -d "$tmp" |
212380e3 AC |
10283 | } || |
10284 | { | |
631ef239 AC |
10285 | tmp=./conf$$-$RANDOM |
10286 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
10287 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
10288 | ac_tmp=$tmp | |
212380e3 | 10289 | |
7083c021 AC |
10290 | # Set up the scripts for CONFIG_FILES section. |
10291 | # No need to generate them if there are no CONFIG_FILES. | |
10292 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
10293 | if test -n "$CONFIG_FILES"; then |
10294 | ||
631ef239 | 10295 | |
7083c021 AC |
10296 | ac_cr=`echo X | tr X '\015'` |
10297 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10298 | # But we know of no other shell where ac_cr would be empty at this | |
10299 | # point, so we can use a bashism as a fallback. | |
10300 | if test "x$ac_cr" = x; then | |
10301 | eval ac_cr=\$\'\\r\' | |
10302 | fi | |
10303 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10304 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 10305 | ac_cs_awk_cr='\\r' |
7083c021 AC |
10306 | else |
10307 | ac_cs_awk_cr=$ac_cr | |
10308 | fi | |
10309 | ||
b6d0720c | 10310 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 10311 | _ACEOF |
631ef239 AC |
10312 | |
10313 | ||
7083c021 AC |
10314 | { |
10315 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10316 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10317 | echo "_ACEOF" | |
10318 | } >conf$$subs.sh || | |
b6d0720c AC |
10319 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10320 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
10321 | ac_delim='%!_!# ' |
10322 | for ac_last_try in false false false false false :; do | |
7083c021 | 10323 | . ./conf$$subs.sh || |
b6d0720c | 10324 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
10325 | |
10326 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10327 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
10328 | break |
10329 | elif $ac_last_try; then | |
b6d0720c | 10330 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
10331 | else |
10332 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 10333 | fi |
631ef239 | 10334 | done |
7083c021 AC |
10335 | rm -f conf$$subs.sh |
10336 | ||
10337 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 10338 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
10339 | _ACEOF |
10340 | sed -n ' | |
10341 | h | |
10342 | s/^/S["/; s/!.*/"]=/ | |
10343 | p | |
10344 | g | |
10345 | s/^[^!]*!// | |
10346 | :repl | |
10347 | t repl | |
10348 | s/'"$ac_delim"'$// | |
10349 | t delim | |
10350 | :nl | |
10351 | h | |
6fb6bd15 | 10352 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
10353 | t more1 |
10354 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10355 | p | |
10356 | n | |
10357 | b repl | |
10358 | :more1 | |
10359 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10360 | p | |
10361 | g | |
10362 | s/.\{148\}// | |
10363 | t nl | |
10364 | :delim | |
10365 | h | |
6fb6bd15 | 10366 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
10367 | t more2 |
10368 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10369 | p | |
10370 | b | |
10371 | :more2 | |
10372 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10373 | p | |
10374 | g | |
10375 | s/.\{148\}// | |
10376 | t delim | |
10377 | ' <conf$$subs.awk | sed ' | |
10378 | /^[^""]/{ | |
10379 | N | |
10380 | s/\n// | |
10381 | } | |
10382 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10383 | rm -f conf$$subs.awk | |
10384 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10385 | _ACAWK | |
b6d0720c | 10386 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
10387 | for (key in S) S_is_set[key] = 1 |
10388 | FS = "\a" | |
212380e3 | 10389 | |
7083c021 AC |
10390 | } |
10391 | { | |
10392 | line = $ 0 | |
10393 | nfields = split(line, field, "@") | |
10394 | substed = 0 | |
10395 | len = length(field[1]) | |
10396 | for (i = 2; i < nfields; i++) { | |
10397 | key = field[i] | |
10398 | keylen = length(key) | |
10399 | if (S_is_set[key]) { | |
10400 | value = S[key] | |
10401 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10402 | len += length(value) + length(field[++i]) | |
10403 | substed = 1 | |
10404 | } else | |
10405 | len += 1 + keylen | |
10406 | } | |
631ef239 | 10407 | |
7083c021 AC |
10408 | print line |
10409 | } | |
10410 | ||
10411 | _ACAWK | |
631ef239 | 10412 | _ACEOF |
7083c021 AC |
10413 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10414 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10415 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10416 | else | |
10417 | cat | |
b6d0720c AC |
10418 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
10419 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 10420 | _ACEOF |
631ef239 | 10421 | |
b6d0720c AC |
10422 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
10423 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
10424 | # trailing colons and then remove the whole line if VPATH becomes empty |
10425 | # (actually we leave an empty line to preserve line numbers). | |
10426 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
10427 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
10428 | h | |
10429 | s/// | |
10430 | s/^/:/ | |
10431 | s/[ ]*$/:/ | |
10432 | s/:\$(srcdir):/:/g | |
10433 | s/:\${srcdir}:/:/g | |
10434 | s/:@srcdir@:/:/g | |
10435 | s/^:*// | |
631ef239 | 10436 | s/:*$// |
b6d0720c AC |
10437 | x |
10438 | s/\(=[ ]*\).*/\1/ | |
10439 | G | |
10440 | s/\n// | |
631ef239 AC |
10441 | s/^[^=]*=[ ]*$// |
10442 | }' | |
10443 | fi | |
10444 | ||
7083c021 | 10445 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10446 | fi # test -n "$CONFIG_FILES" |
10447 | ||
7083c021 AC |
10448 | # Set up the scripts for CONFIG_HEADERS section. |
10449 | # No need to generate them if there are no CONFIG_HEADERS. | |
10450 | # This happens for instance with `./config.status Makefile'. | |
10451 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 10452 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
10453 | BEGIN { |
10454 | _ACEOF | |
10455 | ||
10456 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
10457 | # here-document in config.status, that substitutes the proper values into | |
10458 | # config.h.in to produce config.h. | |
10459 | ||
10460 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
10461 | # handling of long lines. | |
10462 | ac_delim='%!_!# ' | |
10463 | for ac_last_try in false false :; do | |
b6d0720c AC |
10464 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
10465 | if test -z "$ac_tt"; then | |
7083c021 AC |
10466 | break |
10467 | elif $ac_last_try; then | |
b6d0720c | 10468 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
10469 | else |
10470 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10471 | fi | |
10472 | done | |
10473 | ||
10474 | # For the awk script, D is an array of macro values keyed by name, | |
10475 | # likewise P contains macro parameters if any. Preserve backslash | |
10476 | # newline sequences. | |
10477 | ||
10478 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10479 | sed -n ' | |
10480 | s/.\{148\}/&'"$ac_delim"'/g | |
10481 | t rset | |
10482 | :rset | |
10483 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
10484 | t def | |
10485 | d | |
10486 | :def | |
10487 | s/\\$// | |
10488 | t bsnl | |
10489 | s/["\\]/\\&/g | |
10490 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10491 | D["\1"]=" \3"/p | |
10492 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
10493 | d | |
10494 | :bsnl | |
10495 | s/["\\]/\\&/g | |
10496 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10497 | D["\1"]=" \3\\\\\\n"\\/p | |
10498 | t cont | |
10499 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
10500 | t cont | |
10501 | d | |
10502 | :cont | |
10503 | n | |
10504 | s/.\{148\}/&'"$ac_delim"'/g | |
10505 | t clear | |
10506 | :clear | |
10507 | s/\\$// | |
10508 | t bsnlc | |
10509 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
10510 | d | |
10511 | :bsnlc | |
10512 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
10513 | b cont | |
10514 | ' <confdefs.h | sed ' | |
10515 | s/'"$ac_delim"'/"\\\ | |
10516 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
10517 | ||
10518 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10519 | for (key in D) D_is_set[key] = 1 | |
10520 | FS = "\a" | |
10521 | } | |
10522 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
10523 | line = \$ 0 | |
10524 | split(line, arg, " ") | |
10525 | if (arg[1] == "#") { | |
10526 | defundef = arg[2] | |
10527 | mac1 = arg[3] | |
10528 | } else { | |
10529 | defundef = substr(arg[1], 2) | |
10530 | mac1 = arg[2] | |
10531 | } | |
10532 | split(mac1, mac2, "(") #) | |
10533 | macro = mac2[1] | |
10534 | prefix = substr(line, 1, index(line, defundef) - 1) | |
10535 | if (D_is_set[macro]) { | |
10536 | # Preserve the white space surrounding the "#". | |
10537 | print prefix "define", macro P[macro] D[macro] | |
10538 | next | |
10539 | } else { | |
10540 | # Replace #undef with comments. This is necessary, for example, | |
10541 | # in the case of _POSIX_SOURCE, which is predefined and required | |
10542 | # on some systems where configure will not decide to define it. | |
10543 | if (defundef == "undef") { | |
10544 | print "/*", prefix defundef, macro, "*/" | |
10545 | next | |
10546 | } | |
10547 | } | |
10548 | } | |
10549 | { print } | |
10550 | _ACAWK | |
10551 | _ACEOF | |
10552 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 10553 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
10554 | fi # test -n "$CONFIG_HEADERS" |
10555 | ||
631ef239 | 10556 | |
7083c021 AC |
10557 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
10558 | shift | |
10559 | for ac_tag | |
631ef239 AC |
10560 | do |
10561 | case $ac_tag in | |
10562 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10563 | esac | |
10564 | case $ac_mode$ac_tag in | |
10565 | :[FHL]*:*);; | |
b6d0720c | 10566 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
10567 | :[FH]-) ac_tag=-:-;; |
10568 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 10569 | esac |
631ef239 AC |
10570 | ac_save_IFS=$IFS |
10571 | IFS=: | |
10572 | set x $ac_tag | |
10573 | IFS=$ac_save_IFS | |
10574 | shift | |
10575 | ac_file=$1 | |
10576 | shift | |
212380e3 | 10577 | |
631ef239 AC |
10578 | case $ac_mode in |
10579 | :L) ac_source=$1;; | |
10580 | :[FH]) | |
10581 | ac_file_inputs= | |
10582 | for ac_f | |
10583 | do | |
10584 | case $ac_f in | |
b6d0720c | 10585 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
10586 | *) # Look for the file first in the build tree, then in the source tree |
10587 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10588 | # because $ac_f cannot contain `:'. | |
10589 | test -f "$ac_f" || | |
10590 | case $ac_f in | |
10591 | [\\/$]*) false;; | |
10592 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10593 | esac || | |
b6d0720c | 10594 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 10595 | esac |
7083c021 AC |
10596 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
10597 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
10598 | done |
10599 | ||
10600 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10601 | # use $as_me), people would be surprised to read: | |
10602 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
10603 | configure_input='Generated from '` |
10604 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
10605 | `' by configure.' | |
631ef239 AC |
10606 | if test x"$ac_file" != x-; then |
10607 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
10609 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 10610 | fi |
7083c021 AC |
10611 | # Neutralize special characters interpreted by sed in replacement strings. |
10612 | case $configure_input in #( | |
10613 | *\&* | *\|* | *\\* ) | |
10614 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
10615 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
10616 | *) ac_sed_conf_input=$configure_input;; | |
10617 | esac | |
631ef239 AC |
10618 | |
10619 | case $ac_tag in | |
b6d0720c AC |
10620 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
10621 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
10622 | esac |
10623 | ;; | |
10624 | esac | |
10625 | ||
10626 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
10627 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10628 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10629 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 10630 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 10631 | $as_echo X"$ac_file" | |
631ef239 AC |
10632 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10633 | s//\1/ | |
10634 | q | |
10635 | } | |
10636 | /^X\(\/\/\)[^/].*/{ | |
10637 | s//\1/ | |
10638 | q | |
10639 | } | |
10640 | /^X\(\/\/\)$/{ | |
10641 | s//\1/ | |
10642 | q | |
10643 | } | |
10644 | /^X\(\/\).*/{ | |
10645 | s//\1/ | |
10646 | q | |
10647 | } | |
10648 | s/.*/./; q'` | |
7083c021 | 10649 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
10650 | ac_builddir=. |
10651 | ||
631ef239 AC |
10652 | case "$ac_dir" in |
10653 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10654 | *) | |
7083c021 | 10655 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 10656 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 10657 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
10658 | case $ac_top_builddir_sub in |
10659 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10660 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10661 | esac ;; | |
10662 | esac | |
10663 | ac_abs_top_builddir=$ac_pwd | |
10664 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10665 | # for backward compatibility: | |
10666 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
10667 | |
10668 | case $srcdir in | |
631ef239 | 10669 | .) # We are building in place. |
212380e3 | 10670 | ac_srcdir=. |
631ef239 AC |
10671 | ac_top_srcdir=$ac_top_builddir_sub |
10672 | ac_abs_top_srcdir=$ac_pwd ;; | |
10673 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 10674 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
10675 | ac_top_srcdir=$srcdir |
10676 | ac_abs_top_srcdir=$srcdir ;; | |
10677 | *) # Relative name. | |
10678 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10679 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10680 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 10681 | esac |
631ef239 | 10682 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 10683 | |
212380e3 | 10684 | |
631ef239 AC |
10685 | case $ac_mode in |
10686 | :F) | |
10687 | # | |
10688 | # CONFIG_FILE | |
10689 | # | |
212380e3 AC |
10690 | |
10691 | case $INSTALL in | |
10692 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 10693 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 10694 | esac |
631ef239 | 10695 | _ACEOF |
212380e3 | 10696 | |
7083c021 | 10697 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
10698 | # If the template does not know about datarootdir, expand it. |
10699 | # FIXME: This hack should be removed a few years after 2.60. | |
10700 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
10701 | ac_sed_dataroot=' |
10702 | /datarootdir/ { | |
631ef239 AC |
10703 | p |
10704 | q | |
10705 | } | |
10706 | /@datadir@/p | |
10707 | /@docdir@/p | |
10708 | /@infodir@/p | |
10709 | /@localedir@/p | |
7083c021 AC |
10710 | /@mandir@/p' |
10711 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
10712 | *datarootdir*) ac_datarootdir_seen=yes;; |
10713 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
10715 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 10716 | _ACEOF |
7083c021 | 10717 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
10718 | ac_datarootdir_hack=' |
10719 | s&@datadir@&$datadir&g | |
10720 | s&@docdir@&$docdir&g | |
10721 | s&@infodir@&$infodir&g | |
10722 | s&@localedir@&$localedir&g | |
10723 | s&@mandir@&$mandir&g | |
7083c021 | 10724 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 10725 | esac |
212380e3 | 10726 | _ACEOF |
631ef239 AC |
10727 | |
10728 | # Neutralize VPATH when `$srcdir' = `.'. | |
10729 | # Shell code in configure.ac might set extrasub. | |
10730 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
10731 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10732 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
10733 | $extrasub |
10734 | _ACEOF | |
7083c021 | 10735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
10736 | :t |
10737 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 10738 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 10739 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 10740 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
10741 | s&@srcdir@&$ac_srcdir&;t t |
10742 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10743 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10744 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10745 | s&@builddir@&$ac_builddir&;t t | |
10746 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10747 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10748 | s&@INSTALL@&$ac_INSTALL&;t t | |
10749 | $ac_datarootdir_hack | |
7083c021 | 10750 | " |
b6d0720c AC |
10751 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
10752 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
10753 | |
10754 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
10755 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
10756 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
10757 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 10759 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 10760 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 10761 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 10762 | |
b6d0720c | 10763 | rm -f "$ac_tmp/stdin" |
212380e3 | 10764 | case $ac_file in |
b6d0720c AC |
10765 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
10766 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 10767 | esac \ |
b6d0720c | 10768 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
10769 | ;; |
10770 | :H) | |
10771 | # | |
10772 | # CONFIG_HEADER | |
10773 | # | |
212380e3 | 10774 | if test x"$ac_file" != x-; then |
7083c021 AC |
10775 | { |
10776 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
10777 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
10778 | } >"$ac_tmp/config.h" \ | |
10779 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
10780 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
10782 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 10783 | else |
7083c021 | 10784 | rm -f "$ac_file" |
b6d0720c AC |
10785 | mv "$ac_tmp/config.h" "$ac_file" \ |
10786 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
10787 | fi |
10788 | else | |
7083c021 | 10789 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
10790 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
10791 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 10792 | fi |
631ef239 AC |
10793 | ;; |
10794 | ||
10795 | ||
10796 | esac | |
10797 | ||
10798 | done # for ac_tag | |
212380e3 | 10799 | |
212380e3 | 10800 | |
7083c021 | 10801 | as_fn_exit 0 |
212380e3 | 10802 | _ACEOF |
212380e3 AC |
10803 | ac_clean_files=$ac_clean_files_save |
10804 | ||
7083c021 | 10805 | test $ac_write_fail = 0 || |
b6d0720c | 10806 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 10807 | |
212380e3 AC |
10808 | |
10809 | # configure is writing to config.log, and then calls config.status. | |
10810 | # config.status does its own redirection, appending to config.log. | |
10811 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10812 | # by configure, so config.status won't be able to write to it; its | |
10813 | # output is simply discarded. So we exec the FD to /dev/null, | |
10814 | # effectively closing config.log, so it can be properly (re)opened and | |
10815 | # appended to by config.status. When coming back to configure, we | |
10816 | # need to make the FD available again. | |
10817 | if test "$no_create" != yes; then | |
10818 | ac_cs_success=: | |
10819 | ac_config_status_args= | |
10820 | test "$silent" = yes && | |
10821 | ac_config_status_args="$ac_config_status_args --quiet" | |
10822 | exec 5>/dev/null | |
10823 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10824 | exec 5>>config.log | |
10825 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10826 | # would make configure fail if this is the last instruction. | |
b6d0720c | 10827 | $ac_cs_success || as_fn_exit 1 |
212380e3 AC |
10828 | fi |
10829 | ||
b676ea3b AC |
10830 | # |
10831 | # CONFIG_SUBDIRS section. | |
10832 | # | |
10833 | if test "$no_recursion" != yes; then | |
10834 | ||
7083c021 AC |
10835 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
10836 | # so they do not pile up. | |
b676ea3b AC |
10837 | ac_sub_configure_args= |
10838 | ac_prev= | |
10839 | eval "set x $ac_configure_args" | |
10840 | shift | |
10841 | for ac_arg | |
10842 | do | |
10843 | if test -n "$ac_prev"; then | |
10844 | ac_prev= | |
10845 | continue | |
10846 | fi | |
10847 | case $ac_arg in | |
10848 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
10849 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
10850 | ac_prev=cache_file ;; | |
10851 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
10852 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
10853 | | --c=*) | |
10854 | ;; | |
10855 | --config-cache | -C) | |
10856 | ;; | |
10857 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
10858 | ac_prev=srcdir ;; | |
10859 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
10860 | ;; | |
10861 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
10862 | ac_prev=prefix ;; | |
10863 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
10864 | ;; | |
7083c021 AC |
10865 | --disable-option-checking) |
10866 | ;; | |
b676ea3b AC |
10867 | *) |
10868 | case $ac_arg in | |
7083c021 | 10869 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
b676ea3b | 10870 | esac |
7083c021 | 10871 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
b676ea3b AC |
10872 | esac |
10873 | done | |
10874 | ||
10875 | # Always prepend --prefix to ensure using the same prefix | |
10876 | # in subdir configurations. | |
10877 | ac_arg="--prefix=$prefix" | |
10878 | case $ac_arg in | |
7083c021 | 10879 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
b676ea3b AC |
10880 | esac |
10881 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
10882 | ||
10883 | # Pass --silent | |
10884 | if test "$silent" = yes; then | |
10885 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
10886 | fi | |
10887 | ||
7083c021 AC |
10888 | # Always prepend --disable-option-checking to silence warnings, since |
10889 | # different subdirs can have different --enable and --with options. | |
10890 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
10891 | ||
b676ea3b AC |
10892 | ac_popdir=`pwd` |
10893 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
10894 | ||
10895 | # Do not complain, so a configure script can configure whichever | |
10896 | # parts of a large source tree are present. | |
10897 | test -d "$srcdir/$ac_dir" || continue | |
10898 | ||
10899 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
7083c021 AC |
10900 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
10901 | $as_echo "$ac_msg" >&6 | |
10902 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b676ea3b AC |
10903 | ac_builddir=. |
10904 | ||
10905 | case "$ac_dir" in | |
10906 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10907 | *) | |
7083c021 | 10908 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
b676ea3b | 10909 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 10910 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
b676ea3b AC |
10911 | case $ac_top_builddir_sub in |
10912 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10913 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10914 | esac ;; | |
10915 | esac | |
10916 | ac_abs_top_builddir=$ac_pwd | |
10917 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10918 | # for backward compatibility: | |
10919 | ac_top_builddir=$ac_top_build_prefix | |
10920 | ||
10921 | case $srcdir in | |
10922 | .) # We are building in place. | |
10923 | ac_srcdir=. | |
10924 | ac_top_srcdir=$ac_top_builddir_sub | |
10925 | ac_abs_top_srcdir=$ac_pwd ;; | |
10926 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
10927 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10928 | ac_top_srcdir=$srcdir | |
10929 | ac_abs_top_srcdir=$srcdir ;; | |
10930 | *) # Relative name. | |
10931 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10932 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10933 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
10934 | esac | |
10935 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
10936 | ||
10937 | ||
10938 | cd "$ac_dir" | |
10939 | ||
10940 | # Check for guested configure; otherwise get Cygnus style configure. | |
10941 | if test -f "$ac_srcdir/configure.gnu"; then | |
10942 | ac_sub_configure=$ac_srcdir/configure.gnu | |
10943 | elif test -f "$ac_srcdir/configure"; then | |
10944 | ac_sub_configure=$ac_srcdir/configure | |
10945 | elif test -f "$ac_srcdir/configure.in"; then | |
10946 | # This should be Cygnus configure. | |
10947 | ac_sub_configure=$ac_aux_dir/configure | |
10948 | else | |
7083c021 AC |
10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
10950 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
b676ea3b AC |
10951 | ac_sub_configure= |
10952 | fi | |
10953 | ||
10954 | # The recursion is here. | |
10955 | if test -n "$ac_sub_configure"; then | |
10956 | # Make the cache file name correct relative to the subdirectory. | |
10957 | case $cache_file in | |
10958 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
10959 | *) # Relative name. | |
10960 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
10961 | esac | |
10962 | ||
7083c021 AC |
10963 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
10964 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
b676ea3b AC |
10965 | # The eval makes quoting arguments work. |
10966 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
10967 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
b6d0720c | 10968 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
b676ea3b AC |
10969 | fi |
10970 | ||
10971 | cd "$ac_popdir" | |
10972 | done | |
10973 | fi | |
7083c021 AC |
10974 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
10975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
10976 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
10977 | fi | |
b676ea3b | 10978 | |
212380e3 AC |
10979 | |
10980 | if test "$cf_openssl_version_ok" = yes; then | |
10981 | openssl="yes" | |
10982 | else | |
10983 | openssl="no" | |
10984 | fi | |
10985 | ||
10986 | if test "$shared_modules" = yes; then | |
10987 | modules=shared | |
10988 | else | |
10989 | modules=static | |
10990 | fi | |
10991 | ||
10992 | echo " | |
b6d0720c | 10993 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
10994 | Install directory : $prefix |
10995 | ||
10996 | Ziplinks : $zlib | |
10997 | OpenSSL : $openssl | |
212380e3 AC |
10998 | Socket Engine : $SELECT_TYPE |
10999 | Small network : $small_net | |
11000 | Block allocator : $balloc | |
212380e3 AC |
11001 | |
11002 | Nickname length : $NICKLEN | |
11003 | Topic length : $TOPICLEN | |
11004 | ||
b6d0720c | 11005 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 11006 | " |