Browse Source

Removed old build system

This was fun!!! Holler if I had too much fun. :-)
au-ny-api
Leland Lucius 2 years ago
parent
commit
c42d188e7b
  1. 321
      .github/workflows/build.yml
  2. 4
      .travis.yml
  3. 17
      Directory.Build.props
  4. 115
      Makefile.am
  5. 1292
      Makefile.in
  6. 270
      autotools/ar-lib
  7. 347
      autotools/compile
  8. 1558
      autotools/config.guess
  9. 672
      autotools/config.rpath
  10. 1791
      autotools/config.sub
  11. 791
      autotools/depcomp
  12. 527
      autotools/install-sh
  13. 9661
      autotools/ltmain.sh
  14. 215
      autotools/missing
  15. 139
      autotools/test-driver
  16. 6
      cmake-proxies/wxWidgets/CMakeLists.txt
  17. 27268
      configure
  18. 810
      configure.ac
  19. 4
      help/Makefile.am
  20. 669
      help/Makefile.in
  21. 83
      images/Makefile.am
  22. 865
      images/Makefile.in
  23. 30
      lib-src/FileDialog/Makefile.am
  24. 996
      lib-src/FileDialog/Makefile.in
  25. 270
      lib-src/FileDialog/autotools/ar-lib
  26. 347
      lib-src/FileDialog/autotools/compile
  27. 1558
      lib-src/FileDialog/autotools/config.guess
  28. 1791
      lib-src/FileDialog/autotools/config.sub
  29. 791
      lib-src/FileDialog/autotools/depcomp
  30. 527
      lib-src/FileDialog/autotools/install-sh
  31. 9661
      lib-src/FileDialog/autotools/ltmain.sh
  32. 215
      lib-src/FileDialog/autotools/missing
  33. 18809
      lib-src/FileDialog/configure
  34. 140
      lib-src/FileDialog/configure.ac
  35. 7997
      lib-src/FileDialog/m4/libtool.m4
  36. 384
      lib-src/FileDialog/m4/ltoptions.m4
  37. 123
      lib-src/FileDialog/m4/ltsugar.m4
  38. 23
      lib-src/FileDialog/m4/ltversion.m4
  39. 98
      lib-src/FileDialog/m4/lt~obsolete.m4
  40. 218
      lib-src/Makefile.am
  41. 1300
      lib-src/Makefile.in
  42. 89
      lib-src/dist-libsoxr.mk
  43. 103
      lib-src/dist-libvamp.mk
  44. 354
      lib-src/dist-portaudio.mk
  45. 1
      lib-src/libsoxr/inst-check-soxr-lsr
  46. 13
      lib-src/mod-null/Makefile.am
  47. 879
      lib-src/mod-null/Makefile.in
  48. 30
      lib-src/mod-null/ModNullCallback.cpp
  49. 270
      lib-src/mod-null/autotools/ar-lib
  50. 347
      lib-src/mod-null/autotools/compile
  51. 1558
      lib-src/mod-null/autotools/config.guess
  52. 1791
      lib-src/mod-null/autotools/config.sub
  53. 791
      lib-src/mod-null/autotools/depcomp
  54. 527
      lib-src/mod-null/autotools/install-sh
  55. 9661
      lib-src/mod-null/autotools/ltmain.sh
  56. 215
      lib-src/mod-null/autotools/missing
  57. 19610
      lib-src/mod-null/configure
  58. 82
      lib-src/mod-null/configure.ac
  59. 562
      lib-src/mod-null/m4/ax_cxx_compile_stdcxx.m4
  60. 7997
      lib-src/mod-null/m4/libtool.m4
  61. 384
      lib-src/mod-null/m4/ltoptions.m4
  62. 123
      lib-src/mod-null/m4/ltsugar.m4
  63. 23
      lib-src/mod-null/m4/ltversion.m4
  64. 98
      lib-src/mod-null/m4/lt~obsolete.m4
  65. 15
      lib-src/mod-nyq-bench/Makefile.am
  66. 880
      lib-src/mod-nyq-bench/Makefile.in
  67. 29
      lib-src/mod-nyq-bench/NyqBench.cpp
  68. 270
      lib-src/mod-nyq-bench/autotools/ar-lib
  69. 347
      lib-src/mod-nyq-bench/autotools/compile
  70. 1558
      lib-src/mod-nyq-bench/autotools/config.guess
  71. 1791
      lib-src/mod-nyq-bench/autotools/config.sub
  72. 791
      lib-src/mod-nyq-bench/autotools/depcomp
  73. 527
      lib-src/mod-nyq-bench/autotools/install-sh
  74. 9661
      lib-src/mod-nyq-bench/autotools/ltmain.sh
  75. 215
      lib-src/mod-nyq-bench/autotools/missing
  76. 19610
      lib-src/mod-nyq-bench/configure
  77. 82
      lib-src/mod-nyq-bench/configure.ac
  78. 562
      lib-src/mod-nyq-bench/m4/ax_cxx_compile_stdcxx.m4
  79. 7997
      lib-src/mod-nyq-bench/m4/libtool.m4
  80. 384
      lib-src/mod-nyq-bench/m4/ltoptions.m4
  81. 123
      lib-src/mod-nyq-bench/m4/ltsugar.m4
  82. 23
      lib-src/mod-nyq-bench/m4/ltversion.m4
  83. 98
      lib-src/mod-nyq-bench/m4/lt~obsolete.m4
  84. 15
      lib-src/mod-script-pipe/Makefile.am
  85. 869
      lib-src/mod-script-pipe/Makefile.in
  86. 30
      lib-src/mod-script-pipe/ScripterCallback.cpp
  87. 270
      lib-src/mod-script-pipe/autotools/ar-lib
  88. 347
      lib-src/mod-script-pipe/autotools/compile
  89. 1558
      lib-src/mod-script-pipe/autotools/config.guess
  90. 1791
      lib-src/mod-script-pipe/autotools/config.sub
  91. 791
      lib-src/mod-script-pipe/autotools/depcomp
  92. 527
      lib-src/mod-script-pipe/autotools/install-sh
  93. 9661
      lib-src/mod-script-pipe/autotools/ltmain.sh
  94. 215
      lib-src/mod-script-pipe/autotools/missing
  95. 19248
      lib-src/mod-script-pipe/configure
  96. 82
      lib-src/mod-script-pipe/configure.ac
  97. 562
      lib-src/mod-script-pipe/m4/ax_cxx_compile_stdcxx.m4
  98. 7997
      lib-src/mod-script-pipe/m4/libtool.m4
  99. 384
      lib-src/mod-script-pipe/m4/ltoptions.m4
  100. 123
      lib-src/mod-script-pipe/m4/ltsugar.m4

