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