]> granicus.if.org Git - graphviz/commitdiff
Add test for HAVE_CONFIG_DECL
authorerg <devnull@localhost>
Mon, 25 Jun 2007 18:44:55 +0000 (18:44 +0000)
committererg <devnull@localhost>
Mon, 25 Jun 2007 18:44:55 +0000 (18:44 +0000)
config.iffe

index e6fe5ef502a4259d1b2602497df0038c8c447b3e..940eb0a3f8a37e7dedbe5cc8b5c6595ad7d499f8 100644 (file)
@@ -103,6 +103,20 @@ link{
 #define HAVE_INTPTR_T 1
 }end
 
+link{
+       #include <stdlib.h>
+       #include <stdio.h>
+       #if HAVE_UNISTD_H
+       #include <unistd.h>
+       #endif
+    int main () {
+       if ( optopt ) exit(0); else exit(1);
+       }
+}end yes{
+/* Define if getopt externs are declared */
+#define HAVE_GETOPT_DECL 1
+}end
+
 link{
     #if HAVE_NETDB_H
     #include <netdb.h>