Commit | Line | Data |
---|---|---|
11b35193 | 1 | #! /bin/sh |
11b35193 | 2 | # Guess values for system-dependent variables and create Makefiles. |
cbddf2cb IJ |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 | # | |
11b35193 | 8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cbddf2cb IJ |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | as_myself= | |
91 | case $0 in #(( | |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
135 | # Use a proper internal environment variable to ensure we don't fall | |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
160 | if test "x$CONFIG_SHELL" = x; then | |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
193 | test x\$exitcode = x0 || exit 1 | |
194 | test -x / || exit 1" | |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | if (eval "$as_required") 2>/dev/null; then : | |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
211 | do | |
212 | IFS=$as_save_IFS | |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
239 | export CONFIG_SHELL | |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
258 | fi | |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
266 | else | |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
271 | fi | |
272 | exit 1 | |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
356 | ||
357 | ||
358 | } # as_fn_mkdir_p | |
359 | ||
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
367 | # as_fn_append VAR VALUE | |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
404 | # ---------------------------------------- | |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
407 | # script with STATUS, using 1 if that was 0. | |
408 | as_fn_error () | |
409 | { | |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
414 | fi | |
415 | $as_echo "$as_me: error: $2" >&2 | |
416 | as_fn_exit $as_status | |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
421 | as_expr=expr | |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
427 | as_basename=basename | |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
437 | ||
438 | as_me=`$as_basename -- "$0" || | |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
440 | X"$0" : 'X\(//\)$' \| \ | |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
456 | ||
457 | # Avoid depending upon Character Ranges. | |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
464 | ||
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
474 | sed ' | |
475 | s/[$]LINENO.*/&-/ | |
476 | t lineno | |
477 | b | |
478 | :lineno | |
479 | N | |
480 | :loop | |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
482 | t loop | |
483 | s/-\n.*// | |
484 | ' >$as_me.lineno && | |
485 | chmod +x "$as_me.lineno" || | |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
487 | ||
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
492 | # Don't try to exec as it changes $[0], causing all sort of problems | |
493 | # (the dirname of $[0] is not the place where we might find the | |
494 | # original and so on. Autoconf is especially sensitive to this). | |
495 | . "./$as_me.lineno" | |
496 | # Exit status is that of the last command. | |
497 | exit | |
498 | } | |
499 | ||
500 | ECHO_C= ECHO_N= ECHO_T= | |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
511 | esac | |
512 | ||
513 | rm -f conf$$ conf$$.exe conf$$.file | |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
516 | else | |
517 | rm -f conf$$.dir | |
518 | mkdir conf$$.dir 2>/dev/null | |
519 | fi | |
520 | if (echo >conf$$.file) 2>/dev/null; then | |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
522 | as_ln_s='ln -s' | |
523 | # ... but there are two gotchas: | |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
526 | # In both cases, we have to default to `cp -pR'. | |
527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
528 | as_ln_s='cp -pR' | |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s=ln | |
531 | else | |
532 | as_ln_s='cp -pR' | |
533 | fi | |
534 | else | |
535 | as_ln_s='cp -pR' | |
536 | fi | |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
538 | rmdir conf$$.dir 2>/dev/null | |
539 | ||
540 | if mkdir -p . 2>/dev/null; then | |
541 | as_mkdir_p='mkdir -p "$as_dir"' | |
542 | else | |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
547 | as_test_x='test -x' | |
548 | as_executable_p=as_fn_executable_p | |
549 | ||
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11b35193 | 552 | |
cbddf2cb IJ |
553 | # Sed expression to map a string onto a valid variable name. |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
557 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
558 | exec 6>&1 | |
559 | ||
560 | # Name of the host. | |
561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
562 | # so uname gets run too. | |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
565 | # | |
566 | # Initializations. | |
567 | # | |
11b35193 | 568 | ac_default_prefix=/usr/local |
cbddf2cb IJ |
569 | ac_clean_files= |
570 | ac_config_libobj_dir=. | |
571 | LIBOBJS= | |
572 | cross_compiling=no | |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
576 | ||
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
583 | PACKAGE_URL= | |
584 | ||
585 | ac_unique_file="src/adns.h" | |
586 | # Factoring default headers for most tests. | |
587 | ac_includes_default="\ | |
588 | #include <stdio.h> | |
589 | #ifdef HAVE_SYS_TYPES_H | |
590 | # include <sys/types.h> | |
591 | #endif | |
592 | #ifdef HAVE_SYS_STAT_H | |
593 | # include <sys/stat.h> | |
594 | #endif | |
595 | #ifdef STDC_HEADERS | |
596 | # include <stdlib.h> | |
597 | # include <stddef.h> | |
598 | #else | |
599 | # ifdef HAVE_STDLIB_H | |
600 | # include <stdlib.h> | |
601 | # endif | |
602 | #endif | |
603 | #ifdef HAVE_STRING_H | |
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
605 | # include <memory.h> | |
606 | # endif | |
607 | # include <string.h> | |
608 | #endif | |
609 | #ifdef HAVE_STRINGS_H | |
610 | # include <strings.h> | |
611 | #endif | |
612 | #ifdef HAVE_INTTYPES_H | |
613 | # include <inttypes.h> | |
614 | #endif | |
615 | #ifdef HAVE_STDINT_H | |
616 | # include <stdint.h> | |
617 | #endif | |
618 | #ifdef HAVE_UNISTD_H | |
619 | # include <unistd.h> | |
620 | #endif" | |
621 | ||
622 | ac_subst_vars='LTLIBOBJS | |
623 | LIBOBJS | |
624 | SHLIBSONAME | |
625 | SHLIBFILE | |
626 | SHLIBFORLINK | |
627 | MKSHLIB_3 | |
628 | MKSHLIB_2 | |
629 | MKSHLIB_1 | |
630 | SHLIBCC | |
631 | WARNS | |
632 | EGREP | |
633 | GREP | |
634 | PROGS_HAVE_TSEARCH | |
635 | INSTALL_DATA | |
636 | INSTALL_SCRIPT | |
637 | INSTALL_PROGRAM | |
638 | RANLIB | |
639 | CPP | |
640 | OBJEXT | |
641 | EXEEXT | |
642 | ac_ct_CC | |
643 | CPPFLAGS | |
644 | LDFLAGS | |
645 | CFLAGS | |
646 | CC | |
647 | ENABLE_DYNAMIC | |
648 | target_alias | |
649 | host_alias | |
650 | build_alias | |
651 | LIBS | |
652 | ECHO_T | |
653 | ECHO_N | |
654 | ECHO_C | |
655 | DEFS | |
656 | mandir | |
657 | localedir | |
658 | libdir | |
659 | psdir | |
660 | pdfdir | |
661 | dvidir | |
662 | htmldir | |
663 | infodir | |
664 | docdir | |
665 | oldincludedir | |
666 | includedir | |
667 | localstatedir | |
668 | sharedstatedir | |
669 | sysconfdir | |
670 | datadir | |
671 | datarootdir | |
672 | libexecdir | |
673 | sbindir | |
674 | bindir | |
675 | program_transform_name | |
676 | prefix | |
677 | exec_prefix | |
678 | PACKAGE_URL | |
679 | PACKAGE_BUGREPORT | |
680 | PACKAGE_STRING | |
681 | PACKAGE_VERSION | |
682 | PACKAGE_TARNAME | |
683 | PACKAGE_NAME | |
684 | PATH_SEPARATOR | |
685 | SHELL' | |
686 | ac_subst_files='' | |
687 | ac_user_opts=' | |
688 | enable_option_checking | |
689 | enable_dynamic | |
690 | ' | |
691 | ac_precious_vars='build_alias | |
692 | host_alias | |
693 | target_alias | |
694 | CC | |
695 | CFLAGS | |
696 | LDFLAGS | |
697 | LIBS | |
698 | CPPFLAGS | |
699 | CPP' | |
700 | ||
11b35193 | 701 | |
702 | # Initialize some variables set by options. | |
cbddf2cb IJ |
703 | ac_init_help= |
704 | ac_init_version=false | |
705 | ac_unrecognized_opts= | |
706 | ac_unrecognized_sep= | |
11b35193 | 707 | # The variables have the same names as the options, with |
708 | # dashes changed to underlines. | |
cbddf2cb | 709 | cache_file=/dev/null |
11b35193 | 710 | exec_prefix=NONE |
11b35193 | 711 | no_create= |
11b35193 | 712 | no_recursion= |
713 | prefix=NONE | |
714 | program_prefix=NONE | |
715 | program_suffix=NONE | |
716 | program_transform_name=s,x,x, | |
717 | silent= | |
718 | site= | |
719 | srcdir= | |
11b35193 | 720 | verbose= |
721 | x_includes=NONE | |
722 | x_libraries=NONE | |
cbddf2cb IJ |
723 | |
724 | # Installation directory options. | |
725 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
726 | # and all the variables that are supposed to be based on exec_prefix | |
727 | # by default will actually change. | |
728 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
729 | # (The list follows the same order as the GNU Coding Standards.) | |
11b35193 | 730 | bindir='${exec_prefix}/bin' |
731 | sbindir='${exec_prefix}/sbin' | |
732 | libexecdir='${exec_prefix}/libexec' | |
cbddf2cb IJ |
733 | datarootdir='${prefix}/share' |
734 | datadir='${datarootdir}' | |
11b35193 | 735 | sysconfdir='${prefix}/etc' |
736 | sharedstatedir='${prefix}/com' | |
737 | localstatedir='${prefix}/var' | |
11b35193 | 738 | includedir='${prefix}/include' |
739 | oldincludedir='/usr/include' | |
cbddf2cb IJ |
740 | docdir='${datarootdir}/doc/${PACKAGE}' |
741 | infodir='${datarootdir}/info' | |
742 | htmldir='${docdir}' | |
743 | dvidir='${docdir}' | |
744 | pdfdir='${docdir}' | |
745 | psdir='${docdir}' | |
746 | libdir='${exec_prefix}/lib' | |
747 | localedir='${datarootdir}/locale' | |
748 | mandir='${datarootdir}/man' | |
11b35193 | 749 | |
750 | ac_prev= | |
cbddf2cb | 751 | ac_dashdash= |
11b35193 | 752 | for ac_option |
753 | do | |
11b35193 | 754 | # If the previous option needs an argument, assign it. |
755 | if test -n "$ac_prev"; then | |
cbddf2cb | 756 | eval $ac_prev=\$ac_option |
11b35193 | 757 | ac_prev= |
758 | continue | |
759 | fi | |
760 | ||
cbddf2cb IJ |
761 | case $ac_option in |
762 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
763 | *=) ac_optarg= ;; | |
764 | *) ac_optarg=yes ;; | |
11b35193 | 765 | esac |
766 | ||
767 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
768 | ||
cbddf2cb IJ |
769 | case $ac_dashdash$ac_option in |
770 | --) | |
771 | ac_dashdash=yes ;; | |
11b35193 | 772 | |
773 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
774 | ac_prev=bindir ;; | |
775 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
cbddf2cb | 776 | bindir=$ac_optarg ;; |
11b35193 | 777 | |
778 | -build | --build | --buil | --bui | --bu) | |
cbddf2cb | 779 | ac_prev=build_alias ;; |
11b35193 | 780 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
cbddf2cb | 781 | build_alias=$ac_optarg ;; |
11b35193 | 782 | |
783 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
784 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
785 | ac_prev=cache_file ;; | |
786 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
787 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
cbddf2cb | 788 | cache_file=$ac_optarg ;; |
11b35193 | 789 | |
cbddf2cb IJ |
790 | --config-cache | -C) |
791 | cache_file=config.cache ;; | |
792 | ||
793 | -datadir | --datadir | --datadi | --datad) | |
11b35193 | 794 | ac_prev=datadir ;; |
cbddf2cb IJ |
795 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
796 | datadir=$ac_optarg ;; | |
797 | ||
798 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
799 | | --dataroo | --dataro | --datar) | |
800 | ac_prev=datarootdir ;; | |
801 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
802 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
803 | datarootdir=$ac_optarg ;; | |
11b35193 | 804 | |
805 | -disable-* | --disable-*) | |
cbddf2cb | 806 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
11b35193 | 807 | # Reject names that are not valid shell variable names. |
cbddf2cb IJ |
808 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
809 | as_fn_error $? "invalid feature name: $ac_useropt" | |
810 | ac_useropt_orig=$ac_useropt | |
811 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
812 | case $ac_user_opts in | |
813 | *" | |
814 | "enable_$ac_useropt" | |
815 | "*) ;; | |
816 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
817 | ac_unrecognized_sep=', ';; | |
818 | esac | |
819 | eval enable_$ac_useropt=no ;; | |
820 | ||
821 | -docdir | --docdir | --docdi | --doc | --do) | |
822 | ac_prev=docdir ;; | |
823 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
824 | docdir=$ac_optarg ;; | |
825 | ||
826 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
827 | ac_prev=dvidir ;; | |
828 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
829 | dvidir=$ac_optarg ;; | |
11b35193 | 830 | |
831 | -enable-* | --enable-*) | |
cbddf2cb | 832 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
11b35193 | 833 | # Reject names that are not valid shell variable names. |
cbddf2cb IJ |
834 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
835 | as_fn_error $? "invalid feature name: $ac_useropt" | |
836 | ac_useropt_orig=$ac_useropt | |
837 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
838 | case $ac_user_opts in | |
839 | *" | |
840 | "enable_$ac_useropt" | |
841 | "*) ;; | |
842 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
843 | ac_unrecognized_sep=', ';; | |
11b35193 | 844 | esac |
cbddf2cb | 845 | eval enable_$ac_useropt=\$ac_optarg ;; |
11b35193 | 846 | |
847 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
848 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
849 | | --exec | --exe | --ex) | |
850 | ac_prev=exec_prefix ;; | |
851 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
852 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
853 | | --exec=* | --exe=* | --ex=*) | |
cbddf2cb | 854 | exec_prefix=$ac_optarg ;; |
11b35193 | 855 | |
856 | -gas | --gas | --ga | --g) | |
857 | # Obsolete; use --with-gas. | |
858 | with_gas=yes ;; | |
859 | ||
cbddf2cb IJ |
860 | -help | --help | --hel | --he | -h) |
861 | ac_init_help=long ;; | |
862 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
863 | ac_init_help=recursive ;; | |
864 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
865 | ac_init_help=short ;; | |
11b35193 | 866 | |
867 | -host | --host | --hos | --ho) | |
cbddf2cb | 868 | ac_prev=host_alias ;; |
11b35193 | 869 | -host=* | --host=* | --hos=* | --ho=*) |
cbddf2cb IJ |
870 | host_alias=$ac_optarg ;; |
871 | ||
872 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
873 | ac_prev=htmldir ;; | |
874 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
875 | | --ht=*) | |
876 | htmldir=$ac_optarg ;; | |
11b35193 | 877 | |
878 | -includedir | --includedir | --includedi | --included | --include \ | |
879 | | --includ | --inclu | --incl | --inc) | |
880 | ac_prev=includedir ;; | |
881 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
882 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
cbddf2cb | 883 | includedir=$ac_optarg ;; |
11b35193 | 884 | |
885 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
886 | ac_prev=infodir ;; | |
887 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
cbddf2cb | 888 | infodir=$ac_optarg ;; |
11b35193 | 889 | |
890 | -libdir | --libdir | --libdi | --libd) | |
891 | ac_prev=libdir ;; | |
892 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
cbddf2cb | 893 | libdir=$ac_optarg ;; |
11b35193 | 894 | |
895 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
896 | | --libexe | --libex | --libe) | |
897 | ac_prev=libexecdir ;; | |
898 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
899 | | --libexe=* | --libex=* | --libe=*) | |
cbddf2cb IJ |
900 | libexecdir=$ac_optarg ;; |
901 | ||
902 | -localedir | --localedir | --localedi | --localed | --locale) | |
903 | ac_prev=localedir ;; | |
904 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
905 | localedir=$ac_optarg ;; | |
11b35193 | 906 | |
907 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
cbddf2cb | 908 | | --localstate | --localstat | --localsta | --localst | --locals) |
11b35193 | 909 | ac_prev=localstatedir ;; |
910 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cbddf2cb IJ |
911 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
912 | localstatedir=$ac_optarg ;; | |
11b35193 | 913 | |
914 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
915 | ac_prev=mandir ;; | |
916 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
cbddf2cb | 917 | mandir=$ac_optarg ;; |
11b35193 | 918 | |
919 | -nfp | --nfp | --nf) | |
920 | # Obsolete; use --without-fp. | |
921 | with_fp=no ;; | |
922 | ||
923 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
cbddf2cb | 924 | | --no-cr | --no-c | -n) |
11b35193 | 925 | no_create=yes ;; |
926 | ||
927 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
928 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
929 | no_recursion=yes ;; | |
930 | ||
931 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
932 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
933 | | --oldin | --oldi | --old | --ol | --o) | |
934 | ac_prev=oldincludedir ;; | |
935 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
936 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
937 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
cbddf2cb | 938 | oldincludedir=$ac_optarg ;; |
11b35193 | 939 | |
940 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
941 | ac_prev=prefix ;; | |
942 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
cbddf2cb | 943 | prefix=$ac_optarg ;; |
11b35193 | 944 | |
945 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
946 | | --program-pre | --program-pr | --program-p) | |
947 | ac_prev=program_prefix ;; | |
948 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
949 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
cbddf2cb | 950 | program_prefix=$ac_optarg ;; |
11b35193 | 951 | |
952 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
953 | | --program-suf | --program-su | --program-s) | |
954 | ac_prev=program_suffix ;; | |
955 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
956 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
cbddf2cb | 957 | program_suffix=$ac_optarg ;; |
11b35193 | 958 | |
959 | -program-transform-name | --program-transform-name \ | |
960 | | --program-transform-nam | --program-transform-na \ | |
961 | | --program-transform-n | --program-transform- \ | |
962 | | --program-transform | --program-transfor \ | |
963 | | --program-transfo | --program-transf \ | |
964 | | --program-trans | --program-tran \ | |
965 | | --progr-tra | --program-tr | --program-t) | |
966 | ac_prev=program_transform_name ;; | |
967 | -program-transform-name=* | --program-transform-name=* \ | |
968 | | --program-transform-nam=* | --program-transform-na=* \ | |
969 | | --program-transform-n=* | --program-transform-=* \ | |
970 | | --program-transform=* | --program-transfor=* \ | |
971 | | --program-transfo=* | --program-transf=* \ | |
972 | | --program-trans=* | --program-tran=* \ | |
973 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
cbddf2cb IJ |
974 | program_transform_name=$ac_optarg ;; |
975 | ||
976 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
977 | ac_prev=pdfdir ;; | |
978 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
979 | pdfdir=$ac_optarg ;; | |
980 | ||
981 | -psdir | --psdir | --psdi | --psd | --ps) | |
982 | ac_prev=psdir ;; | |
983 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
984 | psdir=$ac_optarg ;; | |
11b35193 | 985 | |
986 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
987 | | -silent | --silent | --silen | --sile | --sil) | |
988 | silent=yes ;; | |
989 | ||
990 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
991 | ac_prev=sbindir ;; | |
992 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
993 | | --sbi=* | --sb=*) | |
cbddf2cb | 994 | sbindir=$ac_optarg ;; |
11b35193 | 995 | |
996 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
997 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
998 | | --sharedst | --shareds | --shared | --share | --shar \ | |
999 | | --sha | --sh) | |
1000 | ac_prev=sharedstatedir ;; | |
1001 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1002 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1003 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1004 | | --sha=* | --sh=*) | |
cbddf2cb | 1005 | sharedstatedir=$ac_optarg ;; |
11b35193 | 1006 | |
1007 | -site | --site | --sit) | |
1008 | ac_prev=site ;; | |
1009 | -site=* | --site=* | --sit=*) | |
cbddf2cb | 1010 | site=$ac_optarg ;; |
11b35193 | 1011 | |
1012 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1013 | ac_prev=srcdir ;; | |
1014 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
cbddf2cb | 1015 | srcdir=$ac_optarg ;; |
11b35193 | 1016 | |
1017 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1018 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1019 | ac_prev=sysconfdir ;; | |
1020 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1021 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
cbddf2cb | 1022 | sysconfdir=$ac_optarg ;; |
11b35193 | 1023 | |
1024 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
cbddf2cb | 1025 | ac_prev=target_alias ;; |
11b35193 | 1026 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
cbddf2cb | 1027 | target_alias=$ac_optarg ;; |
11b35193 | 1028 | |
1029 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1030 | verbose=yes ;; | |
1031 | ||
cbddf2cb IJ |
1032 | -version | --version | --versio | --versi | --vers | -V) |
1033 | ac_init_version=: ;; | |
11b35193 | 1034 | |
1035 | -with-* | --with-*) | |
cbddf2cb | 1036 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
11b35193 | 1037 | # Reject names that are not valid shell variable names. |
cbddf2cb IJ |
1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1039 | as_fn_error $? "invalid package name: $ac_useropt" | |
1040 | ac_useropt_orig=$ac_useropt | |
1041 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1042 | case $ac_user_opts in | |
1043 | *" | |
1044 | "with_$ac_useropt" | |
1045 | "*) ;; | |
1046 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1047 | ac_unrecognized_sep=', ';; | |
11b35193 | 1048 | esac |
cbddf2cb | 1049 | eval with_$ac_useropt=\$ac_optarg ;; |
11b35193 | 1050 | |
1051 | -without-* | --without-*) | |
cbddf2cb | 1052 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
11b35193 | 1053 | # Reject names that are not valid shell variable names. |
cbddf2cb IJ |
1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1055 | as_fn_error $? "invalid package name: $ac_useropt" | |
1056 | ac_useropt_orig=$ac_useropt | |
1057 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1058 | case $ac_user_opts in | |
1059 | *" | |
1060 | "with_$ac_useropt" | |
1061 | "*) ;; | |
1062 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1063 | ac_unrecognized_sep=', ';; | |
1064 | esac | |
1065 | eval with_$ac_useropt=no ;; | |
11b35193 | 1066 | |
1067 | --x) | |
1068 | # Obsolete; use --with-x. | |
1069 | with_x=yes ;; | |
1070 | ||
1071 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1072 | | --x-incl | --x-inc | --x-in | --x-i) | |
1073 | ac_prev=x_includes ;; | |
1074 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1075 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
cbddf2cb | 1076 | x_includes=$ac_optarg ;; |
11b35193 | 1077 | |
1078 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1079 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1080 | ac_prev=x_libraries ;; | |
1081 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1082 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
cbddf2cb | 1083 | x_libraries=$ac_optarg ;; |
11b35193 | 1084 | |
cbddf2cb IJ |
1085 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1086 | Try \`$0 --help' for more information" | |
11b35193 | 1087 | ;; |
1088 | ||
cbddf2cb IJ |
1089 | *=*) |
1090 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1091 | # Reject names that are not valid shell variable names. | |
1092 | case $ac_envvar in #( | |
1093 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1094 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1095 | esac | |
1096 | eval $ac_envvar=\$ac_optarg | |
1097 | export $ac_envvar ;; | |
1098 | ||
11b35193 | 1099 | *) |
cbddf2cb IJ |
1100 | # FIXME: should be removed in autoconf 3.0. |
1101 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1102 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1103 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1104 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
11b35193 | 1105 | ;; |
1106 | ||
1107 | esac | |
1108 | done | |
1109 | ||
1110 | if test -n "$ac_prev"; then | |
cbddf2cb IJ |
1111 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1112 | as_fn_error $? "missing argument to $ac_option" | |
11b35193 | 1113 | fi |
1114 | ||
cbddf2cb IJ |
1115 | if test -n "$ac_unrecognized_opts"; then |
1116 | case $enable_option_checking in | |
1117 | no) ;; | |
1118 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1119 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1120 | esac | |
11b35193 | 1121 | fi |
11b35193 | 1122 | |
cbddf2cb IJ |
1123 | # Check all directory arguments for consistency. |
1124 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1125 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1126 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1127 | libdir localedir mandir | |
11b35193 | 1128 | do |
cbddf2cb IJ |
1129 | eval ac_val=\$$ac_var |
1130 | # Remove trailing slashes. | |
1131 | case $ac_val in | |
1132 | */ ) | |
1133 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1134 | eval $ac_var=\$ac_val;; | |
1135 | esac | |
1136 | # Be sure to have absolute directory names. | |
1137 | case $ac_val in | |
1138 | [\\/$]* | ?:[\\/]* ) continue;; | |
1139 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
11b35193 | 1140 | esac |
cbddf2cb | 1141 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
11b35193 | 1142 | done |
1143 | ||
cbddf2cb IJ |
1144 | # There might be people who depend on the old broken behavior: `$host' |
1145 | # used to hold the argument of --host etc. | |
1146 | # FIXME: To remove some day. | |
1147 | build=$build_alias | |
1148 | host=$host_alias | |
1149 | target=$target_alias | |
1150 | ||
1151 | # FIXME: To remove some day. | |
1152 | if test "x$host_alias" != x; then | |
1153 | if test "x$build_alias" = x; then | |
1154 | cross_compiling=maybe | |
1155 | elif test "x$build_alias" != "x$host_alias"; then | |
1156 | cross_compiling=yes | |
1157 | fi | |
1158 | fi | |
1159 | ||
1160 | ac_tool_prefix= | |
1161 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1162 | ||
1163 | test "$silent" = yes && exec 6>/dev/null | |
11b35193 | 1164 | |
11b35193 | 1165 | |
cbddf2cb IJ |
1166 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1167 | ac_ls_di=`ls -di .` && | |
1168 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1169 | as_fn_error $? "working directory cannot be determined" | |
1170 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1171 | as_fn_error $? "pwd does not report name of working directory" | |
1172 | ||
11b35193 | 1173 | |
1174 | # Find the source files, if location was not specified. | |
1175 | if test -z "$srcdir"; then | |
1176 | ac_srcdir_defaulted=yes | |
cbddf2cb IJ |
1177 | # Try the directory containing this script, then the parent directory. |
1178 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1179 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1180 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1181 | X"$as_myself" : 'X\(//\)$' \| \ | |
1182 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1183 | $as_echo X"$as_myself" | | |
1184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1185 | s//\1/ | |
1186 | q | |
1187 | } | |
1188 | /^X\(\/\/\)[^/].*/{ | |
1189 | s//\1/ | |
1190 | q | |
1191 | } | |
1192 | /^X\(\/\/\)$/{ | |
1193 | s//\1/ | |
1194 | q | |
1195 | } | |
1196 | /^X\(\/\).*/{ | |
1197 | s//\1/ | |
1198 | q | |
1199 | } | |
1200 | s/.*/./; q'` | |
11b35193 | 1201 | srcdir=$ac_confdir |
cbddf2cb | 1202 | if test ! -r "$srcdir/$ac_unique_file"; then |
11b35193 | 1203 | srcdir=.. |
1204 | fi | |
1205 | else | |
1206 | ac_srcdir_defaulted=no | |
1207 | fi | |
cbddf2cb IJ |
1208 | if test ! -r "$srcdir/$ac_unique_file"; then |
1209 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1210 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
11b35193 | 1211 | fi |
cbddf2cb IJ |
1212 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1213 | ac_abs_confdir=`( | |
1214 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1215 | pwd)` | |
1216 | # When building in place, set srcdir=. | |
1217 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1218 | srcdir=. | |
11b35193 | 1219 | fi |
cbddf2cb IJ |
1220 | # Remove unnecessary trailing slashes from srcdir. |
1221 | # Double slashes in file names in object file debugging info | |
1222 | # mess up M-x gdb in Emacs. | |
1223 | case $srcdir in | |
1224 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1225 | esac | |
1226 | for ac_var in $ac_precious_vars; do | |
1227 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1228 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1229 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1230 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
11b35193 | 1231 | done |
1232 | ||
cbddf2cb IJ |
1233 | # |
1234 | # Report the --help message. | |
1235 | # | |
1236 | if test "$ac_init_help" = "long"; then | |
1237 | # Omit some internal or obsolete options to make the list less imposing. | |
1238 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1239 | cat <<_ACEOF | |
1240 | \`configure' configures this package to adapt to many kinds of systems. | |
11b35193 | 1241 | |
cbddf2cb | 1242 | Usage: $0 [OPTION]... [VAR=VALUE]... |
11b35193 | 1243 | |
cbddf2cb IJ |
1244 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1245 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
48337073 | 1246 | |
cbddf2cb | 1247 | Defaults for the options are specified in brackets. |
5a0be244 | 1248 | |
cbddf2cb IJ |
1249 | Configuration: |
1250 | -h, --help display this help and exit | |
1251 | --help=short display options specific to this package | |
1252 | --help=recursive display the short help of all the included packages | |
1253 | -V, --version display version information and exit | |
1254 | -q, --quiet, --silent do not print \`checking ...' messages | |
1255 | --cache-file=FILE cache test results in FILE [disabled] | |
1256 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1257 | -n, --no-create do not create output files | |
1258 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1259 | ||
1260 | Installation directories: | |
1261 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1262 | [$ac_default_prefix] | |
1263 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1264 | [PREFIX] | |
1265 | ||
1266 | By default, \`make install' will install all the files in | |
1267 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1268 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1269 | for instance \`--prefix=\$HOME'. | |
1270 | ||
1271 | For better control, use the options below. | |
1272 | ||
1273 | Fine tuning of the installation directories: | |
1274 | --bindir=DIR user executables [EPREFIX/bin] | |
1275 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1276 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1277 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1278 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1279 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1280 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1281 | --includedir=DIR C header files [PREFIX/include] | |
1282 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1283 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1284 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1285 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1286 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1287 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1288 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1289 | --htmldir=DIR html documentation [DOCDIR] | |
1290 | --dvidir=DIR dvi documentation [DOCDIR] | |
1291 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1292 | --psdir=DIR ps documentation [DOCDIR] | |
1293 | _ACEOF | |
1294 | ||
1295 | cat <<\_ACEOF | |
1296 | _ACEOF | |
1297 | fi | |
5a0be244 | 1298 | |
cbddf2cb | 1299 | if test -n "$ac_init_help"; then |
48337073 | 1300 | |
cbddf2cb | 1301 | cat <<\_ACEOF |
48337073 | 1302 | |
cbddf2cb IJ |
1303 | Optional Features: |
1304 | --disable-option-checking ignore unrecognized --enable/--with options | |
1305 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1306 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1307 | --disable-dynamic use static linking | |
1308 | --enable-dynamic=elf create and use ELF dynamic library (default) | |
1309 | ||
1310 | Some influential environment variables: | |
1311 | CC C compiler command | |
1312 | CFLAGS C compiler flags | |
1313 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1314 | nonstandard directory <lib dir> | |
1315 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1316 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1317 | you have headers in a nonstandard directory <include dir> | |
1318 | CPP C preprocessor | |
1319 | ||
1320 | Use these variables to override the choices made by `configure' or to help | |
1321 | it to find libraries and programs with nonstandard names/locations. | |
1322 | ||
1323 | Report bugs to the package provider. | |
1324 | _ACEOF | |
1325 | ac_status=$? | |
1326 | fi | |
48337073 | 1327 | |
cbddf2cb IJ |
1328 | if test "$ac_init_help" = "recursive"; then |
1329 | # If there are subdirs, report their specific --help. | |
1330 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1331 | test -d "$ac_dir" || | |
1332 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1333 | continue | |
1334 | ac_builddir=. | |
1335 | ||
1336 | case "$ac_dir" in | |
1337 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1338 | *) | |
1339 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1340 | # A ".." for each directory in $ac_dir_suffix. | |
1341 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1342 | case $ac_top_builddir_sub in | |
1343 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1344 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1345 | esac ;; | |
1346 | esac | |
1347 | ac_abs_top_builddir=$ac_pwd | |
1348 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1349 | # for backward compatibility: | |
1350 | ac_top_builddir=$ac_top_build_prefix | |
1351 | ||
1352 | case $srcdir in | |
1353 | .) # We are building in place. | |
1354 | ac_srcdir=. | |
1355 | ac_top_srcdir=$ac_top_builddir_sub | |
1356 | ac_abs_top_srcdir=$ac_pwd ;; | |
1357 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1358 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1359 | ac_top_srcdir=$srcdir | |
1360 | ac_abs_top_srcdir=$srcdir ;; | |
1361 | *) # Relative name. | |
1362 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1363 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1364 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1365 | esac | |
1366 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1367 | ||
1368 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1369 | # Check for guested configure. | |
1370 | if test -f "$ac_srcdir/configure.gnu"; then | |
1371 | echo && | |
1372 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1373 | elif test -f "$ac_srcdir/configure"; then | |
1374 | echo && | |
1375 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1376 | else | |
1377 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1378 | fi || ac_status=$? | |
1379 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1380 | done | |
48337073 | 1381 | fi |
1382 | ||
cbddf2cb IJ |
1383 | test -n "$ac_init_help" && exit $ac_status |
1384 | if $ac_init_version; then | |
1385 | cat <<\_ACEOF | |
1386 | configure | |
1387 | generated by GNU Autoconf 2.69 | |
1388 | ||
1389 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1390 | This configure script is free software; the Free Software Foundation | |
1391 | gives unlimited permission to copy, distribute and modify it. | |
1392 | _ACEOF | |
1393 | exit | |
1394 | fi | |
48337073 | 1395 | |
cbddf2cb IJ |
1396 | ## ------------------------ ## |
1397 | ## Autoconf initialization. ## | |
1398 | ## ------------------------ ## | |
1399 | ||
1400 | # ac_fn_c_try_compile LINENO | |
1401 | # -------------------------- | |
1402 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1403 | ac_fn_c_try_compile () | |
1404 | { | |
1405 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1406 | rm -f conftest.$ac_objext | |
1407 | if { { ac_try="$ac_compile" | |
1408 | case "(($ac_try" in | |
1409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1410 | *) ac_try_echo=$ac_try;; | |
1411 | esac | |
1412 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1413 | $as_echo "$ac_try_echo"; } >&5 | |
1414 | (eval "$ac_compile") 2>conftest.err | |
1415 | ac_status=$? | |
1416 | if test -s conftest.err; then | |
1417 | grep -v '^ *+' conftest.err >conftest.er1 | |
1418 | cat conftest.er1 >&5 | |
1419 | mv -f conftest.er1 conftest.err | |
1420 | fi | |
1421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1422 | test $ac_status = 0; } && { | |
1423 | test -z "$ac_c_werror_flag" || | |
1424 | test ! -s conftest.err | |
1425 | } && test -s conftest.$ac_objext; then : | |
1426 | ac_retval=0 | |
11b35193 | 1427 | else |
cbddf2cb IJ |
1428 | $as_echo "$as_me: failed program was:" >&5 |
1429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1430 | ||
1431 | ac_retval=1 | |
11b35193 | 1432 | fi |
cbddf2cb IJ |
1433 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1434 | as_fn_set_status $ac_retval | |
1435 | ||
1436 | } # ac_fn_c_try_compile | |
1437 | ||
1438 | # ac_fn_c_try_cpp LINENO | |
1439 | # ---------------------- | |
1440 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1441 | ac_fn_c_try_cpp () | |
1442 | { | |
1443 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1444 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1445 | case "(($ac_try" in | |
1446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1447 | *) ac_try_echo=$ac_try;; | |
1448 | esac | |
1449 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1450 | $as_echo "$ac_try_echo"; } >&5 | |
1451 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1452 | ac_status=$? | |
1453 | if test -s conftest.err; then | |
1454 | grep -v '^ *+' conftest.err >conftest.er1 | |
1455 | cat conftest.er1 >&5 | |
1456 | mv -f conftest.er1 conftest.err | |
1457 | fi | |
1458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1459 | test $ac_status = 0; } > conftest.i && { | |
1460 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1461 | test ! -s conftest.err | |
1462 | }; then : | |
1463 | ac_retval=0 | |
11b35193 | 1464 | else |
cbddf2cb IJ |
1465 | $as_echo "$as_me: failed program was:" >&5 |
1466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1467 | ||
1468 | ac_retval=1 | |
11b35193 | 1469 | fi |
cbddf2cb IJ |
1470 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1471 | as_fn_set_status $ac_retval | |
1472 | ||
1473 | } # ac_fn_c_try_cpp | |
1474 | ||
1475 | # ac_fn_c_try_link LINENO | |
1476 | # ----------------------- | |
1477 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1478 | ac_fn_c_try_link () | |
1479 | { | |
1480 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1481 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1482 | if { { ac_try="$ac_link" | |
1483 | case "(($ac_try" in | |
1484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1485 | *) ac_try_echo=$ac_try;; | |
1486 | esac | |
1487 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1488 | $as_echo "$ac_try_echo"; } >&5 | |
1489 | (eval "$ac_link") 2>conftest.err | |
1490 | ac_status=$? | |
1491 | if test -s conftest.err; then | |
1492 | grep -v '^ *+' conftest.err >conftest.er1 | |
1493 | cat conftest.er1 >&5 | |
1494 | mv -f conftest.er1 conftest.err | |
1495 | fi | |
1496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1497 | test $ac_status = 0; } && { | |
1498 | test -z "$ac_c_werror_flag" || | |
1499 | test ! -s conftest.err | |
1500 | } && test -s conftest$ac_exeext && { | |
1501 | test "$cross_compiling" = yes || | |
1502 | test -x conftest$ac_exeext | |
1503 | }; then : | |
1504 | ac_retval=0 | |
1505 | else | |
1506 | $as_echo "$as_me: failed program was:" >&5 | |
1507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11b35193 | 1508 | |
cbddf2cb IJ |
1509 | ac_retval=1 |
1510 | fi | |
1511 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1512 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1513 | # interfere with the next link command; also delete a directory that is | |
1514 | # left behind by Apple's compiler. We do this before executing the actions. | |
1515 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1516 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1517 | as_fn_set_status $ac_retval | |
1518 | ||
1519 | } # ac_fn_c_try_link | |
1520 | ||
1521 | # ac_fn_c_check_func LINENO FUNC VAR | |
1522 | # ---------------------------------- | |
1523 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1524 | ac_fn_c_check_func () | |
1525 | { | |
1526 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1528 | $as_echo_n "checking for $2... " >&6; } | |
1529 | if eval \${$3+:} false; then : | |
1530 | $as_echo_n "(cached) " >&6 | |
11b35193 | 1531 | else |
cbddf2cb IJ |
1532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1533 | /* end confdefs.h. */ | |
1534 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1535 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1536 | #define $2 innocuous_$2 | |
1537 | ||
1538 | /* System header to define __stub macros and hopefully few prototypes, | |
1539 | which can conflict with char $2 (); below. | |
1540 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1541 | <limits.h> exists even on freestanding compilers. */ | |
1542 | ||
1543 | #ifdef __STDC__ | |
1544 | # include <limits.h> | |
1545 | #else | |
1546 | # include <assert.h> | |
1547 | #endif | |
1548 | ||
1549 | #undef $2 | |
1550 | ||
1551 | /* Override any GCC internal prototype to avoid an error. | |
1552 | Use char because int might match the return type of a GCC | |
1553 | builtin and then its argument prototype would still apply. */ | |
1554 | #ifdef __cplusplus | |
1555 | extern "C" | |
1556 | #endif | |
1557 | char $2 (); | |
1558 | /* The GNU C library defines this for functions which it implements | |
1559 | to always fail with ENOSYS. Some functions are actually named | |
1560 | something starting with __ and the normal name is an alias. */ | |
1561 | #if defined __stub_$2 || defined __stub___$2 | |
1562 | choke me | |
1563 | #endif | |
1564 | ||
1565 | int | |
1566 | main () | |
1567 | { | |
1568 | return $2 (); | |
1569 | ; | |
1570 | return 0; | |
1571 | } | |
1572 | _ACEOF | |
1573 | if ac_fn_c_try_link "$LINENO"; then : | |
1574 | eval "$3=yes" | |
11b35193 | 1575 | else |
cbddf2cb | 1576 | eval "$3=no" |
11b35193 | 1577 | fi |
cbddf2cb IJ |
1578 | rm -f core conftest.err conftest.$ac_objext \ |
1579 | conftest$ac_exeext conftest.$ac_ext | |
11b35193 | 1580 | fi |
cbddf2cb IJ |
1581 | eval ac_res=\$$3 |
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1583 | $as_echo "$ac_res" >&6; } | |
1584 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1585 | ||
1586 | } # ac_fn_c_check_func | |
1587 | ||
1588 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1589 | # ------------------------------------------------------- | |
1590 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1591 | # the include files in INCLUDES and setting the cache variable VAR | |
1592 | # accordingly. | |
1593 | ac_fn_c_check_header_mongrel () | |
1594 | { | |
1595 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1596 | if eval \${$3+:} false; then : | |
1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1598 | $as_echo_n "checking for $2... " >&6; } | |
1599 | if eval \${$3+:} false; then : | |
1600 | $as_echo_n "(cached) " >&6 | |
11b35193 | 1601 | fi |
cbddf2cb IJ |
1602 | eval ac_res=\$$3 |
1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1604 | $as_echo "$ac_res" >&6; } | |
5a0be244 | 1605 | else |
cbddf2cb IJ |
1606 | # Is the header compilable? |
1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1608 | $as_echo_n "checking $2 usability... " >&6; } | |
1609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1610 | /* end confdefs.h. */ | |
1611 | $4 | |
1612 | #include <$2> | |
1613 | _ACEOF | |
1614 | if ac_fn_c_try_compile "$LINENO"; then : | |
1615 | ac_header_compiler=yes | |
5a0be244 | 1616 | else |
cbddf2cb | 1617 | ac_header_compiler=no |
5a0be244 | 1618 | fi |
cbddf2cb IJ |
1619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1621 | $as_echo "$ac_header_compiler" >&6; } | |
1622 | ||
1623 | # Is the header present? | |
1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1625 | $as_echo_n "checking $2 presence... " >&6; } | |
1626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1627 | /* end confdefs.h. */ | |
1628 | #include <$2> | |
1629 | _ACEOF | |
1630 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1631 | ac_header_preproc=yes | |
1632 | else | |
1633 | ac_header_preproc=no | |
5a0be244 | 1634 | fi |
cbddf2cb IJ |
1635 | rm -f conftest.err conftest.i conftest.$ac_ext |
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1637 | $as_echo "$ac_header_preproc" >&6; } | |
1638 | ||
1639 | # So? What about this header? | |
1640 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1641 | yes:no: ) | |
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1643 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1645 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1646 | ;; | |
1647 | no:yes:* ) | |
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1649 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1651 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1653 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1655 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1657 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1658 | ;; | |
1659 | esac | |
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1661 | $as_echo_n "checking for $2... " >&6; } | |
1662 | if eval \${$3+:} false; then : | |
1663 | $as_echo_n "(cached) " >&6 | |
5a0be244 | 1664 | else |
cbddf2cb | 1665 | eval "$3=\$ac_header_compiler" |
5a0be244 | 1666 | fi |
cbddf2cb IJ |
1667 | eval ac_res=\$$3 |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1669 | $as_echo "$ac_res" >&6; } | |
11b35193 | 1670 | fi |
cbddf2cb IJ |
1671 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1672 | ||
1673 | } # ac_fn_c_check_header_mongrel | |
1674 | ||
1675 | # ac_fn_c_try_run LINENO | |
1676 | # ---------------------- | |
1677 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1678 | # that executables *can* be run. | |
1679 | ac_fn_c_try_run () | |
1680 | { | |
1681 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1682 | if { { ac_try="$ac_link" | |
1683 | case "(($ac_try" in | |
1684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1685 | *) ac_try_echo=$ac_try;; | |
1686 | esac | |
1687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1688 | $as_echo "$ac_try_echo"; } >&5 | |
1689 | (eval "$ac_link") 2>&5 | |
1690 | ac_status=$? | |
1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1692 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1693 | { { case "(($ac_try" in | |
1694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1695 | *) ac_try_echo=$ac_try;; | |
1696 | esac | |
1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1698 | $as_echo "$ac_try_echo"; } >&5 | |
1699 | (eval "$ac_try") 2>&5 | |
1700 | ac_status=$? | |
1701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1702 | test $ac_status = 0; }; }; then : | |
1703 | ac_retval=0 | |
11b35193 | 1704 | else |
cbddf2cb IJ |
1705 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
1706 | $as_echo "$as_me: failed program was:" >&5 | |
1707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1708 | ||
1709 | ac_retval=$ac_status | |
11b35193 | 1710 | fi |
cbddf2cb IJ |
1711 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1713 | as_fn_set_status $ac_retval | |
1714 | ||
1715 | } # ac_fn_c_try_run | |
1716 | ||
1717 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1718 | # ------------------------------------------------------- | |
1719 | # Tests whether HEADER exists and can be compiled using the include files in | |
1720 | # INCLUDES, setting the cache variable VAR accordingly. | |
1721 | ac_fn_c_check_header_compile () | |
1722 | { | |
1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1725 | $as_echo_n "checking for $2... " >&6; } | |
1726 | if eval \${$3+:} false; then : | |
1727 | $as_echo_n "(cached) " >&6 | |
11b35193 | 1728 | else |
cbddf2cb IJ |
1729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1730 | /* end confdefs.h. */ | |
1731 | $4 | |
1732 | #include <$2> | |
1733 | _ACEOF | |
1734 | if ac_fn_c_try_compile "$LINENO"; then : | |
1735 | eval "$3=yes" | |
1736 | else | |
1737 | eval "$3=no" | |
11b35193 | 1738 | fi |
cbddf2cb | 1739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11b35193 | 1740 | fi |
cbddf2cb IJ |
1741 | eval ac_res=\$$3 |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1743 | $as_echo "$ac_res" >&6; } | |
1744 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
11b35193 | 1745 | |
cbddf2cb IJ |
1746 | } # ac_fn_c_check_header_compile |
1747 | cat >config.log <<_ACEOF | |
1748 | This file contains any messages produced by compilers while | |
1749 | running configure, to aid debugging if configure makes a mistake. | |
1750 | ||
1751 | It was created by $as_me, which was | |
1752 | generated by GNU Autoconf 2.69. Invocation command line was | |
1753 | ||
1754 | $ $0 $@ | |
1755 | ||
1756 | _ACEOF | |
1757 | exec 5>>config.log | |
1758 | { | |
1759 | cat <<_ASUNAME | |
1760 | ## --------- ## | |
1761 | ## Platform. ## | |
1762 | ## --------- ## | |
1763 | ||
1764 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1765 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1766 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1767 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1768 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1769 | ||
1770 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1771 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1772 | ||
1773 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1774 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1775 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1776 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1777 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1778 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1779 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1780 | ||
1781 | _ASUNAME | |
1782 | ||
1783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1784 | for as_dir in $PATH | |
1785 | do | |
1786 | IFS=$as_save_IFS | |
1787 | test -z "$as_dir" && as_dir=. | |
1788 | $as_echo "PATH: $as_dir" | |
1789 | done | |
1790 | IFS=$as_save_IFS | |
1791 | ||
1792 | } >&5 | |
1793 | ||
1794 | cat >&5 <<_ACEOF | |
1795 | ||
1796 | ||
1797 | ## ----------- ## | |
1798 | ## Core tests. ## | |
1799 | ## ----------- ## | |
1800 | ||
1801 | _ACEOF | |
1802 | ||
1803 | ||
1804 | # Keep a trace of the command line. | |
1805 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1806 | # Strip out --silent because we don't want to record it for future runs. | |
1807 | # Also quote any args containing shell meta-characters. | |
1808 | # Make two passes to allow for proper duplicate-argument suppression. | |
1809 | ac_configure_args= | |
1810 | ac_configure_args0= | |
1811 | ac_configure_args1= | |
1812 | ac_must_keep_next=false | |
1813 | for ac_pass in 1 2 | |
1814 | do | |
1815 | for ac_arg | |
1816 | do | |
1817 | case $ac_arg in | |
1818 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1819 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1820 | | -silent | --silent | --silen | --sile | --sil) | |
1821 | continue ;; | |
1822 | *\'*) | |
1823 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1824 | esac | |
1825 | case $ac_pass in | |
1826 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1827 | 2) | |
1828 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1829 | if test $ac_must_keep_next = true; then | |
1830 | ac_must_keep_next=false # Got value, back to normal. | |
1831 | else | |
1832 | case $ac_arg in | |
1833 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1834 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1835 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1836 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1837 | case "$ac_configure_args0 " in | |
1838 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1839 | esac | |
1840 | ;; | |
1841 | -* ) ac_must_keep_next=true ;; | |
1842 | esac | |
1843 | fi | |
1844 | as_fn_append ac_configure_args " '$ac_arg'" | |
1845 | ;; | |
1846 | esac | |
1847 | done | |
1848 | done | |
1849 | { ac_configure_args0=; unset ac_configure_args0;} | |
1850 | { ac_configure_args1=; unset ac_configure_args1;} | |
1851 | ||
1852 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1853 | # config.log. We remove comments because anyway the quotes in there | |
1854 | # would cause problems or look ugly. | |
1855 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1856 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1857 | trap 'exit_status=$? | |
1858 | # Save into config.log some information that might help in debugging. | |
1859 | { | |
1860 | echo | |
1861 | ||
1862 | $as_echo "## ---------------- ## | |
1863 | ## Cache variables. ## | |
1864 | ## ---------------- ##" | |
1865 | echo | |
1866 | # The following way of writing the cache mishandles newlines in values, | |
1867 | ( | |
1868 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1869 | eval ac_val=\$$ac_var | |
1870 | case $ac_val in #( | |
1871 | *${as_nl}*) | |
1872 | case $ac_var in #( | |
1873 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1874 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1875 | esac | |
1876 | case $ac_var in #( | |
1877 | _ | IFS | as_nl) ;; #( | |
1878 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1879 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1880 | esac ;; | |
1881 | esac | |
1882 | done | |
1883 | (set) 2>&1 | | |
1884 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1885 | *${as_nl}ac_space=\ *) | |
1886 | sed -n \ | |
1887 | "s/'\''/'\''\\\\'\'''\''/g; | |
1888 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1889 | ;; #( | |
1890 | *) | |
1891 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1892 | ;; | |
1893 | esac | | |
1894 | sort | |
1895 | ) | |
1896 | echo | |
1897 | ||
1898 | $as_echo "## ----------------- ## | |
1899 | ## Output variables. ## | |
1900 | ## ----------------- ##" | |
1901 | echo | |
1902 | for ac_var in $ac_subst_vars | |
1903 | do | |
1904 | eval ac_val=\$$ac_var | |
1905 | case $ac_val in | |
1906 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1907 | esac | |
1908 | $as_echo "$ac_var='\''$ac_val'\''" | |
1909 | done | sort | |
1910 | echo | |
1911 | ||
1912 | if test -n "$ac_subst_files"; then | |
1913 | $as_echo "## ------------------- ## | |
1914 | ## File substitutions. ## | |
1915 | ## ------------------- ##" | |
1916 | echo | |
1917 | for ac_var in $ac_subst_files | |
1918 | do | |
1919 | eval ac_val=\$$ac_var | |
1920 | case $ac_val in | |
1921 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1922 | esac | |
1923 | $as_echo "$ac_var='\''$ac_val'\''" | |
1924 | done | sort | |
1925 | echo | |
1926 | fi | |
1927 | ||
1928 | if test -s confdefs.h; then | |
1929 | $as_echo "## ----------- ## | |
1930 | ## confdefs.h. ## | |
1931 | ## ----------- ##" | |
1932 | echo | |
1933 | cat confdefs.h | |
1934 | echo | |
1935 | fi | |
1936 | test "$ac_signal" != 0 && | |
1937 | $as_echo "$as_me: caught signal $ac_signal" | |
1938 | $as_echo "$as_me: exit $exit_status" | |
1939 | } >&5 | |
1940 | rm -f core *.core core.conftest.* && | |
1941 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1942 | exit $exit_status | |
1943 | ' 0 | |
1944 | for ac_signal in 1 2 13 15; do | |
1945 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1946 | done | |
1947 | ac_signal=0 | |
1948 | ||
1949 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1950 | rm -f -r conftest* confdefs.h | |
1951 | ||
1952 | $as_echo "/* confdefs.h */" > confdefs.h | |
1953 | ||
1954 | # Predefined preprocessor variables. | |
1955 | ||
1956 | cat >>confdefs.h <<_ACEOF | |
1957 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1958 | _ACEOF | |
1959 | ||
1960 | cat >>confdefs.h <<_ACEOF | |
1961 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1962 | _ACEOF | |
1963 | ||
1964 | cat >>confdefs.h <<_ACEOF | |
1965 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1966 | _ACEOF | |
1967 | ||
1968 | cat >>confdefs.h <<_ACEOF | |
1969 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1970 | _ACEOF | |
1971 | ||
1972 | cat >>confdefs.h <<_ACEOF | |
1973 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1974 | _ACEOF | |
1975 | ||
1976 | cat >>confdefs.h <<_ACEOF | |
1977 | #define PACKAGE_URL "$PACKAGE_URL" | |
1978 | _ACEOF | |
1979 | ||
1980 | ||
1981 | # Let the site file select an alternate cache file if it wants to. | |
1982 | # Prefer an explicitly selected file to automatically selected ones. | |
1983 | ac_site_file1=NONE | |
1984 | ac_site_file2=NONE | |
1985 | if test -n "$CONFIG_SITE"; then | |
1986 | # We do not want a PATH search for config.site. | |
1987 | case $CONFIG_SITE in #(( | |
1988 | -*) ac_site_file1=./$CONFIG_SITE;; | |
1989 | */*) ac_site_file1=$CONFIG_SITE;; | |
1990 | *) ac_site_file1=./$CONFIG_SITE;; | |
1991 | esac | |
1992 | elif test "x$prefix" != xNONE; then | |
1993 | ac_site_file1=$prefix/share/config.site | |
1994 | ac_site_file2=$prefix/etc/config.site | |
5a0be244 | 1995 | else |
cbddf2cb IJ |
1996 | ac_site_file1=$ac_default_prefix/share/config.site |
1997 | ac_site_file2=$ac_default_prefix/etc/config.site | |
5a0be244 | 1998 | fi |
cbddf2cb IJ |
1999 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2000 | do | |
2001 | test "x$ac_site_file" = xNONE && continue | |
2002 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2004 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2005 | sed 's/^/| /' "$ac_site_file" >&5 | |
2006 | . "$ac_site_file" \ | |
2007 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2008 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2009 | as_fn_error $? "failed to load site script $ac_site_file | |
2010 | See \`config.log' for more details" "$LINENO" 5; } | |
2011 | fi | |
2012 | done | |
5a0be244 | 2013 | |
cbddf2cb IJ |
2014 | if test -r "$cache_file"; then |
2015 | # Some versions of bash will fail to source /dev/null (special files | |
2016 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2017 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2018 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2019 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2020 | case $cache_file in | |
2021 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2022 | *) . "./$cache_file";; | |
2023 | esac | |
2024 | fi | |
11b35193 | 2025 | else |
cbddf2cb IJ |
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2027 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2028 | >$cache_file | |
2029 | fi | |
2030 | ||
2031 | # Check that the precious variables saved in the cache have kept the same | |
2032 | # value. | |
2033 | ac_cache_corrupted=false | |
2034 | for ac_var in $ac_precious_vars; do | |
2035 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2036 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2037 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2038 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2039 | case $ac_old_set,$ac_new_set in | |
2040 | set,) | |
2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2042 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2043 | ac_cache_corrupted=: ;; | |
2044 | ,set) | |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2046 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2047 | ac_cache_corrupted=: ;; | |
2048 | ,);; | |
2049 | *) | |
2050 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2051 | # differences in whitespace do not lead to failure. | |
2052 | ac_old_val_w=`echo x $ac_old_val` | |
2053 | ac_new_val_w=`echo x $ac_new_val` | |
2054 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2056 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2057 | ac_cache_corrupted=: | |
2058 | else | |
2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2060 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2061 | eval $ac_var=\$ac_old_val | |
2062 | fi | |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2064 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2066 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2067 | fi;; | |
2068 | esac | |
2069 | # Pass precious variables to config.status. | |
2070 | if test "$ac_new_set" = set; then | |
2071 | case $ac_new_val in | |
2072 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2073 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2074 | esac | |
2075 | case " $ac_configure_args " in | |
2076 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2077 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2078 | esac | |
2079 | fi | |
2080 | done | |
2081 | if $ac_cache_corrupted; then | |
2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2083 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2085 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2086 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2087 | fi | |
2088 | ## -------------------- ## | |
2089 | ## Main body of script. ## | |
2090 | ## -------------------- ## | |
2091 | ||
2092 | ac_ext=c | |
2093 | ac_cpp='$CPP $CPPFLAGS' | |
2094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2097 | ||
2098 | ||
2099 | ac_config_headers="$ac_config_headers src/config.h" | |
2100 | ||
2101 | ||
2102 | ||
2103 | ||
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you requested dynamic linking" >&5 | |
2105 | $as_echo_n "checking whether you requested dynamic linking... " >&6; } | |
2106 | ||
2107 | # Check whether --enable-dynamic was given. | |
2108 | if test "${enable_dynamic+set}" = set; then : | |
2109 | enableval=$enable_dynamic; case "$enableval" in | |
2110 | elf|yes) | |
2111 | ENABLE_DYNAMIC=elf | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (ELF)" >&5 | |
2113 | $as_echo "yes (ELF)" >&6; } | |
2114 | ;; | |
2115 | no) ENABLE_DYNAMIC=no | |
2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2117 | $as_echo "no" >&6; } | |
2118 | ;; | |
2119 | *) as_fn_error $? "\"invalid value $enableval for --enable-dynamic, try yes or elf\"" "$LINENO" 5 | |
2120 | ;; | |
2121 | esac | |
2122 | ||
11b35193 | 2123 | else |
cbddf2cb IJ |
2124 | |
2125 | ENABLE_DYNAMIC=elf | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, by default" >&5 | |
2127 | $as_echo "yes, by default" >&6; } | |
2128 | ||
2129 | fi | |
2130 | ||
2131 | ||
2132 | ac_ext=c | |
2133 | ac_cpp='$CPP $CPPFLAGS' | |
2134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2137 | if test -n "$ac_tool_prefix"; then | |
2138 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2139 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2141 | $as_echo_n "checking for $ac_word... " >&6; } | |
2142 | if ${ac_cv_prog_CC+:} false; then : | |
2143 | $as_echo_n "(cached) " >&6 | |
2144 | else | |
2145 | if test -n "$CC"; then | |
2146 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2147 | else | |
2148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2149 | for as_dir in $PATH | |
2150 | do | |
2151 | IFS=$as_save_IFS | |
2152 | test -z "$as_dir" && as_dir=. | |
2153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2155 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2157 | break 2 | |
2158 | fi | |
2159 | done | |
2160 | done | |
2161 | IFS=$as_save_IFS | |
2162 | ||
2163 | fi | |
2164 | fi | |
2165 | CC=$ac_cv_prog_CC | |
2166 | if test -n "$CC"; then | |
2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2168 | $as_echo "$CC" >&6; } | |
2169 | else | |
2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2171 | $as_echo "no" >&6; } | |
2172 | fi | |
2173 | ||
2174 | ||
2175 | fi | |
2176 | if test -z "$ac_cv_prog_CC"; then | |
2177 | ac_ct_CC=$CC | |
2178 | # Extract the first word of "gcc", so it can be a program name with args. | |
2179 | set dummy gcc; ac_word=$2 | |
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2181 | $as_echo_n "checking for $ac_word... " >&6; } | |
2182 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2183 | $as_echo_n "(cached) " >&6 | |
2184 | else | |
2185 | if test -n "$ac_ct_CC"; then | |
2186 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2187 | else | |
2188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2189 | for as_dir in $PATH | |
2190 | do | |
2191 | IFS=$as_save_IFS | |
2192 | test -z "$as_dir" && as_dir=. | |
2193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2194 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2195 | ac_cv_prog_ac_ct_CC="gcc" | |
2196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2197 | break 2 | |
2198 | fi | |
2199 | done | |
2200 | done | |
2201 | IFS=$as_save_IFS | |
2202 | ||
2203 | fi | |
2204 | fi | |
2205 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2206 | if test -n "$ac_ct_CC"; then | |
2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2208 | $as_echo "$ac_ct_CC" >&6; } | |
2209 | else | |
2210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2211 | $as_echo "no" >&6; } | |
2212 | fi | |
2213 | ||
2214 | if test "x$ac_ct_CC" = x; then | |
2215 | CC="" | |
2216 | else | |
2217 | case $cross_compiling:$ac_tool_warned in | |
2218 | yes:) | |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2220 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2221 | ac_tool_warned=yes ;; | |
2222 | esac | |
2223 | CC=$ac_ct_CC | |
2224 | fi | |
2225 | else | |
2226 | CC="$ac_cv_prog_CC" | |
2227 | fi | |
2228 | ||
2229 | if test -z "$CC"; then | |
2230 | if test -n "$ac_tool_prefix"; then | |
2231 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2232 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2234 | $as_echo_n "checking for $ac_word... " >&6; } | |
2235 | if ${ac_cv_prog_CC+:} false; then : | |
2236 | $as_echo_n "(cached) " >&6 | |
2237 | else | |
2238 | if test -n "$CC"; then | |
2239 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2240 | else | |
2241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2242 | for as_dir in $PATH | |
2243 | do | |
2244 | IFS=$as_save_IFS | |
2245 | test -z "$as_dir" && as_dir=. | |
2246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2248 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2250 | break 2 | |
2251 | fi | |
2252 | done | |
2253 | done | |
2254 | IFS=$as_save_IFS | |
2255 | ||
2256 | fi | |
2257 | fi | |
2258 | CC=$ac_cv_prog_CC | |
2259 | if test -n "$CC"; then | |
2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2261 | $as_echo "$CC" >&6; } | |
2262 | else | |
2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2264 | $as_echo "no" >&6; } | |
2265 | fi | |
2266 | ||
2267 | ||
2268 | fi | |
2269 | fi | |
2270 | if test -z "$CC"; then | |
2271 | # Extract the first word of "cc", so it can be a program name with args. | |
2272 | set dummy cc; ac_word=$2 | |
2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2274 | $as_echo_n "checking for $ac_word... " >&6; } | |
2275 | if ${ac_cv_prog_CC+:} false; then : | |
2276 | $as_echo_n "(cached) " >&6 | |
2277 | else | |
2278 | if test -n "$CC"; then | |
2279 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2280 | else | |
2281 | ac_prog_rejected=no | |
2282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2283 | for as_dir in $PATH | |
2284 | do | |
2285 | IFS=$as_save_IFS | |
2286 | test -z "$as_dir" && as_dir=. | |
2287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2288 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2289 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2290 | ac_prog_rejected=yes | |
2291 | continue | |
2292 | fi | |
2293 | ac_cv_prog_CC="cc" | |
2294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2295 | break 2 | |
2296 | fi | |
2297 | done | |
2298 | done | |
2299 | IFS=$as_save_IFS | |
2300 | ||
2301 | if test $ac_prog_rejected = yes; then | |
2302 | # We found a bogon in the path, so make sure we never use it. | |
2303 | set dummy $ac_cv_prog_CC | |
2304 | shift | |
2305 | if test $# != 0; then | |
2306 | # We chose a different compiler from the bogus one. | |
2307 | # However, it has the same basename, so the bogon will be chosen | |
2308 | # first if we set CC to just the basename; use the full file name. | |
2309 | shift | |
2310 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2311 | fi | |
2312 | fi | |
2313 | fi | |
2314 | fi | |
2315 | CC=$ac_cv_prog_CC | |
2316 | if test -n "$CC"; then | |
2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2318 | $as_echo "$CC" >&6; } | |
2319 | else | |
2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2321 | $as_echo "no" >&6; } | |
2322 | fi | |
2323 | ||
2324 | ||
2325 | fi | |
2326 | if test -z "$CC"; then | |
2327 | if test -n "$ac_tool_prefix"; then | |
2328 | for ac_prog in cl.exe | |
2329 | do | |
2330 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2331 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2333 | $as_echo_n "checking for $ac_word... " >&6; } | |
2334 | if ${ac_cv_prog_CC+:} false; then : | |
2335 | $as_echo_n "(cached) " >&6 | |
2336 | else | |
2337 | if test -n "$CC"; then | |
2338 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2339 | else | |
2340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2341 | for as_dir in $PATH | |
2342 | do | |
2343 | IFS=$as_save_IFS | |
2344 | test -z "$as_dir" && as_dir=. | |
2345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2347 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2349 | break 2 | |
2350 | fi | |
2351 | done | |
2352 | done | |
2353 | IFS=$as_save_IFS | |
2354 | ||
2355 | fi | |
2356 | fi | |
2357 | CC=$ac_cv_prog_CC | |
2358 | if test -n "$CC"; then | |
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2360 | $as_echo "$CC" >&6; } | |
2361 | else | |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2363 | $as_echo "no" >&6; } | |
2364 | fi | |
2365 | ||
2366 | ||
2367 | test -n "$CC" && break | |
2368 | done | |
2369 | fi | |
2370 | if test -z "$CC"; then | |
2371 | ac_ct_CC=$CC | |
2372 | for ac_prog in cl.exe | |
2373 | do | |
2374 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2375 | set dummy $ac_prog; ac_word=$2 | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2377 | $as_echo_n "checking for $ac_word... " >&6; } | |
2378 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2379 | $as_echo_n "(cached) " >&6 | |
2380 | else | |
2381 | if test -n "$ac_ct_CC"; then | |
2382 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2383 | else | |
2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2385 | for as_dir in $PATH | |
2386 | do | |
2387 | IFS=$as_save_IFS | |
2388 | test -z "$as_dir" && as_dir=. | |
2389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2391 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2393 | break 2 | |
2394 | fi | |
2395 | done | |
2396 | done | |
2397 | IFS=$as_save_IFS | |
2398 | ||
2399 | fi | |
2400 | fi | |
2401 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2402 | if test -n "$ac_ct_CC"; then | |
2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2404 | $as_echo "$ac_ct_CC" >&6; } | |
2405 | else | |
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2407 | $as_echo "no" >&6; } | |
11b35193 | 2408 | fi |
11b35193 | 2409 | |
cbddf2cb IJ |
2410 | |
2411 | test -n "$ac_ct_CC" && break | |
2412 | done | |
2413 | ||
2414 | if test "x$ac_ct_CC" = x; then | |
2415 | CC="" | |
2416 | else | |
2417 | case $cross_compiling:$ac_tool_warned in | |
2418 | yes:) | |
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2420 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2421 | ac_tool_warned=yes ;; | |
2422 | esac | |
2423 | CC=$ac_ct_CC | |
2424 | fi | |
2425 | fi | |
2426 | ||
2427 | fi | |
2428 | ||
2429 | ||
2430 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2431 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2432 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2433 | See \`config.log' for more details" "$LINENO" 5; } | |
2434 | ||
2435 | # Provide some information about the compiler. | |
2436 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2437 | set X $ac_compile | |
2438 | ac_compiler=$2 | |
2439 | for ac_option in --version -v -V -qversion; do | |
2440 | { { ac_try="$ac_compiler $ac_option >&5" | |
2441 | case "(($ac_try" in | |
2442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2443 | *) ac_try_echo=$ac_try;; | |
2444 | esac | |
2445 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2446 | $as_echo "$ac_try_echo"; } >&5 | |
2447 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2448 | ac_status=$? | |
2449 | if test -s conftest.err; then | |
2450 | sed '10a\ | |
2451 | ... rest of stderr output deleted ... | |
2452 | 10q' conftest.err >conftest.er1 | |
2453 | cat conftest.er1 >&5 | |
2454 | fi | |
2455 | rm -f conftest.er1 conftest.err | |
2456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2457 | test $ac_status = 0; } | |
2458 | done | |
2459 | ||
2460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2461 | /* end confdefs.h. */ | |
2462 | ||
2463 | int | |
2464 | main () | |
2465 | { | |
2466 | ||
2467 | ; | |
2468 | return 0; | |
2469 | } | |
2470 | _ACEOF | |
2471 | ac_clean_files_save=$ac_clean_files | |
2472 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2473 | # Try to create an executable without -o first, disregard a.out. | |
2474 | # It will help us diagnose broken compilers, and finding out an intuition | |
2475 | # of exeext. | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2477 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2478 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2479 | ||
2480 | # The possible output files: | |
2481 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2482 | ||
2483 | ac_rmfiles= | |
2484 | for ac_file in $ac_files | |
2485 | do | |
2486 | case $ac_file in | |
2487 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2488 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2489 | esac | |
2490 | done | |
2491 | rm -f $ac_rmfiles | |
2492 | ||
2493 | if { { ac_try="$ac_link_default" | |
2494 | case "(($ac_try" in | |
2495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2496 | *) ac_try_echo=$ac_try;; | |
2497 | esac | |
2498 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2499 | $as_echo "$ac_try_echo"; } >&5 | |
2500 | (eval "$ac_link_default") 2>&5 | |
2501 | ac_status=$? | |
2502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2503 | test $ac_status = 0; }; then : | |
2504 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2505 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2506 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2507 | # so that the user can short-circuit this test for compilers unknown to | |
2508 | # Autoconf. | |
2509 | for ac_file in $ac_files '' | |
2510 | do | |
2511 | test -f "$ac_file" || continue | |
2512 | case $ac_file in | |
2513 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2514 | ;; | |
2515 | [ab].out ) | |
2516 | # We found the default executable, but exeext='' is most | |
2517 | # certainly right. | |
2518 | break;; | |
2519 | *.* ) | |
2520 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2521 | then :; else | |
2522 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2523 | fi | |
2524 | # We set ac_cv_exeext here because the later test for it is not | |
2525 | # safe: cross compilers may not add the suffix if given an `-o' | |
2526 | # argument, so we may need to know it at that point already. | |
2527 | # Even if this section looks crufty: it has the advantage of | |
2528 | # actually working. | |
2529 | break;; | |
2530 | * ) | |
2531 | break;; | |
2532 | esac | |
2533 | done | |
2534 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2535 | ||
2536 | else | |
2537 | ac_file='' | |
2538 | fi | |
2539 | if test -z "$ac_file"; then : | |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2541 | $as_echo "no" >&6; } | |
2542 | $as_echo "$as_me: failed program was:" >&5 | |
2543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2544 | ||
2545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2547 | as_fn_error 77 "C compiler cannot create executables | |
2548 | See \`config.log' for more details" "$LINENO" 5; } | |
2549 | else | |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2551 | $as_echo "yes" >&6; } | |
2552 | fi | |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2554 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2556 | $as_echo "$ac_file" >&6; } | |
2557 | ac_exeext=$ac_cv_exeext | |
2558 | ||
2559 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2560 | ac_clean_files=$ac_clean_files_save | |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2562 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2563 | if { { ac_try="$ac_link" | |
2564 | case "(($ac_try" in | |
2565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2566 | *) ac_try_echo=$ac_try;; | |
2567 | esac | |
2568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2569 | $as_echo "$ac_try_echo"; } >&5 | |
2570 | (eval "$ac_link") 2>&5 | |
2571 | ac_status=$? | |
2572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2573 | test $ac_status = 0; }; then : | |
2574 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2575 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2576 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2577 | # `rm'. | |
2578 | for ac_file in conftest.exe conftest conftest.*; do | |
2579 | test -f "$ac_file" || continue | |
2580 | case $ac_file in | |
2581 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2582 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2583 | break;; | |
2584 | * ) break;; | |
2585 | esac | |
2586 | done | |
2587 | else | |
2588 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2589 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2590 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2591 | See \`config.log' for more details" "$LINENO" 5; } | |
2592 | fi | |
2593 | rm -f conftest conftest$ac_cv_exeext | |
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2595 | $as_echo "$ac_cv_exeext" >&6; } | |
2596 | ||
2597 | rm -f conftest.$ac_ext | |
2598 | EXEEXT=$ac_cv_exeext | |
2599 | ac_exeext=$EXEEXT | |
2600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2601 | /* end confdefs.h. */ | |
2602 | #include <stdio.h> | |
2603 | int | |
2604 | main () | |
2605 | { | |
2606 | FILE *f = fopen ("conftest.out", "w"); | |
2607 | return ferror (f) || fclose (f) != 0; | |
2608 | ||
2609 | ; | |
2610 | return 0; | |
2611 | } | |
2612 | _ACEOF | |
2613 | ac_clean_files="$ac_clean_files conftest.out" | |
2614 | # Check that the compiler produces executables we can run. If not, either | |
2615 | # the compiler is broken, or we cross compile. | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2617 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2618 | if test "$cross_compiling" != yes; then | |
2619 | { { ac_try="$ac_link" | |
2620 | case "(($ac_try" in | |
2621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2622 | *) ac_try_echo=$ac_try;; | |
2623 | esac | |
2624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2625 | $as_echo "$ac_try_echo"; } >&5 | |
2626 | (eval "$ac_link") 2>&5 | |
2627 | ac_status=$? | |
2628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2629 | test $ac_status = 0; } | |
2630 | if { ac_try='./conftest$ac_cv_exeext' | |
2631 | { { case "(($ac_try" in | |
2632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2633 | *) ac_try_echo=$ac_try;; | |
2634 | esac | |
2635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2636 | $as_echo "$ac_try_echo"; } >&5 | |
2637 | (eval "$ac_try") 2>&5 | |
2638 | ac_status=$? | |
2639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2640 | test $ac_status = 0; }; }; then | |
2641 | cross_compiling=no | |
2642 | else | |
2643 | if test "$cross_compiling" = maybe; then | |
2644 | cross_compiling=yes | |
2645 | else | |
2646 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2648 | as_fn_error $? "cannot run C compiled programs. | |
2649 | If you meant to cross compile, use \`--host'. | |
2650 | See \`config.log' for more details" "$LINENO" 5; } | |
2651 | fi | |
2652 | fi | |
2653 | fi | |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2655 | $as_echo "$cross_compiling" >&6; } | |
2656 | ||
2657 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2658 | ac_clean_files=$ac_clean_files_save | |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2660 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2661 | if ${ac_cv_objext+:} false; then : | |
2662 | $as_echo_n "(cached) " >&6 | |
2663 | else | |
2664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2665 | /* end confdefs.h. */ | |
2666 | ||
2667 | int | |
2668 | main () | |
2669 | { | |
2670 | ||
2671 | ; | |
2672 | return 0; | |
2673 | } | |
2674 | _ACEOF | |
2675 | rm -f conftest.o conftest.obj | |
2676 | if { { ac_try="$ac_compile" | |
2677 | case "(($ac_try" in | |
2678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2679 | *) ac_try_echo=$ac_try;; | |
2680 | esac | |
2681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2682 | $as_echo "$ac_try_echo"; } >&5 | |
2683 | (eval "$ac_compile") 2>&5 | |
2684 | ac_status=$? | |
2685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2686 | test $ac_status = 0; }; then : | |
2687 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2688 | test -f "$ac_file" || continue; | |
2689 | case $ac_file in | |
2690 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2691 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2692 | break;; | |
2693 | esac | |
2694 | done | |
2695 | else | |
2696 | $as_echo "$as_me: failed program was:" >&5 | |
2697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2698 | ||
2699 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2701 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2702 | See \`config.log' for more details" "$LINENO" 5; } | |
2703 | fi | |
2704 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11b35193 | 2705 | fi |
cbddf2cb IJ |
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2707 | $as_echo "$ac_cv_objext" >&6; } | |
2708 | OBJEXT=$ac_cv_objext | |
2709 | ac_objext=$OBJEXT | |
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2711 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2712 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
2713 | $as_echo_n "(cached) " >&6 | |
2714 | else | |
2715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2716 | /* end confdefs.h. */ | |
2717 | ||
2718 | int | |
2719 | main () | |
2720 | { | |
2721 | #ifndef __GNUC__ | |
2722 | choke me | |
2723 | #endif | |
2724 | ||
2725 | ; | |
2726 | return 0; | |
2727 | } | |
2728 | _ACEOF | |
2729 | if ac_fn_c_try_compile "$LINENO"; then : | |
2730 | ac_compiler_gnu=yes | |
2731 | else | |
2732 | ac_compiler_gnu=no | |
2733 | fi | |
2734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2735 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2736 | ||
2737 | fi | |
2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2739 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2740 | if test $ac_compiler_gnu = yes; then | |
2741 | GCC=yes | |
2742 | else | |
2743 | GCC= | |
2744 | fi | |
2745 | ac_test_CFLAGS=${CFLAGS+set} | |
2746 | ac_save_CFLAGS=$CFLAGS | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2748 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2749 | if ${ac_cv_prog_cc_g+:} false; then : | |
2750 | $as_echo_n "(cached) " >&6 | |
2751 | else | |
2752 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2753 | ac_c_werror_flag=yes | |
2754 | ac_cv_prog_cc_g=no | |
2755 | CFLAGS="-g" | |
2756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2757 | /* end confdefs.h. */ | |
2758 | ||
2759 | int | |
2760 | main () | |
2761 | { | |
2762 | ||
2763 | ; | |
2764 | return 0; | |
2765 | } | |
2766 | _ACEOF | |
2767 | if ac_fn_c_try_compile "$LINENO"; then : | |
2768 | ac_cv_prog_cc_g=yes | |
2769 | else | |
2770 | CFLAGS="" | |
2771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2772 | /* end confdefs.h. */ | |
11b35193 | 2773 | |
cbddf2cb IJ |
2774 | int |
2775 | main () | |
2776 | { | |
2777 | ||
2778 | ; | |
2779 | return 0; | |
2780 | } | |
2781 | _ACEOF | |
2782 | if ac_fn_c_try_compile "$LINENO"; then : | |
2783 | ||
2784 | else | |
2785 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2786 | CFLAGS="-g" | |
2787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2788 | /* end confdefs.h. */ | |
2789 | ||
2790 | int | |
2791 | main () | |
2792 | { | |
2793 | ||
2794 | ; | |
2795 | return 0; | |
2796 | } | |
2797 | _ACEOF | |
2798 | if ac_fn_c_try_compile "$LINENO"; then : | |
2799 | ac_cv_prog_cc_g=yes | |
2800 | fi | |
2801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2802 | fi | |
2803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2804 | fi | |
2805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2806 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2807 | fi | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2809 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5a0be244 | 2810 | if test "$ac_test_CFLAGS" = set; then |
cbddf2cb | 2811 | CFLAGS=$ac_save_CFLAGS |
5a0be244 | 2812 | elif test $ac_cv_prog_cc_g = yes; then |
2813 | if test "$GCC" = yes; then | |
11b35193 | 2814 | CFLAGS="-g -O2" |
2815 | else | |
5a0be244 | 2816 | CFLAGS="-g" |
11b35193 | 2817 | fi |
2818 | else | |
5a0be244 | 2819 | if test "$GCC" = yes; then |
2820 | CFLAGS="-O2" | |
2821 | else | |
2822 | CFLAGS= | |
2823 | fi | |
11b35193 | 2824 | fi |
cbddf2cb IJ |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2826 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2827 | if ${ac_cv_prog_cc_c89+:} false; then : | |
2828 | $as_echo_n "(cached) " >&6 | |
2829 | else | |
2830 | ac_cv_prog_cc_c89=no | |
2831 | ac_save_CC=$CC | |
2832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2833 | /* end confdefs.h. */ | |
2834 | #include <stdarg.h> | |
2835 | #include <stdio.h> | |
2836 | struct stat; | |
2837 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2838 | struct buf { int x; }; | |
2839 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2840 | static char *e (p, i) | |
2841 | char **p; | |
2842 | int i; | |
2843 | { | |
2844 | return p[i]; | |
2845 | } | |
2846 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2847 | { | |
2848 | char *s; | |
2849 | va_list v; | |
2850 | va_start (v,p); | |
2851 | s = g (p, va_arg (v,int)); | |
2852 | va_end (v); | |
2853 | return s; | |
2854 | } | |
2855 | ||
2856 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2857 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2858 | These don't provoke an error unfortunately, instead are silently treated | |
2859 | as 'x'. The following induces an error, until -std is added to get | |
2860 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2861 | array size at least. It's necessary to write '\x00'==0 to get something | |
2862 | that's true only with -std. */ | |
2863 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2864 | ||
2865 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2866 | inside strings and character constants. */ | |
2867 | #define FOO(x) 'x' | |
2868 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2869 | ||
2870 | int test (int i, double x); | |
2871 | struct s1 {int (*f) (int a);}; | |
2872 | struct s2 {int (*f) (double a);}; | |
2873 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2874 | int argc; | |
2875 | char **argv; | |
2876 | int | |
2877 | main () | |
2878 | { | |
2879 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2880 | ; | |
2881 | return 0; | |
2882 | } | |
2883 | _ACEOF | |
2884 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2885 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2886 | do | |
2887 | CC="$ac_save_CC $ac_arg" | |
2888 | if ac_fn_c_try_compile "$LINENO"; then : | |
2889 | ac_cv_prog_cc_c89=$ac_arg | |
2890 | fi | |
2891 | rm -f core conftest.err conftest.$ac_objext | |
2892 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2893 | done | |
2894 | rm -f conftest.$ac_ext | |
2895 | CC=$ac_save_CC | |
11b35193 | 2896 | |
cbddf2cb IJ |
2897 | fi |
2898 | # AC_CACHE_VAL | |
2899 | case "x$ac_cv_prog_cc_c89" in | |
2900 | x) | |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2902 | $as_echo "none needed" >&6; } ;; | |
2903 | xno) | |
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2905 | $as_echo "unsupported" >&6; } ;; | |
2906 | *) | |
2907 | CC="$CC $ac_cv_prog_cc_c89" | |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2909 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2910 | esac | |
2911 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
2912 | ||
2913 | fi | |
2914 | ||
2915 | ac_ext=c | |
2916 | ac_cpp='$CPP $CPPFLAGS' | |
2917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2920 | ||
2921 | ac_ext=c | |
2922 | ac_cpp='$CPP $CPPFLAGS' | |
2923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
2927 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
04e7fb4d | 2928 | # On Suns, sometimes $CPP names a directory. |
2929 | if test -n "$CPP" && test -d "$CPP"; then | |
2930 | CPP= | |
2931 | fi | |
2932 | if test -z "$CPP"; then | |
cbddf2cb IJ |
2933 | if ${ac_cv_prog_CPP+:} false; then : |
2934 | $as_echo_n "(cached) " >&6 | |
04e7fb4d | 2935 | else |
cbddf2cb IJ |
2936 | # Double quotes because CPP needs to be expanded |
2937 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2938 | do | |
2939 | ac_preproc_ok=false | |
2940 | for ac_c_preproc_warn_flag in '' yes | |
2941 | do | |
2942 | # Use a header file that comes with gcc, so configuring glibc | |
2943 | # with a fresh cross-compiler works. | |
2944 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2945 | # <limits.h> exists even on freestanding compilers. | |
04e7fb4d | 2946 | # On the NeXT, cc -E runs the code through the compiler's parser, |
cbddf2cb IJ |
2947 | # not just through cpp. "Syntax error" is here to catch this case. |
2948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2949 | /* end confdefs.h. */ | |
2950 | #ifdef __STDC__ | |
2951 | # include <limits.h> | |
2952 | #else | |
2953 | # include <assert.h> | |
2954 | #endif | |
2955 | Syntax error | |
2956 | _ACEOF | |
2957 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2958 | ||
5a0be244 | 2959 | else |
cbddf2cb IJ |
2960 | # Broken: fails on valid input. |
2961 | continue | |
2962 | fi | |
2963 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2964 | ||
2965 | # OK, works on sane cases. Now check whether nonexistent headers | |
2966 | # can be detected and how. | |
2967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2968 | /* end confdefs.h. */ | |
2969 | #include <ac_nonexistent.h> | |
2970 | _ACEOF | |
2971 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2972 | # Broken: success on invalid input. | |
2973 | continue | |
04e7fb4d | 2974 | else |
cbddf2cb IJ |
2975 | # Passes both tests. |
2976 | ac_preproc_ok=: | |
2977 | break | |
04e7fb4d | 2978 | fi |
cbddf2cb IJ |
2979 | rm -f conftest.err conftest.i conftest.$ac_ext |
2980 | ||
2981 | done | |
2982 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2983 | rm -f conftest.i conftest.err conftest.$ac_ext | |
2984 | if $ac_preproc_ok; then : | |
2985 | break | |
04e7fb4d | 2986 | fi |
cbddf2cb IJ |
2987 | |
2988 | done | |
2989 | ac_cv_prog_CPP=$CPP | |
2990 | ||
5a0be244 | 2991 | fi |
cbddf2cb IJ |
2992 | CPP=$ac_cv_prog_CPP |
2993 | else | |
2994 | ac_cv_prog_CPP=$CPP | |
2995 | fi | |
2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
2997 | $as_echo "$CPP" >&6; } | |
2998 | ac_preproc_ok=false | |
2999 | for ac_c_preproc_warn_flag in '' yes | |
3000 | do | |
3001 | # Use a header file that comes with gcc, so configuring glibc | |
3002 | # with a fresh cross-compiler works. | |
3003 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3004 | # <limits.h> exists even on freestanding compilers. | |
3005 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3006 | # not just through cpp. "Syntax error" is here to catch this case. | |
3007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3008 | /* end confdefs.h. */ | |
3009 | #ifdef __STDC__ | |
3010 | # include <limits.h> | |
3011 | #else | |
3012 | # include <assert.h> | |
3013 | #endif | |
3014 | Syntax error | |
3015 | _ACEOF | |
3016 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3017 | ||
3018 | else | |
3019 | # Broken: fails on valid input. | |
3020 | continue | |
04e7fb4d | 3021 | fi |
cbddf2cb IJ |
3022 | rm -f conftest.err conftest.i conftest.$ac_ext |
3023 | ||
3024 | # OK, works on sane cases. Now check whether nonexistent headers | |
3025 | # can be detected and how. | |
3026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3027 | /* end confdefs.h. */ | |
3028 | #include <ac_nonexistent.h> | |
3029 | _ACEOF | |
3030 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3031 | # Broken: success on invalid input. | |
3032 | continue | |
04e7fb4d | 3033 | else |
cbddf2cb IJ |
3034 | # Passes both tests. |
3035 | ac_preproc_ok=: | |
3036 | break | |
04e7fb4d | 3037 | fi |
cbddf2cb IJ |
3038 | rm -f conftest.err conftest.i conftest.$ac_ext |
3039 | ||
3040 | done | |
3041 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3042 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3043 | if $ac_preproc_ok; then : | |
04e7fb4d | 3044 | |
cbddf2cb IJ |
3045 | else |
3046 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3047 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3048 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3049 | See \`config.log' for more details" "$LINENO" 5; } | |
3050 | fi | |
3051 | ||
3052 | ac_ext=c | |
3053 | ac_cpp='$CPP $CPPFLAGS' | |
3054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3057 | ||
3058 | if test -n "$ac_tool_prefix"; then | |
3059 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3060 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3062 | $as_echo_n "checking for $ac_word... " >&6; } | |
3063 | if ${ac_cv_prog_RANLIB+:} false; then : | |
3064 | $as_echo_n "(cached) " >&6 | |
9579019a | 3065 | else |
3066 | if test -n "$RANLIB"; then | |
3067 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3068 | else | |
cbddf2cb IJ |
3069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3070 | for as_dir in $PATH | |
3071 | do | |
3072 | IFS=$as_save_IFS | |
3073 | test -z "$as_dir" && as_dir=. | |
3074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3076 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3078 | break 2 | |
3079 | fi | |
3080 | done | |
9579019a | 3081 | done |
cbddf2cb IJ |
3082 | IFS=$as_save_IFS |
3083 | ||
9579019a | 3084 | fi |
3085 | fi | |
cbddf2cb | 3086 | RANLIB=$ac_cv_prog_RANLIB |
9579019a | 3087 | if test -n "$RANLIB"; then |
cbddf2cb IJ |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
3089 | $as_echo "$RANLIB" >&6; } | |
9579019a | 3090 | else |
cbddf2cb IJ |
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3092 | $as_echo "no" >&6; } | |
3093 | fi | |
3094 | ||
3095 | ||
3096 | fi | |
3097 | if test -z "$ac_cv_prog_RANLIB"; then | |
3098 | ac_ct_RANLIB=$RANLIB | |
3099 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3100 | set dummy ranlib; ac_word=$2 | |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3102 | $as_echo_n "checking for $ac_word... " >&6; } | |
3103 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
3104 | $as_echo_n "(cached) " >&6 | |
3105 | else | |
3106 | if test -n "$ac_ct_RANLIB"; then | |
3107 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3108 | else | |
3109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3110 | for as_dir in $PATH | |
3111 | do | |
3112 | IFS=$as_save_IFS | |
3113 | test -z "$as_dir" && as_dir=. | |
3114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3116 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3118 | break 2 | |
3119 | fi | |
3120 | done | |
3121 | done | |
3122 | IFS=$as_save_IFS | |
3123 | ||
3124 | fi | |
3125 | fi | |
3126 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3127 | if test -n "$ac_ct_RANLIB"; then | |
3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3129 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3130 | else | |
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3132 | $as_echo "no" >&6; } | |
3133 | fi | |
3134 | ||
3135 | if test "x$ac_ct_RANLIB" = x; then | |
3136 | RANLIB=":" | |
3137 | else | |
3138 | case $cross_compiling:$ac_tool_warned in | |
3139 | yes:) | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3141 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3142 | ac_tool_warned=yes ;; | |
3143 | esac | |
3144 | RANLIB=$ac_ct_RANLIB | |
3145 | fi | |
3146 | else | |
3147 | RANLIB="$ac_cv_prog_RANLIB" | |
9579019a | 3148 | fi |
3149 | ||
a0c76eee | 3150 | ac_aux_dir= |
cbddf2cb IJ |
3151 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3152 | if test -f "$ac_dir/install-sh"; then | |
a0c76eee | 3153 | ac_aux_dir=$ac_dir |
3154 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3155 | break | |
cbddf2cb | 3156 | elif test -f "$ac_dir/install.sh"; then |
a0c76eee | 3157 | ac_aux_dir=$ac_dir |
3158 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3159 | break | |
cbddf2cb IJ |
3160 | elif test -f "$ac_dir/shtool"; then |
3161 | ac_aux_dir=$ac_dir | |
3162 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3163 | break | |
a0c76eee | 3164 | fi |
3165 | done | |
3166 | if test -z "$ac_aux_dir"; then | |
cbddf2cb | 3167 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0c76eee | 3168 | fi |
cbddf2cb IJ |
3169 | |
3170 | # These three variables are undocumented and unsupported, | |
3171 | # and are intended to be withdrawn in a future Autoconf release. | |
3172 | # They can cause serious problems if a builder's source tree is in a directory | |
3173 | # whose full name contains unusual characters. | |
3174 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3175 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3176 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3177 | ||
a0c76eee | 3178 | |
3179 | # Find a good install program. We prefer a C program (faster), | |
3180 | # so one script is as good as another. But avoid the broken or | |
3181 | # incompatible versions: | |
3182 | # SysV /etc/install, /usr/sbin/install | |
3183 | # SunOS /usr/etc/install | |
3184 | # IRIX /sbin/install | |
3185 | # AIX /bin/install | |
cbddf2cb | 3186 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
5a0be244 | 3187 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
a0c76eee | 3188 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3189 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
cbddf2cb | 3190 | # OS/2's system install, which has a completely different semantic |
a0c76eee | 3191 | # ./install, which can be erroneously created by make from ./install.sh. |
cbddf2cb IJ |
3192 | # Reject install programs that cannot install multiple files. |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3194 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
a0c76eee | 3195 | if test -z "$INSTALL"; then |
cbddf2cb IJ |
3196 | if ${ac_cv_path_install+:} false; then : |
3197 | $as_echo_n "(cached) " >&6 | |
a0c76eee | 3198 | else |
cbddf2cb IJ |
3199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3200 | for as_dir in $PATH | |
3201 | do | |
3202 | IFS=$as_save_IFS | |
3203 | test -z "$as_dir" && as_dir=. | |
a0c76eee | 3204 | # Account for people who put trailing slashes in PATH elements. |
cbddf2cb IJ |
3205 | case $as_dir/ in #(( |
3206 | ./ | .// | /[cC]/* | \ | |
3207 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3208 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3209 | /usr/ucb/* ) ;; | |
3210 | *) | |
3211 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3212 | # Don't use installbsd from OSF since it installs stuff as root | |
3213 | # by default. | |
3214 | for ac_prog in ginstall scoinst install; do | |
3215 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3216 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
a0c76eee | 3217 | if test $ac_prog = install && |
cbddf2cb | 3218 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
a0c76eee | 3219 | # AIX install. It has an incompatible calling convention. |
a0c76eee | 3220 | : |
cbddf2cb IJ |
3221 | elif test $ac_prog = install && |
3222 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3223 | # program-specific install script used by HP pwplus--don't use. | |
3224 | : | |
a0c76eee | 3225 | else |
cbddf2cb IJ |
3226 | rm -rf conftest.one conftest.two conftest.dir |
3227 | echo one > conftest.one | |
3228 | echo two > conftest.two | |
3229 | mkdir conftest.dir | |
3230 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3231 | test -s conftest.one && test -s conftest.two && | |
3232 | test -s conftest.dir/conftest.one && | |
3233 | test -s conftest.dir/conftest.two | |
3234 | then | |
3235 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3236 | break 3 | |
3237 | fi | |
a0c76eee | 3238 | fi |
3239 | fi | |
3240 | done | |
cbddf2cb IJ |
3241 | done |
3242 | ;; | |
3243 | esac | |
3244 | ||
a0c76eee | 3245 | done |
cbddf2cb IJ |
3246 | IFS=$as_save_IFS |
3247 | ||
3248 | rm -rf conftest.one conftest.two conftest.dir | |
a0c76eee | 3249 | |
3250 | fi | |
3251 | if test "${ac_cv_path_install+set}" = set; then | |
cbddf2cb | 3252 | INSTALL=$ac_cv_path_install |
a0c76eee | 3253 | else |
cbddf2cb IJ |
3254 | # As a last resort, use the slow shell script. Don't cache a |
3255 | # value for INSTALL within a source directory, because that will | |
a0c76eee | 3256 | # break other packages using the cache if that directory is |
cbddf2cb IJ |
3257 | # removed, or if the value is a relative name. |
3258 | INSTALL=$ac_install_sh | |
a0c76eee | 3259 | fi |
3260 | fi | |
cbddf2cb IJ |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3262 | $as_echo "$INSTALL" >&6; } | |
a0c76eee | 3263 | |
3264 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3265 | # It thinks the first close brace ends the variable substitution. | |
3266 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3267 | ||
cbddf2cb | 3268 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5a0be244 | 3269 | |
a0c76eee | 3270 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3271 | ||
8b5269f2 | 3272 | |
cbddf2cb | 3273 | |
620c146d | 3274 | for ac_func in poll |
cbddf2cb IJ |
3275 | do : |
3276 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
3277 | if test "x$ac_cv_func_poll" = xyes; then : | |
3278 | cat >>confdefs.h <<_ACEOF | |
3279 | #define HAVE_POLL 1 | |
3280 | _ACEOF | |
620c146d | 3281 | |
cbddf2cb IJ |
3282 | fi |
3283 | done | |
620c146d | 3284 | |
620c146d | 3285 | |
cbddf2cb IJ |
3286 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
3287 | if test "x$ac_cv_func_socket" = xyes; then : | |
3288 | ||
3289 | else | |
3290 | ||
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | |
3292 | $as_echo_n "checking for socket in -lsocket... " >&6; } | |
3293 | if ${ac_cv_lib_socket_socket+:} false; then : | |
3294 | $as_echo_n "(cached) " >&6 | |
620c146d | 3295 | else |
cbddf2cb IJ |
3296 | ac_check_lib_save_LIBS=$LIBS |
3297 | LIBS="-lsocket $LIBS" | |
3298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3299 | /* end confdefs.h. */ | |
3300 | ||
3301 | /* Override any GCC internal prototype to avoid an error. | |
3302 | Use char because int might match the return type of a GCC | |
3303 | builtin and then its argument prototype would still apply. */ | |
3304 | #ifdef __cplusplus | |
3305 | extern "C" | |
3306 | #endif | |
3307 | char socket (); | |
3308 | int | |
3309 | main () | |
3310 | { | |
3311 | return socket (); | |
3312 | ; | |
3313 | return 0; | |
3314 | } | |
3315 | _ACEOF | |
3316 | if ac_fn_c_try_link "$LINENO"; then : | |
3317 | ac_cv_lib_socket_socket=yes | |
3318 | else | |
3319 | ac_cv_lib_socket_socket=no | |
620c146d | 3320 | fi |
cbddf2cb IJ |
3321 | rm -f core conftest.err conftest.$ac_objext \ |
3322 | conftest$ac_exeext conftest.$ac_ext | |
3323 | LIBS=$ac_check_lib_save_LIBS | |
620c146d | 3324 | fi |
cbddf2cb IJ |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
3326 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | |
3327 | if test "x$ac_cv_lib_socket_socket" = xyes; then : | |
3328 | cat >>confdefs.h <<_ACEOF | |
3329 | #define HAVE_LIBSOCKET 1 | |
3330 | _ACEOF | |
3331 | ||
3332 | LIBS="-lsocket $LIBS" | |
620c146d | 3333 | |
620c146d | 3334 | else |
cbddf2cb IJ |
3335 | |
3336 | as_fn_error $? "cannot find library function socket" "$LINENO" 5 | |
3337 | ||
620c146d | 3338 | fi |
620c146d | 3339 | |
8b5269f2 | 3340 | |
cbddf2cb | 3341 | fi |
8b5269f2 | 3342 | |
8b5269f2 | 3343 | |
8b5269f2 | 3344 | |
cbddf2cb IJ |
3345 | ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa" |
3346 | if test "x$ac_cv_func_inet_ntoa" = xyes; then : | |
3347 | ||
3348 | else | |
3349 | ||
3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5 | |
3351 | $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; } | |
3352 | if ${ac_cv_lib_nsl_inet_ntoa+:} false; then : | |
3353 | $as_echo_n "(cached) " >&6 | |
8b5269f2 | 3354 | else |
cbddf2cb IJ |
3355 | ac_check_lib_save_LIBS=$LIBS |
3356 | LIBS="-lnsl $LIBS" | |
3357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3358 | /* end confdefs.h. */ | |
3359 | ||
3360 | /* Override any GCC internal prototype to avoid an error. | |
3361 | Use char because int might match the return type of a GCC | |
3362 | builtin and then its argument prototype would still apply. */ | |
3363 | #ifdef __cplusplus | |
3364 | extern "C" | |
3365 | #endif | |
3366 | char inet_ntoa (); | |
3367 | int | |
3368 | main () | |
3369 | { | |
3370 | return inet_ntoa (); | |
3371 | ; | |
3372 | return 0; | |
3373 | } | |
3374 | _ACEOF | |
3375 | if ac_fn_c_try_link "$LINENO"; then : | |
3376 | ac_cv_lib_nsl_inet_ntoa=yes | |
3377 | else | |
3378 | ac_cv_lib_nsl_inet_ntoa=no | |
8b5269f2 | 3379 | fi |
cbddf2cb IJ |
3380 | rm -f core conftest.err conftest.$ac_objext \ |
3381 | conftest$ac_exeext conftest.$ac_ext | |
3382 | LIBS=$ac_check_lib_save_LIBS | |
8b5269f2 | 3383 | fi |
cbddf2cb IJ |
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5 |
3385 | $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; } | |
3386 | if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then : | |
3387 | cat >>confdefs.h <<_ACEOF | |
3388 | #define HAVE_LIBNSL 1 | |
3389 | _ACEOF | |
8b5269f2 | 3390 | |
cbddf2cb | 3391 | LIBS="-lnsl $LIBS" |
8b5269f2 | 3392 | |
eec1d9c8 | 3393 | else |
cbddf2cb IJ |
3394 | |
3395 | as_fn_error $? "cannot find library function inet_ntoa" "$LINENO" 5 | |
3396 | ||
eec1d9c8 | 3397 | fi |
cbddf2cb | 3398 | |
eec1d9c8 | 3399 | |
3400 | fi | |
eec1d9c8 | 3401 | |
cbddf2cb IJ |
3402 | |
3403 | ||
3404 | PROGS_IF_TSEARCH=adnsresfilter | |
3405 | ||
3406 | ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" | |
3407 | if test "x$ac_cv_func_tsearch" = xyes; then : | |
3408 | ||
3409 | PROGS_HAVE_TSEARCH=$PROGS_IF_TSEARCH | |
eec1d9c8 | 3410 | |
3411 | else | |
8b5269f2 | 3412 | |
cbddf2cb IJ |
3413 | PROGS_HAVE_TSEARCH=''; |
3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tsearch missing - not building client program(s) $PROGS_IF_TSEARCH" >&5 | |
3415 | $as_echo "$as_me: WARNING: tsearch missing - not building client program(s) $PROGS_IF_TSEARCH" >&2;} | |
8b5269f2 | 3416 | |
8b5269f2 | 3417 | fi |
3418 | ||
3419 | ||
cbddf2cb IJ |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INADDR_LOOPBACK" >&5 |
3421 | $as_echo_n "checking for INADDR_LOOPBACK... " >&6; } | |
3422 | if ${adns_cv_decl_inaddrloopback+:} false; then : | |
3423 | $as_echo_n "(cached) " >&6 | |
8b5269f2 | 3424 | else |
8b5269f2 | 3425 | |
cbddf2cb IJ |
3426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3427 | /* end confdefs.h. */ | |
8b5269f2 | 3428 | |
cbddf2cb IJ |
3429 | #include <sys/socket.h> |
3430 | #include <netinet/in.h> | |
3431 | #include <arpa/inet.h> | |
8b5269f2 | 3432 | |
cbddf2cb IJ |
3433 | int |
3434 | main () | |
3435 | { | |
3436 | ||
3437 | INADDR_LOOPBACK; | |
3438 | ||
3439 | ; | |
3440 | return 0; | |
3441 | } | |
3442 | _ACEOF | |
3443 | if ac_fn_c_try_compile "$LINENO"; then : | |
3444 | adns_cv_decl_inaddrloopback=yes | |
8b5269f2 | 3445 | else |
cbddf2cb | 3446 | adns_cv_decl_inaddrloopback=no |
8b5269f2 | 3447 | fi |
cbddf2cb | 3448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8b5269f2 | 3449 | fi |
3450 | ||
cbddf2cb IJ |
3451 | if test "$adns_cv_decl_inaddrloopback" = yes; then |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
3453 | $as_echo "found" >&6; } | |
8b5269f2 | 3454 | else |
cbddf2cb IJ |
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not in standard headers, urgh..." >&5 |
3456 | $as_echo "not in standard headers, urgh..." >&6; } | |
8b5269f2 | 3457 | |
cbddf2cb IJ |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3459 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3460 | if ${ac_cv_path_GREP+:} false; then : | |
3461 | $as_echo_n "(cached) " >&6 | |
8b5269f2 | 3462 | else |
cbddf2cb IJ |
3463 | if test -z "$GREP"; then |
3464 | ac_path_GREP_found=false | |
3465 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3467 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3468 | do | |
3469 | IFS=$as_save_IFS | |
3470 | test -z "$as_dir" && as_dir=. | |
3471 | for ac_prog in grep ggrep; do | |
3472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3473 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3474 | as_fn_executable_p "$ac_path_GREP" || continue | |
3475 | # Check for GNU ac_path_GREP and select it if it is found. | |
3476 | # Check for GNU $ac_path_GREP | |
3477 | case `"$ac_path_GREP" --version 2>&1` in | |
3478 | *GNU*) | |
3479 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3480 | *) | |
3481 | ac_count=0 | |
3482 | $as_echo_n 0123456789 >"conftest.in" | |
3483 | while : | |
3484 | do | |
3485 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3486 | mv "conftest.tmp" "conftest.in" | |
3487 | cp "conftest.in" "conftest.nl" | |
3488 | $as_echo 'GREP' >> "conftest.nl" | |
3489 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3490 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3491 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3492 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3493 | # Best one so far, save it but keep looking for a better one | |
3494 | ac_cv_path_GREP="$ac_path_GREP" | |
3495 | ac_path_GREP_max=$ac_count | |
3496 | fi | |
3497 | # 10*(2^10) chars as input seems more than enough | |
3498 | test $ac_count -gt 10 && break | |
3499 | done | |
3500 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3501 | esac | |
3502 | ||
3503 | $ac_path_GREP_found && break 3 | |
3504 | done | |
3505 | done | |
3506 | done | |
3507 | IFS=$as_save_IFS | |
3508 | if test -z "$ac_cv_path_GREP"; then | |
3509 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3510 | fi | |
3511 | else | |
3512 | ac_cv_path_GREP=$GREP | |
8b5269f2 | 3513 | fi |
8b5269f2 | 3514 | |
3515 | fi | |
cbddf2cb IJ |
3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3517 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3518 | GREP="$ac_cv_path_GREP" | |
8b5269f2 | 3519 | |
8b5269f2 | 3520 | |
cbddf2cb IJ |
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3522 | $as_echo_n "checking for egrep... " >&6; } | |
3523 | if ${ac_cv_path_EGREP+:} false; then : | |
3524 | $as_echo_n "(cached) " >&6 | |
8b5269f2 | 3525 | else |
cbddf2cb IJ |
3526 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3527 | then ac_cv_path_EGREP="$GREP -E" | |
3528 | else | |
3529 | if test -z "$EGREP"; then | |
3530 | ac_path_EGREP_found=false | |
3531 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3533 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3534 | do | |
3535 | IFS=$as_save_IFS | |
3536 | test -z "$as_dir" && as_dir=. | |
3537 | for ac_prog in egrep; do | |
3538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3539 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3540 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3541 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3542 | # Check for GNU $ac_path_EGREP | |
3543 | case `"$ac_path_EGREP" --version 2>&1` in | |
3544 | *GNU*) | |
3545 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3546 | *) | |
3547 | ac_count=0 | |
3548 | $as_echo_n 0123456789 >"conftest.in" | |
3549 | while : | |
3550 | do | |
3551 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3552 | mv "conftest.tmp" "conftest.in" | |
3553 | cp "conftest.in" "conftest.nl" | |
3554 | $as_echo 'EGREP' >> "conftest.nl" | |
3555 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3556 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3557 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3558 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3559 | # Best one so far, save it but keep looking for a better one | |
3560 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3561 | ac_path_EGREP_max=$ac_count | |
3562 | fi | |
3563 | # 10*(2^10) chars as input seems more than enough | |
3564 | test $ac_count -gt 10 && break | |
3565 | done | |
3566 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3567 | esac | |
8b5269f2 | 3568 | |
cbddf2cb IJ |
3569 | $ac_path_EGREP_found && break 3 |
3570 | done | |
3571 | done | |
3572 | done | |
3573 | IFS=$as_save_IFS | |
3574 | if test -z "$ac_cv_path_EGREP"; then | |
3575 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3576 | fi | |
3577 | else | |
3578 | ac_cv_path_EGREP=$EGREP | |
8b5269f2 | 3579 | fi |
3580 | ||
cbddf2cb | 3581 | fi |
8b5269f2 | 3582 | fi |
cbddf2cb IJ |
3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3584 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3585 | EGREP="$ac_cv_path_EGREP" | |
8b5269f2 | 3586 | |
3587 | ||
cbddf2cb IJ |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3589 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3590 | if ${ac_cv_header_stdc+:} false; then : | |
3591 | $as_echo_n "(cached) " >&6 | |
9a09fa18 | 3592 | else |
cbddf2cb IJ |
3593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3594 | /* end confdefs.h. */ | |
3595 | #include <stdlib.h> | |
3596 | #include <stdarg.h> | |
3597 | #include <string.h> | |
3598 | #include <float.h> | |
3599 | ||
3600 | int | |
3601 | main () | |
3602 | { | |
3603 | ||
3604 | ; | |
3605 | return 0; | |
3606 | } | |
3607 | _ACEOF | |
3608 | if ac_fn_c_try_compile "$LINENO"; then : | |
3609 | ac_cv_header_stdc=yes | |
3610 | else | |
3611 | ac_cv_header_stdc=no | |
3612 | fi | |
3613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9a09fa18 | 3614 | |
cbddf2cb IJ |
3615 | if test $ac_cv_header_stdc = yes; then |
3616 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3618 | /* end confdefs.h. */ | |
3619 | #include <string.h> | |
9a09fa18 | 3620 | |
cbddf2cb IJ |
3621 | _ACEOF |
3622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3623 | $EGREP "memchr" >/dev/null 2>&1; then : | |
9a09fa18 | 3624 | |
9a09fa18 | 3625 | else |
cbddf2cb | 3626 | ac_cv_header_stdc=no |
9a09fa18 | 3627 | fi |
3628 | rm -f conftest* | |
9a09fa18 | 3629 | |
cbddf2cb | 3630 | fi |
9a09fa18 | 3631 | |
cbddf2cb IJ |
3632 | if test $ac_cv_header_stdc = yes; then |
3633 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3635 | /* end confdefs.h. */ | |
3636 | #include <stdlib.h> | |
9a09fa18 | 3637 | |
cbddf2cb IJ |
3638 | _ACEOF |
3639 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3640 | $EGREP "free" >/dev/null 2>&1; then : | |
9a09fa18 | 3641 | |
cbddf2cb IJ |
3642 | else |
3643 | ac_cv_header_stdc=no | |
9a09fa18 | 3644 | fi |
cbddf2cb | 3645 | rm -f conftest* |
9a09fa18 | 3646 | |
cbddf2cb | 3647 | fi |
9a09fa18 | 3648 | |
cbddf2cb IJ |
3649 | if test $ac_cv_header_stdc = yes; then |
3650 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3651 | if test "$cross_compiling" = yes; then : | |
3652 | : | |
04e7fb4d | 3653 | else |
cbddf2cb IJ |
3654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3655 | /* end confdefs.h. */ | |
3656 | #include <ctype.h> | |
3657 | #include <stdlib.h> | |
3658 | #if ((' ' & 0x0FF) == 0x020) | |
3659 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3660 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3661 | #else | |
3662 | # define ISLOWER(c) \ | |
3663 | (('a' <= (c) && (c) <= 'i') \ | |
3664 | || ('j' <= (c) && (c) <= 'r') \ | |
3665 | || ('s' <= (c) && (c) <= 'z')) | |
3666 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3667 | #endif | |
04e7fb4d | 3668 | |
cbddf2cb IJ |
3669 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3670 | int | |
3671 | main () | |
3672 | { | |
3673 | int i; | |
3674 | for (i = 0; i < 256; i++) | |
3675 | if (XOR (islower (i), ISLOWER (i)) | |
3676 | || toupper (i) != TOUPPER (i)) | |
3677 | return 2; | |
3678 | return 0; | |
3679 | } | |
3680 | _ACEOF | |
3681 | if ac_fn_c_try_run "$LINENO"; then : | |
04e7fb4d | 3682 | |
04e7fb4d | 3683 | else |
cbddf2cb | 3684 | ac_cv_header_stdc=no |
04e7fb4d | 3685 | fi |
cbddf2cb IJ |
3686 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3687 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
04e7fb4d | 3688 | fi |
3689 | ||
04e7fb4d | 3690 | fi |
04e7fb4d | 3691 | fi |
cbddf2cb IJ |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3693 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3694 | if test $ac_cv_header_stdc = yes; then | |
04e7fb4d | 3695 | |
cbddf2cb | 3696 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
04e7fb4d | 3697 | |
04e7fb4d | 3698 | fi |
3699 | ||
cbddf2cb IJ |
3700 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3701 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3702 | inttypes.h stdint.h unistd.h | |
3703 | do : | |
3704 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3705 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3706 | " | |
3707 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3708 | cat >>confdefs.h <<_ACEOF | |
3709 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3710 | _ACEOF | |
3711 | ||
04e7fb4d | 3712 | fi |
3713 | ||
cbddf2cb | 3714 | done |
8b5269f2 | 3715 | |
8b5269f2 | 3716 | |
cbddf2cb IJ |
3717 | ac_fn_c_check_header_mongrel "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default" |
3718 | if test "x$ac_cv_header_rpc_types_h" = xyes; then : | |
3719 | ||
3720 | $as_echo "#define HAVEUSE_RPCTYPES_H 1" >>confdefs.h | |
8b5269f2 | 3721 | |
8b5269f2 | 3722 | |
8b5269f2 | 3723 | else |
cbddf2cb IJ |
3724 | |
3725 | as_fn_error $? "cannot find INADDR_LOOPBACK or rpc/types.h" "$LINENO" 5 | |
3726 | ||
8b5269f2 | 3727 | fi |
cbddf2cb IJ |
3728 | |
3729 | ||
8b5269f2 | 3730 | fi |
3731 | ||
cbddf2cb IJ |
3732 | |
3733 | ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" | |
3734 | if test "x$ac_cv_func_inet_aton" = xyes; then : | |
3735 | ||
8b5269f2 | 3736 | else |
8b5269f2 | 3737 | |
cbddf2cb IJ |
3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 |
3739 | $as_echo_n "checking for inet_aton in -lresolv... " >&6; } | |
3740 | if ${ac_cv_lib_resolv_inet_aton+:} false; then : | |
3741 | $as_echo_n "(cached) " >&6 | |
8b5269f2 | 3742 | else |
cbddf2cb | 3743 | ac_check_lib_save_LIBS=$LIBS |
8b5269f2 | 3744 | LIBS="-lresolv $LIBS" |
cbddf2cb IJ |
3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3746 | /* end confdefs.h. */ | |
3747 | ||
3748 | /* Override any GCC internal prototype to avoid an error. | |
3749 | Use char because int might match the return type of a GCC | |
3750 | builtin and then its argument prototype would still apply. */ | |
3751 | #ifdef __cplusplus | |
3752 | extern "C" | |
3753 | #endif | |
3754 | char inet_aton (); | |
3755 | int | |
3756 | main () | |
3757 | { | |
3758 | return inet_aton (); | |
3759 | ; | |
3760 | return 0; | |
3761 | } | |
3762 | _ACEOF | |
3763 | if ac_fn_c_try_link "$LINENO"; then : | |
3764 | ac_cv_lib_resolv_inet_aton=yes | |
3765 | else | |
3766 | ac_cv_lib_resolv_inet_aton=no | |
8b5269f2 | 3767 | fi |
cbddf2cb IJ |
3768 | rm -f core conftest.err conftest.$ac_objext \ |
3769 | conftest$ac_exeext conftest.$ac_ext | |
3770 | LIBS=$ac_check_lib_save_LIBS | |
8b5269f2 | 3771 | fi |
cbddf2cb IJ |
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 |
3773 | $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } | |
3774 | if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : | |
3775 | ||
8b5269f2 | 3776 | LIBS="-lresolv $LIBS"; |
cbddf2cb IJ |
3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: inet_aton is in libresolv, urgh. Must use -lresolv." >&5 |
3778 | $as_echo "$as_me: WARNING: inet_aton is in libresolv, urgh. Must use -lresolv." >&2;} | |
8b5269f2 | 3779 | |
3780 | else | |
8b5269f2 | 3781 | |
cbddf2cb IJ |
3782 | as_fn_error $? "cannot find library function inet_aton" "$LINENO" 5 |
3783 | ||
8b5269f2 | 3784 | fi |
3785 | ||
cbddf2cb | 3786 | |
8b5269f2 | 3787 | fi |
3788 | ||
3789 | ||
3790 | ||
3791 | ||
cbddf2cb IJ |
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking inlines" >&5 |
3793 | $as_echo_n "checking inlines... " >&6; } | |
3794 | if ${dpkg_cv_c_inline+:} false; then : | |
3795 | $as_echo_n "(cached) " >&6 | |
5a0be244 | 3796 | else |
5a0be244 | 3797 | |
cbddf2cb IJ |
3798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3799 | /* end confdefs.h. */ | |
3800 | ||
3801 | int | |
3802 | main () | |
3803 | { | |
5a0be244 | 3804 | } inline int foo (int x) { |
cbddf2cb IJ |
3805 | ; |
3806 | return 0; | |
3807 | } | |
3808 | _ACEOF | |
3809 | if ac_fn_c_try_compile "$LINENO"; then : | |
5a0be244 | 3810 | dpkg_cv_c_inline=yes |
3811 | else | |
5a0be244 | 3812 | dpkg_cv_c_inline=no |
3813 | fi | |
cbddf2cb IJ |
3814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3815 | ||
5a0be244 | 3816 | fi |
3817 | ||
3818 | if test "x$dpkg_cv_c_inline" = xyes; then | |
3819 | true | |
cbddf2cb IJ |
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3821 | $as_echo "yes" >&6; } | |
3822 | $as_echo "#define HAVE_INLINE 1" >>confdefs.h | |
5a0be244 | 3823 | |
3824 | else | |
3825 | true | |
cbddf2cb IJ |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3827 | $as_echo "no" >&6; } | |
5a0be244 | 3828 | fi |
3829 | ||
3830 | ||
3831 | ||
52888ec6 | 3832 | |
3833 | if test "${GCC-no}" = yes; then | |
3834 | WARNS="-Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith" | |
3835 | saved_cflags="$CFLAGS" | |
3836 | CFLAGS="$CFLAGS -Wno-pointer-sign" | |
cbddf2cb IJ |
3837 | |
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wno-pointer-sign" >&5 | |
3839 | $as_echo_n "checking -Wno-pointer-sign... " >&6; } | |
3840 | if ${adns_cv_c_wnoptrsign+:} false; then : | |
3841 | $as_echo_n "(cached) " >&6 | |
3842 | else | |
3843 | ||
3844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3845 | /* end confdefs.h. */ | |
3846 | ||
3847 | int | |
3848 | main () | |
3849 | { | |
3850 | ||
3851 | ; | |
3852 | return 0; | |
3853 | } | |
3854 | _ACEOF | |
3855 | if ac_fn_c_try_compile "$LINENO"; then : | |
52888ec6 | 3856 | adns_cv_c_wnoptrsign=yes |
3857 | else | |
52888ec6 | 3858 | adns_cv_c_wnoptrsign=no |
3859 | fi | |
cbddf2cb IJ |
3860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3861 | ||
52888ec6 | 3862 | fi |
3863 | ||
3864 | if test "x$adns_cv_c_wnoptrsign" = xyes; then | |
3865 | true | |
cbddf2cb IJ |
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3867 | $as_echo "yes" >&6; } | |
52888ec6 | 3868 | WARNS="$WARNS -Wno-pointer-sign" |
3869 | else | |
3870 | true | |
cbddf2cb IJ |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3872 | $as_echo "no" >&6; } | |
52888ec6 | 3873 | fi |
3874 | ||
3875 | CFLAGS="$saved_cflags" | |
3876 | else | |
3877 | WARNS= | |
3878 | fi | |
3879 | ||
3880 | ||
cbddf2cb IJ |
3881 | |
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5 | |
3883 | $as_echo_n "checking __attribute__((,,))... " >&6; } | |
3884 | if ${adns_cv_c_attribute_supported+:} false; then : | |
3885 | $as_echo_n "(cached) " >&6 | |
11b35193 | 3886 | else |
11b35193 | 3887 | |
cbddf2cb IJ |
3888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3889 | /* end confdefs.h. */ | |
3890 | ||
3891 | int | |
3892 | main () | |
3893 | { | |
11b35193 | 3894 | extern int testfunction(int x) __attribute__((,,)) |
cbddf2cb IJ |
3895 | ; |
3896 | return 0; | |
3897 | } | |
3898 | _ACEOF | |
3899 | if ac_fn_c_try_compile "$LINENO"; then : | |
11b35193 | 3900 | adns_cv_c_attribute_supported=yes |
3901 | else | |
11b35193 | 3902 | adns_cv_c_attribute_supported=no |
3903 | fi | |
cbddf2cb IJ |
3904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3905 | ||
11b35193 | 3906 | fi |
3907 | ||
3908 | if test "x$adns_cv_c_attribute_supported" = xyes; then | |
3909 | true | |
cbddf2cb IJ |
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3911 | $as_echo "yes" >&6; } | |
3912 | $as_echo "#define HAVE_GNUC25_ATTRIB 1" >>confdefs.h | |
3913 | ||
3914 | ||
3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((noreturn))" >&5 | |
3916 | $as_echo_n "checking __attribute__((noreturn))... " >&6; } | |
3917 | if ${adns_cv_c_attribute_noreturn+:} false; then : | |
3918 | $as_echo_n "(cached) " >&6 | |
3919 | else | |
3920 | ||
3921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3922 | /* end confdefs.h. */ | |
3923 | ||
3924 | int | |
3925 | main () | |
3926 | { | |
11b35193 | 3927 | extern int testfunction(int x) __attribute__((noreturn)) |
cbddf2cb IJ |
3928 | ; |
3929 | return 0; | |
3930 | } | |
3931 | _ACEOF | |
3932 | if ac_fn_c_try_compile "$LINENO"; then : | |
11b35193 | 3933 | adns_cv_c_attribute_noreturn=yes |
3934 | else | |
11b35193 | 3935 | adns_cv_c_attribute_noreturn=no |
3936 | fi | |
cbddf2cb IJ |
3937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3938 | ||
11b35193 | 3939 | fi |
3940 | ||
3941 | if test "x$adns_cv_c_attribute_noreturn" = xyes; then | |
3942 | true | |
cbddf2cb IJ |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3944 | $as_echo "yes" >&6; } | |
3945 | $as_echo "#define HAVE_GNUC25_NORETURN 1" >>confdefs.h | |
11b35193 | 3946 | |
3947 | else | |
3948 | true | |
cbddf2cb IJ |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3950 | $as_echo "no" >&6; } | |
11b35193 | 3951 | fi |
3952 | ||
cbddf2cb IJ |
3953 | |
3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((const))" >&5 | |
3955 | $as_echo_n "checking __attribute__((const))... " >&6; } | |
3956 | if ${adns_cv_c_attribute_const+:} false; then : | |
3957 | $as_echo_n "(cached) " >&6 | |
11b35193 | 3958 | else |
11b35193 | 3959 | |
cbddf2cb IJ |
3960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3961 | /* end confdefs.h. */ | |
3962 | ||
3963 | int | |
3964 | main () | |
3965 | { | |
11b35193 | 3966 | extern int testfunction(int x) __attribute__((const)) |
cbddf2cb IJ |
3967 | ; |
3968 | return 0; | |
3969 | } | |
3970 | _ACEOF | |
3971 | if ac_fn_c_try_compile "$LINENO"; then : | |
11b35193 | 3972 | adns_cv_c_attribute_const=yes |
3973 | else | |
11b35193 | 3974 | adns_cv_c_attribute_const=no |
3975 | fi | |
cbddf2cb IJ |
3976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3977 | ||
11b35193 | 3978 | fi |
3979 | ||
3980 | if test "x$adns_cv_c_attribute_const" = xyes; then | |
3981 | true | |
cbddf2cb IJ |
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3983 | $as_echo "yes" >&6; } | |
3984 | $as_echo "#define HAVE_GNUC25_CONST 1" >>confdefs.h | |
11b35193 | 3985 | |
3986 | else | |
3987 | true | |
cbddf2cb IJ |
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3989 | $as_echo "no" >&6; } | |
11b35193 | 3990 | fi |
3991 | ||
cbddf2cb IJ |
3992 | |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((format...))" >&5 | |
3994 | $as_echo_n "checking __attribute__((format...))... " >&6; } | |
3995 | if ${adns_cv_attribute_format+:} false; then : | |
3996 | $as_echo_n "(cached) " >&6 | |
11b35193 | 3997 | else |
11b35193 | 3998 | |
cbddf2cb IJ |
3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4000 | /* end confdefs.h. */ | |
4001 | ||
4002 | int | |
4003 | main () | |
4004 | { | |
11b35193 | 4005 | extern int testfunction(char *y, ...) __attribute__((format(printf,1,2))) |
cbddf2cb IJ |
4006 | ; |
4007 | return 0; | |
4008 | } | |
4009 | _ACEOF | |
4010 | if ac_fn_c_try_compile "$LINENO"; then : | |
11b35193 | 4011 | adns_cv_attribute_format=yes |
4012 | else | |
11b35193 | 4013 | adns_cv_attribute_format=no |
4014 | fi | |
cbddf2cb IJ |
4015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4016 | ||
11b35193 | 4017 | fi |
4018 | ||
4019 | if test "x$adns_cv_attribute_format" = xyes; then | |
4020 | true | |
cbddf2cb IJ |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4022 | $as_echo "yes" >&6; } | |
4023 | $as_echo "#define HAVE_GNUC25_PRINTFFORMAT 1" >>confdefs.h | |
11b35193 | 4024 | |
4025 | else | |
4026 | true | |
cbddf2cb IJ |
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4028 | $as_echo "no" >&6; } | |
11b35193 | 4029 | fi |
4030 | ||
4031 | else | |
4032 | true | |
cbddf2cb IJ |
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4034 | $as_echo "no" >&6; } | |
11b35193 | 4035 | fi |
4036 | ||
4037 | ||
4038 | ||
4039 | ||
4040 | ||
11b35193 | 4041 | |
4042 | ||
4043 | ||
4044 | ||
4045 | ||
9310ea4d | 4046 | |
4047 | ||
9310ea4d | 4048 | SHLIBFORLINK='libadns.so' |
4049 | SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)' | |
4050 | SHLIBFILE='$(SHLIBSONAME).$(MINOR)' | |
11b35193 | 4051 | |
696e536a | 4052 | SHLIBCC='$(CC) $(CFLAGS) -fpic' |
4053 | MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o' | |
4054 | MKSHLIB_2='' | |
4055 | MKSHLIB_3='-lc' | |
4056 | ||
b99e8e9a | 4057 | ac_config_files="$ac_config_files common.make settings.make Makefile src/Makefile client/Makefile dynamic/Makefile regress/Makefile" |
cbddf2cb IJ |
4058 | |
4059 | cat >confcache <<\_ACEOF | |
11b35193 | 4060 | # This file is a shell script that caches the results of configure |
4061 | # tests run on this system so they can be shared between configure | |
cbddf2cb IJ |
4062 | # scripts and configure runs, see configure's option --config-cache. |
4063 | # It is not useful on other systems. If it contains results you don't | |
4064 | # want to keep, you may remove or edit it. | |
11b35193 | 4065 | # |
cbddf2cb IJ |
4066 | # config.status only pays attention to the cache file if you give it |
4067 | # the --recheck option to rerun configure. | |
11b35193 | 4068 | # |
cbddf2cb IJ |
4069 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4070 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4071 | # following values. | |
4072 | ||
4073 | _ACEOF | |
4074 | ||
11b35193 | 4075 | # The following way of writing the cache mishandles newlines in values, |
4076 | # but we know of no workaround that is simple, portable, and efficient. | |
cbddf2cb | 4077 | # So, we kill variables containing newlines. |
11b35193 | 4078 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4079 | # and sets the high bit in the cache file unless we assign to the vars. | |
cbddf2cb IJ |
4080 | ( |
4081 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
4082 | eval ac_val=\$$ac_var | |
4083 | case $ac_val in #( | |
4084 | *${as_nl}*) | |
4085 | case $ac_var in #( | |
4086 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4087 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4088 | esac | |
4089 | case $ac_var in #( | |
4090 | _ | IFS | as_nl) ;; #( | |
4091 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
4092 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4093 | esac ;; | |
4094 | esac | |
4095 | done | |
4096 | ||
4097 | (set) 2>&1 | | |
4098 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
4099 | *${as_nl}ac_space=\ *) | |
4100 | # `set' does not quote correctly, so add quotes: double-quote | |
4101 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4102 | sed -n \ | |
4103 | "s/'/'\\\\''/g; | |
4104 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4105 | ;; #( | |
4106 | *) | |
4107 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4108 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
4109 | ;; | |
4110 | esac | | |
4111 | sort | |
4112 | ) | | |
4113 | sed ' | |
4114 | /^ac_cv_env_/b end | |
4115 | t clear | |
4116 | :clear | |
4117 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4118 | t end | |
4119 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4120 | :end' >>confcache | |
4121 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
4122 | if test -w "$cache_file"; then | |
4123 | if test "x$cache_file" != "x/dev/null"; then | |
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
4125 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
4126 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
4127 | cat confcache >"$cache_file" | |
4128 | else | |
4129 | case $cache_file in #( | |
4130 | */* | ?:*) | |
4131 | mv -f confcache "$cache_file"$$ && | |
4132 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
4133 | *) | |
4134 | mv -f confcache "$cache_file" ;; | |
4135 | esac | |
4136 | fi | |
4137 | fi | |
11b35193 | 4138 | else |
cbddf2cb IJ |
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4140 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
11b35193 | 4141 | fi |
4142 | fi | |
4143 | rm -f confcache | |
4144 | ||
11b35193 | 4145 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4146 | # Let make expand exec_prefix. | |
4147 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4148 | ||
cbddf2cb | 4149 | DEFS=-DHAVE_CONFIG_H |
11b35193 | 4150 | |
cbddf2cb IJ |
4151 | ac_libobjs= |
4152 | ac_ltlibobjs= | |
4153 | U= | |
4154 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
4155 | # 1. Remove the extension, and $U if already installed. | |
4156 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
4157 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
4158 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
4159 | # will be set to the directory where LIBOBJS objects are built. | |
4160 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
4161 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4162 | done | |
4163 | LIBOBJS=$ac_libobjs | |
11b35193 | 4164 | |
cbddf2cb | 4165 | LTLIBOBJS=$ac_ltlibobjs |
11b35193 | 4166 | |
11b35193 | 4167 | |
cbddf2cb IJ |
4168 | |
4169 | : "${CONFIG_STATUS=./config.status}" | |
4170 | ac_write_fail=0 | |
4171 | ac_clean_files_save=$ac_clean_files | |
4172 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
4174 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4175 | as_write_fail=0 | |
4176 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4177 | #! $SHELL | |
4178 | # Generated by $as_me. | |
11b35193 | 4179 | # Run this file to recreate the current configuration. |
11b35193 | 4180 | # Compiler output produced by configure, useful for debugging |
cbddf2cb IJ |
4181 | # configure, is in config.log if it exists. |
4182 | ||
4183 | debug=false | |
4184 | ac_cs_recheck=false | |
4185 | ac_cs_silent=false | |
4186 | ||
4187 | SHELL=\${CONFIG_SHELL-$SHELL} | |
4188 | export SHELL | |
4189 | _ASEOF | |
4190 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
4191 | ## -------------------- ## | |
4192 | ## M4sh Initialization. ## | |
4193 | ## -------------------- ## | |
4194 | ||
4195 | # Be more Bourne compatible | |
4196 | DUALCASE=1; export DUALCASE # for MKS sh | |
4197 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4198 | emulate sh | |
4199 | NULLCMD=: | |
4200 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
4201 | # is contrary to our usage. Disable this feature. | |
4202 | alias -g '${1+"$@"}'='"$@"' | |
4203 | setopt NO_GLOB_SUBST | |
4204 | else | |
4205 | case `(set -o) 2>/dev/null` in #( | |
4206 | *posix*) : | |
4207 | set -o posix ;; #( | |
4208 | *) : | |
4209 | ;; | |
4210 | esac | |
4211 | fi | |
11b35193 | 4212 | |
cbddf2cb IJ |
4213 | |
4214 | as_nl=' | |
4215 | ' | |
4216 | export as_nl | |
4217 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4218 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4219 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4220 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4221 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4222 | # but without wasting forks for bash or zsh. | |
4223 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4224 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4225 | as_echo='print -r --' | |
4226 | as_echo_n='print -rn --' | |
4227 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4228 | as_echo='printf %s\n' | |
4229 | as_echo_n='printf %s' | |
4230 | else | |
4231 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
4232 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4233 | as_echo_n='/usr/ucb/echo -n' | |
4234 | else | |
4235 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4236 | as_echo_n_body='eval | |
4237 | arg=$1; | |
4238 | case $arg in #( | |
4239 | *"$as_nl"*) | |
4240 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4241 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4242 | esac; | |
4243 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4244 | ' | |
4245 | export as_echo_n_body | |
4246 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4247 | fi | |
4248 | export as_echo_body | |
4249 | as_echo='sh -c $as_echo_body as_echo' | |
4250 | fi | |
4251 | ||
4252 | # The user is always right. | |
4253 | if test "${PATH_SEPARATOR+set}" != set; then | |
4254 | PATH_SEPARATOR=: | |
4255 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
4256 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
4257 | PATH_SEPARATOR=';' | |
4258 | } | |
4259 | fi | |
4260 | ||
4261 | ||
4262 | # IFS | |
4263 | # We need space, tab and new line, in precisely that order. Quoting is | |
4264 | # there to prevent editors from complaining about space-tab. | |
4265 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4266 | # splitting by setting IFS to empty value.) | |
4267 | IFS=" "" $as_nl" | |
4268 | ||
4269 | # Find who we are. Look in the path if we contain no directory separator. | |
4270 | as_myself= | |
4271 | case $0 in #(( | |
4272 | *[\\/]* ) as_myself=$0 ;; | |
4273 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4274 | for as_dir in $PATH | |
11b35193 | 4275 | do |
cbddf2cb IJ |
4276 | IFS=$as_save_IFS |
4277 | test -z "$as_dir" && as_dir=. | |
4278 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4279 | done | |
4280 | IFS=$as_save_IFS | |
4281 | ||
4282 | ;; | |
4283 | esac | |
4284 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4285 | # in which case we are not to be found in the path. | |
4286 | if test "x$as_myself" = x; then | |
4287 | as_myself=$0 | |
4288 | fi | |
4289 | if test ! -f "$as_myself"; then | |
4290 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4291 | exit 1 | |
4292 | fi | |
4293 | ||
4294 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4295 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4296 | # suppresses any "Segmentation fault" message there. '((' could | |
4297 | # trigger a bug in pdksh 5.2.14. | |
4298 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4299 | do eval test x\${$as_var+set} = xset \ | |
4300 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
11b35193 | 4301 | done |
cbddf2cb IJ |
4302 | PS1='$ ' |
4303 | PS2='> ' | |
4304 | PS4='+ ' | |
4305 | ||
4306 | # NLS nuisances. | |
4307 | LC_ALL=C | |
4308 | export LC_ALL | |
4309 | LANGUAGE=C | |
4310 | export LANGUAGE | |
4311 | ||
4312 | # CDPATH. | |
4313 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4314 | ||
4315 | ||
4316 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
4317 | # ---------------------------------------- | |
4318 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
4319 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4320 | # script with STATUS, using 1 if that was 0. | |
4321 | as_fn_error () | |
4322 | { | |
4323 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
4324 | if test "$4"; then | |
4325 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4326 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4327 | fi | |
4328 | $as_echo "$as_me: error: $2" >&2 | |
4329 | as_fn_exit $as_status | |
4330 | } # as_fn_error | |
4331 | ||
4332 | ||
4333 | # as_fn_set_status STATUS | |
4334 | # ----------------------- | |
4335 | # Set $? to STATUS, without forking. | |
4336 | as_fn_set_status () | |
4337 | { | |
4338 | return $1 | |
4339 | } # as_fn_set_status | |
4340 | ||
4341 | # as_fn_exit STATUS | |
4342 | # ----------------- | |
4343 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
4344 | as_fn_exit () | |
4345 | { | |
4346 | set +e | |
4347 | as_fn_set_status $1 | |
4348 | exit $1 | |
4349 | } # as_fn_exit | |
4350 | ||
4351 | # as_fn_unset VAR | |
4352 | # --------------- | |
4353 | # Portably unset VAR. | |
4354 | as_fn_unset () | |
4355 | { | |
4356 | { eval $1=; unset $1;} | |
4357 | } | |
4358 | as_unset=as_fn_unset | |
4359 | # as_fn_append VAR VALUE | |
4360 | # ---------------------- | |
4361 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
4362 | # advantage of any shell optimizations that allow amortized linear growth over | |
4363 | # repeated appends, instead of the typical quadratic growth present in naive | |
4364 | # implementations. | |
4365 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4366 | eval 'as_fn_append () | |
4367 | { | |
4368 | eval $1+=\$2 | |
4369 | }' | |
4370 | else | |
4371 | as_fn_append () | |
4372 | { | |
4373 | eval $1=\$$1\$2 | |
4374 | } | |
4375 | fi # as_fn_append | |
4376 | ||
4377 | # as_fn_arith ARG... | |
4378 | # ------------------ | |
4379 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
4380 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
4381 | # must be portable across $(()) and expr. | |
4382 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4383 | eval 'as_fn_arith () | |
4384 | { | |
4385 | as_val=$(( $* )) | |
4386 | }' | |
4387 | else | |
4388 | as_fn_arith () | |
4389 | { | |
4390 | as_val=`expr "$@" || test $? -eq 1` | |
4391 | } | |
4392 | fi # as_fn_arith | |
11b35193 | 4393 | |
11b35193 | 4394 | |
cbddf2cb IJ |
4395 | if expr a : '\(a\)' >/dev/null 2>&1 && |
4396 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4397 | as_expr=expr | |
4398 | else | |
4399 | as_expr=false | |
4400 | fi | |
11b35193 | 4401 | |
cbddf2cb IJ |
4402 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4403 | as_basename=basename | |
4404 | else | |
4405 | as_basename=false | |
4406 | fi | |
11b35193 | 4407 | |
cbddf2cb IJ |
4408 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
4409 | as_dirname=dirname | |
4410 | else | |
4411 | as_dirname=false | |
4412 | fi | |
11b35193 | 4413 | |
cbddf2cb IJ |
4414 | as_me=`$as_basename -- "$0" || |
4415 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
4416 | X"$0" : 'X\(//\)$' \| \ | |
4417 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
4418 | $as_echo X/"$0" | | |
4419 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
4420 | s//\1/ | |
4421 | q | |
4422 | } | |
4423 | /^X\/\(\/\/\)$/{ | |
4424 | s//\1/ | |
4425 | q | |
4426 | } | |
4427 | /^X\/\(\/\).*/{ | |
4428 | s//\1/ | |
4429 | q | |
4430 | } | |
4431 | s/.*/./; q'` | |
4432 | ||
4433 | # Avoid depending upon Character Ranges. | |
4434 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4435 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4436 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4437 | as_cr_digits='0123456789' | |
4438 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4439 | ||
4440 | ECHO_C= ECHO_N= ECHO_T= | |
4441 | case `echo -n x` in #((((( | |
4442 | -n*) | |
4443 | case `echo 'xy\c'` in | |
4444 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
4445 | xy) ECHO_C='\c';; | |
4446 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4447 | ECHO_T=' ';; | |
4448 | esac;; | |
4449 | *) | |
4450 | ECHO_N='-n';; | |
4451 | esac | |
4452 | ||
4453 | rm -f conf$$ conf$$.exe conf$$.file | |
4454 | if test -d conf$$.dir; then | |
4455 | rm -f conf$$.dir/conf$$.file | |
4456 | else | |
4457 | rm -f conf$$.dir | |
4458 | mkdir conf$$.dir 2>/dev/null | |
4459 | fi | |
4460 | if (echo >conf$$.file) 2>/dev/null; then | |
4461 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4462 | as_ln_s='ln -s' | |
4463 | # ... but there are two gotchas: | |
4464 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
4465 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
4466 | # In both cases, we have to default to `cp -pR'. | |
4467 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
4468 | as_ln_s='cp -pR' | |
4469 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
4470 | as_ln_s=ln | |
11b35193 | 4471 | else |
cbddf2cb | 4472 | as_ln_s='cp -pR' |
11b35193 | 4473 | fi |
cbddf2cb IJ |
4474 | else |
4475 | as_ln_s='cp -pR' | |
4476 | fi | |
4477 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
4478 | rmdir conf$$.dir 2>/dev/null | |
11b35193 | 4479 | |
11b35193 | 4480 | |
cbddf2cb IJ |
4481 | # as_fn_mkdir_p |
4482 | # ------------- | |
4483 | # Create "$as_dir" as a directory, including parents if necessary. | |
4484 | as_fn_mkdir_p () | |
4485 | { | |
4486 | ||
4487 | case $as_dir in #( | |
4488 | -*) as_dir=./$as_dir;; | |
a0c76eee | 4489 | esac |
cbddf2cb IJ |
4490 | test -d "$as_dir" || eval $as_mkdir_p || { |
4491 | as_dirs= | |
4492 | while :; do | |
4493 | case $as_dir in #( | |
4494 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4495 | *) as_qdir=$as_dir;; | |
4496 | esac | |
4497 | as_dirs="'$as_qdir' $as_dirs" | |
4498 | as_dir=`$as_dirname -- "$as_dir" || | |
4499 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4500 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4501 | X"$as_dir" : 'X\(//\)$' \| \ | |
4502 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4503 | $as_echo X"$as_dir" | | |
4504 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4505 | s//\1/ | |
4506 | q | |
4507 | } | |
4508 | /^X\(\/\/\)[^/].*/{ | |
4509 | s//\1/ | |
4510 | q | |
4511 | } | |
4512 | /^X\(\/\/\)$/{ | |
4513 | s//\1/ | |
4514 | q | |
4515 | } | |
4516 | /^X\(\/\).*/{ | |
4517 | s//\1/ | |
4518 | q | |
4519 | } | |
4520 | s/.*/./; q'` | |
4521 | test -d "$as_dir" && break | |
4522 | done | |
4523 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4524 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
4525 | ||
4526 | ||
4527 | } # as_fn_mkdir_p | |
4528 | if mkdir -p . 2>/dev/null; then | |
4529 | as_mkdir_p='mkdir -p "$as_dir"' | |
4530 | else | |
4531 | test -d ./-p && rmdir ./-p | |
4532 | as_mkdir_p=false | |
4533 | fi | |
4534 | ||
11b35193 | 4535 | |
cbddf2cb IJ |
4536 | # as_fn_executable_p FILE |
4537 | # ----------------------- | |
4538 | # Test if FILE is an executable regular file. | |
4539 | as_fn_executable_p () | |
4540 | { | |
4541 | test -f "$1" && test -x "$1" | |
4542 | } # as_fn_executable_p | |
4543 | as_test_x='test -x' | |
4544 | as_executable_p=as_fn_executable_p | |
4545 | ||
4546 | # Sed expression to map a string onto a valid CPP name. | |
4547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
4548 | ||
4549 | # Sed expression to map a string onto a valid variable name. | |
4550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
4551 | ||
4552 | ||
4553 | exec 6>&1 | |
4554 | ## ----------------------------------- ## | |
4555 | ## Main body of $CONFIG_STATUS script. ## | |
4556 | ## ----------------------------------- ## | |
4557 | _ASEOF | |
4558 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4559 | ||
4560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4561 | # Save the log message, to keep $0 and so on meaningful, and to | |
4562 | # report actual input values of CONFIG_FILES etc. instead of their | |
4563 | # values after options handling. | |
4564 | ac_log=" | |
4565 | This file was extended by $as_me, which was | |
4566 | generated by GNU Autoconf 2.69. Invocation command line was | |
4567 | ||
4568 | CONFIG_FILES = $CONFIG_FILES | |
4569 | CONFIG_HEADERS = $CONFIG_HEADERS | |
4570 | CONFIG_LINKS = $CONFIG_LINKS | |
4571 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
4572 | $ $0 $@ | |
4573 | ||
4574 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
4575 | " | |
4576 | ||
4577 | _ACEOF | |
4578 | ||
4579 | case $ac_config_files in *" | |
4580 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
4581 | esac | |
4582 | ||
4583 | case $ac_config_headers in *" | |
4584 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
4585 | esac | |
4586 | ||
4587 | ||
4588 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4589 | # Files that config.status was made for. | |
4590 | config_files="$ac_config_files" | |
4591 | config_headers="$ac_config_headers" | |
4592 | ||
4593 | _ACEOF | |
4594 | ||
4595 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4596 | ac_cs_usage="\ | |
4597 | \`$as_me' instantiates files and other configuration actions | |
4598 | from templates according to the current configuration. Unless the files | |
4599 | and actions are specified as TAGs, all are instantiated by default. | |
4600 | ||
4601 | Usage: $0 [OPTION]... [TAG]... | |
4602 | ||
4603 | -h, --help print this help, then exit | |
4604 | -V, --version print version number and configuration settings, then exit | |
4605 | --config print configuration, then exit | |
4606 | -q, --quiet, --silent | |
4607 | do not print progress messages | |
4608 | -d, --debug don't remove temporary files | |
4609 | --recheck update $as_me by reconfiguring in the same conditions | |
4610 | --file=FILE[:TEMPLATE] | |
4611 | instantiate the configuration file FILE | |
4612 | --header=FILE[:TEMPLATE] | |
4613 | instantiate the configuration header FILE | |
4614 | ||
4615 | Configuration files: | |
4616 | $config_files | |
4617 | ||
4618 | Configuration headers: | |
4619 | $config_headers | |
4620 | ||
4621 | Report bugs to the package provider." | |
4622 | ||
4623 | _ACEOF | |
4624 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4625 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
4626 | ac_cs_version="\\ | |
4627 | config.status | |
4628 | configured by $0, generated by GNU Autoconf 2.69, | |
4629 | with options \\"\$ac_cs_config\\" | |
4630 | ||
4631 | Copyright (C) 2012 Free Software Foundation, Inc. | |
4632 | This config.status script is free software; the Free Software Foundation | |
4633 | gives unlimited permission to copy, distribute and modify it." | |
4634 | ||
4635 | ac_pwd='$ac_pwd' | |
4636 | srcdir='$srcdir' | |
4637 | INSTALL='$INSTALL' | |
4638 | test -n "\$AWK" || AWK=awk | |
4639 | _ACEOF | |
4640 | ||
4641 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4642 | # The default lists apply if the user does not specify any file. | |
4643 | ac_need_defaults=: | |
4644 | while test $# != 0 | |
4645 | do | |
4646 | case $1 in | |
4647 | --*=?*) | |
4648 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4649 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4650 | ac_shift=: | |
4651 | ;; | |
4652 | --*=) | |
4653 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4654 | ac_optarg= | |
4655 | ac_shift=: | |
4656 | ;; | |
4657 | *) | |
4658 | ac_option=$1 | |
4659 | ac_optarg=$2 | |
4660 | ac_shift=shift | |
4661 | ;; | |
11b35193 | 4662 | esac |
4663 | ||
cbddf2cb IJ |
4664 | case $ac_option in |
4665 | # Handling of the options. | |
4666 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4667 | ac_cs_recheck=: ;; | |
4668 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
4669 | $as_echo "$ac_cs_version"; exit ;; | |
4670 | --config | --confi | --conf | --con | --co | --c ) | |
4671 | $as_echo "$ac_cs_config"; exit ;; | |
4672 | --debug | --debu | --deb | --de | --d | -d ) | |
4673 | debug=: ;; | |
4674 | --file | --fil | --fi | --f ) | |
4675 | $ac_shift | |
4676 | case $ac_optarg in | |
4677 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4678 | '') as_fn_error $? "missing file argument" ;; | |
4679 | esac | |
4680 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4681 | ac_need_defaults=false;; | |
4682 | --header | --heade | --head | --hea ) | |
4683 | $ac_shift | |
4684 | case $ac_optarg in | |
4685 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4686 | esac | |
4687 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4688 | ac_need_defaults=false;; | |
4689 | --he | --h) | |
4690 | # Conflict between --help and --header | |
4691 | as_fn_error $? "ambiguous option: \`$1' | |
4692 | Try \`$0 --help' for more information.";; | |
4693 | --help | --hel | -h ) | |
4694 | $as_echo "$ac_cs_usage"; exit ;; | |
4695 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
4696 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4697 | ac_cs_silent=: ;; | |
4698 | ||
4699 | # This is an error. | |
4700 | -*) as_fn_error $? "unrecognized option: \`$1' | |
4701 | Try \`$0 --help' for more information." ;; | |
4702 | ||
4703 | *) as_fn_append ac_config_targets " $1" | |
4704 | ac_need_defaults=false ;; | |
4705 | ||
11b35193 | 4706 | esac |
cbddf2cb IJ |
4707 | shift |
4708 | done | |
4709 | ||
4710 | ac_configure_extra_args= | |
4711 | ||
4712 | if $ac_cs_silent; then | |
4713 | exec 6>/dev/null | |
4714 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4715 | fi | |
4716 | ||
4717 | _ACEOF | |
4718 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4719 | if \$ac_cs_recheck; then | |
4720 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4721 | shift | |
4722 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4723 | CONFIG_SHELL='$SHELL' | |
4724 | export CONFIG_SHELL | |
4725 | exec "\$@" | |
4726 | fi | |
11b35193 | 4727 | |
cbddf2cb IJ |
4728 | _ACEOF |
4729 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4730 | exec 5>>config.log | |
4731 | { | |
4732 | echo | |
4733 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4734 | ## Running $as_me. ## | |
4735 | _ASBOX | |
4736 | $as_echo "$ac_log" | |
4737 | } >&5 | |
4738 | ||
4739 | _ACEOF | |
4740 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4741 | _ACEOF | |
4742 | ||
4743 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4744 | ||
4745 | # Handling of arguments. | |
4746 | for ac_config_target in $ac_config_targets | |
11b35193 | 4747 | do |
cbddf2cb IJ |
4748 | case $ac_config_target in |
4749 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
b99e8e9a | 4750 | "common.make") CONFIG_FILES="$CONFIG_FILES common.make" ;; |
cbddf2cb IJ |
4751 | "settings.make") CONFIG_FILES="$CONFIG_FILES settings.make" ;; |
4752 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
4753 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
4754 | "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;; | |
4755 | "dynamic/Makefile") CONFIG_FILES="$CONFIG_FILES dynamic/Makefile" ;; | |
4756 | "regress/Makefile") CONFIG_FILES="$CONFIG_FILES regress/Makefile" ;; | |
4757 | ||
4758 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
4759 | esac | |
4760 | done | |
4761 | ||
4762 | ||
4763 | # If the user did not use the arguments to specify the items to instantiate, | |
4764 | # then the envvar interface is used. Set only those that are not. | |
4765 | # We use the long form for the default assignment because of an extremely | |
4766 | # bizarre bug on SunOS 4.1.3. | |
4767 | if $ac_need_defaults; then | |
4768 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4769 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
4770 | fi | |
4771 | ||
4772 | # Have a temporary directory for convenience. Make it in the build tree | |
4773 | # simply because there is no reason against having it here, and in addition, | |
4774 | # creating and moving files from /tmp can sometimes cause problems. | |
4775 | # Hook for its removal unless debugging. | |
4776 | # Note that there is a small window in which the directory will not be cleaned: | |
4777 | # after its creation but before its name has been assigned to `$tmp'. | |
4778 | $debug || | |
4779 | { | |
4780 | tmp= ac_tmp= | |
4781 | trap 'exit_status=$? | |
4782 | : "${ac_tmp:=$tmp}" | |
4783 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
4784 | ' 0 | |
4785 | trap 'as_fn_exit 1' 1 2 13 15 | |
4786 | } | |
4787 | # Create a (secure) tmp directory for tmp files. | |
4788 | ||
4789 | { | |
4790 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
4791 | test -d "$tmp" | |
4792 | } || | |
4793 | { | |
4794 | tmp=./conf$$-$RANDOM | |
4795 | (umask 077 && mkdir "$tmp") | |
4796 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
4797 | ac_tmp=$tmp | |
4798 | ||
4799 | # Set up the scripts for CONFIG_FILES section. | |
4800 | # No need to generate them if there are no CONFIG_FILES. | |
4801 | # This happens for instance with `./config.status config.h'. | |
4802 | if test -n "$CONFIG_FILES"; then | |
4803 | ||
4804 | ||
4805 | ac_cr=`echo X | tr X '\015'` | |
4806 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
4807 | # But we know of no other shell where ac_cr would be empty at this | |
4808 | # point, so we can use a bashism as a fallback. | |
4809 | if test "x$ac_cr" = x; then | |
4810 | eval ac_cr=\$\'\\r\' | |
4811 | fi | |
4812 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
4813 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4814 | ac_cs_awk_cr='\\r' | |
4815 | else | |
4816 | ac_cs_awk_cr=$ac_cr | |
4817 | fi | |
4818 | ||
4819 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
4820 | _ACEOF | |
4821 | ||
4822 | ||
4823 | { | |
4824 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
4825 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
4826 | echo "_ACEOF" | |
4827 | } >conf$$subs.sh || | |
4828 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4829 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
4830 | ac_delim='%!_!# ' | |
4831 | for ac_last_try in false false false false false :; do | |
4832 | . ./conf$$subs.sh || | |
4833 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4834 | ||
4835 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4836 | if test $ac_delim_n = $ac_delim_num; then | |
4837 | break | |
4838 | elif $ac_last_try; then | |
4839 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4840 | else | |
4841 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4842 | fi | |
11b35193 | 4843 | done |
cbddf2cb IJ |
4844 | rm -f conf$$subs.sh |
4845 | ||
4846 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4847 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
4848 | _ACEOF | |
4849 | sed -n ' | |
4850 | h | |
4851 | s/^/S["/; s/!.*/"]=/ | |
4852 | p | |
4853 | g | |
4854 | s/^[^!]*!// | |
4855 | :repl | |
4856 | t repl | |
4857 | s/'"$ac_delim"'$// | |
4858 | t delim | |
4859 | :nl | |
4860 | h | |
4861 | s/\(.\{148\}\)..*/\1/ | |
4862 | t more1 | |
4863 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4864 | p | |
4865 | n | |
4866 | b repl | |
4867 | :more1 | |
4868 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4869 | p | |
4870 | g | |
4871 | s/.\{148\}// | |
4872 | t nl | |
4873 | :delim | |
4874 | h | |
4875 | s/\(.\{148\}\)..*/\1/ | |
4876 | t more2 | |
4877 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4878 | p | |
4879 | b | |
4880 | :more2 | |
4881 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4882 | p | |
4883 | g | |
4884 | s/.\{148\}// | |
4885 | t delim | |
4886 | ' <conf$$subs.awk | sed ' | |
4887 | /^[^""]/{ | |
4888 | N | |
4889 | s/\n// | |
4890 | } | |
4891 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
4892 | rm -f conf$$subs.awk | |
4893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4894 | _ACAWK | |
4895 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
4896 | for (key in S) S_is_set[key] = 1 | |
4897 | FS = "\a" | |
4898 | ||
4899 | } | |
4900 | { | |
4901 | line = $ 0 | |
4902 | nfields = split(line, field, "@") | |
4903 | substed = 0 | |
4904 | len = length(field[1]) | |
4905 | for (i = 2; i < nfields; i++) { | |
4906 | key = field[i] | |
4907 | keylen = length(key) | |
4908 | if (S_is_set[key]) { | |
4909 | value = S[key] | |
4910 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4911 | len += length(value) + length(field[++i]) | |
4912 | substed = 1 | |
4913 | } else | |
4914 | len += 1 + keylen | |
4915 | } | |
4916 | ||
4917 | print line | |
4918 | } | |
4919 | ||
4920 | _ACAWK | |
4921 | _ACEOF | |
4922 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4923 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4924 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4925 | else | |
4926 | cat | |
4927 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
4928 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
4929 | _ACEOF | |
4930 | ||
4931 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
4932 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
4933 | # trailing colons and then remove the whole line if VPATH becomes empty | |
4934 | # (actually we leave an empty line to preserve line numbers). | |
4935 | if test "x$srcdir" = x.; then | |
4936 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
4937 | h | |
4938 | s/// | |
4939 | s/^/:/ | |
4940 | s/[ ]*$/:/ | |
4941 | s/:\$(srcdir):/:/g | |
4942 | s/:\${srcdir}:/:/g | |
4943 | s/:@srcdir@:/:/g | |
4944 | s/^:*// | |
4945 | s/:*$// | |
4946 | x | |
4947 | s/\(=[ ]*\).*/\1/ | |
4948 | G | |
4949 | s/\n// | |
4950 | s/^[^=]*=[ ]*$// | |
4951 | }' | |
4952 | fi | |
4953 | ||
4954 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4955 | fi # test -n "$CONFIG_FILES" | |
4956 | ||
4957 | # Set up the scripts for CONFIG_HEADERS section. | |
4958 | # No need to generate them if there are no CONFIG_HEADERS. | |
4959 | # This happens for instance with `./config.status Makefile'. | |
4960 | if test -n "$CONFIG_HEADERS"; then | |
4961 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
4962 | BEGIN { | |
4963 | _ACEOF | |
4964 | ||
4965 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
4966 | # here-document in config.status, that substitutes the proper values into | |
4967 | # config.h.in to produce config.h. | |
4968 | ||
4969 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
4970 | # handling of long lines. | |
4971 | ac_delim='%!_!# ' | |
4972 | for ac_last_try in false false :; do | |
4973 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
4974 | if test -z "$ac_tt"; then | |
4975 | break | |
4976 | elif $ac_last_try; then | |
4977 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
11b35193 | 4978 | else |
cbddf2cb IJ |
4979 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
4980 | fi | |
4981 | done | |
4982 | ||
4983 | # For the awk script, D is an array of macro values keyed by name, | |
4984 | # likewise P contains macro parameters if any. Preserve backslash | |
4985 | # newline sequences. | |
4986 | ||
4987 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
4988 | sed -n ' | |
4989 | s/.\{148\}/&'"$ac_delim"'/g | |
4990 | t rset | |
4991 | :rset | |
4992 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
4993 | t def | |
4994 | d | |
4995 | :def | |
4996 | s/\\$// | |
4997 | t bsnl | |
4998 | s/["\\]/\\&/g | |
4999 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5000 | D["\1"]=" \3"/p | |
5001 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
5002 | d | |
5003 | :bsnl | |
5004 | s/["\\]/\\&/g | |
5005 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5006 | D["\1"]=" \3\\\\\\n"\\/p | |
5007 | t cont | |
5008 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
5009 | t cont | |
5010 | d | |
5011 | :cont | |
5012 | n | |
5013 | s/.\{148\}/&'"$ac_delim"'/g | |
5014 | t clear | |
5015 | :clear | |
5016 | s/\\$// | |
5017 | t bsnlc | |
5018 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
5019 | d | |
5020 | :bsnlc | |
5021 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
5022 | b cont | |
5023 | ' <confdefs.h | sed ' | |
5024 | s/'"$ac_delim"'/"\\\ | |
5025 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
5026 | ||
5027 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5028 | for (key in D) D_is_set[key] = 1 | |
5029 | FS = "\a" | |
5030 | } | |
5031 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
5032 | line = \$ 0 | |
5033 | split(line, arg, " ") | |
5034 | if (arg[1] == "#") { | |
5035 | defundef = arg[2] | |
5036 | mac1 = arg[3] | |
5037 | } else { | |
5038 | defundef = substr(arg[1], 2) | |
5039 | mac1 = arg[2] | |
5040 | } | |
5041 | split(mac1, mac2, "(") #) | |
5042 | macro = mac2[1] | |
5043 | prefix = substr(line, 1, index(line, defundef) - 1) | |
5044 | if (D_is_set[macro]) { | |
5045 | # Preserve the white space surrounding the "#". | |
5046 | print prefix "define", macro P[macro] D[macro] | |
5047 | next | |
5048 | } else { | |
5049 | # Replace #undef with comments. This is necessary, for example, | |
5050 | # in the case of _POSIX_SOURCE, which is predefined and required | |
5051 | # on some systems where configure will not decide to define it. | |
5052 | if (defundef == "undef") { | |
5053 | print "/*", prefix defundef, macro, "*/" | |
5054 | next | |
5055 | } | |
5056 | } | |
5057 | } | |
5058 | { print } | |
5059 | _ACAWK | |
5060 | _ACEOF | |
5061 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5062 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
5063 | fi # test -n "$CONFIG_HEADERS" | |
5064 | ||
5065 | ||
5066 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
5067 | shift | |
5068 | for ac_tag | |
5069 | do | |
5070 | case $ac_tag in | |
5071 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
5072 | esac | |
5073 | case $ac_mode$ac_tag in | |
5074 | :[FHL]*:*);; | |
5075 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
5076 | :[FH]-) ac_tag=-:-;; | |
5077 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
5078 | esac | |
5079 | ac_save_IFS=$IFS | |
5080 | IFS=: | |
5081 | set x $ac_tag | |
5082 | IFS=$ac_save_IFS | |
5083 | shift | |
5084 | ac_file=$1 | |
5085 | shift | |
5086 | ||
5087 | case $ac_mode in | |
5088 | :L) ac_source=$1;; | |
5089 | :[FH]) | |
5090 | ac_file_inputs= | |
5091 | for ac_f | |
5092 | do | |
5093 | case $ac_f in | |
5094 | -) ac_f="$ac_tmp/stdin";; | |
5095 | *) # Look for the file first in the build tree, then in the source tree | |
5096 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
5097 | # because $ac_f cannot contain `:'. | |
5098 | test -f "$ac_f" || | |
5099 | case $ac_f in | |
5100 | [\\/$]*) false;; | |
5101 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
5102 | esac || | |
5103 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
5104 | esac | |
5105 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
5106 | as_fn_append ac_file_inputs " '$ac_f'" | |
5107 | done | |
5108 | ||
5109 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
5110 | # use $as_me), people would be surprised to read: | |
5111 | # /* config.h. Generated by config.status. */ | |
5112 | configure_input='Generated from '` | |
5113 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5114 | `' by configure.' | |
5115 | if test x"$ac_file" != x-; then | |
5116 | configure_input="$ac_file. $configure_input" | |
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5118 | $as_echo "$as_me: creating $ac_file" >&6;} | |
11b35193 | 5119 | fi |
cbddf2cb IJ |
5120 | # Neutralize special characters interpreted by sed in replacement strings. |
5121 | case $configure_input in #( | |
5122 | *\&* | *\|* | *\\* ) | |
5123 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
5124 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
5125 | *) ac_sed_conf_input=$configure_input;; | |
5126 | esac | |
5127 | ||
5128 | case $ac_tag in | |
5129 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
5130 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5131 | esac | |
5132 | ;; | |
5133 | esac | |
5134 | ||
5135 | ac_dir=`$as_dirname -- "$ac_file" || | |
5136 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5137 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5138 | X"$ac_file" : 'X\(//\)$' \| \ | |
5139 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
5140 | $as_echo X"$ac_file" | | |
5141 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5142 | s//\1/ | |
5143 | q | |
5144 | } | |
5145 | /^X\(\/\/\)[^/].*/{ | |
5146 | s//\1/ | |
5147 | q | |
5148 | } | |
5149 | /^X\(\/\/\)$/{ | |
5150 | s//\1/ | |
5151 | q | |
5152 | } | |
5153 | /^X\(\/\).*/{ | |
5154 | s//\1/ | |
5155 | q | |
5156 | } | |
5157 | s/.*/./; q'` | |
5158 | as_dir="$ac_dir"; as_fn_mkdir_p | |
5159 | ac_builddir=. | |
5160 | ||
5161 | case "$ac_dir" in | |
5162 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5163 | *) | |
5164 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
5165 | # A ".." for each directory in $ac_dir_suffix. | |
5166 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5167 | case $ac_top_builddir_sub in | |
5168 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5169 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
5170 | esac ;; | |
5171 | esac | |
5172 | ac_abs_top_builddir=$ac_pwd | |
5173 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
5174 | # for backward compatibility: | |
5175 | ac_top_builddir=$ac_top_build_prefix | |
5176 | ||
5177 | case $srcdir in | |
5178 | .) # We are building in place. | |
5179 | ac_srcdir=. | |
5180 | ac_top_srcdir=$ac_top_builddir_sub | |
5181 | ac_abs_top_srcdir=$ac_pwd ;; | |
5182 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5183 | ac_srcdir=$srcdir$ac_dir_suffix; | |
5184 | ac_top_srcdir=$srcdir | |
5185 | ac_abs_top_srcdir=$srcdir ;; | |
5186 | *) # Relative name. | |
5187 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
5188 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
5189 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5190 | esac | |
5191 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
5192 | ||
5193 | ||
5194 | case $ac_mode in | |
5195 | :F) | |
5196 | # | |
5197 | # CONFIG_FILE | |
5198 | # | |
5199 | ||
5200 | case $INSTALL in | |
5201 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5202 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
5203 | esac | |
5204 | _ACEOF | |
5205 | ||
5206 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5207 | # If the template does not know about datarootdir, expand it. | |
5208 | # FIXME: This hack should be removed a few years after 2.60. | |
5209 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
5210 | ac_sed_dataroot=' | |
5211 | /datarootdir/ { | |
5212 | p | |
5213 | q | |
5214 | } | |
5215 | /@datadir@/p | |
5216 | /@docdir@/p | |
5217 | /@infodir@/p | |
5218 | /@localedir@/p | |
5219 | /@mandir@/p' | |
5220 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
5221 | *datarootdir*) ac_datarootdir_seen=yes;; | |
5222 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5224 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5225 | _ACEOF | |
5226 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5227 | ac_datarootdir_hack=' | |
5228 | s&@datadir@&$datadir&g | |
5229 | s&@docdir@&$docdir&g | |
5230 | s&@infodir@&$infodir&g | |
5231 | s&@localedir@&$localedir&g | |
5232 | s&@mandir@&$mandir&g | |
5233 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
5234 | esac | |
5235 | _ACEOF | |
5236 | ||
5237 | # Neutralize VPATH when `$srcdir' = `.'. | |
5238 | # Shell code in configure.ac might set extrasub. | |
5239 | # FIXME: do we really want to maintain this feature? | |
5240 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5241 | ac_sed_extra="$ac_vpsub | |
5242 | $extrasub | |
5243 | _ACEOF | |
5244 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5245 | :t | |
5246 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5247 | s|@configure_input@|$ac_sed_conf_input|;t t | |
5248 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
5249 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
5250 | s&@srcdir@&$ac_srcdir&;t t | |
5251 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
5252 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
5253 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
5254 | s&@builddir@&$ac_builddir&;t t | |
5255 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
5256 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
5257 | s&@INSTALL@&$ac_INSTALL&;t t | |
5258 | $ac_datarootdir_hack | |
5259 | " | |
5260 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
5261 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5262 | ||
5263 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
5264 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
5265 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
5266 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5268 | which seems to be undefined. Please make sure it is defined" >&5 | |
5269 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5270 | which seems to be undefined. Please make sure it is defined" >&2;} | |
5271 | ||
5272 | rm -f "$ac_tmp/stdin" | |
5273 | case $ac_file in | |
5274 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
5275 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5276 | esac \ | |
5277 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5278 | ;; | |
5279 | :H) | |
5280 | # | |
5281 | # CONFIG_HEADER | |
5282 | # | |
5283 | if test x"$ac_file" != x-; then | |
5284 | { | |
5285 | $as_echo "/* $configure_input */" \ | |
5286 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
5287 | } >"$ac_tmp/config.h" \ | |
5288 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5289 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
5291 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
5292 | else | |
5293 | rm -f "$ac_file" | |
5294 | mv "$ac_tmp/config.h" "$ac_file" \ | |
5295 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5296 | fi | |
5297 | else | |
5298 | $as_echo "/* $configure_input */" \ | |
5299 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
5300 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
11b35193 | 5301 | fi |
cbddf2cb | 5302 | ;; |
11b35193 | 5303 | |
11b35193 | 5304 | |
cbddf2cb | 5305 | esac |
11b35193 | 5306 | |
cbddf2cb IJ |
5307 | done # for ac_tag |
5308 | ||
5309 | ||
5310 | as_fn_exit 0 | |
5311 | _ACEOF | |
5312 | ac_clean_files=$ac_clean_files_save | |
5313 | ||
5314 | test $ac_write_fail = 0 || | |
5315 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
5316 | ||
5317 | ||
5318 | # configure is writing to config.log, and then calls config.status. | |
5319 | # config.status does its own redirection, appending to config.log. | |
5320 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5321 | # by configure, so config.status won't be able to write to it; its | |
5322 | # output is simply discarded. So we exec the FD to /dev/null, | |
5323 | # effectively closing config.log, so it can be properly (re)opened and | |
5324 | # appended to by config.status. When coming back to configure, we | |
5325 | # need to make the FD available again. | |
5326 | if test "$no_create" != yes; then | |
5327 | ac_cs_success=: | |
5328 | ac_config_status_args= | |
5329 | test "$silent" = yes && | |
5330 | ac_config_status_args="$ac_config_status_args --quiet" | |
5331 | exec 5>/dev/null | |
5332 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5333 | exec 5>>config.log | |
5334 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5335 | # would make configure fail if this is the last instruction. | |
5336 | $ac_cs_success || as_fn_exit 1 | |
5337 | fi | |
5338 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5340 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
5341 | fi | |
11b35193 | 5342 |