Skip to content

Commit

Permalink
Fixes to allow compilation on older OS's (Centos 6).
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Fournier authored and YvanFournier committed Sep 22, 2019
1 parent 1f826cf commit fe53eff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
8 changes: 6 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,11 @@ if test "x$cs_have_dlloader" = "xyes" ; then

fi

# Use long global numbers ?
# Use RTLD_GLOBAL for dlopen ?

# Note setting enable_dlopen_rtld_global in the last statement is not
# useful on modern systems but avoids error due to empty else on Centos 6...

AC_ARG_ENABLE(dlopen-rtld-global,
[AS_HELP_STRING([--enable-dlopen-rtld-global], [add RTLD_GLOBAL to dlopen flags])],
[
Expand All @@ -656,7 +660,7 @@ AC_ARG_ENABLE(dlopen-rtld-global,
*) AC_MSG_ERROR([bad value ${enableval} for --enable-dlopen-rtld-global]) ;;
esac
],
[ ]
[ enable_dlopen_rtld_global=no ]
)

#------------------------------------------------------------------------------
Expand Down
9 changes: 1 addition & 8 deletions libple/sbin/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ case $cs_gettext_version in
0.17* | 0.18*)
cp -p configure.ac configure.ac.tmp
sed -e s/AM_GNU_GETTEXT_VERSION.*/AM_GNU_GETTEXT_VERSION\(\[$cs_gettext_version\]\)/g ./configure.ac.tmp > configure.ac
rm configure.ac.tmp
;;
*)
;;
Expand Down Expand Up @@ -80,13 +81,5 @@ else

fi

case $cs_gettext_version in
0.17* | 0.18*)
\mv configure.ac.tmp configure.ac
;;
*)
;;
esac

# Remove cache directory
\rm -rf autom4te.cache
9 changes: 1 addition & 8 deletions sbin/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ case $cs_gettext_version in
0.17* | 0.18*)
cp -p configure.ac configure.ac.tmp
sed -e s/AM_GNU_GETTEXT_VERSION.*/AM_GNU_GETTEXT_VERSION\(\[$cs_gettext_version\]\)/g ./configure.ac.tmp > configure.ac
rm configure.ac.tmp
;;
*)
;;
Expand Down Expand Up @@ -100,14 +101,6 @@ else

fi

case $cs_gettext_version in
0.17* | 0.18*)
\mv configure.ac.tmp configure.ac
;;
*)
;;
esac

# Remove cache directory
\rm -rf autom4te.cache

Expand Down

0 comments on commit fe53eff

Please sign in to comment.