configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xinit 1.1.0.
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='xinit'
576 PACKAGE_TARNAME='xinit'
577 PACKAGE_VERSION='1.1.0'
578 PACKAGE_STRING='xinit 1.1.0'
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 CPP
696 RAWCPP
697 RAWCPPFLAGS
698 SED
699 build
700 build_cpu
701 build_vendor
702 build_os
703 host
704 host_cpu
705 host_vendor
706 host_os
707 GREP
708 EGREP
709 LAUNCHD
710 launchagentsdir
711 launchdaemonsdir
712 LAUNCHD_TRUE
713 LAUNCHD_FALSE
714 PKG_CONFIG
715 XINIT_CFLAGS
716 XINIT_LIBS
717 MCOOKIE
718 STARTX_COOKIE_FLAGS
719 SHELL_CMD
720 ARCHMANDEFS
721 XRDB
722 XMODMAP
723 TWM
724 XCLOCK
725 XTERM
726 XSERVER
727 XAUTH
728 XINIT
729 APP_MAN_SUFFIX
730 LIB_MAN_SUFFIX
731 FILE_MAN_SUFFIX
732 MISC_MAN_SUFFIX
733 DRIVER_MAN_SUFFIX
734 ADMIN_MAN_SUFFIX
735 APP_MAN_DIR
736 LIB_MAN_DIR
737 FILE_MAN_DIR
738 MISC_MAN_DIR
739 DRIVER_MAN_DIR
740 ADMIN_MAN_DIR
741 LIBOBJS
742 LTLIBOBJS'
743 ac_subst_files=''
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 CPP
753 PKG_CONFIG
754 XINIT_CFLAGS
755 XINIT_LIBS'
756
757
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
763 cache_file=/dev/null
764 exec_prefix=NONE
765 no_create=
766 no_recursion=
767 prefix=NONE
768 program_prefix=NONE
769 program_suffix=NONE
770 program_transform_name=s,x,x,
771 silent=
772 site=
773 srcdir=
774 verbose=
775 x_includes=NONE
776 x_libraries=NONE
777
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
796 htmldir='${docdir}'
797 dvidir='${docdir}'
798 pdfdir='${docdir}'
799 psdir='${docdir}'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
803
804 ac_prev=
805 ac_dashdash=
806 for ac_option
807 do
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
811 ac_prev=
812 continue
813 fi
814
815 case $ac_option in
816 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *) ac_optarg=yes ;;
818 esac
819
820 # Accept the important Cygnus configure options, so we can diagnose typos.
821
822 case $ac_dashdash$ac_option in
823 --)
824 ac_dashdash=yes ;;
825
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 ac_prev=bindir ;;
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 bindir=$ac_optarg ;;
830
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
835
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
842
843 --config-cache | -C)
844 cache_file=config.cache ;;
845
846 -datadir | --datadir | --datadi | --datad)
847 ac_prev=datadir ;;
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
850
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
857
858 -disable-* | --disable-*)
859 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
862 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
863 { (exit 1); exit 1; }; }
864 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
865 eval enable_$ac_feature=no ;;
866
867 -docdir | --docdir | --docdi | --doc | --do)
868 ac_prev=docdir ;;
869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870 docdir=$ac_optarg ;;
871
872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873 ac_prev=dvidir ;;
874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875 dvidir=$ac_optarg ;;
876
877 -enable-* | --enable-*)
878 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
881 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
882 { (exit 1); exit 1; }; }
883 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
884 eval enable_$ac_feature=\$ac_optarg ;;
885
886 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888 | --exec | --exe | --ex)
889 ac_prev=exec_prefix ;;
890 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892 | --exec=* | --exe=* | --ex=*)
893 exec_prefix=$ac_optarg ;;
894
895 -gas | --gas | --ga | --g)
896 # Obsolete; use --with-gas.
897 with_gas=yes ;;
898
899 -help | --help | --hel | --he | -h)
900 ac_init_help=long ;;
901 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902 ac_init_help=recursive ;;
903 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904 ac_init_help=short ;;
905
906 -host | --host | --hos | --ho)
907 ac_prev=host_alias ;;
908 -host=* | --host=* | --hos=* | --ho=*)
909 host_alias=$ac_optarg ;;
910
911 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912 ac_prev=htmldir ;;
913 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914 | --ht=*)
915 htmldir=$ac_optarg ;;
916
917 -includedir | --includedir | --includedi | --included | --include \
918 | --includ | --inclu | --incl | --inc)
919 ac_prev=includedir ;;
920 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921 | --includ=* | --inclu=* | --incl=* | --inc=*)
922 includedir=$ac_optarg ;;
923
924 -infodir | --infodir | --infodi | --infod | --info | --inf)
925 ac_prev=infodir ;;
926 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927 infodir=$ac_optarg ;;
928
929 -libdir | --libdir | --libdi | --libd)
930 ac_prev=libdir ;;
931 -libdir=* | --libdir=* | --libdi=* | --libd=*)
932 libdir=$ac_optarg ;;
933
934 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935 | --libexe | --libex | --libe)
936 ac_prev=libexecdir ;;
937 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938 | --libexe=* | --libex=* | --libe=*)
939 libexecdir=$ac_optarg ;;
940
941 -localedir | --localedir | --localedi | --localed | --locale)
942 ac_prev=localedir ;;
943 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944 localedir=$ac_optarg ;;
945
946 -localstatedir | --localstatedir | --localstatedi | --localstated \
947 | --localstate | --localstat | --localsta | --localst | --locals)
948 ac_prev=localstatedir ;;
949 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951 localstatedir=$ac_optarg ;;
952
953 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954 ac_prev=mandir ;;
955 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956 mandir=$ac_optarg ;;
957
958 -nfp | --nfp | --nf)
959 # Obsolete; use --without-fp.
960 with_fp=no ;;
961
962 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963 | --no-cr | --no-c | -n)
964 no_create=yes ;;
965
966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968 no_recursion=yes ;;
969
970 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972 | --oldin | --oldi | --old | --ol | --o)
973 ac_prev=oldincludedir ;;
974 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977 oldincludedir=$ac_optarg ;;
978
979 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980 ac_prev=prefix ;;
981 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982 prefix=$ac_optarg ;;
983
984 -program-prefix | --program-prefix | --program-prefi | --program-pref \
985 | --program-pre | --program-pr | --program-p)
986 ac_prev=program_prefix ;;
987 -program-prefix=* | --program-prefix=* | --program-prefi=* \
988 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989 program_prefix=$ac_optarg ;;
990
991 -program-suffix | --program-suffix | --program-suffi | --program-suff \
992 | --program-suf | --program-su | --program-s)
993 ac_prev=program_suffix ;;
994 -program-suffix=* | --program-suffix=* | --program-suffi=* \
995 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996 program_suffix=$ac_optarg ;;
997
998 -program-transform-name | --program-transform-name \
999 | --program-transform-nam | --program-transform-na \
1000 | --program-transform-n | --program-transform- \
1001 | --program-transform | --program-transfor \
1002 | --program-transfo | --program-transf \
1003 | --program-trans | --program-tran \
1004 | --progr-tra | --program-tr | --program-t)
1005 ac_prev=program_transform_name ;;
1006 -program-transform-name=* | --program-transform-name=* \
1007 | --program-transform-nam=* | --program-transform-na=* \
1008 | --program-transform-n=* | --program-transform-=* \
1009 | --program-transform=* | --program-transfor=* \
1010 | --program-transfo=* | --program-transf=* \
1011 | --program-trans=* | --program-tran=* \
1012 | --progr-tra=* | --program-tr=* | --program-t=*)
1013 program_transform_name=$ac_optarg ;;
1014
1015 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016 ac_prev=pdfdir ;;
1017 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018 pdfdir=$ac_optarg ;;
1019
1020 -psdir | --psdir | --psdi | --psd | --ps)
1021 ac_prev=psdir ;;
1022 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023 psdir=$ac_optarg ;;
1024
1025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026 | -silent | --silent | --silen | --sile | --sil)
1027 silent=yes ;;
1028
1029 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030 ac_prev=sbindir ;;
1031 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032 | --sbi=* | --sb=*)
1033 sbindir=$ac_optarg ;;
1034
1035 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037 | --sharedst | --shareds | --shared | --share | --shar \
1038 | --sha | --sh)
1039 ac_prev=sharedstatedir ;;
1040 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043 | --sha=* | --sh=*)
1044 sharedstatedir=$ac_optarg ;;
1045
1046 -site | --site | --sit)
1047 ac_prev=site ;;
1048 -site=* | --site=* | --sit=*)
1049 site=$ac_optarg ;;
1050
1051 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052 ac_prev=srcdir ;;
1053 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054 srcdir=$ac_optarg ;;
1055
1056 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057 | --syscon | --sysco | --sysc | --sys | --sy)
1058 ac_prev=sysconfdir ;;
1059 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061 sysconfdir=$ac_optarg ;;
1062
1063 -target | --target | --targe | --targ | --tar | --ta | --t)
1064 ac_prev=target_alias ;;
1065 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066 target_alias=$ac_optarg ;;
1067
1068 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069 verbose=yes ;;
1070
1071 -version | --version | --versio | --versi | --vers | -V)
1072 ac_init_version=: ;;
1073
1074 -with-* | --with-*)
1075 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_$ac_package=\$ac_optarg ;;
1082
1083 -without-* | --without-*)
1084 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid package name: $ac_package" >&2
1088 { (exit 1); exit 1; }; }
1089 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1090 eval with_$ac_package=no ;;
1091
1092 --x)
1093 # Obsolete; use --with-x.
1094 with_x=yes ;;
1095
1096 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1097 | --x-incl | --x-inc | --x-in | --x-i)
1098 ac_prev=x_includes ;;
1099 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1100 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1101 x_includes=$ac_optarg ;;
1102
1103 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1104 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1105 ac_prev=x_libraries ;;
1106 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1107 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1108 x_libraries=$ac_optarg ;;
1109
1110 -*) { echo "$as_me: error: unrecognized option: $ac_option
1111 Try \`$0 --help' for more information." >&2
1112 { (exit 1); exit 1; }; }
1113 ;;
1114
1115 *=*)
1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1119 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1120 { (exit 1); exit 1; }; }
1121 eval $ac_envvar=\$ac_optarg
1122 export $ac_envvar ;;
1123
1124 *)
1125 # FIXME: should be removed in autoconf 3.0.
1126 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1127 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1128 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1129 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1130 ;;
1131
1132 esac
1133 done
1134
1135 if test -n "$ac_prev"; then
1136 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1137 { echo "$as_me: error: missing argument to $ac_option" >&2
1138 { (exit 1); exit 1; }; }
1139 fi
1140
1141 # Be sure to have absolute directory names.
1142 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143 datadir sysconfdir sharedstatedir localstatedir includedir \
1144 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145 libdir localedir mandir
1146 do
1147 eval ac_val=\$$ac_var
1148 case $ac_val in
1149 [\\/$]* | ?:[\\/]* ) continue;;
1150 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1151 esac
1152 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1153 { (exit 1); exit 1; }; }
1154 done
1155
1156 # There might be people who depend on the old broken behavior: `$host'
1157 # used to hold the argument of --host etc.
1158 # FIXME: To remove some day.
1159 build=$build_alias
1160 host=$host_alias
1161 target=$target_alias
1162
1163 # FIXME: To remove some day.
1164 if test "x$host_alias" != x; then
1165 if test "x$build_alias" = x; then
1166 cross_compiling=maybe
1167 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1168 If a cross compiler is detected then cross compile mode will be used." >&2
1169 elif test "x$build_alias" != "x$host_alias"; then
1170 cross_compiling=yes
1171 fi
1172 fi
1173
1174 ac_tool_prefix=
1175 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1176
1177 test "$silent" = yes && exec 6>/dev/null
1178
1179
1180 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1181 ac_ls_di=`ls -di .` &&
1182 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1183 { echo "$as_me: error: Working directory cannot be determined" >&2
1184 { (exit 1); exit 1; }; }
1185 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1186 { echo "$as_me: error: pwd does not report name of working directory" >&2
1187 { (exit 1); exit 1; }; }
1188
1189
1190 # Find the source files, if location was not specified.
1191 if test -z "$srcdir"; then
1192 ac_srcdir_defaulted=yes
1193 # Try the directory containing this script, then the parent directory.
1194 ac_confdir=`$as_dirname -- "$0" ||
1195 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196 X"$0" : 'X\(//\)[^/]' \| \
1197 X"$0" : 'X\(//\)$' \| \
1198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1199 echo X"$0" |
1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)[^/].*/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\/\)$/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\).*/{
1213 s//\1/
1214 q
1215 }
1216 s/.*/./; q'`
1217 srcdir=$ac_confdir
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 srcdir=..
1220 fi
1221 else
1222 ac_srcdir_defaulted=no
1223 fi
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1227 { (exit 1); exit 1; }; }
1228 fi
1229 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230 ac_abs_confdir=`(
1231 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1232 { (exit 1); exit 1; }; }
1233 pwd)`
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 srcdir=.
1237 fi
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1241 case $srcdir in
1242 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 esac
1244 for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1249 done
1250
1251 #
1252 # Report the --help message.
1253 #
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1257 cat <<_ACEOF
1258 \`configure' configures xinit 1.1.0 to adapt to many kinds of systems.
1259
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1261
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1264
1265 Defaults for the options are specified in brackets.
1266
1267 Configuration:
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1277
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1282 [PREFIX]
1283
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1288
1289 For better control, use the options below.
1290
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1311 _ACEOF
1312
1313 cat <<\_ACEOF
1314
1315 Program names:
1316 --program-prefix=PREFIX prepend PREFIX to installed program names
1317 --program-suffix=SUFFIX append SUFFIX to installed program names
1318 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1319
1320 System types:
1321 --build=BUILD configure for building on BUILD [guessed]
1322 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1323 _ACEOF
1324 fi
1325
1326 if test -n "$ac_init_help"; then
1327 case $ac_init_help in
1328 short | recursive ) echo "Configuration of xinit 1.1.0:";;
1329 esac
1330 cat <<\_ACEOF
1331
1332 Optional Features:
1333 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1334 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1335 --enable-maintainer-mode enable make rules and dependencies not useful
1336 (and sometimes confusing) to the casual installer
1337 --disable-dependency-tracking speeds up one-time build
1338 --enable-dependency-tracking do not reject slow dependency extractors
1339
1340 Optional Packages:
1341 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1342 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1343 --with-xrdb=XRDB Path to xrdb
1344 --with-xmodmap=XMODMAP Path to xmodmap
1345 --with-twm=TWM Path to twm
1346 --with-xclock=XCLOCK Path to xclock
1347 --with-xterm=XTERM Path to xterm
1348 --with-xserver=XSERVER Path to default X server
1349 --with-xauth=XAUTH Path to xauth
1350 --with-xinit=XINIT Path to xinit
1351 --with-launchd Build with support for Apple's launchd (default:
1352 auto)
1353 --with-launchagents-dir=PATH
1354 Path to launchd's LaunchAgents directory (default:
1355 /Library/LaunchAgents)
1356 --with-launchdaemons-dir=PATH
1357 Path to launchd's LaunchDaemonss directory (default:
1358 /Library/LaunchDaemons)
1359 --with-release-version=STRING
1360 Use release version string in package name
1361
1362 Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
1367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
1370 CPP C preprocessor
1371 PKG_CONFIG path to pkg-config utility
1372 XINIT_CFLAGS
1373 C compiler flags for XINIT, overriding pkg-config
1374 XINIT_LIBS linker flags for XINIT, overriding pkg-config
1375
1376 Use these variables to override the choices made by `configure' or to help
1377 it to find libraries and programs with nonstandard names/locations.
1378
1379 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1380 _ACEOF
1381 ac_status=$?
1382 fi
1383
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" || continue
1388 ac_builddir=.
1389
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *)
1393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1405
1406 case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1435 fi
1436
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439 cat <<\_ACEOF
1440 xinit configure 1.1.0
1441 generated by GNU Autoconf 2.61
1442
1443 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1444 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448 exit
1449 fi
1450 cat >config.log <<_ACEOF
1451 This file contains any messages produced by compilers while
1452 running configure, to aid debugging if configure makes a mistake.
1453
1454 It was created by xinit $as_me 1.1.0, which was
1455 generated by GNU Autoconf 2.61. Invocation command line was
1456
1457 $ $0 $@
1458
1459 _ACEOF
1460 exec 5>>config.log
1461 {
1462 cat <<_ASUNAME
1463 ## --------- ##
1464 ## Platform. ##
1465 ## --------- ##
1466
1467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1475
1476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1483
1484 _ASUNAME
1485
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 echo "PATH: $as_dir"
1492 done
1493 IFS=$as_save_IFS
1494
1495 } >&5
1496
1497 cat >&5 <<_ACEOF
1498
1499
1500 ## ----------- ##
1501 ## Core tests. ##
1502 ## ----------- ##
1503
1504 _ACEOF
1505
1506
1507 # Keep a trace of the command line.
1508 # Strip out --no-create and --no-recursion so they do not pile up.
1509 # Strip out --silent because we don't want to record it for future runs.
1510 # Also quote any args containing shell meta-characters.
1511 # Make two passes to allow for proper duplicate-argument suppression.
1512 ac_configure_args=
1513 ac_configure_args0=
1514 ac_configure_args1=
1515 ac_must_keep_next=false
1516 for ac_pass in 1 2
1517 do
1518 for ac_arg
1519 do
1520 case $ac_arg in
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 continue ;;
1525 *\'*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 esac
1528 case $ac_pass in
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530 2)
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1534 else
1535 case $ac_arg in
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 esac
1543 ;;
1544 -* ) ac_must_keep_next=true ;;
1545 esac
1546 fi
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 ;;
1549 esac
1550 done
1551 done
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log. We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560 trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1562 {
1563 echo
1564
1565 cat <<\_ASBOX
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1569 _ASBOX
1570 echo
1571 # The following way of writing the cache mishandles newlines in values,
1572 (
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in #(
1576 *${as_nl}*)
1577 case $ac_var in #(
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 esac
1581 case $ac_var in #(
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1584 esac ;;
1585 esac
1586 done
1587 (set) 2>&1 |
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1590 sed -n \
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 ;; #(
1594 *)
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596 ;;
1597 esac |
1598 sort
1599 )
1600 echo
1601
1602 cat <<\_ASBOX
1603 ## ----------------- ##
1604 ## Output variables. ##
1605 ## ----------------- ##
1606 _ASBOX
1607 echo
1608 for ac_var in $ac_subst_vars
1609 do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1617
1618 if test -n "$ac_subst_files"; then
1619 cat <<\_ASBOX
1620 ## ------------------- ##
1621 ## File substitutions. ##
1622 ## ------------------- ##
1623 _ASBOX
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 cat <<\_ASBOX
1638 ## ----------- ##
1639 ## confdefs.h. ##
1640 ## ----------- ##
1641 _ASBOX
1642 echo
1643 cat confdefs.h
1644 echo
1645 fi
1646 test "$ac_signal" != 0 &&
1647 echo "$as_me: caught signal $ac_signal"
1648 echo "$as_me: exit $exit_status"
1649 } >&5
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 exit $exit_status
1653 ' 0
1654 for ac_signal in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656 done
1657 ac_signal=0
1658
1659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1660 rm -f -r conftest* confdefs.h
1661
1662 # Predefined preprocessor variables.
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_STRING "$PACKAGE_STRING"
1681 _ACEOF
1682
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686 _ACEOF
1687
1688
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer explicitly selected file to automatically selected ones.
1691 if test -n "$CONFIG_SITE"; then
1692 set x "$CONFIG_SITE"
1693 elif test "x$prefix" != xNONE; then
1694 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695 else
1696 set x "$ac_default_prefix/share/config.site" \
1697 "$ac_default_prefix/etc/config.site"
1698 fi
1699 shift
1700 for ac_site_file
1701 do
1702 if test -r "$ac_site_file"; then
1703 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704 echo "$as_me: loading site script $ac_site_file" >&6;}
1705 sed 's/^/| /' "$ac_site_file" >&5
1706 . "$ac_site_file"
1707 fi
1708 done
1709
1710 if test -r "$cache_file"; then
1711 # Some versions of bash will fail to source /dev/null (special
1712 # files actually), so we avoid doing that.
1713 if test -f "$cache_file"; then
1714 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715 echo "$as_me: loading cache $cache_file" >&6;}
1716 case $cache_file in
1717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718 *) . "./$cache_file";;
1719 esac
1720 fi
1721 else
1722 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723 echo "$as_me: creating cache $cache_file" >&6;}
1724 >$cache_file
1725 fi
1726
1727 # Check that the precious variables saved in the cache have kept the same
1728 # value.
1729 ac_cache_corrupted=false
1730 for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1736 set,)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,set)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,);;
1745 *)
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1750 echo "$as_me: former value: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1752 echo "$as_me: current value: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1754 fi;;
1755 esac
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1758 case $ac_new_val in
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1761 esac
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765 esac
1766 fi
1767 done
1768 if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1774 fi
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807 am__api_version='1.10'
1808
1809 ac_aux_dir=
1810 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1811 if test -f "$ac_dir/install-sh"; then
1812 ac_aux_dir=$ac_dir
1813 ac_install_sh="$ac_aux_dir/install-sh -c"
1814 break
1815 elif test -f "$ac_dir/install.sh"; then
1816 ac_aux_dir=$ac_dir
1817 ac_install_sh="$ac_aux_dir/install.sh -c"
1818 break
1819 elif test -f "$ac_dir/shtool"; then
1820 ac_aux_dir=$ac_dir
1821 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 break
1823 fi
1824 done
1825 if test -z "$ac_aux_dir"; then
1826 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1827 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1828 { (exit 1); exit 1; }; }
1829 fi
1830
1831 # These three variables are undocumented and unsupported,
1832 # and are intended to be withdrawn in a future Autoconf release.
1833 # They can cause serious problems if a builder's source tree is in a directory
1834 # whose full name contains unusual characters.
1835 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1836 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1837 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1838
1839
1840 # Find a good install program. We prefer a C program (faster),
1841 # so one script is as good as another. But avoid the broken or
1842 # incompatible versions:
1843 # SysV /etc/install, /usr/sbin/install
1844 # SunOS /usr/etc/install
1845 # IRIX /sbin/install
1846 # AIX /bin/install
1847 # AmigaOS /C/install, which installs bootblocks on floppy discs
1848 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1849 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1850 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1851 # OS/2's system install, which has a completely different semantic
1852 # ./install, which can be erroneously created by make from ./install.sh.
1853 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1854 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1855 if test -z "$INSTALL"; then
1856 if test "${ac_cv_path_install+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 # Account for people who put trailing slashes in PATH elements.
1865 case $as_dir/ in
1866 ./ | .// | /cC/* | \
1867 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1868 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1869 /usr/ucb/* ) ;;
1870 *)
1871 # OSF1 and SCO ODT 3.0 have their own names for install.
1872 # Don't use installbsd from OSF since it installs stuff as root
1873 # by default.
1874 for ac_prog in ginstall scoinst install; do
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1877 if test $ac_prog = install &&
1878 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1879 # AIX install. It has an incompatible calling convention.
1880 :
1881 elif test $ac_prog = install &&
1882 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1883 # program-specific install script used by HP pwplus--don't use.
1884 :
1885 else
1886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1887 break 3
1888 fi
1889 fi
1890 done
1891 done
1892 ;;
1893 esac
1894 done
1895 IFS=$as_save_IFS
1896
1897
1898 fi
1899 if test "${ac_cv_path_install+set}" = set; then
1900 INSTALL=$ac_cv_path_install
1901 else
1902 # As a last resort, use the slow shell script. Don't cache a
1903 # value for INSTALL within a source directory, because that will
1904 # break other packages using the cache if that directory is
1905 # removed, or if the value is a relative name.
1906 INSTALL=$ac_install_sh
1907 fi
1908 fi
1909 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1910 echo "${ECHO_T}$INSTALL" >&6; }
1911
1912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1913 # It thinks the first close brace ends the variable substitution.
1914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1915
1916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1917
1918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1919
1920 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1921 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1922 # Just in case
1923 sleep 1
1924 echo timestamp > conftest.file
1925 # Do `set' in a subshell so we don't clobber the current shell's
1926 # arguments. Must try -L first in case configure is actually a
1927 # symlink; some systems play weird games with the mod time of symlinks
1928 # (eg FreeBSD returns the mod time of the symlink's containing
1929 # directory).
1930 if (
1931 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1932 if test "$*" = "X"; then
1933 # -L didn't work.
1934 set X `ls -t $srcdir/configure conftest.file`
1935 fi
1936 rm -f conftest.file
1937 if test "$*" != "X $srcdir/configure conftest.file" \
1938 && test "$*" != "X conftest.file $srcdir/configure"; then
1939
1940 # If neither matched, then we have a broken ls. This can happen
1941 # if, for instance, CONFIG_SHELL is bash and it inherits a
1942 # broken ls alias from the environment. This has actually
1943 # happened. Such a system could not be considered "sane".
1944 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1945 alias in your environment" >&5
1946 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1947 alias in your environment" >&2;}
1948 { (exit 1); exit 1; }; }
1949 fi
1950
1951 test "$2" = conftest.file
1952 )
1953 then
1954 # Ok.
1955 :
1956 else
1957 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1958 Check your system clock" >&5
1959 echo "$as_me: error: newly created file is older than distributed files!
1960 Check your system clock" >&2;}
1961 { (exit 1); exit 1; }; }
1962 fi
1963 { echo "$as_me:$LINENO: result: yes" >&5
1964 echo "${ECHO_T}yes" >&6; }
1965 test "$program_prefix" != NONE &&
1966 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1967 # Use a double $ so make ignores it.
1968 test "$program_suffix" != NONE &&
1969 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1970 # Double any \ or $. echo might interpret backslashes.
1971 # By default was `s,x,x', remove it if useless.
1972 cat <<\_ACEOF >conftest.sed
1973 s/[\\$]/&&/g;s/;s,x,x,$//
1974 _ACEOF
1975 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1976 rm -f conftest.sed
1977
1978 # expand $ac_aux_dir to an absolute path
1979 am_aux_dir=`cd $ac_aux_dir && pwd`
1980
1981 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1982 # Use eval to expand $SHELL
1983 if eval "$MISSING --run true"; then
1984 am_missing_run="$MISSING --run "
1985 else
1986 am_missing_run=
1987 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1988 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1989 fi
1990
1991 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1992 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1993 if test -z "$MKDIR_P"; then
1994 if test "${ac_cv_path_mkdir+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1999 do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_prog in mkdir gmkdir; do
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2005 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2006 'mkdir (GNU coreutils) '* | \
2007 'mkdir (coreutils) '* | \
2008 'mkdir (fileutils) '4.1*)
2009 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2010 break 3;;
2011 esac
2012 done
2013 done
2014 done
2015 IFS=$as_save_IFS
2016
2017 fi
2018
2019 if test "${ac_cv_path_mkdir+set}" = set; then
2020 MKDIR_P="$ac_cv_path_mkdir -p"
2021 else
2022 # As a last resort, use the slow shell script. Don't cache a
2023 # value for MKDIR_P within a source directory, because that will
2024 # break other packages using the cache if that directory is
2025 # removed, or if the value is a relative name.
2026 test -d ./--version && rmdir ./--version
2027 MKDIR_P="$ac_install_sh -d"
2028 fi
2029 fi
2030 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2031 echo "${ECHO_T}$MKDIR_P" >&6; }
2032
2033 mkdir_p="$MKDIR_P"
2034 case $mkdir_p in
2035 [\\/$]* | ?:[\\/]*) ;;
2036 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2037 esac
2038
2039 for ac_prog in gawk mawk nawk awk
2040 do
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_prog_AWK+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test -n "$AWK"; then
2049 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_prog_AWK="$ac_prog"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064 IFS=$as_save_IFS
2065
2066 fi
2067 fi
2068 AWK=$ac_cv_prog_AWK
2069 if test -n "$AWK"; then
2070 { echo "$as_me:$LINENO: result: $AWK" >&5
2071 echo "${ECHO_T}$AWK" >&6; }
2072 else
2073 { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2075 fi
2076
2077
2078 test -n "$AWK" && break
2079 done
2080
2081 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2082 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2083 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2084 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 cat >conftest.make <<\_ACEOF
2088 SHELL = /bin/sh
2089 all:
2090 @echo '@@@%%%=$(MAKE)=@@@%%%'
2091 _ACEOF
2092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2093 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2094 *@@@%%%=?*=@@@%%%*)
2095 eval ac_cv_prog_make_${ac_make}_set=yes;;
2096 *)
2097 eval ac_cv_prog_make_${ac_make}_set=no;;
2098 esac
2099 rm -f conftest.make
2100 fi
2101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2102 { echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6; }
2104 SET_MAKE=
2105 else
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2108 SET_MAKE="MAKE=${MAKE-make}"
2109 fi
2110
2111 rm -rf .tst 2>/dev/null
2112 mkdir .tst 2>/dev/null
2113 if test -d .tst; then
2114 am__leading_dot=.
2115 else
2116 am__leading_dot=_
2117 fi
2118 rmdir .tst 2>/dev/null
2119
2120 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2122 # is not polluted with repeated "-I."
2123 am__isrc=' -I$(srcdir)'
2124 # test to see if srcdir already configured
2125 if test -f $srcdir/config.status; then
2126 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2127 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2128 { (exit 1); exit 1; }; }
2129 fi
2130 fi
2131
2132 # test whether we have cygpath
2133 if test -z "$CYGPATH_W"; then
2134 if (cygpath --version) >/dev/null 2>/dev/null; then
2135 CYGPATH_W='cygpath -w'
2136 else
2137 CYGPATH_W=echo
2138 fi
2139 fi
2140
2141
2142 # Define the identity of the package.
2143 PACKAGE='xinit'
2144 VERSION='1.1.0'
2145
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE "$PACKAGE"
2149 _ACEOF
2150
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define VERSION "$VERSION"
2154 _ACEOF
2155
2156 # Some tools Automake needs.
2157
2158 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2159
2160
2161 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2162
2163
2164 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2165
2166
2167 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2168
2169
2170 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2171
2172 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2173
2174 # Installed binaries are usually stripped using `strip' when the user
2175 # run `make install-strip'. However `strip' might not be the right
2176 # tool to use in cross-compilation environments, therefore Automake
2177 # will honor the `STRIP' environment variable to overrule this program.
2178 if test "$cross_compiling" != no; then
2179 if test -n "$ac_tool_prefix"; then
2180 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2181 set dummy ${ac_tool_prefix}strip; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_STRIP+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$STRIP"; then
2188 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2200 fi
2201 done
2202 done
2203 IFS=$as_save_IFS
2204
2205 fi
2206 fi
2207 STRIP=$ac_cv_prog_STRIP
2208 if test -n "$STRIP"; then
2209 { echo "$as_me:$LINENO: result: $STRIP" >&5
2210 echo "${ECHO_T}$STRIP" >&6; }
2211 else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 fi
2215
2216
2217 fi
2218 if test -z "$ac_cv_prog_STRIP"; then
2219 ac_ct_STRIP=$STRIP
2220 # Extract the first word of "strip", so it can be a program name with args.
2221 set dummy strip; ac_word=$2
2222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2224 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 if test -n "$ac_ct_STRIP"; then
2228 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237 ac_cv_prog_ac_ct_STRIP="strip"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2240 fi
2241 done
2242 done
2243 IFS=$as_save_IFS
2244
2245 fi
2246 fi
2247 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2248 if test -n "$ac_ct_STRIP"; then
2249 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2250 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2251 else
2252 { echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6; }
2254 fi
2255
2256 if test "x$ac_ct_STRIP" = x; then
2257 STRIP=":"
2258 else
2259 case $cross_compiling:$ac_tool_warned in
2260 yes:)
2261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2262 whose name does not start with the host triplet. If you think this
2263 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2265 whose name does not start with the host triplet. If you think this
2266 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2267 ac_tool_warned=yes ;;
2268 esac
2269 STRIP=$ac_ct_STRIP
2270 fi
2271 else
2272 STRIP="$ac_cv_prog_STRIP"
2273 fi
2274
2275 fi
2276 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2277
2278 # We need awk for the "check" target. The system "awk" is bad on
2279 # some platforms.
2280 # Always define AMTAR for backward compatibility.
2281
2282 AMTAR=${AMTAR-"${am_missing_run}tar"}
2283
2284 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2285
2286
2287
2288
2289
2290 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2291 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2292 # Check whether --enable-maintainer-mode was given.
2293 if test "${enable_maintainer_mode+set}" = set; then
2294 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2295 else
2296 USE_MAINTAINER_MODE=no
2297 fi
2298
2299 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2300 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2301 if test $USE_MAINTAINER_MODE = yes; then
2302 MAINTAINER_MODE_TRUE=
2303 MAINTAINER_MODE_FALSE='#'
2304 else
2305 MAINTAINER_MODE_TRUE='#'
2306 MAINTAINER_MODE_FALSE=
2307 fi
2308
2309 MAINT=$MAINTAINER_MODE_TRUE
2310
2311
2312
2313 ac_config_headers="$ac_config_headers config.h"
2314
2315
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2356 fi
2357
2358
2359 fi
2360 if test -z "$ac_cv_prog_CC"; then
2361 ac_ct_CC=$CC
2362 # Extract the first word of "gcc", so it can be a program name with args.
2363 set dummy gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$ac_ct_CC"; then
2370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_CC="gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6; }
2393 else
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396 fi
2397
2398 if test "x$ac_ct_CC" = x; then
2399 CC=""
2400 else
2401 case $cross_compiling:$ac_tool_warned in
2402 yes:)
2403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2409 ac_tool_warned=yes ;;
2410 esac
2411 CC=$ac_ct_CC
2412 fi
2413 else
2414 CC="$ac_cv_prog_CC"
2415 fi
2416
2417 if test -z "$CC"; then
2418 if test -n "$ac_tool_prefix"; then
2419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}cc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436 ac_cv_prog_CC="${ac_tool_prefix}cc"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2439 fi
2440 done
2441 done
2442 IFS=$as_save_IFS
2443
2444 fi
2445 fi
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448 { echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6; }
2450 else
2451 { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2453 fi
2454
2455
2456 fi
2457 fi
2458 if test -z "$CC"; then
2459 # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 ac_prog_rejected=no
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478 ac_prog_rejected=yes
2479 continue
2480 fi
2481 ac_cv_prog_CC="cc"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 if test $ac_prog_rejected = yes; then
2490 # We found a bogon in the path, so make sure we never use it.
2491 set dummy $ac_cv_prog_CC
2492 shift
2493 if test $# != 0; then
2494 # We chose a different compiler from the bogus one.
2495 # However, it has the same basename, so the bogon will be chosen
2496 # first if we set CC to just the basename; use the full file name.
2497 shift
2498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2499 fi
2500 fi
2501 fi
2502 fi
2503 CC=$ac_cv_prog_CC
2504 if test -n "$CC"; then
2505 { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512
2513 fi
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 for ac_prog in cl.exe
2517 do
2518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 CC=$ac_cv_prog_CC
2546 if test -n "$CC"; then
2547 { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2549 else
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2552 fi
2553
2554
2555 test -n "$CC" && break
2556 done
2557 fi
2558 if test -z "$CC"; then
2559 ac_ct_CC=$CC
2560 for ac_prog in cl.exe
2561 do
2562 # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_CC="$ac_prog"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 echo "${ECHO_T}$ac_ct_CC" >&6; }
2593 else
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2596 fi
2597
2598
2599 test -n "$ac_ct_CC" && break
2600 done
2601
2602 if test "x$ac_ct_CC" = x; then
2603 CC=""
2604 else
2605 case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615 CC=$ac_ct_CC
2616 fi
2617 fi
2618
2619 fi
2620
2621
2622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details." >&5
2624 echo "$as_me: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2627
2628 # Provide some information about the compiler.
2629 echo "$as_me:$LINENO: checking for C compiler version" >&5
2630 ac_compiler=`set X $ac_compile; echo $2`
2631 { (ac_try="$ac_compiler --version >&5"
2632 case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compiler --version >&5") 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }
2641 { (ac_try="$ac_compiler -v >&5"
2642 case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compiler -v >&5") 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2652 case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compiler -V >&5") 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }
2661
2662 cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h. */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2668
2669 int
2670 main ()
2671 {
2672
2673 ;
2674 return 0;
2675 }
2676 _ACEOF
2677 ac_clean_files_save=$ac_clean_files
2678 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2679 # Try to create an executable without -o first, disregard a.out.
2680 # It will help us diagnose broken compilers, and finding out an intuition
2681 # of exeext.
2682 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2683 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2685 #
2686 # List of possible output files, starting from the most likely.
2687 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2688 # only as a last resort. b.out is created by i960 compilers.
2689 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2690 #
2691 # The IRIX 6 linker writes into existing files which may not be
2692 # executable, retaining their permissions. Remove them first so a
2693 # subsequent execution test works.
2694 ac_rmfiles=
2695 for ac_file in $ac_files
2696 do
2697 case $ac_file in
2698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2699 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2700 esac
2701 done
2702 rm -f $ac_rmfiles
2703
2704 if { (ac_try="$ac_link_default"
2705 case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_link_default") 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; then
2714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2717 # so that the user can short-circuit this test for compilers unknown to
2718 # Autoconf.
2719 for ac_file in $ac_files ''
2720 do
2721 test -f "$ac_file" || continue
2722 case $ac_file in
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2724 ;;
2725 [ab].out )
2726 # We found the default executable, but exeext='' is most
2727 # certainly right.
2728 break;;
2729 *.* )
2730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2731 then :; else
2732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733 fi
2734 # We set ac_cv_exeext here because the later test for it is not
2735 # safe: cross compilers may not add the suffix if given an `-o'
2736 # argument, so we may need to know it at that point already.
2737 # Even if this section looks crufty: it has the advantage of
2738 # actually working.
2739 break;;
2740 * )
2741 break;;
2742 esac
2743 done
2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
2745
2746 else
2747 ac_file=''
2748 fi
2749
2750 { echo "$as_me:$LINENO: result: $ac_file" >&5
2751 echo "${ECHO_T}$ac_file" >&6; }
2752 if test -z "$ac_file"; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&5
2758 echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log' for more details." >&2;}
2760 { (exit 77); exit 77; }; }
2761 fi
2762
2763 ac_exeext=$ac_cv_exeext
2764
2765 # Check that the compiler produces executables we can run. If not, either
2766 # the compiler is broken, or we cross compile.
2767 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770 # If not cross compiling, check that we can run a simple program.
2771 if test "$cross_compiling" != yes; then
2772 if { ac_try='./$ac_file'
2773 { (case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_try") 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 cross_compiling=no
2783 else
2784 if test "$cross_compiling" = maybe; then
2785 cross_compiling=yes
2786 else
2787 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2794 fi
2795 fi
2796 fi
2797 { echo "$as_me:$LINENO: result: yes" >&5
2798 echo "${ECHO_T}yes" >&6; }
2799
2800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2801 ac_clean_files=$ac_clean_files_save
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2806 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2807 echo "${ECHO_T}$cross_compiling" >&6; }
2808
2809 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2810 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2811 if { (ac_try="$ac_link"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
2824 # `rm'.
2825 for ac_file in conftest.exe conftest conftest.*; do
2826 test -f "$ac_file" || continue
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830 break;;
2831 * ) break;;
2832 esac
2833 done
2834 else
2835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2840 fi
2841
2842 rm -f conftest$ac_cv_exeext
2843 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2844 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2845
2846 rm -f conftest.$ac_ext
2847 EXEEXT=$ac_cv_exeext
2848 ac_exeext=$EXEEXT
2849 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2851 if test "${ac_cv_objext+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860
2861 int
2862 main ()
2863 {
2864
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.o conftest.obj
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 for ac_file in conftest.o conftest.obj conftest.*; do
2881 test -f "$ac_file" || continue;
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2885 break;;
2886 esac
2887 done
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2897 fi
2898
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2900 fi
2901 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2902 echo "${ECHO_T}$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2904 ac_objext=$OBJEXT
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916
2917 int
2918 main ()
2919 {
2920 #ifndef __GNUC__
2921 choke me
2922 #endif
2923
2924 ;
2925 return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.$ac_objext; then
2945 ac_compiler_gnu=yes
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 ac_compiler_gnu=no
2951 fi
2952
2953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2955
2956 fi
2957 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2959 GCC=`test $ac_compiler_gnu = yes && echo yes`
2960 ac_test_CFLAGS=${CFLAGS+set}
2961 ac_save_CFLAGS=$CFLAGS
2962 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2963 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_cc_g+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967 ac_save_c_werror_flag=$ac_c_werror_flag
2968 ac_c_werror_flag=yes
2969 ac_cv_prog_cc_g=no
2970 CFLAGS="-g"
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2977
2978 int
2979 main ()
2980 {
2981
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3003 ac_cv_prog_cc_g=yes
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 CFLAGS=""
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015
3016 int
3017 main ()
3018 {
3019
3020 ;
3021 return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
3041 :
3042 else
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 ac_c_werror_flag=$ac_save_c_werror_flag
3047 CFLAGS="-g"
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054
3055 int
3056 main ()
3057 {
3058
3059 ;
3060 return 0;
3061 }
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3080 ac_cv_prog_cc_g=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085
3086 fi
3087
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 fi
3090
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 fi
3093
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3096 fi
3097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3099 if test "$ac_test_CFLAGS" = set; then
3100 CFLAGS=$ac_save_CFLAGS
3101 elif test $ac_cv_prog_cc_g = yes; then
3102 if test "$GCC" = yes; then
3103 CFLAGS="-g -O2"
3104 else
3105 CFLAGS="-g"
3106 fi
3107 else
3108 if test "$GCC" = yes; then
3109 CFLAGS="-O2"
3110 else
3111 CFLAGS=
3112 fi
3113 fi
3114 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3115 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cc_c89+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 ac_cv_prog_cc_c89=no
3120 ac_save_CC=$CC
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <stdarg.h>
3128 #include <stdio.h>
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3132 struct buf { int x; };
3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134 static char *e (p, i)
3135 char **p;
3136 int i;
3137 {
3138 return p[i];
3139 }
3140 static char *f (char * (*g) (char **, int), char **p, ...)
3141 {
3142 char *s;
3143 va_list v;
3144 va_start (v,p);
3145 s = g (p, va_arg (v,int));
3146 va_end (v);
3147 return s;
3148 }
3149
3150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3151 function prototypes and stuff, but not '\xHH' hex character constants.
3152 These don't provoke an error unfortunately, instead are silently treated
3153 as 'x'. The following induces an error, until -std is added to get
3154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3155 array size at least. It's necessary to write '\x00'==0 to get something
3156 that's true only with -std. */
3157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3158
3159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3160 inside strings and character constants. */
3161 #define FOO(x) 'x'
3162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3163
3164 int test (int i, double x);
3165 struct s1 {int (*f) (int a);};
3166 struct s2 {int (*f) (double a);};
3167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168 int argc;
3169 char **argv;
3170 int
3171 main ()
3172 {
3173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3174 ;
3175 return 0;
3176 }
3177 _ACEOF
3178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3180 do
3181 CC="$ac_save_CC $ac_arg"
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.$ac_objext; then
3199 ac_cv_prog_cc_c89=$ac_arg
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext
3208 test "x$ac_cv_prog_cc_c89" != "xno" && break
3209 done
3210 rm -f conftest.$ac_ext
3211 CC=$ac_save_CC
3212
3213 fi
3214 # AC_CACHE_VAL
3215 case "x$ac_cv_prog_cc_c89" in
3216 x)
3217 { echo "$as_me:$LINENO: result: none needed" >&5
3218 echo "${ECHO_T}none needed" >&6; } ;;
3219 xno)
3220 { echo "$as_me:$LINENO: result: unsupported" >&5
3221 echo "${ECHO_T}unsupported" >&6; } ;;
3222 *)
3223 CC="$CC $ac_cv_prog_cc_c89"
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3226 esac
3227
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 DEPDIR="${am__leading_dot}deps"
3235
3236 ac_config_commands="$ac_config_commands depfiles"
3237
3238
3239 am_make=${MAKE-make}
3240 cat > confinc << 'END'
3241 am__doit:
3242 @echo done
3243 .PHONY: am__doit
3244 END
3245 # If we don't find an include directive, just comment out the code.
3246 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3247 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3248 am__include="#"
3249 am__quote=
3250 _am_result=none
3251 # First try GNU make style include.
3252 echo "include confinc" > confmf
3253 # We grep out `Entering directory' and `Leaving directory'
3254 # messages which can occur if `w' ends up in MAKEFLAGS.
3255 # In particular we don't look at `^make:' because GNU make might
3256 # be invoked under some other name (usually "gmake"), in which
3257 # case it prints its new name instead of `make'.
3258 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3259 am__include=include
3260 am__quote=
3261 _am_result=GNU
3262 fi
3263 # Now try BSD make style include.
3264 if test "$am__include" = "#"; then
3265 echo '.include "confinc"' > confmf
3266 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3267 am__include=.include
3268 am__quote="\""
3269 _am_result=BSD
3270 fi
3271 fi
3272
3273
3274 { echo "$as_me:$LINENO: result: $_am_result" >&5
3275 echo "${ECHO_T}$_am_result" >&6; }
3276 rm -f confinc confmf
3277
3278 # Check whether --enable-dependency-tracking was given.
3279 if test "${enable_dependency_tracking+set}" = set; then
3280 enableval=$enable_dependency_tracking;
3281 fi
3282
3283 if test "x$enable_dependency_tracking" != xno; then
3284 am_depcomp="$ac_aux_dir/depcomp"
3285 AMDEPBACKSLASH='\'
3286 fi
3287 if test "x$enable_dependency_tracking" != xno; then
3288 AMDEP_TRUE=
3289 AMDEP_FALSE='#'
3290 else
3291 AMDEP_TRUE='#'
3292 AMDEP_FALSE=
3293 fi
3294
3295
3296
3297 depcc="$CC" am_compiler_list=
3298
3299 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3300 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3301 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3305 # We make a subdir and do the tests there. Otherwise we can end up
3306 # making bogus files that we don't know about and never remove. For
3307 # instance it was reported that on HP-UX the gcc test will end up
3308 # making a dummy file named `D' -- because `-MD' means `put the output
3309 # in D'.
3310 mkdir conftest.dir
3311 # Copy depcomp to subdir because otherwise we won't find it if we're
3312 # using a relative directory.
3313 cp "$am_depcomp" conftest.dir
3314 cd conftest.dir
3315 # We will build objects and dependencies in a subdirectory because
3316 # it helps to detect inapplicable dependency modes. For instance
3317 # both Tru64's cc and ICC support -MD to output dependencies as a
3318 # side effect of compilation, but ICC will put the dependencies in
3319 # the current directory while Tru64 will put them in the object
3320 # directory.
3321 mkdir sub
3322
3323 am_cv_CC_dependencies_compiler_type=none
3324 if test "$am_compiler_list" = ""; then
3325 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3326 fi
3327 for depmode in $am_compiler_list; do
3328 # Setup a source with many dependencies, because some compilers
3329 # like to wrap large dependency lists on column 80 (with \), and
3330 # we should not choose a depcomp mode which is confused by this.
3331 #
3332 # We need to recreate these files for each test, as the compiler may
3333 # overwrite some of them when testing with obscure command lines.
3334 # This happens at least with the AIX C compiler.
3335 : > sub/conftest.c
3336 for i in 1 2 3 4 5 6; do
3337 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3338 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3339 # Solaris 8's {/usr,}/bin/sh.
3340 touch sub/conftst$i.h
3341 done
3342 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3343
3344 case $depmode in
3345 nosideeffect)
3346 # after this tag, mechanisms are not by side-effect, so they'll
3347 # only be used when explicitly requested
3348 if test "x$enable_dependency_tracking" = xyes; then
3349 continue
3350 else
3351 break
3352 fi
3353 ;;
3354 none) break ;;
3355 esac
3356 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3357 # mode. It turns out that the SunPro C++ compiler does not properly
3358 # handle `-M -o', and we need to detect this.
3359 if depmode=$depmode \
3360 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3361 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3362 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3363 >/dev/null 2>conftest.err &&
3364 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3365 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3366 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3367 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3368 # icc doesn't choke on unknown options, it will just issue warnings
3369 # or remarks (even with -Werror). So we grep stderr for any message
3370 # that says an option was ignored or not supported.
3371 # When given -MP, icc 7.0 and 7.1 complain thusly:
3372 # icc: Command line warning: ignoring option '-M'; no argument required
3373 # The diagnosis changed in icc 8.0:
3374 # icc: Command line remark: option '-MP' not supported
3375 if (grep 'ignoring option' conftest.err ||
3376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3377 am_cv_CC_dependencies_compiler_type=$depmode
3378 break
3379 fi
3380 fi
3381 done
3382
3383 cd ..
3384 rm -rf conftest.dir
3385 else
3386 am_cv_CC_dependencies_compiler_type=none
3387 fi
3388
3389 fi
3390 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3391 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3392 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3393
3394 if
3395 test "x$enable_dependency_tracking" != xno \
3396 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3397 am__fastdepCC_TRUE=
3398 am__fastdepCC_FALSE='#'
3399 else
3400 am__fastdepCC_TRUE='#'
3401 am__fastdepCC_FALSE=
3402 fi
3403
3404
3405 if test "x$CC" != xcc; then
3406 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3407 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3408 else
3409 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3410 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3411 fi
3412 set dummy $CC; ac_cc=`echo $2 |
3413 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3414 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423
3424 int
3425 main ()
3426 {
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 # Make sure it works both with $CC and with simple cc.
3433 # We do the test twice because some compilers refuse to overwrite an
3434 # existing .o file with -o, though they will create one.
3435 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3436 rm -f conftest2.*
3437 if { (case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_try") 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_try") 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); };
3455 then
3456 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3457 if test "x$CC" != xcc; then
3458 # Test first that cc exists at all.
3459 if { ac_try='cc -c conftest.$ac_ext >&5'
3460 { (case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_try") 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3470 rm -f conftest2.*
3471 if { (case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_try") 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_try") 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); };
3489 then
3490 # cc works too.
3491 :
3492 else
3493 # cc exists but doesn't like -o.
3494 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3495 fi
3496 fi
3497 fi
3498 else
3499 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3500 fi
3501 rm -f core conftest*
3502
3503 fi
3504 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3505 { echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6; }
3507 else
3508 { echo "$as_me:$LINENO: result: no" >&5
3509 echo "${ECHO_T}no" >&6; }
3510
3511 cat >>confdefs.h <<\_ACEOF
3512 #define NO_MINUS_C_MINUS_O 1
3513 _ACEOF
3514
3515 fi
3516
3517 # FIXME: we rely on the cache variable name because
3518 # there is no other way.
3519 set dummy $CC
3520 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3521 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3522 # Losing compiler, so override with the script.
3523 # FIXME: It is wrong to rewrite CC.
3524 # But if we don't then we get into trouble of one sort or another.
3525 # A longer-term fix would be to have automake use am__CC in this case,
3526 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3527 CC="$am_aux_dir/compile $CC"
3528 fi
3529
3530
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3537 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3538 # On Suns, sometimes $CPP names a directory.
3539 if test -n "$CPP" && test -d "$CPP"; then
3540 CPP=
3541 fi
3542 if test -z "$CPP"; then
3543 if test "${ac_cv_prog_CPP+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 # Double quotes because CPP needs to be expanded
3547 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3548 do
3549 ac_preproc_ok=false
3550 for ac_c_preproc_warn_flag in '' yes
3551 do
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #ifdef __STDC__
3565 # include <limits.h>
3566 #else
3567 # include <assert.h>
3568 #endif
3569 Syntax error
3570 _ACEOF
3571 if { (ac_try="$ac_cpp conftest.$ac_ext"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null && {
3584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3586 }; then
3587 :
3588 else
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 # Broken: fails on valid input.
3593 continue
3594 fi
3595
3596 rm -f conftest.err conftest.$ac_ext
3597
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3607 _ACEOF
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev/null && {
3621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 }; then
3624 # Broken: success on invalid input.
3625 continue
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630 # Passes both tests.
3631 ac_preproc_ok=:
3632 break
3633 fi
3634
3635 rm -f conftest.err conftest.$ac_ext
3636
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then
3641 break
3642 fi
3643
3644 done
3645 ac_cv_prog_CPP=$CPP
3646
3647 fi
3648 CPP=$ac_cv_prog_CPP
3649 else
3650 ac_cv_prog_CPP=$CPP
3651 fi
3652 { echo "$as_me:$LINENO: result: $CPP" >&5
3653 echo "${ECHO_T}$CPP" >&6; }
3654 ac_preproc_ok=false
3655 for ac_c_preproc_warn_flag in '' yes
3656 do
3657 # Use a header file that comes with gcc, so configuring glibc
3658 # with a fresh cross-compiler works.
3659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660 # <limits.h> exists even on freestanding compilers.
3661 # On the NeXT, cc -E runs the code through the compiler's parser,
3662 # not just through cpp. "Syntax error" is here to catch this case.
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #ifdef __STDC__
3670 # include <limits.h>
3671 #else
3672 # include <assert.h>
3673 #endif
3674 Syntax error
3675 _ACEOF
3676 if { (ac_try="$ac_cpp conftest.$ac_ext"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } >/dev/null && {
3689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 }; then
3692 :
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 # Broken: fails on valid input.
3698 continue
3699 fi
3700
3701 rm -f conftest.err conftest.$ac_ext
3702
3703 # OK, works on sane cases. Now check whether nonexistent headers
3704 # can be detected and how.
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h. */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711 #include <ac_nonexistent.h>
3712 _ACEOF
3713 if { (ac_try="$ac_cpp conftest.$ac_ext"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } >/dev/null && {
3726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 }; then
3729 # Broken: success on invalid input.
3730 continue
3731 else
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 # Passes both tests.
3736 ac_preproc_ok=:
3737 break
3738 fi
3739
3740 rm -f conftest.err conftest.$ac_ext
3741
3742 done
3743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744 rm -f conftest.err conftest.$ac_ext
3745 if $ac_preproc_ok; then
3746 :
3747 else
3748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&5
3750 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3751 See \`config.log' for more details." >&2;}
3752 { (exit 1); exit 1; }; }
3753 fi
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761
3762
3763 for ac_prog in cpp
3764 do
3765 # Extract the first word of "$ac_prog", so it can be a program name with args.
3766 set dummy $ac_prog; ac_word=$2
3767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3769 if test "${ac_cv_path_RAWCPP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 case $RAWCPP in
3773 [\\/]* | ?:[\\/]*)
3774 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
3775 ;;
3776 *)
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
3779 for as_dir in $as_dummy
3780 do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3788 fi
3789 done
3790 done
3791 IFS=$as_save_IFS
3792
3793 ;;
3794 esac
3795 fi
3796 RAWCPP=$ac_cv_path_RAWCPP
3797 if test -n "$RAWCPP"; then
3798 { echo "$as_me:$LINENO: result: $RAWCPP" >&5
3799 echo "${ECHO_T}$RAWCPP" >&6; }
3800 else
3801 { echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6; }
3803 fi
3804
3805
3806 test -n "$RAWCPP" && break
3807 done
3808 test -n "$RAWCPP" || RAWCPP="${CPP}"
3809
3810
3811 # Check for flag to avoid builtin definitions - assumes unix is predefined,
3812 # which is not the best choice for supporting other OS'es, but covers most
3813 # of the ones we need for now.
3814 { echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5
3815 echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; }
3816 cat >conftest.$ac_ext <<_ACEOF
3817 Does cpp redefine unix ?
3818 _ACEOF
3819 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
3820 { echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6; }
3822 else
3823 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
3824 RAWCPPFLAGS=-undef
3825 { echo "$as_me:$LINENO: result: yes" >&5
3826 echo "${ECHO_T}yes" >&6; }
3827 else
3828 { { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&5
3829 echo "$as_me: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&2;}
3830 { (exit 1); exit 1; }; }
3831 fi
3832 fi
3833 rm -f conftest.$ac_ext
3834
3835 { echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5
3836 echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; }
3837 cat >conftest.$ac_ext <<_ACEOF
3838 Does cpp preserve "whitespace"?
3839 _ACEOF
3840 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
3841 { echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6; }
3843 else
3844 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
3845 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
3846 { echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6; }
3848 else
3849 { { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&5
3850 echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&2;}
3851 { (exit 1); exit 1; }; }
3852 fi
3853 fi
3854 rm -f conftest.$ac_ext
3855
3856
3857 # Find a good install program. We prefer a C program (faster),
3858 # so one script is as good as another. But avoid the broken or
3859 # incompatible versions:
3860 # SysV /etc/install, /usr/sbin/install
3861 # SunOS /usr/etc/install
3862 # IRIX /sbin/install
3863 # AIX /bin/install
3864 # AmigaOS /C/install, which installs bootblocks on floppy discs
3865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3868 # OS/2's system install, which has a completely different semantic
3869 # ./install, which can be erroneously created by make from ./install.sh.
3870 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3871 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3872 if test -z "$INSTALL"; then
3873 if test "${ac_cv_path_install+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 # Account for people who put trailing slashes in PATH elements.
3882 case $as_dir/ in
3883 ./ | .// | /cC/* | \
3884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3885 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3886 /usr/ucb/* ) ;;
3887 *)
3888 # OSF1 and SCO ODT 3.0 have their own names for install.
3889 # Don't use installbsd from OSF since it installs stuff as root
3890 # by default.
3891 for ac_prog in ginstall scoinst install; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3894 if test $ac_prog = install &&
3895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3896 # AIX install. It has an incompatible calling convention.
3897 :
3898 elif test $ac_prog = install &&
3899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3900 # program-specific install script used by HP pwplus--don't use.
3901 :
3902 else
3903 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3904 break 3
3905 fi
3906 fi
3907 done
3908 done
3909 ;;
3910 esac
3911 done
3912 IFS=$as_save_IFS
3913
3914
3915 fi
3916 if test "${ac_cv_path_install+set}" = set; then
3917 INSTALL=$ac_cv_path_install
3918 else
3919 # As a last resort, use the slow shell script. Don't cache a
3920 # value for INSTALL within a source directory, because that will
3921 # break other packages using the cache if that directory is
3922 # removed, or if the value is a relative name.
3923 INSTALL=$ac_install_sh
3924 fi
3925 fi
3926 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3927 echo "${ECHO_T}$INSTALL" >&6; }
3928
3929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3930 # It thinks the first close brace ends the variable substitution.
3931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3932
3933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3934
3935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3936
3937 # Extract the first word of "sed", so it can be a program name with args.
3938 set dummy sed; ac_word=$2
3939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3941 if test "${ac_cv_path_SED+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 case $SED in
3945 [\\/]* | ?:[\\/]*)
3946 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3947 ;;
3948 *)
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960 done
3961 done
3962 IFS=$as_save_IFS
3963
3964 ;;
3965 esac
3966 fi
3967 SED=$ac_cv_path_SED
3968 if test -n "$SED"; then
3969 { echo "$as_me:$LINENO: result: $SED" >&5
3970 echo "${ECHO_T}$SED" >&6; }
3971 else
3972 { echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6; }
3974 fi
3975
3976
3977 # Make sure we can run config.sub.
3978 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3979 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3980 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3981 { (exit 1); exit 1; }; }
3982
3983 { echo "$as_me:$LINENO: checking build system type" >&5
3984 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3985 if test "${ac_cv_build+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 ac_build_alias=$build_alias
3989 test "x$ac_build_alias" = x &&
3990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3991 test "x$ac_build_alias" = x &&
3992 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3993 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3994 { (exit 1); exit 1; }; }
3995 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3996 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3998 { (exit 1); exit 1; }; }
3999
4000 fi
4001 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4002 echo "${ECHO_T}$ac_cv_build" >&6; }
4003 case $ac_cv_build in
4004 *-*-*) ;;
4005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4006 echo "$as_me: error: invalid value of canonical build" >&2;}
4007 { (exit 1); exit 1; }; };;
4008 esac
4009 build=$ac_cv_build
4010 ac_save_IFS=$IFS; IFS='-'
4011 set x $ac_cv_build
4012 shift
4013 build_cpu=$1
4014 build_vendor=$2
4015 shift; shift
4016 # Remember, the first character of IFS is used to create $*,
4017 # except with old shells:
4018 build_os=$*
4019 IFS=$ac_save_IFS
4020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4021
4022
4023 { echo "$as_me:$LINENO: checking host system type" >&5
4024 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4025 if test "${ac_cv_host+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 if test "x$host_alias" = x; then
4029 ac_cv_host=$ac_cv_build
4030 else
4031 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4032 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4033 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4034 { (exit 1); exit 1; }; }
4035 fi
4036
4037 fi
4038 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4039 echo "${ECHO_T}$ac_cv_host" >&6; }
4040 case $ac_cv_host in
4041 *-*-*) ;;
4042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4043 echo "$as_me: error: invalid value of canonical host" >&2;}
4044 { (exit 1); exit 1; }; };;
4045 esac
4046 host=$ac_cv_host
4047 ac_save_IFS=$IFS; IFS='-'
4048 set x $ac_cv_host
4049 shift
4050 host_cpu=$1
4051 host_vendor=$2
4052 shift; shift
4053 # Remember, the first character of IFS is used to create $*,
4054 # except with old shells:
4055 host_os=$*
4056 IFS=$ac_save_IFS
4057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4058
4059
4060
4061
4062 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4063 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
4064 if test "${ac_cv_type_signal+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #include <sys/types.h>
4074 #include <signal.h>
4075
4076 int
4077 main ()
4078 {
4079 return *(signal (0, 0)) (0) == 1;
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_compile") 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } && {
4098 test -z "$ac_c_werror_flag" ||
4099 test ! -s conftest.err
4100 } && test -s conftest.$ac_objext; then
4101 ac_cv_type_signal=int
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 ac_cv_type_signal=void
4107 fi
4108
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 fi
4111 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4112 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
4113
4114 cat >>confdefs.h <<_ACEOF
4115 #define RETSIGTYPE $ac_cv_type_signal
4116 _ACEOF
4117
4118
4119
4120 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4121 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4122 if test "${ac_cv_path_GREP+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 # Extract the first word of "grep ggrep" to use in msg output
4126 if test -z "$GREP"; then
4127 set dummy grep ggrep; ac_prog_name=$2
4128 if test "${ac_cv_path_GREP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 ac_path_GREP_found=false
4132 # Loop through the user's path and test for each of PROGNAME-LIST
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135 do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_prog in grep ggrep; do
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4141 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4142 # Check for GNU ac_path_GREP and select it if it is found.
4143 # Check for GNU $ac_path_GREP
4144 case `"$ac_path_GREP" --version 2>&1` in
4145 *GNU*)
4146 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4147 *)
4148 ac_count=0
4149 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4150 while :
4151 do
4152 cat "conftest.in" "conftest.in" >"conftest.tmp"
4153 mv "conftest.tmp" "conftest.in"
4154 cp "conftest.in" "conftest.nl"
4155 echo 'GREP' >> "conftest.nl"
4156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158 ac_count=`expr $ac_count + 1`
4159 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160 # Best one so far, save it but keep looking for a better one
4161 ac_cv_path_GREP="$ac_path_GREP"
4162 ac_path_GREP_max=$ac_count
4163 fi
4164 # 10*(2^10) chars as input seems more than enough
4165 test $ac_count -gt 10 && break
4166 done
4167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168 esac
4169
4170
4171 $ac_path_GREP_found && break 3
4172 done
4173 done
4174
4175 done
4176 IFS=$as_save_IFS
4177
4178
4179 fi
4180
4181 GREP="$ac_cv_path_GREP"
4182 if test -z "$GREP"; then
4183 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4184 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4185 { (exit 1); exit 1; }; }
4186 fi
4187
4188 else
4189 ac_cv_path_GREP=$GREP
4190 fi
4191
4192
4193 fi
4194 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4195 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4196 GREP="$ac_cv_path_GREP"
4197
4198
4199 { echo "$as_me:$LINENO: checking for egrep" >&5
4200 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_EGREP+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4205 then ac_cv_path_EGREP="$GREP -E"
4206 else
4207 # Extract the first word of "egrep" to use in msg output
4208 if test -z "$EGREP"; then
4209 set dummy egrep; ac_prog_name=$2
4210 if test "${ac_cv_path_EGREP+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213 ac_path_EGREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in egrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4223 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4224 # Check for GNU ac_path_EGREP and select it if it is found.
4225 # Check for GNU $ac_path_EGREP
4226 case `"$ac_path_EGREP" --version 2>&1` in
4227 *GNU*)
4228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229 *)
4230 ac_count=0
4231 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4232 while :
4233 do
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 echo 'EGREP' >> "conftest.nl"
4238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 ac_count=`expr $ac_count + 1`
4241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_EGREP="$ac_path_EGREP"
4244 ac_path_EGREP_max=$ac_count
4245 fi
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 esac
4251
4252
4253 $ac_path_EGREP_found && break 3
4254 done
4255 done
4256
4257 done
4258 IFS=$as_save_IFS
4259
4260
4261 fi
4262
4263 EGREP="$ac_cv_path_EGREP"
4264 if test -z "$EGREP"; then
4265 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4266 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4267 { (exit 1); exit 1; }; }
4268 fi
4269
4270 else
4271 ac_cv_path_EGREP=$EGREP
4272 fi
4273
4274
4275 fi
4276 fi
4277 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4278 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4279 EGREP="$ac_cv_path_EGREP"
4280
4281
4282 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4284 if test "${ac_cv_header_stdc+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <stdlib.h>
4294 #include <stdarg.h>
4295 #include <string.h>
4296 #include <float.h>
4297
4298 int
4299 main ()
4300 {
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 rm -f conftest.$ac_objext
4307 if { (ac_try="$ac_compile"
4308 case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_compile") 2>conftest.er1
4314 ac_status=$?
4315 grep -v '^ *+' conftest.er1 >conftest.err
4316 rm -f conftest.er1
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && {
4320 test -z "$ac_c_werror_flag" ||
4321 test ! -s conftest.err
4322 } && test -s conftest.$ac_objext; then
4323 ac_cv_header_stdc=yes
4324 else
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 ac_cv_header_stdc=no
4329 fi
4330
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332
4333 if test $ac_cv_header_stdc = yes; then
4334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h. */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 #include <string.h>
4342
4343 _ACEOF
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "memchr" >/dev/null 2>&1; then
4346 :
4347 else
4348 ac_cv_header_stdc=no
4349 fi
4350 rm -f conftest*
4351
4352 fi
4353
4354 if test $ac_cv_header_stdc = yes; then
4355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <stdlib.h>
4363
4364 _ACEOF
4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 $EGREP "free" >/dev/null 2>&1; then
4367 :
4368 else
4369 ac_cv_header_stdc=no
4370 fi
4371 rm -f conftest*
4372
4373 fi
4374
4375 if test $ac_cv_header_stdc = yes; then
4376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4377 if test "$cross_compiling" = yes; then
4378 :
4379 else
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <ctype.h>
4387 #include <stdlib.h>
4388 #if ((' ' & 0x0FF) == 0x020)
4389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4391 #else
4392 # define ISLOWER(c) \
4393 (('a' <= (c) && (c) <= 'i') \
4394 || ('j' <= (c) && (c) <= 'r') \
4395 || ('s' <= (c) && (c) <= 'z'))
4396 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4397 #endif
4398
4399 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4400 int
4401 main ()
4402 {
4403 int i;
4404 for (i = 0; i < 256; i++)
4405 if (XOR (islower (i), ISLOWER (i))
4406 || toupper (i) != TOUPPER (i))
4407 return 2;
4408 return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest$ac_exeext
4412 if { (ac_try="$ac_link"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_link") 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4422 { (case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_try") 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 :
4432 else
4433 echo "$as_me: program exited with status $ac_status" >&5
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437 ( exit $ac_status )
4438 ac_cv_header_stdc=no
4439 fi
4440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4441 fi
4442
4443
4444 fi
4445 fi
4446 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4447 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4448 if test $ac_cv_header_stdc = yes; then
4449
4450 cat >>confdefs.h <<\_ACEOF
4451 #define STDC_HEADERS 1
4452 _ACEOF
4453
4454 fi
4455
4456 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4467 inttypes.h stdint.h unistd.h
4468 do
4469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 $ac_includes_default
4482
4483 #include <$ac_header>
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (ac_try="$ac_compile"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_compile") 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } && {
4499 test -z "$ac_c_werror_flag" ||
4500 test ! -s conftest.err
4501 } && test -s conftest.$ac_objext; then
4502 eval "$as_ac_Header=yes"
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 eval "$as_ac_Header=no"
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513 { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516 cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 _ACEOF
4519
4520 fi
4521
4522 done
4523
4524
4525 { echo "$as_me:$LINENO: checking for pid_t" >&5
4526 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4527 if test "${ac_cv_type_pid_t+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h. */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 $ac_includes_default
4537 typedef pid_t ac__type_new_;
4538 int
4539 main ()
4540 {
4541 if ((ac__type_new_ *) 0)
4542 return 0;
4543 if (sizeof (ac__type_new_))
4544 return 0;
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && {
4563 test -z "$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 } && test -s conftest.$ac_objext; then
4566 ac_cv_type_pid_t=yes
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 ac_cv_type_pid_t=no
4572 fi
4573
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 fi
4576 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4577 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4578 if test $ac_cv_type_pid_t = yes; then
4579 :
4580 else
4581
4582 cat >>confdefs.h <<_ACEOF
4583 #define pid_t int
4584 _ACEOF
4585
4586 fi
4587
4588
4589 for ac_header in vfork.h
4590 do
4591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 fi
4598 ac_res=`eval echo '${'$as_ac_Header'}'`
4599 { echo "$as_me:$LINENO: result: $ac_res" >&5
4600 echo "${ECHO_T}$ac_res" >&6; }
4601 else
4602 # Is the header compilable?
4603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 $ac_includes_default
4612 #include <$ac_header>
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (ac_try="$ac_compile"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_compile") 2>conftest.er1
4622 ac_status=$?
4623 grep -v '^ *+' conftest.er1 >conftest.err
4624 rm -f conftest.er1
4625 cat conftest.err >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && {
4628 test -z "$ac_c_werror_flag" ||
4629 test ! -s conftest.err
4630 } && test -s conftest.$ac_objext; then
4631 ac_header_compiler=yes
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 ac_header_compiler=no
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4641 echo "${ECHO_T}$ac_header_compiler" >&6; }
4642
4643 # Is the header present?
4644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #include <$ac_header>
4653 _ACEOF
4654 if { (ac_try="$ac_cpp conftest.$ac_ext"
4655 case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } >/dev/null && {
4667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 }; then
4670 ac_header_preproc=yes
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 ac_header_preproc=no
4676 fi
4677
4678 rm -f conftest.err conftest.$ac_ext
4679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4680 echo "${ECHO_T}$ac_header_preproc" >&6; }
4681
4682 # So? What about this header?
4683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4684 yes:no: )
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4689 ac_header_preproc=yes
4690 ;;
4691 no:yes:* )
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4704 ( cat <<\_ASBOX
4705 ## ---------------------------------------------------------------------- ##
4706 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4707 ## ---------------------------------------------------------------------- ##
4708 _ASBOX
4709 ) | sed "s/^/$as_me: WARNING: /" >&2
4710 ;;
4711 esac
4712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717 eval "$as_ac_Header=\$ac_header_preproc"
4718 fi
4719 ac_res=`eval echo '${'$as_ac_Header'}'`
4720 { echo "$as_me:$LINENO: result: $ac_res" >&5
4721 echo "${ECHO_T}$ac_res" >&6; }
4722
4723 fi
4724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4725 cat >>confdefs.h <<_ACEOF
4726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4727 _ACEOF
4728
4729 fi
4730
4731 done
4732
4733
4734
4735 for ac_func in fork vfork
4736 do
4737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4751 #define $ac_func innocuous_$ac_func
4752
4753 /* System header to define __stub macros and hopefully few prototypes,
4754 which can conflict with char $ac_func (); below.
4755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 <limits.h> exists even on freestanding compilers. */
4757
4758 #ifdef __STDC__
4759 # include <limits.h>
4760 #else
4761 # include <assert.h>
4762 #endif
4763
4764 #undef $ac_func
4765
4766 /* Override any GCC internal prototype to avoid an error.
4767 Use char because int might match the return type of a GCC
4768 builtin and then its argument prototype would still apply. */
4769 #ifdef __cplusplus
4770 extern "C"
4771 #endif
4772 char $ac_func ();
4773 /* The GNU C library defines this for functions which it implements
4774 to always fail with ENOSYS. Some functions are actually named
4775 something starting with __ and the normal name is an alias. */
4776 #if defined __stub_$ac_func || defined __stub___$ac_func
4777 choke me
4778 #endif
4779
4780 int
4781 main ()
4782 {
4783 return $ac_func ();
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (ac_try="$ac_link"
4790 case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793 esac
4794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795 (eval "$ac_link") 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } && {
4802 test -z "$ac_c_werror_flag" ||
4803 test ! -s conftest.err
4804 } && test -s conftest$ac_exeext &&
4805 $as_test_x conftest$ac_exeext; then
4806 eval "$as_ac_var=yes"
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 eval "$as_ac_var=no"
4812 fi
4813
4814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4815 conftest$ac_exeext conftest.$ac_ext
4816 fi
4817 ac_res=`eval echo '${'$as_ac_var'}'`
4818 { echo "$as_me:$LINENO: result: $ac_res" >&5
4819 echo "${ECHO_T}$ac_res" >&6; }
4820 if test `eval echo '${'$as_ac_var'}'` = yes; then
4821 cat >>confdefs.h <<_ACEOF
4822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4823 _ACEOF
4824
4825 fi
4826 done
4827
4828 if test "x$ac_cv_func_fork" = xyes; then
4829 { echo "$as_me:$LINENO: checking for working fork" >&5
4830 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
4831 if test "${ac_cv_func_fork_works+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 if test "$cross_compiling" = yes; then
4835 ac_cv_func_fork_works=cross
4836 else
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4844 int
4845 main ()
4846 {
4847
4848 /* By Ruediger Kuhlmann. */
4849 return fork () < 0;
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_link") 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4866 { (case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_try") 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_func_fork_works=yes
4876 else
4877 echo "$as_me: program exited with status $ac_status" >&5
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ( exit $ac_status )
4882 ac_cv_func_fork_works=no
4883 fi
4884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4885 fi
4886
4887
4888 fi
4889 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4890 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
4891
4892 else
4893 ac_cv_func_fork_works=$ac_cv_func_fork
4894 fi
4895 if test "x$ac_cv_func_fork_works" = xcross; then
4896 case $host in
4897 *-*-amigaos* | *-*-msdosdjgpp*)
4898 # Override, as these systems have only a dummy fork() stub
4899 ac_cv_func_fork_works=no
4900 ;;
4901 *)
4902 ac_cv_func_fork_works=yes
4903 ;;
4904 esac
4905 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4906 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4907 fi
4908 ac_cv_func_vfork_works=$ac_cv_func_vfork
4909 if test "x$ac_cv_func_vfork" = xyes; then
4910 { echo "$as_me:$LINENO: checking for working vfork" >&5
4911 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
4912 if test "${ac_cv_func_vfork_works+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 if test "$cross_compiling" = yes; then
4916 ac_cv_func_vfork_works=cross
4917 else
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 /* Thanks to Paul Eggert for this test. */
4925 $ac_includes_default
4926 #include <sys/wait.h>
4927 #ifdef HAVE_VFORK_H
4928 # include <vfork.h>
4929 #endif
4930 /* On some sparc systems, changes by the child to local and incoming
4931 argument registers are propagated back to the parent. The compiler
4932 is told about this with #include <vfork.h>, but some compilers
4933 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4934 static variable whose address is put into a register that is
4935 clobbered by the vfork. */
4936 static void
4937 #ifdef __cplusplus
4938 sparc_address_test (int arg)
4939 # else
4940 sparc_address_test (arg) int arg;
4941 #endif
4942 {
4943 static pid_t child;
4944 if (!child) {
4945 child = vfork ();
4946 if (child < 0) {
4947 perror ("vfork");
4948 _exit(2);
4949 }
4950 if (!child) {
4951 arg = getpid();
4952 write(-1, "", 0);
4953 _exit (arg);
4954 }
4955 }
4956 }
4957
4958 int
4959 main ()
4960 {
4961 pid_t parent = getpid ();
4962 pid_t child;
4963
4964 sparc_address_test (0);
4965
4966 child = vfork ();
4967
4968 if (child == 0) {
4969 /* Here is another test for sparc vfork register problems. This
4970 test uses lots of local variables, at least as many local
4971 variables as main has allocated so far including compiler
4972 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4973 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4974 reuse the register of parent for one of the local variables,
4975 since it will think that parent can't possibly be used any more
4976 in this routine. Assigning to the local variable will thus
4977 munge parent in the parent process. */
4978 pid_t
4979 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4980 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4981 /* Convince the compiler that p..p7 are live; otherwise, it might
4982 use the same hardware register for all 8 local variables. */
4983 if (p != p1 || p != p2 || p != p3 || p != p4
4984 || p != p5 || p != p6 || p != p7)
4985 _exit(1);
4986
4987 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4988 from child file descriptors. If the child closes a descriptor
4989 before it execs or exits, this munges the parent's descriptor
4990 as well. Test for this by closing stdout in the child. */
4991 _exit(close(fileno(stdout)) != 0);
4992 } else {
4993 int status;
4994 struct stat st;
4995
4996 while (wait(&status) != child)
4997 ;
4998 return (
4999 /* Was there some problem with vforking? */
5000 child < 0
5001
5002 /* Did the child fail? (This shouldn't happen.) */
5003 || status
5004
5005 /* Did the vfork/compiler bug occur? */
5006 || parent != getpid()
5007
5008 /* Did the file descriptor bug occur? */
5009 || fstat(fileno(stdout), &st) != 0
5010 );
5011 }
5012 }
5013 _ACEOF
5014 rm -f conftest$ac_exeext
5015 if { (ac_try="$ac_link"
5016 case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_link") 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5025 { (case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_try") 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_cv_func_vfork_works=yes
5035 else
5036 echo "$as_me: program exited with status $ac_status" >&5
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 ( exit $ac_status )
5041 ac_cv_func_vfork_works=no
5042 fi
5043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5044 fi
5045
5046
5047 fi
5048 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5049 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
5050
5051 fi;
5052 if test "x$ac_cv_func_fork_works" = xcross; then
5053 ac_cv_func_vfork_works=$ac_cv_func_vfork
5054 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5055 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5056 fi
5057
5058 if test "x$ac_cv_func_vfork_works" = xyes; then
5059
5060 cat >>confdefs.h <<\_ACEOF
5061 #define HAVE_WORKING_VFORK 1
5062 _ACEOF
5063
5064 else
5065
5066 cat >>confdefs.h <<\_ACEOF
5067 #define vfork fork
5068 _ACEOF
5069
5070 fi
5071 if test "x$ac_cv_func_fork_works" = xyes; then
5072
5073 cat >>confdefs.h <<\_ACEOF
5074 #define HAVE_WORKING_FORK 1
5075 _ACEOF
5076
5077 fi
5078
5079
5080
5081 for ac_func in killpg
5082 do
5083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5097 #define $ac_func innocuous_$ac_func
5098
5099 /* System header to define __stub macros and hopefully few prototypes,
5100 which can conflict with char $ac_func (); below.
5101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102 <limits.h> exists even on freestanding compilers. */
5103
5104 #ifdef __STDC__
5105 # include <limits.h>
5106 #else
5107 # include <assert.h>
5108 #endif
5109
5110 #undef $ac_func
5111
5112 /* Override any GCC internal prototype to avoid an error.
5113 Use char because int might match the return type of a GCC
5114 builtin and then its argument prototype would still apply. */
5115 #ifdef __cplusplus
5116 extern "C"
5117 #endif
5118 char $ac_func ();
5119 /* The GNU C library defines this for functions which it implements
5120 to always fail with ENOSYS. Some functions are actually named
5121 something starting with __ and the normal name is an alias. */
5122 #if defined __stub_$ac_func || defined __stub___$ac_func
5123 choke me
5124 #endif
5125
5126 int
5127 main ()
5128 {
5129 return $ac_func ();
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (ac_try="$ac_link"
5136 case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_link") 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && {
5148 test -z "$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5150 } && test -s conftest$ac_exeext &&
5151 $as_test_x conftest$ac_exeext; then
5152 eval "$as_ac_var=yes"
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 eval "$as_ac_var=no"
5158 fi
5159
5160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5161 conftest$ac_exeext conftest.$ac_ext
5162 fi
5163 ac_res=`eval echo '${'$as_ac_var'}'`
5164 { echo "$as_me:$LINENO: result: $ac_res" >&5
5165 echo "${ECHO_T}$ac_res" >&6; }
5166 if test `eval echo '${'$as_ac_var'}'` = yes; then
5167 cat >>confdefs.h <<_ACEOF
5168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5169 _ACEOF
5170
5171 fi
5172 done
5173
5174
5175
5176
5177 # Build options
5178 DEFAULT_XRDB=xrdb
5179 DEFAULT_XMODMAP=xmodmap
5180 DEFAULT_TWM=twm
5181 DEFAULT_XCLOCK=xclock
5182 DEFAULT_XTERM=xterm
5183 # You always want to specify the full path to the X server
5184 DEFAULT_XSERVER=${bindir}/X
5185 DEFAULT_XAUTH=xauth
5186 DEFAULT_XINIT=xinit
5187
5188
5189 # Check whether --with-xrdb was given.
5190 if test "${with_xrdb+set}" = set; then
5191 withval=$with_xrdb; XRDB="$withval"
5192 else
5193 XRDB="$DEFAULT_XRDB"
5194 fi
5195
5196
5197
5198 # Check whether --with-xmodmap was given.
5199 if test "${with_xmodmap+set}" = set; then
5200 withval=$with_xmodmap; XMODMAP="$withval"
5201 else
5202 XMODMAP="$DEFAULT_XMODMAP"
5203 fi
5204
5205
5206
5207 # Check whether --with-twm was given.
5208 if test "${with_twm+set}" = set; then
5209 withval=$with_twm; TWM="$withval"
5210 else
5211 TWM="$DEFAULT_TWM"
5212 fi
5213
5214
5215
5216 # Check whether --with-xclock was given.
5217 if test "${with_xclock+set}" = set; then
5218 withval=$with_xclock; XCLOCK="$withval"
5219 else
5220 XCLOCK="$DEFAULT_XCLOCK"
5221 fi
5222
5223
5224
5225 # Check whether --with-xterm was given.
5226 if test "${with_xterm+set}" = set; then
5227 withval=$with_xterm; XTERM="$withval"
5228 else
5229 XTERM="$DEFAULT_XTERM"
5230 fi
5231
5232
5233
5234 # Check whether --with-xserver was given.
5235 if test "${with_xserver+set}" = set; then
5236 withval=$with_xserver; XSERVER="$withval"
5237 else
5238 XSERVER="$DEFAULT_XSERVER"
5239 fi
5240
5241
5242
5243 # Check whether --with-xauth was given.
5244 if test "${with_xauth+set}" = set; then
5245 withval=$with_xauth; XAUTH="$withval"
5246 else
5247 XAUTH="$DEFAULT_XAUTH"
5248 fi
5249
5250
5251
5252 # Check whether --with-xinit was given.
5253 if test "${with_xinit+set}" = set; then
5254 withval=$with_xinit; XINIT="$withval"
5255 else
5256 XINIT="$DEFAULT_XINIT"
5257 fi
5258
5259
5260
5261 # Check whether --with-launchd was given.
5262 if test "${with_launchd+set}" = set; then
5263 withval=$with_launchd; LAUNCHD=$withval
5264 else
5265 LAUNCHD=auto
5266 fi
5267
5268
5269 # Check whether --with-launchagents-dir was given.
5270 if test "${with_launchagents_dir+set}" = set; then
5271 withval=$with_launchagents_dir; launchagentsdir="${withval}"
5272 else
5273 launchagentsdir="/Library/LaunchAgents"
5274 fi
5275
5276
5277 # Check whether --with-launchdaemons-dir was given.
5278 if test "${with_launchdaemons_dir+set}" = set; then
5279 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}"
5280 else
5281 launchdaemonsdir="/Library/LaunchDaemons"
5282 fi
5283
5284
5285 if test "x$LAUNCHD" = "xauto"; then
5286 unset LAUNCHD
5287 case $host_os in
5288 darwin8*)
5289 LAUNCHD=no
5290 ;;
5291 *)
5292 # Extract the first word of "launchd", so it can be a program name with args.
5293 set dummy launchd; ac_word=$2
5294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5296 if test "${ac_cv_prog_LAUNCHD+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 if test -n "$LAUNCHD"; then
5300 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_prog_LAUNCHD="yes"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313 done
5314 done
5315 IFS=$as_save_IFS
5316
5317 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
5318 fi
5319 fi
5320 LAUNCHD=$ac_cv_prog_LAUNCHD
5321 if test -n "$LAUNCHD"; then
5322 { echo "$as_me:$LINENO: result: $LAUNCHD" >&5
5323 echo "${ECHO_T}$LAUNCHD" >&6; }
5324 else
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5327 fi
5328
5329
5330 ;;
5331 esac
5332 fi
5333
5334 if test "x$LAUNCHD" = "xyes" ; then
5335
5336 cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_LAUNCHD 1
5338 _ACEOF
5339
5340 else
5341 launchagentsdir=""
5342 launchdaemonsdir=""
5343 fi
5344
5345
5346 if test "x$LAUNCHD" = "xyes"; then
5347 LAUNCHD_TRUE=
5348 LAUNCHD_FALSE='#'
5349 else
5350 LAUNCHD_TRUE='#'
5351 LAUNCHD_FALSE=
5352 fi
5353
5354
5355 # Checks for pkg-config packages
5356
5357
5358 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5361 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 case $PKG_CONFIG in
5368 [\\/]* | ?:[\\/]*)
5369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5370 ;;
5371 *)
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 ;;
5388 esac
5389 fi
5390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5391 if test -n "$PKG_CONFIG"; then
5392 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5393 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5394 else
5395 { echo "$as_me:$LINENO: result: no" >&5
5396 echo "${ECHO_T}no" >&6; }
5397 fi
5398
5399
5400 fi
5401 if test -z "$ac_cv_path_PKG_CONFIG"; then
5402 ac_pt_PKG_CONFIG=$PKG_CONFIG
5403 # Extract the first word of "pkg-config", so it can be a program name with args.
5404 set dummy pkg-config; ac_word=$2
5405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5407 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 case $ac_pt_PKG_CONFIG in
5411 [\\/]* | ?:[\\/]*)
5412 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5413 ;;
5414 *)
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 ;;
5431 esac
5432 fi
5433 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5434 if test -n "$ac_pt_PKG_CONFIG"; then
5435 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5436 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5437 else
5438 { echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6; }
5440 fi
5441
5442 if test "x$ac_pt_PKG_CONFIG" = x; then
5443 PKG_CONFIG=""
5444 else
5445 case $cross_compiling:$ac_tool_warned in
5446 yes:)
5447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5448 whose name does not start with the host triplet. If you think this
5449 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5451 whose name does not start with the host triplet. If you think this
5452 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5453 ac_tool_warned=yes ;;
5454 esac
5455 PKG_CONFIG=$ac_pt_PKG_CONFIG
5456 fi
5457 else
5458 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5459 fi
5460
5461 fi
5462 if test -n "$PKG_CONFIG"; then
5463 _pkg_min_version=0.9.0
5464 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5465 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5466 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5467 { echo "$as_me:$LINENO: result: yes" >&5
5468 echo "${ECHO_T}yes" >&6; }
5469 else
5470 { echo "$as_me:$LINENO: result: no" >&5
5471 echo "${ECHO_T}no" >&6; }
5472 PKG_CONFIG=""
5473 fi
5474
5475 fi
5476
5477 pkg_failed=no
5478 { echo "$as_me:$LINENO: checking for XINIT" >&5
5479 echo $ECHO_N "checking for XINIT... $ECHO_C" >&6; }
5480
5481 if test -n "$XINIT_CFLAGS"; then
5482 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
5483 elif test -n "$PKG_CONFIG"; then
5484 if test -n "$PKG_CONFIG" && \
5485 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5486 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; then
5490 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5491 else
5492 pkg_failed=yes
5493 fi
5494 else
5495 pkg_failed=untried
5496 fi
5497 if test -n "$XINIT_LIBS"; then
5498 pkg_cv_XINIT_LIBS="$XINIT_LIBS"
5499 elif test -n "$PKG_CONFIG"; then
5500 if test -n "$PKG_CONFIG" && \
5501 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5502 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; then
5506 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5507 else
5508 pkg_failed=yes
5509 fi
5510 else
5511 pkg_failed=untried
5512 fi
5513
5514
5515
5516 if test $pkg_failed = yes; then
5517
5518 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5519 _pkg_short_errors_supported=yes
5520 else
5521 _pkg_short_errors_supported=no
5522 fi
5523 if test $_pkg_short_errors_supported = yes; then
5524 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5525 else
5526 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5527 fi
5528 # Put the nasty error message in config.log where it belongs
5529 echo "$XINIT_PKG_ERRORS" >&5
5530
5531 { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
5532
5533 $XINIT_PKG_ERRORS
5534
5535 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5536 installed software in a non-standard prefix.
5537
5538 Alternatively, you may set the environment variables XINIT_CFLAGS
5539 and XINIT_LIBS to avoid the need to call pkg-config.
5540 See the pkg-config man page for more details.
5541 " >&5
5542 echo "$as_me: error: Package requirements (x11) were not met:
5543
5544 $XINIT_PKG_ERRORS
5545
5546 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5547 installed software in a non-standard prefix.
5548
5549 Alternatively, you may set the environment variables XINIT_CFLAGS
5550 and XINIT_LIBS to avoid the need to call pkg-config.
5551 See the pkg-config man page for more details.
5552 " >&2;}
5553 { (exit 1); exit 1; }; }
5554 elif test $pkg_failed = untried; then
5555 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5556 is in your PATH or set the PKG_CONFIG environment variable to the full
5557 path to pkg-config.
5558
5559 Alternatively, you may set the environment variables XINIT_CFLAGS
5560 and XINIT_LIBS to avoid the need to call pkg-config.
5561 See the pkg-config man page for more details.
5562
5563 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5564 See \`config.log' for more details." >&5
5565 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5566 is in your PATH or set the PKG_CONFIG environment variable to the full
5567 path to pkg-config.
5568
5569 Alternatively, you may set the environment variables XINIT_CFLAGS
5570 and XINIT_LIBS to avoid the need to call pkg-config.
5571 See the pkg-config man page for more details.
5572
5573 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5574 See \`config.log' for more details." >&2;}
5575 { (exit 1); exit 1; }; }
5576 else
5577 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
5578 XINIT_LIBS=$pkg_cv_XINIT_LIBS
5579 { echo "$as_me:$LINENO: result: yes" >&5
5580 echo "${ECHO_T}yes" >&6; }
5581 :
5582 fi
5583
5584 case $host_os in
5585 *bsd*)
5586 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
5587 ;;
5588 esac
5589
5590
5591
5592
5593 for ac_prog in mcookie
5594 do
5595 # Extract the first word of "$ac_prog", so it can be a program name with args.
5596 set dummy $ac_prog; ac_word=$2
5597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5599 if test "${ac_cv_path_MCOOKIE+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 case $MCOOKIE in
5603 [\\/]* | ?:[\\/]*)
5604 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
5605 ;;
5606 *)
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
5609 for as_dir in $as_dummy
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 ;;
5624 esac
5625 fi
5626 MCOOKIE=$ac_cv_path_MCOOKIE
5627 if test -n "$MCOOKIE"; then
5628 { echo "$as_me:$LINENO: result: $MCOOKIE" >&5
5629 echo "${ECHO_T}$MCOOKIE" >&6; }
5630 else
5631 { echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6; }
5633 fi
5634
5635
5636 test -n "$MCOOKIE" && break
5637 done
5638 test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
5639
5640
5641 case $host_os in
5642 *openbsd*)
5643 MCOOKIE='/usr/sbin/openssl rand -hex 16'
5644 ;;
5645 *solaris*)
5646 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
5647 ;;
5648 esac
5649
5650 if test "x$MCOOKIE" != x ; then
5651 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
5652 fi
5653
5654
5655 # Additional substitutions in startx, xinitrc & man pages
5656 case $host_os in
5657 *solaris*)
5658 SHELL_CMD="/bin/ksh"
5659 ARCHMANDEFS=""
5660 ;;
5661 *sco*)
5662 SHELL_CMD="/bin/ksh"
5663 ARCHMANDEFS="-D__SCOMAN__"
5664 ;;
5665 *)
5666 SHELL_CMD="/bin/sh"
5667 ARCHMANDEFS=""
5668 ;;
5669 esac
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 # Defines which X servers are listed in help output in xinit.c
5683 # Cheat, lie, and assume all the world is Xorg for now
5684
5685 cat >>confdefs.h <<\_ACEOF
5686 #define XORG 1
5687 _ACEOF
5688
5689
5690
5691
5692
5693 if test x$APP_MAN_SUFFIX = x ; then
5694 APP_MAN_SUFFIX=1
5695 fi
5696 if test x$APP_MAN_DIR = x ; then
5697 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5698 fi
5699
5700 if test x$LIB_MAN_SUFFIX = x ; then
5701 LIB_MAN_SUFFIX=3
5702 fi
5703 if test x$LIB_MAN_DIR = x ; then
5704 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5705 fi
5706
5707 if test x$FILE_MAN_SUFFIX = x ; then
5708 case $host_os in
5709 solaris*) FILE_MAN_SUFFIX=4 ;;
5710 *) FILE_MAN_SUFFIX=5 ;;
5711 esac
5712 fi
5713 if test x$FILE_MAN_DIR = x ; then
5714 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5715 fi
5716
5717 if test x$MISC_MAN_SUFFIX = x ; then
5718 case $host_os in
5719 solaris*) MISC_MAN_SUFFIX=5 ;;
5720 *) MISC_MAN_SUFFIX=7 ;;
5721 esac
5722 fi
5723 if test x$MISC_MAN_DIR = x ; then
5724 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5725 fi
5726
5727 if test x$DRIVER_MAN_SUFFIX = x ; then
5728 case $host_os in
5729 solaris*) DRIVER_MAN_SUFFIX=7 ;;
5730 *) DRIVER_MAN_SUFFIX=4 ;;
5731 esac
5732 fi
5733 if test x$DRIVER_MAN_DIR = x ; then
5734 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5735 fi
5736
5737 if test x$ADMIN_MAN_SUFFIX = x ; then
5738 case $host_os in
5739 solaris*) ADMIN_MAN_SUFFIX=1m ;;
5740 *) ADMIN_MAN_SUFFIX=8 ;;
5741 esac
5742 fi
5743 if test x$ADMIN_MAN_DIR = x ; then
5744 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5745 fi
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 # Check whether --with-release-version was given.
5764 if test "${with_release_version+set}" = set; then
5765 withval=$with_release_version; RELEASE_VERSION="$withval"
5766 else
5767 RELEASE_VERSION=""
5768 fi
5769
5770 if test "x$RELEASE_VERSION" != "x"; then
5771 PACKAGE="$PACKAGE-$RELEASE_VERSION"
5772 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
5773 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
5774 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
5775 fi
5776
5777 cat >>confdefs.h <<_ACEOF
5778 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5779 _ACEOF
5780
5781 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5782 if test "x$PVM" = "x"; then
5783 PVM="0"
5784 fi
5785
5786 cat >>confdefs.h <<_ACEOF
5787 #define PACKAGE_VERSION_MINOR $PVM
5788 _ACEOF
5789
5790 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5791 if test "x$PVP" = "x"; then
5792 PVP="0"
5793 fi
5794
5795 cat >>confdefs.h <<_ACEOF
5796 #define PACKAGE_VERSION_PATCHLEVEL $PVP
5797 _ACEOF
5798
5799
5800
5801 ac_config_files="$ac_config_files Makefile"
5802
5803 cat >confcache <<\_ACEOF
5804 # This file is a shell script that caches the results of configure
5805 # tests run on this system so they can be shared between configure
5806 # scripts and configure runs, see configure's option --config-cache.
5807 # It is not useful on other systems. If it contains results you don't
5808 # want to keep, you may remove or edit it.
5809 #
5810 # config.status only pays attention to the cache file if you give it
5811 # the --recheck option to rerun configure.
5812 #
5813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5815 # following values.
5816
5817 _ACEOF
5818
5819 # The following way of writing the cache mishandles newlines in values,
5820 # but we know of no workaround that is simple, portable, and efficient.
5821 # So, we kill variables containing newlines.
5822 # Ultrix sh set writes to stderr and can't be redirected directly,
5823 # and sets the high bit in the cache file unless we assign to the vars.
5824 (
5825 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5826 eval ac_val=\$$ac_var
5827 case $ac_val in #(
5828 *${as_nl}*)
5829 case $ac_var in #(
5830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5831 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5832 esac
5833 case $ac_var in #(
5834 _ | IFS | as_nl) ;; #(
5835 *) $as_unset $ac_var ;;
5836 esac ;;
5837 esac
5838 done
5839
5840 (set) 2>&1 |
5841 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5842 *${as_nl}ac_space=\ *)
5843 # `set' does not quote correctly, so add quotes (double-quote
5844 # substitution turns \\\\ into \\, and sed turns \\ into \).
5845 sed -n \
5846 "s/'/'\\\\''/g;
5847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5848 ;; #(
5849 *)
5850 # `set' quotes correctly as required by POSIX, so do not add quotes.
5851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5852 ;;
5853 esac |
5854 sort
5855 ) |
5856 sed '
5857 /^ac_cv_env_/b end
5858 t clear
5859 :clear
5860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5861 t end
5862 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5863 :end' >>confcache
5864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5865 if test -w "$cache_file"; then
5866 test "x$cache_file" != "x/dev/null" &&
5867 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5868 echo "$as_me: updating cache $cache_file" >&6;}
5869 cat confcache >$cache_file
5870 else
5871 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5872 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5873 fi
5874 fi
5875 rm -f confcache
5876
5877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5878 # Let make expand exec_prefix.
5879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5880
5881 DEFS=-DHAVE_CONFIG_H
5882
5883 ac_libobjs=
5884 ac_ltlibobjs=
5885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5886 # 1. Remove the extension, and $U if already installed.
5887 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5888 ac_i=`echo "$ac_i" | sed "$ac_script"`
5889 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5890 # will be set to the directory where LIBOBJS objects are built.
5891 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5892 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5893 done
5894 LIBOBJS=$ac_libobjs
5895
5896 LTLIBOBJS=$ac_ltlibobjs
5897
5898
5899 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5900 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5901 Usually this means the macro was only invoked conditionally." >&5
5902 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5903 Usually this means the macro was only invoked conditionally." >&2;}
5904 { (exit 1); exit 1; }; }
5905 fi
5906 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5907 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5908 Usually this means the macro was only invoked conditionally." >&5
5909 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5910 Usually this means the macro was only invoked conditionally." >&2;}
5911 { (exit 1); exit 1; }; }
5912 fi
5913 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5914 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5915 Usually this means the macro was only invoked conditionally." >&5
5916 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5917 Usually this means the macro was only invoked conditionally." >&2;}
5918 { (exit 1); exit 1; }; }
5919 fi
5920 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
5921 { { echo "$as_me:$LINENO: error: conditional \"LAUNCHD\" was never defined.
5922 Usually this means the macro was only invoked conditionally." >&5
5923 echo "$as_me: error: conditional \"LAUNCHD\" was never defined.
5924 Usually this means the macro was only invoked conditionally." >&2;}
5925 { (exit 1); exit 1; }; }
5926 fi
5927
5928 : ${CONFIG_STATUS=./config.status}
5929 ac_clean_files_save=$ac_clean_files
5930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5933 cat >$CONFIG_STATUS <<_ACEOF
5934 #! $SHELL
5935 # Generated by $as_me.
5936 # Run this file to recreate the current configuration.
5937 # Compiler output produced by configure, useful for debugging
5938 # configure, is in config.log if it exists.
5939
5940 debug=false
5941 ac_cs_recheck=false
5942 ac_cs_silent=false
5943 SHELL=\${CONFIG_SHELL-$SHELL}
5944 _ACEOF
5945
5946 cat >>$CONFIG_STATUS <<\_ACEOF
5947 ## --------------------- ##
5948 ## M4sh Initialization. ##
5949 ## --------------------- ##
5950
5951 # Be more Bourne compatible
5952 DUALCASE=1; export DUALCASE # for MKS sh
5953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5954 emulate sh
5955 NULLCMD=:
5956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5957 # is contrary to our usage. Disable this feature.
5958 alias -g '${1+"$@"}'='"$@"'
5959 setopt NO_GLOB_SUBST
5960 else
5961 case `(set -o) 2>/dev/null` in
5962 *posix*) set -o posix ;;
5963 esac
5964
5965 fi
5966
5967
5968
5969
5970 # PATH needs CR
5971 # Avoid depending upon Character Ranges.
5972 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5973 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5974 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5975 as_cr_digits='0123456789'
5976 as_cr_alnum=$as_cr_Letters$as_cr_digits
5977
5978 # The user is always right.
5979 if test "${PATH_SEPARATOR+set}" != set; then
5980 echo "#! /bin/sh" >conf$$.sh
5981 echo "exit 0" >>conf$$.sh
5982 chmod +x conf$$.sh
5983 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5984 PATH_SEPARATOR=';'
5985 else
5986 PATH_SEPARATOR=:
5987 fi
5988 rm -f conf$$.sh
5989 fi
5990
5991 # Support unset when possible.
5992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5993 as_unset=unset
5994 else
5995 as_unset=false
5996 fi
5997
5998
5999 # IFS
6000 # We need space, tab and new line, in precisely that order. Quoting is
6001 # there to prevent editors from complaining about space-tab.
6002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6003 # splitting by setting IFS to empty value.)
6004 as_nl='
6005 '
6006 IFS=" "" $as_nl"
6007
6008 # Find who we are. Look in the path if we contain no directory separator.
6009 case $0 in
6010 *[\\/]* ) as_myself=$0 ;;
6011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6017 done
6018 IFS=$as_save_IFS
6019
6020 ;;
6021 esac
6022 # We did not find ourselves, most probably we were run as `sh COMMAND'
6023 # in which case we are not to be found in the path.
6024 if test "x$as_myself" = x; then
6025 as_myself=$0
6026 fi
6027 if test ! -f "$as_myself"; then
6028 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6029 { (exit 1); exit 1; }
6030 fi
6031
6032 # Work around bugs in pre-3.0 UWIN ksh.
6033 for as_var in ENV MAIL MAILPATH
6034 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6035 done
6036 PS1='$ '
6037 PS2='> '
6038 PS4='+ '
6039
6040 # NLS nuisances.
6041 for as_var in \
6042 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6043 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6044 LC_TELEPHONE LC_TIME
6045 do
6046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6047 eval $as_var=C; export $as_var
6048 else
6049 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6050 fi
6051 done
6052
6053 # Required to use basename.
6054 if expr a : '\(a\)' >/dev/null 2>&1 &&
6055 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6056 as_expr=expr
6057 else
6058 as_expr=false
6059 fi
6060
6061 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6062 as_basename=basename
6063 else
6064 as_basename=false
6065 fi
6066
6067
6068 # Name of the executable.
6069 as_me=`$as_basename -- "$0" ||
6070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6071 X"$0" : 'X\(//\)$' \| \
6072 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6073 echo X/"$0" |
6074 sed '/^.*\/\([^/][^/]*\)\/*$/{
6075 s//\1/
6076 q
6077 }
6078 /^X\/\(\/\/\)$/{
6079 s//\1/
6080 q
6081 }
6082 /^X\/\(\/\).*/{
6083 s//\1/
6084 q
6085 }
6086 s/.*/./; q'`
6087
6088 # CDPATH.
6089 $as_unset CDPATH
6090
6091
6092
6093 as_lineno_1=$LINENO
6094 as_lineno_2=$LINENO
6095 test "x$as_lineno_1" != "x$as_lineno_2" &&
6096 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6097
6098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6099 # uniformly replaced by the line number. The first 'sed' inserts a
6100 # line-number line after each line using $LINENO; the second 'sed'
6101 # does the real work. The second script uses 'N' to pair each
6102 # line-number line with the line containing $LINENO, and appends
6103 # trailing '-' during substitution so that $LINENO is not a special
6104 # case at line end.
6105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6106 # scripts with optimization help from Paolo Bonzini. Blame Lee
6107 # E. McMahon (1931-1989) for sed's syntax. :-)
6108 sed -n '
6109 p
6110 /[$]LINENO/=
6111 ' <$as_myself |
6112 sed '
6113 s/[$]LINENO.*/&-/
6114 t lineno
6115 b
6116 :lineno
6117 N
6118 :loop
6119 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6120 t loop
6121 s/-\n.*//
6122 ' >$as_me.lineno &&
6123 chmod +x "$as_me.lineno" ||
6124 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6125 { (exit 1); exit 1; }; }
6126
6127 # Don't try to exec as it changes $[0], causing all sort of problems
6128 # (the dirname of $[0] is not the place where we might find the
6129 # original and so on. Autoconf is especially sensitive to this).
6130 . "./$as_me.lineno"
6131 # Exit status is that of the last command.
6132 exit
6133 }
6134
6135
6136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6137 as_dirname=dirname
6138 else
6139 as_dirname=false
6140 fi
6141
6142 ECHO_C= ECHO_N= ECHO_T=
6143 case `echo -n x` in
6144 -n*)
6145 case `echo 'x\c'` in
6146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6147 *) ECHO_C='\c';;
6148 esac;;
6149 *)
6150 ECHO_N='-n';;
6151 esac
6152
6153 if expr a : '\(a\)' >/dev/null 2>&1 &&
6154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6155 as_expr=expr
6156 else
6157 as_expr=false
6158 fi
6159
6160 rm -f conf$$ conf$$.exe conf$$.file
6161 if test -d conf$$.dir; then
6162 rm -f conf$$.dir/conf$$.file
6163 else
6164 rm -f conf$$.dir
6165 mkdir conf$$.dir
6166 fi
6167 echo >conf$$.file
6168 if ln -s conf$$.file conf$$ 2>/dev/null; then
6169 as_ln_s='ln -s'
6170 # ... but there are two gotchas:
6171 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6172 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6173 # In both cases, we have to default to `cp -p'.
6174 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6175 as_ln_s='cp -p'
6176 elif ln conf$$.file conf$$ 2>/dev/null; then
6177 as_ln_s=ln
6178 else
6179 as_ln_s='cp -p'
6180 fi
6181 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6182 rmdir conf$$.dir 2>/dev/null
6183
6184 if mkdir -p . 2>/dev/null; then
6185 as_mkdir_p=:
6186 else
6187 test -d ./-p && rmdir ./-p
6188 as_mkdir_p=false
6189 fi
6190
6191 if test -x / >/dev/null 2>&1; then
6192 as_test_x='test -x'
6193 else
6194 if ls -dL / >/dev/null 2>&1; then
6195 as_ls_L_option=L
6196 else
6197 as_ls_L_option=
6198 fi
6199 as_test_x='
6200 eval sh -c '\''
6201 if test -d "$1"; then
6202 test -d "$1/.";
6203 else
6204 case $1 in
6205 -*)set "./$1";;
6206 esac;
6207 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6208 ???[sx]*):;;*)false;;esac;fi
6209 '\'' sh
6210 '
6211 fi
6212 as_executable_p=$as_test_x
6213
6214 # Sed expression to map a string onto a valid CPP name.
6215 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6216
6217 # Sed expression to map a string onto a valid variable name.
6218 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6219
6220
6221 exec 6>&1
6222
6223 # Save the log message, to keep $[0] and so on meaningful, and to
6224 # report actual input values of CONFIG_FILES etc. instead of their
6225 # values after options handling.
6226 ac_log="
6227 This file was extended by xinit $as_me 1.1.0, which was
6228 generated by GNU Autoconf 2.61. Invocation command line was
6229
6230 CONFIG_FILES = $CONFIG_FILES
6231 CONFIG_HEADERS = $CONFIG_HEADERS
6232 CONFIG_LINKS = $CONFIG_LINKS
6233 CONFIG_COMMANDS = $CONFIG_COMMANDS
6234 $ $0 $@
6235
6236 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6237 "
6238
6239 _ACEOF
6240
6241 cat >>$CONFIG_STATUS <<_ACEOF
6242 # Files that config.status was made for.
6243 config_files="$ac_config_files"
6244 config_headers="$ac_config_headers"
6245 config_commands="$ac_config_commands"
6246
6247 _ACEOF
6248
6249 cat >>$CONFIG_STATUS <<\_ACEOF
6250 ac_cs_usage="\
6251 \`$as_me' instantiates files from templates according to the
6252 current configuration.
6253
6254 Usage: $0 [OPTIONS] [FILE]...
6255
6256 -h, --help print this help, then exit
6257 -V, --version print version number and configuration settings, then exit
6258 -q, --quiet do not print progress messages
6259 -d, --debug don't remove temporary files
6260 --recheck update $as_me by reconfiguring in the same conditions
6261 --file=FILE[:TEMPLATE]
6262 instantiate the configuration file FILE
6263 --header=FILE[:TEMPLATE]
6264 instantiate the configuration header FILE
6265
6266 Configuration files:
6267 $config_files
6268
6269 Configuration headers:
6270 $config_headers
6271
6272 Configuration commands:
6273 $config_commands
6274
6275 Report bugs to <bug-autoconf (at] gnu.org>."
6276
6277 _ACEOF
6278 cat >>$CONFIG_STATUS <<_ACEOF
6279 ac_cs_version="\\
6280 xinit config.status 1.1.0
6281 configured by $0, generated by GNU Autoconf 2.61,
6282 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6283
6284 Copyright (C) 2006 Free Software Foundation, Inc.
6285 This config.status script is free software; the Free Software Foundation
6286 gives unlimited permission to copy, distribute and modify it."
6287
6288 ac_pwd='$ac_pwd'
6289 srcdir='$srcdir'
6290 INSTALL='$INSTALL'
6291 MKDIR_P='$MKDIR_P'
6292 _ACEOF
6293
6294 cat >>$CONFIG_STATUS <<\_ACEOF
6295 # If no file are specified by the user, then we need to provide default
6296 # value. By we need to know if files were specified by the user.
6297 ac_need_defaults=:
6298 while test $# != 0
6299 do
6300 case $1 in
6301 --*=*)
6302 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6303 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6304 ac_shift=:
6305 ;;
6306 *)
6307 ac_option=$1
6308 ac_optarg=$2
6309 ac_shift=shift
6310 ;;
6311 esac
6312
6313 case $ac_option in
6314 # Handling of the options.
6315 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6316 ac_cs_recheck=: ;;
6317 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6318 echo "$ac_cs_version"; exit ;;
6319 --debug | --debu | --deb | --de | --d | -d )
6320 debug=: ;;
6321 --file | --fil | --fi | --f )
6322 $ac_shift
6323 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6324 ac_need_defaults=false;;
6325 --header | --heade | --head | --hea )
6326 $ac_shift
6327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6328 ac_need_defaults=false;;
6329 --he | --h)
6330 # Conflict between --help and --header
6331 { echo "$as_me: error: ambiguous option: $1
6332 Try \`$0 --help' for more information." >&2
6333 { (exit 1); exit 1; }; };;
6334 --help | --hel | -h )
6335 echo "$ac_cs_usage"; exit ;;
6336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6337 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6338 ac_cs_silent=: ;;
6339
6340 # This is an error.
6341 -*) { echo "$as_me: error: unrecognized option: $1
6342 Try \`$0 --help' for more information." >&2
6343 { (exit 1); exit 1; }; } ;;
6344
6345 *) ac_config_targets="$ac_config_targets $1"
6346 ac_need_defaults=false ;;
6347
6348 esac
6349 shift
6350 done
6351
6352 ac_configure_extra_args=
6353
6354 if $ac_cs_silent; then
6355 exec 6>/dev/null
6356 ac_configure_extra_args="$ac_configure_extra_args --silent"
6357 fi
6358
6359 _ACEOF
6360 cat >>$CONFIG_STATUS <<_ACEOF
6361 if \$ac_cs_recheck; then
6362 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6363 CONFIG_SHELL=$SHELL
6364 export CONFIG_SHELL
6365 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6366 fi
6367
6368 _ACEOF
6369 cat >>$CONFIG_STATUS <<\_ACEOF
6370 exec 5>>config.log
6371 {
6372 echo
6373 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6374 ## Running $as_me. ##
6375 _ASBOX
6376 echo "$ac_log"
6377 } >&5
6378
6379 _ACEOF
6380 cat >>$CONFIG_STATUS <<_ACEOF
6381 #
6382 # INIT-COMMANDS
6383 #
6384 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6385
6386 _ACEOF
6387
6388 cat >>$CONFIG_STATUS <<\_ACEOF
6389
6390 # Handling of arguments.
6391 for ac_config_target in $ac_config_targets
6392 do
6393 case $ac_config_target in
6394 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6395 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6397
6398 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6399 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6400 { (exit 1); exit 1; }; };;
6401 esac
6402 done
6403
6404
6405 # If the user did not use the arguments to specify the items to instantiate,
6406 # then the envvar interface is used. Set only those that are not.
6407 # We use the long form for the default assignment because of an extremely
6408 # bizarre bug on SunOS 4.1.3.
6409 if $ac_need_defaults; then
6410 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6411 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6412 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6413 fi
6414
6415 # Have a temporary directory for convenience. Make it in the build tree
6416 # simply because there is no reason against having it here, and in addition,
6417 # creating and moving files from /tmp can sometimes cause problems.
6418 # Hook for its removal unless debugging.
6419 # Note that there is a small window in which the directory will not be cleaned:
6420 # after its creation but before its name has been assigned to `$tmp'.
6421 $debug ||
6422 {
6423 tmp=
6424 trap 'exit_status=$?
6425 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6426 ' 0
6427 trap '{ (exit 1); exit 1; }' 1 2 13 15
6428 }
6429 # Create a (secure) tmp directory for tmp files.
6430
6431 {
6432 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6433 test -n "$tmp" && test -d "$tmp"
6434 } ||
6435 {
6436 tmp=./conf$$-$RANDOM
6437 (umask 077 && mkdir "$tmp")
6438 } ||
6439 {
6440 echo "$me: cannot create a temporary directory in ." >&2
6441 { (exit 1); exit 1; }
6442 }
6443
6444 #
6445 # Set up the sed scripts for CONFIG_FILES section.
6446 #
6447
6448 # No need to generate the scripts if there are no CONFIG_FILES.
6449 # This happens for instance when ./config.status config.h
6450 if test -n "$CONFIG_FILES"; then
6451
6452 _ACEOF
6453
6454
6455
6456 ac_delim='%!_!# '
6457 for ac_last_try in false false false false false :; do
6458 cat >conf$$subs.sed <<_ACEOF
6459 SHELL!$SHELL$ac_delim
6460 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6461 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6462 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6463 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6464 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6465 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6466 exec_prefix!$exec_prefix$ac_delim
6467 prefix!$prefix$ac_delim
6468 program_transform_name!$program_transform_name$ac_delim
6469 bindir!$bindir$ac_delim
6470 sbindir!$sbindir$ac_delim
6471 libexecdir!$libexecdir$ac_delim
6472 datarootdir!$datarootdir$ac_delim
6473 datadir!$datadir$ac_delim
6474 sysconfdir!$sysconfdir$ac_delim
6475 sharedstatedir!$sharedstatedir$ac_delim
6476 localstatedir!$localstatedir$ac_delim
6477 includedir!$includedir$ac_delim
6478 oldincludedir!$oldincludedir$ac_delim
6479 docdir!$docdir$ac_delim
6480 infodir!$infodir$ac_delim
6481 htmldir!$htmldir$ac_delim
6482 dvidir!$dvidir$ac_delim
6483 pdfdir!$pdfdir$ac_delim
6484 psdir!$psdir$ac_delim
6485 libdir!$libdir$ac_delim
6486 localedir!$localedir$ac_delim
6487 mandir!$mandir$ac_delim
6488 DEFS!$DEFS$ac_delim
6489 ECHO_C!$ECHO_C$ac_delim
6490 ECHO_N!$ECHO_N$ac_delim
6491 ECHO_T!$ECHO_T$ac_delim
6492 LIBS!$LIBS$ac_delim
6493 build_alias!$build_alias$ac_delim
6494 host_alias!$host_alias$ac_delim
6495 target_alias!$target_alias$ac_delim
6496 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6497 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6498 INSTALL_DATA!$INSTALL_DATA$ac_delim
6499 am__isrc!$am__isrc$ac_delim
6500 CYGPATH_W!$CYGPATH_W$ac_delim
6501 PACKAGE!$PACKAGE$ac_delim
6502 VERSION!$VERSION$ac_delim
6503 ACLOCAL!$ACLOCAL$ac_delim
6504 AUTOCONF!$AUTOCONF$ac_delim
6505 AUTOMAKE!$AUTOMAKE$ac_delim
6506 AUTOHEADER!$AUTOHEADER$ac_delim
6507 MAKEINFO!$MAKEINFO$ac_delim
6508 install_sh!$install_sh$ac_delim
6509 STRIP!$STRIP$ac_delim
6510 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6511 mkdir_p!$mkdir_p$ac_delim
6512 AWK!$AWK$ac_delim
6513 SET_MAKE!$SET_MAKE$ac_delim
6514 am__leading_dot!$am__leading_dot$ac_delim
6515 AMTAR!$AMTAR$ac_delim
6516 am__tar!$am__tar$ac_delim
6517 am__untar!$am__untar$ac_delim
6518 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
6519 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
6520 MAINT!$MAINT$ac_delim
6521 CC!$CC$ac_delim
6522 CFLAGS!$CFLAGS$ac_delim
6523 LDFLAGS!$LDFLAGS$ac_delim
6524 CPPFLAGS!$CPPFLAGS$ac_delim
6525 ac_ct_CC!$ac_ct_CC$ac_delim
6526 EXEEXT!$EXEEXT$ac_delim
6527 OBJEXT!$OBJEXT$ac_delim
6528 DEPDIR!$DEPDIR$ac_delim
6529 am__include!$am__include$ac_delim
6530 am__quote!$am__quote$ac_delim
6531 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6532 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6533 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6534 CCDEPMODE!$CCDEPMODE$ac_delim
6535 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6536 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6537 CPP!$CPP$ac_delim
6538 RAWCPP!$RAWCPP$ac_delim
6539 RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
6540 SED!$SED$ac_delim
6541 build!$build$ac_delim
6542 build_cpu!$build_cpu$ac_delim
6543 build_vendor!$build_vendor$ac_delim
6544 build_os!$build_os$ac_delim
6545 host!$host$ac_delim
6546 host_cpu!$host_cpu$ac_delim
6547 host_vendor!$host_vendor$ac_delim
6548 host_os!$host_os$ac_delim
6549 GREP!$GREP$ac_delim
6550 EGREP!$EGREP$ac_delim
6551 LAUNCHD!$LAUNCHD$ac_delim
6552 launchagentsdir!$launchagentsdir$ac_delim
6553 launchdaemonsdir!$launchdaemonsdir$ac_delim
6554 LAUNCHD_TRUE!$LAUNCHD_TRUE$ac_delim
6555 LAUNCHD_FALSE!$LAUNCHD_FALSE$ac_delim
6556 _ACEOF
6557
6558 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
6559 break
6560 elif $ac_last_try; then
6561 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6563 { (exit 1); exit 1; }; }
6564 else
6565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6566 fi
6567 done
6568
6569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6570 if test -n "$ac_eof"; then
6571 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6572 ac_eof=`expr $ac_eof + 1`
6573 fi
6574
6575 cat >>$CONFIG_STATUS <<_ACEOF
6576 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6578 _ACEOF
6579 sed '
6580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6581 s/^/s,@/; s/!/@,|#_!!_#|/
6582 :n
6583 t n
6584 s/'"$ac_delim"'$/,g/; t
6585 s/$/\\/; p
6586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6587 ' >>$CONFIG_STATUS <conf$$subs.sed
6588 rm -f conf$$subs.sed
6589 cat >>$CONFIG_STATUS <<_ACEOF
6590 CEOF$ac_eof
6591 _ACEOF
6592
6593
6594 ac_delim='%!_!# '
6595 for ac_last_try in false false false false false :; do
6596 cat >conf$$subs.sed <<_ACEOF
6597 PKG_CONFIG!$PKG_CONFIG$ac_delim
6598 XINIT_CFLAGS!$XINIT_CFLAGS$ac_delim
6599 XINIT_LIBS!$XINIT_LIBS$ac_delim
6600 MCOOKIE!$MCOOKIE$ac_delim
6601 STARTX_COOKIE_FLAGS!$STARTX_COOKIE_FLAGS$ac_delim
6602 SHELL_CMD!$SHELL_CMD$ac_delim
6603 ARCHMANDEFS!$ARCHMANDEFS$ac_delim
6604 XRDB!$XRDB$ac_delim
6605 XMODMAP!$XMODMAP$ac_delim
6606 TWM!$TWM$ac_delim
6607 XCLOCK!$XCLOCK$ac_delim
6608 XTERM!$XTERM$ac_delim
6609 XSERVER!$XSERVER$ac_delim
6610 XAUTH!$XAUTH$ac_delim
6611 XINIT!$XINIT$ac_delim
6612 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
6613 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
6614 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
6615 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
6616 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
6617 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
6618 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
6619 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
6620 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
6621 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
6622 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
6623 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
6624 LIBOBJS!$LIBOBJS$ac_delim
6625 LTLIBOBJS!$LTLIBOBJS$ac_delim
6626 _ACEOF
6627
6628 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
6629 break
6630 elif $ac_last_try; then
6631 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6632 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6633 { (exit 1); exit 1; }; }
6634 else
6635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6636 fi
6637 done
6638
6639 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6640 if test -n "$ac_eof"; then
6641 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6642 ac_eof=`expr $ac_eof + 1`
6643 fi
6644
6645 cat >>$CONFIG_STATUS <<_ACEOF
6646 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
6647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6648 _ACEOF
6649 sed '
6650 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6651 s/^/s,@/; s/!/@,|#_!!_#|/
6652 :n
6653 t n
6654 s/'"$ac_delim"'$/,g/; t
6655 s/$/\\/; p
6656 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6657 ' >>$CONFIG_STATUS <conf$$subs.sed
6658 rm -f conf$$subs.sed
6659 cat >>$CONFIG_STATUS <<_ACEOF
6660 :end
6661 s/|#_!!_#|//g
6662 CEOF$ac_eof
6663 _ACEOF
6664
6665
6666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6668 # trailing colons and then remove the whole line if VPATH becomes empty
6669 # (actually we leave an empty line to preserve line numbers).
6670 if test "x$srcdir" = x.; then
6671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6672 s/:*\$(srcdir):*/:/
6673 s/:*\${srcdir}:*/:/
6674 s/:*@srcdir@:*/:/
6675 s/^\([^=]*=[ ]*\):*/\1/
6676 s/:*$//
6677 s/^[^=]*=[ ]*$//
6678 }'
6679 fi
6680
6681 cat >>$CONFIG_STATUS <<\_ACEOF
6682 fi # test -n "$CONFIG_FILES"
6683
6684
6685 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
6686 do
6687 case $ac_tag in
6688 :[FHLC]) ac_mode=$ac_tag; continue;;
6689 esac
6690 case $ac_mode$ac_tag in
6691 :[FHL]*:*);;
6692 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6693 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6694 { (exit 1); exit 1; }; };;
6695 :[FH]-) ac_tag=-:-;;
6696 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6697 esac
6698 ac_save_IFS=$IFS
6699 IFS=:
6700 set x $ac_tag
6701 IFS=$ac_save_IFS
6702 shift
6703 ac_file=$1
6704 shift
6705
6706 case $ac_mode in
6707 :L) ac_source=$1;;
6708 :[FH])
6709 ac_file_inputs=
6710 for ac_f
6711 do
6712 case $ac_f in
6713 -) ac_f="$tmp/stdin";;
6714 *) # Look for the file first in the build tree, then in the source tree
6715 # (if the path is not absolute). The absolute path cannot be DOS-style,
6716 # because $ac_f cannot contain `:'.
6717 test -f "$ac_f" ||
6718 case $ac_f in
6719 [\\/$]*) false;;
6720 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6721 esac ||
6722 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6723 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6724 { (exit 1); exit 1; }; };;
6725 esac
6726 ac_file_inputs="$ac_file_inputs $ac_f"
6727 done
6728
6729 # Let's still pretend it is `configure' which instantiates (i.e., don't
6730 # use $as_me), people would be surprised to read:
6731 # /* config.h. Generated by config.status. */
6732 configure_input="Generated from "`IFS=:
6733 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6734 if test x"$ac_file" != x-; then
6735 configure_input="$ac_file. $configure_input"
6736 { echo "$as_me:$LINENO: creating $ac_file" >&5
6737 echo "$as_me: creating $ac_file" >&6;}
6738 fi
6739
6740 case $ac_tag in
6741 *:-:* | *:-) cat >"$tmp/stdin";;
6742 esac
6743 ;;
6744 esac
6745
6746 ac_dir=`$as_dirname -- "$ac_file" ||
6747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6748 X"$ac_file" : 'X\(//\)[^/]' \| \
6749 X"$ac_file" : 'X\(//\)$' \| \
6750 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6751 echo X"$ac_file" |
6752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6753 s//\1/
6754 q
6755 }
6756 /^X\(\/\/\)[^/].*/{
6757 s//\1/
6758 q
6759 }
6760 /^X\(\/\/\)$/{
6761 s//\1/
6762 q
6763 }
6764 /^X\(\/\).*/{
6765 s//\1/
6766 q
6767 }
6768 s/.*/./; q'`
6769 { as_dir="$ac_dir"
6770 case $as_dir in #(
6771 -*) as_dir=./$as_dir;;
6772 esac
6773 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6774 as_dirs=
6775 while :; do
6776 case $as_dir in #(
6777 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6778 *) as_qdir=$as_dir;;
6779 esac
6780 as_dirs="'$as_qdir' $as_dirs"
6781 as_dir=`$as_dirname -- "$as_dir" ||
6782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6783 X"$as_dir" : 'X\(//\)[^/]' \| \
6784 X"$as_dir" : 'X\(//\)$' \| \
6785 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6786 echo X"$as_dir" |
6787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6788 s//\1/
6789 q
6790 }
6791 /^X\(\/\/\)[^/].*/{
6792 s//\1/
6793 q
6794 }
6795 /^X\(\/\/\)$/{
6796 s//\1/
6797 q
6798 }
6799 /^X\(\/\).*/{
6800 s//\1/
6801 q
6802 }
6803 s/.*/./; q'`
6804 test -d "$as_dir" && break
6805 done
6806 test -z "$as_dirs" || eval "mkdir $as_dirs"
6807 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6808 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6809 { (exit 1); exit 1; }; }; }
6810 ac_builddir=.
6811
6812 case "$ac_dir" in
6813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6814 *)
6815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6816 # A ".." for each directory in $ac_dir_suffix.
6817 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6818 case $ac_top_builddir_sub in
6819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6821 esac ;;
6822 esac
6823 ac_abs_top_builddir=$ac_pwd
6824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6825 # for backward compatibility:
6826 ac_top_builddir=$ac_top_build_prefix
6827
6828 case $srcdir in
6829 .) # We are building in place.
6830 ac_srcdir=.
6831 ac_top_srcdir=$ac_top_builddir_sub
6832 ac_abs_top_srcdir=$ac_pwd ;;
6833 [\\/]* | ?:[\\/]* ) # Absolute name.
6834 ac_srcdir=$srcdir$ac_dir_suffix;
6835 ac_top_srcdir=$srcdir
6836 ac_abs_top_srcdir=$srcdir ;;
6837 *) # Relative name.
6838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6839 ac_top_srcdir=$ac_top_build_prefix$srcdir
6840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6841 esac
6842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6843
6844
6845 case $ac_mode in
6846 :F)
6847 #
6848 # CONFIG_FILE
6849 #
6850
6851 case $INSTALL in
6852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6853 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6854 esac
6855 ac_MKDIR_P=$MKDIR_P
6856 case $MKDIR_P in
6857 [\\/$]* | ?:[\\/]* ) ;;
6858 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6859 esac
6860 _ACEOF
6861
6862 cat >>$CONFIG_STATUS <<\_ACEOF
6863 # If the template does not know about datarootdir, expand it.
6864 # FIXME: This hack should be removed a few years after 2.60.
6865 ac_datarootdir_hack=; ac_datarootdir_seen=
6866
6867 case `sed -n '/datarootdir/ {
6868 p
6869 q
6870 }
6871 /@datadir@/p
6872 /@docdir@/p
6873 /@infodir@/p
6874 /@localedir@/p
6875 /@mandir@/p
6876 ' $ac_file_inputs` in
6877 *datarootdir*) ac_datarootdir_seen=yes;;
6878 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6879 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6880 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6881 _ACEOF
6882 cat >>$CONFIG_STATUS <<_ACEOF
6883 ac_datarootdir_hack='
6884 s&@datadir@&$datadir&g
6885 s&@docdir@&$docdir&g
6886 s&@infodir@&$infodir&g
6887 s&@localedir@&$localedir&g
6888 s&@mandir@&$mandir&g
6889 s&\\\${datarootdir}&$datarootdir&g' ;;
6890 esac
6891 _ACEOF
6892
6893 # Neutralize VPATH when `$srcdir' = `.'.
6894 # Shell code in configure.ac might set extrasub.
6895 # FIXME: do we really want to maintain this feature?
6896 cat >>$CONFIG_STATUS <<_ACEOF
6897 sed "$ac_vpsub
6898 $extrasub
6899 _ACEOF
6900 cat >>$CONFIG_STATUS <<\_ACEOF
6901 :t
6902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6903 s&@configure_input@&$configure_input&;t t
6904 s&@top_builddir@&$ac_top_builddir_sub&;t t
6905 s&@srcdir@&$ac_srcdir&;t t
6906 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6907 s&@top_srcdir@&$ac_top_srcdir&;t t
6908 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6909 s&@builddir@&$ac_builddir&;t t
6910 s&@abs_builddir@&$ac_abs_builddir&;t t
6911 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6912 s&@INSTALL@&$ac_INSTALL&;t t
6913 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6914 $ac_datarootdir_hack
6915 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
6916
6917 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6918 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6920 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6921 which seems to be undefined. Please make sure it is defined." >&5
6922 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6923 which seems to be undefined. Please make sure it is defined." >&2;}
6924
6925 rm -f "$tmp/stdin"
6926 case $ac_file in
6927 -) cat "$tmp/out"; rm -f "$tmp/out";;
6928 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6929 esac
6930 ;;
6931 :H)
6932 #
6933 # CONFIG_HEADER
6934 #
6935 _ACEOF
6936
6937 # Transform confdefs.h into a sed script `conftest.defines', that
6938 # substitutes the proper values into config.h.in to produce config.h.
6939 rm -f conftest.defines conftest.tail
6940 # First, append a space to every undef/define line, to ease matching.
6941 echo 's/$/ /' >conftest.defines
6942 # Then, protect against being on the right side of a sed subst, or in
6943 # an unquoted here document, in config.status. If some macros were
6944 # called several times there might be several #defines for the same
6945 # symbol, which is useless. But do not sort them, since the last
6946 # AC_DEFINE must be honored.
6947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6948 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6949 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6950 # PARAMS is the parameter list in the macro definition--in most cases, it's
6951 # just an empty string.
6952 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6953 ac_dB='\\)[ (].*,\\1define\\2'
6954 ac_dC=' '
6955 ac_dD=' ,'
6956
6957 uniq confdefs.h |
6958 sed -n '
6959 t rset
6960 :rset
6961 s/^[ ]*#[ ]*define[ ][ ]*//
6962 t ok
6963 d
6964 :ok
6965 s/[\\&,]/\\&/g
6966 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6967 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6968 ' >>conftest.defines
6969
6970 # Remove the space that was appended to ease matching.
6971 # Then replace #undef with comments. This is necessary, for
6972 # example, in the case of _POSIX_SOURCE, which is predefined and required
6973 # on some systems where configure will not decide to define it.
6974 # (The regexp can be short, since the line contains either #define or #undef.)
6975 echo 's/ $//
6976 s,^[ #]*u.*,/* & */,' >>conftest.defines
6977
6978 # Break up conftest.defines:
6979 ac_max_sed_lines=50
6980
6981 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6982 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6983 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6984 # et cetera.
6985 ac_in='$ac_file_inputs'
6986 ac_out='"$tmp/out1"'
6987 ac_nxt='"$tmp/out2"'
6988
6989 while :
6990 do
6991 # Write a here document:
6992 cat >>$CONFIG_STATUS <<_ACEOF
6993 # First, check the format of the line:
6994 cat >"\$tmp/defines.sed" <<\\CEOF
6995 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6996 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6997 b
6998 :def
6999 _ACEOF
7000 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7001 echo 'CEOF
7002 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7003 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7004 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7005 grep . conftest.tail >/dev/null || break
7006 rm -f conftest.defines
7007 mv conftest.tail conftest.defines
7008 done
7009 rm -f conftest.defines conftest.tail
7010
7011 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7012 cat >>$CONFIG_STATUS <<\_ACEOF
7013 if test x"$ac_file" != x-; then
7014 echo "/* $configure_input */" >"$tmp/config.h"
7015 cat "$ac_result" >>"$tmp/config.h"
7016 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7017 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7018 echo "$as_me: $ac_file is unchanged" >&6;}
7019 else
7020 rm -f $ac_file
7021 mv "$tmp/config.h" $ac_file
7022 fi
7023 else
7024 echo "/* $configure_input */"
7025 cat "$ac_result"
7026 fi
7027 rm -f "$tmp/out12"
7028 # Compute $ac_file's index in $config_headers.
7029 _am_arg=$ac_file
7030 _am_stamp_count=1
7031 for _am_header in $config_headers :; do
7032 case $_am_header in
7033 $_am_arg | $_am_arg:* )
7034 break ;;
7035 * )
7036 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7037 esac
7038 done
7039 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7040 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7041 X"$_am_arg" : 'X\(//\)[^/]' \| \
7042 X"$_am_arg" : 'X\(//\)$' \| \
7043 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7044 echo X"$_am_arg" |
7045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7046 s//\1/
7047 q
7048 }
7049 /^X\(\/\/\)[^/].*/{
7050 s//\1/
7051 q
7052 }
7053 /^X\(\/\/\)$/{
7054 s//\1/
7055 q
7056 }
7057 /^X\(\/\).*/{
7058 s//\1/
7059 q
7060 }
7061 s/.*/./; q'`/stamp-h$_am_stamp_count
7062 ;;
7063
7064 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7065 echo "$as_me: executing $ac_file commands" >&6;}
7066 ;;
7067 esac
7068
7069
7070 case $ac_file$ac_mode in
7071 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7072 # Strip MF so we end up with the name of the file.
7073 mf=`echo "$mf" | sed -e 's/:.*$//'`
7074 # Check whether this is an Automake generated Makefile or not.
7075 # We used to match only the files named `Makefile.in', but
7076 # some people rename them; so instead we look at the file content.
7077 # Grep'ing the first line is not enough: some people post-process
7078 # each Makefile.in and add a new line on top of each file to say so.
7079 # Grep'ing the whole file is not good either: AIX grep has a line
7080 # limit of 2048, but all sed's we know have understand at least 4000.
7081 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7082 dirpart=`$as_dirname -- "$mf" ||
7083 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7084 X"$mf" : 'X\(//\)[^/]' \| \
7085 X"$mf" : 'X\(//\)$' \| \
7086 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7087 echo X"$mf" |
7088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7089 s//\1/
7090 q
7091 }
7092 /^X\(\/\/\)[^/].*/{
7093 s//\1/
7094 q
7095 }
7096 /^X\(\/\/\)$/{
7097 s//\1/
7098 q
7099 }
7100 /^X\(\/\).*/{
7101 s//\1/
7102 q
7103 }
7104 s/.*/./; q'`
7105 else
7106 continue
7107 fi
7108 # Extract the definition of DEPDIR, am__include, and am__quote
7109 # from the Makefile without running `make'.
7110 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7111 test -z "$DEPDIR" && continue
7112 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7113 test -z "am__include" && continue
7114 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7115 # When using ansi2knr, U may be empty or an underscore; expand it
7116 U=`sed -n 's/^U = //p' < "$mf"`
7117 # Find all dependency output files, they are included files with
7118 # $(DEPDIR) in their names. We invoke sed twice because it is the
7119 # simplest approach to changing $(DEPDIR) to its actual value in the
7120 # expansion.
7121 for file in `sed -n "
7122 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7123 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7124 # Make sure the directory exists.
7125 test -f "$dirpart/$file" && continue
7126 fdir=`$as_dirname -- "$file" ||
7127 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7128 X"$file" : 'X\(//\)[^/]' \| \
7129 X"$file" : 'X\(//\)$' \| \
7130 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7131 echo X"$file" |
7132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7133 s//\1/
7134 q
7135 }
7136 /^X\(\/\/\)[^/].*/{
7137 s//\1/
7138 q
7139 }
7140 /^X\(\/\/\)$/{
7141 s//\1/
7142 q
7143 }
7144 /^X\(\/\).*/{
7145 s//\1/
7146 q
7147 }
7148 s/.*/./; q'`
7149 { as_dir=$dirpart/$fdir
7150 case $as_dir in #(
7151 -*) as_dir=./$as_dir;;
7152 esac
7153 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7154 as_dirs=
7155 while :; do
7156 case $as_dir in #(
7157 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7158 *) as_qdir=$as_dir;;
7159 esac
7160 as_dirs="'$as_qdir' $as_dirs"
7161 as_dir=`$as_dirname -- "$as_dir" ||
7162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7163 X"$as_dir" : 'X\(//\)[^/]' \| \
7164 X"$as_dir" : 'X\(//\)$' \| \
7165 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7166 echo X"$as_dir" |
7167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7168 s//\1/
7169 q
7170 }
7171 /^X\(\/\/\)[^/].*/{
7172 s//\1/
7173 q
7174 }
7175 /^X\(\/\/\)$/{
7176 s//\1/
7177 q
7178 }
7179 /^X\(\/\).*/{
7180 s//\1/
7181 q
7182 }
7183 s/.*/./; q'`
7184 test -d "$as_dir" && break
7185 done
7186 test -z "$as_dirs" || eval "mkdir $as_dirs"
7187 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7188 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7189 { (exit 1); exit 1; }; }; }
7190 # echo "creating $dirpart/$file"
7191 echo '# dummy' > "$dirpart/$file"
7192 done
7193 done
7194 ;;
7195
7196 esac
7197 done # for ac_tag
7198
7199
7200 { (exit 0); exit 0; }
7201 _ACEOF
7202 chmod +x $CONFIG_STATUS
7203 ac_clean_files=$ac_clean_files_save
7204
7205
7206 # configure is writing to config.log, and then calls config.status.
7207 # config.status does its own redirection, appending to config.log.
7208 # Unfortunately, on DOS this fails, as config.log is still kept open
7209 # by configure, so config.status won't be able to write to it; its
7210 # output is simply discarded. So we exec the FD to /dev/null,
7211 # effectively closing config.log, so it can be properly (re)opened and
7212 # appended to by config.status. When coming back to configure, we
7213 # need to make the FD available again.
7214 if test "$no_create" != yes; then
7215 ac_cs_success=:
7216 ac_config_status_args=
7217 test "$silent" = yes &&
7218 ac_config_status_args="$ac_config_status_args --quiet"
7219 exec 5>/dev/null
7220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7221 exec 5>>config.log
7222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7223 # would make configure fail if this is the last instruction.
7224 $ac_cs_success || { (exit 1); exit 1; }
7225 fi
7226
7227 ac_config_files="$ac_config_files privileged_startx/Makefile"
7228
7229 cat >confcache <<\_ACEOF
7230 # This file is a shell script that caches the results of configure
7231 # tests run on this system so they can be shared between configure
7232 # scripts and configure runs, see configure's option --config-cache.
7233 # It is not useful on other systems. If it contains results you don't
7234 # want to keep, you may remove or edit it.
7235 #
7236 # config.status only pays attention to the cache file if you give it
7237 # the --recheck option to rerun configure.
7238 #
7239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7241 # following values.
7242
7243 _ACEOF
7244
7245 # The following way of writing the cache mishandles newlines in values,
7246 # but we know of no workaround that is simple, portable, and efficient.
7247 # So, we kill variables containing newlines.
7248 # Ultrix sh set writes to stderr and can't be redirected directly,
7249 # and sets the high bit in the cache file unless we assign to the vars.
7250 (
7251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7252 eval ac_val=\$$ac_var
7253 case $ac_val in #(
7254 *${as_nl}*)
7255 case $ac_var in #(
7256 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7257 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7258 esac
7259 case $ac_var in #(
7260 _ | IFS | as_nl) ;; #(
7261 *) $as_unset $ac_var ;;
7262 esac ;;
7263 esac
7264 done
7265
7266 (set) 2>&1 |
7267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7268 *${as_nl}ac_space=\ *)
7269 # `set' does not quote correctly, so add quotes (double-quote
7270 # substitution turns \\\\ into \\, and sed turns \\ into \).
7271 sed -n \
7272 "s/'/'\\\\''/g;
7273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7274 ;; #(
7275 *)
7276 # `set' quotes correctly as required by POSIX, so do not add quotes.
7277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7278 ;;
7279 esac |
7280 sort
7281 ) |
7282 sed '
7283 /^ac_cv_env_/b end
7284 t clear
7285 :clear
7286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7287 t end
7288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7289 :end' >>confcache
7290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7291 if test -w "$cache_file"; then
7292 test "x$cache_file" != "x/dev/null" &&
7293 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7294 echo "$as_me: updating cache $cache_file" >&6;}
7295 cat confcache >$cache_file
7296 else
7297 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7298 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7299 fi
7300 fi
7301 rm -f confcache
7302
7303 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7304 # Let make expand exec_prefix.
7305 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7306
7307 DEFS=-DHAVE_CONFIG_H
7308
7309 ac_libobjs=
7310 ac_ltlibobjs=
7311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7312 # 1. Remove the extension, and $U if already installed.
7313 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7314 ac_i=`echo "$ac_i" | sed "$ac_script"`
7315 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7316 # will be set to the directory where LIBOBJS objects are built.
7317 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7318 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7319 done
7320 LIBOBJS=$ac_libobjs
7321
7322 LTLIBOBJS=$ac_ltlibobjs
7323
7324
7325 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7326 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7327 Usually this means the macro was only invoked conditionally." >&5
7328 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7329 Usually this means the macro was only invoked conditionally." >&2;}
7330 { (exit 1); exit 1; }; }
7331 fi
7332 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7333 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7334 Usually this means the macro was only invoked conditionally." >&5
7335 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7336 Usually this means the macro was only invoked conditionally." >&2;}
7337 { (exit 1); exit 1; }; }
7338 fi
7339 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7340 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7341 Usually this means the macro was only invoked conditionally." >&5
7342 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7343 Usually this means the macro was only invoked conditionally." >&2;}
7344 { (exit 1); exit 1; }; }
7345 fi
7346 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
7347 { { echo "$as_me:$LINENO: error: conditional \"LAUNCHD\" was never defined.
7348 Usually this means the macro was only invoked conditionally." >&5
7349 echo "$as_me: error: conditional \"LAUNCHD\" was never defined.
7350 Usually this means the macro was only invoked conditionally." >&2;}
7351 { (exit 1); exit 1; }; }
7352 fi
7353
7354 : ${CONFIG_STATUS=./config.status}
7355 ac_clean_files_save=$ac_clean_files
7356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7357 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7358 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7359 cat >$CONFIG_STATUS <<_ACEOF
7360 #! $SHELL
7361 # Generated by $as_me.
7362 # Run this file to recreate the current configuration.
7363 # Compiler output produced by configure, useful for debugging
7364 # configure, is in config.log if it exists.
7365
7366 debug=false
7367 ac_cs_recheck=false
7368 ac_cs_silent=false
7369 SHELL=\${CONFIG_SHELL-$SHELL}
7370 _ACEOF
7371
7372 cat >>$CONFIG_STATUS <<\_ACEOF
7373 ## --------------------- ##
7374 ## M4sh Initialization. ##
7375 ## --------------------- ##
7376
7377 # Be more Bourne compatible
7378 DUALCASE=1; export DUALCASE # for MKS sh
7379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7380 emulate sh
7381 NULLCMD=:
7382 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7383 # is contrary to our usage. Disable this feature.
7384 alias -g '${1+"$@"}'='"$@"'
7385 setopt NO_GLOB_SUBST
7386 else
7387 case `(set -o) 2>/dev/null` in
7388 *posix*) set -o posix ;;
7389 esac
7390
7391 fi
7392
7393
7394
7395
7396 # PATH needs CR
7397 # Avoid depending upon Character Ranges.
7398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7401 as_cr_digits='0123456789'
7402 as_cr_alnum=$as_cr_Letters$as_cr_digits
7403
7404 # The user is always right.
7405 if test "${PATH_SEPARATOR+set}" != set; then
7406 echo "#! /bin/sh" >conf$$.sh
7407 echo "exit 0" >>conf$$.sh
7408 chmod +x conf$$.sh
7409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7410 PATH_SEPARATOR=';'
7411 else
7412 PATH_SEPARATOR=:
7413 fi
7414 rm -f conf$$.sh
7415 fi
7416
7417 # Support unset when possible.
7418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7419 as_unset=unset
7420 else
7421 as_unset=false
7422 fi
7423
7424
7425 # IFS
7426 # We need space, tab and new line, in precisely that order. Quoting is
7427 # there to prevent editors from complaining about space-tab.
7428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7429 # splitting by setting IFS to empty value.)
7430 as_nl='
7431 '
7432 IFS=" "" $as_nl"
7433
7434 # Find who we are. Look in the path if we contain no directory separator.
7435 case $0 in
7436 *[\\/]* ) as_myself=$0 ;;
7437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7443 done
7444 IFS=$as_save_IFS
7445
7446 ;;
7447 esac
7448 # We did not find ourselves, most probably we were run as `sh COMMAND'
7449 # in which case we are not to be found in the path.
7450 if test "x$as_myself" = x; then
7451 as_myself=$0
7452 fi
7453 if test ! -f "$as_myself"; then
7454 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7455 { (exit 1); exit 1; }
7456 fi
7457
7458 # Work around bugs in pre-3.0 UWIN ksh.
7459 for as_var in ENV MAIL MAILPATH
7460 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7461 done
7462 PS1='$ '
7463 PS2='> '
7464 PS4='+ '
7465
7466 # NLS nuisances.
7467 for as_var in \
7468 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7469 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7470 LC_TELEPHONE LC_TIME
7471 do
7472 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7473 eval $as_var=C; export $as_var
7474 else
7475 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7476 fi
7477 done
7478
7479 # Required to use basename.
7480 if expr a : '\(a\)' >/dev/null 2>&1 &&
7481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7482 as_expr=expr
7483 else
7484 as_expr=false
7485 fi
7486
7487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7488 as_basename=basename
7489 else
7490 as_basename=false
7491 fi
7492
7493
7494 # Name of the executable.
7495 as_me=`$as_basename -- "$0" ||
7496 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7497 X"$0" : 'X\(//\)$' \| \
7498 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7499 echo X/"$0" |
7500 sed '/^.*\/\([^/][^/]*\)\/*$/{
7501 s//\1/
7502 q
7503 }
7504 /^X\/\(\/\/\)$/{
7505 s//\1/
7506 q
7507 }
7508 /^X\/\(\/\).*/{
7509 s//\1/
7510 q
7511 }
7512 s/.*/./; q'`
7513
7514 # CDPATH.
7515 $as_unset CDPATH
7516
7517
7518
7519 as_lineno_1=$LINENO
7520 as_lineno_2=$LINENO
7521 test "x$as_lineno_1" != "x$as_lineno_2" &&
7522 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7523
7524 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7525 # uniformly replaced by the line number. The first 'sed' inserts a
7526 # line-number line after each line using $LINENO; the second 'sed'
7527 # does the real work. The second script uses 'N' to pair each
7528 # line-number line with the line containing $LINENO, and appends
7529 # trailing '-' during substitution so that $LINENO is not a special
7530 # case at line end.
7531 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7532 # scripts with optimization help from Paolo Bonzini. Blame Lee
7533 # E. McMahon (1931-1989) for sed's syntax. :-)
7534 sed -n '
7535 p
7536 /[$]LINENO/=
7537 ' <$as_myself |
7538 sed '
7539 s/[$]LINENO.*/&-/
7540 t lineno
7541 b
7542 :lineno
7543 N
7544 :loop
7545 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7546 t loop
7547 s/-\n.*//
7548 ' >$as_me.lineno &&
7549 chmod +x "$as_me.lineno" ||
7550 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7551 { (exit 1); exit 1; }; }
7552
7553 # Don't try to exec as it changes $[0], causing all sort of problems
7554 # (the dirname of $[0] is not the place where we might find the
7555 # original and so on. Autoconf is especially sensitive to this).
7556 . "./$as_me.lineno"
7557 # Exit status is that of the last command.
7558 exit
7559 }
7560
7561
7562 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7563 as_dirname=dirname
7564 else
7565 as_dirname=false
7566 fi
7567
7568 ECHO_C= ECHO_N= ECHO_T=
7569 case `echo -n x` in
7570 -n*)
7571 case `echo 'x\c'` in
7572 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7573 *) ECHO_C='\c';;
7574 esac;;
7575 *)
7576 ECHO_N='-n';;
7577 esac
7578
7579 if expr a : '\(a\)' >/dev/null 2>&1 &&
7580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7581 as_expr=expr
7582 else
7583 as_expr=false
7584 fi
7585
7586 rm -f conf$$ conf$$.exe conf$$.file
7587 if test -d conf$$.dir; then
7588 rm -f conf$$.dir/conf$$.file
7589 else
7590 rm -f conf$$.dir
7591 mkdir conf$$.dir
7592 fi
7593 echo >conf$$.file
7594 if ln -s conf$$.file conf$$ 2>/dev/null; then
7595 as_ln_s='ln -s'
7596 # ... but there are two gotchas:
7597 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7598 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7599 # In both cases, we have to default to `cp -p'.
7600 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7601 as_ln_s='cp -p'
7602 elif ln conf$$.file conf$$ 2>/dev/null; then
7603 as_ln_s=ln
7604 else
7605 as_ln_s='cp -p'
7606 fi
7607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7608 rmdir conf$$.dir 2>/dev/null
7609
7610 if mkdir -p . 2>/dev/null; then
7611 as_mkdir_p=:
7612 else
7613 test -d ./-p && rmdir ./-p
7614 as_mkdir_p=false
7615 fi
7616
7617 if test -x / >/dev/null 2>&1; then
7618 as_test_x='test -x'
7619 else
7620 if ls -dL / >/dev/null 2>&1; then
7621 as_ls_L_option=L
7622 else
7623 as_ls_L_option=
7624 fi
7625 as_test_x='
7626 eval sh -c '\''
7627 if test -d "$1"; then
7628 test -d "$1/.";
7629 else
7630 case $1 in
7631 -*)set "./$1";;
7632 esac;
7633 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7634 ???[sx]*):;;*)false;;esac;fi
7635 '\'' sh
7636 '
7637 fi
7638 as_executable_p=$as_test_x
7639
7640 # Sed expression to map a string onto a valid CPP name.
7641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7642
7643 # Sed expression to map a string onto a valid variable name.
7644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7645
7646
7647 exec 6>&1
7648
7649 # Save the log message, to keep $[0] and so on meaningful, and to
7650 # report actual input values of CONFIG_FILES etc. instead of their
7651 # values after options handling.
7652 ac_log="
7653 This file was extended by xinit $as_me 1.1.0, which was
7654 generated by GNU Autoconf 2.61. Invocation command line was
7655
7656 CONFIG_FILES = $CONFIG_FILES
7657 CONFIG_HEADERS = $CONFIG_HEADERS
7658 CONFIG_LINKS = $CONFIG_LINKS
7659 CONFIG_COMMANDS = $CONFIG_COMMANDS
7660 $ $0 $@
7661
7662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7663 "
7664
7665 _ACEOF
7666
7667 cat >>$CONFIG_STATUS <<_ACEOF
7668 # Files that config.status was made for.
7669 config_files="$ac_config_files"
7670 config_headers="$ac_config_headers"
7671 config_commands="$ac_config_commands"
7672
7673 _ACEOF
7674
7675 cat >>$CONFIG_STATUS <<\_ACEOF
7676 ac_cs_usage="\
7677 \`$as_me' instantiates files from templates according to the
7678 current configuration.
7679
7680 Usage: $0 [OPTIONS] [FILE]...
7681
7682 -h, --help print this help, then exit
7683 -V, --version print version number and configuration settings, then exit
7684 -q, --quiet do not print progress messages
7685 -d, --debug don't remove temporary files
7686 --recheck update $as_me by reconfiguring in the same conditions
7687 --file=FILE[:TEMPLATE]
7688 instantiate the configuration file FILE
7689 --header=FILE[:TEMPLATE]
7690 instantiate the configuration header FILE
7691
7692 Configuration files:
7693 $config_files
7694
7695 Configuration headers:
7696 $config_headers
7697
7698 Configuration commands:
7699 $config_commands
7700
7701 Report bugs to <bug-autoconf (at] gnu.org>."
7702
7703 _ACEOF
7704 cat >>$CONFIG_STATUS <<_ACEOF
7705 ac_cs_version="\\
7706 xinit config.status 1.1.0
7707 configured by $0, generated by GNU Autoconf 2.61,
7708 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7709
7710 Copyright (C) 2006 Free Software Foundation, Inc.
7711 This config.status script is free software; the Free Software Foundation
7712 gives unlimited permission to copy, distribute and modify it."
7713
7714 ac_pwd='$ac_pwd'
7715 srcdir='$srcdir'
7716 INSTALL='$INSTALL'
7717 MKDIR_P='$MKDIR_P'
7718 _ACEOF
7719
7720 cat >>$CONFIG_STATUS <<\_ACEOF
7721 # If no file are specified by the user, then we need to provide default
7722 # value. By we need to know if files were specified by the user.
7723 ac_need_defaults=:
7724 while test $# != 0
7725 do
7726 case $1 in
7727 --*=*)
7728 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7730 ac_shift=:
7731 ;;
7732 *)
7733 ac_option=$1
7734 ac_optarg=$2
7735 ac_shift=shift
7736 ;;
7737 esac
7738
7739 case $ac_option in
7740 # Handling of the options.
7741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7742 ac_cs_recheck=: ;;
7743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7744 echo "$ac_cs_version"; exit ;;
7745 --debug | --debu | --deb | --de | --d | -d )
7746 debug=: ;;
7747 --file | --fil | --fi | --f )
7748 $ac_shift
7749 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7750 ac_need_defaults=false;;
7751 --header | --heade | --head | --hea )
7752 $ac_shift
7753 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7754 ac_need_defaults=false;;
7755 --he | --h)
7756 # Conflict between --help and --header
7757 { echo "$as_me: error: ambiguous option: $1
7758 Try \`$0 --help' for more information." >&2
7759 { (exit 1); exit 1; }; };;
7760 --help | --hel | -h )
7761 echo "$ac_cs_usage"; exit ;;
7762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7764 ac_cs_silent=: ;;
7765
7766 # This is an error.
7767 -*) { echo "$as_me: error: unrecognized option: $1
7768 Try \`$0 --help' for more information." >&2
7769 { (exit 1); exit 1; }; } ;;
7770
7771 *) ac_config_targets="$ac_config_targets $1"
7772 ac_need_defaults=false ;;
7773
7774 esac
7775 shift
7776 done
7777
7778 ac_configure_extra_args=
7779
7780 if $ac_cs_silent; then
7781 exec 6>/dev/null
7782 ac_configure_extra_args="$ac_configure_extra_args --silent"
7783 fi
7784
7785 _ACEOF
7786 cat >>$CONFIG_STATUS <<_ACEOF
7787 if \$ac_cs_recheck; then
7788 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7789 CONFIG_SHELL=$SHELL
7790 export CONFIG_SHELL
7791 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7792 fi
7793
7794 _ACEOF
7795 cat >>$CONFIG_STATUS <<\_ACEOF
7796 exec 5>>config.log
7797 {
7798 echo
7799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7800 ## Running $as_me. ##
7801 _ASBOX
7802 echo "$ac_log"
7803 } >&5
7804
7805 _ACEOF
7806 cat >>$CONFIG_STATUS <<_ACEOF
7807 #
7808 # INIT-COMMANDS
7809 #
7810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7811
7812 _ACEOF
7813
7814 cat >>$CONFIG_STATUS <<\_ACEOF
7815
7816 # Handling of arguments.
7817 for ac_config_target in $ac_config_targets
7818 do
7819 case $ac_config_target in
7820 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7821 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7822 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7823 "privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES privileged_startx/Makefile" ;;
7824
7825 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7826 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7827 { (exit 1); exit 1; }; };;
7828 esac
7829 done
7830
7831
7832 # If the user did not use the arguments to specify the items to instantiate,
7833 # then the envvar interface is used. Set only those that are not.
7834 # We use the long form for the default assignment because of an extremely
7835 # bizarre bug on SunOS 4.1.3.
7836 if $ac_need_defaults; then
7837 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7838 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7839 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7840 fi
7841
7842 # Have a temporary directory for convenience. Make it in the build tree
7843 # simply because there is no reason against having it here, and in addition,
7844 # creating and moving files from /tmp can sometimes cause problems.
7845 # Hook for its removal unless debugging.
7846 # Note that there is a small window in which the directory will not be cleaned:
7847 # after its creation but before its name has been assigned to `$tmp'.
7848 $debug ||
7849 {
7850 tmp=
7851 trap 'exit_status=$?
7852 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7853 ' 0
7854 trap '{ (exit 1); exit 1; }' 1 2 13 15
7855 }
7856 # Create a (secure) tmp directory for tmp files.
7857
7858 {
7859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7860 test -n "$tmp" && test -d "$tmp"
7861 } ||
7862 {
7863 tmp=./conf$$-$RANDOM
7864 (umask 077 && mkdir "$tmp")
7865 } ||
7866 {
7867 echo "$me: cannot create a temporary directory in ." >&2
7868 { (exit 1); exit 1; }
7869 }
7870
7871 #
7872 # Set up the sed scripts for CONFIG_FILES section.
7873 #
7874
7875 # No need to generate the scripts if there are no CONFIG_FILES.
7876 # This happens for instance when ./config.status config.h
7877 if test -n "$CONFIG_FILES"; then
7878
7879 _ACEOF
7880
7881
7882
7883 ac_delim='%!_!# '
7884 for ac_last_try in false false false false false :; do
7885 cat >conf$$subs.sed <<_ACEOF
7886 SHELL!$SHELL$ac_delim
7887 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7888 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7889 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7890 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7891 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7892 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7893 exec_prefix!$exec_prefix$ac_delim
7894 prefix!$prefix$ac_delim
7895 program_transform_name!$program_transform_name$ac_delim
7896 bindir!$bindir$ac_delim
7897 sbindir!$sbindir$ac_delim
7898 libexecdir!$libexecdir$ac_delim
7899 datarootdir!$datarootdir$ac_delim
7900 datadir!$datadir$ac_delim
7901 sysconfdir!$sysconfdir$ac_delim
7902 sharedstatedir!$sharedstatedir$ac_delim
7903 localstatedir!$localstatedir$ac_delim
7904 includedir!$includedir$ac_delim
7905 oldincludedir!$oldincludedir$ac_delim
7906 docdir!$docdir$ac_delim
7907 infodir!$infodir$ac_delim
7908 htmldir!$htmldir$ac_delim
7909 dvidir!$dvidir$ac_delim
7910 pdfdir!$pdfdir$ac_delim
7911 psdir!$psdir$ac_delim
7912 libdir!$libdir$ac_delim
7913 localedir!$localedir$ac_delim
7914 mandir!$mandir$ac_delim
7915 DEFS!$DEFS$ac_delim
7916 ECHO_C!$ECHO_C$ac_delim
7917 ECHO_N!$ECHO_N$ac_delim
7918 ECHO_T!$ECHO_T$ac_delim
7919 LIBS!$LIBS$ac_delim
7920 build_alias!$build_alias$ac_delim
7921 host_alias!$host_alias$ac_delim
7922 target_alias!$target_alias$ac_delim
7923 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7924 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7925 INSTALL_DATA!$INSTALL_DATA$ac_delim
7926 am__isrc!$am__isrc$ac_delim
7927 CYGPATH_W!$CYGPATH_W$ac_delim
7928 PACKAGE!$PACKAGE$ac_delim
7929 VERSION!$VERSION$ac_delim
7930 ACLOCAL!$ACLOCAL$ac_delim
7931 AUTOCONF!$AUTOCONF$ac_delim
7932 AUTOMAKE!$AUTOMAKE$ac_delim
7933 AUTOHEADER!$AUTOHEADER$ac_delim
7934 MAKEINFO!$MAKEINFO$ac_delim
7935 install_sh!$install_sh$ac_delim
7936 STRIP!$STRIP$ac_delim
7937 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7938 mkdir_p!$mkdir_p$ac_delim
7939 AWK!$AWK$ac_delim
7940 SET_MAKE!$SET_MAKE$ac_delim
7941 am__leading_dot!$am__leading_dot$ac_delim
7942 AMTAR!$AMTAR$ac_delim
7943 am__tar!$am__tar$ac_delim
7944 am__untar!$am__untar$ac_delim
7945 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
7946 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
7947 MAINT!$MAINT$ac_delim
7948 CC!$CC$ac_delim
7949 CFLAGS!$CFLAGS$ac_delim
7950 LDFLAGS!$LDFLAGS$ac_delim
7951 CPPFLAGS!$CPPFLAGS$ac_delim
7952 ac_ct_CC!$ac_ct_CC$ac_delim
7953 EXEEXT!$EXEEXT$ac_delim
7954 OBJEXT!$OBJEXT$ac_delim
7955 DEPDIR!$DEPDIR$ac_delim
7956 am__include!$am__include$ac_delim
7957 am__quote!$am__quote$ac_delim
7958 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7959 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7960 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7961 CCDEPMODE!$CCDEPMODE$ac_delim
7962 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7963 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7964 CPP!$CPP$ac_delim
7965 RAWCPP!$RAWCPP$ac_delim
7966 RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim
7967 SED!$SED$ac_delim
7968 build!$build$ac_delim
7969 build_cpu!$build_cpu$ac_delim
7970 build_vendor!$build_vendor$ac_delim
7971 build_os!$build_os$ac_delim
7972 host!$host$ac_delim
7973 host_cpu!$host_cpu$ac_delim
7974 host_vendor!$host_vendor$ac_delim
7975 host_os!$host_os$ac_delim
7976 GREP!$GREP$ac_delim
7977 EGREP!$EGREP$ac_delim
7978 LAUNCHD!$LAUNCHD$ac_delim
7979 launchagentsdir!$launchagentsdir$ac_delim
7980 launchdaemonsdir!$launchdaemonsdir$ac_delim
7981 LAUNCHD_TRUE!$LAUNCHD_TRUE$ac_delim
7982 LAUNCHD_FALSE!$LAUNCHD_FALSE$ac_delim
7983 _ACEOF
7984
7985 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7986 break
7987 elif $ac_last_try; then
7988 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7989 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7990 { (exit 1); exit 1; }; }
7991 else
7992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7993 fi
7994 done
7995
7996 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7997 if test -n "$ac_eof"; then
7998 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7999 ac_eof=`expr $ac_eof + 1`
8000 fi
8001
8002 cat >>$CONFIG_STATUS <<_ACEOF
8003 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8005 _ACEOF
8006 sed '
8007 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8008 s/^/s,@/; s/!/@,|#_!!_#|/
8009 :n
8010 t n
8011 s/'"$ac_delim"'$/,g/; t
8012 s/$/\\/; p
8013 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8014 ' >>$CONFIG_STATUS <conf$$subs.sed
8015 rm -f conf$$subs.sed
8016 cat >>$CONFIG_STATUS <<_ACEOF
8017 CEOF$ac_eof
8018 _ACEOF
8019
8020
8021 ac_delim='%!_!# '
8022 for ac_last_try in false false false false false :; do
8023 cat >conf$$subs.sed <<_ACEOF
8024 PKG_CONFIG!$PKG_CONFIG$ac_delim
8025 XINIT_CFLAGS!$XINIT_CFLAGS$ac_delim
8026 XINIT_LIBS!$XINIT_LIBS$ac_delim
8027 MCOOKIE!$MCOOKIE$ac_delim
8028 STARTX_COOKIE_FLAGS!$STARTX_COOKIE_FLAGS$ac_delim
8029 SHELL_CMD!$SHELL_CMD$ac_delim
8030 ARCHMANDEFS!$ARCHMANDEFS$ac_delim
8031 XRDB!$XRDB$ac_delim
8032 XMODMAP!$XMODMAP$ac_delim
8033 TWM!$TWM$ac_delim
8034 XCLOCK!$XCLOCK$ac_delim
8035 XTERM!$XTERM$ac_delim
8036 XSERVER!$XSERVER$ac_delim
8037 XAUTH!$XAUTH$ac_delim
8038 XINIT!$XINIT$ac_delim
8039 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
8040 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
8041 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
8042 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
8043 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
8044 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
8045 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
8046 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
8047 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
8048 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
8049 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
8050 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
8051 LIBOBJS!$LIBOBJS$ac_delim
8052 LTLIBOBJS!$LTLIBOBJS$ac_delim
8053 _ACEOF
8054
8055 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
8056 break
8057 elif $ac_last_try; then
8058 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8059 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8060 { (exit 1); exit 1; }; }
8061 else
8062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8063 fi
8064 done
8065
8066 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8067 if test -n "$ac_eof"; then
8068 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8069 ac_eof=`expr $ac_eof + 1`
8070 fi
8071
8072 cat >>$CONFIG_STATUS <<_ACEOF
8073 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8075 _ACEOF
8076 sed '
8077 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8078 s/^/s,@/; s/!/@,|#_!!_#|/
8079 :n
8080 t n
8081 s/'"$ac_delim"'$/,g/; t
8082 s/$/\\/; p
8083 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8084 ' >>$CONFIG_STATUS <conf$$subs.sed
8085 rm -f conf$$subs.sed
8086 cat >>$CONFIG_STATUS <<_ACEOF
8087 :end
8088 s/|#_!!_#|//g
8089 CEOF$ac_eof
8090 _ACEOF
8091
8092
8093 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8094 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8095 # trailing colons and then remove the whole line if VPATH becomes empty
8096 # (actually we leave an empty line to preserve line numbers).
8097 if test "x$srcdir" = x.; then
8098 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8099 s/:*\$(srcdir):*/:/
8100 s/:*\${srcdir}:*/:/
8101 s/:*@srcdir@:*/:/
8102 s/^\([^=]*=[ ]*\):*/\1/
8103 s/:*$//
8104 s/^[^=]*=[ ]*$//
8105 }'
8106 fi
8107
8108 cat >>$CONFIG_STATUS <<\_ACEOF
8109 fi # test -n "$CONFIG_FILES"
8110
8111
8112 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8113 do
8114 case $ac_tag in
8115 :[FHLC]) ac_mode=$ac_tag; continue;;
8116 esac
8117 case $ac_mode$ac_tag in
8118 :[FHL]*:*);;
8119 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8120 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8121 { (exit 1); exit 1; }; };;
8122 :[FH]-) ac_tag=-:-;;
8123 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8124 esac
8125 ac_save_IFS=$IFS
8126 IFS=:
8127 set x $ac_tag
8128 IFS=$ac_save_IFS
8129 shift
8130 ac_file=$1
8131 shift
8132
8133 case $ac_mode in
8134 :L) ac_source=$1;;
8135 :[FH])
8136 ac_file_inputs=
8137 for ac_f
8138 do
8139 case $ac_f in
8140 -) ac_f="$tmp/stdin";;
8141 *) # Look for the file first in the build tree, then in the source tree
8142 # (if the path is not absolute). The absolute path cannot be DOS-style,
8143 # because $ac_f cannot contain `:'.
8144 test -f "$ac_f" ||
8145 case $ac_f in
8146 [\\/$]*) false;;
8147 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8148 esac ||
8149 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8150 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8151 { (exit 1); exit 1; }; };;
8152 esac
8153 ac_file_inputs="$ac_file_inputs $ac_f"
8154 done
8155
8156 # Let's still pretend it is `configure' which instantiates (i.e., don't
8157 # use $as_me), people would be surprised to read:
8158 # /* config.h. Generated by config.status. */
8159 configure_input="Generated from "`IFS=:
8160 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8161 if test x"$ac_file" != x-; then
8162 configure_input="$ac_file. $configure_input"
8163 { echo "$as_me:$LINENO: creating $ac_file" >&5
8164 echo "$as_me: creating $ac_file" >&6;}
8165 fi
8166
8167 case $ac_tag in
8168 *:-:* | *:-) cat >"$tmp/stdin";;
8169 esac
8170 ;;
8171 esac
8172
8173 ac_dir=`$as_dirname -- "$ac_file" ||
8174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8175 X"$ac_file" : 'X\(//\)[^/]' \| \
8176 X"$ac_file" : 'X\(//\)$' \| \
8177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8178 echo X"$ac_file" |
8179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8180 s//\1/
8181 q
8182 }
8183 /^X\(\/\/\)[^/].*/{
8184 s//\1/
8185 q
8186 }
8187 /^X\(\/\/\)$/{
8188 s//\1/
8189 q
8190 }
8191 /^X\(\/\).*/{
8192 s//\1/
8193 q
8194 }
8195 s/.*/./; q'`
8196 { as_dir="$ac_dir"
8197 case $as_dir in #(
8198 -*) as_dir=./$as_dir;;
8199 esac
8200 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8201 as_dirs=
8202 while :; do
8203 case $as_dir in #(
8204 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8205 *) as_qdir=$as_dir;;
8206 esac
8207 as_dirs="'$as_qdir' $as_dirs"
8208 as_dir=`$as_dirname -- "$as_dir" ||
8209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8210 X"$as_dir" : 'X\(//\)[^/]' \| \
8211 X"$as_dir" : 'X\(//\)$' \| \
8212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8213 echo X"$as_dir" |
8214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8215 s//\1/
8216 q
8217 }
8218 /^X\(\/\/\)[^/].*/{
8219 s//\1/
8220 q
8221 }
8222 /^X\(\/\/\)$/{
8223 s//\1/
8224 q
8225 }
8226 /^X\(\/\).*/{
8227 s//\1/
8228 q
8229 }
8230 s/.*/./; q'`
8231 test -d "$as_dir" && break
8232 done
8233 test -z "$as_dirs" || eval "mkdir $as_dirs"
8234 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8235 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8236 { (exit 1); exit 1; }; }; }
8237 ac_builddir=.
8238
8239 case "$ac_dir" in
8240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8241 *)
8242 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8243 # A ".." for each directory in $ac_dir_suffix.
8244 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8245 case $ac_top_builddir_sub in
8246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8248 esac ;;
8249 esac
8250 ac_abs_top_builddir=$ac_pwd
8251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8252 # for backward compatibility:
8253 ac_top_builddir=$ac_top_build_prefix
8254
8255 case $srcdir in
8256 .) # We are building in place.
8257 ac_srcdir=.
8258 ac_top_srcdir=$ac_top_builddir_sub
8259 ac_abs_top_srcdir=$ac_pwd ;;
8260 [\\/]* | ?:[\\/]* ) # Absolute name.
8261 ac_srcdir=$srcdir$ac_dir_suffix;
8262 ac_top_srcdir=$srcdir
8263 ac_abs_top_srcdir=$srcdir ;;
8264 *) # Relative name.
8265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8266 ac_top_srcdir=$ac_top_build_prefix$srcdir
8267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8268 esac
8269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8270
8271
8272 case $ac_mode in
8273 :F)
8274 #
8275 # CONFIG_FILE
8276 #
8277
8278 case $INSTALL in
8279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8280 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8281 esac
8282 ac_MKDIR_P=$MKDIR_P
8283 case $MKDIR_P in
8284 [\\/$]* | ?:[\\/]* ) ;;
8285 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8286 esac
8287 _ACEOF
8288
8289 cat >>$CONFIG_STATUS <<\_ACEOF
8290 # If the template does not know about datarootdir, expand it.
8291 # FIXME: This hack should be removed a few years after 2.60.
8292 ac_datarootdir_hack=; ac_datarootdir_seen=
8293
8294 case `sed -n '/datarootdir/ {
8295 p
8296 q
8297 }
8298 /@datadir@/p
8299 /@docdir@/p
8300 /@infodir@/p
8301 /@localedir@/p
8302 /@mandir@/p
8303 ' $ac_file_inputs` in
8304 *datarootdir*) ac_datarootdir_seen=yes;;
8305 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8306 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8307 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8308 _ACEOF
8309 cat >>$CONFIG_STATUS <<_ACEOF
8310 ac_datarootdir_hack='
8311 s&@datadir@&$datadir&g
8312 s&@docdir@&$docdir&g
8313 s&@infodir@&$infodir&g
8314 s&@localedir@&$localedir&g
8315 s&@mandir@&$mandir&g
8316 s&\\\${datarootdir}&$datarootdir&g' ;;
8317 esac
8318 _ACEOF
8319
8320 # Neutralize VPATH when `$srcdir' = `.'.
8321 # Shell code in configure.ac might set extrasub.
8322 # FIXME: do we really want to maintain this feature?
8323 cat >>$CONFIG_STATUS <<_ACEOF
8324 sed "$ac_vpsub
8325 $extrasub
8326 _ACEOF
8327 cat >>$CONFIG_STATUS <<\_ACEOF
8328 :t
8329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8330 s&@configure_input@&$configure_input&;t t
8331 s&@top_builddir@&$ac_top_builddir_sub&;t t
8332 s&@srcdir@&$ac_srcdir&;t t
8333 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8334 s&@top_srcdir@&$ac_top_srcdir&;t t
8335 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8336 s&@builddir@&$ac_builddir&;t t
8337 s&@abs_builddir@&$ac_abs_builddir&;t t
8338 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8339 s&@INSTALL@&$ac_INSTALL&;t t
8340 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8341 $ac_datarootdir_hack
8342 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8343
8344 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8345 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8346 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8347 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8348 which seems to be undefined. Please make sure it is defined." >&5
8349 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8350 which seems to be undefined. Please make sure it is defined." >&2;}
8351
8352 rm -f "$tmp/stdin"
8353 case $ac_file in
8354 -) cat "$tmp/out"; rm -f "$tmp/out";;
8355 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8356 esac
8357 ;;
8358 :H)
8359 #
8360 # CONFIG_HEADER
8361 #
8362 _ACEOF
8363
8364 # Transform confdefs.h into a sed script `conftest.defines', that
8365 # substitutes the proper values into config.h.in to produce config.h.
8366 rm -f conftest.defines conftest.tail
8367 # First, append a space to every undef/define line, to ease matching.
8368 echo 's/$/ /' >conftest.defines
8369 # Then, protect against being on the right side of a sed subst, or in
8370 # an unquoted here document, in config.status. If some macros were
8371 # called several times there might be several #defines for the same
8372 # symbol, which is useless. But do not sort them, since the last
8373 # AC_DEFINE must be honored.
8374 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8375 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8376 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8377 # PARAMS is the parameter list in the macro definition--in most cases, it's
8378 # just an empty string.
8379 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8380 ac_dB='\\)[ (].*,\\1define\\2'
8381 ac_dC=' '
8382 ac_dD=' ,'
8383
8384 uniq confdefs.h |
8385 sed -n '
8386 t rset
8387 :rset
8388 s/^[ ]*#[ ]*define[ ][ ]*//
8389 t ok
8390 d
8391 :ok
8392 s/[\\&,]/\\&/g
8393 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8394 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8395 ' >>conftest.defines
8396
8397 # Remove the space that was appended to ease matching.
8398 # Then replace #undef with comments. This is necessary, for
8399 # example, in the case of _POSIX_SOURCE, which is predefined and required
8400 # on some systems where configure will not decide to define it.
8401 # (The regexp can be short, since the line contains either #define or #undef.)
8402 echo 's/ $//
8403 s,^[ #]*u.*,/* & */,' >>conftest.defines
8404
8405 # Break up conftest.defines:
8406 ac_max_sed_lines=50
8407
8408 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8409 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8410 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8411 # et cetera.
8412 ac_in='$ac_file_inputs'
8413 ac_out='"$tmp/out1"'
8414 ac_nxt='"$tmp/out2"'
8415
8416 while :
8417 do
8418 # Write a here document:
8419 cat >>$CONFIG_STATUS <<_ACEOF
8420 # First, check the format of the line:
8421 cat >"\$tmp/defines.sed" <<\\CEOF
8422 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8423 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8424 b
8425 :def
8426 _ACEOF
8427 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8428 echo 'CEOF
8429 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8430 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8431 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8432 grep . conftest.tail >/dev/null || break
8433 rm -f conftest.defines
8434 mv conftest.tail conftest.defines
8435 done
8436 rm -f conftest.defines conftest.tail
8437
8438 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8439 cat >>$CONFIG_STATUS <<\_ACEOF
8440 if test x"$ac_file" != x-; then
8441 echo "/* $configure_input */" >"$tmp/config.h"
8442 cat "$ac_result" >>"$tmp/config.h"
8443 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8444 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8445 echo "$as_me: $ac_file is unchanged" >&6;}
8446 else
8447 rm -f $ac_file
8448 mv "$tmp/config.h" $ac_file
8449 fi
8450 else
8451 echo "/* $configure_input */"
8452 cat "$ac_result"
8453 fi
8454 rm -f "$tmp/out12"
8455 # Compute $ac_file's index in $config_headers.
8456 _am_arg=$ac_file
8457 _am_stamp_count=1
8458 for _am_header in $config_headers :; do
8459 case $_am_header in
8460 $_am_arg | $_am_arg:* )
8461 break ;;
8462 * )
8463 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8464 esac
8465 done
8466 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8467 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8468 X"$_am_arg" : 'X\(//\)[^/]' \| \
8469 X"$_am_arg" : 'X\(//\)$' \| \
8470 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8471 echo X"$_am_arg" |
8472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8473 s//\1/
8474 q
8475 }
8476 /^X\(\/\/\)[^/].*/{
8477 s//\1/
8478 q
8479 }
8480 /^X\(\/\/\)$/{
8481 s//\1/
8482 q
8483 }
8484 /^X\(\/\).*/{
8485 s//\1/
8486 q
8487 }
8488 s/.*/./; q'`/stamp-h$_am_stamp_count
8489 ;;
8490
8491 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8492 echo "$as_me: executing $ac_file commands" >&6;}
8493 ;;
8494 esac
8495
8496
8497 case $ac_file$ac_mode in
8498 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8499 # Strip MF so we end up with the name of the file.
8500 mf=`echo "$mf" | sed -e 's/:.*$//'`
8501 # Check whether this is an Automake generated Makefile or not.
8502 # We used to match only the files named `Makefile.in', but
8503 # some people rename them; so instead we look at the file content.
8504 # Grep'ing the first line is not enough: some people post-process
8505 # each Makefile.in and add a new line on top of each file to say so.
8506 # Grep'ing the whole file is not good either: AIX grep has a line
8507 # limit of 2048, but all sed's we know have understand at least 4000.
8508 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8509 dirpart=`$as_dirname -- "$mf" ||
8510 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8511 X"$mf" : 'X\(//\)[^/]' \| \
8512 X"$mf" : 'X\(//\)$' \| \
8513 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8514 echo X"$mf" |
8515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8516 s//\1/
8517 q
8518 }
8519 /^X\(\/\/\)[^/].*/{
8520 s//\1/
8521 q
8522 }
8523 /^X\(\/\/\)$/{
8524 s//\1/
8525 q
8526 }
8527 /^X\(\/\).*/{
8528 s//\1/
8529 q
8530 }
8531 s/.*/./; q'`
8532 else
8533 continue
8534 fi
8535 # Extract the definition of DEPDIR, am__include, and am__quote
8536 # from the Makefile without running `make'.
8537 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8538 test -z "$DEPDIR" && continue
8539 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8540 test -z "am__include" && continue
8541 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8542 # When using ansi2knr, U may be empty or an underscore; expand it
8543 U=`sed -n 's/^U = //p' < "$mf"`
8544 # Find all dependency output files, they are included files with
8545 # $(DEPDIR) in their names. We invoke sed twice because it is the
8546 # simplest approach to changing $(DEPDIR) to its actual value in the
8547 # expansion.
8548 for file in `sed -n "
8549 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8550 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8551 # Make sure the directory exists.
8552 test -f "$dirpart/$file" && continue
8553 fdir=`$as_dirname -- "$file" ||
8554 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8555 X"$file" : 'X\(//\)[^/]' \| \
8556 X"$file" : 'X\(//\)$' \| \
8557 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8558 echo X"$file" |
8559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8560 s//\1/
8561 q
8562 }
8563 /^X\(\/\/\)[^/].*/{
8564 s//\1/
8565 q
8566 }
8567 /^X\(\/\/\)$/{
8568 s//\1/
8569 q
8570 }
8571 /^X\(\/\).*/{
8572 s//\1/
8573 q
8574 }
8575 s/.*/./; q'`
8576 { as_dir=$dirpart/$fdir
8577 case $as_dir in #(
8578 -*) as_dir=./$as_dir;;
8579 esac
8580 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8581 as_dirs=
8582 while :; do
8583 case $as_dir in #(
8584 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8585 *) as_qdir=$as_dir;;
8586 esac
8587 as_dirs="'$as_qdir' $as_dirs"
8588 as_dir=`$as_dirname -- "$as_dir" ||
8589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8590 X"$as_dir" : 'X\(//\)[^/]' \| \
8591 X"$as_dir" : 'X\(//\)$' \| \
8592 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8593 echo X"$as_dir" |
8594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8595 s//\1/
8596 q
8597 }
8598 /^X\(\/\/\)[^/].*/{
8599 s//\1/
8600 q
8601 }
8602 /^X\(\/\/\)$/{
8603 s//\1/
8604 q
8605 }
8606 /^X\(\/\).*/{
8607 s//\1/
8608 q
8609 }
8610 s/.*/./; q'`
8611 test -d "$as_dir" && break
8612 done
8613 test -z "$as_dirs" || eval "mkdir $as_dirs"
8614 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8615 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8616 { (exit 1); exit 1; }; }; }
8617 # echo "creating $dirpart/$file"
8618 echo '# dummy' > "$dirpart/$file"
8619 done
8620 done
8621 ;;
8622
8623 esac
8624 done # for ac_tag
8625
8626
8627 { (exit 0); exit 0; }
8628 _ACEOF
8629 chmod +x $CONFIG_STATUS
8630 ac_clean_files=$ac_clean_files_save
8631
8632
8633 # configure is writing to config.log, and then calls config.status.
8634 # config.status does its own redirection, appending to config.log.
8635 # Unfortunately, on DOS this fails, as config.log is still kept open
8636 # by configure, so config.status won't be able to write to it; its
8637 # output is simply discarded. So we exec the FD to /dev/null,
8638 # effectively closing config.log, so it can be properly (re)opened and
8639 # appended to by config.status. When coming back to configure, we
8640 # need to make the FD available again.
8641 if test "$no_create" != yes; then
8642 ac_cs_success=:
8643 ac_config_status_args=
8644 test "$silent" = yes &&
8645 ac_config_status_args="$ac_config_status_args --quiet"
8646 exec 5>/dev/null
8647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8648 exec 5>>config.log
8649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8650 # would make configure fail if this is the last instruction.
8651 $ac_cs_success || { (exit 1); exit 1; }
8652 fi
8653
8654