Check-in [dd60975ba5]
Not logged in
Overview
Comment: configure.in
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: dd60975ba51cc6f50008982e8e6623184317fb3e
User & Date: johannes@zellner.org on 1999-09-20 16:16:53
Other Links: manifest | tags
Context
1999-09-22
00:09
Wed Sep 22 02:07:23 CEST 1999 check-in: 9e3c1d7364 user: johannes@zellner.org tags: trunk
1999-09-20
16:16
configure.in check-in: dd60975ba5 user: johannes@zellner.org tags: trunk
00:39
Makefile.in config.h.in configure.in tclreadline.c check-in: 67dcbf090f user: johannes@zellner.org tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified configure.in from [6f48a841a3] to [c9637892c0].

     1      1   # -*- autoconf -*-
     2      2   # FILE: "/disk01/home/joze/src/tclreadline/configure.in"
     3         -# LAST MODIFICATION: "Mon Sep 20 02:37:03 1999 (joze)"
            3  +# LAST MODIFICATION: "Mon Sep 20 18:16:22 1999 (joze)"
     4      4   # (C) 1998, 1999 by Johannes Zellner, <johannes@zellner.org>
     5      5   # $Id$
     6      6   # ---
     7      7   #
     8      8   # tclreadline -- gnu readline for tcl
     9      9   # Copyright (C) 1999  Johannes Zellner
    10     10   #
................................................................................
   359    359               tlib_library=$withval, tlib_library="")
   360    360   
   361    361   AC_MSG_CHECKING([where to look for the terminal library])
   362    362   TERMLIB_DIR=""
   363    363   TERMLIB_VERSION_SUFFIX=""
   364    364   for dir in $tlib_library $TCLREADLINE_LPATH $prefix/lib/; do
   365    365   	for tlib in ncurses termlib termcap curses; do
   366         -        dnl echo "(ls ${dir}/lib${tlib}${SHLIB_SUFFIX}*) 2>/dev/null"
   367         -        result="`(ls -r ${dir}/lib${tlib}${SHLIB_SUFFIX}*) 2>/dev/null`"
   368         -		dnl echo result = $result
   369         -		if test "x$result" != "x"; then
   370         -			for lib in ${tlib}; do
   371         -				dnl It's possible that a library is found but it doesn't work
   372         -				dnl e.g., shared library that cannot be found
   373         -				dnl compile and run a test program to be sure
   374         -				LIBS=-l${lib}
   375         -				AC_TRY_RUN([
          366  +		dnl It's possible that a library is found but it doesn't work
          367  +		dnl e.g., shared library that cannot be found
          368  +		dnl compile and run a test program to be sure
          369  +		dnl echo ""
          370  +		dnl echo ""
          371  +		LIBS="-L${dir} -l${tlib}"
          372  +		AC_TRY_RUN([
   376    373   #ifdef HAVE_TERMCAP_H
   377    374   # include <termcap.h>
   378    375   #endif
   379    376   main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }],
   380         -			res="OK", res="FAIL", res="FAIL")
   381         -				if test "$res" = "OK"; then
   382         -					TERMLIB_DIR=-L${dir}
   383         -					if test "`(uname) 2>/dev/null`" = SunOS &&
   384         -						uname -r | grep '^5' >/dev/null; then
   385         -						TERMLIB_DIR_R="${TERMLIB_DIR} -R${dir}"
   386         -					fi
   387         -					TERMLIB=-l${tlib}
   388         -					break
   389         -				fi
   390         -			done
   391         -			if test "x${TERMLIB_DIR}" = "x"; then
   392         -				AC_MSG_RESULT(none of $libname is usable)
   393         -	        else
   394         -				break
          377  +	res="OK", res="FAIL", res="FAIL")
          378  +		if test "$res" = "OK"; then
          379  +			TERMLIB_DIR=-L${dir}
          380  +			if test "`(uname) 2>/dev/null`" = SunOS &&
          381  +				uname -r | grep '^5' >/dev/null; then
          382  +				TERMLIB_DIR_R="${TERMLIB_DIR} -R${dir}"
   395    383   			fi
          384  +			TERMLIB=-l${tlib}
          385  +			break
          386  +		fi
          387  +		if test "x${TERMLIB_DIR}" = "x"; then
          388  +			AC_MSG_RESULT($LIBS is unusable)
          389  +		else
          390  +			break
   396    391   		fi
   397    392   	done
   398    393   	if test "x${TERMLIB_DIR}" != "x"; then
   399    394   		break
   400    395   	fi
   401    396   done
   402    397   
................................................................................
   458    453   }],
   459    454       READLINE_VERSION=`cat conftestversion`
   460    455       AC_MSG_RESULT($READLINE_VERSION),
   461    456       AC_MSG_RESULT(failed),
   462    457       AC_MSG_RESULT(no cross compiling))
   463    458   
   464    459   
   465         -LIBS=$LIBS
   466         -
   467    460   
   468    461   
   469    462   # This is a test
   470    463   #AC_C_BIGENDIAN
   471    464   
   472    465   # TODO: check for readline version
   473    466   # (link testprogram with -lreadline)