]> granicus.if.org Git - graphviz/commitdiff
only append 'generic' TCL include path to 'TCL_INCLUDES' if it exists
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 6 May 2022 00:17:11 +0000 (17:17 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 11 May 2022 14:22:58 +0000 (07:22 -0700)
Squashes numerous -Wmissing-include-dirs compilation warnings.

configure.ac

index 450b03577351be2ffe34b1c60032c81349e2b302..64002620a6ea04b6c66005c155355c9b47063c6b 100644 (file)
@@ -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