mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 10:54:07 +08:00
re PR libgomp/30546 (build fail in libgomp when building from SVN because makeinfo is missing)
2007-01-31 Daniel Franke <franke.daniel@gmail.com> PR libgomp/30546 * acx.m4 (ACX_PROG_CHECK_VER): Locate a program and check that its version is acceptable. From-SVN: r121439
This commit is contained in:
parent
d36114b201
commit
758a2c9633
@ -1,3 +1,9 @@
|
|||||||
|
2007-01-31 Daniel Franke <franke.daniel@gmail.com>
|
||||||
|
|
||||||
|
PR libgomp/30546
|
||||||
|
* acx.m4 (ACX_PROG_CHECK_VER): Locate a program and check that its
|
||||||
|
version is acceptable.
|
||||||
|
|
||||||
2007-01-27 Paolo Bonzini <bonzini@gnu.org>
|
2007-01-27 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
* depstand.m4 (ZW_CREATE_DEPDIR): Use mkinstalldirs to make
|
* depstand.m4 (ZW_CREATE_DEPDIR): Use mkinstalldirs to make
|
||||||
|
@ -491,3 +491,31 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AC_SUBST($2)])
|
AC_SUBST($2)])
|
||||||
|
|
||||||
|
|
||||||
|
dnl Locate a program and check that its version is acceptable.
|
||||||
|
dnl ACX_PROG_CHECK_VER(var, name, version-switch,
|
||||||
|
dnl version-extract-regexp, version-glob)
|
||||||
|
AC_DEFUN([ACX_CHECK_PROG_VER],[
|
||||||
|
AC_CHECK_PROG([$1], [$2], [$2])
|
||||||
|
if test -n "[$]$1"; then
|
||||||
|
# Found it, now check the version.
|
||||||
|
AC_CACHE_CHECK([for modern $2],
|
||||||
|
[gcc_cv_prog_$2_modern],
|
||||||
|
[ac_prog_version=`eval [$]$1 $3 2>&1 |
|
||||||
|
sed -n 's/^.*patsubst([[$4]],/,\/).*$/\1/p'`
|
||||||
|
|
||||||
|
[case $ac_prog_version in
|
||||||
|
'') gcc_cv_prog_$2_modern=no;;
|
||||||
|
$5) gcc_cv_prog_$2_modern=yes;;
|
||||||
|
*) gcc_cv_prog_$2_modern=no;;
|
||||||
|
esac]
|
||||||
|
|
||||||
|
if test $gcc_cv_prog_$2_modern = no; then
|
||||||
|
$1="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing $2"
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
else
|
||||||
|
gcc_cv_prog_$2_modern=no
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user