Skip to content

Commit 07ac8e9

Browse files
committed
In flex --version test, redirect stdin to /dev/null, because some lex' hang
waiting for input. From Pete Forman <gsez020@kryten.bedford.waii.com>.
1 parent a9adde3 commit 07ac8e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/programs.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/config/programs.m4,v 1.1 2000/08/28 11:53:13 petere Exp $
1+
# $Header: /cvsroot/pgsql/config/programs.m4,v 1.2 2000/10/26 16:28:00 petere Exp $
22

33

44
# PGAC_PATH_FLEX
@@ -22,7 +22,7 @@ else
2222
for pgac_prog in flex lex; do
2323
pgac_candidate="$pgac_dir/$pgac_prog"
2424
if test -f "$pgac_candidate" \
25-
&& $pgac_candidate --version >/dev/null 2>&1
25+
&& $pgac_candidate --version </dev/null >/dev/null 2>&1
2626
then
2727
echo '%%' > conftest.l
2828
if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,7 @@ INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
25502550

25512551

25522552

2553-
for ac_prog in mawk gawk nawk awk
2553+
for ac_prog in gawk mawk nawk awk
25542554
do
25552555
# Extract the first word of "$ac_prog", so it can be a program name with args.
25562556
set dummy $ac_prog; ac_word=$2
@@ -2602,7 +2602,7 @@ else
26022602
for pgac_prog in flex lex; do
26032603
pgac_candidate="$pgac_dir/$pgac_prog"
26042604
if test -f "$pgac_candidate" \
2605-
&& $pgac_candidate --version >/dev/null 2>&1
2605+
&& $pgac_candidate --version </dev/null >/dev/null 2>&1
26062606
then
26072607
echo '%%' > conftest.l
26082608
if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy