diff options
Diffstat (limited to 'intl')
-rw-r--r-- | intl/configure.ac | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/intl/configure.ac b/intl/configure.ac index 77e2fd2..a5fc45b 100644 --- a/intl/configure.ac +++ b/intl/configure.ac @@ -73,5 +73,26 @@ fi AC_SUBST(BISON3_YES) AC_SUBST(BISON3_NO) +# Enable --enable-host-shared. +AC_ARG_ENABLE(host-shared, +[AS_HELP_STRING([--enable-host-shared], + [build host code as shared libraries])]) +AC_SUBST(enable_host_shared) + +# Enable --enable-host-pie. +AC_ARG_ENABLE(host-pie, +[AS_HELP_STRING([--enable-host-pie], + [build host code as PIE])]) +AC_SUBST(enable_host_pie) + +if test x$enable_host_shared = xyes; then + PICFLAG=-fPIC +elif test x$enable_host_pie = xyes; then + PICFLAG=-fPIE +else + PICFLAG= +fi +AC_SUBST(PICFLAG) + AC_CONFIG_FILES(Makefile config.intl) AC_OUTPUT |