Mercurial > hg > xemacs-beta
comparison configure @ 3739:6d4dc9ec7240
[xemacs-hg @ 2006-12-11 19:43:57 by aidan]
Check for the various u*_t types in configure, use those definitions in C.
author | aidan |
---|---|
date | Mon, 11 Dec 2006 19:44:56 +0000 |
parents | 96cba27916dd |
children | e1dc2edc2719 |
comparison
equal
deleted
inserted
replaced
3738:23dd32cedb6a | 3739:6d4dc9ec7240 |
---|---|
27017 fi | 27017 fi |
27018 | 27018 |
27019 fi | 27019 fi |
27020 | 27020 |
27021 case "$opsys" in | 27021 case "$opsys" in |
27022 *linux* | *darwin* | *bsd* ) lucid_prefers_motif="no" ;; | 27022 *linux* | *darwin* | *bsd* | *cygwin* ) lucid_prefers_motif="no" ;; |
27023 * ) lucid_prefers_motif="yes" ;; | 27023 * ) lucid_prefers_motif="yes" ;; |
27024 esac | 27024 esac |
27025 | 27025 |
27026 case "$enable_menubars" in "" | "yes" | "athena" ) | 27026 case "$enable_menubars" in "" | "yes" | "athena" ) |
27027 enable_menubars="lucid" ;; | 27027 enable_menubars="lucid" ;; |
37685 cat >>confdefs.h <<\_ACEOF | 37685 cat >>confdefs.h <<\_ACEOF |
37686 #define HAVE_DBM 1 | 37686 #define HAVE_DBM 1 |
37687 _ACEOF | 37687 _ACEOF |
37688 | 37688 |
37689 | 37689 |
37690 echo "$as_me:$LINENO: checking for u_int8_t" >&5 | |
37691 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 | |
37692 if test "${ac_cv_type_u_int8_t+set}" = set; then | |
37693 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37694 else | |
37695 cat >conftest.$ac_ext <<_ACEOF | |
37696 /* confdefs.h. */ | |
37697 _ACEOF | |
37698 cat confdefs.h >>conftest.$ac_ext | |
37699 cat >>conftest.$ac_ext <<_ACEOF | |
37700 /* end confdefs.h. */ | |
37701 $ac_includes_default | |
37702 int | |
37703 main () | |
37704 { | |
37705 if ((u_int8_t *) 0) | |
37706 return 0; | |
37707 if (sizeof (u_int8_t)) | |
37708 return 0; | |
37709 ; | |
37710 return 0; | |
37711 } | |
37712 _ACEOF | |
37713 rm -f conftest.$ac_objext | |
37714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37715 (eval $ac_compile) 2>conftest.er1 | |
37716 ac_status=$? | |
37717 grep -v '^ *+' conftest.er1 >conftest.err | |
37718 rm -f conftest.er1 | |
37719 cat conftest.err >&5 | |
37720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37721 (exit $ac_status); } && | |
37722 { ac_try='test -z "$ac_c_werror_flag" | |
37723 || test ! -s conftest.err' | |
37724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37725 (eval $ac_try) 2>&5 | |
37726 ac_status=$? | |
37727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37728 (exit $ac_status); }; } && | |
37729 { ac_try='test -s conftest.$ac_objext' | |
37730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37731 (eval $ac_try) 2>&5 | |
37732 ac_status=$? | |
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37734 (exit $ac_status); }; }; then | |
37735 ac_cv_type_u_int8_t=yes | |
37736 else | |
37737 echo "$as_me: failed program was:" >&5 | |
37738 sed 's/^/| /' conftest.$ac_ext >&5 | |
37739 | |
37740 ac_cv_type_u_int8_t=no | |
37741 fi | |
37742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37743 fi | |
37744 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 | |
37745 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 | |
37746 if test $ac_cv_type_u_int8_t = yes; then | |
37747 | |
37748 cat >>confdefs.h <<_ACEOF | |
37749 #define HAVE_U_INT8_T 1 | |
37750 _ACEOF | |
37751 | |
37752 | |
37753 fi | |
37754 echo "$as_me:$LINENO: checking for u_int16_t" >&5 | |
37755 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 | |
37756 if test "${ac_cv_type_u_int16_t+set}" = set; then | |
37757 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37758 else | |
37759 cat >conftest.$ac_ext <<_ACEOF | |
37760 /* confdefs.h. */ | |
37761 _ACEOF | |
37762 cat confdefs.h >>conftest.$ac_ext | |
37763 cat >>conftest.$ac_ext <<_ACEOF | |
37764 /* end confdefs.h. */ | |
37765 $ac_includes_default | |
37766 int | |
37767 main () | |
37768 { | |
37769 if ((u_int16_t *) 0) | |
37770 return 0; | |
37771 if (sizeof (u_int16_t)) | |
37772 return 0; | |
37773 ; | |
37774 return 0; | |
37775 } | |
37776 _ACEOF | |
37777 rm -f conftest.$ac_objext | |
37778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37779 (eval $ac_compile) 2>conftest.er1 | |
37780 ac_status=$? | |
37781 grep -v '^ *+' conftest.er1 >conftest.err | |
37782 rm -f conftest.er1 | |
37783 cat conftest.err >&5 | |
37784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37785 (exit $ac_status); } && | |
37786 { ac_try='test -z "$ac_c_werror_flag" | |
37787 || test ! -s conftest.err' | |
37788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37789 (eval $ac_try) 2>&5 | |
37790 ac_status=$? | |
37791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37792 (exit $ac_status); }; } && | |
37793 { ac_try='test -s conftest.$ac_objext' | |
37794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37795 (eval $ac_try) 2>&5 | |
37796 ac_status=$? | |
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37798 (exit $ac_status); }; }; then | |
37799 ac_cv_type_u_int16_t=yes | |
37800 else | |
37801 echo "$as_me: failed program was:" >&5 | |
37802 sed 's/^/| /' conftest.$ac_ext >&5 | |
37803 | |
37804 ac_cv_type_u_int16_t=no | |
37805 fi | |
37806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37807 fi | |
37808 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 | |
37809 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 | |
37810 if test $ac_cv_type_u_int16_t = yes; then | |
37811 | |
37812 cat >>confdefs.h <<_ACEOF | |
37813 #define HAVE_U_INT16_T 1 | |
37814 _ACEOF | |
37815 | |
37816 | |
37817 fi | |
37818 echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
37819 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
37820 if test "${ac_cv_type_u_int32_t+set}" = set; then | |
37821 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37822 else | |
37823 cat >conftest.$ac_ext <<_ACEOF | |
37824 /* confdefs.h. */ | |
37825 _ACEOF | |
37826 cat confdefs.h >>conftest.$ac_ext | |
37827 cat >>conftest.$ac_ext <<_ACEOF | |
37828 /* end confdefs.h. */ | |
37829 $ac_includes_default | |
37830 int | |
37831 main () | |
37832 { | |
37833 if ((u_int32_t *) 0) | |
37834 return 0; | |
37835 if (sizeof (u_int32_t)) | |
37836 return 0; | |
37837 ; | |
37838 return 0; | |
37839 } | |
37840 _ACEOF | |
37841 rm -f conftest.$ac_objext | |
37842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37843 (eval $ac_compile) 2>conftest.er1 | |
37844 ac_status=$? | |
37845 grep -v '^ *+' conftest.er1 >conftest.err | |
37846 rm -f conftest.er1 | |
37847 cat conftest.err >&5 | |
37848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37849 (exit $ac_status); } && | |
37850 { ac_try='test -z "$ac_c_werror_flag" | |
37851 || test ! -s conftest.err' | |
37852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37853 (eval $ac_try) 2>&5 | |
37854 ac_status=$? | |
37855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37856 (exit $ac_status); }; } && | |
37857 { ac_try='test -s conftest.$ac_objext' | |
37858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37859 (eval $ac_try) 2>&5 | |
37860 ac_status=$? | |
37861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37862 (exit $ac_status); }; }; then | |
37863 ac_cv_type_u_int32_t=yes | |
37864 else | |
37865 echo "$as_me: failed program was:" >&5 | |
37866 sed 's/^/| /' conftest.$ac_ext >&5 | |
37867 | |
37868 ac_cv_type_u_int32_t=no | |
37869 fi | |
37870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37871 fi | |
37872 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
37873 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
37874 if test $ac_cv_type_u_int32_t = yes; then | |
37875 | |
37876 cat >>confdefs.h <<_ACEOF | |
37877 #define HAVE_U_INT32_T 1 | |
37878 _ACEOF | |
37879 | |
37880 | |
37881 fi | |
37882 | |
37883 | |
37690 if test "$enable_database_berkdb" != "no"; then | 37884 if test "$enable_database_berkdb" != "no"; then |
37691 echo "$as_me:$LINENO: checking for Berkeley db.h" >&5 | 37885 echo "$as_me:$LINENO: checking for Berkeley db.h" >&5 |
37692 echo $ECHO_N "checking for Berkeley db.h... $ECHO_C" >&6 | 37886 echo $ECHO_N "checking for Berkeley db.h... $ECHO_C" >&6 |
37693 for header in "db/db.h" "db.h"; do | 37887 for header in "db/db.h" "db.h"; do |
37694 cat >conftest.$ac_ext <<_ACEOF | 37888 cat >conftest.$ac_ext <<_ACEOF |
37701 #include <stdlib.h> | 37895 #include <stdlib.h> |
37702 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | 37896 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) |
37703 #ifdef HAVE_INTTYPES_H | 37897 #ifdef HAVE_INTTYPES_H |
37704 #define __BIT_TYPES_DEFINED__ | 37898 #define __BIT_TYPES_DEFINED__ |
37705 #include <inttypes.h> | 37899 #include <inttypes.h> |
37900 #if !HAVE_U_INT8_T | |
37706 typedef uint8_t u_int8_t; | 37901 typedef uint8_t u_int8_t; |
37902 #endif | |
37903 #if !HAVE_U_INT16_T | |
37707 typedef uint16_t u_int16_t; | 37904 typedef uint16_t u_int16_t; |
37905 #endif | |
37906 #if !HAVE_U_INT32_T | |
37708 typedef uint32_t u_int32_t; | 37907 typedef uint32_t u_int32_t; |
37908 #endif | |
37709 #ifdef WE_DONT_NEED_QUADS | 37909 #ifdef WE_DONT_NEED_QUADS |
37910 #if !HAVE_U_INT64_T | |
37710 typedef uint64_t u_int64_t; | 37911 typedef uint64_t u_int64_t; |
37912 #endif | |
37711 #endif | 37913 #endif |
37712 #endif | 37914 #endif |
37713 #endif | 37915 #endif |
37714 #include <$header> | 37916 #include <$header> |
37715 | 37917 |