File: getopt_long.m4

package info (click to toggle)
burgerspace 1.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,544 kB
  • sloc: sh: 11,264; cpp: 5,799; makefile: 238
file content (14 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Defines an automake conditional `HAVE_GETOPT_LONG' depending on
# whether getopt_long() from GNU getopt is available or not.  If it
# is, defines the preprocessor identifier `HAVE_GETOPT_LONG' to 1.

AC_PREREQ(2.50)

AC_DEFUN([GETOPT_LONG],
[
	AC_CHECK_HEADER([getopt.h])
	AC_CHECK_FUNCS([getopt_long], HAVE_GETOPT_LONG=1, HAVE_GETOPT_LONG=0)
	AM_CONDITIONAL(HAVE_GETOPT_LONG, [test "$HAVE_GETOPT_LONG" = 1])
])