1 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(Qsampler, 0.2.2.39, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.2.2.40, rncbc@rncbc.org, qsampler) |
3 |
|
|
4 |
AC_CONFIG_SRCDIR(src/qsampler.cpp) |
AC_CONFIG_SRCDIR(src/qsampler.cpp) |
5 |
AC_CONFIG_HEADERS(src/config.h) |
AC_CONFIG_HEADERS(src/config.h) |
87 |
if test -d $X/bin; then |
if test -d $X/bin; then |
88 |
ac_path="$X/bin:$ac_path" |
ac_path="$X/bin:$ac_path" |
89 |
fi |
fi |
90 |
if test -x $X/qmake; then |
# if test -x $X/qmake; then |
91 |
ac_path="$X:$ac_path" |
# ac_path="$X:$ac_path" |
92 |
fi |
# fi |
93 |
if test -d $X/include; then |
if test -d $X/include; then |
94 |
for Y in qt qt4; do |
for Y in qt qt4; do |
95 |
if test -d $X/include/$Y; then |
if test -d $X/include/$Y; then |
113 |
done |
done |
114 |
|
|
115 |
# Check for proper Qt version. |
# Check for proper Qt version. |
116 |
AC_CACHE_CHECK([for Qt library version >= 4.2], |
AC_CACHE_CHECK([for Qt library version >= 4.4], |
117 |
ac_cv_qtversion, [ |
ac_cv_qtversion, [ |
118 |
AC_TRY_LINK([#include "QtCore/qglobal.h"], [ |
AC_TRY_LINK([#include "QtCore/qglobal.h"], [ |
119 |
#if QT_VERSION < 0x040200 |
#if QT_VERSION < 0x040400 |
120 |
#error Qt library 4.2 or greater required. |
#error Qt library 4.4 or greater required. |
121 |
#endif |
#endif |
122 |
], ac_cv_qtversion="yes", [ |
], ac_cv_qtversion="yes", [ |
123 |
echo "no; Qt 4.2 or greater is required" |
echo "no; Qt 4.4 or greater is required" |
124 |
exit |
exit |
125 |
]) |
]) |
126 |
]) |
]) |