diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-01-29 21:33:57 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-01-29 21:33:57 +0900 |
| commit | 2ba2511dd5b9fd41f6d9b5672408fbcc56a6a5a2 (patch) | |
| tree | 1a760768de3f5a8d3d81586558f973ae91ed1740 /configure.ac | |
| parent | b49a558c4ef5ac4e45923ca36b5d950a896d255d (diff) | |
Check presence of ar.
This change allows configure to find appropriate ar at cross compile.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b83b7bac..e2f8e2cb 100644 --- a/configure.ac +++ b/configure.ac @@ -45,6 +45,12 @@ AC_PROG_MKDIR_P AC_PROG_RANLIB AC_PROG_YACC +AC_CHECK_TOOL([AR], [ar], [:]) +if test "x$AR" = "x:"; then + AC_MSG_FAILURE([ar is not found in the system.]) +fi +AC_SUBST([AR]) + AC_PATH_PROG([A2X], [a2x]) AC_SUBST([A2X]) AM_CONDITIONAL([HAVE_A2X], [ test "x$A2X" != "x" ]) |
