Changeset 49 for common/trunk/configure

Show
Ignore:
Timestamp:
02/06/99 11:49:34 (15 years ago)
Author:
ucaccsp
Message:

Detect the need for -DNEED_INET_PTON on Linux libc 5.x
Colin

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/configure

    r47 r49  
    127127esac 
    128128 
    129 # Tests...NEED_INADDR_T 
     129echo -n "Searching for in_addr_t in <netinet/in.h>... " 
    130130T1=`grep -c in_addr_t /usr/include/netinet/in.h` 
    131131if [ $T1 = 0 ]; then 
    132     DEFS="$DEFS -DNEED_IN_ADDR_T" 
    133     echo "Need in_addr_t." 
     132        DEFS="$DEFS -DNEED_IN_ADDR_T" 
     133        echo "no" 
     134else  
     135        echo "yes" 
     136fi 
     137 
     138# This is the usual place for inet_pton()... 
     139echo -n "Searching for inet_pton in <arpa/inet.h>... " 
     140T2=`grep -c inet_pton /usr/include/arpa/inet.h` 
     141if [ $T2 = 0 ]; then 
     142        echo "no" 
     143        # ...but Solaris 2.6 has in it resolv.h... 
     144        echo -n "Searching for inet_pton in <resolv.h>... " 
     145        T2=`grep -c inet_pton /usr/include/resolv.h` 
     146        if [ $T2 = 0 ]; then 
     147                DEFS="$DEFS -DNEED_INET_PTON" 
     148                echo "no" 
     149        else  
     150                echo "yes" 
     151        fi 
     152else  
     153        echo "yes" 
    134154fi 
    135155