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 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343
|
dnl =======================================================
dnl FILE: configure.in.in
dnl =======================================================
AC_INIT(acinclude.m4) dnl a source file from your sub dir
dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
unset CDPATH
dnl Checking host/target/build systems, for make, install etc.
AC_CANONICAL_SYSTEM
dnl Perform program name transformation
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(qt4-qtruby-1.4.6, "3.9.02") dnl searches for some needed programs
dnl KDE_SET_PREFIX
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
KDE_CREATE_LIBS_ALIASES
dnl Checks for programs.
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL
AC_PATH_QT()
AC_SUBST(all_includes)
AC_SUBST(all_libraries)
dnl =======================================================
dnl FILE: ./qtruby/rubylib/qtruby/configure.in.in
dnl =======================================================
AC_CHECK_PROG(RUBY, ruby, ruby)
if test -z "$RUBY"; then
DO_NOT_COMPILE="$DO_NOT_COMPILE qtruby"
else
AC_MSG_CHECKING(for ruby dirs)
RUBY_ARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"archdir"@:>@)'`
RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitearchdir"@:>@)'`
RUBY_SITEDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"sitelibdir"@:>@)'`
RUBY_LIBDIR=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"libdir"@:>@)'`
RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'`
AC_MSG_RESULT([archdir $RUBY_ARCHDIR, sitearchdir $RUBY_SITEARCHDIR, sitedir $RUBY_SITEDIR, libdir $RUBY_LIBDIR, librubyarg $RUBY_LIBRUBYARG])
AC_SUBST(RUBY_ARCHDIR)
AC_SUBST(RUBY_SITEARCHDIR)
AC_SUBST(RUBY_SITEDIR)
AC_SUBST(RUBY_LIBDIR)
AC_SUBST(RUBY_LIBRUBYARG)
fi
dnl =======================================================
dnl FILE: ./smoke/configure.in.in
dnl =======================================================
AC_ARG_WITH(
smoke,
[ --with-smoke@<:@=qt|kde@:>@ Smoke: build Smoke for qt+kde or qt only @<:@default:qt@:>@],
[ kde_build_libsmoke="$withval" ],
[ kde_build_libsmoke="qt" ]
)
AC_SUBST(kde_build_libsmoke)
dnl =======================================================
dnl FILE: ./smoke/qt/configure.in.in
dnl =======================================================
AC_HAVE_GL
KDE_HAVE_GL=yes;
if test "X$GLLIB" = "X"; then
KDE_HAVE_GL=no
fi
AC_SUBST(KDE_HAVE_GL)
AC_ARG_WITH(
threshold,
[ --with-threshold@<:@=0..15@:>@ Smoke: Qt tests threshold Default:10 Lower=more tests],
[ qt_test_threshold="$withval" ],
[ qt_test_threshold=10 ]
)
AC_SUBST(qt_test_threshold)
if test "X$kde_build_libsmoke" = "Xqt" -o "X$kde_build_libsmoke" = "Xqt kde"; then
AC_CONFIG_FILES([ smoke/qt/qtguess.pl ], [
cd smoke/qt
perl qtguess.pl
cd ../..
])
AC_CONFIG_FILES([ smoke/qt/generate.pl ], [
])
fi
dnl -------
dnl Test for libqscintilla (QScintilla support)
dnl -------
AC_ARG_ENABLE(
qscintilla,
[ --enable-qscintilla@<:@=yes|no@:>@ Smoke: build Smoke with QScintilla extention for qt @<:@default:no@:>@],
[ qtextscintilla="$enableval" ],
[ qtextscintilla="no" ]
)
AC_SUBST(qtextscintilla)
AC_DEFUN([AC_FIND_QSCINTILLA],
[
AC_MSG_CHECKING([for libqscintilla])
AC_CACHE_VAL(ac_cv_lib_qscintilla,
[
kde_ldflags_save="$LDFLAGS"
kde_libs_save="$LIBS"
kde_cxxflags_save="$CXXFLAGS"
LIBS="-lqscintilla $LIBQT $LIBS"
CXXFLAGS="$CXXFLAGS $all_includes"
LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS"
AC_TRY_LINK([
#include <qextscintillabase.h>
],
[
QextScintillaBase s;
],
eval "ac_cv_lib_qscintilla='-lqscintilla'",
eval "ac_cv_lib_qscintilla=no")
LDFLAGS=$kde_ldflags_save
LIBS=$kde_libs_save
CXXFLAGS=$kde_cxxflags_save
])
if test ! "$ac_cv_lib_qscintilla" = no; then
AC_DEFINE_UNQUOTED(HAVE_LIBQSCINTILLA, 1, [Define if you have libqscintilla])
LIBQSCINTILLA="$ac_cv_lib_qscintilla"
AC_MSG_RESULT($ac_cv_lib_qscintilla)
else
AC_MSG_ERROR(not found.
Check your installation and look into config.log)
LIBQSCINTILLA=""
fi
AC_SUBST(LIBQSCINTILLA)
])
if test "X$qtextscintilla" = "Xyes" ; then
AC_FIND_QSCINTILLA
fi
dnl -------
dnl Test for libQtDBus (D-Bus support)
dnl -------
AC_ARG_ENABLE(
qtdbus,
[ --enable-qtdbus@<:@=yes|no@:>@ Smoke: build Smoke with QtDbus extention for qt @<:@default:no@:>@],
[ qtdbus="$enableval" ],
[ qtdbus="no" ]
)
AC_SUBST(qtdbus)
AC_DEFUN([AC_FIND_QTDBUS],
[
AC_MSG_CHECKING([for libQtDBus])
AC_CACHE_VAL(ac_cv_lib_qtdbus,
[
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
kde_ldflags_save="$LDFLAGS"
kde_libs_save="$LIBS"
kde_cxxflags_save="$CXXFLAGS"
LIBS="-ldbus-1 -lQtDBus -ldbus-glib-1 $LIB_QTCORE $LIB_QTXML $LIBS"
CXXFLAGS="$CXXFLAGS $all_includes -DDBUS_COMPILATION"
LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS"
AC_TRY_LINK([
#include <QtDBus/qdbusconnection.h>
],
[
QDBusConnection b = QDBus::sessionBus();
],
eval "ac_cv_lib_qtdbus='-ldbus-1 -lQtDBus -ldbus-glib-1'",
eval "ac_cv_lib_qtdbus=no")
LDFLAGS=$kde_ldflags_save
LIBS=$kde_libs_save
CXXFLAGS=$kde_cxxflags_save
AC_LANG_RESTORE
])
if test ! "$ac_cv_lib_qtdbus" = no; then
AC_DEFINE_UNQUOTED(HAVE_LIBQTDBUS, 1, [Define if you have libdbus-qt4-1])
LIBQTDBUS="$ac_cv_lib_qtdbus"
AC_MSG_RESULT($ac_cv_lib_qtdbus)
else
AC_MSG_ERROR(not found.
Check your installation and look into config.log)
LIBQTDBUS=""
fi
AC_SUBST(LIBQTDBUS)
])
if test "X$qtdbus" = "Xyes" ; then
AC_FIND_QTDBUS
fi
dnl -------
dnl Test for libqwt (Scientific Plotting library)
dnl -------
AC_ARG_ENABLE(
qwt,
[ --enable-qwt@<:@=yes|no@:>@ Smoke: build Smoke with Qwt extention for qt @<:@default:no@:>@],
[ qwt="$enableval" ],
[ qwt="no" ]
)
AC_SUBST(qwt)
AC_DEFUN([AC_FIND_QWT],
[
AC_MSG_CHECKING([for libqwt])
AC_CACHE_VAL(ac_cv_lib_qwt,
[
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
kde_ldflags_save="$LDFLAGS"
kde_libs_save="$LIBS"
kde_cxxflags_save="$CXXFLAGS"
LIBS="-lqwt $LIB_QTCORE $LIB_QTXML $LIBS"
CXXFLAGS="$CXXFLAGS $all_includes"
LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS"
AC_TRY_LINK([
#include <qwt_plot.h>
],
[
QwtPlot p;
],
eval "ac_cv_lib_qwt='-lqwt'",
eval "ac_cv_lib_qwt=no")
LDFLAGS=$kde_ldflags_save
LIBS=$kde_libs_save
CXXFLAGS=$kde_cxxflags_save
AC_LANG_RESTORE
])
if test ! "$ac_cv_lib_qwt" = no; then
AC_DEFINE_UNQUOTED(HAVE_LIBQWT, 1, [Define if you have libqwt])
LIBQWT="$ac_cv_lib_qwt"
AC_MSG_RESULT($ac_cv_lib_qwt)
else
AC_MSG_ERROR(not found.
Check your installation and look into config.log)
LIBQWT=""
fi
AC_SUBST(LIBQWT)
])
if test "X$qwt" = "Xyes" ; then
AC_FIND_QWT
fi
KDE_CREATE_SUBDIRSLIST
AM_CONDITIONAL(smoke_SUBDIR_included, test "x$smoke_SUBDIR_included" = xyes)
AM_CONDITIONAL(qtruby_SUBDIR_included, test "x$qtruby_SUBDIR_included" = xyes)
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ qtruby/Makefile ])
AC_CONFIG_FILES([ qtruby/bin/Makefile ])
AC_CONFIG_FILES([ qtruby/rubylib/Makefile ])
AC_CONFIG_FILES([ qtruby/rubylib/designer/Makefile ])
AC_CONFIG_FILES([ qtruby/rubylib/designer/rbrcc/Makefile ])
AC_CONFIG_FILES([ qtruby/rubylib/designer/rbuic/Makefile ])
AC_CONFIG_FILES([ qtruby/rubylib/qtruby/Makefile ])
AC_CONFIG_FILES([ qtruby/rubylib/qtruby/lib/Makefile ])
AC_CONFIG_FILES([ qtruby/rubylib/qtruby/lib/Qt/Makefile ])
AC_CONFIG_FILES([ smoke/Makefile ])
AC_CONFIG_FILES([ smoke/qt/Makefile ])
AC_OUTPUT
dnl put here things which have to be done as very last part of configure
echo ""
echo "Good - your configure finished. Start make now"
echo ""
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
# And if so, warn when they don't match
if test "$kde_libs_prefix" != "$given_prefix"; then
# And if kde doesn't know about the prefix yet
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
if test $? -ne 0; then
echo ""
echo "Warning: you chose to install this package in $given_prefix,"
echo "but KDE was found in $kde_libs_prefix."
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
echo "Then restart KDE."
echo ""
fi
fi
fi
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
echo ""
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
echo "was not included. Therefore, GCC symbol visibility support remains disabled."
echo ""
echo "For better performance, consider including the Qt visibility supporting patch"
echo "located at:"
echo ""
echo "http://bugs.kde.org/show_bug.cgi?id=109386"
echo ""
echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
echo "everything will continue to work just fine without it."
echo ""
fi
if test "$all_tests" = "bad"; then
if test ! "$cache_file" = "/dev/null"; then
echo ""
echo "Please remove the file $cache_file after changing your setup"
echo "so that configure will find the changes next time."
echo ""
fi
else
echo ""
echo "Good - your configure finished. Start make now"
echo ""
fi
|