Error-log-1:
configure: error: cannot run test program while cross compiling
See `config.log' for more details

Error-log-2:
/usr/bin/install -c  bonnie++ zcav getc_putc getc_putc_helper /usr/sbin
/usr/bin/install: cannot create regular file ‘/usr/sbin/bonnie++’: Permission denied
---
 Makefile.in  | 14 +++++++-------
 configure    | 24 +++++++++++-------------
 3 files changed, 19 insertions(+), 21 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 4f14819..731c8d0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -52,15 +52,15 @@ generate_randfile: generate_randfile.o
 	$(LINK) generate_randfile.o -o generate_randfile
 
 install-bin: $(EXE) $(EXES)
-	mkdir -p $(eprefix)/bin $(eprefix)/sbin
-	@INSTALL_PROGRAM@ @stripping@ $(EXES) $(eprefix)/sbin
-	@INSTALL_PROGRAM@ @stripping@ $(EXE) $(eprefix)/bin
-	@INSTALL_SCRIPT@ $(SCRIPTS) $(eprefix)/bin
+	mkdir -p $(DESTDIR)$(eprefix)/bin $(DESTDIR)$(eprefix)/sbin
+	@INSTALL_PROGRAM@ @stripping@ $(EXES) $(DESTDIR)$(eprefix)/sbin
+	@INSTALL_PROGRAM@ @stripping@ $(EXE) $(DESTDIR)$(eprefix)/bin
+	@INSTALL_SCRIPT@ $(SCRIPTS) $(DESTDIR)$(eprefix)/bin
 
 install: install-bin
-	mkdir -p @mandir@/man1 @mandir@/man8
-	@INSTALL_DATA@ $(MAN1) @mandir@/man1
-	@INSTALL_DATA@ $(MAN8) @mandir@/man8
+	mkdir -p $(DESTDIR)@mandir@/man1 $(DESTDIR)@mandir@/man8
+	@INSTALL_DATA@ $(MAN1) $(DESTDIR)@mandir@/man1
+	@INSTALL_DATA@ $(MAN8) $(DESTDIR)@mandir@/man8
 
 %.o: %.cpp
 	$(CXX) -c $<
diff --git a/configure b/configure
index b504d56..33d37bb 100755
--- a/configure
+++ b/configure
@@ -3991,13 +3991,7 @@ rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
 
 
-if test "$cross_compiling" = yes; then :
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #ifndef _LARGEFILE64_SOURCE
 #define _LARGEFILE64_SOURCE
@@ -4035,14 +4029,18 @@ int main () {
   close(fd);
   return 0;
 }
+int
+main ()
+{
+large_file="yes"
+  ;
+  return 0;
+}
 _ACEOF
-if ac_fn_cxx_try_run "$LINENO"; then :
-  large_file="yes"
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
+if ac_fn_cxx_try_compile "$LINENO"; then :
 
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 if [ -n "$large_file" ]; then
    large_file="#define _LARGEFILE64_SOURCE"
 fi
-- 
2.17.1

