Next: , Up: Header Files   [Contents][Index]


5.6.1 ¥Ø¥Ã¥À¤Î°Ü¿¢À­

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ç¤Ï¡¤°ìÈÌŪ¤Ê¥Ø¥Ã¥À¤È¤½¤ì¤é¤ÎÌäÂê¤Ë´Ø¤¹¤ëÃ챤òÀµ¤·¤¯¤·¤Æ ¤ß¤¿¤¤¤È»×¤¤¤Þ¤¹¡¥ÄêµÁ¾å¡¤°Ê²¼¤Î¥ê¥¹¥È¤Ï¾ï¤Ê¤ëÄɲäòɬÍפȤ·¤Þ¤¹¡¥²Äǽ¤Ê ¸Â¤ê´°Á´¤ËÊݤļê½õ¤±¤ò¤ª´ê¤¤¤·¤Þ¤¹¡¥

inttypes.hÂÐstdint.h

Paul Eggert¤Î¥á¥â¡§ISO C 1999¤Ç¤Ï¡¤inttypes.h¤Ïstdint.h ¤ò ¥¤¥ó¥¯¥ë¡¼¥É¤¹¤ë¤Î¤Ç¡¤É¸½àŪ¤Ê´Ä¶­¤Ç¤Ïstdint.h¤ò¸ÄÊ̤˥¤¥ó¥¯¥ë¡¼ ¥É¤¹¤ëɬÍפÊ̵¤¤¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡¥Â¿¤¯¤Î¼ÂÁõ¤Ç¤Ï¡¤inttypes.h¤Ï ¤¢¤ê¤Þ¤¹¤¬stdint.h¤Ï¤¢¤ê¤Þ¤»¤ó¤·(Î㤨¤Ð¡¤Solaris 7)¡¤ stdint.h¤¬¤¢¤Ã¤Æinttypes.h¤¬Ìµ¤¤¤È¸À¤¦¼ÂÁõ¤ÏÃΤê¤Þ¤»¤ó¡¥¤Þ ¤¿¡¤stdint.h¤ò¥¤¥ó¥¯¥ë¡¼¥É¤·¤Æ¤¤¤ë¥Õ¥ê¡¼¥½¥Õ¥È¥¦¥§¥¢¤âÃΤê¤Þ¤»¤ó¡¥ stdint.h¤Ï¡¤°Ñ°÷²ñ¤ÇºîÀ®¤µ¤ì¤¿¤è¤¦¤Ç¤¹¡¥

linux/irda.h

¤½¤ì¤Ï¡¤linux/types.h¤Èsys/socket.h¤òÍ׵ᤷ¤Þ¤¹¡¥

linux/random.h

¤½¤ì¤Ï¡¤linux/types.h¤òÍ׵ᤷ¤Þ¤¹¡¥

net/if.h

Darwin¾å¤Ç¤Ï¡¤¤³¤Î¥Õ¥¡¥¤¥ë¤Ïsys/socket.h¤¬¤½¤ì°ÊÁ°¤Ë¥¤¥ó¥¯¥ë¡¼¥É ¤µ¤ì¤Æ¤¤¤ë¤³¤È¤òÍ׵ᤷ¤Þ¤¹¡¥°Ê²¼¤Î¤è¤¦¤Ë¼Â¹Ô¤¹¤Ù¤­¤Ç¤¹¡¥

AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([net/if.h], [], [],
[#include <stdio.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
])
netinet/if_ether.h

Darwin¾å¤Ç¤Ï¡¤¤³¤Î¥Õ¥¡¥¤¥ë¤Ïstdio.h¤Èsys/socket.h¤¬¤½¤ì°Ê Á°¤Ë¥¤¥ó¥¯¥ë¡¼¥É¤µ¤ì¤Æ¤¤¤ë¤³¤È¤òÍ׵ᤷ¤Þ¤¹¡¥°Ê²¼¤Î¤è¤¦¤Ë¼Â¹Ô¤¹¤Ù¤­¤Ç¤¹¡¥

AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([netinet/if_ether.h], [], [],
[#include <stdio.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
])
stdint.h

¾åµ­¤Îinttypes.hÂÐstdint.h¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡¥

stdlib.h

¿¤¯¤Î¥·¥¹¥Æ¥à¾å¤Ç(Î㤨¤ÐDarwin)¡¤stdio.h¤¬É¬¿Ü¤Ë¤Ê¤ê¤Þ¤¹¡¥

sys/mount.h

ia32¤ÎFreeBSD 4.8¤È¡¤gcc¤Î¥Ð¡¼¥¸¥ç¥ó2.95.4¤ò»ÈÍѤ·¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤Ç¤Ï¡¤ sys/params.h¤¬É¬¿Ü¤Ë¤Ê¤ê¤Þ¤¹¡¥

sys/socket.h

Darwin¾å¤Ç¤Ï¡¤stdlib.h¤¬É¬¿Ü¤Ë¤Ê¤ê¤Þ¤¹¡¥

sys/ucred.h

HP Tru64 5.1¾å¤Ç¤Ï¡¤sys/types.h¤¬É¬¿Ü¤Ë¤Ê¤ê¤Þ¤¹¡¥

X11/extensions/scrnsaver.h

XFree86¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¤¤³¤Î¥Ø¥Ã¥À¤ÏX11/Xlib.h¤òÍ׵ᤷ¡¤¤ª¤½ ¤é¤¯¤½¤ì¤òõ¤¹¤³¤È¤ò¹Í¤¨¤Ê¤¯¤Æ¤âÎɤ¤¤Ç¤·¤ç¤¦¡¥

AC_CHECK_HEADERS([X11/extensions/scrnsaver.h], [], [],
[[#include <X11/Xlib.h>
]])