Debian Codegraph @

examples/rlfe/configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for rlfe 0.4.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else case e in #(
190 e) as_have_required=no ;;
191 esac
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else case e in #(
197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else case e in #(
231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi ;;
236 esac
237 fi
238
239
240 if test "x$CONFIG_SHELL" != x
241 then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed 'exec'.
259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno
264 then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 printf "%s\n" "$0: Please tell [email protected] about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi ;;
278 esac
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317
318 # as_fn_mkdir_p
319 # -------------
320 # Create "$as_dir" as a directory, including parents if necessary.
321 as_fn_mkdir_p ()
322 {
323
324 case $as_dir in #(
325 -*) as_dir=./$as_dir;;
326 esac
327 test -d "$as_dir" || eval $as_mkdir_p || {
328 as_dirs=
329 while :; do
330 case $as_dir in #(
331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 *) as_qdir=$as_dir;;
333 esac
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 printf "%s\n" X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)[^/].*/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\).*/{
354 s//\1/
355 q
356 }
357 s/.*/./; q'`
358 test -d "$as_dir" && break
359 done
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364 } # as_fn_mkdir_p
365
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
370 {
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
378 # implementations.
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
380 then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else case e in #(
386 e) as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 } ;;
390 esac
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
399 then :
400 eval 'as_fn_arith ()
401 {
402 as_val=$(( $* ))
403 }'
404 else case e in #(
405 e) as_fn_arith ()
406 {
407 as_val=`expr "$@" || test $? -eq 1`
408 } ;;
409 esac
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 printf "%s\n" "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 printf "%s\n" X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 t clear
486 :clear
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512
513 # Determine whether it's possible to make 'echo' print without a newline.
514 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
515 # for compatibility with existing Makefiles.
516 ECHO_C= ECHO_N= ECHO_T=
517 case `echo -n x` in #(((((
518 -n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525 *)
526 ECHO_N='-n';;
527 esac
528
529 # For backward compatibility with old third-party macros, we provide
530 # the shell variables $as_echo and $as_echo_n. New code should use
531 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
532 as_echo='printf %s\n'
533 as_echo_n='printf %s'
534
535 rm -f conf$$ conf$$.exe conf$$.file
536 if test -d conf$$.dir; then
537 rm -f conf$$.dir/conf$$.file
538 else
539 rm -f conf$$.dir
540 mkdir conf$$.dir 2>/dev/null
541 fi
542 if (echo >conf$$.file) 2>/dev/null; then
543 if ln -s conf$$.file conf$$ 2>/dev/null; then
544 as_ln_s='ln -s'
545 # ... but there are two gotchas:
546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
548 # In both cases, we have to default to 'cp -pR'.
549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
550 as_ln_s='cp -pR'
551 elif ln conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s=ln
553 else
554 as_ln_s='cp -pR'
555 fi
556 else
557 as_ln_s='cp -pR'
558 fi
559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
560 rmdir conf$$.dir 2>/dev/null
561
562 if mkdir -p . 2>/dev/null; then
563 as_mkdir_p='mkdir -p "$as_dir"'
564 else
565 test -d ./-p && rmdir ./-p
566 as_mkdir_p=false
567 fi
568
569 as_test_x='test -x'
570 as_executable_p=as_fn_executable_p
571
572 # Sed expression to map a string onto a valid CPP name.
573 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
575
576 # Sed expression to map a string onto a valid variable name.
577 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
579
580
581 test -n "$DJDIR" || exec 7<&0 </dev/null
582 exec 6>&1
583
584 # Name of the host.
585 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
586 # so uname gets run too.
587 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588
589 #
590 # Initializations.
591 #
592 ac_default_prefix=/usr/local
593 ac_clean_files=
594 ac_config_libobj_dir=.
595 LIBOBJS=
596 cross_compiling=no
597 subdirs=
598 MFLAGS=
599 MAKEFLAGS=
600
601 # Identity of this package.
602 PACKAGE_NAME='rlfe'
603 PACKAGE_TARNAME='rlfe'
604 PACKAGE_VERSION='0.4'
605 PACKAGE_STRING='rlfe 0.4'
606 PACKAGE_BUGREPORT=''
607 PACKAGE_URL=''
608
609 ac_unique_file="rlfe.c"
610 # Factoring default headers for most tests.
611 ac_includes_default="\
612 #include <stddef.h>
613 #ifdef HAVE_STDIO_H
614 # include <stdio.h>
615 #endif
616 #ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 #endif
619 #ifdef HAVE_STRING_H
620 # include <string.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_SYS_TYPES_H
632 # include <sys/types.h>
633 #endif
634 #ifdef HAVE_SYS_STAT_H
635 # include <sys/stat.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
640
641 ac_header_c_list=
642 ac_subst_vars='LTLIBOBJS
643 LIBOBJS
644 XTERMPATH
645 WRITEPATH
646 AWK
647 SET_MAKE
648 CPP
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 INCDIR
657 VERSION
658 target_alias
659 host_alias
660 build_alias
661 LIBS
662 ECHO_T
663 ECHO_N
664 ECHO_C
665 DEFS
666 mandir
667 localedir
668 libdir
669 psdir
670 pdfdir
671 dvidir
672 htmldir
673 infodir
674 docdir
675 oldincludedir
676 includedir
677 runstatedir
678 localstatedir
679 sharedstatedir
680 sysconfdir
681 datadir
682 datarootdir
683 libexecdir
684 sbindir
685 bindir
686 program_transform_name
687 prefix
688 exec_prefix
689 PACKAGE_URL
690 PACKAGE_BUGREPORT
691 PACKAGE_STRING
692 PACKAGE_VERSION
693 PACKAGE_TARNAME
694 PACKAGE_NAME
695 PATH_SEPARATOR
696 SHELL'
697 ac_subst_files=''
698 ac_user_opts='
699 enable_option_checking
700 with_pty_mode
701 with_pty_group
702 '
703 ac_precious_vars='build_alias
704 host_alias
705 target_alias
706 CC
707 CFLAGS
708 LDFLAGS
709 LIBS
710 CPPFLAGS
711 CPP'
712
713
714 # Initialize some variables set by options.
715 ac_init_help=
716 ac_init_version=false
717 ac_unrecognized_opts=
718 ac_unrecognized_sep=
719 # The variables have the same names as the options, with
720 # dashes changed to underlines.
721 cache_file=/dev/null
722 exec_prefix=NONE
723 no_create=
724 no_recursion=
725 prefix=NONE
726 program_prefix=NONE
727 program_suffix=NONE
728 program_transform_name=s,x,x,
729 silent=
730 site=
731 srcdir=
732 verbose=
733 x_includes=NONE
734 x_libraries=NONE
735
736 # Installation directory options.
737 # These are left unexpanded so users can "make install exec_prefix=/foo"
738 # and all the variables that are supposed to be based on exec_prefix
739 # by default will actually change.
740 # Use braces instead of parens because sh, perl, etc. also accept them.
741 # (The list follows the same order as the GNU Coding Standards.)
742 bindir='${exec_prefix}/bin'
743 sbindir='${exec_prefix}/sbin'
744 libexecdir='${exec_prefix}/libexec'
745 datarootdir='${prefix}/share'
746 datadir='${datarootdir}'
747 sysconfdir='${prefix}/etc'
748 sharedstatedir='${prefix}/com'
749 localstatedir='${prefix}/var'
750 runstatedir='${localstatedir}/run'
751 includedir='${prefix}/include'
752 oldincludedir='/usr/include'
753 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
754 infodir='${datarootdir}/info'
755 htmldir='${docdir}'
756 dvidir='${docdir}'
757 pdfdir='${docdir}'
758 psdir='${docdir}'
759 libdir='${exec_prefix}/lib'
760 localedir='${datarootdir}/locale'
761 mandir='${datarootdir}/man'
762
763 ac_prev=
764 ac_dashdash=
765 for ac_option
766 do
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\$ac_option
770 ac_prev=
771 continue
772 fi
773
774 case $ac_option in
775 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *=) ac_optarg= ;;
777 *) ac_optarg=yes ;;
778 esac
779
780 case $ac_dashdash$ac_option in
781 --)
782 ac_dashdash=yes ;;
783
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
785 ac_prev=bindir ;;
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 bindir=$ac_optarg ;;
788
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
793
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
800
801 --config-cache | -C)
802 cache_file=config.cache ;;
803
804 -datadir | --datadir | --datadi | --datad)
805 ac_prev=datadir ;;
806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
807 datadir=$ac_optarg ;;
808
809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
815
816 -disable-* | --disable-*)
817 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820 as_fn_error $? "invalid feature name: '$ac_useropt'"
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
824 *"
825 "enable_$ac_useropt"
826 "*) ;;
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
829 esac
830 eval enable_$ac_useropt=no ;;
831
832 -docdir | --docdir | --docdi | --doc | --do)
833 ac_prev=docdir ;;
834 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835 docdir=$ac_optarg ;;
836
837 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
838 ac_prev=dvidir ;;
839 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840 dvidir=$ac_optarg ;;
841
842 -enable-* | --enable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error $? "invalid feature name: '$ac_useropt'"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851 "enable_$ac_useropt"
852 "*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=\$ac_optarg ;;
857
858 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860 | --exec | --exe | --ex)
861 ac_prev=exec_prefix ;;
862 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864 | --exec=* | --exe=* | --ex=*)
865 exec_prefix=$ac_optarg ;;
866
867 -gas | --gas | --ga | --g)
868 # Obsolete; use --with-gas.
869 with_gas=yes ;;
870
871 -help | --help | --hel | --he | -h)
872 ac_init_help=long ;;
873 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874 ac_init_help=recursive ;;
875 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876 ac_init_help=short ;;
877
878 -host | --host | --hos | --ho)
879 ac_prev=host_alias ;;
880 -host=* | --host=* | --hos=* | --ho=*)
881 host_alias=$ac_optarg ;;
882
883 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884 ac_prev=htmldir ;;
885 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886 | --ht=*)
887 htmldir=$ac_optarg ;;
888
889 -includedir | --includedir | --includedi | --included | --include \
890 | --includ | --inclu | --incl | --inc)
891 ac_prev=includedir ;;
892 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893 | --includ=* | --inclu=* | --incl=* | --inc=*)
894 includedir=$ac_optarg ;;
895
896 -infodir | --infodir | --infodi | --infod | --info | --inf)
897 ac_prev=infodir ;;
898 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899 infodir=$ac_optarg ;;
900
901 -libdir | --libdir | --libdi | --libd)
902 ac_prev=libdir ;;
903 -libdir=* | --libdir=* | --libdi=* | --libd=*)
904 libdir=$ac_optarg ;;
905
906 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907 | --libexe | --libex | --libe)
908 ac_prev=libexecdir ;;
909 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910 | --libexe=* | --libex=* | --libe=*)
911 libexecdir=$ac_optarg ;;
912
913 -localedir | --localedir | --localedi | --localed | --locale)
914 ac_prev=localedir ;;
915 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916 localedir=$ac_optarg ;;
917
918 -localstatedir | --localstatedir | --localstatedi | --localstated \
919 | --localstate | --localstat | --localsta | --localst | --locals)
920 ac_prev=localstatedir ;;
921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
922 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
923 localstatedir=$ac_optarg ;;
924
925 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926 ac_prev=mandir ;;
927 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928 mandir=$ac_optarg ;;
929
930 -nfp | --nfp | --nf)
931 # Obsolete; use --without-fp.
932 with_fp=no ;;
933
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c | -n)
936 no_create=yes ;;
937
938 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940 no_recursion=yes ;;
941
942 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944 | --oldin | --oldi | --old | --ol | --o)
945 ac_prev=oldincludedir ;;
946 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949 oldincludedir=$ac_optarg ;;
950
951 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952 ac_prev=prefix ;;
953 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954 prefix=$ac_optarg ;;
955
956 -program-prefix | --program-prefix | --program-prefi | --program-pref \
957 | --program-pre | --program-pr | --program-p)
958 ac_prev=program_prefix ;;
959 -program-prefix=* | --program-prefix=* | --program-prefi=* \
960 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961 program_prefix=$ac_optarg ;;
962
963 -program-suffix | --program-suffix | --program-suffi | --program-suff \
964 | --program-suf | --program-su | --program-s)
965 ac_prev=program_suffix ;;
966 -program-suffix=* | --program-suffix=* | --program-suffi=* \
967 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968 program_suffix=$ac_optarg ;;
969
970 -program-transform-name | --program-transform-name \
971 | --program-transform-nam | --program-transform-na \
972 | --program-transform-n | --program-transform- \
973 | --program-transform | --program-transfor \
974 | --program-transfo | --program-transf \
975 | --program-trans | --program-tran \
976 | --progr-tra | --program-tr | --program-t)
977 ac_prev=program_transform_name ;;
978 -program-transform-name=* | --program-transform-name=* \
979 | --program-transform-nam=* | --program-transform-na=* \
980 | --program-transform-n=* | --program-transform-=* \
981 | --program-transform=* | --program-transfor=* \
982 | --program-transfo=* | --program-transf=* \
983 | --program-trans=* | --program-tran=* \
984 | --progr-tra=* | --program-tr=* | --program-t=*)
985 program_transform_name=$ac_optarg ;;
986
987 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988 ac_prev=pdfdir ;;
989 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990 pdfdir=$ac_optarg ;;
991
992 -psdir | --psdir | --psdi | --psd | --ps)
993 ac_prev=psdir ;;
994 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995 psdir=$ac_optarg ;;
996
997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998 | -silent | --silent | --silen | --sile | --sil)
999 silent=yes ;;
1000
1001 -runstatedir | --runstatedir | --runstatedi | --runstated \
1002 | --runstate | --runstat | --runsta | --runst | --runs \
1003 | --run | --ru | --r)
1004 ac_prev=runstatedir ;;
1005 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1006 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1007 | --run=* | --ru=* | --r=*)
1008 runstatedir=$ac_optarg ;;
1009
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;;
1015
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;;
1026
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;;
1031
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1036
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1043
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1048
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1051
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1054
1055 -with-* | --with-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid package name: '$ac_useropt'"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064 "with_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval with_$ac_useropt=\$ac_optarg ;;
1070
1071 -without-* | --without-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: '$ac_useropt'"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=no ;;
1086
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1090
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1097
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1104
1105 -*) as_fn_error $? "unrecognized option: '$ac_option'
1106 Try '$0 --help' for more information"
1107 ;;
1108
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
1114 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1115 esac
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1118
1119 *)
1120 # FIXME: should be removed in autoconf 3.0.
1121 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1125 ;;
1126
1127 esac
1128 done
1129
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $? "missing argument to $ac_option"
1133 fi
1134
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1137 no) ;;
1138 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1139 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140 esac
1141 fi
1142
1143 # Check all directory arguments for consistency.
1144 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir runstatedir
1148 do
1149 eval ac_val=\$$ac_var
1150 # Remove trailing slashes.
1151 case $ac_val in
1152 */ )
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1155 esac
1156 # Be sure to have absolute directory names.
1157 case $ac_val in
1158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1160 esac
1161 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1162 done
1163
1164 # There might be people who depend on the old broken behavior: '$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1167 build=$build_alias
1168 host=$host_alias
1169 target=$target_alias
1170
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1177 fi
1178 fi
1179
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182
1183 test "$silent" = yes && exec 6>/dev/null
1184
1185
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $? "working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $? "pwd does not report name of working directory"
1192
1193
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 printf "%s\n" X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\/\)[^/].*/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\/\)$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\).*/{
1217 s//\1/
1218 q
1219 }
1220 s/.*/./; q'`
1221 srcdir=$ac_confdir
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 srcdir=..
1224 fi
1225 else
1226 ac_srcdir_defaulted=no
1227 fi
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1231 fi
1232 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1233 ac_abs_confdir=`(
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1235 pwd)`
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 srcdir=.
1239 fi
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1243 case $srcdir in
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 esac
1246 for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251 done
1252
1253 #
1254 # Report the --help message.
1255 #
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1259 cat <<_ACEOF
1260 'configure' configures rlfe 0.4 to adapt to many kinds of systems.
1261
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1263
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1266
1267 Defaults for the options are specified in brackets.
1268
1269 Configuration:
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print 'checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for '--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or '..']
1279
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 [PREFIX]
1285
1286 By default, 'make install' will install all the files in
1287 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than '$ac_default_prefix' using '--prefix',
1289 for instance '--prefix=\$HOME'.
1290
1291 For better control, use the options below.
1292
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/rlfe]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1314 _ACEOF
1315
1316 cat <<\_ACEOF
1317 _ACEOF
1318 fi
1319
1320 if test -n "$ac_init_help"; then
1321 case $ac_init_help in
1322 short | recursive ) echo "Configuration of rlfe 0.4:";;
1323 esac
1324 cat <<\_ACEOF
1325
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --with-pty-mode=mode default mode for ptys
1330 --with-pty-group=group default group for ptys
1331
1332 Some influential environment variables:
1333 CC C compiler command
1334 CFLAGS C compiler flags
1335 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1336 nonstandard directory <lib dir>
1337 LIBS libraries to pass to the linker, e.g. -l<library>
1338 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1339 you have headers in a nonstandard directory <include dir>
1340 CPP C preprocessor
1341
1342 Use these variables to override the choices made by 'configure' or to help
1343 it to find libraries and programs with nonstandard names/locations.
1344
1345 Report bugs to the package provider.
1346 _ACEOF
1347 ac_status=$?
1348 fi
1349
1350 if test "$ac_init_help" = "recursive"; then
1351 # If there are subdirs, report their specific --help.
1352 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1353 test -d "$ac_dir" ||
1354 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1355 continue
1356 ac_builddir=.
1357
1358 case "$ac_dir" in
1359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360 *)
1361 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1362 # A ".." for each directory in $ac_dir_suffix.
1363 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1364 case $ac_top_builddir_sub in
1365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1367 esac ;;
1368 esac
1369 ac_abs_top_builddir=$ac_pwd
1370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1371 # for backward compatibility:
1372 ac_top_builddir=$ac_top_build_prefix
1373
1374 case $srcdir in
1375 .) # We are building in place.
1376 ac_srcdir=.
1377 ac_top_srcdir=$ac_top_builddir_sub
1378 ac_abs_top_srcdir=$ac_pwd ;;
1379 [\\/]* | ?:[\\/]* ) # Absolute name.
1380 ac_srcdir=$srcdir$ac_dir_suffix;
1381 ac_top_srcdir=$srcdir
1382 ac_abs_top_srcdir=$srcdir ;;
1383 *) # Relative name.
1384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1385 ac_top_srcdir=$ac_top_build_prefix$srcdir
1386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1387 esac
1388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1389
1390 cd "$ac_dir" || { ac_status=$?; continue; }
1391 # Check for configure.gnu first; this name is used for a wrapper for
1392 # Metaconfig's "Configure" on case-insensitive file systems.
1393 if test -f "$ac_srcdir/configure.gnu"; then
1394 echo &&
1395 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1396 elif test -f "$ac_srcdir/configure"; then
1397 echo &&
1398 $SHELL "$ac_srcdir/configure" --help=recursive
1399 else
1400 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1401 fi || ac_status=$?
1402 cd "$ac_pwd" || { ac_status=$?; break; }
1403 done
1404 fi
1405
1406 test -n "$ac_init_help" && exit $ac_status
1407 if $ac_init_version; then
1408 cat <<\_ACEOF
1409 rlfe configure 0.4
1410 generated by GNU Autoconf 2.72
1411
1412 Copyright (C) 2023 Free Software Foundation, Inc.
1413 This configure script is free software; the Free Software Foundation
1414 gives unlimited permission to copy, distribute and modify it.
1415 _ACEOF
1416 exit
1417 fi
1418
1419 ## ------------------------ ##
1420 ## Autoconf initialization. ##
1421 ## ------------------------ ##
1422
1423 # ac_fn_c_try_compile LINENO
1424 # --------------------------
1425 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1426 ac_fn_c_try_compile ()
1427 {
1428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1429 rm -f conftest.$ac_objext conftest.beam
1430 if { { ac_try="$ac_compile"
1431 case "(($ac_try" in
1432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1433 *) ac_try_echo=$ac_try;;
1434 esac
1435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1436 printf "%s\n" "$ac_try_echo"; } >&5
1437 (eval "$ac_compile") 2>conftest.err
1438 ac_status=$?
1439 if test -s conftest.err; then
1440 grep -v '^ *+' conftest.err >conftest.er1
1441 cat conftest.er1 >&5
1442 mv -f conftest.er1 conftest.err
1443 fi
1444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1445 test $ac_status = 0; } && {
1446 test -z "$ac_c_werror_flag" ||
1447 test ! -s conftest.err
1448 } && test -s conftest.$ac_objext
1449 then :
1450 ac_retval=0
1451 else case e in #(
1452 e) printf "%s\n" "$as_me: failed program was:" >&5
1453 sed 's/^/| /' conftest.$ac_ext >&5
1454
1455 ac_retval=1 ;;
1456 esac
1457 fi
1458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1459 as_fn_set_status $ac_retval
1460
1461 } # ac_fn_c_try_compile
1462
1463 # ac_fn_c_try_cpp LINENO
1464 # ----------------------
1465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1466 ac_fn_c_try_cpp ()
1467 {
1468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1469 if { { ac_try="$ac_cpp conftest.$ac_ext"
1470 case "(($ac_try" in
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1473 esac
1474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475 printf "%s\n" "$ac_try_echo"; } >&5
1476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1477 ac_status=$?
1478 if test -s conftest.err; then
1479 grep -v '^ *+' conftest.err >conftest.er1
1480 cat conftest.er1 >&5
1481 mv -f conftest.er1 conftest.err
1482 fi
1483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } > conftest.i && {
1485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1486 test ! -s conftest.err
1487 }
1488 then :
1489 ac_retval=0
1490 else case e in #(
1491 e) printf "%s\n" "$as_me: failed program was:" >&5
1492 sed 's/^/| /' conftest.$ac_ext >&5
1493
1494 ac_retval=1 ;;
1495 esac
1496 fi
1497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1498 as_fn_set_status $ac_retval
1499
1500 } # ac_fn_c_try_cpp
1501
1502 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1503 # -------------------------------------------------------
1504 # Tests whether HEADER exists and can be compiled using the include files in
1505 # INCLUDES, setting the cache variable VAR accordingly.
1506 ac_fn_c_check_header_compile ()
1507 {
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1510 printf %s "checking for $2... " >&6; }
1511 if eval test \${$3+y}
1512 then :
1513 printf %s "(cached) " >&6
1514 else case e in #(
1515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1516 /* end confdefs.h. */
1517 $4
1518 #include <$2>
1519 _ACEOF
1520 if ac_fn_c_try_compile "$LINENO"
1521 then :
1522 eval "$3=yes"
1523 else case e in #(
1524 e) eval "$3=no" ;;
1525 esac
1526 fi
1527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1528 esac
1529 fi
1530 eval ac_res=\$$3
1531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1532 printf "%s\n" "$ac_res" >&6; }
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534
1535 } # ac_fn_c_check_header_compile
1536
1537 # ac_fn_c_try_run LINENO
1538 # ----------------------
1539 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1540 # executables *can* be run.
1541 ac_fn_c_try_run ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if { { ac_try="$ac_link"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 printf "%s\n" "$ac_try_echo"; } >&5
1551 (eval "$ac_link") 2>&5
1552 ac_status=$?
1553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1555 { { case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 printf "%s\n" "$ac_try_echo"; } >&5
1561 (eval "$ac_try") 2>&5
1562 ac_status=$?
1563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; }; }
1565 then :
1566 ac_retval=0
1567 else case e in #(
1568 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1569 printf "%s\n" "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=$ac_status ;;
1573 esac
1574 fi
1575 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_run
1580
1581 # ac_fn_c_try_link LINENO
1582 # -----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_link ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1588 if { { ac_try="$ac_link"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 printf "%s\n" "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest$ac_exeext && {
1607 test "$cross_compiling" = yes ||
1608 test -x conftest$ac_exeext
1609 }
1610 then :
1611 ac_retval=0
1612 else case e in #(
1613 e) printf "%s\n" "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1 ;;
1617 esac
1618 fi
1619 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1620 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1621 # interfere with the next link command; also delete a directory that is
1622 # left behind by Apple's compiler. We do this before executing the actions.
1623 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_link
1628
1629 # ac_fn_c_check_func LINENO FUNC VAR
1630 # ----------------------------------
1631 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1632 ac_fn_c_check_func ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 printf %s "checking for $2... " >&6; }
1637 if eval test \${$3+y}
1638 then :
1639 printf %s "(cached) " >&6
1640 else case e in #(
1641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1643 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1645 #define $2 innocuous_$2
1646
1647 /* System header to define __stub macros and hopefully few prototypes,
1648 which can conflict with char $2 (void); below. */
1649
1650 #include <limits.h>
1651 #undef $2
1652
1653 /* Override any GCC internal prototype to avoid an error.
1654 Use char because int might match the return type of a GCC
1655 builtin and then its argument prototype would still apply. */
1656 #ifdef __cplusplus
1657 extern "C"
1658 #endif
1659 char $2 (void);
1660 /* The GNU C library defines this for functions which it implements
1661 to always fail with ENOSYS. Some functions are actually named
1662 something starting with __ and the normal name is an alias. */
1663 #if defined __stub_$2 || defined __stub___$2
1664 choke me
1665 #endif
1666
1667 int
1668 main (void)
1669 {
1670 return $2 ();
1671 ;
1672 return 0;
1673 }
1674 _ACEOF
1675 if ac_fn_c_try_link "$LINENO"
1676 then :
1677 eval "$3=yes"
1678 else case e in #(
1679 e) eval "$3=no" ;;
1680 esac
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1683 conftest$ac_exeext conftest.$ac_ext ;;
1684 esac
1685 fi
1686 eval ac_res=\$$3
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 printf "%s\n" "$ac_res" >&6; }
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691 } # ac_fn_c_check_func
1692 ac_configure_args_raw=
1693 for ac_arg
1694 do
1695 case $ac_arg in
1696 *\'*)
1697 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698 esac
1699 as_fn_append ac_configure_args_raw " '$ac_arg'"
1700 done
1701
1702 case $ac_configure_args_raw in
1703 *$as_nl*)
1704 ac_safe_unquote= ;;
1705 *)
1706 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1707 ac_unsafe_a="$ac_unsafe_z#~"
1708 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1709 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1710 esac
1711
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1715
1716 It was created by rlfe $as_me 0.4, which was
1717 generated by GNU Autoconf 2.72. Invocation command line was
1718
1719 $ $0$ac_configure_args_raw
1720
1721 _ACEOF
1722 exec 5>>config.log
1723 {
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1728
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1737
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1745
1746 _ASUNAME
1747
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 case $as_dir in #(((
1753 '') as_dir=./ ;;
1754 */) ;;
1755 *) as_dir=$as_dir/ ;;
1756 esac
1757 printf "%s\n" "PATH: $as_dir"
1758 done
1759 IFS=$as_save_IFS
1760
1761 } >&5
1762
1763 cat >&5 <<_ACEOF
1764
1765
1766 ## ----------- ##
1767 ## Core tests. ##
1768 ## ----------- ##
1769
1770 _ACEOF
1771
1772
1773 # Keep a trace of the command line.
1774 # Strip out --no-create and --no-recursion so they do not pile up.
1775 # Strip out --silent because we don't want to record it for future runs.
1776 # Also quote any args containing shell meta-characters.
1777 # Make two passes to allow for proper duplicate-argument suppression.
1778 ac_configure_args=
1779 ac_configure_args0=
1780 ac_configure_args1=
1781 ac_must_keep_next=false
1782 for ac_pass in 1 2
1783 do
1784 for ac_arg
1785 do
1786 case $ac_arg in
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1790 continue ;;
1791 *\'*)
1792 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 esac
1794 case $ac_pass in
1795 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1796 2)
1797 as_fn_append ac_configure_args1 " '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1800 else
1801 case $ac_arg in
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 esac
1809 ;;
1810 -* ) ac_must_keep_next=true ;;
1811 esac
1812 fi
1813 as_fn_append ac_configure_args " '$ac_arg'"
1814 ;;
1815 esac
1816 done
1817 done
1818 { ac_configure_args0=; unset ac_configure_args0;}
1819 { ac_configure_args1=; unset ac_configure_args1;}
1820
1821 # When interrupted or exit'd, cleanup temporary files, and complete
1822 # config.log. We remove comments because anyway the quotes in there
1823 # would cause problems or look ugly.
1824 # WARNING: Use '\'' to represent an apostrophe within the trap.
1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826 trap 'exit_status=$?
1827 # Sanitize IFS.
1828 IFS=" "" $as_nl"
1829 # Save into config.log some information that might help in debugging.
1830 {
1831 echo
1832
1833 printf "%s\n" "## ---------------- ##
1834 ## Cache variables. ##
1835 ## ---------------- ##"
1836 echo
1837 # The following way of writing the cache mishandles newlines in values,
1838 (
1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840 eval ac_val=\$$ac_var
1841 case $ac_val in #(
1842 *${as_nl}*)
1843 case $ac_var in #(
1844 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1845 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1846 esac
1847 case $ac_var in #(
1848 _ | IFS | as_nl) ;; #(
1849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1850 *) { eval $ac_var=; unset $ac_var;} ;;
1851 esac ;;
1852 esac
1853 done
1854 (set) 2>&1 |
1855 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1856 *${as_nl}ac_space=\ *)
1857 sed -n \
1858 "s/'\''/'\''\\\\'\'''\''/g;
1859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860 ;; #(
1861 *)
1862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1863 ;;
1864 esac |
1865 sort
1866 )
1867 echo
1868
1869 printf "%s\n" "## ----------------- ##
1870 ## Output variables. ##
1871 ## ----------------- ##"
1872 echo
1873 for ac_var in $ac_subst_vars
1874 do
1875 eval ac_val=\$$ac_var
1876 case $ac_val in
1877 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878 esac
1879 printf "%s\n" "$ac_var='\''$ac_val'\''"
1880 done | sort
1881 echo
1882
1883 if test -n "$ac_subst_files"; then
1884 printf "%s\n" "## ------------------- ##
1885 ## File substitutions. ##
1886 ## ------------------- ##"
1887 echo
1888 for ac_var in $ac_subst_files
1889 do
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 printf "%s\n" "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1897 fi
1898
1899 if test -s confdefs.h; then
1900 printf "%s\n" "## ----------- ##
1901 ## confdefs.h. ##
1902 ## ----------- ##"
1903 echo
1904 cat confdefs.h
1905 echo
1906 fi
1907 test "$ac_signal" != 0 &&
1908 printf "%s\n" "$as_me: caught signal $ac_signal"
1909 printf "%s\n" "$as_me: exit $exit_status"
1910 } >&5
1911 rm -f core *.core core.conftest.* &&
1912 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1913 exit $exit_status
1914 ' 0
1915 for ac_signal in 1 2 13 15; do
1916 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1917 done
1918 ac_signal=0
1919
1920 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1921 rm -f -r conftest* confdefs.h
1922
1923 printf "%s\n" "/* confdefs.h */" > confdefs.h
1924
1925 # Predefined preprocessor variables.
1926
1927 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1928
1929 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1930
1931 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1932
1933 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1934
1935 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1936
1937 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1938
1939
1940 # Let the site file select an alternate cache file if it wants to.
1941 # Prefer an explicitly selected file to automatically selected ones.
1942 if test -n "$CONFIG_SITE"; then
1943 ac_site_files="$CONFIG_SITE"
1944 elif test "x$prefix" != xNONE; then
1945 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1946 else
1947 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1948 fi
1949
1950 for ac_site_file in $ac_site_files
1951 do
1952 case $ac_site_file in #(
1953 */*) :
1954 ;; #(
1955 *) :
1956 ac_site_file=./$ac_site_file ;;
1957 esac
1958 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1960 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1961 sed 's/^/| /' "$ac_site_file" >&5
1962 . "$ac_site_file" \
1963 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1964 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1965 as_fn_error $? "failed to load site script $ac_site_file
1966 See 'config.log' for more details" "$LINENO" 5; }
1967 fi
1968 done
1969
1970 if test -r "$cache_file"; then
1971 # Some versions of bash will fail to source /dev/null (special files
1972 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1973 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1975 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1976 case $cache_file in
1977 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1978 *) . "./$cache_file";;
1979 esac
1980 fi
1981 else
1982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1983 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1984 >$cache_file
1985 fi
1986
1987 # Test code for whether the C compiler supports C89 (global declarations)
1988 ac_c_conftest_c89_globals='
1989 /* Does the compiler advertise C89 conformance?
1990 Do not test the value of __STDC__, because some compilers set it to 0
1991 while being otherwise adequately conformant. */
1992 #if !defined __STDC__
1993 # error "Compiler does not advertise C89 conformance"
1994 #endif
1995
1996 #include <stddef.h>
1997 #include <stdarg.h>
1998 struct stat;
1999 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2000 struct buf { int x; };
2001 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2002 static char *e (char **p, int i)
2003 {
2004 return p[i];
2005 }
2006 static char *f (char * (*g) (char **, int), char **p, ...)
2007 {
2008 char *s;
2009 va_list v;
2010 va_start (v,p);
2011 s = g (p, va_arg (v,int));
2012 va_end (v);
2013 return s;
2014 }
2015
2016 /* C89 style stringification. */
2017 #define noexpand_stringify(a) #a
2018 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2019
2020 /* C89 style token pasting. Exercises some of the corner cases that
2021 e.g. old MSVC gets wrong, but not very hard. */
2022 #define noexpand_concat(a,b) a##b
2023 #define expand_concat(a,b) noexpand_concat(a,b)
2024 extern int vA;
2025 extern int vbee;
2026 #define aye A
2027 #define bee B
2028 int *pvA = &expand_concat(v,aye);
2029 int *pvbee = &noexpand_concat(v,bee);
2030
2031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2032 function prototypes and stuff, but not \xHH hex character constants.
2033 These do not provoke an error unfortunately, instead are silently treated
2034 as an "x". The following induces an error, until -std is added to get
2035 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2036 array size at least. It is necessary to write \x00 == 0 to get something
2037 that is true only with -std. */
2038 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2039
2040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2041 inside strings and character constants. */
2042 #define FOO(x) '\''x'\''
2043 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2044
2045 int test (int i, double x);
2046 struct s1 {int (*f) (int a);};
2047 struct s2 {int (*f) (double a);};
2048 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2049 int, int);'
2050
2051 # Test code for whether the C compiler supports C89 (body of main).
2052 ac_c_conftest_c89_main='
2053 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2054 '
2055
2056 # Test code for whether the C compiler supports C99 (global declarations)
2057 ac_c_conftest_c99_globals='
2058 /* Does the compiler advertise C99 conformance? */
2059 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2060 # error "Compiler does not advertise C99 conformance"
2061 #endif
2062
2063 // See if C++-style comments work.
2064
2065 #include <stdbool.h>
2066 extern int puts (const char *);
2067 extern int printf (const char *, ...);
2068 extern int dprintf (int, const char *, ...);
2069 extern void *malloc (size_t);
2070 extern void free (void *);
2071
2072 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2073 // dprintf is used instead of fprintf to avoid needing to declare
2074 // FILE and stderr.
2075 #define debug(...) dprintf (2, __VA_ARGS__)
2076 #define showlist(...) puts (#__VA_ARGS__)
2077 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2078 static void
2079 test_varargs_macros (void)
2080 {
2081 int x = 1234;
2082 int y = 5678;
2083 debug ("Flag");
2084 debug ("X = %d\n", x);
2085 showlist (The first, second, and third items.);
2086 report (x>y, "x is %d but y is %d", x, y);
2087 }
2088
2089 // Check long long types.
2090 #define BIG64 18446744073709551615ull
2091 #define BIG32 4294967295ul
2092 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2093 #if !BIG_OK
2094 #error "your preprocessor is broken"
2095 #endif
2096 #if BIG_OK
2097 #else
2098 #error "your preprocessor is broken"
2099 #endif
2100 static long long int bignum = -9223372036854775807LL;
2101 static unsigned long long int ubignum = BIG64;
2102
2103 struct incomplete_array
2104 {
2105 int datasize;
2106 double data[];
2107 };
2108
2109 struct named_init {
2110 int number;
2111 const wchar_t *name;
2112 double average;
2113 };
2114
2115 typedef const char *ccp;
2116
2117 static inline int
2118 test_restrict (ccp restrict text)
2119 {
2120 // Iterate through items via the restricted pointer.
2121 // Also check for declarations in for loops.
2122 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2123 continue;
2124 return 0;
2125 }
2126
2127 // Check varargs and va_copy.
2128 static bool
2129 test_varargs (const char *format, ...)
2130 {
2131 va_list args;
2132 va_start (args, format);
2133 va_list args_copy;
2134 va_copy (args_copy, args);
2135
2136 const char *str = "";
2137 int number = 0;
2138 float fnumber = 0;
2139
2140 while (*format)
2141 {
2142 switch (*format++)
2143 {
2144 case '\''s'\'': // string
2145 str = va_arg (args_copy, const char *);
2146 break;
2147 case '\''d'\'': // int
2148 number = va_arg (args_copy, int);
2149 break;
2150 case '\''f'\'': // float
2151 fnumber = va_arg (args_copy, double);
2152 break;
2153 default:
2154 break;
2155 }
2156 }
2157 va_end (args_copy);
2158 va_end (args);
2159
2160 return *str && number && fnumber;
2161 }
2162 '
2163
2164 # Test code for whether the C compiler supports C99 (body of main).
2165 ac_c_conftest_c99_main='
2166 // Check bool.
2167 _Bool success = false;
2168 success |= (argc != 0);
2169
2170 // Check restrict.
2171 if (test_restrict ("String literal") == 0)
2172 success = true;
2173 char *restrict newvar = "Another string";
2174
2175 // Check varargs.
2176 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2177 test_varargs_macros ();
2178
2179 // Check flexible array members.
2180 struct incomplete_array *ia =
2181 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2182 ia->datasize = 10;
2183 for (int i = 0; i < ia->datasize; ++i)
2184 ia->data[i] = i * 1.234;
2185 // Work around memory leak warnings.
2186 free (ia);
2187
2188 // Check named initializers.
2189 struct named_init ni = {
2190 .number = 34,
2191 .name = L"Test wide string",
2192 .average = 543.34343,
2193 };
2194
2195 ni.number = 58;
2196
2197 int dynamic_array[ni.number];
2198 dynamic_array[0] = argv[0][0];
2199 dynamic_array[ni.number - 1] = 543;
2200
2201 // work around unused variable warnings
2202 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2203 || dynamic_array[ni.number - 1] != 543);
2204 '
2205
2206 # Test code for whether the C compiler supports C11 (global declarations)
2207 ac_c_conftest_c11_globals='
2208 /* Does the compiler advertise C11 conformance? */
2209 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2210 # error "Compiler does not advertise C11 conformance"
2211 #endif
2212
2213 // Check _Alignas.
2214 char _Alignas (double) aligned_as_double;
2215 char _Alignas (0) no_special_alignment;
2216 extern char aligned_as_int;
2217 char _Alignas (0) _Alignas (int) aligned_as_int;
2218
2219 // Check _Alignof.
2220 enum
2221 {
2222 int_alignment = _Alignof (int),
2223 int_array_alignment = _Alignof (int[100]),
2224 char_alignment = _Alignof (char)
2225 };
2226 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2227
2228 // Check _Noreturn.
2229 int _Noreturn does_not_return (void) { for (;;) continue; }
2230
2231 // Check _Static_assert.
2232 struct test_static_assert
2233 {
2234 int x;
2235 _Static_assert (sizeof (int) <= sizeof (long int),
2236 "_Static_assert does not work in struct");
2237 long int y;
2238 };
2239
2240 // Check UTF-8 literals.
2241 #define u8 syntax error!
2242 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2243
2244 // Check duplicate typedefs.
2245 typedef long *long_ptr;
2246 typedef long int *long_ptr;
2247 typedef long_ptr long_ptr;
2248
2249 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2250 struct anonymous
2251 {
2252 union {
2253 struct { int i; int j; };
2254 struct { int k; long int l; } w;
2255 };
2256 int m;
2257 } v1;
2258 '
2259
2260 # Test code for whether the C compiler supports C11 (body of main).
2261 ac_c_conftest_c11_main='
2262 _Static_assert ((offsetof (struct anonymous, i)
2263 == offsetof (struct anonymous, w.k)),
2264 "Anonymous union alignment botch");
2265 v1.i = 2;
2266 v1.w.k = 5;
2267 ok |= v1.i != 5;
2268 '
2269
2270 # Test code for whether the C compiler supports C11 (complete).
2271 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2272 ${ac_c_conftest_c99_globals}
2273 ${ac_c_conftest_c11_globals}
2274
2275 int
2276 main (int argc, char **argv)
2277 {
2278 int ok = 0;
2279 ${ac_c_conftest_c89_main}
2280 ${ac_c_conftest_c99_main}
2281 ${ac_c_conftest_c11_main}
2282 return ok;
2283 }
2284 "
2285
2286 # Test code for whether the C compiler supports C99 (complete).
2287 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2288 ${ac_c_conftest_c99_globals}
2289
2290 int
2291 main (int argc, char **argv)
2292 {
2293 int ok = 0;
2294 ${ac_c_conftest_c89_main}
2295 ${ac_c_conftest_c99_main}
2296 return ok;
2297 }
2298 "
2299
2300 # Test code for whether the C compiler supports C89 (complete).
2301 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2302
2303 int
2304 main (int argc, char **argv)
2305 {
2306 int ok = 0;
2307 ${ac_c_conftest_c89_main}
2308 return ok;
2309 }
2310 "
2311
2312 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2313 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2314 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2315 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2316 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2317 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2318 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2319 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2320 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2321 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2322 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2323 # Check that the precious variables saved in the cache have kept the same
2324 # value.
2325 ac_cache_corrupted=false
2326 for ac_var in $ac_precious_vars; do
2327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2328 eval ac_new_set=\$ac_env_${ac_var}_set
2329 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2330 eval ac_new_val=\$ac_env_${ac_var}_value
2331 case $ac_old_set,$ac_new_set in
2332 set,)
2333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2334 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2336 ,set)
2337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2338 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2339 ac_cache_corrupted=: ;;
2340 ,);;
2341 *)
2342 if test "x$ac_old_val" != "x$ac_new_val"; then
2343 # differences in whitespace do not lead to failure.
2344 ac_old_val_w=`echo x $ac_old_val`
2345 ac_new_val_w=`echo x $ac_new_val`
2346 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2348 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2349 ac_cache_corrupted=:
2350 else
2351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2352 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2353 eval $ac_var=\$ac_old_val
2354 fi
2355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2356 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2358 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2359 fi;;
2360 esac
2361 # Pass precious variables to config.status.
2362 if test "$ac_new_set" = set; then
2363 case $ac_new_val in
2364 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2365 *) ac_arg=$ac_var=$ac_new_val ;;
2366 esac
2367 case " $ac_configure_args " in
2368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2369 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2370 esac
2371 fi
2372 done
2373 if $ac_cache_corrupted; then
2374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2375 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2377 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2378 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2379 and start over" "$LINENO" 5
2380 fi
2381 ## -------------------- ##
2382 ## Main body of script. ##
2383 ## -------------------- ##
2384
2385 ac_ext=c
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390
2391
2392
2393 ac_config_headers="$ac_config_headers config.h"
2394
2395
2396
2397
2398
2399
2400 old_CFLAGS="$CFLAGS"
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410 ac_ext=c
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 if test -n "$ac_tool_prefix"; then
2416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 printf %s "checking for $ac_word... " >&6; }
2420 if test ${ac_cv_prog_CC+y}
2421 then :
2422 printf %s "(cached) " >&6
2423 else case e in #(
2424 e) if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430 IFS=$as_save_IFS
2431 case $as_dir in #(((
2432 '') as_dir=./ ;;
2433 */) ;;
2434 *) as_dir=$as_dir/ ;;
2435 esac
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2440 break 2
2441 fi
2442 done
2443 done
2444 IFS=$as_save_IFS
2445
2446 fi ;;
2447 esac
2448 fi
2449 CC=$ac_cv_prog_CC
2450 if test -n "$CC"; then
2451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452 printf "%s\n" "$CC" >&6; }
2453 else
2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 printf "%s\n" "no" >&6; }
2456 fi
2457
2458
2459 fi
2460 if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc; ac_word=$2
2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 printf %s "checking for $ac_word... " >&6; }
2466 if test ${ac_cv_prog_ac_ct_CC+y}
2467 then :
2468 printf %s "(cached) " >&6
2469 else case e in #(
2470 e) if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 case $as_dir in #(((
2478 '') as_dir=./ ;;
2479 */) ;;
2480 *) as_dir=$as_dir/ ;;
2481 esac
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2484 ac_cv_prog_ac_ct_CC="gcc"
2485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi ;;
2493 esac
2494 fi
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2498 printf "%s\n" "$ac_ct_CC" >&6; }
2499 else
2500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 printf "%s\n" "no" >&6; }
2502 fi
2503
2504 if test "x$ac_ct_CC" = x; then
2505 CC=""
2506 else
2507 case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2510 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511 ac_tool_warned=yes ;;
2512 esac
2513 CC=$ac_ct_CC
2514 fi
2515 else
2516 CC="$ac_cv_prog_CC"
2517 fi
2518
2519 if test -z "$CC"; then
2520 if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}cc; ac_word=$2
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 printf %s "checking for $ac_word... " >&6; }
2525 if test ${ac_cv_prog_CC+y}
2526 then :
2527 printf %s "(cached) " >&6
2528 else case e in #(
2529 e) if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 case $as_dir in #(((
2537 '') as_dir=./ ;;
2538 */) ;;
2539 *) as_dir=$as_dir/ ;;
2540 esac
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_CC="${ac_tool_prefix}cc"
2544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi ;;
2552 esac
2553 fi
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2557 printf "%s\n" "$CC" >&6; }
2558 else
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 printf "%s\n" "no" >&6; }
2561 fi
2562
2563
2564 fi
2565 fi
2566 if test -z "$CC"; then
2567 # Extract the first word of "cc", so it can be a program name with args.
2568 set dummy cc; ac_word=$2
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 printf %s "checking for $ac_word... " >&6; }
2571 if test ${ac_cv_prog_CC+y}
2572 then :
2573 printf %s "(cached) " >&6
2574 else case e in #(
2575 e) if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577 else
2578 ac_prog_rejected=no
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 case $as_dir in #(((
2584 '') as_dir=./ ;;
2585 */) ;;
2586 *) as_dir=$as_dir/ ;;
2587 esac
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2590 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2592 continue
2593 fi
2594 ac_cv_prog_CC="cc"
2595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2605 shift
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2610 shift
2611 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2612 fi
2613 fi
2614 fi ;;
2615 esac
2616 fi
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2620 printf "%s\n" "$CC" >&6; }
2621 else
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 printf "%s\n" "no" >&6; }
2624 fi
2625
2626
2627 fi
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2631 do
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 printf %s "checking for $ac_word... " >&6; }
2636 if test ${ac_cv_prog_CC+y}
2637 then :
2638 printf %s "(cached) " >&6
2639 else case e in #(
2640 e) if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646 IFS=$as_save_IFS
2647 case $as_dir in #(((
2648 '') as_dir=./ ;;
2649 */) ;;
2650 *) as_dir=$as_dir/ ;;
2651 esac
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi ;;
2663 esac
2664 fi
2665 CC=$ac_cv_prog_CC
2666 if test -n "$CC"; then
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 printf "%s\n" "$CC" >&6; }
2669 else
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 printf "%s\n" "no" >&6; }
2672 fi
2673
2674
2675 test -n "$CC" && break
2676 done
2677 fi
2678 if test -z "$CC"; then
2679 ac_ct_CC=$CC
2680 for ac_prog in cl.exe
2681 do
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 printf %s "checking for $ac_word... " >&6; }
2686 if test ${ac_cv_prog_ac_ct_CC+y}
2687 then :
2688 printf %s "(cached) " >&6
2689 else case e in #(
2690 e) if test -n "$ac_ct_CC"; then
2691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696 IFS=$as_save_IFS
2697 case $as_dir in #(((
2698 '') as_dir=./ ;;
2699 */) ;;
2700 *) as_dir=$as_dir/ ;;
2701 esac
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2704 ac_cv_prog_ac_ct_CC="$ac_prog"
2705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi ;;
2713 esac
2714 fi
2715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2716 if test -n "$ac_ct_CC"; then
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2718 printf "%s\n" "$ac_ct_CC" >&6; }
2719 else
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 printf "%s\n" "no" >&6; }
2722 fi
2723
2724
2725 test -n "$ac_ct_CC" && break
2726 done
2727
2728 if test "x$ac_ct_CC" = x; then
2729 CC=""
2730 else
2731 case $cross_compiling:$ac_tool_warned in
2732 yes:)
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2734 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2735 ac_tool_warned=yes ;;
2736 esac
2737 CC=$ac_ct_CC
2738 fi
2739 fi
2740
2741 fi
2742 if test -z "$CC"; then
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}clang; ac_word=$2
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 printf %s "checking for $ac_word... " >&6; }
2748 if test ${ac_cv_prog_CC+y}
2749 then :
2750 printf %s "(cached) " >&6
2751 else case e in #(
2752 e) if test -n "$CC"; then
2753 ac_cv_prog_CC="$CC" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2757 do
2758 IFS=$as_save_IFS
2759 case $as_dir in #(((
2760 '') as_dir=./ ;;
2761 */) ;;
2762 *) as_dir=$as_dir/ ;;
2763 esac
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_CC="${ac_tool_prefix}clang"
2767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi ;;
2775 esac
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 printf "%s\n" "$CC" >&6; }
2781 else
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 printf "%s\n" "no" >&6; }
2784 fi
2785
2786
2787 fi
2788 if test -z "$ac_cv_prog_CC"; then
2789 ac_ct_CC=$CC
2790 # Extract the first word of "clang", so it can be a program name with args.
2791 set dummy clang; ac_word=$2
2792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 printf %s "checking for $ac_word... " >&6; }
2794 if test ${ac_cv_prog_ac_ct_CC+y}
2795 then :
2796 printf %s "(cached) " >&6
2797 else case e in #(
2798 e) if test -n "$ac_ct_CC"; then
2799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 case $as_dir in #(((
2806 '') as_dir=./ ;;
2807 */) ;;
2808 *) as_dir=$as_dir/ ;;
2809 esac
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_ac_ct_CC="clang"
2813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi ;;
2821 esac
2822 fi
2823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824 if test -n "$ac_ct_CC"; then
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2826 printf "%s\n" "$ac_ct_CC" >&6; }
2827 else
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 printf "%s\n" "no" >&6; }
2830 fi
2831
2832 if test "x$ac_ct_CC" = x; then
2833 CC=""
2834 else
2835 case $cross_compiling:$ac_tool_warned in
2836 yes:)
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839 ac_tool_warned=yes ;;
2840 esac
2841 CC=$ac_ct_CC
2842 fi
2843 else
2844 CC="$ac_cv_prog_CC"
2845 fi
2846
2847 fi
2848
2849
2850 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2851 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2852 as_fn_error $? "no acceptable C compiler found in \$PATH
2853 See 'config.log' for more details" "$LINENO" 5; }
2854
2855 # Provide some information about the compiler.
2856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2857 set X $ac_compile
2858 ac_compiler=$2
2859 for ac_option in --version -v -V -qversion -version; do
2860 { { ac_try="$ac_compiler $ac_option >&5"
2861 case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864 esac
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 printf "%s\n" "$ac_try_echo"; } >&5
2867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2868 ac_status=$?
2869 if test -s conftest.err; then
2870 sed '10a\
2871 ... rest of stderr output deleted ...
2872 10q' conftest.err >conftest.er1
2873 cat conftest.er1 >&5
2874 fi
2875 rm -f conftest.er1 conftest.err
2876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; }
2878 done
2879
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2882
2883 int
2884 main (void)
2885 {
2886
2887 ;
2888 return 0;
2889 }
2890 _ACEOF
2891 ac_clean_files_save=$ac_clean_files
2892 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2893 # Try to create an executable without -o first, disregard a.out.
2894 # It will help us diagnose broken compilers, and finding out an intuition
2895 # of exeext.
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2897 printf %s "checking whether the C compiler works... " >&6; }
2898 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2899
2900 # The possible output files:
2901 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2902
2903 ac_rmfiles=
2904 for ac_file in $ac_files
2905 do
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2908 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2909 esac
2910 done
2911 rm -f $ac_rmfiles
2912
2913 if { { ac_try="$ac_link_default"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 printf "%s\n" "$ac_try_echo"; } >&5
2920 (eval "$ac_link_default") 2>&5
2921 ac_status=$?
2922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }
2924 then :
2925 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
2926 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
2927 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2928 # so that the user can short-circuit this test for compilers unknown to
2929 # Autoconf.
2930 for ac_file in $ac_files ''
2931 do
2932 test -f "$ac_file" || continue
2933 case $ac_file in
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2935 ;;
2936 [ab].out )
2937 # We found the default executable, but exeext='' is most
2938 # certainly right.
2939 break;;
2940 *.* )
2941 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2942 then :; else
2943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 fi
2945 # We set ac_cv_exeext here because the later test for it is not
2946 # safe: cross compilers may not add the suffix if given an '-o'
2947 # argument, so we may need to know it at that point already.
2948 # Even if this section looks crufty: it has the advantage of
2949 # actually working.
2950 break;;
2951 * )
2952 break;;
2953 esac
2954 done
2955 test "$ac_cv_exeext" = no && ac_cv_exeext=
2956
2957 else case e in #(
2958 e) ac_file='' ;;
2959 esac
2960 fi
2961 if test -z "$ac_file"
2962 then :
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 printf "%s\n" "no" >&6; }
2965 printf "%s\n" "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2969 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2970 as_fn_error 77 "C compiler cannot create executables
2971 See 'config.log' for more details" "$LINENO" 5; }
2972 else case e in #(
2973 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974 printf "%s\n" "yes" >&6; } ;;
2975 esac
2976 fi
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2978 printf %s "checking for C compiler default output file name... " >&6; }
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2980 printf "%s\n" "$ac_file" >&6; }
2981 ac_exeext=$ac_cv_exeext
2982
2983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2984 ac_clean_files=$ac_clean_files_save
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2986 printf %s "checking for suffix of executables... " >&6; }
2987 if { { ac_try="$ac_link"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2993 printf "%s\n" "$ac_try_echo"; } >&5
2994 (eval "$ac_link") 2>&5
2995 ac_status=$?
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }
2998 then :
2999 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3000 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3001 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3002 # 'rm'.
3003 for ac_file in conftest.exe conftest conftest.*; do
3004 test -f "$ac_file" || continue
3005 case $ac_file in
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3007 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008 break;;
3009 * ) break;;
3010 esac
3011 done
3012 else case e in #(
3013 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3014 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3015 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3016 See 'config.log' for more details" "$LINENO" 5; } ;;
3017 esac
3018 fi
3019 rm -f conftest conftest$ac_cv_exeext
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3021 printf "%s\n" "$ac_cv_exeext" >&6; }
3022
3023 rm -f conftest.$ac_ext
3024 EXEEXT=$ac_cv_exeext
3025 ac_exeext=$EXEEXT
3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027 /* end confdefs.h. */
3028 #include <stdio.h>
3029 int
3030 main (void)
3031 {
3032 FILE *f = fopen ("conftest.out", "w");
3033 if (!f)
3034 return 1;
3035 return ferror (f) || fclose (f) != 0;
3036
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 ac_clean_files="$ac_clean_files conftest.out"
3042 # Check that the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3045 printf %s "checking whether we are cross compiling... " >&6; }
3046 if test "$cross_compiling" != yes; then
3047 { { ac_try="$ac_link"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 printf "%s\n" "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3055 ac_status=$?
3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3058 if { ac_try='./conftest$ac_cv_exeext'
3059 { { case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 printf "%s\n" "$ac_try_echo"; } >&5
3065 (eval "$ac_try") 2>&5
3066 ac_status=$?
3067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }; }; then
3069 cross_compiling=no
3070 else
3071 if test "$cross_compiling" = maybe; then
3072 cross_compiling=yes
3073 else
3074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3075 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3076 as_fn_error 77 "cannot run C compiled programs.
3077 If you meant to cross compile, use '--host'.
3078 See 'config.log' for more details" "$LINENO" 5; }
3079 fi
3080 fi
3081 fi
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3083 printf "%s\n" "$cross_compiling" >&6; }
3084
3085 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3086 conftest.o conftest.obj conftest.out
3087 ac_clean_files=$ac_clean_files_save
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3089 printf %s "checking for suffix of object files... " >&6; }
3090 if test ${ac_cv_objext+y}
3091 then :
3092 printf %s "(cached) " >&6
3093 else case e in #(
3094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3096
3097 int
3098 main (void)
3099 {
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.o conftest.obj
3106 if { { ac_try="$ac_compile"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 printf "%s\n" "$ac_try_echo"; } >&5
3113 (eval "$ac_compile") 2>&5
3114 ac_status=$?
3115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }
3117 then :
3118 for ac_file in conftest.o conftest.obj conftest.*; do
3119 test -f "$ac_file" || continue;
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123 break;;
3124 esac
3125 done
3126 else case e in #(
3127 e) printf "%s\n" "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3131 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3132 as_fn_error $? "cannot compute suffix of object files: cannot compile
3133 See 'config.log' for more details" "$LINENO" 5; } ;;
3134 esac
3135 fi
3136 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3137 esac
3138 fi
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3140 printf "%s\n" "$ac_cv_objext" >&6; }
3141 OBJEXT=$ac_cv_objext
3142 ac_objext=$OBJEXT
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3144 printf %s "checking whether the compiler supports GNU C... " >&6; }
3145 if test ${ac_cv_c_compiler_gnu+y}
3146 then :
3147 printf %s "(cached) " >&6
3148 else case e in #(
3149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3151
3152 int
3153 main (void)
3154 {
3155 #ifndef __GNUC__
3156 choke me
3157 #endif
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 if ac_fn_c_try_compile "$LINENO"
3164 then :
3165 ac_compiler_gnu=yes
3166 else case e in #(
3167 e) ac_compiler_gnu=no ;;
3168 esac
3169 fi
3170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3172 ;;
3173 esac
3174 fi
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3176 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179 if test $ac_compiler_gnu = yes; then
3180 GCC=yes
3181 else
3182 GCC=
3183 fi
3184 ac_test_CFLAGS=${CFLAGS+y}
3185 ac_save_CFLAGS=$CFLAGS
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3187 printf %s "checking whether $CC accepts -g... " >&6; }
3188 if test ${ac_cv_prog_cc_g+y}
3189 then :
3190 printf %s "(cached) " >&6
3191 else case e in #(
3192 e) ac_save_c_werror_flag=$ac_c_werror_flag
3193 ac_c_werror_flag=yes
3194 ac_cv_prog_cc_g=no
3195 CFLAGS="-g"
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3198
3199 int
3200 main (void)
3201 {
3202
3203 ;
3204 return 0;
3205 }
3206 _ACEOF
3207 if ac_fn_c_try_compile "$LINENO"
3208 then :
3209 ac_cv_prog_cc_g=yes
3210 else case e in #(
3211 e) CFLAGS=""
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3214
3215 int
3216 main (void)
3217 {
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"
3224 then :
3225
3226 else case e in #(
3227 e) ac_c_werror_flag=$ac_save_c_werror_flag
3228 CFLAGS="-g"
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3231
3232 int
3233 main (void)
3234 {
3235
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 if ac_fn_c_try_compile "$LINENO"
3241 then :
3242 ac_cv_prog_cc_g=yes
3243 fi
3244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3245 esac
3246 fi
3247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3248 esac
3249 fi
3250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3251 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3252 esac
3253 fi
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3255 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3256 if test $ac_test_CFLAGS; then
3257 CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259 if test "$GCC" = yes; then
3260 CFLAGS="-g -O2"
3261 else
3262 CFLAGS="-g"
3263 fi
3264 else
3265 if test "$GCC" = yes; then
3266 CFLAGS="-O2"
3267 else
3268 CFLAGS=
3269 fi
3270 fi
3271 ac_prog_cc_stdc=no
3272 if test x$ac_prog_cc_stdc = xno
3273 then :
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3275 printf %s "checking for $CC option to enable C11 features... " >&6; }
3276 if test ${ac_cv_prog_cc_c11+y}
3277 then :
3278 printf %s "(cached) " >&6
3279 else case e in #(
3280 e) ac_cv_prog_cc_c11=no
3281 ac_save_CC=$CC
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3284 $ac_c_conftest_c11_program
3285 _ACEOF
3286 for ac_arg in '' -std=gnu11
3287 do
3288 CC="$ac_save_CC $ac_arg"
3289 if ac_fn_c_try_compile "$LINENO"
3290 then :
3291 ac_cv_prog_cc_c11=$ac_arg
3292 fi
3293 rm -f core conftest.err conftest.$ac_objext conftest.beam
3294 test "x$ac_cv_prog_cc_c11" != "xno" && break
3295 done
3296 rm -f conftest.$ac_ext
3297 CC=$ac_save_CC ;;
3298 esac
3299 fi
3300
3301 if test "x$ac_cv_prog_cc_c11" = xno
3302 then :
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3304 printf "%s\n" "unsupported" >&6; }
3305 else case e in #(
3306 e) if test "x$ac_cv_prog_cc_c11" = x
3307 then :
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3309 printf "%s\n" "none needed" >&6; }
3310 else case e in #(
3311 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3312 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3313 CC="$CC $ac_cv_prog_cc_c11" ;;
3314 esac
3315 fi
3316 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3317 ac_prog_cc_stdc=c11 ;;
3318 esac
3319 fi
3320 fi
3321 if test x$ac_prog_cc_stdc = xno
3322 then :
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3324 printf %s "checking for $CC option to enable C99 features... " >&6; }
3325 if test ${ac_cv_prog_cc_c99+y}
3326 then :
3327 printf %s "(cached) " >&6
3328 else case e in #(
3329 e) ac_cv_prog_cc_c99=no
3330 ac_save_CC=$CC
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333 $ac_c_conftest_c99_program
3334 _ACEOF
3335 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3336 do
3337 CC="$ac_save_CC $ac_arg"
3338 if ac_fn_c_try_compile "$LINENO"
3339 then :
3340 ac_cv_prog_cc_c99=$ac_arg
3341 fi
3342 rm -f core conftest.err conftest.$ac_objext conftest.beam
3343 test "x$ac_cv_prog_cc_c99" != "xno" && break
3344 done
3345 rm -f conftest.$ac_ext
3346 CC=$ac_save_CC ;;
3347 esac
3348 fi
3349
3350 if test "x$ac_cv_prog_cc_c99" = xno
3351 then :
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3353 printf "%s\n" "unsupported" >&6; }
3354 else case e in #(
3355 e) if test "x$ac_cv_prog_cc_c99" = x
3356 then :
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3358 printf "%s\n" "none needed" >&6; }
3359 else case e in #(
3360 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3361 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3362 CC="$CC $ac_cv_prog_cc_c99" ;;
3363 esac
3364 fi
3365 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3366 ac_prog_cc_stdc=c99 ;;
3367 esac
3368 fi
3369 fi
3370 if test x$ac_prog_cc_stdc = xno
3371 then :
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3373 printf %s "checking for $CC option to enable C89 features... " >&6; }
3374 if test ${ac_cv_prog_cc_c89+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else case e in #(
3378 e) ac_cv_prog_cc_c89=no
3379 ac_save_CC=$CC
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382 $ac_c_conftest_c89_program
3383 _ACEOF
3384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3385 do
3386 CC="$ac_save_CC $ac_arg"
3387 if ac_fn_c_try_compile "$LINENO"
3388 then :
3389 ac_cv_prog_cc_c89=$ac_arg
3390 fi
3391 rm -f core conftest.err conftest.$ac_objext conftest.beam
3392 test "x$ac_cv_prog_cc_c89" != "xno" && break
3393 done
3394 rm -f conftest.$ac_ext
3395 CC=$ac_save_CC ;;
3396 esac
3397 fi
3398
3399 if test "x$ac_cv_prog_cc_c89" = xno
3400 then :
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402 printf "%s\n" "unsupported" >&6; }
3403 else case e in #(
3404 e) if test "x$ac_cv_prog_cc_c89" = x
3405 then :
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3407 printf "%s\n" "none needed" >&6; }
3408 else case e in #(
3409 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3410 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3411 CC="$CC $ac_cv_prog_cc_c89" ;;
3412 esac
3413 fi
3414 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3415 ac_prog_cc_stdc=c89 ;;
3416 esac
3417 fi
3418 fi
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3432 printf %s "checking how to run the C preprocessor... " >&6; }
3433 # On Suns, sometimes $CPP names a directory.
3434 if test -n "$CPP" && test -d "$CPP"; then
3435 CPP=
3436 fi
3437 if test -z "$CPP"; then
3438 if test ${ac_cv_prog_CPP+y}
3439 then :
3440 printf %s "(cached) " >&6
3441 else case e in #(
3442 e) # Double quotes because $CC needs to be expanded
3443 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3444 do
3445 ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3447 do
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # On the NeXT, cc -E runs the code through the compiler's parser,
3451 # not just through cpp. "Syntax error" is here to catch this case.
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454 #include <limits.h>
3455 Syntax error
3456 _ACEOF
3457 if ac_fn_c_try_cpp "$LINENO"
3458 then :
3459
3460 else case e in #(
3461 e) # Broken: fails on valid input.
3462 continue ;;
3463 esac
3464 fi
3465 rm -f conftest.err conftest.i conftest.$ac_ext
3466
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471 #include <ac_nonexistent.h>
3472 _ACEOF
3473 if ac_fn_c_try_cpp "$LINENO"
3474 then :
3475 # Broken: success on invalid input.
3476 continue
3477 else case e in #(
3478 e) # Passes both tests.
3479 ac_preproc_ok=:
3480 break ;;
3481 esac
3482 fi
3483 rm -f conftest.err conftest.i conftest.$ac_ext
3484
3485 done
3486 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487 rm -f conftest.i conftest.err conftest.$ac_ext
3488 if $ac_preproc_ok
3489 then :
3490 break
3491 fi
3492
3493 done
3494 ac_cv_prog_CPP=$CPP
3495 ;;
3496 esac
3497 fi
3498 CPP=$ac_cv_prog_CPP
3499 else
3500 ac_cv_prog_CPP=$CPP
3501 fi
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3503 printf "%s\n" "$CPP" >&6; }
3504 ac_preproc_ok=false
3505 for ac_c_preproc_warn_flag in '' yes
3506 do
3507 # Use a header file that comes with gcc, so configuring glibc
3508 # with a fresh cross-compiler works.
3509 # On the NeXT, cc -E runs the code through the compiler's parser,
3510 # not just through cpp. "Syntax error" is here to catch this case.
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513 #include <limits.h>
3514 Syntax error
3515 _ACEOF
3516 if ac_fn_c_try_cpp "$LINENO"
3517 then :
3518
3519 else case e in #(
3520 e) # Broken: fails on valid input.
3521 continue ;;
3522 esac
3523 fi
3524 rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if ac_fn_c_try_cpp "$LINENO"
3533 then :
3534 # Broken: success on invalid input.
3535 continue
3536 else case e in #(
3537 e) # Passes both tests.
3538 ac_preproc_ok=:
3539 break ;;
3540 esac
3541 fi
3542 rm -f conftest.err conftest.i conftest.$ac_ext
3543
3544 done
3545 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.i conftest.err conftest.$ac_ext
3547 if $ac_preproc_ok
3548 then :
3549
3550 else case e in #(
3551 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3552 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3553 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3554 See 'config.log' for more details" "$LINENO" 5; } ;;
3555 esac
3556 fi
3557
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563
3564
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3566 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3567 set x ${MAKE-make}
3568 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3569 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3570 then :
3571 printf %s "(cached) " >&6
3572 else case e in #(
3573 e) cat >conftest.make <<\_ACEOF
3574 SHELL = /bin/sh
3575 all:
3576 @echo '@@@%%%=$(MAKE)=@@@%%%'
3577 _ACEOF
3578 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3580 *@@@%%%=?*=@@@%%%*)
3581 eval ac_cv_prog_make_${ac_make}_set=yes;;
3582 *)
3583 eval ac_cv_prog_make_${ac_make}_set=no;;
3584 esac
3585 rm -f conftest.make ;;
3586 esac
3587 fi
3588 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3590 printf "%s\n" "yes" >&6; }
3591 SET_MAKE=
3592 else
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 printf "%s\n" "no" >&6; }
3595 SET_MAKE="MAKE=${MAKE-make}"
3596 fi
3597
3598
3599
3600 ac_header= ac_cache=
3601 for ac_item in $ac_header_c_list
3602 do
3603 if test $ac_cache; then
3604 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3605 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3606 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3607 fi
3608 ac_header= ac_cache=
3609 elif test $ac_header; then
3610 ac_cache=$ac_item
3611 else
3612 ac_header=$ac_item
3613 fi
3614 done
3615
3616
3617
3618
3619
3620
3621
3622
3623 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3624 then :
3625
3626 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3627
3628 fi
3629
3630
3631
3632
3633
3634
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3636 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3637 if test ${ac_cv_safe_to_define___extensions__+y}
3638 then :
3639 printf %s "(cached) " >&6
3640 else case e in #(
3641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 # define __EXTENSIONS__ 1
3645 $ac_includes_default
3646 int
3647 main (void)
3648 {
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 if ac_fn_c_try_compile "$LINENO"
3655 then :
3656 ac_cv_safe_to_define___extensions__=yes
3657 else case e in #(
3658 e) ac_cv_safe_to_define___extensions__=no ;;
3659 esac
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3662 esac
3663 fi
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3665 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3666
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3668 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3669 if test ${ac_cv_should_define__xopen_source+y}
3670 then :
3671 printf %s "(cached) " >&6
3672 else case e in #(
3673 e) ac_cv_should_define__xopen_source=no
3674 if test $ac_cv_header_wchar_h = yes
3675 then :
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 #include <wchar.h>
3680 mbstate_t x;
3681 int
3682 main (void)
3683 {
3684
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 if ac_fn_c_try_compile "$LINENO"
3690 then :
3691
3692 else case e in #(
3693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695
3696 #define _XOPEN_SOURCE 500
3697 #include <wchar.h>
3698 mbstate_t x;
3699 int
3700 main (void)
3701 {
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"
3708 then :
3709 ac_cv_should_define__xopen_source=yes
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3712 esac
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3715 fi ;;
3716 esac
3717 fi
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3719 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3720
3721 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3722
3723 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3724
3725 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3726
3727 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3728
3729 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3730
3731 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3732
3733 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3734
3735 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3736
3737 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3738
3739 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3740
3741 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3742
3743 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3744
3745 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3746
3747 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3748
3749 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3750
3751 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3752
3753 if test $ac_cv_header_minix_config_h = yes
3754 then :
3755 MINIX=yes
3756 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3757
3758 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3759
3760 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3761
3762 else case e in #(
3763 e) MINIX= ;;
3764 esac
3765 fi
3766 if test $ac_cv_safe_to_define___extensions__ = yes
3767 then :
3768 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3769
3770 fi
3771 if test $ac_cv_should_define__xopen_source = yes
3772 then :
3773 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3774
3775 fi
3776
3777
3778 if test "$cross_compiling" = yes
3779 then :
3780 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3781 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3782 as_fn_error $? "cannot run test program while cross compiling
3783 See 'config.log' for more details" "$LINENO" 5; }
3784 else case e in #(
3785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 int main(){return (0);}
3788 _ACEOF
3789 if ac_fn_c_try_run "$LINENO"
3790 then :
3791
3792 else case e in #(
3793 e)
3794 if test $CC != cc ; then
3795 echo "Your $CC failed - restarting with CC=cc" 1>&6
3796
3797 echo "" 1>&6
3798
3799 CC=cc
3800 export CC
3801 exec $0 $configure_args
3802 fi
3803 ;;
3804 esac
3805 fi
3806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3807 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3808 esac
3809 fi
3810
3811
3812 if test "$cross_compiling" = yes
3813 then :
3814 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3815 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3816 as_fn_error $? "cannot run test program while cross compiling
3817 See 'config.log' for more details" "$LINENO" 5; }
3818 else case e in #(
3819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 int main(){return(0);}
3822 _ACEOF
3823 if ac_fn_c_try_run "$LINENO"
3824 then :
3825
3826 else case e in #(
3827 e) exec 5>&2
3828 eval $ac_link
3829 echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
3830
3831 echo "$ac_compile" 1>&6
3832
3833 as_fn_error $? "Can't run the compiler - sorry" "$LINENO" 5 ;;
3834 esac
3835 fi
3836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3837 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3838 esac
3839 fi
3840
3841
3842 if test "$cross_compiling" = yes
3843 then :
3844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3845 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3846 as_fn_error $? "cannot run test program while cross compiling
3847 See 'config.log' for more details" "$LINENO" 5; }
3848 else case e in #(
3849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851
3852 int main()
3853 {
3854 int __something_strange_();
3855 __something_strange_(0);
3856 }
3857
3858 _ACEOF
3859 if ac_fn_c_try_run "$LINENO"
3860 then :
3861 as_fn_error $? "Your compiler does not set the exit status - sorry" "$LINENO" 5
3862 fi
3863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3864 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3865 esac
3866 fi
3867
3868
3869 for ac_prog in gawk mawk nawk awk
3870 do
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 printf %s "checking for $ac_word... " >&6; }
3875 if test ${ac_cv_prog_AWK+y}
3876 then :
3877 printf %s "(cached) " >&6
3878 else case e in #(
3879 e) if test -n "$AWK"; then
3880 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885 IFS=$as_save_IFS
3886 case $as_dir in #(((
3887 '') as_dir=./ ;;
3888 */) ;;
3889 *) as_dir=$as_dir/ ;;
3890 esac
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3893 ac_cv_prog_AWK="$ac_prog"
3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3895 break 2
3896 fi
3897 done
3898 done
3899 IFS=$as_save_IFS
3900
3901 fi ;;
3902 esac
3903 fi
3904 AWK=$ac_cv_prog_AWK
3905 if test -n "$AWK"; then
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3907 printf "%s\n" "$AWK" >&6; }
3908 else
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 printf "%s\n" "no" >&6; }
3911 fi
3912
3913
3914 test -n "$AWK" && break
3915 done
3916
3917
3918 if test -f etc/toolcheck; then
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy tools" >&5
3920 printf %s "checking for buggy tools... " >&6; }
3921 sh etc/toolcheck 1>&6
3922 fi
3923
3924
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for System V" >&5
3926 printf %s "checking for System V... " >&6; }
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <sys/types.h>
3930 #include <signal.h>
3931 #include <fcntl.h>
3932 int
3933 main (void)
3934 {
3935 int x = SIGCHLD | FNDELAY;
3936 ;
3937 return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"
3941 then :
3942
3943 else case e in #(
3944 e) printf "%s\n" "#define SYSV 1" >>confdefs.h
3945 ;;
3946 esac
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
3950 printf "%s\n" "done" >&6; }
3951
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris 2.x" >&5
3953 printf %s "checking for Solaris 2.x... " >&6; }
3954
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
3956 printf %s "checking for egrep -e... " >&6; }
3957 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
3958 then :
3959 printf %s "(cached) " >&6
3960 else case e in #(
3961 e) if test -z "$EGREP_TRADITIONAL"; then
3962 ac_path_EGREP_TRADITIONAL_found=false
3963 # Loop through the user's path and test for each of PROGNAME-LIST
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3966 do
3967 IFS=$as_save_IFS
3968 case $as_dir in #(((
3969 '') as_dir=./ ;;
3970 */) ;;
3971 *) as_dir=$as_dir/ ;;
3972 esac
3973 for ac_prog in grep ggrep
3974 do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
3977 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
3978 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
3979 # Check for GNU $ac_path_EGREP_TRADITIONAL
3980 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
3981 *GNU*)
3982 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
3983 #(
3984 *)
3985 ac_count=0
3986 printf %s 0123456789 >"conftest.in"
3987 while :
3988 do
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
3993 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 as_fn_arith $ac_count + 1 && ac_count=$as_val
3996 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
3999 ac_path_EGREP_TRADITIONAL_max=$ac_count
4000 fi
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4003 done
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 esac
4006
4007 $ac_path_EGREP_TRADITIONAL_found && break 3
4008 done
4009 done
4010 done
4011 IFS=$as_save_IFS
4012 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
4013 :
4014 fi
4015 else
4016 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
4017 fi
4018
4019 if test "$ac_cv_path_EGREP_TRADITIONAL"
4020 then :
4021 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
4022 else case e in #(
4023 e) if test -z "$EGREP_TRADITIONAL"; then
4024 ac_path_EGREP_TRADITIONAL_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029 IFS=$as_save_IFS
4030 case $as_dir in #(((
4031 '') as_dir=./ ;;
4032 */) ;;
4033 *) as_dir=$as_dir/ ;;
4034 esac
4035 for ac_prog in egrep
4036 do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
4039 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
4040 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
4041 # Check for GNU $ac_path_EGREP_TRADITIONAL
4042 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
4043 *GNU*)
4044 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
4045 #(
4046 *)
4047 ac_count=0
4048 printf %s 0123456789 >"conftest.in"
4049 while :
4050 do
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
4055 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057 as_fn_arith $ac_count + 1 && ac_count=$as_val
4058 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
4061 ac_path_EGREP_TRADITIONAL_max=$ac_count
4062 fi
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4065 done
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067 esac
4068
4069 $ac_path_EGREP_TRADITIONAL_found && break 3
4070 done
4071 done
4072 done
4073 IFS=$as_save_IFS
4074 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
4075 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4076 fi
4077 else
4078 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
4079 fi
4080 ;;
4081 esac
4082 fi ;;
4083 esac
4084 fi
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
4086 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
4087 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
4088
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 #if defined(SVR4) && defined(sun)
4092 yes
4093 #endif
4094
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
4098 then :
4099 LIBS="$LIBS -lsocket -lnsl -lkstat"
4100 fi
4101 rm -rf conftest*
4102
4103
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for POSIX" >&5
4105 printf %s "checking for POSIX... " >&6; }
4106 if test "$cross_compiling" = yes
4107 then :
4108 posix=yes
4109 else case e in #(
4110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 #include <unistd.h>
4114 #include <stdlib.h>
4115
4116 int
4117 main()
4118 {
4119 #ifdef _POSIX_VERSION
4120 return (0);
4121 #else
4122 return (1);
4123 #endif
4124 }
4125
4126 _ACEOF
4127 if ac_fn_c_try_run "$LINENO"
4128 then :
4129 posix=yes
4130 fi
4131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4132 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4133 esac
4134 fi
4135
4136 if test -n "$posix"; then
4137 printf "%s\n" "#define POSIX 1" >>confdefs.h
4138
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4140 printf "%s\n" "yes" >&6; }
4141 else
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 printf "%s\n" "no" >&6; }
4144 fi
4145
4146
4147 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
4148 if test "x$ac_cv_func_seteuid" = xyes
4149 then :
4150 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
4151
4152 fi
4153 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
4154 if test "x$ac_cv_func_setreuid" = xyes
4155 then :
4156 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
4157
4158 fi
4159 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
4160 if test "x$ac_cv_func__exit" = xyes
4161 then :
4162 printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
4163
4164 fi
4165
4166
4167 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
4168 if test "x$ac_cv_func_getcwd" = xyes
4169 then :
4170 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
4171
4172 fi
4173 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
4174 if test "x$ac_cv_func_memcpy" = xyes
4175 then :
4176 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
4177
4178 fi
4179 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
4180 if test "x$ac_cv_func_memmove" = xyes
4181 then :
4182 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
4183
4184 fi
4185 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
4186 if test "x$ac_cv_func_mkfifo" = xyes
4187 then :
4188 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
4189
4190 fi
4191 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
4192 if test "x$ac_cv_func_strerror" = xyes
4193 then :
4194 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
4195
4196 fi
4197 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
4198 if test "x$ac_cv_func_strftime" = xyes
4199 then :
4200 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
4201
4202 fi
4203 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
4204 if test "x$ac_cv_func_utimes" = xyes
4205 then :
4206 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
4207
4208 fi
4209
4210
4211 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4212 if test "x$ac_cv_func_setlocale" = xyes
4213 then :
4214 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
4215
4216 fi
4217 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
4218 if test "x$ac_cv_func_nl_langinfo" = xyes
4219 then :
4220 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
4221
4222 fi
4223
4224
4225
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking select" >&5
4227 printf %s "checking select... " >&6; }
4228 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4229 if test "x$ac_cv_header_sys_select_h" = xyes
4230 then :
4231 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
4232
4233 fi
4234
4235 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
4236 if test "x$ac_cv_func_select" = xyes
4237 then :
4238 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
4239
4240 fi
4241
4242
4243 if test X$av_cv_func_select = Xno; then
4244 LIBS="$LIBS -lnet -lnsl"
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking select with $LIBS" >&5
4246 printf %s "checking select with $LIBS... " >&6; }
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249
4250 #include <sys/select.h>
4251
4252 int
4253 main (void)
4254 {
4255
4256 select(0, 0, 0, 0, 0);
4257
4258 ;
4259 return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_c_try_link "$LINENO"
4263 then :
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4265 printf "%s\n" "yes" >&6; }
4266 else case e in #(
4267 e) as_fn_error $? "!!! no select - no screen" "$LINENO" 5
4268 ;;
4269 esac
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4272 conftest$ac_exeext conftest.$ac_ext
4273 fi
4274
4275
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking select return value" >&5
4277 printf %s "checking select return value... " >&6; }
4278 if test "$cross_compiling" = yes
4279 then :
4280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4281 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4282 as_fn_error $? "cannot run test program while cross compiling
4283 See 'config.log' for more details" "$LINENO" 5; }
4284 else case e in #(
4285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287
4288 #include <sys/types.h>
4289 #include <sys/stat.h>
4290 #include <fcntl.h>
4291 #include <stdlib.h>
4292 #include <string.h>
4293 #include <signal.h>
4294 #include <unistd.h>
4295
4296 char *nam = "/tmp/conftest$$";
4297
4298 #ifdef NAMEDPIPE
4299
4300 #ifndef O_NONBLOCK
4301 #define O_NONBLOCK O_NDELAY
4302 #endif
4303 #ifndef S_IFIFO
4304 #define S_IFIFO 0010000
4305 #endif
4306
4307
4308 int
4309 main()
4310 {
4311 #ifdef FD_SET
4312 fd_set f;
4313 #else
4314 int f;
4315 #endif
4316
4317 #ifdef __FreeBSD__
4318 /* From Andrew A. Chernov ([email protected]):
4319 * opening RDWR fifo fails in BSD 4.4, but select return values are
4320 * right.
4321 */
4322 exit(0);
4323 #endif
4324 (void)alarm(5);
4325 #ifdef POSIX
4326 if (mkfifo(nam, 0777))
4327 #else
4328 if (mknod(nam, S_IFIFO|0777, 0))
4329 #endif
4330 exit(1);
4331 close(0);
4332 if (open(nam, O_RDWR | O_NONBLOCK))
4333 exit(1);
4334 if (write(0, "TEST", 4) == -1)
4335 exit(1);
4336
4337 #else
4338
4339 #include <sys/types.h>
4340 #include <sys/socket.h>
4341 #include <sys/un.h>
4342
4343 int
4344 main()
4345 {
4346 int s1, s2, l;
4347 struct sockaddr_un a;
4348 #ifdef FD_SET
4349 fd_set f;
4350 #else
4351 int f;
4352 #endif
4353
4354 (void)alarm(5);
4355 if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4356 exit(1);
4357 a.sun_family = AF_UNIX;
4358 strcpy(a.sun_path, nam);
4359 (void) unlink(nam);
4360 if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
4361 exit(1);
4362 if (listen(s1, 2))
4363 exit(1);
4364 if (fork() == 0)
4365 {
4366 if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4367 kill(getppid(), 3);
4368 (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
4369 if (write(s2, "HELLO", 5) == -1)
4370 kill(getppid(), 3);
4371 exit(0);
4372 }
4373 l = sizeof(a);
4374 close(0);
4375 if (accept(s1, (struct sockaddr *)&a, &l))
4376 exit(1);
4377 #endif
4378
4379
4380 #ifdef FD_SET
4381 FD_SET(0, &f);
4382 #else
4383 f = 1;
4384 #endif
4385 if (select(1, &f, 0, 0, 0) == -1)
4386 exit(1);
4387 if (select(1, &f, &f, 0, 0) != 2)
4388 exit(1);
4389 exit(0);
4390 }
4391
4392 _ACEOF
4393 if ac_fn_c_try_run "$LINENO"
4394 then :
4395 echo "- select is ok" 1>&6
4396
4397 else case e in #(
4398 e) echo "- select can't count" 1>&6
4399 printf "%s\n" "#define SELECT_BROKEN 1" >>confdefs.h
4400 ;;
4401 esac
4402 fi
4403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4404 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4405 esac
4406 fi
4407
4408
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent" >&5
4410 printf %s "checking for tgetent... " >&6; }
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 extern char tgetent(void);
4414 int
4415 main (void)
4416 {
4417 tgetent();
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_c_try_link "$LINENO"
4423 then :
4424
4425 else case e in #(
4426 e) olibs="$LIBS"
4427 LIBS="-lcurses $olibs"
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libcurses" >&5
4429 printf %s "checking libcurses... " >&6; }
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 extern char tgetent(void);
4433 int
4434 main (void)
4435 {
4436
4437 #ifdef __hpux
4438 __sorry_hpux_libcurses_is_totally_broken_in_10_10();
4439 #else
4440 tgetent();
4441 #endif
4442
4443 ;
4444 return 0;
4445 }
4446 _ACEOF
4447 if ac_fn_c_try_link "$LINENO"
4448 then :
4449
4450 else case e in #(
•4451 e) LIBS="-ltinfo $olibs"
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libtinfo" >&5
4453 printf %s "checking libtinfo... " >&6; }
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 extern char tgetent(void);
4457 int
4458 main (void)
4459 {
4460 tgetent();
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_c_try_link "$LINENO"
4466 then :
4467
4468 else case e in #(
4469 e) LIBS="-ltermlib $olibs"
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libtermlib" >&5
4471 printf %s "checking libtermlib... " >&6; }
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474 extern char tgetent(void);
4475 int
4476 main (void)
4477 {
4478 tgetent();
4479 ;
4480 return 0;
4481 }
4482 _ACEOF
4483 if ac_fn_c_try_link "$LINENO"
4484 then :
4485
4486 else case e in #(
4487 e) LIBS="-lncurses $olibs"
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libncurses" >&5
4489 printf %s "checking libncurses... " >&6; }
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 extern char tgetent(void);
4493 int
4494 main (void)
4495 {
4496 tgetent();
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_c_try_link "$LINENO"
4502 then :
4503
4504 else case e in #(
4505 e) as_fn_error $? "!!! no tgetent - no screen" "$LINENO" 5 ;;
4506 esac
4507 fi
4508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4509 conftest$ac_exeext conftest.$ac_ext ;;
4510 esac
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4513 conftest$ac_exeext conftest.$ac_ext ;;
4514 esac
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4517 conftest$ac_exeext conftest.$ac_ext ;;
4518 esac
4519 fi
4520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4521 conftest$ac_exeext conftest.$ac_ext ;;
4522 esac
4523 fi
4524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4525 conftest$ac_exeext conftest.$ac_ext
4526
4527 if test "$cross_compiling" = yes
4528 then :
4529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4530 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4531 as_fn_error $? "cannot run test program while cross compiling
4532 See 'config.log' for more details" "$LINENO" 5; }
4533 else case e in #(
4534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 #include <string.h>
4538 extern char *tgoto();
4539 int
4540 main()
4541 {
4542 return(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_run "$LINENO"
4546 then :
4547 echo "- you use the termcap database" 1>&6
4548
4549 else case e in #(
4550 e) echo "- you use the terminfo database" 1>&6
4551 printf "%s\n" "#define TERMINFO 1" >>confdefs.h
4552 ;;
4553 esac
4554 fi
4555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4556 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4557 esac
4558 fi
4559
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ospeed" >&5
4561 printf %s "checking ospeed... " >&6; }
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 extern short ospeed;
4565 int
4566 main (void)
4567 {
4568 ospeed=5;
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_c_try_link "$LINENO"
4574 then :
4575 have_ospeed=yes
4576 else case e in #(
4577 e) have_ospeed=no ;;
4578 esac
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4581 conftest$ac_exeext conftest.$ac_ext
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ospeed" >&5
4583 printf "%s\n" "$have_ospeed" >&6; }
4584 if test $have_ospeed = yes; then
4585 :
4586 else
4587 printf "%s\n" "#define NEED_OSPEED 1" >>confdefs.h
4588
4589 fi
4590
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
4592 printf %s "checking for /dev/ptc... " >&6; }
4593 if test -r /dev/ptc; then
4594 printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h
4595
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4597 printf "%s\n" "yes" >&6; }
4598 else
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 printf "%s\n" "no" >&6; }
4601 fi
4602
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
4604 printf %s "checking for SVR4 ptys... " >&6; }
4605 sysvr4ptys=
4606 if test -c /dev/ptmx ; then
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <stdlib.h>
4610 int
4611 main (void)
4612 {
4613 ptsname(0);grantpt(0);unlockpt(0);
4614 ;
4615 return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_link "$LINENO"
4619 then :
4620 printf "%s\n" "#define HAVE_SVR4_PTYS 1" >>confdefs.h
4621
4622 sysvr4ptys=1
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4625 conftest$ac_exeext conftest.$ac_ext
4626 fi
4627 if test -n "$sysvr4ptys"; then
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629 printf "%s\n" "yes" >&6; }
4630 else
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 printf "%s\n" "no" >&6; }
4633 fi
4634
4635 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
4636 if test "x$ac_cv_func_getpt" = xyes
4637 then :
4638 printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h
4639
4640 fi
4641
4642
4643 if test -z "$sysvr4ptys"; then
4644
4645 for ac_func in openpty
4646 do :
4647 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
4648 if test "x$ac_cv_func_openpty" = xyes
4649 then :
4650 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
4651
4652 else case e in #(
4653 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
4654 printf %s "checking for openpty in -lutil... " >&6; }
4655 if test ${ac_cv_lib_util_openpty+y}
4656 then :
4657 printf %s "(cached) " >&6
4658 else case e in #(
4659 e) ac_check_lib_save_LIBS=$LIBS
4660 LIBS="-lutil $LIBS"
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663
4664 /* Override any GCC internal prototype to avoid an error.
4665 Use char because int might match the return type of a GCC
4666 builtin and then its argument prototype would still apply.
4667 The 'extern "C"' is for builds by C++ compilers;
4668 although this is not generally supported in C code supporting it here
4669 has little cost and some practical benefit (sr 110532). */
4670 #ifdef __cplusplus
4671 extern "C"
4672 #endif
4673 char openpty (void);
4674 int
4675 main (void)
4676 {
4677 return openpty ();
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_link "$LINENO"
4683 then :
4684 ac_cv_lib_util_openpty=yes
4685 else case e in #(
4686 e) ac_cv_lib_util_openpty=no ;;
4687 esac
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4690 conftest$ac_exeext conftest.$ac_ext
4691 LIBS=$ac_check_lib_save_LIBS ;;
4692 esac
4693 fi
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
4695 printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
4696 if test "x$ac_cv_lib_util_openpty" = xyes
4697 then :
4698 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
4699 LIBS="$LIBS -lutil"
4700 fi
4701 ;;
4702 esac
4703 fi
4704
4705 done
4706 fi
4707
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
4709 printf %s "checking for ptyranges... " >&6; }
4710 if test -d /dev/ptym ; then
4711 pdir='/dev/ptym'
4712 else
4713 pdir='/dev'
4714 fi
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #ifdef M_UNIX
4718 yes;
4719 #endif
4720
4721 _ACEOF
4722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4723 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
4724 then :
4725 ptys=`echo /dev/ptyp??`
4726 else case e in #(
4727 e) ptys=`echo $pdir/pty??` ;;
4728 esac
4729 fi
4730 rm -rf conftest*
4731
4732 if test "$ptys" != "$pdir/pty??" ; then
4733 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
4734 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
4735 printf "%s\n" "#define PTYRANGE0 \"$p0\"" >>confdefs.h
4736
4737 printf "%s\n" "#define PTYRANGE1 \"$p1\"" >>confdefs.h
4738
4739 fi
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4741 printf "%s\n" "done" >&6; }
4742
4743
4744 # Check whether --with-pty-mode was given.
4745 if test ${with_pty_mode+y}
4746 then :
4747 withval=$with_pty_mode; ptymode="${withval}"
4748 fi
4749
4750
4751 # Check whether --with-pty-group was given.
4752 if test ${with_pty_group+y}
4753 then :
4754 withval=$with_pty_group; ptygrp="${withval}"
4755 fi
4756
4757 test -n "$ptymode" || ptymode=0620
4758 if test -n "$ptygrp" ; then
4759 printf "%s\n" "#define PTYMODE $ptymode" >>confdefs.h
4760
4761 printf "%s\n" "#define PTYGROUP $ptygrp" >>confdefs.h
4762
4763 else
4764
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
4766 printf %s "checking default tty permissions/group... " >&6; }
4767 rm -f conftest_grp
4768 if test "$cross_compiling" = yes
4769 then :
4770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4771 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4772 as_fn_error $? "cannot run test program while cross compiling
4773 See 'config.log' for more details" "$LINENO" 5; }
4774 else case e in #(
4775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 #include <sys/types.h>
4779 #include <sys/stat.h>
4780 #include <stdio.h>
4781 #include <stdlib.h>
4782 #include <unistd.h>
4783 int
4784 main()
4785 {
4786 struct stat sb;
4787 char *x,*ttyname();
4788 int om, m;
4789 FILE *fp;
4790
4791 if (!(x = ttyname(0))) exit(1);
4792 if (stat(x, &sb)) exit(1);
4793 om = sb.st_mode;
4794 if (om & 002) exit(0);
4795 m = system("mesg y");
4796 if (m == -1 || m == 127) exit(1);
4797 if (stat(x, &sb)) exit(1);
4798 m = sb.st_mode;
4799 if (chmod(x, om)) exit(1);
4800 if (m & 002) exit(0);
4801 if (sb.st_gid == getgid()) exit(1);
4802 if (!(fp=fopen("conftest_grp", "w")))
4803 exit(1);
4804 fprintf(fp, "%d\n", sb.st_gid);
4805 fclose(fp);
4806 exit(0);
4807 }
4808
4809 _ACEOF
4810 if ac_fn_c_try_run "$LINENO"
4811 then :
4812
4813 if test -f conftest_grp; then
4814 ptygrp=`cat conftest_grp`
4815 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4816
4817 printf "%s\n" "#define PTYMODE $ptymode" >>confdefs.h
4818
4819 printf "%s\n" "#define PTYGROUP $ptygrp" >>confdefs.h
4820
4821 else
4822 echo "- ptys are world accessable" 1>&6
4823
4824 fi
4825
4826 else case e in #(
4827 e)
4828 WRITEPATH=''
4829 XTERMPATH=''
4830 # Extract the first word of "write", so it can be a program name with args.
4831 set dummy write; ac_word=$2
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 printf %s "checking for $ac_word... " >&6; }
4834 if test ${ac_cv_path_WRITEPATH+y}
4835 then :
4836 printf %s "(cached) " >&6
4837 else case e in #(
4838 e) case $WRITEPATH in
4839 [\\/]* | ?:[\\/]*)
4840 ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
4841 ;;
4842 *)
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846 IFS=$as_save_IFS
4847 case $as_dir in #(((
4848 '') as_dir=./ ;;
4849 */) ;;
4850 *) as_dir=$as_dir/ ;;
4851 esac
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4854 ac_cv_path_WRITEPATH="$as_dir$ac_word$ac_exec_ext"
4855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4856 break 2
4857 fi
4858 done
4859 done
4860 IFS=$as_save_IFS
4861
4862 ;;
4863 esac ;;
4864 esac
4865 fi
4866 WRITEPATH=$ac_cv_path_WRITEPATH
4867 if test -n "$WRITEPATH"; then
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WRITEPATH" >&5
4869 printf "%s\n" "$WRITEPATH" >&6; }
4870 else
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 printf "%s\n" "no" >&6; }
4873 fi
4874
4875
4876 # Extract the first word of "xterm", so it can be a program name with args.
4877 set dummy xterm; ac_word=$2
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 printf %s "checking for $ac_word... " >&6; }
4880 if test ${ac_cv_path_XTERMPATH+y}
4881 then :
4882 printf %s "(cached) " >&6
4883 else case e in #(
4884 e) case $XTERMPATH in
4885 [\\/]* | ?:[\\/]*)
4886 ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
4887 ;;
4888 *)
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892 IFS=$as_save_IFS
4893 case $as_dir in #(((
4894 '') as_dir=./ ;;
4895 */) ;;
4896 *) as_dir=$as_dir/ ;;
4897 esac
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4900 ac_cv_path_XTERMPATH="$as_dir$ac_word$ac_exec_ext"
4901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4902 break 2
4903 fi
4904 done
4905 done
4906 IFS=$as_save_IFS
4907
4908 ;;
4909 esac ;;
4910 esac
4911 fi
4912 XTERMPATH=$ac_cv_path_XTERMPATH
4913 if test -n "$XTERMPATH"; then
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XTERMPATH" >&5
4915 printf "%s\n" "$XTERMPATH" >&6; }
4916 else
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 printf "%s\n" "no" >&6; }
4919 fi
4920
4921
4922 found=
4923 if test -n "$WRITEPATH$XTERMPATH"; then
4924 findfollow=
4925 lsfollow=
4926 found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
4927 if test -n "$found"; then
4928 findfollow=-follow
4929 lsfollow=L
4930 fi
4931 if test -n "$XTERMPATH"; then
4932 ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
4933 if test tty != "$ptygrpn"; then
4934 XTERMPATH=
4935 fi
4936 fi
4937 fi
4938 if test -n "$WRITEPATH$XTERMPATH"; then
4939 found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
4940 if test -n "$found"; then
4941 ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
4942 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4943
4944 printf "%s\n" "#define PTYMODE $ptymode" >>confdefs.h
4945
4946 printf "%s\n" "#define PTYGROUP $ptygrp" >>confdefs.h
4947
4948 else
4949 echo "- ptys are world accessable" 1>&6
4950
4951 fi
4952 else
4953 echo "- can't determine - assume ptys are world accessable" 1>&6
4954
4955 fi
4956
4957 ;;
4958 esac
4959 fi
4960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4961 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4962 esac
4963 fi
4964
4965 rm -f conftest_grp
4966 fi
4967
4968 if test -n "$posix" ; then
4969
4970 echo "assuming posix signal definition" 1>&6
4971
4972 printf "%s\n" "#define SIGVOID 1" >>confdefs.h
4973
4974 printf "%s\n" "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
4975
4976 else
4977
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4979 printf %s "checking return type of signal handlers... " >&6; }
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 #include <sys/types.h>
4983 #include <signal.h>
4984 #ifdef signal
4985 #undef signal
4986 #endif
4987 extern void (*signal ()) ();
4988 int
4989 main (void)
4990 {
4991 int i;
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_c_try_compile "$LINENO"
4997 then :
4998 printf "%s\n" "#define SIGVOID 1" >>confdefs.h
4999
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sigset" >&5
5003 printf %s "checking sigset... " >&6; }
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006
5007 #include <sys/types.h>
5008 #include <signal.h>
5009
5010 int
5011 main (void)
5012 {
5013
5014 #ifdef SIGVOID
5015 sigset(0, (void (*)())0);
5016 #else
5017 sigset(0, (int (*)())0);
5018 #endif
5019
5020 ;
5021 return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_link "$LINENO"
5025 then :
5026 printf "%s\n" "#define USESIGSET 1" >>confdefs.h
5027
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5030 conftest$ac_exeext conftest.$ac_ext
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking signal implementation" >&5
5032 printf %s "checking signal implementation... " >&6; }
5033 if test "$cross_compiling" = yes
5034 then :
5035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5036 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5037 as_fn_error $? "cannot run test program while cross compiling
5038 See 'config.log' for more details" "$LINENO" 5; }
5039 else case e in #(
5040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042
5043 #include <sys/types.h>
5044 #include <signal.h>
5045
5046 #ifndef SIGCLD
5047 #define SIGCLD SIGCHLD
5048 #endif
5049 #ifdef USESIGSET
5050 #define signal sigset
5051 #endif
5052
5053 int got;
5054
5055 #ifdef SIGVOID
5056 void
5057 #endif
5058 hand()
5059 {
5060 got++;
5061 }
5062
5063 int
5064 main()
5065 {
5066 /* on hpux we use sigvec to get bsd signals */
5067 #ifdef __hpux
5068 (void)signal(SIGCLD, hand);
5069 kill(getpid(), SIGCLD);
5070 kill(getpid(), SIGCLD);
5071 if (got < 2)
5072 return(1);
5073 #endif
5074 return(0);
5075 }
5076
5077 _ACEOF
5078 if ac_fn_c_try_run "$LINENO"
5079 then :
5080
5081 else case e in #(
5082 e) printf "%s\n" "#define SYSVSIGS 1" >>confdefs.h
5083 ;;
5084 esac
5085 fi
5086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5087 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5088 esac
5089 fi
5090
5091
5092 fi
5093
5094 ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
5095 if test "x$ac_cv_header_sys_stropts_h" = xyes
5096 then :
5097 printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
5098
5099 fi
5100 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
5101 if test "x$ac_cv_header_sys_wait_h" = xyes
5102 then :
5103 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5104
5105 fi
5106 ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
5107 if test "x$ac_cv_header_sgtty_h" = xyes
5108 then :
5109 printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h
5110
5111 fi
5112 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5113 if test "x$ac_cv_header_sys_select_h" = xyes
5114 then :
5115 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5116
5117 fi
5118
5119 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
5120 if test "x$ac_cv_header_term_h" = xyes
5121 then :
5122 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
5123
5124 fi
5125
5126
5127 ac_config_files="$ac_config_files Makefile"
5128
5129 cat >confcache <<\_ACEOF
5130 # This file is a shell script that caches the results of configure
5131 # tests run on this system so they can be shared between configure
5132 # scripts and configure runs, see configure's option --config-cache.
5133 # It is not useful on other systems. If it contains results you don't
5134 # want to keep, you may remove or edit it.
5135 #
5136 # config.status only pays attention to the cache file if you give it
5137 # the --recheck option to rerun configure.
5138 #
5139 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
5140 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
5141 # following values.
5142
5143 _ACEOF
5144
5145 # The following way of writing the cache mishandles newlines in values,
5146 # but we know of no workaround that is simple, portable, and efficient.
5147 # So, we kill variables containing newlines.
5148 # Ultrix sh set writes to stderr and can't be redirected directly,
5149 # and sets the high bit in the cache file unless we assign to the vars.
5150 (
5151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5152 eval ac_val=\$$ac_var
5153 case $ac_val in #(
5154 *${as_nl}*)
5155 case $ac_var in #(
5156 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5157 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5158 esac
5159 case $ac_var in #(
5160 _ | IFS | as_nl) ;; #(
5161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5162 *) { eval $ac_var=; unset $ac_var;} ;;
5163 esac ;;
5164 esac
5165 done
5166
5167 (set) 2>&1 |
5168 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5169 *${as_nl}ac_space=\ *)
5170 # 'set' does not quote correctly, so add quotes: double-quote
5171 # substitution turns \\\\ into \\, and sed turns \\ into \.
5172 sed -n \
5173 "s/'/'\\\\''/g;
5174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5175 ;; #(
5176 *)
5177 # 'set' quotes correctly as required by POSIX, so do not add quotes.
5178 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5179 ;;
5180 esac |
5181 sort
5182 ) |
5183 sed '
5184 /^ac_cv_env_/b end
5185 t clear
5186 :clear
5187 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5188 t end
5189 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5190 :end' >>confcache
5191 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5192 if test -w "$cache_file"; then
5193 if test "x$cache_file" != "x/dev/null"; then
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5195 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5196 if test ! -f "$cache_file" || test -h "$cache_file"; then
5197 cat confcache >"$cache_file"
5198 else
5199 case $cache_file in #(
5200 */* | ?:*)
5201 mv -f confcache "$cache_file"$$ &&
5202 mv -f "$cache_file"$$ "$cache_file" ;; #(
5203 *)
5204 mv -f confcache "$cache_file" ;;
5205 esac
5206 fi
5207 fi
5208 else
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5210 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5211 fi
5212 fi
5213 rm -f confcache
5214
5215 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5216 # Let make expand exec_prefix.
5217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5218
5219 DEFS=-DHAVE_CONFIG_H
5220
5221 ac_libobjs=
5222 ac_ltlibobjs=
5223 U=
5224 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5225 # 1. Remove the extension, and $U if already installed.
5226 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5227 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5228 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5229 # will be set to the directory where LIBOBJS objects are built.
5230 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5231 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5232 done
5233 LIBOBJS=$ac_libobjs
5234
5235 LTLIBOBJS=$ac_ltlibobjs
5236
5237
5238
5239 : "${CONFIG_STATUS=./config.status}"
5240 ac_write_fail=0
5241 ac_clean_files_save=$ac_clean_files
5242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5244 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5245 as_write_fail=0
5246 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5247 #! $SHELL
5248 # Generated by $as_me.
5249 # Run this file to recreate the current configuration.
5250 # Compiler output produced by configure, useful for debugging
5251 # configure, is in config.log if it exists.
5252
5253 debug=false
5254 ac_cs_recheck=false
5255 ac_cs_silent=false
5256
5257 SHELL=\${CONFIG_SHELL-$SHELL}
5258 export SHELL
5259 _ASEOF
5260 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5261 ## -------------------- ##
5262 ## M4sh Initialization. ##
5263 ## -------------------- ##
5264
5265 # Be more Bourne compatible
5266 DUALCASE=1; export DUALCASE # for MKS sh
5267 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5268 then :
5269 emulate sh
5270 NULLCMD=:
5271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5272 # is contrary to our usage. Disable this feature.
5273 alias -g '${1+"$@"}'='"$@"'
5274 setopt NO_GLOB_SUBST
5275 else case e in #(
5276 e) case `(set -o) 2>/dev/null` in #(
5277 *posix*) :
5278 set -o posix ;; #(
5279 *) :
5280 ;;
5281 esac ;;
5282 esac
5283 fi
5284
5285
5286
5287 # Reset variables that may have inherited troublesome values from
5288 # the environment.
5289
5290 # IFS needs to be set, to space, tab, and newline, in precisely that order.
5291 # (If _AS_PATH_WALK were called with IFS unset, it would have the
5292 # side effect of setting IFS to empty, thus disabling word splitting.)
5293 # Quoting is to prevent editors from complaining about space-tab.
5294 as_nl='
5295 '
5296 export as_nl
5297 IFS=" "" $as_nl"
5298
5299 PS1='$ '
5300 PS2='> '
5301 PS4='+ '
5302
5303 # Ensure predictable behavior from utilities with locale-dependent output.
5304 LC_ALL=C
5305 export LC_ALL
5306 LANGUAGE=C
5307 export LANGUAGE
5308
5309 # We cannot yet rely on "unset" to work, but we need these variables
5310 # to be unset--not just set to an empty or harmless value--now, to
5311 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5312 # also avoids known problems related to "unset" and subshell syntax
5313 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5314 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5315 do eval test \${$as_var+y} \
5316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5317 done
5318
5319 # Ensure that fds 0, 1, and 2 are open.
5320 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5321 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5322 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5323
5324 # The user is always right.
5325 if ${PATH_SEPARATOR+false} :; then
5326 PATH_SEPARATOR=:
5327 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5328 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5329 PATH_SEPARATOR=';'
5330 }
5331 fi
5332
5333
5334 # Find who we are. Look in the path if we contain no directory separator.
5335 as_myself=
5336 case $0 in #((
5337 *[\\/]* ) as_myself=$0 ;;
5338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341 IFS=$as_save_IFS
5342 case $as_dir in #(((
5343 '') as_dir=./ ;;
5344 */) ;;
5345 *) as_dir=$as_dir/ ;;
5346 esac
5347 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5348 done
5349 IFS=$as_save_IFS
5350
5351 ;;
5352 esac
5353 # We did not find ourselves, most probably we were run as 'sh COMMAND'
5354 # in which case we are not to be found in the path.
5355 if test "x$as_myself" = x; then
5356 as_myself=$0
5357 fi
5358 if test ! -f "$as_myself"; then
5359 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5360 exit 1
5361 fi
5362
5363
5364
5365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5366 # ----------------------------------------
5367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5369 # script with STATUS, using 1 if that was 0.
5370 as_fn_error ()
5371 {
5372 as_status=$1; test $as_status -eq 0 && as_status=1
5373 if test "$4"; then
5374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5376 fi
5377 printf "%s\n" "$as_me: error: $2" >&2
5378 as_fn_exit $as_status
5379 } # as_fn_error
5380
5381
5382 # as_fn_set_status STATUS
5383 # -----------------------
5384 # Set $? to STATUS, without forking.
5385 as_fn_set_status ()
5386 {
5387 return $1
5388 } # as_fn_set_status
5389
5390 # as_fn_exit STATUS
5391 # -----------------
5392 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5393 as_fn_exit ()
5394 {
5395 set +e
5396 as_fn_set_status $1
5397 exit $1
5398 } # as_fn_exit
5399
5400 # as_fn_unset VAR
5401 # ---------------
5402 # Portably unset VAR.
5403 as_fn_unset ()
5404 {
5405 { eval $1=; unset $1;}
5406 }
5407 as_unset=as_fn_unset
5408
5409 # as_fn_append VAR VALUE
5410 # ----------------------
5411 # Append the text in VALUE to the end of the definition contained in VAR. Take
5412 # advantage of any shell optimizations that allow amortized linear growth over
5413 # repeated appends, instead of the typical quadratic growth present in naive
5414 # implementations.
5415 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5416 then :
5417 eval 'as_fn_append ()
5418 {
5419 eval $1+=\$2
5420 }'
5421 else case e in #(
5422 e) as_fn_append ()
5423 {
5424 eval $1=\$$1\$2
5425 } ;;
5426 esac
5427 fi # as_fn_append
5428
5429 # as_fn_arith ARG...
5430 # ------------------
5431 # Perform arithmetic evaluation on the ARGs, and store the result in the
5432 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5433 # must be portable across $(()) and expr.
5434 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5435 then :
5436 eval 'as_fn_arith ()
5437 {
5438 as_val=$(( $* ))
5439 }'
5440 else case e in #(
5441 e) as_fn_arith ()
5442 {
5443 as_val=`expr "$@" || test $? -eq 1`
5444 } ;;
5445 esac
5446 fi # as_fn_arith
5447
5448
5449 if expr a : '\(a\)' >/dev/null 2>&1 &&
5450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5451 as_expr=expr
5452 else
5453 as_expr=false
5454 fi
5455
5456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5457 as_basename=basename
5458 else
5459 as_basename=false
5460 fi
5461
5462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5463 as_dirname=dirname
5464 else
5465 as_dirname=false
5466 fi
5467
5468 as_me=`$as_basename -- "$0" ||
5469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5470 X"$0" : 'X\(//\)$' \| \
5471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5472 printf "%s\n" X/"$0" |
5473 sed '/^.*\/\([^/][^/]*\)\/*$/{
5474 s//\1/
5475 q
5476 }
5477 /^X\/\(\/\/\)$/{
5478 s//\1/
5479 q
5480 }
5481 /^X\/\(\/\).*/{
5482 s//\1/
5483 q
5484 }
5485 s/.*/./; q'`
5486
5487 # Avoid depending upon Character Ranges.
5488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5491 as_cr_digits='0123456789'
5492 as_cr_alnum=$as_cr_Letters$as_cr_digits
5493
5494
5495 # Determine whether it's possible to make 'echo' print without a newline.
5496 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5497 # for compatibility with existing Makefiles.
5498 ECHO_C= ECHO_N= ECHO_T=
5499 case `echo -n x` in #(((((
5500 -n*)
5501 case `echo 'xy\c'` in
5502 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5503 xy) ECHO_C='\c';;
5504 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5505 ECHO_T=' ';;
5506 esac;;
5507 *)
5508 ECHO_N='-n';;
5509 esac
5510
5511 # For backward compatibility with old third-party macros, we provide
5512 # the shell variables $as_echo and $as_echo_n. New code should use
5513 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5514 as_echo='printf %s\n'
5515 as_echo_n='printf %s'
5516
5517 rm -f conf$$ conf$$.exe conf$$.file
5518 if test -d conf$$.dir; then
5519 rm -f conf$$.dir/conf$$.file
5520 else
5521 rm -f conf$$.dir
5522 mkdir conf$$.dir 2>/dev/null
5523 fi
5524 if (echo >conf$$.file) 2>/dev/null; then
5525 if ln -s conf$$.file conf$$ 2>/dev/null; then
5526 as_ln_s='ln -s'
5527 # ... but there are two gotchas:
5528 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
5529 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
5530 # In both cases, we have to default to 'cp -pR'.
5531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5532 as_ln_s='cp -pR'
5533 elif ln conf$$.file conf$$ 2>/dev/null; then
5534 as_ln_s=ln
5535 else
5536 as_ln_s='cp -pR'
5537 fi
5538 else
5539 as_ln_s='cp -pR'
5540 fi
5541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5542 rmdir conf$$.dir 2>/dev/null
5543
5544
5545 # as_fn_mkdir_p
5546 # -------------
5547 # Create "$as_dir" as a directory, including parents if necessary.
5548 as_fn_mkdir_p ()
5549 {
5550
5551 case $as_dir in #(
5552 -*) as_dir=./$as_dir;;
5553 esac
5554 test -d "$as_dir" || eval $as_mkdir_p || {
5555 as_dirs=
5556 while :; do
5557 case $as_dir in #(
5558 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5559 *) as_qdir=$as_dir;;
5560 esac
5561 as_dirs="'$as_qdir' $as_dirs"
5562 as_dir=`$as_dirname -- "$as_dir" ||
5563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5564 X"$as_dir" : 'X\(//\)[^/]' \| \
5565 X"$as_dir" : 'X\(//\)$' \| \
5566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5567 printf "%s\n" X"$as_dir" |
5568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5569 s//\1/
5570 q
5571 }
5572 /^X\(\/\/\)[^/].*/{
5573 s//\1/
5574 q
5575 }
5576 /^X\(\/\/\)$/{
5577 s//\1/
5578 q
5579 }
5580 /^X\(\/\).*/{
5581 s//\1/
5582 q
5583 }
5584 s/.*/./; q'`
5585 test -d "$as_dir" && break
5586 done
5587 test -z "$as_dirs" || eval "mkdir $as_dirs"
5588 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5589
5590
5591 } # as_fn_mkdir_p
5592 if mkdir -p . 2>/dev/null; then
5593 as_mkdir_p='mkdir -p "$as_dir"'
5594 else
5595 test -d ./-p && rmdir ./-p
5596 as_mkdir_p=false
5597 fi
5598
5599
5600 # as_fn_executable_p FILE
5601 # -----------------------
5602 # Test if FILE is an executable regular file.
5603 as_fn_executable_p ()
5604 {
5605 test -f "$1" && test -x "$1"
5606 } # as_fn_executable_p
5607 as_test_x='test -x'
5608 as_executable_p=as_fn_executable_p
5609
5610 # Sed expression to map a string onto a valid CPP name.
5611 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5612 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5613
5614 # Sed expression to map a string onto a valid variable name.
5615 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5616 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
5617
5618
5619 exec 6>&1
5620 ## ----------------------------------- ##
5621 ## Main body of $CONFIG_STATUS script. ##
5622 ## ----------------------------------- ##
5623 _ASEOF
5624 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5625
5626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5627 # Save the log message, to keep $0 and so on meaningful, and to
5628 # report actual input values of CONFIG_FILES etc. instead of their
5629 # values after options handling.
5630 ac_log="
5631 This file was extended by rlfe $as_me 0.4, which was
5632 generated by GNU Autoconf 2.72. Invocation command line was
5633
5634 CONFIG_FILES = $CONFIG_FILES
5635 CONFIG_HEADERS = $CONFIG_HEADERS
5636 CONFIG_LINKS = $CONFIG_LINKS
5637 CONFIG_COMMANDS = $CONFIG_COMMANDS
5638 $ $0 $@
5639
5640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5641 "
5642
5643 _ACEOF
5644
5645 case $ac_config_files in *"
5646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5647 esac
5648
5649 case $ac_config_headers in *"
5650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5651 esac
5652
5653
5654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5655 # Files that config.status was made for.
5656 config_files="$ac_config_files"
5657 config_headers="$ac_config_headers"
5658
5659 _ACEOF
5660
5661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5662 ac_cs_usage="\
5663 '$as_me' instantiates files and other configuration actions
5664 from templates according to the current configuration. Unless the files
5665 and actions are specified as TAGs, all are instantiated by default.
5666
5667 Usage: $0 [OPTION]... [TAG]...
5668
5669 -h, --help print this help, then exit
5670 -V, --version print version number and configuration settings, then exit
5671 --config print configuration, then exit
5672 -q, --quiet, --silent
5673 do not print progress messages
5674 -d, --debug don't remove temporary files
5675 --recheck update $as_me by reconfiguring in the same conditions
5676 --file=FILE[:TEMPLATE]
5677 instantiate the configuration file FILE
5678 --header=FILE[:TEMPLATE]
5679 instantiate the configuration header FILE
5680
5681 Configuration files:
5682 $config_files
5683
5684 Configuration headers:
5685 $config_headers
5686
5687 Report bugs to the package provider."
5688
5689 _ACEOF
5690 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5691 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5693 ac_cs_config='$ac_cs_config_escaped'
5694 ac_cs_version="\\
5695 rlfe config.status 0.4
5696 configured by $0, generated by GNU Autoconf 2.72,
5697 with options \\"\$ac_cs_config\\"
5698
5699 Copyright (C) 2023 Free Software Foundation, Inc.
5700 This config.status script is free software; the Free Software Foundation
5701 gives unlimited permission to copy, distribute and modify it."
5702
5703 ac_pwd='$ac_pwd'
5704 srcdir='$srcdir'
5705 AWK='$AWK'
5706 test -n "\$AWK" || AWK=awk
5707 _ACEOF
5708
5709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5710 # The default lists apply if the user does not specify any file.
5711 ac_need_defaults=:
5712 while test $# != 0
5713 do
5714 case $1 in
5715 --*=?*)
5716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5717 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5718 ac_shift=:
5719 ;;
5720 --*=)
5721 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5722 ac_optarg=
5723 ac_shift=:
5724 ;;
5725 *)
5726 ac_option=$1
5727 ac_optarg=$2
5728 ac_shift=shift
5729 ;;
5730 esac
5731
5732 case $ac_option in
5733 # Handling of the options.
5734 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5735 ac_cs_recheck=: ;;
5736 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5737 printf "%s\n" "$ac_cs_version"; exit ;;
5738 --config | --confi | --conf | --con | --co | --c )
5739 printf "%s\n" "$ac_cs_config"; exit ;;
5740 --debug | --debu | --deb | --de | --d | -d )
5741 debug=: ;;
5742 --file | --fil | --fi | --f )
5743 $ac_shift
5744 case $ac_optarg in
5745 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5746 '') as_fn_error $? "missing file argument" ;;
5747 esac
5748 as_fn_append CONFIG_FILES " '$ac_optarg'"
5749 ac_need_defaults=false;;
5750 --header | --heade | --head | --hea )
5751 $ac_shift
5752 case $ac_optarg in
5753 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5754 esac
5755 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5756 ac_need_defaults=false;;
5757 --he | --h)
5758 # Conflict between --help and --header
5759 as_fn_error $? "ambiguous option: '$1'
5760 Try '$0 --help' for more information.";;
5761 --help | --hel | -h )
5762 printf "%s\n" "$ac_cs_usage"; exit ;;
5763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5765 ac_cs_silent=: ;;
5766
5767 # This is an error.
5768 -*) as_fn_error $? "unrecognized option: '$1'
5769 Try '$0 --help' for more information." ;;
5770
5771 *) as_fn_append ac_config_targets " $1"
5772 ac_need_defaults=false ;;
5773
5774 esac
5775 shift
5776 done
5777
5778 ac_configure_extra_args=
5779
5780 if $ac_cs_silent; then
5781 exec 6>/dev/null
5782 ac_configure_extra_args="$ac_configure_extra_args --silent"
5783 fi
5784
5785 _ACEOF
5786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5787 if \$ac_cs_recheck; then
5788 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5789 shift
5790 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5791 CONFIG_SHELL='$SHELL'
5792 export CONFIG_SHELL
5793 exec "\$@"
5794 fi
5795
5796 _ACEOF
5797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5798 exec 5>>config.log
5799 {
5800 echo
5801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5802 ## Running $as_me. ##
5803 _ASBOX
5804 printf "%s\n" "$ac_log"
5805 } >&5
5806
5807 _ACEOF
5808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5809 _ACEOF
5810
5811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5812
5813 # Handling of arguments.
5814 for ac_config_target in $ac_config_targets
5815 do
5816 case $ac_config_target in
5817 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5818 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5819
5820 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
5821 esac
5822 done
5823
5824
5825 # If the user did not use the arguments to specify the items to instantiate,
5826 # then the envvar interface is used. Set only those that are not.
5827 # We use the long form for the default assignment because of an extremely
5828 # bizarre bug on SunOS 4.1.3.
5829 if $ac_need_defaults; then
5830 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5831 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5832 fi
5833
5834 # Have a temporary directory for convenience. Make it in the build tree
5835 # simply because there is no reason against having it here, and in addition,
5836 # creating and moving files from /tmp can sometimes cause problems.
5837 # Hook for its removal unless debugging.
5838 # Note that there is a small window in which the directory will not be cleaned:
5839 # after its creation but before its name has been assigned to '$tmp'.
5840 $debug ||
5841 {
5842 tmp= ac_tmp=
5843 trap 'exit_status=$?
5844 : "${ac_tmp:=$tmp}"
5845 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5846 ' 0
5847 trap 'as_fn_exit 1' 1 2 13 15
5848 }
5849 # Create a (secure) tmp directory for tmp files.
5850
5851 {
5852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5853 test -d "$tmp"
5854 } ||
5855 {
5856 tmp=./conf$$-$RANDOM
5857 (umask 077 && mkdir "$tmp")
5858 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5859 ac_tmp=$tmp
5860
5861 # Set up the scripts for CONFIG_FILES section.
5862 # No need to generate them if there are no CONFIG_FILES.
5863 # This happens for instance with './config.status config.h'.
5864 if test -n "$CONFIG_FILES"; then
5865
5866
5867 ac_cr=`echo X | tr X '\015'`
5868 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5869 # But we know of no other shell where ac_cr would be empty at this
5870 # point, so we can use a bashism as a fallback.
5871 if test "x$ac_cr" = x; then
5872 eval ac_cr=\$\'\\r\'
5873 fi
5874 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5875 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5876 ac_cs_awk_cr='\\r'
5877 else
5878 ac_cs_awk_cr=$ac_cr
5879 fi
5880
5881 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5882 _ACEOF
5883
5884
5885 {
5886 echo "cat >conf$$subs.awk <<_ACEOF" &&
5887 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5888 echo "_ACEOF"
5889 } >conf$$subs.sh ||
5890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5891 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5892 ac_delim='%!_!# '
5893 for ac_last_try in false false false false false :; do
5894 . ./conf$$subs.sh ||
5895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5896
5897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5898 if test $ac_delim_n = $ac_delim_num; then
5899 break
5900 elif $ac_last_try; then
5901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5902 else
5903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5904 fi
5905 done
5906 rm -f conf$$subs.sh
5907
5908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5909 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5910 _ACEOF
5911 sed -n '
5912 h
5913 s/^/S["/; s/!.*/"]=/
5914 p
5915 g
5916 s/^[^!]*!//
5917 :repl
5918 t repl
5919 s/'"$ac_delim"'$//
5920 t delim
5921 :nl
5922 h
5923 s/\(.\{148\}\)..*/\1/
5924 t more1
5925 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5926 p
5927 n
5928 b repl
5929 :more1
5930 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5931 p
5932 g
5933 s/.\{148\}//
5934 t nl
5935 :delim
5936 h
5937 s/\(.\{148\}\)..*/\1/
5938 t more2
5939 s/["\\]/\\&/g; s/^/"/; s/$/"/
5940 p
5941 b
5942 :more2
5943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5944 p
5945 g
5946 s/.\{148\}//
5947 t delim
5948 ' <conf$$subs.awk | sed '
5949 /^[^""]/{
5950 N
5951 s/\n//
5952 }
5953 ' >>$CONFIG_STATUS || ac_write_fail=1
5954 rm -f conf$$subs.awk
5955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5956 _ACAWK
5957 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5958 for (key in S) S_is_set[key] = 1
5959 FS = ""
5960
5961 }
5962 {
5963 line = $ 0
5964 nfields = split(line, field, "@")
5965 substed = 0
5966 len = length(field[1])
5967 for (i = 2; i < nfields; i++) {
5968 key = field[i]
5969 keylen = length(key)
5970 if (S_is_set[key]) {
5971 value = S[key]
5972 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5973 len += length(value) + length(field[++i])
5974 substed = 1
5975 } else
5976 len += 1 + keylen
5977 }
5978
5979 print line
5980 }
5981
5982 _ACAWK
5983 _ACEOF
5984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5985 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5987 else
5988 cat
5989 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5990 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5991 _ACEOF
5992
5993 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5994 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5995 # trailing colons and then remove the whole line if VPATH becomes empty
5996 # (actually we leave an empty line to preserve line numbers).
5997 if test "x$srcdir" = x.; then
5998 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5999 h
6000 s///
6001 s/^/:/
6002 s/[ ]*$/:/
6003 s/:\$(srcdir):/:/g
6004 s/:\${srcdir}:/:/g
6005 s/:@srcdir@:/:/g
6006 s/^:*//
6007 s/:*$//
6008 x
6009 s/\(=[ ]*\).*/\1/
6010 G
6011 s/\n//
6012 s/^[^=]*=[ ]*$//
6013 }'
6014 fi
6015
6016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6017 fi # test -n "$CONFIG_FILES"
6018
6019 # Set up the scripts for CONFIG_HEADERS section.
6020 # No need to generate them if there are no CONFIG_HEADERS.
6021 # This happens for instance with './config.status Makefile'.
6022 if test -n "$CONFIG_HEADERS"; then
6023 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6024 BEGIN {
6025 _ACEOF
6026
6027 # Transform confdefs.h into an awk script 'defines.awk', embedded as
6028 # here-document in config.status, that substitutes the proper values into
6029 # config.h.in to produce config.h.
6030
6031 # Create a delimiter string that does not exist in confdefs.h, to ease
6032 # handling of long lines.
6033 ac_delim='%!_!# '
6034 for ac_last_try in false false :; do
6035 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6036 if test -z "$ac_tt"; then
6037 break
6038 elif $ac_last_try; then
6039 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6040 else
6041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6042 fi
6043 done
6044
6045 # For the awk script, D is an array of macro values keyed by name,
6046 # likewise P contains macro parameters if any. Preserve backslash
6047 # newline sequences.
6048
6049 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6050 sed -n '
6051 s/.\{148\}/&'"$ac_delim"'/g
6052 t rset
6053 :rset
6054 s/^[ ]*#[ ]*define[ ][ ]*/ /
6055 t def
6056 d
6057 :def
6058 s/\\$//
6059 t bsnl
6060 s/["\\]/\\&/g
6061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6062 D["\1"]=" \3"/p
6063 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6064 d
6065 :bsnl
6066 s/["\\]/\\&/g
6067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6068 D["\1"]=" \3\\\\\\n"\\/p
6069 t cont
6070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6071 t cont
6072 d
6073 :cont
6074 n
6075 s/.\{148\}/&'"$ac_delim"'/g
6076 t clear
6077 :clear
6078 s/\\$//
6079 t bsnlc
6080 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6081 d
6082 :bsnlc
6083 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6084 b cont
6085 ' <confdefs.h | sed '
6086 s/'"$ac_delim"'/"\\\
6087 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6088
6089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6090 for (key in D) D_is_set[key] = 1
6091 FS = ""
6092 }
6093 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6094 line = \$ 0
6095 split(line, arg, " ")
6096 if (arg[1] == "#") {
6097 defundef = arg[2]
6098 mac1 = arg[3]
6099 } else {
6100 defundef = substr(arg[1], 2)
6101 mac1 = arg[2]
6102 }
6103 split(mac1, mac2, "(") #)
6104 macro = mac2[1]
6105 prefix = substr(line, 1, index(line, defundef) - 1)
6106 if (D_is_set[macro]) {
6107 # Preserve the white space surrounding the "#".
6108 print prefix "define", macro P[macro] D[macro]
6109 next
6110 } else {
6111 # Replace #undef with comments. This is necessary, for example,
6112 # in the case of _POSIX_SOURCE, which is predefined and required
6113 # on some systems where configure will not decide to define it.
6114 if (defundef == "undef") {
6115 print "/*", prefix defundef, macro, "*/"
6116 next
6117 }
6118 }
6119 }
6120 { print }
6121 _ACAWK
6122 _ACEOF
6123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6124 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6125 fi # test -n "$CONFIG_HEADERS"
6126
6127
6128 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6129 shift
6130 for ac_tag
6131 do
6132 case $ac_tag in
6133 :[FHLC]) ac_mode=$ac_tag; continue;;
6134 esac
6135 case $ac_mode$ac_tag in
6136 :[FHL]*:*);;
6137 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
6138 :[FH]-) ac_tag=-:-;;
6139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6140 esac
6141 ac_save_IFS=$IFS
6142 IFS=:
6143 set x $ac_tag
6144 IFS=$ac_save_IFS
6145 shift
6146 ac_file=$1
6147 shift
6148
6149 case $ac_mode in
6150 :L) ac_source=$1;;
6151 :[FH])
6152 ac_file_inputs=
6153 for ac_f
6154 do
6155 case $ac_f in
6156 -) ac_f="$ac_tmp/stdin";;
6157 *) # Look for the file first in the build tree, then in the source tree
6158 # (if the path is not absolute). The absolute path cannot be DOS-style,
6159 # because $ac_f cannot contain ':'.
6160 test -f "$ac_f" ||
6161 case $ac_f in
6162 [\\/$]*) false;;
6163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6164 esac ||
6165 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
6166 esac
6167 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6168 as_fn_append ac_file_inputs " '$ac_f'"
6169 done
6170
6171 # Let's still pretend it is 'configure' which instantiates (i.e., don't
6172 # use $as_me), people would be surprised to read:
6173 # /* config.h. Generated by config.status. */
6174 configure_input='Generated from '`
6175 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6176 `' by configure.'
6177 if test x"$ac_file" != x-; then
6178 configure_input="$ac_file. $configure_input"
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6180 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6181 fi
6182 # Neutralize special characters interpreted by sed in replacement strings.
6183 case $configure_input in #(
6184 *\&* | *\|* | *\\* )
6185 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6186 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6187 *) ac_sed_conf_input=$configure_input;;
6188 esac
6189
6190 case $ac_tag in
6191 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6193 esac
6194 ;;
6195 esac
6196
6197 ac_dir=`$as_dirname -- "$ac_file" ||
6198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6199 X"$ac_file" : 'X\(//\)[^/]' \| \
6200 X"$ac_file" : 'X\(//\)$' \| \
6201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6202 printf "%s\n" X"$ac_file" |
6203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6204 s//\1/
6205 q
6206 }
6207 /^X\(\/\/\)[^/].*/{
6208 s//\1/
6209 q
6210 }
6211 /^X\(\/\/\)$/{
6212 s//\1/
6213 q
6214 }
6215 /^X\(\/\).*/{
6216 s//\1/
6217 q
6218 }
6219 s/.*/./; q'`
6220 as_dir="$ac_dir"; as_fn_mkdir_p
6221 ac_builddir=.
6222
6223 case "$ac_dir" in
6224 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6225 *)
6226 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6227 # A ".." for each directory in $ac_dir_suffix.
6228 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6229 case $ac_top_builddir_sub in
6230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6232 esac ;;
6233 esac
6234 ac_abs_top_builddir=$ac_pwd
6235 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6236 # for backward compatibility:
6237 ac_top_builddir=$ac_top_build_prefix
6238
6239 case $srcdir in
6240 .) # We are building in place.
6241 ac_srcdir=.
6242 ac_top_srcdir=$ac_top_builddir_sub
6243 ac_abs_top_srcdir=$ac_pwd ;;
6244 [\\/]* | ?:[\\/]* ) # Absolute name.
6245 ac_srcdir=$srcdir$ac_dir_suffix;
6246 ac_top_srcdir=$srcdir
6247 ac_abs_top_srcdir=$srcdir ;;
6248 *) # Relative name.
6249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6250 ac_top_srcdir=$ac_top_build_prefix$srcdir
6251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6252 esac
6253 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6254
6255
6256 case $ac_mode in
6257 :F)
6258 #
6259 # CONFIG_FILE
6260 #
6261
6262 _ACEOF
6263
6264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6265 # If the template does not know about datarootdir, expand it.
6266 # FIXME: This hack should be removed a few years after 2.60.
6267 ac_datarootdir_hack=; ac_datarootdir_seen=
6268 ac_sed_dataroot='
6269 /datarootdir/ {
6270 p
6271 q
6272 }
6273 /@datadir@/p
6274 /@docdir@/p
6275 /@infodir@/p
6276 /@localedir@/p
6277 /@mandir@/p'
6278 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6279 *datarootdir*) ac_datarootdir_seen=yes;;
6280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6282 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6283 _ACEOF
6284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6285 ac_datarootdir_hack='
6286 s&@datadir@&$datadir&g
6287 s&@docdir@&$docdir&g
6288 s&@infodir@&$infodir&g
6289 s&@localedir@&$localedir&g
6290 s&@mandir@&$mandir&g
6291 s&\\\${datarootdir}&$datarootdir&g' ;;
6292 esac
6293 _ACEOF
6294
6295 # Neutralize VPATH when '$srcdir' = '.'.
6296 # Shell code in configure.ac might set extrasub.
6297 # FIXME: do we really want to maintain this feature?
6298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6299 ac_sed_extra="$ac_vpsub
6300 $extrasub
6301 _ACEOF
6302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6303 :t
6304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6305 s|@configure_input@|$ac_sed_conf_input|;t t
6306 s&@top_builddir@&$ac_top_builddir_sub&;t t
6307 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6308 s&@srcdir@&$ac_srcdir&;t t
6309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6310 s&@top_srcdir@&$ac_top_srcdir&;t t
6311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6312 s&@builddir@&$ac_builddir&;t t
6313 s&@abs_builddir@&$ac_abs_builddir&;t t
6314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6315 $ac_datarootdir_hack
6316 "
6317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6318 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6319
6320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6321 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6323 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
6325 which seems to be undefined. Please make sure it is defined" >&5
6326 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
6327 which seems to be undefined. Please make sure it is defined" >&2;}
6328
6329 rm -f "$ac_tmp/stdin"
6330 case $ac_file in
6331 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6332 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6333 esac \
6334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6335 ;;
6336 :H)
6337 #
6338 # CONFIG_HEADER
6339 #
6340 if test x"$ac_file" != x-; then
6341 {
6342 printf "%s\n" "/* $configure_input */" >&1 \
6343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6344 } >"$ac_tmp/config.h" \
6345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6346 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6348 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
6349 else
6350 rm -f "$ac_file"
6351 mv "$ac_tmp/config.h" "$ac_file" \
6352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6353 fi
6354 else
6355 printf "%s\n" "/* $configure_input */" >&1 \
6356 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6357 || as_fn_error $? "could not create -" "$LINENO" 5
6358 fi
6359 ;;
6360
6361
6362 esac
6363
6364 done # for ac_tag
6365
6366
6367 as_fn_exit 0
6368 _ACEOF
6369 ac_clean_files=$ac_clean_files_save
6370
6371 test $ac_write_fail = 0 ||
6372 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6373
6374
6375 # configure is writing to config.log, and then calls config.status.
6376 # config.status does its own redirection, appending to config.log.
6377 # Unfortunately, on DOS this fails, as config.log is still kept open
6378 # by configure, so config.status won't be able to write to it; its
6379 # output is simply discarded. So we exec the FD to /dev/null,
6380 # effectively closing config.log, so it can be properly (re)opened and
6381 # appended to by config.status. When coming back to configure, we
6382 # need to make the FD available again.
6383 if test "$no_create" != yes; then
6384 ac_cs_success=:
6385 ac_config_status_args=
6386 test "$silent" = yes &&
6387 ac_config_status_args="$ac_config_status_args --quiet"
6388 exec 5>/dev/null
6389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6390 exec 5>>config.log
6391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6392 # would make configure fail if this is the last instruction.
6393 $ac_cs_success || as_fn_exit 1
6394 fi
6395 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6397 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6398 fi
6399
6400