1
2
3
4
5
6
7
8
9
10
|
# -*- autoconf -*-
# FILE: "/home/joze/src/tclreadline/configure.in"
# LAST MODIFICATION: "Mon Aug 23 21:54:31 1999 (joze)"
# (C) 1998, 1999 by Johannes Zellner, <johannes@zellner.org>
# $Id$
# ---
#
# tclreadline -- gnu readline for tcl
# Copyright (C) 1999 Johannes Zellner
#
|
|
|
|
1
2
3
4
5
6
7
8
9
10
|
# -*- autoconf -*-
# FILE: "/diska/home/joze/src/tclreadline/configure.in"
# LAST MODIFICATION: "Wed Aug 25 16:17:27 1999 (joze)"
# (C) 1998, 1999 by Johannes Zellner, <johannes@zellner.org>
# $Id$
# ---
#
# tclreadline -- gnu readline for tcl
# Copyright (C) 1999 Johannes Zellner
#
|
︙ | | | ︙ | |
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
AC_REVISION($Revision$)
AC_INIT(tclreadline.c)
TCLREADLINE_MAJOR_VERSION=0
TCLREADLINE_MINOR_VERSION=9
TCLREADLINE_VERSION=$TCLREADLINE_MAJOR_VERSION.$TCLREADLINE_MINOR_VERSION
VERSION=$TCLREADLINE_VERSION
AC_PREREQ(2.13)
AC_CONFIG_AUX_DIR(./aux)
AC_CANONICAL_HOST
|
>
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
AC_REVISION($Revision$)
AC_INIT(tclreadline.c)
TCLREADLINE_MAJOR_VERSION=0
TCLREADLINE_MINOR_VERSION=9
TCLREADLINE_PATCHLEVEL=1
TCLREADLINE_VERSION=$TCLREADLINE_MAJOR_VERSION.$TCLREADLINE_MINOR_VERSION
VERSION=$TCLREADLINE_VERSION
AC_PREREQ(2.13)
AC_CONFIG_AUX_DIR(./aux)
AC_CANONICAL_HOST
|
︙ | | | ︙ | |
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
|
if test -z "$READLINE_LIB_DIR"; then
AC_MSG_ERROR([
Can't find libreadline$SHLIB_SUFFIX.
Use --with-readline-library to specify the directory
containing libreadline$SHLIB_SUFFIX on your system.])
else
AC_MSG_RESULT({READLINE_LIB_DIR}/libreadline${SHLIB_SUFFIX}${READLINE_VERSION_SUFFIX})
fi
# ---
# check, if curses or termcap is already
# linked with libreadline. (on newer Linux
|
|
|
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
|
if test -z "$READLINE_LIB_DIR"; then
AC_MSG_ERROR([
Can't find libreadline$SHLIB_SUFFIX.
Use --with-readline-library to specify the directory
containing libreadline$SHLIB_SUFFIX on your system.])
else
AC_MSG_RESULT(${READLINE_LIB_DIR}/libreadline${SHLIB_SUFFIX}${READLINE_VERSION_SUFFIX})
fi
# ---
# check, if curses or termcap is already
# linked with libreadline. (on newer Linux
|
︙ | | | ︙ | |
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
|
#--------------------------------------------------------------------
# Check for appropriate version of gnu readline
# (older versions of gnu readline don't have
# rl_callback_read_char ()).
#--------------------------------------------------------------------
save=$LIBS
LIBS="-L$READLINE_LIB_DIR -lreadline"
alternate=no
AC_CHECK_LIB(
readline, rl_callback_read_char, alternate=yes, alternate=no, $TERM_LIB
)
if test "$alternate" = "no"; then
AC_MSG_ERROR(alternate interface not supported by this readline version.)
fi
AC_MSG_CHECKING([for the readline version number])
|
|
|
|
|
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
|
#--------------------------------------------------------------------
# Check for appropriate version of gnu readline
# (older versions of gnu readline don't have
# rl_callback_read_char ()).
#--------------------------------------------------------------------
save=$LIBS
LIBS="-L$READLINE_LIB_DIR -lreadline $TERM_LIB"
alternate=no
AC_CHECK_FUNC(
rl_callback_read_char, alternate=yes, alternate=no
)
if test "$alternate" = "no"; then
AC_MSG_ERROR(alternate interface not supported by this readline version.)
fi
AC_MSG_CHECKING([for the readline version number])
|
︙ | | | ︙ | |
412
413
414
415
416
417
418
419
420
421
422
423
424
425
|
# TODO: check for readline version
# (link testprogram with -lreadline)
AC_SUBST(TCLREADLINE_MAJOR_VERSION)
AC_SUBST(TCLREADLINE_MINOR_VERSION)
AC_SUBST(TCLREADLINE_VERSION)
AC_SUBST(TCL_LIB_DIR)
AC_SUBST(TCL_INCLUDE_DIR)
AC_SUBST(READLINE_INCLUDE_DIR)
AC_SUBST(CFLAGS)
AC_SUBST(DL_LIBS)
|
>
|
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
|
# TODO: check for readline version
# (link testprogram with -lreadline)
AC_SUBST(TCLREADLINE_MAJOR_VERSION)
AC_SUBST(TCLREADLINE_MINOR_VERSION)
AC_SUBST(TCLREADLINE_VERSION)
AC_SUBST(TCLREADLINE_PATCHLEVEL)
AC_SUBST(TCL_LIB_DIR)
AC_SUBST(TCL_INCLUDE_DIR)
AC_SUBST(READLINE_INCLUDE_DIR)
AC_SUBST(CFLAGS)
AC_SUBST(DL_LIBS)
|
︙ | | | ︙ | |