3
3
dnl # the configure script if one is missing! #
4
4
dnl #------------------------------------------------------------------------#
6
AC_DEFUN(GND_PACKAGE_TCL,
9
AC_DEFUN([GND_PACKAGE_TCL],
37
40
if (test "${gnd_use_tcl_lib}" = "")
39
gnd_1st_tcl_lib_test="tcl8.4"
40
gnd_2nd_tcl_lib_test="tcl8.3"
41
gnd_3rd_tcl_lib_test="tcl8.0"
42
gnd_1st_tcl_lib_test="tcl"
43
gnd_2nd_tcl_lib_test="tcl8.6"
44
gnd_3rd_tcl_lib_test="tcl8.5"
43
46
gnd_1st_tcl_lib_test="${gnd_use_tcl_lib}"
44
gnd_2nd_tcl_lib_test="tcl8.4"
45
gnd_3rd_tcl_lib_test="tcl8.3"
47
gnd_2nd_tcl_lib_test="tcl"
48
gnd_3rd_tcl_lib_test="tcl8.6"
52
55
[AC_CHECK_LIB(${gnd_1st_tcl_lib_test},
54
LINK_TCL_LIBS="${gnd_tcl_lib_dir} -l${gnd_1st_tcl_lib_test} -lm -ldl",
57
LINK_TCL_LIBS="${gnd_tcl_lib_dir} -l${gnd_1st_tcl_lib_test}",
55
58
[AC_CHECK_LIB(${gnd_2nd_tcl_lib_test},
57
LINK_TCL_LIBS="${gnd_tcl_lib_dir} -l${gnd_2nd_tcl_lib_test} -lm -ldl",
60
LINK_TCL_LIBS="${gnd_tcl_lib_dir} -l${gnd_2nd_tcl_lib_test}",
58
61
[AC_CHECK_LIB(${gnd_3rd_tcl_lib_test},
60
LINK_TCL_LIBS="${gnd_tcl_lib_dir} -l${gnd_3rd_tcl_lib_test} -lm -ldl",
63
LINK_TCL_LIBS="${gnd_tcl_lib_dir} -l${gnd_3rd_tcl_lib_test}",
62
${gnd_tcl_lib_dir} -lm -ldl
64
${gnd_tcl_lib_dir} -lm -ldl
66
${gnd_tcl_lib_dir} -lm -ldl
93
96
LINK_TCL_INCL="${gnd_tcl_inc_dir}"
95
98
AC_MSG_RESULT("no")
101
AC_CHECK_HEADER(${gnd_1st_tcl_lib_test}/tcl.h, LINK_TCL_INCL="-I/usr/include/${gnd_1st_tcl_lib_test}";HAVE_TCL_INCL="y",
102
[ AC_CHECK_HEADER(${gnd_2nd_tcl_lib_test}/tcl.h, LINK_TCL_INCL="-I/usr/include/${gnd_2nd_tcl_lib_test}";HAVE_TCL_INCL="y",
103
[ AC_CHECK_HEADER(${gnd_3rd_tcl_lib_test}/tcl.h, LINK_TCL_INCL="-I/usr/include/${gnd_3rd_tcl_lib_test}";HAVE_TCL_INCL="y")
109
# gnd_1st_tcl_lib_test="tcl8.4"
110
# gnd_2nd_tcl_lib_test="tcl8.3"
111
# gnd_3rd_tcl_lib_test="tcl8.0"
100
113
if (test "${HAVE_TCL_LIBS}" = "y")
102
115
if (test "${HAVE_TCL_INCL}" = "y")
124
137
dnl # Checks if the ncurses package is installed: #
125
138
dnl #------------------------------------------------------------------------#
127
AC_DEFUN(GND_PACKAGE_NCURSES,
140
AC_DEFUN([GND_PACKAGE_NCURSES],
129
142
LINK_NCURSES_LIBS=""
130
143
LINK_NCURSES_INCL=""