diff options
author | 2005-11-28 01:06:03 +1000 | |
---|---|---|
committer | 2005-11-28 01:06:03 +1000 | |
commit | e800fca499a537c0c57e7e504ed2a4ceff91fda4 (patch) | |
tree | ebca2af4bad76fe8a13cc474b9e75521940a5f33 | |
parent | eed4b75389149629d02180f6282f6d78b305309e (diff) |
Use better test for presense of getopt_long function
darcs-hash:20051127150603-ac50b-566999b0cb32bc150dc6ef43220452ab42f1ad64.gz
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | mimedb.c | 2 | ||||
-rw-r--r-- | set_color.c | 2 | ||||
-rw-r--r-- | tokenize.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 10351a70..57fbdb84 100644 --- a/configure.ac +++ b/configure.ac @@ -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/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]) # Check for RLIMIT_AS in sys/resource.h. @@ -111,7 +111,7 @@ int main( int argc, char **argv ) while( 1 ) { -#ifdef __GLIBC__ +#ifdef HAVE_GETOPT_LONG static struct option long_options[] = { @@ -1018,7 +1018,7 @@ int main (int argc, char *argv[]) */ while( 1 ) { -#ifdef __GLIBC__ +#ifdef HAVE_GETOPT_LONG static struct option long_options[] = { diff --git a/set_color.c b/set_color.c index 2265776e..1a5c0b49 100644 --- a/set_color.c +++ b/set_color.c @@ -114,7 +114,7 @@ int main( int argc, char **argv ) while( 1 ) { -#ifdef __GLIBC__ +#ifdef HAVE_GETOPT_LONG static struct option long_options[] = { @@ -32,7 +32,7 @@ int main( int argc, char **argv ) while( 1 ) { -#ifdef __GLIBC__ +#ifdef HAVE_GETOPT_LONG static struct option long_options[] = { |