Skip to content

Commit

Permalink
Merge pull request #232 from ellert/protect-against-empty-ac-var
Browse files Browse the repository at this point in the history
Compatibility with autoconf 2.72
  • Loading branch information
ellert authored Oct 31, 2024
2 parents 1013d82 + 53a4778 commit b10f3a9
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
40 changes: 31 additions & 9 deletions common/source/configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ([2.60])
AC_INIT([globus_common], [18.14], [https://github.com/gridcf/gct/issues])
AC_INIT([globus_common], [18.15], [https://github.com/gridcf/gct/issues])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST([MAJOR_VERSION], [${PACKAGE_VERSION%%.*}])
AC_SUBST([MINOR_VERSION], [${PACKAGE_VERSION##*.}])
Expand All @@ -24,18 +24,40 @@ AC_SUBST(DIRT_TIMESTAMP)
AC_SUBST(DIRT_BRANCH_ID)

AC_SYS_LARGEFILE

if test X"$ac_cv_sys_largefile_opts" != "X"; then

# New version (autoconf >= 2.72

case $ac_cv_sys_largefile_opts in
"none needed") :
;;
"supported through gnulib") :
;;
"support not detected") :
;;
*)
LARGEFILE_CFLAGS="$ac_cv_sys_largefile_opts"
;;
esac

else

# Old version (autoconf < 2.72

if test X"$ac_cv_sys_largefile_CC" != "Xno"; then
LARGEFILE_CFLAGS="$ac_cv_sys_largefile_CC"
AC_SUBST(LARGEFILE_CFLAGS)
fi
if test X"$ac_cv_sys_file_offset_bits" != "Xno" && \
test X"$ac_cv_sys_file_offset_bits" != "Xunknown"; then
LARGEFILE_CFLAGS="${LARGEFILE_CFLAGS} -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
fi

if test X"$ac_cv_sys_large_files" = "X1"; then
LARGEFILE_CFLAGS="${LARGEFILE_CFLAGS} -D_LARGE_FILES=$ac_cv_sys_large_files"
fi

fi

AC_SUBST(LARGEFILE_CFLAGS)

LAC_THREADS
Expand Down Expand Up @@ -174,15 +196,15 @@ fi


AC_CONFIG_FILES([
Makefile
Makefile
globus-common.pc
globus-common-uninstalled.pc
library/Makefile
library/Doxyfile
library/Makefile
library/Doxyfile
library/globus_l_common_paths.h
programs/Makefile
programs/Makefile
programs/globus-sh-exec
scripts/Makefile
scripts/Makefile
scripts/Paths.pm
scripts/globus-sh-tools.sh
scripts/globus-sh-tools-vars.sh
Expand All @@ -192,7 +214,7 @@ AC_CONFIG_FILES([
scripts/globus-script-initializer.$host_cpu-$host_vendor-$host_os:scripts/globus-script-initializer-host.in
test/Makefile
manpages/Makefile
version.h])
version.h])
AC_CONFIG_FILES([programs/globus-version], [chmod a+x programs/globus-version])
AC_CONFIG_FILES([scripts/globus-domainname:scripts/globus-hostname.in],
[chmod a+x scripts/globus-domainname])
Expand Down
6 changes: 6 additions & 0 deletions packaging/debian/globus-common/debian/changelog.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
globus-common (18.15-1+gct.@distro@) @distro@; urgency=medium

* Compatibility with autoconf 2.72

-- Mattias Ellert <[email protected]> Wed, 30 Oct 2024 12:26:59 +0100

globus-common (18.14-1+gct.@distro@) @distro@; urgency=medium

* Remove register qualifier that is incompatible with C++ 17
Expand Down
5 changes: 4 additions & 1 deletion packaging/fedora/globus-common.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Name: globus-common
%global soname 0
%global _name %(echo %{name} | tr - _)
Version: 18.14
Version: 18.15
Release: 1%{?dist}
Summary: Grid Community Toolkit - Common Library

Expand Down Expand Up @@ -239,6 +239,9 @@ make %{?_smp_mflags} check VERBOSE=1 NO_EXTERNAL_NET=1
%doc %{_pkgdocdir}/GLOBUS_LICENSE

%changelog
* Wed Oct 30 2024 Mattias Ellert <[email protected]> - 18.15-1
- Compatibility with autoconf 2.72

* Thu Feb 16 2023 Mattias Ellert <[email protected]> - 18.14-1
- Remove register qualifier that is incompatible with C++ 17

Expand Down

0 comments on commit b10f3a9

Please sign in to comment.