Source: fitsh
Version: 0.9.2-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

fitsh fails to cross build from source, because its configure script
detects the build architecture linker using AC_CHECK_PROG. It should be
using AC_CHECK_TOOL for ld instead. Please consider applying the
attached patch.

Helmut
--- fitsh-0.9.2.orig/configure.ac
+++ fitsh-0.9.2/configure.ac
@@ -263,8 +263,11 @@
 AC_CHECK_PROG(ac_prog_ar,$AR,$AR,false)
 
 # check linker:
-test -n "$LD" || LD=ld
-AC_CHECK_PROG(ac_prog_ld,$LD,$LD,false)
+AS_IF([test -n "$LD"],[
+  AC_CHECK_PROG(ac_prog_ld,$LD,$LD,false)
+],[
+  AC_CHECK_TOOL(ac_prog_ld,ld,false)
+])
 
 # check ranlib:
 test -n "$RANLIB" || RANLIB=ranlib

Reply via email to