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