Check for getopt

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-09-22 22:51:23 +00:00
parent 0eb1091cc6
commit 7bc05b1e88
5 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2003-09-22 Adam Fedor <fedor@gnu.org>
* configure.ac: Check for getopt
* Tools/gdomap.c: Use MINGW getopt if no native getopt
2003-09-21 Adam Fedor <fedor@gnu.org>
* Tools/cvtenc.m (main): Write using local/set encoding when

View file

@ -43,6 +43,9 @@
/* Define to 1 if you have the `getlogin' function. */
#undef HAVE_GETLOGIN
/* Define to 1 if you have the `getopt' function. */
#undef HAVE_GETOPT
/* Define to 1 if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H

View file

@ -178,7 +178,7 @@ static void queue_probe(struct in_addr* to, struct in_addr *from,
#ifdef __MINGW__
#ifndef HAVE_GETOPT
/* A simple implementation of getopt() */
static int
@ -245,6 +245,7 @@ getopt(int argc, char **argv, char *options)
return -1;
}
#endif
#endif
static char ebuf[2048];

3
configure vendored
View file

@ -8086,7 +8086,8 @@ fi
for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint
for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint getopt
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5

View file

@ -521,7 +521,7 @@ AC_CHECK_HEADERS(sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h)
AC_CHECK_HEADERS(sys/mount.h sys/types.h windows.h locale.h langinfo.h)
saved_LIBS="$LIBS"
AC_CHECK_LIB(m, main)
AC_CHECK_FUNCS(statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint)
AC_CHECK_FUNCS(statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint getopt)
LIBS="$saved_LIBS"
#--------------------------------------------------------------------