Remove single-quotes from fltk-config.in (again)

This commit removes all single-quotes (') that have been added to
support /installing/ FLTK in paths with spaces (see PR #17).
This commit is contained in:
Albrecht Schlosser 2024-08-28 16:23:32 +02:00
parent b95a7eccd9
commit 86241ea9b5

View File

@ -72,25 +72,25 @@ GLLIBS="@GLLIBS@"
# Check bundled image libraries in source tree # Check bundled image libraries in source tree
if test -f "$libdir/libfltk_jpeg.a"; then if test -f "$libdir/libfltk_jpeg.a"; then
CFLAGS="-I'$includedir/jpeg' $CFLAGS" CFLAGS="-I$includedir/jpeg $CFLAGS"
CXXFLAGS="-I'$includedir/jpeg' $CXXFLAGS" CXXFLAGS="-I$includedir/jpeg $CXXFLAGS"
fi fi
if test -f "$libdir/libfltk_z.a"; then if test -f "$libdir/libfltk_z.a"; then
CFLAGS="-I'$includedir/zlib' $CFLAGS" CFLAGS="-I$includedir/zlib $CFLAGS"
CXXFLAGS="-I'$includedir/zlib' $CXXFLAGS" CXXFLAGS="-I$includedir/zlib $CXXFLAGS"
fi fi
if test -f "$libdir/libfltk_png.a"; then if test -f "$libdir/libfltk_png.a"; then
CFLAGS="-I'$includedir/png' $CFLAGS" CFLAGS="-I$includedir/png $CFLAGS"
CXXFLAGS="-I'$includedir/png' $CXXFLAGS" CXXFLAGS="-I$includedir/png $CXXFLAGS"
fi fi
# Check bundled image libraries in installation folder. # Check bundled image libraries in installation folder.
# Note: jpeg, png, and zlib headers are installed in FL/images # Note: jpeg, png, and zlib headers are installed in FL/images
if test -d "$includedir/FL/images"; then if test -d "$includedir/FL/images"; then
CFLAGS="-I'$includedir/FL/images' $CFLAGS" CFLAGS="-I$includedir/FL/images $CFLAGS"
CXXFLAGS="-I'$includedir/FL/images' $CXXFLAGS" CXXFLAGS="-I$includedir/FL/images $CXXFLAGS"
fi fi
# Cairo support # Cairo support
@ -254,39 +254,39 @@ do
done done
if test "$includedir" != /usr/include; then if test "$includedir" != /usr/include; then
includes="-I'$includedir'" includes="-I$includedir"
else else
includes= includes=
fi fi
# prepend build directory for fltk-config in CMake build folder # prepend build directory for fltk-config in CMake build folder
if test -n "$BINARY_DIR"; then if test -n "$BINARY_DIR"; then
includes="-I'$BINARY_DIR' $includes" includes="-I$BINARY_DIR $includes"
fi fi
if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then
libs="-L'$libdir'" libs="-L$libdir"
else else
libs= libs=
fi fi
# Calculate needed libraries # Calculate needed libraries
LDSTATIC="'$libdir/libfltk.a' $LDLIBS" LDSTATIC="$libdir/libfltk.a $LDLIBS"
LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS" LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS"
if test x$use_forms = xyes; then if test x$use_forms = xyes; then
LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS" LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS"
LDSTATIC="'$libdir/libfltk_forms.a' $LDSTATIC" LDSTATIC="$libdir/libfltk_forms.a $LDSTATIC"
fi fi
if test x$use_gl = xyes; then if test x$use_gl = xyes; then
LDLIBS="-lfltk_gl$SHAREDSUFFIX $GLLIBS $LDLIBS" LDLIBS="-lfltk_gl$SHAREDSUFFIX $GLLIBS $LDLIBS"
LDSTATIC="'$libdir/libfltk_gl.a' $GLLIBS $LDSTATIC" LDSTATIC="$libdir/libfltk_gl.a $GLLIBS $LDSTATIC"
fi fi
if test x$use_images = xyes; then if test x$use_images = xyes; then
LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS" LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS"
LDSTATIC="'$libdir/libfltk_images.a' $STATICIMAGELIBS $LDSTATIC" LDSTATIC="$libdir/libfltk_images.a $STATICIMAGELIBS $LDSTATIC"
fi fi
if test x$use_cairo = xyes -a -n "$CAIROLIBS"; then if test x$use_cairo = xyes -a -n "$CAIROLIBS"; then
@ -327,7 +327,7 @@ if test -n "$compile"; then
command="$CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o $prog $flags $compile $files $LDSTATIC $link" command="$CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o $prog $flags $compile $files $LDSTATIC $link"
echo $command echo $command
eval $command || exit 1 $command || exit 1
fi fi
if test -n "$post"; then if test -n "$post"; then
@ -395,7 +395,7 @@ if test "$echo_ldflags" = "yes"; then
libdirs="$libs" libdirs="$libs"
for i in $LDLIBS ; do for i in $LDLIBS ; do
if test $i != "-L'$libdir'" ; then if test $i != "-L$libdir" ; then
if test -z "$my_libs" ; then if test -z "$my_libs" ; then
my_libs="$i" my_libs="$i"
else else
@ -411,22 +411,22 @@ if test "$echo_ldstaticflags" = "yes"; then
fi fi
if test "$echo_libs" = "yes"; then if test "$echo_libs" = "yes"; then
USELIBS="'$libdir/libfltk.a'" USELIBS="$libdir/libfltk.a"
if test x$use_forms = xyes; then if test x$use_forms = xyes; then
USELIBS="'$libdir/libfltk_forms.a' $USELIBS" USELIBS="$libdir/libfltk_forms.a $USELIBS"
fi fi
if test x$use_gl = xyes; then if test x$use_gl = xyes; then
USELIBS="'$libdir/libfltk_gl.a' $USELIBS" USELIBS="$libdir/libfltk_gl.a $USELIBS"
fi fi
if test x$use_images = xyes; then if test x$use_images = xyes; then
USELIBS="'$libdir/libfltk_images.a' $USELIBS" USELIBS="$libdir/libfltk_images.a $USELIBS"
for lib in fltk_jpeg fltk_png fltk_z; do for lib in fltk_jpeg fltk_png fltk_z; do
if test -f "$libdir/lib$lib.a"; then if test -f "$libdir/lib$lib.a"; then
USELIBS="'$libdir/lib$lib.a' $USELIBS" USELIBS="$libdir/lib$lib.a $USELIBS"
fi fi
done done
fi fi