ref: 067263c46f29b8f510ae97204f6d3c26c23b9068
parent: 96fee0c594a56963b78cbd5be0b49d16e755762c
author: Erik de Castro Lopo <[email protected]>
date: Mon Aug 15 15:05:12 EDT 2011
Improve installation of html docs.
--- a/configure.ac
+++ b/configure.ac
@@ -262,11 +262,21 @@
;;
esac
+htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
+
+if test $prefix = "NONE" ; then
+ htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html
+else
+ htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
+ fi
+
#====================================================================================
# Now use the information from the checking stage.
AC_DEFINE_UNQUOTED(OS_IS_WIN32, ${os_is_win32}, [Set to 1 if compiling for Win32])
+AC_SUBST(htmldocdir)
+
AC_SUBST(SHLIB_VERSION_ARG)
AC_SUBST(SHARED_VERSION_INFO)
AC_SUBST(OS_SPECIFIC_INCLUDES)
@@ -297,6 +307,10 @@
Configuration summary :
Version : ..................... ${VERSION}
+
+ Host CPU : .................... ${host_cpu}
+ Host Vendor : ................. ${host_vendor}
+ Host OS : ..................... ${host_os}
])
if test x$ac_cv_c_compiler_gnu = xyes ; then
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,5 +1,7 @@
-EXTRA_DIST = SRC.png SRC.css index.html license.html history.html download.html \
+htmldir = $(htmldocdir)
+html_DATA = SRC.png SRC.css index.html license.html history.html download.html \
lists.html quality.html win32.html faq.html api.html \
- api_simple.html api_callback.html api_full.html api_misc.html
-
+ api_simple.html api_callback.html api_full.html api_misc.html
+
+EXTRA_DIST = $(html_DATA)