comparison configure.in @ 12787:5569b3a43323

(m68*-next-*): Use m68k.h and nextstep.h. (m68k-next-nextstep*): New alias for that. (i*86-*-nextstep*): Use nextstep.h. (sparc-*-nextstep*): New configuration. (CPP): Save original CFLAGS value in SPECIFIED_CFLAGS. And get CFLAGS from config.h if SPECIFIED_CFLAGS is null. Handle sunos4shr by sharing; not like sunos4*. Determine GETTIMEOFDAY_ONE_ARGUMENT by experiment.
author Richard M. Stallman <rms@gnu.org>
date Sat, 05 Aug 1995 23:01:11 +0000
parents 03d3249e5d24
children f5e4db7e8197
comparison
equal deleted inserted replaced
12786:d12f56be7f87 12787:5569b3a43323
540 mips-mips-* ) 540 mips-mips-* )
541 machine=mips opsys=usg5-2-2 541 machine=mips opsys=usg5-2-2
542 ;; 542 ;;
543 543
544 ## NeXT 544 ## NeXT
545 m68*-next-* | i[345]86-next-* ) 545 m68*-next-* | m68k-*-nextstep* )
546 machine=next opsys=mach2 546 machine=m68k opsys=nextstep
547 ;; 547 ;;
548 548
549 ## The complete machine from National Semiconductor 549 ## The complete machine from National Semiconductor
550 ns32k-ns-genix* ) 550 ns32k-ns-genix* )
551 machine=ns32000 opsys=usg5-2 551 machine=ns32000 opsys=usg5-2
656 esac 656 esac
657 case "${canonical}" in 657 case "${canonical}" in
658 ## The Sun386 didn't get past 4.0. 658 ## The Sun386 didn't get past 4.0.
659 i[345]86-*-sunos4 ) opsys=sunos4-0 ;; 659 i[345]86-*-sunos4 ) opsys=sunos4-0 ;;
660 *-sunos4.0* ) opsys=sunos4-0 ;; 660 *-sunos4.0* ) opsys=sunos4-0 ;;
661 *-sunos4.1.[3-9]* ) 661 *-sunos4.1.[3-9]* | *-sunos4shr*)
662 opsys=sunos4shr 662 opsys=sunos4shr
663 NON_GNU_CPP=/usr/lib/cpp 663 NON_GNU_CPP=/usr/lib/cpp
664 ;; 664 ;;
665 *-sunos4* | *-sunos ) opsys=sunos4-1 665 *-sunos4* | *-sunos ) opsys=sunos4-1
666 NON_GCC_TEST_OPTIONS=-Bstatic 666 NON_GCC_TEST_OPTIONS=-Bstatic
683 NON_GNU_CPP=/usr/ccs/lib/cpp 683 NON_GNU_CPP=/usr/ccs/lib/cpp
684 ;; 684 ;;
685 * ) opsys=bsd4-2 ;; 685 * ) opsys=bsd4-2 ;;
686 esac 686 esac
687 ;; 687 ;;
688 sparc-*-nextstep* )
689 machine=sparc.h opsys=nextstep.h
690 ;;
688 691
689 ## Tadpole 68k 692 ## Tadpole 68k
690 m68*-tadpole-sysv* ) 693 m68*-tadpole-sysv* )
691 machine=tad68k opsys=usg5-3 694 machine=tad68k opsys=usg5-3
692 ;; 695 ;;
772 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; 775 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
773 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;; 776 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
774 *-bsdi2* ) opsys=bsdos2 ;; 777 *-bsdi2* ) opsys=bsdos2 ;;
775 *-386bsd* ) opsys=386bsd ;; 778 *-386bsd* ) opsys=386bsd ;;
776 *-freebsd* ) opsys=freebsd ;; 779 *-freebsd* ) opsys=freebsd ;;
777 *-nextstep* ) opsys=mach2 ;; 780 *-nextstep* ) opsys=nextstep ;;
778 ## Otherwise, we'll fall through to the generic opsys code at the bottom. 781 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
779 esac 782 esac
780 ;; 783 ;;
781 784
782 * ) 785 * )
797 *-bsd4.2 ) opsys=bsd4-2 ;; 800 *-bsd4.2 ) opsys=bsd4-2 ;;
798 *-bsd4.3 ) opsys=bsd4-3 ;; 801 *-bsd4.3 ) opsys=bsd4-3 ;;
799 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; 802 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
800 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; 803 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
801 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; 804 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
802 *-sysv3 | *-sysvr3 ) opsys=usg5-3 ;; 805 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
803 *-sysv4 | *-sysvr4 ) opsys=usg5-4 ;; 806 *-sysv4.1* | *-sysvr4.1* )
804 *-sysv4.1 | *-sysvr4.1 )
805 NON_GNU_CPP=/usr/lib/cpp 807 NON_GNU_CPP=/usr/lib/cpp
806 opsys=usg5-4 ;; 808 opsys=usg5-4 ;;
807 *-sysv4.2 | *-sysvr4.2 ) 809 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
808 if [ x$NON_GNU_CPP = x ]; then 810 if [ x$NON_GNU_CPP = x ]; then
809 NON_GNU_CPP=/usr/ccs/lib/cpp 811 NON_GNU_CPP=/usr/ccs/lib/cpp
810 fi 812 fi
811 opsys=usg5-4-2 ;; 813 opsys=usg5-4-2 ;;
814 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
812 * ) 815 * )
813 unported=yes 816 unported=yes
814 ;; 817 ;;
815 esac 818 esac
816 fi 819 fi
826 opsysfile="s/${opsys}.h" 829 opsysfile="s/${opsys}.h"
827 830
828 831
829 #### Choose a compiler. 832 #### Choose a compiler.
830 test -n "$CC" && cc_specified=yes 833 test -n "$CC" && cc_specified=yes
834
835 # Save the value of CFLAGS that the user specified.
836 SPECIFIED_CFLAGS="$CFLAGS"
831 837
832 case ${with_gcc} in 838 case ${with_gcc} in
833 "yes" ) CC="gcc" GCC=yes ;; 839 "yes" ) CC="gcc" GCC=yes ;;
834 "no" ) : ${CC=cc} ;; 840 "no" ) : ${CC=cc} ;;
835 * ) AC_PROG_CC 841 * ) AC_PROG_CC
918 #else 924 #else
919 #include <time.h> 925 #include <time.h>
920 #endif 926 #endif
921 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], 927 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;],
922 [AC_MSG_RESULT(yes) 928 [AC_MSG_RESULT(yes)
929 HAVE_TIMEVAL=yes
923 AC_DEFINE(HAVE_TIMEVAL)], 930 AC_DEFINE(HAVE_TIMEVAL)],
924 AC_MSG_RESULT(no)) 931 AC_MSG_RESULT(no))
925 932
926 dnl checks for structure members 933 dnl checks for structure members
927 AC_STRUCT_TM 934 AC_STRUCT_TM
1109 # to get its actual value... 1116 # to get its actual value...
1110 CPP=`eval "echo $CPP"` 1117 CPP=`eval "echo $CPP"`
1111 changequote(, )dnl 1118 changequote(, )dnl
1112 eval `${CPP} -Isrc ${tempcname} \ 1119 eval `${CPP} -Isrc ${tempcname} \
1113 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` 1120 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
1114 if test "x$CFLAGS" = x; then 1121 if test "x$SPECIFIED_CFLAGS" = x; then
1115 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ 1122 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
1116 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` 1123 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
1117 else 1124 else
1118 REAL_CFLAGS="$CFLAGS" 1125 REAL_CFLAGS="$CFLAGS"
1119 fi 1126 fi
1238 AC_CHECK_LIB(m, sqrt(0.0) + t) 1245 AC_CHECK_LIB(m, sqrt(0.0) + t)
1239 AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ 1246 AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
1240 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \ 1247 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \
1241 strerror fpathconf select mktime eaccess getpagesize) 1248 strerror fpathconf select mktime eaccess getpagesize)
1242 1249
1250 if test $HAVE_TIMEVAL = yes; then
1251 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments)
1252 AC_TRY_LINK([
1253 #ifdef TIME_WITH_SYS_TIME
1254 #include <sys/time.h>
1255 #include <time.h>
1256 #else
1257 #ifdef HAVE_SYS_TIME_H
1258 #include <sys/time.h>
1259 #else
1260 #include <time.h>
1261 #endif
1262 #endif
1263 ],
1264 [
1265 struct timeval time;
1266 struct timezone dummy;
1267 gettimeofday (&time, &dummy);
1268 ],
1269 [AC_MSG_RESULT(no)],
1270 [AC_MSG_RESULT(yes)
1271 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
1272 fi
1273
1243 ok_so_far=yes 1274 ok_so_far=yes
1244 AC_CHECK_FUNC(socket, , ok_so_far=no) 1275 AC_CHECK_FUNC(socket, , ok_so_far=no)
1245 if test $ok_so_far = yes; then 1276 if test $ok_so_far = yes; then
1246 AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no) 1277 AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no)
1247 fi 1278 fi