summaryrefslogtreecommitdiff
path: root/libraries/CHOLMOD/autotoolize.diff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/CHOLMOD/autotoolize.diff')
-rw-r--r--libraries/CHOLMOD/autotoolize.diff130
1 files changed, 75 insertions, 55 deletions
diff --git a/libraries/CHOLMOD/autotoolize.diff b/libraries/CHOLMOD/autotoolize.diff
index e35f84125e..3bb7f6c8eb 100644
--- a/libraries/CHOLMOD/autotoolize.diff
+++ b/libraries/CHOLMOD/autotoolize.diff
@@ -3,7 +3,7 @@ new file mode 100644
--- /dev/null
+++ b/Check/Makefile.am
@@ -0,0 +1,24 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(UFCONFIG_CFLAGS)
+
+EXTRA_DIST = \
+ License.txt \
@@ -32,7 +32,7 @@ new file mode 100644
--- /dev/null
+++ b/Cholesky/Makefile.am
@@ -0,0 +1,41 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(COLAMD_CFLAGS) $(AMD_CFLAGS) $(UFCONFIG_CFLAGS)
+
+EXTRA_DIST = \
+ License.txt \
@@ -64,11 +64,11 @@ new file mode 100644
+ libcholesky.la
+
+libcholeskyi_la_SOURCES = $(CHOLESKYSRC)
-+libcholeskyi_la_LIBADD = -lcolamd -lamd -lm
++libcholeskyi_la_LIBADD = $(COLAMD_LIBS) $(AMD_LIBS) -lm
+libcholeskyi_la_CPPFLAGS = $(AM_CPPFLAGS)
+
+libcholeskyl_la_SOURCES = $(CHOLESKYSRC)
-+libcholeskyl_la_LIBADD = -lcolamd -lamd -lm
++libcholeskyl_la_LIBADD = $(COLAMD_LIBS) $(AMD_LIBS) -lm
+libcholeskyl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG
+
+libcholesky_la_SOURCES =
@@ -78,7 +78,7 @@ new file mode 100644
--- /dev/null
+++ b/Core/Makefile.am
@@ -0,0 +1,43 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(UFCONFIG_CFLAGS)
+
+EXTRA_DIST = \
+ License.txt \
@@ -126,7 +126,7 @@ new file mode 100644
--- /dev/null
+++ b/Demo/Makefile.am
@@ -0,0 +1,51 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(UFCONFIG_CFLAGS)
+
+EXTRA_DIST = \
+ License.txt \
@@ -421,16 +421,18 @@ diff --git a/Include/Makefile.am b/Include/Makefile.am
new file mode 100644
--- /dev/null
+++ b/Include/Makefile.am
-@@ -0,0 +1,40 @@
+@@ -0,0 +1,42 @@
+EXTRA_DIST = \
+ License.txt \
+ README.txt
+
++pkgincludedir = $(includedir)/cholmod
++
+# Automatically generated headers
-+nodist_include_HEADERS = \
++nodist_pkginclude_HEADERS = \
+ cholmod_config.h
+
-+include_HEADERS = \
++pkginclude_HEADERS = \
+ cholmod.h \
+ cholmod_blas.h \
+ cholmod_complexity.h \
@@ -440,27 +442,27 @@ new file mode 100644
+ cholmod_template.h
+
+if MOD_CHECK
-+include_HEADERS += cholmod_check.h
++pkginclude_HEADERS += cholmod_check.h
+endif
+
+if MOD_CHOLESKY
-+include_HEADERS += cholmod_cholesky.h
++pkginclude_HEADERS += cholmod_cholesky.h
+endif
+
+if MOD_PARTITION
-+include_HEADERS += cholmod_partition.h
++pkginclude_HEADERS += cholmod_partition.h
+endif
+
+if MOD_MATRIXOPS
-+include_HEADERS += cholmod_matrixops.h
++pkginclude_HEADERS += cholmod_matrixops.h
+endif
+
+if MOD_MODIFY
-+include_HEADERS += cholmod_modify.h
++pkginclude_HEADERS += cholmod_modify.h
+endif
+
+if MOD_SUPERNODAL
-+include_HEADERS += cholmod_supernodal.h
++pkginclude_HEADERS += cholmod_supernodal.h
+endif
diff --git a/Include/cholmod_config.h b/Include/cholmod_config.h.in
rename from Include/cholmod_config.h
@@ -514,15 +516,18 @@ diff --git a/Makefile.am b/Makefile.am
new file mode 100644
--- /dev/null
+++ b/Makefile.am
-@@ -0,0 +1,40 @@
+@@ -0,0 +1,43 @@
+SUBDIRS = Include Core
+EXTRA_DIST = README.txt
+
++pkgconfigdir = $(libdir)/pkgconfig
++pkgconfig_DATA = cholmod.pc
++
+lib_LTLIBRARIES = libcholmod.la
+
+libcholmod_la_SOURCES =
+libcholmod_la_LIBADD = $(top_builddir)/Core/libcore.la
-+libcholmod_la_LDFLAGS = -no-undefined -version-info 8:1:7
++libcholmod_la_LDFLAGS = -no-undefined -version-info 8:3:7
+
+if MOD_CHECK
+SUBDIRS += Check
@@ -560,7 +565,7 @@ new file mode 100644
--- /dev/null
+++ b/MatrixOps/Makefile.am
@@ -0,0 +1,35 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(UFCONFIG_CFLAGS)
+
+EXTRA_DIST = \
+ License.txt \
@@ -600,7 +605,7 @@ new file mode 100644
--- /dev/null
+++ b/Modify/Makefile.am
@@ -0,0 +1,30 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(UFCONFIG_CFLAGS)
+
+EXTRA_DIST = \
+ License.txt \
@@ -635,7 +640,7 @@ new file mode 100644
--- /dev/null
+++ b/Partition/Makefile.am
@@ -0,0 +1,28 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include $(METIS_CFLAGS)
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(METIS_CFLAGS) $(CCOLAMD_CFLAGS) $(CAMD_CFLAGS) $(UFCONFIG_CFLAGS)
+
+EXTRA_DIST = \
+ License.txt \
@@ -654,11 +659,11 @@ new file mode 100644
+ libpartition.la
+
+libpartitioni_la_SOURCES = $(PARTITIONSRC)
-+libpartitioni_la_LIBADD = $(METIS_LIBS) -lccolamd -lcamd -lm
++libpartitioni_la_LIBADD = $(METIS_LIBS) $(CCOLAMD_LIBS) $(CAMD_LIBS) -lm
+libpartitioni_la_CPPFLAGS = $(AM_CPPFLAGS)
+
+libpartitionl_la_SOURCES = $(PARTITIONSRC)
-+libpartitionl_la_LIBADD = $(METIS_LIBS) -lccolamd -lcamd -lm
++libpartitionl_la_LIBADD = $(METIS_LIBS) $(CCOLAMD_LIBS) $(CAMD_LIBS) -lm
+libpartitionl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG
+
+libpartition_la_SOURCES =
@@ -668,7 +673,7 @@ new file mode 100644
--- /dev/null
+++ b/Supernodal/Makefile.am
@@ -0,0 +1,30 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(UFCONFIG_CFLAGS)
+
+EXTRA_DIST = \
+ License.txt \
@@ -1032,13 +1037,30 @@ new file mode 100644
+ $2
+fi
+])dnl ACX_LAPACK
+diff --git a/cholmod.pc.in b/cholmod.pc.in
+new file mode 100644
+--- /dev/null
++++ b/cholmod.pc.in
+@@ -0,0 +1,12 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: @PACKAGE_NAME@
++Description: Sparse Cholesky factorization
++Version: @PACKAGE_VERSION@
++Requires.private: @CHOLMOD_REQUIRES@
++Libs: -L${libdir} -lcholmod
++Libs.private: @LAPACK_LIBS@ @BLAS_LIBS@ -lm
++Cflags: -I${includedir}/cholmod
diff --git a/configure.ac b/configure.ac
new file mode 100644
--- /dev/null
+++ b/configure.ac
-@@ -0,0 +1,179 @@
-+AC_PREREQ([2.65])
-+AC_INIT([CHOLMOD], [1.7.1], [davis@cise.ufl.edu])
+@@ -0,0 +1,177 @@
++AC_PREREQ([2.68])
++AC_INIT([CHOLMOD],[1.7.3],[davis@cise.ufl.edu])
+AC_CONFIG_SRCDIR([Core/cholmod_common.c])
+AC_CONFIG_HEADER([config.h])
+AM_INIT_AUTOMAKE([foreign])
@@ -1136,38 +1158,36 @@ new file mode 100644
+
+AC_CHECK_LIB([m], [sqrt])
+
++AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
++
++PKG_PROG_PKG_CONFIG
++PKG_CHECK_MODULES([UFCONFIG],[ufconfig],
++ [],
++ [AC_MSG_ERROR([cannot find ufconfig])])
++CHOLMOD_REQUIRES="ufconfig"
++
+if test "x$mod_cholesky" = "xyes"; then
-+ AC_CHECK_HEADERS([amd.h])
-+ AC_CHECK_LIB([amd], [amd_info],
-+ [],
-+ [AC_MSG_ERROR([cannot find libamd (required by mod-cholesky)])])
-+
-+ AC_CHECK_HEADERS([colamd.h])
-+ AC_CHECK_LIB([colamd], [colamd_recommended],
-+ [],
-+ [AC_MSG_ERROR([cannot find libcolamd (required by mod-cholesky)])])
++ PKG_CHECK_MODULES([AMD],[amd],
++ [CHOLMOD_REQUIRES="$CHOLMOD_REQUIRES amd"],
++ [AC_MSG_ERROR([cannot find amd (required by mod-cholesky)])])
++
++ PKG_CHECK_MODULES([COLAMD],[colamd],
++ [CHOLMOD_REQUIRES="$CHOLMOD_REQUIRES colamd"],
++ [AC_MSG_ERROR([cannot find colamd (required by mod-cholesky)])])
+fi
+
+if test "x$mod_partition" = "xyes"; then
-+ PKG_PROG_PKG_CONFIG
-+ if test -n "$PKG_CONFIG"; then
-+ PKG_CHECK_MODULES([METIS], [metis])
-+ else
-+ AC_CHECK_HEADERS([metis.h])
-+ AC_CHECK_LIB([metis], [METIS_NodeND],
-+ [METIS_LIBS=-lmetis],
-+ [AC_MSG_ERROR([cannot find libmetis (required by mod-partition)])])
-+ fi
++ PKG_CHECK_MODULES([METIS],[metis],
++ [CHOLMOD_REQUIRES="$CHOLMOD_REQUIRES metis"],
++ [AC_MSG_ERROR([cannot find metis (required by mod-partition)])])
+
-+ AC_CHECK_HEADERS([ccolamd.h])
-+ AC_CHECK_LIB([ccolamd], [ccolamd_report],
-+ [],
-+ [AC_MSG_ERROR([cannot find libccolamd (required by mod-partition)])])
++PKG_CHECK_MODULES([CAMD],[camd],
++ [CHOLMOD_REQUIRES="$CHOLMOD_REQUIRES camd"],
++ [AC_MSG_ERROR([cannot find camd (required by mod-partition)])])
+
-+ AC_CHECK_HEADERS([camd.h])
-+ AC_CHECK_LIB([camd], [camd_info],
-+ [],
-+ [AC_MSG_ERROR([cannot find libcamd (required by mod-partition)])])
++PKG_CHECK_MODULES([CCOLAMD],[ccolamd],
++ [CHOLMOD_REQUIRES="$CHOLMOD_REQUIRES ccolamd"],
++ [AC_MSG_ERROR([cannot find ccolamd (required by mod-partition)])])
+fi
+
+if test "x$mod_supernodal" = "xyes"; then
@@ -1184,9 +1204,6 @@ new file mode 100644
+ fi
+fi
+
-+AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
-+AC_CHECK_HEADERS([UFconfig.h])
-+
+AC_TYPE_SIZE_T
+
+AC_FUNC_MALLOC
@@ -1201,7 +1218,10 @@ new file mode 100644
+AM_CONDITIONAL([MOD_MODIFY], [test "x$mod_modify" = "xyes"])
+AM_CONDITIONAL([MOD_SUPERNODAL], [test "x$mod_supernodal" = "xyes"])
+
++AC_SUBST([CHOLMOD_REQUIRES])
++
+AC_CONFIG_FILES([
++ cholmod.pc
+ Makefile
+ Check/Makefile
+ Cholesky/Makefile