~ubuntu-branches/ubuntu/trusty/geda-utils/trusty

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2005-03-15 23:04:53 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050315230453-x3x6qtw9qv17zbnf
Tags: 20050313-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
AC_INIT(src/char_width.c)
3
 
 
4
 
dnl Initialize automake stuff
5
 
PACKAGE=geda-utils
6
 
 
7
 
DATADIR=gEDA
8
 
 
9
 
# new way of doing version
10
 
VERSION=20010722
11
 
 
12
 
echo Configuring utils version $VERSION
13
 
 
14
 
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
15
 
 
16
 
dnl Create a configuration header
17
 
AM_CONFIG_HEADER(config.h)
18
 
 
19
 
dnl Build time sanity check...
20
 
AM_SANITY_CHECK
21
 
 
22
 
dnl Initialize maintainer mode
23
 
AM_MAINTAINER_MODE
24
 
 
25
 
dnl Checks for programs.
26
 
AC_PROG_CC
27
 
AC_PROG_MAKE_SET
28
 
 
29
 
AC_HEADER_SYS_WAIT
30
 
AC_HEADER_DIRENT
31
 
AC_CHECK_HEADERS(fcntl.h unistd.h strings.h)
32
 
 
33
 
dnl Checks for typedefs, structures, and compiler characteristics.
34
 
AC_C_CONST
35
 
 
36
 
dnl Checks for library functions.
37
 
AC_TYPE_SIGNAL
38
 
AC_CHECK_FUNCS(getcwd strstr vsnprintf snprintf)
39
 
 
40
 
AC_MSG_CHECKING([for optarg in unistd.h])
41
 
AC_TRY_COMPILE(
42
 
[#include <unistd.h>],
43
 
[ char *string = optarg; int i = optind; ],
44
 
optarg_found=yes,
45
 
optarg_found=no)
46
 
AC_MSG_RESULT($optarg_found)
47
 
 
48
 
if test $optarg_found = yes; then
49
 
                AC_DEFINE(OPTARG_IN_UNISTD)
50
 
fi
51
 
 
52
 
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
53
 
 
54
 
# search for libgeda-config
55
 
AC_PATH_PROG(LIBGEDACONFIG, libgeda-config, no, ${PATH})
56
 
 
57
 
if test $LIBGEDACONFIG = "no"; then
58
 
        AC_MSG_ERROR(Cannot find libgeda-config -- be sure that libgeda is installed)
59
 
fi
60
 
 
61
 
LIBGEDA_CFLAGS=`$LIBGEDACONFIG --cflags`
62
 
#LIBGEDA_LDFLAGS = `$LIBGEDACONFIG --libs`
63
 
 
64
 
AC_SUBST(HOME)
65
 
AC_SUBST(VERSION)
66
 
AC_SUBST(LIBGEDA_CFLAGS)
67
 
 
68
 
AC_OUTPUT(      Makefile \
69
 
                examples/Makefile \
70
 
                src/Makefile )
71