ARudik / phc

Automatically exported from code.google.com/p/phc
0 stars 0 forks source link

Darwin uses dylib not so #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. none required
2.
3.

What is the expected output? What do you see instead?
this seems to only affect boost during configure so far

What version of the product are you using? On what operating system?
0.3.0.1, OSX 10.7.4 (Darwin 11.4.0)

Please provide any additional information below.
this is my current patch to fix this for darwin.

Index: m4/ax_boost_regex.m4
===================================================================
--- a/m4/ax_boost_regex.m4      (revision 3418)
+++ b/m4/ax_boost_regex.m4      (working copy)
@@ -72,7 +72,7 @@
                        AC_DEFINE(HAVE_BOOST_REGEX,,[define if the Boost::Regex library is available])
             BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
             if test "x$ax_boost_user_regex_lib" = "x"; then
-                for libextension in `ls $BOOSTLIBDIR/libboost_regex*.{so,a}* 
2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 
's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
+                for libextension in `ls 
$BOOSTLIBDIR/libboost_regex*.{dylib,so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 
's;^lib\(boost_regex.*\)\.dylib$;\1;' -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' 
-e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
                      ax_lib=${libextension}
                                    AC_CHECK_LIB($ax_lib, exit,
                                  [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break],

Original issue reported on code.google.com by the...@gmail.com on 19 Jun 2012 at 3:04

GoogleCodeExporter commented 9 years ago
Can you submit this as a pull request to https://github.com/pbiggar/phc?

Original comment by paul.biggar on 19 Jun 2012 at 4:49

GoogleCodeExporter commented 9 years ago
m4/ax_boost_regex.m4 doesn't seem to exist in https://github.com/pbiggar/phc?

Original comment by the...@gmail.com on 19 Jun 2012 at 5:10

GoogleCodeExporter commented 9 years ago
Oh, that's an upstream package, I think autoconf-archive. We probably havent 
updated that in years, maybe this change has been incorporated already?

Original comment by paul.biggar on 19 Jun 2012 at 5:31

GoogleCodeExporter commented 9 years ago
it's possible I'll see if I can find it upstream and see what it's state is

Original comment by the...@gmail.com on 19 Jun 2012 at 5:32

GoogleCodeExporter commented 9 years ago
yes according to 
http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob;f=m4/ax_boost_
regex.m4;hb=HEAD

this is already done upstream and should be updated at next release.

Original comment by the...@gmail.com on 19 Jun 2012 at 5:38

GoogleCodeExporter commented 9 years ago
I think I once tried to include the packages we use from autoconf-archive into 
the m4 directory. Are there some packages in there? If so, we should upgrade 
these packages in the phc repository.

Original comment by paul.biggar on 19 Jun 2012 at 5:44

GoogleCodeExporter commented 9 years ago
it looks like phc uses ax_boost_base.m4, ax_boost_regex.m4, ax_lib_xerces.m4 so 
those may all need to get updates though only ax_boost_regex.m4 is giving me 
configure problems on darwin currently.

Original comment by the...@gmail.com on 19 Jun 2012 at 5:58

GoogleCodeExporter commented 9 years ago
that seems right. You should just copy them into the m4 directory in the repo :)

Original comment by paul.biggar on 19 Jun 2012 at 6:40

GoogleCodeExporter commented 9 years ago
I'll add them in and give you a pull request

Original comment by the...@gmail.com on 19 Jun 2012 at 7:38