321
.github/workflows/build.yml

@ -1,321 +0,0 @@
name: Build Audacity
on:
push:
# Remove the "#" from the next 2 lines if you need to disable this action
branches:
- disable
pull_request:
# Remove the "#" from the next 2 lines if you need to disable this action
branches:
- disable
jobs:
build:
# =========================================================================
# Run asynchronous builds
# =========================================================================
strategy:
fail-fast: false
matrix:
os: [windows-2019, ubuntu-16.04, ubuntu-18.04, macos-latest]
#os: [macos-latest]
runs-on: ${{ matrix.os }}
env:
USE_AUDACITY_WX: true
steps:
# =========================================================================
# SHARED: Checkout source
# =========================================================================
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
# =========================================================================
# SHARED: Retrieve the commit hash and generate revision header
# =========================================================================
- name: Generate Header
shell: bash
run: |
set -x
# Generate the revision header
git show -s --format="#define REV_LONG \"%H\"%n#define REV_TIME \"%cd\"%n" >src/RevisionIdent.h
# Export the long and short hashs to further steps
echo "::set-env name=LONGHASH::$(git show -s --format='%H')"
echo "::set-env name=SHORTHASH::$(git show -s --format='%h')"
# =========================================================================
# SHARED: Retrieve the wxWidgets source and export the commit hash
# =========================================================================
- name: wxWidgets Hash
shell: bash
run: |
set -x
# Get latest wxWidgets source
git clone --depth 1 -n https://github.com/audacity/wxWidgets
cd wxWidgets
# Export the commit hash to further steps
echo "::set-env name=WXHASH::$(git show -s --format='%H')"
# =========================================================================
# SHARED: Create and/or retrieve wxWidgets cached build
# =========================================================================
- name: Cache wxWidgets
uses: actions/cache@v1
with:
# Increment the number at the end to force recreation of the cache
key: wxWidgets_${{ matrix.os }}_${{ env.WXHASH }}.8
path: wxroot
# =========================================================================
# WINDOWS: Setup Nuget (for all versions of Windows)
# =========================================================================
- name: Setup Nuget
uses: nuget/setup-nuget@v1
if: startswith( matrix.os, 'windows' )
# =========================================================================
# WINDOWS: Build (for all versions of Windows)
# =========================================================================
- name: Build Windows
if: startswith( matrix.os, 'windows' )
shell: cmd
run: |
:: Set up Visual Studio environment
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
ECHO ON
:: Setup environment
choco install zip
:: Identify wxWidgets installation directory
SET WXWIN=%GITHUB_WORKSPACE%\wxroot
:: Build wxWidgets if needed
IF NOT EXIST %WXWIN% (
MKDIR %WXWIN%
CD wxWidgets
git checkout
git submodule update --init
:: Build it
CD build\msw
nmake -f makefile.vc BUILD=release SHARED=1
IF NOT %ERRORLEVEL% == 0 EXIT %ERRORLEVEL%
CD ..\..
:: "Install" wxWidgets
XCOPY include %WXWIN%\include /E /I /Q /Y
XCOPY lib %WXWIN%\lib /E /I /Q /Y
XCOPY locale %WXWIN%\locale /E /I /Q /Y
XCOPY src %WXWIN%\src /E /I /Q /Y
CD ..
)
:: Build Audacity
CD win
:: Restore packages (for gettext)
nuget restore audacity.sln
:: Build solution
msbuild audacity.sln /m /p:Configuration=Release /p:Platform=Win32
IF NOT %ERRORLEVEL% == 0 EXIT %ERRORLEVEL%
:: "Install" Audacity
MKDIR "%LONGHASH%"
XCOPY Release "%LONGHASH%" /E /I /Q /Y
XCOPY %WXWIN%\lib\vc_dll\*u_net_*.dll "%LONGHASH%" /E /I /Q /Y
XCOPY %WXWIN%\lib\vc_dll\*u_vc_*.dll "%LONGHASH%" /E /I /Q /Y
XCOPY %WXWIN%\lib\vc_dll\*u_xml_*.dll "%LONGHASH%" /E /I /Q /Y
XCOPY %WXWIN%\lib\vc_dll\*u_adv_*.dll "%LONGHASH%" /E /I /Q /Y
XCOPY %WXWIN%\lib\vc_dll\*u_core_*.dll "%LONGHASH%" /E /I /Q /Y
XCOPY %WXWIN%\lib\vc_dll\*u_html_*.dll "%LONGHASH%" /E /I /Q /Y
XCOPY %WXWIN%\lib\vc_dll\*u_qa_*.dll "%LONGHASH%" /E /I /Q /Y
CD "%LONGHASH%"
DEL /Q /S *.iobj *.exp *.ilk *.lib *.ipdb *.pdb include
#CD ..
:: Create artifact
zip -r9 "..\..\%LONGHASH%.zip" *
# =========================================================================
# UBUNTU: Build (for all versions of Ubuntu)
# =========================================================================
- name: Build Ubuntu
if: startswith( matrix.os, 'ubuntu' )
shell: bash
run: |
set -x
# Setup environment
sudo apt-get update -y
sudo apt-get install -y libgtk2.0-dev libasound2-dev autoconf automake autogen zip
# Identify wxWidgets installation directory
WXROOT="${GITHUB_WORKSPACE}/wxroot"
# Build wxWidgets if needed
if [ ! -e "${WXROOT}" ]
then
mkdir "${WXROOT}"
cd wxWidgets
git checkout
git submodule update --init
./configure --with-gtk
make -j $(nproc) install DESTDIR="${WXROOT}"
cd ..
fi
# "Install" wxWidgets
sudo cp -a "${WXROOT}"/* /
# Configure Audacity
mkdir bld
cd bld
../configure --with-lib-preference='local system'
# Build lib-src first
#
# This allows using multiple make jobs (-j). If not done this way
# the build may fail (bug in our make process)
cd lib-src
make -j $(nproc)
cd ..
# And then the rest
make -j $(nproc)
# Identify installation directory
DESTDIR="$(pwd)/linux"
mkdir -p "${DESTDIR}"
# Create wrapper script
#
# (This is only needed if using our wxWidgets libs)
cat >"${DESTDIR}/audacity" <<"EOF"
#!/bin/sh
export LD_LIBRARY_PATH="${0%/*}:${LD_LIBRARY_PATH}"
"${0%/*}/audacity.bin"
EOF
chmod +x "${DESTDIR}/audacity"
# Copy over dist files
cp -a audacity "${DESTDIR}/audacity.bin"
cp -aL nyquist plug-ins "${DESTDIR}"
mkdir "${DESTDIR}/help" "${DESTDIR}/locale/"
cp -aL $(find locale/ -type d) "${DESTDIR}/locale/"
# Copy wxWidgets libraries
cp -a "${WXROOT}"/usr/local/lib/*.so* "${DESTDIR}"
# Create artifact (zipped as Github actions don't preserve permissions)
cd "${DESTDIR}"
zip -r9 "${GITHUB_WORKSPACE}/${LONGHASH}.zip" *
# =========================================================================
# MACOS: Build (for all versions of MacOS)
# =========================================================================
- name: Build Mac
if: startswith( matrix.os, 'macos' )
shell: bash
run: |
set -x
# The minimum OS X version supported by Audacity is 10.7.
minver=10.7
# Make the "msgfmt" command available
brew install gettext
brew link --force gettext
# Make sure MacOS supplied commands are used
export PATH="/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin"
# Identify wxWidgets installation directory
WXROOT="${GITHUB_WORKSPACE}/wxroot"
# Build wxWidgets if needed
if [ ! -e "${WXROOT}" ]
then
mkdir "${WXROOT}"
cd wxWidgets
git checkout
git submodule update --init
# Make sure our flags are included
export CXX="g++ -std=c++1z -stdlib=libc++"
export LD="g++ -std=c++1z -stdlib=libc++"
# Build x86_64, release, shared configuration
./configure --prefix=/usr/local/x86_64 \
--enable-debug=no \
--enable-macosx-arch="x86_64" \
--enable-shared=yes \
--enable-unicode=yes \
--enable-universal_binary=no \
--enable-webkit=no \
--enable-webviewwebkit=no \
--with-expat=builtin \
--with-flavour="release" \
--with-libjpeg=builtin \
--with-libpng=builtin \
--with-libtiff=builtin \
--with-macosx-version-min="${minver}" \
--with-regex=builtin \
--with-zlib=builtin \
--without-liblzma
${run} make -j $(sysctl -n hw.ncpu) install DESTDIR="${WXROOT}"
unset CXX LD
cd ..
fi
# "Install" wxWidgets
sudo cp -a "${WXROOT}/usr/local" /usr/
# Build Audacity
cd mac
# Temporary workaround until they can be incorporated into
# the Xcode project itself
sed -i '' -e "s/TARGET=10.9/TARGET=${minver}/g" \
-e "s/macosx10.9/macosx/g" Audacity.xcodeproj/project.pbxproj
xcodebuild -configuration Release64 install
cd ..
# "Install" Audacity
mkdir -p macos
cp -a /tmp/Audacity.dst/Audacity.app macos
# Create artifact (zipped as Github actions don't preserve permissions)
cd "/tmp/Audacity.dst"
zip -r9 "${GITHUB_WORKSPACE}/${LONGHASH}.zip" *
# =========================================================================
# SHARED: Attach the artifact to the workflow results
# =========================================================================
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.os }}_${{ env.SHORTHASH }}
path: ${{ env.LONGHASH }}.zip

4
.travis.yml

@ -5,7 +5,7 @@ addons:
- ubuntu-toolchain-r-test
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libwxgtk3.0-dev libgtk2.0-dev gettext autopoint libasound2-dev alsa-utils alsa-oss
- sudo apt-get install -y cmake libwxgtk3.0-dev libgtk2.0-dev gettext autopoint libasound2-dev alsa-utils alsa-oss
- git show -s --format="#define REV_LONG \"%H\"%n#define REV_TIME \"%cd\"%n" | tee ./src/RevisionIdent.h
- FLAGS="-std=gnu++14"
- export CFLAGS="$CFLAGS $FLAGS"
@ -16,4 +16,4 @@ language:
script:
- mkdir build
- cd build
- time ../configure && time make modules && time make -j2
- time cmake .. && time make -j2

17
Directory.Build.props

@ -1,17 +0,0 @@
<Project>
<PropertyGroup>
<AudacityWxDir>$(MSBuildThisFileDirectory)lib-src\wxWidgets\</AudacityWxDir>
<AudacityWxDir Condition="'$(WXWIN)'!='' And Exists('$(WXWIN)')">$(WXWIN)</AudacityWxDir>
<WXWIN>$(AudacityWxDir)</WXWIN>
</PropertyGroup>
<PropertyGroup>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
<WholeProgramOptimization Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='DLL Release'">true</WholeProgramOptimization>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
</ItemDefinitionGroup>
</Project>

115
Makefile.am

@ -1,115 +0,0 @@
SUBDIRS = help images lib-src po src tests
ACLOCAL_AMFLAGS = -I m4
bin_PROGRAMS = audacity$(EXEEXT)
dist_doc_DATA = LICENSE.txt README.txt
dist_pkgdata_DATA = presets/EQDefaultCurves.xml
suillibdir = $(pkglibdir)
suillib_DATA = $(shell [ -e lib-src/lv2/build ] && find lib-src/lv2/build -name \*.so)
nobase_dist_pkgdata_DATA = \
include/audacity/ComponentInterface.h \
include/audacity/ConfigInterface.h \
include/audacity/EffectAutomationParameters.h \
include/audacity/EffectInterface.h \
include/audacity/ImporterInterface.h \
include/audacity/ModuleInterface.h \
include/audacity/PluginInterface.h \
include/audacity/Types.h \
nyquist/aud-do-support.lsp \
nyquist/dspprims.lsp \
nyquist/envelopes.lsp \
nyquist/equalizer.lsp \
nyquist/evalenv.lsp \
nyquist/fileio.lsp \
nyquist/init.lsp \
nyquist/misc.lsp \
nyquist/nyinit-dbg.lsp \
nyquist/nyinit.lsp \
nyquist/nyqmisc.lsp \
nyquist/nyquist-plot.txt
nyquist/nyquist.lsp \
nyquist/printrec.lsp \
nyquist/profile.lsp \
nyquist/sal-parse.lsp \
nyquist/sal.lsp \
nyquist/seq.lsp \
nyquist/seqfnint.lsp \
nyquist/seqmidi.lsp \
nyquist/sliders.lsp \
nyquist/sndfnint.lsp \
nyquist/spec-plot.lsp \
nyquist/spectral-analysis.lsp \
nyquist/stk.lsp \
nyquist/system.lsp \
nyquist/test.lsp \
nyquist/upic.sal
nyquist/velocity.lsp \
nyquist/xlinit.lsp \
nyquist/xm.lsp \
nyquist/rawwaves/mand1.raw \
nyquist/rawwaves/mand2.raw \
nyquist/rawwaves/mand3.raw \
nyquist/rawwaves/mand4.raw \
nyquist/rawwaves/mand5.raw \
nyquist/rawwaves/mand6.raw \
nyquist/rawwaves/mand7.raw \
nyquist/rawwaves/mand8.raw \
nyquist/rawwaves/mand9.raw \
nyquist/rawwaves/mand10.raw \
nyquist/rawwaves/mand11.raw \
nyquist/rawwaves/mand12.raw \
nyquist/rawwaves/mandpluk.raw \
nyquist/rawwaves/marmstk1.raw \
nyquist/rawwaves/sinewave.raw \
plug-ins/adjustable-fade.ny \
plug-ins/beat.ny \
plug-ins/clipfix.ny \
plug-ins/crossfadeclips.ny \
plug-ins/crossfadetracks.ny \
plug-ins/delay.ny \
plug-ins/eq-xml-to-txt-converter.ny \
plug-ins/equalabel.ny \
plug-ins/highpass.ny \
plug-ins/limiter.ny \
plug-ins/lowpass.ny \
plug-ins/noisegate.ny \
plug-ins/notch.ny \
plug-ins/nyquist-plug-in-installer.ny \
plug-ins/pluck.ny \
plug-ins/rhythmtrack.ny \
plug-ins/rissetdrum.ny \
plug-ins/rms.ny \
plug-ins/sample-data-export.ny \
plug-ins/sample-data-import.ny \
plug-ins/SilenceMarker.ny \
plug-ins/SoundFinder.ny \
plug-ins/spectral-delete.ny \
plug-ins/SpectralEditMulti.ny \
plug-ins/SpectralEditParametricEQ.ny \
plug-ins/SpectralEditShelves.ny \
plug-ins/StudioFadeOut.ny \
plug-ins/tremolo.ny \
plug-ins/vocalrediso.ny \
plug-ins/vocoder.ny \
$(NULL)
audacity$(EXEEXT): src/audacity$(EXEEXT)
rm -f audacity$(EXEEXT)
cp src/audacity$(EXEEXT) audacity$(EXEEXT)
[ -e plug-ins ] || ln -s $(srcdir)/plug-ins
[ -e nyquist ] || ln -s $(srcdir)/nyquist
[ -e locale ] || ln -s po locale
modules:
mkdir -p modules
(cd lib-src/mod-nyq-bench && make clean && make && cp .libs/mod-nyq-bench.so ../../modules)
(cd lib-src/mod-script-pipe && make clean && make && cp .libs/mod-script-pipe.so ../../modules)
(cd lib-src/mod-null && make clean && make && cp .libs/mod-null.so ../../modules)
.PHONY: modules
CLEANFILES = audacity$(EXEEXT) plug-ins nyquist locale modules

1292
Makefile.in
File diff suppressed because it is too large
View File

270
autotools/ar-lib

@ -1,270 +0,0 @@
#! /bin/sh
# Wrapper for Microsoft lib.exe
me=ar-lib
scriptversion=2012-03-01.08; # UTC
# Copyright (C) 2010-2013 Free Software Foundation, Inc.
# Written by Peter Rosin <peda@lysator.liu.se>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
# func_error message
func_error ()
{
echo "$me: $1" 1>&2
exit 1
}
file_conv=
# func_file_conv build_file
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv in
mingw)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin)
file=`cygpath -m "$file" || echo "$file"`
;;
wine)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_at_file at_file operation archive
# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE
# for each of them.
# When interpreting the content of the @FILE, do NOT use func_file_conv,
# since the user would need to supply preconverted file names to
# binutils ar, at least for MinGW.
func_at_file ()
{
operation=$2
archive=$3
at_file_contents=`cat "$1"`
eval set x "$at_file_contents"
shift
for member
do
$AR -NOLOGO $operation:"$member" "$archive" || exit $?
done
}
case $1 in
'')
func_error "no command. Try '$0 --help' for more information."
;;
-h | --h*)
cat <<EOF
Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...]
Members may be specified in a file named with @FILE.
EOF
exit $?
;;
-v | --v*)
echo "$me, version $scriptversion"
exit $?
;;
esac
if test $# -lt 3; then
func_error "you must specify a program, an action and an archive"
fi
AR=$1
shift
while :
do
if test $# -lt 2; then
func_error "you must specify a program, an action and an archive"
fi
case $1 in
-lib | -LIB \
| -ltcg | -LTCG \
| -machine* | -MACHINE* \
| -subsystem* | -SUBSYSTEM* \
| -verbose | -VERBOSE \
| -wx* | -WX* )
AR="$AR $1"
shift
;;
*)
action=$1
shift
break
;;
esac
done
orig_archive=$1
shift
func_file_conv "$orig_archive"
archive=$file
# strip leading dash in $action
action=${action#-}
delete=
extract=
list=
quick=
replace=
index=
create=
while test -n "$action"
do
case $action in
d*) delete=yes ;;
x*) extract=yes ;;
t*) list=yes ;;
q*) quick=yes ;;
r*) replace=yes ;;
s*) index=yes ;;
S*) ;; # the index is always updated implicitly
c*) create=yes ;;
u*) ;; # TODO: don't ignore the update modifier
v*) ;; # TODO: don't ignore the verbose modifier
*)
func_error "unknown action specified"
;;
esac
action=${action#?}
done
case $delete$extract$list$quick$replace,$index in
yes,* | ,yes)
;;
yesyes*)
func_error "more than one action specified"
;;
*)
func_error "no action specified"
;;
esac
if test -n "$delete"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
for member
do
case $1 in
@*)
func_at_file "${1#@}" -REMOVE "$archive"
;;
*)
func_file_conv "$1"
$AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
;;
esac
done
elif test -n "$extract"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
if test $# -gt 0; then
for member
do
case $1 in
@*)
func_at_file "${1#@}" -EXTRACT "$archive"
;;
*)
func_file_conv "$1"
$AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
;;
esac
done
else
$AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member
do
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
done
fi
elif test -n "$quick$replace"; then
if test ! -f "$orig_archive"; then
if test -z "$create"; then
echo "$me: creating $orig_archive"
fi
orig_archive=
else
orig_archive=$archive
fi
for member
do
case $1 in
@*)
func_file_conv "${1#@}"
set x "$@" "@$file"
;;
*)
func_file_conv "$1"
set x "$@" "$file"
;;
esac
shift
shift
done
if test -n "$orig_archive"; then
$AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $?
else
$AR -NOLOGO -OUT:"$archive" "$@" || exit $?
fi
elif test -n "$list"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
$AR -NOLOGO -LIST "$archive" || exit $?
fi

347
autotools/compile

@ -1,347 +0,0 @@
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
scriptversion=2012-10-14.11; # UTC
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
nl='
'
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent tools from complaining about whitespace usage.
IFS=" "" $nl"
file_conv=
# func_file_conv build_file lazy
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts. If the determined conversion
# type is listed in (the comma separated) LAZY, no conversion will
# take place.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv/,$2, in
*,$file_conv,*)
;;
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_cl_dashL linkdir
# Make cl look for libraries in LINKDIR
func_cl_dashL ()
{
func_file_conv "$1"
if test -z "$lib_path"; then
lib_path=$file
else
lib_path="$lib_path;$file"
fi
linker_opts="$linker_opts -LIBPATH:$file"
}
# func_cl_dashl library
# Do a library search-path lookup for cl
func_cl_dashl ()
{
lib=$1
found=no
save_IFS=$IFS
IFS=';'
for dir in $lib_path $LIB
do
IFS=$save_IFS
if $shared && test -f "$dir/$lib.dll.lib"; then
found=yes
lib=$dir/$lib.dll.lib
break
fi
if test -f "$dir/$lib.lib"; then
found=yes
lib=$dir/$lib.lib
break
fi
if test -f "$dir/lib$lib.a"; then
found=yes
lib=$dir/lib$lib.a
break
fi
done
IFS=$save_IFS
if test "$found" != yes; then
lib=$lib.lib
fi
}
# func_cl_wrapper cl arg...
# Adjust compile command to suit cl
func_cl_wrapper ()
{
# Assume a capable shell
lib_path=
shared=:
linker_opts=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
eat=1
case $2 in
*.o | *.[oO][bB][jJ])
func_file_conv "$2"
set x "$@" -Fo"$file"
shift
;;
*)
func_file_conv "$2"
set x "$@" -Fe"$file"
shift
;;
esac
;;
-I)
eat=1
func_file_conv "$2" mingw
set x "$@" -I"$file"
shift
;;
-I*)
func_file_conv "${1#-I}" mingw
set x "$@" -I"$file"
shift
;;
-l)
eat=1
func_cl_dashl "$2"
set x "$@" "$lib"
shift
;;
-l*)
func_cl_dashl "${1#-l}"
set x "$@" "$lib"
shift
;;
-L)
eat=1
func_cl_dashL "$2"
;;
-L*)
func_cl_dashL "${1#-L}"
;;
-static)
shared=false
;;
-Wl,*)
arg=${1#-Wl,}
save_ifs="$IFS"; IFS=','
for flag in $arg; do
IFS="$save_ifs"
linker_opts="$linker_opts $flag"
done
IFS="$save_ifs"
;;
-Xlinker)
eat=1
linker_opts="$linker_opts $2"
;;
-*)
set x "$@" "$1"
shift
;;
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
func_file_conv "$1"
set x "$@" -Tp"$file"
shift
;;
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
func_file_conv "$1" mingw
set x "$@" "$file"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -n "$linker_opts"; then
linker_opts="-link$linker_opts"
fi
exec "$@" $linker_opts
exit 1
}
eat=
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: compile [--help] [--version] PROGRAM [ARGS]
Wrapper for compilers which do not understand '-c -o'.
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
arguments, and rename the output as expected.
If you are trying to build a whole package this is not the
right script to run: please start by reading the file 'INSTALL'.
Report bugs to <bug-automake@gnu.org>.
EOF
exit $?
;;
-v | --v*)
echo "compile $scriptversion"
exit $?
;;
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
ofile=
cfile=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
# So we strip '-o arg' only if arg is an object.
eat=1
case $2 in
*.o | *.obj)
ofile=$2
;;
*)
set x "$@" -o "$2"
shift
;;
esac
;;
*.c)
cfile=$1
set x "$@" "$1"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -z "$ofile" || test -z "$cfile"; then
# If no '-o' option was seen then we might have been invoked from a
# pattern rule where we don't need one. That is ok -- this is a
# normal compilation that the losing compiler can handle. If no
# '.c' file was seen then we are probably linking. That is also
# ok.
exec "$@"
fi
# Name of file we expect compiler to create.
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
# Create the lock directory.
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
# that we are using for the .o file. Also, base the name on the expected
# object file name, since that is what matters with a parallel build.
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
while true; do
if mkdir "$lockdir" >/dev/null 2>&1; then
break
fi
sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
trap "rmdir '$lockdir'; exit 1" 1 2 15
# Run the compile.
"$@"
ret=$?
if test -f "$cofile"; then
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
elif test -f "${cofile}bj"; then
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
fi
rmdir "$lockdir"
exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:

1558
autotools/config.guess
File diff suppressed because it is too large
View File

672
autotools/config.rpath

@ -1,672 +0,0 @@
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2010 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# The first argument passed to this file is the canonical host specification,
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
# should be set by the caller.
#
# The set of defined variables is at the end of this script.
# Known limitations:
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
# than 256 bytes, otherwise the compiler driver will dump core. The only
# known workaround is to choose shorter directory names for the build
# directory and/or the installation directory.
# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
shrext=.so
host="$1"
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
# Code taken from libtool.m4's _LT_CC_BASENAME.
for cc_temp in $CC""; do
case $cc_temp in
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
\-*) ;;
*) break;;
esac
done
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
# Code taken from libtool.m4's _LT_COMPILER_PIC.
wl=
if test "$GCC" = yes; then
wl='-Wl,'
else
case "$host_os" in
aix*)
wl='-Wl,'
;;
darwin*)
case $cc_basename in
xlc*)
wl='-Wl,'
;;
esac
;;
mingw* | cygwin* | pw32* | os2* | cegcc*)
;;
hpux9* | hpux10* | hpux11*)
wl='-Wl,'
;;
irix5* | irix6* | nonstopux*)
wl='-Wl,'
;;
newsos6)
;;
linux* | k*bsd*-gnu)
case $cc_basename in
ecc*)
wl='-Wl,'
;;
icc* | ifort*)
wl='-Wl,'
;;
lf95*)
wl='-Wl,'
;;
pgcc | pgf77 | pgf90)
wl='-Wl,'
;;
ccc*)
wl='-Wl,'
;;
como)
wl='-lopt='
;;
*)
case `$CC -V 2>&1 | sed 5q` in
*Sun\ C*)
wl='-Wl,'
;;
esac
;;
esac
;;
osf3* | osf4* | osf5*)
wl='-Wl,'
;;
rdos*)
;;
solaris*)
wl='-Wl,'
;;
sunos4*)
wl='-Qoption ld '
;;
sysv4 | sysv4.2uw2* | sysv4.3*)
wl='-Wl,'
;;
sysv4*MP*)
;;
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
wl='-Wl,'
;;
unicos*)
wl='-Wl,'
;;
uts4*)
;;
esac
fi
# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
case "$host_os" in
cygwin* | mingw* | pw32* | cegcc*)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
if test "$GCC" != yes; then
with_gnu_ld=no
fi
;;
interix*)
# we just hope/assume this is gcc and not c89 (= MSVC++)
with_gnu_ld=yes
;;
openbsd*)
with_gnu_ld=no
;;
esac
ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
# Set some defaults for GNU ld with shared library support. These
# are reset later if shared libraries are not supported. Putting them
# here allows them to be overridden if necessary.
# Unlike libtool, we use -rpath here, not --rpath, since the documented
# option of GNU ld is called -rpath, not --rpath.
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
case "$host_os" in
aix[3-9]*)
# On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
# that the semantics of dynamic libraries on AmigaOS, at least up
# to version 4, is to share data among multiple programs linked
# with the same dynamic library. Since this doesn't match the
# behavior of shared libraries on other platforms, we cannot use
# them.
ld_shlibs=no
;;
beos*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
cygwin* | mingw* | pw32* | cegcc*)
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec='-L$libdir'
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
interix[3-9]*)
hardcode_direct=no
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
gnu* | linux* | k*bsd*-gnu)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
netbsd*)
;;
solaris*)
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
ld_shlibs=no
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
case `$LD -v 2>&1` in
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
ld_shlibs=no
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
else
ld_shlibs=no
fi
;;
esac
;;
sunos4*)
hardcode_direct=yes
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
esac
if test "$ld_shlibs" = no; then
hardcode_libdir_flag_spec=
fi
else
case "$host_os" in
aix3*)
# Note: this linker hardcodes the directories in LIBPATH if there
# are no directories specified by -L.
hardcode_minus_L=yes
if test "$GCC" = yes; then
# Neither direct hardcoding nor static linking is supported with a
# broken collect2.
hardcode_direct=unsupported
fi
;;
aix[4-9]*)
if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
aix_use_runtimelinking=no
else
aix_use_runtimelinking=no
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
aix_use_runtimelinking=yes
break
fi
done
;;
esac
fi
hardcode_direct=yes
hardcode_libdir_separator=':'
if test "$GCC" = yes; then
case $host_os in aix4.[012]|aix4.[012].*)
collect2name=`${CC} -print-prog-name=collect2`
if test -f "$collect2name" && \
strings "$collect2name" | grep resolve_lib_name >/dev/null
then
# We have reworked collect2
:
else
# We have old collect2
hardcode_direct=unsupported
hardcode_minus_L=yes
hardcode_libdir_flag_spec='-L$libdir'
hardcode_libdir_separator=
fi
;;
esac
fi
# Begin _LT_AC_SYS_LIBPATH_AIX.
echo 'int main () { return 0; }' > conftest.c
${CC} ${LDFLAGS} conftest.c -o conftest
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
if test -z "$aix_libpath"; then
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
fi
if test -z "$aix_libpath"; then
aix_libpath="/usr/lib:/lib"
fi
rm -f conftest.c conftest
# End _LT_AC_SYS_LIBPATH_AIX.
if test "$aix_use_runtimelinking" = yes; then
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
else
if test "$host_cpu" = ia64; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
else
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
fi
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# see comment about different semantics on the GNU ld section
ld_shlibs=no
;;
bsdi[45]*)
;;
cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec=' '
libext=lib
;;
darwin* | rhapsody*)
hardcode_direct=no
if test "$GCC" = yes ; then
:
else
case $cc_basename in
xlc*)
;;
*)
ld_shlibs=no
;;
esac
fi
;;
dgux*)
hardcode_libdir_flag_spec='-L$libdir'
;;
freebsd1*)
ld_shlibs=no
;;
freebsd2.2*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
freebsd2*)
hardcode_direct=yes
hardcode_minus_L=yes
;;
freebsd* | dragonfly*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
hpux9*)
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
hpux10*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
fi
;;
hpux11*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
case $host_cpu in
hppa*64*|ia64*)
hardcode_direct=no
;;
*)
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
esac
fi
;;
irix5* | irix6* | nonstopux*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
netbsd*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
newsos6)
hardcode_direct=yes
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
openbsd*)
if test -f /usr/libexec/ld.so; then
hardcode_direct=yes
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
else
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
fi
else
ld_shlibs=no
fi
;;
os2*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
;;
osf3*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
osf4* | osf5*)
if test "$GCC" = yes; then
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
else
# Both cc and cxx compiler support -rpath directly
hardcode_libdir_flag_spec='-rpath $libdir'
fi
hardcode_libdir_separator=:
;;
solaris*)
hardcode_libdir_flag_spec='-R$libdir'
;;
sunos4*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_direct=yes
hardcode_minus_L=yes
;;
sysv4)
case $host_vendor in
sni)
hardcode_direct=yes # is this really true???
;;
siemens)
hardcode_direct=no
;;
motorola)
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
;;
sysv4.3*)
;;
sysv4*MP*)
if test -d /usr/nec; then
ld_shlibs=yes
fi
;;
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
;;
sysv5* | sco3.2v5* | sco5v6*)
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
hardcode_libdir_separator=':'
;;
uts4*)
hardcode_libdir_flag_spec='-L$libdir'
;;
*)
ld_shlibs=no
;;
esac
fi
# Check dynamic linker characteristics
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
# only about the one the linker finds when passed -lNAME. This is the last
# element of library_names_spec in libtool.m4, or possibly two of them if the
# linker has special search rules.
library_names_spec= # the last element of library_names_spec in libtool.m4
libname_spec='lib$name'
case "$host_os" in
aix3*)
library_names_spec='$libname.a'
;;
aix[4-9]*)
library_names_spec='$libname$shrext'
;;
amigaos*)
library_names_spec='$libname.a'
;;
beos*)
library_names_spec='$libname$shrext'
;;
bsdi[45]*)
library_names_spec='$libname$shrext'
;;
cygwin* | mingw* | pw32* | cegcc*)
shrext=.dll
library_names_spec='$libname.dll.a $libname.lib'
;;
darwin* | rhapsody*)
shrext=.dylib
library_names_spec='$libname$shrext'
;;
dgux*)
library_names_spec='$libname$shrext'
;;
freebsd1*)
;;
freebsd* | dragonfly*)
case "$host_os" in
freebsd[123]*)
library_names_spec='$libname$shrext$versuffix' ;;
*)
library_names_spec='$libname$shrext' ;;
esac
;;
gnu*)
library_names_spec='$libname$shrext'
;;
hpux9* | hpux10* | hpux11*)
case $host_cpu in
ia64*)
shrext=.so
;;
hppa*64*)
shrext=.sl
;;
*)
shrext=.sl
;;
esac
library_names_spec='$libname$shrext'
;;
interix[3-9]*)
library_names_spec='$libname$shrext'
;;
irix5* | irix6* | nonstopux*)
library_names_spec='$libname$shrext'
case "$host_os" in
irix5* | nonstopux*)
libsuff= shlibsuff=
;;
*)
case $LD in
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
*) libsuff= shlibsuff= ;;
esac
;;
esac
;;
linux*oldld* | linux*aout* | linux*coff*)
;;
linux* | k*bsd*-gnu)
library_names_spec='$libname$shrext'
;;
knetbsd*-gnu)
library_names_spec='$libname$shrext'
;;
netbsd*)
library_names_spec='$libname$shrext'
;;
newsos6)
library_names_spec='$libname$shrext'
;;
nto-qnx*)
library_names_spec='$libname$shrext'
;;
openbsd*)
library_names_spec='$libname$shrext$versuffix'
;;
os2*)
libname_spec='$name'
shrext=.dll
library_names_spec='$libname.a'
;;
osf3* | osf4* | osf5*)
library_names_spec='$libname$shrext'
;;
rdos*)
;;
solaris*)
library_names_spec='$libname$shrext'
;;
sunos4*)
library_names_spec='$libname$shrext$versuffix'
;;
sysv4 | sysv4.3*)
library_names_spec='$libname$shrext'
;;
sysv4*MP*)
library_names_spec='$libname$shrext'
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
library_names_spec='$libname$shrext'
;;
uts4*)
library_names_spec='$libname$shrext'
;;
esac
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
# How to pass a linker flag through the compiler.
wl="$escaped_wl"
# Static library suffix (normally "a").
libext="$libext"
# Shared library suffix (normally "so").
shlibext="$shlibext"
# Format of library name prefix.
libname_spec="$escaped_libname_spec"
# Library names that the linker finds when passed -lNAME.
library_names_spec="$escaped_library_names_spec"
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator="$hardcode_libdir_separator"
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct="$hardcode_direct"
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L="$hardcode_minus_L"
EOF

1791
autotools/config.sub
File diff suppressed because it is too large
View File

791
autotools/depcomp

@ -1,791 +0,0 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2013-05-30.07; # UTC
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
Run PROGRAMS ARGS to compile a file, generating dependencies
as side-effects.
Environment variables:
depmode Dependency tracking mode.