~ubuntu-branches/ubuntu/vivid/esorex/vivid

« back to all changes in this revision

Viewing changes to .pc/fix-autotools.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2011-11-25 12:08:00 UTC
  • Revision ID: package-import@ubuntu.com-20111125120800-grvehmdmxrzlkf1n
Tags: 3.9.0-1
New package. Closes: #641634

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Process this file with autoconf to produce a configure script.
 
2
 
 
3
AC_INIT([ESO Recipe Execution Tool], [3.9.0], [cpl-help@eso.org], [esorex])
 
4
AC_PREREQ([2.59])
 
5
 
 
6
AC_CONFIG_SRCDIR([Makefile.am])
 
7
AC_CONFIG_AUX_DIR([admin])
 
8
 
 
9
AC_CANONICAL_HOST
 
10
AC_CANONICAL_TARGET
 
11
 
 
12
AM_INIT_AUTOMAKE
 
13
AM_CONFIG_HEADER([config.h])
 
14
 
 
15
AM_MAINTAINER_MODE
 
16
 
 
17
ESOREX_SET_PREFIX(${CPLDIR:-/usr/local})
 
18
 
 
19
# Checks for programs.
 
20
AC_PROG_CC
 
21
AC_PROG_CPP
 
22
AM_PROG_CC_C_O
 
23
AM_C_PROTOTYPES
 
24
#
 
25
# Check for purify
 
26
#
 
27
CHECK_PURIFY
 
28
 
 
29
ESO_ENABLE_DEBUG(no)
 
30
ESO_ENABLE_STRICT(no)
 
31
ESO_PROG_CC_FLAG([fno-builtin], [CFLAGS="$CFLAGS -fno-builtin"])
 
32
 
 
33
ESO_CHECK_DOCTOOLS
 
34
 
 
35
LT_INIT
 
36
LT_CONFIG_LTDL_DIR([libltdl])
 
37
AC_LIB_LTDL
 
38
AC_SUBST(INCLTDL)
 
39
AC_SUBST(LIBLTDL)
 
40
 
 
41
AC_ENABLE_STATIC(no)
 
42
AC_ENABLE_SHARED(yes)
 
43
 
 
44
AC_PROG_LIBTOOL
 
45
AC_SUBST(LIBTOOL_DEPS)
 
46
 
 
47
# Checks for libraries.
 
48
AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])
 
49
AC_CHECK_LIB(nsl, inet_ntoa, [LIBS="$LIBS -lnsl"])
 
50
 
 
51
# Checks for header files.
 
52
AC_HEADER_STDC
 
53
AC_HEADER_DIRENT
 
54
AC_HEADER_STAT
 
55
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h sys/types.h])
 
56
 
 
57
# Checks for typedefs, structures, and compiler characteristics.
 
58
AC_C_CONST
 
59
AC_C_INLINE
 
60
AC_STRUCT_ST_BLKSIZE
 
61
 
 
62
# Checks for library functions.
 
63
AC_FUNC_CLOSEDIR_VOID
 
64
AC_FUNC_STAT
 
65
AC_CHECK_FUNCS([getcwd])
 
66
 
 
67
# Checks for symbolic link functions
 
68
ESO_FUNC_SYMLINK
 
69
ESO_FUNC_LSTAT
 
70
 
 
71
ESOREX_FUNC_GETOPT
 
72
 
 
73
# Check for CPL presence and usability
 
74
#CPL_CHECK_CFITSIO
 
75
#CPL_CHECK_CEXT
 
76
CPL_CHECK_LIBS
 
77
ESO_CHECK_EXTRA_LIBS
 
78
 
 
79
ESOREX_SET_PATHS
 
80
 
 
81
# Determine the shared library suffix on this platform
 
82
AC_LTDL_SHLIBEXT
 
83
 
 
84
AC_CONFIG_FILES(Makefile
 
85
                Makefile.purify
 
86
                src/er_prefix.h
 
87
                doxygen/Doxyfile
 
88
                src/Makefile
 
89
                src/tests/Makefile
 
90
                etc/Makefile
 
91
                etc/esorex.rc
 
92
                tests/Makefile)
 
93
AC_OUTPUT