diff options
author | Mișu Moldovan <dumol@chevah.com> | 2015-01-07 17:51:07 +0200 |
---|---|---|
committer | Mișu Moldovan <dumol@chevah.com> | 2015-01-07 17:51:07 +0200 |
commit | e1a5ddb3067f83563cb8a6b8ac4d0f58d4699262 (patch) | |
tree | 2f7f987a2c1352984cbb1e789f6bf432d4df4dce /configure.ac | |
parent | 58bf7d65d8896f198624c591cc31e6e01a09cc31 (diff) | |
download | libffi-e1a5ddb3067f83563cb8a6b8ac4d0f58d4699262.tar.gz |
Fix expr error in Solaris 10 when using gcc.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 2941cd7..4754c03 100644 --- a/configure.ac +++ b/configure.ac @@ -269,11 +269,13 @@ if test "x$GCC" = "xyes"; then if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then objdump -h conftest.o > conftest.dump 2>&1 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1` - libffi_test_line=`expr $libffi_eh_frame_line + 1`p - sed -n $libffi_test_line conftest.dump > conftest.line - if grep READONLY conftest.line > /dev/null; then - libffi_cv_ro_eh_frame=yes - fi + if test "x$libffi_eh_frame_line" != "x"; then + libffi_test_line=`expr $libffi_eh_frame_line + 1`p + sed -n $libffi_test_line conftest.dump > conftest.line + if grep READONLY conftest.line > /dev/null; then + libffi_cv_ro_eh_frame=yes + fi + fi fi rm -f conftest.* ]) |