From: Matthew Fernandez Date: Fri, 6 May 2022 00:17:11 +0000 (-0700) Subject: only append 'generic' TCL include path to 'TCL_INCLUDES' if it exists X-Git-Tag: 4.0.0~43^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30f5e6535f21ca671d76159b49cc87add1f0b53e;p=graphviz only append 'generic' TCL include path to 'TCL_INCLUDES' if it exists Squashes numerous -Wmissing-include-dirs compilation warnings. --- diff --git a/configure.ac b/configure.ac index 450b03577..64002620a 100644 --- a/configure.ac +++ b/configure.ac @@ -1384,6 +1384,9 @@ if test "x$use_tcl" = "x"; then if test -f ${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/tcl.h; then TCL_INCLUDES="-I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND} -I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic" + if test -d ${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic; then + TCL_INCLUDES="${TCL_INCLUDES} -I${TCLSH_EXEC_PREFIX}/include/tcl${TCL_VERSION_FOUND}/generic" + fi else if test "x${TCLSH_EXEC_PREFIX}" != "x/usr" -a -f ${TCLSH_EXEC_PREFIX}/include/tcl.h; then TCL_INCLUDES=-I${TCLSH_EXEC_PREFIX}/include