diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-05-13 22:59:14 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-05-13 22:59:14 +0000 |
| commit | a676b852e8128212d2a357e2b4f32cca16daf0d7 (patch) | |
| tree | 526e2a95cb37de2b5c60370da8b71c0b5f86f7dd /configure.in | |
| parent | f69ecb4f8cbf0f1d1638f9fb01d8845a5c84a3c0 (diff) | |
| download | postgresql-a676b852e8128212d2a357e2b4f32cca16daf0d7.tar.gz | |
Refactor code to warn about configure link failures on MinGW.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/configure.in b/configure.in index b198162ede..2158d5ab6a 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.347 2004/05/13 01:45:02 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.348 2004/05/13 22:59:14 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -1236,28 +1236,22 @@ AC_CONFIG_LINKS([ src/Makefile.port:src/makefiles/Makefile.${template} ]) +AC_CONFIG_HEADERS([src/include/pg_config.h], +[ +# Update timestamp for pg_config.h (see Makefile.global) +echo >src/include/stamp-h +]) + +AC_OUTPUT + # Links sometimes fail undetected on Mingw - # so here we detect it and warn the user case $host_os in mingw*) - for linktarget in \ - src/backend/port/tas.s \ - src/backend/port/dynloader.c \ - src/backend/port/pg_sema.c \ - src/backend/port/pg_shmem.c \ - src/include/dynloader.h \ - src/include/pg_config_os.h \ - src/Makefile.port +for FILE in "$CONFIG_LINKS" do # test -e works for symlinks in the MinGW console - test -e $linktarget || AC_MSG_WARN([*** link for $linktarget failed - please fix by hand]) + test -e `expr "$FILE" : '\([^:]*\)'` || AC_MSG_WARN([*** link for $FILE - please fix by hand]) done ;; esac -AC_CONFIG_HEADERS([src/include/pg_config.h], -[ -# Update timestamp for pg_config.h (see Makefile.global) -echo >src/include/stamp-h -]) - -AC_OUTPUT |
