Skip to content

Commit fb7b241

Browse files
ffontaineFlole998
authored andcommittedJan 2, 2022
configure: add execinfo option
Add execinfo option to allow the user to disable the feature even if execinfo.h is found on the system Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
1 parent 09a2c71 commit fb7b241

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed
 

‎configure

+15-2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ OPTIONS=(
7575
"ddci:yes"
7676
"cclang_threadsan:no"
7777
"gperftools:no"
78+
"execinfo:auto"
7879
)
7980

8081
#
@@ -150,11 +151,23 @@ if [ ${PLATFORM} = "freebsd" ]; then
150151
# If we don't have libunwind then fallback to execinfo.
151152
if ! enabled libunwind
152153
then
153-
check_cc_header execinfo
154+
if enabled_or_auto execinfo; then
155+
if check_cc_header execinfo; then
156+
enable execinfo
157+
else
158+
die "execinfo.h not found (use --disable-execinfo)"
159+
fi
160+
fi
154161
fi
155162

156163
else
157-
check_cc_header execinfo
164+
if enabled_or_auto execinfo; then
165+
if check_cc_header execinfo; then
166+
enable execinfo
167+
else
168+
die "execinfo.h not found (use --disable-execinfo)"
169+
fi
170+
fi
158171
fi
159172
check_cc_option mmx
160173
check_cc_option sse2

0 commit comments

Comments
 (0)
Please sign in to comment.