- echo $$sinst $$program $(install_prefix)$(HACKDIR)/$$program ;\
- $$sinst $$program $(install_prefix)$(HACKDIR)/$$program ;\
+ instargs="$$program $(install_prefix)$(HACKDIR)/$$program" ; \
+ echo $$sinst $$instargs ; \
+ if $$sinst $$instargs ; then \
+ true ; \
+ elif [ @SETUID_HACKS@ = yes ]; then \
+ echo $(INSTALL_PROGRAM) $$instargs ; \
+ if $(INSTALL_PROGRAM) $$instargs ; then \
+ echo "" ; \
+ echo "WARNING: unable to install $$program setuid:" \
+ "installed non-setuid instead." ; \
+ echo "" ; \
+ else \
+ exit 1 ; \
+ fi ; \
+ else \
+ exit 1 ; \
+ fi ; \