File: configure.ac

package info (click to toggle)
freepwing 1.4.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 844 kB
  • ctags: 293
  • sloc: perl: 4,831; sh: 3,085; makefile: 191
file content (63 lines) | stat: -rw-r--r-- 1,492 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
63
dnl *
dnl * Process this file with autoconf to produce a configure script.
dnl *
AC_INIT
AC_CONFIG_SRCDIR(src/BaseText.pm)
AC_PREREQ(2.52)
AM_INIT_AUTOMAKE(freepwing, 1.4.3)

dnl *
dnl * --with-pkgdocdir option.
dnl *
AC_ARG_WITH(pkgdocdir,
AC_HELP_STRING([--with-pkgdocdir=DIR],
    [HTML documents in DIR [[default=DATADIR/freepwing/doc]]]),
[pkgdocdir="${withval}"],[pkgdocdir='${datadir}/freepwing/doc'])
AC_SUBST(pkgdocdir)

dnl *
dnl * Perl5 command.
dnl *
AC_PATH_PROGS(PERL, perl5 perl, no)
if test "$PERL" = no ; then
    AC_MSG_ERROR(perl5 not found)
fi
$PERL -e 'close(STDERR); require 5.005'
if test $? -ne 0 ; then
    AC_MSG_ERROR($PERL is older than version 5.005)
fi

AC_ARG_WITH(perllibdir,
AC_HELP_STRING([--with-perllibdir=DIR], [Perl5 modules in DIR]),
[perllibdir="${withval}"],
[perllibdir="`$PERL -e 'for(@INC){print,exit if m|/site_perl|}print $INC[[0]]'`"])
AC_MSG_CHECKING(for Perl5 module directory)
AC_MSG_RESULT($perllibdir)
AC_SUBST(perllibdir)

dnl *
dnl * sort command.
dnl *
AC_PATH_PROGS(SORT, sort, no)
if test "$SORT" = no ; then
   AC_MSG_ERROR(sort not found)
fi

dnl *
dnl * GNU make command.
dnl *
AC_PATH_PROGS(GNUMAKE, gnumake gmake make, no)
if test "$GNUMAKE" = no ; then
    AC_MSG_ERROR(GNU make not found)
fi
$GNUMAKE --help > /dev/null
if test $? -ne 0 ; then
    AC_MSG_ERROR($GNUMAKE is not GNU make)
fi

dnl * 
dnl * Output Files.
dnl * 
AC_CONFIG_FILES([Makefile src/Makefile fpwutils/Makefile doc/Makefile
    catdump/Makefile])
AC_OUTPUT