r18485: include libreplace.m4 in the aclocal.m4 files
[ira/wip.git] / source4 / aclocal.m4
1
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
7   ac_cv_prog_gnu_ld=yes
8 else
9   ac_cv_prog_gnu_ld=no
10 fi])
11 ])
12
13 dnl Removes -I/usr/include/? from given variable
14 AC_DEFUN(CFLAGS_REMOVE_USR_INCLUDE,[
15   ac_new_flags=""
16   for i in [$]$1; do
17     case [$]i in
18     -I/usr/include|-I/usr/include/) ;;
19     *) ac_new_flags="[$]ac_new_flags [$]i" ;;
20     esac
21   done
22   $1=[$]ac_new_flags
23 ])
24     
25 dnl Removes -L/usr/lib/? from given variable
26 AC_DEFUN(LIB_REMOVE_USR_LIB,[
27   ac_new_flags=""
28   for i in [$]$1; do
29     case [$]i in
30     -L/usr/lib|-L/usr/lib/) ;;
31     *) ac_new_flags="[$]ac_new_flags [$]i" ;;
32     esac
33   done
34   $1=[$]ac_new_flags
35 ])
36
37 m4_include(lib/replace/libreplace.m4)
38 m4_include(build/m4/ax_cflags_gcc_option.m4)
39 m4_include(build/m4/ax_cflags_irix_option.m4)
40 m4_include(build/m4/public.m4)