| @@ -7793,1998 +7793,2552 @@ main () | | | @@ -7793,1998 +7793,2552 @@ main () |
7793 | /* Are we little or big endian? From Harbison&Steele. */ | | 7793 | /* Are we little or big endian? From Harbison&Steele. */ |
7794 | union | | 7794 | union |
7795 | { | | 7795 | { |
7796 | long int l; | | 7796 | long int l; |
7797 | char c[sizeof (long int)]; | | 7797 | char c[sizeof (long int)]; |
7798 | } u; | | 7798 | } u; |
7799 | u.l = 1; | | 7799 | u.l = 1; |
7800 | return u.c[sizeof (long int) - 1] == 1; | | 7800 | return u.c[sizeof (long int) - 1] == 1; |
7801 | | | 7801 | |
7802 | ; | | 7802 | ; |
7803 | return 0; | | 7803 | return 0; |
7804 | } | | 7804 | } |
7805 | _ACEOF | | 7805 | _ACEOF |
7806 | rm -f conftest$ac_exeext | | 7806 | rm -f conftest$ac_exeext |
7807 | if { (ac_try="$ac_link" | | 7807 | if { (ac_try="$ac_link" |
7808 | case "(($ac_try" in | | 7808 | case "(($ac_try" in |
7809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 7809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7810 | *) ac_try_echo=$ac_try;; | | 7810 | *) ac_try_echo=$ac_try;; |
7811 | esac | | 7811 | esac |
7812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 7812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7813 | (eval "$ac_link") 2>&5 | | 7813 | (eval "$ac_link") 2>&5 |
7814 | ac_status=$? | | 7814 | ac_status=$? |
7815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 7815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | | 7816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7817 | { (case "(($ac_try" in | | 7817 | { (case "(($ac_try" in |
7818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 7818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7819 | *) ac_try_echo=$ac_try;; | | 7819 | *) ac_try_echo=$ac_try;; |
7820 | esac | | 7820 | esac |
7821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 7821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7822 | (eval "$ac_try") 2>&5 | | 7822 | (eval "$ac_try") 2>&5 |
7823 | ac_status=$? | | 7823 | ac_status=$? |
7824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 7824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7825 | (exit $ac_status); }; }; then | | 7825 | (exit $ac_status); }; }; then |
7826 | ac_cv_c_bigendian=no | | 7826 | ac_cv_c_bigendian=no |
7827 | else | | 7827 | else |
7828 | echo "$as_me: program exited with status $ac_status" >&5 | | 7828 | echo "$as_me: program exited with status $ac_status" >&5 |
7829 | echo "$as_me: failed program was:" >&5 | | 7829 | echo "$as_me: failed program was:" >&5 |
7830 | sed 's/^/| /' conftest.$ac_ext >&5 | | 7830 | sed 's/^/| /' conftest.$ac_ext >&5 |
7831 | | | 7831 | |
7832 | ( exit $ac_status ) | | 7832 | ( exit $ac_status ) |
7833 | ac_cv_c_bigendian=yes | | 7833 | ac_cv_c_bigendian=yes |
7834 | fi | | 7834 | fi |
7835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | | 7835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7836 | fi | | 7836 | fi |
7837 | | | 7837 | |
7838 | | | 7838 | |
7839 | fi | | 7839 | fi |
7840 | | | 7840 | |
7841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 7841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7842 | fi | | 7842 | fi |
7843 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | | 7843 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7844 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | | 7844 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
7845 | case $ac_cv_c_bigendian in | | 7845 | case $ac_cv_c_bigendian in |
7846 | yes) | | 7846 | yes) |
7847 | | | 7847 | |
7848 | cat >>confdefs.h <<\_ACEOF | | 7848 | cat >>confdefs.h <<\_ACEOF |
7849 | #define WORDS_BIGENDIAN 1 | | 7849 | #define WORDS_BIGENDIAN 1 |
7850 | _ACEOF | | 7850 | _ACEOF |
7851 | ;; | | 7851 | ;; |
7852 | no) | | 7852 | no) |
7853 | ;; | | 7853 | ;; |
7854 | *) | | 7854 | *) |
7855 | { { echo "$as_me:$LINENO: error: unknown endianness | | 7855 | { { echo "$as_me:$LINENO: error: unknown endianness |
7856 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | | 7856 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
7857 | echo "$as_me: error: unknown endianness | | 7857 | echo "$as_me: error: unknown endianness |
7858 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | | 7858 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
7859 | { (exit 1); exit 1; }; } ;; | | 7859 | { (exit 1); exit 1; }; } ;; |
7860 | esac | | 7860 | esac |
7861 | | | 7861 | |
7862 | { echo "$as_me:$LINENO: checking for off_t" >&5 | | 7862 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
7863 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | | 7863 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
7864 | if test "${ac_cv_type_off_t+set}" = set; then | | 7864 | if test "${ac_cv_type_off_t+set}" = set; then |
7865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 7865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7866 | else | | 7866 | else |
7867 | cat >conftest.$ac_ext <<_ACEOF | | 7867 | cat >conftest.$ac_ext <<_ACEOF |
7868 | /* confdefs.h. */ | | 7868 | /* confdefs.h. */ |
7869 | _ACEOF | | 7869 | _ACEOF |
7870 | cat confdefs.h >>conftest.$ac_ext | | 7870 | cat confdefs.h >>conftest.$ac_ext |
7871 | cat >>conftest.$ac_ext <<_ACEOF | | 7871 | cat >>conftest.$ac_ext <<_ACEOF |
7872 | /* end confdefs.h. */ | | 7872 | /* end confdefs.h. */ |
7873 | $ac_includes_default | | 7873 | $ac_includes_default |
7874 | typedef off_t ac__type_new_; | | 7874 | typedef off_t ac__type_new_; |
7875 | int | | 7875 | int |
7876 | main () | | 7876 | main () |
7877 | { | | 7877 | { |
7878 | if ((ac__type_new_ *) 0) | | 7878 | if ((ac__type_new_ *) 0) |
7879 | return 0; | | 7879 | return 0; |
7880 | if (sizeof (ac__type_new_)) | | 7880 | if (sizeof (ac__type_new_)) |
7881 | return 0; | | 7881 | return 0; |
7882 | ; | | 7882 | ; |
7883 | return 0; | | 7883 | return 0; |
7884 | } | | 7884 | } |
7885 | _ACEOF | | 7885 | _ACEOF |
7886 | rm -f conftest.$ac_objext | | 7886 | rm -f conftest.$ac_objext |
7887 | if { (ac_try="$ac_compile" | | 7887 | if { (ac_try="$ac_compile" |
7888 | case "(($ac_try" in | | 7888 | case "(($ac_try" in |
7889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 7889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7890 | *) ac_try_echo=$ac_try;; | | 7890 | *) ac_try_echo=$ac_try;; |
7891 | esac | | 7891 | esac |
7892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 7892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7893 | (eval "$ac_compile") 2>conftest.er1 | | 7893 | (eval "$ac_compile") 2>conftest.er1 |
7894 | ac_status=$? | | 7894 | ac_status=$? |
7895 | grep -v '^ *+' conftest.er1 >conftest.err | | 7895 | grep -v '^ *+' conftest.er1 >conftest.err |
7896 | rm -f conftest.er1 | | 7896 | rm -f conftest.er1 |
7897 | cat conftest.err >&5 | | 7897 | cat conftest.err >&5 |
7898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 7898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7899 | (exit $ac_status); } && { | | 7899 | (exit $ac_status); } && { |
7900 | test -z "$ac_c_werror_flag" || | | 7900 | test -z "$ac_c_werror_flag" || |
7901 | test ! -s conftest.err | | 7901 | test ! -s conftest.err |
7902 | } && test -s conftest.$ac_objext; then | | 7902 | } && test -s conftest.$ac_objext; then |
7903 | ac_cv_type_off_t=yes | | 7903 | ac_cv_type_off_t=yes |
7904 | else | | 7904 | else |
7905 | echo "$as_me: failed program was:" >&5 | | 7905 | echo "$as_me: failed program was:" >&5 |
7906 | sed 's/^/| /' conftest.$ac_ext >&5 | | 7906 | sed 's/^/| /' conftest.$ac_ext >&5 |
7907 | | | 7907 | |
7908 | ac_cv_type_off_t=no | | 7908 | ac_cv_type_off_t=no |
7909 | fi | | 7909 | fi |
7910 | | | 7910 | |
7911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 7911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7912 | fi | | 7912 | fi |
7913 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | | 7913 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
7914 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | | 7914 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
7915 | | | 7915 | |
7916 | # The cast to long int works around a bug in the HP C Compiler | | 7916 | # The cast to long int works around a bug in the HP C Compiler |
7917 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | | 7917 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
7918 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | | 7918 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
7919 | # This bug is HP SR number 8606223364. | | 7919 | # This bug is HP SR number 8606223364. |
7920 | { echo "$as_me:$LINENO: checking size of off_t" >&5 | | 7920 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
7921 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } | | 7921 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
7922 | if test "${ac_cv_sizeof_off_t+set}" = set; then | | 7922 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
7923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 7923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7924 | else | | 7924 | else |
7925 | if test "$cross_compiling" = yes; then | | 7925 | if test "$cross_compiling" = yes; then |
7926 | # Depending upon the size, compute the lo and hi bounds. | | 7926 | # Depending upon the size, compute the lo and hi bounds. |
7927 | cat >conftest.$ac_ext <<_ACEOF | | 7927 | cat >conftest.$ac_ext <<_ACEOF |
7928 | /* confdefs.h. */ | | 7928 | /* confdefs.h. */ |
7929 | _ACEOF | | 7929 | _ACEOF |
7930 | cat confdefs.h >>conftest.$ac_ext | | 7930 | cat confdefs.h >>conftest.$ac_ext |
7931 | cat >>conftest.$ac_ext <<_ACEOF | | 7931 | cat >>conftest.$ac_ext <<_ACEOF |
7932 | /* end confdefs.h. */ | | 7932 | /* end confdefs.h. */ |
7933 | $ac_includes_default | | 7933 | $ac_includes_default |
7934 | typedef off_t ac__type_sizeof_; | | 7934 | typedef off_t ac__type_sizeof_; |
7935 | int | | 7935 | int |
7936 | main () | | 7936 | main () |
7937 | { | | 7937 | { |
7938 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | | 7938 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
7939 | test_array [0] = 0 | | 7939 | test_array [0] = 0 |
7940 | | | 7940 | |
7941 | ; | | 7941 | ; |
7942 | return 0; | | 7942 | return 0; |
7943 | } | | 7943 | } |
7944 | _ACEOF | | 7944 | _ACEOF |
7945 | rm -f conftest.$ac_objext | | 7945 | rm -f conftest.$ac_objext |
7946 | if { (ac_try="$ac_compile" | | 7946 | if { (ac_try="$ac_compile" |
7947 | case "(($ac_try" in | | 7947 | case "(($ac_try" in |
7948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 7948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7949 | *) ac_try_echo=$ac_try;; | | 7949 | *) ac_try_echo=$ac_try;; |
7950 | esac | | 7950 | esac |
7951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 7951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7952 | (eval "$ac_compile") 2>conftest.er1 | | 7952 | (eval "$ac_compile") 2>conftest.er1 |
7953 | ac_status=$? | | 7953 | ac_status=$? |
7954 | grep -v '^ *+' conftest.er1 >conftest.err | | 7954 | grep -v '^ *+' conftest.er1 >conftest.err |
7955 | rm -f conftest.er1 | | 7955 | rm -f conftest.er1 |
7956 | cat conftest.err >&5 | | 7956 | cat conftest.err >&5 |
7957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 7957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7958 | (exit $ac_status); } && { | | 7958 | (exit $ac_status); } && { |
7959 | test -z "$ac_c_werror_flag" || | | 7959 | test -z "$ac_c_werror_flag" || |
7960 | test ! -s conftest.err | | 7960 | test ! -s conftest.err |
7961 | } && test -s conftest.$ac_objext; then | | 7961 | } && test -s conftest.$ac_objext; then |
7962 | ac_lo=0 ac_mid=0 | | 7962 | ac_lo=0 ac_mid=0 |
7963 | while :; do | | 7963 | while :; do |
7964 | cat >conftest.$ac_ext <<_ACEOF | | 7964 | cat >conftest.$ac_ext <<_ACEOF |
7965 | /* confdefs.h. */ | | 7965 | /* confdefs.h. */ |
7966 | _ACEOF | | 7966 | _ACEOF |
7967 | cat confdefs.h >>conftest.$ac_ext | | 7967 | cat confdefs.h >>conftest.$ac_ext |
7968 | cat >>conftest.$ac_ext <<_ACEOF | | 7968 | cat >>conftest.$ac_ext <<_ACEOF |
7969 | /* end confdefs.h. */ | | 7969 | /* end confdefs.h. */ |
7970 | $ac_includes_default | | 7970 | $ac_includes_default |
7971 | typedef off_t ac__type_sizeof_; | | 7971 | typedef off_t ac__type_sizeof_; |
7972 | int | | 7972 | int |
7973 | main () | | 7973 | main () |
7974 | { | | 7974 | { |
7975 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | | 7975 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
7976 | test_array [0] = 0 | | 7976 | test_array [0] = 0 |
7977 | | | 7977 | |
7978 | ; | | 7978 | ; |
7979 | return 0; | | 7979 | return 0; |
7980 | } | | 7980 | } |
7981 | _ACEOF | | 7981 | _ACEOF |
7982 | rm -f conftest.$ac_objext | | 7982 | rm -f conftest.$ac_objext |
7983 | if { (ac_try="$ac_compile" | | 7983 | if { (ac_try="$ac_compile" |
7984 | case "(($ac_try" in | | 7984 | case "(($ac_try" in |
7985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 7985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7986 | *) ac_try_echo=$ac_try;; | | 7986 | *) ac_try_echo=$ac_try;; |
7987 | esac | | 7987 | esac |
7988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 7988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7989 | (eval "$ac_compile") 2>conftest.er1 | | 7989 | (eval "$ac_compile") 2>conftest.er1 |
7990 | ac_status=$? | | 7990 | ac_status=$? |
7991 | grep -v '^ *+' conftest.er1 >conftest.err | | 7991 | grep -v '^ *+' conftest.er1 >conftest.err |
7992 | rm -f conftest.er1 | | 7992 | rm -f conftest.er1 |
7993 | cat conftest.err >&5 | | 7993 | cat conftest.err >&5 |
7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7995 | (exit $ac_status); } && { | | 7995 | (exit $ac_status); } && { |
7996 | test -z "$ac_c_werror_flag" || | | 7996 | test -z "$ac_c_werror_flag" || |
7997 | test ! -s conftest.err | | 7997 | test ! -s conftest.err |
7998 | } && test -s conftest.$ac_objext; then | | 7998 | } && test -s conftest.$ac_objext; then |
7999 | ac_hi=$ac_mid; break | | 7999 | ac_hi=$ac_mid; break |
8000 | else | | 8000 | else |
8001 | echo "$as_me: failed program was:" >&5 | | 8001 | echo "$as_me: failed program was:" >&5 |
8002 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8002 | sed 's/^/| /' conftest.$ac_ext >&5 |
8003 | | | 8003 | |
8004 | ac_lo=`expr $ac_mid + 1` | | 8004 | ac_lo=`expr $ac_mid + 1` |
8005 | if test $ac_lo -le $ac_mid; then | | 8005 | if test $ac_lo -le $ac_mid; then |
8006 | ac_lo= ac_hi= | | 8006 | ac_lo= ac_hi= |
8007 | break | | 8007 | break |
8008 | fi | | 8008 | fi |
8009 | ac_mid=`expr 2 '*' $ac_mid + 1` | | 8009 | ac_mid=`expr 2 '*' $ac_mid + 1` |
8010 | fi | | 8010 | fi |
8011 | | | 8011 | |
8012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 8012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8013 | done | | 8013 | done |
8014 | else | | 8014 | else |
8015 | echo "$as_me: failed program was:" >&5 | | 8015 | echo "$as_me: failed program was:" >&5 |
8016 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8016 | sed 's/^/| /' conftest.$ac_ext >&5 |
8017 | | | 8017 | |
8018 | cat >conftest.$ac_ext <<_ACEOF | | 8018 | cat >conftest.$ac_ext <<_ACEOF |
8019 | /* confdefs.h. */ | | 8019 | /* confdefs.h. */ |
8020 | _ACEOF | | 8020 | _ACEOF |
8021 | cat confdefs.h >>conftest.$ac_ext | | 8021 | cat confdefs.h >>conftest.$ac_ext |
8022 | cat >>conftest.$ac_ext <<_ACEOF | | 8022 | cat >>conftest.$ac_ext <<_ACEOF |
8023 | /* end confdefs.h. */ | | 8023 | /* end confdefs.h. */ |
8024 | $ac_includes_default | | 8024 | $ac_includes_default |
8025 | typedef off_t ac__type_sizeof_; | | 8025 | typedef off_t ac__type_sizeof_; |
8026 | int | | 8026 | int |
8027 | main () | | 8027 | main () |
8028 | { | | 8028 | { |
8029 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | | 8029 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8030 | test_array [0] = 0 | | 8030 | test_array [0] = 0 |
8031 | | | 8031 | |
8032 | ; | | 8032 | ; |
8033 | return 0; | | 8033 | return 0; |
8034 | } | | 8034 | } |
8035 | _ACEOF | | 8035 | _ACEOF |
8036 | rm -f conftest.$ac_objext | | 8036 | rm -f conftest.$ac_objext |
8037 | if { (ac_try="$ac_compile" | | 8037 | if { (ac_try="$ac_compile" |
8038 | case "(($ac_try" in | | 8038 | case "(($ac_try" in |
8039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8040 | *) ac_try_echo=$ac_try;; | | 8040 | *) ac_try_echo=$ac_try;; |
8041 | esac | | 8041 | esac |
8042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8043 | (eval "$ac_compile") 2>conftest.er1 | | 8043 | (eval "$ac_compile") 2>conftest.er1 |
8044 | ac_status=$? | | 8044 | ac_status=$? |
8045 | grep -v '^ *+' conftest.er1 >conftest.err | | 8045 | grep -v '^ *+' conftest.er1 >conftest.err |
8046 | rm -f conftest.er1 | | 8046 | rm -f conftest.er1 |
8047 | cat conftest.err >&5 | | 8047 | cat conftest.err >&5 |
8048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8049 | (exit $ac_status); } && { | | 8049 | (exit $ac_status); } && { |
8050 | test -z "$ac_c_werror_flag" || | | 8050 | test -z "$ac_c_werror_flag" || |
8051 | test ! -s conftest.err | | 8051 | test ! -s conftest.err |
8052 | } && test -s conftest.$ac_objext; then | | 8052 | } && test -s conftest.$ac_objext; then |
8053 | ac_hi=-1 ac_mid=-1 | | 8053 | ac_hi=-1 ac_mid=-1 |
8054 | while :; do | | 8054 | while :; do |
8055 | cat >conftest.$ac_ext <<_ACEOF | | 8055 | cat >conftest.$ac_ext <<_ACEOF |
8056 | /* confdefs.h. */ | | 8056 | /* confdefs.h. */ |
8057 | _ACEOF | | 8057 | _ACEOF |
8058 | cat confdefs.h >>conftest.$ac_ext | | 8058 | cat confdefs.h >>conftest.$ac_ext |
8059 | cat >>conftest.$ac_ext <<_ACEOF | | 8059 | cat >>conftest.$ac_ext <<_ACEOF |
8060 | /* end confdefs.h. */ | | 8060 | /* end confdefs.h. */ |
8061 | $ac_includes_default | | 8061 | $ac_includes_default |
8062 | typedef off_t ac__type_sizeof_; | | 8062 | typedef off_t ac__type_sizeof_; |
8063 | int | | 8063 | int |
8064 | main () | | 8064 | main () |
8065 | { | | 8065 | { |
8066 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | | 8066 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8067 | test_array [0] = 0 | | 8067 | test_array [0] = 0 |
8068 | | | 8068 | |
8069 | ; | | 8069 | ; |
8070 | return 0; | | 8070 | return 0; |
8071 | } | | 8071 | } |
8072 | _ACEOF | | 8072 | _ACEOF |
8073 | rm -f conftest.$ac_objext | | 8073 | rm -f conftest.$ac_objext |
8074 | if { (ac_try="$ac_compile" | | 8074 | if { (ac_try="$ac_compile" |
8075 | case "(($ac_try" in | | 8075 | case "(($ac_try" in |
8076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8077 | *) ac_try_echo=$ac_try;; | | 8077 | *) ac_try_echo=$ac_try;; |
8078 | esac | | 8078 | esac |
8079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8080 | (eval "$ac_compile") 2>conftest.er1 | | 8080 | (eval "$ac_compile") 2>conftest.er1 |
8081 | ac_status=$? | | 8081 | ac_status=$? |
8082 | grep -v '^ *+' conftest.er1 >conftest.err | | 8082 | grep -v '^ *+' conftest.er1 >conftest.err |
8083 | rm -f conftest.er1 | | 8083 | rm -f conftest.er1 |
8084 | cat conftest.err >&5 | | 8084 | cat conftest.err >&5 |
8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8086 | (exit $ac_status); } && { | | 8086 | (exit $ac_status); } && { |
8087 | test -z "$ac_c_werror_flag" || | | 8087 | test -z "$ac_c_werror_flag" || |
8088 | test ! -s conftest.err | | 8088 | test ! -s conftest.err |
8089 | } && test -s conftest.$ac_objext; then | | 8089 | } && test -s conftest.$ac_objext; then |
8090 | ac_lo=$ac_mid; break | | 8090 | ac_lo=$ac_mid; break |
8091 | else | | 8091 | else |
8092 | echo "$as_me: failed program was:" >&5 | | 8092 | echo "$as_me: failed program was:" >&5 |
8093 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8093 | sed 's/^/| /' conftest.$ac_ext >&5 |
8094 | | | 8094 | |
8095 | ac_hi=`expr '(' $ac_mid ')' - 1` | | 8095 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8096 | if test $ac_mid -le $ac_hi; then | | 8096 | if test $ac_mid -le $ac_hi; then |
8097 | ac_lo= ac_hi= | | 8097 | ac_lo= ac_hi= |
8098 | break | | 8098 | break |
8099 | fi | | 8099 | fi |
8100 | ac_mid=`expr 2 '*' $ac_mid` | | 8100 | ac_mid=`expr 2 '*' $ac_mid` |
8101 | fi | | 8101 | fi |
8102 | | | 8102 | |
8103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 8103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8104 | done | | 8104 | done |
8105 | else | | 8105 | else |
8106 | echo "$as_me: failed program was:" >&5 | | 8106 | echo "$as_me: failed program was:" >&5 |
8107 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8107 | sed 's/^/| /' conftest.$ac_ext >&5 |
8108 | | | 8108 | |
8109 | ac_lo= ac_hi= | | 8109 | ac_lo= ac_hi= |
8110 | fi | | 8110 | fi |
8111 | | | 8111 | |
8112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 8112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8113 | fi | | 8113 | fi |
8114 | | | 8114 | |
8115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 8115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8116 | # Binary search between lo and hi bounds. | | 8116 | # Binary search between lo and hi bounds. |
8117 | while test "x$ac_lo" != "x$ac_hi"; do | | 8117 | while test "x$ac_lo" != "x$ac_hi"; do |
8118 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | | 8118 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8119 | cat >conftest.$ac_ext <<_ACEOF | | 8119 | cat >conftest.$ac_ext <<_ACEOF |
8120 | /* confdefs.h. */ | | 8120 | /* confdefs.h. */ |
8121 | _ACEOF | | 8121 | _ACEOF |
8122 | cat confdefs.h >>conftest.$ac_ext | | 8122 | cat confdefs.h >>conftest.$ac_ext |
8123 | cat >>conftest.$ac_ext <<_ACEOF | | 8123 | cat >>conftest.$ac_ext <<_ACEOF |
8124 | /* end confdefs.h. */ | | 8124 | /* end confdefs.h. */ |
8125 | $ac_includes_default | | 8125 | $ac_includes_default |
8126 | typedef off_t ac__type_sizeof_; | | 8126 | typedef off_t ac__type_sizeof_; |
8127 | int | | 8127 | int |
8128 | main () | | 8128 | main () |
8129 | { | | 8129 | { |
8130 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | | 8130 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8131 | test_array [0] = 0 | | 8131 | test_array [0] = 0 |
8132 | | | 8132 | |
8133 | ; | | 8133 | ; |
8134 | return 0; | | 8134 | return 0; |
8135 | } | | 8135 | } |
8136 | _ACEOF | | 8136 | _ACEOF |
8137 | rm -f conftest.$ac_objext | | 8137 | rm -f conftest.$ac_objext |
8138 | if { (ac_try="$ac_compile" | | 8138 | if { (ac_try="$ac_compile" |
8139 | case "(($ac_try" in | | 8139 | case "(($ac_try" in |
8140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8141 | *) ac_try_echo=$ac_try;; | | 8141 | *) ac_try_echo=$ac_try;; |
8142 | esac | | 8142 | esac |
8143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8144 | (eval "$ac_compile") 2>conftest.er1 | | 8144 | (eval "$ac_compile") 2>conftest.er1 |
8145 | ac_status=$? | | 8145 | ac_status=$? |
8146 | grep -v '^ *+' conftest.er1 >conftest.err | | 8146 | grep -v '^ *+' conftest.er1 >conftest.err |
8147 | rm -f conftest.er1 | | 8147 | rm -f conftest.er1 |
8148 | cat conftest.err >&5 | | 8148 | cat conftest.err >&5 |
8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8150 | (exit $ac_status); } && { | | 8150 | (exit $ac_status); } && { |
8151 | test -z "$ac_c_werror_flag" || | | 8151 | test -z "$ac_c_werror_flag" || |
8152 | test ! -s conftest.err | | 8152 | test ! -s conftest.err |
8153 | } && test -s conftest.$ac_objext; then | | 8153 | } && test -s conftest.$ac_objext; then |
8154 | ac_hi=$ac_mid | | 8154 | ac_hi=$ac_mid |
8155 | else | | 8155 | else |
8156 | echo "$as_me: failed program was:" >&5 | | 8156 | echo "$as_me: failed program was:" >&5 |
8157 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8157 | sed 's/^/| /' conftest.$ac_ext >&5 |
8158 | | | 8158 | |
8159 | ac_lo=`expr '(' $ac_mid ')' + 1` | | 8159 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8160 | fi | | 8160 | fi |
8161 | | | 8161 | |
8162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 8162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8163 | done | | 8163 | done |
8164 | case $ac_lo in | | 8164 | case $ac_lo in |
8165 | ?*) ac_cv_sizeof_off_t=$ac_lo;; | | 8165 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
8166 | '') if test "$ac_cv_type_off_t" = yes; then | | 8166 | '') if test "$ac_cv_type_off_t" = yes; then |
8167 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) | | 8167 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
8168 | See \`config.log' for more details." >&5 | | 8168 | See \`config.log' for more details." >&5 |
8169 | echo "$as_me: error: cannot compute sizeof (off_t) | | 8169 | echo "$as_me: error: cannot compute sizeof (off_t) |
8170 | See \`config.log' for more details." >&2;} | | 8170 | See \`config.log' for more details." >&2;} |
8171 | { (exit 77); exit 77; }; } | | 8171 | { (exit 77); exit 77; }; } |
8172 | else | | 8172 | else |
8173 | ac_cv_sizeof_off_t=0 | | 8173 | ac_cv_sizeof_off_t=0 |
8174 | fi ;; | | 8174 | fi ;; |
8175 | esac | | 8175 | esac |
8176 | else | | 8176 | else |
8177 | cat >conftest.$ac_ext <<_ACEOF | | 8177 | cat >conftest.$ac_ext <<_ACEOF |
8178 | /* confdefs.h. */ | | 8178 | /* confdefs.h. */ |
8179 | _ACEOF | | 8179 | _ACEOF |
8180 | cat confdefs.h >>conftest.$ac_ext | | 8180 | cat confdefs.h >>conftest.$ac_ext |
8181 | cat >>conftest.$ac_ext <<_ACEOF | | 8181 | cat >>conftest.$ac_ext <<_ACEOF |
8182 | /* end confdefs.h. */ | | 8182 | /* end confdefs.h. */ |
8183 | $ac_includes_default | | 8183 | $ac_includes_default |
8184 | typedef off_t ac__type_sizeof_; | | 8184 | typedef off_t ac__type_sizeof_; |
8185 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | | 8185 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
8186 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | | 8186 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
8187 | #include <stdio.h> | | 8187 | #include <stdio.h> |
8188 | #include <stdlib.h> | | 8188 | #include <stdlib.h> |
8189 | int | | 8189 | int |
8190 | main () | | 8190 | main () |
8191 | { | | 8191 | { |
8192 | | | 8192 | |
8193 | FILE *f = fopen ("conftest.val", "w"); | | 8193 | FILE *f = fopen ("conftest.val", "w"); |
8194 | if (! f) | | 8194 | if (! f) |
8195 | return 1; | | 8195 | return 1; |
8196 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | | 8196 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
8197 | { | | 8197 | { |
8198 | long int i = longval (); | | 8198 | long int i = longval (); |
8199 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | | 8199 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
8200 | return 1; | | 8200 | return 1; |
8201 | fprintf (f, "%ld\n", i); | | 8201 | fprintf (f, "%ld\n", i); |
8202 | } | | 8202 | } |
8203 | else | | 8203 | else |
8204 | { | | 8204 | { |
8205 | unsigned long int i = ulongval (); | | 8205 | unsigned long int i = ulongval (); |
8206 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | | 8206 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
8207 | return 1; | | 8207 | return 1; |
8208 | fprintf (f, "%lu\n", i); | | 8208 | fprintf (f, "%lu\n", i); |
8209 | } | | 8209 | } |
8210 | return ferror (f) || fclose (f) != 0; | | 8210 | return ferror (f) || fclose (f) != 0; |
8211 | | | 8211 | |
8212 | ; | | 8212 | ; |
8213 | return 0; | | 8213 | return 0; |
8214 | } | | 8214 | } |
8215 | _ACEOF | | 8215 | _ACEOF |
8216 | rm -f conftest$ac_exeext | | 8216 | rm -f conftest$ac_exeext |
8217 | if { (ac_try="$ac_link" | | 8217 | if { (ac_try="$ac_link" |
8218 | case "(($ac_try" in | | 8218 | case "(($ac_try" in |
8219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8220 | *) ac_try_echo=$ac_try;; | | 8220 | *) ac_try_echo=$ac_try;; |
8221 | esac | | 8221 | esac |
8222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8223 | (eval "$ac_link") 2>&5 | | 8223 | (eval "$ac_link") 2>&5 |
8224 | ac_status=$? | | 8224 | ac_status=$? |
8225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8226 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | | 8226 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8227 | { (case "(($ac_try" in | | 8227 | { (case "(($ac_try" in |
8228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8229 | *) ac_try_echo=$ac_try;; | | 8229 | *) ac_try_echo=$ac_try;; |
8230 | esac | | 8230 | esac |
8231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8232 | (eval "$ac_try") 2>&5 | | 8232 | (eval "$ac_try") 2>&5 |
8233 | ac_status=$? | | 8233 | ac_status=$? |
8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8235 | (exit $ac_status); }; }; then | | 8235 | (exit $ac_status); }; }; then |
8236 | ac_cv_sizeof_off_t=`cat conftest.val` | | 8236 | ac_cv_sizeof_off_t=`cat conftest.val` |
8237 | else | | 8237 | else |
8238 | echo "$as_me: program exited with status $ac_status" >&5 | | 8238 | echo "$as_me: program exited with status $ac_status" >&5 |
8239 | echo "$as_me: failed program was:" >&5 | | 8239 | echo "$as_me: failed program was:" >&5 |
8240 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8240 | sed 's/^/| /' conftest.$ac_ext >&5 |
8241 | | | 8241 | |
8242 | ( exit $ac_status ) | | 8242 | ( exit $ac_status ) |
8243 | if test "$ac_cv_type_off_t" = yes; then | | 8243 | if test "$ac_cv_type_off_t" = yes; then |
8244 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) | | 8244 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
8245 | See \`config.log' for more details." >&5 | | 8245 | See \`config.log' for more details." >&5 |
8246 | echo "$as_me: error: cannot compute sizeof (off_t) | | 8246 | echo "$as_me: error: cannot compute sizeof (off_t) |
8247 | See \`config.log' for more details." >&2;} | | 8247 | See \`config.log' for more details." >&2;} |
8248 | { (exit 77); exit 77; }; } | | 8248 | { (exit 77); exit 77; }; } |
8249 | else | | 8249 | else |
8250 | ac_cv_sizeof_off_t=0 | | 8250 | ac_cv_sizeof_off_t=0 |
8251 | fi | | 8251 | fi |
8252 | fi | | 8252 | fi |
8253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | | 8253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8254 | fi | | 8254 | fi |
8255 | rm -f conftest.val | | 8255 | rm -f conftest.val |
8256 | fi | | 8256 | fi |
8257 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 | | 8257 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
8258 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } | | 8258 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
8259 | | | 8259 | |
8260 | | | 8260 | |
8261 | | | 8261 | |
8262 | cat >>confdefs.h <<_ACEOF | | 8262 | cat >>confdefs.h <<_ACEOF |
8263 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | | 8263 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
8264 | _ACEOF | | 8264 | _ACEOF |
8265 | | | 8265 | |
8266 | | | 8266 | |
8267 | | | 8267 | |
8268 | # Checks for library functions. | | 8268 | # Checks for library functions. |
8269 | | | 8269 | |
8270 | for ac_header in stdlib.h | | 8270 | for ac_header in stdlib.h |
8271 | do | | 8271 | do |
8272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | | 8272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | | 8273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8274 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | | 8274 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | | 8275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | | 8276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 8277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8278 | fi | | 8278 | fi |
8279 | ac_res=`eval echo '${'$as_ac_Header'}'` | | 8279 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8280 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 8280 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
8281 | echo "${ECHO_T}$ac_res" >&6; } | | 8281 | echo "${ECHO_T}$ac_res" >&6; } |
8282 | else | | 8282 | else |
8283 | # Is the header compilable? | | 8283 | # Is the header compilable? |
8284 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | | 8284 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | | 8285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
8286 | cat >conftest.$ac_ext <<_ACEOF | | 8286 | cat >conftest.$ac_ext <<_ACEOF |
8287 | /* confdefs.h. */ | | 8287 | /* confdefs.h. */ |
8288 | _ACEOF | | 8288 | _ACEOF |
8289 | cat confdefs.h >>conftest.$ac_ext | | 8289 | cat confdefs.h >>conftest.$ac_ext |
8290 | cat >>conftest.$ac_ext <<_ACEOF | | 8290 | cat >>conftest.$ac_ext <<_ACEOF |
8291 | /* end confdefs.h. */ | | 8291 | /* end confdefs.h. */ |
8292 | $ac_includes_default | | 8292 | $ac_includes_default |
8293 | #include <$ac_header> | | 8293 | #include <$ac_header> |
8294 | _ACEOF | | 8294 | _ACEOF |
8295 | rm -f conftest.$ac_objext | | 8295 | rm -f conftest.$ac_objext |
8296 | if { (ac_try="$ac_compile" | | 8296 | if { (ac_try="$ac_compile" |
8297 | case "(($ac_try" in | | 8297 | case "(($ac_try" in |
8298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8299 | *) ac_try_echo=$ac_try;; | | 8299 | *) ac_try_echo=$ac_try;; |
8300 | esac | | 8300 | esac |
8301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8302 | (eval "$ac_compile") 2>conftest.er1 | | 8302 | (eval "$ac_compile") 2>conftest.er1 |
8303 | ac_status=$? | | 8303 | ac_status=$? |
8304 | grep -v '^ *+' conftest.er1 >conftest.err | | 8304 | grep -v '^ *+' conftest.er1 >conftest.err |
8305 | rm -f conftest.er1 | | 8305 | rm -f conftest.er1 |
8306 | cat conftest.err >&5 | | 8306 | cat conftest.err >&5 |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8308 | (exit $ac_status); } && { | | 8308 | (exit $ac_status); } && { |
8309 | test -z "$ac_c_werror_flag" || | | 8309 | test -z "$ac_c_werror_flag" || |
8310 | test ! -s conftest.err | | 8310 | test ! -s conftest.err |
8311 | } && test -s conftest.$ac_objext; then | | 8311 | } && test -s conftest.$ac_objext; then |
8312 | ac_header_compiler=yes | | 8312 | ac_header_compiler=yes |
8313 | else | | 8313 | else |
8314 | echo "$as_me: failed program was:" >&5 | | 8314 | echo "$as_me: failed program was:" >&5 |
8315 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
8316 | | | 8316 | |
8317 | ac_header_compiler=no | | 8317 | ac_header_compiler=no |
8318 | fi | | 8318 | fi |
8319 | | | 8319 | |
8320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 8320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8321 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | | 8321 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8322 | echo "${ECHO_T}$ac_header_compiler" >&6; } | | 8322 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8323 | | | 8323 | |
8324 | # Is the header present? | | 8324 | # Is the header present? |
8325 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | | 8325 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8326 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | | 8326 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
8327 | cat >conftest.$ac_ext <<_ACEOF | | 8327 | cat >conftest.$ac_ext <<_ACEOF |
8328 | /* confdefs.h. */ | | 8328 | /* confdefs.h. */ |
8329 | _ACEOF | | 8329 | _ACEOF |
8330 | cat confdefs.h >>conftest.$ac_ext | | 8330 | cat confdefs.h >>conftest.$ac_ext |
8331 | cat >>conftest.$ac_ext <<_ACEOF | | 8331 | cat >>conftest.$ac_ext <<_ACEOF |
8332 | /* end confdefs.h. */ | | 8332 | /* end confdefs.h. */ |
8333 | #include <$ac_header> | | 8333 | #include <$ac_header> |
8334 | _ACEOF | | 8334 | _ACEOF |
8335 | if { (ac_try="$ac_cpp conftest.$ac_ext" | | 8335 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8336 | case "(($ac_try" in | | 8336 | case "(($ac_try" in |
8337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8338 | *) ac_try_echo=$ac_try;; | | 8338 | *) ac_try_echo=$ac_try;; |
8339 | esac | | 8339 | esac |
8340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | | 8341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8342 | ac_status=$? | | 8342 | ac_status=$? |
8343 | grep -v '^ *+' conftest.er1 >conftest.err | | 8343 | grep -v '^ *+' conftest.er1 >conftest.err |
8344 | rm -f conftest.er1 | | 8344 | rm -f conftest.er1 |
8345 | cat conftest.err >&5 | | 8345 | cat conftest.err >&5 |
8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8347 | (exit $ac_status); } >/dev/null && { | | 8347 | (exit $ac_status); } >/dev/null && { |
8348 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | | 8348 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8349 | test ! -s conftest.err | | 8349 | test ! -s conftest.err |
8350 | }; then | | 8350 | }; then |
8351 | ac_header_preproc=yes | | 8351 | ac_header_preproc=yes |
8352 | else | | 8352 | else |
8353 | echo "$as_me: failed program was:" >&5 | | 8353 | echo "$as_me: failed program was:" >&5 |
8354 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8354 | sed 's/^/| /' conftest.$ac_ext >&5 |
8355 | | | 8355 | |
8356 | ac_header_preproc=no | | 8356 | ac_header_preproc=no |
8357 | fi | | 8357 | fi |
8358 | | | 8358 | |
8359 | rm -f conftest.err conftest.$ac_ext | | 8359 | rm -f conftest.err conftest.$ac_ext |
8360 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | | 8360 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8361 | echo "${ECHO_T}$ac_header_preproc" >&6; } | | 8361 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8362 | | | 8362 | |
8363 | # So? What about this header? | | 8363 | # So? What about this header? |
8364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | | 8364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8365 | yes:no: ) | | 8365 | yes:no: ) |
8366 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | | 8366 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8367 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | | 8367 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | | 8368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8369 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | | 8369 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8370 | ac_header_preproc=yes | | 8370 | ac_header_preproc=yes |
8371 | ;; | | 8371 | ;; |
8372 | no:yes:* ) | | 8372 | no:yes:* ) |
8373 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | | 8373 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8374 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | | 8374 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8375 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | | 8375 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8376 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | | 8376 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8377 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | | 8377 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8378 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | | 8378 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8379 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | | 8379 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8380 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | | 8380 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | | 8381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8382 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | | 8382 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8383 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | | 8383 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8384 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | | 8384 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8385 | ( cat <<\_ASBOX | | 8385 | ( cat <<\_ASBOX |
8386 | ## ------------------------------- ## | | 8386 | ## ------------------------------- ## |
8387 | ## Report this to grant@NetBSD.org ## | | 8387 | ## Report this to grant@NetBSD.org ## |
8388 | ## ------------------------------- ## | | 8388 | ## ------------------------------- ## |
8389 | _ASBOX | | 8389 | _ASBOX |
8390 | ) | sed "s/^/$as_me: WARNING: /" >&2 | | 8390 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
8391 | ;; | | 8391 | ;; |
8392 | esac | | 8392 | esac |
8393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | | 8393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | | 8394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | | 8395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 8396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8397 | else | | 8397 | else |
8398 | eval "$as_ac_Header=\$ac_header_preproc" | | 8398 | eval "$as_ac_Header=\$ac_header_preproc" |
8399 | fi | | 8399 | fi |
8400 | ac_res=`eval echo '${'$as_ac_Header'}'` | | 8400 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8401 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 8401 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
8402 | echo "${ECHO_T}$ac_res" >&6; } | | 8402 | echo "${ECHO_T}$ac_res" >&6; } |
8403 | | | 8403 | |
8404 | fi | | 8404 | fi |
8405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | | 8405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8406 | cat >>confdefs.h <<_ACEOF | | 8406 | cat >>confdefs.h <<_ACEOF |
8407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | | 8407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8408 | _ACEOF | | 8408 | _ACEOF |
8409 | | | 8409 | |
8410 | fi | | 8410 | fi |
8411 | | | 8411 | |
8412 | done | | 8412 | done |
8413 | | | 8413 | |
8414 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | | 8414 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
8415 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | | 8415 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } |
8416 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | | 8416 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
8417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 8417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8418 | else | | 8418 | else |
8419 | if test "$cross_compiling" = yes; then | | 8419 | if test "$cross_compiling" = yes; then |
8420 | ac_cv_func_malloc_0_nonnull=no | | 8420 | ac_cv_func_malloc_0_nonnull=no |
8421 | else | | 8421 | else |
8422 | cat >conftest.$ac_ext <<_ACEOF | | 8422 | cat >conftest.$ac_ext <<_ACEOF |
8423 | /* confdefs.h. */ | | 8423 | /* confdefs.h. */ |
8424 | _ACEOF | | 8424 | _ACEOF |
8425 | cat confdefs.h >>conftest.$ac_ext | | 8425 | cat confdefs.h >>conftest.$ac_ext |
8426 | cat >>conftest.$ac_ext <<_ACEOF | | 8426 | cat >>conftest.$ac_ext <<_ACEOF |
8427 | /* end confdefs.h. */ | | 8427 | /* end confdefs.h. */ |
8428 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | | 8428 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
8429 | # include <stdlib.h> | | 8429 | # include <stdlib.h> |
8430 | #else | | 8430 | #else |
8431 | char *malloc (); | | 8431 | char *malloc (); |
8432 | #endif | | 8432 | #endif |
8433 | | | 8433 | |
8434 | int | | 8434 | int |
8435 | main () | | 8435 | main () |
8436 | { | | 8436 | { |
8437 | return ! malloc (0); | | 8437 | return ! malloc (0); |
8438 | ; | | 8438 | ; |
8439 | return 0; | | 8439 | return 0; |
8440 | } | | 8440 | } |
8441 | _ACEOF | | 8441 | _ACEOF |
8442 | rm -f conftest$ac_exeext | | 8442 | rm -f conftest$ac_exeext |
8443 | if { (ac_try="$ac_link" | | 8443 | if { (ac_try="$ac_link" |
8444 | case "(($ac_try" in | | 8444 | case "(($ac_try" in |
8445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8446 | *) ac_try_echo=$ac_try;; | | 8446 | *) ac_try_echo=$ac_try;; |
8447 | esac | | 8447 | esac |
8448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8449 | (eval "$ac_link") 2>&5 | | 8449 | (eval "$ac_link") 2>&5 |
8450 | ac_status=$? | | 8450 | ac_status=$? |
8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8452 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | | 8452 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8453 | { (case "(($ac_try" in | | 8453 | { (case "(($ac_try" in |
8454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8455 | *) ac_try_echo=$ac_try;; | | 8455 | *) ac_try_echo=$ac_try;; |
8456 | esac | | 8456 | esac |
8457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8458 | (eval "$ac_try") 2>&5 | | 8458 | (eval "$ac_try") 2>&5 |
8459 | ac_status=$? | | 8459 | ac_status=$? |
8460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8461 | (exit $ac_status); }; }; then | | 8461 | (exit $ac_status); }; }; then |
8462 | ac_cv_func_malloc_0_nonnull=yes | | 8462 | ac_cv_func_malloc_0_nonnull=yes |
8463 | else | | 8463 | else |
8464 | echo "$as_me: program exited with status $ac_status" >&5 | | 8464 | echo "$as_me: program exited with status $ac_status" >&5 |
8465 | echo "$as_me: failed program was:" >&5 | | 8465 | echo "$as_me: failed program was:" >&5 |
8466 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8466 | sed 's/^/| /' conftest.$ac_ext >&5 |
8467 | | | 8467 | |
8468 | ( exit $ac_status ) | | 8468 | ( exit $ac_status ) |
8469 | ac_cv_func_malloc_0_nonnull=no | | 8469 | ac_cv_func_malloc_0_nonnull=no |
8470 | fi | | 8470 | fi |
8471 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | | 8471 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8472 | fi | | 8472 | fi |
8473 | | | 8473 | |
8474 | | | 8474 | |
8475 | fi | | 8475 | fi |
8476 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | | 8476 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
8477 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | | 8477 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } |
8478 | if test $ac_cv_func_malloc_0_nonnull = yes; then | | 8478 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
8479 | | | 8479 | |
8480 | cat >>confdefs.h <<\_ACEOF | | 8480 | cat >>confdefs.h <<\_ACEOF |
8481 | #define HAVE_MALLOC 1 | | 8481 | #define HAVE_MALLOC 1 |
8482 | _ACEOF | | 8482 | _ACEOF |
8483 | | | 8483 | |
8484 | else | | 8484 | else |
8485 | cat >>confdefs.h <<\_ACEOF | | 8485 | cat >>confdefs.h <<\_ACEOF |
8486 | #define HAVE_MALLOC 0 | | 8486 | #define HAVE_MALLOC 0 |
8487 | _ACEOF | | 8487 | _ACEOF |
8488 | | | 8488 | |
8489 | case " $LIBOBJS " in | | 8489 | case " $LIBOBJS " in |
8490 | *" malloc.$ac_objext "* ) ;; | | 8490 | *" malloc.$ac_objext "* ) ;; |
8491 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | | 8491 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
8492 | ;; | | 8492 | ;; |
8493 | esac | | 8493 | esac |
8494 | | | 8494 | |
8495 | | | 8495 | |
8496 | cat >>confdefs.h <<\_ACEOF | | 8496 | cat >>confdefs.h <<\_ACEOF |
8497 | #define malloc rpl_malloc | | 8497 | #define malloc rpl_malloc |
8498 | _ACEOF | | 8498 | _ACEOF |
8499 | | | 8499 | |
8500 | fi | | 8500 | fi |
8501 | | | 8501 | |
8502 | | | 8502 | |
8503 | | | 8503 | |
8504 | { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 | | 8504 | { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 |
8505 | echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; } | | 8505 | echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; } |
8506 | if test "${ac_cv_have_decl_strerror_r+set}" = set; then | | 8506 | if test "${ac_cv_have_decl_strerror_r+set}" = set; then |
8507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 8507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8508 | else | | 8508 | else |
8509 | cat >conftest.$ac_ext <<_ACEOF | | 8509 | cat >conftest.$ac_ext <<_ACEOF |
8510 | /* confdefs.h. */ | | 8510 | /* confdefs.h. */ |
8511 | _ACEOF | | 8511 | _ACEOF |
8512 | cat confdefs.h >>conftest.$ac_ext | | 8512 | cat confdefs.h >>conftest.$ac_ext |
8513 | cat >>conftest.$ac_ext <<_ACEOF | | 8513 | cat >>conftest.$ac_ext <<_ACEOF |
8514 | /* end confdefs.h. */ | | 8514 | /* end confdefs.h. */ |
8515 | $ac_includes_default | | 8515 | $ac_includes_default |
8516 | int | | 8516 | int |
8517 | main () | | 8517 | main () |
8518 | { | | 8518 | { |
8519 | #ifndef strerror_r | | 8519 | #ifndef strerror_r |
8520 | (void) strerror_r; | | 8520 | (void) strerror_r; |
8521 | #endif | | 8521 | #endif |
8522 | | | 8522 | |
8523 | ; | | 8523 | ; |
8524 | return 0; | | 8524 | return 0; |
8525 | } | | 8525 | } |
8526 | _ACEOF | | 8526 | _ACEOF |
8527 | rm -f conftest.$ac_objext | | 8527 | rm -f conftest.$ac_objext |
8528 | if { (ac_try="$ac_compile" | | 8528 | if { (ac_try="$ac_compile" |
8529 | case "(($ac_try" in | | 8529 | case "(($ac_try" in |
8530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8531 | *) ac_try_echo=$ac_try;; | | 8531 | *) ac_try_echo=$ac_try;; |
8532 | esac | | 8532 | esac |
8533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8534 | (eval "$ac_compile") 2>conftest.er1 | | 8534 | (eval "$ac_compile") 2>conftest.er1 |
8535 | ac_status=$? | | 8535 | ac_status=$? |
8536 | grep -v '^ *+' conftest.er1 >conftest.err | | 8536 | grep -v '^ *+' conftest.er1 >conftest.err |
8537 | rm -f conftest.er1 | | 8537 | rm -f conftest.er1 |
8538 | cat conftest.err >&5 | | 8538 | cat conftest.err >&5 |
8539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8540 | (exit $ac_status); } && { | | 8540 | (exit $ac_status); } && { |
8541 | test -z "$ac_c_werror_flag" || | | 8541 | test -z "$ac_c_werror_flag" || |
8542 | test ! -s conftest.err | | 8542 | test ! -s conftest.err |
8543 | } && test -s conftest.$ac_objext; then | | 8543 | } && test -s conftest.$ac_objext; then |
8544 | ac_cv_have_decl_strerror_r=yes | | 8544 | ac_cv_have_decl_strerror_r=yes |
8545 | else | | 8545 | else |
8546 | echo "$as_me: failed program was:" >&5 | | 8546 | echo "$as_me: failed program was:" >&5 |
8547 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8547 | sed 's/^/| /' conftest.$ac_ext >&5 |
8548 | | | 8548 | |
8549 | ac_cv_have_decl_strerror_r=no | | 8549 | ac_cv_have_decl_strerror_r=no |
8550 | fi | | 8550 | fi |
8551 | | | 8551 | |
8552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 8552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8553 | fi | | 8553 | fi |
8554 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 | | 8554 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 |
8555 | echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; } | | 8555 | echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; } |
8556 | if test $ac_cv_have_decl_strerror_r = yes; then | | 8556 | if test $ac_cv_have_decl_strerror_r = yes; then |
8557 | | | 8557 | |
8558 | cat >>confdefs.h <<_ACEOF | | 8558 | cat >>confdefs.h <<_ACEOF |
8559 | #define HAVE_DECL_STRERROR_R 1 | | 8559 | #define HAVE_DECL_STRERROR_R 1 |
8560 | _ACEOF | | 8560 | _ACEOF |
8561 | | | 8561 | |
8562 | | | 8562 | |
8563 | else | | 8563 | else |
8564 | cat >>confdefs.h <<_ACEOF | | 8564 | cat >>confdefs.h <<_ACEOF |
8565 | #define HAVE_DECL_STRERROR_R 0 | | 8565 | #define HAVE_DECL_STRERROR_R 0 |
8566 | _ACEOF | | 8566 | _ACEOF |
8567 | | | 8567 | |
8568 | | | 8568 | |
8569 | fi | | 8569 | fi |
8570 | | | 8570 | |
8571 | | | 8571 | |
8572 | | | 8572 | |
8573 | for ac_func in strerror_r | | 8573 | for ac_func in strerror_r |
8574 | do | | 8574 | do |
8575 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 8575 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8576 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 8576 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8577 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 8577 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8578 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 8578 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 8579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8580 | else | | 8580 | else |
8581 | cat >conftest.$ac_ext <<_ACEOF | | 8581 | cat >conftest.$ac_ext <<_ACEOF |
8582 | /* confdefs.h. */ | | 8582 | /* confdefs.h. */ |
8583 | _ACEOF | | 8583 | _ACEOF |
8584 | cat confdefs.h >>conftest.$ac_ext | | 8584 | cat confdefs.h >>conftest.$ac_ext |
8585 | cat >>conftest.$ac_ext <<_ACEOF | | 8585 | cat >>conftest.$ac_ext <<_ACEOF |
8586 | /* end confdefs.h. */ | | 8586 | /* end confdefs.h. */ |
8587 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 8587 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8588 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 8588 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8589 | #define $ac_func innocuous_$ac_func | | 8589 | #define $ac_func innocuous_$ac_func |
8590 | | | 8590 | |
8591 | /* System header to define __stub macros and hopefully few prototypes, | | 8591 | /* System header to define __stub macros and hopefully few prototypes, |
8592 | which can conflict with char $ac_func (); below. | | 8592 | which can conflict with char $ac_func (); below. |
8593 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 8593 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8594 | <limits.h> exists even on freestanding compilers. */ | | 8594 | <limits.h> exists even on freestanding compilers. */ |
8595 | | | 8595 | |
8596 | #ifdef __STDC__ | | 8596 | #ifdef __STDC__ |
8597 | # include <limits.h> | | 8597 | # include <limits.h> |
8598 | #else | | 8598 | #else |
8599 | # include <assert.h> | | 8599 | # include <assert.h> |
8600 | #endif | | 8600 | #endif |
8601 | | | 8601 | |
8602 | #undef $ac_func | | 8602 | #undef $ac_func |
8603 | | | 8603 | |
8604 | /* Override any GCC internal prototype to avoid an error. | | 8604 | /* Override any GCC internal prototype to avoid an error. |
8605 | Use char because int might match the return type of a GCC | | 8605 | Use char because int might match the return type of a GCC |
8606 | builtin and then its argument prototype would still apply. */ | | 8606 | builtin and then its argument prototype would still apply. */ |
8607 | #ifdef __cplusplus | | 8607 | #ifdef __cplusplus |
8608 | extern "C" | | 8608 | extern "C" |
8609 | #endif | | 8609 | #endif |
8610 | char $ac_func (); | | 8610 | char $ac_func (); |
8611 | /* The GNU C library defines this for functions which it implements | | 8611 | /* The GNU C library defines this for functions which it implements |
8612 | to always fail with ENOSYS. Some functions are actually named | | 8612 | to always fail with ENOSYS. Some functions are actually named |
8613 | something starting with __ and the normal name is an alias. */ | | 8613 | something starting with __ and the normal name is an alias. */ |
8614 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 8614 | #if defined __stub_$ac_func || defined __stub___$ac_func |
8615 | choke me | | 8615 | choke me |
8616 | #endif | | 8616 | #endif |
8617 | | | 8617 | |
8618 | int | | 8618 | int |
8619 | main () | | 8619 | main () |
8620 | { | | 8620 | { |
8621 | return $ac_func (); | | 8621 | return $ac_func (); |
8622 | ; | | 8622 | ; |
8623 | return 0; | | 8623 | return 0; |
8624 | } | | 8624 | } |
8625 | _ACEOF | | 8625 | _ACEOF |
8626 | rm -f conftest.$ac_objext conftest$ac_exeext | | 8626 | rm -f conftest.$ac_objext conftest$ac_exeext |
8627 | if { (ac_try="$ac_link" | | 8627 | if { (ac_try="$ac_link" |
8628 | case "(($ac_try" in | | 8628 | case "(($ac_try" in |
8629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8630 | *) ac_try_echo=$ac_try;; | | 8630 | *) ac_try_echo=$ac_try;; |
8631 | esac | | 8631 | esac |
8632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8633 | (eval "$ac_link") 2>conftest.er1 | | 8633 | (eval "$ac_link") 2>conftest.er1 |
8634 | ac_status=$? | | 8634 | ac_status=$? |
8635 | grep -v '^ *+' conftest.er1 >conftest.err | | 8635 | grep -v '^ *+' conftest.er1 >conftest.err |
8636 | rm -f conftest.er1 | | 8636 | rm -f conftest.er1 |
8637 | cat conftest.err >&5 | | 8637 | cat conftest.err >&5 |
8638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8639 | (exit $ac_status); } && { | | 8639 | (exit $ac_status); } && { |
8640 | test -z "$ac_c_werror_flag" || | | 8640 | test -z "$ac_c_werror_flag" || |
8641 | test ! -s conftest.err | | 8641 | test ! -s conftest.err |
8642 | } && test -s conftest$ac_exeext && | | 8642 | } && test -s conftest$ac_exeext && |
8643 | $as_test_x conftest$ac_exeext; then | | 8643 | $as_test_x conftest$ac_exeext; then |
8644 | eval "$as_ac_var=yes" | | 8644 | eval "$as_ac_var=yes" |
8645 | else | | 8645 | else |
8646 | echo "$as_me: failed program was:" >&5 | | 8646 | echo "$as_me: failed program was:" >&5 |
8647 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
8648 | | | 8648 | |
8649 | eval "$as_ac_var=no" | | 8649 | eval "$as_ac_var=no" |
8650 | fi | | 8650 | fi |
8651 | | | 8651 | |
8652 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 8652 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8653 | conftest$ac_exeext conftest.$ac_ext | | 8653 | conftest$ac_exeext conftest.$ac_ext |
8654 | fi | | 8654 | fi |
8655 | ac_res=`eval echo '${'$as_ac_var'}'` | | 8655 | ac_res=`eval echo '${'$as_ac_var'}'` |
8656 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 8656 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
8657 | echo "${ECHO_T}$ac_res" >&6; } | | 8657 | echo "${ECHO_T}$ac_res" >&6; } |
8658 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 8658 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8659 | cat >>confdefs.h <<_ACEOF | | 8659 | cat >>confdefs.h <<_ACEOF |
8660 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 8660 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8661 | _ACEOF | | 8661 | _ACEOF |
8662 | | | 8662 | |
8663 | fi | | 8663 | fi |
8664 | done | | 8664 | done |
8665 | | | 8665 | |
8666 | { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 | | 8666 | { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 |
8667 | echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; } | | 8667 | echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; } |
8668 | if test "${ac_cv_func_strerror_r_char_p+set}" = set; then | | 8668 | if test "${ac_cv_func_strerror_r_char_p+set}" = set; then |
8669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 8669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8670 | else | | 8670 | else |
8671 | | | 8671 | |
8672 | ac_cv_func_strerror_r_char_p=no | | 8672 | ac_cv_func_strerror_r_char_p=no |
8673 | if test $ac_cv_have_decl_strerror_r = yes; then | | 8673 | if test $ac_cv_have_decl_strerror_r = yes; then |
8674 | cat >conftest.$ac_ext <<_ACEOF | | 8674 | cat >conftest.$ac_ext <<_ACEOF |
8675 | /* confdefs.h. */ | | 8675 | /* confdefs.h. */ |
8676 | _ACEOF | | 8676 | _ACEOF |
8677 | cat confdefs.h >>conftest.$ac_ext | | 8677 | cat confdefs.h >>conftest.$ac_ext |
8678 | cat >>conftest.$ac_ext <<_ACEOF | | 8678 | cat >>conftest.$ac_ext <<_ACEOF |
8679 | /* end confdefs.h. */ | | 8679 | /* end confdefs.h. */ |
8680 | $ac_includes_default | | 8680 | $ac_includes_default |
8681 | int | | 8681 | int |
8682 | main () | | 8682 | main () |
8683 | { | | 8683 | { |
8684 | | | 8684 | |
8685 | char buf[100]; | | 8685 | char buf[100]; |
8686 | char x = *strerror_r (0, buf, sizeof buf); | | 8686 | char x = *strerror_r (0, buf, sizeof buf); |
8687 | char *p = strerror_r (0, buf, sizeof buf); | | 8687 | char *p = strerror_r (0, buf, sizeof buf); |
8688 | return !p || x; | | 8688 | return !p || x; |
8689 | | | 8689 | |
8690 | ; | | 8690 | ; |
8691 | return 0; | | 8691 | return 0; |
8692 | } | | 8692 | } |
8693 | _ACEOF | | 8693 | _ACEOF |
8694 | rm -f conftest.$ac_objext | | 8694 | rm -f conftest.$ac_objext |
8695 | if { (ac_try="$ac_compile" | | 8695 | if { (ac_try="$ac_compile" |
8696 | case "(($ac_try" in | | 8696 | case "(($ac_try" in |
8697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8698 | *) ac_try_echo=$ac_try;; | | 8698 | *) ac_try_echo=$ac_try;; |
8699 | esac | | 8699 | esac |
8700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8701 | (eval "$ac_compile") 2>conftest.er1 | | 8701 | (eval "$ac_compile") 2>conftest.er1 |
8702 | ac_status=$? | | 8702 | ac_status=$? |
8703 | grep -v '^ *+' conftest.er1 >conftest.err | | 8703 | grep -v '^ *+' conftest.er1 >conftest.err |
8704 | rm -f conftest.er1 | | 8704 | rm -f conftest.er1 |
8705 | cat conftest.err >&5 | | 8705 | cat conftest.err >&5 |
8706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8707 | (exit $ac_status); } && { | | 8707 | (exit $ac_status); } && { |
8708 | test -z "$ac_c_werror_flag" || | | 8708 | test -z "$ac_c_werror_flag" || |
8709 | test ! -s conftest.err | | 8709 | test ! -s conftest.err |
8710 | } && test -s conftest.$ac_objext; then | | 8710 | } && test -s conftest.$ac_objext; then |
8711 | ac_cv_func_strerror_r_char_p=yes | | 8711 | ac_cv_func_strerror_r_char_p=yes |
8712 | else | | 8712 | else |
8713 | echo "$as_me: failed program was:" >&5 | | 8713 | echo "$as_me: failed program was:" >&5 |
8714 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8714 | sed 's/^/| /' conftest.$ac_ext >&5 |
8715 | | | 8715 | |
8716 | | | 8716 | |
8717 | fi | | 8717 | fi |
8718 | | | 8718 | |
8719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 8719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8720 | else | | 8720 | else |
8721 | # strerror_r is not declared. Choose between | | 8721 | # strerror_r is not declared. Choose between |
8722 | # systems that have relatively inaccessible declarations for the | | 8722 | # systems that have relatively inaccessible declarations for the |
8723 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the | | 8723 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the |
8724 | # former has a strerror_r that returns char*, while the latter | | 8724 | # former has a strerror_r that returns char*, while the latter |
8725 | # has a strerror_r that returns `int'. | | 8725 | # has a strerror_r that returns `int'. |
8726 | # This test should segfault on the DEC system. | | 8726 | # This test should segfault on the DEC system. |
8727 | if test "$cross_compiling" = yes; then | | 8727 | if test "$cross_compiling" = yes; then |
8728 | : | | 8728 | : |
8729 | else | | 8729 | else |
8730 | cat >conftest.$ac_ext <<_ACEOF | | 8730 | cat >conftest.$ac_ext <<_ACEOF |
8731 | /* confdefs.h. */ | | 8731 | /* confdefs.h. */ |
8732 | _ACEOF | | 8732 | _ACEOF |
8733 | cat confdefs.h >>conftest.$ac_ext | | 8733 | cat confdefs.h >>conftest.$ac_ext |
8734 | cat >>conftest.$ac_ext <<_ACEOF | | 8734 | cat >>conftest.$ac_ext <<_ACEOF |
8735 | /* end confdefs.h. */ | | 8735 | /* end confdefs.h. */ |
8736 | $ac_includes_default | | 8736 | $ac_includes_default |
8737 | extern char *strerror_r (); | | 8737 | extern char *strerror_r (); |
8738 | int | | 8738 | int |
8739 | main () | | 8739 | main () |
8740 | { | | 8740 | { |
8741 | char buf[100]; | | 8741 | char buf[100]; |
8742 | char x = *strerror_r (0, buf, sizeof buf); | | 8742 | char x = *strerror_r (0, buf, sizeof buf); |
8743 | return ! isalpha (x); | | 8743 | return ! isalpha (x); |
8744 | ; | | 8744 | ; |
8745 | return 0; | | 8745 | return 0; |
8746 | } | | 8746 | } |
8747 | _ACEOF | | 8747 | _ACEOF |
8748 | rm -f conftest$ac_exeext | | 8748 | rm -f conftest$ac_exeext |
8749 | if { (ac_try="$ac_link" | | 8749 | if { (ac_try="$ac_link" |
8750 | case "(($ac_try" in | | 8750 | case "(($ac_try" in |
8751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8752 | *) ac_try_echo=$ac_try;; | | 8752 | *) ac_try_echo=$ac_try;; |
8753 | esac | | 8753 | esac |
8754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8755 | (eval "$ac_link") 2>&5 | | 8755 | (eval "$ac_link") 2>&5 |
8756 | ac_status=$? | | 8756 | ac_status=$? |
8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | | 8758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8759 | { (case "(($ac_try" in | | 8759 | { (case "(($ac_try" in |
8760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 8760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8761 | *) ac_try_echo=$ac_try;; | | 8761 | *) ac_try_echo=$ac_try;; |
8762 | esac | | 8762 | esac |
8763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 8763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8764 | (eval "$ac_try") 2>&5 | | 8764 | (eval "$ac_try") 2>&5 |
8765 | ac_status=$? | | 8765 | ac_status=$? |
8766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 8766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8767 | (exit $ac_status); }; }; then | | 8767 | (exit $ac_status); }; }; then |
8768 | ac_cv_func_strerror_r_char_p=yes | | 8768 | ac_cv_func_strerror_r_char_p=yes |
8769 | else | | 8769 | else |
8770 | echo "$as_me: program exited with status $ac_status" >&5 | | 8770 | echo "$as_me: program exited with status $ac_status" >&5 |
8771 | echo "$as_me: failed program was:" >&5 | | 8771 | echo "$as_me: failed program was:" >&5 |
8772 | sed 's/^/| /' conftest.$ac_ext >&5 | | 8772 | sed 's/^/| /' conftest.$ac_ext >&5 |
8773 | | | 8773 | |
8774 | fi | | 8774 | fi |
8775 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | | 8775 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8776 | fi | | 8776 | fi |
8777 | | | 8777 | |
8778 | | | 8778 | |
8779 | fi | | 8779 | fi |
8780 | | | 8780 | |
8781 | fi | | 8781 | fi |
8782 | { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 | | 8782 | { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 |
8783 | echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; } | | 8783 | echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; } |
8784 | if test $ac_cv_func_strerror_r_char_p = yes; then | | 8784 | if test $ac_cv_func_strerror_r_char_p = yes; then |
8785 | | | 8785 | |
8786 | cat >>confdefs.h <<\_ACEOF | | 8786 | cat >>confdefs.h <<\_ACEOF |
8787 | #define STRERROR_R_CHAR_P 1 | | 8787 | #define STRERROR_R_CHAR_P 1 |
8788 | _ACEOF | | 8788 | _ACEOF |
8789 | | | 8789 | |
8790 | fi | | 8790 | fi |
8791 | | | 8791 | |
| | | 8792 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| | | 8793 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| | | 8794 | if test "${ac_cv_type_pid_t+set}" = set; then |
| | | 8795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | | 8796 | else |
| | | 8797 | cat >conftest.$ac_ext <<_ACEOF |
| | | 8798 | /* confdefs.h. */ |
| | | 8799 | _ACEOF |
| | | 8800 | cat confdefs.h >>conftest.$ac_ext |
| | | 8801 | cat >>conftest.$ac_ext <<_ACEOF |
| | | 8802 | /* end confdefs.h. */ |
| | | 8803 | $ac_includes_default |
| | | 8804 | typedef pid_t ac__type_new_; |
| | | 8805 | int |
| | | 8806 | main () |
| | | 8807 | { |
| | | 8808 | if ((ac__type_new_ *) 0) |
| | | 8809 | return 0; |
| | | 8810 | if (sizeof (ac__type_new_)) |
| | | 8811 | return 0; |
| | | 8812 | ; |
| | | 8813 | return 0; |
| | | 8814 | } |
| | | 8815 | _ACEOF |
| | | 8816 | rm -f conftest.$ac_objext |
| | | 8817 | if { (ac_try="$ac_compile" |
| | | 8818 | case "(($ac_try" in |
| | | 8819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 8820 | *) ac_try_echo=$ac_try;; |
| | | 8821 | esac |
| | | 8822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | | 8823 | (eval "$ac_compile") 2>conftest.er1 |
| | | 8824 | ac_status=$? |
| | | 8825 | grep -v '^ *+' conftest.er1 >conftest.err |
| | | 8826 | rm -f conftest.er1 |
| | | 8827 | cat conftest.err >&5 |
| | | 8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | | 8829 | (exit $ac_status); } && { |
| | | 8830 | test -z "$ac_c_werror_flag" || |
| | | 8831 | test ! -s conftest.err |
| | | 8832 | } && test -s conftest.$ac_objext; then |
| | | 8833 | ac_cv_type_pid_t=yes |
| | | 8834 | else |
| | | 8835 | echo "$as_me: failed program was:" >&5 |
| | | 8836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | | 8837 | |
| | | 8838 | ac_cv_type_pid_t=no |
| | | 8839 | fi |
| | | 8840 | |
| | | 8841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | | 8842 | fi |
| | | 8843 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| | | 8844 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| | | 8845 | if test $ac_cv_type_pid_t = yes; then |
| | | 8846 | : |
| | | 8847 | else |
| | | 8848 | |
| | | 8849 | cat >>confdefs.h <<_ACEOF |
| | | 8850 | #define pid_t int |
| | | 8851 | _ACEOF |
| | | 8852 | |
| | | 8853 | fi |
| | | 8854 | |
| | | 8855 | |
| | | 8856 | for ac_header in vfork.h |
| | | 8857 | do |
| | | 8858 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| | | 8859 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| | | 8860 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| | | 8861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| | | 8862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| | | 8863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | | 8864 | fi |
| | | 8865 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| | | 8866 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| | | 8867 | echo "${ECHO_T}$ac_res" >&6; } |
| | | 8868 | else |
| | | 8869 | # Is the header compilable? |
| | | 8870 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| | | 8871 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| | | 8872 | cat >conftest.$ac_ext <<_ACEOF |
| | | 8873 | /* confdefs.h. */ |
| | | 8874 | _ACEOF |
| | | 8875 | cat confdefs.h >>conftest.$ac_ext |
| | | 8876 | cat >>conftest.$ac_ext <<_ACEOF |
| | | 8877 | /* end confdefs.h. */ |
| | | 8878 | $ac_includes_default |
| | | 8879 | #include <$ac_header> |
| | | 8880 | _ACEOF |
| | | 8881 | rm -f conftest.$ac_objext |
| | | 8882 | if { (ac_try="$ac_compile" |
| | | 8883 | case "(($ac_try" in |
| | | 8884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 8885 | *) ac_try_echo=$ac_try;; |
| | | 8886 | esac |
| | | 8887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | | 8888 | (eval "$ac_compile") 2>conftest.er1 |
| | | 8889 | ac_status=$? |
| | | 8890 | grep -v '^ *+' conftest.er1 >conftest.err |
| | | 8891 | rm -f conftest.er1 |
| | | 8892 | cat conftest.err >&5 |
| | | 8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | | 8894 | (exit $ac_status); } && { |
| | | 8895 | test -z "$ac_c_werror_flag" || |
| | | 8896 | test ! -s conftest.err |
| | | 8897 | } && test -s conftest.$ac_objext; then |
| | | 8898 | ac_header_compiler=yes |
| | | 8899 | else |
| | | 8900 | echo "$as_me: failed program was:" >&5 |
| | | 8901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | | 8902 | |
| | | 8903 | ac_header_compiler=no |
| | | 8904 | fi |
| | | 8905 | |
| | | 8906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| | | 8907 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| | | 8908 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| | | 8909 | |
| | | 8910 | # Is the header present? |
| | | 8911 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| | | 8912 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| | | 8913 | cat >conftest.$ac_ext <<_ACEOF |
| | | 8914 | /* confdefs.h. */ |
| | | 8915 | _ACEOF |
| | | 8916 | cat confdefs.h >>conftest.$ac_ext |
| | | 8917 | cat >>conftest.$ac_ext <<_ACEOF |
| | | 8918 | /* end confdefs.h. */ |
| | | 8919 | #include <$ac_header> |
| | | 8920 | _ACEOF |
| | | 8921 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| | | 8922 | case "(($ac_try" in |
| | | 8923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 8924 | *) ac_try_echo=$ac_try;; |
| | | 8925 | esac |
| | | 8926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | | 8927 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| | | 8928 | ac_status=$? |
| | | 8929 | grep -v '^ *+' conftest.er1 >conftest.err |
| | | 8930 | rm -f conftest.er1 |
| | | 8931 | cat conftest.err >&5 |
| | | 8932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | | 8933 | (exit $ac_status); } >/dev/null && { |
| | | 8934 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| | | 8935 | test ! -s conftest.err |
| | | 8936 | }; then |
| | | 8937 | ac_header_preproc=yes |
| | | 8938 | else |
| | | 8939 | echo "$as_me: failed program was:" >&5 |
| | | 8940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | | 8941 | |
| | | 8942 | ac_header_preproc=no |
| | | 8943 | fi |
| | | 8944 | |
| | | 8945 | rm -f conftest.err conftest.$ac_ext |
| | | 8946 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| | | 8947 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| | | 8948 | |
| | | 8949 | # So? What about this header? |
| | | 8950 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| | | 8951 | yes:no: ) |
| | | 8952 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| | | 8953 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| | | 8954 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| | | 8955 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| | | 8956 | ac_header_preproc=yes |
| | | 8957 | ;; |
| | | 8958 | no:yes:* ) |
| | | 8959 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| | | 8960 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| | | 8961 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| | | 8962 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| | | 8963 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| | | 8964 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| | | 8965 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| | | 8966 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| | | 8967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| | | 8968 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| | | 8969 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| | | 8970 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| | | 8971 | ( cat <<\_ASBOX |
| | | 8972 | ## ------------------------------- ## |
| | | 8973 | ## Report this to grant@NetBSD.org ## |
| | | 8974 | ## ------------------------------- ## |
| | | 8975 | _ASBOX |
| | | 8976 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| | | 8977 | ;; |
| | | 8978 | esac |
| | | 8979 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| | | 8980 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| | | 8981 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| | | 8982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | | 8983 | else |
| | | 8984 | eval "$as_ac_Header=\$ac_header_preproc" |
| | | 8985 | fi |
| | | 8986 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| | | 8987 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| | | 8988 | echo "${ECHO_T}$ac_res" >&6; } |
| | | 8989 | |
| | | 8990 | fi |
| | | 8991 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| | | 8992 | cat >>confdefs.h <<_ACEOF |
| | | 8993 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| | | 8994 | _ACEOF |
| | | 8995 | |
| | | 8996 | fi |
| | | 8997 | |
| | | 8998 | done |
| | | 8999 | |
| | | 9000 | |
| | | 9001 | |
| | | 9002 | for ac_func in fork vfork |
| | | 9003 | do |
| | | 9004 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| | | 9005 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| | | 9006 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| | | 9007 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| | | 9008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | | 9009 | else |
| | | 9010 | cat >conftest.$ac_ext <<_ACEOF |
| | | 9011 | /* confdefs.h. */ |
| | | 9012 | _ACEOF |
| | | 9013 | cat confdefs.h >>conftest.$ac_ext |
| | | 9014 | cat >>conftest.$ac_ext <<_ACEOF |
| | | 9015 | /* end confdefs.h. */ |
| | | 9016 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| | | 9017 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| | | 9018 | #define $ac_func innocuous_$ac_func |
| | | 9019 | |
| | | 9020 | /* System header to define __stub macros and hopefully few prototypes, |
| | | 9021 | which can conflict with char $ac_func (); below. |
| | | 9022 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | | 9023 | <limits.h> exists even on freestanding compilers. */ |
| | | 9024 | |
| | | 9025 | #ifdef __STDC__ |
| | | 9026 | # include <limits.h> |
| | | 9027 | #else |
| | | 9028 | # include <assert.h> |
| | | 9029 | #endif |
| | | 9030 | |
| | | 9031 | #undef $ac_func |
| | | 9032 | |
| | | 9033 | /* Override any GCC internal prototype to avoid an error. |
| | | 9034 | Use char because int might match the return type of a GCC |
| | | 9035 | builtin and then its argument prototype would still apply. */ |
| | | 9036 | #ifdef __cplusplus |
| | | 9037 | extern "C" |
| | | 9038 | #endif |
| | | 9039 | char $ac_func (); |
| | | 9040 | /* The GNU C library defines this for functions which it implements |
| | | 9041 | to always fail with ENOSYS. Some functions are actually named |
| | | 9042 | something starting with __ and the normal name is an alias. */ |
| | | 9043 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| | | 9044 | choke me |
| | | 9045 | #endif |
| | | 9046 | |
| | | 9047 | int |
| | | 9048 | main () |
| | | 9049 | { |
| | | 9050 | return $ac_func (); |
| | | 9051 | ; |
| | | 9052 | return 0; |
| | | 9053 | } |
| | | 9054 | _ACEOF |
| | | 9055 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | | 9056 | if { (ac_try="$ac_link" |
| | | 9057 | case "(($ac_try" in |
| | | 9058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 9059 | *) ac_try_echo=$ac_try;; |
| | | 9060 | esac |
| | | 9061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | | 9062 | (eval "$ac_link") 2>conftest.er1 |
| | | 9063 | ac_status=$? |
| | | 9064 | grep -v '^ *+' conftest.er1 >conftest.err |
| | | 9065 | rm -f conftest.er1 |
| | | 9066 | cat conftest.err >&5 |
| | | 9067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | | 9068 | (exit $ac_status); } && { |
| | | 9069 | test -z "$ac_c_werror_flag" || |
| | | 9070 | test ! -s conftest.err |
| | | 9071 | } && test -s conftest$ac_exeext && |
| | | 9072 | $as_test_x conftest$ac_exeext; then |
| | | 9073 | eval "$as_ac_var=yes" |
| | | 9074 | else |
| | | 9075 | echo "$as_me: failed program was:" >&5 |
| | | 9076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | | 9077 | |
| | | 9078 | eval "$as_ac_var=no" |
| | | 9079 | fi |
| | | 9080 | |
| | | 9081 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| | | 9082 | conftest$ac_exeext conftest.$ac_ext |
| | | 9083 | fi |
| | | 9084 | ac_res=`eval echo '${'$as_ac_var'}'` |
| | | 9085 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| | | 9086 | echo "${ECHO_T}$ac_res" >&6; } |
| | | 9087 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| | | 9088 | cat >>confdefs.h <<_ACEOF |
| | | 9089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| | | 9090 | _ACEOF |
| | | 9091 | |
| | | 9092 | fi |
| | | 9093 | done |
| | | 9094 | |
| | | 9095 | if test "x$ac_cv_func_fork" = xyes; then |
| | | 9096 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
| | | 9097 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } |
| | | 9098 | if test "${ac_cv_func_fork_works+set}" = set; then |
| | | 9099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | | 9100 | else |
| | | 9101 | if test "$cross_compiling" = yes; then |
| | | 9102 | ac_cv_func_fork_works=cross |
| | | 9103 | else |
| | | 9104 | cat >conftest.$ac_ext <<_ACEOF |
| | | 9105 | /* confdefs.h. */ |
| | | 9106 | _ACEOF |
| | | 9107 | cat confdefs.h >>conftest.$ac_ext |
| | | 9108 | cat >>conftest.$ac_ext <<_ACEOF |
| | | 9109 | /* end confdefs.h. */ |
| | | 9110 | $ac_includes_default |
| | | 9111 | int |
| | | 9112 | main () |
| | | 9113 | { |
| | | 9114 | |
| | | 9115 | /* By Ruediger Kuhlmann. */ |
| | | 9116 | return fork () < 0; |
| | | 9117 | |
| | | 9118 | ; |
| | | 9119 | return 0; |
| | | 9120 | } |
| | | 9121 | _ACEOF |
| | | 9122 | rm -f conftest$ac_exeext |
| | | 9123 | if { (ac_try="$ac_link" |
| | | 9124 | case "(($ac_try" in |
| | | 9125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 9126 | *) ac_try_echo=$ac_try;; |
| | | 9127 | esac |
| | | 9128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | | 9129 | (eval "$ac_link") 2>&5 |
| | | 9130 | ac_status=$? |
| | | 9131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | | 9132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| | | 9133 | { (case "(($ac_try" in |
| | | 9134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 9135 | *) ac_try_echo=$ac_try;; |
| | | 9136 | esac |
| | | 9137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | | 9138 | (eval "$ac_try") 2>&5 |
| | | 9139 | ac_status=$? |
| | | 9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | | 9141 | (exit $ac_status); }; }; then |
| | | 9142 | ac_cv_func_fork_works=yes |
| | | 9143 | else |
| | | 9144 | echo "$as_me: program exited with status $ac_status" >&5 |
| | | 9145 | echo "$as_me: failed program was:" >&5 |
| | | 9146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | | 9147 | |
| | | 9148 | ( exit $ac_status ) |
| | | 9149 | ac_cv_func_fork_works=no |
| | | 9150 | fi |
| | | 9151 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| | | 9152 | fi |
| | | 9153 | |
| | | 9154 | |
| | | 9155 | fi |
| | | 9156 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
| | | 9157 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } |
| | | 9158 | |
| | | 9159 | else |
| | | 9160 | ac_cv_func_fork_works=$ac_cv_func_fork |
| | | 9161 | fi |
| | | 9162 | if test "x$ac_cv_func_fork_works" = xcross; then |
| | | 9163 | case $host in |
| | | 9164 | *-*-amigaos* | *-*-msdosdjgpp*) |
| | | 9165 | # Override, as these systems have only a dummy fork() stub |
| | | 9166 | ac_cv_func_fork_works=no |
| | | 9167 | ;; |
| | | 9168 | *) |
| | | 9169 | ac_cv_func_fork_works=yes |
| | | 9170 | ;; |
| | | 9171 | esac |
| | | 9172 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| | | 9173 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| | | 9174 | fi |
| | | 9175 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| | | 9176 | if test "x$ac_cv_func_vfork" = xyes; then |
| | | 9177 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
| | | 9178 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } |
| | | 9179 | if test "${ac_cv_func_vfork_works+set}" = set; then |
| | | 9180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | | 9181 | else |
| | | 9182 | if test "$cross_compiling" = yes; then |
| | | 9183 | ac_cv_func_vfork_works=cross |
| | | 9184 | else |
| | | 9185 | cat >conftest.$ac_ext <<_ACEOF |
| | | 9186 | /* confdefs.h. */ |
| | | 9187 | _ACEOF |
| | | 9188 | cat confdefs.h >>conftest.$ac_ext |
| | | 9189 | cat >>conftest.$ac_ext <<_ACEOF |
| | | 9190 | /* end confdefs.h. */ |
| | | 9191 | /* Thanks to Paul Eggert for this test. */ |
| | | 9192 | $ac_includes_default |
| | | 9193 | #include <sys/wait.h> |
| | | 9194 | #ifdef HAVE_VFORK_H |
| | | 9195 | # include <vfork.h> |
| | | 9196 | #endif |
| | | 9197 | /* On some sparc systems, changes by the child to local and incoming |
| | | 9198 | argument registers are propagated back to the parent. The compiler |
| | | 9199 | is told about this with #include <vfork.h>, but some compilers |
| | | 9200 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| | | 9201 | static variable whose address is put into a register that is |
| | | 9202 | clobbered by the vfork. */ |
| | | 9203 | static void |
| | | 9204 | #ifdef __cplusplus |
| | | 9205 | sparc_address_test (int arg) |
| | | 9206 | # else |
| | | 9207 | sparc_address_test (arg) int arg; |
| | | 9208 | #endif |
| | | 9209 | { |
| | | 9210 | static pid_t child; |
| | | 9211 | if (!child) { |
| | | 9212 | child = vfork (); |
| | | 9213 | if (child < 0) { |
| | | 9214 | perror ("vfork"); |
| | | 9215 | _exit(2); |
| | | 9216 | } |
| | | 9217 | if (!child) { |
| | | 9218 | arg = getpid(); |
| | | 9219 | write(-1, "", 0); |
| | | 9220 | _exit (arg); |
| | | 9221 | } |
| | | 9222 | } |
| | | 9223 | } |
| | | 9224 | |
| | | 9225 | int |
| | | 9226 | main () |
| | | 9227 | { |
| | | 9228 | pid_t parent = getpid (); |
| | | 9229 | pid_t child; |
| | | 9230 | |
| | | 9231 | sparc_address_test (0); |
| | | 9232 | |
| | | 9233 | child = vfork (); |
| | | 9234 | |
| | | 9235 | if (child == 0) { |
| | | 9236 | /* Here is another test for sparc vfork register problems. This |
| | | 9237 | test uses lots of local variables, at least as many local |
| | | 9238 | variables as main has allocated so far including compiler |
| | | 9239 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| | | 9240 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| | | 9241 | reuse the register of parent for one of the local variables, |
| | | 9242 | since it will think that parent can't possibly be used any more |
| | | 9243 | in this routine. Assigning to the local variable will thus |
| | | 9244 | munge parent in the parent process. */ |
| | | 9245 | pid_t |
| | | 9246 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| | | 9247 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| | | 9248 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| | | 9249 | use the same hardware register for all 8 local variables. */ |
| | | 9250 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| | | 9251 | || p != p5 || p != p6 || p != p7) |
| | | 9252 | _exit(1); |
| | | 9253 | |
| | | 9254 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| | | 9255 | from child file descriptors. If the child closes a descriptor |
| | | 9256 | before it execs or exits, this munges the parent's descriptor |
| | | 9257 | as well. Test for this by closing stdout in the child. */ |
| | | 9258 | _exit(close(fileno(stdout)) != 0); |
| | | 9259 | } else { |
| | | 9260 | int status; |
| | | 9261 | struct stat st; |
| | | 9262 | |
| | | 9263 | while (wait(&status) != child) |
| | | 9264 | ; |
| | | 9265 | return ( |
| | | 9266 | /* Was there some problem with vforking? */ |
| | | 9267 | child < 0 |
| | | 9268 | |
| | | 9269 | /* Did the child fail? (This shouldn't happen.) */ |
| | | 9270 | || status |
| | | 9271 | |
| | | 9272 | /* Did the vfork/compiler bug occur? */ |
| | | 9273 | || parent != getpid() |
| | | 9274 | |
| | | 9275 | /* Did the file descriptor bug occur? */ |
| | | 9276 | || fstat(fileno(stdout), &st) != 0 |
| | | 9277 | ); |
| | | 9278 | } |
| | | 9279 | } |
| | | 9280 | _ACEOF |
| | | 9281 | rm -f conftest$ac_exeext |
| | | 9282 | if { (ac_try="$ac_link" |
| | | 9283 | case "(($ac_try" in |
| | | 9284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 9285 | *) ac_try_echo=$ac_try;; |
| | | 9286 | esac |
| | | 9287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | | 9288 | (eval "$ac_link") 2>&5 |
| | | 9289 | ac_status=$? |
| | | 9290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | | 9291 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| | | 9292 | { (case "(($ac_try" in |
| | | 9293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 9294 | *) ac_try_echo=$ac_try;; |
| | | 9295 | esac |
| | | 9296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| | | 9297 | (eval "$ac_try") 2>&5 |
| | | 9298 | ac_status=$? |
| | | 9299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | | 9300 | (exit $ac_status); }; }; then |
| | | 9301 | ac_cv_func_vfork_works=yes |
| | | 9302 | else |
| | | 9303 | echo "$as_me: program exited with status $ac_status" >&5 |
| | | 9304 | echo "$as_me: failed program was:" >&5 |
| | | 9305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | | 9306 | |
| | | 9307 | ( exit $ac_status ) |
| | | 9308 | ac_cv_func_vfork_works=no |
| | | 9309 | fi |
| | | 9310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| | | 9311 | fi |
| | | 9312 | |
| | | 9313 | |
| | | 9314 | fi |
| | | 9315 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
| | | 9316 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } |
| | | 9317 | |
| | | 9318 | fi; |
| | | 9319 | if test "x$ac_cv_func_fork_works" = xcross; then |
| | | 9320 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| | | 9321 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| | | 9322 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| | | 9323 | fi |
| | | 9324 | |
| | | 9325 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| | | 9326 | |
| | | 9327 | cat >>confdefs.h <<\_ACEOF |
| | | 9328 | #define HAVE_WORKING_VFORK 1 |
| | | 9329 | _ACEOF |
| | | 9330 | |
| | | 9331 | else |
| | | 9332 | |
| | | 9333 | cat >>confdefs.h <<\_ACEOF |
| | | 9334 | #define vfork fork |
| | | 9335 | _ACEOF |
| | | 9336 | |
| | | 9337 | fi |
| | | 9338 | if test "x$ac_cv_func_fork_works" = xyes; then |
| | | 9339 | |
| | | 9340 | cat >>confdefs.h <<\_ACEOF |
| | | 9341 | #define HAVE_WORKING_FORK 1 |
| | | 9342 | _ACEOF |
| | | 9343 | |
| | | 9344 | fi |
| | | 9345 | |
8792 | | | 9346 | |
8793 | for ac_func in vprintf | | 9347 | for ac_func in vprintf |
8794 | do | | 9348 | do |
8795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 9349 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8796 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 9350 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 9351 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8798 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 9352 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 9353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8800 | else | | 9354 | else |
8801 | cat >conftest.$ac_ext <<_ACEOF | | 9355 | cat >conftest.$ac_ext <<_ACEOF |
8802 | /* confdefs.h. */ | | 9356 | /* confdefs.h. */ |
8803 | _ACEOF | | 9357 | _ACEOF |
8804 | cat confdefs.h >>conftest.$ac_ext | | 9358 | cat confdefs.h >>conftest.$ac_ext |
8805 | cat >>conftest.$ac_ext <<_ACEOF | | 9359 | cat >>conftest.$ac_ext <<_ACEOF |
8806 | /* end confdefs.h. */ | | 9360 | /* end confdefs.h. */ |
8807 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 9361 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 9362 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8809 | #define $ac_func innocuous_$ac_func | | 9363 | #define $ac_func innocuous_$ac_func |
8810 | | | 9364 | |
8811 | /* System header to define __stub macros and hopefully few prototypes, | | 9365 | /* System header to define __stub macros and hopefully few prototypes, |
8812 | which can conflict with char $ac_func (); below. | | 9366 | which can conflict with char $ac_func (); below. |
8813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 9367 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8814 | <limits.h> exists even on freestanding compilers. */ | | 9368 | <limits.h> exists even on freestanding compilers. */ |
8815 | | | 9369 | |
8816 | #ifdef __STDC__ | | 9370 | #ifdef __STDC__ |
8817 | # include <limits.h> | | 9371 | # include <limits.h> |
8818 | #else | | 9372 | #else |
8819 | # include <assert.h> | | 9373 | # include <assert.h> |
8820 | #endif | | 9374 | #endif |
8821 | | | 9375 | |
8822 | #undef $ac_func | | 9376 | #undef $ac_func |
8823 | | | 9377 | |
8824 | /* Override any GCC internal prototype to avoid an error. | | 9378 | /* Override any GCC internal prototype to avoid an error. |
8825 | Use char because int might match the return type of a GCC | | 9379 | Use char because int might match the return type of a GCC |
8826 | builtin and then its argument prototype would still apply. */ | | 9380 | builtin and then its argument prototype would still apply. */ |
8827 | #ifdef __cplusplus | | 9381 | #ifdef __cplusplus |
8828 | extern "C" | | 9382 | extern "C" |
8829 | #endif | | 9383 | #endif |
8830 | char $ac_func (); | | 9384 | char $ac_func (); |
8831 | /* The GNU C library defines this for functions which it implements | | 9385 | /* The GNU C library defines this for functions which it implements |
8832 | to always fail with ENOSYS. Some functions are actually named | | 9386 | to always fail with ENOSYS. Some functions are actually named |
8833 | something starting with __ and the normal name is an alias. */ | | 9387 | something starting with __ and the normal name is an alias. */ |
8834 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 9388 | #if defined __stub_$ac_func || defined __stub___$ac_func |
8835 | choke me | | 9389 | choke me |
8836 | #endif | | 9390 | #endif |
8837 | | | 9391 | |
8838 | int | | 9392 | int |
8839 | main () | | 9393 | main () |
8840 | { | | 9394 | { |
8841 | return $ac_func (); | | 9395 | return $ac_func (); |
8842 | ; | | 9396 | ; |
8843 | return 0; | | 9397 | return 0; |
8844 | } | | 9398 | } |
8845 | _ACEOF | | 9399 | _ACEOF |
8846 | rm -f conftest.$ac_objext conftest$ac_exeext | | 9400 | rm -f conftest.$ac_objext conftest$ac_exeext |
8847 | if { (ac_try="$ac_link" | | 9401 | if { (ac_try="$ac_link" |
8848 | case "(($ac_try" in | | 9402 | case "(($ac_try" in |
8849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 9403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8850 | *) ac_try_echo=$ac_try;; | | 9404 | *) ac_try_echo=$ac_try;; |
8851 | esac | | 9405 | esac |
8852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 9406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8853 | (eval "$ac_link") 2>conftest.er1 | | 9407 | (eval "$ac_link") 2>conftest.er1 |
8854 | ac_status=$? | | 9408 | ac_status=$? |
8855 | grep -v '^ *+' conftest.er1 >conftest.err | | 9409 | grep -v '^ *+' conftest.er1 >conftest.err |
8856 | rm -f conftest.er1 | | 9410 | rm -f conftest.er1 |
8857 | cat conftest.err >&5 | | 9411 | cat conftest.err >&5 |
8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8859 | (exit $ac_status); } && { | | 9413 | (exit $ac_status); } && { |
8860 | test -z "$ac_c_werror_flag" || | | 9414 | test -z "$ac_c_werror_flag" || |
8861 | test ! -s conftest.err | | 9415 | test ! -s conftest.err |
8862 | } && test -s conftest$ac_exeext && | | 9416 | } && test -s conftest$ac_exeext && |
8863 | $as_test_x conftest$ac_exeext; then | | 9417 | $as_test_x conftest$ac_exeext; then |
8864 | eval "$as_ac_var=yes" | | 9418 | eval "$as_ac_var=yes" |
8865 | else | | 9419 | else |
8866 | echo "$as_me: failed program was:" >&5 | | 9420 | echo "$as_me: failed program was:" >&5 |
8867 | sed 's/^/| /' conftest.$ac_ext >&5 | | 9421 | sed 's/^/| /' conftest.$ac_ext >&5 |
8868 | | | 9422 | |
8869 | eval "$as_ac_var=no" | | 9423 | eval "$as_ac_var=no" |
8870 | fi | | 9424 | fi |
8871 | | | 9425 | |
8872 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 9426 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8873 | conftest$ac_exeext conftest.$ac_ext | | 9427 | conftest$ac_exeext conftest.$ac_ext |
8874 | fi | | 9428 | fi |
8875 | ac_res=`eval echo '${'$as_ac_var'}'` | | 9429 | ac_res=`eval echo '${'$as_ac_var'}'` |
8876 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 9430 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
8877 | echo "${ECHO_T}$ac_res" >&6; } | | 9431 | echo "${ECHO_T}$ac_res" >&6; } |
8878 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 9432 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8879 | cat >>confdefs.h <<_ACEOF | | 9433 | cat >>confdefs.h <<_ACEOF |
8880 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 9434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8881 | _ACEOF | | 9435 | _ACEOF |
8882 | | | 9436 | |
8883 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 | | 9437 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8884 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | | 9438 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
8885 | if test "${ac_cv_func__doprnt+set}" = set; then | | 9439 | if test "${ac_cv_func__doprnt+set}" = set; then |
8886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 9440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8887 | else | | 9441 | else |
8888 | cat >conftest.$ac_ext <<_ACEOF | | 9442 | cat >conftest.$ac_ext <<_ACEOF |
8889 | /* confdefs.h. */ | | 9443 | /* confdefs.h. */ |
8890 | _ACEOF | | 9444 | _ACEOF |
8891 | cat confdefs.h >>conftest.$ac_ext | | 9445 | cat confdefs.h >>conftest.$ac_ext |
8892 | cat >>conftest.$ac_ext <<_ACEOF | | 9446 | cat >>conftest.$ac_ext <<_ACEOF |
8893 | /* end confdefs.h. */ | | 9447 | /* end confdefs.h. */ |
8894 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | | 9448 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
8895 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 9449 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8896 | #define _doprnt innocuous__doprnt | | 9450 | #define _doprnt innocuous__doprnt |
8897 | | | 9451 | |
8898 | /* System header to define __stub macros and hopefully few prototypes, | | 9452 | /* System header to define __stub macros and hopefully few prototypes, |
8899 | which can conflict with char _doprnt (); below. | | 9453 | which can conflict with char _doprnt (); below. |
8900 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 9454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8901 | <limits.h> exists even on freestanding compilers. */ | | 9455 | <limits.h> exists even on freestanding compilers. */ |
8902 | | | 9456 | |
8903 | #ifdef __STDC__ | | 9457 | #ifdef __STDC__ |
8904 | # include <limits.h> | | 9458 | # include <limits.h> |
8905 | #else | | 9459 | #else |
8906 | # include <assert.h> | | 9460 | # include <assert.h> |
8907 | #endif | | 9461 | #endif |
8908 | | | 9462 | |
8909 | #undef _doprnt | | 9463 | #undef _doprnt |
8910 | | | 9464 | |
8911 | /* Override any GCC internal prototype to avoid an error. | | 9465 | /* Override any GCC internal prototype to avoid an error. |
8912 | Use char because int might match the return type of a GCC | | 9466 | Use char because int might match the return type of a GCC |
8913 | builtin and then its argument prototype would still apply. */ | | 9467 | builtin and then its argument prototype would still apply. */ |
8914 | #ifdef __cplusplus | | 9468 | #ifdef __cplusplus |
8915 | extern "C" | | 9469 | extern "C" |
8916 | #endif | | 9470 | #endif |
8917 | char _doprnt (); | | 9471 | char _doprnt (); |
8918 | /* The GNU C library defines this for functions which it implements | | 9472 | /* The GNU C library defines this for functions which it implements |
8919 | to always fail with ENOSYS. Some functions are actually named | | 9473 | to always fail with ENOSYS. Some functions are actually named |
8920 | something starting with __ and the normal name is an alias. */ | | 9474 | something starting with __ and the normal name is an alias. */ |
8921 | #if defined __stub__doprnt || defined __stub____doprnt | | 9475 | #if defined __stub__doprnt || defined __stub____doprnt |
8922 | choke me | | 9476 | choke me |
8923 | #endif | | 9477 | #endif |
8924 | | | 9478 | |
8925 | int | | 9479 | int |
8926 | main () | | 9480 | main () |
8927 | { | | 9481 | { |
8928 | return _doprnt (); | | 9482 | return _doprnt (); |
8929 | ; | | 9483 | ; |
8930 | return 0; | | 9484 | return 0; |
8931 | } | | 9485 | } |
8932 | _ACEOF | | 9486 | _ACEOF |
8933 | rm -f conftest.$ac_objext conftest$ac_exeext | | 9487 | rm -f conftest.$ac_objext conftest$ac_exeext |
8934 | if { (ac_try="$ac_link" | | 9488 | if { (ac_try="$ac_link" |
8935 | case "(($ac_try" in | | 9489 | case "(($ac_try" in |
8936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 9490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8937 | *) ac_try_echo=$ac_try;; | | 9491 | *) ac_try_echo=$ac_try;; |
8938 | esac | | 9492 | esac |
8939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 9493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8940 | (eval "$ac_link") 2>conftest.er1 | | 9494 | (eval "$ac_link") 2>conftest.er1 |
8941 | ac_status=$? | | 9495 | ac_status=$? |
8942 | grep -v '^ *+' conftest.er1 >conftest.err | | 9496 | grep -v '^ *+' conftest.er1 >conftest.err |
8943 | rm -f conftest.er1 | | 9497 | rm -f conftest.er1 |
8944 | cat conftest.err >&5 | | 9498 | cat conftest.err >&5 |
8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8946 | (exit $ac_status); } && { | | 9500 | (exit $ac_status); } && { |
8947 | test -z "$ac_c_werror_flag" || | | 9501 | test -z "$ac_c_werror_flag" || |
8948 | test ! -s conftest.err | | 9502 | test ! -s conftest.err |
8949 | } && test -s conftest$ac_exeext && | | 9503 | } && test -s conftest$ac_exeext && |
8950 | $as_test_x conftest$ac_exeext; then | | 9504 | $as_test_x conftest$ac_exeext; then |
8951 | ac_cv_func__doprnt=yes | | 9505 | ac_cv_func__doprnt=yes |
8952 | else | | 9506 | else |
8953 | echo "$as_me: failed program was:" >&5 | | 9507 | echo "$as_me: failed program was:" >&5 |
8954 | sed 's/^/| /' conftest.$ac_ext >&5 | | 9508 | sed 's/^/| /' conftest.$ac_ext >&5 |
8955 | | | 9509 | |
8956 | ac_cv_func__doprnt=no | | 9510 | ac_cv_func__doprnt=no |
8957 | fi | | 9511 | fi |
8958 | | | 9512 | |
8959 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 9513 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8960 | conftest$ac_exeext conftest.$ac_ext | | 9514 | conftest$ac_exeext conftest.$ac_ext |
8961 | fi | | 9515 | fi |
8962 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | | 9516 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8963 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | | 9517 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
8964 | if test $ac_cv_func__doprnt = yes; then | | 9518 | if test $ac_cv_func__doprnt = yes; then |
8965 | | | 9519 | |
8966 | cat >>confdefs.h <<\_ACEOF | | 9520 | cat >>confdefs.h <<\_ACEOF |
8967 | #define HAVE_DOPRNT 1 | | 9521 | #define HAVE_DOPRNT 1 |
8968 | _ACEOF | | 9522 | _ACEOF |
8969 | | | 9523 | |
8970 | fi | | 9524 | fi |
8971 | | | 9525 | |
8972 | fi | | 9526 | fi |
8973 | done | | 9527 | done |
8974 | | | 9528 | |
8975 | | | 9529 | |
8976 | | | 9530 | |
8977 | | | 9531 | |
8978 | | | 9532 | |
8979 | | | 9533 | |
8980 | | | 9534 | |
8981 | | | 9535 | |
8982 | | | 9536 | |
8983 | | | 9537 | |
8984 | | | 9538 | |
8985 | | | 9539 | |
8986 | | | 9540 | |
8987 | | | 9541 | |
8988 | | | 9542 | |
8989 | | | 9543 | |
8990 | | | 9544 | |
8991 | | | 9545 | |
8992 | | | 9546 | |
8993 | | | 9547 | |
8994 | | | 9548 | |
8995 | | | 9549 | |
8996 | | | 9550 | |
8997 | | | 9551 | |
8998 | | | 9552 | |
8999 | | | 9553 | |
9000 | | | 9554 | |
9001 | | | 9555 | |
9002 | | | 9556 | |
9003 | | | 9557 | |
9004 | | | 9558 | |
9005 | | | 9559 | |
9006 | | | 9560 | |
9007 | for ac_func in asprintf err fgetln fnmatch fparseln getenv isblank \ | | 9561 | for ac_func in asprintf err fgetln fnmatch fparseln getenv isblank \ |
9008 | lchflags lchmod lchown lutimes mkdtemp mkstemp setenv setgroupent \ | | 9562 | lchflags lchmod lchown lutimes mkdtemp mkstemp setenv setgroupent \ |
9009 | setpassent setprogname snprintf statvfs strdup strerror strlcat \ | | 9563 | setpassent setprogname snprintf statvfs strdup strerror strlcat \ |
9010 | strlcpy strmode strsep strtoll unsetenv usleep utimes warn | | 9564 | strlcpy strmode strsep strtoll unsetenv usleep utimes warn |
9011 | | | 9565 | |
9012 | do | | 9566 | do |
9013 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 9567 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9014 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 9568 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9015 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 9569 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9016 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 9570 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 9571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9018 | else | | 9572 | else |
9019 | cat >conftest.$ac_ext <<_ACEOF | | 9573 | cat >conftest.$ac_ext <<_ACEOF |
9020 | /* confdefs.h. */ | | 9574 | /* confdefs.h. */ |
9021 | _ACEOF | | 9575 | _ACEOF |
9022 | cat confdefs.h >>conftest.$ac_ext | | 9576 | cat confdefs.h >>conftest.$ac_ext |
9023 | cat >>conftest.$ac_ext <<_ACEOF | | 9577 | cat >>conftest.$ac_ext <<_ACEOF |
9024 | /* end confdefs.h. */ | | 9578 | /* end confdefs.h. */ |
9025 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 9579 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9026 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 9580 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9027 | #define $ac_func innocuous_$ac_func | | 9581 | #define $ac_func innocuous_$ac_func |
9028 | | | 9582 | |
9029 | /* System header to define __stub macros and hopefully few prototypes, | | 9583 | /* System header to define __stub macros and hopefully few prototypes, |
9030 | which can conflict with char $ac_func (); below. | | 9584 | which can conflict with char $ac_func (); below. |
9031 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 9585 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9032 | <limits.h> exists even on freestanding compilers. */ | | 9586 | <limits.h> exists even on freestanding compilers. */ |
9033 | | | 9587 | |
9034 | #ifdef __STDC__ | | 9588 | #ifdef __STDC__ |
9035 | # include <limits.h> | | 9589 | # include <limits.h> |
9036 | #else | | 9590 | #else |
9037 | # include <assert.h> | | 9591 | # include <assert.h> |
9038 | #endif | | 9592 | #endif |
9039 | | | 9593 | |
9040 | #undef $ac_func | | 9594 | #undef $ac_func |
9041 | | | 9595 | |
9042 | /* Override any GCC internal prototype to avoid an error. | | 9596 | /* Override any GCC internal prototype to avoid an error. |
9043 | Use char because int might match the return type of a GCC | | 9597 | Use char because int might match the return type of a GCC |
9044 | builtin and then its argument prototype would still apply. */ | | 9598 | builtin and then its argument prototype would still apply. */ |
9045 | #ifdef __cplusplus | | 9599 | #ifdef __cplusplus |
9046 | extern "C" | | 9600 | extern "C" |
9047 | #endif | | 9601 | #endif |
9048 | char $ac_func (); | | 9602 | char $ac_func (); |
9049 | /* The GNU C library defines this for functions which it implements | | 9603 | /* The GNU C library defines this for functions which it implements |
9050 | to always fail with ENOSYS. Some functions are actually named | | 9604 | to always fail with ENOSYS. Some functions are actually named |
9051 | something starting with __ and the normal name is an alias. */ | | 9605 | something starting with __ and the normal name is an alias. */ |
9052 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 9606 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9053 | choke me | | 9607 | choke me |
9054 | #endif | | 9608 | #endif |
9055 | | | 9609 | |
9056 | int | | 9610 | int |
9057 | main () | | 9611 | main () |
9058 | { | | 9612 | { |
9059 | return $ac_func (); | | 9613 | return $ac_func (); |
9060 | ; | | 9614 | ; |
9061 | return 0; | | 9615 | return 0; |
9062 | } | | 9616 | } |
9063 | _ACEOF | | 9617 | _ACEOF |
9064 | rm -f conftest.$ac_objext conftest$ac_exeext | | 9618 | rm -f conftest.$ac_objext conftest$ac_exeext |
9065 | if { (ac_try="$ac_link" | | 9619 | if { (ac_try="$ac_link" |
9066 | case "(($ac_try" in | | 9620 | case "(($ac_try" in |
9067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 9621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9068 | *) ac_try_echo=$ac_try;; | | 9622 | *) ac_try_echo=$ac_try;; |
9069 | esac | | 9623 | esac |
9070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 9624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9071 | (eval "$ac_link") 2>conftest.er1 | | 9625 | (eval "$ac_link") 2>conftest.er1 |
9072 | ac_status=$? | | 9626 | ac_status=$? |
9073 | grep -v '^ *+' conftest.er1 >conftest.err | | 9627 | grep -v '^ *+' conftest.er1 >conftest.err |
9074 | rm -f conftest.er1 | | 9628 | rm -f conftest.er1 |
9075 | cat conftest.err >&5 | | 9629 | cat conftest.err >&5 |
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9077 | (exit $ac_status); } && { | | 9631 | (exit $ac_status); } && { |
9078 | test -z "$ac_c_werror_flag" || | | 9632 | test -z "$ac_c_werror_flag" || |
9079 | test ! -s conftest.err | | 9633 | test ! -s conftest.err |
9080 | } && test -s conftest$ac_exeext && | | 9634 | } && test -s conftest$ac_exeext && |
9081 | $as_test_x conftest$ac_exeext; then | | 9635 | $as_test_x conftest$ac_exeext; then |
9082 | eval "$as_ac_var=yes" | | 9636 | eval "$as_ac_var=yes" |
9083 | else | | 9637 | else |
9084 | echo "$as_me: failed program was:" >&5 | | 9638 | echo "$as_me: failed program was:" >&5 |
9085 | sed 's/^/| /' conftest.$ac_ext >&5 | | 9639 | sed 's/^/| /' conftest.$ac_ext >&5 |
9086 | | | 9640 | |
9087 | eval "$as_ac_var=no" | | 9641 | eval "$as_ac_var=no" |
9088 | fi | | 9642 | fi |
9089 | | | 9643 | |
9090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 9644 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9091 | conftest$ac_exeext conftest.$ac_ext | | 9645 | conftest$ac_exeext conftest.$ac_ext |
9092 | fi | | 9646 | fi |
9093 | ac_res=`eval echo '${'$as_ac_var'}'` | | 9647 | ac_res=`eval echo '${'$as_ac_var'}'` |
9094 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 9648 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9095 | echo "${ECHO_T}$ac_res" >&6; } | | 9649 | echo "${ECHO_T}$ac_res" >&6; } |
9096 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 9650 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9097 | cat >>confdefs.h <<_ACEOF | | 9651 | cat >>confdefs.h <<_ACEOF |
9098 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 9652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9099 | _ACEOF | | 9653 | _ACEOF |
9100 | | | 9654 | |
9101 | else | | 9655 | else |
9102 | case " $LIBOBJS " in | | 9656 | case " $LIBOBJS " in |
9103 | *" $ac_func.$ac_objext "* ) ;; | | 9657 | *" $ac_func.$ac_objext "* ) ;; |
9104 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | | 9658 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
9105 | ;; | | 9659 | ;; |
9106 | esac | | 9660 | esac |
9107 | | | 9661 | |
9108 | fi | | 9662 | fi |
9109 | done | | 9663 | done |
9110 | | | 9664 | |
9111 | | | 9665 | |
9112 | | | 9666 | |
9113 | | | 9667 | |
9114 | | | 9668 | |
9115 | | | 9669 | |
9116 | for ac_func in getenv setenv unsetenv | | 9670 | for ac_func in getenv setenv unsetenv |
9117 | do | | 9671 | do |
9118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 9672 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9119 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 9673 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 9674 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9121 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 9675 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 9676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9123 | else | | 9677 | else |
9124 | cat >conftest.$ac_ext <<_ACEOF | | 9678 | cat >conftest.$ac_ext <<_ACEOF |
9125 | /* confdefs.h. */ | | 9679 | /* confdefs.h. */ |
9126 | _ACEOF | | 9680 | _ACEOF |
9127 | cat confdefs.h >>conftest.$ac_ext | | 9681 | cat confdefs.h >>conftest.$ac_ext |
9128 | cat >>conftest.$ac_ext <<_ACEOF | | 9682 | cat >>conftest.$ac_ext <<_ACEOF |
9129 | /* end confdefs.h. */ | | 9683 | /* end confdefs.h. */ |
9130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 9684 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 9685 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9132 | #define $ac_func innocuous_$ac_func | | 9686 | #define $ac_func innocuous_$ac_func |
9133 | | | 9687 | |
9134 | /* System header to define __stub macros and hopefully few prototypes, | | 9688 | /* System header to define __stub macros and hopefully few prototypes, |
9135 | which can conflict with char $ac_func (); below. | | 9689 | which can conflict with char $ac_func (); below. |
9136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 9690 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9137 | <limits.h> exists even on freestanding compilers. */ | | 9691 | <limits.h> exists even on freestanding compilers. */ |
9138 | | | 9692 | |
9139 | #ifdef __STDC__ | | 9693 | #ifdef __STDC__ |
9140 | # include <limits.h> | | 9694 | # include <limits.h> |
9141 | #else | | 9695 | #else |
9142 | # include <assert.h> | | 9696 | # include <assert.h> |
9143 | #endif | | 9697 | #endif |
9144 | | | 9698 | |
9145 | #undef $ac_func | | 9699 | #undef $ac_func |
9146 | | | 9700 | |
9147 | /* Override any GCC internal prototype to avoid an error. | | 9701 | /* Override any GCC internal prototype to avoid an error. |
9148 | Use char because int might match the return type of a GCC | | 9702 | Use char because int might match the return type of a GCC |
9149 | builtin and then its argument prototype would still apply. */ | | 9703 | builtin and then its argument prototype would still apply. */ |
9150 | #ifdef __cplusplus | | 9704 | #ifdef __cplusplus |
9151 | extern "C" | | 9705 | extern "C" |
9152 | #endif | | 9706 | #endif |
9153 | char $ac_func (); | | 9707 | char $ac_func (); |
9154 | /* The GNU C library defines this for functions which it implements | | 9708 | /* The GNU C library defines this for functions which it implements |
9155 | to always fail with ENOSYS. Some functions are actually named | | 9709 | to always fail with ENOSYS. Some functions are actually named |
9156 | something starting with __ and the normal name is an alias. */ | | 9710 | something starting with __ and the normal name is an alias. */ |
9157 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 9711 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9158 | choke me | | 9712 | choke me |
9159 | #endif | | 9713 | #endif |
9160 | | | 9714 | |
9161 | int | | 9715 | int |
9162 | main () | | 9716 | main () |
9163 | { | | 9717 | { |
9164 | return $ac_func (); | | 9718 | return $ac_func (); |
9165 | ; | | 9719 | ; |
9166 | return 0; | | 9720 | return 0; |
9167 | } | | 9721 | } |
9168 | _ACEOF | | 9722 | _ACEOF |
9169 | rm -f conftest.$ac_objext conftest$ac_exeext | | 9723 | rm -f conftest.$ac_objext conftest$ac_exeext |
9170 | if { (ac_try="$ac_link" | | 9724 | if { (ac_try="$ac_link" |
9171 | case "(($ac_try" in | | 9725 | case "(($ac_try" in |
9172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 9726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9173 | *) ac_try_echo=$ac_try;; | | 9727 | *) ac_try_echo=$ac_try;; |
9174 | esac | | 9728 | esac |
9175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 9729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9176 | (eval "$ac_link") 2>conftest.er1 | | 9730 | (eval "$ac_link") 2>conftest.er1 |
9177 | ac_status=$? | | 9731 | ac_status=$? |
9178 | grep -v '^ *+' conftest.er1 >conftest.err | | 9732 | grep -v '^ *+' conftest.er1 >conftest.err |
9179 | rm -f conftest.er1 | | 9733 | rm -f conftest.er1 |
9180 | cat conftest.err >&5 | | 9734 | cat conftest.err >&5 |
9181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 9735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9182 | (exit $ac_status); } && { | | 9736 | (exit $ac_status); } && { |
9183 | test -z "$ac_c_werror_flag" || | | 9737 | test -z "$ac_c_werror_flag" || |
9184 | test ! -s conftest.err | | 9738 | test ! -s conftest.err |
9185 | } && test -s conftest$ac_exeext && | | 9739 | } && test -s conftest$ac_exeext && |
9186 | $as_test_x conftest$ac_exeext; then | | 9740 | $as_test_x conftest$ac_exeext; then |
9187 | eval "$as_ac_var=yes" | | 9741 | eval "$as_ac_var=yes" |
9188 | else | | 9742 | else |
9189 | echo "$as_me: failed program was:" >&5 | | 9743 | echo "$as_me: failed program was:" >&5 |
9190 | sed 's/^/| /' conftest.$ac_ext >&5 | | 9744 | sed 's/^/| /' conftest.$ac_ext >&5 |
9191 | | | 9745 | |
9192 | eval "$as_ac_var=no" | | 9746 | eval "$as_ac_var=no" |
9193 | fi | | 9747 | fi |
9194 | | | 9748 | |
9195 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 9749 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9196 | conftest$ac_exeext conftest.$ac_ext | | 9750 | conftest$ac_exeext conftest.$ac_ext |
9197 | fi | | 9751 | fi |
9198 | ac_res=`eval echo '${'$as_ac_var'}'` | | 9752 | ac_res=`eval echo '${'$as_ac_var'}'` |
9199 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 9753 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9200 | echo "${ECHO_T}$ac_res" >&6; } | | 9754 | echo "${ECHO_T}$ac_res" >&6; } |
9201 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 9755 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9202 | cat >>confdefs.h <<_ACEOF | | 9756 | cat >>confdefs.h <<_ACEOF |
9203 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 9757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9204 | _ACEOF | | 9758 | _ACEOF |
9205 | : | | 9759 | : |
9206 | else | | 9760 | else |
9207 | | | 9761 | |
9208 | case " $LIBOBJS " in | | 9762 | case " $LIBOBJS " in |
9209 | *" findenv.$ac_objext "* ) ;; | | 9763 | *" findenv.$ac_objext "* ) ;; |
9210 | *) LIBOBJS="$LIBOBJS findenv.$ac_objext" | | 9764 | *) LIBOBJS="$LIBOBJS findenv.$ac_objext" |
9211 | ;; | | 9765 | ;; |
9212 | esac | | 9766 | esac |
9213 | | | 9767 | |
9214 | break | | 9768 | break |
9215 | | | 9769 | |
9216 | fi | | 9770 | fi |
9217 | done | | 9771 | done |
9218 | | | 9772 | |
9219 | | | 9773 | |
9220 | | | 9774 | |
9221 | | | 9775 | |
9222 | for ac_func in mkdtemp mkstemp | | 9776 | for ac_func in mkdtemp mkstemp |
9223 | do | | 9777 | do |
9224 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 9778 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9225 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 9779 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9226 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 9780 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9227 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 9781 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 9782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9229 | else | | 9783 | else |
9230 | cat >conftest.$ac_ext <<_ACEOF | | 9784 | cat >conftest.$ac_ext <<_ACEOF |
9231 | /* confdefs.h. */ | | 9785 | /* confdefs.h. */ |
9232 | _ACEOF | | 9786 | _ACEOF |
9233 | cat confdefs.h >>conftest.$ac_ext | | 9787 | cat confdefs.h >>conftest.$ac_ext |
9234 | cat >>conftest.$ac_ext <<_ACEOF | | 9788 | cat >>conftest.$ac_ext <<_ACEOF |
9235 | /* end confdefs.h. */ | | 9789 | /* end confdefs.h. */ |
9236 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 9790 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9237 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 9791 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9238 | #define $ac_func innocuous_$ac_func | | 9792 | #define $ac_func innocuous_$ac_func |
9239 | | | 9793 | |
9240 | /* System header to define __stub macros and hopefully few prototypes, | | 9794 | /* System header to define __stub macros and hopefully few prototypes, |
9241 | which can conflict with char $ac_func (); below. | | 9795 | which can conflict with char $ac_func (); below. |
9242 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 9796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9243 | <limits.h> exists even on freestanding compilers. */ | | 9797 | <limits.h> exists even on freestanding compilers. */ |
9244 | | | 9798 | |
9245 | #ifdef __STDC__ | | 9799 | #ifdef __STDC__ |
9246 | # include <limits.h> | | 9800 | # include <limits.h> |
9247 | #else | | 9801 | #else |
9248 | # include <assert.h> | | 9802 | # include <assert.h> |
9249 | #endif | | 9803 | #endif |
9250 | | | 9804 | |
9251 | #undef $ac_func | | 9805 | #undef $ac_func |
9252 | | | 9806 | |
9253 | /* Override any GCC internal prototype to avoid an error. | | 9807 | /* Override any GCC internal prototype to avoid an error. |
9254 | Use char because int might match the return type of a GCC | | 9808 | Use char because int might match the return type of a GCC |
9255 | builtin and then its argument prototype would still apply. */ | | 9809 | builtin and then its argument prototype would still apply. */ |
9256 | #ifdef __cplusplus | | 9810 | #ifdef __cplusplus |
9257 | extern "C" | | 9811 | extern "C" |
9258 | #endif | | 9812 | #endif |
9259 | char $ac_func (); | | 9813 | char $ac_func (); |
9260 | /* The GNU C library defines this for functions which it implements | | 9814 | /* The GNU C library defines this for functions which it implements |
9261 | to always fail with ENOSYS. Some functions are actually named | | 9815 | to always fail with ENOSYS. Some functions are actually named |
9262 | something starting with __ and the normal name is an alias. */ | | 9816 | something starting with __ and the normal name is an alias. */ |
9263 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 9817 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9264 | choke me | | 9818 | choke me |
9265 | #endif | | 9819 | #endif |
9266 | | | 9820 | |
9267 | int | | 9821 | int |
9268 | main () | | 9822 | main () |
9269 | { | | 9823 | { |
9270 | return $ac_func (); | | 9824 | return $ac_func (); |
9271 | ; | | 9825 | ; |
9272 | return 0; | | 9826 | return 0; |
9273 | } | | 9827 | } |
9274 | _ACEOF | | 9828 | _ACEOF |
9275 | rm -f conftest.$ac_objext conftest$ac_exeext | | 9829 | rm -f conftest.$ac_objext conftest$ac_exeext |
9276 | if { (ac_try="$ac_link" | | 9830 | if { (ac_try="$ac_link" |
9277 | case "(($ac_try" in | | 9831 | case "(($ac_try" in |
9278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 9832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9279 | *) ac_try_echo=$ac_try;; | | 9833 | *) ac_try_echo=$ac_try;; |
9280 | esac | | 9834 | esac |
9281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 9835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9282 | (eval "$ac_link") 2>conftest.er1 | | 9836 | (eval "$ac_link") 2>conftest.er1 |
9283 | ac_status=$? | | 9837 | ac_status=$? |
9284 | grep -v '^ *+' conftest.er1 >conftest.err | | 9838 | grep -v '^ *+' conftest.er1 >conftest.err |
9285 | rm -f conftest.er1 | | 9839 | rm -f conftest.er1 |
9286 | cat conftest.err >&5 | | 9840 | cat conftest.err >&5 |
9287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 9841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9288 | (exit $ac_status); } && { | | 9842 | (exit $ac_status); } && { |
9289 | test -z "$ac_c_werror_flag" || | | 9843 | test -z "$ac_c_werror_flag" || |
9290 | test ! -s conftest.err | | 9844 | test ! -s conftest.err |
9291 | } && test -s conftest$ac_exeext && | | 9845 | } && test -s conftest$ac_exeext && |
9292 | $as_test_x conftest$ac_exeext; then | | 9846 | $as_test_x conftest$ac_exeext; then |
9293 | eval "$as_ac_var=yes" | | 9847 | eval "$as_ac_var=yes" |
9294 | else | | 9848 | else |
9295 | echo "$as_me: failed program was:" >&5 | | 9849 | echo "$as_me: failed program was:" >&5 |
9296 | sed 's/^/| /' conftest.$ac_ext >&5 | | 9850 | sed 's/^/| /' conftest.$ac_ext >&5 |
9297 | | | 9851 | |
9298 | eval "$as_ac_var=no" | | 9852 | eval "$as_ac_var=no" |
9299 | fi | | 9853 | fi |
9300 | | | 9854 | |
9301 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 9855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9302 | conftest$ac_exeext conftest.$ac_ext | | 9856 | conftest$ac_exeext conftest.$ac_ext |
9303 | fi | | 9857 | fi |
9304 | ac_res=`eval echo '${'$as_ac_var'}'` | | 9858 | ac_res=`eval echo '${'$as_ac_var'}'` |
9305 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 9859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9306 | echo "${ECHO_T}$ac_res" >&6; } | | 9860 | echo "${ECHO_T}$ac_res" >&6; } |
9307 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 9861 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9308 | cat >>confdefs.h <<_ACEOF | | 9862 | cat >>confdefs.h <<_ACEOF |
9309 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 9863 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9310 | _ACEOF | | 9864 | _ACEOF |
9311 | : | | 9865 | : |
9312 | else | | 9866 | else |
9313 | | | 9867 | |
9314 | case " $LIBOBJS " in | | 9868 | case " $LIBOBJS " in |
9315 | *" gettemp.$ac_objext "* ) ;; | | 9869 | *" gettemp.$ac_objext "* ) ;; |
9316 | *) LIBOBJS="$LIBOBJS gettemp.$ac_objext" | | 9870 | *) LIBOBJS="$LIBOBJS gettemp.$ac_objext" |
9317 | ;; | | 9871 | ;; |
9318 | esac | | 9872 | esac |
9319 | | | 9873 | |
9320 | break | | 9874 | break |
9321 | | | 9875 | |
9322 | fi | | 9876 | fi |
9323 | done | | 9877 | done |
9324 | | | 9878 | |
9325 | | | 9879 | |
9326 | | | 9880 | |
9327 | | | 9881 | |
9328 | | | 9882 | |
9329 | | | 9883 | |
9330 | | | 9884 | |
9331 | for ac_func in bcopy bzero memset memcpy setlocale | | 9885 | for ac_func in bcopy bzero memset memcpy setlocale |
9332 | do | | 9886 | do |
9333 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 9887 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9334 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 9888 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9335 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 9889 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9336 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 9890 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 9891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9338 | else | | 9892 | else |
9339 | cat >conftest.$ac_ext <<_ACEOF | | 9893 | cat >conftest.$ac_ext <<_ACEOF |
9340 | /* confdefs.h. */ | | 9894 | /* confdefs.h. */ |
9341 | _ACEOF | | 9895 | _ACEOF |
9342 | cat confdefs.h >>conftest.$ac_ext | | 9896 | cat confdefs.h >>conftest.$ac_ext |
9343 | cat >>conftest.$ac_ext <<_ACEOF | | 9897 | cat >>conftest.$ac_ext <<_ACEOF |
9344 | /* end confdefs.h. */ | | 9898 | /* end confdefs.h. */ |
9345 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 9899 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9346 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 9900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9347 | #define $ac_func innocuous_$ac_func | | 9901 | #define $ac_func innocuous_$ac_func |
9348 | | | 9902 | |
9349 | /* System header to define __stub macros and hopefully few prototypes, | | 9903 | /* System header to define __stub macros and hopefully few prototypes, |
9350 | which can conflict with char $ac_func (); below. | | 9904 | which can conflict with char $ac_func (); below. |
9351 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 9905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9352 | <limits.h> exists even on freestanding compilers. */ | | 9906 | <limits.h> exists even on freestanding compilers. */ |
9353 | | | 9907 | |
9354 | #ifdef __STDC__ | | 9908 | #ifdef __STDC__ |
9355 | # include <limits.h> | | 9909 | # include <limits.h> |
9356 | #else | | 9910 | #else |
9357 | # include <assert.h> | | 9911 | # include <assert.h> |
9358 | #endif | | 9912 | #endif |
9359 | | | 9913 | |
9360 | #undef $ac_func | | 9914 | #undef $ac_func |
9361 | | | 9915 | |
9362 | /* Override any GCC internal prototype to avoid an error. | | 9916 | /* Override any GCC internal prototype to avoid an error. |
9363 | Use char because int might match the return type of a GCC | | 9917 | Use char because int might match the return type of a GCC |
9364 | builtin and then its argument prototype would still apply. */ | | 9918 | builtin and then its argument prototype would still apply. */ |
9365 | #ifdef __cplusplus | | 9919 | #ifdef __cplusplus |
9366 | extern "C" | | 9920 | extern "C" |
9367 | #endif | | 9921 | #endif |
9368 | char $ac_func (); | | 9922 | char $ac_func (); |
9369 | /* The GNU C library defines this for functions which it implements | | 9923 | /* The GNU C library defines this for functions which it implements |
9370 | to always fail with ENOSYS. Some functions are actually named | | 9924 | to always fail with ENOSYS. Some functions are actually named |
9371 | something starting with __ and the normal name is an alias. */ | | 9925 | something starting with __ and the normal name is an alias. */ |
9372 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 9926 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9373 | choke me | | 9927 | choke me |
9374 | #endif | | 9928 | #endif |
9375 | | | 9929 | |
9376 | int | | 9930 | int |
9377 | main () | | 9931 | main () |
9378 | { | | 9932 | { |
9379 | return $ac_func (); | | 9933 | return $ac_func (); |
9380 | ; | | 9934 | ; |
9381 | return 0; | | 9935 | return 0; |
9382 | } | | 9936 | } |
9383 | _ACEOF | | 9937 | _ACEOF |
9384 | rm -f conftest.$ac_objext conftest$ac_exeext | | 9938 | rm -f conftest.$ac_objext conftest$ac_exeext |
9385 | if { (ac_try="$ac_link" | | 9939 | if { (ac_try="$ac_link" |
9386 | case "(($ac_try" in | | 9940 | case "(($ac_try" in |
9387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 9941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9388 | *) ac_try_echo=$ac_try;; | | 9942 | *) ac_try_echo=$ac_try;; |
9389 | esac | | 9943 | esac |
9390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 9944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9391 | (eval "$ac_link") 2>conftest.er1 | | 9945 | (eval "$ac_link") 2>conftest.er1 |
9392 | ac_status=$? | | 9946 | ac_status=$? |
9393 | grep -v '^ *+' conftest.er1 >conftest.err | | 9947 | grep -v '^ *+' conftest.er1 >conftest.err |
9394 | rm -f conftest.er1 | | 9948 | rm -f conftest.er1 |
9395 | cat conftest.err >&5 | | 9949 | cat conftest.err >&5 |
9396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9397 | (exit $ac_status); } && { | | 9951 | (exit $ac_status); } && { |
9398 | test -z "$ac_c_werror_flag" || | | 9952 | test -z "$ac_c_werror_flag" || |
9399 | test ! -s conftest.err | | 9953 | test ! -s conftest.err |
9400 | } && test -s conftest$ac_exeext && | | 9954 | } && test -s conftest$ac_exeext && |
9401 | $as_test_x conftest$ac_exeext; then | | 9955 | $as_test_x conftest$ac_exeext; then |
9402 | eval "$as_ac_var=yes" | | 9956 | eval "$as_ac_var=yes" |
9403 | else | | 9957 | else |
9404 | echo "$as_me: failed program was:" >&5 | | 9958 | echo "$as_me: failed program was:" >&5 |
9405 | sed 's/^/| /' conftest.$ac_ext >&5 | | 9959 | sed 's/^/| /' conftest.$ac_ext >&5 |
9406 | | | 9960 | |
9407 | eval "$as_ac_var=no" | | 9961 | eval "$as_ac_var=no" |
9408 | fi | | 9962 | fi |
9409 | | | 9963 | |
9410 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 9964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9411 | conftest$ac_exeext conftest.$ac_ext | | 9965 | conftest$ac_exeext conftest.$ac_ext |
9412 | fi | | 9966 | fi |
9413 | ac_res=`eval echo '${'$as_ac_var'}'` | | 9967 | ac_res=`eval echo '${'$as_ac_var'}'` |
9414 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 9968 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9415 | echo "${ECHO_T}$ac_res" >&6; } | | 9969 | echo "${ECHO_T}$ac_res" >&6; } |
9416 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 9970 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9417 | cat >>confdefs.h <<_ACEOF | | 9971 | cat >>confdefs.h <<_ACEOF |
9418 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 9972 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9419 | _ACEOF | | 9973 | _ACEOF |
9420 | | | 9974 | |
9421 | fi | | 9975 | fi |
9422 | done | | 9976 | done |
9423 | | | 9977 | |
9424 | | | 9978 | |
9425 | | | 9979 | |
9426 | for ac_func in getmode setmode | | 9980 | for ac_func in getmode setmode |
9427 | do | | 9981 | do |
9428 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 9982 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9429 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 9983 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9430 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 9984 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9431 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 9985 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 9986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9433 | else | | 9987 | else |
9434 | cat >conftest.$ac_ext <<_ACEOF | | 9988 | cat >conftest.$ac_ext <<_ACEOF |
9435 | /* confdefs.h. */ | | 9989 | /* confdefs.h. */ |
9436 | _ACEOF | | 9990 | _ACEOF |
9437 | cat confdefs.h >>conftest.$ac_ext | | 9991 | cat confdefs.h >>conftest.$ac_ext |
9438 | cat >>conftest.$ac_ext <<_ACEOF | | 9992 | cat >>conftest.$ac_ext <<_ACEOF |
9439 | /* end confdefs.h. */ | | 9993 | /* end confdefs.h. */ |
9440 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 9994 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9441 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 9995 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9442 | #define $ac_func innocuous_$ac_func | | 9996 | #define $ac_func innocuous_$ac_func |
9443 | | | 9997 | |
9444 | /* System header to define __stub macros and hopefully few prototypes, | | 9998 | /* System header to define __stub macros and hopefully few prototypes, |
9445 | which can conflict with char $ac_func (); below. | | 9999 | which can conflict with char $ac_func (); below. |
9446 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 10000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9447 | <limits.h> exists even on freestanding compilers. */ | | 10001 | <limits.h> exists even on freestanding compilers. */ |
9448 | | | 10002 | |
9449 | #ifdef __STDC__ | | 10003 | #ifdef __STDC__ |
9450 | # include <limits.h> | | 10004 | # include <limits.h> |
9451 | #else | | 10005 | #else |
9452 | # include <assert.h> | | 10006 | # include <assert.h> |
9453 | #endif | | 10007 | #endif |
9454 | | | 10008 | |
9455 | #undef $ac_func | | 10009 | #undef $ac_func |
9456 | | | 10010 | |
9457 | /* Override any GCC internal prototype to avoid an error. | | 10011 | /* Override any GCC internal prototype to avoid an error. |
9458 | Use char because int might match the return type of a GCC | | 10012 | Use char because int might match the return type of a GCC |
9459 | builtin and then its argument prototype would still apply. */ | | 10013 | builtin and then its argument prototype would still apply. */ |
9460 | #ifdef __cplusplus | | 10014 | #ifdef __cplusplus |
9461 | extern "C" | | 10015 | extern "C" |
9462 | #endif | | 10016 | #endif |
9463 | char $ac_func (); | | 10017 | char $ac_func (); |
9464 | /* The GNU C library defines this for functions which it implements | | 10018 | /* The GNU C library defines this for functions which it implements |
9465 | to always fail with ENOSYS. Some functions are actually named | | 10019 | to always fail with ENOSYS. Some functions are actually named |
9466 | something starting with __ and the normal name is an alias. */ | | 10020 | something starting with __ and the normal name is an alias. */ |
9467 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 10021 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9468 | choke me | | 10022 | choke me |
9469 | #endif | | 10023 | #endif |
9470 | | | 10024 | |
9471 | int | | 10025 | int |
9472 | main () | | 10026 | main () |
9473 | { | | 10027 | { |
9474 | return $ac_func (); | | 10028 | return $ac_func (); |
9475 | ; | | 10029 | ; |
9476 | return 0; | | 10030 | return 0; |
9477 | } | | 10031 | } |
9478 | _ACEOF | | 10032 | _ACEOF |
9479 | rm -f conftest.$ac_objext conftest$ac_exeext | | 10033 | rm -f conftest.$ac_objext conftest$ac_exeext |
9480 | if { (ac_try="$ac_link" | | 10034 | if { (ac_try="$ac_link" |
9481 | case "(($ac_try" in | | 10035 | case "(($ac_try" in |
9482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 10036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9483 | *) ac_try_echo=$ac_try;; | | 10037 | *) ac_try_echo=$ac_try;; |
9484 | esac | | 10038 | esac |
9485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 10039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9486 | (eval "$ac_link") 2>conftest.er1 | | 10040 | (eval "$ac_link") 2>conftest.er1 |
9487 | ac_status=$? | | 10041 | ac_status=$? |
9488 | grep -v '^ *+' conftest.er1 >conftest.err | | 10042 | grep -v '^ *+' conftest.er1 >conftest.err |
9489 | rm -f conftest.er1 | | 10043 | rm -f conftest.er1 |
9490 | cat conftest.err >&5 | | 10044 | cat conftest.err >&5 |
9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 10045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9492 | (exit $ac_status); } && { | | 10046 | (exit $ac_status); } && { |
9493 | test -z "$ac_c_werror_flag" || | | 10047 | test -z "$ac_c_werror_flag" || |
9494 | test ! -s conftest.err | | 10048 | test ! -s conftest.err |
9495 | } && test -s conftest$ac_exeext && | | 10049 | } && test -s conftest$ac_exeext && |
9496 | $as_test_x conftest$ac_exeext; then | | 10050 | $as_test_x conftest$ac_exeext; then |
9497 | eval "$as_ac_var=yes" | | 10051 | eval "$as_ac_var=yes" |
9498 | else | | 10052 | else |
9499 | echo "$as_me: failed program was:" >&5 | | 10053 | echo "$as_me: failed program was:" >&5 |
9500 | sed 's/^/| /' conftest.$ac_ext >&5 | | 10054 | sed 's/^/| /' conftest.$ac_ext >&5 |
9501 | | | 10055 | |
9502 | eval "$as_ac_var=no" | | 10056 | eval "$as_ac_var=no" |
9503 | fi | | 10057 | fi |
9504 | | | 10058 | |
9505 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 10059 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9506 | conftest$ac_exeext conftest.$ac_ext | | 10060 | conftest$ac_exeext conftest.$ac_ext |
9507 | fi | | 10061 | fi |
9508 | ac_res=`eval echo '${'$as_ac_var'}'` | | 10062 | ac_res=`eval echo '${'$as_ac_var'}'` |
9509 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 10063 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9510 | echo "${ECHO_T}$ac_res" >&6; } | | 10064 | echo "${ECHO_T}$ac_res" >&6; } |
9511 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 10065 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9512 | cat >>confdefs.h <<_ACEOF | | 10066 | cat >>confdefs.h <<_ACEOF |
9513 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 10067 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9514 | _ACEOF | | 10068 | _ACEOF |
9515 | | | 10069 | |
9516 | fi | | 10070 | fi |
9517 | done | | 10071 | done |
9518 | | | 10072 | |
9519 | | | 10073 | |
9520 | | | 10074 | |
9521 | for ac_func in getmode setmode | | 10075 | for ac_func in getmode setmode |
9522 | do | | 10076 | do |
9523 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 10077 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9524 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 10078 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9525 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 10079 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9526 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 10080 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 10081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9528 | else | | 10082 | else |
9529 | cat >conftest.$ac_ext <<_ACEOF | | 10083 | cat >conftest.$ac_ext <<_ACEOF |
9530 | /* confdefs.h. */ | | 10084 | /* confdefs.h. */ |
9531 | _ACEOF | | 10085 | _ACEOF |
9532 | cat confdefs.h >>conftest.$ac_ext | | 10086 | cat confdefs.h >>conftest.$ac_ext |
9533 | cat >>conftest.$ac_ext <<_ACEOF | | 10087 | cat >>conftest.$ac_ext <<_ACEOF |
9534 | /* end confdefs.h. */ | | 10088 | /* end confdefs.h. */ |
9535 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 10089 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 10090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9537 | #define $ac_func innocuous_$ac_func | | 10091 | #define $ac_func innocuous_$ac_func |
9538 | | | 10092 | |
9539 | /* System header to define __stub macros and hopefully few prototypes, | | 10093 | /* System header to define __stub macros and hopefully few prototypes, |
9540 | which can conflict with char $ac_func (); below. | | 10094 | which can conflict with char $ac_func (); below. |
9541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 10095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9542 | <limits.h> exists even on freestanding compilers. */ | | 10096 | <limits.h> exists even on freestanding compilers. */ |
9543 | | | 10097 | |
9544 | #ifdef __STDC__ | | 10098 | #ifdef __STDC__ |
9545 | # include <limits.h> | | 10099 | # include <limits.h> |
9546 | #else | | 10100 | #else |
9547 | # include <assert.h> | | 10101 | # include <assert.h> |
9548 | #endif | | 10102 | #endif |
9549 | | | 10103 | |
9550 | #undef $ac_func | | 10104 | #undef $ac_func |
9551 | | | 10105 | |
9552 | /* Override any GCC internal prototype to avoid an error. | | 10106 | /* Override any GCC internal prototype to avoid an error. |
9553 | Use char because int might match the return type of a GCC | | 10107 | Use char because int might match the return type of a GCC |
9554 | builtin and then its argument prototype would still apply. */ | | 10108 | builtin and then its argument prototype would still apply. */ |
9555 | #ifdef __cplusplus | | 10109 | #ifdef __cplusplus |
9556 | extern "C" | | 10110 | extern "C" |
9557 | #endif | | 10111 | #endif |
9558 | char $ac_func (); | | 10112 | char $ac_func (); |
9559 | /* The GNU C library defines this for functions which it implements | | 10113 | /* The GNU C library defines this for functions which it implements |
9560 | to always fail with ENOSYS. Some functions are actually named | | 10114 | to always fail with ENOSYS. Some functions are actually named |
9561 | something starting with __ and the normal name is an alias. */ | | 10115 | something starting with __ and the normal name is an alias. */ |
9562 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 10116 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9563 | choke me | | 10117 | choke me |
9564 | #endif | | 10118 | #endif |
9565 | | | 10119 | |
9566 | int | | 10120 | int |
9567 | main () | | 10121 | main () |
9568 | { | | 10122 | { |
9569 | return $ac_func (); | | 10123 | return $ac_func (); |
9570 | ; | | 10124 | ; |
9571 | return 0; | | 10125 | return 0; |
9572 | } | | 10126 | } |
9573 | _ACEOF | | 10127 | _ACEOF |
9574 | rm -f conftest.$ac_objext conftest$ac_exeext | | 10128 | rm -f conftest.$ac_objext conftest$ac_exeext |
9575 | if { (ac_try="$ac_link" | | 10129 | if { (ac_try="$ac_link" |
9576 | case "(($ac_try" in | | 10130 | case "(($ac_try" in |
9577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 10131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9578 | *) ac_try_echo=$ac_try;; | | 10132 | *) ac_try_echo=$ac_try;; |
9579 | esac | | 10133 | esac |
9580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 10134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9581 | (eval "$ac_link") 2>conftest.er1 | | 10135 | (eval "$ac_link") 2>conftest.er1 |
9582 | ac_status=$? | | 10136 | ac_status=$? |
9583 | grep -v '^ *+' conftest.er1 >conftest.err | | 10137 | grep -v '^ *+' conftest.er1 >conftest.err |
9584 | rm -f conftest.er1 | | 10138 | rm -f conftest.er1 |
9585 | cat conftest.err >&5 | | 10139 | cat conftest.err >&5 |
9586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 10140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9587 | (exit $ac_status); } && { | | 10141 | (exit $ac_status); } && { |
9588 | test -z "$ac_c_werror_flag" || | | 10142 | test -z "$ac_c_werror_flag" || |
9589 | test ! -s conftest.err | | 10143 | test ! -s conftest.err |
9590 | } && test -s conftest$ac_exeext && | | 10144 | } && test -s conftest$ac_exeext && |
9591 | $as_test_x conftest$ac_exeext; then | | 10145 | $as_test_x conftest$ac_exeext; then |
9592 | eval "$as_ac_var=yes" | | 10146 | eval "$as_ac_var=yes" |
9593 | else | | 10147 | else |
9594 | echo "$as_me: failed program was:" >&5 | | 10148 | echo "$as_me: failed program was:" >&5 |
9595 | sed 's/^/| /' conftest.$ac_ext >&5 | | 10149 | sed 's/^/| /' conftest.$ac_ext >&5 |
9596 | | | 10150 | |
9597 | eval "$as_ac_var=no" | | 10151 | eval "$as_ac_var=no" |
9598 | fi | | 10152 | fi |
9599 | | | 10153 | |
9600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 10154 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9601 | conftest$ac_exeext conftest.$ac_ext | | 10155 | conftest$ac_exeext conftest.$ac_ext |
9602 | fi | | 10156 | fi |
9603 | ac_res=`eval echo '${'$as_ac_var'}'` | | 10157 | ac_res=`eval echo '${'$as_ac_var'}'` |
9604 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 10158 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9605 | echo "${ECHO_T}$ac_res" >&6; } | | 10159 | echo "${ECHO_T}$ac_res" >&6; } |
9606 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 10160 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9607 | cat >>confdefs.h <<_ACEOF | | 10161 | cat >>confdefs.h <<_ACEOF |
9608 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 10162 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9609 | _ACEOF | | 10163 | _ACEOF |
9610 | : | | 10164 | : |
9611 | else | | 10165 | else |
9612 | | | 10166 | |
9613 | case " $LIBOBJS " in | | 10167 | case " $LIBOBJS " in |
9614 | *" setmode.$ac_objext "* ) ;; | | 10168 | *" setmode.$ac_objext "* ) ;; |
9615 | *) LIBOBJS="$LIBOBJS setmode.$ac_objext" | | 10169 | *) LIBOBJS="$LIBOBJS setmode.$ac_objext" |
9616 | ;; | | 10170 | ;; |
9617 | esac | | 10171 | esac |
9618 | | | 10172 | |
9619 | break | | 10173 | break |
9620 | | | 10174 | |
9621 | fi | | 10175 | fi |
9622 | done | | 10176 | done |
9623 | | | 10177 | |
9624 | | | 10178 | |
9625 | | | 10179 | |
9626 | | | 10180 | |
9627 | | | 10181 | |
9628 | | | 10182 | |
9629 | | | 10183 | |
9630 | | | 10184 | |
9631 | for ac_func in gid_from_group group_from_gid pwcache_groupdb \ | | 10185 | for ac_func in gid_from_group group_from_gid pwcache_groupdb \ |
9632 | pwcache_userdb uid_from_user user_from_uid \ | | 10186 | pwcache_userdb uid_from_user user_from_uid \ |
9633 | | | 10187 | |
9634 | do | | 10188 | do |
9635 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 10189 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9636 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 10190 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9637 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 10191 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9638 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 10192 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 10193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9640 | else | | 10194 | else |
9641 | cat >conftest.$ac_ext <<_ACEOF | | 10195 | cat >conftest.$ac_ext <<_ACEOF |
9642 | /* confdefs.h. */ | | 10196 | /* confdefs.h. */ |
9643 | _ACEOF | | 10197 | _ACEOF |
9644 | cat confdefs.h >>conftest.$ac_ext | | 10198 | cat confdefs.h >>conftest.$ac_ext |
9645 | cat >>conftest.$ac_ext <<_ACEOF | | 10199 | cat >>conftest.$ac_ext <<_ACEOF |
9646 | /* end confdefs.h. */ | | 10200 | /* end confdefs.h. */ |
9647 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 10201 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 10202 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9649 | #define $ac_func innocuous_$ac_func | | 10203 | #define $ac_func innocuous_$ac_func |
9650 | | | 10204 | |
9651 | /* System header to define __stub macros and hopefully few prototypes, | | 10205 | /* System header to define __stub macros and hopefully few prototypes, |
9652 | which can conflict with char $ac_func (); below. | | 10206 | which can conflict with char $ac_func (); below. |
9653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 10207 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9654 | <limits.h> exists even on freestanding compilers. */ | | 10208 | <limits.h> exists even on freestanding compilers. */ |
9655 | | | 10209 | |
9656 | #ifdef __STDC__ | | 10210 | #ifdef __STDC__ |
9657 | # include <limits.h> | | 10211 | # include <limits.h> |
9658 | #else | | 10212 | #else |
9659 | # include <assert.h> | | 10213 | # include <assert.h> |
9660 | #endif | | 10214 | #endif |
9661 | | | 10215 | |
9662 | #undef $ac_func | | 10216 | #undef $ac_func |
9663 | | | 10217 | |
9664 | /* Override any GCC internal prototype to avoid an error. | | 10218 | /* Override any GCC internal prototype to avoid an error. |
9665 | Use char because int might match the return type of a GCC | | 10219 | Use char because int might match the return type of a GCC |
9666 | builtin and then its argument prototype would still apply. */ | | 10220 | builtin and then its argument prototype would still apply. */ |
9667 | #ifdef __cplusplus | | 10221 | #ifdef __cplusplus |
9668 | extern "C" | | 10222 | extern "C" |
9669 | #endif | | 10223 | #endif |
9670 | char $ac_func (); | | 10224 | char $ac_func (); |
9671 | /* The GNU C library defines this for functions which it implements | | 10225 | /* The GNU C library defines this for functions which it implements |
9672 | to always fail with ENOSYS. Some functions are actually named | | 10226 | to always fail with ENOSYS. Some functions are actually named |
9673 | something starting with __ and the normal name is an alias. */ | | 10227 | something starting with __ and the normal name is an alias. */ |
9674 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 10228 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9675 | choke me | | 10229 | choke me |
9676 | #endif | | 10230 | #endif |
9677 | | | 10231 | |
9678 | int | | 10232 | int |
9679 | main () | | 10233 | main () |
9680 | { | | 10234 | { |
9681 | return $ac_func (); | | 10235 | return $ac_func (); |
9682 | ; | | 10236 | ; |
9683 | return 0; | | 10237 | return 0; |
9684 | } | | 10238 | } |
9685 | _ACEOF | | 10239 | _ACEOF |
9686 | rm -f conftest.$ac_objext conftest$ac_exeext | | 10240 | rm -f conftest.$ac_objext conftest$ac_exeext |
9687 | if { (ac_try="$ac_link" | | 10241 | if { (ac_try="$ac_link" |
9688 | case "(($ac_try" in | | 10242 | case "(($ac_try" in |
9689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 10243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9690 | *) ac_try_echo=$ac_try;; | | 10244 | *) ac_try_echo=$ac_try;; |
9691 | esac | | 10245 | esac |
9692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | | 10246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9693 | (eval "$ac_link") 2>conftest.er1 | | 10247 | (eval "$ac_link") 2>conftest.er1 |
9694 | ac_status=$? | | 10248 | ac_status=$? |
9695 | grep -v '^ *+' conftest.er1 >conftest.err | | 10249 | grep -v '^ *+' conftest.er1 >conftest.err |
9696 | rm -f conftest.er1 | | 10250 | rm -f conftest.er1 |
9697 | cat conftest.err >&5 | | 10251 | cat conftest.err >&5 |
9698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | 10252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9699 | (exit $ac_status); } && { | | 10253 | (exit $ac_status); } && { |
9700 | test -z "$ac_c_werror_flag" || | | 10254 | test -z "$ac_c_werror_flag" || |
9701 | test ! -s conftest.err | | 10255 | test ! -s conftest.err |
9702 | } && test -s conftest$ac_exeext && | | 10256 | } && test -s conftest$ac_exeext && |
9703 | $as_test_x conftest$ac_exeext; then | | 10257 | $as_test_x conftest$ac_exeext; then |
9704 | eval "$as_ac_var=yes" | | 10258 | eval "$as_ac_var=yes" |
9705 | else | | 10259 | else |
9706 | echo "$as_me: failed program was:" >&5 | | 10260 | echo "$as_me: failed program was:" >&5 |
9707 | sed 's/^/| /' conftest.$ac_ext >&5 | | 10261 | sed 's/^/| /' conftest.$ac_ext >&5 |
9708 | | | 10262 | |
9709 | eval "$as_ac_var=no" | | 10263 | eval "$as_ac_var=no" |
9710 | fi | | 10264 | fi |
9711 | | | 10265 | |
9712 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | | 10266 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9713 | conftest$ac_exeext conftest.$ac_ext | | 10267 | conftest$ac_exeext conftest.$ac_ext |
9714 | fi | | 10268 | fi |
9715 | ac_res=`eval echo '${'$as_ac_var'}'` | | 10269 | ac_res=`eval echo '${'$as_ac_var'}'` |
9716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | | 10270 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9717 | echo "${ECHO_T}$ac_res" >&6; } | | 10271 | echo "${ECHO_T}$ac_res" >&6; } |
9718 | if test `eval echo '${'$as_ac_var'}'` = yes; then | | 10272 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9719 | cat >>confdefs.h <<_ACEOF | | 10273 | cat >>confdefs.h <<_ACEOF |
9720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 10274 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9721 | _ACEOF | | 10275 | _ACEOF |
9722 | | | 10276 | |
9723 | fi | | 10277 | fi |
9724 | done | | 10278 | done |
9725 | | | 10279 | |
9726 | | | 10280 | |
9727 | | | 10281 | |
9728 | | | 10282 | |
9729 | | | 10283 | |
9730 | | | 10284 | |
9731 | | | 10285 | |
9732 | for ac_func in gid_from_group group_from_gid pwcache_groupdb \ | | 10286 | for ac_func in gid_from_group group_from_gid pwcache_groupdb \ |
9733 | pwcache_userdb uid_from_user user_from_uid \ | | 10287 | pwcache_userdb uid_from_user user_from_uid \ |
9734 | | | 10288 | |
9735 | do | | 10289 | do |
9736 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 10290 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9737 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | | 10291 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9738 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | | 10292 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9739 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | | 10293 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | | 10294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9741 | else | | 10295 | else |
9742 | cat >conftest.$ac_ext <<_ACEOF | | 10296 | cat >conftest.$ac_ext <<_ACEOF |
9743 | /* confdefs.h. */ | | 10297 | /* confdefs.h. */ |
9744 | _ACEOF | | 10298 | _ACEOF |
9745 | cat confdefs.h >>conftest.$ac_ext | | 10299 | cat confdefs.h >>conftest.$ac_ext |
9746 | cat >>conftest.$ac_ext <<_ACEOF | | 10300 | cat >>conftest.$ac_ext <<_ACEOF |
9747 | /* end confdefs.h. */ | | 10301 | /* end confdefs.h. */ |
9748 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | | 10302 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9749 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 10303 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9750 | #define $ac_func innocuous_$ac_func | | 10304 | #define $ac_func innocuous_$ac_func |
9751 | | | 10305 | |
9752 | /* System header to define __stub macros and hopefully few prototypes, | | 10306 | /* System header to define __stub macros and hopefully few prototypes, |
9753 | which can conflict with char $ac_func (); below. | | 10307 | which can conflict with char $ac_func (); below. |
9754 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 10308 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9755 | <limits.h> exists even on freestanding compilers. */ | | 10309 | <limits.h> exists even on freestanding compilers. */ |
9756 | | | 10310 | |
9757 | #ifdef __STDC__ | | 10311 | #ifdef __STDC__ |
9758 | # include <limits.h> | | 10312 | # include <limits.h> |
9759 | #else | | 10313 | #else |
9760 | # include <assert.h> | | 10314 | # include <assert.h> |
9761 | #endif | | 10315 | #endif |
9762 | | | 10316 | |
9763 | #undef $ac_func | | 10317 | #undef $ac_func |
9764 | | | 10318 | |
9765 | /* Override any GCC internal prototype to avoid an error. | | 10319 | /* Override any GCC internal prototype to avoid an error. |
9766 | Use char because int might match the return type of a GCC | | 10320 | Use char because int might match the return type of a GCC |
9767 | builtin and then its argument prototype would still apply. */ | | 10321 | builtin and then its argument prototype would still apply. */ |
9768 | #ifdef __cplusplus | | 10322 | #ifdef __cplusplus |
9769 | extern "C" | | 10323 | extern "C" |
9770 | #endif | | 10324 | #endif |
9771 | char $ac_func (); | | 10325 | char $ac_func (); |
9772 | /* The GNU C library defines this for functions which it implements | | 10326 | /* The GNU C library defines this for functions which it implements |
9773 | to always fail with ENOSYS. Some functions are actually named | | 10327 | to always fail with ENOSYS. Some functions are actually named |
9774 | something starting with __ and the normal name is an alias. */ | | 10328 | something starting with __ and the normal name is an alias. */ |
9775 | #if defined __stub_$ac_func || defined __stub___$ac_func | | 10329 | #if defined __stub_$ac_func || defined __stub___$ac_func |
9776 | choke me | | 10330 | choke me |
9777 | #endif | | 10331 | #endif |
9778 | | | 10332 | |
9779 | int | | 10333 | int |
9780 | main () | | 10334 | main () |
9781 | { | | 10335 | { |
9782 | return $ac_func (); | | 10336 | return $ac_func (); |
9783 | ; | | 10337 | ; |
9784 | return 0; | | 10338 | return 0; |
9785 | } | | 10339 | } |
9786 | _ACEOF | | 10340 | _ACEOF |
9787 | rm -f conftest.$ac_objext conftest$ac_exeext | | 10341 | rm -f conftest.$ac_objext conftest$ac_exeext |
9788 | if { (ac_try="$ac_link" | | 10342 | if { (ac_try="$ac_link" |
9789 | case "(($ac_try" in | | 10343 | case "(($ac_try" in |
9790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 10344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |