source: indexers/trunk/packages/unac/configure.ac@ 15562

Last change on this file since 15562 was 15562, checked in by davidb, 13 years ago

Addition of COMPAT32BITFLAGS to help compilation on a 64-bit machine

  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1#
2# Copyright (C) 2000, 2001, 2002 Loic Dachary <loic@senga.org>
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17#
18AC_INIT(config.h.in)
19VERSION=`cat .version`
20AC_SUBST(VERSION)
21AC_PREREQ(2.13)
22
23
24dnl get $target_cpu, $target_vendor, and $target_os
25dnl (as well as host_*)
26AC_CANONICAL_SYSTEM
27
28AC_CONFIG_HEADER(config.h)
29
30AC_PROG_MAKE_SET
31
32AC_MSG_CHECKING(to see if architecture is 64-bit)
33arch_64bit=no
34case "$host_cpu" in
35x86_64) arch_64bit=yes ;;
36esac
37
38if test "$arch_64bit" = yes; then
39 AC_MSG_RESULT(yes)
40 if test -z "$COMPAT32BITFLAGS" ; then
41 COMPAT32BITFLAGS="-m32"
42 fi
43else
44 AC_MSG_RESULT(no)
45 if test -z "$COMPAT32BITFLAGS" ; then
46 COMPAT32BITFLAGS=
47 fi
48fi
49AC_SUBST(COMPAT32BITFLAGS)
50
51dnl
52dnl Unicode version used by unac, as published at http://www.unicode.org/Public/
53dnl
54UNICODE_VERSION=3.2.0
55AC_SUBST(UNICODE_VERSION)
56
57AC_PROG_CC
58AC_AIX
59AC_COMPILE_WARNINGS
60
61AC_PROG_LIBTOOL
62
63AC_PATH_PROG(PERL, perl, /usr/bin/perl)
64AC_PATH_PROG(SH, sh, /bin/sh)
65
66AM_MAINTAINER_MODE
67
68AM_ICONV
69
70#AC_CHECK_FUNCS(iconv_open,,AC_MSG_ERROR([
71#iconv_open not found try to install replacement from
72#http://www.gnu.org/software/libiconv/
73#ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz]))
74
75AC_CHECK_FUNCS(vsnprintf)
76
77AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.