1 dnl Configuration for the GNU libasprintf library
2 dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
4 dnl This program is free software; you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation; either version 2, or (at your option)
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program; if not, write to the Free Software
16 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 dnl Process this file with autoconf to produce a configure script.
22 AC_CONFIG_SRCDIR(vasprintf.c)
23 AC_CONFIG_AUX_DIR(../../build-aux)
24 AM_INIT_AUTOMAKE(libasprintf, 1.0)
25 AM_CONFIG_HEADER(config.h)
27 dnl Checks for programs.
32 dnl Check for host type.
35 dnl Checks for compiler output filename suffixes.
39 dnl Check for build configuration.
43 dnl Checks for libraries.
45 dnl Checks for header files.
47 dnl Checks for typedefs, structures, and compiler characteristics.
56 AC_CHECK_TYPE([ptrdiff_t], ,
57 [AC_DEFINE([ptrdiff_t], [long],
58 [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
63 dnl Checks for library functions.
66 dnl Define an additional variable used in the Makefile substitution.
67 AC_EGREP_CPP([Need own alloca], [
68 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
76 AC_CHECK_FUNCS([snprintf vasprintf wcslen])
77 AC_CHECK_DECLS([_snprintf])
80 dnl Check for tools needed for formatting the documentation.
81 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
82 AC_PATH_PROG(DVIPS, dvips, $ac_aux_dir_abs/missing dvips)
83 AC_PATH_PROG(TEXI2PDF, texi2pdf, $ac_aux_dir_abs/missing texi2pdf)
84 AC_PATH_PROG(PERL, perl, $ac_aux_dir_abs/missing perl)
86 AC_CONFIG_FILES([Makefile],