File: configure.in

package info (click to toggle)
oleo 1.6-16
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,640 kB
  • ctags: 3,139
  • sloc: ansic: 39,221; yacc: 1,737; sh: 362; makefile: 88
file content (80 lines) | stat: -rw-r--r-- 1,873 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
dnl Process this file with autoconf to produce a configure script.
dnl
dnl tempnam needs replaced on some systems e.g. next
dnl
AC_INIT(oleofile.c)

AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(oleo, 1.6)

dnl Checks for programs:
AC_PROG_CC
AC_PROG_CPP
AC_ISC_POSIX
AC_AIX
AC_PROG_YACC
AC_PROG_LN_S
AC_PROG_RANLIB
AM_C_PROTOTYPES
AC_PROG_MAKE_SET

dnl Checks for header files:
AC_PATH_XTRA
if test "$no_x" != "yes";then  X_LIBS="$X_LIBS -lX11"; fi
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/select.h sys/systeminfo.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_VOLATILE
AC_C_VOIDSTAR
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_STRUCT_TIMEZONE

dnl checks for functions
AC_RETSIGTYPE

dnl checks for library functions
AC_FUNC_ALLOCA
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_REPLACE_FUNCS(random strftime mktime xmalloc vfprintf vsprintf)
if test "$ac_cv_func_vfprintf" = "no" -o "$ac_cv_func_vsprintf" = "no"; then
	LIBOBJS="$LIBOBJS doprnt.o"
fi
dnl Replace vfprintf and vsprintf.
dnl If either needs to be replaced, add doprnt.
dnl need_doprnt=


AC_CHECK_LIB(termcap, tgetflag)
AC_CHECK_LIB(curses, initscr)
dnl AC_HAVE_LIBRARY(misc)
AC_CHECK_LIB(m, pow)
dnl FIXME is this timezone check OK
AC_CHECK_LIB(nsl, timezone)

AC_TIMEZONE
AC_HAVE_FUNCS(rint rename sysinfo \
	      getcap stricmp strincmp \
	      strdup strstr strftime ftime \
		hypot cbreak rand strerror)
ac_save_libs="$LIBS"
LIBS="$X_LIBS $LIBS"
AC_HAVE_FUNCS(XSetWMProtocols XResourceManagerString)
LIBS="$ac_save_libs"
dnl LIBS="$LIBS -lm"
dnl LIBS="$LIBS_save"
AC_MSG_CHECKING([bogus definition of __GNUC__])
AC_TRY_LINK([static int x = 54;], [
#if defined (__GNUC__) && __GNUC__ >= 2
exit (__extension__ x);
#endif
],
[echo looks ok],
[DEFS="$DEFS -D__extension__="])
AC_OUTPUT(Makefile)