diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-05-27 02:25:33 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-05-27 02:25:33 +0000 |
commit | ce0f133679d1536162c8223ea12eb582bbcafa85 (patch) | |
tree | af82429ba5c83b3bf56645f9846e9482be8b71c9 /acinclude.m4 | |
parent | bcf196f0baf80fdb51b2df27e3d47a98291023ae (diff) |
Libtoolize and fix top level build.
Make cleanup.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 4395841f..33dbbcd2 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,13 +1,3 @@ -dnl Add directory level -AC_DEFUN( AC_ADD_DIRLEVEL, -[ - for i in $1; do - eval o=\$$i - o=`echo $o | sed 's#.\.\./#&../#g'` - eval $i=\$o - done -]) - dnl Test file AC_DEFUN( AC_TEST_FILE, [ @@ -52,6 +42,8 @@ AC_DEFUN( AC_SEARCH_HEADERS, AC_MSG_CHECKING("for $1") ac_hdr_found=no for p in $2; do + test -d $p || continue; + p=`cd $p && pwd` AC_TEST_FILES($1, $p, [ ac_hdr_found=yes @@ -79,6 +71,7 @@ AC_DEFUN( AC_SEARCH_LIB, ac_lib_found=no for p in $3; do test -d $p || continue; + p=`cd $p && pwd` # Check for libtool library if test -f $p/lib$1.la; then @@ -90,7 +83,7 @@ AC_DEFUN( AC_SEARCH_LIB, LDFLAGS="-L$path -l$1" AC_TRY_LINK_FUNC($2, [ - LIBS="$LIBS -L$path -l$1" + LIBS="$LIBS -L$p -l$1" ac_lib_found=yes break ] |