2
dnl Copied from libtool.m4
3
AC_DEFUN(AC_PROG_LD_GNU,
4
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
5
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
6
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13
dnl Removes -I/usr/include/? from given variable
14
AC_DEFUN(CFLAGS_REMOVE_USR_INCLUDE,[
18
-I/usr/include|-I/usr/include/) ;;
19
*) ac_new_flags="[$]ac_new_flags [$]i" ;;
25
dnl Removes '-L/usr/lib[/]', '-Wl,-rpath,/usr/lib[/]'
26
dnl and '-Wl,-rpath -Wl,/usr/lib[/]' from given variable
27
AC_DEFUN(LIB_REMOVE_USR_LIB,[
36
-Wl,-rpath,/usr/lib) l="";;
37
-Wl,-rpath,/usr/lib/) l="";;
38
-Wl,-rpath,/usr/lib64) l="";;
39
-Wl,-rpath,/usr/lib64/) l="";;
41
-Wl,-rpath-Wl,/usr/lib) l="";;
42
-Wl,-rpath-Wl,/usr/lib/) l="";;
43
-Wl,-rpath-Wl,/usr/lib64) l="";;
44
-Wl,-rpath-Wl,/usr/lib64/) l="";;
47
if test x"[$]ac_new_flags" = x""; then
50
if test x"[$]l" = x""; then
51
ac_new_flags="[$]ac_new_flags[$]s[$]i";
53
ac_new_flags="[$]ac_new_flags[$]s[$]l [$]i";
62
m4_include(../lib/replace/libreplace.m4)
63
m4_include(build/m4/ax_cflags_gcc_option.m4)
64
m4_include(build/m4/ax_cflags_irix_option.m4)
65
m4_include(build/m4/public.m4)