… | |
… | |
9 | |
9 | |
10 | # Defaults: |
10 | # Defaults: |
11 | ac_help= |
11 | ac_help= |
12 | ac_default_prefix=/usr/local |
12 | ac_default_prefix=/usr/local |
13 | # Any additions from configure.in: |
13 | # Any additions from configure.in: |
14 | ac_help="$ac_help |
|
|
15 | --disable-optimize compile for debugging" |
|
|
16 | |
14 | |
17 | # Initialize some variables set by options. |
15 | # Initialize some variables set by options. |
18 | # The variables have the same names as the options, with |
16 | # The variables have the same names as the options, with |
19 | # dashes changed to underlines. |
17 | # dashes changed to underlines. |
20 | build=NONE |
18 | build=NONE |
… | |
… | |
528 | |
526 | |
529 | # |
527 | # |
530 | # package revision |
528 | # package revision |
531 | # |
529 | # |
532 | VERSION=0.5 |
530 | VERSION=0.5 |
533 | PATCH=19 |
531 | PATCH=20 |
534 | |
|
|
535 | # Check whether --enable-optimize or --disable-optimize was given. |
|
|
536 | if test "${enable_optimize+set}" = set; then |
|
|
537 | enableval="$enable_optimize" |
|
|
538 | optimize=$enableval |
|
|
539 | else |
|
|
540 | optimize=yes |
|
|
541 | fi |
|
|
542 | |
|
|
543 | |
532 | |
544 | # Extract the first word of "gcc", so it can be a program name with args. |
533 | # Extract the first word of "gcc", so it can be a program name with args. |
545 | set dummy gcc; ac_word=$2 |
534 | set dummy gcc; ac_word=$2 |
546 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
535 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
547 | echo "configure:548: checking for $ac_word" >&5 |
536 | echo "configure:537: checking for $ac_word" >&5 |
548 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
537 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
549 | echo $ac_n "(cached) $ac_c" 1>&6 |
538 | echo $ac_n "(cached) $ac_c" 1>&6 |
550 | else |
539 | else |
551 | if test -n "$CC"; then |
540 | if test -n "$CC"; then |
552 | ac_cv_prog_CC="$CC" # Let the user override the test. |
541 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
572 | |
561 | |
573 | if test -z "$CC"; then |
562 | if test -z "$CC"; then |
574 | # Extract the first word of "cc", so it can be a program name with args. |
563 | # Extract the first word of "cc", so it can be a program name with args. |
575 | set dummy cc; ac_word=$2 |
564 | set dummy cc; ac_word=$2 |
576 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
565 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
577 | echo "configure:578: checking for $ac_word" >&5 |
566 | echo "configure:567: checking for $ac_word" >&5 |
578 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
567 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
579 | echo $ac_n "(cached) $ac_c" 1>&6 |
568 | echo $ac_n "(cached) $ac_c" 1>&6 |
580 | else |
569 | else |
581 | if test -n "$CC"; then |
570 | if test -n "$CC"; then |
582 | ac_cv_prog_CC="$CC" # Let the user override the test. |
571 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
623 | case "`uname -s`" in |
612 | case "`uname -s`" in |
624 | *win32* | *WIN32*) |
613 | *win32* | *WIN32*) |
625 | # Extract the first word of "cl", so it can be a program name with args. |
614 | # Extract the first word of "cl", so it can be a program name with args. |
626 | set dummy cl; ac_word=$2 |
615 | set dummy cl; ac_word=$2 |
627 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
616 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
628 | echo "configure:629: checking for $ac_word" >&5 |
617 | echo "configure:618: checking for $ac_word" >&5 |
629 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
618 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
630 | echo $ac_n "(cached) $ac_c" 1>&6 |
619 | echo $ac_n "(cached) $ac_c" 1>&6 |
631 | else |
620 | else |
632 | if test -n "$CC"; then |
621 | if test -n "$CC"; then |
633 | ac_cv_prog_CC="$CC" # Let the user override the test. |
622 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
655 | fi |
644 | fi |
656 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
645 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
657 | fi |
646 | fi |
658 | |
647 | |
659 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
648 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
660 | echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
649 | echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
661 | |
650 | |
662 | ac_ext=c |
651 | ac_ext=c |
663 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
652 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
664 | ac_cpp='$CPP $CPPFLAGS' |
653 | ac_cpp='$CPP $CPPFLAGS' |
665 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
654 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
666 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
655 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
667 | cross_compiling=$ac_cv_prog_cc_cross |
656 | cross_compiling=$ac_cv_prog_cc_cross |
668 | |
657 | |
669 | cat > conftest.$ac_ext << EOF |
658 | cat > conftest.$ac_ext << EOF |
670 | |
659 | |
671 | #line 672 "configure" |
660 | #line 661 "configure" |
672 | #include "confdefs.h" |
661 | #include "confdefs.h" |
673 | |
662 | |
674 | main(){return(0);} |
663 | main(){return(0);} |
675 | EOF |
664 | EOF |
676 | if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
665 | if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
677 | ac_cv_prog_cc_works=yes |
666 | ac_cv_prog_cc_works=yes |
678 | # If we can't run a trivial program, we are probably using a cross compiler. |
667 | # If we can't run a trivial program, we are probably using a cross compiler. |
679 | if (./conftest; exit) 2>/dev/null; then |
668 | if (./conftest; exit) 2>/dev/null; then |
680 | ac_cv_prog_cc_cross=no |
669 | ac_cv_prog_cc_cross=no |
681 | else |
670 | else |
… | |
… | |
697 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
686 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
698 | if test $ac_cv_prog_cc_works = no; then |
687 | if test $ac_cv_prog_cc_works = no; then |
699 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
688 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
700 | fi |
689 | fi |
701 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
690 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
702 | echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
691 | echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
703 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
692 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
704 | cross_compiling=$ac_cv_prog_cc_cross |
693 | cross_compiling=$ac_cv_prog_cc_cross |
705 | |
694 | |
706 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
695 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
707 | echo "configure:708: checking whether we are using GNU C" >&5 |
696 | echo "configure:697: checking whether we are using GNU C" >&5 |
708 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
697 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
709 | echo $ac_n "(cached) $ac_c" 1>&6 |
698 | echo $ac_n "(cached) $ac_c" 1>&6 |
710 | else |
699 | else |
711 | cat > conftest.c <<EOF |
700 | cat > conftest.c <<EOF |
712 | #ifdef __GNUC__ |
701 | #ifdef __GNUC__ |
713 | yes; |
702 | yes; |
714 | #endif |
703 | #endif |
715 | EOF |
704 | EOF |
716 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
705 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
717 | ac_cv_prog_gcc=yes |
706 | ac_cv_prog_gcc=yes |
718 | else |
707 | else |
719 | ac_cv_prog_gcc=no |
708 | ac_cv_prog_gcc=no |
720 | fi |
709 | fi |
721 | fi |
710 | fi |
… | |
… | |
730 | |
719 | |
731 | ac_test_CFLAGS="${CFLAGS+set}" |
720 | ac_test_CFLAGS="${CFLAGS+set}" |
732 | ac_save_CFLAGS="$CFLAGS" |
721 | ac_save_CFLAGS="$CFLAGS" |
733 | CFLAGS= |
722 | CFLAGS= |
734 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
723 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
735 | echo "configure:736: checking whether ${CC-cc} accepts -g" >&5 |
724 | echo "configure:725: checking whether ${CC-cc} accepts -g" >&5 |
736 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
725 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
737 | echo $ac_n "(cached) $ac_c" 1>&6 |
726 | echo $ac_n "(cached) $ac_c" 1>&6 |
738 | else |
727 | else |
739 | echo 'void f(){}' > conftest.c |
728 | echo 'void f(){}' > conftest.c |
740 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
729 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
… | |
… | |
762 | CFLAGS= |
751 | CFLAGS= |
763 | fi |
752 | fi |
764 | fi |
753 | fi |
765 | |
754 | |
766 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
755 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
767 | echo "configure:768: checking how to run the C preprocessor" >&5 |
756 | echo "configure:757: checking how to run the C preprocessor" >&5 |
768 | # On Suns, sometimes $CPP names a directory. |
757 | # On Suns, sometimes $CPP names a directory. |
769 | if test -n "$CPP" && test -d "$CPP"; then |
758 | if test -n "$CPP" && test -d "$CPP"; then |
770 | CPP= |
759 | CPP= |
771 | fi |
760 | fi |
772 | if test -z "$CPP"; then |
761 | if test -z "$CPP"; then |
… | |
… | |
777 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
766 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
778 | CPP="${CC-cc} -E" |
767 | CPP="${CC-cc} -E" |
779 | # On the NeXT, cc -E runs the code through the compiler's parser, |
768 | # On the NeXT, cc -E runs the code through the compiler's parser, |
780 | # not just through cpp. |
769 | # not just through cpp. |
781 | cat > conftest.$ac_ext <<EOF |
770 | cat > conftest.$ac_ext <<EOF |
782 | #line 783 "configure" |
771 | #line 772 "configure" |
783 | #include "confdefs.h" |
772 | #include "confdefs.h" |
784 | #include <assert.h> |
773 | #include <assert.h> |
785 | Syntax Error |
774 | Syntax Error |
786 | EOF |
775 | EOF |
787 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
776 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
788 | { (eval echo configure:789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
777 | { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
789 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
778 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
790 | if test -z "$ac_err"; then |
779 | if test -z "$ac_err"; then |
791 | : |
780 | : |
792 | else |
781 | else |
793 | echo "$ac_err" >&5 |
782 | echo "$ac_err" >&5 |
794 | echo "configure: failed program was:" >&5 |
783 | echo "configure: failed program was:" >&5 |
795 | cat conftest.$ac_ext >&5 |
784 | cat conftest.$ac_ext >&5 |
796 | rm -rf conftest* |
785 | rm -rf conftest* |
797 | CPP="${CC-cc} -E -traditional-cpp" |
786 | CPP="${CC-cc} -E -traditional-cpp" |
798 | cat > conftest.$ac_ext <<EOF |
787 | cat > conftest.$ac_ext <<EOF |
799 | #line 800 "configure" |
788 | #line 789 "configure" |
800 | #include "confdefs.h" |
789 | #include "confdefs.h" |
801 | #include <assert.h> |
790 | #include <assert.h> |
802 | Syntax Error |
791 | Syntax Error |
803 | EOF |
792 | EOF |
804 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
793 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
805 | { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
794 | { (eval echo configure:795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
806 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
795 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
807 | if test -z "$ac_err"; then |
796 | if test -z "$ac_err"; then |
808 | : |
797 | : |
809 | else |
798 | else |
810 | echo "$ac_err" >&5 |
799 | echo "$ac_err" >&5 |
811 | echo "configure: failed program was:" >&5 |
800 | echo "configure: failed program was:" >&5 |
812 | cat conftest.$ac_ext >&5 |
801 | cat conftest.$ac_ext >&5 |
813 | rm -rf conftest* |
802 | rm -rf conftest* |
814 | CPP="${CC-cc} -nologo -E" |
803 | CPP="${CC-cc} -nologo -E" |
815 | cat > conftest.$ac_ext <<EOF |
804 | cat > conftest.$ac_ext <<EOF |
816 | #line 817 "configure" |
805 | #line 806 "configure" |
817 | #include "confdefs.h" |
806 | #include "confdefs.h" |
818 | #include <assert.h> |
807 | #include <assert.h> |
819 | Syntax Error |
808 | Syntax Error |
820 | EOF |
809 | EOF |
821 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
810 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
822 | { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
811 | { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
823 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
812 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
824 | if test -z "$ac_err"; then |
813 | if test -z "$ac_err"; then |
825 | : |
814 | : |
826 | else |
815 | else |
827 | echo "$ac_err" >&5 |
816 | echo "$ac_err" >&5 |
… | |
… | |
842 | ac_cv_prog_CPP="$CPP" |
831 | ac_cv_prog_CPP="$CPP" |
843 | fi |
832 | fi |
844 | echo "$ac_t""$CPP" 1>&6 |
833 | echo "$ac_t""$CPP" 1>&6 |
845 | |
834 | |
846 | |
835 | |
847 | echo $ac_n "checking if HP-UX ansi C compiler flags are needed""... $ac_c" 1>&6 |
|
|
848 | echo "configure:849: checking if HP-UX ansi C compiler flags are needed" >&5 |
|
|
849 | |
|
|
850 | os=`uname -s | tr 'A-Z' 'a-z'` |
|
|
851 | ac_cv_hpux_flags=no |
|
|
852 | if test "$os" = hp-ux ; then |
|
|
853 | if test "$ac_cv_prog_gcc" = yes ; then |
|
|
854 | if test "$CFLAGS" != "" ; then |
|
|
855 | # Shouldn't be in there. |
|
|
856 | CFLAGS=`echo "$CFLAGS" | sed 's/-Aa//g'` |
|
|
857 | fi |
|
|
858 | else |
|
|
859 | # If you're not using gcc, then you better have a cc/c89 |
|
|
860 | # that is usable. If you have the barebones compiler, it |
|
|
861 | # won't work. The good compiler uses -Aa for the ANSI |
|
|
862 | # compatible stuff. |
|
|
863 | x=`echo $CFLAGS | grep 'Aa' 2>/dev/null` |
|
|
864 | if test "$x" = "" ; then |
|
|
865 | CFLAGS="$CFLAGS -Aa" |
|
|
866 | fi |
|
|
867 | ac_cv_hpux_flags=yes |
|
|
868 | fi |
|
|
869 | # Also add _HPUX_SOURCE to get the extended namespace. |
|
|
870 | x=`echo $CFLAGS | grep '_HPUX_SOURCE' 2>/dev/null` |
|
|
871 | if test "$x" = "" ; then |
|
|
872 | CFLAGS="$CFLAGS -D_HPUX_SOURCE" |
|
|
873 | fi |
|
|
874 | fi |
|
|
875 | echo "$ac_t""$ac_cv_hpux_flags" 1>&6 |
|
|
876 | |
|
|
877 | if test "$CFLAGS" = "" ; then |
|
|
878 | CFLAGS="-O" |
|
|
879 | elif test "$ac_cv_prog_gcc" = "yes" ; then |
|
|
880 | case "$CFLAGS" in |
|
|
881 | *"-g -O"*) |
|
|
882 | #echo "using -g as default gcc CFLAGS" 1>&6 |
|
|
883 | CFLAGS=`echo $CFLAGS | sed 's/-g\ -O/-O/'` |
|
|
884 | ;; |
|
|
885 | *"-O -g"*) |
|
|
886 | # Leave the -g, but remove all -O options. |
|
|
887 | #echo "using -g as default gcc CFLAGS" 1>&6 |
|
|
888 | CFLAGS=`echo $CFLAGS | sed 's/-O\ -g/-O/'` |
|
|
889 | ;; |
|
|
890 | esac |
|
|
891 | fi |
|
|
892 | |
|
|
893 | |
|
|
894 | echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6 |
836 | echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6 |
895 | echo "configure:896: checking if the compiler supports function prototypes" >&5 |
837 | echo "configure:838: checking if the compiler supports function prototypes" >&5 |
896 | cat > conftest.$ac_ext <<EOF |
838 | cat > conftest.$ac_ext <<EOF |
897 | #line 898 "configure" |
839 | #line 840 "configure" |
898 | #include "confdefs.h" |
840 | #include "confdefs.h" |
899 | |
841 | |
900 | int main() { |
842 | int main() { |
901 | extern void exit(int status); |
843 | extern void exit(int status); |
902 | ; return 0; } |
844 | ; return 0; } |
903 | EOF |
845 | EOF |
904 | if { (eval echo configure:905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
846 | if { (eval echo configure:847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
905 | rm -rf conftest* |
847 | rm -rf conftest* |
906 | wi_cv_prototypes=yes |
848 | wi_cv_prototypes=yes |
907 | cat >> confdefs.h <<\EOF |
849 | cat >> confdefs.h <<\EOF |
908 | #define PROTOTYPES 1 |
850 | #define PROTOTYPES 1 |
909 | EOF |
851 | EOF |
… | |
… | |
916 | fi |
858 | fi |
917 | rm -f conftest* |
859 | rm -f conftest* |
918 | echo "$ac_t""$wi_cv_prototypes" 1>&6 |
860 | echo "$ac_t""$wi_cv_prototypes" 1>&6 |
919 | |
861 | |
920 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
862 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
921 | echo "configure:922: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
863 | echo "configure:864: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
922 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
864 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
923 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
865 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
924 | echo $ac_n "(cached) $ac_c" 1>&6 |
866 | echo $ac_n "(cached) $ac_c" 1>&6 |
925 | else |
867 | else |
926 | cat > conftestmake <<\EOF |
868 | cat > conftestmake <<\EOF |
… | |
… | |
945 | fi |
887 | fi |
946 | |
888 | |
947 | # Extract the first word of "ranlib", so it can be a program name with args. |
889 | # Extract the first word of "ranlib", so it can be a program name with args. |
948 | set dummy ranlib; ac_word=$2 |
890 | set dummy ranlib; ac_word=$2 |
949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
891 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
950 | echo "configure:951: checking for $ac_word" >&5 |
892 | echo "configure:893: checking for $ac_word" >&5 |
951 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
893 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
952 | echo $ac_n "(cached) $ac_c" 1>&6 |
894 | echo $ac_n "(cached) $ac_c" 1>&6 |
953 | else |
895 | else |
954 | if test -n "$RANLIB"; then |
896 | if test -n "$RANLIB"; then |
955 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
897 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
… | |
… | |
973 | else |
915 | else |
974 | echo "$ac_t""no" 1>&6 |
916 | echo "$ac_t""no" 1>&6 |
975 | fi |
917 | fi |
976 | |
918 | |
977 | |
919 | |
978 | # |
|
|
979 | # When optimization is enabled, remove -g from CFLAGS and add -O |
|
|
980 | # |
|
|
981 | |
|
|
982 | if test "$optimize" = "yes" ; then |
|
|
983 | echo $ac_n "checking compiler flags""... $ac_c" 1>&6 |
|
|
984 | echo "configure:985: checking compiler flags" >&5 |
|
|
985 | CFLAGS=`echo $CFLAGS | sed 's/-g//g'` |
|
|
986 | case $CFLAGS in |
|
|
987 | *"-O"*) |
|
|
988 | ;; |
|
|
989 | *) |
|
|
990 | CFLAGS="$CFLAGS -O" |
|
|
991 | ;; |
|
|
992 | esac |
|
|
993 | echo "$ac_t""done" 1>&6 |
|
|
994 | fi |
|
|
995 | |
|
|
996 | if test "$wi_cv_prototypes" = no ; then |
920 | if test "$wi_cv_prototypes" = no ; then |
997 | echo "configure: warning: Your compiler does not support function prototyping and" 1>&2 |
921 | echo "configure: warning: Your compiler does not support function prototyping and" 1>&2 |
998 | echo "configure: warning: is not able to properly compile this package. What a pity." 1>&2 |
922 | echo "configure: warning: is not able to properly compile this package. What a pity." 1>&2 |
999 | echo "configure: warning: Get gcc, or any compiler that supports function prototypes." 1>&2 |
923 | echo "configure: warning: Get gcc, or any compiler that supports function prototypes." 1>&2 |
1000 | exit 1 |
924 | exit 1 |
… | |
… | |
1003 | # |
927 | # |
1004 | # Checks for header files and library functions |
928 | # Checks for header files and library functions |
1005 | # |
929 | # |
1006 | |
930 | |
1007 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
931 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1008 | echo "configure:1009: checking for ANSI C header files" >&5 |
932 | echo "configure:933: checking for ANSI C header files" >&5 |
1009 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
933 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1010 | echo $ac_n "(cached) $ac_c" 1>&6 |
934 | echo $ac_n "(cached) $ac_c" 1>&6 |
1011 | else |
935 | else |
1012 | cat > conftest.$ac_ext <<EOF |
936 | cat > conftest.$ac_ext <<EOF |
1013 | #line 1014 "configure" |
937 | #line 938 "configure" |
1014 | #include "confdefs.h" |
938 | #include "confdefs.h" |
1015 | #include <stdlib.h> |
939 | #include <stdlib.h> |
1016 | #include <stdarg.h> |
940 | #include <stdarg.h> |
1017 | #include <string.h> |
941 | #include <string.h> |
1018 | #include <float.h> |
942 | #include <float.h> |
1019 | EOF |
943 | EOF |
1020 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
944 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1021 | { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
945 | { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1022 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
946 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1023 | if test -z "$ac_err"; then |
947 | if test -z "$ac_err"; then |
1024 | rm -rf conftest* |
948 | rm -rf conftest* |
1025 | ac_cv_header_stdc=yes |
949 | ac_cv_header_stdc=yes |
1026 | else |
950 | else |
… | |
… | |
1033 | rm -f conftest* |
957 | rm -f conftest* |
1034 | |
958 | |
1035 | if test $ac_cv_header_stdc = yes; then |
959 | if test $ac_cv_header_stdc = yes; then |
1036 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
960 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1037 | cat > conftest.$ac_ext <<EOF |
961 | cat > conftest.$ac_ext <<EOF |
1038 | #line 1039 "configure" |
962 | #line 963 "configure" |
1039 | #include "confdefs.h" |
963 | #include "confdefs.h" |
1040 | #include <string.h> |
964 | #include <string.h> |
1041 | EOF |
965 | EOF |
1042 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1043 | egrep "memchr" >/dev/null 2>&1; then |
967 | egrep "memchr" >/dev/null 2>&1; then |
… | |
… | |
1051 | fi |
975 | fi |
1052 | |
976 | |
1053 | if test $ac_cv_header_stdc = yes; then |
977 | if test $ac_cv_header_stdc = yes; then |
1054 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
978 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1055 | cat > conftest.$ac_ext <<EOF |
979 | cat > conftest.$ac_ext <<EOF |
1056 | #line 1057 "configure" |
980 | #line 981 "configure" |
1057 | #include "confdefs.h" |
981 | #include "confdefs.h" |
1058 | #include <stdlib.h> |
982 | #include <stdlib.h> |
1059 | EOF |
983 | EOF |
1060 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1061 | egrep "free" >/dev/null 2>&1; then |
985 | egrep "free" >/dev/null 2>&1; then |
… | |
… | |
1072 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
996 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1073 | if test "$cross_compiling" = yes; then |
997 | if test "$cross_compiling" = yes; then |
1074 | : |
998 | : |
1075 | else |
999 | else |
1076 | cat > conftest.$ac_ext <<EOF |
1000 | cat > conftest.$ac_ext <<EOF |
1077 | #line 1078 "configure" |
1001 | #line 1002 "configure" |
1078 | #include "confdefs.h" |
1002 | #include "confdefs.h" |
1079 | #include <ctype.h> |
1003 | #include <ctype.h> |
1080 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1004 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1081 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1005 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1082 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1006 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1083 | int main () { int i; for (i = 0; i < 256; i++) |
1007 | int main () { int i; for (i = 0; i < 256; i++) |
1084 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1008 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1085 | exit (0); } |
1009 | exit (0); } |
1086 | |
1010 | |
1087 | EOF |
1011 | EOF |
1088 | if { (eval echo configure:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1012 | if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1089 | then |
1013 | then |
1090 | : |
1014 | : |
1091 | else |
1015 | else |
1092 | echo "configure: failed program was:" >&5 |
1016 | echo "configure: failed program was:" >&5 |
1093 | cat conftest.$ac_ext >&5 |
1017 | cat conftest.$ac_ext >&5 |
… | |
… | |
1107 | EOF |
1031 | EOF |
1108 | |
1032 | |
1109 | fi |
1033 | fi |
1110 | |
1034 | |
1111 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1035 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1112 | echo "configure:1113: checking for size_t" >&5 |
1036 | echo "configure:1037: checking for size_t" >&5 |
1113 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1037 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1114 | echo $ac_n "(cached) $ac_c" 1>&6 |
1038 | echo $ac_n "(cached) $ac_c" 1>&6 |
1115 | else |
1039 | else |
1116 | cat > conftest.$ac_ext <<EOF |
1040 | cat > conftest.$ac_ext <<EOF |
1117 | #line 1118 "configure" |
1041 | #line 1042 "configure" |
1118 | #include "confdefs.h" |
1042 | #include "confdefs.h" |
1119 | #include <sys/types.h> |
1043 | #include <sys/types.h> |
1120 | #if STDC_HEADERS |
1044 | #if STDC_HEADERS |
1121 | #include <stdlib.h> |
1045 | #include <stdlib.h> |
1122 | #include <stddef.h> |
1046 | #include <stddef.h> |
… | |
… | |
1140 | EOF |
1064 | EOF |
1141 | |
1065 | |
1142 | fi |
1066 | fi |
1143 | |
1067 | |
1144 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
1068 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
1145 | echo "configure:1146: checking whether time.h and sys/time.h may both be included" >&5 |
1069 | echo "configure:1070: checking whether time.h and sys/time.h may both be included" >&5 |
1146 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1070 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1147 | echo $ac_n "(cached) $ac_c" 1>&6 |
1071 | echo $ac_n "(cached) $ac_c" 1>&6 |
1148 | else |
1072 | else |
1149 | cat > conftest.$ac_ext <<EOF |
1073 | cat > conftest.$ac_ext <<EOF |
1150 | #line 1151 "configure" |
1074 | #line 1075 "configure" |
1151 | #include "confdefs.h" |
1075 | #include "confdefs.h" |
1152 | #include <sys/types.h> |
1076 | #include <sys/types.h> |
1153 | #include <sys/time.h> |
1077 | #include <sys/time.h> |
1154 | #include <time.h> |
1078 | #include <time.h> |
1155 | int main() { |
1079 | int main() { |
1156 | struct tm *tp; |
1080 | struct tm *tp; |
1157 | ; return 0; } |
1081 | ; return 0; } |
1158 | EOF |
1082 | EOF |
1159 | if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1083 | if { (eval echo configure:1084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1160 | rm -rf conftest* |
1084 | rm -rf conftest* |
1161 | ac_cv_header_time=yes |
1085 | ac_cv_header_time=yes |
1162 | else |
1086 | else |
1163 | echo "configure: failed program was:" >&5 |
1087 | echo "configure: failed program was:" >&5 |
1164 | cat conftest.$ac_ext >&5 |
1088 | cat conftest.$ac_ext >&5 |
… | |
… | |
1178 | |
1102 | |
1179 | for ac_hdr in fcntl.h unistd.h memory.h malloc.h errno.h |
1103 | for ac_hdr in fcntl.h unistd.h memory.h malloc.h errno.h |
1180 | do |
1104 | do |
1181 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1105 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1182 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1106 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1183 | echo "configure:1184: checking for $ac_hdr" >&5 |
1107 | echo "configure:1108: checking for $ac_hdr" >&5 |
1184 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1108 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1185 | echo $ac_n "(cached) $ac_c" 1>&6 |
1109 | echo $ac_n "(cached) $ac_c" 1>&6 |
1186 | else |
1110 | else |
1187 | cat > conftest.$ac_ext <<EOF |
1111 | cat > conftest.$ac_ext <<EOF |
1188 | #line 1189 "configure" |
1112 | #line 1113 "configure" |
1189 | #include "confdefs.h" |
1113 | #include "confdefs.h" |
1190 | #include <$ac_hdr> |
1114 | #include <$ac_hdr> |
1191 | EOF |
1115 | EOF |
1192 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1116 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1193 | { (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1117 | { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1194 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1118 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1195 | if test -z "$ac_err"; then |
1119 | if test -z "$ac_err"; then |
1196 | rm -rf conftest* |
1120 | rm -rf conftest* |
1197 | eval "ac_cv_header_$ac_safe=yes" |
1121 | eval "ac_cv_header_$ac_safe=yes" |
1198 | else |
1122 | else |
… | |
… | |
1218 | |
1142 | |
1219 | for ac_hdr in io.h sys/time.h |
1143 | for ac_hdr in io.h sys/time.h |
1220 | do |
1144 | do |
1221 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1145 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1222 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1146 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1223 | echo "configure:1224: checking for $ac_hdr" >&5 |
1147 | echo "configure:1148: checking for $ac_hdr" >&5 |
1224 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1148 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1225 | echo $ac_n "(cached) $ac_c" 1>&6 |
1149 | echo $ac_n "(cached) $ac_c" 1>&6 |
1226 | else |
1150 | else |
1227 | cat > conftest.$ac_ext <<EOF |
1151 | cat > conftest.$ac_ext <<EOF |
1228 | #line 1229 "configure" |
1152 | #line 1153 "configure" |
1229 | #include "confdefs.h" |
1153 | #include "confdefs.h" |
1230 | #include <$ac_hdr> |
1154 | #include <$ac_hdr> |
1231 | EOF |
1155 | EOF |
1232 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1156 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1233 | { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1157 | { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1158 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1235 | if test -z "$ac_err"; then |
1159 | if test -z "$ac_err"; then |
1236 | rm -rf conftest* |
1160 | rm -rf conftest* |
1237 | eval "ac_cv_header_$ac_safe=yes" |
1161 | eval "ac_cv_header_$ac_safe=yes" |
1238 | else |
1162 | else |
… | |
… | |
1257 | done |
1181 | done |
1258 | |
1182 | |
1259 | for ac_func in gettimeofday |
1183 | for ac_func in gettimeofday |
1260 | do |
1184 | do |
1261 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1185 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1262 | echo "configure:1263: checking for $ac_func" >&5 |
1186 | echo "configure:1187: checking for $ac_func" >&5 |
1263 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1187 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
1264 | echo $ac_n "(cached) $ac_c" 1>&6 |
1188 | echo $ac_n "(cached) $ac_c" 1>&6 |
1265 | else |
1189 | else |
1266 | cat > conftest.$ac_ext <<EOF |
1190 | cat > conftest.$ac_ext <<EOF |
1267 | #line 1268 "configure" |
1191 | #line 1192 "configure" |
1268 | #include "confdefs.h" |
1192 | #include "confdefs.h" |
1269 | /* System header to define __stub macros and hopefully few prototypes, |
1193 | /* System header to define __stub macros and hopefully few prototypes, |
1270 | which can conflict with char $ac_func(); below. */ |
1194 | which can conflict with char $ac_func(); below. */ |
1271 | #include <assert.h> |
1195 | #include <assert.h> |
1272 | /* Override any gcc2 internal prototype to avoid an error. */ |
1196 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
1285 | $ac_func(); |
1209 | $ac_func(); |
1286 | #endif |
1210 | #endif |
1287 | |
1211 | |
1288 | ; return 0; } |
1212 | ; return 0; } |
1289 | EOF |
1213 | EOF |
1290 | if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1214 | if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1291 | rm -rf conftest* |
1215 | rm -rf conftest* |
1292 | eval "ac_cv_func_$ac_func=yes" |
1216 | eval "ac_cv_func_$ac_func=yes" |
1293 | else |
1217 | else |
1294 | echo "configure: failed program was:" >&5 |
1218 | echo "configure: failed program was:" >&5 |
1295 | cat conftest.$ac_ext >&5 |
1219 | cat conftest.$ac_ext >&5 |
… | |
… | |
1311 | fi |
1235 | fi |
1312 | done |
1236 | done |
1313 | |
1237 | |
1314 | |
1238 | |
1315 | echo $ac_n "checking for tempnam""... $ac_c" 1>&6 |
1239 | echo $ac_n "checking for tempnam""... $ac_c" 1>&6 |
1316 | echo "configure:1317: checking for tempnam" >&5 |
1240 | echo "configure:1241: checking for tempnam" >&5 |
1317 | if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then |
1241 | if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then |
1318 | echo $ac_n "(cached) $ac_c" 1>&6 |
1242 | echo $ac_n "(cached) $ac_c" 1>&6 |
1319 | else |
1243 | else |
1320 | cat > conftest.$ac_ext <<EOF |
1244 | cat > conftest.$ac_ext <<EOF |
1321 | #line 1322 "configure" |
1245 | #line 1246 "configure" |
1322 | #include "confdefs.h" |
1246 | #include "confdefs.h" |
1323 | /* System header to define __stub macros and hopefully few prototypes, |
1247 | /* System header to define __stub macros and hopefully few prototypes, |
1324 | which can conflict with char tempnam(); below. */ |
1248 | which can conflict with char tempnam(); below. */ |
1325 | #include <assert.h> |
1249 | #include <assert.h> |
1326 | /* Override any gcc2 internal prototype to avoid an error. */ |
1250 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
1339 | tempnam(); |
1263 | tempnam(); |
1340 | #endif |
1264 | #endif |
1341 | |
1265 | |
1342 | ; return 0; } |
1266 | ; return 0; } |
1343 | EOF |
1267 | EOF |
1344 | if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1268 | if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1345 | rm -rf conftest* |
1269 | rm -rf conftest* |
1346 | eval "ac_cv_func_tempnam=yes" |
1270 | eval "ac_cv_func_tempnam=yes" |
1347 | else |
1271 | else |
1348 | echo "configure: failed program was:" >&5 |
1272 | echo "configure: failed program was:" >&5 |
1349 | cat conftest.$ac_ext >&5 |
1273 | cat conftest.$ac_ext >&5 |
… | |
… | |
1369 | # strerror might be internally defined. this would cause a |
1293 | # strerror might be internally defined. this would cause a |
1370 | # CHECK_FUNCS(strerror) to fail because it'd be called with |
1294 | # CHECK_FUNCS(strerror) to fail because it'd be called with |
1371 | # zero arguments. So use our own code. |
1295 | # zero arguments. So use our own code. |
1372 | # |
1296 | # |
1373 | echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
1297 | echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
1374 | echo "configure:1375: checking for strerror" >&5 |
1298 | echo "configure:1299: checking for strerror" >&5 |
1375 | cat > conftest.$ac_ext <<EOF |
1299 | cat > conftest.$ac_ext <<EOF |
1376 | #line 1377 "configure" |
1300 | #line 1301 "configure" |
1377 | #include "confdefs.h" |
1301 | #include "confdefs.h" |
1378 | |
1302 | |
1379 | char *blubb() { return (char *) strerror (42); } |
1303 | char *blubb() { return (char *) strerror (42); } |
1380 | |
1304 | |
1381 | int main() { |
1305 | int main() { |
1382 | |
1306 | |
1383 | (void) blubb(); |
1307 | (void) blubb(); |
1384 | |
1308 | |
1385 | ; return 0; } |
1309 | ; return 0; } |
1386 | EOF |
1310 | EOF |
1387 | if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1311 | if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1388 | rm -rf conftest* |
1312 | rm -rf conftest* |
1389 | have_strerror=yes |
1313 | have_strerror=yes |
1390 | else |
1314 | else |
1391 | echo "configure: failed program was:" >&5 |
1315 | echo "configure: failed program was:" >&5 |
1392 | cat conftest.$ac_ext >&5 |
1316 | cat conftest.$ac_ext >&5 |
… | |
… | |
1399 | fi |
1323 | fi |
1400 | rm -f conftest* |
1324 | rm -f conftest* |
1401 | echo "$ac_t""$have_strerror" 1>&6 |
1325 | echo "$ac_t""$have_strerror" 1>&6 |
1402 | |
1326 | |
1403 | echo $ac_n "checking for stdin""... $ac_c" 1>&6 |
1327 | echo $ac_n "checking for stdin""... $ac_c" 1>&6 |
1404 | echo "configure:1405: checking for stdin" >&5 |
1328 | echo "configure:1329: checking for stdin" >&5 |
1405 | cat > conftest.$ac_ext <<EOF |
1329 | cat > conftest.$ac_ext <<EOF |
1406 | #line 1407 "configure" |
1330 | #line 1331 "configure" |
1407 | #include "confdefs.h" |
1331 | #include "confdefs.h" |
1408 | |
1332 | |
1409 | #include <stdio.h> |
1333 | #include <stdio.h> |
1410 | char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } |
1334 | char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } |
1411 | |
1335 | |
… | |
… | |
1413 | |
1337 | |
1414 | (void) blubb(); |
1338 | (void) blubb(); |
1415 | |
1339 | |
1416 | ; return 0; } |
1340 | ; return 0; } |
1417 | EOF |
1341 | EOF |
1418 | if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1342 | if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1419 | rm -rf conftest* |
1343 | rm -rf conftest* |
1420 | have_stdio=yes |
1344 | have_stdio=yes |
1421 | else |
1345 | else |
1422 | echo "configure: failed program was:" >&5 |
1346 | echo "configure: failed program was:" >&5 |
1423 | cat conftest.$ac_ext >&5 |
1347 | cat conftest.$ac_ext >&5 |
… | |
… | |
1434 | if test "$ac_cv_header_stdc" = "no" ; then |
1358 | if test "$ac_cv_header_stdc" = "no" ; then |
1435 | for ac_hdr in stdarg.h varargs.h |
1359 | for ac_hdr in stdarg.h varargs.h |
1436 | do |
1360 | do |
1437 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1361 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1438 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1362 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1439 | echo "configure:1440: checking for $ac_hdr" >&5 |
1363 | echo "configure:1364: checking for $ac_hdr" >&5 |
1440 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1364 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1441 | echo $ac_n "(cached) $ac_c" 1>&6 |
1365 | echo $ac_n "(cached) $ac_c" 1>&6 |
1442 | else |
1366 | else |
1443 | cat > conftest.$ac_ext <<EOF |
1367 | cat > conftest.$ac_ext <<EOF |
1444 | #line 1445 "configure" |
1368 | #line 1369 "configure" |
1445 | #include "confdefs.h" |
1369 | #include "confdefs.h" |
1446 | #include <$ac_hdr> |
1370 | #include <$ac_hdr> |
1447 | EOF |
1371 | EOF |
1448 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1372 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1449 | { (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1373 | { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1450 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1374 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1451 | if test -z "$ac_err"; then |
1375 | if test -z "$ac_err"; then |
1452 | rm -rf conftest* |
1376 | rm -rf conftest* |
1453 | eval "ac_cv_header_$ac_safe=yes" |
1377 | eval "ac_cv_header_$ac_safe=yes" |
1454 | else |
1378 | else |
… | |
… | |
1522 | |
1446 | |
1523 | # |
1447 | # |
1524 | # set version number |
1448 | # set version number |
1525 | # |
1449 | # |
1526 | echo $ac_n "checking version number""... $ac_c" 1>&6 |
1450 | echo $ac_n "checking version number""... $ac_c" 1>&6 |
1527 | echo "configure:1528: checking version number" >&5 |
1451 | echo "configure:1452: checking version number" >&5 |
1528 | version_number="$VERSION"pl"$PATCH" |
1452 | version_number="$VERSION"pl"$PATCH" |
1529 | echo "$ac_t""$version_number" 1>&6 |
1453 | echo "$ac_t""$version_number" 1>&6 |
1530 | |
1454 | |
1531 | |
1455 | |
1532 | |
1456 | |