Changeset 1891
- Timestamp:
- Mar 25, 2008 1:53:16 PM (17 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r1871 r1891 5848 5848 5849 5849 5850 if test "${ac_cv_header_net_if_h+set}" = set; then5851 echo "$as_me:$LINENO: checking for net/if.h" >&55852 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&65853 if test "${ac_cv_header_net_if_h+set}" = set; then5854 echo $ECHO_N "(cached) $ECHO_C" >&65855 fi5856 echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&55857 echo "${ECHO_T}$ac_cv_header_net_if_h" >&65858 else5859 # Is the header compilable?5860 echo "$as_me:$LINENO: checking net/if.h usability" >&55861 echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&65862 cat >conftest.$ac_ext <<_ACEOF5863 /* confdefs.h. */5864 _ACEOF5865 cat confdefs.h >>conftest.$ac_ext5866 cat >>conftest.$ac_ext <<_ACEOF5867 /* end confdefs.h. */5868 $ac_includes_default5869 #include <net/if.h>5870 _ACEOF5871 rm -f conftest.$ac_objext5872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55873 (eval $ac_compile) 2>conftest.er15874 ac_status=$?5875 grep -v '^ *+' conftest.er1 >conftest.err5876 rm -f conftest.er15877 cat conftest.err >&55878 echo "$as_me:$LINENO: \$? = $ac_status" >&55879 (exit $ac_status); } &&5880 { ac_try='test -z "$ac_c_werror_flag"5881 || test ! -s conftest.err'5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55883 (eval $ac_try) 2>&55884 ac_status=$?5885 echo "$as_me:$LINENO: \$? = $ac_status" >&55886 (exit $ac_status); }; } &&5887 { ac_try='test -s conftest.$ac_objext'5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55889 (eval $ac_try) 2>&55890 ac_status=$?5891 echo "$as_me:$LINENO: \$? = $ac_status" >&55892 (exit $ac_status); }; }; then5893 ac_header_compiler=yes5894 else5895 echo "$as_me: failed program was:" >&55896 sed 's/^/| /' conftest.$ac_ext >&55897 5898 ac_header_compiler=no5899 fi5900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&55902 echo "${ECHO_T}$ac_header_compiler" >&65903 5904 # Is the header present?5905 echo "$as_me:$LINENO: checking net/if.h presence" >&55906 echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&65907 cat >conftest.$ac_ext <<_ACEOF5908 /* confdefs.h. */5909 _ACEOF5910 cat confdefs.h >>conftest.$ac_ext5911 cat >>conftest.$ac_ext <<_ACEOF5912 /* end confdefs.h. */5913 #include <net/if.h>5914 _ACEOF5915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&55916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er15917 ac_status=$?5918 grep -v '^ *+' conftest.er1 >conftest.err5919 rm -f conftest.er15920 cat conftest.err >&55921 echo "$as_me:$LINENO: \$? = $ac_status" >&55922 (exit $ac_status); } >/dev/null; then5923 if test -s conftest.err; then5924 ac_cpp_err=$ac_c_preproc_warn_flag5925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag5926 else5927 ac_cpp_err=5928 fi5929 else5930 ac_cpp_err=yes5931 fi5932 if test -z "$ac_cpp_err"; then5933 ac_header_preproc=yes5934 else5935 echo "$as_me: failed program was:" >&55936 sed 's/^/| /' conftest.$ac_ext >&55937 5938 ac_header_preproc=no5939 fi5940 rm -f conftest.err conftest.$ac_ext5941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&55942 echo "${ECHO_T}$ac_header_preproc" >&65943 5944 # So? What about this header?5945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in5946 yes:no: )5947 { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&55948 echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;}5949 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&55950 echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;}5951 ac_header_preproc=yes5952 ;;5953 no:yes:* )5954 { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&55955 echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;}5956 { echo "$as_me:$LINENO: WARNING: net/if.h: check for missing prerequisite headers?" >&55957 echo "$as_me: WARNING: net/if.h: check for missing prerequisite headers?" >&2;}5958 { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&55959 echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;}5960 { echo "$as_me:$LINENO: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&55961 echo "$as_me: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&2;}5962 { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&55963 echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;}5964 { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&55965 echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;}5966 (5967 cat <<\_ASBOX5968 ## ------------------------------------ ##5969 ## Report this to the pjproject lists. ##5970 ## ------------------------------------ ##5971 _ASBOX5972 ) |5973 sed "s/^/$as_me: WARNING: /" >&25974 ;;5975 esac5976 echo "$as_me:$LINENO: checking for net/if.h" >&55977 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&65978 if test "${ac_cv_header_net_if_h+set}" = set; then5979 echo $ECHO_N "(cached) $ECHO_C" >&65980 else5981 ac_cv_header_net_if_h=$ac_header_preproc5982 fi5983 echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&55984 echo "${ECHO_T}$ac_cv_header_net_if_h" >&65985 5986 fi5987 if test $ac_cv_header_net_if_h = yes; then5988 cat >>confdefs.h <<\_ACEOF5989 #define PJ_HAS_NET_IF_H 15990 _ACEOF5991 5992 fi5993 5994 5995 5850 if test "${ac_cv_header_ifaddrs_h+set}" = set; then 5996 5851 echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 … … 9034 8889 fi 9035 8890 8891 8892 8893 for ac_header in net/if.h 8894 do 8895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8896 echo "$as_me:$LINENO: checking for $ac_header" >&5 8897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8898 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8899 echo $ECHO_N "(cached) $ECHO_C" >&6 8900 else 8901 cat >conftest.$ac_ext <<_ACEOF 8902 /* confdefs.h. */ 8903 _ACEOF 8904 cat confdefs.h >>conftest.$ac_ext 8905 cat >>conftest.$ac_ext <<_ACEOF 8906 /* end confdefs.h. */ 8907 #if PJ_HAS_SYS_SOCKET_H 8908 # include <sys/socket.h> 8909 #endif 8910 8911 8912 #include <$ac_header> 8913 _ACEOF 8914 rm -f conftest.$ac_objext 8915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8916 (eval $ac_compile) 2>conftest.er1 8917 ac_status=$? 8918 grep -v '^ *+' conftest.er1 >conftest.err 8919 rm -f conftest.er1 8920 cat conftest.err >&5 8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8922 (exit $ac_status); } && 8923 { ac_try='test -z "$ac_c_werror_flag" 8924 || test ! -s conftest.err' 8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8926 (eval $ac_try) 2>&5 8927 ac_status=$? 8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8929 (exit $ac_status); }; } && 8930 { ac_try='test -s conftest.$ac_objext' 8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8932 (eval $ac_try) 2>&5 8933 ac_status=$? 8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 (exit $ac_status); }; }; then 8936 eval "$as_ac_Header=yes" 8937 else 8938 echo "$as_me: failed program was:" >&5 8939 sed 's/^/| /' conftest.$ac_ext >&5 8940 8941 eval "$as_ac_Header=no" 8942 fi 8943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8944 fi 8945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8947 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8948 cat >>confdefs.h <<_ACEOF 8949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8950 _ACEOF 8951 cat >>confdefs.h <<\_ACEOF 8952 #define PJ_HAS_NET_IF_H 1 8953 _ACEOF 8954 8955 fi 8956 8957 done 9036 8958 9037 8959 -
pjproject/trunk/aconfigure.ac
r1871 r1891 145 145 AC_CHECK_HEADER(netinet/in.h,[AC_DEFINE(PJ_HAS_NETINET_IN_H,1)]) 146 146 AC_CHECK_HEADER(netinet/ip.h,[AC_DEFINE(PJ_HAS_NETINET_IP_H,1)]) 147 AC_CHECK_HEADER(net/if.h,[AC_DEFINE(PJ_HAS_NET_IF_H,1)])148 147 AC_CHECK_HEADER(ifaddrs.h,[AC_DEFINE(PJ_HAS_IFADDRS_H,1)]) 149 148 AC_CHECK_HEADER(semaphore.h,[AC_DEFINE(PJ_HAS_SEMAPHORE_H,1)]) … … 167 166 AC_CHECK_HEADER(winsock2.h,[AC_DEFINE(PJ_HAS_WINSOCK2_H,1)]) 168 167 AC_CHECK_HEADER(uuid/uuid.h,[ac_has_uuid_h=1]) 168 AC_CHECK_HEADERS(net/if.h,[AC_DEFINE(PJ_HAS_NET_IF_H,1)],[], 169 [#if PJ_HAS_SYS_SOCKET_H 170 # include <sys/socket.h> 171 #endif 172 ]) 169 173 170 174 AC_MSG_RESULT([Setting PJ_OS_NAME to $target])
Note: See TracChangeset
for help on using the changeset viewer.