## ## Makefile.apxs -- Feature test procedures for mod_ftp Apache module ## ## Do not use this target; ./configure.apxs from the mod_ftp dir root ## # top_builddir and top_srcdir are misnomers, because build/*.mk # scripts expect it them be the parent of the build directory, # and fail to trust the installbuilddir. exp_installbuilddir=$(shell $(APXS) -q exp_installbuilddir) top_srcdir=$(installbuilddir)/.. top_builddir=$(installbuilddir)/.. ftp_builddir=.. ftp_srcdir=.. builddir=. srcdir=. CLEAN_TARGETS = conftest_fchmod.c \ conftest_arpa_ftp_h.c \ conftest_netinet_ip_h.c \ conftest_struct_msghdr_msg_control.c \ conftest_struct_msghdr_msg_accrights.c \ conftest_sys_stat_h.c \ conftest_SOL_IP.c \ *.loT TARGETS = conftest_fchmod \ conftest_arpa_ftp_h \ conftest_netinet_ip_h \ conftest_struct_msghdr_msg_control \ conftest_struct_msghdr_msg_accrights \ conftest_sys_stat_h \ conftest_SOL_IP \ PROGRAM_LDADD = PROGRAM_DEPENDENCIES = include $(exp_installbuilddir)/rules.mk # Funtion checks follow this pattern; one to execute, one to create source # Header file checks simply validate that compilation into an .lo succeeds conftest_fchmod: conftest_fchmod.lo $(LINK) conftest_fchmod.lo conftest_arpa_ftp_h: conftest_arpa_ftp_h.lo @echo "success" > $@ conftest_netinet_ip_h: conftest_netinet_ip_h.lo @echo "success" > $@ conftest_sys_stat_h: conftest_sys_stat_h.lo @echo "success" > $@ conftest_SOL_IP: conftest_SOL_IP.lo @echo "success" > $@ conftest_struct_msghdr_msg_control: conftest_struct_msghdr_msg_control.lo @echo "success" > $@ conftest_struct_msghdr_msg_accrights: conftest_struct_msghdr_msg_accrights.lo @echo "success" > $@ conftest_fchmod.c: @echo "#include " > $@ @echo "#include " >> $@ @echo "int main() { return fchmod(2, 0644); }" >> $@ conftest_arpa_ftp_h.c: @echo "#include " > $@ conftest_netinet_ip_h.c: @echo "#include " > $@ @echo "#include " >> $@ @echo "#include " >> $@ conftest_sys_stat_h.c: @echo "#include " > $@ conftest_SOL_IP.c: @echo "#include " > $@ @echo "#include " >> $@ @echo "#include " >> $@ @echo "int main ()" >> $@ @echo "{ return SOL_IP; }" >> $@ conftest_struct_msghdr_msg_control.c: @echo "#include " > $@ @echo "#include " >> $@ @echo "int main ()" >> $@ @echo "{ static struct msghdr ac_aggr;" >> $@ @echo " return sizeof(ac_aggr.msg_control); }" >> $@ conftest_struct_msghdr_msg_accrights.c: @echo "#include " > $@ @echo "#include " >> $@ @echo "int main ()" >> $@ @echo "{ static struct msghdr ac_aggr;" >> $@ @echo " return sizeof(ac_aggr.msg_accrights); }" >> $@