File: configure.in

package info (click to toggle)
shed 1.15-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 440 kB
  • sloc: ansic: 1,096; sh: 1,010; makefile: 8
file content (48 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download | duplicates (2)
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
AC_INIT(shed.c)
AM_INIT_AUTOMAKE(shed,1.15)
AC_PROG_CC
AC_PROG_INSTALL
CFLAGS="$CFLAGS -Wall"
AC_SUBST(CFLAGS)

AC_ARG_ENABLE(debug,   [  --enable-debug          gcc -g],enable_debug=yes)
if test "$enable_debug" = "yes"
then
  CFLAGS="$CFLAGS -g"
fi

AC_ARG_ENABLE(lfs,     [  --enable-lfs            large file support],,enable_lfs=yes)
if test -z "$enable_lfs"
then
  enable_lfs="$enableval"
fi
if test $enable_lfs = "yes"
then
  CFLAGS="$CFLAGS -DSHED_LFS=1 -D_FILE_OFFSET_BITS=64"
else
  CFLAGS="$CFLAGS -DSHED_LFS=0"
fi
echo "large file support: $enable_lfs"

AC_ARG_ENABLE(cygfix,  [  --enable-cygfix         cygwin fix],enable_cygfix=yes)
if test "$enable_cygfix" = "yes"
then
  CFLAGS="$CFLAGS -DSHED_CYGFIX=1"
else
  CFLAGS="$CFLAGS -DSHED_CYGFIX=0"
fi

AC_ARG_ENABLE(nofollow,[  --enable-nofollow       nofollow option],enable_nofollow=yes)
if test "$enable_nofollow" = "yes"
then
  CFLAGS="$CFLAGS -DSHED_NOFOLLOW=1"
else
  CFLAGS="$CFLAGS -DSHED_NOFOLLOW=0"
fi

ERR="Required package missing!"
AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([$ERR]))
AC_CHECK_HEADER(getopt.h,:,AC_MSG_ERROR([$ERR]))
AC_CHECK_LIB(ncurses,initscr)
AC_CHECK_LIB(m,pow)
AC_OUTPUT(Makefile)