| 1 |
# check_old_textcat_pkg.m4 - Macro to detect 'old' style libtextcat. -*- Autoconf -*- |
| 2 |
# serial 1 |
| 3 |
# |
| 4 |
# Copyright © 2018 Ko van der Sloot <[email protected]> |
| 5 |
# |
| 6 |
# This program is free software; you can redistribute it and/or modify |
| 7 |
# it under the terms of the GNU General Public License as published by |
| 8 |
# the Free Software Foundation; either version 2 of the License, or |
| 9 |
# (at your option) any later version. |
| 10 |
# |
| 11 |
# This program is distributed in the hope that it will be useful, but |
| 12 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
# General Public License for more details. |
| 15 |
# |
| 16 |
# You should have received a copy of the GNU General Public License |
| 17 |
# along with this program; if not, write to the Free Software |
| 18 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 19 |
# |
| 20 |
# As a special exception to the GNU General Public License, if you |
| 21 |
# distribute this file as part of a program that contains a |
| 22 |
# configuration script generated by Autoconf, you may include it under |
| 23 |
# the same distribution terms that you use for the rest of that program. |
| 24 |
|
| 25 |
# AC_CHECK_OLD_TEXTCAT() |
| 26 |
# ---------------------------------- |
| 27 |
AC_DEFUN([AC_CHECK_OLD_TEXTCAT], |
| 28 |
[AC_CHECK_HEADERS( [libtextcat/textcat.h], |
| 29 |
[CXXFLAGS="$CXXFLAGS -I$prefix/include/libtextcat" |
| 30 |
AC_SEARCH_LIBS( [textcat_Init], |
| 31 |
[textcat], |
| 32 |
[TEXTCAT_FOUND=1], |
| 33 |
[AC_MSG_NOTICE([textcat library not available])])], |
| 34 |
[AC_MSG_NOTICE([textcat include file not available])]) |
| 35 |
] |
| 36 |
) |