projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd6a380
)
Fix the Autoconf test for getopt_long replacement.
author
Lasse Collin
<lasse.collin@tukaani.org>
Sun, 1 Mar 2009 06:58:41 +0000
(08:58 +0200)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Sun, 1 Mar 2009 06:58:41 +0000
(08:58 +0200)
It was broken by
e114502b2bc371e4a45449832cb69be036360722
.
m4/getopt.m4
patch
|
blob
|
history
diff --git
a/m4/getopt.m4
b/m4/getopt.m4
index
ffba95e
..
cfbe40f
100644
(file)
--- a/
m4/getopt.m4
+++ b/
m4/getopt.m4
@@
-30,6
+30,10
@@
AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h])
fi
+ if test -z "$GETOPT_H"; then
+ AC_CHECK_FUNCS([getopt_long], [], [GETOPT_H=getopt.h])
+ fi
+
dnl BSD getopt_long uses a way to reset option processing, that is different
dnl from GNU and Solaris (which copied the GNU behavior). We support both
dnl GNU and BSD style resetting of getopt_long(), so there's no need to use