| 1 |
dnl autoconf configuration for gperf/tests |
| 2 |
|
| 3 |
dnl Copyright (C) 1998-2024 Free Software Foundation, Inc. |
| 4 |
dnl Written by Douglas C. Schmidt <[email protected]> |
| 5 |
dnl and Bruno Haible <[email protected]>. |
| 6 |
dnl |
| 7 |
dnl This file is part of GNU GPERF. |
| 8 |
dnl |
| 9 |
dnl This program is free software: you can redistribute it and/or modify |
| 10 |
dnl it under the terms of the GNU General Public License as published by |
| 11 |
dnl the Free Software Foundation; either version 3 of the License, or |
| 12 |
dnl (at your option) any later version. |
| 13 |
dnl |
| 14 |
dnl This program is distributed in the hope that it will be useful, |
| 15 |
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
dnl GNU General Public License for more details. |
| 18 |
dnl |
| 19 |
dnl You should have received a copy of the GNU General Public License |
| 20 |
dnl along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 21 |
|
| 22 |
AC_PREREQ([2.64]) |
| 23 |
AC_INIT |
| 24 |
AC_CONFIG_SRCDIR([c-parse.gperf]) |
| 25 |
AC_CONFIG_AUX_DIR([../build-aux]) |
| 26 |
AC_PROG_MAKE_SET |
| 27 |
dnl |
| 28 |
dnl checks for programs |
| 29 |
dnl |
| 30 |
AC_PROG_CC |
| 31 |
dnl sets variable CC |
| 32 |
AC_PROG_CPP |
| 33 |
dnl sets variable CPP |
| 34 |
AC_PROG_CXX |
| 35 |
dnl sets variable CXX |
| 36 |
AC_PROG_CXXCPP |
| 37 |
dnl sets variable CXXCPP |
| 38 |
if test $ac_cv_c_compiler_gnu = yes && test $ac_cv_cxx_compiler_gnu = yes; then |
| 39 |
CHECK_LANG_SYNTAX='check-lang-syntax' |
| 40 |
else |
| 41 |
CHECK_LANG_SYNTAX='' |
| 42 |
fi |
| 43 |
AC_SUBST([CHECK_LANG_SYNTAX]) |
| 44 |
dnl |
| 45 |
dnl That's it. |
| 46 |
dnl |
| 47 |
AC_CONFIG_FILES([Makefile]) |
| 48 |
AC_OUTPUT |