patch-configure_ac 790 B

1234567891011121314151617181920212223
  1. --- libtirpc-1.0.1.orig/configure.ac 2015-10-30 16:15:14.000000000 +0100
  2. +++ libtirpc-1.0.1/configure.ac 2015-11-29 16:38:38.817971632 +0100
  3. @@ -89,7 +89,19 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h li
  4. AC_CHECK_LIB([pthread], [pthread_create])
  5. AC_CHECK_FUNCS([getrpcbyname getrpcbynumber setrpcent endrpcent getrpcent])
  6. -AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])
  7. +AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
  8. +
  9. +AC_MSG_CHECKING([for a C compiler for build tools])
  10. +if test $cross_compiling = yes; then
  11. + AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
  12. +else
  13. + CC_FOR_BUILD=$CC
  14. +fi
  15. +AC_MSG_RESULT([$CC_FOR_BUILD])
  16. +AC_SUBST(CC_FOR_BUILD)
  17. +
  18. +AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile rpcgen/Makefile])
  19. +
  20. AC_OUTPUT(libtirpc.pc)