diff options
author | Keith Packard <keithp@keithp.com> | 2009-06-04 10:41:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-06-04 10:41:34 -0700 |
commit | 210dbaa23cdacf3a6f2d6e23493e96ee2ac9bca7 (patch) | |
tree | 42dbabd0caa7186c898da746014341d3ff31a201 /configure.ac | |
parent | 8cce307bb3156584ba17ae5a787f645dfee5fb94 (diff) |
Use autotools, move altos to src subdir
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000..0419489a --- /dev/null +++ b/configure.ac @@ -0,0 +1,58 @@ +dnl +dnl Copyright © 2008 Keith Packard <keithp@keithp.com> +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, but +dnl WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License along +dnl with this program; if not, write to the Free Software Foundation, Inc., +dnl 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +dnl +dnl Process this file with autoconf to create configure. + +AC_INIT(aoview) + +AM_INIT_AUTOMAKE(aoview, 0.1) +AM_MAINTAINER_MODE + +dnl ========================================================================== + +AM_CONFIG_HEADER(config.h) + +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_RANLIB +PKG_PROG_PKG_CONFIG + +CFLAGS="-g" +WARN_CFLAGS="" +if test "x$GCC" = "xyes"; then + WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ + -Wmissing-prototypes -Wmissing-declarations \ + -Wnested-externs -fno-strict-aliasing" + AC_DEFINE_UNQUOTED(HAVE_WARNING_CPP_DIRECTIVE,1, + [Can use #warning in C files]) +fi +AC_SUBST(WARN_CFLAGS) + +dnl ========================================================================== + +AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) + +dnl ========================================================================== + + +PKG_CHECK_MODULES([AOVIEW], [gtk+-2.0 libglade-2.0 gconf-2.0]) + +AC_OUTPUT([ +Makefile +aoview/Makefile +]) |