File: configure.in

package info (click to toggle)
yabasic 2.715-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,332 kB
  • ctags: 1,518
  • sloc: ansic: 11,053; sh: 7,617; perl: 260; makefile: 57
file content (62 lines) | stat: -rw-r--r-- 1,502 bytes parent folder | download
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

dnl  Process this file with 'autoconf' to get a configure-script

dnl --- yabasic.h is one of the sources ---
AC_INIT(yabasic.h)
AM_CONFIG_HEADER(config.h)

dnl --- get canonical system name ---
AC_CANONICAL_HOST

AM_INIT_AUTOMAKE(yabasic, 2.715)
AC_LIBLTDL_CONVENIENCE
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL

dnl --- find out, which c-compiler is available ---
AC_PROG_CC

dnl --- set options appropriate for compiler ---
AC_CHECK_PROG(CCOPTIONS,gcc,-Wall,)

dnl --- check for X-Window system ---
AC_PATH_XTRA

dnl --- check for headers ---
AC_CHECK_HEADERS(stdio.h float.h\
                 math.h time.h sys/time.h\
                 unistd.h signal.h ctype.h,,exit 1)

dnl --- check for string.h and strings.h ---
AC_CHECK_HEADER(string.h,AC_DEFINE(HAVE_STRING_HEADER))
AC_CHECK_HEADER(strings.h,AC_DEFINE(HAVE_STRINGS_HEADER))

dnl --- check for curses.h
AC_CHECK_HEADER(ncurses.h,AC_DEFINE(HAVE_NCURSES_HEADER))
AC_CHECK_HEADER(curses.h,AC_DEFINE(HAVE_CURSES_HEADER))

dnl --- check if curses is available ---
AC_CHECK_LIB(ncurses,initscr)
AC_CHECK_LIB(curses,initscr)

dnl --- check for specific functions within ncurses
AC_CHECK_FUNCS(getnstr)

dnl --- check for specific functions ---
AC_CHECK_FUNCS(setitimer)
AC_CHECK_FUNCS(difftime)

dnl --- check for <alloca.h>
AC_FUNC_ALLOCA

dnl --- record current time ---
AC_DEFINE_UNQUOTED(BUILD_TIME,"`date`")

dnl --- architecture of build machine ---
AC_DEFINE_UNQUOTED(UNIX_ARCHITECTURE,"$host")

dnl --- translate makefile ---
AC_OUTPUT(Makefile)