wmmon: Official release of wmmon 1.0b2
[dockapps.git] / wmstickynotes-0.1 / configure
blob24df5c3e4e2615d4e1c7ba7945d45cd98a6ebe8b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for wmstickynotes 0.1.
5 # Report bugs to <Heath Caldwell <hncaldwell@gmail.com>>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 # Initializations.
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='wmstickynotes'
598 PACKAGE_TARNAME='wmstickynotes'
599 PACKAGE_VERSION='0.1'
600 PACKAGE_STRING='wmstickynotes 0.1'
601 PACKAGE_BUGREPORT='Heath Caldwell <hncaldwell@gmail.com>'
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
639 ac_subst_vars='LTLIBOBJS
640 LIBOBJS
641 GTK_LIBS
642 GTK_CFLAGS
643 PKG_CONFIG
644 EGREP
645 GREP
646 X_EXTRA_LIBS
647 X_LIBS
648 X_PRE_LIBS
649 X_CFLAGS
651 XMKMF
652 LN_S
653 am__fastdepCC_FALSE
654 am__fastdepCC_TRUE
655 CCDEPMODE
656 AMDEPBACKSLASH
657 AMDEP_FALSE
658 AMDEP_TRUE
659 am__quote
660 am__include
661 DEPDIR
662 OBJEXT
663 EXEEXT
664 ac_ct_CC
665 CPPFLAGS
666 LDFLAGS
667 CFLAGS
669 am__untar
670 am__tar
671 AMTAR
672 am__leading_dot
673 SET_MAKE
675 mkdir_p
676 MKDIR_P
677 INSTALL_STRIP_PROGRAM
678 STRIP
679 install_sh
680 MAKEINFO
681 AUTOHEADER
682 AUTOMAKE
683 AUTOCONF
684 ACLOCAL
685 VERSION
686 PACKAGE
687 CYGPATH_W
688 am__isrc
689 INSTALL_DATA
690 INSTALL_SCRIPT
691 INSTALL_PROGRAM
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_dependency_tracking
733 with_x
734 enable_gtktest
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 XMKMF
746 PKG_CONFIG
747 GTK_CFLAGS
748 GTK_LIBS'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
799 ac_prev=
800 ac_dashdash=
801 for ac_option
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
810 case $ac_option in
811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *) ac_optarg=yes ;;
813 esac
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
819 ac_dashdash=yes ;;
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
838 --config-cache | -C)
839 cache_file=config.cache ;;
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
858 { (exit 1); exit 1; }; }
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
863 "enable_$ac_useropt"
864 "*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=no ;;
870 -docdir | --docdir | --docdi | --doc | --do)
871 ac_prev=docdir ;;
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 docdir=$ac_optarg ;;
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876 ac_prev=dvidir ;;
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 dvidir=$ac_optarg ;;
880 -enable-* | --enable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
885 { (exit 1); exit 1; }; }
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=\$ac_optarg ;;
1102 -without-* | --without-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=no ;;
1119 --x)
1120 # Obsolete; use --with-x.
1121 with_x=yes ;;
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159 esac
1160 done
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1170 no) ;;
1171 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1172 { (exit 1); exit 1; }; } ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 esac
1177 # Check all directory arguments for consistency.
1178 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1183 eval ac_val=\$$ac_var
1184 # Remove trailing slashes.
1185 case $ac_val in
1186 */ )
1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\$ac_val;;
1189 esac
1190 # Be sure to have absolute directory names.
1191 case $ac_val in
1192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 esac
1195 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1196 { (exit 1); exit 1; }; }
1197 done
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used." >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1227 { (exit 1); exit 1; }; }
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1230 { (exit 1); exit 1; }; }
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1251 /^X\(\/\/\)$/{
1252 s//\1/
1255 /^X\(\/\).*/{
1256 s//\1/
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1264 else
1265 ac_srcdir_defaulted=no
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1270 { (exit 1); exit 1; }; }
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 ac_abs_confdir=`(
1274 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1275 { (exit 1); exit 1; }; }
1276 pwd)`
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 srcdir=.
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1284 case $srcdir in
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 esac
1287 for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 done
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1300 cat <<_ACEOF
1301 \`configure' configures wmstickynotes 0.1 to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1310 Configuration:
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 [PREFIX]
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/wmstickynotes]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1354 _ACEOF
1356 cat <<\_ACEOF
1358 Program names:
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363 X features:
1364 --x-includes=DIR X include files are in DIR
1365 --x-libraries=DIR X library files are in DIR
1366 _ACEOF
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of wmstickynotes 0.1:";;
1372 esac
1373 cat <<\_ACEOF
1375 Optional Features:
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --disable-dependency-tracking speeds up one-time build
1380 --enable-dependency-tracking do not reject slow dependency extractors
1381 --disable-gtktest do not try to compile and run a test GTK+ program
1383 Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-x use the X Window System
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 XMKMF Path to xmkmf, Makefile generator for X Window System
1397 CPP C preprocessor
1398 PKG_CONFIG path to pkg-config utility
1399 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1400 GTK_LIBS linker flags for GTK, overriding pkg-config
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 Report bugs to <Heath Caldwell <hncaldwell@gmail.com>>.
1406 _ACEOF
1407 ac_status=$?
1410 if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
1412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415 continue
1416 ac_builddir=.
1418 case "$ac_dir" in
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 esac ;;
1428 esac
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1434 case $srcdir in
1435 .) # We are building in place.
1436 ac_srcdir=.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1443 *) # Relative name.
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 esac
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1458 else
1459 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 fi || ac_status=$?
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1462 done
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1467 cat <<\_ACEOF
1468 wmstickynotes configure 0.1
1469 generated by GNU Autoconf 2.63
1471 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1472 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1475 _ACEOF
1476 exit
1478 cat >config.log <<_ACEOF
1479 This file contains any messages produced by compilers while
1480 running configure, to aid debugging if configure makes a mistake.
1482 It was created by wmstickynotes $as_me 0.1, which was
1483 generated by GNU Autoconf 2.63. Invocation command line was
1485 $ $0 $@
1487 _ACEOF
1488 exec 5>>config.log
1490 cat <<_ASUNAME
1491 ## --------- ##
1492 ## Platform. ##
1493 ## --------- ##
1495 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1496 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1497 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1498 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1499 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1502 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1504 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1505 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1507 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1508 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1510 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1512 _ASUNAME
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 $as_echo "PATH: $as_dir"
1520 done
1521 IFS=$as_save_IFS
1523 } >&5
1525 cat >&5 <<_ACEOF
1528 ## ----------- ##
1529 ## Core tests. ##
1530 ## ----------- ##
1532 _ACEOF
1535 # Keep a trace of the command line.
1536 # Strip out --no-create and --no-recursion so they do not pile up.
1537 # Strip out --silent because we don't want to record it for future runs.
1538 # Also quote any args containing shell meta-characters.
1539 # Make two passes to allow for proper duplicate-argument suppression.
1540 ac_configure_args=
1541 ac_configure_args0=
1542 ac_configure_args1=
1543 ac_must_keep_next=false
1544 for ac_pass in 1 2
1546 for ac_arg
1548 case $ac_arg in
1549 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1551 | -silent | --silent | --silen | --sile | --sil)
1552 continue ;;
1553 *\'*)
1554 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1555 esac
1556 case $ac_pass in
1557 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1560 if test $ac_must_keep_next = true; then
1561 ac_must_keep_next=false # Got value, back to normal.
1562 else
1563 case $ac_arg in
1564 *=* | --config-cache | -C | -disable-* | --disable-* \
1565 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1566 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1567 | -with-* | --with-* | -without-* | --without-* | --x)
1568 case "$ac_configure_args0 " in
1569 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1570 esac
1572 -* ) ac_must_keep_next=true ;;
1573 esac
1575 ac_configure_args="$ac_configure_args '$ac_arg'"
1577 esac
1578 done
1579 done
1580 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1581 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583 # When interrupted or exit'd, cleanup temporary files, and complete
1584 # config.log. We remove comments because anyway the quotes in there
1585 # would cause problems or look ugly.
1586 # WARNING: Use '\'' to represent an apostrophe within the trap.
1587 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1588 trap 'exit_status=$?
1589 # Save into config.log some information that might help in debugging.
1591 echo
1593 cat <<\_ASBOX
1594 ## ---------------- ##
1595 ## Cache variables. ##
1596 ## ---------------- ##
1597 _ASBOX
1598 echo
1599 # The following way of writing the cache mishandles newlines in values,
1601 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in #(
1604 *${as_nl}*)
1605 case $ac_var in #(
1606 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1608 esac
1609 case $ac_var in #(
1610 _ | IFS | as_nl) ;; #(
1611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1612 *) $as_unset $ac_var ;;
1613 esac ;;
1614 esac
1615 done
1616 (set) 2>&1 |
1617 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1618 *${as_nl}ac_space=\ *)
1619 sed -n \
1620 "s/'\''/'\''\\\\'\'''\''/g;
1621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1622 ;; #(
1624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1626 esac |
1627 sort
1629 echo
1631 cat <<\_ASBOX
1632 ## ----------------- ##
1633 ## Output variables. ##
1634 ## ----------------- ##
1635 _ASBOX
1636 echo
1637 for ac_var in $ac_subst_vars
1639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 $as_echo "$ac_var='\''$ac_val'\''"
1644 done | sort
1645 echo
1647 if test -n "$ac_subst_files"; then
1648 cat <<\_ASBOX
1649 ## ------------------- ##
1650 ## File substitutions. ##
1651 ## ------------------- ##
1652 _ASBOX
1653 echo
1654 for ac_var in $ac_subst_files
1656 eval ac_val=\$$ac_var
1657 case $ac_val in
1658 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 esac
1660 $as_echo "$ac_var='\''$ac_val'\''"
1661 done | sort
1662 echo
1665 if test -s confdefs.h; then
1666 cat <<\_ASBOX
1667 ## ----------- ##
1668 ## confdefs.h. ##
1669 ## ----------- ##
1670 _ASBOX
1671 echo
1672 cat confdefs.h
1673 echo
1675 test "$ac_signal" != 0 &&
1676 $as_echo "$as_me: caught signal $ac_signal"
1677 $as_echo "$as_me: exit $exit_status"
1678 } >&5
1679 rm -f core *.core core.conftest.* &&
1680 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1681 exit $exit_status
1683 for ac_signal in 1 2 13 15; do
1684 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1685 done
1686 ac_signal=0
1688 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1689 rm -f -r conftest* confdefs.h
1691 # Predefined preprocessor variables.
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_NAME "$PACKAGE_NAME"
1695 _ACEOF
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1700 _ACEOF
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1705 _ACEOF
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_STRING "$PACKAGE_STRING"
1710 _ACEOF
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1715 _ACEOF
1718 # Let the site file select an alternate cache file if it wants to.
1719 # Prefer an explicitly selected file to automatically selected ones.
1720 ac_site_file1=NONE
1721 ac_site_file2=NONE
1722 if test -n "$CONFIG_SITE"; then
1723 ac_site_file1=$CONFIG_SITE
1724 elif test "x$prefix" != xNONE; then
1725 ac_site_file1=$prefix/share/config.site
1726 ac_site_file2=$prefix/etc/config.site
1727 else
1728 ac_site_file1=$ac_default_prefix/share/config.site
1729 ac_site_file2=$ac_default_prefix/etc/config.site
1731 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1733 test "x$ac_site_file" = xNONE && continue
1734 if test -r "$ac_site_file"; then
1735 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1736 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1737 sed 's/^/| /' "$ac_site_file" >&5
1738 . "$ac_site_file"
1740 done
1742 if test -r "$cache_file"; then
1743 # Some versions of bash will fail to source /dev/null (special
1744 # files actually), so we avoid doing that.
1745 if test -f "$cache_file"; then
1746 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1747 $as_echo "$as_me: loading cache $cache_file" >&6;}
1748 case $cache_file in
1749 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1750 *) . "./$cache_file";;
1751 esac
1753 else
1754 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1755 $as_echo "$as_me: creating cache $cache_file" >&6;}
1756 >$cache_file
1759 # Check that the precious variables saved in the cache have kept the same
1760 # value.
1761 ac_cache_corrupted=false
1762 for ac_var in $ac_precious_vars; do
1763 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1764 eval ac_new_set=\$ac_env_${ac_var}_set
1765 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1766 eval ac_new_val=\$ac_env_${ac_var}_value
1767 case $ac_old_set,$ac_new_set in
1768 set,)
1769 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1770 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,set)
1773 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1774 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,);;
1778 if test "x$ac_old_val" != "x$ac_new_val"; then
1779 # differences in whitespace do not lead to failure.
1780 ac_old_val_w=`echo x $ac_old_val`
1781 ac_new_val_w=`echo x $ac_new_val`
1782 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1783 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 ac_cache_corrupted=:
1786 else
1787 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1788 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1789 eval $ac_var=\$ac_old_val
1791 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1792 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1793 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1794 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1795 fi;;
1796 esac
1797 # Pass precious variables to config.status.
1798 if test "$ac_new_set" = set; then
1799 case $ac_new_val in
1800 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1801 *) ac_arg=$ac_var=$ac_new_val ;;
1802 esac
1803 case " $ac_configure_args " in
1804 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1805 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1806 esac
1808 done
1809 if $ac_cache_corrupted; then
1810 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1812 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1813 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1814 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1815 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1816 { (exit 1); exit 1; }; }
1843 ac_ext=c
1844 ac_cpp='$CPP $CPPFLAGS'
1845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 am__api_version='1.10'
1852 ac_aux_dir=
1853 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1854 if test -f "$ac_dir/install-sh"; then
1855 ac_aux_dir=$ac_dir
1856 ac_install_sh="$ac_aux_dir/install-sh -c"
1857 break
1858 elif test -f "$ac_dir/install.sh"; then
1859 ac_aux_dir=$ac_dir
1860 ac_install_sh="$ac_aux_dir/install.sh -c"
1861 break
1862 elif test -f "$ac_dir/shtool"; then
1863 ac_aux_dir=$ac_dir
1864 ac_install_sh="$ac_aux_dir/shtool install -c"
1865 break
1867 done
1868 if test -z "$ac_aux_dir"; then
1869 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1870 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1871 { (exit 1); exit 1; }; }
1874 # These three variables are undocumented and unsupported,
1875 # and are intended to be withdrawn in a future Autoconf release.
1876 # They can cause serious problems if a builder's source tree is in a directory
1877 # whose full name contains unusual characters.
1878 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1879 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1880 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1883 # Find a good install program. We prefer a C program (faster),
1884 # so one script is as good as another. But avoid the broken or
1885 # incompatible versions:
1886 # SysV /etc/install, /usr/sbin/install
1887 # SunOS /usr/etc/install
1888 # IRIX /sbin/install
1889 # AIX /bin/install
1890 # AmigaOS /C/install, which installs bootblocks on floppy discs
1891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1894 # OS/2's system install, which has a completely different semantic
1895 # ./install, which can be erroneously created by make from ./install.sh.
1896 # Reject install programs that cannot install multiple files.
1897 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1898 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1899 if test -z "$INSTALL"; then
1900 if test "${ac_cv_path_install+set}" = set; then
1901 $as_echo_n "(cached) " >&6
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 # Account for people who put trailing slashes in PATH elements.
1909 case $as_dir/ in
1910 ./ | .// | /cC/* | \
1911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1913 /usr/ucb/* ) ;;
1915 # OSF1 and SCO ODT 3.0 have their own names for install.
1916 # Don't use installbsd from OSF since it installs stuff as root
1917 # by default.
1918 for ac_prog in ginstall scoinst install; do
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1921 if test $ac_prog = install &&
1922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1923 # AIX install. It has an incompatible calling convention.
1925 elif test $ac_prog = install &&
1926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1927 # program-specific install script used by HP pwplus--don't use.
1929 else
1930 rm -rf conftest.one conftest.two conftest.dir
1931 echo one > conftest.one
1932 echo two > conftest.two
1933 mkdir conftest.dir
1934 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1935 test -s conftest.one && test -s conftest.two &&
1936 test -s conftest.dir/conftest.one &&
1937 test -s conftest.dir/conftest.two
1938 then
1939 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1940 break 3
1944 done
1945 done
1947 esac
1949 done
1950 IFS=$as_save_IFS
1952 rm -rf conftest.one conftest.two conftest.dir
1955 if test "${ac_cv_path_install+set}" = set; then
1956 INSTALL=$ac_cv_path_install
1957 else
1958 # As a last resort, use the slow shell script. Don't cache a
1959 # value for INSTALL within a source directory, because that will
1960 # break other packages using the cache if that directory is
1961 # removed, or if the value is a relative name.
1962 INSTALL=$ac_install_sh
1965 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1966 $as_echo "$INSTALL" >&6; }
1968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1969 # It thinks the first close brace ends the variable substitution.
1970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1974 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1976 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1977 $as_echo_n "checking whether build environment is sane... " >&6; }
1978 # Just in case
1979 sleep 1
1980 echo timestamp > conftest.file
1981 # Do `set' in a subshell so we don't clobber the current shell's
1982 # arguments. Must try -L first in case configure is actually a
1983 # symlink; some systems play weird games with the mod time of symlinks
1984 # (eg FreeBSD returns the mod time of the symlink's containing
1985 # directory).
1986 if (
1987 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1988 if test "$*" = "X"; then
1989 # -L didn't work.
1990 set X `ls -t $srcdir/configure conftest.file`
1992 rm -f conftest.file
1993 if test "$*" != "X $srcdir/configure conftest.file" \
1994 && test "$*" != "X conftest.file $srcdir/configure"; then
1996 # If neither matched, then we have a broken ls. This can happen
1997 # if, for instance, CONFIG_SHELL is bash and it inherits a
1998 # broken ls alias from the environment. This has actually
1999 # happened. Such a system could not be considered "sane".
2000 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2001 alias in your environment" >&5
2002 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2003 alias in your environment" >&2;}
2004 { (exit 1); exit 1; }; }
2007 test "$2" = conftest.file
2009 then
2010 # Ok.
2012 else
2013 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2014 Check your system clock" >&5
2015 $as_echo "$as_me: error: newly created file is older than distributed files!
2016 Check your system clock" >&2;}
2017 { (exit 1); exit 1; }; }
2019 { $as_echo "$as_me:$LINENO: result: yes" >&5
2020 $as_echo "yes" >&6; }
2021 test "$program_prefix" != NONE &&
2022 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2023 # Use a double $ so make ignores it.
2024 test "$program_suffix" != NONE &&
2025 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2026 # Double any \ or $.
2027 # By default was `s,x,x', remove it if useless.
2028 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2029 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2031 # expand $ac_aux_dir to an absolute path
2032 am_aux_dir=`cd $ac_aux_dir && pwd`
2034 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2035 # Use eval to expand $SHELL
2036 if eval "$MISSING --run true"; then
2037 am_missing_run="$MISSING --run "
2038 else
2039 am_missing_run=
2040 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2041 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2044 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2045 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2046 if test -z "$MKDIR_P"; then
2047 if test "${ac_cv_path_mkdir+set}" = set; then
2048 $as_echo_n "(cached) " >&6
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_prog in mkdir gmkdir; do
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2058 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2059 'mkdir (GNU coreutils) '* | \
2060 'mkdir (coreutils) '* | \
2061 'mkdir (fileutils) '4.1*)
2062 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2063 break 3;;
2064 esac
2065 done
2066 done
2067 done
2068 IFS=$as_save_IFS
2072 if test "${ac_cv_path_mkdir+set}" = set; then
2073 MKDIR_P="$ac_cv_path_mkdir -p"
2074 else
2075 # As a last resort, use the slow shell script. Don't cache a
2076 # value for MKDIR_P within a source directory, because that will
2077 # break other packages using the cache if that directory is
2078 # removed, or if the value is a relative name.
2079 test -d ./--version && rmdir ./--version
2080 MKDIR_P="$ac_install_sh -d"
2083 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2084 $as_echo "$MKDIR_P" >&6; }
2086 mkdir_p="$MKDIR_P"
2087 case $mkdir_p in
2088 [\\/$]* | ?:[\\/]*) ;;
2089 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2090 esac
2092 for ac_prog in gawk mawk nawk awk
2094 # Extract the first word of "$ac_prog", so it can be a program name with args.
2095 set dummy $ac_prog; ac_word=$2
2096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 $as_echo_n "checking for $ac_word... " >&6; }
2098 if test "${ac_cv_prog_AWK+set}" = set; then
2099 $as_echo_n "(cached) " >&6
2100 else
2101 if test -n "$AWK"; then
2102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 ac_cv_prog_AWK="$ac_prog"
2112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2115 done
2116 done
2117 IFS=$as_save_IFS
2121 AWK=$ac_cv_prog_AWK
2122 if test -n "$AWK"; then
2123 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2124 $as_echo "$AWK" >&6; }
2125 else
2126 { $as_echo "$as_me:$LINENO: result: no" >&5
2127 $as_echo "no" >&6; }
2131 test -n "$AWK" && break
2132 done
2134 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2136 set x ${MAKE-make}
2137 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2138 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2139 $as_echo_n "(cached) " >&6
2140 else
2141 cat >conftest.make <<\_ACEOF
2142 SHELL = /bin/sh
2143 all:
2144 @echo '@@@%%%=$(MAKE)=@@@%%%'
2145 _ACEOF
2146 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2148 *@@@%%%=?*=@@@%%%*)
2149 eval ac_cv_prog_make_${ac_make}_set=yes;;
2151 eval ac_cv_prog_make_${ac_make}_set=no;;
2152 esac
2153 rm -f conftest.make
2155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2156 { $as_echo "$as_me:$LINENO: result: yes" >&5
2157 $as_echo "yes" >&6; }
2158 SET_MAKE=
2159 else
2160 { $as_echo "$as_me:$LINENO: result: no" >&5
2161 $as_echo "no" >&6; }
2162 SET_MAKE="MAKE=${MAKE-make}"
2165 rm -rf .tst 2>/dev/null
2166 mkdir .tst 2>/dev/null
2167 if test -d .tst; then
2168 am__leading_dot=.
2169 else
2170 am__leading_dot=_
2172 rmdir .tst 2>/dev/null
2174 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2175 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2176 # is not polluted with repeated "-I."
2177 am__isrc=' -I$(srcdir)'
2178 # test to see if srcdir already configured
2179 if test -f $srcdir/config.status; then
2180 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2181 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2182 { (exit 1); exit 1; }; }
2186 # test whether we have cygpath
2187 if test -z "$CYGPATH_W"; then
2188 if (cygpath --version) >/dev/null 2>/dev/null; then
2189 CYGPATH_W='cygpath -w'
2190 else
2191 CYGPATH_W=echo
2196 # Define the identity of the package.
2197 PACKAGE='wmstickynotes'
2198 VERSION='0.1'
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE "$PACKAGE"
2203 _ACEOF
2206 cat >>confdefs.h <<_ACEOF
2207 #define VERSION "$VERSION"
2208 _ACEOF
2210 # Some tools Automake needs.
2212 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2215 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2218 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2221 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2224 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2226 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2228 # Installed binaries are usually stripped using `strip' when the user
2229 # run `make install-strip'. However `strip' might not be the right
2230 # tool to use in cross-compilation environments, therefore Automake
2231 # will honor the `STRIP' environment variable to overrule this program.
2232 if test "$cross_compiling" != no; then
2233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2235 set dummy ${ac_tool_prefix}strip; ac_word=$2
2236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 $as_echo_n "checking for $ac_word... " >&6; }
2238 if test "${ac_cv_prog_STRIP+set}" = set; then
2239 $as_echo_n "(cached) " >&6
2240 else
2241 if test -n "$STRIP"; then
2242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 break 2
2255 done
2256 done
2257 IFS=$as_save_IFS
2261 STRIP=$ac_cv_prog_STRIP
2262 if test -n "$STRIP"; then
2263 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2264 $as_echo "$STRIP" >&6; }
2265 else
2266 { $as_echo "$as_me:$LINENO: result: no" >&5
2267 $as_echo "no" >&6; }
2272 if test -z "$ac_cv_prog_STRIP"; then
2273 ac_ct_STRIP=$STRIP
2274 # Extract the first word of "strip", so it can be a program name with args.
2275 set dummy strip; ac_word=$2
2276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2279 $as_echo_n "(cached) " >&6
2280 else
2281 if test -n "$ac_ct_STRIP"; then
2282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_ac_ct_STRIP="strip"
2292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2295 done
2296 done
2297 IFS=$as_save_IFS
2301 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2302 if test -n "$ac_ct_STRIP"; then
2303 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2304 $as_echo "$ac_ct_STRIP" >&6; }
2305 else
2306 { $as_echo "$as_me:$LINENO: result: no" >&5
2307 $as_echo "no" >&6; }
2310 if test "x$ac_ct_STRIP" = x; then
2311 STRIP=":"
2312 else
2313 case $cross_compiling:$ac_tool_warned in
2314 yes:)
2315 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2317 ac_tool_warned=yes ;;
2318 esac
2319 STRIP=$ac_ct_STRIP
2321 else
2322 STRIP="$ac_cv_prog_STRIP"
2326 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2328 # We need awk for the "check" target. The system "awk" is bad on
2329 # some platforms.
2330 # Always define AMTAR for backward compatibility.
2332 AMTAR=${AMTAR-"${am_missing_run}tar"}
2334 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2340 ac_config_headers="$ac_config_headers config.h"
2343 ac_ext=c
2344 ac_cpp='$CPP $CPPFLAGS'
2345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2350 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2370 done
2371 done
2372 IFS=$as_save_IFS
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2379 $as_echo "$CC" >&6; }
2380 else
2381 { $as_echo "$as_me:$LINENO: result: no" >&5
2382 $as_echo "no" >&6; }
2387 if test -z "$ac_cv_prog_CC"; then
2388 ac_ct_CC=$CC
2389 # Extract the first word of "gcc", so it can be a program name with args.
2390 set dummy gcc; ac_word=$2
2391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test -n "$ac_ct_CC"; then
2397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_ac_ct_CC="gcc"
2407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2410 done
2411 done
2412 IFS=$as_save_IFS
2416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2417 if test -n "$ac_ct_CC"; then
2418 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2419 $as_echo "$ac_ct_CC" >&6; }
2420 else
2421 { $as_echo "$as_me:$LINENO: result: no" >&5
2422 $as_echo "no" >&6; }
2425 if test "x$ac_ct_CC" = x; then
2426 CC=""
2427 else
2428 case $cross_compiling:$ac_tool_warned in
2429 yes:)
2430 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434 CC=$ac_ct_CC
2436 else
2437 CC="$ac_cv_prog_CC"
2440 if test -z "$CC"; then
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}cc; ac_word=$2
2444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 $as_echo_n "(cached) " >&6
2448 else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}cc"
2460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2465 IFS=$as_save_IFS
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2472 $as_echo "$CC" >&6; }
2473 else
2474 { $as_echo "$as_me:$LINENO: result: no" >&5
2475 $as_echo "no" >&6; }
2481 if test -z "$CC"; then
2482 # Extract the first word of "cc", so it can be a program name with args.
2483 set dummy cc; ac_word=$2
2484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 ac_prog_rejected=no
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2501 ac_prog_rejected=yes
2502 continue
2504 ac_cv_prog_CC="cc"
2505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2508 done
2509 done
2510 IFS=$as_save_IFS
2512 if test $ac_prog_rejected = yes; then
2513 # We found a bogon in the path, so make sure we never use it.
2514 set dummy $ac_cv_prog_CC
2515 shift
2516 if test $# != 0; then
2517 # We chose a different compiler from the bogus one.
2518 # However, it has the same basename, so the bogon will be chosen
2519 # first if we set CC to just the basename; use the full file name.
2520 shift
2521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2529 $as_echo "$CC" >&6; }
2530 else
2531 { $as_echo "$as_me:$LINENO: result: no" >&5
2532 $as_echo "no" >&6; }
2537 if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 for ac_prog in cl.exe
2541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2562 done
2563 done
2564 IFS=$as_save_IFS
2568 CC=$ac_cv_prog_CC
2569 if test -n "$CC"; then
2570 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2571 $as_echo "$CC" >&6; }
2572 else
2573 { $as_echo "$as_me:$LINENO: result: no" >&5
2574 $as_echo "no" >&6; }
2578 test -n "$CC" && break
2579 done
2581 if test -z "$CC"; then
2582 ac_ct_CC=$CC
2583 for ac_prog in cl.exe
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test -n "$ac_ct_CC"; then
2593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_ac_ct_CC="$ac_prog"
2603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2606 done
2607 done
2608 IFS=$as_save_IFS
2612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2613 if test -n "$ac_ct_CC"; then
2614 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2615 $as_echo "$ac_ct_CC" >&6; }
2616 else
2617 { $as_echo "$as_me:$LINENO: result: no" >&5
2618 $as_echo "no" >&6; }
2622 test -n "$ac_ct_CC" && break
2623 done
2625 if test "x$ac_ct_CC" = x; then
2626 CC=""
2627 else
2628 case $cross_compiling:$ac_tool_warned in
2629 yes:)
2630 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2632 ac_tool_warned=yes ;;
2633 esac
2634 CC=$ac_ct_CC
2641 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2644 See \`config.log' for more details." >&5
2645 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2646 See \`config.log' for more details." >&2;}
2647 { (exit 1); exit 1; }; }; }
2649 # Provide some information about the compiler.
2650 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2651 set X $ac_compile
2652 ac_compiler=$2
2653 { (ac_try="$ac_compiler --version >&5"
2654 case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2659 $as_echo "$ac_try_echo") >&5
2660 (eval "$ac_compiler --version >&5") 2>&5
2661 ac_status=$?
2662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -v >&5"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2670 $as_echo "$ac_try_echo") >&5
2671 (eval "$ac_compiler -v >&5") 2>&5
2672 ac_status=$?
2673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (ac_try="$ac_compiler -V >&5"
2676 case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2681 $as_echo "$ac_try_echo") >&5
2682 (eval "$ac_compiler -V >&5") 2>&5
2683 ac_status=$?
2684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2695 main ()
2699 return 0;
2701 _ACEOF
2702 ac_clean_files_save=$ac_clean_files
2703 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2704 # Try to create an executable without -o first, disregard a.out.
2705 # It will help us diagnose broken compilers, and finding out an intuition
2706 # of exeext.
2707 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2708 $as_echo_n "checking for C compiler default output file name... " >&6; }
2709 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2711 # The possible output files:
2712 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2714 ac_rmfiles=
2715 for ac_file in $ac_files
2717 case $ac_file in
2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2719 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2720 esac
2721 done
2722 rm -f $ac_rmfiles
2724 if { (ac_try="$ac_link_default"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2730 $as_echo "$ac_try_echo") >&5
2731 (eval "$ac_link_default") 2>&5
2732 ac_status=$?
2733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; then
2735 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2736 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2737 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2738 # so that the user can short-circuit this test for compilers unknown to
2739 # Autoconf.
2740 for ac_file in $ac_files ''
2742 test -f "$ac_file" || continue
2743 case $ac_file in
2744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2746 [ab].out )
2747 # We found the default executable, but exeext='' is most
2748 # certainly right.
2749 break;;
2750 *.* )
2751 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2752 then :; else
2753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2755 # We set ac_cv_exeext here because the later test for it is not
2756 # safe: cross compilers may not add the suffix if given an `-o'
2757 # argument, so we may need to know it at that point already.
2758 # Even if this section looks crufty: it has the advantage of
2759 # actually working.
2760 break;;
2762 break;;
2763 esac
2764 done
2765 test "$ac_cv_exeext" = no && ac_cv_exeext=
2767 else
2768 ac_file=''
2771 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2772 $as_echo "$ac_file" >&6; }
2773 if test -z "$ac_file"; then
2774 $as_echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2780 See \`config.log' for more details." >&5
2781 $as_echo "$as_me: error: C compiler cannot create executables
2782 See \`config.log' for more details." >&2;}
2783 { (exit 77); exit 77; }; }; }
2786 ac_exeext=$ac_cv_exeext
2788 # Check that the compiler produces executables we can run. If not, either
2789 # the compiler is broken, or we cross compile.
2790 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2791 $as_echo_n "checking whether the C compiler works... " >&6; }
2792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2793 # If not cross compiling, check that we can run a simple program.
2794 if test "$cross_compiling" != yes; then
2795 if { ac_try='./$ac_file'
2796 { (case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2801 $as_echo "$ac_try_echo") >&5
2802 (eval "$ac_try") 2>&5
2803 ac_status=$?
2804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 cross_compiling=no
2807 else
2808 if test "$cross_compiling" = maybe; then
2809 cross_compiling=yes
2810 else
2811 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2814 If you meant to cross compile, use \`--host'.
2815 See \`config.log' for more details." >&5
2816 $as_echo "$as_me: error: cannot run C compiled programs.
2817 If you meant to cross compile, use \`--host'.
2818 See \`config.log' for more details." >&2;}
2819 { (exit 1); exit 1; }; }; }
2823 { $as_echo "$as_me:$LINENO: result: yes" >&5
2824 $as_echo "yes" >&6; }
2826 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2827 ac_clean_files=$ac_clean_files_save
2828 # Check that the compiler produces executables we can run. If not, either
2829 # the compiler is broken, or we cross compile.
2830 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2831 $as_echo_n "checking whether we are cross compiling... " >&6; }
2832 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2833 $as_echo "$cross_compiling" >&6; }
2835 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2836 $as_echo_n "checking for suffix of executables... " >&6; }
2837 if { (ac_try="$ac_link"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843 $as_echo "$ac_try_echo") >&5
2844 (eval "$ac_link") 2>&5
2845 ac_status=$?
2846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; then
2848 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2849 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2850 # work properly (i.e., refer to `conftest.exe'), while it won't with
2851 # `rm'.
2852 for ac_file in conftest.exe conftest conftest.*; do
2853 test -f "$ac_file" || continue
2854 case $ac_file in
2855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2856 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2857 break;;
2858 * ) break;;
2859 esac
2860 done
2861 else
2862 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2865 See \`config.log' for more details." >&5
2866 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2867 See \`config.log' for more details." >&2;}
2868 { (exit 1); exit 1; }; }; }
2871 rm -f conftest$ac_cv_exeext
2872 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2873 $as_echo "$ac_cv_exeext" >&6; }
2875 rm -f conftest.$ac_ext
2876 EXEEXT=$ac_cv_exeext
2877 ac_exeext=$EXEEXT
2878 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2879 $as_echo_n "checking for suffix of object files... " >&6; }
2880 if test "${ac_cv_objext+set}" = set; then
2881 $as_echo_n "(cached) " >&6
2882 else
2883 cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h. */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2891 main ()
2895 return 0;
2897 _ACEOF
2898 rm -f conftest.o conftest.obj
2899 if { (ac_try="$ac_compile"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2905 $as_echo "$ac_try_echo") >&5
2906 (eval "$ac_compile") 2>&5
2907 ac_status=$?
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; then
2910 for ac_file in conftest.o conftest.obj conftest.*; do
2911 test -f "$ac_file" || continue;
2912 case $ac_file in
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2914 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2915 break;;
2916 esac
2917 done
2918 else
2919 $as_echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&5
2926 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }; }
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2933 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934 $as_echo "$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2936 ac_objext=$OBJEXT
2937 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940 $as_echo_n "(cached) " >&6
2941 else
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2950 main ()
2952 #ifndef __GNUC__
2953 choke me
2954 #endif
2957 return 0;
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967 $as_echo "$ac_try_echo") >&5
2968 (eval "$ac_compile") 2>conftest.er1
2969 ac_status=$?
2970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
2973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } && {
2975 test -z "$ac_c_werror_flag" ||
2976 test ! -s conftest.err
2977 } && test -s conftest.$ac_objext; then
2978 ac_compiler_gnu=yes
2979 else
2980 $as_echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 ac_compiler_gnu=no
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2990 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2992 if test $ac_compiler_gnu = yes; then
2993 GCC=yes
2994 else
2995 GCC=
2997 ac_test_CFLAGS=${CFLAGS+set}
2998 ac_save_CFLAGS=$CFLAGS
2999 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3001 if test "${ac_cv_prog_cc_g+set}" = set; then
3002 $as_echo_n "(cached) " >&6
3003 else
3004 ac_save_c_werror_flag=$ac_c_werror_flag
3005 ac_c_werror_flag=yes
3006 ac_cv_prog_cc_g=no
3007 CFLAGS="-g"
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3016 main ()
3020 return 0;
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3030 $as_echo "$ac_try_echo") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
3041 ac_cv_prog_cc_g=yes
3042 else
3043 $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 CFLAGS=""
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3055 main ()
3059 return 0;
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3069 $as_echo "$ac_try_echo") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3081 else
3082 $as_echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_c_werror_flag=$ac_save_c_werror_flag
3086 CFLAGS="-g"
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 main ()
3099 return 0;
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (ac_try="$ac_compile"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3109 $as_echo "$ac_try_echo") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } && {
3117 test -z "$ac_c_werror_flag" ||
3118 test ! -s conftest.err
3119 } && test -s conftest.$ac_objext; then
3120 ac_cv_prog_cc_g=yes
3121 else
3122 $as_echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 ac_c_werror_flag=$ac_save_c_werror_flag
3137 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3138 $as_echo "$ac_cv_prog_cc_g" >&6; }
3139 if test "$ac_test_CFLAGS" = set; then
3140 CFLAGS=$ac_save_CFLAGS
3141 elif test $ac_cv_prog_cc_g = yes; then
3142 if test "$GCC" = yes; then
3143 CFLAGS="-g -O2"
3144 else
3145 CFLAGS="-g"
3147 else
3148 if test "$GCC" = yes; then
3149 CFLAGS="-O2"
3150 else
3151 CFLAGS=
3154 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3155 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3156 if test "${ac_cv_prog_cc_c89+set}" = set; then
3157 $as_echo_n "(cached) " >&6
3158 else
3159 ac_cv_prog_cc_c89=no
3160 ac_save_CC=$CC
3161 cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h. */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 #include <stdarg.h>
3168 #include <stdio.h>
3169 #include <sys/types.h>
3170 #include <sys/stat.h>
3171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3172 struct buf { int x; };
3173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3174 static char *e (p, i)
3175 char **p;
3176 int i;
3178 return p[i];
3180 static char *f (char * (*g) (char **, int), char **p, ...)
3182 char *s;
3183 va_list v;
3184 va_start (v,p);
3185 s = g (p, va_arg (v,int));
3186 va_end (v);
3187 return s;
3190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3191 function prototypes and stuff, but not '\xHH' hex character constants.
3192 These don't provoke an error unfortunately, instead are silently treated
3193 as 'x'. The following induces an error, until -std is added to get
3194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3195 array size at least. It's necessary to write '\x00'==0 to get something
3196 that's true only with -std. */
3197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3200 inside strings and character constants. */
3201 #define FOO(x) 'x'
3202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3204 int test (int i, double x);
3205 struct s1 {int (*f) (int a);};
3206 struct s2 {int (*f) (double a);};
3207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3208 int argc;
3209 char **argv;
3211 main ()
3213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3215 return 0;
3217 _ACEOF
3218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3221 CC="$ac_save_CC $ac_arg"
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3229 $as_echo "$ac_try_echo") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3240 ac_cv_prog_cc_c89=$ac_arg
3241 else
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext
3249 test "x$ac_cv_prog_cc_c89" != "xno" && break
3250 done
3251 rm -f conftest.$ac_ext
3252 CC=$ac_save_CC
3255 # AC_CACHE_VAL
3256 case "x$ac_cv_prog_cc_c89" in
3258 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3259 $as_echo "none needed" >&6; } ;;
3260 xno)
3261 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3262 $as_echo "unsupported" >&6; } ;;
3264 CC="$CC $ac_cv_prog_cc_c89"
3265 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3266 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3267 esac
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 DEPDIR="${am__leading_dot}deps"
3277 ac_config_commands="$ac_config_commands depfiles"
3280 am_make=${MAKE-make}
3281 cat > confinc << 'END'
3282 am__doit:
3283 @echo done
3284 .PHONY: am__doit
3286 # If we don't find an include directive, just comment out the code.
3287 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3288 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3289 am__include="#"
3290 am__quote=
3291 _am_result=none
3292 # First try GNU make style include.
3293 echo "include confinc" > confmf
3294 # We grep out `Entering directory' and `Leaving directory'
3295 # messages which can occur if `w' ends up in MAKEFLAGS.
3296 # In particular we don't look at `^make:' because GNU make might
3297 # be invoked under some other name (usually "gmake"), in which
3298 # case it prints its new name instead of `make'.
3299 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3300 am__include=include
3301 am__quote=
3302 _am_result=GNU
3304 # Now try BSD make style include.
3305 if test "$am__include" = "#"; then
3306 echo '.include "confinc"' > confmf
3307 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3308 am__include=.include
3309 am__quote="\""
3310 _am_result=BSD
3315 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3316 $as_echo "$_am_result" >&6; }
3317 rm -f confinc confmf
3319 # Check whether --enable-dependency-tracking was given.
3320 if test "${enable_dependency_tracking+set}" = set; then
3321 enableval=$enable_dependency_tracking;
3324 if test "x$enable_dependency_tracking" != xno; then
3325 am_depcomp="$ac_aux_dir/depcomp"
3326 AMDEPBACKSLASH='\'
3328 if test "x$enable_dependency_tracking" != xno; then
3329 AMDEP_TRUE=
3330 AMDEP_FALSE='#'
3331 else
3332 AMDEP_TRUE='#'
3333 AMDEP_FALSE=
3338 depcc="$CC" am_compiler_list=
3340 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3341 $as_echo_n "checking dependency style of $depcc... " >&6; }
3342 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3346 # We make a subdir and do the tests there. Otherwise we can end up
3347 # making bogus files that we don't know about and never remove. For
3348 # instance it was reported that on HP-UX the gcc test will end up
3349 # making a dummy file named `D' -- because `-MD' means `put the output
3350 # in D'.
3351 mkdir conftest.dir
3352 # Copy depcomp to subdir because otherwise we won't find it if we're
3353 # using a relative directory.
3354 cp "$am_depcomp" conftest.dir
3355 cd conftest.dir
3356 # We will build objects and dependencies in a subdirectory because
3357 # it helps to detect inapplicable dependency modes. For instance
3358 # both Tru64's cc and ICC support -MD to output dependencies as a
3359 # side effect of compilation, but ICC will put the dependencies in
3360 # the current directory while Tru64 will put them in the object
3361 # directory.
3362 mkdir sub
3364 am_cv_CC_dependencies_compiler_type=none
3365 if test "$am_compiler_list" = ""; then
3366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3368 for depmode in $am_compiler_list; do
3369 # Setup a source with many dependencies, because some compilers
3370 # like to wrap large dependency lists on column 80 (with \), and
3371 # we should not choose a depcomp mode which is confused by this.
3373 # We need to recreate these files for each test, as the compiler may
3374 # overwrite some of them when testing with obscure command lines.
3375 # This happens at least with the AIX C compiler.
3376 : > sub/conftest.c
3377 for i in 1 2 3 4 5 6; do
3378 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3379 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3380 # Solaris 8's {/usr,}/bin/sh.
3381 touch sub/conftst$i.h
3382 done
3383 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3385 case $depmode in
3386 nosideeffect)
3387 # after this tag, mechanisms are not by side-effect, so they'll
3388 # only be used when explicitly requested
3389 if test "x$enable_dependency_tracking" = xyes; then
3390 continue
3391 else
3392 break
3395 none) break ;;
3396 esac
3397 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3398 # mode. It turns out that the SunPro C++ compiler does not properly
3399 # handle `-M -o', and we need to detect this.
3400 if depmode=$depmode \
3401 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3402 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3403 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3404 >/dev/null 2>conftest.err &&
3405 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3406 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3407 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3408 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3409 # icc doesn't choke on unknown options, it will just issue warnings
3410 # or remarks (even with -Werror). So we grep stderr for any message
3411 # that says an option was ignored or not supported.
3412 # When given -MP, icc 7.0 and 7.1 complain thusly:
3413 # icc: Command line warning: ignoring option '-M'; no argument required
3414 # The diagnosis changed in icc 8.0:
3415 # icc: Command line remark: option '-MP' not supported
3416 if (grep 'ignoring option' conftest.err ||
3417 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3418 am_cv_CC_dependencies_compiler_type=$depmode
3419 break
3422 done
3424 cd ..
3425 rm -rf conftest.dir
3426 else
3427 am_cv_CC_dependencies_compiler_type=none
3431 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3432 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3433 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3436 test "x$enable_dependency_tracking" != xno \
3437 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3438 am__fastdepCC_TRUE=
3439 am__fastdepCC_FALSE='#'
3440 else
3441 am__fastdepCC_TRUE='#'
3442 am__fastdepCC_FALSE=
3446 # Find a good install program. We prefer a C program (faster),
3447 # so one script is as good as another. But avoid the broken or
3448 # incompatible versions:
3449 # SysV /etc/install, /usr/sbin/install
3450 # SunOS /usr/etc/install
3451 # IRIX /sbin/install
3452 # AIX /bin/install
3453 # AmigaOS /C/install, which installs bootblocks on floppy discs
3454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3457 # OS/2's system install, which has a completely different semantic
3458 # ./install, which can be erroneously created by make from ./install.sh.
3459 # Reject install programs that cannot install multiple files.
3460 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3461 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3462 if test -z "$INSTALL"; then
3463 if test "${ac_cv_path_install+set}" = set; then
3464 $as_echo_n "(cached) " >&6
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 # Account for people who put trailing slashes in PATH elements.
3472 case $as_dir/ in
3473 ./ | .// | /cC/* | \
3474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3475 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3476 /usr/ucb/* ) ;;
3478 # OSF1 and SCO ODT 3.0 have their own names for install.
3479 # Don't use installbsd from OSF since it installs stuff as root
3480 # by default.
3481 for ac_prog in ginstall scoinst install; do
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3484 if test $ac_prog = install &&
3485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3486 # AIX install. It has an incompatible calling convention.
3488 elif test $ac_prog = install &&
3489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3490 # program-specific install script used by HP pwplus--don't use.
3492 else
3493 rm -rf conftest.one conftest.two conftest.dir
3494 echo one > conftest.one
3495 echo two > conftest.two
3496 mkdir conftest.dir
3497 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3498 test -s conftest.one && test -s conftest.two &&
3499 test -s conftest.dir/conftest.one &&
3500 test -s conftest.dir/conftest.two
3501 then
3502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3503 break 3
3507 done
3508 done
3510 esac
3512 done
3513 IFS=$as_save_IFS
3515 rm -rf conftest.one conftest.two conftest.dir
3518 if test "${ac_cv_path_install+set}" = set; then
3519 INSTALL=$ac_cv_path_install
3520 else
3521 # As a last resort, use the slow shell script. Don't cache a
3522 # value for INSTALL within a source directory, because that will
3523 # break other packages using the cache if that directory is
3524 # removed, or if the value is a relative name.
3525 INSTALL=$ac_install_sh
3528 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3529 $as_echo "$INSTALL" >&6; }
3531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3532 # It thinks the first close brace ends the variable substitution.
3533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3539 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3540 $as_echo_n "checking whether ln -s works... " >&6; }
3541 LN_S=$as_ln_s
3542 if test "$LN_S" = "ln -s"; then
3543 { $as_echo "$as_me:$LINENO: result: yes" >&5
3544 $as_echo "yes" >&6; }
3545 else
3546 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3547 $as_echo "no, using $LN_S" >&6; }
3550 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3551 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3552 set x ${MAKE-make}
3553 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3554 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3555 $as_echo_n "(cached) " >&6
3556 else
3557 cat >conftest.make <<\_ACEOF
3558 SHELL = /bin/sh
3559 all:
3560 @echo '@@@%%%=$(MAKE)=@@@%%%'
3561 _ACEOF
3562 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3563 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3564 *@@@%%%=?*=@@@%%%*)
3565 eval ac_cv_prog_make_${ac_make}_set=yes;;
3567 eval ac_cv_prog_make_${ac_make}_set=no;;
3568 esac
3569 rm -f conftest.make
3571 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3572 { $as_echo "$as_me:$LINENO: result: yes" >&5
3573 $as_echo "yes" >&6; }
3574 SET_MAKE=
3575 else
3576 { $as_echo "$as_me:$LINENO: result: no" >&5
3577 $as_echo "no" >&6; }
3578 SET_MAKE="MAKE=${MAKE-make}"
3582 ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3595 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3596 # On Suns, sometimes $CPP names a directory.
3597 if test -n "$CPP" && test -d "$CPP"; then
3598 CPP=
3600 if test -z "$CPP"; then
3601 if test "${ac_cv_prog_CPP+set}" = set; then
3602 $as_echo_n "(cached) " >&6
3603 else
3604 # Double quotes because CPP needs to be expanded
3605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3607 ac_preproc_ok=false
3608 for ac_c_preproc_warn_flag in '' yes
3610 # Use a header file that comes with gcc, so configuring glibc
3611 # with a fresh cross-compiler works.
3612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3613 # <limits.h> exists even on freestanding compilers.
3614 # On the NeXT, cc -E runs the code through the compiler's parser,
3615 # not just through cpp. "Syntax error" is here to catch this case.
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #ifdef __STDC__
3623 # include <limits.h>
3624 #else
3625 # include <assert.h>
3626 #endif
3627 Syntax error
3628 _ACEOF
3629 if { (ac_try="$ac_cpp conftest.$ac_ext"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3635 $as_echo "$ac_try_echo") >&5
3636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3637 ac_status=$?
3638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } >/dev/null && {
3643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 }; then
3647 else
3648 $as_echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 # Broken: fails on valid input.
3652 continue
3655 rm -f conftest.err conftest.$ac_ext
3657 # OK, works on sane cases. Now check whether nonexistent headers
3658 # can be detected and how.
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 #include <ac_nonexistent.h>
3666 _ACEOF
3667 if { (ac_try="$ac_cpp conftest.$ac_ext"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3673 $as_echo "$ac_try_echo") >&5
3674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } >/dev/null && {
3681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3682 test ! -s conftest.err
3683 }; then
3684 # Broken: success on invalid input.
3685 continue
3686 else
3687 $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 # Passes both tests.
3691 ac_preproc_ok=:
3692 break
3695 rm -f conftest.err conftest.$ac_ext
3697 done
3698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3699 rm -f conftest.err conftest.$ac_ext
3700 if $ac_preproc_ok; then
3701 break
3704 done
3705 ac_cv_prog_CPP=$CPP
3708 CPP=$ac_cv_prog_CPP
3709 else
3710 ac_cv_prog_CPP=$CPP
3712 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3713 $as_echo "$CPP" >&6; }
3714 ac_preproc_ok=false
3715 for ac_c_preproc_warn_flag in '' yes
3717 # Use a header file that comes with gcc, so configuring glibc
3718 # with a fresh cross-compiler works.
3719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 # <limits.h> exists even on freestanding compilers.
3721 # On the NeXT, cc -E runs the code through the compiler's parser,
3722 # not just through cpp. "Syntax error" is here to catch this case.
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #ifdef __STDC__
3730 # include <limits.h>
3731 #else
3732 # include <assert.h>
3733 #endif
3734 Syntax error
3735 _ACEOF
3736 if { (ac_try="$ac_cpp conftest.$ac_ext"
3737 case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3742 $as_echo "$ac_try_echo") >&5
3743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } >/dev/null && {
3750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3751 test ! -s conftest.err
3752 }; then
3754 else
3755 $as_echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 # Broken: fails on valid input.
3759 continue
3762 rm -f conftest.err conftest.$ac_ext
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 #include <ac_nonexistent.h>
3773 _ACEOF
3774 if { (ac_try="$ac_cpp conftest.$ac_ext"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3780 $as_echo "$ac_try_echo") >&5
3781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } >/dev/null && {
3788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 }; then
3791 # Broken: success on invalid input.
3792 continue
3793 else
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 # Passes both tests.
3798 ac_preproc_ok=:
3799 break
3802 rm -f conftest.err conftest.$ac_ext
3804 done
3805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3806 rm -f conftest.err conftest.$ac_ext
3807 if $ac_preproc_ok; then
3809 else
3810 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3813 See \`config.log' for more details." >&5
3814 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3815 See \`config.log' for more details." >&2;}
3816 { (exit 1); exit 1; }; }; }
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 { $as_echo "$as_me:$LINENO: checking for X" >&5
3827 $as_echo_n "checking for X... " >&6; }
3830 # Check whether --with-x was given.
3831 if test "${with_x+set}" = set; then
3832 withval=$with_x;
3835 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3836 if test "x$with_x" = xno; then
3837 # The user explicitly disabled X.
3838 have_x=disabled
3839 else
3840 case $x_includes,$x_libraries in #(
3841 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
3842 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
3843 { (exit 1); exit 1; }; };; #(
3844 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3845 $as_echo_n "(cached) " >&6
3846 else
3847 # One or both of the vars are not set, and there is no cached value.
3848 ac_x_includes=no ac_x_libraries=no
3849 rm -f -r conftest.dir
3850 if mkdir conftest.dir; then
3851 cd conftest.dir
3852 cat >Imakefile <<'_ACEOF'
3853 incroot:
3854 @echo incroot='${INCROOT}'
3855 usrlibdir:
3856 @echo usrlibdir='${USRLIBDIR}'
3857 libdir:
3858 @echo libdir='${LIBDIR}'
3859 _ACEOF
3860 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3862 for ac_var in incroot usrlibdir libdir; do
3863 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3864 done
3865 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3866 for ac_extension in a so sl dylib la dll; do
3867 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3868 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3869 ac_im_usrlibdir=$ac_im_libdir; break
3871 done
3872 # Screen out bogus values from the imake configuration. They are
3873 # bogus both because they are the default anyway, and because
3874 # using them would break gcc on systems where it needs fixed includes.
3875 case $ac_im_incroot in
3876 /usr/include) ac_x_includes= ;;
3877 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3878 esac
3879 case $ac_im_usrlibdir in
3880 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3881 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3882 esac
3884 cd ..
3885 rm -f -r conftest.dir
3888 # Standard set of common directories for X headers.
3889 # Check X11 before X11Rn because it is often a symlink to the current release.
3890 ac_x_header_dirs='
3891 /usr/X11/include
3892 /usr/X11R6/include
3893 /usr/X11R5/include
3894 /usr/X11R4/include
3896 /usr/include/X11
3897 /usr/include/X11R6
3898 /usr/include/X11R5
3899 /usr/include/X11R4
3901 /usr/local/X11/include
3902 /usr/local/X11R6/include
3903 /usr/local/X11R5/include
3904 /usr/local/X11R4/include
3906 /usr/local/include/X11
3907 /usr/local/include/X11R6
3908 /usr/local/include/X11R5
3909 /usr/local/include/X11R4
3911 /usr/X386/include
3912 /usr/x386/include
3913 /usr/XFree86/include/X11
3915 /usr/include
3916 /usr/local/include
3917 /usr/unsupported/include
3918 /usr/athena/include
3919 /usr/local/x11r5/include
3920 /usr/lpp/Xamples/include
3922 /usr/openwin/include
3923 /usr/openwin/share/include'
3925 if test "$ac_x_includes" = no; then
3926 # Guess where to find include files, by looking for Xlib.h.
3927 # First, try using that file with no special directory specified.
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #include <X11/Xlib.h>
3935 _ACEOF
3936 if { (ac_try="$ac_cpp conftest.$ac_ext"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } >/dev/null && {
3950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3951 test ! -s conftest.err
3952 }; then
3953 # We can compile using X headers with no special include directory.
3954 ac_x_includes=
3955 else
3956 $as_echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 for ac_dir in $ac_x_header_dirs; do
3960 if test -r "$ac_dir/X11/Xlib.h"; then
3961 ac_x_includes=$ac_dir
3962 break
3964 done
3967 rm -f conftest.err conftest.$ac_ext
3968 fi # $ac_x_includes = no
3970 if test "$ac_x_libraries" = no; then
3971 # Check for the libraries.
3972 # See if we find them without any special options.
3973 # Don't add to $LIBS permanently.
3974 ac_save_LIBS=$LIBS
3975 LIBS="-lX11 $LIBS"
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <X11/Xlib.h>
3984 main ()
3986 XrmInitialize ()
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext conftest$ac_exeext
3992 if { (ac_try="$ac_link"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_link") 2>conftest.er1
4000 ac_status=$?
4001 grep -v '^ *+' conftest.er1 >conftest.err
4002 rm -f conftest.er1
4003 cat conftest.err >&5
4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest$ac_exeext && {
4009 test "$cross_compiling" = yes ||
4010 $as_test_x conftest$ac_exeext
4011 }; then
4012 LIBS=$ac_save_LIBS
4013 # We can link X programs with no special library path.
4014 ac_x_libraries=
4015 else
4016 $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 LIBS=$ac_save_LIBS
4020 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4022 # Don't even attempt the hair of trying to link an X program!
4023 for ac_extension in a so sl dylib la dll; do
4024 if test -r "$ac_dir/libX11.$ac_extension"; then
4025 ac_x_libraries=$ac_dir
4026 break 2
4028 done
4029 done
4032 rm -rf conftest.dSYM
4033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4034 conftest$ac_exeext conftest.$ac_ext
4035 fi # $ac_x_libraries = no
4037 case $ac_x_includes,$ac_x_libraries in #(
4038 no,* | *,no | *\'*)
4039 # Didn't find X, or a directory has "'" in its name.
4040 ac_cv_have_x="have_x=no";; #(
4042 # Record where we found X for the cache.
4043 ac_cv_have_x="have_x=yes\
4044 ac_x_includes='$ac_x_includes'\
4045 ac_x_libraries='$ac_x_libraries'"
4046 esac
4048 ;; #(
4049 *) have_x=yes;;
4050 esac
4051 eval "$ac_cv_have_x"
4052 fi # $with_x != no
4054 if test "$have_x" != yes; then
4055 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
4056 $as_echo "$have_x" >&6; }
4057 no_x=yes
4058 else
4059 # If each of the values was on the command line, it overrides each guess.
4060 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4061 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4062 # Update the cache value to reflect the command line values.
4063 ac_cv_have_x="have_x=yes\
4064 ac_x_includes='$x_includes'\
4065 ac_x_libraries='$x_libraries'"
4066 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4067 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4070 if test "$no_x" = yes; then
4071 # Not all programs may use this symbol, but it does not hurt to define it.
4073 cat >>confdefs.h <<\_ACEOF
4074 #define X_DISPLAY_MISSING 1
4075 _ACEOF
4077 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4078 else
4079 if test -n "$x_includes"; then
4080 X_CFLAGS="$X_CFLAGS -I$x_includes"
4083 # It would also be nice to do this for all -L options, not just this one.
4084 if test -n "$x_libraries"; then
4085 X_LIBS="$X_LIBS -L$x_libraries"
4086 # For Solaris; some versions of Sun CC require a space after -R and
4087 # others require no space. Words are not sufficient . . . .
4088 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4089 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4090 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4091 ac_xsave_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4101 main ()
4105 return 0;
4107 _ACEOF
4108 rm -f conftest.$ac_objext conftest$ac_exeext
4109 if { (ac_try="$ac_link"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4115 $as_echo "$ac_try_echo") >&5
4116 (eval "$ac_link") 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } && {
4123 test -z "$ac_c_werror_flag" ||
4124 test ! -s conftest.err
4125 } && test -s conftest$ac_exeext && {
4126 test "$cross_compiling" = yes ||
4127 $as_test_x conftest$ac_exeext
4128 }; then
4129 { $as_echo "$as_me:$LINENO: result: no" >&5
4130 $as_echo "no" >&6; }
4131 X_LIBS="$X_LIBS -R$x_libraries"
4132 else
4133 $as_echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4136 LIBS="$ac_xsave_LIBS -R $x_libraries"
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4145 main ()
4149 return 0;
4151 _ACEOF
4152 rm -f conftest.$ac_objext conftest$ac_exeext
4153 if { (ac_try="$ac_link"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4159 $as_echo "$ac_try_echo") >&5
4160 (eval "$ac_link") 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } && {
4167 test -z "$ac_c_werror_flag" ||
4168 test ! -s conftest.err
4169 } && test -s conftest$ac_exeext && {
4170 test "$cross_compiling" = yes ||
4171 $as_test_x conftest$ac_exeext
4172 }; then
4173 { $as_echo "$as_me:$LINENO: result: yes" >&5
4174 $as_echo "yes" >&6; }
4175 X_LIBS="$X_LIBS -R $x_libraries"
4176 else
4177 $as_echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 { $as_echo "$as_me:$LINENO: result: neither works" >&5
4181 $as_echo "neither works" >&6; }
4184 rm -rf conftest.dSYM
4185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4186 conftest$ac_exeext conftest.$ac_ext
4189 rm -rf conftest.dSYM
4190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4191 conftest$ac_exeext conftest.$ac_ext
4192 ac_c_werror_flag=$ac_xsave_c_werror_flag
4193 LIBS=$ac_xsave_LIBS
4196 # Check for system-dependent libraries X programs must link with.
4197 # Do this before checking for the system-independent R6 libraries
4198 # (-lICE), since we may need -lsocket or whatever for X linking.
4200 if test "$ISC" = yes; then
4201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4202 else
4203 # Martyn Johnson says this is needed for Ultrix, if the X
4204 # libraries were built with DECnet support. And Karl Berry says
4205 # the Alpha needs dnet_stub (dnet does not exist).
4206 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4214 /* Override any GCC internal prototype to avoid an error.
4215 Use char because int might match the return type of a GCC
4216 builtin and then its argument prototype would still apply. */
4217 #ifdef __cplusplus
4218 extern "C"
4219 #endif
4220 char XOpenDisplay ();
4222 main ()
4224 return XOpenDisplay ();
4226 return 0;
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (ac_try="$ac_link"
4231 case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4236 $as_echo "$ac_try_echo") >&5
4237 (eval "$ac_link") 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && {
4244 test -z "$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 } && test -s conftest$ac_exeext && {
4247 test "$cross_compiling" = yes ||
4248 $as_test_x conftest$ac_exeext
4249 }; then
4251 else
4252 $as_echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4256 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4257 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4258 $as_echo_n "(cached) " >&6
4259 else
4260 ac_check_lib_save_LIBS=$LIBS
4261 LIBS="-ldnet $LIBS"
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h. */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4269 /* Override any GCC internal prototype to avoid an error.
4270 Use char because int might match the return type of a GCC
4271 builtin and then its argument prototype would still apply. */
4272 #ifdef __cplusplus
4273 extern "C"
4274 #endif
4275 char dnet_ntoa ();
4277 main ()
4279 return dnet_ntoa ();
4281 return 0;
4283 _ACEOF
4284 rm -f conftest.$ac_objext conftest$ac_exeext
4285 if { (ac_try="$ac_link"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4291 $as_echo "$ac_try_echo") >&5
4292 (eval "$ac_link") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && {
4299 test -z "$ac_c_werror_flag" ||
4300 test ! -s conftest.err
4301 } && test -s conftest$ac_exeext && {
4302 test "$cross_compiling" = yes ||
4303 $as_test_x conftest$ac_exeext
4304 }; then
4305 ac_cv_lib_dnet_dnet_ntoa=yes
4306 else
4307 $as_echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_cv_lib_dnet_dnet_ntoa=no
4313 rm -rf conftest.dSYM
4314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4315 conftest$ac_exeext conftest.$ac_ext
4316 LIBS=$ac_check_lib_save_LIBS
4318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4319 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4320 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
4321 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4324 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4325 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4326 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4327 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4329 else
4330 ac_check_lib_save_LIBS=$LIBS
4331 LIBS="-ldnet_stub $LIBS"
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4339 /* Override any GCC internal prototype to avoid an error.
4340 Use char because int might match the return type of a GCC
4341 builtin and then its argument prototype would still apply. */
4342 #ifdef __cplusplus
4343 extern "C"
4344 #endif
4345 char dnet_ntoa ();
4347 main ()
4349 return dnet_ntoa ();
4351 return 0;
4353 _ACEOF
4354 rm -f conftest.$ac_objext conftest$ac_exeext
4355 if { (ac_try="$ac_link"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4361 $as_echo "$ac_try_echo") >&5
4362 (eval "$ac_link") 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && {
4369 test -z "$ac_c_werror_flag" ||
4370 test ! -s conftest.err
4371 } && test -s conftest$ac_exeext && {
4372 test "$cross_compiling" = yes ||
4373 $as_test_x conftest$ac_exeext
4374 }; then
4375 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4376 else
4377 $as_echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 ac_cv_lib_dnet_stub_dnet_ntoa=no
4383 rm -rf conftest.dSYM
4384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4385 conftest$ac_exeext conftest.$ac_ext
4386 LIBS=$ac_check_lib_save_LIBS
4388 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4389 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4390 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
4391 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4397 rm -rf conftest.dSYM
4398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4399 conftest$ac_exeext conftest.$ac_ext
4400 LIBS="$ac_xsave_LIBS"
4402 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4403 # to get the SysV transport functions.
4404 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4405 # needs -lnsl.
4406 # The nsl library prevents programs from opening the X display
4407 # on Irix 5.2, according to T.E. Dickey.
4408 # The functions gethostbyname, getservbyname, and inet_addr are
4409 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4410 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
4411 $as_echo_n "checking for gethostbyname... " >&6; }
4412 if test "${ac_cv_func_gethostbyname+set}" = set; then
4413 $as_echo_n "(cached) " >&6
4414 else
4415 cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h. */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4423 #define gethostbyname innocuous_gethostbyname
4425 /* System header to define __stub macros and hopefully few prototypes,
4426 which can conflict with char gethostbyname (); below.
4427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 <limits.h> exists even on freestanding compilers. */
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4436 #undef gethostbyname
4438 /* Override any GCC internal prototype to avoid an error.
4439 Use char because int might match the return type of a GCC
4440 builtin and then its argument prototype would still apply. */
4441 #ifdef __cplusplus
4442 extern "C"
4443 #endif
4444 char gethostbyname ();
4445 /* The GNU C library defines this for functions which it implements
4446 to always fail with ENOSYS. Some functions are actually named
4447 something starting with __ and the normal name is an alias. */
4448 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4449 choke me
4450 #endif
4453 main ()
4455 return gethostbyname ();
4457 return 0;
4459 _ACEOF
4460 rm -f conftest.$ac_objext conftest$ac_exeext
4461 if { (ac_try="$ac_link"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4467 $as_echo "$ac_try_echo") >&5
4468 (eval "$ac_link") 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest$ac_exeext && {
4478 test "$cross_compiling" = yes ||
4479 $as_test_x conftest$ac_exeext
4480 }; then
4481 ac_cv_func_gethostbyname=yes
4482 else
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_cv_func_gethostbyname=no
4489 rm -rf conftest.dSYM
4490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4491 conftest$ac_exeext conftest.$ac_ext
4493 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4494 $as_echo "$ac_cv_func_gethostbyname" >&6; }
4496 if test $ac_cv_func_gethostbyname = no; then
4497 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4498 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4499 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4500 $as_echo_n "(cached) " >&6
4501 else
4502 ac_check_lib_save_LIBS=$LIBS
4503 LIBS="-lnsl $LIBS"
4504 cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h. */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4511 /* Override any GCC internal prototype to avoid an error.
4512 Use char because int might match the return type of a GCC
4513 builtin and then its argument prototype would still apply. */
4514 #ifdef __cplusplus
4515 extern "C"
4516 #endif
4517 char gethostbyname ();
4519 main ()
4521 return gethostbyname ();
4523 return 0;
4525 _ACEOF
4526 rm -f conftest.$ac_objext conftest$ac_exeext
4527 if { (ac_try="$ac_link"
4528 case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531 esac
4532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4533 $as_echo "$ac_try_echo") >&5
4534 (eval "$ac_link") 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && {
4541 test -z "$ac_c_werror_flag" ||
4542 test ! -s conftest.err
4543 } && test -s conftest$ac_exeext && {
4544 test "$cross_compiling" = yes ||
4545 $as_test_x conftest$ac_exeext
4546 }; then
4547 ac_cv_lib_nsl_gethostbyname=yes
4548 else
4549 $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 ac_cv_lib_nsl_gethostbyname=no
4555 rm -rf conftest.dSYM
4556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4557 conftest$ac_exeext conftest.$ac_ext
4558 LIBS=$ac_check_lib_save_LIBS
4560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4561 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4562 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
4563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4566 if test $ac_cv_lib_nsl_gethostbyname = no; then
4567 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4568 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4569 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4571 else
4572 ac_check_lib_save_LIBS=$LIBS
4573 LIBS="-lbsd $LIBS"
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4581 /* Override any GCC internal prototype to avoid an error.
4582 Use char because int might match the return type of a GCC
4583 builtin and then its argument prototype would still apply. */
4584 #ifdef __cplusplus
4585 extern "C"
4586 #endif
4587 char gethostbyname ();
4589 main ()
4591 return gethostbyname ();
4593 return 0;
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4603 $as_echo "$ac_try_echo") >&5
4604 (eval "$ac_link") 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && {
4611 test -z "$ac_c_werror_flag" ||
4612 test ! -s conftest.err
4613 } && test -s conftest$ac_exeext && {
4614 test "$cross_compiling" = yes ||
4615 $as_test_x conftest$ac_exeext
4616 }; then
4617 ac_cv_lib_bsd_gethostbyname=yes
4618 else
4619 $as_echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_lib_bsd_gethostbyname=no
4625 rm -rf conftest.dSYM
4626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4627 conftest$ac_exeext conftest.$ac_ext
4628 LIBS=$ac_check_lib_save_LIBS
4630 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4631 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4632 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
4633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4639 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4640 # socket/setsockopt and other routines are undefined under SCO ODT
4641 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4642 # on later versions), says Simon Leinen: it contains gethostby*
4643 # variants that don't use the name server (or something). -lsocket
4644 # must be given before -lnsl if both are needed. We assume that
4645 # if connect needs -lnsl, so does gethostbyname.
4646 { $as_echo "$as_me:$LINENO: checking for connect" >&5
4647 $as_echo_n "checking for connect... " >&6; }
4648 if test "${ac_cv_func_connect+set}" = set; then
4649 $as_echo_n "(cached) " >&6
4650 else
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4659 #define connect innocuous_connect
4661 /* System header to define __stub macros and hopefully few prototypes,
4662 which can conflict with char connect (); below.
4663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664 <limits.h> exists even on freestanding compilers. */
4666 #ifdef __STDC__
4667 # include <limits.h>
4668 #else
4669 # include <assert.h>
4670 #endif
4672 #undef connect
4674 /* Override any GCC internal prototype to avoid an error.
4675 Use char because int might match the return type of a GCC
4676 builtin and then its argument prototype would still apply. */
4677 #ifdef __cplusplus
4678 extern "C"
4679 #endif
4680 char connect ();
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined __stub_connect || defined __stub___connect
4685 choke me
4686 #endif
4689 main ()
4691 return connect ();
4693 return 0;
4695 _ACEOF
4696 rm -f conftest.$ac_objext conftest$ac_exeext
4697 if { (ac_try="$ac_link"
4698 case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701 esac
4702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703 $as_echo "$ac_try_echo") >&5
4704 (eval "$ac_link") 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && {
4711 test -z "$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4713 } && test -s conftest$ac_exeext && {
4714 test "$cross_compiling" = yes ||
4715 $as_test_x conftest$ac_exeext
4716 }; then
4717 ac_cv_func_connect=yes
4718 else
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_cv_func_connect=no
4725 rm -rf conftest.dSYM
4726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4727 conftest$ac_exeext conftest.$ac_ext
4729 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4730 $as_echo "$ac_cv_func_connect" >&6; }
4732 if test $ac_cv_func_connect = no; then
4733 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4734 $as_echo_n "checking for connect in -lsocket... " >&6; }
4735 if test "${ac_cv_lib_socket_connect+set}" = set; then
4736 $as_echo_n "(cached) " >&6
4737 else
4738 ac_check_lib_save_LIBS=$LIBS
4739 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4747 /* Override any GCC internal prototype to avoid an error.
4748 Use char because int might match the return type of a GCC
4749 builtin and then its argument prototype would still apply. */
4750 #ifdef __cplusplus
4751 extern "C"
4752 #endif
4753 char connect ();
4755 main ()
4757 return connect ();
4759 return 0;
4761 _ACEOF
4762 rm -f conftest.$ac_objext conftest$ac_exeext
4763 if { (ac_try="$ac_link"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770 (eval "$ac_link") 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } && {
4777 test -z "$ac_c_werror_flag" ||
4778 test ! -s conftest.err
4779 } && test -s conftest$ac_exeext && {
4780 test "$cross_compiling" = yes ||
4781 $as_test_x conftest$ac_exeext
4782 }; then
4783 ac_cv_lib_socket_connect=yes
4784 else
4785 $as_echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 ac_cv_lib_socket_connect=no
4791 rm -rf conftest.dSYM
4792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4793 conftest$ac_exeext conftest.$ac_ext
4794 LIBS=$ac_check_lib_save_LIBS
4796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4797 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4798 if test "x$ac_cv_lib_socket_connect" = x""yes; then
4799 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4804 # Guillermo Gomez says -lposix is necessary on A/UX.
4805 { $as_echo "$as_me:$LINENO: checking for remove" >&5
4806 $as_echo_n "checking for remove... " >&6; }
4807 if test "${ac_cv_func_remove+set}" = set; then
4808 $as_echo_n "(cached) " >&6
4809 else
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4818 #define remove innocuous_remove
4820 /* System header to define __stub macros and hopefully few prototypes,
4821 which can conflict with char remove (); below.
4822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 <limits.h> exists even on freestanding compilers. */
4825 #ifdef __STDC__
4826 # include <limits.h>
4827 #else
4828 # include <assert.h>
4829 #endif
4831 #undef remove
4833 /* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4836 #ifdef __cplusplus
4837 extern "C"
4838 #endif
4839 char remove ();
4840 /* The GNU C library defines this for functions which it implements
4841 to always fail with ENOSYS. Some functions are actually named
4842 something starting with __ and the normal name is an alias. */
4843 #if defined __stub_remove || defined __stub___remove
4844 choke me
4845 #endif
4848 main ()
4850 return remove ();
4852 return 0;
4854 _ACEOF
4855 rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_link") 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && {
4870 test -z "$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest$ac_exeext && {
4873 test "$cross_compiling" = yes ||
4874 $as_test_x conftest$ac_exeext
4875 }; then
4876 ac_cv_func_remove=yes
4877 else
4878 $as_echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_cv_func_remove=no
4884 rm -rf conftest.dSYM
4885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4886 conftest$ac_exeext conftest.$ac_ext
4888 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4889 $as_echo "$ac_cv_func_remove" >&6; }
4891 if test $ac_cv_func_remove = no; then
4892 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4893 $as_echo_n "checking for remove in -lposix... " >&6; }
4894 if test "${ac_cv_lib_posix_remove+set}" = set; then
4895 $as_echo_n "(cached) " >&6
4896 else
4897 ac_check_lib_save_LIBS=$LIBS
4898 LIBS="-lposix $LIBS"
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h. */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4906 /* Override any GCC internal prototype to avoid an error.
4907 Use char because int might match the return type of a GCC
4908 builtin and then its argument prototype would still apply. */
4909 #ifdef __cplusplus
4910 extern "C"
4911 #endif
4912 char remove ();
4914 main ()
4916 return remove ();
4918 return 0;
4920 _ACEOF
4921 rm -f conftest.$ac_objext conftest$ac_exeext
4922 if { (ac_try="$ac_link"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929 (eval "$ac_link") 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && {
4936 test -z "$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 } && test -s conftest$ac_exeext && {
4939 test "$cross_compiling" = yes ||
4940 $as_test_x conftest$ac_exeext
4941 }; then
4942 ac_cv_lib_posix_remove=yes
4943 else
4944 $as_echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_cv_lib_posix_remove=no
4950 rm -rf conftest.dSYM
4951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4952 conftest$ac_exeext conftest.$ac_ext
4953 LIBS=$ac_check_lib_save_LIBS
4955 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4956 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4957 if test "x$ac_cv_lib_posix_remove" = x""yes; then
4958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4963 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4964 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
4965 $as_echo_n "checking for shmat... " >&6; }
4966 if test "${ac_cv_func_shmat+set}" = set; then
4967 $as_echo_n "(cached) " >&6
4968 else
4969 cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h. */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4977 #define shmat innocuous_shmat
4979 /* System header to define __stub macros and hopefully few prototypes,
4980 which can conflict with char shmat (); below.
4981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4982 <limits.h> exists even on freestanding compilers. */
4984 #ifdef __STDC__
4985 # include <limits.h>
4986 #else
4987 # include <assert.h>
4988 #endif
4990 #undef shmat
4992 /* Override any GCC internal prototype to avoid an error.
4993 Use char because int might match the return type of a GCC
4994 builtin and then its argument prototype would still apply. */
4995 #ifdef __cplusplus
4996 extern "C"
4997 #endif
4998 char shmat ();
4999 /* The GNU C library defines this for functions which it implements
5000 to always fail with ENOSYS. Some functions are actually named
5001 something starting with __ and the normal name is an alias. */
5002 #if defined __stub_shmat || defined __stub___shmat
5003 choke me
5004 #endif
5007 main ()
5009 return shmat ();
5011 return 0;
5013 _ACEOF
5014 rm -f conftest.$ac_objext conftest$ac_exeext
5015 if { (ac_try="$ac_link"
5016 case "(($ac_try" in
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5019 esac
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022 (eval "$ac_link") 2>conftest.er1
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } && {
5029 test -z "$ac_c_werror_flag" ||
5030 test ! -s conftest.err
5031 } && test -s conftest$ac_exeext && {
5032 test "$cross_compiling" = yes ||
5033 $as_test_x conftest$ac_exeext
5034 }; then
5035 ac_cv_func_shmat=yes
5036 else
5037 $as_echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_cv_func_shmat=no
5043 rm -rf conftest.dSYM
5044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5045 conftest$ac_exeext conftest.$ac_ext
5047 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5048 $as_echo "$ac_cv_func_shmat" >&6; }
5050 if test $ac_cv_func_shmat = no; then
5051 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5052 $as_echo_n "checking for shmat in -lipc... " >&6; }
5053 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5054 $as_echo_n "(cached) " >&6
5055 else
5056 ac_check_lib_save_LIBS=$LIBS
5057 LIBS="-lipc $LIBS"
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5065 /* Override any GCC internal prototype to avoid an error.
5066 Use char because int might match the return type of a GCC
5067 builtin and then its argument prototype would still apply. */
5068 #ifdef __cplusplus
5069 extern "C"
5070 #endif
5071 char shmat ();
5073 main ()
5075 return shmat ();
5077 return 0;
5079 _ACEOF
5080 rm -f conftest.$ac_objext conftest$ac_exeext
5081 if { (ac_try="$ac_link"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5087 $as_echo "$ac_try_echo") >&5
5088 (eval "$ac_link") 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && {
5095 test -z "$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 } && test -s conftest$ac_exeext && {
5098 test "$cross_compiling" = yes ||
5099 $as_test_x conftest$ac_exeext
5100 }; then
5101 ac_cv_lib_ipc_shmat=yes
5102 else
5103 $as_echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 ac_cv_lib_ipc_shmat=no
5109 rm -rf conftest.dSYM
5110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5111 conftest$ac_exeext conftest.$ac_ext
5112 LIBS=$ac_check_lib_save_LIBS
5114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5115 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5116 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
5117 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5123 # Check for libraries that X11R6 Xt/Xaw programs need.
5124 ac_save_LDFLAGS=$LDFLAGS
5125 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5126 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5127 # check for ICE first), but we must link in the order -lSM -lICE or
5128 # we get undefined symbols. So assume we have SM if we have ICE.
5129 # These have to be linked with before -lX11, unlike the other
5130 # libraries we check for below, so use a different variable.
5131 # John Interrante, Karl Berry
5132 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5133 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5134 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5136 else
5137 ac_check_lib_save_LIBS=$LIBS
5138 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5146 /* Override any GCC internal prototype to avoid an error.
5147 Use char because int might match the return type of a GCC
5148 builtin and then its argument prototype would still apply. */
5149 #ifdef __cplusplus
5150 extern "C"
5151 #endif
5152 char IceConnectionNumber ();
5154 main ()
5156 return IceConnectionNumber ();
5158 return 0;
5160 _ACEOF
5161 rm -f conftest.$ac_objext conftest$ac_exeext
5162 if { (ac_try="$ac_link"
5163 case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166 esac
5167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5168 $as_echo "$ac_try_echo") >&5
5169 (eval "$ac_link") 2>conftest.er1
5170 ac_status=$?
5171 grep -v '^ *+' conftest.er1 >conftest.err
5172 rm -f conftest.er1
5173 cat conftest.err >&5
5174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } && {
5176 test -z "$ac_c_werror_flag" ||
5177 test ! -s conftest.err
5178 } && test -s conftest$ac_exeext && {
5179 test "$cross_compiling" = yes ||
5180 $as_test_x conftest$ac_exeext
5181 }; then
5182 ac_cv_lib_ICE_IceConnectionNumber=yes
5183 else
5184 $as_echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 ac_cv_lib_ICE_IceConnectionNumber=no
5190 rm -rf conftest.dSYM
5191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5192 conftest$ac_exeext conftest.$ac_ext
5193 LIBS=$ac_check_lib_save_LIBS
5195 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5196 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5197 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
5198 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5201 LDFLAGS=$ac_save_LDFLAGS
5210 ac_header_dirent=no
5211 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5212 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5213 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5214 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5216 $as_echo_n "(cached) " >&6
5217 else
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <sys/types.h>
5225 #include <$ac_hdr>
5228 main ()
5230 if ((DIR *) 0)
5231 return 0;
5233 return 0;
5235 _ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (ac_try="$ac_compile"
5238 case "(($ac_try" in
5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 *) ac_try_echo=$ac_try;;
5241 esac
5242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5243 $as_echo "$ac_try_echo") >&5
5244 (eval "$ac_compile") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && {
5251 test -z "$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5253 } && test -s conftest.$ac_objext; then
5254 eval "$as_ac_Header=yes"
5255 else
5256 $as_echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 eval "$as_ac_Header=no"
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_res=`eval 'as_val=${'$as_ac_Header'}
5265 $as_echo "$as_val"'`
5266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5267 $as_echo "$ac_res" >&6; }
5268 as_val=`eval 'as_val=${'$as_ac_Header'}
5269 $as_echo "$as_val"'`
5270 if test "x$as_val" = x""yes; then
5271 cat >>confdefs.h <<_ACEOF
5272 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5273 _ACEOF
5275 ac_header_dirent=$ac_hdr; break
5278 done
5279 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5280 if test $ac_header_dirent = dirent.h; then
5281 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5282 $as_echo_n "checking for library containing opendir... " >&6; }
5283 if test "${ac_cv_search_opendir+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5285 else
5286 ac_func_search_save_LIBS=$LIBS
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5294 /* Override any GCC internal prototype to avoid an error.
5295 Use char because int might match the return type of a GCC
5296 builtin and then its argument prototype would still apply. */
5297 #ifdef __cplusplus
5298 extern "C"
5299 #endif
5300 char opendir ();
5302 main ()
5304 return opendir ();
5306 return 0;
5308 _ACEOF
5309 for ac_lib in '' dir; do
5310 if test -z "$ac_lib"; then
5311 ac_res="none required"
5312 else
5313 ac_res=-l$ac_lib
5314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5316 rm -f conftest.$ac_objext conftest$ac_exeext
5317 if { (ac_try="$ac_link"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5323 $as_echo "$ac_try_echo") >&5
5324 (eval "$ac_link") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest$ac_exeext && {
5334 test "$cross_compiling" = yes ||
5335 $as_test_x conftest$ac_exeext
5336 }; then
5337 ac_cv_search_opendir=$ac_res
5338 else
5339 $as_echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -rf conftest.dSYM
5346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5347 conftest$ac_exeext
5348 if test "${ac_cv_search_opendir+set}" = set; then
5349 break
5351 done
5352 if test "${ac_cv_search_opendir+set}" = set; then
5354 else
5355 ac_cv_search_opendir=no
5357 rm conftest.$ac_ext
5358 LIBS=$ac_func_search_save_LIBS
5360 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5361 $as_echo "$ac_cv_search_opendir" >&6; }
5362 ac_res=$ac_cv_search_opendir
5363 if test "$ac_res" != no; then
5364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5368 else
5369 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5370 $as_echo_n "checking for library containing opendir... " >&6; }
5371 if test "${ac_cv_search_opendir+set}" = set; then
5372 $as_echo_n "(cached) " >&6
5373 else
5374 ac_func_search_save_LIBS=$LIBS
5375 cat >conftest.$ac_ext <<_ACEOF
5376 /* confdefs.h. */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5382 /* Override any GCC internal prototype to avoid an error.
5383 Use char because int might match the return type of a GCC
5384 builtin and then its argument prototype would still apply. */
5385 #ifdef __cplusplus
5386 extern "C"
5387 #endif
5388 char opendir ();
5390 main ()
5392 return opendir ();
5394 return 0;
5396 _ACEOF
5397 for ac_lib in '' x; do
5398 if test -z "$ac_lib"; then
5399 ac_res="none required"
5400 else
5401 ac_res=-l$ac_lib
5402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5404 rm -f conftest.$ac_objext conftest$ac_exeext
5405 if { (ac_try="$ac_link"
5406 case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5411 $as_echo "$ac_try_echo") >&5
5412 (eval "$ac_link") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest$ac_exeext && {
5422 test "$cross_compiling" = yes ||
5423 $as_test_x conftest$ac_exeext
5424 }; then
5425 ac_cv_search_opendir=$ac_res
5426 else
5427 $as_echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5433 rm -rf conftest.dSYM
5434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5435 conftest$ac_exeext
5436 if test "${ac_cv_search_opendir+set}" = set; then
5437 break
5439 done
5440 if test "${ac_cv_search_opendir+set}" = set; then
5442 else
5443 ac_cv_search_opendir=no
5445 rm conftest.$ac_ext
5446 LIBS=$ac_func_search_save_LIBS
5448 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5449 $as_echo "$ac_cv_search_opendir" >&6; }
5450 ac_res=$ac_cv_search_opendir
5451 if test "$ac_res" != no; then
5452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5458 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5459 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5460 if test "${ac_cv_path_GREP+set}" = set; then
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -z "$GREP"; then
5464 ac_path_GREP_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_prog in grep ggrep; do
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5474 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5475 # Check for GNU ac_path_GREP and select it if it is found.
5476 # Check for GNU $ac_path_GREP
5477 case `"$ac_path_GREP" --version 2>&1` in
5478 *GNU*)
5479 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5481 ac_count=0
5482 $as_echo_n 0123456789 >"conftest.in"
5483 while :
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 $as_echo 'GREP' >> "conftest.nl"
5489 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491 ac_count=`expr $ac_count + 1`
5492 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_GREP="$ac_path_GREP"
5495 ac_path_GREP_max=$ac_count
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5499 done
5500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501 esac
5503 $ac_path_GREP_found && break 3
5504 done
5505 done
5506 done
5507 IFS=$as_save_IFS
5508 if test -z "$ac_cv_path_GREP"; then
5509 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5510 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5511 { (exit 1); exit 1; }; }
5513 else
5514 ac_cv_path_GREP=$GREP
5518 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5519 $as_echo "$ac_cv_path_GREP" >&6; }
5520 GREP="$ac_cv_path_GREP"
5523 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5524 $as_echo_n "checking for egrep... " >&6; }
5525 if test "${ac_cv_path_EGREP+set}" = set; then
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5529 then ac_cv_path_EGREP="$GREP -E"
5530 else
5531 if test -z "$EGREP"; then
5532 ac_path_EGREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_prog in egrep; do
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5542 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5543 # Check for GNU ac_path_EGREP and select it if it is found.
5544 # Check for GNU $ac_path_EGREP
5545 case `"$ac_path_EGREP" --version 2>&1` in
5546 *GNU*)
5547 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5549 ac_count=0
5550 $as_echo_n 0123456789 >"conftest.in"
5551 while :
5553 cat "conftest.in" "conftest.in" >"conftest.tmp"
5554 mv "conftest.tmp" "conftest.in"
5555 cp "conftest.in" "conftest.nl"
5556 $as_echo 'EGREP' >> "conftest.nl"
5557 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5559 ac_count=`expr $ac_count + 1`
5560 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5561 # Best one so far, save it but keep looking for a better one
5562 ac_cv_path_EGREP="$ac_path_EGREP"
5563 ac_path_EGREP_max=$ac_count
5565 # 10*(2^10) chars as input seems more than enough
5566 test $ac_count -gt 10 && break
5567 done
5568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5569 esac
5571 $ac_path_EGREP_found && break 3
5572 done
5573 done
5574 done
5575 IFS=$as_save_IFS
5576 if test -z "$ac_cv_path_EGREP"; then
5577 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5578 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5579 { (exit 1); exit 1; }; }
5581 else
5582 ac_cv_path_EGREP=$EGREP
5587 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5588 $as_echo "$ac_cv_path_EGREP" >&6; }
5589 EGREP="$ac_cv_path_EGREP"
5592 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5593 $as_echo_n "checking for ANSI C header files... " >&6; }
5594 if test "${ac_cv_header_stdc+set}" = set; then
5595 $as_echo_n "(cached) " >&6
5596 else
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <stdlib.h>
5604 #include <stdarg.h>
5605 #include <string.h>
5606 #include <float.h>
5609 main ()
5613 return 0;
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5623 $as_echo "$ac_try_echo") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5634 ac_cv_header_stdc=yes
5635 else
5636 $as_echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_cv_header_stdc=no
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 if test $ac_cv_header_stdc = yes; then
5645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <string.h>
5654 _ACEOF
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "memchr" >/dev/null 2>&1; then
5658 else
5659 ac_cv_header_stdc=no
5661 rm -f conftest*
5665 if test $ac_cv_header_stdc = yes; then
5666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #include <stdlib.h>
5675 _ACEOF
5676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5677 $EGREP "free" >/dev/null 2>&1; then
5679 else
5680 ac_cv_header_stdc=no
5682 rm -f conftest*
5686 if test $ac_cv_header_stdc = yes; then
5687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5688 if test "$cross_compiling" = yes; then
5690 else
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <ctype.h>
5698 #include <stdlib.h>
5699 #if ((' ' & 0x0FF) == 0x020)
5700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5702 #else
5703 # define ISLOWER(c) \
5704 (('a' <= (c) && (c) <= 'i') \
5705 || ('j' <= (c) && (c) <= 'r') \
5706 || ('s' <= (c) && (c) <= 'z'))
5707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5708 #endif
5710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5712 main ()
5714 int i;
5715 for (i = 0; i < 256; i++)
5716 if (XOR (islower (i), ISLOWER (i))
5717 || toupper (i) != TOUPPER (i))
5718 return 2;
5719 return 0;
5721 _ACEOF
5722 rm -f conftest$ac_exeext
5723 if { (ac_try="$ac_link"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729 $as_echo "$ac_try_echo") >&5
5730 (eval "$ac_link") 2>&5
5731 ac_status=$?
5732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5734 { (case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5739 $as_echo "$ac_try_echo") >&5
5740 (eval "$ac_try") 2>&5
5741 ac_status=$?
5742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5745 else
5746 $as_echo "$as_me: program exited with status $ac_status" >&5
5747 $as_echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 ( exit $ac_status )
5751 ac_cv_header_stdc=no
5753 rm -rf conftest.dSYM
5754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5761 $as_echo "$ac_cv_header_stdc" >&6; }
5762 if test $ac_cv_header_stdc = yes; then
5764 cat >>confdefs.h <<\_ACEOF
5765 #define STDC_HEADERS 1
5766 _ACEOF
5771 # Check whether --enable-gtktest was given.
5772 if test "${enable_gtktest+set}" = set; then
5773 enableval=$enable_gtktest;
5774 else
5775 enable_gtktest=yes
5779 pkg_config_args=gtk+-2.0
5780 for module in .
5782 case "$module" in
5783 gthread)
5784 pkg_config_args="$pkg_config_args gthread-2.0"
5786 esac
5787 done
5789 no_gtk=""
5791 # Extract the first word of "pkg-config", so it can be a program name with args.
5792 set dummy pkg-config; ac_word=$2
5793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5796 $as_echo_n "(cached) " >&6
5797 else
5798 case $PKG_CONFIG in
5799 [\\/]* | ?:[\\/]*)
5800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5820 esac
5822 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5823 if test -n "$PKG_CONFIG"; then
5824 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5825 $as_echo "$PKG_CONFIG" >&6; }
5826 else
5827 { $as_echo "$as_me:$LINENO: result: no" >&5
5828 $as_echo "no" >&6; }
5833 if test x$PKG_CONFIG != xno ; then
5834 if pkg-config --atleast-pkgconfig-version 0.7 ; then
5836 else
5837 echo "*** pkg-config too old; version 0.7 or better required."
5838 no_gtk=yes
5839 PKG_CONFIG=no
5841 else
5842 no_gtk=yes
5845 min_gtk_version=2.4.0
5846 { $as_echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
5847 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
5849 if test x$PKG_CONFIG != xno ; then
5850 ## don't try to run the test against uninstalled libtool libs
5851 if $PKG_CONFIG --uninstalled $pkg_config_args; then
5852 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
5853 enable_gtktest=no
5856 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
5858 else
5859 no_gtk=yes
5863 if test x"$no_gtk" = x ; then
5864 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
5865 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
5866 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
5867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5868 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
5869 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5870 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
5871 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5872 if test "x$enable_gtktest" = "xyes" ; then
5873 ac_save_CFLAGS="$CFLAGS"
5874 ac_save_LIBS="$LIBS"
5875 CFLAGS="$CFLAGS $GTK_CFLAGS"
5876 LIBS="$GTK_LIBS $LIBS"
5877 rm -f conf.gtktest
5878 if test "$cross_compiling" = yes; then
5879 echo $ac_n "cross compiling; assumed OK... $ac_c"
5880 else
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5888 #include <gtk/gtk.h>
5889 #include <stdio.h>
5890 #include <stdlib.h>
5893 main ()
5895 int major, minor, micro;
5896 char *tmp_version;
5898 system ("touch conf.gtktest");
5900 /* HP/UX 9 (%@#!) writes to sscanf strings */
5901 tmp_version = g_strdup("$min_gtk_version");
5902 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5903 printf("%s, bad version string\n", "$min_gtk_version");
5904 exit(1);
5907 if ((gtk_major_version != $gtk_config_major_version) ||
5908 (gtk_minor_version != $gtk_config_minor_version) ||
5909 (gtk_micro_version != $gtk_config_micro_version))
5911 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
5912 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
5913 gtk_major_version, gtk_minor_version, gtk_micro_version);
5914 printf ("*** was found! If pkg-config was correct, then it is best\n");
5915 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
5916 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5917 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5918 printf("*** required on your system.\n");
5919 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
5920 printf("*** to point to the correct configuration files\n");
5922 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
5923 (gtk_minor_version != GTK_MINOR_VERSION) ||
5924 (gtk_micro_version != GTK_MICRO_VERSION))
5926 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
5927 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
5928 printf("*** library (version %d.%d.%d)\n",
5929 gtk_major_version, gtk_minor_version, gtk_micro_version);
5931 else
5933 if ((gtk_major_version > major) ||
5934 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5935 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
5937 return 0;
5939 else
5941 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
5942 gtk_major_version, gtk_minor_version, gtk_micro_version);
5943 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
5944 major, minor, micro);
5945 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
5946 printf("***\n");
5947 printf("*** If you have already installed a sufficiently new version, this error\n");
5948 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5949 printf("*** being found. The easiest way to fix this is to remove the old version\n");
5950 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
5951 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
5952 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5953 printf("*** so that the correct libraries are found at run-time))\n");
5956 return 1;
5959 _ACEOF
5960 rm -f conftest$ac_exeext
5961 if { (ac_try="$ac_link"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5967 $as_echo "$ac_try_echo") >&5
5968 (eval "$ac_link") 2>&5
5969 ac_status=$?
5970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5972 { (case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978 (eval "$ac_try") 2>&5
5979 ac_status=$?
5980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5983 else
5984 $as_echo "$as_me: program exited with status $ac_status" >&5
5985 $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ( exit $ac_status )
5989 no_gtk=yes
5991 rm -rf conftest.dSYM
5992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5996 CFLAGS="$ac_save_CFLAGS"
5997 LIBS="$ac_save_LIBS"
6000 if test "x$no_gtk" = x ; then
6001 { $as_echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
6002 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
6004 else
6005 { $as_echo "$as_me:$LINENO: result: no" >&5
6006 $as_echo "no" >&6; }
6007 if test "$PKG_CONFIG" = "no" ; then
6008 echo "*** A new enough version of pkg-config was not found."
6009 echo "*** See http://pkgconfig.sourceforge.net"
6010 else
6011 if test -f conf.gtktest ; then
6013 else
6014 echo "*** Could not run GTK+ test program, checking why..."
6015 ac_save_CFLAGS="$CFLAGS"
6016 ac_save_LIBS="$LIBS"
6017 CFLAGS="$CFLAGS $GTK_CFLAGS"
6018 LIBS="$LIBS $GTK_LIBS"
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6026 #include <gtk/gtk.h>
6027 #include <stdio.h>
6030 main ()
6032 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
6034 return 0;
6036 _ACEOF
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (ac_try="$ac_link"
6039 case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042 esac
6043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6044 $as_echo "$ac_try_echo") >&5
6045 (eval "$ac_link") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest$ac_exeext && {
6055 test "$cross_compiling" = yes ||
6056 $as_test_x conftest$ac_exeext
6057 }; then
6058 echo "*** The test program compiled, but did not run. This usually means"
6059 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
6060 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
6061 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6062 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6063 echo "*** is required on your system"
6064 echo "***"
6065 echo "*** If you have an old version installed, it is best to remove it, although"
6066 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6067 else
6068 $as_echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 echo "*** The test program failed to compile or link. See the file config.log for the"
6072 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
6075 rm -rf conftest.dSYM
6076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6077 conftest$ac_exeext conftest.$ac_ext
6078 CFLAGS="$ac_save_CFLAGS"
6079 LIBS="$ac_save_LIBS"
6082 GTK_CFLAGS=""
6083 GTK_LIBS=""
6088 rm -f conf.gtktest
6092 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6099 $as_echo_n "(cached) " >&6
6100 else
6101 case $PKG_CONFIG in
6102 [\\/]* | ?:[\\/]*)
6103 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6117 done
6118 done
6119 IFS=$as_save_IFS
6122 esac
6124 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6125 if test -n "$PKG_CONFIG"; then
6126 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6127 $as_echo "$PKG_CONFIG" >&6; }
6128 else
6129 { $as_echo "$as_me:$LINENO: result: no" >&5
6130 $as_echo "no" >&6; }
6135 if test -z "$ac_cv_path_PKG_CONFIG"; then
6136 ac_pt_PKG_CONFIG=$PKG_CONFIG
6137 # Extract the first word of "pkg-config", so it can be a program name with args.
6138 set dummy pkg-config; ac_word=$2
6139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6142 $as_echo_n "(cached) " >&6
6143 else
6144 case $ac_pt_PKG_CONFIG in
6145 [\\/]* | ?:[\\/]*)
6146 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6160 done
6161 done
6162 IFS=$as_save_IFS
6165 esac
6167 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6168 if test -n "$ac_pt_PKG_CONFIG"; then
6169 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6170 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6171 else
6172 { $as_echo "$as_me:$LINENO: result: no" >&5
6173 $as_echo "no" >&6; }
6176 if test "x$ac_pt_PKG_CONFIG" = x; then
6177 PKG_CONFIG=""
6178 else
6179 case $cross_compiling:$ac_tool_warned in
6180 yes:)
6181 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6183 ac_tool_warned=yes ;;
6184 esac
6185 PKG_CONFIG=$ac_pt_PKG_CONFIG
6187 else
6188 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6192 if test -n "$PKG_CONFIG"; then
6193 _pkg_min_version=0.9.0
6194 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6195 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6196 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6197 { $as_echo "$as_me:$LINENO: result: yes" >&5
6198 $as_echo "yes" >&6; }
6199 else
6200 { $as_echo "$as_me:$LINENO: result: no" >&5
6201 $as_echo "no" >&6; }
6202 PKG_CONFIG=""
6207 pkg_failed=no
6208 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
6209 $as_echo_n "checking for GTK... " >&6; }
6211 if test -n "$GTK_CFLAGS"; then
6212 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
6213 elif test -n "$PKG_CONFIG"; then
6214 if test -n "$PKG_CONFIG" && \
6215 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-2.0 gtk+-2.0\"") >&5
6216 ($PKG_CONFIG --exists --print-errors "gdk-2.0 gtk+-2.0") 2>&5
6217 ac_status=$?
6218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; then
6220 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 gtk+-2.0" 2>/dev/null`
6221 else
6222 pkg_failed=yes
6224 else
6225 pkg_failed=untried
6227 if test -n "$GTK_LIBS"; then
6228 pkg_cv_GTK_LIBS="$GTK_LIBS"
6229 elif test -n "$PKG_CONFIG"; then
6230 if test -n "$PKG_CONFIG" && \
6231 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdk-2.0 gtk+-2.0\"") >&5
6232 ($PKG_CONFIG --exists --print-errors "gdk-2.0 gtk+-2.0") 2>&5
6233 ac_status=$?
6234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; then
6236 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 gtk+-2.0" 2>/dev/null`
6237 else
6238 pkg_failed=yes
6240 else
6241 pkg_failed=untried
6246 if test $pkg_failed = yes; then
6248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6249 _pkg_short_errors_supported=yes
6250 else
6251 _pkg_short_errors_supported=no
6253 if test $_pkg_short_errors_supported = yes; then
6254 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gdk-2.0 gtk+-2.0" 2>&1`
6255 else
6256 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gdk-2.0 gtk+-2.0" 2>&1`
6258 # Put the nasty error message in config.log where it belongs
6259 echo "$GTK_PKG_ERRORS" >&5
6261 { $as_echo "$as_me:$LINENO: result: no" >&5
6262 $as_echo "no" >&6; }
6263 exit
6264 elif test $pkg_failed = untried; then
6265 exit
6266 else
6267 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
6268 GTK_LIBS=$pkg_cv_GTK_LIBS
6269 { $as_echo "$as_me:$LINENO: result: yes" >&5
6270 $as_echo "yes" >&6; }
6276 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6277 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6278 if test "${ac_cv_c_const+set}" = set; then
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6289 main ()
6291 /* FIXME: Include the comments suggested by Paul. */
6292 #ifndef __cplusplus
6293 /* Ultrix mips cc rejects this. */
6294 typedef int charset[2];
6295 const charset cs;
6296 /* SunOS 4.1.1 cc rejects this. */
6297 char const *const *pcpcc;
6298 char **ppc;
6299 /* NEC SVR4.0.2 mips cc rejects this. */
6300 struct point {int x, y;};
6301 static struct point const zero = {0,0};
6302 /* AIX XL C 1.02.0.0 rejects this.
6303 It does not let you subtract one const X* pointer from another in
6304 an arm of an if-expression whose if-part is not a constant
6305 expression */
6306 const char *g = "string";
6307 pcpcc = &g + (g ? g-g : 0);
6308 /* HPUX 7.0 cc rejects these. */
6309 ++pcpcc;
6310 ppc = (char**) pcpcc;
6311 pcpcc = (char const *const *) ppc;
6312 { /* SCO 3.2v4 cc rejects this. */
6313 char *t;
6314 char const *s = 0 ? (char *) 0 : (char const *) 0;
6316 *t++ = 0;
6317 if (s) return 0;
6319 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6320 int x[] = {25, 17};
6321 const int *foo = &x[0];
6322 ++foo;
6324 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6325 typedef const int *iptr;
6326 iptr p = 0;
6327 ++p;
6329 { /* AIX XL C 1.02.0.0 rejects this saying
6330 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6331 struct s { int j; const int *ap[3]; };
6332 struct s *b; b->j = 5;
6334 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6335 const int foo = 10;
6336 if (!foo) return 0;
6338 return !cs[0] && !zero.x;
6339 #endif
6342 return 0;
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (ac_try="$ac_compile"
6347 case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350 esac
6351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352 $as_echo "$ac_try_echo") >&5
6353 (eval "$ac_compile") 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest.$ac_objext; then
6363 ac_cv_c_const=yes
6364 else
6365 $as_echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_cv_c_const=no
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6374 $as_echo "$ac_cv_c_const" >&6; }
6375 if test $ac_cv_c_const = no; then
6377 cat >>confdefs.h <<\_ACEOF
6378 #define const /**/
6379 _ACEOF
6383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6394 inttypes.h stdint.h unistd.h
6396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 $as_echo_n "checking for $ac_header... " >&6; }
6399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6400 $as_echo_n "(cached) " >&6
6401 else
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6410 #include <$ac_header>
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6419 $as_echo "$ac_try_echo") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && {
6427 test -z "$ac_c_werror_flag" ||
6428 test ! -s conftest.err
6429 } && test -s conftest.$ac_objext; then
6430 eval "$as_ac_Header=yes"
6431 else
6432 $as_echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 eval "$as_ac_Header=no"
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 ac_res=`eval 'as_val=${'$as_ac_Header'}
6441 $as_echo "$as_val"'`
6442 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6443 $as_echo "$ac_res" >&6; }
6444 as_val=`eval 'as_val=${'$as_ac_Header'}
6445 $as_echo "$as_val"'`
6446 if test "x$as_val" = x""yes; then
6447 cat >>confdefs.h <<_ACEOF
6448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6449 _ACEOF
6453 done
6456 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6457 $as_echo_n "checking for pid_t... " >&6; }
6458 if test "${ac_cv_type_pid_t+set}" = set; then
6459 $as_echo_n "(cached) " >&6
6460 else
6461 ac_cv_type_pid_t=no
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6470 main ()
6472 if (sizeof (pid_t))
6473 return 0;
6475 return 0;
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6485 $as_echo "$ac_try_echo") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest.$ac_objext; then
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 $ac_includes_default
6504 main ()
6506 if (sizeof ((pid_t)))
6507 return 0;
6509 return 0;
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (ac_try="$ac_compile"
6514 case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517 esac
6518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6519 $as_echo "$ac_try_echo") >&5
6520 (eval "$ac_compile") 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && {
6527 test -z "$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 } && test -s conftest.$ac_objext; then
6531 else
6532 $as_echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 ac_cv_type_pid_t=yes
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 else
6540 $as_echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6549 $as_echo "$ac_cv_type_pid_t" >&6; }
6550 if test "x$ac_cv_type_pid_t" = x""yes; then
6552 else
6554 cat >>confdefs.h <<_ACEOF
6555 #define pid_t int
6556 _ACEOF
6560 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6561 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6562 if test "${ac_cv_header_time+set}" = set; then
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <sys/types.h>
6572 #include <sys/time.h>
6573 #include <time.h>
6576 main ()
6578 if ((struct tm *) 0)
6579 return 0;
6581 return 0;
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591 $as_echo "$ac_try_echo") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest.$ac_objext; then
6602 ac_cv_header_time=yes
6603 else
6604 $as_echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_cv_header_time=no
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6613 $as_echo "$ac_cv_header_time" >&6; }
6614 if test $ac_cv_header_time = yes; then
6616 cat >>confdefs.h <<\_ACEOF
6617 #define TIME_WITH_SYS_TIME 1
6618 _ACEOF
6624 for ac_header in stdlib.h
6626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6629 $as_echo_n "checking for $ac_header... " >&6; }
6630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6631 $as_echo_n "(cached) " >&6
6633 ac_res=`eval 'as_val=${'$as_ac_Header'}
6634 $as_echo "$as_val"'`
6635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6636 $as_echo "$ac_res" >&6; }
6637 else
6638 # Is the header compilable?
6639 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6640 $as_echo_n "checking $ac_header usability... " >&6; }
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 #include <$ac_header>
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (ac_try="$ac_compile"
6652 case "(($ac_try" in
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6655 esac
6656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6657 $as_echo "$ac_try_echo") >&5
6658 (eval "$ac_compile") 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && {
6665 test -z "$ac_c_werror_flag" ||
6666 test ! -s conftest.err
6667 } && test -s conftest.$ac_objext; then
6668 ac_header_compiler=yes
6669 else
6670 $as_echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_header_compiler=no
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6678 $as_echo "$ac_header_compiler" >&6; }
6680 # Is the header present?
6681 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6682 $as_echo_n "checking $ac_header presence... " >&6; }
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <$ac_header>
6690 _ACEOF
6691 if { (ac_try="$ac_cpp conftest.$ac_ext"
6692 case "(($ac_try" in
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6695 esac
6696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6697 $as_echo "$ac_try_echo") >&5
6698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } >/dev/null && {
6705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 }; then
6708 ac_header_preproc=yes
6709 else
6710 $as_echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_header_preproc=no
6716 rm -f conftest.err conftest.$ac_ext
6717 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6718 $as_echo "$ac_header_preproc" >&6; }
6720 # So? What about this header?
6721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6722 yes:no: )
6723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6724 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6726 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6727 ac_header_preproc=yes
6729 no:yes:* )
6730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6731 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6733 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6735 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6737 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6741 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6742 ( cat <<\_ASBOX
6743 ## ---------------------------------------------------- ##
6744 ## Report this to Heath Caldwell <hncaldwell@gmail.com> ##
6745 ## ---------------------------------------------------- ##
6746 _ASBOX
6747 ) | sed "s/^/$as_me: WARNING: /" >&2
6749 esac
6750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6751 $as_echo_n "checking for $ac_header... " >&6; }
6752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6753 $as_echo_n "(cached) " >&6
6754 else
6755 eval "$as_ac_Header=\$ac_header_preproc"
6757 ac_res=`eval 'as_val=${'$as_ac_Header'}
6758 $as_echo "$as_val"'`
6759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6760 $as_echo "$ac_res" >&6; }
6763 as_val=`eval 'as_val=${'$as_ac_Header'}
6764 $as_echo "$as_val"'`
6765 if test "x$as_val" = x""yes; then
6766 cat >>confdefs.h <<_ACEOF
6767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6768 _ACEOF
6772 done
6774 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6775 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6776 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test "$cross_compiling" = yes; then
6780 ac_cv_func_malloc_0_nonnull=no
6781 else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6789 # include <stdlib.h>
6790 #else
6791 char *malloc ();
6792 #endif
6795 main ()
6797 return ! malloc (0);
6799 return 0;
6801 _ACEOF
6802 rm -f conftest$ac_exeext
6803 if { (ac_try="$ac_link"
6804 case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807 esac
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_link") 2>&5
6811 ac_status=$?
6812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6814 { (case "(($ac_try" in
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6817 esac
6818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6819 $as_echo "$ac_try_echo") >&5
6820 (eval "$ac_try") 2>&5
6821 ac_status=$?
6822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 ac_cv_func_malloc_0_nonnull=yes
6825 else
6826 $as_echo "$as_me: program exited with status $ac_status" >&5
6827 $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 ( exit $ac_status )
6831 ac_cv_func_malloc_0_nonnull=no
6833 rm -rf conftest.dSYM
6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6839 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6840 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6841 if test $ac_cv_func_malloc_0_nonnull = yes; then
6843 cat >>confdefs.h <<\_ACEOF
6844 #define HAVE_MALLOC 1
6845 _ACEOF
6847 else
6848 cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_MALLOC 0
6850 _ACEOF
6852 case " $LIBOBJS " in
6853 *" malloc.$ac_objext "* ) ;;
6854 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6856 esac
6859 cat >>confdefs.h <<\_ACEOF
6860 #define malloc rpl_malloc
6861 _ACEOF
6867 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
6868 $as_echo_n "checking for working memcmp... " >&6; }
6869 if test "${ac_cv_func_memcmp_working+set}" = set; then
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test "$cross_compiling" = yes; then
6873 ac_cv_func_memcmp_working=no
6874 else
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6883 main ()
6886 /* Some versions of memcmp are not 8-bit clean. */
6887 char c0 = '\100', c1 = '\200', c2 = '\201';
6888 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6889 return 1;
6891 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6892 or more and with at least one buffer not starting on a 4-byte boundary.
6893 William Lewis provided this test program. */
6895 char foo[21];
6896 char bar[21];
6897 int i;
6898 for (i = 0; i < 4; i++)
6900 char *a = foo + i;
6901 char *b = bar + i;
6902 strcpy (a, "--------01111111");
6903 strcpy (b, "--------10000000");
6904 if (memcmp (a, b, 16) >= 0)
6905 return 1;
6907 return 0;
6911 return 0;
6913 _ACEOF
6914 rm -f conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6916 case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6921 $as_echo "$ac_try_echo") >&5
6922 (eval "$ac_link") 2>&5
6923 ac_status=$?
6924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6926 { (case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929 esac
6930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6931 $as_echo "$ac_try_echo") >&5
6932 (eval "$ac_try") 2>&5
6933 ac_status=$?
6934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; }; then
6936 ac_cv_func_memcmp_working=yes
6937 else
6938 $as_echo "$as_me: program exited with status $ac_status" >&5
6939 $as_echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 ( exit $ac_status )
6943 ac_cv_func_memcmp_working=no
6945 rm -rf conftest.dSYM
6946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6951 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6952 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6953 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6954 *" memcmp.$ac_objext "* ) ;;
6955 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6957 esac
6960 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6961 $as_echo_n "checking return type of signal handlers... " >&6; }
6962 if test "${ac_cv_type_signal+set}" = set; then
6963 $as_echo_n "(cached) " >&6
6964 else
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <sys/types.h>
6972 #include <signal.h>
6975 main ()
6977 return *(signal (0, 0)) (0) == 1;
6979 return 0;
6981 _ACEOF
6982 rm -f conftest.$ac_objext
6983 if { (ac_try="$ac_compile"
6984 case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987 esac
6988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6989 $as_echo "$ac_try_echo") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
7000 ac_cv_type_signal=int
7001 else
7002 $as_echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_cv_type_signal=void
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7011 $as_echo "$ac_cv_type_signal" >&6; }
7013 cat >>confdefs.h <<_ACEOF
7014 #define RETSIGTYPE $ac_cv_type_signal
7015 _ACEOF
7019 for ac_func in strftime
7021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7023 $as_echo_n "checking for $ac_func... " >&6; }
7024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7025 $as_echo_n "(cached) " >&6
7026 else
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h. */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7035 #define $ac_func innocuous_$ac_func
7037 /* System header to define __stub macros and hopefully few prototypes,
7038 which can conflict with char $ac_func (); below.
7039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7040 <limits.h> exists even on freestanding compilers. */
7042 #ifdef __STDC__
7043 # include <limits.h>
7044 #else
7045 # include <assert.h>
7046 #endif
7048 #undef $ac_func
7050 /* Override any GCC internal prototype to avoid an error.
7051 Use char because int might match the return type of a GCC
7052 builtin and then its argument prototype would still apply. */
7053 #ifdef __cplusplus
7054 extern "C"
7055 #endif
7056 char $ac_func ();
7057 /* The GNU C library defines this for functions which it implements
7058 to always fail with ENOSYS. Some functions are actually named
7059 something starting with __ and the normal name is an alias. */
7060 #if defined __stub_$ac_func || defined __stub___$ac_func
7061 choke me
7062 #endif
7065 main ()
7067 return $ac_func ();
7069 return 0;
7071 _ACEOF
7072 rm -f conftest.$ac_objext conftest$ac_exeext
7073 if { (ac_try="$ac_link"
7074 case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077 esac
7078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7079 $as_echo "$ac_try_echo") >&5
7080 (eval "$ac_link") 2>conftest.er1
7081 ac_status=$?
7082 grep -v '^ *+' conftest.er1 >conftest.err
7083 rm -f conftest.er1
7084 cat conftest.err >&5
7085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && {
7087 test -z "$ac_c_werror_flag" ||
7088 test ! -s conftest.err
7089 } && test -s conftest$ac_exeext && {
7090 test "$cross_compiling" = yes ||
7091 $as_test_x conftest$ac_exeext
7092 }; then
7093 eval "$as_ac_var=yes"
7094 else
7095 $as_echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 eval "$as_ac_var=no"
7101 rm -rf conftest.dSYM
7102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7103 conftest$ac_exeext conftest.$ac_ext
7105 ac_res=`eval 'as_val=${'$as_ac_var'}
7106 $as_echo "$as_val"'`
7107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7108 $as_echo "$ac_res" >&6; }
7109 as_val=`eval 'as_val=${'$as_ac_var'}
7110 $as_echo "$as_val"'`
7111 if test "x$as_val" = x""yes; then
7112 cat >>confdefs.h <<_ACEOF
7113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7114 _ACEOF
7116 else
7117 # strftime is in -lintl on SCO UNIX.
7118 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
7119 $as_echo_n "checking for strftime in -lintl... " >&6; }
7120 if test "${ac_cv_lib_intl_strftime+set}" = set; then
7121 $as_echo_n "(cached) " >&6
7122 else
7123 ac_check_lib_save_LIBS=$LIBS
7124 LIBS="-lintl $LIBS"
7125 cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h. */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7132 /* Override any GCC internal prototype to avoid an error.
7133 Use char because int might match the return type of a GCC
7134 builtin and then its argument prototype would still apply. */
7135 #ifdef __cplusplus
7136 extern "C"
7137 #endif
7138 char strftime ();
7140 main ()
7142 return strftime ();
7144 return 0;
7146 _ACEOF
7147 rm -f conftest.$ac_objext conftest$ac_exeext
7148 if { (ac_try="$ac_link"
7149 case "(($ac_try" in
7150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7151 *) ac_try_echo=$ac_try;;
7152 esac
7153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7154 $as_echo "$ac_try_echo") >&5
7155 (eval "$ac_link") 2>conftest.er1
7156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } && {
7162 test -z "$ac_c_werror_flag" ||
7163 test ! -s conftest.err
7164 } && test -s conftest$ac_exeext && {
7165 test "$cross_compiling" = yes ||
7166 $as_test_x conftest$ac_exeext
7167 }; then
7168 ac_cv_lib_intl_strftime=yes
7169 else
7170 $as_echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_cv_lib_intl_strftime=no
7176 rm -rf conftest.dSYM
7177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7178 conftest$ac_exeext conftest.$ac_ext
7179 LIBS=$ac_check_lib_save_LIBS
7181 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
7182 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
7183 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_STRFTIME 1
7186 _ACEOF
7188 LIBS="-lintl $LIBS"
7192 done
7195 for ac_func in mkdir
7197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7198 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7199 $as_echo_n "checking for $ac_func... " >&6; }
7200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7201 $as_echo_n "(cached) " >&6
7202 else
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h. */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7211 #define $ac_func innocuous_$ac_func
7213 /* System header to define __stub macros and hopefully few prototypes,
7214 which can conflict with char $ac_func (); below.
7215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7216 <limits.h> exists even on freestanding compilers. */
7218 #ifdef __STDC__
7219 # include <limits.h>
7220 #else
7221 # include <assert.h>
7222 #endif
7224 #undef $ac_func
7226 /* Override any GCC internal prototype to avoid an error.
7227 Use char because int might match the return type of a GCC
7228 builtin and then its argument prototype would still apply. */
7229 #ifdef __cplusplus
7230 extern "C"
7231 #endif
7232 char $ac_func ();
7233 /* The GNU C library defines this for functions which it implements
7234 to always fail with ENOSYS. Some functions are actually named
7235 something starting with __ and the normal name is an alias. */
7236 #if defined __stub_$ac_func || defined __stub___$ac_func
7237 choke me
7238 #endif
7241 main ()
7243 return $ac_func ();
7245 return 0;
7247 _ACEOF
7248 rm -f conftest.$ac_objext conftest$ac_exeext
7249 if { (ac_try="$ac_link"
7250 case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253 esac
7254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7255 $as_echo "$ac_try_echo") >&5
7256 (eval "$ac_link") 2>conftest.er1
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
7261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } && {
7263 test -z "$ac_c_werror_flag" ||
7264 test ! -s conftest.err
7265 } && test -s conftest$ac_exeext && {
7266 test "$cross_compiling" = yes ||
7267 $as_test_x conftest$ac_exeext
7268 }; then
7269 eval "$as_ac_var=yes"
7270 else
7271 $as_echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 eval "$as_ac_var=no"
7277 rm -rf conftest.dSYM
7278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7279 conftest$ac_exeext conftest.$ac_ext
7281 ac_res=`eval 'as_val=${'$as_ac_var'}
7282 $as_echo "$as_val"'`
7283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7284 $as_echo "$ac_res" >&6; }
7285 as_val=`eval 'as_val=${'$as_ac_var'}
7286 $as_echo "$as_val"'`
7287 if test "x$as_val" = x""yes; then
7288 cat >>confdefs.h <<_ACEOF
7289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7290 _ACEOF
7293 done
7296 ac_config_files="$ac_config_files Makefile"
7298 cat >confcache <<\_ACEOF
7299 # This file is a shell script that caches the results of configure
7300 # tests run on this system so they can be shared between configure
7301 # scripts and configure runs, see configure's option --config-cache.
7302 # It is not useful on other systems. If it contains results you don't
7303 # want to keep, you may remove or edit it.
7305 # config.status only pays attention to the cache file if you give it
7306 # the --recheck option to rerun configure.
7308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7310 # following values.
7312 _ACEOF
7314 # The following way of writing the cache mishandles newlines in values,
7315 # but we know of no workaround that is simple, portable, and efficient.
7316 # So, we kill variables containing newlines.
7317 # Ultrix sh set writes to stderr and can't be redirected directly,
7318 # and sets the high bit in the cache file unless we assign to the vars.
7320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7321 eval ac_val=\$$ac_var
7322 case $ac_val in #(
7323 *${as_nl}*)
7324 case $ac_var in #(
7325 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
7326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7327 esac
7328 case $ac_var in #(
7329 _ | IFS | as_nl) ;; #(
7330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7331 *) $as_unset $ac_var ;;
7332 esac ;;
7333 esac
7334 done
7336 (set) 2>&1 |
7337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7338 *${as_nl}ac_space=\ *)
7339 # `set' does not quote correctly, so add quotes (double-quote
7340 # substitution turns \\\\ into \\, and sed turns \\ into \).
7341 sed -n \
7342 "s/'/'\\\\''/g;
7343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7344 ;; #(
7346 # `set' quotes correctly as required by POSIX, so do not add quotes.
7347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7349 esac |
7350 sort
7352 sed '
7353 /^ac_cv_env_/b end
7354 t clear
7355 :clear
7356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7357 t end
7358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7359 :end' >>confcache
7360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7361 if test -w "$cache_file"; then
7362 test "x$cache_file" != "x/dev/null" &&
7363 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7364 $as_echo "$as_me: updating cache $cache_file" >&6;}
7365 cat confcache >$cache_file
7366 else
7367 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7368 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7371 rm -f confcache
7373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7374 # Let make expand exec_prefix.
7375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7377 DEFS=-DHAVE_CONFIG_H
7379 ac_libobjs=
7380 ac_ltlibobjs=
7381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7382 # 1. Remove the extension, and $U if already installed.
7383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7384 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7386 # will be set to the directory where LIBOBJS objects are built.
7387 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7388 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7389 done
7390 LIBOBJS=$ac_libobjs
7392 LTLIBOBJS=$ac_ltlibobjs
7395 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7396 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7397 Usually this means the macro was only invoked conditionally." >&5
7398 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
7399 Usually this means the macro was only invoked conditionally." >&2;}
7400 { (exit 1); exit 1; }; }
7402 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7403 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7404 Usually this means the macro was only invoked conditionally." >&5
7405 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7406 Usually this means the macro was only invoked conditionally." >&2;}
7407 { (exit 1); exit 1; }; }
7410 : ${CONFIG_STATUS=./config.status}
7411 ac_write_fail=0
7412 ac_clean_files_save=$ac_clean_files
7413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7414 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7416 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7417 #! $SHELL
7418 # Generated by $as_me.
7419 # Run this file to recreate the current configuration.
7420 # Compiler output produced by configure, useful for debugging
7421 # configure, is in config.log if it exists.
7423 debug=false
7424 ac_cs_recheck=false
7425 ac_cs_silent=false
7426 SHELL=\${CONFIG_SHELL-$SHELL}
7427 _ACEOF
7429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7430 ## --------------------- ##
7431 ## M4sh Initialization. ##
7432 ## --------------------- ##
7434 # Be more Bourne compatible
7435 DUALCASE=1; export DUALCASE # for MKS sh
7436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7437 emulate sh
7438 NULLCMD=:
7439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7440 # is contrary to our usage. Disable this feature.
7441 alias -g '${1+"$@"}'='"$@"'
7442 setopt NO_GLOB_SUBST
7443 else
7444 case `(set -o) 2>/dev/null` in
7445 *posix*) set -o posix ;;
7446 esac
7453 # PATH needs CR
7454 # Avoid depending upon Character Ranges.
7455 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7456 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7457 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7458 as_cr_digits='0123456789'
7459 as_cr_alnum=$as_cr_Letters$as_cr_digits
7461 as_nl='
7463 export as_nl
7464 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7465 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7467 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7468 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7469 as_echo='printf %s\n'
7470 as_echo_n='printf %s'
7471 else
7472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7474 as_echo_n='/usr/ucb/echo -n'
7475 else
7476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7477 as_echo_n_body='eval
7478 arg=$1;
7479 case $arg in
7480 *"$as_nl"*)
7481 expr "X$arg" : "X\\(.*\\)$as_nl";
7482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7483 esac;
7484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7486 export as_echo_n_body
7487 as_echo_n='sh -c $as_echo_n_body as_echo'
7489 export as_echo_body
7490 as_echo='sh -c $as_echo_body as_echo'
7493 # The user is always right.
7494 if test "${PATH_SEPARATOR+set}" != set; then
7495 PATH_SEPARATOR=:
7496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7498 PATH_SEPARATOR=';'
7502 # Support unset when possible.
7503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7504 as_unset=unset
7505 else
7506 as_unset=false
7510 # IFS
7511 # We need space, tab and new line, in precisely that order. Quoting is
7512 # there to prevent editors from complaining about space-tab.
7513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7514 # splitting by setting IFS to empty value.)
7515 IFS=" "" $as_nl"
7517 # Find who we are. Look in the path if we contain no directory separator.
7518 case $0 in
7519 *[\\/]* ) as_myself=$0 ;;
7520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7526 done
7527 IFS=$as_save_IFS
7530 esac
7531 # We did not find ourselves, most probably we were run as `sh COMMAND'
7532 # in which case we are not to be found in the path.
7533 if test "x$as_myself" = x; then
7534 as_myself=$0
7536 if test ! -f "$as_myself"; then
7537 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7538 { (exit 1); exit 1; }
7541 # Work around bugs in pre-3.0 UWIN ksh.
7542 for as_var in ENV MAIL MAILPATH
7543 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7544 done
7545 PS1='$ '
7546 PS2='> '
7547 PS4='+ '
7549 # NLS nuisances.
7550 LC_ALL=C
7551 export LC_ALL
7552 LANGUAGE=C
7553 export LANGUAGE
7555 # Required to use basename.
7556 if expr a : '\(a\)' >/dev/null 2>&1 &&
7557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7558 as_expr=expr
7559 else
7560 as_expr=false
7563 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7564 as_basename=basename
7565 else
7566 as_basename=false
7570 # Name of the executable.
7571 as_me=`$as_basename -- "$0" ||
7572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7573 X"$0" : 'X\(//\)$' \| \
7574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7575 $as_echo X/"$0" |
7576 sed '/^.*\/\([^/][^/]*\)\/*$/{
7577 s//\1/
7580 /^X\/\(\/\/\)$/{
7581 s//\1/
7584 /^X\/\(\/\).*/{
7585 s//\1/
7588 s/.*/./; q'`
7590 # CDPATH.
7591 $as_unset CDPATH
7595 as_lineno_1=$LINENO
7596 as_lineno_2=$LINENO
7597 test "x$as_lineno_1" != "x$as_lineno_2" &&
7598 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7600 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7601 # uniformly replaced by the line number. The first 'sed' inserts a
7602 # line-number line after each line using $LINENO; the second 'sed'
7603 # does the real work. The second script uses 'N' to pair each
7604 # line-number line with the line containing $LINENO, and appends
7605 # trailing '-' during substitution so that $LINENO is not a special
7606 # case at line end.
7607 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7608 # scripts with optimization help from Paolo Bonzini. Blame Lee
7609 # E. McMahon (1931-1989) for sed's syntax. :-)
7610 sed -n '
7612 /[$]LINENO/=
7613 ' <$as_myself |
7614 sed '
7615 s/[$]LINENO.*/&-/
7616 t lineno
7618 :lineno
7620 :loop
7621 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7622 t loop
7623 s/-\n.*//
7624 ' >$as_me.lineno &&
7625 chmod +x "$as_me.lineno" ||
7626 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7627 { (exit 1); exit 1; }; }
7629 # Don't try to exec as it changes $[0], causing all sort of problems
7630 # (the dirname of $[0] is not the place where we might find the
7631 # original and so on. Autoconf is especially sensitive to this).
7632 . "./$as_me.lineno"
7633 # Exit status is that of the last command.
7634 exit
7638 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7639 as_dirname=dirname
7640 else
7641 as_dirname=false
7644 ECHO_C= ECHO_N= ECHO_T=
7645 case `echo -n x` in
7646 -n*)
7647 case `echo 'x\c'` in
7648 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7649 *) ECHO_C='\c';;
7650 esac;;
7652 ECHO_N='-n';;
7653 esac
7654 if expr a : '\(a\)' >/dev/null 2>&1 &&
7655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7656 as_expr=expr
7657 else
7658 as_expr=false
7661 rm -f conf$$ conf$$.exe conf$$.file
7662 if test -d conf$$.dir; then
7663 rm -f conf$$.dir/conf$$.file
7664 else
7665 rm -f conf$$.dir
7666 mkdir conf$$.dir 2>/dev/null
7668 if (echo >conf$$.file) 2>/dev/null; then
7669 if ln -s conf$$.file conf$$ 2>/dev/null; then
7670 as_ln_s='ln -s'
7671 # ... but there are two gotchas:
7672 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7673 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7674 # In both cases, we have to default to `cp -p'.
7675 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7676 as_ln_s='cp -p'
7677 elif ln conf$$.file conf$$ 2>/dev/null; then
7678 as_ln_s=ln
7679 else
7680 as_ln_s='cp -p'
7682 else
7683 as_ln_s='cp -p'
7685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7686 rmdir conf$$.dir 2>/dev/null
7688 if mkdir -p . 2>/dev/null; then
7689 as_mkdir_p=:
7690 else
7691 test -d ./-p && rmdir ./-p
7692 as_mkdir_p=false
7695 if test -x / >/dev/null 2>&1; then
7696 as_test_x='test -x'
7697 else
7698 if ls -dL / >/dev/null 2>&1; then
7699 as_ls_L_option=L
7700 else
7701 as_ls_L_option=
7703 as_test_x='
7704 eval sh -c '\''
7705 if test -d "$1"; then
7706 test -d "$1/.";
7707 else
7708 case $1 in
7709 -*)set "./$1";;
7710 esac;
7711 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7712 ???[sx]*):;;*)false;;esac;fi
7713 '\'' sh
7716 as_executable_p=$as_test_x
7718 # Sed expression to map a string onto a valid CPP name.
7719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7721 # Sed expression to map a string onto a valid variable name.
7722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7725 exec 6>&1
7727 # Save the log message, to keep $[0] and so on meaningful, and to
7728 # report actual input values of CONFIG_FILES etc. instead of their
7729 # values after options handling.
7730 ac_log="
7731 This file was extended by wmstickynotes $as_me 0.1, which was
7732 generated by GNU Autoconf 2.63. Invocation command line was
7734 CONFIG_FILES = $CONFIG_FILES
7735 CONFIG_HEADERS = $CONFIG_HEADERS
7736 CONFIG_LINKS = $CONFIG_LINKS
7737 CONFIG_COMMANDS = $CONFIG_COMMANDS
7738 $ $0 $@
7740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7743 _ACEOF
7745 case $ac_config_files in *"
7746 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7747 esac
7749 case $ac_config_headers in *"
7750 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7751 esac
7754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7755 # Files that config.status was made for.
7756 config_files="$ac_config_files"
7757 config_headers="$ac_config_headers"
7758 config_commands="$ac_config_commands"
7760 _ACEOF
7762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7763 ac_cs_usage="\
7764 \`$as_me' instantiates files from templates according to the
7765 current configuration.
7767 Usage: $0 [OPTION]... [FILE]...
7769 -h, --help print this help, then exit
7770 -V, --version print version number and configuration settings, then exit
7771 -q, --quiet, --silent
7772 do not print progress messages
7773 -d, --debug don't remove temporary files
7774 --recheck update $as_me by reconfiguring in the same conditions
7775 --file=FILE[:TEMPLATE]
7776 instantiate the configuration file FILE
7777 --header=FILE[:TEMPLATE]
7778 instantiate the configuration header FILE
7780 Configuration files:
7781 $config_files
7783 Configuration headers:
7784 $config_headers
7786 Configuration commands:
7787 $config_commands
7789 Report bugs to <bug-autoconf@gnu.org>."
7791 _ACEOF
7792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7793 ac_cs_version="\\
7794 wmstickynotes config.status 0.1
7795 configured by $0, generated by GNU Autoconf 2.63,
7796 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7798 Copyright (C) 2008 Free Software Foundation, Inc.
7799 This config.status script is free software; the Free Software Foundation
7800 gives unlimited permission to copy, distribute and modify it."
7802 ac_pwd='$ac_pwd'
7803 srcdir='$srcdir'
7804 INSTALL='$INSTALL'
7805 MKDIR_P='$MKDIR_P'
7806 AWK='$AWK'
7807 test -n "\$AWK" || AWK=awk
7808 _ACEOF
7810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7811 # The default lists apply if the user does not specify any file.
7812 ac_need_defaults=:
7813 while test $# != 0
7815 case $1 in
7816 --*=*)
7817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7819 ac_shift=:
7822 ac_option=$1
7823 ac_optarg=$2
7824 ac_shift=shift
7826 esac
7828 case $ac_option in
7829 # Handling of the options.
7830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7831 ac_cs_recheck=: ;;
7832 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7833 $as_echo "$ac_cs_version"; exit ;;
7834 --debug | --debu | --deb | --de | --d | -d )
7835 debug=: ;;
7836 --file | --fil | --fi | --f )
7837 $ac_shift
7838 case $ac_optarg in
7839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7840 esac
7841 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
7842 ac_need_defaults=false;;
7843 --header | --heade | --head | --hea )
7844 $ac_shift
7845 case $ac_optarg in
7846 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7847 esac
7848 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
7849 ac_need_defaults=false;;
7850 --he | --h)
7851 # Conflict between --help and --header
7852 { $as_echo "$as_me: error: ambiguous option: $1
7853 Try \`$0 --help' for more information." >&2
7854 { (exit 1); exit 1; }; };;
7855 --help | --hel | -h )
7856 $as_echo "$ac_cs_usage"; exit ;;
7857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7858 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7859 ac_cs_silent=: ;;
7861 # This is an error.
7862 -*) { $as_echo "$as_me: error: unrecognized option: $1
7863 Try \`$0 --help' for more information." >&2
7864 { (exit 1); exit 1; }; } ;;
7866 *) ac_config_targets="$ac_config_targets $1"
7867 ac_need_defaults=false ;;
7869 esac
7870 shift
7871 done
7873 ac_configure_extra_args=
7875 if $ac_cs_silent; then
7876 exec 6>/dev/null
7877 ac_configure_extra_args="$ac_configure_extra_args --silent"
7880 _ACEOF
7881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7882 if \$ac_cs_recheck; then
7883 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7884 shift
7885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7886 CONFIG_SHELL='$SHELL'
7887 export CONFIG_SHELL
7888 exec "\$@"
7891 _ACEOF
7892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7893 exec 5>>config.log
7895 echo
7896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7897 ## Running $as_me. ##
7898 _ASBOX
7899 $as_echo "$ac_log"
7900 } >&5
7902 _ACEOF
7903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7905 # INIT-COMMANDS
7907 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7909 _ACEOF
7911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7913 # Handling of arguments.
7914 for ac_config_target in $ac_config_targets
7916 case $ac_config_target in
7917 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7918 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7919 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7921 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7922 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7923 { (exit 1); exit 1; }; };;
7924 esac
7925 done
7928 # If the user did not use the arguments to specify the items to instantiate,
7929 # then the envvar interface is used. Set only those that are not.
7930 # We use the long form for the default assignment because of an extremely
7931 # bizarre bug on SunOS 4.1.3.
7932 if $ac_need_defaults; then
7933 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7934 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7935 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7938 # Have a temporary directory for convenience. Make it in the build tree
7939 # simply because there is no reason against having it here, and in addition,
7940 # creating and moving files from /tmp can sometimes cause problems.
7941 # Hook for its removal unless debugging.
7942 # Note that there is a small window in which the directory will not be cleaned:
7943 # after its creation but before its name has been assigned to `$tmp'.
7944 $debug ||
7946 tmp=
7947 trap 'exit_status=$?
7948 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7950 trap '{ (exit 1); exit 1; }' 1 2 13 15
7952 # Create a (secure) tmp directory for tmp files.
7955 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7956 test -n "$tmp" && test -d "$tmp"
7957 } ||
7959 tmp=./conf$$-$RANDOM
7960 (umask 077 && mkdir "$tmp")
7961 } ||
7963 $as_echo "$as_me: cannot create a temporary directory in ." >&2
7964 { (exit 1); exit 1; }
7967 # Set up the scripts for CONFIG_FILES section.
7968 # No need to generate them if there are no CONFIG_FILES.
7969 # This happens for instance with `./config.status config.h'.
7970 if test -n "$CONFIG_FILES"; then
7973 ac_cr=' '
7974 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7975 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7976 ac_cs_awk_cr='\\r'
7977 else
7978 ac_cs_awk_cr=$ac_cr
7981 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7982 _ACEOF
7986 echo "cat >conf$$subs.awk <<_ACEOF" &&
7987 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7988 echo "_ACEOF"
7989 } >conf$$subs.sh ||
7990 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7991 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7992 { (exit 1); exit 1; }; }
7993 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7994 ac_delim='%!_!# '
7995 for ac_last_try in false false false false false :; do
7996 . ./conf$$subs.sh ||
7997 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7998 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7999 { (exit 1); exit 1; }; }
8001 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8002 if test $ac_delim_n = $ac_delim_num; then
8003 break
8004 elif $ac_last_try; then
8005 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8006 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8007 { (exit 1); exit 1; }; }
8008 else
8009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8011 done
8012 rm -f conf$$subs.sh
8014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8015 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8016 _ACEOF
8017 sed -n '
8019 s/^/S["/; s/!.*/"]=/
8022 s/^[^!]*!//
8023 :repl
8024 t repl
8025 s/'"$ac_delim"'$//
8026 t delim
8029 s/\(.\{148\}\).*/\1/
8030 t more1
8031 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8034 b repl
8035 :more1
8036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8039 s/.\{148\}//
8040 t nl
8041 :delim
8043 s/\(.\{148\}\).*/\1/
8044 t more2
8045 s/["\\]/\\&/g; s/^/"/; s/$/"/
8048 :more2
8049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8052 s/.\{148\}//
8053 t delim
8054 ' <conf$$subs.awk | sed '
8055 /^[^""]/{
8057 s/\n//
8059 ' >>$CONFIG_STATUS || ac_write_fail=1
8060 rm -f conf$$subs.awk
8061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8062 _ACAWK
8063 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8064 for (key in S) S_is_set[key] = 1
8065 FS = "\a"
8069 line = $ 0
8070 nfields = split(line, field, "@")
8071 substed = 0
8072 len = length(field[1])
8073 for (i = 2; i < nfields; i++) {
8074 key = field[i]
8075 keylen = length(key)
8076 if (S_is_set[key]) {
8077 value = S[key]
8078 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8079 len += length(value) + length(field[++i])
8080 substed = 1
8081 } else
8082 len += 1 + keylen
8085 print line
8088 _ACAWK
8089 _ACEOF
8090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8091 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8092 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8093 else
8095 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8096 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
8097 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
8098 { (exit 1); exit 1; }; }
8099 _ACEOF
8101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8103 # trailing colons and then remove the whole line if VPATH becomes empty
8104 # (actually we leave an empty line to preserve line numbers).
8105 if test "x$srcdir" = x.; then
8106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8107 s/:*\$(srcdir):*/:/
8108 s/:*\${srcdir}:*/:/
8109 s/:*@srcdir@:*/:/
8110 s/^\([^=]*=[ ]*\):*/\1/
8111 s/:*$//
8112 s/^[^=]*=[ ]*$//
8116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8117 fi # test -n "$CONFIG_FILES"
8119 # Set up the scripts for CONFIG_HEADERS section.
8120 # No need to generate them if there are no CONFIG_HEADERS.
8121 # This happens for instance with `./config.status Makefile'.
8122 if test -n "$CONFIG_HEADERS"; then
8123 cat >"$tmp/defines.awk" <<\_ACAWK ||
8124 BEGIN {
8125 _ACEOF
8127 # Transform confdefs.h into an awk script `defines.awk', embedded as
8128 # here-document in config.status, that substitutes the proper values into
8129 # config.h.in to produce config.h.
8131 # Create a delimiter string that does not exist in confdefs.h, to ease
8132 # handling of long lines.
8133 ac_delim='%!_!# '
8134 for ac_last_try in false false :; do
8135 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8136 if test -z "$ac_t"; then
8137 break
8138 elif $ac_last_try; then
8139 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
8140 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
8141 { (exit 1); exit 1; }; }
8142 else
8143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8145 done
8147 # For the awk script, D is an array of macro values keyed by name,
8148 # likewise P contains macro parameters if any. Preserve backslash
8149 # newline sequences.
8151 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8152 sed -n '
8153 s/.\{148\}/&'"$ac_delim"'/g
8154 t rset
8155 :rset
8156 s/^[ ]*#[ ]*define[ ][ ]*/ /
8157 t def
8159 :def
8160 s/\\$//
8161 t bsnl
8162 s/["\\]/\\&/g
8163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8164 D["\1"]=" \3"/p
8165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8167 :bsnl
8168 s/["\\]/\\&/g
8169 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8170 D["\1"]=" \3\\\\\\n"\\/p
8171 t cont
8172 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8173 t cont
8175 :cont
8177 s/.\{148\}/&'"$ac_delim"'/g
8178 t clear
8179 :clear
8180 s/\\$//
8181 t bsnlc
8182 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8184 :bsnlc
8185 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8186 b cont
8187 ' <confdefs.h | sed '
8188 s/'"$ac_delim"'/"\\\
8189 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8192 for (key in D) D_is_set[key] = 1
8193 FS = "\a"
8195 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8196 line = \$ 0
8197 split(line, arg, " ")
8198 if (arg[1] == "#") {
8199 defundef = arg[2]
8200 mac1 = arg[3]
8201 } else {
8202 defundef = substr(arg[1], 2)
8203 mac1 = arg[2]
8205 split(mac1, mac2, "(") #)
8206 macro = mac2[1]
8207 prefix = substr(line, 1, index(line, defundef) - 1)
8208 if (D_is_set[macro]) {
8209 # Preserve the white space surrounding the "#".
8210 print prefix "define", macro P[macro] D[macro]
8211 next
8212 } else {
8213 # Replace #undef with comments. This is necessary, for example,
8214 # in the case of _POSIX_SOURCE, which is predefined and required
8215 # on some systems where configure will not decide to define it.
8216 if (defundef == "undef") {
8217 print "/*", prefix defundef, macro, "*/"
8218 next
8222 { print }
8223 _ACAWK
8224 _ACEOF
8225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8226 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
8227 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
8228 { (exit 1); exit 1; }; }
8229 fi # test -n "$CONFIG_HEADERS"
8232 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8233 shift
8234 for ac_tag
8236 case $ac_tag in
8237 :[FHLC]) ac_mode=$ac_tag; continue;;
8238 esac
8239 case $ac_mode$ac_tag in
8240 :[FHL]*:*);;
8241 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
8242 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
8243 { (exit 1); exit 1; }; };;
8244 :[FH]-) ac_tag=-:-;;
8245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8246 esac
8247 ac_save_IFS=$IFS
8248 IFS=:
8249 set x $ac_tag
8250 IFS=$ac_save_IFS
8251 shift
8252 ac_file=$1
8253 shift
8255 case $ac_mode in
8256 :L) ac_source=$1;;
8257 :[FH])
8258 ac_file_inputs=
8259 for ac_f
8261 case $ac_f in
8262 -) ac_f="$tmp/stdin";;
8263 *) # Look for the file first in the build tree, then in the source tree
8264 # (if the path is not absolute). The absolute path cannot be DOS-style,
8265 # because $ac_f cannot contain `:'.
8266 test -f "$ac_f" ||
8267 case $ac_f in
8268 [\\/$]*) false;;
8269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8270 esac ||
8271 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8272 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8273 { (exit 1); exit 1; }; };;
8274 esac
8275 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8276 ac_file_inputs="$ac_file_inputs '$ac_f'"
8277 done
8279 # Let's still pretend it is `configure' which instantiates (i.e., don't
8280 # use $as_me), people would be surprised to read:
8281 # /* config.h. Generated by config.status. */
8282 configure_input='Generated from '`
8283 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8284 `' by configure.'
8285 if test x"$ac_file" != x-; then
8286 configure_input="$ac_file. $configure_input"
8287 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
8288 $as_echo "$as_me: creating $ac_file" >&6;}
8290 # Neutralize special characters interpreted by sed in replacement strings.
8291 case $configure_input in #(
8292 *\&* | *\|* | *\\* )
8293 ac_sed_conf_input=`$as_echo "$configure_input" |
8294 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8295 *) ac_sed_conf_input=$configure_input;;
8296 esac
8298 case $ac_tag in
8299 *:-:* | *:-) cat >"$tmp/stdin" \
8300 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8301 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8302 { (exit 1); exit 1; }; } ;;
8303 esac
8305 esac
8307 ac_dir=`$as_dirname -- "$ac_file" ||
8308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8309 X"$ac_file" : 'X\(//\)[^/]' \| \
8310 X"$ac_file" : 'X\(//\)$' \| \
8311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8312 $as_echo X"$ac_file" |
8313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8314 s//\1/
8317 /^X\(\/\/\)[^/].*/{
8318 s//\1/
8321 /^X\(\/\/\)$/{
8322 s//\1/
8325 /^X\(\/\).*/{
8326 s//\1/
8329 s/.*/./; q'`
8330 { as_dir="$ac_dir"
8331 case $as_dir in #(
8332 -*) as_dir=./$as_dir;;
8333 esac
8334 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8335 as_dirs=
8336 while :; do
8337 case $as_dir in #(
8338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8339 *) as_qdir=$as_dir;;
8340 esac
8341 as_dirs="'$as_qdir' $as_dirs"
8342 as_dir=`$as_dirname -- "$as_dir" ||
8343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8344 X"$as_dir" : 'X\(//\)[^/]' \| \
8345 X"$as_dir" : 'X\(//\)$' \| \
8346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8347 $as_echo X"$as_dir" |
8348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8349 s//\1/
8352 /^X\(\/\/\)[^/].*/{
8353 s//\1/
8356 /^X\(\/\/\)$/{
8357 s//\1/
8360 /^X\(\/\).*/{
8361 s//\1/
8364 s/.*/./; q'`
8365 test -d "$as_dir" && break
8366 done
8367 test -z "$as_dirs" || eval "mkdir $as_dirs"
8368 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8369 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8370 { (exit 1); exit 1; }; }; }
8371 ac_builddir=.
8373 case "$ac_dir" in
8374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8376 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8377 # A ".." for each directory in $ac_dir_suffix.
8378 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8379 case $ac_top_builddir_sub in
8380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8382 esac ;;
8383 esac
8384 ac_abs_top_builddir=$ac_pwd
8385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8386 # for backward compatibility:
8387 ac_top_builddir=$ac_top_build_prefix
8389 case $srcdir in
8390 .) # We are building in place.
8391 ac_srcdir=.
8392 ac_top_srcdir=$ac_top_builddir_sub
8393 ac_abs_top_srcdir=$ac_pwd ;;
8394 [\\/]* | ?:[\\/]* ) # Absolute name.
8395 ac_srcdir=$srcdir$ac_dir_suffix;
8396 ac_top_srcdir=$srcdir
8397 ac_abs_top_srcdir=$srcdir ;;
8398 *) # Relative name.
8399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8400 ac_top_srcdir=$ac_top_build_prefix$srcdir
8401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8402 esac
8403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8406 case $ac_mode in
8409 # CONFIG_FILE
8412 case $INSTALL in
8413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8414 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8415 esac
8416 ac_MKDIR_P=$MKDIR_P
8417 case $MKDIR_P in
8418 [\\/$]* | ?:[\\/]* ) ;;
8419 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8420 esac
8421 _ACEOF
8423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8424 # If the template does not know about datarootdir, expand it.
8425 # FIXME: This hack should be removed a few years after 2.60.
8426 ac_datarootdir_hack=; ac_datarootdir_seen=
8428 ac_sed_dataroot='
8429 /datarootdir/ {
8433 /@datadir@/p
8434 /@docdir@/p
8435 /@infodir@/p
8436 /@localedir@/p
8437 /@mandir@/p
8439 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8440 *datarootdir*) ac_datarootdir_seen=yes;;
8441 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8442 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8443 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8444 _ACEOF
8445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8446 ac_datarootdir_hack='
8447 s&@datadir@&$datadir&g
8448 s&@docdir@&$docdir&g
8449 s&@infodir@&$infodir&g
8450 s&@localedir@&$localedir&g
8451 s&@mandir@&$mandir&g
8452 s&\\\${datarootdir}&$datarootdir&g' ;;
8453 esac
8454 _ACEOF
8456 # Neutralize VPATH when `$srcdir' = `.'.
8457 # Shell code in configure.ac might set extrasub.
8458 # FIXME: do we really want to maintain this feature?
8459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8460 ac_sed_extra="$ac_vpsub
8461 $extrasub
8462 _ACEOF
8463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8466 s|@configure_input@|$ac_sed_conf_input|;t t
8467 s&@top_builddir@&$ac_top_builddir_sub&;t t
8468 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8469 s&@srcdir@&$ac_srcdir&;t t
8470 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8471 s&@top_srcdir@&$ac_top_srcdir&;t t
8472 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8473 s&@builddir@&$ac_builddir&;t t
8474 s&@abs_builddir@&$ac_abs_builddir&;t t
8475 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8476 s&@INSTALL@&$ac_INSTALL&;t t
8477 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8478 $ac_datarootdir_hack
8480 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8481 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8482 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8483 { (exit 1); exit 1; }; }
8485 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8486 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8487 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8488 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8489 which seems to be undefined. Please make sure it is defined." >&5
8490 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8491 which seems to be undefined. Please make sure it is defined." >&2;}
8493 rm -f "$tmp/stdin"
8494 case $ac_file in
8495 -) cat "$tmp/out" && rm -f "$tmp/out";;
8496 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8497 esac \
8498 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8499 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8500 { (exit 1); exit 1; }; }
8504 # CONFIG_HEADER
8506 if test x"$ac_file" != x-; then
8508 $as_echo "/* $configure_input */" \
8509 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8510 } >"$tmp/config.h" \
8511 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8512 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8513 { (exit 1); exit 1; }; }
8514 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8515 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8516 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8517 else
8518 rm -f "$ac_file"
8519 mv "$tmp/config.h" "$ac_file" \
8520 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8521 $as_echo "$as_me: error: could not create $ac_file" >&2;}
8522 { (exit 1); exit 1; }; }
8524 else
8525 $as_echo "/* $configure_input */" \
8526 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8527 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
8528 $as_echo "$as_me: error: could not create -" >&2;}
8529 { (exit 1); exit 1; }; }
8531 # Compute "$ac_file"'s index in $config_headers.
8532 _am_arg="$ac_file"
8533 _am_stamp_count=1
8534 for _am_header in $config_headers :; do
8535 case $_am_header in
8536 $_am_arg | $_am_arg:* )
8537 break ;;
8539 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8540 esac
8541 done
8542 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8543 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8544 X"$_am_arg" : 'X\(//\)[^/]' \| \
8545 X"$_am_arg" : 'X\(//\)$' \| \
8546 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8547 $as_echo X"$_am_arg" |
8548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8549 s//\1/
8552 /^X\(\/\/\)[^/].*/{
8553 s//\1/
8556 /^X\(\/\/\)$/{
8557 s//\1/
8560 /^X\(\/\).*/{
8561 s//\1/
8564 s/.*/./; q'`/stamp-h$_am_stamp_count
8567 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
8568 $as_echo "$as_me: executing $ac_file commands" >&6;}
8570 esac
8573 case $ac_file$ac_mode in
8574 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
8575 # are listed without --file. Let's play safe and only enable the eval
8576 # if we detect the quoting.
8577 case $CONFIG_FILES in
8578 *\'*) eval set x "$CONFIG_FILES" ;;
8579 *) set x $CONFIG_FILES ;;
8580 esac
8581 shift
8582 for mf
8584 # Strip MF so we end up with the name of the file.
8585 mf=`echo "$mf" | sed -e 's/:.*$//'`
8586 # Check whether this is an Automake generated Makefile or not.
8587 # We used to match only the files named `Makefile.in', but
8588 # some people rename them; so instead we look at the file content.
8589 # Grep'ing the first line is not enough: some people post-process
8590 # each Makefile.in and add a new line on top of each file to say so.
8591 # Grep'ing the whole file is not good either: AIX grep has a line
8592 # limit of 2048, but all sed's we know have understand at least 4000.
8593 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8594 dirpart=`$as_dirname -- "$mf" ||
8595 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8596 X"$mf" : 'X\(//\)[^/]' \| \
8597 X"$mf" : 'X\(//\)$' \| \
8598 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8599 $as_echo X"$mf" |
8600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8601 s//\1/
8604 /^X\(\/\/\)[^/].*/{
8605 s//\1/
8608 /^X\(\/\/\)$/{
8609 s//\1/
8612 /^X\(\/\).*/{
8613 s//\1/
8616 s/.*/./; q'`
8617 else
8618 continue
8620 # Extract the definition of DEPDIR, am__include, and am__quote
8621 # from the Makefile without running `make'.
8622 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8623 test -z "$DEPDIR" && continue
8624 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8625 test -z "am__include" && continue
8626 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8627 # When using ansi2knr, U may be empty or an underscore; expand it
8628 U=`sed -n 's/^U = //p' < "$mf"`
8629 # Find all dependency output files, they are included files with
8630 # $(DEPDIR) in their names. We invoke sed twice because it is the
8631 # simplest approach to changing $(DEPDIR) to its actual value in the
8632 # expansion.
8633 for file in `sed -n "
8634 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8635 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8636 # Make sure the directory exists.
8637 test -f "$dirpart/$file" && continue
8638 fdir=`$as_dirname -- "$file" ||
8639 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8640 X"$file" : 'X\(//\)[^/]' \| \
8641 X"$file" : 'X\(//\)$' \| \
8642 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8643 $as_echo X"$file" |
8644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8645 s//\1/
8648 /^X\(\/\/\)[^/].*/{
8649 s//\1/
8652 /^X\(\/\/\)$/{
8653 s//\1/
8656 /^X\(\/\).*/{
8657 s//\1/
8660 s/.*/./; q'`
8661 { as_dir=$dirpart/$fdir
8662 case $as_dir in #(
8663 -*) as_dir=./$as_dir;;
8664 esac
8665 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8666 as_dirs=
8667 while :; do
8668 case $as_dir in #(
8669 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8670 *) as_qdir=$as_dir;;
8671 esac
8672 as_dirs="'$as_qdir' $as_dirs"
8673 as_dir=`$as_dirname -- "$as_dir" ||
8674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8675 X"$as_dir" : 'X\(//\)[^/]' \| \
8676 X"$as_dir" : 'X\(//\)$' \| \
8677 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8678 $as_echo X"$as_dir" |
8679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8680 s//\1/
8683 /^X\(\/\/\)[^/].*/{
8684 s//\1/
8687 /^X\(\/\/\)$/{
8688 s//\1/
8691 /^X\(\/\).*/{
8692 s//\1/
8695 s/.*/./; q'`
8696 test -d "$as_dir" && break
8697 done
8698 test -z "$as_dirs" || eval "mkdir $as_dirs"
8699 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8700 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8701 { (exit 1); exit 1; }; }; }
8702 # echo "creating $dirpart/$file"
8703 echo '# dummy' > "$dirpart/$file"
8704 done
8705 done
8708 esac
8709 done # for ac_tag
8712 { (exit 0); exit 0; }
8713 _ACEOF
8714 chmod +x $CONFIG_STATUS
8715 ac_clean_files=$ac_clean_files_save
8717 test $ac_write_fail = 0 ||
8718 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
8719 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
8720 { (exit 1); exit 1; }; }
8723 # configure is writing to config.log, and then calls config.status.
8724 # config.status does its own redirection, appending to config.log.
8725 # Unfortunately, on DOS this fails, as config.log is still kept open
8726 # by configure, so config.status won't be able to write to it; its
8727 # output is simply discarded. So we exec the FD to /dev/null,
8728 # effectively closing config.log, so it can be properly (re)opened and
8729 # appended to by config.status. When coming back to configure, we
8730 # need to make the FD available again.
8731 if test "$no_create" != yes; then
8732 ac_cs_success=:
8733 ac_config_status_args=
8734 test "$silent" = yes &&
8735 ac_config_status_args="$ac_config_status_args --quiet"
8736 exec 5>/dev/null
8737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8738 exec 5>>config.log
8739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8740 # would make configure fail if this is the last instruction.
8741 $ac_cs_success || { (exit 1); exit 1; }
8743 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8744 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8745 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}