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
|
# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas
dnl Process this file with autoconf to produce a configure script.
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)
AC_CANONICAL_SYSTEM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(quiteinsane,0.10)
dnl KDE_SET_PREFIX
AC_PREFIX_DEFAULT(/usr/local)
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
ac_configure_args="$ac_configure_args --prefix $prefix"
fi
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_CHECK_COMPILERS
dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
dnl CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL
all_libraries="$all_libraries $USER_LDFLAGS"
all_includes="$all_includes $USER_INCLUDES"
AC_SUBST(all_includes)
AC_SUBST(all_libraries)
dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
dnl AM_KDE_WITH_NLS
KDE_USE_QT(2)
dnl KDE_NEED_FLEX dnl __kdevelop__
dnl AC_PROG_YACC dnl __kdevelop__
dnl Perform program name transformation
dnl AC_ARG_PROGRAM
dnl PACKAGE set before
KDE_CREATE_SUBDIRSLIST
dnl Check whether libtiff is installed
AC_CHECK_LIB(tiff, TIFFOpen)
AC_DEFINE_UNQUOTED(INSTALL_DIR,"$prefix")
AC_ARG_ENABLE(qt-styles,
[ --disable-qt-styles Disable style chooser in options dialog],
[AC_DEFINE(QIS_NO_STYLES)])
AC_ARG_ENABLE(kde-app,
[ --enable-kde-app Link with KDE libs to make use of KDE styles [default=no]],
[
AC_PATH_KDE
AC_DEFINE(KDEAPP)
CFLAGS="$CFLAGS -L$ac_kde_libraries"
LIBS="$LIBS -lkdecore -lkdeui -lkdeprint"])
AM_PATH_SANE(1.0.3, HAVE_SANE=yes,
[
echo "**********************************************************************"
echo "ERROR: Couldn't find SANE libraries (sane-backends). Possible reasons:"
echo " - sane-backends isn't installed (install sane-backends before"
echo " sane-frontends"
echo " - the SANE header files aren't installed (if you installed"
echo " SANE as RPM make sure you also included the sane-devel RPM)"
echo " - the SANE libraries can't be found because /usr/local/lib/ isn't"
echo " searched by the dynamic linker (see INSTALL for details)"
echo "**********************************************************************"
echo ""
AC_MSG_ERROR()
] )
LIBS="${LIBS} ${SANE_LIBS}"
AC_SUBST(INCLUDES)
dnl add here all your Makefiles. This are created by configure
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ quiteinsane/Makefile ])
AC_CONFIG_FILES([ quiteinsane/docs/Makefile ])
AC_CONFIG_FILES([ quiteinsane/docs/en/Makefile ])
AC_CONFIG_FILES([ quiteinsane/locale/Makefile ])
AC_CONFIG_FILES([ quiteinsane/3rdparty/md5/Makefile ])
AC_CONFIG_FILES([ quiteinsane/3rdparty/Makefile ])
AC_CONFIG_FILES([ quiteinsane/3rdparty/qtbackport/Makefile ])
AC_CONFIG_FILES([ quiteinsane/pics/Makefile ])
AC_CONFIG_FILES([ quiteinsane/imagefilters/Makefile ])
AC_CONFIG_FILES([ quiteinsane/locale/backend/Makefile ])
AC_CONFIG_FILES([ quiteinsane/3rdparty/kde/Makefile ])
AC_CONFIG_FILES([ admin/Makefile ])
AC_OUTPUT
dnl ready for make
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "+ QuiteInsane is now configured for compilation. +"
echo "+ +"
echo "+ Please run: make +"
echo "+ make install (as root) +"
echo "+ +"
echo "+ Please read the SANE documentation and QuiteInsanes +"
echo "+ documentation. Additional information can be found in +"
echo "+ the text files README, PROBLEMS, TODO, INSTALL and +"
echo "+ COPYING. After installation, you can find QuiteInsanes +"
echo "+ HTML documentation under /usr/local/doc/quiteinsane/en. +"
echo "+ (if you didn't change the installation path) +"
echo "+ You can view it with any HTML browser. +"
echo "+ +"
echo "+ Please report bugs to: crapsite@gmx.net +"
echo "+ +"
echo "+ Have fun... +"
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|