michael@237: Index: configure.in michael@237: --- configure.in.orig 2009-07-27 07:26:10 +0200 michael@237: +++ configure.in 2009-07-27 16:49:17 +0200 michael@237: @@ -1970,14 +1970,14 @@ michael@237: AC_CHECK_PROG(PG_CONFIG, pg_config, YES, NO) michael@237: if test $PG_CONFIG = NO; then michael@237: # based on code from PHP michael@237: - for i in /usr /usr/local /usr/local/pgsql; do michael@237: - for j in include include/pgsql include/postgres include/postgresql ""; do michael@237: + for i in @l_prefix@; do michael@237: + for j in include/postgresql; do michael@237: if test -r "$i/$j/libpq-fe.h"; then michael@237: PGSQL_INCLUDE=$i/$j michael@237: fi michael@237: done michael@237: - for lib in lib lib64; do michael@237: - for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do michael@237: + for lib in lib; do michael@237: + for j in $lib; do michael@237: if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then michael@237: PGSQL_LIBDIR=$i/$j michael@237: fi michael@204: Index: configure michael@237: --- configure.orig 2009-07-27 07:26:28 +0200 michael@237: +++ configure 2009-07-27 16:50:02 +0200 michael@237: @@ -29424,14 +29424,14 @@ michael@204: michael@237: if test $PG_CONFIG = NO; then michael@237: # based on code from PHP michael@237: - for i in /usr /usr/local /usr/local/pgsql; do michael@237: - for j in include include/pgsql include/postgres include/postgresql ""; do michael@237: + for i in @l_prefix@; do michael@237: + for j in include/postgresql; do michael@237: if test -r "$i/$j/libpq-fe.h"; then michael@237: PGSQL_INCLUDE=$i/$j michael@237: fi michael@237: done michael@237: - for lib in lib lib64; do michael@237: - for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do michael@237: + for lib in lib; do michael@237: + for j in $lib; do michael@237: if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then michael@237: PGSQL_LIBDIR=$i/$j michael@237: fi michael@148: Index: src/deliver/deliver.c michael@237: --- src/deliver/deliver.c.orig 2009-06-28 01:47:56 +0200 michael@237: +++ src/deliver/deliver.c 2009-07-27 16:47:39 +0200 michael@237: @@ -46,7 +46,7 @@ michael@148: #include michael@148: michael@148: #define DEFAULT_CONFIG_FILE SYSCONFDIR"/dovecot.conf" michael@148: -#define DEFAULT_SENDMAIL_PATH "/usr/lib/sendmail" michael@148: +#define DEFAULT_SENDMAIL_PATH "@l_prefix@/sbin/sendmail" michael@148: #define DEFAULT_ENVELOPE_SENDER "MAILER-DAEMON" michael@148: michael@148: /* After buffer grows larger than this, create a temporary file to /tmp