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