File: getopt_long.m4

package info (click to toggle)
burgerspace 1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,508 kB
  • ctags: 754
  • sloc: sh: 10,939; cpp: 5,791; makefile: 240
file content (14 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (24)
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])
])