Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
7762081d
Commit
7762081d
authored
Oct 22, 2018
by
Sergey Kosukhin
Committed by
Ralf Mueller
Nov 06, 2018
Browse files
Add a patch for libtool.m4.
parent
63924a97
Changes
2
Hide whitespace changes
Inline
Side-by-side
autogen.sh
View file @
7762081d
#!/bin/sh
autoreconf
-fvi
||
exit
$?
patch
-p
1
-i
patch/ltmain_sh.patch
-d
.
patch
-p
1
--no-backup-if-mismatch
--forward
-r
-
-i
patch/libtool_m4.patch
-d
.
# The program 'patch' exits with exitcode=1 if the patch has already been applied.
# Consider this a normal scenario:
exitcode
=
$?
;
if
test
$exitcode
-ne
0
&&
test
$exitcode
-ne
1
;
then
exit
$exitcode
;
fi
autoconf
-f
||
exit
$?
# Reset libtool.m4 timestamps to avoid confusing make
touch
-r
m4/ltversion.m4 m4/libtool.m4
||
exit
$?
patch
-p
1
--no-backup-if-mismatch
--forward
-r
-
-i
patch/ltmain_sh.patch
-d
.
exitcode
=
$?
;
if
test
$exitcode
-ne
0
&&
test
$exitcode
-ne
1
;
then
exit
$exitcode
;
fi
patch/libtool_m4.patch
0 → 100644
View file @
7762081d
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index a3bc337..28d0091 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -7532,10 +7532,11 @@
if AC_TRY_EVAL(ac_compile); then
case $prev$p in
-L* | -R* | -l*)
- # Some compilers place space between "-{L,R}" and the path.
+ # Some compilers place space between "-{L,R,l}" and the path (value).
# Remove the space.
- if test x-L = "$p" ||
- test x-R = "$p"; then
+ if test x-L = x"$p" ||
+ test x-R = x"$p" ||
+ test x-l = x"$p"; then
prev=$p
continue
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment