File: configure.ac

package info (click to toggle)
gnome-sudo 0.3-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 504
  • sloc: ansic: 4,524; sh: 3,099; makefile: 359; yacc: 318
file content (54 lines) | stat: -rw-r--r-- 1,199 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
dnl Process this file with autoconf to produce a configure script.

dnl # $Progeny: gnome-sudo/configure.ac,v 1.10 2001/11/01 17:40:55 epg Exp $

AC_INIT(configure.ac)
AM_INIT_AUTOMAKE(gnome-sudo, 0.3)
AM_CONFIG_HEADER(config.h)

dnl # Pick up the Gnome macros.
AM_ACLOCAL_INCLUDE(macros)

GNOME_INIT
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC

GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS

dnl # Add the languages which your application supports here.
ALL_LINGUAS=""
AM_GNU_GETTEXT

dnl # Check for some programs

AC_ARG_WITH(sudo,
            AC_HELP_STRING(--with-sudo=PATH        PATH to sudo program),
            SUDO=$withval, SUDO=none)

if test "$SUDO" = "none"; then
    AC_PATH_PROG(SUDO, sudo)
    if test ! "$SUDO"; then
        AC_MSG_ERROR("sudo must be installed to use this package.")
    fi
else
    AC_MSG_RESULT("Using $SUDO as sudo.")
fi

dnl # Set PACKAGE_LOCALE_DIR in config.h.
if test "x${prefix}" = "xNONE"; then
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
else
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
fi

AC_OUTPUT([
Makefile
intl/Makefile
macros/Makefile
po/Makefile.in
src/Makefile
])