getopt() is defined in <unistd.h>
<getopt.h> would only be needed if we used getopt_long()
AC_REPLACE_FUNCS([wcscasecmp strcasestr])
-AC_CHECK_HEADERS(getopt.h)
-
dnl Set the atime of files
AC_CHECK_FUNCS(futimens)
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
#ifndef HAVE_STRERROR
#define strerror(x) ((x) > 0 && (x) < sys_nerr) ? sys_errlist[(x)] : 0
#include <time.h>
#include <unistd.h>
#include "dotlock.h"
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
#ifndef _POSIX_PATH_MAX
#include <limits.h>
#endif
#endif
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
#ifdef HAVE_STRINGPREP_H
#include <stringprep.h>
#elif defined(HAVE_IDN_STRINGPREP_H)
#include "pgplib.h"
#include "pgppacket.h"
#include "sha1.h"
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
extern char *optarg;
extern int optind;