1
dnl Process this file with autoconf to produce a configure script.
2
AC_INIT(src/char_width.c)
4
dnl Initialize automake stuff
9
# new way of doing version
12
echo Configuring utils version $VERSION
14
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
16
dnl Create a configuration header
17
AM_CONFIG_HEADER(config.h)
19
dnl Build time sanity check...
22
dnl Initialize maintainer mode
25
dnl Checks for programs.
31
AC_CHECK_HEADERS(fcntl.h unistd.h strings.h)
33
dnl Checks for typedefs, structures, and compiler characteristics.
36
dnl Checks for library functions.
38
AC_CHECK_FUNCS(getcwd strstr vsnprintf snprintf)
40
AC_MSG_CHECKING([for optarg in unistd.h])
42
[#include <unistd.h>],
43
[ char *string = optarg; int i = optind; ],
46
AC_MSG_RESULT($optarg_found)
48
if test $optarg_found = yes; then
49
AC_DEFINE(OPTARG_IN_UNISTD)
52
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
54
# search for libgeda-config
55
AC_PATH_PROG(LIBGEDACONFIG, libgeda-config, no, ${PATH})
57
if test $LIBGEDACONFIG = "no"; then
58
AC_MSG_ERROR(Cannot find libgeda-config -- be sure that libgeda is installed)
61
LIBGEDA_CFLAGS=`$LIBGEDACONFIG --cflags`
62
#LIBGEDA_LDFLAGS = `$LIBGEDACONFIG --libs`
66
AC_SUBST(LIBGEDA_CFLAGS)