1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- dnl SPDX-FileCopyrightText: 2024 mio <stigma@disroot.org>
- dnl Copyright 2024 mio <stigma@disroot.org>
- dnl
- dnl SPDX-License-Identifier: GPL-3.0-only.
- dnl configuration script for pixiv_down
- dnl Process this file with autoconf to produce the 'configure' script.
- AC_INIT([pixiv_down], [2024.09], [stigma@disroot.org],
- [pixiv_down],
- [https://yume-neru.neocities.org/pixiv_down.html])
- AC_CONFIG_AUX_DIR([build-aux])
- AM_INIT_AUTOMAKE([gnu silent-rules -Wall -Wno-portability
- subdir-objects])
- AC_PROG_CC
- AC_CHECK_PROGS([DC], [gdc ldc2 dmd], none)
- AS_IF([test x"$DC" = x"none"],
- [ AC_MSG_ERROR([Please install a D compiler such as GDC, DMD, or LDC]) ])
- AM_CONDITIONAL(IS_GDC, test x$DC = xgdc)
- AM_CONDITIONAL(IS_LDC, test x$DC = xldc2)
- AM_CONDITIONAL(IS_DMD, test x$DC = xdmd)
- dnl This should be moved to custom M4 script.
- GDC_VERSION=""
- GDC_VERSION_MAJOR=""
- AS_IF([test x"$DC" = x"gdc"],
- AC_MSG_CHECKING([if gdc is version 12])
- GDC_VERSION=$($DC -dumpversion)
- GDC_VERSION_MAJOR=$(echo $GDC_VERSION | cut -d'.' -f1)
- AS_IF([test "x$GDC_VERSION_MAJOR" = "x12"],
- AC_MSG_RESULT([yes]),
- AC_MSG_RESULT([no])))
- AM_CONDITIONAL(IS_GDC_12, test "x$GDC_VERSION_MAJOR" = "x12")
- VCS_TAG="release"
- AC_CHECK_PROGS([GIT], git, none)
- AS_IF([test "x$GIT" = "xnone"], [],
- AS_IF([test -d ".git"],
- VCS_TAG=$(git rev-parse --short HEAD)))
- AC_SUBST(VCS_TAG)
- AC_CONFIG_FILES([
- Makefile
- docs/Makefile
- source/Makefile
- source/pd_version.d
- ])
- AC_OUTPUT
|