Changeset 2190 for pjproject/trunk
- Timestamp:
- Aug 4, 2008 2:45:02 PM (16 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r2182 r2190 5559 5559 5560 5560 5561 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 5562 echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 5563 echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6 5564 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 5565 echo $ECHO_N "(cached) $ECHO_C" >&6 5566 fi 5567 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 5568 echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6 5569 else 5570 # Is the header compilable? 5571 echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 5572 echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6 5573 cat >conftest.$ac_ext <<_ACEOF 5574 /* confdefs.h. */ 5575 _ACEOF 5576 cat confdefs.h >>conftest.$ac_ext 5577 cat >>conftest.$ac_ext <<_ACEOF 5578 /* end confdefs.h. */ 5579 $ac_includes_default 5580 #include <netinet/in_systm.h> 5581 _ACEOF 5582 rm -f conftest.$ac_objext 5583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5584 (eval $ac_compile) 2>conftest.er1 5585 ac_status=$? 5586 grep -v '^ *+' conftest.er1 >conftest.err 5587 rm -f conftest.er1 5588 cat conftest.err >&5 5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5590 (exit $ac_status); } && 5591 { ac_try='test -z "$ac_c_werror_flag" 5592 || test ! -s conftest.err' 5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5594 (eval $ac_try) 2>&5 5595 ac_status=$? 5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5597 (exit $ac_status); }; } && 5598 { ac_try='test -s conftest.$ac_objext' 5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5600 (eval $ac_try) 2>&5 5601 ac_status=$? 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); }; }; then 5604 ac_header_compiler=yes 5605 else 5606 echo "$as_me: failed program was:" >&5 5607 sed 's/^/| /' conftest.$ac_ext >&5 5608 5609 ac_header_compiler=no 5610 fi 5611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5613 echo "${ECHO_T}$ac_header_compiler" >&6 5614 5615 # Is the header present? 5616 echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 5617 echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6 5618 cat >conftest.$ac_ext <<_ACEOF 5619 /* confdefs.h. */ 5620 _ACEOF 5621 cat confdefs.h >>conftest.$ac_ext 5622 cat >>conftest.$ac_ext <<_ACEOF 5623 /* end confdefs.h. */ 5624 #include <netinet/in_systm.h> 5625 _ACEOF 5626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5628 ac_status=$? 5629 grep -v '^ *+' conftest.er1 >conftest.err 5630 rm -f conftest.er1 5631 cat conftest.err >&5 5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5633 (exit $ac_status); } >/dev/null; then 5634 if test -s conftest.err; then 5635 ac_cpp_err=$ac_c_preproc_warn_flag 5636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5637 else 5638 ac_cpp_err= 5639 fi 5640 else 5641 ac_cpp_err=yes 5642 fi 5643 if test -z "$ac_cpp_err"; then 5644 ac_header_preproc=yes 5645 else 5646 echo "$as_me: failed program was:" >&5 5647 sed 's/^/| /' conftest.$ac_ext >&5 5648 5649 ac_header_preproc=no 5650 fi 5651 rm -f conftest.err conftest.$ac_ext 5652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5653 echo "${ECHO_T}$ac_header_preproc" >&6 5654 5655 # So? What about this header? 5656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5657 yes:no: ) 5658 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 5659 echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5660 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 5661 echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} 5662 ac_header_preproc=yes 5663 ;; 5664 no:yes:* ) 5665 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 5666 echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} 5667 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 5668 echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} 5669 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 5670 echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} 5671 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 5672 echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} 5673 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 5674 echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} 5675 { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 5676 echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} 5677 ( 5678 cat <<\_ASBOX 5679 ## ------------------------------------ ## 5680 ## Report this to the pjproject lists. ## 5681 ## ------------------------------------ ## 5682 _ASBOX 5683 ) | 5684 sed "s/^/$as_me: WARNING: /" >&2 5685 ;; 5686 esac 5687 echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 5688 echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6 5689 if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then 5690 echo $ECHO_N "(cached) $ECHO_C" >&6 5691 else 5692 ac_cv_header_netinet_in_systm_h=$ac_header_preproc 5693 fi 5694 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 5695 echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6 5696 5697 fi 5698 if test $ac_cv_header_netinet_in_systm_h = yes; then 5699 cat >>confdefs.h <<\_ACEOF 5700 #define PJ_HAS_NETINET_IN_SYSTM_H 1 5701 _ACEOF 5702 5703 fi 5704 5705 5561 5706 if test "${ac_cv_header_netinet_in_h+set}" = set; then 5562 5707 echo "$as_me:$LINENO: checking for netinet/in.h" >&5 … … 5704 5849 5705 5850 5706 if test "${ac_cv_header_netinet_ip_h+set}" = set; then5707 echo "$as_me:$LINENO: checking for netinet/ip.h" >&55708 echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&65709 if test "${ac_cv_header_netinet_ip_h+set}" = set; then5710 echo $ECHO_N "(cached) $ECHO_C" >&65711 fi5712 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&55713 echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&65714 else5715 # Is the header compilable?5716 echo "$as_me:$LINENO: checking netinet/ip.h usability" >&55717 echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&65718 cat >conftest.$ac_ext <<_ACEOF5719 /* confdefs.h. */5720 _ACEOF5721 cat confdefs.h >>conftest.$ac_ext5722 cat >>conftest.$ac_ext <<_ACEOF5723 /* end confdefs.h. */5724 $ac_includes_default5725 #include <netinet/ip.h>5726 _ACEOF5727 rm -f conftest.$ac_objext5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55729 (eval $ac_compile) 2>conftest.er15730 ac_status=$?5731 grep -v '^ *+' conftest.er1 >conftest.err5732 rm -f conftest.er15733 cat conftest.err >&55734 echo "$as_me:$LINENO: \$? = $ac_status" >&55735 (exit $ac_status); } &&5736 { ac_try='test -z "$ac_c_werror_flag"5737 || test ! -s conftest.err'5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55739 (eval $ac_try) 2>&55740 ac_status=$?5741 echo "$as_me:$LINENO: \$? = $ac_status" >&55742 (exit $ac_status); }; } &&5743 { ac_try='test -s conftest.$ac_objext'5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55745 (eval $ac_try) 2>&55746 ac_status=$?5747 echo "$as_me:$LINENO: \$? = $ac_status" >&55748 (exit $ac_status); }; }; then5749 ac_header_compiler=yes5750 else5751 echo "$as_me: failed program was:" >&55752 sed 's/^/| /' conftest.$ac_ext >&55753 5754 ac_header_compiler=no5755 fi5756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&55758 echo "${ECHO_T}$ac_header_compiler" >&65759 5760 # Is the header present?5761 echo "$as_me:$LINENO: checking netinet/ip.h presence" >&55762 echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&65763 cat >conftest.$ac_ext <<_ACEOF5764 /* confdefs.h. */5765 _ACEOF5766 cat confdefs.h >>conftest.$ac_ext5767 cat >>conftest.$ac_ext <<_ACEOF5768 /* end confdefs.h. */5769 #include <netinet/ip.h>5770 _ACEOF5771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&55772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er15773 ac_status=$?5774 grep -v '^ *+' conftest.er1 >conftest.err5775 rm -f conftest.er15776 cat conftest.err >&55777 echo "$as_me:$LINENO: \$? = $ac_status" >&55778 (exit $ac_status); } >/dev/null; then5779 if test -s conftest.err; then5780 ac_cpp_err=$ac_c_preproc_warn_flag5781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag5782 else5783 ac_cpp_err=5784 fi5785 else5786 ac_cpp_err=yes5787 fi5788 if test -z "$ac_cpp_err"; then5789 ac_header_preproc=yes5790 else5791 echo "$as_me: failed program was:" >&55792 sed 's/^/| /' conftest.$ac_ext >&55793 5794 ac_header_preproc=no5795 fi5796 rm -f conftest.err conftest.$ac_ext5797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&55798 echo "${ECHO_T}$ac_header_preproc" >&65799 5800 # So? What about this header?5801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in5802 yes:no: )5803 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&55804 echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;}5805 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&55806 echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;}5807 ac_header_preproc=yes5808 ;;5809 no:yes:* )5810 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&55811 echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;}5812 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&55813 echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;}5814 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&55815 echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;}5816 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&55817 echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;}5818 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&55819 echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;}5820 { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&55821 echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;}5822 (5823 cat <<\_ASBOX5824 ## ------------------------------------ ##5825 ## Report this to the pjproject lists. ##5826 ## ------------------------------------ ##5827 _ASBOX5828 ) |5829 sed "s/^/$as_me: WARNING: /" >&25830 ;;5831 esac5832 5851 echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 5833 5852 echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 … … 5835 5854 echo $ECHO_N "(cached) $ECHO_C" >&6 5836 5855 else 5837 ac_cv_header_netinet_ip_h=$ac_header_preproc 5856 cat >conftest.$ac_ext <<_ACEOF 5857 /* confdefs.h. */ 5858 _ACEOF 5859 cat confdefs.h >>conftest.$ac_ext 5860 cat >>conftest.$ac_ext <<_ACEOF 5861 /* end confdefs.h. */ 5862 #if PJ_HAS_NETINET_IN_SYSTM_H 5863 # include <netinet/in_systm.h> 5864 #endif 5865 5866 5867 #include <netinet/ip.h> 5868 _ACEOF 5869 rm -f conftest.$ac_objext 5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5871 (eval $ac_compile) 2>conftest.er1 5872 ac_status=$? 5873 grep -v '^ *+' conftest.er1 >conftest.err 5874 rm -f conftest.er1 5875 cat conftest.err >&5 5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5877 (exit $ac_status); } && 5878 { ac_try='test -z "$ac_c_werror_flag" 5879 || test ! -s conftest.err' 5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5881 (eval $ac_try) 2>&5 5882 ac_status=$? 5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5884 (exit $ac_status); }; } && 5885 { ac_try='test -s conftest.$ac_objext' 5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5887 (eval $ac_try) 2>&5 5888 ac_status=$? 5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5890 (exit $ac_status); }; }; then 5891 ac_cv_header_netinet_ip_h=yes 5892 else 5893 echo "$as_me: failed program was:" >&5 5894 sed 's/^/| /' conftest.$ac_ext >&5 5895 5896 ac_cv_header_netinet_ip_h=no 5897 fi 5898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5838 5899 fi 5839 5900 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 5840 5901 echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 5841 5842 fi5843 5902 if test $ac_cv_header_netinet_ip_h = yes; then 5844 5903 cat >>confdefs.h <<\_ACEOF -
pjproject/trunk/aconfigure.ac
r2182 r2190 143 143 AC_CHECK_HEADER(malloc.h,[AC_DEFINE(PJ_HAS_MALLOC_H,1)]) 144 144 AC_CHECK_HEADER(netdb.h,[AC_DEFINE(PJ_HAS_NETDB_H,1)]) 145 AC_CHECK_HEADER(netinet/in_systm.h,[AC_DEFINE(PJ_HAS_NETINET_IN_SYSTM_H,1)]) 145 146 AC_CHECK_HEADER(netinet/in.h,[AC_DEFINE(PJ_HAS_NETINET_IN_H,1)]) 146 AC_CHECK_HEADER(netinet/ip.h,[AC_DEFINE(PJ_HAS_NETINET_IP_H,1)]) 147 AC_CHECK_HEADER(netinet/ip.h,[AC_DEFINE(PJ_HAS_NETINET_IP_H,1)],[], 148 [#if PJ_HAS_NETINET_IN_SYSTM_H 149 # include <netinet/in_systm.h> 150 #endif 151 ]) 147 152 AC_CHECK_HEADER(ifaddrs.h,[AC_DEFINE(PJ_HAS_IFADDRS_H,1)]) 148 153 AC_CHECK_HEADER(semaphore.h,[AC_DEFINE(PJ_HAS_SEMAPHORE_H,1)]) -
pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in
r2160 r2190 51 51 #undef PJ_HAS_MALLOC_H 52 52 #undef PJ_HAS_NETDB_H 53 #undef PJ_HAS_NETINET_IN_SYSTM_H 53 54 #undef PJ_HAS_NETINET_IN_H 54 55 #undef PJ_HAS_NETINET_IP_H -
pjproject/trunk/pjlib/include/pj/compat/socket.h
r2039 r2190 90 90 #if defined(PJ_HAS_NETINET_IN_H) && PJ_HAS_NETINET_IN_H != 0 91 91 # include <netinet/in.h> 92 #endif 93 94 #if defined(PJ_HAS_NETINET_IN_SYSTM_H) && PJ_HAS_NETINET_IN_SYSTM_H != 0 95 /* Required to include netinet/ip.h in FreeBSD 7.0 */ 96 # include <netinet/in_systm.h> 92 97 #endif 93 98
Note: See TracChangeset
for help on using the changeset viewer.