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