+2013-02-28 Daiki Ueno <ueno@gnu.org>
+
+ * autopoint.in (gettext_dir): Substitute PATH_SEPARATOR at
+ configure time.
+ * gettextize.in (gettext_dir): Substitute PATH_SEPARATOR at
+ configure time.
+ Suggested by Stefano Lattarini in
+ <http://lists.gnu.org/archive/html/bug-gettext/2012-12/msg00066.html>.
+
2013-01-07 Daiki Ueno <ueno@gnu.org>
* autopoint.in: Extract version number from configure.ac in a more
case "$curr_executable" in
*/* | *\\*) ;;
*) # Need to look in the PATH.
- if test "${PATH_SEPARATOR+set}" != set; then
- func_tmpdir
- { echo "#! /bin/sh"; echo "exit 0"; } > "$tmp"/conf.sh
- chmod +x "$tmp"/conf.sh
- if (PATH="/nonexistent;$tmp"; conf.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -rf "$tmp"
- fi
- save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
+ save_IFS="$IFS"; IFS="${PATH_SEPARATOR='@PATH_SEPARATOR@'}"
for dir in $PATH; do
IFS="$save_IFS"
test -z "$dir" && dir=.
case "$curr_executable" in
*/* | *\\*) ;;
*) # Need to look in the PATH.
- if test "${PATH_SEPARATOR+set}" != set; then
- func_tmpdir
- { echo "#! /bin/sh"; echo "exit 0"; } > "$tmp"/conf.sh
- chmod +x "$tmp"/conf.sh
- if (PATH="/nonexistent;$tmp"; conf.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -rf "$tmp"
- fi
- save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
+ save_IFS="$IFS"; IFS="${PATH_SEPARATOR='@PATH_SEPARATOR@'}"
for dir in $PATH; do
IFS="$save_IFS"
test -z "$dir" && dir=.