Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
d205a41b
Commit
d205a41b
authored
24 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
try harder to find GNU m4
Rev: bin/mktestsuite:1.14
parent
5bf37dc4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/mktestsuite
+31
-15
31 additions, 15 deletions
bin/mktestsuite
with
31 additions
and
15 deletions
bin/mktestsuite
+
31
−
15
View file @
d205a41b
...
...
@@ -4,25 +4,41 @@
## We attempt to locate a working m4
##
M4
=
m4
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}
:"
for
d
in
$PATH
;
do
test
-z
"
$d
"
&&
ac_dir
=
.
# GNU m4 is named gm4 on FreeBSD
if
test
-f
$d
/gm4
;
then
M4
=
$d
/gm4
if
echo
'divert(-1)changequote([[,]])define(DOIT,ifelse([foo],foo,[DOIT($1)]))DOIT([[m4exit(1)]])'
|
$d
/gm4
>
/dev/null
;
then
break
fi
fi
if
test
-f
$d
/m4
;
then
M4
=
$d
/m4
if
echo
'divert(-1)changequote([[,]])define(DOIT,ifelse([foo],foo,[DOIT($1)]))DOIT([[m4exit(1)]])'
|
$d
/m4
>
/dev/null
;
then
break
HAVEGNU
=
no
HAVEWORKS
=
no
# GNU m4 is named gm4 on FreeBSD
for
m4
in
gm4 m4
do
for
d
in
$PATH
;
do
test
-z
"
$d
"
&&
ac_dir
=
.
if
test
-f
$d
/
$m4
;
then
if
echo
'divert(-1)changequote([[,]])define(DOIT,ifelse([foo],foo,[DOIT($1)]))DOIT([[m4exit(1)]])'
|
$d
/
$m4
>
/dev/null
;
then
works
=
yes
else
works
=
no
fi
case
`
echo
__gnu__ |
$d
/
$m4
`
in
__gnu__
)
isgnu
=
no
;;
*
)
isgnu
=
yes
;;
esac
case
"
$HAVEGNU
-
$isgnu
:
$HAVEWORKS
-
$works
"
in
*
:no-yes|no-yes:
*
)
M4
=
$d
/
$m4
HAVEGNU
=
$isgnu
HAVEWORKS
=
$works
;;
esac
fi
fi
done
done
IFS
=
"
$save_ifs
"
IFS
=
"
$save_ifs
"
(
cat
<<
\
EOF
divert(-1)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment