Commit | Line | Data |
---|---|---|
a0d0e21e LW |
1 | # hints/esix4.sh |
2 | # Original esix4 hint file courtesy of | |
3 | # Kevin O'Gorman ( kevin@kosman.UUCP, kevin%kosman.uucp@nrc.com ) | |
4 | # | |
5 | # Use Configure -Dcc=gcc to use gcc. | |
c22e42be AD |
6 | |
7 | # Why can't we just use PATH? It contains /usr/ccs/bin. | |
a0d0e21e LW |
8 | case "$cc" in |
9 | '') cc='/bin/cc' | |
10 | test -f $cc || cc='/usr/ccs/bin/cc' | |
a0d0e21e LW |
11 | ;; |
12 | esac | |
c22e42be AD |
13 | |
14 | ldflags="$ldflags -L/usr/ccs/lib -L/usr/ucblib" | |
a0d0e21e | 15 | test -d /usr/local/man || mansrc='none' |
c22e42be AD |
16 | # Do we really need to tell cc to look in /usr/include? |
17 | ccflags="$ccflags -I/usr/include -I/usr/ucbinclude" | |
a0d0e21e LW |
18 | libswanted=`echo " $libswanted " | sed -e 's/ malloc / /' ` |
19 | d_index='undef' | |
20 | d_suidsafe=define | |
a0d0e21e LW |
21 | usevfork='false' |
22 | if test "$osvers" = "3.0"; then | |
23 | d_gconvert='undef' | |
8c99d73e GS |
24 | grep 'define[ ]*AF_OSI[ ]' /usr/include/sys/socket.h | grep '/\*[^*]*$' >esix$$ |
25 | if test -s esix$$; then | |
68dc0745 | 26 | cat <<EOM >&2 |
a0d0e21e LW |
27 | |
28 | WARNING: You are likely to have problems compiling the Socket extension | |
29 | unless you fix the unterminated comment for AF_OSI in the file | |
30 | /usr/include/sys/socket.h. | |
31 | ||
32 | EOM | |
33 | fi | |
8c99d73e | 34 | rm -f esix$$ |
a0d0e21e | 35 | fi |
f4cb4c40 | 36 |