windytan / redsea

Command-line FM-RDS decoder with JSON output.
MIT License
390 stars 36 forks source link

MACPORTS check breaks cross compile #57

Closed athoik closed 6 years ago

athoik commented 6 years ago

Hi @windytan,

When cross compiling it is not possible to check the for MACPORTS LD and CF.

checking for /opt/local/lib... configure: error: cannot check for file existence when cross compiling

Currently in order to build redsea for ARM or MIPS I have to disable the check.

--- a/configure.ac
+++ b/configure.ac
@@ -36,12 +36,7 @@ AS_IF([test "x$with_liquid" != xno],
        [Could not find liquid-dsp (use --without-liquid to disable)])])])

 MACPORTS_LD=
-AC_CHECK_FILE(/opt/local/lib,
-  [AC_SUBST([MACPORTS_LD], ["-L/opt/local/lib"])])
-
 MACPORTS_CF=
-AC_CHECK_FILE(`,
-  [AC_SUBST([MACPORTS_CF], ["-I/opt/local/include"])])

 SNDFILE=
 AS_IF([test "x$with_sndfile" != xno],

Could you please add an option to search for MACPORTS (eg --with-macports ) and check only when enabled?

Thanks, Athanasios

windytan commented 6 years ago

Hi, you can now use the configure option --without-macports to disable this directory check.

athoik commented 6 years ago

Works great! Thanks!