Allow WX_PATH_FIND_INCLUDES and WX_PATH_FIND_LIBRARIES to accept symlinks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell 2005-09-19 19:57:41 +00:00
parent c5044ee808
commit 0feb044436

View File

@ -35,7 +35,8 @@ AC_DEFUN([WX_PATH_FIND_INCLUDES],
ac_find_includes=
for ac_dir in $1 /usr/include;
do
if test -f "$ac_dir/$2"; then
wx_ac_hdr="$ac_dir/$2"
if test -f "$wx_ac_hdr" -o -h "$wx_ac_hdr"; then
ac_find_includes=$ac_dir
break
fi
@ -52,7 +53,8 @@ AC_DEFUN([WX_PATH_FIND_LIBRARIES],
for ac_dir in $1;
do
for ac_extension in a so sl dylib dll.a; do
if test -f "$ac_dir/lib$2.$ac_extension"; then
wx_ac_lib="$ac_dir/lib$2.$ac_extension"
if test -f "$wx_ac_lib" -o -h "$wx_ac_lib"; then
ac_find_libraries=$ac_dir
break 2
fi