1
# Original Author was Kalle@kde.org
2
# I lifted it in some mater. (Stephan Kulow)
3
# I used much code from Janos Farkas
5
dnl Process this file with autoconf to produce a configure script.
7
AC_INIT(acinclude.m4) dnl a source file from your sub dir
9
dnl This is so we can use kde-common
10
AC_CONFIG_AUX_DIR(admin)
12
dnl CPPFLAGS="$CPPFLAGS -DDATADIR=\"$(datadir)\""
13
CPPFLAGS="-DDATADIR='\"$(datadir)\"' $CPPFLAGS"
18
dnl Automake doc recommends to do this only here. (Janos)
19
AM_INIT_AUTOMAKE(qgo,0.2.2)
23
AC_PREFIX_DEFAULT(/usr/local)
24
if test "x$prefix" = "xNONE"; then
25
prefix=$ac_default_prefix
26
ac_configure_args="$ac_configure_args --prefix $prefix"
29
dnl generate the config header
30
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
32
dnl Checks for programs.
35
CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
36
CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
37
dnl CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__
43
all_libraries="$all_libraries $USER_LDFLAGS"
44
all_includes="$all_includes $USER_INCLUDES"
45
AC_SUBST(all_includes)
46
AC_SUBST(all_libraries)
48
dnl for NLS support. Call them in this order!
49
dnl WITH_NLS is for the po files
55
dnl KDE_NEED_FLEX dnl __kdevelop__
56
dnl AC_PROG_YACC dnl __kdevelop__
58
dnl Perform program name transformation
62
dnl PACKAGE set before
64
KDE_CREATE_SUBDIRSLIST
66
dnl add here all your Makefiles. This are created by configure
67
AC_CONFIG_FILES([ Makefile ])
69
dnl AC_CONFIG_FILES([ po/Makefile ])
70
AC_CONFIG_FILES([ src/Makefile ])
71
AC_CONFIG_FILES([ src/pics/Makefile ])
72
AC_CONFIG_FILES([ src/sounds/Makefile ])
73
AC_CONFIG_FILES([ src/translations/Makefile ])
74
AC_CONFIG_FILES([ templates/Makefile ])