Dear developers,
building the glpk package for cygwin I always had problem
with autoreconf as autoheader complains of missing template for
HAVE_GMP, HAVE_ZLIB, HAVE_LTDL, HAVE_DLFCN, ODBC_DLNAME],
MYSQL_DLNAME.
The attached patch solve the issue and also allow me
the building in a separate directory from src directory.
The last portion is probably eccessive
**************************************************
lib_LTLIBRARIES = libglpk.la
-libglpk_la_LDFLAGS = -version-info 21:0:21 \
--export-symbols-regex '^(glp_|_glp_lpx_).*'
+libglpk_la_LDFLAGS = -version-info 21:0:21
libglpk_la_SOURCES = \
glpapi01.c
**************************************************
but the regex is cutting two functions
currently used by octave (www.octave.org)
void _glp_lib_print_hook (int (*func)(void *info, char *buf), void *info);
void _glp_lib_fault_hook (int (*func)(void *info, char *buf), void *info);
is it possible to have these two functions exported
as in the past ?
Thanks
Marco Atzeri
volunteer gplk and octave cygwin maintainer
--- origsrc/glpk-4.36/Makefile.am 2009-02-06 10:00:00.000000000 +0100
+++ src/glpk-4.36/Makefile.am 2009-03-24 14:12:09.699097700 +0100
@@ -1,5 +1,7 @@
## Process this file with automake to produce Makefile.in ##
+ACLOCAL_AMFLAGS=-I m4
+
SUBDIRS = include src examples
## eof ##
--- origsrc/glpk-4.36/configure.ac 2009-02-06 10:00:00.000000000 +0100
+++ src/glpk-4.36/configure.ac 2009-03-24 14:32:55.434432100 +0100
@@ -1,11 +1,19 @@
dnl Process this file with autoconf to produce a configure script
AC_INIT([GLPK], [4.36], [[email protected]])
+AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([include/glpk.h])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])
+AH_TEMPLATE([HAVE_GMP], [], [GMP lib])
+AH_TEMPLATE([HAVE_ZLIB], [], [ZLIB lib])
+AH_TEMPLATE([HAVE_LTDL], [], [LTDL lib])
+AH_TEMPLATE([HAVE_DLFCN], [], [DLFCN lib])
+AH_TEMPLATE([ODBC_DLNAME], [], [OBDC dlname])
+AH_TEMPLATE([MYSQL_DLNAME], [], [MYSQL dlname])
+
AC_ARG_WITH(gmp,
AC_HELP_STRING([--with-gmp],
[use GNU MP bignum library [[default=no]]]),
--- origsrc/glpk-4.36/examples/Makefile.am 2009-02-06 10:00:00.000000000 +0100
+++ src/glpk-4.36/examples/Makefile.am 2009-03-24 14:58:34.602908900 +0100
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in ##
-INCLUDES = -I../include
+INCLUDES = -I$(srcdir)/../include
LDADD = ../src/libglpk.la
@@ -10,6 +10,6 @@ glpsol_SOURCES = glpsol.c
check: glpsol$(EXEEXT)
./glpsol$(EXEEXT) --version
- ./glpsol$(EXEEXT) --mps ./plan.mps
+ ./glpsol$(EXEEXT) --mps $(srcdir)/plan.mps
## eof ##
--- origsrc/glpk-4.36/src/Makefile.am 2009-02-06 10:00:00.000000000 +0100
+++ src/glpk-4.36/src/Makefile.am 2009-03-24 14:52:36.854796900 +0100
@@ -1,11 +1,10 @@
## Process this file with automake to produce Makefile.in ##
-INCLUDES = -I../include
+INCLUDES = -I$(srcdir)/../include
lib_LTLIBRARIES = libglpk.la
-libglpk_la_LDFLAGS = -version-info 21:0:21 \
--export-symbols-regex '^(glp_|_glp_lpx_).*'
+libglpk_la_LDFLAGS = -version-info 21:0:21
libglpk_la_SOURCES = \
glpapi01.c \
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk