diff options
Diffstat (limited to 'm4/macros/os_ldflags.m4')
-rw-r--r-- | m4/macros/os_ldflags.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/m4/macros/os_ldflags.m4 b/m4/macros/os_ldflags.m4 new file mode 100644 index 0000000000000..a81972f3d2624 --- /dev/null +++ b/m4/macros/os_ldflags.m4 @@ -0,0 +1,22 @@ +dnl ###################################################################### +dnl Specify additional linker options based on the OS and the compiler +AC_DEFUN([AMU_OS_LDFLAGS], +[ +AC_CACHE_CHECK(additional linker flags, +ac_cv_os_ldflags, +[ +case "${host_os}" in + solaris2.7* | sunos5.7* ) + # find LDAP: off until Sun includes ldap headers. + case "${CC}" in + * ) + #ac_cv_os_ldflags="-L/usr/lib/fn" + ;; + esac + ;; + * ) ac_cv_os_ldflags="" ;; +esac +]) +LDFLAGS="$LDFLAGS $ac_cv_os_ldflags" +]) +dnl ====================================================================== |