blob: 53a09fe39fb434551c246b635562a1b04a8c9e84 [file] [log] [blame] [raw]
#!/bin/sh
set -e
aclocal
libtoolize --force --copy --automake
automake -afc
autoconf
rm -f configure.new
sed -E -e "s/^([[:space:]]+)(hardcode_libdir_flag_spec[_a-zA-Z0-9]*=[\"'](\\\$(\\{wl\\}|wl)){0,1}(\\-{1,2}(rpath|blibpath|R)|\\+b ).+)/\\1#\\2/" -e "s/^([[:space:]]+)(runpath_var=[\"']{0,1}LD_RUN_PATH[\"']{0,1})/\\1#\\2/" -e 's/^([[:space:]]+)(hardcode_into_libs=yes)/\1#\2/' -e 's#( \-install_name )\\\$rpath/#\1#g' configure > configure.new
cat configure.new > configure
rm -f configure.new