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