summaryrefslogtreecommitdiff
blob: 73c5b184ca9fc0ec77a16ffc5a9504cc62eab106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
https://bugs.gentoo.org/739148

--- a/m4/libmaitretarot.m4
+++ b/m4/libmaitretarot.m4
@@ -9,10 +9,10 @@ AC_DEFUN([AM_LIB_MAITRETAROT],
   --with-libmaitretarot   path to libmaitretarot libraries,
       [ 
       	LIBMT_CFLAGS="-I${withval}/include"
-      	LIBMT_LIBS="-L${withval}/lib -lmaitretarot"
+      	LIBMT_LIBS="-L${withval}/${libdir} -lmaitretarot"
 	 ],[ 
-      	LIBMT_CFLAGS="-I/usr/local/include -I/usr/include"
-      	LIBMT_LIBS="-L/usr/local/lib -L/usr/lib -lmaitretarot"
+      	LIBMT_CFLAGS="-I/usr/include"
+      	LIBMT_LIBS="-L${libdir} -lmaitretarot"
 	 ])
  ac_save_CPPFLAGS="$CPPFLAGS"
  ac_save_CFLAGS="$CFLAGS"
--- a/m4/libmt_client.m4
+++ b/m4/libmt_client.m4
@@ -9,10 +9,10 @@ AC_DEFUN([AM_LIB_MT_CLIENT],
   --with-libmt_client   path to libmt_client libraries,
       [ 
       	LIBMT_CFLAGS="-I${withval}/include"
-      	LIBMT_LIBS="-L${withval}/lib -lmt_client"
+      	LIBMT_LIBS="-L${withval}/${libdir} -lmt_client"
 	 ],[ 
-      	LIBMT_CFLAGS="-I/usr/local/include -I/usr/include"
-      	LIBMT_LIBS="-L/usr/local/lib -L/usr/lib -lmt_client"
+      	LIBMT_CFLAGS="-I/usr/include"
+      	LIBMT_LIBS="-L${libdir} -lmt_client"
 	 ])
  ac_save_CPPFLAGS="$CPPFLAGS"
  ac_save_CFLAGS="$CFLAGS"