comparison configure @ 7135:2c34499ef4af

inet_aton fallback support by Joey Parrish <joey@yunamusic.com>
author bertrand
date Thu, 29 Aug 2002 07:07:12 +0000
parents dc48f2130a76
children d48db6256efb
comparison
equal deleted inserted replaced
7134:75ff2ec3b086 7135:2c34499ef4af
1551 else 1551 else
1552 echores "no" 1552 echores "no"
1553 fi 1553 fi
1554 1554
1555 1555
1556 _use_aton=no
1556 echocheck "inet_pton()" 1557 echocheck "inet_pton()"
1557 cat > $TMPC << EOF 1558 cat > $TMPC << EOF
1558 #include <sys/types.h> 1559 #include <sys/types.h>
1559 #include <sys/socket.h> 1560 #include <sys/socket.h>
1560 #include <arpa/inet.h> 1561 #include <arpa/inet.h>
1567 elif cc_check $_ld_sock -lresolv ; then 1568 elif cc_check $_ld_sock -lresolv ; then
1568 # NOTE: needed for SunOS at least 1569 # NOTE: needed for SunOS at least
1569 _ld_sock="$_ld_sock -lresolv" 1570 _ld_sock="$_ld_sock -lresolv"
1570 echores "yes (using $_ld_sock)" 1571 echores "yes (using $_ld_sock)"
1571 else 1572 else
1572 echores "no (=> streaming support disabled)" 1573 echores "no (=> i'll try inet_aton next)"
1573 _streaming=no 1574
1574 fi 1575 echocheck "inet_aton()"
1575 1576 cat > $TMPC << EOF
1577 #include <sys/types.h>
1578 #include <sys/socket.h>
1579 #include <arpa/inet.h>
1580 int main(void) { (void) inet_aton(0, 0); return 0; }
1581 EOF
1582 _use_aton=yes
1583 if cc_check $_ld_sock ; then
1584 # NOTE: Linux has libresolv but does not need it
1585 :
1586 echores "yes (using $_ld_sock)"
1587 elif cc_check $_ld_sock -lresolv ; then
1588 # NOTE: needed for SunOS at least
1589 _ld_sock="$_ld_sock -lresolv"
1590 echores "yes (using $_ld_sock)"
1591 else
1592 _use_aton=no
1593 _streaming=no
1594 echores "no (=> streaming support disabled)"
1595 fi
1596 fi
1597
1598 _def_use_aton='#undef USE_ATON'
1599 if test "$_use_aton" != no; then
1600 _def_use_aton='#define USE_ATON 1'
1601 fi
1576 1602
1577 echocheck "inttypes.h (required)" 1603 echocheck "inttypes.h (required)"
1578 cat > $TMPC << EOF 1604 cat > $TMPC << EOF
1579 #include <inttypes.h> 1605 #include <inttypes.h>
1580 int main(void) { return 0; } 1606 int main(void) { return 0; }
4651 $_def_faad 4677 $_def_faad
4652 4678
4653 /* enable streaming */ 4679 /* enable streaming */
4654 $_def_streaming 4680 $_def_streaming
4655 4681
4682 /* define this to use inet_aton() instead of inet_pton() */
4683 $_def_use_aton
4684
4656 /* enables / disables cdparanoia support */ 4685 /* enables / disables cdparanoia support */
4657 $_def_cdparanoia 4686 $_def_cdparanoia
4658 4687
4659 /* enables / disables vidix usage */ 4688 /* enables / disables vidix usage */
4660 $_def_vidix 4689 $_def_vidix