comparison configure.in @ 11723:a812bce4aef0

Make sure CDPATH doesn't mess up PWD check. Check whether X bitmaps are in X11/bitmaps instead of bitmaps. Use fmod instead of logb in -lm check.
author David J. MacKenzie <djm@gnu.org>
date Sat, 06 May 1995 21:27:16 +0000
parents ddf3123098b4
children fba9ec0e2b30
comparison
equal deleted inserted replaced
11722:d7089b2620fb 11723:a812bce4aef0
63 case "${srcdir}" in 63 case "${srcdir}" in
64 /* ) ;; 64 /* ) ;;
65 . ) 65 . )
66 ## We may be able to use the $PWD environment variable to make this 66 ## We may be able to use the $PWD environment variable to make this
67 ## absolute. But sometimes PWD is inaccurate. 67 ## absolute. But sometimes PWD is inaccurate.
68 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
69 CDPATH=
68 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; 70 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ;
69 then 71 then
70 srcdir="$PWD" 72 srcdir="$PWD"
71 else 73 else
72 srcdir="`(cd ${srcdir}; pwd)`" 74 srcdir="`(cd ${srcdir}; pwd)`"
937 C_SWITCH_X_SITE="-I${x_includes}" 939 C_SWITCH_X_SITE="-I${x_includes}"
938 fi 940 fi
939 941
940 if test x"${x_includes}" = x; then 942 if test x"${x_includes}" = x; then
941 bitmapdir=/usr/include/X11/bitmaps 943 bitmapdir=/usr/include/X11/bitmaps
944 elif test -d "${x_includes}/X11/bitmaps"; then
945 bitmapdir="${x_includes}/X11/bitmaps"
942 else 946 else
943 bitmapdir="${x_includes}/bitmaps" 947 bitmapdir="${x_includes}/bitmaps"
944 fi 948 fi
945 949
946 case "${window_system}" in 950 case "${window_system}" in
1150 AC_DEFINE(HAVE_H_ERRNO)], 1154 AC_DEFINE(HAVE_H_ERRNO)],
1151 [AC_MSG_RESULT(no)]) 1155 [AC_MSG_RESULT(no)])
1152 1156
1153 AC_FUNC_ALLOCA 1157 AC_FUNC_ALLOCA
1154 1158
1155 # logb and frexp are found in -lm on most systems. 1159 # fmod, logb, and frexp are found in -lm on most systems.
1156 AC_CHECK_LIB(m, logb) 1160 # On HPUX 9.01, -lm does not contain logb, so check for fmod.
1161 # If some other system has -lm with logb and/or frexp but not fmod,
1162 # we will have to try yet again...
1163 AC_CHECK_LIB(m, fmod)
1157 AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ 1164 AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \
1158 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \ 1165 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \
1159 strerror fpathconf select mktime eaccess getpagesize) 1166 strerror fpathconf select mktime eaccess getpagesize)
1160 1167
1161 ok_so_far=yes 1168 ok_so_far=yes