~ubuntu-branches/debian/jessie/synthv1/jessie

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Jaromír Mikeš
  • Date: 2014-03-11 15:08:33 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20140311150833-hdd95xtc6ks4lwv5
Tags: 0.4.0-1
* Imported Upstream version 0.4.0
* Two patches removed - applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Process this file with autoconf to produce a configure script.
2
 
AC_INIT(synthv1, 0.3.6, rncbc@rncbc.org)
 
2
AC_INIT(synthv1, 0.4.0, rncbc@rncbc.org)
3
3
 
4
4
AC_CONFIG_SRCDIR(src/synthv1.cpp)
5
5
AC_CONFIG_HEADERS(src/config.h)
101
101
   ac_qt4="no"
102
102
fi
103
103
 
 
104
 
104
105
# Standard installation base dirs.
105
106
ac_with_paths="/usr /usr/local"
106
107
 
107
 
ac_qtdirs="qt"
108
 
 
109
 
if test "x$ac_qt4" = "xyes"; then
110
 
   ac_qtdirs="qt4 $ac_qtdirs"
111
 
fi
112
 
if test "x$ac_qt5" = "xyes"; then
113
 
   ac_qtdirs="qt5 $ac_qtdirs"
114
 
fi
115
 
 
116
 
# Some a-la-debian alternatives...
117
 
for X in /usr/lib /usr/share; do
118
 
  for Y in $ac_qtdirs; do
119
 
    if test -d $X/$Y/bin; then
120
 
      ac_with_paths="$ac_with_paths $X/$Y"
121
 
    fi
122
 
  done
123
 
done
124
 
 
125
108
# Set for alternate Qt installation dir.
126
109
AC_ARG_WITH(qt,
127
110
  AC_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]),
165
148
AC_LANG_C
166
149
AC_LANG_CPLUSPLUS
167
150
 
 
151
 
 
152
# Check for proper flags.
 
153
ac_arch=`uname -m`
 
154
 
 
155
# Check for some a-la-debian alternatives...
 
156
ac_qtdirs="qt"
 
157
 
 
158
if test "x$ac_qt4" = "xyes"; then
 
159
   ac_qtdirs="qt4 $ac_qtdirs"
 
160
fi
 
161
if test "x$ac_qt5" = "xyes"; then
 
162
   ac_qtdirs="qt5 $ac_qtdirs"
 
163
fi
 
164
 
 
165
ac_topdirs="/usr/share /usr/lib"
 
166
 
 
167
if test "x$ac_arch" = "xx86_64"; then
 
168
   CFLAGS="-fPIC $CFLAGS"
 
169
   CPPFLAGS="-fPIC $CPPFLAGS"
 
170
   ac_topdirs="$ac_topdirs /usr/lib64"
 
171
fi
 
172
 
 
173
for X in $ac_topdirs; do
 
174
  for Y in $ac_qtdirs; do
 
175
    if test -d $X/$Y/bin; then
 
176
      ac_with_paths="$X/$Y $ac_with_paths"
 
177
    fi
 
178
  done
 
179
done
 
180
 
168
181
# Prepend alternate dependencies paths.
169
182
ac_path=$PATH
170
183
for X in $ac_with_paths; do
186
199
    CPPFLAGS="-I$X/include $CPPFLAGS"
187
200
    ac_incpath="$X/include $ac_incpath"
188
201
  fi
 
202
  if test "x$ac_arch" = "xx86_64" -a -d $X/lib64; then
 
203
    LIBS="-L$X/lib64 $LIBS"
 
204
    ac_libs="-L$X/lib64 $ac_libs"
 
205
  fi
189
206
  if test -d $X/lib; then
190
207
    LIBS="-L$X/lib $LIBS"
191
208
    ac_libs="-L$X/lib $ac_libs"
193
210
done
194
211
 
195
212
 
196
 
# Check for proper flags.
197
 
ac_arch=`uname -m`
198
 
if test "x$ac_arch" = "xx86_64"; then
199
 
   CFLAGS="-fPIC $CFLAGS"
200
 
   CPPFLAGS="-fPIC $CPPFLAGS"
201
 
fi
202
 
 
203
213
# Check for proper Qt version.
204
214
AC_CACHE_CHECK([for Qt library version >= 4.4],
205
215
   ac_cv_qtversion, [