gtkslash 0.5.4
This commit is contained in:
parent
c32ead1037
commit
160ee6ac73
20 changed files with 4337 additions and 1283 deletions
81
configure.in
Normal file
81
configure.in
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
dnl ---------------------------------------------------------------------------
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
dnl $Id$
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_INIT(gtkslash.c)
|
||||
GTKSLASH_VERSION=0.5.4
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl for automake:
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AUTOMAKE_OPTIONS=no-dependencies
|
||||
VERSION=$GTKSLASH_VERSION
|
||||
PACKAGE=gtkslash
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Initialize automake now
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
||||
AC_SUBST(GTKSLASH_VERSION)
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl checks for needed compilers
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CFLAGS=""
|
||||
dnl if test x${CFLAGS+set} = xset ; then
|
||||
dnl :
|
||||
dnl else
|
||||
dnl CFLAGS="-O2 -g"
|
||||
dnl fi
|
||||
|
||||
AC_PROG_CC
|
||||
dnl AC_PROG_CXX
|
||||
dnl AC_PROG_RANLIB
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl clean compiles
|
||||
dnl ---------------------------------------------------------------------------
|
||||
compiler_warnings=yes
|
||||
AC_ARG_ENABLE(
|
||||
warnings,
|
||||
[ --disable-warnings turn OFF gcc compiler warnings (not recommended)],
|
||||
[if test $enableval = no; then
|
||||
compiler_warnings=no
|
||||
fi]
|
||||
)
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl now some other stuff
|
||||
dnl AC_CANONICAL_HOST ... needs config.guess
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AM_SANITY_CHECK
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl check for GTK
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AM_PATH_GTK(1.1.2,
|
||||
[LIBS="$LIBS $GTK_LIBS"
|
||||
CFLAGS="$CFLAGS $GTK_CFLAGS"],
|
||||
AC_MSG_ERROR(Cannot find GTK+: Is gtk-config in executable path?))
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl enable GUI/console type checking
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl checks for correctly defined types
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_SYS_WAIT
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl checks for header files & functions
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_CHECK_HEADERS(unistd.h)
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Makefiles to create:
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_OUTPUT(Makefile)
|
||||
Reference in a new issue