have_library: checking for -llog... -------------------- no

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib   -arch x86_64   -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread   -lpthread  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib   -arch x86_64   -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -llog  -lpthread  "
ld: library not found for -llog
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: 
15: int t(void) { ; return 0; }
/* end */

--------------------

have_header: checking for syslog.h... -------------------- yes

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  -arch x86_64  -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <syslog.h>
/* end */

--------------------

have_func: checking for openlog()... -------------------- yes

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib   -arch x86_64   -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread   -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'openlog'
int t(void) { void ((*volatile p)()); p = (void ((*)()))openlog; return !p; }
                                                        ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))openlog; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib   -arch x86_64   -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread   -lpthread  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void openlog();
15: int t(void) { openlog(); return 0; }
/* end */

--------------------

have_func: checking for setlogmask()... -------------------- yes

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib   -arch x86_64   -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread   -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'setlogmask'
int t(void) { void ((*volatile p)()); p = (void ((*)()))setlogmask; return !p; }
                                                        ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))setlogmask; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib   -arch x86_64   -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread   -lpthread  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void setlogmask();
15: int t(void) { setlogmask(); return 0; }
/* end */

--------------------

extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #define HAVE_SYSLOG_H 1
4: #define HAVE_OPENLOG 1
5: #define HAVE_SETLOGMASK 1
6: #endif
/* end */

