74 |
XFORMS_ADD_INC_DIR(CPPFLAGS,$dir/include) |
XFORMS_ADD_INC_DIR(CPPFLAGS,$dir/include) |
75 |
XFORMS_ADD_LIB_DIR(LDFLAGS,$dir/lib)]) |
XFORMS_ADD_LIB_DIR(LDFLAGS,$dir/lib)]) |
76 |
|
|
77 |
# Check for X |
# Checks for typedefs, structures, and compiler characteristics. |
78 |
AC_PATH_XTRA |
AC_C_CONST dnl used |
79 |
|
AC_TYPE_PID_T |
80 |
|
AC_TYPE_SIZE_T |
81 |
|
|
82 |
# Checks for libraries. |
# Checks for libraries. |
83 |
dnl by testing these we check if it is ok to have |
dnl by testing these we check if it is ok to have |
84 |
dnl -lc and -lm as args to the compiler |
dnl -lc and -lm as args to the compiler |
85 |
AC_CHECK_LIB(m, sin) |
AC_CHECK_LIB(m, sin) |
86 |
AC_CHECK_LIB(c, fopen) |
AC_CHECK_LIB(c, fopen) |
|
XFORMS_CHECK_LIB_JPEG |
|
87 |
|
|
88 |
# Checks for header files. |
# Checks for header files. |
89 |
XFORMS_PATH_XPM |
dnl we should do something clever when GL is not installed |
90 |
AC_HEADER_DIRENT |
AC_CHECK_HEADERS([sys/select.h GL/glx.h]) |
|
AC_HEADER_STDC |
|
|
AC_HEADER_SYS_WAIT |
|
|
AC_CHECK_HEADERS([fcntl.h float.h limits.h locale.h malloc.h memory.h stdlib.h string.h sys/select.h sys/time.h sys/timeb.h sys/types.h unistd.h, GL/glx.h]) |
|
91 |
|
|
92 |
# Checks for typedefs, structures, and compiler characteristics. |
dnl we have some code in lib/listdir.c that could use that... |
93 |
AC_HEADER_STAT |
dnl AC_HEADER_DIRENT |
94 |
AC_C_CONST dnl used |
|
95 |
AC_TYPE_PID_T |
# Check for X, XPM and JPEG |
96 |
AC_TYPE_SIZE_T |
AC_PATH_XTRA |
97 |
AC_HEADER_TIME |
XFORMS_PATH_XPM |
98 |
AC_STRUCT_TM |
XFORMS_CHECK_LIB_JPEG |
99 |
|
|
100 |
# Checks for library functions. |
# Checks for library functions. |
|
AC_FUNC_FORK |
|
|
AC_FUNC_MALLOC |
|
101 |
AC_TYPE_SIGNAL dnl used |
AC_TYPE_SIGNAL dnl used |
102 |
AC_FUNC_STAT |
AC_CHECK_FUNCS([snprintf strcasecmp strerror usleep vsnprintf]) |
|
AC_FUNC_STRTOD |
|
|
AC_FUNC_VPRINTF |
|
|
AC_CHECK_FUNCS([usleep dup2 endpwent floor ftime getcwd gethostname gettimeofday getwd memmove memset modf pow putenv select setlocale strcasecmp strchr strdup strerror strrchr strstr strtol]) |
|
|
|
|
|
AC_CHECK_FUNCS(snprintf vsnprintf) |
|
103 |
XFORMS_CHECK_DECL(snprintf, stdio.h) |
XFORMS_CHECK_DECL(snprintf, stdio.h) |
104 |
XFORMS_CHECK_DECL(vsnprintf, stdio.h) |
XFORMS_CHECK_DECL(vsnprintf, stdio.h) |
105 |
|
|