summaryrefslogtreecommitdiffstats
path: root/tkimg/gif
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-01-08 22:17:10 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-01-08 22:17:10 (GMT)
commit2e4054c20981de2b4ae6b2964be26b0dabe72c6c (patch)
tree6646213745cf4908ee0c2c4b71d13cb947770967 /tkimg/gif
parent6dac183be1cdcc0a13966343e2c40c3ff56a3810 (diff)
downloadblt-2e4054c20981de2b4ae6b2964be26b0dabe72c6c.zip
blt-2e4054c20981de2b4ae6b2964be26b0dabe72c6c.tar.gz
blt-2e4054c20981de2b4ae6b2964be26b0dabe72c6c.tar.bz2
add tclConfig.sh support
Diffstat (limited to 'tkimg/gif')
-rw-r--r--tkimg/gif/Makefile.in1
-rwxr-xr-xtkimg/gif/configure72
-rw-r--r--tkimg/gif/configure.in3
-rw-r--r--tkimg/gif/tkimggifConfig.sh.in26
4 files changed, 86 insertions, 16 deletions
diff --git a/tkimg/gif/Makefile.in b/tkimg/gif/Makefile.in
index 83e4c39..619265c 100644
--- a/tkimg/gif/Makefile.in
+++ b/tkimg/gif/Makefile.in
@@ -433,6 +433,7 @@ install-lib-binaries:
echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
$(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
fi
+ $(INSTALL_DATA) tkimggifConfig.sh $(DESTDIR)$(libdir)
#========================================================================
# Install binary executables (e.g. .exe files and dependent .dll files)
diff --git a/tkimg/gif/configure b/tkimg/gif/configure
index 672ef21..d9d63eb 100755
--- a/tkimg/gif/configure
+++ b/tkimg/gif/configure
@@ -620,6 +620,15 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS
LIBOBJS
+PATCHLEVEL
+MINOR_VERSION
+MAJOR_VERSION
+tkimggif_STUB_LIB_PATH
+tkimggif_BUILD_STUB_LIB_PATH
+tkimggif_STUB_LIB_SPEC
+tkimggif_BUILD_STUB_LIB_SPEC
+tkimggif_LIB_SPEC
+tkimggif_BUILD_LIB_SPEC
WISH_PROG
TCLSH_PROG
VC_MANIFEST_EMBED_EXE
@@ -2117,7 +2126,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
fi
done
@@ -2817,7 +2826,7 @@ fi
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -2932,7 +2941,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
@@ -2975,7 +2984,7 @@ else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
@@ -3034,7 +3043,7 @@ $as_echo "$ac_try_echo"; } >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
fi
fi
fi
@@ -3086,7 +3095,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
@@ -4046,7 +4055,7 @@ fi
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -4412,7 +4421,7 @@ else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5 ; }
+See \`config.log' for more details" "$LINENO" 5; }
fi
ac_ext=c
@@ -5104,7 +5113,7 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
;; #(
*)
as_fn_error $? "unknown endianness
- presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
esac
if test "${TEA_PLATFORM}" = "unix" ; then
@@ -9159,7 +9168,7 @@ if test "x$with_x" = xno; then
have_x=disabled
else
case $x_includes,$x_libraries in #(
- *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
+ *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
*,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
$as_echo_n "(cached) " >&6
else
@@ -9695,13 +9704,45 @@ $as_echo "${WISH_PROG}" >&6; }
+ #--------------------------------------------------------------------
+ # These are for tkimggifConfig.sh
+ #--------------------------------------------------------------------
+
+ # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
+ eval pkglibdir="${libdir}/tkimggif${PACKAGE_VERSION}"
+ if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
+ eval tkimggif_LIB_FLAG="-ltkimggif${PACKAGE_VERSION}${DBGX}"
+ eval tkimggif_STUB_LIB_FLAG="-ltkimggifstub${PACKAGE_VERSION}${DBGX}"
+ else
+ eval tkimggif_LIB_FLAG="-ltkimggif`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}"
+ eval tkimggif_STUB_LIB_FLAG="-ltkimggifstub`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}"
+ fi
+ tkimggif_BUILD_LIB_SPEC="-L`$CYGPATH $(pwd)` ${tkimggif_LIB_FLAG}"
+ tkimggif_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${tkimggif_LIB_FLAG}"
+ tkimggif_BUILD_STUB_LIB_SPEC="-L`$CYGPATH $(pwd)` ${tkimggif_STUB_LIB_FLAG}"
+ tkimggif_STUB_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${tkimggif_STUB_LIB_FLAG}"
+ tkimggif_BUILD_STUB_LIB_PATH="`$CYGPATH $(pwd)`/${PKG_STUB_LIB_FILE}"
+ tkimggif_STUB_LIB_PATH="`$CYGPATH ${pkglibdir}`/${PKG_STUB_LIB_FILE}"
+
+
+
+
+
+
+
+
+
+
+
+
+
#--------------------------------------------------------------------
# Finally, substitute all of the various values into the Makefile.
# You may alternatively have a special pkgIndex.tcl.in or other files
# which require substituting th AC variables in. Include these here.
#--------------------------------------------------------------------
-ac_config_files="$ac_config_files Makefile"
+ac_config_files="$ac_config_files Makefile tkimggifConfig.sh"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -10411,8 +10452,9 @@ for ac_config_target in $ac_config_targets
do
case $ac_config_target in
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "tkimggifConfig.sh") CONFIG_FILES="$CONFIG_FILES tkimggifConfig.sh" ;;
- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
done
@@ -10620,7 +10662,7 @@ do
esac
case $ac_mode$ac_tag in
:[FHL]*:*);;
- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
:[FH]-) ac_tag=-:-;;
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
esac
@@ -10648,7 +10690,7 @@ do
[\\/$]*) false;;
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
esac ||
- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
esac
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
as_fn_append ac_file_inputs " '$ac_f'"
@@ -10675,7 +10717,7 @@ $as_echo "$as_me: creating $ac_file" >&6;}
case $ac_tag in
*:-:* | *:-) cat >"$ac_tmp/stdin" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
esac
;;
esac
diff --git a/tkimg/gif/configure.in b/tkimg/gif/configure.in
index 0fed3a5..6d144af 100644
--- a/tkimg/gif/configure.in
+++ b/tkimg/gif/configure.in
@@ -186,6 +186,7 @@ fi
TEA_PROG_TCLSH
TEA_PROG_WISH
+TEA_EXPORT_CONFIG(tkimggif)
#--------------------------------------------------------------------
# Finally, substitute all of the various values into the Makefile.
@@ -193,6 +194,6 @@ TEA_PROG_WISH
# which require substituting th AC variables in. Include these here.
#--------------------------------------------------------------------
-AC_OUTPUT([Makefile])
+AC_OUTPUT([Makefile tkimggifConfig.sh])
#--------------------------------------------------------------------
diff --git a/tkimg/gif/tkimggifConfig.sh.in b/tkimg/gif/tkimggifConfig.sh.in
new file mode 100644
index 0000000..d774315
--- /dev/null
+++ b/tkimg/gif/tkimggifConfig.sh.in
@@ -0,0 +1,26 @@
+# tkimggifConfig.sh --
+#
+# This shell script (for sh) is generated automatically by tkimggif's
+# configure script. It will create shell variables for most of
+# the configuration options discovered by the configure script.
+# This script is intended to be included by the configure scripts
+# for tkimggif extensions so that they don't have to figure this all
+# out for themselves. This file does not duplicate information
+# already provided by tclConfig.sh, so you may need to use that
+# file in addition to this one.
+#
+# The information in this file is specific to a single platform.
+
+# tkimggif's version number.
+tkimggif_VERSION='@PACKAGE_VERSION@'
+
+# The name of the tkimggif library (may be either a .a file or a shared library):
+tkimggif_LIB_FILE=@PKG_LIB_FILE@
+
+# String to pass to linker to pick up the tkimggif library from its
+# build directory.
+tkimggif_BUILD_LIB_SPEC='@tkimggif_BUILD_LIB_SPEC@'
+
+# String to pass to linker to pick up the tkimggif library from its
+# installed directory.
+tkimggif_LIB_SPEC='@tkimggif_LIB_SPEC@'