Debian Codegraph @

matio-1.5.0/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_TRY_LINK(
7 [#include <stdio.h>
8 #include <stdlib.h>
9 #ifdef HAVE_UNISTD_H
10 #include <unistd.h>
11 #endif
12 #define _GNU_SOURCE /* For getopt_long on GNU systems */
13 #include <getopt.h>
14 ],
15 [opt = getopt_long(0,NULL,NULL,NULL,NULL);],
16 [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 ])