Ticket #58058: configure.diff
File configure.diff, 4.4 KB (added by jmroot (Joshua Root), 6 years ago) |
---|
-
configure
old new 59 59 # work okay, usually. 60 60 61 61 # Set some defaults 62 XINCPATH="/usr/X11R6/include /usr/X11/include /usr/include /usr/include/X11 /usr/local/X11/include /usr/openwin/include"63 XLIBPATH="/lib /usr/lib /usr/X11/lib /usr/local/X11/lib /usr/openwin/lib /usr/X11R6/lib /usr/ucblib /usr/ccs/lib /usr/local/lib "`echo "$LD_LIBRARY_PATH" | tr ':' ' '`62 XINCPATH="/usr/X11R6/include /usr/X11/include @@SDKROOT@@/usr/include /usr/include/X11 /usr/local/X11/include /usr/openwin/include" 63 XLIBPATH="/lib @@SDKROOT@@/usr/lib /usr/X11/lib /usr/local/X11/lib /usr/openwin/lib /usr/X11R6/lib /usr/ucblib /usr/ccs/lib /usr/local/lib "`echo "$LD_LIBRARY_PATH" | tr ':' ' '` 64 64 GNUPATH=`echo "$PATH" | tr ':' ' '` 65 65 PREFIX=/usr 66 66 BINDIR='$(PREFIX)/bin' … … 488 488 489 489 490 490 # Check for some known system quirks 491 if [ -f /usr/include/sys/ptem.h ]491 if [ -f @@SDKROOT@@/usr/include/sys/ptem.h ] 492 492 then 493 493 why "This system has a <sys/ptem.h> file so I assume elvis needs it" 494 494 NEED_WINSIZE=define 495 495 else 496 496 why "This system has no <sys/ptem.h> file so I assume elvis doesn't need it" 497 497 fi 498 if [ -f /usr/include/termcap.h ]498 if [ -f @@SDKROOT@@/usr/include/termcap.h ] 499 499 then 500 500 why "This system has a <termcap.h> file so I assume elvis needs it" 501 501 NEED_SPEED_T=define 502 502 else 503 503 why "This system has no <termcap.h> file so I assume elvis doesn't need it" 504 504 fi 505 if [ -f /usr/include/sys/wait.h ]505 if [ -f @@SDKROOT@@/usr/include/sys/wait.h ] 506 506 then 507 507 why "This system has a <sys/wait.h> file so I assume elvis needs it" 508 508 NEED_WAIT_H=define 509 509 else 510 510 why "This system has no <sys/wait.h> file so I assume elvis doesn't need it" 511 511 fi 512 if [ -f /usr/include/sys/select.h ]512 if [ -f @@SDKROOT@@/usr/include/sys/select.h ] 513 513 then 514 514 why "This system has a <sys/select.h> file so I assume elvis needs it" 515 515 NEED_SELECT_H=define 516 516 else 517 517 why "This system has no <sys/select.h> file so I assume elvis doesn't need it" 518 518 fi 519 if [ -f /usr/include/sys/ioctl.h ]519 if [ -f @@SDKROOT@@/usr/include/sys/ioctl.h ] 520 520 then 521 521 why "This system has a <sys/ioctl.h> file so I assume elvis needs it" 522 522 NEED_IOCTL_H=define 523 523 else 524 524 why "This system has no <sys/ioctl.h> file so I assume elvis doesn't need it" 525 525 fi 526 if [ -f /usr/include/netinet/in.h ]526 if [ -f @@SDKROOT@@/usr/include/netinet/in.h ] 527 527 then 528 528 why "This system has a <netinet/in.h> file so I assume elvis needs it" 529 529 NEED_IN_H=define 530 530 else 531 531 why "This system has no <netinet/in.h> file so I assume elvis doesn't need it" 532 532 fi 533 if [ -f /usr/include/sys/socket.h ]533 if [ -f @@SDKROOT@@/usr/include/sys/socket.h ] 534 534 then 535 535 why "This system has a <sys/socket.h> file so I assume elvis needs it" 536 536 NEED_SOCKET_H=define … … 548 548 fi 549 549 fi 550 550 why "Does this system support setpgid()?" 551 if fgrep setpgid /usr/include/unistd.h >/dev/null 2>/dev/null551 if fgrep setpgid @@SDKROOT@@/usr/include/unistd.h >/dev/null 2>/dev/null 552 552 then 553 553 why " Assuming yes, because it is declared in <unistd.h>" 554 554 NEED_SETPGID=undef … … 557 557 NEED_SETPGID=define 558 558 fi 559 559 why "Does this system support freopen()?" 560 if fgrep freopen /usr/include/stdio.h >/dev/null 2>/dev/null560 if fgrep freopen @@SDKROOT@@/usr/include/stdio.h >/dev/null 2>/dev/null 561 561 then 562 562 why " Assuming yes, because it is declared in <stdio.h>" 563 563 NEED_FREOPEN=undef … … 584 584 then 585 585 why " Assuming no, because this is a Sun system." 586 586 NEED_INET_ATON=define 587 elif fgrep inet_aton /usr/include/arpa/inet.h </dev/null >/dev/null587 elif fgrep inet_aton @@SDKROOT@@/usr/include/arpa/inet.h </dev/null >/dev/null 588 588 then 589 589 why " Assuming yes, because it is declared in <arpa/inet.h>" 590 590 NEED_INET_ATON=undef … … 605 605 fi 606 606 fi 607 607 why "Does this system support memmove()?" 608 if fgrep memmove /usr/include/string*.h </dev/null >/dev/null608 if fgrep memmove @@SDKROOT@@/usr/include/string*.h </dev/null >/dev/null 609 609 then 610 610 why " Assuming yes, because it is declared in <string.h> or <strings.h>" 611 611 NEED_MEMMOVE=undef … … 619 619 sgtty) USE=" -DUSE_SGTTY" ;; 620 620 *) 621 621 why "Choosing a type of ioctl() calls, since no --ioctl=... argument was given" 622 if [ -f /usr/include/termios.h ]622 if [ -f @@SDKROOT@@/usr/include/termios.h ] 623 623 then 624 624 USE= 625 625 args="$args --ioctl=termios" 626 626 why " Assuming --ioctl=termios because <termios.h> exists" 627 627 else 628 if [ -f /usr/include/termio.h ]628 if [ -f @@SDKROOT@@/usr/include/termio.h ] 629 629 then 630 630 USE=" -DUSE_TERMIO" 631 631 args="$args --ioctl=termio"