Have the "all.mk" files generated by "configure".
+++ /dev/null
-TARGET = rlm_krb5.a
-SOURCES = rlm_krb5.c
--- /dev/null
+TARGET = @targetname@.a
+SOURCES = rlm_krb5.c
unset ac_cv_env_LIBS_set
unset ac_cv_env_LIBS_value
- ac_config_files="$ac_config_files Makefile"
+ ac_config_files="$ac_config_files Makefile all.mk"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
AC_SUBST(krb5_ldflags)
AC_SUBST(targetname)
AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)
+++ /dev/null
-TARGET = rlm_ldap.a
-SOURCES = rlm_ldap.c
-
-SRC_CFLAGS = -DHAVE_LDAP_START_TLS -DHAVE_LDAP_INITIALIZE -DLDAP_DEPRECATED -DLDAP_SET_REBIND_PROC_ARGS=3
-TGT_LDLIBS = -lldap_r
--- /dev/null
+TARGET = rlm_ldap.a
+SOURCES = rlm_ldap.c @edir@
+
+SRC_CFLAGS = @ldap_cflags@
+TGT_LDLIBS = @ldap_ldflags@
unset ac_cv_env_LIBS_set
unset ac_cv_env_LIBS_value
- ac_config_files="$ac_config_files Makefile"
+ ac_config_files="$ac_config_files Makefile all.mk"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
AC_SUBST(ldap_cflags)
AC_SUBST(targetname)
AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)
+++ /dev/null
-TARGET = rlm_pam.a
-SOURCES = rlm_pam.c
unset ac_cv_env_LIBS_set
unset ac_cv_env_LIBS_value
- ac_config_files="$ac_config_files Makefile"
+ ac_config_files="$ac_config_files Makefile all,mk"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
AC_SUBST(targetname)
AC_CONFIG_HEADER(config.h)
AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)
+++ /dev/null
-TARGET = rlm_perl.a
-SOURCES = rlm_perl.c
-
-SRC_CFLAGS = `perl -MExtUtils::Embed -e ccopts`
-TGT_LDLIBS = `perl -MExtUtils::Embed -e ldopts`
--- /dev/null
+TARGET = @targetname@.a
+SOURCES = rlm_perl.c
+
+SRC_CFLAGS = @perl_cflags@
+TGT_LDLIBS = @perl_ldflags@
unset ac_cv_env_LIBS_set
unset ac_cv_env_LIBS_value
- ac_config_files="$ac_config_files Makefile"
+ ac_config_files="$ac_config_files Makefile all.mk"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
AC_SUBST(targetname)
AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)
+++ /dev/null
-TARGET = rlm_python.a
-SOURCES = rlm_python.c
-
-TGT_LDLIBS = -L/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config -ldl -lpython2.6 -lm
-SRC_CFLAGS = -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
--- /dev/null
+TARGET = @targetname.a
+SOURCES = rlm_python.c
+
+TGT_LDLIBS = @python_ldflags@
+SRC_CFLAGS = @python_cflags@
unset ac_cv_env_LIBS_set
unset ac_cv_env_LIBS_value
- ac_config_files="$ac_config_files Makefile"
+ ac_config_files="$ac_config_files Makefile all.mk"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
AC_SUBST(python_cflags)
AC_SUBST(targetname)
AC_OUTPUT(Makefile)
+AC_OUTPUT(all.mk)