~ubuntu-branches/ubuntu/trusty/rawstudio/trusty

« back to all changes in this revision

Viewing changes to .pc/0001-Remove-libssl-requirement-from-configure.patch/configure.in

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2014-01-22 20:39:52 UTC
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: package-import@ubuntu.com-20140122203952-mv1xjgzv3e6mu403
* Team upload.
* [7e7ee48d] Drop debian/clean, do no delete config.{guess,sub}
* [588c0966] Bump Standards-Version to 3.9.5 (no further changes)
* [dbc7eda5] Bump debhelper compatibility to 9
* [8e1c4542] Use canonical URL's for VCS-* fields
* [d74facbf] Switch to dpkg-source 3.0 (quilt) format
* [3abcbf55] Build-depend against libgphoto2-dev instead of libgphoto2-2-dev
  (Closes: #736222)
* [48f43cea] deprecated-glib.patch: Remove call to deprecated g_thread_init()
  (Closes: #661409)
* [8b729acc] Add add-gmodule-reference.patch: Link against gmodule
* [f3e14d03] Build-depends against libtiff-dev instead of libtiff4-dev
  (Closes: #736044)
* [f7277dd4] Pass --libdir=/usr/lib to the configure

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
 
 
3
AC_INIT(configure.in)
 
4
AM_INIT_AUTOMAKE(rawstudio, 2.0)
 
5
AM_CONFIG_HEADER(config.h)
 
6
AM_MAINTAINER_MODE
 
7
AM_PROG_LIBTOOL
 
8
AC_CONFIG_MACRO_DIR([m4])
 
9
 
 
10
AC_ISC_POSIX
 
11
AC_PROG_CC
 
12
AM_PROG_CC_STDC
 
13
AC_PROG_CXX
 
14
AC_HEADER_STDC
 
15
 
 
16
AC_ARG_ENABLE(experimental, 
 
17
        AS_HELP_STRING(
 
18
                [--enable-experimental],
 
19
                [Enable experimental code (default: disabled)]),
 
20
        [EXPERIMENTAL=yes]
 
21
)
 
22
 
 
23
AC_DEFUN([AX_CHECK_COMPILER_FLAGS],
 
24
[AC_PREREQ(2.59) dnl for _AC_LANG_PREFIX
 
25
AC_MSG_CHECKING([whether _AC_LANG compiler accepts $1])
 
26
dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname:
 
27
AS_LITERAL_IF([$1],
 
28
  [AC_CACHE_VAL(AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1]), [
 
29
      ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
 
30
      _AC_LANG_PREFIX[]FLAGS="$1"
 
31
      AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
 
32
        AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes,
 
33
        AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no)
 
34
      _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])],
 
35
  [ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
 
36
   _AC_LANG_PREFIX[]FLAGS="$1"
 
37
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
 
38
     eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes,
 
39
     eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no)
 
40
   _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])
 
41
eval ax_check_compiler_flags=$AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])
 
42
AC_MSG_RESULT($ax_check_compiler_flags)
 
43
if test "x$ax_check_compiler_flags" = xyes; then
 
44
        m4_default([$2], :)
 
45
else
 
46
        m4_default([$3], :)
 
47
fi
 
48
])dnl AX_CHECK_COMPILER_FLAGS
 
49
 
 
50
if test "$EXPERIMENTAL" == "yes"; then
 
51
        AC_DEFINE([EXPERIMENTAL],[1],[Enable experimental code])
 
52
fi
 
53
 
 
54
dnl libjpeg
 
55
if test -z "$LIBJPEG"; then
 
56
  AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, jpeg_ok=yes, jpeg_ok=no)
 
57
  if test "$jpeg_ok" = yes; then
 
58
    AC_CHECK_HEADER(jpeglib.h, jpeg_ok=yes, jpeg_ok=no)
 
59
    if test "$jpeg_ok" = yes; then
 
60
      LIBJPEG='-ljpeg'
 
61
    else
 
62
      AC_MSG_ERROR([*** JPEG header files not found.])
 
63
    fi
 
64
  else
 
65
    AC_MSG_ERROR([*** Rawstudio requires libjpeg.])
 
66
  fi
 
67
fi
 
68
AC_SUBST(LIBJPEG)
 
69
 
 
70
dnl libtiff
 
71
if test -z "$LIBTIFF"; then
 
72
AC_CHECK_LIB(tiff, TIFFOpen, tiff_ok=yes, tiff_ok=no)
 
73
  if test "$tiff_ok" = yes; then
 
74
    AC_CHECK_HEADER(tiffio.h, tiff_ok=yes, tiff_ok=no)
 
75
    if test "$tiff_ok" = yes; then
 
76
      LIBTIFF='-ltiff'
 
77
    else
 
78
      AC_MSG_ERROR([*** libtiff header files not found.])
 
79
    fi
 
80
  else
 
81
    AC_MSG_ERROR([*** Rawstudio requires libtiff.])
 
82
  fi
 
83
fi
 
84
AC_SUBST(LIBTIFF)
 
85
 
 
86
pkg_modules="gtk+-2.0 >= 2.8.0 libxml-2.0 >= 2.4 gconf-2.0 >= 2.0 lcms dbus-1 exiv2 fftw3f lensfun libcurl flickcurl sqlite3 libssl libgphoto2 x11"
 
87
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
 
88
AC_SUBST(PACKAGE_CFLAGS)
 
89
AC_SUBST(PACKAGE_LIBS)
 
90
 
 
91
GETTEXT_PACKAGE=rawstudio
 
