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