]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
macos: Search in the new ARM homebrew location by default
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 May 2023 23:18:24 +0000 (19:18 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 May 2023 23:18:24 +0000 (19:18 -0400)
m4/ax_smart_try.m4

index ae78170b39c4a6b7e428411f074200e90b7ff3d7..642000c909b411b65fe7a900926bd030fb089bb6 100644 (file)
@@ -54,7 +54,7 @@ old_LIBS="$LIBS"
 old_CPPFLAGS="$CPPFLAGS"
 smart_lib=
 smart_ldflags=
-smart_lib_dir="/usr/local/lib /opt/lib"
+smart_lib_dir="/usr/local/lib /opt/lib /opt/homebrew/lib"
 
 dnl #
 dnl #  Try first any user-specified directory, otherwise we may pick up
@@ -69,6 +69,7 @@ for try in $smart_try_dir; do
                 [
                   smart_lib="-l$1"
                   smart_ldflags="-L$try -Wl,-rpath,$try"
+                  smart_ld_found="$try"
                   AC_MSG_RESULT(yes)
                   break
                 ],
@@ -136,7 +137,7 @@ ac_safe=`echo "$1" | sed 'y%./+-%__pm%'`
 old_CPPFLAGS="$CPPFLAGS"
 smart_include=
 dnl #  The default directories we search in (in addition to the compilers search path)
-smart_include_dir="/usr/local/include /opt/include"
+smart_include_dir="/usr/local/include /opt/include /opt/homebrew/include"
 
 dnl #  Our local versions
 _smart_try_dir=