Debian Codegraph @

matio-1.5.30/config/matio_getopt_long.m4

raw
1 AC_DEFUN([MATIO_CHECK_GETOPT_LONG],
2 [
3
4 AC_MSG_CHECKING(for getopt_long)
5
6 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
7 #include <stdlib.h>
8 #ifdef HAVE_STDDEF_H
9 #include <stddef.h>
10 #endif
11 #ifdef HAVE_UNISTD_H
12 #include <unistd.h>
13 #endif
14 #define _GNU_SOURCE /* For getopt_long on GNU systems */
15 #include <getopt.h>
16 ]], [[int opt = getopt_long(0,NULL,NULL,NULL,NULL);]])],[ac_have_getopt_long=yes],[ac_have_getopt_long=no])
17
18 if test "x$ac_have_getopt_long" = "xyes"
19 then
20 AC_MSG_RESULT([system])
21 else
22 AC_MSG_RESULT([internal])
23 fi
24 AM_CONDITIONAL(NEED_GETOPT, test "x$ac_have_getopt_long" = "xno" )
25 ])