comparison configure1.in @ 3574:b5ddfcc90902

* configure.in (CFLAGS): Don't set this according to the value of the GCC shell variable. Instead, consult the machine and system files for the values of C_OPTIMIZE_SWITCH and C_DEBUG_SWITCH, and test __GNUC__ while we're at it. * configure.in: Check to see if the system has -ldnet.
author Jim Blandy <jimb@redhat.com>
date Tue, 08 Jun 1993 07:18:40 +0000
parents 7ff6a8013a4d
children 1b93c0bc8bf4
comparison
equal deleted inserted replaced
3573:7ff6a8013a4d 3574:b5ddfcc90902
919 "no" ) CC="cc" ;; 919 "no" ) CC="cc" ;;
920 * ) 920 * )
921 ] AC_PROG_CC [ 921 ] AC_PROG_CC [
922 esac 922 esac
923 923
924 CFLAGS='-g'
925 if test -n "${GCC}"; then
926 CFLAGS='-g -O'
927 fi
928
929 #### Some other nice autoconf tests. If you add a test here which 924 #### Some other nice autoconf tests. If you add a test here which
930 #### should make an entry in src/config.h, don't forget to add an 925 #### should make an entry in src/config.h, don't forget to add an
931 #### #undef clause to src/config.h.in for autoconf to modify. 926 #### #undef clause to src/config.h.in for autoconf to modify.
932 ] 927 ]
933 dnl checks for programs 928 dnl checks for programs
939 934
940 dnl checks for header files 935 dnl checks for header files
941 AC_HAVE_HEADERS(sys/timeb.h sys/time.h) 936 AC_HAVE_HEADERS(sys/timeb.h sys/time.h)
942 AC_STDC_HEADERS 937 AC_STDC_HEADERS
943 AC_TIME_WITH_SYS_TIME 938 AC_TIME_WITH_SYS_TIME
939
940 dnl checks for library files
941 AC_HAVE_LIBRARY(-ldnet)
944 942
945 dnl checks for typedefs 943 dnl checks for typedefs
946 AC_RETSIGTYPE 944 AC_RETSIGTYPE
947 945
948 dnl checks for functions 946 dnl checks for functions
1083 #ifdef SYSTEM_MALLOC 1081 #ifdef SYSTEM_MALLOC
1084 @configure@ system_malloc=yes 1082 @configure@ system_malloc=yes
1085 #else 1083 #else
1086 @configure@ system_malloc=no 1084 @configure@ system_malloc=no
1087 #endif 1085 #endif
1086
1087 #ifndef C_DEBUG_SWITCH
1088 #define C_DEBUG_SWITCH -g
1089 #endif
1090
1091 #ifndef C_OPTIMIZE_SWITCH
1092 #define C_OPTIMIZE_SWITCH -O
1093 #endif
1094
1095 #ifdef __GNUC__
1096 @configure@ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH
1097 #else
1098 @configure@ CFLAGS=C_DEBUG_SWITCH
1099 #endif
1088 ' > ${tempcname} 1100 ' > ${tempcname}
1089 # The value of CPP is a quoted variable reference, so we need to do this 1101 # The value of CPP is a quoted variable reference, so we need to do this
1090 # to get its actual value... 1102 # to get its actual value...
1091 foo=`eval "echo $CPP"` 1103 foo=`eval "echo $CPP"`
1092 eval `${foo} ${tempcname} \ 1104 eval `${foo} ${tempcname} \