Use better test for presense of getopt_long function

darcs-hash:20051127150603-ac50b-566999b0cb32bc150dc6ef43220452ab42f1ad64.gz
This commit is contained in:
axel 2005-11-28 01:06:03 +10:00
parent eed4b75389
commit e800fca499
5 changed files with 5 additions and 5 deletions

View file

@ -64,7 +64,7 @@ AC_CHECK_FILES([/proc/self/stat])
AC_CHECK_FILE([/usr/pkg/lib],[AC_SUBST(LIBDIR,[-L/usr/pkg/lib\ -R/usr/pkg/lib])]) AC_CHECK_FILE([/usr/pkg/lib],[AC_SUBST(LIBDIR,[-L/usr/pkg/lib\ -R/usr/pkg/lib])])
AC_CHECK_FILE([/usr/pkg/include],[AC_SUBST(INCLUDEDIR,[-I/usr/pkg/include])]) AC_CHECK_FILE([/usr/pkg/include],[AC_SUBST(INCLUDEDIR,[-I/usr/pkg/include])])
AC_CHECK_FUNCS( [wprintf futimes wcwidth wcswidth] ) AC_CHECK_FUNCS( [wprintf futimes wcwidth wcswidth getopt_long] )
AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h]) AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h])
# Check for RLIMIT_AS in sys/resource.h. # Check for RLIMIT_AS in sys/resource.h.

2
main.c
View file

@ -111,7 +111,7 @@ int main( int argc, char **argv )
while( 1 ) while( 1 )
{ {
#ifdef __GLIBC__ #ifdef HAVE_GETOPT_LONG
static struct option static struct option
long_options[] = long_options[] =
{ {

View file

@ -1018,7 +1018,7 @@ int main (int argc, char *argv[])
*/ */
while( 1 ) while( 1 )
{ {
#ifdef __GLIBC__ #ifdef HAVE_GETOPT_LONG
static struct option static struct option
long_options[] = long_options[] =
{ {

View file

@ -114,7 +114,7 @@ int main( int argc, char **argv )
while( 1 ) while( 1 )
{ {
#ifdef __GLIBC__ #ifdef HAVE_GETOPT_LONG
static struct option static struct option
long_options[] = long_options[] =
{ {

View file

@ -32,7 +32,7 @@ int main( int argc, char **argv )
while( 1 ) while( 1 )
{ {
#ifdef __GLIBC__ #ifdef HAVE_GETOPT_LONG
static struct option static struct option
long_options[] = long_options[] =
{ {