File: configure.ac

package info (click to toggle)
aeskulap 0.2.2b1+git20161206-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,840 kB
  • ctags: 1,302
  • sloc: cpp: 8,894; sh: 5,551; ansic: 685; makefile: 317; xml: 25
file content (146 lines) | stat: -rw-r--r-- 2,791 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
AC_PREREQ([2.69])

m4_define([AESKULAP_VERSION], 0.2.2-beta1)

AC_INIT(aeskulap, AESKULAP_VERSION)

AC_CONFIG_SRCDIR([README])

AC_CANONICAL_TARGET

AM_CONFIG_HEADER(config.h)

AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE

AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")

case "$target" in
    *cygwin* | *mingw32*)
	MINGW32="yes"
	;;
    *)
	MINGW32="no"
	;;
esac

dnl
dnl Require programs
dnl
IT_PROG_INTLTOOL
LT_INIT
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
if test x"$MINGW32" = xno ; then
AM_BINRELOC
else
GMSGFMT=msgfmt
AC_SUBST(GMSGFMT)
fi

AM_GCONF_SOURCE_2

dnl
dnl gettext package
dnl
GETTEXT_PACKAGE=aeskulap
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Translation domain used])

ALL_LINGUAS="`cat "$srcdir/po/LINGUAS" | grep -v '^#'`"
AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])

AM_GLIB_GNU_GETTEXT

dnl
dnl Required headers
dnl
AC_HEADER_STDC

dnl
dnl Checks for typedefs, structures, and compiler characteristics.
dnl
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_HEADER_TIME

AC_CHECK_LIB(jpeg,jpeg_read_header)
AC_CHECK_LIB(tiff,TIFFClose)
AC_CHECK_LIB(png,png_create_read_struct)

PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.6.0)
AC_SUBST(GTKMM_CFLAGS)
AC_SUBST(GTKMM_LIBS)

PKG_CHECK_MODULES(GLADEMM, libglademm-2.4 >= 2.6.0)
AC_SUBST(GLADEMM_CFLAGS)
AC_SUBST(GLADEMM_LIBS)

PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
AC_SUBST(GTHREAD_CFLAGS)
AC_SUBST(GTHREAD_LIBS)

if test x"$MINGW32" = xno ; then

PKG_CHECK_MODULES(GCONFMM, gconfmm-2.6 >= 2.10.0)
AC_SUBST(GCONFMM_CFLAGS)
AC_SUBST(GCONFMM_LIBS)

AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
if test x"$GCONFTOOL" = xno ; then
	AC_MSG_ERROR([gconftool2 executable not found in your path - should be 
installed with GConf])
fi

fi


dnl use system dcmtk
dnl AC_CHECK_LIB(dcmimage)
AC_CHECK_HEADER(dcmtk/config/osconfig.h)

AC_SUBST(DCMTK_CFLAGS)
AC_SUBST(DCMTK_LIBS)

DCMTK_CFLAGS="-DHAVE_CONFIG_H -I\$(prefix)/include"
DCMTK_LIBS="-L\$(prefix)/lib -ldcmjpeg -lijg8 -lijg12 -lijg16 -ldcmimage -ldcmimgle -ldcmnet -ldcmdata -loflog -lofstd -lwrap"

dnl set PREFIX
if test "x${prefix}" = "xNONE"; then
    packageprefix=${ac_default_prefix}
else
    packageprefix=${prefix}
fi

if test x"$MINGW32" = xno ; then
LDFLAGS_AESKULAP_LIBS="-avoid-version"
else
LDFLAGS_MINGW32="-mwindows"
LDFLAGS_AESKULAP_LIBS="-avoid-version -no-undefined"
fi

AC_SUBST(LDFLAGS_MINGW32)
AC_SUBST(LDFLAGS_AESKULAP_LIBS)

AM_CONDITIONAL(BUILD_NOT_MINGW32, test x$MINGW32 = xno)

AC_CONFIG_FILES([
po/Makefile.in
Makefile
configuration/Makefile
imagepool/Makefile
src/Makefile
widgets/Makefile
pixmaps/Makefile
packaging/Makefile
packaging/autopackage/Makefile
packaging/autopackage/default.apspec
packaging/rpm/Makefile
packaging/rpm/aeskulap.spec
packaging/win32/Makefile
packaging/win32/aeskulap.iss
])
AC_OUTPUT