comparison configure.ac @ 3862:cfc59907fb1e

[xemacs-hg @ 2007-03-13 16:48:37 by stephent] Autoconf improvements. <87fy89ay3n.fsf@uwakimon.sk.tsukuba.ac.jp>
author stephent
date Tue, 13 Mar 2007 16:48:38 +0000
parents e58f4b9ab1ad
children 8fe2dec941b3
comparison
equal deleted inserted replaced
3861:a4663d9754ac 3862:cfc59907fb1e
2875 2875
2876 dnl Some other nice autoconf tests. If you add a test here which 2876 dnl Some other nice autoconf tests. If you add a test here which
2877 dnl should make an entry in src/config.h, do not forget to add an 2877 dnl should make an entry in src/config.h, do not forget to add an
2878 dnl #undef clause to src/config.h.in for autoconf to modify. 2878 dnl #undef clause to src/config.h.in for autoconf to modify.
2879 2879
2880 dnl Sun likes to hide these utilities. Steve Baur asked that we make
2881 dnl the failure occur at configure time, not at use time.
2882 AC_CHECK_PROG(AR,ar,ar,not_found)
2883 if test "$AR" = "not_found"; then
2884 XE_DIE(["ar not found -- is PATH set correctly?"])
2885 fi
2886 dnl These tests don't necessarily check that the program exists.
2880 AC_PROG_RANLIB 2887 AC_PROG_RANLIB
2881 AC_PROG_INSTALL 2888 AC_PROG_INSTALL
2882 AC_PROG_YACC 2889 AC_PROG_YACC
2883 2890
2884 dnl checks for header files 2891 dnl checks for header files
2935 AC_TYPE_SIZE_T 2942 AC_TYPE_SIZE_T
2936 AC_TYPE_PID_T 2943 AC_TYPE_PID_T
2937 AC_TYPE_UID_T 2944 AC_TYPE_UID_T
2938 AC_TYPE_MODE_T 2945 AC_TYPE_MODE_T
2939 AC_TYPE_OFF_T 2946 AC_TYPE_OFF_T
2940 dnl #### deprecated 2.13-ism 2947 dnl #### Translated from deprecated 2.13-ism.
2941 AC_CHECK_TYPE(ssize_t, int) 2948 dnl We probably want to DTRT with #ifdef HAVE_SSIZE_T in src/config.h.in.
2949 dnl Specifically, we should typedef st sizeof(ssize_t) == sizeof(size_t).
2950 AC_CHECK_TYPE([ssize_t],,
2951 [AC_DEFINE_UNQUOTED([ssize_t], [int],
2952 [Define to `int' if
2953 <sys/types.h> does not define.])])
2942 2954
2943 dnl not AC_CHECK_TYPE; lisp.h does hairy conditional typedef 2955 dnl not AC_CHECK_TYPE; lisp.h does hairy conditional typedef
2944 if test "$ac_cv_header_inttypes_h" != "yes"; then 2956 if test "$ac_cv_header_inttypes_h" != "yes"; then
2945 AC_MSG_CHECKING(for intptr_t in sys/types.h) 2957 AC_MSG_CHECKING(for intptr_t in sys/types.h)
2946 AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <sys/types.h> 2958 AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <sys/types.h>