Skip to content

Commit 66f9767

Browse files
committed
configure.ac: fix enforcements
Trailing space after the variable will expand in "$1 " to "no ", which won't be caught as not being present. + use ${var?} syntax to ensure the vars being otherwise defined + ensure omt
1 parent ba4391e commit 66f9767

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,7 @@ if test "$gpustitch_req" != no && test "$FOUND_CUDA" = yes; then
25842584
fi
25852585
fi
25862586

2587-
ENSURE_FEATURE_PRESENT([$gpustitch_req], [$gpustitch ], [GPUSTITCH not found])
2587+
ENSURE_FEATURE_PRESENT([${gpustitch_req?}], [${gpustitch?}], [GPUSTITCH not found])
25882588

25892589
# -------------------------------------------------------------------------------------------------
25902590
# SAGE stuff
@@ -2644,7 +2644,7 @@ if test $sage_req != no; then
26442644
fi
26452645
fi
26462646

2647-
ENSURE_FEATURE_PRESENT([$sage_req], [$sage ], [SAGE not found])
2647+
ENSURE_FEATURE_PRESENT([${sage_req?}], [${sage?}], [SAGE not found])
26482648

26492649
# -------------------------------------------------------------------------------------------------
26502650
# AUDIO stuff
@@ -3463,6 +3463,8 @@ then
34633463
add_module rxtx_omt "src/video_rxtx/omt.o" "-lomt"
34643464
fi
34653465

3466+
ENSURE_FEATURE_PRESENT([${omt_req?}], [${omt?}], [libomt not found])
3467+
34663468
# ---------------------------------------------------------------------
34673469
# NAT-PMP
34683470
# -----------------------------------

0 commit comments

Comments
 (0)