92
AC_SUBST(GETTEXT_PACKAGE)
 
93
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
 
94
 
 
95
dnl Add the languages which your application supports here.
 
96
ALL_LINGUAS="cs da de en fr it nb pl ru fi es sv nl pt_BR ca hu ja"
 
97
AM_GLIB_GNU_GETTEXT
 
98
AC_CHECK_FUNCS(memmem)
 
99
 
 
100
AX_CHECK_COMPILER_FLAGS("-msse2", [_CAN_COMPILE_SSE2=yes], [_CAN_COMPILE_SSE2=no]) 
 
101
AX_CHECK_COMPILER_FLAGS("-msse4.1", [_CAN_COMPILE_SSE4_1=yes],[_CAN_COMPILE_SSE4_1=no]) 
 
102
AX_CHECK_COMPILER_FLAGS("-mavx", [_CAN_COMPILE_AVX=yes],[_CAN_COMPILE_AVX=no]) 
 
103
 
 
104
AM_CONDITIONAL(CAN_COMPILE_SSE4_1,  test "$_CAN_COMPILE_SSE4_1" = yes)
 
105
AM_CONDITIONAL(CAN_COMPILE_SSE2, test "$_CAN_COMPILE_SSE2" = yes)
 
106
AM_CONDITIONAL(CAN_COMPILE_AVX, test "$_CAN_COMPILE_AVX" = yes)
 
107
 
 
108
[
 
109
branchname()
 
110
{
 
111
        awk '
 
112
/^Repository Root:/ {
 
113
        root=$3;
 
114
}
 
115
 
 
116
/^URL:/ {
 
117
        url=$2;
 
118
}
 
119
 
 
120
END{
 
121
        sub(root, "", url);
 
122
        if (index(url, "/branches/") == 1) {
 
123
                branch = substr(url, 11);
 
124
                printf(" (branch %s)", branch);
 
125
        } else if (index(url, "/tags/") == 1) {
 
126
                tag = substr(url, 7);
 
127
                printf(" (tag %s)", tag);
 
128
        } else {
 
129
                printf(" (trunk)");
 
130
        }
 
131
}
 
132
'
 
133
}
 
134
 
 
135
if test -f .version  ; then
 
136
  RAWSTUDIO_VERSION=$(cat .version)
 
137
else
 
138
  RAWSTUDIO_VERSION="${VERSION}"
 
139
fi
 
140
if test -d .svn && svn --version>/dev/null 2>&1 ; then
 
141
  RAWSTUDIO_SVNREV=$(LC_ALL=C svn info | awk '/^Revision:/ {printf("-svn%s",$2); }')
 
142
  RAWSTUDIO_BRANCH=$(LC_ALL=C svn info |branchname)
 
143
elif test -f .svninfo ; then
 
144
  RAWSTUDIO_SVNREV=$(awk '/^Revision:/ {printf("-snapshot%s",$2); }' .svninfo)
 
145
  RAWSTUDIO_BRANCH=$(cat .svninfo|branchname)
 
146
else
 
147
  RAWSTUDIO_SVNREV=""
 
148
  RAWSTUDIO_BRANCH=""
 
149
fi
 
150
]
 
151
RAWSTUDIO_VERSION="${RAWSTUDIO_VERSION}${RAWSTUDIO_SVNREV}${RAWSTUDIO_BRANCH}"
 
152
    
 
153
AC_DEFINE_UNQUOTED([RAWSTUDIO_VERSION], ["$RAWSTUDIO_VERSION"], ["Public revision"])
 
154
 
 
155
if test -f .svninfo; then
 
156
  SVNINFO=".svninfo"
 
157
else
 
158
  SVNINFO=""
 
159
fi
 
160
AC_SUBST([SVNINFO])
 
161
 
 
162
AC_OUTPUT([
 
163
Makefile
 
164
librawstudio/Makefile
 
165
librawstudio/rawstudio-2.0.pc
 
166
plugins/Makefile
 
167
plugins/cache/Makefile
 
168
plugins/colorspace-adobergb/Makefile
 
169
plugins/colorspace-prophoto/Makefile
 
170
plugins/colorspace-srgb/Makefile
 
171
plugins/colorspace-transform/Makefile
 
172
plugins/crop/Makefile
 
173
plugins/dcp/Makefile
 
174
plugins/demosaic/Makefile
 
175
plugins/denoise/Makefile
 
176
plugins/exposure-mask/Makefile
 
177
plugins/fuji-rotate/Makefile
 
178
plugins/input-file/Makefile
 
179
plugins/input-image16/Makefile
 
180
plugins/lensfun/Makefile
 
181
plugins/load-dcraw/Makefile
 
182
plugins/load-gdk/Makefile
 
183
plugins/load-rawspeed/Makefile
 
184
plugins/meta-ciff/Makefile
 
185
plugins/meta-exiv2/Makefile
 
186
plugins/meta-mrw/Makefile
 
187
plugins/meta-raf/Makefile
 
188
plugins/meta-tiff/Makefile
 
189
plugins/meta-x3f/Makefile
 
190
plugins/output-jpegfile/Makefile
 
191
plugins/output-pngfile/Makefile
 
192
plugins/output-picasa/Makefile
 
193
plugins/output-facebook/Makefile
 
194
plugins/output-flickr/Makefile
 
195
plugins/output-tifffile/Makefile
 
196
plugins/resample/Makefile
 
197
plugins/rotate/Makefile
 
198
src/Makefile
 
199
po/Makefile.in
 
200
pixmaps/Makefile
 
201
profiles/Makefile
 
202
])
 
203