[PATCH] configure.ac relative paths handling

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] configure.ac relative paths handling

CELLERIER A      DsigMis
Hello,

Attached is a small patch to configure.ac so that relative paths with the --with-boost-include and --with-boost-lib work.

Regards,

--
Antoine Cellerier


=======================================================

Ce message et toutes les pieces jointes (ci-apres le "message")
sont confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
                               
=======================================================

This message and any attachments (the "message") are confidential
and intended solely for the addressees.
Any unauthorized use or dissemination is prohibited.
E-mails are susceptible to alteration.  
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall be liable for the message if altered, changed or falsified.

=======================================================


configure.ac.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[PATCH] configure.ac relative paths handling

CELLERIER A      DsigMis
(Sorry if this message was already received by some of you but i don't think that it ever made it to the mailing list)

Here is a small patch to configure.ac so that relative paths with the
--with-boost-include and --with-boost-lib work.

Regards,

--
Antoine Cellerier

--- tmp/QuantLib-0.3.10/configure.ac 2005-03-18 10:13:20.000000000 +0100
+++ QuantLib-0.3.10/configure.ac 2005-08-11 15:03:07.673856400 +0200
@@ -36,7 +36,7 @@
 AC_ARG_WITH([boost-include],
             AC_HELP_STRING([--with-boost-include=INCLUDE_PATH],
                            [Supply the location of Boost header files]),
-            [ql_boost_include_path=$withval],
+            [ql_boost_include_path="`cd ${withval} 2>/dev/null && pwd`"],
             [ql_boost_include_path=""])
 if test [ -n "$ql_boost_include_path" ] ; then
    AC_SUBST([CPPFLAGS],["${CPPFLAGS} -I${ql_boost_include_path}"])
@@ -44,7 +44,7 @@
 AC_ARG_WITH([boost-lib],
             AC_HELP_STRING([--with-boost-lib=LIB_PATH],
                            [Supply the location of Boost libraries]),
-            [ql_boost_lib_path=$withval],
+            [ql_boost_lib_path="`cd ${withval} 2>/dev/null && pwd`"],
             [ql_boost_lib_path=""])
 if test [ -n "$ql_boost_lib_path" ] ; then
    AC_SUBST([LDFLAGS],["${LDFLAGS} -L${ql_boost_lib_path}"])


=======================================================

Ce message et toutes les pieces jointes (ci-apres le "message")
sont confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
                               
=======================================================

This message and any attachments (the "message") are confidential
and intended solely for the addressees.
Any unauthorized use or dissemination is prohibited.
E-mails are susceptible to alteration.  
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall be liable for the message if altered, changed or falsified.

=======================================================