Debian Codegraph @

configure

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