Debian Codegraph @

macros/getopt_long.m4

raw
1 # Defines an automake conditional `HAVE_GETOPT_LONG' depending on
2 # whether getopt_long() from GNU getopt is available or not. If it
3 # is, defines the preprocessor identifier `HAVE_GETOPT_LONG' to 1.
4
5 AC_PREREQ(2.50)
6
7 AC_DEFUN([GETOPT_LONG],
8 [
9 AC_CHECK_HEADER([getopt.h])
10 AC_CHECK_FUNCS([getopt_long], HAVE_GETOPT_LONG=1, HAVE_GETOPT_LONG=0)
11 AM_CONDITIONAL(HAVE_GETOPT_LONG, [test "$HAVE_GETOPT_LONG" = 1])
12 ])
13
14