mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
Use $PATH_SEPARATOR like the rest of the autoconf code, instead of
hardwiring IFS=: when searching paths.
This commit is contained in:
parent
baace400c7
commit
3a6f1313b5
@ -1,4 +1,4 @@
|
||||
# $PostgreSQL: pgsql/config/programs.m4,v 1.14 2004/05/19 22:12:30 momjian Exp $
|
||||
# $PostgreSQL: pgsql/config/programs.m4,v 1.15 2004/09/02 15:39:55 tgl Exp $
|
||||
|
||||
|
||||
# PGAC_PATH_FLEX
|
||||
@ -14,8 +14,9 @@ if test -n "$FLEX"; then
|
||||
pgac_cv_path_flex=$FLEX
|
||||
else
|
||||
pgac_save_IFS=$IFS
|
||||
IFS=:
|
||||
IFS=$PATH_SEPARATOR
|
||||
for pgac_dir in $PATH; do
|
||||
IFS=$pgac_save_IFS
|
||||
if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
|
||||
pgac_dir=`pwd`
|
||||
fi
|
||||
@ -37,7 +38,6 @@ else
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$pgac_save_IFS
|
||||
rm -f conftest.l
|
||||
: ${pgac_cv_path_flex=no}
|
||||
fi
|
||||
|
@ -1,5 +1,5 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
dnl $PostgreSQL: pgsql/configure.in,v 1.374 2004/08/31 04:08:33 pgsql Exp $
|
||||
dnl $PostgreSQL: pgsql/configure.in,v 1.375 2004/09/02 15:39:56 tgl Exp $
|
||||
dnl
|
||||
dnl Developers, please strive to achieve this order:
|
||||
dnl
|
||||
@ -326,7 +326,7 @@ PGAC_ARG_BOOL(enable, cassert, no, [ --enable-cassert enable assertion c
|
||||
# Include directories
|
||||
#
|
||||
ac_save_IFS=$IFS
|
||||
IFS="${IFS}:"
|
||||
IFS="${IFS}${PATH_SEPARATOR}"
|
||||
# SRCH_INC comes from the template file
|
||||
for dir in $with_includes $SRCH_INC; do
|
||||
if test -d "$dir"; then
|
||||
@ -343,7 +343,7 @@ AC_SUBST(INCLUDES)
|
||||
# Library directories
|
||||
#
|
||||
ac_save_IFS=$IFS
|
||||
IFS="${IFS}:"
|
||||
IFS="${IFS}${PATH_SEPARATOR}"
|
||||
# LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
|
||||
for dir in $LIBRARY_DIRS $SRCH_LIB; do
|
||||
if test -d "$dir"; then
|
||||
|
Loading…
Reference in New Issue
Block a user