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