diff --git a/Makefile.in b/Makefile.in index 570d27bea2..e8dceb0b0f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -340,13 +340,22 @@ afsd: cmd comerr sys kauth @CLIENT_UAFS_DEP@ +${COMPILE_PART1} afsd ${COMPILE_PART2} gtx: cmd comerr auth kauth - +${COMPILE_PART1} gtx ${COMPILE_PART2} + +set -x; \ + if test "@LIB_curses@"; then \ + ${COMPILE_PART1} gtx ${COMPILE_PART2} ; \ + else \ + echo Not building gtx, because no curses-headers found. ; \ + fi fsprobe: cmd comerr util fsint volser +${COMPILE_PART1} fsprobe ${COMPILE_PART2} scout: cmd comerr gtx fsprobe - +${COMPILE_PART1} scout ${COMPILE_PART2} + if test "@LIB_curses@"; then \ + ${COMPILE_PART1} scout ${COMPILE_PART2} ; \ + else \ + echo Not building scout, because no curses-headers found. ; \ + fi uss: des kauth cmd comerr rx vlserver vol volser +${COMPILE_PART1} uss ${COMPILE_PART2} @@ -555,7 +564,12 @@ xstat: cmd comerr fsint viced +${COMPILE_PART1} xstat ${COMPILE_PART2} afsmonitor: cmd comerr gtx xstat - +${COMPILE_PART1} afsmonitor ${COMPILE_PART2} + +set -x; \ + if test "@LIB_curses@"; then \ + ${COMPILE_PART1} afsmonitor ${COMPILE_PART2} ; \ + else \ + echo Not building afsmonitor, because no curses-headers found. ; \ + fi tests: rxtests ubiktests rpctestlib diff --git a/acinclude.m4 b/acinclude.m4 index 0d99559f86..3b22c2fa7a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1212,6 +1212,7 @@ AC_CHECK_HEADERS(windows.h direct.h sys/ipc.h sys/resource.h) AC_CHECK_HEADERS(security/pam_modules.h ucontext.h regex.h sys/statvfs.h sys/statfs.h sys/bitypes.h) AC_CHECK_HEADERS(linux/errqueue.h,,,[#include ]) AC_CHECK_HEADERS(et/com_err.h) +AC_CHECK_HEADERS(ncurses.h curses.h) AC_CHECK_TYPES([fsblkcnt_t],,,[ #include @@ -1226,6 +1227,14 @@ AC_CHECK_TYPES([fsblkcnt_t],,,[ #endif ]) +dnl check for curses-lib +save_LIBS=$LIBS +AC_CHECK_LIB( [ncurses], [setupterm], +[LIB_curses=-lncurses], +[AC_CHECK_LIB([curses], [setupterm], [LIB_curses=-lcurses])]) +LIBS=$save_LIBS +AC_SUBST(LIB_curses) + OPENAFS_TEST_PACKAGE(libintl,[#include ],[-lintl],,,INTL) dnl Don't build PAM on IRIX; the interface doesn't work for us. @@ -1441,3 +1450,17 @@ struct labeltest struct_labeltest = { ]) ]) + +AC_DEFUN([SUMMARY], [ + # Print a configuration summary +echo +echo "**************************************" +echo configure summary +echo +AS_IF([test $LIB_curses],[ +echo "LIB_curses : $LIB_curses" ],[ +echo "XXX LIB_curses not found! not building scout and afsmonitor!" +]) +echo +echo "**************************************" +]) diff --git a/configure.ac b/configure.ac index df8bf56359..cbbf347dc7 100644 --- a/configure.ac +++ b/configure.ac @@ -240,3 +240,6 @@ tests/util/Makefile, [chmod a+x src/config/shlib-build chmod a+x src/config/shlib-install]) + +# print a final summary +SUMMARY diff --git a/src/afsmonitor/Makefile.in b/src/afsmonitor/Makefile.in index 70661ae7fe..c41cf412e3 100644 --- a/src/afsmonitor/Makefile.in +++ b/src/afsmonitor/Makefile.in @@ -38,7 +38,7 @@ LIBS=${TOP_LIBDIR}/libxstat_fs.a \ ${TOP_LIBDIR}/libsys.a \ ${TOP_LIBDIR}/util.a -EXTRA_LIBS=${TXLIBS} ${XLIBS} +EXTRA_LIBS=${LIB_curses} ${XLIBS} all: afsmonitor diff --git a/src/cf/osconf.m4 b/src/cf/osconf.m4 index 755ac321ea..32fef3d397 100644 --- a/src/cf/osconf.m4 +++ b/src/cf/osconf.m4 @@ -45,7 +45,6 @@ case $AFS_SYSNAME in DBG="-g3" MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-pthread -lpthread -lmach -lexc -lc" - TXLIBS="-lcurses" XCFLAGS="-D_NO_PROTO -DOSF" SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\"" ;; @@ -59,7 +58,6 @@ case $AFS_SYSNAME in CSTATIC="-non_shared" MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-pthread -lpthread -lmach -lexc -lc" - TXLIBS="-lcurses" XCFLAGS="-D_NO_PROTO -DOSF" SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\"" ;; @@ -73,7 +71,6 @@ case $AFS_SYSNAME in LWP_OPTMZ="-O2" MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-pthread -lpthread -lmach -lexc -lc" - TXLIBS="-lcurses" XCFLAGS="-D_NO_PROTO -DOSF" SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\"" ;; @@ -86,7 +83,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -100,7 +96,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -114,7 +109,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -128,7 +122,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -142,7 +135,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -166,7 +158,6 @@ case $AFS_SYSNAME in RM="/bin/rm" SHLIB_LDFLAGS="-b -Bsymbolic" SHLIB_SUFFIX="sl" - TXLIBS="/usr/lib/libHcurses.a" VFSCK_CFLAGS="-D_FILE64" XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE" XCFLAGS64="${XCFLAGS0} +DA2.0W" @@ -195,7 +186,6 @@ case $AFS_SYSNAME in RM="/bin/rm" SHLIB_LDFLAGS="-b -Bsymbolic" SHLIB_SUFFIX="sl" - TXLIBS="/usr/lib/libHcurses.a" VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64" XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE" XCFLAGS64="${XCFLAGS0} +DA2.0W" @@ -226,7 +216,6 @@ case $AFS_SYSNAME in RM="/bin/rm" SHLIB_LDFLAGS="-b -Bsymbolic" SHLIB_SUFFIX="sl" - TXLIBS="/usr/lib/hpux32/libcurses.so" VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64" XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive_shared -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE" XCFLAGS64="${XCFLAGS0} +DD64" @@ -244,7 +233,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-pipe -fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_LINKER="${MT_CC} -shared" - TXLIBS="-lncurses" XCFLAGS="-pipe" ;; @@ -255,7 +243,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-pipe -fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_LINKER="${MT_CC} -shared" - TXLIBS="-lncurses" XCFLAGS="-pipe" ;; @@ -265,7 +252,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-O2 -pipe -fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_LINKER="${MT_CC} -shared" - TXLIBS="-lncurses" XCFLAGS="-O2 -pipe -fPIC" ;; @@ -277,7 +263,6 @@ case $AFS_SYSNAME in SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_LINKER="${MT_CC} -shared" - TXLIBS="-lcurses" XCFLAGS="-pipe" ;; @@ -288,7 +273,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-pipe -fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_LINKER="${MT_CC} -shared" - TXLIBS="/usr/lib/libcurses.so" XCFLAGS="-pipe" ;; @@ -300,7 +284,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE -G0" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -314,7 +297,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -327,7 +309,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_CFLAGS="-fPIC" - TXLIBS="/usr/lib64/libncurses.so" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -340,7 +321,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_CFLAGS="-fPIC" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE -fPIC" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -353,7 +333,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -370,7 +349,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -388,7 +366,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -406,7 +383,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -422,7 +398,6 @@ case $AFS_SYSNAME in SHLIB_CFLAGS="-fpic" SHLIB_LDFLAGS="-shared -Xlinker -x" SHLIB_LINKER="${MT_CC} -shared" - TXLIBS="/usr/lib/libcurses.a" XCFLAGS= ;; @@ -434,7 +409,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -450,7 +424,6 @@ case $AFS_SYSNAME in LWP_OPTMZ="-O2" REGEX_OBJ="regex.o" XCFLAGS="-no-cpp-precomp" - TXLIBS="-lncurses" EXTRA_VLIBOBJS="fstab.o" SHLIB_LINKER="${MT_CC} -dynamiclib" SHLIB_SUFFIX="dylib" @@ -469,7 +442,6 @@ case $AFS_SYSNAME in LWP_OPTMZ="-Os" OPTMZ="-Os" REGEX_OBJ="regex.o" - TXLIBS="-lncurses" EXTRA_VLIBOBJS="fstab.o" SHLIB_LINKER="${MT_CC} -dynamiclib" SHLIB_SUFFIX="dylib" @@ -487,7 +459,6 @@ case $AFS_SYSNAME in LWP_OPTMZ="-Os" OPTMZ="-Os" REGEX_OBJ="regex.o" - TXLIBS="-lncurses" EXTRA_VLIBOBJS="fstab.o" SHLIB_LINKER="${MT_CC} -dynamiclib" SHLIB_SUFFIX="dylib" @@ -507,7 +478,6 @@ case $AFS_SYSNAME in OPTMZ="-Os" PAM_LIBS="-lpam" REGEX_OBJ="regex.o" - TXLIBS="-lncurses" EXTRA_VLIBOBJS="fstab.o" SHLIB_LINKER="${MT_CC} -dynamiclib" SHLIB_SUFFIX="dylib" @@ -523,7 +493,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -537,7 +506,6 @@ case $AFS_SYSNAME in MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthreads" SHLIB_SUFFIX="o" - TXLIBS="-lcurses" XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void" XLIBS="${LIB_AFSDB} ${LIB_libintl} -ldl" SHLIB_LINKER="${MT_CC} -bM:SRE -berok" @@ -555,7 +523,6 @@ case $AFS_SYSNAME in MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthreads" SHLIB_SUFFIX="o" - TXLIBS="-lcurses" XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void" XLIBS="${LIB_AFSDB} ${LIB_libintl} -ldl" SHLIB_LINKER="${MT_CC} -bM:SRE -berok" @@ -572,7 +539,6 @@ case $AFS_SYSNAME in MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthreads" SHLIB_SUFFIX="o" - TXLIBS="-lcurses" XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void" XLIBS="${LIB_AFSDB} ${LIB_libintl} -ldl" SHLIB_LINKER="${MT_CC} -bM:SRE -berok" @@ -589,7 +555,6 @@ case $AFS_SYSNAME in MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthreads" SHLIB_SUFFIX="o" - TXLIBS="-lcurses" XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void" XLIBS="${LIB_AFSDB} ${LIB_libintl} -ldl" SHLIB_LINKER="${MT_CC} -bM:SRE -berok" @@ -606,7 +571,6 @@ case $AFS_SYSNAME in MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthreads" SHLIB_SUFFIX="o" - TXLIBS="-lcurses" XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void" XLIBS="${LIB_AFSDB} ${LIB_libintl} -ldl" SHLIB_LINKER="${MT_CC} -bM:SRE -berok" @@ -624,7 +588,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" OPTMZ=-O XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" @@ -640,7 +603,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" SHLIB_LINKER="${MT_CC} -shared" ;; @@ -656,7 +618,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x -Xlinker -Bsymbolic" - TXLIBS="-lncurses" OPTMZ=-O XCFLAGS="-D_LARGEFILE64_SOURCE -D__s390x__" SHLIB_LINKER="${MT_CC} -shared" @@ -670,7 +631,6 @@ case $AFS_SYSNAME in FSINCLUDES="-I/usr/include/sys/fs" MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthread" - TXLIBS="-lcurses" XCFLAGS64="-64 -mips3" XCFLAGS="-o32" XLDFLAGS64="-64" @@ -686,7 +646,6 @@ case $AFS_SYSNAME in FSINCLUDES="-I/usr/include/sys/fs" MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthread" - TXLIBS="-lcurses" XCFLAGS64="-D_BSD_COMPAT -64 -mips3" XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -o32" XLDFLAGS64="-64" @@ -702,7 +661,6 @@ case $AFS_SYSNAME in FSINCLUDES="-I/usr/include/sys/fs" MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthread" - TXLIBS="-lcurses" XCFLAGS64="-D_BSD_COMPAT -64 -mips3" XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -n32 -woff 1009,1014,1110,1116,1164,1169,1171,1174,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552,3201 -Wl,-woff,84,-woff,15" XLDFLAGS64="-64" @@ -719,7 +677,6 @@ case $AFS_SYSNAME in MT_CC="/usr/bin/cc" MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthread" - TXLIBS="-lcurses" XCFLAGS64="-64 -mips3" XCFLAGS="-n32 -mips3 -woff 1009,1014,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552,3201 -Wl,-woff,84,-woff,15" XLDFLAGS64="-64 -mips3" @@ -735,7 +692,6 @@ case $AFS_SYSNAME in PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC" SHLIB_CFLAGS="-fPIC" SHLIB_LDFLAGS="-shared -Xlinker -x" - TXLIBS="-lncurses" XCFLAGS="-D_LARGEFILE64_SOURCE" XCFLAGS64="-D_LARGEFILE64_SOURCE -m64" XLDFLAGS64="-m64" @@ -747,7 +703,6 @@ case $AFS_SYSNAME in CC="gcc" CCOBJ="gcc" SHLIB_CFLAGS="-PIC" - TXLIBS="-lcurses -ltermcap" XCFLAGS="" XLIBELFA="-lelf" XLIBKVM="-lkvm" @@ -762,7 +717,6 @@ case $AFS_SYSNAME in MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}' MT_LIBS="-lpthread -lsocket" SHLIB_CFLAGS="-KPIC" - TXLIBS="-lcurses" XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" XLIBKVM="-lkvm" @@ -782,7 +736,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-L/usr/ccs/lib -lcurses" XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" LD="/usr/ccs/bin/ld" @@ -803,7 +756,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -xarch=v9' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -824,7 +776,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -xarch=v9' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -845,7 +796,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -xarch=v9' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -866,7 +816,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -m64' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -887,7 +836,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -xarch=v9' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -908,7 +856,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -xarch=amd64' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -928,7 +875,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -xarch=amd64' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -948,7 +894,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -xarch=amd64' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -968,7 +913,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -m64' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -988,7 +932,6 @@ case $AFS_SYSNAME in PAM_LIBS="-lc -lpam -lsocket -lnsl -lm" SHLIB_CFLAGS="-KPIC" SHLIB_LDFLAGS="-G -Bsymbolic" - TXLIBS="-lcurses" XCFLAGS64='${XCFLAGS} -xarch=amd64' XCFLAGS="-dy -Bdynamic" XLIBELFA="-lelf" @@ -1117,7 +1060,6 @@ AC_SUBST(SHLIB_CFLAGS) AC_SUBST(SHLIB_LDFLAGS) AC_SUBST(SHLIB_LINKER) AC_SUBST(SHLIB_SUFFIX) -AC_SUBST(TXLIBS) AC_SUBST(VFSCK_CFLAGS) AC_SUBST(XCFLAGS) AC_SUBST(CFLAGS_NOERROR) diff --git a/src/config/Makefile.config.in b/src/config/Makefile.config.in index 24e16fdfb1..5a6ea7c6e7 100644 --- a/src/config/Makefile.config.in +++ b/src/config/Makefile.config.in @@ -51,6 +51,7 @@ LD = @LD@ LEX = @LEX@ LIB_AFSDB = @LIB_AFSDB@ LIB_crypt = @LIB_crypt@ +LIB_curses = @LIB_curses@ LIBS = @LIBS@ LIB_LIBINTL = @LIB_libintl@ LINUX_KERNEL_PATH = @LINUX_KERNEL_PATH@ @@ -88,7 +89,6 @@ TOP_LIBDIR = @TOP_LIBDIR@ TOP_JLIBDIR= @TOP_JLIBDIR@ TOP_OBJDIR = @TOP_OBJDIR@ TOP_SRCDIR = @TOP_SRCDIR@ -TXLIBS = @TXLIBS@ VPATH = ${srcdir} XCFLAGS64 = @XCFLAGS64@ XCFLAGS = @XCFLAGS@ diff --git a/src/gtx/Makefile.in b/src/gtx/Makefile.in index 8762a946b6..d0a8f0c0d1 100644 --- a/src/gtx/Makefile.in +++ b/src/gtx/Makefile.in @@ -42,7 +42,7 @@ LIBS=\ ${TOP_LIBDIR}/libcom_err.a \ ${TOP_LIBDIR}/util.a -EXTRA_LIBS=${TXLIBS} ${XLIBS} +EXTRA_LIBS=${LIB_curses} ${XLIBS} KEYMAP_SRCS=keymap.c input.c frame.c diff --git a/src/gtx/curses_test.c b/src/gtx/curses_test.c index d555ae5246..2255ff4b30 100644 --- a/src/gtx/curses_test.c +++ b/src/gtx/curses_test.c @@ -14,13 +14,12 @@ #include #include - -#if defined(AFS_HPUX110_ENV) && !defined(__HP_CURSES) -#define __HP_CURSES +#if defined(HAVE_NCURSES_H) +# include +#elif defined(HAVE_CURSES_H) +# include #endif -#include - #include "AFS_component_version_number.c" main(argc, argv) diff --git a/src/gtx/curseswindows.c b/src/gtx/curseswindows.c index e1796d5c65..1d28040137 100644 --- a/src/gtx/curseswindows.c +++ b/src/gtx/curseswindows.c @@ -20,13 +20,6 @@ -#if defined(AFS_HPUX110_ENV) && !defined(__HP_CURSES) -#define __HP_CURSES -#endif - -#ifndef AFS_SUN5_ENV -#include /*Curses library */ -#endif #include #include #if !defined(AFS_SUN5_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_FBSD80_ENV) diff --git a/src/gtx/gtxcurseswin.h b/src/gtx/gtxcurseswin.h index 096a3f6721..a60f05c725 100644 --- a/src/gtx/gtxcurseswin.h +++ b/src/gtx/gtxcurseswin.h @@ -11,13 +11,11 @@ #define __gator_curseswindows_h 1 #include "gtxwindows.h" /*Base gator window dfns */ -#if defined(AFS_HPUX110_ENV) && !defined(__HP_CURSES) -#define __HP_CURSES -#endif -#ifdef AFS_LINUX20_ENV -#include /*Curses library */ -#else -#include /*Curses library */ + +#if defined(HAVE_NCURSES_H) +# include +#elif defined(HAVE_CURSES_H) +# include #endif /*Value for gwin w_type field*/ diff --git a/src/scout/Makefile.in b/src/scout/Makefile.in index acfd43c309..8302d93d57 100644 --- a/src/scout/Makefile.in +++ b/src/scout/Makefile.in @@ -53,7 +53,7 @@ all: scout scout.o: scout.c ${INCLS} AFS_component_version_number.c scout: scout.o $(LIBS) - ${CC} ${LDFLAGS} -o scout scout.o $(LIBS) ${TXLIBS} ${XLIBS} + ${CC} ${LDFLAGS} -o scout scout.o $(LIBS) ${LIB_curses} ${XLIBS} # # Installation targets