liboptschk.m4 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # liboptschk.m4 serial 1 (autogen - 5.7.3)
  2. dnl Copyright (C) 2005 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl
  7. dnl This file can can be used in projects which are not available under
  8. dnl the GNU General Public License or the GNU Library General Public
  9. dnl License but which still want to provide support for the GNU gettext
  10. dnl functionality.
  11. dnl Please note that the actual code of the GNU gettext library is covered
  12. dnl by the GNU Library General Public License, and the rest of the GNU
  13. dnl gettext package package is covered by the GNU General Public License.
  14. dnl They are *not* in the public domain.
  15. dnl Authors:
  16. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  17. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  18. AC_PREREQ(2.50)
  19. AC_DEFUN([ag_FIND_LIBOPTS],
  20. [if test "X${ac_cv_header_autoopts_options_h}" == Xno
  21. then
  22. :
  23. else
  24. f=`autoopts-config cflags` 2>/dev/null
  25. test X"${f}" = X && f=`libopts-config cflags` 2>/dev/null
  26. if test X"${f}" = X
  27. then
  28. :
  29. else
  30. AC_DEFINE([HAVE_LIBOPTS],[1],[define if we can find libopts])
  31. CFLAGS="${CFLAGS} ${f}"
  32. f=`autoopts-config ldflags` 2>/dev/null
  33. test X"${f}" = X && f=`libopts-config ldflags` 2>/dev/null
  34. LIBS="${LIBS} ${f}"
  35. fi
  36. fi])