src/aclocal.m4 | 175 +-
src/config.guess | 1352 +--
src/config.sub | 739 +-
src/configure | 17008 ++++++++++-------------------------
src/configure.in | 12 +-
src/misc/autotroll/config.guess | 801 +-
src/misc/autotroll/config.sub | 411 +-
src/misc/m4/iconv.m4 | 320 +-
src/misc/m4/lib-ld.m4 | 119 +
src/misc/m4/lib-link.m4 | 777 ++
src/misc/m4/lib-prefix.m4 | 224 +
src/misc/tm-devel-mac/config.guess | 765 +-
src/src/makefile.in | 7 +-
13 files changed, 8702 insertions(+), 14008 deletions(-)
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 8b32f52..a2189e8 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -18,6 +18,9 @@ m4_include([misc/m4/axel.m4])
m4_include([misc/m4/cairo.m4])
m4_include([misc/m4/gs.m4])
m4_include([misc/m4/hummus.m4])
+m4_include([misc/m4/lib-ld.m4])
+m4_include([misc/m4/lib-link.m4])
+m4_include([misc/m4/lib-prefix.m4])
m4_include([misc/m4/iconv.m4])
m4_include([misc/m4/freetype.m4])
m4_include([misc/m4/dlopen.m4])
@@ -25,39 +28,21 @@ m4_include([misc/m4/dlopen.m4])
#-------------------------------------------------------------------
# General functions
#-------------------------------------------------------------------
-# Create local variable based on those located in config.h
-AC_DEFUN([LC_DEFINE],[
- typeset $1="$2"
- AC_DEFINE($1,$2,$3)
-])
-
-# checking function without extra display before result
-m4_define([LS_SAVE_DESC],[3])
-AC_DEFUN([LC_MSG_CHECKING],[
- AC_MSG_CHECKING([$1])
- exec LS_SAVE_DESC>&AS_MESSAGE_FD AS_MESSAGE_FD>/dev/null
-])
-AC_DEFUN([LC_MSG_RESULT],[
- exec AS_MESSAGE_FD>&LS_SAVE_DESC
- AC_MSG_RESULT([$1])
-])
-
AC_DEFUN([LC_SUBST],[
AC_SUBST([$1_CXX],[$$1_CXXFLAGS])
- AC_SUBST([$1_CPP],[$$1_CPPFLAGS])
- if [[[ $enable_dumpflags =~ (^|[[:space:]])$1($|[[:space:]]) ]]]
- then LC_DUMP_FLAGS([$1])
- fi
-# adaptation layer remove when finished
- AC_SUBST([$1_CFLAGS],["$$1_CXXFLAGS $$1_CPPFLAGS"])
- AC_SUBST([$1_LDFLAGS],[""])
-])
+ AC_SUBST([$1_CPP],[$$1_CPPFLAGS])])
+
+#remove leading and trailing
+AC_DEFUN([LC_STRIP],[
+ @<:@@<:@ "$$1" =~ [$(echo "address@hidden:@.*[^[:space:]])[[:space:]]+$"]) @:>@@:>@ && $1=${BASH_REMATCH[[1]]}
+ @<:@@<:@ "$$1" =~ [$(echo "^[[:space:]]+([^[:space:]].*)$"]) @:>@@:>@ && $1=${BASH_REMATCH[[1]]}
+# transform \\ in \
+ $1=${$1//\/\//\/}
+])
# remove unwanted space in well know flags
AC_DEFUN([LC_NORMALIZE_FLAG], [
- $1=$(echo $$1) # normalize whitespaces
- $1=${$1//\/\//\/} # normalize path separator
-
+ LC_STRIP([$1])
if @<:@@<:@ "$$1" =~ [$(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$"]) @:>@@:>@
then $1=-${BASH_REMATCH[[1]]}${BASH_REMATCH[[2]]}
fi
@@ -74,34 +59,34 @@ AC_DEFUN([LC_APPEND_FLAG],[
])
#############################################################################
-# generic get flag $2 from $1 line $3 line flag separator
-AC_DEFUN([LC_GETPOP_FLAG],[
- m4_ifblank([$3], [[$0]_sepa=-], [[$0]_sepa=[$3]])
- [$0]_1=" $(echo $$1)" # remove unnecessary spaces and add a heading space
- $1=${[$0]_1@&address@hidden $[$0]_sepa*} # get heading
- if test "$$1" = "$[$0]_1"
- then address@hidden:@}; unset $2 # flag not found
- else
- address@hidden:@$$1 } # strip heading
- $2=${[$0]_tail%% -*} # get flag and data
- if test "$$2" = "$[$0]_tail" # is there someting after the flag
- then $1=$(echo $$1)
- else $1=$(echo address@hidden:@$$2})
- fi
- LC_NORMALIZE_FLAG([$2])
- if [[ $$0_sepa != - ]] # just return the value
- then address@hidden:@$[$0]_sepa}
- fi
+# generic pop flag $2 from $1 line $3 line flag separator (right most element)
+AC_DEFUN([_LC_POP_FLAG],[
+ LC_STRIP([$1])
+ address@hidden:@@%:@*$3} # get flag
+ if test "$$2" = "$$1"
+ then $1=
+ else $2="$3$$2"; $1=${$1%$$2} # remove flag
fi
-
- unset ${![$0]_*}
+ LC_NORMALIZE_FLAG([$2])
])
# generic get flag $2 from $1 line $3 line flag separator (left most element)
-m4_define([LC_GET_FLAG],[m4_define([GETPOP],[%%]) LC_GETPOP_FLAG([$1],[$2],[$3])])
-# generic get flag $2 from $1 line $3 line flag separator (right most element)
-m4_define([LC_POP_FLAG],[m4_define([GETPOP],[%]) LC_GETPOP_FLAG([$1],[$2],[$3])])
+AC_DEFUN([_LC_GET_FLAG],[
+ LC_STRIP([$1])
+ $2=${$1%%$3*} # get flag
+ address@hidden:@*$$2} # remove flag
+ LC_NORMALIZE_FLAG([$2])
+])
+#get flag $2 from $1 line (GET:left most element POP:right most)
+AC_DEFUN([LC_GET_FLAG],[_LC_GET_FLAG([$1],[$2],[ -])])
+AC_DEFUN([LC_POP_FLAG],[_LC_POP_FLAG([$1],[$2],[ -])])
+
+#pop flag $2 from $1 line (GET:left most element POP:right most)
+# we can have file names with no -l before
+# line have been normalize space is the separator
+AC_DEFUN([LC_GET_FLAG_LIBS],[_LC_GET_FLAG([$1],[$2],[ ])])
+AC_DEFUN([LC_POP_FLAG_LIBS],[_LC_POP_FLAG([$1],[$2],[ ])])
#############################################################################
#############################################################################
@@ -111,9 +96,9 @@ AC_DEFUN([LC_X_IFELSE],[
AC_$1_IFELSE([$3], [ AC_MSG_RESULT(yes) $4
],[ AC_MSG_RESULT(no) $5
])])
-AC_DEFUN([LC_RUN_IFELSE],[LC_X_IFELSE([RUN],[$1],[$2],[$3],[$4],[$5])])
-AC_DEFUN([LC_LINK_IFELSE],[LC_X_IFELSE([LINK],[$1],[$2],[$3],[$4],[$5])])
-AC_DEFUN([LC_COMPILE_IFELSE],[LC_X_IFELSE([COMPILE],[$1],[$2],[$3],[$4],[$5])])
+AC_DEFUN([LC_RUN_IFELSE],[LC_X_IFELSE([RUN],[$1],[$2],[$3],[$4])])
+AC_DEFUN([LC_LINK_IFELSE],[LC_X_IFELSE([LINK],[$1],[$2],[$3],[$4])])
+AC_DEFUN([LC_COMPILE_IFELSE],[LC_X_IFELSE([COMPILE],[$1],[$2],[$3],[$4])])
#############################################################################
m4_define([lib_ext],[dylib])
@@ -131,30 +116,30 @@ fi
#############################################################################
+# We use function here to avoid 'm4 local variable' conflict for embedded calls
+# Needed to define functions at main Level
+m4_define([f_lc_functions_list],[ f_lc_scatter_flags ])
+
+#############################################################################
# prepend a anonymous list into library FLAGS
# LC_APPEND_FLAG is used to avoid duplicate flag
# $1 anonymous list $2 destination
AC_DEFUN([LC_PREPEND_LIST],[
[$0]_list="$1"
#pop the old list
- LC_POP_FLAG([$2],[$0_flag])
- while @<:@@<:@ $[$0]_flag @:>@@:>@
- do LC_APPEND_FLAG([$$0_flag],[$0_nlist])
- LC_POP_FLAG([$2],[$0_flag])
-
+ while @<:@ "$$2" @:>@
+ do LC_POP_FLAG_LIBS([$2],[[$0]_flag])
+ LC_APPEND_FLAG([$[$0]_flag],[[$0]_nlist])
done
# append new list
- LC_POP_FLAG([$0_list],[$0_flag])
- while @<:@@<:@ $[$0]_flag @:>@@:>@
- do LC_APPEND_FLAG([$$0_flag],[$0_nlist])
- LC_POP_FLAG([$0_list],[$0_flag])
-
+ while @<:@ "$[$0]_list" @:>@
+ do LC_POP_FLAG_LIBS([[$0]_list],[[$0]_flag])
+ LC_APPEND_FLAG([$[$0]_flag],[[$0]_nlist])
done
$2=
- LC_GET_FLAG([$0_nlist],[$0_flag])
- while @<:@@<:@ $[$0]_flag @:>@@:>@
- do $2="$[$0]_flag $$2"
- LC_GET_FLAG([$0_nlist],[$0_flag])
+ while @<:@ "$[$0]_nlist" @:>@
+ do LC_GET_FLAG_LIBS([[$0]_nlist],[[$0]_flag])
+ $2="$[$0]_flag $$2"
done
unset ${![$0]_*}
])
@@ -167,8 +152,8 @@ AC_DEFUN([LC_MERGE_FLAGS],[
if @<:@@<:@ "$2" =~ $(echo "(^|_)LIBS") @:>@@:>@
then LC_PREPEND_LIST([$1],[$2])
else while @<:@ "$[$0]_list" @:>@
- do LC_GET_FLAG([$0_list],[$0_flag])
- LC_APPEND_FLAG([$$0_flag],[$2])
+ do LC_GET_FLAG([[$0]_list],[[$0]_flag])
+ LC_APPEND_FLAG([$[$0]_flag],[$2])
done
fi
unset ${![$0]_*}
@@ -190,27 +175,26 @@ AC_DEFUN([_LC_TRANSFERT_FLAGS],
# set compile flags from the LIBRARY ($1) flags into standard flags
# in order to test static linking set the -static if needed
AC_DEFUN([LC_SET_FLAGS],[
- _LC_TRANSFERT_FLAGS([$1],[superseded_flags],[LDFLAGS])
+ _LC_TRANSFERT_FLAGS([$1],[superseded_flags],[merged_flags])
if test -n "$LNSTATIC"
then LC_APPEND_FLAG([-static], [CFLAGS])
LC_APPEND_FLAG([-static], [CXXFLAGS])
fi
-# check the libs depencies
- [$0]_libs=$$1_LIBS
- LC_GET_FLAG([$0_libs], [$0_lib], [-l]) # the main lib
- LC_POP_FLAG([$0_libs], [$0_dep], [-l]) # the dependency lib
- while test -n "$[$0]_dep"
- do LC_CHECK_LIB([$$0_dep])
- LC_POP_FLAG([$0_libs], [$0_dep], [-l]) # the dependency lib
- done
- LC_MERGE_FLAGS(-l$[$0_lib],[LIBS])
])
# merge the LIBRARY ($1) flags into general compile flags
-# The Bstatic option is added if $2 is undef
+# The libraries in ($2) should be remove and read with the right linking option
+# The remaining libs are merged in general compile flags with dynamic option
AC_DEFUN([LC_COMBINE_FLAGS],[
- if [[ -z "$2" -a -n "$SEMISTATIC" ]]
- then [$1]_LIBS="$SEMISTATIC $[$1]_LIBS $SEMIDYNAMIC"
+ for [$0]_lib in $2
+ do STRIP_ARG([$1_LIBS],[-l$[$0]_lib])
+ [$0]_libs="$[$0]_libs -l$[$0]_lib"
+ done
+ if test -n "$$1_LIBS"
+ then LC_MERGE_FLAGS([$LNDYNAMIC],[$1_LIBS])
+ fi
+ if test -n "$2"
+ then LC_MERGE_FLAGS([$LNSTATIC $[$0]_libs],[$1_LIBS])
fi
_LC_TRANSFERT_FLAGS([$1],[],[merged_flags])
unset ${![$0]_*}
@@ -236,22 +220,6 @@ AC_DEFUN([LC_CLEAR_FLAGS],[
])
#############################################################################
-# try to use the $1 library
-# test only works for predefines libraries
-# If the library is unknown just a warning is issued
-m4_define([Lib_check_fail],[AC_MSG_ERROR(compulsory library [$1] not found)])
-m4_define([Lib_check_nfound],[AC_MSG_NOTICE(skipping presence test for the library [$1])])
-
-AC_DEFUN([LC_CHECK_LIB],[
-case $1 in
- z@:}@ AC_CHECK_LIB([z], [inflate], [], [Lib_check_fail($1)]);;
- png@:}@ AC_CHECK_LIB([png], [png_read_init], [], [Lib_check_fail($1)]);;
- png12@:}@ AC_CHECK_LIB([png12], [png_read_init], [], [Lib_check_fail($1)]);;
- gmp@:}@ AC_CHECK_LIB([gmp], [__gmpf_init], [], [Lib_check_fail($1)]);;
- *@:}@ Lib_check_nfound($1) LC_MERGE_FLAGS(-l[$1],[LIBS]);;
-esac
-])
-#############################################################################
# build the lib name with a underscore if needed
m4_define([lc_libname],[m4_ifblank([$1],[$2],[$1_$2])])
#dispatch compil flags list $1 in a LIBRARY ($2) flags
@@ -259,21 +227,20 @@ m4_define([lc_libname],[m4_ifblank([$1],[$2],[$1_$2])])
AC_DEFUN([LC_SCATTER_FLAGS],[
[$0]_list="$1"
- LC_GET_FLAG([$0_list], [$0_flag])
- while test -n "$[$0]_flag"
+ while test -n "$[$0]_list" ;
do
+ LC_GET_FLAG([[$0]_list], [[$0]_flag])
+ LC_STRIP([$0]_flag)
case "$[$0]_flag" in
-l*@:}@ LC_APPEND_FLAG([$[$0]_flag],[lc_libname([$2],[LIBS])]);;
-L*|-framework*@:}@ LC_APPEND_FLAG([$[$0]_flag],[lc_libname([$2],[LDFLAGS])]);;
-I*|-U*|-D*@:}@ LC_APPEND_FLAG([$[$0]_flag],[lc_libname([$2],[CPPFLAGS])]);;
- -F*@:}@ LC_APPEND_FLAG([$[$0]_flag],[lc_libname([$2],[CPPFLAGS])]);;
- -Wl,-F*@:}@ LC_APPEND_FLAG([$[$0]_flag],[lc_libname([$2],[LDFLAGS])]);;
+ -F*@:}@ LC_APPEND_FLAG([$[$0]_flag],[lc_libname([$2],[CPPFLAGS])]) LC_APPEND_FLAG([$[$0]_flag],[lc_libname([$2],[LDFLAGS])]);;
-Wl,*@:}@ AC_MSG_WARN(Flag $[$0]_flag dropped for lib $2);;
-*@:}@
AX_CHECK_COMPILE_FLAG($[$0]_flag,[LC_APPEND_FLAG([$[$0]_flag],[lc_libname([$2],[CXXFLAGS])])],[AC_MSG_WARN(Flag $[$0]_flag dropped)],[],[]);;
*@:}@ AC_MSG_WARN(Flags $[$0]_flag NOT managed);;
esac
- LC_GET_FLAG([$0_list], [$0_flag])
done
unset ${![$0]_*}
])
diff --git a/src/config.guess b/src/config.guess
old mode 100644
new mode 100755
index 166da24..1659250
--- a/src/config.guess
+++ b/src/config.guess
@@ -1,13 +1,12 @@
#! /bin/sh
# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright 1992-2015 Free Software Foundation, Inc.
-timestamp='2003-01-10'
+timestamp='2015-08-20'
# This file 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 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
@@ -16,24 +15,22 @@ timestamp='2003-01-10'
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+# along with this program; if not, see .
#
# 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 Per Bothner
.
-# Please send patches to . Submit a context
-# diff and a properly formatted ChangeLog entry.
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
+#
+# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
+# Please send patches to .
+
me=`echo "$0" | sed -e 's,.*/,,'`
@@ -53,8 +50,7 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
+Copyright 1992-2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -66,11 +62,11 @@ Try \`$me --help' for more information."
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
+ echo "$timestamp" ; exit ;;
--version | -v )
- echo "$version" ; exit 0 ;;
+ echo "$version" ; exit ;;
--help | --h* | -h )
- echo "$usage"; exit 0 ;;
+ echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
@@ -104,8 +100,9 @@ set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
@@ -122,7 +119,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
;;
,,*) CC_FOR_BUILD=$CC ;;
,*,*) CC_FOR_BUILD=$HOST_CC ;;
-esac ;'
+esac ; set_cc_for_build= ;'
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (address@hidden 1994-08-24)
@@ -135,12 +132,33 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+case "${UNAME_SYSTEM}" in
+Linux|GNU|GNU/*)
+ # If the system lacks a compiler, then just pick glibc.
+ # We could probably try harder.
+ LIBC=gnu
+
+ eval $set_cc_for_build
+ cat <<-EOF > $dummy.c
+ #include
+ #if defined(__UCLIBC__)
+ LIBC=uclibc
+ #elif defined(__dietlibc__)
+ LIBC=dietlibc
+ #else
+ LIBC=gnu
+ #endif
+ EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
+ ;;
+esac
+
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:NetBSD:*:*)
# NetBSD (nbsd) targets should (where applicable) match one or
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format. This provides both forward
@@ -150,22 +168,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
+ /sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || \
+ echo unknown)`
case "${UNAME_MACHINE_ARCH}" in
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ earmv*)
+ arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
+ endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
+ machine=${arch}${endian}-unknown
+ ;;
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
# to ELF recently, or will in the future.
case "${UNAME_MACHINE_ARCH}" in
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
eval $set_cc_for_build
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep __ELF__ >/dev/null
+ | grep -q __ELF__
then
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
# Return netbsd for either. FIX?
@@ -175,7 +201,14 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
fi
;;
*)
- os=netbsd
+ os=netbsd
+ ;;
+ esac
+ # Determine ABI tags.
+ case "${UNAME_MACHINE_ARCH}" in
+ earm*)
+ expr='s/^earmv[0-9]/-eabi/;s/eb$//'
+ abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
;;
esac
# The OS release
@@ -188,148 +221,129 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
release='-gnu'
;;
*)
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
;;
esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- echo "${machine}-${os}${release}"
- exit 0 ;;
- amiga:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- arc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- hp300:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mac68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- macppc:OpenBSD:*:*)
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme88k:OpenBSD:*:*)
- echo m88k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvmeppc:OpenBSD:*:*)
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- pmax:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sgi:OpenBSD:*:*)
- echo mipseb-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sun3:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- wgrisc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
+ echo "${machine}-${os}${release}${abi}"
+ exit ;;
+ *:Bitrig:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
+ exit ;;
*:OpenBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- *:MicroBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-microbsd${UNAME_RELEASE}
- exit 0 ;;
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:Sortix:*:*)
+ echo ${UNAME_MACHINE}-unknown-sortix
+ exit ;;
alpha:OSF1:*:*)
- if test $UNAME_RELEASE = "V4.0"; then
+ case $UNAME_RELEASE in
+ *4.0)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
- fi
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
- eval $set_cc_for_build
- cat <$dummy.s
- .data
-\$Lformat:
- .byte 37,100,45,37,120,10,0 # "%d-%x\n"
-
- .text
- .globl main
- .align 4
- .ent main
-main:
- .frame \$30,16,\$26,0
- ldgp \$29,0(\$27)
- .prologue 1
- .long 0x47e03d80 # implver \$0
- lda \$2,-1
- .long 0x47e20c21 # amask \$2,\$1
- lda \$16,\$Lformat
- mov \$0,\$17
- not \$1,\$18
- jsr \$26,printf
- ldgp \$29,0(\$26)
- mov 0,\$16
- jsr \$26,exit
- .end main
-EOF
- $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
- if test "$?" = 0 ; then
- case `$dummy` in
- 0-0)
- UNAME_MACHINE="alpha"
- ;;
- 1-0)
- UNAME_MACHINE="alphaev5"
- ;;
- 1-1)
- UNAME_MACHINE="alphaev56"
- ;;
- 1-101)
- UNAME_MACHINE="alphapca56"
- ;;
- 2-303)
- UNAME_MACHINE="alphaev6"
- ;;
- 2-307)
- UNAME_MACHINE="alphaev67"
- ;;
- 2-1307)
- UNAME_MACHINE="alphaev68"
- ;;
- 3-1307)
- UNAME_MACHINE="alphaev7"
- ;;
- esac
- fi
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- exit 0 ;;
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+ exitcode=$?
+ trap '' 0
+ exit $exitcode ;;
Alpha\ *:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# Should we change UNAME_MACHINE based on the output of uname instead
# of the specific Alpha model?
echo alpha-pc-interix
- exit 0 ;;
+ exit ;;
21064:Windows_NT:50:3)
echo alpha-dec-winnt3.5
- exit 0 ;;
+ exit ;;
Amiga*:UNIX_System_V:4.0:*)
echo m68k-unknown-sysv4
- exit 0;;
+ exit ;;
*:[Aa]miga[Oo][Ss]:*:*)
echo ${UNAME_MACHINE}-unknown-amigaos
- exit 0 ;;
+ exit ;;
*:[Mm]orph[Oo][Ss]:*:*)
echo ${UNAME_MACHINE}-unknown-morphos
- exit 0 ;;
+ exit ;;
*:OS/390:*:*)
echo i370-ibm-openedition
- exit 0 ;;
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
- exit 0;;
+ exit ;;
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
echo hppa1.1-hitachi-hiuxmpp
- exit 0;;
+ exit ;;
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
# address@hidden (Earle F. Ake) contributed MIS and NILE.
if test "`(/bin/universe) 2>/dev/null`" = att ; then
@@ -337,29 +351,51 @@ EOF
else
echo pyramid-pyramid-bsd
fi
- exit 0 ;;
+ exit ;;
NILE*:*:*:dcosx)
echo pyramid-pyramid-svr4
- exit 0 ;;
- DRS?6000:UNIX_SV:4.2*:7*)
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
case `/usr/bin/uname -p` in
- sparc) echo sparc-icl-nx7 && exit 0 ;;
+ sparc) echo sparc-icl-nx7; exit ;;
esac ;;
+ s390x:SunOS:*:*)
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
sun4H:SunOS:5.*:*)
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
+ exit ;;
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- i86pc:SunOS:5.*:*)
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
+ exit ;;
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
+ echo i386-pc-auroraux${UNAME_RELEASE}
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
sun4*:SunOS:6*:*)
# According to config.sub, this is the proper way to canonicalize
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
# it's likely to be more like Solaris than SunOS4.
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
+ exit ;;
sun4*:SunOS:*:*)
case "`/usr/bin/arch -k`" in
Series*|S4*)
@@ -368,10 +404,10 @@ EOF
esac
# Japanese Language versions have a version number like `4.1.3-JL'.
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
- exit 0 ;;
+ exit ;;
sun3*:SunOS:*:*)
echo m68k-sun-sunos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
sun*:*:4.2BSD:*)
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
@@ -383,10 +419,10 @@ EOF
echo sparc-sun-sunos${UNAME_RELEASE}
;;
esac
- exit 0 ;;
+ exit ;;
aushp:SunOS:*:*)
echo sparc-auspex-sunos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
# The situation for MiNT is a little confusing. The machine name
# can be virtually everything (everything which is not
# "atarist" or "atariste" at least should have a processor
@@ -396,38 +432,41 @@ EOF
# MiNT. But MiNT is downward compatible to TOS, so this should
# be no problem.
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE}
- exit 0 ;;
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE}
- exit 0 ;;
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit 0 ;;
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
powerpc:machten:*:*)
echo powerpc-apple-machten${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
RISC*:Mach:*:*)
echo mips-dec-mach_bsd4.3
- exit 0 ;;
+ exit ;;
RISC*:ULTRIX:*:*)
echo mips-dec-ultrix${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
VAX*:ULTRIX*:*:*)
echo vax-dec-ultrix${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
2020:CLIX:*:* | 2430:CLIX:*:*)
echo clipper-intergraph-clix${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
mips:*:*:UMIPS | mips:*:*:RISCos)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
@@ -451,35 +490,36 @@ EOF
exit (-1);
}
EOF
- $CC_FOR_BUILD -o $dummy $dummy.c \
- && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
- && exit 0
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
echo mips-mips-riscos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
Motorola:PowerMAX_OS:*:*)
echo powerpc-motorola-powermax
- exit 0 ;;
+ exit ;;
Motorola:*:4.3:PL8-*)
echo powerpc-harris-powermax
- exit 0 ;;
+ exit ;;
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
echo powerpc-harris-powermax
- exit 0 ;;
+ exit ;;
Night_Hawk:Power_UNIX:*:*)
echo powerpc-harris-powerunix
- exit 0 ;;
+ exit ;;
m88k:CX/UX:7*:*)
echo m88k-harris-cxux7
- exit 0 ;;
+ exit ;;
m88k:*:4*:R4*)
echo m88k-motorola-sysv4
- exit 0 ;;
+ exit ;;
m88k:*:3*:R3*)
echo m88k-motorola-sysv3
- exit 0 ;;
+ exit ;;
AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
then
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
@@ -492,29 +532,29 @@ EOF
else
echo i586-dg-dgux${UNAME_RELEASE}
fi
- exit 0 ;;
+ exit ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
echo m88k-dolphin-sysv3
- exit 0 ;;
+ exit ;;
M88*:*:R3*:*)
# Delta 88k system running SVR3
echo m88k-motorola-sysv3
- exit 0 ;;
+ exit ;;
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
echo m88k-tektronix-sysv3
- exit 0 ;;
+ exit ;;
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
echo m68k-tektronix-bsd
- exit 0 ;;
+ exit ;;
*:IRIX*:*:*)
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
- exit 0 ;;
+ exit ;;
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
i*86:AIX:*:*)
echo i386-ibm-aix
- exit 0 ;;
+ exit ;;
ia64:AIX:*:*)
if [ -x /usr/bin/oslevel ] ; then
IBM_REV=`/usr/bin/oslevel`
@@ -522,7 +562,7 @@ EOF
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
- exit 0 ;;
+ exit ;;
*:AIX:2:3)
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
eval $set_cc_for_build
@@ -537,49 +577,54 @@ EOF
exit(0);
}
EOF
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
- echo rs6000-ibm-aix3.2.5
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
echo rs6000-ibm-aix3.2.4
else
echo rs6000-ibm-aix3.2
fi
- exit 0 ;;
- *:AIX:*:[45])
+ exit ;;
+ *:AIX:*:[4567])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
else
IBM_ARCH=powerpc
fi
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
+ if [ -x /usr/bin/lslpp ] ; then
+ IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
+ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
else
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
- exit 0 ;;
+ exit ;;
*:AIX:*:*)
echo rs6000-ibm-aix
- exit 0 ;;
+ exit ;;
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
echo romp-ibm-bsd4.4
- exit 0 ;;
+ exit ;;
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
- exit 0 ;; # report: romp-ibm BSD 4.3
+ exit ;; # report: romp-ibm BSD 4.3
*:BOSX:*:*)
echo rs6000-bull-bosx
- exit 0 ;;
+ exit ;;
DPX/2?00:B.O.S.:*:*)
echo m68k-bull-sysv3
- exit 0 ;;
+ exit ;;
9000/[34]??:4.3bsd:1.*:*)
echo m68k-hp-bsd
- exit 0 ;;
+ exit ;;
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
echo m68k-hp-bsd4.4
- exit 0 ;;
+ exit ;;
9000/[34678]??:HP-UX:*:*)
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
case "${UNAME_MACHINE}" in
@@ -588,52 +633,52 @@ EOF
9000/[678][0-9][0-9])
if [ -x /usr/bin/getconf ]; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
- 532) # CPU_PA_RISC2_0
- case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;;
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- esac ;;
- esac
+ esac ;;
+ esac
fi
if [ "${HP_ARCH}" = "" ]; then
eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
+ sed 's/^ //' << EOF >$dummy.c
- #define _HPUX_SOURCE
- #include
- #include
+ #define _HPUX_SOURCE
+ #include
+ #include
- int main ()
- {
- #if defined(_SC_KERNEL_BITS)
- long bits = sysconf(_SC_KERNEL_BITS);
- #endif
- long cpu = sysconf (_SC_CPU_VERSION);
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
- case CPU_PA_RISC2_0:
- #if defined(_SC_KERNEL_BITS)
- switch (bits)
- {
- case 64: puts ("hppa2.0w"); break;
- case 32: puts ("hppa2.0n"); break;
- default: puts ("hppa2.0"); break;
- } break;
- #else /* !defined(_SC_KERNEL_BITS) */
- puts ("hppa2.0"); break;
- #endif
- default: puts ("hppa1.0"); break;
- }
- exit (0);
- }
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
EOF
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
test -z "$HP_ARCH" && HP_ARCH=hppa
@@ -641,9 +686,19 @@ EOF
esac
if [ ${HP_ARCH} = "hppa2.0w" ]
then
- # avoid double evaluation of $set_cc_for_build
- test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep -q __LP64__
then
HP_ARCH="hppa2.0w"
else
@@ -651,11 +706,11 @@ EOF
fi
fi
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
- exit 0 ;;
+ exit ;;
ia64:HP-UX:*:*)
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
echo ia64-hp-hpux${HPUX_REV}
- exit 0 ;;
+ exit ;;
3050*:HI-UX:*:*)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
@@ -683,312 +738,348 @@ EOF
exit (0);
}
EOF
- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
echo unknown-hitachi-hiuxwe2
- exit 0 ;;
+ exit ;;
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
echo hppa1.1-hp-bsd
- exit 0 ;;
+ exit ;;
9000/8??:4.3bsd:*:*)
echo hppa1.0-hp-bsd
- exit 0 ;;
+ exit ;;
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
echo hppa1.0-hp-mpeix
- exit 0 ;;
+ exit ;;
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
echo hppa1.1-hp-osf
- exit 0 ;;
+ exit ;;
hp8??:OSF1:*:*)
echo hppa1.0-hp-osf
- exit 0 ;;
+ exit ;;
i*86:OSF1:*:*)
if [ -x /usr/sbin/sysversion ] ; then
echo ${UNAME_MACHINE}-unknown-osf1mk
else
echo ${UNAME_MACHINE}-unknown-osf1
fi
- exit 0 ;;
+ exit ;;
parisc*:Lites*:*:*)
echo hppa1.1-hp-lites
- exit 0 ;;
+ exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
- exit 0 ;;
+ exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
- exit 0 ;;
+ exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
- exit 0 ;;
+ exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
- exit 0 ;;
+ exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
- exit 0 ;;
+ exit ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ exit ;;
CRAY*[A-Z]90:*:*:*)
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
-e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ exit ;;
CRAY*TS:*:*:*)
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ exit ;;
CRAY*T3E:*:*:*)
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ exit ;;
CRAY*SV1:*:*:*)
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ exit ;;
*:UNICOS/mp:*:*)
- echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit 0 ;;
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
sparc*:BSD/OS:*:*)
echo sparc-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:BSD/OS:*:*)
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:FreeBSD:*:*)
- # Determine whether the default compiler uses glibc.
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include
- #if __GLIBC__ >= 2
- LIBC=gnu
- #else
- LIBC=
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
- exit 0 ;;
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ case ${UNAME_PROCESSOR} in
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
- exit 0 ;;
- i*:MINGW*:*)
+ exit ;;
+ *:MINGW64*:*)
+ echo ${UNAME_MACHINE}-pc-mingw64
+ exit ;;
+ *:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
- exit 0 ;;
+ exit ;;
+ *:MSYS*:*)
+ echo ${UNAME_MACHINE}-pc-msys
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
- exit 0 ;;
- x86:Interix*:3*)
- echo i586-pc-interix3
- exit 0 ;;
+ exit ;;
+ *:Interix*:*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ authenticamd | genuineintel | EM64T)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
- exit 0 ;;
+ exit ;;
+ 8664:Windows_NT:*)
+ echo x86_64-pc-mks
+ exit ;;
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
# UNAME_MACHINE based on the output of uname instead of i386?
echo i586-pc-interix
- exit 0 ;;
+ exit ;;
i*:UWIN*:*)
echo ${UNAME_MACHINE}-pc-uwin
- exit 0 ;;
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
p*:CYGWIN*:*)
echo powerpcle-unknown-cygwin
- exit 0 ;;
+ exit ;;
prep*:SunOS:5.*:*)
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
+ exit ;;
*:GNU:*:*)
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
- exit 0 ;;
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
+ exit ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
- exit 0 ;;
+ exit ;;
+ aarch64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ aarch64_be:Linux:*:*)
+ UNAME_MACHINE=aarch64_be
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ arc:Linux:*:* | arceb:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ else
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
+ fi
+ fi
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ cris:Linux:*:*)
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+ exit ;;
+ crisv32:Linux:*:*)
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+ exit ;;
+ e2k:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ frv:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ hexagon:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ i*86:Linux:*:*)
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
+ exit ;;
ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
- mips:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef mips
- #undef mipsel
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mipsel
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips
- #else
- CPU=
- #endif
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
- ;;
- mips64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ mips:Linux:*:* | mips64:Linux:*:*)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#undef CPU
- #undef mips64
- #undef mips64el
+ #undef ${UNAME_MACHINE}
+ #undef ${UNAME_MACHINE}el
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mips64el
+ CPU=${UNAME_MACHINE}el
#else
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips64
+ CPU=${UNAME_MACHINE}
#else
CPU=
#endif
#endif
EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
;;
- ppc:Linux:*:*)
- echo powerpc-unknown-linux-gnu
- exit 0 ;;
- ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-gnu
- exit 0 ;;
- alpha:Linux:*:*)
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
- EV5) UNAME_MACHINE=alphaev5 ;;
- EV56) UNAME_MACHINE=alphaev56 ;;
- PCA56) UNAME_MACHINE=alphapca56 ;;
- PCA57) UNAME_MACHINE=alphapca56 ;;
- EV6) UNAME_MACHINE=alphaev6 ;;
- EV67) UNAME_MACHINE=alphaev67 ;;
- EV68*) UNAME_MACHINE=alphaev68 ;;
- esac
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
- exit 0 ;;
+ openrisc*:Linux:*:*)
+ echo or1k-unknown-linux-${LIBC}
+ exit ;;
+ or32:Linux:*:* | or1k*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-${LIBC}
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-${LIBC}
+ exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
- *) echo hppa-unknown-linux-gnu ;;
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
+ *) echo hppa-unknown-linux-${LIBC} ;;
esac
- exit 0 ;;
- parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-gnu
- exit 0 ;;
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-${LIBC}
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-${LIBC}
+ exit ;;
+ ppc64le:Linux:*:*)
+ echo powerpc64le-unknown-linux-${LIBC}
+ exit ;;
+ ppcle:Linux:*:*)
+ echo powerpcle-unknown-linux-${LIBC}
+ exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux
- exit 0 ;;
+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ tile*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
+ exit ;;
x86_64:Linux:*:*)
- echo x86_64-unknown-linux-gnu
- exit 0 ;;
- i*86:Linux:*:*)
- # The BFD linker knows what the default object file format is, so
- # first see if it will tell us. cd to the root directory to prevent
- # problems with other programs or directories called `ld' in the path.
- # Set LC_ALL=C to ensure ld outputs messages in English.
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
- | sed -ne '/supported targets:/!d
- s/[ ][ ]*/ /g
- s/.*supported targets: *//
- s/ .*//
- p'`
- case "$ld_supported_targets" in
- elf32-i386)
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
- ;;
- a.out-i386-linux)
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- exit 0 ;;
- coff-i386)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit 0 ;;
- "")
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
- # one that does not give us useful --help.
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
- exit 0 ;;
- esac
- # Determine whether the default compiler is a.out or elf
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include
- #ifdef __ELF__
- # ifdef __GLIBC__
- # if __GLIBC__ >= 2
- LIBC=gnu
- # else
- LIBC=gnulibc1
- # endif
- # else
- LIBC=gnulibc1
- # endif
- #else
- #ifdef __INTEL_COMPILER
- LIBC=gnu
- #else
- LIBC=gnuaout
- #endif
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
- ;;
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
# earlier versions are messed up and put the nodename in both
# sysname and nodename.
echo i386-sequent-sysv4
- exit 0 ;;
+ exit ;;
i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms.
- # Use sysv4.2uw... so that sysv4* matches it.
+ # Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
- exit 0 ;;
+ exit ;;
i*86:OS/2:*:*)
# If we were able to find `uname', then EMX Unix compatibility
# is probably installed.
echo ${UNAME_MACHINE}-pc-os2-emx
- exit 0 ;;
+ exit ;;
i*86:XTS-300:*:STOP)
echo ${UNAME_MACHINE}-unknown-stop
- exit 0 ;;
+ exit ;;
i*86:atheos:*:*)
echo ${UNAME_MACHINE}-unknown-atheos
- exit 0 ;;
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
echo i386-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
i*86:*DOS:*:*)
echo ${UNAME_MACHINE}-pc-msdosdjgpp
- exit 0 ;;
+ exit ;;
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
@@ -996,15 +1087,16 @@ EOF
else
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
fi
- exit 0 ;;
- i*86:*:5:[78]*)
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
case `/bin/uname -X | grep "^Machine"` in
*486*) UNAME_MACHINE=i486 ;;
*Pentium) UNAME_MACHINE=i586 ;;
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
esac
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
- exit 0 ;;
+ exit ;;
i*86:*:3.2:*)
if test -f /usr/options/cb.name; then
UNAME_REL=`sed -n 's/.*Version //p' /dev/null 2>&1 ; then
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
else # Add other i860-SVR4 vendors below as they are discovered.
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
fi
- exit 0 ;;
+ exit ;;
mini*:CTIX:SYS*5:*)
# "miniframe"
echo m68010-convergent-sysv
- exit 0 ;;
+ exit ;;
mc68k:UNIX:SYSTEM5:3.51m)
echo m68k-convergent-sysv
- exit 0 ;;
+ exit ;;
M680?0:D-NIX:5.3:*)
echo m68k-diab-dnix
- exit 0 ;;
- M68*:*:R3V[567]*:*)
- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0)
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
OS_REL=''
test -r /etc/.relid \
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && echo i486-ncr-sysv4.3${OS_REL} && exit 0
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
- && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && echo i486-ncr-sysv4 && exit 0 ;;
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+ OS_REL='.3'
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
echo m68k-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
mc68030:UNIX_System_V:4.*:*)
echo m68k-atari-sysv4
- exit 0 ;;
+ exit ;;
TSUNAMI:LynxOS:2.*:*)
echo sparc-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
rs6000:LynxOS:2.*:*)
echo rs6000-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
echo powerpc-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
SM[BE]S:UNIX_SV:*:*)
echo mips-dde-sysv${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
RM*:ReliantUNIX-*:*:*)
echo mips-sni-sysv4
- exit 0 ;;
+ exit ;;
RM*:SINIX-*:*:*)
echo mips-sni-sysv4
- exit 0 ;;
+ exit ;;
*:SINIX-*:*:*)
if uname -p 2>/dev/null >/dev/null ; then
UNAME_MACHINE=`(uname -p) 2>/dev/null`
@@ -1096,68 +1201,109 @@ EOF
else
echo ns32k-sni-sysv
fi
- exit 0 ;;
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- # says
- echo i586-unisys-sysv4
- exit 0 ;;
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says
+ echo i586-unisys-sysv4
+ exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes .
# How about differentiating between stratus architectures? -djm
echo hppa1.1-stratus-sysv4
- exit 0 ;;
+ exit ;;
*:*:*:FTX*)
# From address@hidden
echo i860-stratus-sysv4
- exit 0 ;;
+ exit ;;
+ i*86:VOS:*:*)
+ # From address@hidden
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
*:VOS:*:*)
# From address@hidden
echo hppa1.1-stratus-vos
- exit 0 ;;
+ exit ;;
mc68*:A/UX:*:*)
echo m68k-apple-aux${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
news*:NEWS-OS:6*:*)
echo mips-sony-newsos6
- exit 0 ;;
+ exit ;;
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
if [ -d /usr/nec ]; then
- echo mips-nec-sysv${UNAME_RELEASE}
+ echo mips-nec-sysv${UNAME_RELEASE}
else
- echo mips-unknown-sysv${UNAME_RELEASE}
+ echo mips-unknown-sysv${UNAME_RELEASE}
fi
- exit 0 ;;
+ exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
echo powerpc-be-beos
- exit 0 ;;
+ exit ;;
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
echo powerpc-apple-beos
- exit 0 ;;
+ exit ;;
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
- exit 0 ;;
+ exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ x86_64:Haiku:*:*)
+ echo x86_64-unknown-haiku
+ exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
SX-5:SUPER-UX:*:*)
echo sx5-nec-superux${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
SX-6:SUPER-UX:*:*)
echo sx6-nec-superux${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
Power*:Rhapsody:*:*)
echo powerpc-apple-rhapsody${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:Rhapsody:*:*)
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:Darwin:*:*)
- case `uname -p` in
- *86) UNAME_PROCESSOR=i686 ;;
- powerpc) UNAME_PROCESSOR=powerpc ;;
- esac
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ eval $set_cc_for_build
+ if test "$UNAME_PROCESSOR" = unknown ; then
+ UNAME_PROCESSOR=powerpc
+ fi
+ if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ case $UNAME_PROCESSOR in
+ i386) UNAME_PROCESSOR=x86_64 ;;
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
+ esac
+ fi
+ fi
+ elif test "$UNAME_PROCESSOR" = i386 ; then
+ # Avoid executing cc on OS X 10.9, as it ships with a stub
+ # that puts up a graphical alert prompting to install
+ # developer tools. Any system running Mac OS X 10.7 or
+ # later (Darwin 11 and later) is required to have a 64-bit
+ # processor. This is not true of the ARM version of Darwin
+ # that Apple uses in portable devices.
+ UNAME_PROCESSOR=x86_64
+ fi
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
UNAME_PROCESSOR=`uname -p`
if test "$UNAME_PROCESSOR" = "x86"; then
@@ -1165,22 +1311,28 @@ EOF
UNAME_MACHINE=pc
fi
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:QNX:*:4*)
echo i386-pc-qnx
- exit 0 ;;
- NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
+ exit ;;
+ NEO-?:NONSTOP_KERNEL:*:*)
+ echo neo-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSE-*:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
echo nsr-tandem-nsk${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:NonStop-UX:*:*)
echo mips-compaq-nonstopux
- exit 0 ;;
+ exit ;;
BS2000:POSIX*:*:*)
echo bs2000-siemens-sysv
- exit 0 ;;
+ exit ;;
DS/*:UNIX_System_V:*:*)
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:Plan9:*:*)
# "uname -m" is not consistent, so use $cputype instead. 386
# is converted to i386 for consistency with other x86
@@ -1191,177 +1343,55 @@ EOF
UNAME_MACHINE="$cputype"
fi
echo ${UNAME_MACHINE}-unknown-plan9
- exit 0 ;;
+ exit ;;
*:TOPS-10:*:*)
echo pdp10-unknown-tops10
- exit 0 ;;
+ exit ;;
*:TENEX:*:*)
echo pdp10-unknown-tenex
- exit 0 ;;
+ exit ;;
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
echo pdp10-dec-tops20
- exit 0 ;;
+ exit ;;
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
echo pdp10-xkl-tops20
- exit 0 ;;
+ exit ;;
*:TOPS-20:*:*)
echo pdp10-unknown-tops20
- exit 0 ;;
+ exit ;;
*:ITS:*:*)
echo pdp10-unknown-its
- exit 0 ;;
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+ i*86:AROS:*:*)
+ echo ${UNAME_MACHINE}-pc-aros
+ exit ;;
+ x86_64:VMkernel:*:*)
+ echo ${UNAME_MACHINE}-unknown-esx
+ exit ;;
esac
-#echo '(No uname command or uname output not recognized.)' 1>&2
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
-eval $set_cc_for_build
-cat >$dummy.c <
-# include
-#endif
-main ()
-{
-#if defined (sony)
-#if defined (MIPSEB)
- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
- I don't know.... */
- printf ("mips-sony-bsd\n"); exit (0);
-#else
-#include
- printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
- "4"
-#else
- ""
-#endif
- ); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
- printf ("arm-acorn-riscix"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
- printf ("m68k-hp-bsd\n"); exit (0);
-#endif
-
-#if defined (NeXT)
-#if !defined (__ARCHITECTURE__)
-#define __ARCHITECTURE__ "m68k"
-#endif
- int version;
- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
- if (version < 4)
- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
- else
- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
- exit (0);
-#endif
-
-#if defined (MULTIMAX) || defined (n16)
-#if defined (UMAXV)
- printf ("ns32k-encore-sysv\n"); exit (0);
-#else
-#if defined (CMU)
- printf ("ns32k-encore-mach\n"); exit (0);
-#else
- printf ("ns32k-encore-bsd\n"); exit (0);
-#endif
-#endif
-#endif
-
-#if defined (__386BSD__)
- printf ("i386-pc-bsd\n"); exit (0);
-#endif
-
-#if defined (sequent)
-#if defined (i386)
- printf ("i386-sequent-dynix\n"); exit (0);
-#endif
-#if defined (ns32000)
- printf ("ns32k-sequent-dynix\n"); exit (0);
-#endif
-#endif
-
-#if defined (_SEQUENT_)
- struct utsname un;
-
- uname(&un);
-
- if (strncmp(un.version, "V2", 2) == 0) {
- printf ("i386-sequent-ptx2\n"); exit (0);
- }
- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
- printf ("i386-sequent-ptx1\n"); exit (0);
- }
- printf ("i386-sequent-ptx\n"); exit (0);
-
-#endif
-
-#if defined (vax)
-# if !defined (ultrix)
-# include
-# if defined (BSD)
-# if BSD == 43
- printf ("vax-dec-bsd4.3\n"); exit (0);
-# else
-# if BSD == 199006
- printf ("vax-dec-bsd4.3reno\n"); exit (0);
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# endif
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# else
- printf ("vax-dec-ultrix\n"); exit (0);
-# endif
-#endif
-
-#if defined (alliant) && defined (i860)
- printf ("i860-alliant-bsd\n"); exit (0);
-#endif
-
- exit (1);
-}
-EOF
-
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
-
-# Apollos put the system type in the environment.
-
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
- case `getsysinfo -f cpu_type` in
- c1*)
- echo c1-convex-bsd
- exit 0 ;;
- c2*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
- exit 0 ;;
- c34*)
- echo c34-convex-bsd
- exit 0 ;;
- c38*)
- echo c38-convex-bsd
- exit 0 ;;
- c4*)
- echo c4-convex-bsd
- exit 0 ;;
- esac
-fi
-
cat >&2 <.
+#
# 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.
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
+
# Please send patches to .
#
@@ -36,6 +32,9 @@ timestamp='2001-09-14'
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
@@ -69,8 +68,7 @@ Report bugs and patches to ."
version="\
GNU config.sub ($timestamp)
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
+Copyright 1992-2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -82,11 +80,11 @@ Try \`$me --help' for more information."
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
+ echo "$timestamp" ; exit ;;
--version | -v )
- echo "$version" ; exit 0 ;;
+ echo "$version" ; exit ;;
--help | --h* | -h )
- echo "$usage"; exit 0 ;;
+ echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
@@ -98,7 +96,7 @@ while test $# -gt 0 ; do
*local*)
# First pass through any local machine types.
echo $1
- exit 0;;
+ exit ;;
* )
break ;;
@@ -117,10 +115,18 @@ esac
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
- nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
+ kopensolaris*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
+ android-linux)
+ os=-linux-android
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
+ ;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
@@ -143,10 +149,13 @@ case $os in
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis)
+ -apple | -axis | -knuth | -cray | -microblaze*)
os=
basic_machine=$1
;;
+ -bluegene*)
+ os=-cnk
+ ;;
-sim | -cisco | -oki | -wec | -winbond)
os=
basic_machine=$1
@@ -161,13 +170,17 @@ case $os in
os=-chorusos
basic_machine=$1
;;
- -chorusrdb)
- os=-chorusrdb
+ -chorusrdb)
+ os=-chorusrdb
basic_machine=$1
- ;;
+ ;;
-hiux*)
os=-hiuxwe2
;;
+ -sco6)
+ os=-sco5v6
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
-sco5)
os=-sco3.2v5
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -184,6 +197,10 @@ case $os in
# Don't forget version if it is 3.2v4 or newer.
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
+ -sco5v6*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
-sco*)
os=-sco3.2v2
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
@@ -201,6 +218,12 @@ case $os in
-isc*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
+ -lynx*178)
+ os=-lynxos178
+ ;;
+ -lynx*5)
+ os=-lynxos5
+ ;;
-lynx*)
os=-lynxos
;;
@@ -225,43 +248,114 @@ case $basic_machine in
# Some are omitted here because they have special meanings below.
1750a | 580 \
| a29k \
+ | aarch64 | aarch64_be \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
- | c4x | clipper \
- | d10v | d30v | dsp16xx \
- | fr30 \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arceb \
+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
+ | avr | avr32 \
+ | ba \
+ | be32 | be64 \
+ | bfin \
+ | c4x | c8051 | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | e2k | epiphany \
+ | fido | fr30 | frv | ft32 \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | hexagon \
| i370 | i860 | i960 | ia64 \
- | m32r | m68000 | m68k | m88k | mcore \
- | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
- | mips64vr4100 | mips64vr4100el | mips64vr4300 \
- | mips64vr4300el | mips64vr5000 | mips64vr5000el \
- | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
- | mipsisa32 \
+ | ip2k | iq2000 \
+ | k1om \
+ | le32 | le64 \
+ | lm32 \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64octeon | mips64octeonel \
+ | mips64orion | mips64orionel \
+ | mips64r5900 | mips64r5900el \
+ | mips64vr | mips64vrel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mips64vr5900 | mips64vr5900el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa32r6 | mipsisa32r6el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64r6 | mipsisa64r6el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipsr5900 | mipsr5900el \
+ | mipstx39 | mipstx39el \
| mn10200 | mn10300 \
+ | moxie \
+ | mt \
+ | msp430 \
+ | nds32 | nds32le | nds32be \
+ | nios | nios2 | nios2eb | nios2el \
| ns16k | ns32k \
- | openrisc \
+ | open8 | or1k | or1knd | or32 \
| pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
- | s390 | s390x \
- | sh | sh[34] | sh[34]eb | shbe | shle \
- | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
- | stormy16 | strongarm \
- | tahoe | thumb | tic80 | tron \
- | v850 \
+ | riscv32 | riscv64 \
+ | rl78 | rx \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu \
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
+ | ubicom32 \
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+ | visium \
| we32k \
- | x86 | xscale \
- | z8k)
+ | x86 | xc16x | xstormy16 | xtensa \
+ | z8k | z80)
basic_machine=$basic_machine-unknown
;;
- m6811 | m68hc11 | m6812 | m68hc12)
- # Motorola 68HC11/12.
+ c54x)
+ basic_machine=tic54x-unknown
+ ;;
+ c55x)
+ basic_machine=tic55x-unknown
+ ;;
+ c6x)
+ basic_machine=tic6x-unknown
+ ;;
+ leon|leon[3-9])
+ basic_machine=sparc-$basic_machine
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
basic_machine=$basic_machine-unknown
os=-none
;;
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ strongarm | thumb | xscale)
+ basic_machine=arm-unknown
+ ;;
+ xgate)
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ xscaleeb)
+ basic_machine=armeb-unknown
+ ;;
+
+ xscaleel)
+ basic_machine=armel-unknown
+ ;;
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
@@ -277,42 +371,89 @@ case $basic_machine in
# Recognize the basic CPU types with company name.
580-* \
| a29k-* \
+ | aarch64-* | aarch64_be-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
- | alphapca5[67]-* | arc-* \
- | arm-* | armbe-* | armle-* | armv*-* \
- | avr-* \
- | bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c54x-* \
- | clipper-* | cray2-* | cydra-* \
- | d10v-* | d30v-* \
- | elxsi-* \
- | f30[01]-* | f700-* | fr30-* | fx80-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* | avr32-* \
+ | ba-* \
+ | be32-* | be64-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
+ | c8051-* | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | e2k-* | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | hexagon-* \
| i*86-* | i860-* | i960-* | ia64-* \
- | m32r-* \
- | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | mcore-* \
- | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
- | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
- | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
- | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
+ | ip2k-* | iq2000-* \
+ | k1om-* \
+ | le32-* | le64-* \
+ | lm32-* \
+ | m32c-* | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
+ | microblaze-* | microblazeel-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64octeon-* | mips64octeonel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64r5900-* | mips64r5900el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mips64vr5900-* | mips64vr5900el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa32r6-* | mipsisa32r6el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64r6-* | mipsisa64r6el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipsr5900-* | mipsr5900el-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | mt-* \
+ | msp430-* \
+ | nds32-* | nds32le-* | nds32be-* \
+ | nios-* | nios2-* | nios2eb-* | nios2el-* \
| none-* | np1-* | ns16k-* | ns32k-* \
+ | open8-* \
+ | or1k*-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pyramid-* \
- | romp-* | rs6000-* \
- | s390-* | s390x-* \
- | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
- | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
- | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
- | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
- | v850-* | vax-* \
+ | riscv32-* | riscv64-* \
+ | rl78-* | romp-* | rs6000-* | rx-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
+ | tahoe-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tile*-* \
+ | tron-* \
+ | ubicom32-* \
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
+ | vax-* \
+ | visium-* \
| we32k-* \
- | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
+ | xstormy16-* | xtensa*-* \
| ymp-* \
- | z8k-*)
+ | z8k-* | z80-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
@@ -330,6 +471,9 @@ case $basic_machine in
basic_machine=a29k-amd
os=-udi
;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
adobe68k)
basic_machine=m68010-adobe
os=-scout
@@ -344,6 +488,12 @@ case $basic_machine in
basic_machine=a29k-none
os=-bsd
;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
amdahl)
basic_machine=580-amdahl
os=-sysv
@@ -367,6 +517,13 @@ case $basic_machine in
basic_machine=m68k-apollo
os=-bsd
;;
+ aros)
+ basic_machine=i386-pc
+ os=-aros
+ ;;
+ asmjs)
+ basic_machine=asmjs-unknown
+ ;;
aux)
basic_machine=m68k-apple
os=-aux
@@ -375,6 +532,35 @@ case $basic_machine in
basic_machine=ns32k-sequent
os=-dynix
;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ bluegene*)
+ basic_machine=powerpc-ibm
+ os=-cnk
+ ;;
+ c54x-*)
+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c55x-*)
+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c6x-*)
+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ cegcc)
+ basic_machine=arm-unknown
+ os=-cegcc
+ ;;
convex-c1)
basic_machine=c1-convex
os=-bsd
@@ -395,30 +581,45 @@ case $basic_machine in
basic_machine=c38-convex
os=-bsd
;;
- cray | ymp)
- basic_machine=ymp-cray
+ cray | j90)
+ basic_machine=j90-cray
os=-unicos
;;
- cray2)
- basic_machine=cray2-cray
- os=-unicos
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
;;
- [cjt]90)
- basic_machine=${basic_machine}-cray
- os=-unicos
+ cr16 | cr16-*)
+ basic_machine=cr16-unknown
+ os=-elf
;;
crds | unos)
basic_machine=m68k-crds
;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
cris | cris-* | etrax*)
basic_machine=cris-axis
;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
da30 | da30-*)
basic_machine=m68k-da30
;;
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
basic_machine=mips-dec
;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
basic_machine=m68k-motorola
@@ -427,6 +628,14 @@ case $basic_machine in
basic_machine=m88k-motorola
os=-sysv3
;;
+ dicos)
+ basic_machine=i686-pc
+ os=-dicos
+ ;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
dpx20 | dpx20-*)
basic_machine=rs6000-bull
os=-bosx
@@ -538,7 +747,6 @@ case $basic_machine in
i370-ibm* | ibm*)
basic_machine=i370-ibm
;;
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
i*86v32)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv32
@@ -577,6 +785,17 @@ case $basic_machine in
basic_machine=m68k-isi
os=-sysv
;;
+ leon-*|leon[3-9]-*)
+ basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
m88k-omron*)
basic_machine=m88k-omron
;;
@@ -588,10 +807,21 @@ case $basic_machine in
basic_machine=ns32k-utek
os=-sysv
;;
+ microblaze*)
+ basic_machine=microblaze-xilinx
+ ;;
+ mingw64)
+ basic_machine=x86_64-pc
+ os=-mingw64
+ ;;
mingw32)
- basic_machine=i386-pc
+ basic_machine=i686-pc
os=-mingw32
;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
miniframe)
basic_machine=m68000-convergent
;;
@@ -599,36 +829,43 @@ case $basic_machine in
basic_machine=m68k-atari
os=-mint
;;
- mipsel*-linux*)
- basic_machine=mipsel-unknown
- os=-linux-gnu
- ;;
- mips*-linux*)
- basic_machine=mips-unknown
- os=-linux-gnu
- ;;
mips3*-*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
;;
mips3*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
;;
- mmix*)
- basic_machine=mmix-knuth
- os=-mmixware
- ;;
monitor)
basic_machine=m68k-rom68k
os=-coff
;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ moxiebox)
+ basic_machine=moxie-unknown
+ os=-moxiebox
+ ;;
msdos)
basic_machine=i386-pc
os=-msdos
;;
+ ms1-*)
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ ;;
+ msys)
+ basic_machine=i686-pc
+ os=-msys
+ ;;
mvs)
basic_machine=i370-ibm
os=-mvs
;;
+ nacl)
+ basic_machine=le32-unknown
+ os=-nacl
+ ;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
@@ -693,6 +930,12 @@ case $basic_machine in
np1)
basic_machine=np1-gould
;;
+ neo-tandem)
+ basic_machine=neo-tandem
+ ;;
+ nse-tandem)
+ basic_machine=nse-tandem
+ ;;
nsr-tandem)
basic_machine=nsr-tandem
;;
@@ -700,6 +943,13 @@ case $basic_machine in
basic_machine=hppa1.1-oki
os=-proelf
;;
+ openrisc | openrisc-*)
+ basic_machine=or32-unknown
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
OSE68000 | ose68000)
basic_machine=m68000-ericsson
os=-ose
@@ -716,55 +966,76 @@ case $basic_machine in
basic_machine=i860-intel
os=-osf
;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
pbd)
basic_machine=sparc-tti
;;
pbb)
basic_machine=m68k-tti
;;
- pc532 | pc532-*)
+ pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
- pentium | p5 | k5 | k6 | nexgen)
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc
;;
- pentiumpro | p6 | 6x86 | athlon)
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
basic_machine=i686-pc
;;
- pentiumii | pentium2)
+ pentiumii | pentium2 | pentiumiii | pentium3)
basic_machine=i686-pc
;;
- pentium-* | p5-* | k5-* | k6-* | nexgen-*)
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
pentiumpro-* | p6-* | 6x86-* | athlon-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
- pentiumii-* | pentium2-*)
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
pn)
basic_machine=pn-gould
;;
power) basic_machine=power-ibm
;;
- ppc) basic_machine=powerpc-unknown
- ;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ppc | ppcbe) basic_machine=powerpc-unknown
+ ;;
+ ppc-* | ppcbe-*)
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown
- ;;
+ ;;
ppcle-* | powerpclittle-*)
basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppc64) basic_machine=powerpc64-unknown
- ;;
+ ;;
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
basic_machine=powerpc64le-unknown
- ;;
+ ;;
ppc64le-* | powerpc64little-*)
basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
@@ -775,6 +1046,14 @@ case $basic_machine in
basic_machine=i586-unknown
os=-pw32
;;
+ rdos | rdos64)
+ basic_machine=x86_64-pc
+ os=-rdos
+ ;;
+ rdos32)
+ basic_machine=i386-pc
+ os=-rdos
+ ;;
rom68k)
basic_machine=m68k-rom68k
os=-coff
@@ -785,10 +1064,30 @@ case $basic_machine in
rtpc | rtpc-*)
basic_machine=romp-ibm
;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
sa29200)
basic_machine=a29k-amd
os=-udi
;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
sequent)
basic_machine=i386-sequent
;;
@@ -796,7 +1095,13 @@ case $basic_machine in
basic_machine=sh-hitachi
os=-hms
;;
- sparclite-wrs)
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
basic_machine=sparclite-wrs
os=-vxworks
;;
@@ -814,6 +1119,9 @@ case $basic_machine in
basic_machine=i860-stratus
os=-sysv4
;;
+ strongarm-* | thumb-*)
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
sun2)
basic_machine=m68000-sun
;;
@@ -863,12 +1171,16 @@ case $basic_machine in
os=-dynix
;;
t3e)
- basic_machine=t3e-cray
+ basic_machine=alphaev5-cray
os=-unicos
;;
- tic54x | c54x*)
- basic_machine=tic54x-unknown
- os=-coff
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tile*)
+ basic_machine=$basic_machine-unknown
+ os=-linux-gnu
;;
tx39)
basic_machine=mipstx39-unknown
@@ -876,9 +1188,17 @@ case $basic_machine in
tx39el)
basic_machine=mipstx39el-unknown
;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
tower | tower-32)
basic_machine=m68k-ncr
;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
udi29k)
basic_machine=a29k-amd
os=-udi
@@ -900,8 +1220,8 @@ case $basic_machine in
os=-vms
;;
vpp*|vx|vx-*)
- basic_machine=f301-fujitsu
- ;;
+ basic_machine=f301-fujitsu
+ ;;
vxworks960)
basic_machine=i960-wrs
os=-vxworks
@@ -922,21 +1242,28 @@ case $basic_machine in
basic_machine=hppa1.1-winbond
os=-proelf
;;
- windows32)
- basic_machine=i386-pc
- os=-windows32-msvcrt
- ;;
- xmp)
- basic_machine=xmp-cray
- os=-unicos
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
;;
- xps | xps100)
+ xps | xps100)
basic_machine=xps100-honeywell
;;
+ xscale-* | xscalee[bl]-*)
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
z8k-*-coff)
basic_machine=z8k-unknown
os=-sim
;;
+ z80-*-coff)
+ basic_machine=z80-unknown
+ os=-sim
+ ;;
none)
basic_machine=none-none
os=-none
@@ -953,16 +1280,12 @@ case $basic_machine in
op60c)
basic_machine=hppa1.1-oki
;;
- mips)
- if [ x$os = x-linux-gnu ]; then
- basic_machine=mips-unknown
- else
- basic_machine=mips-mips
- fi
- ;;
romp)
basic_machine=romp-ibm
;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
rs6000)
basic_machine=rs6000-ibm
;;
@@ -979,13 +1302,13 @@ case $basic_machine in
we32k)
basic_machine=we32k-att
;;
- sh3 | sh4 | sh3eb | sh4eb)
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
- sparc | sparcv9 | sparcv9b)
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
basic_machine=sparc-sun
;;
- cydra)
+ cydra)
basic_machine=cydra-cydrome
;;
orion)
@@ -1000,10 +1323,6 @@ case $basic_machine in
pmac | pmac-mpw)
basic_machine=powerpc-apple
;;
- c4x*)
- basic_machine=c4x-none
- os=-coff
- ;;
*-unknown)
# Make sure to match an already-canonicalized machine name.
;;
@@ -1030,9 +1349,12 @@ esac
if [ x"$os" != x"" ]
then
case $os in
- # First match some system type aliases
- # that might get confused with valid system types.
+ # First match some system type aliases
+ # that might get confused with valid system types.
# -solaris* is a basic system type, with this one exception.
+ -auroraux)
+ os=-auroraux
+ ;;
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
;;
@@ -1053,23 +1375,31 @@ case $os in
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
+ | -sym* | -kopensolaris* | -plan9* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* \
+ | -aos* | -aros* | -cloudabi* | -sortix* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -bitrig* | -openbsd* | -solidbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* \
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
- | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
+ | -chorusos* | -chorusrdb* | -cegcc* \
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
- | -os2* | -vos*)
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1081,16 +1411,21 @@ case $os in
;;
esac
;;
+ -nto-qnx*)
+ ;;
-nto*)
- os=-nto-qnx
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
;;
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
;;
-mac*)
os=`echo $os | sed -e 's|mac|macos|'`
;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
-linux*)
os=`echo $os | sed -e 's|linux|linux-gnu|'`
;;
@@ -1103,6 +1438,9 @@ case $os in
-opened*)
os=-openedition
;;
+ -os400*)
+ os=-os400
+ ;;
-wince*)
os=-wince
;;
@@ -1121,14 +1459,23 @@ case $os in
-acis*)
os=-aos
;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
-386bsd)
os=-bsd
;;
-ctix* | -uts*)
os=-sysv
;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
-ns2 )
- os=-nextstep2
+ os=-nextstep2
;;
-nsk*)
os=-nsk
@@ -1140,6 +1487,9 @@ case $os in
-sinix*)
os=-sysv4
;;
+ -tpf*)
+ os=-tpf
+ ;;
-triton*)
os=-sysv3
;;
@@ -1167,8 +1517,19 @@ case $os in
-xenix)
os=-xenix
;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- os=-mint
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
+ -dicos*)
+ os=-dicos
+ ;;
+ -nacl*)
;;
-none)
;;
@@ -1192,6 +1553,12 @@ else
# system, and we'll never get to this point.
case $basic_machine in
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
*-acorn)
os=-riscix1.2
;;
@@ -1201,10 +1568,29 @@ case $basic_machine in
arm*-semi)
os=-aout
;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ c8051-*)
+ os=-elf
+ ;;
+ hexagon-*)
+ os=-elf
+ ;;
+ tic54x-*)
+ os=-coff
+ ;;
+ tic55x-*)
+ os=-coff
+ ;;
+ tic6x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
pdp10-*)
os=-tops20
;;
- pdp11-*)
+ pdp11-*)
os=-none
;;
*-dec | vax-*)
@@ -1218,19 +1604,22 @@ case $basic_machine in
;;
m68000-sun)
os=-sunos3
- # This also exists in the configure program, but was not the
- # default.
- # os=-sunos4
;;
m68*-cisco)
os=-aout
;;
+ mep-*)
+ os=-elf
+ ;;
mips*-cisco)
os=-elf
;;
mips*-*)
os=-elf
;;
+ or32-*)
+ os=-coff
+ ;;
*-tti) # must be before sparc entry or we get the wrong os.
os=-sysv3
;;
@@ -1240,9 +1629,15 @@ case $basic_machine in
*-be)
os=-beos
;;
+ *-haiku)
+ os=-haiku
+ ;;
*-ibm)
os=-aix
;;
+ *-knuth)
+ os=-mmixware
+ ;;
*-wec)
os=-proelf
;;
@@ -1294,19 +1689,19 @@ case $basic_machine in
*-next)
os=-nextstep3
;;
- *-gould)
+ *-gould)
os=-sysv
;;
- *-highlevel)
+ *-highlevel)
os=-bsd
;;
*-encore)
os=-bsd
;;
- *-sgi)
+ *-sgi)
os=-irix
;;
- *-siemens)
+ *-siemens)
os=-sysv4
;;
*-masscomp)
@@ -1345,7 +1740,7 @@ case $basic_machine in
-sunos*)
vendor=sun
;;
- -aix*)
+ -cnk*|-aix*)
vendor=ibm
;;
-beos*)
@@ -1375,10 +1770,16 @@ case $basic_machine in
-mvs* | -opened*)
vendor=ibm
;;
+ -os400*)
+ vendor=ibm
+ ;;
-ptx*)
vendor=sequent
;;
- -vxsim* | -vxworks*)
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
vendor=wrs
;;
-aux*)
@@ -1402,7 +1803,7 @@ case $basic_machine in
esac
echo $basic_machine$os
-exit 0
+exit
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
diff --git a/src/configure b/src/configure
index 994c7d7..2dcc9e9 100755
--- a/src/configure
+++ b/src/configure
@@ -1,9 +1,11 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69.
+# Generated by GNU Autoconf 2.68.
#
#
-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
+# Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
@@ -132,31 +134,6 @@ export LANGUAGE
# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-# Use a proper internal environment variable to ensure we don't fall
- # into an infinite loop, continuously re-executing ourselves.
- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
- _as_can_reexec=no; export _as_can_reexec;
- # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-as_fn_exit 255
- fi
- # We don't want this to propagate to other subprocesses.
- { _as_can_reexec=; unset _as_can_reexec;}
if test "x$CONFIG_SHELL" = x; then
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
emulate sh
@@ -190,8 +167,7 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
else
exitcode=1; echo positional parameters were not saved.
fi
-test x\$exitcode = x0 || exit 1
-test -x / || exit 1"
+test x\$exitcode = x0 || exit 1"
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
@@ -236,25 +212,21 @@ IFS=$as_save_IFS
if test "x$CONFIG_SHELL" != x; then :
- export CONFIG_SHELL
- # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-exit 255
+ # We cannot yet assume a decent shell, so we have to provide a
+ # neutralization value for shells without unset; and this also
+ # works around shells that cannot unset nonexistent variables.
+ # Preserve -v and -x to the replacement shell.
+ BASH_ENV=/dev/null
+ ENV=/dev/null
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+ export CONFIG_SHELL
+ case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+ esac
+ exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
fi
if test x$as_have_required = xno; then :
@@ -356,14 +328,6 @@ $as_echo X"$as_dir" |
} # as_fn_mkdir_p
-
-# as_fn_executable_p FILE
-# -----------------------
-# Test if FILE is an executable regular file.
-as_fn_executable_p ()
-{
- test -f "$1" && test -x "$1"
-} # as_fn_executable_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
@@ -485,10 +449,6 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
- # already done that, so ensure we don't try to do so again and fall
- # in an infinite loop. This has already happened in practice.
- _as_can_reexec=no; export _as_can_reexec
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
@@ -523,16 +483,16 @@ if (echo >conf$$.file) 2>/dev/null; then
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
+ # In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
+ as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
- as_ln_s='cp -pR'
+ as_ln_s='cp -p'
fi
else
- as_ln_s='cp -pR'
+ as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
@@ -544,8 +504,28 @@ else
as_mkdir_p=false
fi
-as_test_x='test -x'
-as_executable_p=as_fn_executable_p
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -663,10 +643,6 @@ CONFIG_OS_COMPAT
CONFIG_OS_SUFFIX
CONFIG_OS
CONFIG_CXXDIALECT
-PDF_LDFLAGS
-PDF_CPP
-PDF_CXX
-CONFIG_PDF
QT_PLUGINS_LIST
QT_PLUGINS_PATH
QT_FRAMEWORKS_PATH
@@ -678,6 +654,7 @@ CONFIG_X11
PDF_CFLAGS
COCOA_LDFLAGS
COCOA_CFLAGS
+MACOSX_DEPLOYMENT_TARGET
QT_LIBS
QT_LFLAGS
QT_LDFLAGS
@@ -693,54 +670,37 @@ RCC
UIC
MOC
QMAKE
+CONFIG_PDF
CONFIG_MACOS
CONFIG_EXPERIMENTAL
WINSPARKLE_PATH
WINSPARKLE_DLL
CONFIG_SPARKLE
SPARKLE_FRAMEWORK_PATH
-SPARKLE_LDFLAGS
-SPARKLE_CFLAGS
SPARKLE_CPP
SPARKLE_CXX
-SQLITE3_LDFLAGS
-SQLITE3_CFLAGS
SQLITE3_CPP
SQLITE3_CXX
CONFIG_GS
GS_DLL
GS_EXE
-AXEL_LDFLAGS
-AXEL_CFLAGS
AXEL_CPP
AXEL_CXX
-IMLIB2_LDFLAGS
-IMLIB2_CFLAGS
IMLIB2_CPP
IMLIB2_CXX
-CAIRO_LDFLAGS
-CAIRO_CFLAGS
CAIRO_CPP
CAIRO_CXX
FREETYPE_LDFLAGS
FREETYPE_CFLAGS
-FREETYPE_CPP
-FREETYPE_CXX
-FREETYPE_tmp1
-ICONV_LDFLAGS
-ICONV_CFLAGS
-ICONV_CPP
-ICONV_CXX
+LTLIBICONV
+LIBICONV
X_EXTRA_LIBS
X_LIBS
X_PRE_LIBS
X_CFLAGS
-X11_LDFLAGS
-X11_CFLAGS
X11_CPP
X11_CXX
XMKMF
-GUILE_LDFLAGS
GUILE_CPP
GUILE_CXX
CONFIG_GUILE_SERIAL
@@ -802,6 +762,7 @@ infodir
docdir
oldincludedir
includedir
+runstatedir
localstatedir
sharedstatedir
sysconfdir
@@ -827,7 +788,10 @@ enable_option_checking
with_guile
enable_guile2
with_x
-with_iconv
+with_gnu_ld
+enable_rpath
+with_libiconv_prefix
+enable_freetype
with_freetype
with_cairo
with_imlib2
@@ -838,13 +802,13 @@ with_sparkle
enable_fastalloc
enable_experimental
enable_macosx_extensions
+enable_pdf_renderer
enable_console
enable_qt
with_qt
enable_QtPlugins
enable_qtpipes
enable_cocoa
-enable_pdf_renderer
enable_profile
enable_debug
enable_assert
@@ -907,6 +871,7 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE}'
@@ -1159,6 +1124,15 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
+ -runstatedir | --runstatedir | --runstatedi | --runstated \
+ | --runstate | --runstat | --runsta | --runst | --runs \
+ | --run | --ru | --r)
+ ac_prev=runstatedir ;;
+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+ | --run=* | --ru=* | --r=*)
+ runstatedir=$ac_optarg ;;
+
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1296,7 +1270,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir
+ libdir localedir mandir runstatedir
do
eval ac_val=\$$ac_var
# Remove trailing slashes.
@@ -1324,6 +1298,8 @@ target=$target_alias
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
+ $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
+ If a cross compiler is detected then cross compile mode will be used" >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
@@ -1449,6 +1425,7 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1486,19 +1463,20 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-guile2=yes enable compilation with Guile 2, for development
purposes
+ --disable-rpath do not hardcode runtime library paths
+ --disable-freetype enable compilation without freetype
--disable-fastalloc omit fast allocator for small objects
--enable-experimental support new style rewriting code
--disable-macosx-extensions
do not use Mac specific services (spellchecker,
image handling, ...)
+ --enable-pdf-renderer use native PDF renderer for pdf export
--enable-console enable windows console
--disable-qt replace Qt by X11 interface
--enable-QtPlugins[=list]
defaults plugins: imageformats, and possibly more
--enable-qtpipes replace UNIX pipes by Qt pipes
--enable-cocoa replace X11 by Cocoa interface
- --enable-pdf-renderer=yes
- use hummus support for native pdf exports
--enable-profile enable gcc compilation flag for profiling with gprof
--enable-debug[=ARG] install a debugging enable executable [-ggdb]
--enable-assert exit on failed assertions in code
@@ -1510,8 +1488,10 @@ Optional Packages:
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-guile[=DIR] where to find guile-config [system]
--with-x use the X Window System
- --with-iconv[=DIR] where to find iconv []
- --with-freetype[DIR=] where to find freetype-config []
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
+ --without-libiconv-prefix don't search for libiconv in includedir and libdir
+ --with-freetype[=ARG] with freetype support [ARG=linked]
--with-cairo[=ARG] with cairo support [ARG=no]
--with-imlib2[=ARG] with imlib2 support [ARG=no]
--with-axel[=ARG] with axel support [ARG=no]
@@ -1605,9 +1585,9 @@ test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
configure
-generated by GNU Autoconf 2.69
+generated by GNU Autoconf 2.68
-Copyright (C) 2012 Free Software Foundation, Inc.
+Copyright (C) 2010 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
@@ -1812,52 +1792,6 @@ fi
} # ac_fn_cxx_try_run
-# ac_fn_cxx_try_link LINENO
-# -------------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded.
-ac_fn_cxx_try_link ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- test -x conftest$ac_exeext
- }; then :
- ac_retval=0
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=1
-fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_cxx_try_link
-
# ac_fn_cxx_try_cpp LINENO
# ------------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
@@ -2013,6 +1947,52 @@ $as_echo "$ac_res" >&6; }
} # ac_fn_cxx_check_header_compile
+# ac_fn_cxx_try_link LINENO
+# -------------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_link
+
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
# ---------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
@@ -2134,35 +2114,6 @@ $as_echo "$ac_res" >&6; }
} # ac_fn_cxx_check_func
-# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
-# ------------------------------------------------
-# Tests whether HEADER is present, setting the cache variable VAR accordingly.
-ac_fn_cxx_check_header_preproc ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <$2>
-_ACEOF
-if ac_fn_cxx_try_cpp "$LINENO"; then :
- eval "$3=yes"
-else
- eval "$3=no"
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-fi
-eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_cxx_check_header_preproc
-
# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
@@ -2190,7 +2141,7 @@ $as_echo "$ac_try_echo"; } >&5
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
- test -x conftest$ac_exeext
+ $as_test_x conftest$ac_exeext
}; then :
ac_retval=0
else
@@ -2236,7 +2187,7 @@ $as_echo "$ac_try_echo"; } >&5
test ! -s conftest.err
} && test -s conftest$ac_exeext && {
test "$cross_compiling" = yes ||
- test -x conftest$ac_exeext
+ $as_test_x conftest$ac_exeext
}; then :
ac_retval=0
else
@@ -2272,8 +2223,7 @@ int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
-test_array [0] = 0;
-return test_array [0];
+test_array [0] = 0
;
return 0;
@@ -2289,8 +2239,7 @@ int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
+test_array [0] = 0
;
return 0;
@@ -2316,8 +2265,7 @@ int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
-test_array [0] = 0;
-return test_array [0];
+test_array [0] = 0
;
return 0;
@@ -2333,8 +2281,7 @@ int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
+test_array [0] = 0
;
return 0;
@@ -2368,8 +2315,7 @@ int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
+test_array [0] = 0
;
return 0;
@@ -2442,7 +2388,7 @@ This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
-generated by GNU Autoconf 2.69. Invocation command line was
+generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
@@ -2899,8 +2845,14 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking current Subversion revision number" >&5
$as_echo_n "checking current Subversion revision number... " >&6; }
SVNREV=`svnversion -n . 2>/dev/null`
-SVNREV=${SVNREV/:/_}
-if { test "$SVNREV" = "" || test "$SVNREV" = "exported" ; } ; then
+SVNREV=${SVNREV/:/-}
+if { test "$SVNREV" = "Unversioned directory"; } ; then
+ SVNREV=`(git rev-list --max-count=100 --pretty=medium address@hidden | sed -rne '/git-svn-id:/ {s,.*://.*@([^ ]+).*,\1,p ;/./ q 0}') 2>/dev/null`
+ if { ! test "$SVNREV" = ""; } ; then
+ SVNREV=svn-"$SVNREV"-git-`git log --oneline | wc -l`-`git log -n 1 --oneline | cut -f1 -d' '`
+ fi;
+fi
+if { test "$SVNREV" = "" || test "$SVNREV" = "exported"; } ; then
SVNREV=`cat $srcdir/SVNREV`
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNREV" >&5
$as_echo "$SVNREV" >&6; }
@@ -2960,7 +2912,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CC="${ac_tool_prefix}gcc"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -3000,7 +2952,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_ac_ct_CC="gcc"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -3053,7 +3005,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CC="${ac_tool_prefix}cc"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -3094,7 +3046,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
@@ -3152,7 +3104,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -3196,7 +3148,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_ac_ct_CC="$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -3642,7 +3594,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include
#include
-struct stat;
+#include
+#include
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
@@ -3755,7 +3708,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -3799,7 +3752,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_ac_ct_CXX="$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -4008,7 +3961,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -4052,7 +4005,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_ac_ct_OBJC="$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -4259,7 +4212,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -4303,7 +4256,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -4771,7 +4724,7 @@ do
for ac_prog in grep ggrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_GREP" || continue
+ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
# Check for GNU ac_path_GREP and select it if it is found.
# Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
@@ -4837,7 +4790,7 @@ do
for ac_prog in egrep; do
for ac_exec_ext in '' $ac_executable_extensions; do
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_EGREP" || continue
+ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
# Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
@@ -5045,7 +4998,7 @@ do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_guile_config="$ac_prog"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
@@ -5075,36 +5028,35 @@ done
LC_SCATTER_FLAGS_list="$LC_WITH_GUILE_tmp1"
+ while test -n "$LC_SCATTER_FLAGS_list" ;
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
+ [[ "$LC_SCATTER_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_SCATTER_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_SCATTER_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_SCATTER_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list//\/\//\/}
+
+ LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_list%% -*} # get flag
+ LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#*$LC_SCATTER_FLAGS_flag} # remove flag
+
+
+ [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_SCATTER_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_SCATTER_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/}
if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while test -n "$LC_SCATTER_FLAGS_flag"
- do
+ [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_SCATTER_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_SCATTER_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/}
+
case "$LC_SCATTER_FLAGS_flag" in
-l*)
if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
@@ -5253,8 +5205,7 @@ else
fi
fi
-;;
- -Wl,-F*)
+
if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then GUILE_TMP_LDFLAGS="$GUILE_TMP_LDFLAGS $LC_SCATTER_FLAGS_flag"
else
@@ -5371,34 +5322,6 @@ fi
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&5
$as_echo "$as_me: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&2;};;
esac
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
-
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
done
unset ${!LC_SCATTER_FLAGS_*}
@@ -5568,36 +5491,32 @@ _ACEOF
then
LC_PREPEND_LIST_list="$GUILE_LDFLAGS"
#pop the old list
+ while [ "$LDFLAGS" ]
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ [[ "$LDFLAGS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LDFLAGS=${BASH_REMATCH[1]}
+ [[ "$LDFLAGS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LDFLAGS=${BASH_REMATCH[1]}
+# transform \\ in \
+ LDFLAGS=${LDFLAGS//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${LDFLAGS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LDFLAGS"
+ then LDFLAGS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LDFLAGS=${LDFLAGS%$LC_PREPEND_LIST_flag} # remove flag
+ fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -5634,67 +5553,34 @@ fi
fi
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
fi
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -5731,126 +5617,55 @@ fi
fi
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
done
LDFLAGS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
- while [[ $LC_PREPEND_LIST_flag ]]
- do LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
+ LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
done
unset ${!LC_PREPEND_LIST_*}
else while [ "$LC_MERGE_FLAGS_list" ]
do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
+
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
+
+
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
@@ -5893,63 +5708,54 @@ fi
fi
unset ${!LC_MERGE_FLAGS_*}
-
- if test -n "$LNSTATIC"
+ LC_MERGE_FLAGS_list="$GUILE_LIBS"
+ if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
then
- if [[ "-static" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then CFLAGS="$CFLAGS -static"
- else
-if ${CFLAGS+:} false; then :
+ LC_PREPEND_LIST_list="$GUILE_LIBS"
+ #pop the old list
+ while [ "$LIBS" ]
+ do
- case " $CFLAGS " in #(
- *" -static "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -static"; } >&5
- (: CFLAGS already contains -static) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ [[ "$LIBS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LIBS=${BASH_REMATCH[1]}
+ [[ "$LIBS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LIBS=${BASH_REMATCH[1]}
+# transform \\ in \
+ LIBS=${LIBS//\/\//\/}
- as_fn_append CFLAGS " -static"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
- (: CFLAGS="$CFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ LC_PREPEND_LIST_flag=${LIBS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LIBS"
+ then LIBS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LIBS=${LIBS%$LC_PREPEND_LIST_flag} # remove flag
+ fi
-else
- CFLAGS=-static
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
- (: CFLAGS="$CFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [[ "-static" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then CXXFLAGS="$CXXFLAGS -static"
+
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
-if ${CXXFLAGS+:} false; then :
+if ${LC_PREPEND_LIST_nlist+:} false; then :
- case " $CXXFLAGS " in #(
- *" -static "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -static"; } >&5
- (: CXXFLAGS already contains -static) 2>&5
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } ;; #(
*) :
- as_fn_append CXXFLAGS " -static"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
- (: CXXFLAGS="$CXXFLAGS") 2>&5
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -5958,9 +5764,9 @@ esac
else
- CXXFLAGS=-static
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
- (: CXXFLAGS="$CXXFLAGS") 2>&5
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -5969,293 +5775,34 @@ fi
fi
- fi
-# check the libs depencies
- LC_SET_FLAGS_libs=$GUILE_LIBS
-
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_lib # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_lib=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_lib" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_lib})
- fi
-
- LC_SET_FLAGS_lib=$(echo $LC_SET_FLAGS_lib) # normalize whitespaces
- LC_SET_FLAGS_lib=${LC_SET_FLAGS_lib//\/\//\/} # normalize path separator
-
- if [[ "$LC_SET_FLAGS_lib" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_lib=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_lib=${LC_SET_FLAGS_lib#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- # the main lib
-
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_dep # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_dep=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_dep" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_dep})
- fi
-
- LC_SET_FLAGS_dep=$(echo $LC_SET_FLAGS_dep) # normalize whitespaces
- LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep//\/\//\/} # normalize path separator
-
- if [[ "$LC_SET_FLAGS_dep" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_dep=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- # the dependency lib
- while test -n "$LC_SET_FLAGS_dep"
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
do
-case $LC_SET_FLAGS_dep in
- z) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
-$as_echo_n "checking for inflate in -lz... " >&6; }
-if ${ac_cv_lib_z_inflate+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lz $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char inflate ();
-int
-main ()
-{
-return inflate ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_z_inflate=yes
-else
- ac_cv_lib_z_inflate=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
-$as_echo "$ac_cv_lib_z_inflate" >&6; }
-if test "x$ac_cv_lib_z_inflate" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBZ 1
-_ACEOF
-
- LIBS="-lz $LIBS"
-
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- png) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_init in -lpng" >&5
-$as_echo_n "checking for png_read_init in -lpng... " >&6; }
-if ${ac_cv_lib_png_png_read_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char png_read_init ();
-int
-main ()
-{
-return png_read_init ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_png_png_read_init=yes
-else
- ac_cv_lib_png_png_read_init=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_init" >&5
-$as_echo "$ac_cv_lib_png_png_read_init" >&6; }
-if test "x$ac_cv_lib_png_png_read_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBPNG 1
-_ACEOF
-
- LIBS="-lpng $LIBS"
-
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- png12) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_init in -lpng12" >&5
-$as_echo_n "checking for png_read_init in -lpng12... " >&6; }
-if ${ac_cv_lib_png12_png_read_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng12 $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char png_read_init ();
-int
-main ()
-{
-return png_read_init ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_png12_png_read_init=yes
-else
- ac_cv_lib_png12_png_read_init=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_read_init" >&5
-$as_echo "$ac_cv_lib_png12_png_read_init" >&6; }
-if test "x$ac_cv_lib_png12_png_read_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBPNG12 1
-_ACEOF
-
- LIBS="-lpng12 $LIBS"
-
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- gmp) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpf_init in -lgmp" >&5
-$as_echo_n "checking for __gmpf_init in -lgmp... " >&6; }
-if ${ac_cv_lib_gmp___gmpf_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lgmp $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char __gmpf_init ();
-int
-main ()
-{
-return __gmpf_init ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_gmp___gmpf_init=yes
-else
- ac_cv_lib_gmp___gmpf_init=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpf_init" >&5
-$as_echo "$ac_cv_lib_gmp___gmpf_init" >&6; }
-if test "x$ac_cv_lib_gmp___gmpf_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBGMP 1
-_ACEOF
- LIBS="-lgmp $LIBS"
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: skipping presence test for the library $LC_SET_FLAGS_dep" >&5
-$as_echo "$as_me: skipping presence test for the library $LC_SET_FLAGS_dep" >&6;}
- LC_MERGE_FLAGS_list="-l$LC_SET_FLAGS_dep"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="-l$LC_SET_FLAGS_dep"
- #pop the old list
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
+ fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -6292,84 +5839,74 @@ fi
fi
+ done
+ LIBS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
+
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
+ LIBS="$LC_PREPEND_LIST_flag $LIBS"
+ done
+ unset ${!LC_PREPEND_LIST_*}
+
+ else while [ "$LC_MERGE_FLAGS_list" ]
+ do
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
- done
- # append new list
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+if ${LIBS+:} false; then :
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ case " $LIBS " in #(
+ *" $LC_MERGE_FLAGS_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } ;; #(
*) :
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
+ (: LIBS="$LIBS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -6378,9 +5915,9 @@ esac
else
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ LIBS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
+ (: LIBS="$LIBS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -6389,145 +5926,30 @@ fi
fi
+ done
+ fi
+ unset ${!LC_MERGE_FLAGS_*}
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
+ if test -n "$LNSTATIC"
+ then
+ if [[ "-static" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then CFLAGS="$CFLAGS -static"
else
-if ${LIBS+:} false; then :
+if ${CFLAGS+:} false; then :
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ case " $CFLAGS " in #(
+ *" -static "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -static"; } >&5
+ (: CFLAGS already contains -static) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } ;; #(
*) :
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
+ as_fn_append CFLAGS " -static"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
+ (: CFLAGS="$CFLAGS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -6536,9 +5958,9 @@ esac
else
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
+ CFLAGS=-static
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
+ (: CFLAGS="$CFLAGS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -6547,94 +5969,24 @@ fi
fi
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-;;
-esac
-
-
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_dep # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_dep=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_dep" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_dep})
- fi
-
- LC_SET_FLAGS_dep=$(echo $LC_SET_FLAGS_dep) # normalize whitespaces
- LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep//\/\//\/} # normalize path separator
-
- if [[ "$LC_SET_FLAGS_dep" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_dep=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- # the dependency lib
- done
-
- LC_MERGE_FLAGS_list="-l$LC_SET_FLAGS_lib"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="-l$LC_SET_FLAGS_lib"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ if [[ "-static" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then CXXFLAGS="$CXXFLAGS -static"
else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+if ${CXXFLAGS+:} false; then :
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ case " $CXXFLAGS " in #(
+ *" -static "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -static"; } >&5
+ (: CXXFLAGS already contains -static) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } ;; #(
*) :
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ as_fn_append CXXFLAGS " -static"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
+ (: CXXFLAGS="$CXXFLAGS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -6643,9 +5995,9 @@ esac
else
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ CXXFLAGS=-static
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
+ (: CXXFLAGS="$CXXFLAGS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -6654,346 +6006,88 @@ fi
fi
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
+ unset g_success
+ ac_fn_cxx_check_header_mongrel "$LINENO" "gh.h" "ac_cv_header_gh_h" "$ac_includes_default"
+if test "x$ac_cv_header_gh_h" = xyes; then :
+ as_ac_Header=`$as_echo "ac_cv_header_lib$GUILE_LIB.h" | $as_tr_sh`
+ac_fn_cxx_check_header_mongrel "$LINENO" "lib$GUILE_LIB.h" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- done
- # append new list
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Guile linking" >&5
+$as_echo_n "checking Guile linking... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ /* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+ char gh_scm2newstr ();
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+int
+main ()
+{
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ return gh_scm2newstr ();
- unset ${!LC_GETPOP_FLAG_*}
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ g_success=1
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking Guile DOTS linking" >&5
+$as_echo_n "checking Guile DOTS linking... " >&6; }
+ if test "$cross_compiling" = yes; then :
+ { { $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 run test program while cross compiling
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+#include
+#include
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+typedef SCM (*FN)(...);
-else
+static SCM identity (SCM x) { return x; }
+void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+int
+main ()
+{
-fi
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_run "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
- fi
+$as_echo "#define DOTS_OK 1" >>confdefs.h
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${LIBS+:} false; then :
-
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
-
-
- unset g_success
- ac_fn_cxx_check_header_mongrel "$LINENO" "gh.h" "ac_cv_header_gh_h" "$ac_includes_default"
-if test "x$ac_cv_header_gh_h" = xyes; then :
-
- as_ac_Header=`$as_echo "ac_cv_header_lib$GUILE_LIB.h" | $as_tr_sh`
-ac_fn_cxx_check_header_mongrel "$LINENO" "lib$GUILE_LIB.h" "$as_ac_Header" "$ac_includes_default"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Guile linking" >&5
-$as_echo_n "checking Guile linking... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gh_scm2newstr ();
-
-int
-main ()
-{
-
- return gh_scm2newstr ();
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- g_success=1
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Guile DOTS linking" >&5
-$as_echo_n "checking Guile DOTS linking... " >&6; }
- if test "$cross_compiling" = yes; then :
- { { $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 run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-#include
-#include
-
-typedef SCM (*FN)(...);
-
-static SCM identity (SCM x) { return x; }
-void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define DOTS_OK 1" >>confdefs.h
-
-
-
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-# LC_MERGE_FLAGS([-fpermissive],[CXXFLAGS])
-# LC_RUN_IFELSE([Guile DOTS with -fpermissive], [LM_GUILE_DOTS],[
-# LC_MERGE_FLAGS([-fpermissive],[GUILE_CXXFLAGS])
-# AC_DEFINE(DOTS_OK, 1, [Defined if ...-style argument passing works])])
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+# LC_MERGE_FLAGS([-fpermissive],[CXXFLAGS])
+# LC_RUN_IFELSE([Guile DOTS with -fpermissive], [LM_GUILE_DOTS],[
+# LC_MERGE_FLAGS([-fpermissive],[GUILE_CXXFLAGS])
+# AC_DEFINE(DOTS_OK, 1, [Defined if ...-style argument passing works])])
fi
@@ -7094,46 +6188,56 @@ fi
- if [ -z "" -a -n "$SEMISTATIC" ]
- then GUILE_LIBS="$SEMISTATIC $GUILE_LIBS $SEMIDYNAMIC"
- fi
-
+ for LC_COMBINE_FLAGS_lib in
+ do
+ unset STRIP_ARG_memo
+ if test "$GUILE_LIBS" = "-l$LC_COMBINE_FLAGS_lib"
+ then GUILE_LIBS=
+ else while test "$GUILE_LIBS" != "$STRIP_ARG_memo"
+ do STRIP_ARG_memo="$GUILE_LIBS"
+ GUILE_LIBS="${GUILE_LIBS/#-l$LC_COMBINE_FLAGS_lib[[:space:]]/}" # at the beginning
+ GUILE_LIBS="${GUILE_LIBS/%[[:space:]]-l$LC_COMBINE_FLAGS_lib/}" # at the end
+ GUILE_LIBS="${GUILE_LIBS//[[:space:]]-l$LC_COMBINE_FLAGS_lib[[:space:]]/ }" # all in the middle no consecutive
+ done
+ fi
+ GUILE_LIBS=$(echo $GUILE_LIBS) # wipe extra blank if any
+ unset ${!STRIP_ARG_*}
- LC_MERGE_FLAGS_list="$GUILE_LDFLAGS"
- if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
+ LC_COMBINE_FLAGS_libs="$LC_COMBINE_FLAGS_libs -l$LC_COMBINE_FLAGS_lib"
+ done
+ if test -n "$GUILE_LIBS"
then
- LC_PREPEND_LIST_list="$GUILE_LDFLAGS"
+ LC_MERGE_FLAGS_list="$LNDYNAMIC"
+ if [[ "GUILE_LIBS" =~ $(echo "(^|_)LIBS") ]]
+ then
+ LC_PREPEND_LIST_list="$LNDYNAMIC"
#pop the old list
+ while [ "$GUILE_LIBS" ]
+ do
+
+ [[ "$GUILE_LIBS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && GUILE_LIBS=${BASH_REMATCH[1]}
+ [[ "$GUILE_LIBS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && GUILE_LIBS=${BASH_REMATCH[1]}
+# transform \\ in \
+ GUILE_LIBS=${GUILE_LIBS//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${GUILE_LIBS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$GUILE_LIBS"
+ then GUILE_LIBS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; GUILE_LIBS=${GUILE_LIBS%$LC_PREPEND_LIST_flag} # remove flag
+ fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -7170,67 +6274,34 @@ fi
fi
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
fi
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -7267,145 +6338,74 @@ fi
fi
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
done
- LDFLAGS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ GUILE_LIBS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
- unset ${!LC_GETPOP_FLAG_*}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
- while [[ $LC_PREPEND_LIST_flag ]]
- do LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
+ GUILE_LIBS="$LC_PREPEND_LIST_flag $GUILE_LIBS"
done
unset ${!LC_PREPEND_LIST_*}
else while [ "$LC_MERGE_FLAGS_list" ]
do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
+
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
+
+
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
+ then GUILE_LIBS="$GUILE_LIBS $LC_MERGE_FLAGS_flag"
else
-if ${LDFLAGS+:} false; then :
+if ${GUILE_LIBS+:} false; then :
- case " $LDFLAGS " in #(
+ case " $GUILE_LIBS " in #(
*" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : GUILE_LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: GUILE_LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } ;; #(
*) :
- as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
+ as_fn_append GUILE_LIBS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : GUILE_LIBS=\"\$GUILE_LIBS\""; } >&5
+ (: GUILE_LIBS="$GUILE_LIBS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -7414,9 +6414,9 @@ esac
else
- LDFLAGS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
+ GUILE_LIBS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : GUILE_LIBS=\"\$GUILE_LIBS\""; } >&5
+ (: GUILE_LIBS="$GUILE_LIBS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -7429,41 +6429,40 @@ fi
fi
unset ${!LC_MERGE_FLAGS_*}
- LC_MERGE_FLAGS_list="$GUILE_LIBS"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
+ fi
+ if test -n ""
then
- LC_PREPEND_LIST_list="$GUILE_LIBS"
+ LC_MERGE_FLAGS_list="$LNSTATIC $LC_COMBINE_FLAGS_libs"
+ if [[ "GUILE_LIBS" =~ $(echo "(^|_)LIBS") ]]
+ then
+ LC_PREPEND_LIST_list="$LNSTATIC $LC_COMBINE_FLAGS_libs"
#pop the old list
+ while [ "$GUILE_LIBS" ]
+ do
+
+ [[ "$GUILE_LIBS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && GUILE_LIBS=${BASH_REMATCH[1]}
+ [[ "$GUILE_LIBS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && GUILE_LIBS=${BASH_REMATCH[1]}
+# transform \\ in \
+ GUILE_LIBS=${GUILE_LIBS//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${GUILE_LIBS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$GUILE_LIBS"
+ then GUILE_LIBS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; GUILE_LIBS=${GUILE_LIBS%$LC_PREPEND_LIST_flag} # remove flag
+ fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -7500,67 +6499,34 @@ fi
fi
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
fi
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -7597,145 +6563,148 @@ fi
fi
+ done
+ GUILE_LIBS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
+
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
+ GUILE_LIBS="$LC_PREPEND_LIST_flag $GUILE_LIBS"
+ done
+ unset ${!LC_PREPEND_LIST_*}
+ else while [ "$LC_MERGE_FLAGS_list" ]
+ do
- done
- LIBS=
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then GUILE_LIBS="$GUILE_LIBS $LC_MERGE_FLAGS_flag"
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+if ${GUILE_LIBS+:} false; then :
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ case " $GUILE_LIBS " in #(
+ *" $LC_MERGE_FLAGS_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : GUILE_LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: GUILE_LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
+
+ as_fn_append GUILE_LIBS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : GUILE_LIBS=\"\$GUILE_LIBS\""; } >&5
+ (: GUILE_LIBS="$GUILE_LIBS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
+
+else
+
+ GUILE_LIBS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : GUILE_LIBS=\"\$GUILE_LIBS\""; } >&5
+ (: GUILE_LIBS="$GUILE_LIBS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+
+fi
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ done
fi
+ unset ${!LC_MERGE_FLAGS_*}
- unset ${!LC_GETPOP_FLAG_*}
+ fi
- done
- unset ${!LC_PREPEND_LIST_*}
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
+ LC_MERGE_FLAGS_list="$GUILE_LDFLAGS"
+ if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
+ then
+ LC_PREPEND_LIST_list="$GUILE_LDFLAGS"
+ #pop the old list
+ while [ "$LDFLAGS" ]
+ do
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
+ [[ "$LDFLAGS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LDFLAGS=${BASH_REMATCH[1]}
+ [[ "$LDFLAGS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LDFLAGS=${BASH_REMATCH[1]}
+# transform \\ in \
+ LDFLAGS=${LDFLAGS//\/\//\/}
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ LC_PREPEND_LIST_flag=${LDFLAGS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LDFLAGS"
+ then LDFLAGS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LDFLAGS=${LDFLAGS%$LC_PREPEND_LIST_flag} # remove flag
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
+
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
+
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- unset ${!LC_GETPOP_FLAG_*}
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
-if ${LIBS+:} false; then :
+if ${LC_PREPEND_LIST_nlist+:} false; then :
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } ;; #(
*) :
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -7744,9 +6713,9 @@ esac
else
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -7755,87 +6724,439 @@ fi
fi
- done
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
+
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
fi
- unset ${!LC_MERGE_FLAGS_*}
- unset ${!LC_COMBINE_FLAGS_*}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
- GUILE_CXX=$GUILE_CXXFLAGS
- GUILE_CPP=$GUILE_CPPFLAGS
- if [[ $enable_dumpflags =~ (^|[[:space:]])GUILE($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: GUILE_CFLAGS:$GUILE_CFLAGS" >&5
-$as_echo "$as_me: GUILE_CFLAGS:$GUILE_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: GUILE_CXXFLAGS:$GUILE_CXXFLAGS" >&5
-$as_echo "$as_me: GUILE_CXXFLAGS:$GUILE_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: GUILE_CPPFLAGS:$GUILE_CPPFLAGS" >&5
-$as_echo "$as_me: GUILE_CPPFLAGS:$GUILE_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: GUILE_LIBS:$GUILE_LIBS" >&5
-$as_echo "$as_me: GUILE_LIBS:$GUILE_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: GUILE_LDFLAGS:$GUILE_LDFLAGS" >&5
-$as_echo "$as_me: GUILE_LDFLAGS:$GUILE_LDFLAGS" >&6;}
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ else
+if ${LC_PREPEND_LIST_nlist+:} false; then :
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
- fi
-# adaptation layer remove when finished
- GUILE_CFLAGS="$GUILE_CXXFLAGS $GUILE_CPPFLAGS"
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
- GUILE_LDFLAGS=""
+else
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+fi
+ fi
-#--------------------------------------------------------------------
-# Checks for standard functionality
-#--------------------------------------------------------------------
+ done
+ LDFLAGS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
- CFLAGS__ax_save_flags=$CFLAGS
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
- CPPFLAGS__ax_save_flags=$CPPFLAGS
+ LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
+ done
+ unset ${!LC_PREPEND_LIST_*}
+ else while [ "$LC_MERGE_FLAGS_list" ]
+ do
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
- CXXFLAGS__ax_save_flags=$CXXFLAGS
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
- LDFLAGS__ax_save_flags=$LDFLAGS
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
- LIBS__ax_save_flags=$LIBS
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
+ else
+if ${LDFLAGS+:} false; then :
+ case " $LDFLAGS " in #(
+ *" $LC_MERGE_FLAGS_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
+ as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
+ (: LDFLAGS="$LDFLAGS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
- OBJCFLAGS__ax_save_flags=$OBJCFLAGS
+else
+ LDFLAGS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
+ (: LDFLAGS="$LDFLAGS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+fi
- OBJCXXFLAGS__ax_save_flags=$OBJCXXFLAGS
+ fi
+ done
+ fi
+ unset ${!LC_MERGE_FLAGS_*}
+ LC_MERGE_FLAGS_list="$GUILE_LIBS"
+ if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
+ then
+ LC_PREPEND_LIST_list="$GUILE_LIBS"
+ #pop the old list
+ while [ "$LIBS" ]
+ do
+ [[ "$LIBS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LIBS=${BASH_REMATCH[1]}
+ [[ "$LIBS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LIBS=${BASH_REMATCH[1]}
+# transform \\ in \
+ LIBS=${LIBS//\/\//\/}
+ LC_PREPEND_LIST_flag=${LIBS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LIBS"
+ then LIBS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LIBS=${LIBS%$LC_PREPEND_LIST_flag} # remove flag
+ fi
- unset CFLAGS;unset CXXFLAGS;unset CPPFLAGS;unset LDFLAGS;unset LIBS;
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
-$as_echo_n "checking for X... " >&6; }
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
-# Check whether --with-x was given.
-if test "${with_x+set}" = set; then :
- withval=$with_x;
-fi
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
+
+
+
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ else
+if ${LC_PREPEND_LIST_nlist+:} false; then :
+
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
+
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
+
+else
+
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+
+fi
+
+ fi
+
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
+
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
+ fi
+
+
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
+
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
+
+
+
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ else
+if ${LC_PREPEND_LIST_nlist+:} false; then :
+
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
+
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
+
+else
+
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+
+fi
+
+ fi
+
+ done
+ LIBS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
+
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
+
+
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
+
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
+
+
+ LIBS="$LC_PREPEND_LIST_flag $LIBS"
+ done
+ unset ${!LC_PREPEND_LIST_*}
+
+ else while [ "$LC_MERGE_FLAGS_list" ]
+ do
+
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
+
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
+
+
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
+
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
+
+
+
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
+ else
+if ${LIBS+:} false; then :
+
+ case " $LIBS " in #(
+ *" $LC_MERGE_FLAGS_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
+
+ as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
+ (: LIBS="$LIBS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
+
+else
+
+ LIBS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
+ (: LIBS="$LIBS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+
+fi
+
+ fi
+
+ done
+ fi
+ unset ${!LC_MERGE_FLAGS_*}
+
+
+ unset ${!LC_COMBINE_FLAGS_*}
+
+
+ GUILE_CXX=$GUILE_CXXFLAGS
+
+ GUILE_CPP=$GUILE_CPPFLAGS
+
+
+
+#--------------------------------------------------------------------
+# Checks for standard functionality
+#--------------------------------------------------------------------
+
+
+
+
+ CFLAGS__ax_save_flags=$CFLAGS
+
+
+
+ CPPFLAGS__ax_save_flags=$CPPFLAGS
+
+
+
+ CXXFLAGS__ax_save_flags=$CXXFLAGS
+
+
+
+ LDFLAGS__ax_save_flags=$LDFLAGS
+
+
+
+ LIBS__ax_save_flags=$LIBS
+
+
+
+ OBJCFLAGS__ax_save_flags=$OBJCFLAGS
+
+
+
+ OBJCXXFLAGS__ax_save_flags=$OBJCXXFLAGS
+
+
+
+
+
+ unset CFLAGS;unset CXXFLAGS;unset CPPFLAGS;unset LDFLAGS;unset LIBS;
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
+$as_echo_n "checking for X... " >&6; }
+
+
+# Check whether --with-x was given.
+if test "${with_x+set}" = set; then :
+ withval=$with_x;
+fi
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then
@@ -8085,36 +7406,35 @@ done
LC_SCATTER_FLAGS_list="-I$x_includes -L$x_libraries -lXext -lX11"
+ while test -n "$LC_SCATTER_FLAGS_list" ;
+ do
+
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
+ [[ "$LC_SCATTER_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_SCATTER_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_SCATTER_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_SCATTER_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list//\/\//\/}
+
+ LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_list%% -*} # get flag
+ LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#*$LC_SCATTER_FLAGS_flag} # remove flag
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
+
+ [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_SCATTER_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_SCATTER_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/}
if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while test -n "$LC_SCATTER_FLAGS_flag"
- do
+ [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_SCATTER_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_SCATTER_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/}
+
case "$LC_SCATTER_FLAGS_flag" in
-l*)
if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
@@ -8263,8 +7583,7 @@ else
fi
fi
-;;
- -Wl,-F*)
+
if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then X11_LDFLAGS="$X11_LDFLAGS $LC_SCATTER_FLAGS_flag"
else
@@ -8381,34 +7700,6 @@ fi
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&5
$as_echo "$as_me: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&2;};;
esac
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
-
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
done
unset ${!LC_SCATTER_FLAGS_*}
@@ -8417,68 +7708,57 @@ $as_echo "$as_me: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&2;};;
X11_CPP=$X11_CPPFLAGS
- if [[ $enable_dumpflags =~ (^|[[:space:]])X11($|[[:space:]]) ]]
+
+ for LC_COMBINE_FLAGS_lib in
+ do
+ unset STRIP_ARG_memo
+ if test "$X11_LIBS" = "-l$LC_COMBINE_FLAGS_lib"
+ then X11_LIBS=
+ else while test "$X11_LIBS" != "$STRIP_ARG_memo"
+ do STRIP_ARG_memo="$X11_LIBS"
+ X11_LIBS="${X11_LIBS/#-l$LC_COMBINE_FLAGS_lib[[:space:]]/}" # at the beginning
+ X11_LIBS="${X11_LIBS/%[[:space:]]-l$LC_COMBINE_FLAGS_lib/}" # at the end
+ X11_LIBS="${X11_LIBS//[[:space:]]-l$LC_COMBINE_FLAGS_lib[[:space:]]/ }" # all in the middle no consecutive
+ done
+ fi
+ X11_LIBS=$(echo $X11_LIBS) # wipe extra blank if any
+ unset ${!STRIP_ARG_*}
+
+ LC_COMBINE_FLAGS_libs="$LC_COMBINE_FLAGS_libs -l$LC_COMBINE_FLAGS_lib"
+ done
+ if test -n "$X11_LIBS"
then
- { $as_echo "$as_me:${as_lineno-$LINENO}: X11_CFLAGS:$X11_CFLAGS" >&5
-$as_echo "$as_me: X11_CFLAGS:$X11_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: X11_CXXFLAGS:$X11_CXXFLAGS" >&5
-$as_echo "$as_me: X11_CXXFLAGS:$X11_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: X11_CPPFLAGS:$X11_CPPFLAGS" >&5
-$as_echo "$as_me: X11_CPPFLAGS:$X11_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: X11_LIBS:$X11_LIBS" >&5
-$as_echo "$as_me: X11_LIBS:$X11_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: X11_LDFLAGS:$X11_LDFLAGS" >&5
-$as_echo "$as_me: X11_LDFLAGS:$X11_LDFLAGS" >&6;}
+ LC_MERGE_FLAGS_list="$LNDYNAMIC"
+ if [[ "X11_LIBS" =~ $(echo "(^|_)LIBS") ]]
+ then
+ LC_PREPEND_LIST_list="$LNDYNAMIC"
+ #pop the old list
+ while [ "$X11_LIBS" ]
+ do
+ [[ "$X11_LIBS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && X11_LIBS=${BASH_REMATCH[1]}
+ [[ "$X11_LIBS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && X11_LIBS=${BASH_REMATCH[1]}
+# transform \\ in \
+ X11_LIBS=${X11_LIBS//\/\//\/}
+ LC_PREPEND_LIST_flag=${X11_LIBS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$X11_LIBS"
+ then X11_LIBS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; X11_LIBS=${X11_LIBS%$LC_PREPEND_LIST_flag} # remove flag
fi
-# adaptation layer remove when finished
- X11_CFLAGS="$X11_CXXFLAGS $X11_CPPFLAGS"
-
- X11_LDFLAGS=""
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
- if [ -z "" -a -n "$SEMISTATIC" ]
- then X11_LIBS="$SEMISTATIC $X11_LIBS $SEMIDYNAMIC"
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- LC_MERGE_FLAGS_list="$X11_LDFLAGS"
- if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$X11_LDFLAGS"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -8515,67 +7795,34 @@ fi
fi
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
fi
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -8612,145 +7859,74 @@ fi
fi
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
done
- LDFLAGS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ X11_LIBS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
- unset ${!LC_GETPOP_FLAG_*}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
- while [[ $LC_PREPEND_LIST_flag ]]
- do LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
+ X11_LIBS="$LC_PREPEND_LIST_flag $X11_LIBS"
done
unset ${!LC_PREPEND_LIST_*}
else while [ "$LC_MERGE_FLAGS_list" ]
do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
+
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
+
+
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
+ then X11_LIBS="$X11_LIBS $LC_MERGE_FLAGS_flag"
else
-if ${LDFLAGS+:} false; then :
+if ${X11_LIBS+:} false; then :
- case " $LDFLAGS " in #(
+ case " $X11_LIBS " in #(
*" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : X11_LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: X11_LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } ;; #(
*) :
- as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
+ as_fn_append X11_LIBS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : X11_LIBS=\"\$X11_LIBS\""; } >&5
+ (: X11_LIBS="$X11_LIBS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -8759,9 +7935,9 @@ esac
else
- LDFLAGS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
+ X11_LIBS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : X11_LIBS=\"\$X11_LIBS\""; } >&5
+ (: X11_LIBS="$X11_LIBS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -8774,41 +7950,40 @@ fi
fi
unset ${!LC_MERGE_FLAGS_*}
- LC_MERGE_FLAGS_list="$X11_LIBS"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
+ fi
+ if test -n ""
then
- LC_PREPEND_LIST_list="$X11_LIBS"
+ LC_MERGE_FLAGS_list="$LNSTATIC $LC_COMBINE_FLAGS_libs"
+ if [[ "X11_LIBS" =~ $(echo "(^|_)LIBS") ]]
+ then
+ LC_PREPEND_LIST_list="$LNSTATIC $LC_COMBINE_FLAGS_libs"
#pop the old list
+ while [ "$X11_LIBS" ]
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ [[ "$X11_LIBS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && X11_LIBS=${BASH_REMATCH[1]}
+ [[ "$X11_LIBS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && X11_LIBS=${BASH_REMATCH[1]}
+# transform \\ in \
+ X11_LIBS=${X11_LIBS//\/\//\/}
+
+ LC_PREPEND_LIST_flag=${X11_LIBS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$X11_LIBS"
+ then X11_LIBS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; X11_LIBS=${X11_LIBS%$LC_PREPEND_LIST_flag} # remove flag
+ fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -8845,67 +8020,34 @@ fi
fi
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
fi
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
else
@@ -8942,145 +8084,74 @@ fi
fi
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
done
- LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ X11_LIBS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
- unset ${!LC_GETPOP_FLAG_*}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
+ X11_LIBS="$LC_PREPEND_LIST_flag $X11_LIBS"
done
unset ${!LC_PREPEND_LIST_*}
else while [ "$LC_MERGE_FLAGS_list" ]
do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
+
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
+
+
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
+ then X11_LIBS="$X11_LIBS $LC_MERGE_FLAGS_flag"
else
-if ${LIBS+:} false; then :
+if ${X11_LIBS+:} false; then :
- case " $LIBS " in #(
+ case " $X11_LIBS " in #(
*" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : X11_LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: X11_LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } ;; #(
*) :
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
+ as_fn_append X11_LIBS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : X11_LIBS=\"\$X11_LIBS\""; } >&5
+ (: X11_LIBS="$X11_LIBS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -9089,9 +8160,9 @@ esac
else
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
+ X11_LIBS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : X11_LIBS=\"\$X11_LIBS\""; } >&5
+ (: X11_LIBS="$X11_LIBS") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
@@ -9104,1926 +8175,2367 @@ fi
fi
unset ${!LC_MERGE_FLAGS_*}
+ fi
- unset ${!LC_COMBINE_FLAGS_*}
+ LC_MERGE_FLAGS_list="$X11_LDFLAGS"
+ if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
+ then
+ LC_PREPEND_LIST_list="$X11_LDFLAGS"
+ #pop the old list
+ while [ "$LDFLAGS" ]
+ do
+
+ [[ "$LDFLAGS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LDFLAGS=${BASH_REMATCH[1]}
+ [[ "$LDFLAGS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LDFLAGS=${BASH_REMATCH[1]}
+# transform \\ in \
+ LDFLAGS=${LDFLAGS//\/\//\/}
-ac_fn_cxx_check_type "$LINENO" "FILE" "ac_cv_type_FILE" "$ac_includes_default"
-if test "x$ac_cv_type_FILE" = xyes; then :
+ LC_PREPEND_LIST_flag=${LDFLAGS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LDFLAGS"
+ then LDFLAGS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LDFLAGS=${LDFLAGS%$LC_PREPEND_LIST_flag} # remove flag
+ fi
-cat >>confdefs.h <<_ACEOF
-#define HAVE_FILE 1
-_ACEOF
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
-fi
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
-ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
-if test "x$ac_cv_type_intptr_t" = xyes; then :
-cat >>confdefs.h <<_ACEOF
-#define HAVE_INTPTR_T 1
-_ACEOF
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ else
+if ${LC_PREPEND_LIST_nlist+:} false; then :
-fi
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
-ac_fn_cxx_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
-if test "x$ac_cv_type_time_t" = xyes; then :
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
-cat >>confdefs.h <<_ACEOF
-#define HAVE_TIME_T 1
-_ACEOF
+else
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
-$as_echo_n "checking for X... " >&6; }
+ fi
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
-# Check whether --with-x was given.
-if test "${with_x+set}" = set; then :
- withval=$with_x;
-fi
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
-# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
-if test "x$with_x" = xno; then
- # The user explicitly disabled X.
- have_x=disabled
-else
- case $x_includes,$x_libraries in #(
- *\'*) 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
- # One or both of the vars are not set, and there is no cached value.
-ac_x_includes=no ac_x_libraries=no
-rm -f -r conftest.dir
-if mkdir conftest.dir; then
- cd conftest.dir
- cat >Imakefile <<'_ACEOF'
-incroot:
- @echo incroot='${INCROOT}'
-usrlibdir:
- @echo usrlibdir='${USRLIBDIR}'
-libdir:
- @echo libdir='${LIBDIR}'
-_ACEOF
- if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
- # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
- for ac_var in incroot usrlibdir libdir; do
- eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
- done
- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
- for ac_extension in a so sl dylib la dll; do
- if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
- test -f "$ac_im_libdir/libX11.$ac_extension"; then
- ac_im_usrlibdir=$ac_im_libdir; break
- fi
- done
- # Screen out bogus values from the imake configuration. They are
- # bogus both because they are the default anyway, and because
- # using them would break gcc on systems where it needs fixed includes.
- case $ac_im_incroot in
- /usr/include) ac_x_includes= ;;
- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
- esac
- case $ac_im_usrlibdir in
- /usr/lib | /usr/lib64 | /lib | /lib64) ;;
- *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
- esac
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
fi
- cd ..
- rm -f -r conftest.dir
-fi
-# Standard set of common directories for X headers.
-# Check X11 before X11Rn because it is often a symlink to the current release.
-ac_x_header_dirs='
-/usr/X11/include
-/usr/X11R7/include
-/usr/X11R6/include
-/usr/X11R5/include
-/usr/X11R4/include
-/usr/include/X11
-/usr/include/X11R7
-/usr/include/X11R6
-/usr/include/X11R5
-/usr/include/X11R4
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
-/usr/local/X11/include
-/usr/local/X11R7/include
-/usr/local/X11R6/include
-/usr/local/X11R5/include
-/usr/local/X11R4/include
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
-/usr/local/include/X11
-/usr/local/include/X11R7
-/usr/local/include/X11R6
-/usr/local/include/X11R5
-/usr/local/include/X11R4
-/usr/X386/include
-/usr/x386/include
-/usr/XFree86/include/X11
-/usr/include
-/usr/local/include
-/usr/unsupported/include
-/usr/athena/include
-/usr/local/x11r5/include
-/usr/lpp/Xamples/include
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ else
+if ${LC_PREPEND_LIST_nlist+:} false; then :
-/usr/openwin/include
-/usr/openwin/share/include'
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
+
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
-if test "$ac_x_includes" = no; then
- # Guess where to find include files, by looking for Xlib.h.
- # First, try using that file with no special directory specified.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include
-_ACEOF
-if ac_fn_cxx_try_cpp "$LINENO"; then :
- # We can compile using X headers with no special include directory.
-ac_x_includes=
else
- for ac_dir in $ac_x_header_dirs; do
- if test -r "$ac_dir/X11/Xlib.h"; then
- ac_x_includes=$ac_dir
- break
- fi
-done
+
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+
fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-fi # $ac_x_includes = no
-if test "$ac_x_libraries" = no; then
- # Check for the libraries.
- # See if we find them without any special options.
- # Don't add to $LIBS permanently.
- ac_save_LIBS=$LIBS
- LIBS="-lX11 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include
-int
-main ()
-{
-XrmInitialize ()
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- LIBS=$ac_save_LIBS
-# We can link X programs with no special library path.
-ac_x_libraries=
-else
- LIBS=$ac_save_LIBS
-for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
-do
- # Don't even attempt the hair of trying to link an X program!
- for ac_extension in a so sl dylib la dll; do
- if test -r "$ac_dir/libX11.$ac_extension"; then
- ac_x_libraries=$ac_dir
- break 2
- fi
+ fi
+
done
-done
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi # $ac_x_libraries = no
+ LDFLAGS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
-case $ac_x_includes,$ac_x_libraries in #(
- no,* | *,no | *\'*)
- # Didn't find X, or a directory has "'" in its name.
- ac_cv_have_x="have_x=no";; #(
- *)
- # Record where we found X for the cache.
- ac_cv_have_x="have_x=yes\
- ac_x_includes='$ac_x_includes'\
- ac_x_libraries='$ac_x_libraries'"
-esac
-fi
-;; #(
- *) have_x=yes;;
- esac
- eval "$ac_cv_have_x"
-fi # $with_x != no
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
-if test "$have_x" != yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
-$as_echo "$have_x" >&6; }
- no_x=yes
-else
- # If each of the values was on the command line, it overrides each guess.
- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
- # Update the cache value to reflect the command line values.
- ac_cv_have_x="have_x=yes\
- ac_x_includes='$x_includes'\
- ac_x_libraries='$x_libraries'"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
-$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
-fi
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
-if test "$no_x" = yes; then
- # Not all programs may use this symbol, but it does not hurt to define it.
-$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
-else
- if test -n "$x_includes"; then
- X_CFLAGS="$X_CFLAGS -I$x_includes"
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- # It would also be nice to do this for all -L options, not just this one.
- if test -n "$x_libraries"; then
- X_LIBS="$X_LIBS -L$x_libraries"
- # For Solaris; some versions of Sun CC require a space after -R and
- # others require no space. Words are not sufficient . . . .
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
-$as_echo_n "checking whether -R must be followed by a space... " >&6; }
- ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
- ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
- ac_cxx_werror_flag=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-int
-main ()
-{
+ LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
+ done
+ unset ${!LC_PREPEND_LIST_*}
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- X_LIBS="$X_LIBS -R$x_libraries"
-else
- LIBS="$ac_xsave_LIBS -R $x_libraries"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ else while [ "$LC_MERGE_FLAGS_list" ]
+ do
-int
-main ()
-{
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- X_LIBS="$X_LIBS -R $x_libraries"
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
-$as_echo "neither works" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
- LIBS=$ac_xsave_LIBS
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
+
+
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
+
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- # Check for system-dependent libraries X programs must link with.
- # Do this before checking for the system-independent R6 libraries
- # (-lICE), since we may need -lsocket or whatever for X linking.
- if test "$ISC" = yes; then
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
+
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
else
- # Martyn Johnson says this is needed for Ultrix, if the X
- # libraries were built with DECnet support. And Karl Berry says
- # the Alpha needs dnet_stub (dnet does not exist).
- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+if ${LDFLAGS+:} false; then :
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char XOpenDisplay ();
-int
-main ()
-{
-return XOpenDisplay ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
+ case " $LDFLAGS " in #(
+ *" $LC_MERGE_FLAGS_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
-$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
-if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldnet $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
+ (: LDFLAGS="$LDFLAGS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dnet_ntoa ();
-int
-main ()
-{
-return dnet_ntoa ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_dnet_dnet_ntoa=yes
else
- ac_cv_lib_dnet_dnet_ntoa=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
-$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
-if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
-fi
- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
-$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
-if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldnet_stub $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ LDFLAGS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
+ (: LDFLAGS="$LDFLAGS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dnet_ntoa ();
-int
-main ()
-{
-return dnet_ntoa ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_dnet_stub_dnet_ntoa=yes
-else
- ac_cv_lib_dnet_stub_dnet_ntoa=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
-$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
-if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi
- fi
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS="$ac_xsave_LIBS"
+ fi
- # address@hidden says -lnsl (and -lsocket) are needed for his 386/AT,
- # to get the SysV transport functions.
- # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
- # needs -lnsl.
- # The nsl library prevents programs from opening the X display
- # on Irix 5.2, according to T.E. Dickey.
- # The functions gethostbyname, getservbyname, and inet_addr are
- # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
- ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
-if test "x$ac_cv_func_gethostbyname" = xyes; then :
+ done
+ fi
+ unset ${!LC_MERGE_FLAGS_*}
-fi
+ LC_MERGE_FLAGS_list="$X11_LIBS"
+ if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
+ then
+ LC_PREPEND_LIST_list="$X11_LIBS"
+ #pop the old list
+ while [ "$LIBS" ]
+ do
- if test $ac_cv_func_gethostbyname = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
-$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
-if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lnsl $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ [[ "$LIBS" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LIBS=${BASH_REMATCH[1]}
+ [[ "$LIBS" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LIBS=${BASH_REMATCH[1]}
+# transform \\ in \
+ LIBS=${LIBS//\/\//\/}
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char gethostbyname ();
-int
-main ()
-{
-return gethostbyname ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_nsl_gethostbyname=yes
-else
- ac_cv_lib_nsl_gethostbyname=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
-$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
-if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
-fi
+ LC_PREPEND_LIST_flag=${LIBS##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LIBS"
+ then LIBS=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LIBS=${LIBS%$LC_PREPEND_LIST_flag} # remove flag
+ fi
- if test $ac_cv_lib_nsl_gethostbyname = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
-$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
-if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lbsd $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char gethostbyname ();
-int
-main ()
-{
-return gethostbyname ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_bsd_gethostbyname=yes
-else
- ac_cv_lib_bsd_gethostbyname=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
-$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
-if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
-fi
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
- fi
- fi
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
- # address@hidden says without -lsocket,
- # socket/setsockopt and other routines are undefined under SCO ODT
- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
- # on later versions), says Simon Leinen: it contains gethostby*
- # variants that don't use the name server (or something). -lsocket
- # must be given before -lnsl if both are needed. We assume that
- # if connect needs -lnsl, so does gethostbyname.
- ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
-if test "x$ac_cv_func_connect" = xyes; then :
-fi
- if test $ac_cv_func_connect = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
-$as_echo_n "checking for connect in -lsocket... " >&6; }
-if ${ac_cv_lib_socket_connect+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ else
+if ${LC_PREPEND_LIST_nlist+:} false; then :
+
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
+
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char connect ();
-int
-main ()
-{
-return connect ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_socket_connect=yes
else
- ac_cv_lib_socket_connect=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
-$as_echo "$ac_cv_lib_socket_connect" >&6; }
-if test "x$ac_cv_lib_socket_connect" = xyes; then :
- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
+
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+
fi
- fi
+ fi
- # Guillermo Gomez says -lposix is necessary on A/UX.
- ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
-if test "x$ac_cv_func_remove" = xyes; then :
+ done
+ # append new list
+ while [ "$LC_PREPEND_LIST_list" ]
+ do
-fi
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list//\/\//\/}
- if test $ac_cv_func_remove = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
-$as_echo_n "checking for remove in -lposix... " >&6; }
-if ${ac_cv_lib_posix_remove+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lposix $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_list##* } # get flag
+ if test "$LC_PREPEND_LIST_flag" = "$LC_PREPEND_LIST_list"
+ then LC_PREPEND_LIST_list=
+ else LC_PREPEND_LIST_flag=" $LC_PREPEND_LIST_flag"; LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list%$LC_PREPEND_LIST_flag} # remove flag
+ fi
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char remove ();
-int
-main ()
-{
-return remove ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_posix_remove=yes
-else
- ac_cv_lib_posix_remove=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
-$as_echo "$ac_cv_lib_posix_remove" >&6; }
-if test "x$ac_cv_lib_posix_remove" = xyes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
-fi
- fi
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
- ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
-if test "x$ac_cv_func_shmat" = xyes; then :
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
-fi
- if test $ac_cv_func_shmat = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
-$as_echo_n "checking for shmat in -lipc... " >&6; }
-if ${ac_cv_lib_ipc_shmat+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lipc $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char shmat ();
-int
-main ()
-{
-return shmat ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_ipc_shmat=yes
-else
- ac_cv_lib_ipc_shmat=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
-$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
-if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
-fi
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ else
+if ${LC_PREPEND_LIST_nlist+:} false; then :
- fi
- fi
+ case " $LC_PREPEND_LIST_nlist " in #(
+ *" $LC_PREPEND_LIST_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
+ (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
- # Check for libraries that X11R6 Xt/Xaw programs need.
- ac_save_LDFLAGS=$LDFLAGS
- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
- # check for ICE first), but we must link in the order -lSM -lICE or
- # we get undefined symbols. So assume we have SM if we have ICE.
- # These have to be linked with before -lX11, unlike the other
- # libraries we check for below, so use a different variable.
- # John Interrante, Karl Berry
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
-$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
-if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lICE $X_EXTRA_LIBS $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char IceConnectionNumber ();
-int
-main ()
-{
-return IceConnectionNumber ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_ICE_IceConnectionNumber=yes
else
- ac_cv_lib_ICE_IceConnectionNumber=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
-$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
-if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
-fi
- LDFLAGS=$ac_save_LDFLAGS
+ LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
+ (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
fi
-for ac_header in pty.h util.h
-do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
+ fi
-fi
+ done
+ LIBS=
+ while [ "$LC_PREPEND_LIST_nlist" ]
+ do
-done
-
-for ac_func in gettimeofday
-do :
- ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
-if test "x$ac_cv_func_gettimeofday" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_GETTIMEOFDAY 1
-_ACEOF
-
-fi
-done
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_nlist" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_nlist=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist//\/\//\/}
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_nlist%% *} # get flag
+ LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#*$LC_PREPEND_LIST_flag} # remove flag
-#--------------------------------------------------------------------
-# Checks for dl library
-#--------------------------------------------------------------------
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
-$as_echo_n "checking for library containing dlopen... " >&6; }
-if ${ac_cv_search_dlopen+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+ [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_PREPEND_LIST_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/}
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen ();
-int
-main ()
-{
-return dlopen ();
- ;
- return 0;
-}
-_ACEOF
-for ac_lib in '' libdl libdld; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_search_dlopen=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_dlopen+:} false; then :
- break
-fi
-done
-if ${ac_cv_search_dlopen+:} false; then :
-else
- ac_cv_search_dlopen=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
-$as_echo "$ac_cv_search_dlopen" >&6; }
-ac_res=$ac_cv_search_dlopen
-if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
-$as_echo "#define TM_DYNAMIC_LINKING dlopen" >>confdefs.h
+ LIBS="$LC_PREPEND_LIST_flag $LIBS"
+ done
+ unset ${!LC_PREPEND_LIST_*}
-else
+ else while [ "$LC_MERGE_FLAGS_list" ]
+ do
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dld_link" >&5
-$as_echo_n "checking for library containing dld_link... " >&6; }
-if ${ac_cv_search_dld_link+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_list" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_list=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list//\/\//\/}
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dld_link ();
-int
-main ()
-{
-return dld_link ();
- ;
- return 0;
-}
-_ACEOF
-for ac_lib in '' libdl libdld; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_search_dld_link=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_dld_link+:} false; then :
- break
-fi
-done
-if ${ac_cv_search_dld_link+:} false; then :
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_list%% -*} # get flag
+ LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#*$LC_MERGE_FLAGS_flag} # remove flag
-else
- ac_cv_search_dld_link=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dld_link" >&5
-$as_echo "$ac_cv_search_dld_link" >&6; }
-ac_res=$ac_cv_search_dld_link
-if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
-$as_echo "#define TM_DYNAMIC_LINKING dld_link" >>confdefs.h
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^(.*[^[:space:]])[[:space:]]+$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+ [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[[:space:]]+([^[:space:]].*)$") ]] && LC_MERGE_FLAGS_flag=${BASH_REMATCH[1]}
+# transform \\ in \
+ LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/}
-else
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
+ then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
-$as_echo_n "checking for library containing shl_load... " >&6; }
-if ${ac_cv_search_shl_load+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char shl_load ();
-int
-main ()
-{
-return shl_load ();
- ;
- return 0;
-}
-_ACEOF
-for ac_lib in '' libdl libdld; do
- if test -z "$ac_lib"; then
- ac_res="none required"
+
+ if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
+ then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_search_shl_load=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_shl_load+:} false; then :
- break
-fi
-done
-if ${ac_cv_search_shl_load+:} false; then :
+if ${LIBS+:} false; then :
-else
- ac_cv_search_shl_load=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
-$as_echo "$ac_cv_search_shl_load" >&6; }
-ac_res=$ac_cv_search_shl_load
-if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+ case " $LIBS " in #(
+ *" $LC_MERGE_FLAGS_flag "*) :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
+ (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } ;; #(
+ *) :
-$as_echo "#define TM_DYNAMIC_LINKING shl_load" >>confdefs.h
+ as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
+ (: LIBS="$LIBS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ ;;
+esac
else
- echo configure: warning: dynamic linking using dlopen will not work
+ LIBS=$LC_MERGE_FLAGS_flag
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
+ (: LIBS="$LIBS") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
fi
+ fi
-fi
+ done
+ fi
+ unset ${!LC_MERGE_FLAGS_*}
-fi
+ unset ${!LC_COMBINE_FLAGS_*}
+ac_fn_cxx_check_type "$LINENO" "FILE" "ac_cv_type_FILE" "$ac_includes_default"
+if test "x$ac_cv_type_FILE" = xyes; then :
-#--------------------------------------------------------------------
-# Checks for iconv library
-#--------------------------------------------------------------------
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FILE 1
+_ACEOF
-# Check whether --with-iconv was given.
-if test "${with_iconv+set}" = set; then :
- withval=$with_iconv;
-else
- unset withval;
fi
+ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
+if test "x$ac_cv_type_intptr_t" = xyes; then :
-if [[ "$withval" != no ]]
-then
- LC_ICONV_TEMP=$(mktemp -t texmacs)
-
- LC_ICONV_PATH=$(echo ${LDFLAGS//\/lib/\/include})
-
-
- CFLAGS__ax_save_flags=$CFLAGS
-
-
-
- CPPFLAGS__ax_save_flags=$CPPFLAGS
-
-
+cat >>confdefs.h <<_ACEOF
+#define HAVE_INTPTR_T 1
+_ACEOF
- CXXFLAGS__ax_save_flags=$CXXFLAGS
+fi
+ac_fn_cxx_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
+if test "x$ac_cv_type_time_t" = xyes; then :
- LDFLAGS__ax_save_flags=$LDFLAGS
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TIME_T 1
+_ACEOF
+fi
- LIBS__ax_save_flags=$LIBS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
+$as_echo_n "checking for X... " >&6; }
+# Check whether --with-x was given.
+if test "${with_x+set}" = set; then :
+ withval=$with_x;
+fi
- OBJCFLAGS__ax_save_flags=$OBJCFLAGS
-
-
-
- OBJCXXFLAGS__ax_save_flags=$OBJCXXFLAGS
-
-
-
- CPPFLAGS="${LC_ICONV_PATH//-L/-I} -I$withval/include -I/opt/local/include -I/sw/include -MM -MF $LC_ICONV_TEMP"
-
+# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
+if test "x$with_x" = xno; then
+ # The user explicitly disabled X.
+ have_x=disabled
+else
+ case $x_includes,$x_libraries in #(
+ *\'*) 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
+ # One or both of the vars are not set, and there is no cached value.
+ac_x_includes=no ac_x_libraries=no
+rm -f -r conftest.dir
+if mkdir conftest.dir; then
+ cd conftest.dir
+ cat >Imakefile <<'_ACEOF'
+incroot:
+ @echo incroot='${INCROOT}'
+usrlibdir:
+ @echo usrlibdir='${USRLIBDIR}'
+libdir:
+ @echo libdir='${LIBDIR}'
+_ACEOF
+ if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
+ # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+ for ac_var in incroot usrlibdir libdir; do
+ eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
+ done
+ # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
+ for ac_extension in a so sl dylib la dll; do
+ if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
+ test -f "$ac_im_libdir/libX11.$ac_extension"; then
+ ac_im_usrlibdir=$ac_im_libdir; break
+ fi
+ done
+ # Screen out bogus values from the imake configuration. They are
+ # bogus both because they are the default anyway, and because
+ # using them would break gcc on systems where it needs fixed includes.
+ case $ac_im_incroot in
+ /usr/include) ac_x_includes= ;;
+ *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
+ esac
+ case $ac_im_usrlibdir in
+ /usr/lib | /usr/lib64 | /lib | /lib64) ;;
+ *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
+ esac
+ fi
+ cd ..
+ rm -f -r conftest.dir
+fi
+# Standard set of common directories for X headers.
+# Check X11 before X11Rn because it is often a symlink to the current release.
+ac_x_header_dirs='
+/usr/X11/include
+/usr/X11R7/include
+/usr/X11R6/include
+/usr/X11R5/include
+/usr/X11R4/include
- unset ICONV_CFLAGS;unset ICONV_CXXFLAGS;unset ICONV_CPPFLAGS;unset ICONV_LDFLAGS;unset ICONV_LIBS; # no previous iconv definition allowed
- ac_fn_cxx_check_header_preproc "$LINENO" "iconv.h" "ac_cv_header_iconv_h"
-if test "x$ac_cv_header_iconv_h" = xyes; then :
+/usr/include/X11
+/usr/include/X11R7
+/usr/include/X11R6
+/usr/include/X11R5
+/usr/include/X11R4
- LC_ICONV_DEPEND=$(<$LC_ICONV_TEMP)
- LC_ICONV_ICONV=${LC_ICONV_DEPEND%/include/iconv.h*}
- if [[ "$LC_ICONV_DEPEND" == "$LC_ICONV_ICONV" ]]
- then
+/usr/local/X11/include
+/usr/local/X11R7/include
+/usr/local/X11R6/include
+/usr/local/X11R5/include
+/usr/local/X11R4/include
- CFLAGS=$CFLAGS__ax_save_flags
+/usr/local/include/X11
+/usr/local/include/X11R7
+/usr/local/include/X11R6
+/usr/local/include/X11R5
+/usr/local/include/X11R4
+/usr/X386/include
+/usr/x386/include
+/usr/XFree86/include/X11
- CPPFLAGS=$CPPFLAGS__ax_save_flags
+/usr/include
+/usr/local/include
+/usr/unsupported/include
+/usr/athena/include
+/usr/local/x11r5/include
+/usr/lpp/Xamples/include
+/usr/openwin/include
+/usr/openwin/share/include'
- CXXFLAGS=$CXXFLAGS__ax_save_flags
+if test "$ac_x_includes" = no; then
+ # Guess where to find include files, by looking for Xlib.h.
+ # First, try using that file with no special directory specified.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"; then :
+ # We can compile using X headers with no special include directory.
+ac_x_includes=
+else
+ for ac_dir in $ac_x_header_dirs; do
+ if test -r "$ac_dir/X11/Xlib.h"; then
+ ac_x_includes=$ac_dir
+ break
+ fi
+done
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+fi # $ac_x_includes = no
+if test "$ac_x_libraries" = no; then
+ # Check for the libraries.
+ # See if we find them without any special options.
+ # Don't add to $LIBS permanently.
+ ac_save_LIBS=$LIBS
+ LIBS="-lX11 $LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include
+int
+main ()
+{
+XrmInitialize ()
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ LIBS=$ac_save_LIBS
+# We can link X programs with no special library path.
+ac_x_libraries=
+else
+ LIBS=$ac_save_LIBS
+for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
+do
+ # Don't even attempt the hair of trying to link an X program!
+ for ac_extension in a so sl dylib la dll; do
+ if test -r "$ac_dir/libX11.$ac_extension"; then
+ ac_x_libraries=$ac_dir
+ break 2
+ fi
+ done
+done
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi # $ac_x_libraries = no
- LDFLAGS=$LDFLAGS__ax_save_flags
+case $ac_x_includes,$ac_x_libraries in #(
+ no,* | *,no | *\'*)
+ # Didn't find X, or a directory has "'" in its name.
+ ac_cv_have_x="have_x=no";; #(
+ *)
+ # Record where we found X for the cache.
+ ac_cv_have_x="have_x=yes\
+ ac_x_includes='$ac_x_includes'\
+ ac_x_libraries='$ac_x_libraries'"
+esac
+fi
+;; #(
+ *) have_x=yes;;
+ esac
+ eval "$ac_cv_have_x"
+fi # $with_x != no
+if test "$have_x" != yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
+$as_echo "$have_x" >&6; }
+ no_x=yes
+else
+ # If each of the values was on the command line, it overrides each guess.
+ test "x$x_includes" = xNONE && x_includes=$ac_x_includes
+ test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
+ # Update the cache value to reflect the command line values.
+ ac_cv_have_x="have_x=yes\
+ ac_x_includes='$x_includes'\
+ ac_x_libraries='$x_libraries'"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
+$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
+fi
- LIBS=$LIBS__ax_save_flags
+if test "$no_x" = yes; then
+ # Not all programs may use this symbol, but it does not hurt to define it.
+$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
- OBJCFLAGS=$OBJCFLAGS__ax_save_flags
+ X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
+else
+ if test -n "$x_includes"; then
+ X_CFLAGS="$X_CFLAGS -I$x_includes"
+ fi
+ # It would also be nice to do this for all -L options, not just this one.
+ if test -n "$x_libraries"; then
+ X_LIBS="$X_LIBS -L$x_libraries"
+ # For Solaris; some versions of Sun CC require a space after -R and
+ # others require no space. Words are not sufficient . . . .
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
+$as_echo_n "checking whether -R must be followed by a space... " >&6; }
+ ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
+ ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
+ ac_cxx_werror_flag=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- OBJCXXFLAGS=$OBJCXXFLAGS__ax_save_flags
+int
+main ()
+{
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ X_LIBS="$X_LIBS -R$x_libraries"
+else
+ LIBS="$ac_xsave_LIBS -R $x_libraries"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int
+main ()
+{
- { $as_echo "$as_me:${as_lineno-$LINENO}: iconv found in default compiler location" >&5
-$as_echo "$as_me: iconv found in default compiler location" >&6;}
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ X_LIBS="$X_LIBS -R $x_libraries"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
+$as_echo "neither works" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
+ LIBS=$ac_xsave_LIBS
+ fi
- LC_MERGE_FLAGS_list="-liconv"
- if [[ "ICONV_LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="-liconv"
- #pop the old list
+ # Check for system-dependent libraries X programs must link with.
+ # Do this before checking for the system-independent R6 libraries
+ # (-lICE), since we may need -lsocket or whatever for X linking.
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $ICONV_LIBS)" # remove unnecessary spaces and add a heading space
- ICONV_LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$ICONV_LIBS" = "$LC_GETPOP_FLAG_1"
- then ICONV_LIBS=${ICONV_LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
+ if test "$ISC" = yes; then
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$ICONV_LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then ICONV_LIBS=$(echo $ICONV_LIBS)
- else ICONV_LIBS=$(echo $ICONV_LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ # Martyn Johnson says this is needed for Ultrix, if the X
+ # libraries were built with DECnet support. And Karl Berry says
+ # the Alpha needs dnet_stub (dnet does not exist).
+ ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XOpenDisplay ();
+int
+main ()
+{
+return XOpenDisplay ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
+$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
+if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldnet $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dnet_ntoa ();
+int
+main ()
+{
+return dnet_ntoa ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_dnet_dnet_ntoa=yes
+else
+ ac_cv_lib_dnet_dnet_ntoa=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
+$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
+if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi
- fi
+ if test $ac_cv_lib_dnet_dnet_ntoa = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
+$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
+if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldnet_stub $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dnet_ntoa ();
+int
+main ()
+{
+return dnet_ntoa ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_dnet_stub_dnet_ntoa=yes
+else
+ ac_cv_lib_dnet_stub_dnet_ntoa=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
+$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
+if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
+fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $ICONV_LIBS)" # remove unnecessary spaces and add a heading space
- ICONV_LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$ICONV_LIBS" = "$LC_GETPOP_FLAG_1"
- then ICONV_LIBS=${ICONV_LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$ICONV_LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then ICONV_LIBS=$(echo $ICONV_LIBS)
- else ICONV_LIBS=$(echo $ICONV_LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS="$ac_xsave_LIBS"
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ # address@hidden says -lnsl (and -lsocket) are needed for his 386/AT,
+ # to get the SysV transport functions.
+ # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
+ # needs -lnsl.
+ # The nsl library prevents programs from opening the X display
+ # on Irix 5.2, according to T.E. Dickey.
+ # The functions gethostbyname, getservbyname, and inet_addr are
+ # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
+ ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
+if test "x$ac_cv_func_gethostbyname" = xyes; then :
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ if test $ac_cv_func_gethostbyname = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
+$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
+if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lnsl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- unset ${!LC_GETPOP_FLAG_*}
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char gethostbyname ();
+int
+main ()
+{
+return gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_nsl_gethostbyname=yes
+else
+ ac_cv_lib_nsl_gethostbyname=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
+$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
+if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
+fi
+ if test $ac_cv_lib_nsl_gethostbyname = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
+$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
+if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lbsd $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- done
- # append new list
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char gethostbyname ();
+int
+main ()
+{
+return gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_bsd_gethostbyname=yes
+else
+ ac_cv_lib_bsd_gethostbyname=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
+$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
+if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
+fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
+ fi
fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ # address@hidden says without -lsocket,
+ # socket/setsockopt and other routines are undefined under SCO ODT
+ # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
+ # on later versions), says Simon Leinen: it contains gethostby*
+ # variants that don't use the name server (or something). -lsocket
+ # must be given before -lnsl if both are needed. We assume that
+ # if connect needs -lnsl, so does gethostbyname.
+ ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
+if test "x$ac_cv_func_connect" = xyes; then :
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+fi
+ if test $ac_cv_func_connect = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
+$as_echo_n "checking for connect in -lsocket... " >&6; }
+if ${ac_cv_lib_socket_connect+:} false; then :
+ $as_echo_n "(cached) " >&6
else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char connect ();
+int
+main ()
+{
+return connect ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_socket_connect=yes
+else
+ ac_cv_lib_socket_connect=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
+$as_echo "$ac_cv_lib_socket_connect" >&6; }
+if test "x$ac_cv_lib_socket_connect" = xyes; then :
+ X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ # Guillermo Gomez says -lposix is necessary on A/UX.
+ ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
+if test "x$ac_cv_func_remove" = xyes; then :
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ if test $ac_cv_func_remove = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
+$as_echo_n "checking for remove in -lposix... " >&6; }
+if ${ac_cv_lib_posix_remove+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lposix $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- unset ${!LC_GETPOP_FLAG_*}
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char remove ();
+int
+main ()
+{
+return remove ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_posix_remove=yes
+else
+ ac_cv_lib_posix_remove=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
+$as_echo "$ac_cv_lib_posix_remove" >&6; }
+if test "x$ac_cv_lib_posix_remove" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
+fi
+ fi
- done
- ICONV_LIBS=
+ # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
+ ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
+if test "x$ac_cv_func_shmat" = xyes; then :
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ if test $ac_cv_func_shmat = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
+$as_echo_n "checking for shmat in -lipc... " >&6; }
+if ${ac_cv_lib_ipc_shmat+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lipc $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shmat ();
+int
+main ()
+{
+return shmat ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_ipc_shmat=yes
+else
+ ac_cv_lib_ipc_shmat=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
+$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
+if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
+fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
fi
fi
- unset ${!LC_GETPOP_FLAG_*}
+ # Check for libraries that X11R6 Xt/Xaw programs need.
+ ac_save_LDFLAGS=$LDFLAGS
+ test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
+ # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
+ # check for ICE first), but we must link in the order -lSM -lICE or
+ # we get undefined symbols. So assume we have SM if we have ICE.
+ # These have to be linked with before -lX11, unlike the other
+ # libraries we check for below, so use a different variable.
+ # John Interrante, Karl Berry
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
+$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
+if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lICE $X_EXTRA_LIBS $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- while [[ $LC_PREPEND_LIST_flag ]]
- do ICONV_LIBS="$LC_PREPEND_LIST_flag $ICONV_LIBS"
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char IceConnectionNumber ();
+int
+main ()
+{
+return IceConnectionNumber ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_ICE_IceConnectionNumber=yes
+else
+ ac_cv_lib_ICE_IceConnectionNumber=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
+$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
+if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
+ X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ LDFLAGS=$ac_save_LDFLAGS
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+fi
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+for ac_header in pty.h util.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+fi
- unset ${!LC_GETPOP_FLAG_*}
+done
- done
- unset ${!LC_PREPEND_LIST_*}
+for ac_func in gettimeofday
+do :
+ ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
+if test "x$ac_cv_func_gettimeofday" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_GETTIMEOFDAY 1
+_ACEOF
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
+fi
+done
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
+#--------------------------------------------------------------------
+# Checks for dl library
+#--------------------------------------------------------------------
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
+$as_echo_n "checking for library containing dlopen... " >&6; }
+if ${ac_cv_search_dlopen+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_LIBS="$ICONV_LIBS $LC_MERGE_FLAGS_flag"
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' libdl libdld; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
else
-if ${ICONV_LIBS+:} false; then :
-
- case " $ICONV_LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: ICONV_LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append ICONV_LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS=\"\$ICONV_LIBS\""; } >&5
- (: ICONV_LIBS="$ICONV_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_search_dlopen=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_dlopen+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_dlopen+:} false; then :
else
-
- ICONV_LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS=\"\$ICONV_LIBS\""; } >&5
- (: ICONV_LIBS="$ICONV_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+ ac_cv_search_dlopen=no
fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
+$as_echo "$ac_cv_search_dlopen" >&6; }
+ac_res=$ac_cv_search_dlopen
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
- else
- LC_ICONV_ICONV=${LC_ICONV_ICONV##* }
- { $as_echo "$as_me:${as_lineno-$LINENO}: iconv found in $LC_ICONV_ICONV" >&5
-$as_echo "$as_me: iconv found in $LC_ICONV_ICONV" >&6;}
-
-if [ "$LC_ICONV_ICONV" ]
-then
+$as_echo "#define TM_DYNAMIC_LINKING dlopen" >>confdefs.h
- LC_SCATTER_FLAGS_list="-I$LC_ICONV_ICONV/include -L$LC_ICONV_ICONV/lib -liconv"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dld_link" >&5
+$as_echo_n "checking for library containing dld_link... " >&6; }
+if ${ac_cv_search_dld_link+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dld_link ();
+int
+main ()
+{
+return dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' libdl libdld; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_search_dld_link=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_dld_link+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_dld_link+:} false; then :
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
+else
+ ac_cv_search_dld_link=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dld_link" >&5
+$as_echo "$ac_cv_search_dld_link" >&6; }
+ac_res=$ac_cv_search_dld_link
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+$as_echo "#define TM_DYNAMIC_LINKING dld_link" >>confdefs.h
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+else
- unset ${!LC_GETPOP_FLAG_*}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
+$as_echo_n "checking for library containing shl_load... " >&6; }
+if ${ac_cv_search_shl_load+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- while test -n "$LC_SCATTER_FLAGS_flag"
- do
- case "$LC_SCATTER_FLAGS_flag" in
- -l*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_LIBS="$ICONV_LIBS $LC_SCATTER_FLAGS_flag"
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' libdl libdld; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
else
-if ${ICONV_LIBS+:} false; then :
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_search_shl_load=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_shl_load+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_shl_load+:} false; then :
- case " $ICONV_LIBS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_LIBS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+else
+ ac_cv_search_shl_load=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
+$as_echo "$ac_cv_search_shl_load" >&6; }
+ac_res=$ac_cv_search_shl_load
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- as_fn_append ICONV_LIBS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS=\"\$ICONV_LIBS\""; } >&5
- (: ICONV_LIBS="$ICONV_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+$as_echo "#define TM_DYNAMIC_LINKING shl_load" >>confdefs.h
else
- ICONV_LIBS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS=\"\$ICONV_LIBS\""; } >&5
- (: ICONV_LIBS="$ICONV_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ echo configure: warning: dynamic linking using dlopen will not work
fi
- fi
-;;
- -L*|-framework*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_LDFLAGS="$ICONV_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_LDFLAGS+:} false; then :
- case " $ICONV_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+fi
- as_fn_append ICONV_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS=\"\$ICONV_LDFLAGS\""; } >&5
- (: ICONV_LDFLAGS="$ICONV_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-else
+fi
- ICONV_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS=\"\$ICONV_LDFLAGS\""; } >&5
- (: ICONV_LDFLAGS="$ICONV_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-fi
+#--------------------------------------------------------------------
+# Checks for iconv library
+#--------------------------------------------------------------------
+
+ if test "X$prefix" = "XNONE"; then
+ acl_final_prefix="$ac_default_prefix"
+ else
+ acl_final_prefix="$prefix"
fi
-;;
- -I*|-U*|-D*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_CPPFLAGS="$ICONV_CPPFLAGS $LC_SCATTER_FLAGS_flag"
+ if test "X$exec_prefix" = "XNONE"; then
+ acl_final_exec_prefix='${prefix}'
else
-if ${ICONV_CPPFLAGS+:} false; then :
+ acl_final_exec_prefix="$exec_prefix"
+ fi
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
+ prefix="$acl_save_prefix"
- case " $ICONV_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
- as_fn_append ICONV_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS=\"\$ICONV_CPPFLAGS\""; } >&5
- (: ICONV_CPPFLAGS="$ICONV_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then :
+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
-
- ICONV_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS=\"\$ICONV_CPPFLAGS\""; } >&5
- (: ICONV_CPPFLAGS="$ICONV_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+ with_gnu_ld=no
fi
- fi
-;;
- -F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_CPPFLAGS="$ICONV_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_CPPFLAGS+:} false; then :
-
- case " $ICONV_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append ICONV_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS=\"\$ICONV_CPPFLAGS\""; } >&5
- (: ICONV_CPPFLAGS="$ICONV_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
+# Prepare PATH_SEPARATOR.
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
+ # contains only /bin. Note that ksh looks also at the FPATH variable,
+ # so we have to set that as well for the test.
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
+ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
+ || PATH_SEPARATOR=';'
+ }
+fi
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
+$as_echo_n "checking for ld used by $CC... " >&6; }
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [\\/]* | ?:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
+ while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
+$as_echo_n "checking for GNU ld... " >&6; }
else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
+$as_echo_n "checking for non-GNU ld... " >&6; }
+fi
+if ${acl_cv_path_LD+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$LD"; then
+ acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$acl_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ acl_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$acl_cv_path_LD" -v 2>&1 &5
- (: ICONV_CPPFLAGS="$ICONV_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+LD="$acl_cv_path_LD"
+if test -n "$LD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
+$as_echo "$LD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
+if ${acl_cv_prog_gnu_ld+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 &5
+$as_echo "$acl_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$acl_cv_prog_gnu_ld
- fi
-;;
- -Wl,-F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_LDFLAGS="$ICONV_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_LDFLAGS+:} false; then :
- case " $ICONV_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
- as_fn_append ICONV_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS=\"\$ICONV_LDFLAGS\""; } >&5
- (: ICONV_LDFLAGS="$ICONV_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
+$as_echo_n "checking for shared library run path origin... " >&6; }
+if ${acl_cv_rpath+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- ICONV_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS=\"\$ICONV_LDFLAGS\""; } >&5
- (: ICONV_LDFLAGS="$ICONV_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
+ . ./conftest.sh
+ rm -f ./conftest.sh
+ acl_cv_rpath=done
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
+$as_echo "$acl_cv_rpath" >&6; }
+ wl="$acl_cv_wl"
+ acl_libext="$acl_cv_libext"
+ acl_shlibext="$acl_cv_shlibext"
+ acl_libname_spec="$acl_cv_libname_spec"
+ acl_library_names_spec="$acl_cv_library_names_spec"
+ acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
+ acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
+ acl_hardcode_direct="$acl_cv_hardcode_direct"
+ acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
+ # Check whether --enable-rpath was given.
+if test "${enable_rpath+set}" = set; then :
+ enableval=$enable_rpath; :
+else
+ enable_rpath=yes
+fi
- fi
-;;
- -Wl,*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib ICONV" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib ICONV" >&2;};;
- -*)
- as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$LC_SCATTER_FLAGS_flag" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag" >&5
-$as_echo_n "checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag... " >&6; }
-if eval \${$as_CACHEVAR+:} false; then :
+
+
+
+ acl_libdirstem=lib
+ acl_libdirstem2=
+ case "$host_os" in
+ solaris*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
+$as_echo_n "checking for 64-bit host... " >&6; }
+if ${gl_cv_solaris_64bit+:} false; then :
$as_echo_n "(cached) " >&6
else
-
- ax_check_save_flags=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS $LC_SCATTER_FLAGS_flag"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-int
-main ()
-{
+#ifdef _LP64
+sixtyfour bits
+#endif
- ;
- return 0;
-}
_ACEOF
-if ac_fn_cxx_try_compile "$LINENO"; then :
- eval "$as_CACHEVAR=yes"
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
+ gl_cv_solaris_64bit=yes
else
- eval "$as_CACHEVAR=no"
+ gl_cv_solaris_64bit=no
fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CXXFLAGS=$ax_check_save_flags
+rm -f conftest*
+
+
fi
-eval ac_res=\$$as_CACHEVAR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
+$as_echo "$gl_cv_solaris_64bit" >&6; }
+ if test $gl_cv_solaris_64bit = yes; then
+ acl_libdirstem=lib/64
+ case "$host_cpu" in
+ sparc*) acl_libdirstem2=lib/sparcv9 ;;
+ i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
+ esac
+ fi
+ ;;
+ *)
+ searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
+ if test -n "$searchpath"; then
+ acl_save_IFS="${IFS= }"; IFS=":"
+ for searchdir in $searchpath; do
+ if test -d "$searchdir"; then
+ case "$searchdir" in
+ */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
+ */../ | */.. )
+ # Better ignore directories of this form. They are misleading.
+ ;;
+ *) searchdir=`cd "$searchdir" && pwd`
+ case "$searchdir" in
+ */lib64 ) acl_libdirstem=lib64 ;;
+ esac ;;
+ esac
+ fi
+ done
+ IFS="$acl_save_IFS"
+ fi
+ ;;
+ esac
+ test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_CXXFLAGS="$ICONV_CXXFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_CXXFLAGS+:} false; then :
- case " $ICONV_CXXFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CXXFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_CXXFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
- as_fn_append ICONV_CXXFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CXXFLAGS=\"\$ICONV_CXXFLAGS\""; } >&5
- (: ICONV_CXXFLAGS="$ICONV_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-else
- ICONV_CXXFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CXXFLAGS=\"\$ICONV_CXXFLAGS\""; } >&5
- (: ICONV_CXXFLAGS="$ICONV_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-fi
- fi
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&2;}
-fi
-;;
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&5
-$as_echo "$as_me: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&2;};;
- esac
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ use_additional=yes
- unset ${!LC_GETPOP_FLAG_*}
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
- done
- unset ${!LC_SCATTER_FLAGS_*}
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
-else
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
- LC_SCATTER_FLAGS_list="-liconv"
+# Check whether --with-libiconv-prefix was given.
+if test "${with_libiconv_prefix+set}" = set; then :
+ withval=$with_libiconv_prefix;
+ if test "X$withval" = "Xno"; then
+ use_additional=no
+ else
+ if test "X$withval" = "X"; then
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ else
+ additional_includedir="$withval/include"
+ additional_libdir="$withval/$acl_libdirstem"
+ if test "$acl_libdirstem2" != "$acl_libdirstem" \
+ && ! test -d "$withval/$acl_libdirstem"; then
+ additional_libdir="$withval/$acl_libdirstem2"
+ fi
+ fi
+ fi
+
+fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
+ LIBICONV=
+ LTLIBICONV=
+ INCICONV=
+ LIBICONV_PREFIX=
+ HAVE_LIBICONV=
+ rpathdirs=
+ ltrpathdirs=
+ names_already_handled=
+ names_next_round='iconv '
+ while test -n "$names_next_round"; do
+ names_this_round="$names_next_round"
+ names_next_round=
+ for name in $names_this_round; do
+ already_handled=
+ for n in $names_already_handled; do
+ if test "$n" = "$name"; then
+ already_handled=yes
+ break
+ fi
+ done
+ if test -z "$already_handled"; then
+ names_already_handled="$names_already_handled $name"
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
+ eval value=\"\$HAVE_LIB$uppername\"
+ if test -n "$value"; then
+ if test "$value" = yes; then
+ eval value=\"\$LIB$uppername\"
+ test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
+ eval value=\"\$LTLIB$uppername\"
+ test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
+ else
+ :
+ fi
+ else
+ found_dir=
+ found_la=
+ found_so=
+ found_a=
+ eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
+ if test -n "$acl_shlibext"; then
+ shrext=".$acl_shlibext" # typically: shrext=.so
+ else
+ shrext=
+ fi
+ if test $use_additional = yes; then
+ dir="$additional_libdir"
+ if test -n "$acl_shlibext"; then
+ if test -f "$dir/$libname$shrext"; then
+ found_dir="$dir"
+ found_so="$dir/$libname$shrext"
+ else
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
+ ver=`(cd "$dir" && \
+ for f in "$libname$shrext".*; do echo "$f"; done \
+ | sed -e "s,^$libname$shrext\\\\.,," \
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
+ | sed 1q ) 2>/dev/null`
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
+ found_dir="$dir"
+ found_so="$dir/$libname$shrext.$ver"
+ fi
+ else
+ eval library_names=\"$acl_library_names_spec\"
+ for f in $library_names; do
+ if test -f "$dir/$f"; then
+ found_dir="$dir"
+ found_so="$dir/$f"
+ break
+ fi
+ done
+ fi
+ fi
+ fi
+ if test "X$found_dir" = "X"; then
+ if test -f "$dir/$libname.$acl_libext"; then
+ found_dir="$dir"
+ found_a="$dir/$libname.$acl_libext"
+ fi
+ fi
+ if test "X$found_dir" != "X"; then
+ if test -f "$dir/$libname.la"; then
+ found_la="$dir/$libname.la"
+ fi
+ fi
+ fi
+ if test "X$found_dir" = "X"; then
+ for x in $LDFLAGS $LTLIBICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ case "$x" in
+ -L*)
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
+ if test -n "$acl_shlibext"; then
+ if test -f "$dir/$libname$shrext"; then
+ found_dir="$dir"
+ found_so="$dir/$libname$shrext"
+ else
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
+ ver=`(cd "$dir" && \
+ for f in "$libname$shrext".*; do echo "$f"; done \
+ | sed -e "s,^$libname$shrext\\\\.,," \
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
+ | sed 1q ) 2>/dev/null`
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
+ found_dir="$dir"
+ found_so="$dir/$libname$shrext.$ver"
+ fi
+ else
+ eval library_names=\"$acl_library_names_spec\"
+ for f in $library_names; do
+ if test -f "$dir/$f"; then
+ found_dir="$dir"
+ found_so="$dir/$f"
+ break
+ fi
+ done
+ fi
+ fi
+ fi
+ if test "X$found_dir" = "X"; then
+ if test -f "$dir/$libname.$acl_libext"; then
+ found_dir="$dir"
+ found_a="$dir/$libname.$acl_libext"
+ fi
+ fi
+ if test "X$found_dir" != "X"; then
+ if test -f "$dir/$libname.la"; then
+ found_la="$dir/$libname.la"
+ fi
+ fi
+ ;;
+ esac
+ if test "X$found_dir" != "X"; then
+ break
+ fi
+ done
+ fi
+ if test "X$found_dir" != "X"; then
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
+ if test "X$found_so" != "X"; then
+ if test "$enable_rpath" = no \
+ || test "X$found_dir" = "X/usr/$acl_libdirstem" \
+ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
+ else
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $found_dir"
+ fi
+ if test "$acl_hardcode_direct" = yes; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
+ else
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $found_dir"
+ fi
+ else
+ haveit=
+ for x in $LDFLAGS $LIBICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
+ fi
+ if test "$acl_hardcode_minus_L" != no; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
+ else
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
+ fi
+ fi
+ fi
+ fi
+ else
+ if test "X$found_a" != "X"; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
+ else
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
+ fi
+ fi
+ additional_includedir=
+ case "$found_dir" in
+ */$acl_libdirstem | */$acl_libdirstem/)
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
+ if test "$name" = 'iconv'; then
+ LIBICONV_PREFIX="$basedir"
+ fi
+ additional_includedir="$basedir/include"
+ ;;
+ */$acl_libdirstem2 | */$acl_libdirstem2/)
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
+ if test "$name" = 'iconv'; then
+ LIBICONV_PREFIX="$basedir"
+ fi
+ additional_includedir="$basedir/include"
+ ;;
+ esac
+ if test "X$additional_includedir" != "X"; then
+ if test "X$additional_includedir" != "X/usr/include"; then
+ haveit=
+ if test "X$additional_includedir" = "X/usr/local/include"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ for x in $CPPFLAGS $INCICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-I$additional_includedir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_includedir"; then
+ INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
+ fi
+ fi
+ fi
+ fi
+ fi
+ if test -n "$found_la"; then
+ save_libdir="$libdir"
+ case "$found_la" in
+ */* | *\\*) . "$found_la" ;;
+ *) . "./$found_la" ;;
+ esac
+ libdir="$save_libdir"
+ for dep in $dependency_libs; do
+ case "$dep" in
+ -L*)
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
+ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
+ haveit=
+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
+ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ haveit=
+ for x in $LDFLAGS $LIBICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
+ fi
+ fi
+ haveit=
+ for x in $LDFLAGS $LTLIBICONV; do
+
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
+ fi
+ fi
+ fi
+ fi
+ ;;
+ -R*)
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
+ if test "$enable_rpath" != no; then
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $dir"
+ fi
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $dir"
+ fi
+ fi
+ ;;
+ -l*)
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
+ ;;
+ *.la)
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
+ ;;
+ *)
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
+ ;;
+ esac
+ done
+ fi
+ else
+ LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
+ fi
+ fi
+ fi
+ done
+ done
+ if test "X$rpathdirs" != "X"; then
+ if test -n "$acl_hardcode_libdir_separator"; then
+ alldirs=
+ for found_dir in $rpathdirs; do
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
+ done
+ acl_save_libdir="$libdir"
+ libdir="$alldirs"
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
+ else
+ for found_dir in $rpathdirs; do
+ acl_save_libdir="$libdir"
+ libdir="$found_dir"
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
+ done
fi
fi
+ if test "X$ltrpathdirs" != "X"; then
+ for found_dir in $ltrpathdirs; do
+ LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
+ done
+ fi
- unset ${!LC_GETPOP_FLAG_*}
- while test -n "$LC_SCATTER_FLAGS_flag"
- do
- case "$LC_SCATTER_FLAGS_flag" in
- -l*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_LIBS="$ICONV_LIBS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_LIBS+:} false; then :
- case " $ICONV_LIBS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_LIBS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
- as_fn_append ICONV_LIBS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS=\"\$ICONV_LIBS\""; } >&5
- (: ICONV_LIBS="$ICONV_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-else
- ICONV_LIBS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LIBS=\"\$ICONV_LIBS\""; } >&5
- (: ICONV_LIBS="$ICONV_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-fi
- fi
-;;
- -L*|-framework*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_LDFLAGS="$ICONV_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_LDFLAGS+:} false; then :
- case " $ICONV_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
- as_fn_append ICONV_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS=\"\$ICONV_LDFLAGS\""; } >&5
- (: ICONV_LDFLAGS="$ICONV_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-else
- ICONV_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS=\"\$ICONV_LDFLAGS\""; } >&5
- (: ICONV_LDFLAGS="$ICONV_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ am_save_CPPFLAGS="$CPPFLAGS"
-fi
+ for element in $INCICONV; do
+ haveit=
+ for x in $CPPFLAGS; do
- fi
-;;
- -I*|-U*|-D*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_CPPFLAGS="$ICONV_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_CPPFLAGS+:} false; then :
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ eval x=\"$x\"
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
- case " $ICONV_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ if test "X$x" = "X$element"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
+ fi
+ done
- as_fn_append ICONV_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS=\"\$ICONV_CPPFLAGS\""; } >&5
- (: ICONV_CPPFLAGS="$ICONV_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
+$as_echo_n "checking for iconv... " >&6; }
+if ${am_cv_func_iconv+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- ICONV_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS=\"\$ICONV_CPPFLAGS\""; } >&5
- (: ICONV_CPPFLAGS="$ICONV_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ am_cv_func_iconv="no, consider installing GNU libiconv"
+ am_cv_lib_iconv=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
-fi
+#include
+#include
- fi
-;;
- -F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_CPPFLAGS="$ICONV_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_CPPFLAGS+:} false; then :
+int
+main ()
+{
+iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ am_cv_func_iconv=yes
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$am_cv_func_iconv" != yes; then
+ am_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBICONV"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- case " $ICONV_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+#include
+#include
- as_fn_append ICONV_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS=\"\$ICONV_CPPFLAGS\""; } >&5
- (: ICONV_CPPFLAGS="$ICONV_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+int
+main ()
+{
+iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ am_cv_lib_iconv=yes
+ am_cv_func_iconv=yes
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS="$am_save_LIBS"
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
+$as_echo "$am_cv_func_iconv" >&6; }
+ if test "$am_cv_func_iconv" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
+$as_echo_n "checking for working iconv... " >&6; }
+if ${am_cv_func_iconv_works+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- ICONV_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CPPFLAGS=\"\$ICONV_CPPFLAGS\""; } >&5
- (: ICONV_CPPFLAGS="$ICONV_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
+ am_save_LIBS="$LIBS"
+ if test $am_cv_lib_iconv = yes; then
+ LIBS="$LIBS $LIBICONV"
+ fi
+ am_cv_func_iconv_works=no
+ for ac_iconv_const in '' 'const'; do
+ if test "$cross_compiling" = yes; then :
+ case "$host_os" in
+ aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
+ *) am_cv_func_iconv_works="guessing yes" ;;
+ esac
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- fi
-;;
- -Wl,-F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_LDFLAGS="$ICONV_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_LDFLAGS+:} false; then :
+#include
+#include
- case " $ICONV_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+#ifndef ICONV_CONST
+# define ICONV_CONST $ac_iconv_const
+#endif
- as_fn_append ICONV_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS=\"\$ICONV_LDFLAGS\""; } >&5
- (: ICONV_LDFLAGS="$ICONV_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+int
+main ()
+{
+int result = 0;
+ /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
+ returns. */
+ {
+ iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
+ if (cd_utf8_to_88591 != (iconv_t)(-1))
+ {
+ static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
+ char buf[10];
+ ICONV_CONST char *inptr = input;
+ size_t inbytesleft = strlen (input);
+ char *outptr = buf;
+ size_t outbytesleft = sizeof (buf);
+ size_t res = iconv (cd_utf8_to_88591,
+ &inptr, &inbytesleft,
+ &outptr, &outbytesleft);
+ if (res == 0)
+ result |= 1;
+ iconv_close (cd_utf8_to_88591);
+ }
+ }
+ /* Test against Solaris 10 bug: Failures are not distinguishable from
+ successful returns. */
+ {
+ iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
+ if (cd_ascii_to_88591 != (iconv_t)(-1))
+ {
+ static ICONV_CONST char input[] = "\263";
+ char buf[10];
+ ICONV_CONST char *inptr = input;
+ size_t inbytesleft = strlen (input);
+ char *outptr = buf;
+ size_t outbytesleft = sizeof (buf);
+ size_t res = iconv (cd_ascii_to_88591,
+ &inptr, &inbytesleft,
+ &outptr, &outbytesleft);
+ if (res == 0)
+ result |= 2;
+ iconv_close (cd_ascii_to_88591);
+ }
+ }
+ /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
+ {
+ iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
+ if (cd_88591_to_utf8 != (iconv_t)(-1))
+ {
+ static ICONV_CONST char input[] = "\304";
+ static char buf[2] = { (char)0xDE, (char)0xAD };
+ ICONV_CONST char *inptr = input;
+ size_t inbytesleft = 1;
+ char *outptr = buf;
+ size_t outbytesleft = 1;
+ size_t res = iconv (cd_88591_to_utf8,
+ &inptr, &inbytesleft,
+ &outptr, &outbytesleft);
+ if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
+ result |= 4;
+ iconv_close (cd_88591_to_utf8);
+ }
+ }
+#if 0 /* This bug could be worked around by the caller. */
+ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
+ {
+ iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
+ if (cd_88591_to_utf8 != (iconv_t)(-1))
+ {
+ static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
+ char buf[50];
+ ICONV_CONST char *inptr = input;
+ size_t inbytesleft = strlen (input);
+ char *outptr = buf;
+ size_t outbytesleft = sizeof (buf);
+ size_t res = iconv (cd_88591_to_utf8,
+ &inptr, &inbytesleft,
+ &outptr, &outbytesleft);
+ if ((int)res > 0)
+ result |= 8;
+ iconv_close (cd_88591_to_utf8);
+ }
+ }
+#endif
+ /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
+ provided. */
+ if (/* Try standardized names. */
+ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
+ /* Try IRIX, OSF/1 names. */
+ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
+ /* Try AIX names. */
+ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
+ /* Try HP-UX names. */
+ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
+ result |= 16;
+ return result;
-else
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_run "$LINENO"; then :
+ am_cv_func_iconv_works=yes
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
- ICONV_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_LDFLAGS=\"\$ICONV_LDFLAGS\""; } >&5
- (: ICONV_LDFLAGS="$ICONV_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ test "$am_cv_func_iconv_works" = no || break
+ done
+ LIBS="$am_save_LIBS"
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
+$as_echo "$am_cv_func_iconv_works" >&6; }
+ case "$am_cv_func_iconv_works" in
+ *no) am_func_iconv=no am_cv_lib_iconv=no ;;
+ *) am_func_iconv=yes ;;
+ esac
+ else
+ am_func_iconv=no am_cv_lib_iconv=no
+ fi
+ if test "$am_func_iconv" = yes; then
+
+$as_echo "#define HAVE_ICONV 1" >>confdefs.h
fi
-;;
- -Wl,*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib ICONV" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib ICONV" >&2;};;
- -*)
- as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$LC_SCATTER_FLAGS_flag" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag" >&5
-$as_echo_n "checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag... " >&6; }
-if eval \${$as_CACHEVAR+:} false; then :
+ if test "$am_cv_lib_iconv" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
+$as_echo_n "checking how to link with libiconv... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
+$as_echo "$LIBICONV" >&6; }
+ else
+ CPPFLAGS="$am_save_CPPFLAGS"
+ LIBICONV=
+ LTLIBICONV=
+ fi
+
+
+
+ if test "$am_cv_func_iconv" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
+$as_echo_n "checking for iconv declaration... " >&6; }
+ if ${am_cv_proto_iconv+:} false; then :
$as_echo_n "(cached) " >&6
else
- ax_check_save_flags=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS $LC_SCATTER_FLAGS_flag"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#include
+#include
+extern
+#ifdef __cplusplus
+"C"
+#endif
+#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
+#else
+size_t iconv();
+#endif
+
int
main ()
{
@@ -11033,8736 +10545,2106 @@ main ()
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
- eval "$as_CACHEVAR=yes"
+ am_cv_proto_iconv_arg1=""
else
- eval "$as_CACHEVAR=no"
+ am_cv_proto_iconv_arg1="const"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CXXFLAGS=$ax_check_save_flags
+ am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
fi
-eval ac_res=\$$as_CACHEVAR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then ICONV_CXXFLAGS="$ICONV_CXXFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${ICONV_CXXFLAGS+:} false; then :
- case " $ICONV_CXXFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CXXFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: ICONV_CXXFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result:
+ $am_cv_proto_iconv" >&5
+$as_echo "
+ $am_cv_proto_iconv" >&6; }
- as_fn_append ICONV_CXXFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CXXFLAGS=\"\$ICONV_CXXFLAGS\""; } >&5
- (: ICONV_CXXFLAGS="$ICONV_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+cat >>confdefs.h <<_ACEOF
+#define ICONV_CONST $am_cv_proto_iconv_arg1
+_ACEOF
-else
- ICONV_CXXFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : ICONV_CXXFLAGS=\"\$ICONV_CXXFLAGS\""; } >&5
- (: ICONV_CXXFLAGS="$ICONV_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ fi
-fi
- fi
+#--------------------------------------------------------------------
+# Checks for freetype library
+#--------------------------------------------------------------------
+ # Check whether --enable-freetype was given.
+if test "${enable_freetype+set}" = set; then :
+ enableval=$enable_freetype; disable_freetype="yes"
else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&2;}
+ disable_freetype="no"
fi
-;;
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&5
-$as_echo "$as_me: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&2;};;
- esac
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_SCATTER_FLAGS_*}
+# Check whether --with-freetype was given.
+if test "${with_freetype+set}" = set; then :
+ withval=$with_freetype;
fi
- fi
- if [ "$ICONV_CFLAGS" ]; then CFLAGS=$ICONV_CFLAGS;fi; if [ "$ICONV_CXXFLAGS" ]; then CXXFLAGS=$ICONV_CXXFLAGS;fi; if [ "$ICONV_CPPFLAGS" ]; then CPPFLAGS=$ICONV_CPPFLAGS;fi;
+ SAVE_CPPFLAGS="$CPPFLAGS"
+ SAVE_LDFLAGS="$LDFLAGS"
+ SAVE_LIBS="$LIBS"
+ if test -z "$FREETYPE_CFLAGS"; then
+ FREETYPE_CFLAGS=`freetype-config --cflags`
+ fi
+ CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
+ if test -z "$FREETYPE_LDFLAGS"; then
+ FREETYPE_LDFLAGS=`freetype-config --libs`
+ fi
+ LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
+ ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
+if test "x$ac_cv_header_ft2build_h" = xyes; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
+$as_echo_n "checking for freetype... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_MERGE_FLAGS_list="$ICONV_LDFLAGS"
- if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$ICONV_LDFLAGS"
- #pop the old list
+ #include
+ #include FT_FREETYPE_H
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+int
+main ()
+{
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ FT_Library ft_library;
+ (void) FT_Init_FreeType (&ft_library);
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
- unset ${!LC_GETPOP_FLAG_*}
+$as_echo "#define USE_FREETYPE 1" >>confdefs.h
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+ FREETYPE_CFLAGS="$CPPFLAGS"
+ if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
+ FREETYPE_LDFLAGS="$LIBS"
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+$as_echo "#define LINKED_FREETYPE 1" >>confdefs.h
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ fi
else
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "cannot link freetype library" "$LINENO" 5
fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+else
- fi
-
+ if test "$disable_freetype" != "yes"; then
+ as_fn_error $? "Cannot find freetype library.
+ TeXmacs almost need freetype library to work properly.
+ If you know what you are doing, you can configure with --disable-freetype" "$LINENO" 5
+ fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+fi
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
+ CPPFLAGS="$SAVE_CPPFLAGS"
+ LDFLAGS="$SAVE_LDFLAGS"
+ LIBS="$SAVE_LIBS"
- done
- # append new list
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+#--------------------------------------------------------------------
+# Checks for Cairo library
+#--------------------------------------------------------------------
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+# Check whether --with-cairo was given.
+if test "${with_cairo+set}" = set; then :
+ withval=$with_cairo;
+fi
-else
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ SAVE_CPPFLAGS="$CPPFLAGS"
+ SAVE_LDFLAGS="$LDFLAGS"
+ SAVE_LIBS="$LIBS"
+ if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cairo support" >&5
+$as_echo "disabling cairo support" >&6; }
+ else
+ CPPFLAGS=`pkg-config --cflags cairo`
+ LIBS=`pkg-config --libs cairo`
+ ac_fn_cxx_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
+if test "x$ac_cv_header_cairo_h" = xyes; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
+$as_echo_n "checking for cairo... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
-fi
+ #include
- fi
+int
+main ()
+{
+ cairo_surface_t *surface;
+ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+$as_echo "#define USE_CAIRO 1" >>confdefs.h
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ CAIRO_CFLAGS="$CPPFLAGS"
+ if test "$with_cairo" = "linked" ; then
+ CAIRO_LDFLAGS="$LIBS"
- unset ${!LC_GETPOP_FLAG_*}
+$as_echo "#define LINKED_CAIRO 1" >>confdefs.h
+ fi
- done
- LDFLAGS=
+else
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ CPPFLAGS="$SAVE_CPPFLAGS"
+ LDFLAGS="$SAVE_LDFLAGS"
+ LIBS="$SAVE_LIBS"
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
+ CAIRO_CXX=$CAIRO_CXXFLAGS
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ CAIRO_CPP=$CAIRO_CPPFLAGS
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+#--------------------------------------------------------------------
+# Checks for Imlib2 library
+#--------------------------------------------------------------------
- unset ${!LC_GETPOP_FLAG_*}
- done
- unset ${!LC_PREPEND_LIST_*}
+# Check whether --with-imlib2 was given.
+if test "${with_imlib2+set}" = set; then :
+ withval=$with_imlib2;
+fi
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
+
+ SAVE_CPPFLAGS="$CPPFLAGS"
+ SAVE_LDFLAGS="$LDFLAGS"
+ SAVE_LIBS="$LIBS"
+ if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling imlib2 support" >&5
+$as_echo "disabling imlib2 support" >&6; }
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
+ CPPFLAGS=`imlib2-config --cflags`
+ LIBS=`imlib2-config --libs`
+ ac_fn_cxx_check_header_mongrel "$LINENO" "Imlib2.h" "ac_cv_header_Imlib2_h" "$ac_includes_default"
+if test "x$ac_cv_header_Imlib2_h" = xyes; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5
+$as_echo_n "checking for imlib2... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
+ #include
+ #include
+ #include
+ #include
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+int
+main ()
+{
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ Imlib_Image image= imlib_load_image("");
- unset ${!LC_GETPOP_FLAG_*}
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
- else
-if ${LDFLAGS+:} false; then :
+$as_echo "#define USE_IMLIB2 1" >>confdefs.h
- case " $LDFLAGS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ IMLIB2_CFLAGS="$CPPFLAGS"
+ if test "$with_imlib2" = "linked" ; then
+ IMLIB2_LDFLAGS="$LIBS"
- as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+$as_echo "#define LINKED_IMLIB2 1" >>confdefs.h
-else
+ fi
- LDFLAGS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
- fi
- done
fi
- unset ${!LC_MERGE_FLAGS_*}
+ CPPFLAGS="$SAVE_CPPFLAGS"
+ LDFLAGS="$SAVE_LDFLAGS"
+ LIBS="$SAVE_LIBS"
- if test -n "$LNSTATIC"
- then
- if [[ "-static" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then CFLAGS="$CFLAGS -static"
- else
-if ${CFLAGS+:} false; then :
- case " $CFLAGS " in #(
- *" -static "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -static"; } >&5
- (: CFLAGS already contains -static) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ IMLIB2_CXX=$IMLIB2_CXXFLAGS
- as_fn_append CFLAGS " -static"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
- (: CFLAGS="$CFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ IMLIB2_CPP=$IMLIB2_CPPFLAGS
-else
- CFLAGS=-static
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
- (: CFLAGS="$CFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-fi
+#--------------------------------------------------------------------
+# Checks for Axel library
+#--------------------------------------------------------------------
- fi
+# Check whether --with-axel was given.
+if test "${with_axel+set}" = set; then :
+ withval=$with_axel;
+fi
- if [[ "-static" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then CXXFLAGS="$CXXFLAGS -static"
- else
-if ${CXXFLAGS+:} false; then :
- case " $CXXFLAGS " in #(
- *" -static "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -static"; } >&5
- (: CXXFLAGS already contains -static) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append CXXFLAGS " -static"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
- (: CXXFLAGS="$CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- CXXFLAGS=-static
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
- (: CXXFLAGS="$CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- fi
-# check the libs depencies
- LC_SET_FLAGS_libs=$ICONV_LIBS
-
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_lib # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_lib=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_lib" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_lib})
- fi
-
- LC_SET_FLAGS_lib=$(echo $LC_SET_FLAGS_lib) # normalize whitespaces
- LC_SET_FLAGS_lib=${LC_SET_FLAGS_lib//\/\//\/} # normalize path separator
-
- if [[ "$LC_SET_FLAGS_lib" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_lib=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_lib=${LC_SET_FLAGS_lib#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- # the main lib
-
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_dep # flag not found
+ SAVE_CPPFLAGS="$CPPFLAGS"
+ SAVE_LDFLAGS="$LDFLAGS"
+ SAVE_LIBS="$LIBS"
+ if test "$with_axel" = "no" -o "$with_axel" = "" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling axel support" >&5
+$as_echo "disabling axel support" >&6; }
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_dep=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_dep" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_dep})
- fi
-
- LC_SET_FLAGS_dep=$(echo $LC_SET_FLAGS_dep) # normalize whitespaces
- LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep//\/\//\/} # normalize path separator
-
- if [[ "$LC_SET_FLAGS_dep" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_dep=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- # the dependency lib
- while test -n "$LC_SET_FLAGS_dep"
- do
-case $LC_SET_FLAGS_dep in
- z) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
-$as_echo_n "checking for inflate in -lz... " >&6; }
-if ${ac_cv_lib_z_inflate+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lz $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ CPPFLAGS=`axel-config --cflags`
+ LIBS=`axel-config --libs`
+ ac_fn_cxx_check_header_mongrel "$LINENO" "QGui/Viewer.h" "ac_cv_header_QGui_Viewer_h" "$ac_includes_default"
+if test "x$ac_cv_header_QGui_Viewer_h" = xyes; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axel" >&5
+$as_echo_n "checking for axel... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char inflate ();
+ #include
+
int
main ()
{
-return inflate ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_z_inflate=yes
-else
- ac_cv_lib_z_inflate=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
-$as_echo "$ac_cv_lib_z_inflate" >&6; }
-if test "x$ac_cv_lib_z_inflate" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBZ 1
-_ACEOF
-
- LIBS="-lz $LIBS"
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- png) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_init in -lpng" >&5
-$as_echo_n "checking for png_read_init in -lpng... " >&6; }
-if ${ac_cv_lib_png_png_read_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ Viewer viewer(0);
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char png_read_init ();
-int
-main ()
-{
-return png_read_init ();
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_png_png_read_init=yes
-else
- ac_cv_lib_png_png_read_init=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_init" >&5
-$as_echo "$ac_cv_lib_png_png_read_init" >&6; }
-if test "x$ac_cv_lib_png_png_read_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBPNG 1
-_ACEOF
- LIBS="-lpng $LIBS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- png12) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_init in -lpng12" >&5
-$as_echo_n "checking for png_read_init in -lpng12... " >&6; }
-if ${ac_cv_lib_png12_png_read_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng12 $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+$as_echo "#define USE_AXEL 1" >>confdefs.h
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char png_read_init ();
-int
-main ()
-{
-return png_read_init ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_png12_png_read_init=yes
-else
- ac_cv_lib_png12_png_read_init=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_read_init" >&5
-$as_echo "$ac_cv_lib_png12_png_read_init" >&6; }
-if test "x$ac_cv_lib_png12_png_read_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBPNG12 1
-_ACEOF
+ AXEL_CFLAGS="$CPPFLAGS"
+ if test "$with_axel" = "linked" ; then
+ AXEL_LDFLAGS="$LIBS"
- LIBS="-lpng12 $LIBS"
+$as_echo "#define LINKED_AXEL 1" >>confdefs.h
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- gmp) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpf_init in -lgmp" >&5
-$as_echo_n "checking for __gmpf_init in -lgmp... " >&6; }
-if ${ac_cv_lib_gmp___gmpf_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lgmp $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
+ fi
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char __gmpf_init ();
-int
-main ()
-{
-return __gmpf_init ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_gmp___gmpf_init=yes
else
- ac_cv_lib_gmp___gmpf_init=no
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpf_init" >&5
-$as_echo "$ac_cv_lib_gmp___gmpf_init" >&6; }
-if test "x$ac_cv_lib_gmp___gmpf_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBGMP 1
-_ACEOF
-
- LIBS="-lgmp $LIBS"
-
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
fi
-;;
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: skipping presence test for the library $LC_SET_FLAGS_dep" >&5
-$as_echo "$as_me: skipping presence test for the library $LC_SET_FLAGS_dep" >&6;}
- LC_MERGE_FLAGS_list="-l$LC_SET_FLAGS_dep"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="-l$LC_SET_FLAGS_dep"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ CPPFLAGS="$SAVE_CPPFLAGS"
+ LDFLAGS="$SAVE_LDFLAGS"
+ LIBS="$SAVE_LIBS"
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+ AXEL_CXX=$AXEL_CXXFLAGS
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ AXEL_CPP=$AXEL_CPPFLAGS
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-else
+#--------------------------------------------------------------------
+# Checks for ghostscript library
+#--------------------------------------------------------------------
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+# Check whether --with-gs was given.
+if test "${with_gs+set}" = set; then :
+ withval=$with_gs;
+else
+ unset withval
fi
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ if [[ $withval != no ]]
+ then
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+for ac_prog in gs gswin32c.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GS_EXE+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GS_EXE in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GS_EXE="$GS_EXE" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="${withval:-$PATH}"
+for as_dir in $as_dummy
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_GS_EXE="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
+done
+ done
+IFS=$as_save_IFS
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
+ ;;
esac
-
+fi
+GS_EXE=$ac_cv_path_GS_EXE
+if test -n "$GS_EXE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_EXE" >&5
+$as_echo "$GS_EXE" >&6; }
else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-fi
+ test -n "$GS_EXE" && break
+done
+if [[ "$GS_EXE" == *.exe ]]
+then # Extract the first word of "gsdll32.dll", so it can be a program name with args.
+set dummy gsdll32.dll; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GS_DLL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $GS_DLL in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_GS_DLL="$GS_DLL" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="${withval:-$PATH}"
+for as_dir in $as_dummy
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_GS_DLL="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+GS_DLL=$ac_cv_path_GS_DLL
+if test -n "$GS_DLL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_DLL" >&5
+$as_echo "$GS_DLL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ [ "$GS_DLL" ] || unset GS_EXE
+fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+if [ "$GS_EXE" ]
+then while read -r l sep p # default path, separator, extra path
+ do
+ case $l in
+ (/*/ghostscript*/lib) GS_LIB=$l; GS_ELIB=$p;;
+ (/*/ghostscript*/fonts) GS_FONTS=$l; GS_EFONTS=$p;;
+ esac
+ done <<< "$($GS_EXE -h)"
+fi
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ else unset GS_EXE
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ if [ "$GS_EXE" ]
+ then
+
+$as_echo "#define USE_GS 1" >>confdefs.h
- unset ${!LC_GETPOP_FLAG_*}
+ CONFIG_GS="Ghostscript"
+ # need to adjust path to the relocated tm SDK
+ # add also relative path for BUNDLE
+ if [[ "$GS_EXE" =~ $TMREPO ]]; then # it is comming from tm SDK
+ # try to change path to match the bundle if any
+ TMREPObase=$(basename $TMREPO)
+cat >>confdefs.h <<_ACEOF
+#define GS_EXE "../../bin/$(basename $GS_EXE)"
+_ACEOF
- done
- LIBS=
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+cat >>confdefs.h <<_ACEOF
+#define GS_LIB "../share/ghostscript${GS_LIB##*ghostscript}:${GS_ELIB:+${GS_ELIB}:}${TMREPO}${GS_LIB##*$TMREPObase}"
+_ACEOF
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+cat >>confdefs.h <<_ACEOF
+#define GS_FONTS "../share/ghostscript${GS_FONTS##*ghostscript}:${GS_EFONTS:+${GS_EFONTS}:}${TMREPO}${GS_FONTS##*$TMREPObase}"
+_ACEOF
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
fi
+ else { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
+$as_echo "disabling ghostscript support" >&6; }
fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+#--------------------------------------------------------------------
+# Checks for sqlite3 library
+#--------------------------------------------------------------------
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
+# Check whether --with-sqlite3 was given.
+if test "${with_sqlite3+set}" = set; then :
+ withval=$with_sqlite3;
+fi
- done
- unset ${!LC_PREPEND_LIST_*}
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
+ SAVE_CPPFLAGS="$CPPFLAGS"
+ SAVE_LDFLAGS="$LDFLAGS"
+ SAVE_LIBS="$LIBS"
+ if test "$with_sqlite3" = "no" -o "$with_sqlite3" = "" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling sqlite3 support" >&5
+$as_echo "disabling sqlite3 support" >&6; }
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
+ CPPFLAGS=`pkg-config --cflags sqlite3`
+ LIBS=`pkg-config --libs sqlite3`
+ ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
+if test "x$ac_cv_header_sqlite3_h" = xyes; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
+$as_echo_n "checking for sqlite3... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
+ #include
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+int
+main ()
+{
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ int res= sqlite3_threadsafe ();
- unset ${!LC_GETPOP_FLAG_*}
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${LIBS+:} false; then :
+$as_echo "#define USE_SQLITE3 1" >>confdefs.h
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ SQLITE3_CFLAGS="$CPPFLAGS"
+ if test "$with_sqlite3" = "linked" ; then
+ SQLITE3_LDFLAGS="$LIBS"
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+$as_echo "#define LINKED_SQLITE3 1" >>confdefs.h
-else
+ fi
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
- fi
- done
fi
- unset ${!LC_MERGE_FLAGS_*}
-;;
-esac
+ CPPFLAGS="$SAVE_CPPFLAGS"
+ LDFLAGS="$SAVE_LDFLAGS"
+ LIBS="$SAVE_LIBS"
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_dep # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_dep=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_dep" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_dep})
- fi
- LC_SET_FLAGS_dep=$(echo $LC_SET_FLAGS_dep) # normalize whitespaces
- LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep//\/\//\/} # normalize path separator
+ SQLITE3_CXX=$SQLITE3_CXXFLAGS
- if [[ "$LC_SET_FLAGS_dep" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_dep=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ SQLITE3_CPP=$SQLITE3_CPPFLAGS
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
- # the dependency lib
- done
- LC_MERGE_FLAGS_list="-l$LC_SET_FLAGS_lib"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="-l$LC_SET_FLAGS_lib"
- #pop the old list
+#--------------------------------------------------------------------
+# Checks for (Win)Sparkle framework
+#--------------------------------------------------------------------
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+# Check whether --with-sparkle was given.
+if test "${with_sparkle+set}" = set; then :
+ withval=$with_sparkle;
+fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ SAVE_OBJCFLAGS="$OBJCFLAGS"
+ SAVE_LDFLAGS="$LDFLAGS"
+ SAVE_LIBS="$LIBS"
+ if test "$with_sparkle" = "no" -o "$with_sparkle" = "" ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Sparkle usage" >&5
+$as_echo "disabling Sparkle usage" >&6; }
else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
+ case "${host}" in
+ *mingw*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use the WinSparkle library" >&5
+$as_echo_n "checking whether we can use the WinSparkle library... " >&6; }
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ CFLAGS="-I $with_sparkle"
+ LDFLAGS="-L $with_sparkle"
+ LIBS="-lwinsparkle"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
-fi
+ #include
+ #include
- fi
+int
+main ()
+{
+ win_sparkle_init();
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+$as_echo "#define USE_SPARKLE 1" >>confdefs.h
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ SPARKLE_CFLAGS="$CFLAGS"
+ SPARKLE_LDFLAGS="$LDFLAGS $LIBS"
+ WINSPARKLE_PATH="$with_sparkle"
+ WINSPARKLE_DLL="WinSparkle*.dll"
- unset ${!LC_GETPOP_FLAG_*}
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- done
- # append new list
+ ;;
+ *apple*darwin*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use the Sparkle framework" >&5
+$as_echo_n "checking whether we can use the Sparkle framework... " >&6; }
+ ac_ext=m
+ac_cpp='$OBJCPP $CPPFLAGS'
+ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_objc_compiler_gnu
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ OBJCFLAGS="-F $with_sparkle"
+ LDFLAGS="-F $with_sparkle -framework Sparkle"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ #include
+ #include
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+int
+main ()
+{
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ SUUpdater* updater;
- unset ${!LC_GETPOP_FLAG_*}
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_objc_try_link "$LINENO"; then :
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+$as_echo "#define USE_SPARKLE 1" >>confdefs.h
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ SPARKLE_CFLAGS="$OBJCFLAGS"
+ SPARKLE_LDFLAGS="$LDFLAGS"
+ SPARKLE_FRAMEWORK_PATH="$with_sparkle"
+ CONFIG_SPARKLE="Updater"
else
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ CONFIG_SPARKLE=""
fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+ ;;
+ esac
fi
+ OBJFLAGS="$SAVE_CPPFLAGS"
+ LDFLAGS="$SAVE_LDFLAGS"
+ LIBS="$SAVE_LIBS"
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ SPARKLE_CXX=$SPARKLE_CXXFLAGS
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ SPARKLE_CPP=$SPARKLE_CPPFLAGS
- unset ${!LC_GETPOP_FLAG_*}
- done
- LIBS=
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+#--------------------------------------------------------------------
+# Handle different systems case by case
+#--------------------------------------------------------------------
- unset ${!LC_GETPOP_FLAG_*}
+CONFIG_OS="GNU_LINUX"
+CONFIG_OS_SUFFIX="${host}"
+CONFIG_OS_COMPAT="Unix"
+CONFIG_MACOS=""
+CONFIG_CXXFLAGS=""
+CONFIG_CXXTEMPLATE=""
+CONFIG_STD_SETENV="#define STD_SETENV"
+CONFIG_SO="so"
+CONFIG_LIB_PATH="LD_LIBRARY_PATH"
+CONFIG_CHMOD="chmod -f"
+CONFIG_CXXOPTIMIZE="-O2"
+CONFIG_BSTATIC="-lXdmcp -lXau -lXrender"
+CONFIG_BSHARED="-Wl,-Bdynamic"
+CONFIG_BFLAGS=""
+CONFIG_BPATH="-Wl,-rpath,"
+CONFIG_LDRT=""
+CONFIG_WORD_LENGTH="4"
+CONFIG_WORD_LENGTH_INC="3"
+CONFIG_WORD_MASK="0xfffffffc"
+CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
+CONFIG_HOST_OS="$host_os"
+CONFIG_HOST_VENDOR="$host_vendor"
+CONFIG_HOST_CPU="$host_cpu"
+CONFIG_USER="$USER"
+CONFIG_DATE="`date`"
+CONFIG_QTPIPES="no"
+# tweak for XCode project
+CONFIG_ARCHS='$(NATIVE_ARCH)'
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
+X11_CFLAGS="$X_CFLAGS"
+X11_LDFLAGS="$X_LIBS -lXext -lX11"
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${LIBS+:} false; then :
-
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
-
- rm $LC_ICONV_TEMP
- ac_fn_cxx_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
-if test "x$ac_cv_header_iconv_h" = xyes; then :
-
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include
-int
-main ()
-{
-iconv_open("","");
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- iconv
-else
-
-
- CFLAGS=$CFLAGS__ax_save_flags
-
-
- CPPFLAGS=$CPPFLAGS__ax_save_flags
-
-
- CXXFLAGS=$CXXFLAGS__ax_save_flags
-
-
- LDFLAGS=$LDFLAGS__ax_save_flags
-
-
- LIBS=$LIBS__ax_save_flags
-
-
- OBJCFLAGS=$OBJCFLAGS__ax_save_flags
-
-
- OBJCXXFLAGS=$OBJCXXFLAGS__ax_save_flags
-
-
-
-
- if [ -z "" -a -n "$SEMISTATIC" ]
- then ICONV_LIBS="$SEMISTATIC $ICONV_LIBS $SEMIDYNAMIC"
- fi
-
-
- LC_MERGE_FLAGS_list="$ICONV_LDFLAGS"
- if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$ICONV_LDFLAGS"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LDFLAGS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
- else
-if ${LDFLAGS+:} false; then :
-
- case " $LDFLAGS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LDFLAGS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
- LC_MERGE_FLAGS_list="$ICONV_LIBS"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$ICONV_LIBS"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${LIBS+:} false; then :
-
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
-
- unset ${!LC_COMBINE_FLAGS_*}
-
-
-$as_echo "#define USE_ICONV 1" >>confdefs.h
-
- unset i_failure
- unset LC_ICONV_LIBPATH
-
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-
-else
-
- as_fn_error $? "libiconv does not match header." "$LINENO" 5
-fi
-
-
-
-else
-
- rm $LC_ICONV_TEMP
- as_fn_error $? "use with-iconv=iconv_base_path (i.e /usr/local) to specify your icon location.
-Use with-iconv=no to ignore iconv." "$LINENO" 5
-
-fi
-
-
-else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: absence of iconv may crash HTML import or prevent the build" >&5
-$as_echo "$as_me: WARNING: absence of iconv may crash HTML import or prevent the build" >&2;}
-fi
-
- ICONV_CXX=$ICONV_CXXFLAGS
-
- ICONV_CPP=$ICONV_CPPFLAGS
-
- if [[ $enable_dumpflags =~ (^|[[:space:]])ICONV($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: ICONV_CFLAGS:$ICONV_CFLAGS" >&5
-$as_echo "$as_me: ICONV_CFLAGS:$ICONV_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: ICONV_CXXFLAGS:$ICONV_CXXFLAGS" >&5
-$as_echo "$as_me: ICONV_CXXFLAGS:$ICONV_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: ICONV_CPPFLAGS:$ICONV_CPPFLAGS" >&5
-$as_echo "$as_me: ICONV_CPPFLAGS:$ICONV_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: ICONV_LIBS:$ICONV_LIBS" >&5
-$as_echo "$as_me: ICONV_LIBS:$ICONV_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: ICONV_LDFLAGS:$ICONV_LDFLAGS" >&5
-$as_echo "$as_me: ICONV_LDFLAGS:$ICONV_LDFLAGS" >&6;}
-
-
- fi
-# adaptation layer remove when finished
- ICONV_CFLAGS="$ICONV_CXXFLAGS $ICONV_CPPFLAGS"
-
- ICONV_LDFLAGS=""
-
-
-
-
-#--------------------------------------------------------------------
-# Checks for freetype library
-#--------------------------------------------------------------------
-
-
-# Check whether --with-freetype was given.
-if test "${with_freetype+set}" = set; then :
- withval=$with_freetype;
-else
- unset withval
-fi
-
-
- if [[ "$withval" != no ]]
- then
- unset USE_FREETYPE
-
- # Extract the first word of "freetype-config", so it can be a program name with args.
-set dummy freetype-config; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_FREETYPE_tmp1+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $FREETYPE_tmp1 in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_FREETYPE_tmp1="$FREETYPE_tmp1" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="${withval:-$PATH}"
-for as_dir in $as_dummy
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_FREETYPE_tmp1="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- test -z "$ac_cv_path_FREETYPE_tmp1" && ac_cv_path_FREETYPE_tmp1="no"
- ;;
-esac
-fi
-FREETYPE_tmp1=$ac_cv_path_FREETYPE_tmp1
-if test -n "$FREETYPE_tmp1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_tmp1" >&5
-$as_echo "$FREETYPE_tmp1" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- if [ $FREETYPE_tmp1 != no ]
- then
-
- LC_SCATTER_FLAGS_list="$($FREETYPE_tmp1 --libs) $($FREETYPE_tmp1 --cflags)"
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
-
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while test -n "$LC_SCATTER_FLAGS_flag"
- do
- case "$LC_SCATTER_FLAGS_flag" in
- -l*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then FREETYPE_LIBS="$FREETYPE_LIBS $LC_SCATTER_FLAGS_flag"
- else
-if ${FREETYPE_LIBS+:} false; then :
-
- case " $FREETYPE_LIBS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LIBS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: FREETYPE_LIBS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append FREETYPE_LIBS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LIBS=\"\$FREETYPE_LIBS\""; } >&5
- (: FREETYPE_LIBS="$FREETYPE_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- FREETYPE_LIBS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LIBS=\"\$FREETYPE_LIBS\""; } >&5
- (: FREETYPE_LIBS="$FREETYPE_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -L*|-framework*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then FREETYPE_LDFLAGS="$FREETYPE_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${FREETYPE_LDFLAGS+:} false; then :
-
- case " $FREETYPE_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: FREETYPE_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append FREETYPE_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LDFLAGS=\"\$FREETYPE_LDFLAGS\""; } >&5
- (: FREETYPE_LDFLAGS="$FREETYPE_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- FREETYPE_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LDFLAGS=\"\$FREETYPE_LDFLAGS\""; } >&5
- (: FREETYPE_LDFLAGS="$FREETYPE_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -I*|-U*|-D*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then FREETYPE_CPPFLAGS="$FREETYPE_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${FREETYPE_CPPFLAGS+:} false; then :
-
- case " $FREETYPE_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: FREETYPE_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append FREETYPE_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CPPFLAGS=\"\$FREETYPE_CPPFLAGS\""; } >&5
- (: FREETYPE_CPPFLAGS="$FREETYPE_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- FREETYPE_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CPPFLAGS=\"\$FREETYPE_CPPFLAGS\""; } >&5
- (: FREETYPE_CPPFLAGS="$FREETYPE_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then FREETYPE_CPPFLAGS="$FREETYPE_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${FREETYPE_CPPFLAGS+:} false; then :
-
- case " $FREETYPE_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: FREETYPE_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append FREETYPE_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CPPFLAGS=\"\$FREETYPE_CPPFLAGS\""; } >&5
- (: FREETYPE_CPPFLAGS="$FREETYPE_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- FREETYPE_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CPPFLAGS=\"\$FREETYPE_CPPFLAGS\""; } >&5
- (: FREETYPE_CPPFLAGS="$FREETYPE_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -Wl,-F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then FREETYPE_LDFLAGS="$FREETYPE_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${FREETYPE_LDFLAGS+:} false; then :
-
- case " $FREETYPE_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: FREETYPE_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append FREETYPE_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LDFLAGS=\"\$FREETYPE_LDFLAGS\""; } >&5
- (: FREETYPE_LDFLAGS="$FREETYPE_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- FREETYPE_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_LDFLAGS=\"\$FREETYPE_LDFLAGS\""; } >&5
- (: FREETYPE_LDFLAGS="$FREETYPE_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -Wl,*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib FREETYPE" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib FREETYPE" >&2;};;
- -*)
- as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$LC_SCATTER_FLAGS_flag" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag" >&5
-$as_echo_n "checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag... " >&6; }
-if eval \${$as_CACHEVAR+:} false; then :
- $as_echo_n "(cached) " >&6
-else
-
- ax_check_save_flags=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS $LC_SCATTER_FLAGS_flag"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_compile "$LINENO"; then :
- eval "$as_CACHEVAR=yes"
-else
- eval "$as_CACHEVAR=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CXXFLAGS=$ax_check_save_flags
-fi
-eval ac_res=\$$as_CACHEVAR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then FREETYPE_CXXFLAGS="$FREETYPE_CXXFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${FREETYPE_CXXFLAGS+:} false; then :
-
- case " $FREETYPE_CXXFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CXXFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: FREETYPE_CXXFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append FREETYPE_CXXFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CXXFLAGS=\"\$FREETYPE_CXXFLAGS\""; } >&5
- (: FREETYPE_CXXFLAGS="$FREETYPE_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- FREETYPE_CXXFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : FREETYPE_CXXFLAGS=\"\$FREETYPE_CXXFLAGS\""; } >&5
- (: FREETYPE_CXXFLAGS="$FREETYPE_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&2;}
-fi
-;;
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&5
-$as_echo "$as_me: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&2;};;
- esac
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
-
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_SCATTER_FLAGS_*}
-
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype-config not found" >&5
-$as_echo "$as_me: WARNING: freetype-config not found" >&2;}
- fi
- unset FREETYPE_tmp1
- #init FLAGS
-
-
- CFLAGS__ax_save_flags=$CFLAGS
-
-
-
- CPPFLAGS__ax_save_flags=$CPPFLAGS
-
-
-
- CXXFLAGS__ax_save_flags=$CXXFLAGS
-
-
-
- LDFLAGS__ax_save_flags=$LDFLAGS
-
-
-
- LIBS__ax_save_flags=$LIBS
-
-
-
- OBJCFLAGS__ax_save_flags=$OBJCFLAGS
-
-
-
- OBJCXXFLAGS__ax_save_flags=$OBJCXXFLAGS
-
-
-
-
- if [ "$FREETYPE_CFLAGS" ]; then CFLAGS=$FREETYPE_CFLAGS;fi; if [ "$FREETYPE_CXXFLAGS" ]; then CXXFLAGS=$FREETYPE_CXXFLAGS;fi; if [ "$FREETYPE_CPPFLAGS" ]; then CPPFLAGS=$FREETYPE_CPPFLAGS;fi;
-
- LC_MERGE_FLAGS_list="$FREETYPE_LDFLAGS"
- if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$FREETYPE_LDFLAGS"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LDFLAGS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
- else
-if ${LDFLAGS+:} false; then :
-
- case " $LDFLAGS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LDFLAGS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
-
- if test -n "$LNSTATIC"
- then
- if [[ "-static" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then CFLAGS="$CFLAGS -static"
- else
-if ${CFLAGS+:} false; then :
-
- case " $CFLAGS " in #(
- *" -static "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -static"; } >&5
- (: CFLAGS already contains -static) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append CFLAGS " -static"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
- (: CFLAGS="$CFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- CFLAGS=-static
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
- (: CFLAGS="$CFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- if [[ "-static" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then CXXFLAGS="$CXXFLAGS -static"
- else
-if ${CXXFLAGS+:} false; then :
-
- case " $CXXFLAGS " in #(
- *" -static "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -static"; } >&5
- (: CXXFLAGS already contains -static) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append CXXFLAGS " -static"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
- (: CXXFLAGS="$CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- CXXFLAGS=-static
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
- (: CXXFLAGS="$CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- fi
-# check the libs depencies
- LC_SET_FLAGS_libs=$FREETYPE_LIBS
-
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_lib # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_lib=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_lib" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_lib})
- fi
-
- LC_SET_FLAGS_lib=$(echo $LC_SET_FLAGS_lib) # normalize whitespaces
- LC_SET_FLAGS_lib=${LC_SET_FLAGS_lib//\/\//\/} # normalize path separator
-
- if [[ "$LC_SET_FLAGS_lib" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_lib=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_lib=${LC_SET_FLAGS_lib#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- # the main lib
-
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_dep # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_dep=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_dep" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_dep})
- fi
-
- LC_SET_FLAGS_dep=$(echo $LC_SET_FLAGS_dep) # normalize whitespaces
- LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep//\/\//\/} # normalize path separator
-
- if [[ "$LC_SET_FLAGS_dep" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_dep=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- # the dependency lib
- while test -n "$LC_SET_FLAGS_dep"
- do
-case $LC_SET_FLAGS_dep in
- z) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
-$as_echo_n "checking for inflate in -lz... " >&6; }
-if ${ac_cv_lib_z_inflate+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lz $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char inflate ();
-int
-main ()
-{
-return inflate ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_z_inflate=yes
-else
- ac_cv_lib_z_inflate=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
-$as_echo "$ac_cv_lib_z_inflate" >&6; }
-if test "x$ac_cv_lib_z_inflate" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBZ 1
-_ACEOF
-
- LIBS="-lz $LIBS"
-
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- png) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_init in -lpng" >&5
-$as_echo_n "checking for png_read_init in -lpng... " >&6; }
-if ${ac_cv_lib_png_png_read_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char png_read_init ();
-int
-main ()
-{
-return png_read_init ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_png_png_read_init=yes
-else
- ac_cv_lib_png_png_read_init=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_init" >&5
-$as_echo "$ac_cv_lib_png_png_read_init" >&6; }
-if test "x$ac_cv_lib_png_png_read_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBPNG 1
-_ACEOF
-
- LIBS="-lpng $LIBS"
-
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- png12) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_init in -lpng12" >&5
-$as_echo_n "checking for png_read_init in -lpng12... " >&6; }
-if ${ac_cv_lib_png12_png_read_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng12 $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char png_read_init ();
-int
-main ()
-{
-return png_read_init ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_png12_png_read_init=yes
-else
- ac_cv_lib_png12_png_read_init=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_read_init" >&5
-$as_echo "$ac_cv_lib_png12_png_read_init" >&6; }
-if test "x$ac_cv_lib_png12_png_read_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBPNG12 1
-_ACEOF
-
- LIBS="-lpng12 $LIBS"
-
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- gmp) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpf_init in -lgmp" >&5
-$as_echo_n "checking for __gmpf_init in -lgmp... " >&6; }
-if ${ac_cv_lib_gmp___gmpf_init+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lgmp $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char __gmpf_init ();
-int
-main ()
-{
-return __gmpf_init ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_gmp___gmpf_init=yes
-else
- ac_cv_lib_gmp___gmpf_init=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpf_init" >&5
-$as_echo "$ac_cv_lib_gmp___gmpf_init" >&6; }
-if test "x$ac_cv_lib_gmp___gmpf_init" = xyes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBGMP 1
-_ACEOF
-
- LIBS="-lgmp $LIBS"
-
-else
- as_fn_error $? "compulsory library $LC_SET_FLAGS_dep not found" "$LINENO" 5
-fi
-;;
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: skipping presence test for the library $LC_SET_FLAGS_dep" >&5
-$as_echo "$as_me: skipping presence test for the library $LC_SET_FLAGS_dep" >&6;}
- LC_MERGE_FLAGS_list="-l$LC_SET_FLAGS_dep"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="-l$LC_SET_FLAGS_dep"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${LIBS+:} false; then :
-
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-;;
-esac
-
-
- LC_GETPOP_FLAG_sepa=-l
- LC_GETPOP_FLAG_1=" $(echo $LC_SET_FLAGS_libs)" # remove unnecessary spaces and add a heading space
- LC_SET_FLAGS_libs=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SET_FLAGS_libs" = "$LC_GETPOP_FLAG_1"
- then LC_SET_FLAGS_libs=${LC_SET_FLAGS_libs#}; unset LC_SET_FLAGS_dep # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SET_FLAGS_libs } # strip heading
- LC_SET_FLAGS_dep=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SET_FLAGS_dep" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs)
- else LC_SET_FLAGS_libs=$(echo $LC_SET_FLAGS_libs${LC_GETPOP_FLAG_tail#$LC_SET_FLAGS_dep})
- fi
-
- LC_SET_FLAGS_dep=$(echo $LC_SET_FLAGS_dep) # normalize whitespaces
- LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep//\/\//\/} # normalize path separator
-
- if [[ "$LC_SET_FLAGS_dep" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SET_FLAGS_dep=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SET_FLAGS_dep=${LC_SET_FLAGS_dep#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
- # the dependency lib
- done
-
- LC_MERGE_FLAGS_list="-l$LC_SET_FLAGS_lib"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="-l$LC_SET_FLAGS_lib"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${LIBS+:} false; then :
-
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
-
-
- ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
-if test "x$ac_cv_header_ft2build_h" = xyes; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
-$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
-if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lfreetype $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char FT_Init_FreeType ();
-int
-main ()
-{
-return FT_Init_FreeType ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_freetype_FT_Init_FreeType=yes
-else
- ac_cv_lib_freetype_FT_Init_FreeType=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
-$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
-if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Get_PS_Font_Value in -lfreetype" >&5
-$as_echo_n "checking for FT_Get_PS_Font_Value in -lfreetype... " >&6; }
-if ${ac_cv_lib_freetype_FT_Get_PS_Font_Value+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lfreetype $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char FT_Get_PS_Font_Value ();
-int
-main ()
-{
-return FT_Get_PS_Font_Value ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_freetype_FT_Get_PS_Font_Value=yes
-else
- ac_cv_lib_freetype_FT_Get_PS_Font_Value=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Get_PS_Font_Value" >&5
-$as_echo "$ac_cv_lib_freetype_FT_Get_PS_Font_Value" >&6; }
-if test "x$ac_cv_lib_freetype_FT_Get_PS_Font_Value" = xyes; then :
-
-
- typeset USE_FREETYPE="3"
-
-$as_echo "#define USE_FREETYPE 3" >>confdefs.h
-
-
-
-else
-
-
- typeset USE_FREETYPE="2"
-
-$as_echo "#define USE_FREETYPE 2" >>confdefs.h
-
-
-
-fi
-
-fi
-
-
-else
-
- ac_fn_cxx_check_header_mongrel "$LINENO" "freetype.h" "ac_cv_header_freetype_h" "$ac_includes_default"
-if test "x$ac_cv_header_freetype_h" = xyes; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ft_init_freetype in -lfreetype" >&5
-$as_echo_n "checking for ft_init_freetype in -lfreetype... " >&6; }
-if ${ac_cv_lib_freetype_ft_init_freetype+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lfreetype $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char ft_init_freetype ();
-int
-main ()
-{
-return ft_init_freetype ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_freetype_ft_init_freetype=yes
-else
- ac_cv_lib_freetype_ft_init_freetype=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_ft_init_freetype" >&5
-$as_echo "$ac_cv_lib_freetype_ft_init_freetype" >&6; }
-if test "x$ac_cv_lib_freetype_ft_init_freetype" = xyes; then :
-
-
- typeset USE_FREETYPE="1"
-
-$as_echo "#define USE_FREETYPE 1" >>confdefs.h
-
-
-
-fi
-
-
-fi
-
-
-
-fi
-
-
-
- CFLAGS=$CFLAGS__ax_save_flags
-
-
- CPPFLAGS=$CPPFLAGS__ax_save_flags
-
-
- CXXFLAGS=$CXXFLAGS__ax_save_flags
-
-
- LDFLAGS=$LDFLAGS__ax_save_flags
-
-
- LIBS=$LIBS__ax_save_flags
-
-
- OBJCFLAGS=$OBJCFLAGS__ax_save_flags
-
-
- OBJCXXFLAGS=$OBJCXXFLAGS__ax_save_flags
-
-
-
- if [[ $USE_FREETYPE ]]
- then
-
- if [ -z "freetype" -a -n "$SEMISTATIC" ]
- then FREETYPE_LIBS="$SEMISTATIC $FREETYPE_LIBS $SEMIDYNAMIC"
- fi
-
-
- LC_MERGE_FLAGS_list="$FREETYPE_LDFLAGS"
- if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$FREETYPE_LDFLAGS"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LDFLAGS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
- else
-if ${LDFLAGS+:} false; then :
-
- case " $LDFLAGS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LDFLAGS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
- LC_MERGE_FLAGS_list="$FREETYPE_LIBS"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$FREETYPE_LIBS"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${LIBS+:} false; then :
-
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
-
- unset ${!LC_COMBINE_FLAGS_*}
-
-
-$as_echo "#define LINKED_FREETYPE 1" >>confdefs.h
-
- else
- as_fn_error $? "Cannot find a working freetype library." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling freetype support" >&5
-$as_echo "$as_me: WARNING: disabling freetype support" >&2;}
- fi
-
- FREETYPE_CXX=$FREETYPE_CXXFLAGS
-
- FREETYPE_CPP=$FREETYPE_CPPFLAGS
-
- if [[ $enable_dumpflags =~ (^|[[:space:]])FREETYPE($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: FREETYPE_CFLAGS:$FREETYPE_CFLAGS" >&5
-$as_echo "$as_me: FREETYPE_CFLAGS:$FREETYPE_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: FREETYPE_CXXFLAGS:$FREETYPE_CXXFLAGS" >&5
-$as_echo "$as_me: FREETYPE_CXXFLAGS:$FREETYPE_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: FREETYPE_CPPFLAGS:$FREETYPE_CPPFLAGS" >&5
-$as_echo "$as_me: FREETYPE_CPPFLAGS:$FREETYPE_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: FREETYPE_LIBS:$FREETYPE_LIBS" >&5
-$as_echo "$as_me: FREETYPE_LIBS:$FREETYPE_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: FREETYPE_LDFLAGS:$FREETYPE_LDFLAGS" >&5
-$as_echo "$as_me: FREETYPE_LDFLAGS:$FREETYPE_LDFLAGS" >&6;}
-
-
- fi
-# adaptation layer remove when finished
- FREETYPE_CFLAGS="$FREETYPE_CXXFLAGS $FREETYPE_CPPFLAGS"
-
- FREETYPE_LDFLAGS=""
-
-
-
-
-#--------------------------------------------------------------------
-# Checks for Cairo library
-#--------------------------------------------------------------------
-
-
-# Check whether --with-cairo was given.
-if test "${with_cairo+set}" = set; then :
- withval=$with_cairo;
-fi
-
-
- SAVE_CPPFLAGS="$CPPFLAGS"
- SAVE_LDFLAGS="$LDFLAGS"
- SAVE_LIBS="$LIBS"
- if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cairo support" >&5
-$as_echo "disabling cairo support" >&6; }
- else
- CPPFLAGS=`pkg-config --cflags cairo`
- LIBS=`pkg-config --libs cairo`
- ac_fn_cxx_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
-if test "x$ac_cv_header_cairo_h" = xyes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
-$as_echo_n "checking for cairo... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- #include
-
-int
-main ()
-{
-
- cairo_surface_t *surface;
- surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define USE_CAIRO 1" >>confdefs.h
-
- CAIRO_CFLAGS="$CPPFLAGS"
- if test "$with_cairo" = "linked" ; then
- CAIRO_LDFLAGS="$LIBS"
-
-$as_echo "#define LINKED_CAIRO 1" >>confdefs.h
-
- fi
-
-else
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi
-
-
- fi
-
- CPPFLAGS="$SAVE_CPPFLAGS"
- LDFLAGS="$SAVE_LDFLAGS"
- LIBS="$SAVE_LIBS"
-
-
- CAIRO_CXX=$CAIRO_CXXFLAGS
-
- CAIRO_CPP=$CAIRO_CPPFLAGS
-
- if [[ $enable_dumpflags =~ (^|[[:space:]])CAIRO($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: CAIRO_CFLAGS:$CAIRO_CFLAGS" >&5
-$as_echo "$as_me: CAIRO_CFLAGS:$CAIRO_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: CAIRO_CXXFLAGS:$CAIRO_CXXFLAGS" >&5
-$as_echo "$as_me: CAIRO_CXXFLAGS:$CAIRO_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: CAIRO_CPPFLAGS:$CAIRO_CPPFLAGS" >&5
-$as_echo "$as_me: CAIRO_CPPFLAGS:$CAIRO_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: CAIRO_LIBS:$CAIRO_LIBS" >&5
-$as_echo "$as_me: CAIRO_LIBS:$CAIRO_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: CAIRO_LDFLAGS:$CAIRO_LDFLAGS" >&5
-$as_echo "$as_me: CAIRO_LDFLAGS:$CAIRO_LDFLAGS" >&6;}
-
-
- fi
-# adaptation layer remove when finished
- CAIRO_CFLAGS="$CAIRO_CXXFLAGS $CAIRO_CPPFLAGS"
-
- CAIRO_LDFLAGS=""
-
-
-
-
-#--------------------------------------------------------------------
-# Checks for Imlib2 library
-#--------------------------------------------------------------------
-
-
-# Check whether --with-imlib2 was given.
-if test "${with_imlib2+set}" = set; then :
- withval=$with_imlib2;
-fi
-
-
- SAVE_CPPFLAGS="$CPPFLAGS"
- SAVE_LDFLAGS="$LDFLAGS"
- SAVE_LIBS="$LIBS"
- if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling imlib2 support" >&5
-$as_echo "disabling imlib2 support" >&6; }
- else
- CPPFLAGS=`imlib2-config --cflags`
- LIBS=`imlib2-config --libs`
- ac_fn_cxx_check_header_mongrel "$LINENO" "Imlib2.h" "ac_cv_header_Imlib2_h" "$ac_includes_default"
-if test "x$ac_cv_header_Imlib2_h" = xyes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5
-$as_echo_n "checking for imlib2... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- #include
- #include
- #include
- #include
-
-int
-main ()
-{
-
- Imlib_Image image= imlib_load_image("");
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define USE_IMLIB2 1" >>confdefs.h
-
- IMLIB2_CFLAGS="$CPPFLAGS"
- if test "$with_imlib2" = "linked" ; then
- IMLIB2_LDFLAGS="$LIBS"
-
-$as_echo "#define LINKED_IMLIB2 1" >>confdefs.h
-
- fi
-
-else
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi
-
-
- fi
-
- CPPFLAGS="$SAVE_CPPFLAGS"
- LDFLAGS="$SAVE_LDFLAGS"
- LIBS="$SAVE_LIBS"
-
-
- IMLIB2_CXX=$IMLIB2_CXXFLAGS
-
- IMLIB2_CPP=$IMLIB2_CPPFLAGS
-
- if [[ $enable_dumpflags =~ (^|[[:space:]])IMLIB2($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: IMLIB2_CFLAGS:$IMLIB2_CFLAGS" >&5
-$as_echo "$as_me: IMLIB2_CFLAGS:$IMLIB2_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: IMLIB2_CXXFLAGS:$IMLIB2_CXXFLAGS" >&5
-$as_echo "$as_me: IMLIB2_CXXFLAGS:$IMLIB2_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: IMLIB2_CPPFLAGS:$IMLIB2_CPPFLAGS" >&5
-$as_echo "$as_me: IMLIB2_CPPFLAGS:$IMLIB2_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: IMLIB2_LIBS:$IMLIB2_LIBS" >&5
-$as_echo "$as_me: IMLIB2_LIBS:$IMLIB2_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: IMLIB2_LDFLAGS:$IMLIB2_LDFLAGS" >&5
-$as_echo "$as_me: IMLIB2_LDFLAGS:$IMLIB2_LDFLAGS" >&6;}
-
-
- fi
-# adaptation layer remove when finished
- IMLIB2_CFLAGS="$IMLIB2_CXXFLAGS $IMLIB2_CPPFLAGS"
-
- IMLIB2_LDFLAGS=""
-
-
-
-
-#--------------------------------------------------------------------
-# Checks for Axel library
-#--------------------------------------------------------------------
-
-
-# Check whether --with-axel was given.
-if test "${with_axel+set}" = set; then :
- withval=$with_axel;
-fi
-
-
- SAVE_CPPFLAGS="$CPPFLAGS"
- SAVE_LDFLAGS="$LDFLAGS"
- SAVE_LIBS="$LIBS"
- if test "$with_axel" = "no" -o "$with_axel" = "" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling axel support" >&5
-$as_echo "disabling axel support" >&6; }
- else
- CPPFLAGS=`axel-config --cflags`
- LIBS=`axel-config --libs`
- ac_fn_cxx_check_header_mongrel "$LINENO" "QGui/Viewer.h" "ac_cv_header_QGui_Viewer_h" "$ac_includes_default"
-if test "x$ac_cv_header_QGui_Viewer_h" = xyes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axel" >&5
-$as_echo_n "checking for axel... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- #include
-
-int
-main ()
-{
-
- Viewer viewer(0);
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define USE_AXEL 1" >>confdefs.h
-
- AXEL_CFLAGS="$CPPFLAGS"
- if test "$with_axel" = "linked" ; then
- AXEL_LDFLAGS="$LIBS"
-
-$as_echo "#define LINKED_AXEL 1" >>confdefs.h
-
- fi
-
-else
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi
-
-
- fi
-
- CPPFLAGS="$SAVE_CPPFLAGS"
- LDFLAGS="$SAVE_LDFLAGS"
- LIBS="$SAVE_LIBS"
-
-
- AXEL_CXX=$AXEL_CXXFLAGS
-
- AXEL_CPP=$AXEL_CPPFLAGS
-
- if [[ $enable_dumpflags =~ (^|[[:space:]])AXEL($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: AXEL_CFLAGS:$AXEL_CFLAGS" >&5
-$as_echo "$as_me: AXEL_CFLAGS:$AXEL_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: AXEL_CXXFLAGS:$AXEL_CXXFLAGS" >&5
-$as_echo "$as_me: AXEL_CXXFLAGS:$AXEL_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: AXEL_CPPFLAGS:$AXEL_CPPFLAGS" >&5
-$as_echo "$as_me: AXEL_CPPFLAGS:$AXEL_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: AXEL_LIBS:$AXEL_LIBS" >&5
-$as_echo "$as_me: AXEL_LIBS:$AXEL_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: AXEL_LDFLAGS:$AXEL_LDFLAGS" >&5
-$as_echo "$as_me: AXEL_LDFLAGS:$AXEL_LDFLAGS" >&6;}
-
-
- fi
-# adaptation layer remove when finished
- AXEL_CFLAGS="$AXEL_CXXFLAGS $AXEL_CPPFLAGS"
-
- AXEL_LDFLAGS=""
-
-
-
-#--------------------------------------------------------------------
-# Checks for ghostscript library
-#--------------------------------------------------------------------
-
-
-# Check whether --with-gs was given.
-if test "${with_gs+set}" = set; then :
- withval=$with_gs;
-else
- unset withval
-fi
-
-
- if [[ $withval != no ]]
- then
-
-for ac_prog in gs gswin32c.exe
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_GS_EXE+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $GS_EXE in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GS_EXE="$GS_EXE" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="${withval:-$PATH}"
-for as_dir in $as_dummy
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_GS_EXE="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-GS_EXE=$ac_cv_path_GS_EXE
-if test -n "$GS_EXE"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_EXE" >&5
-$as_echo "$GS_EXE" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$GS_EXE" && break
-done
-
-if [[ "$GS_EXE" == *.exe ]]
-then # Extract the first word of "gsdll32.dll", so it can be a program name with args.
-set dummy gsdll32.dll; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_GS_DLL+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $GS_DLL in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GS_DLL="$GS_DLL" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="${withval:-$PATH}"
-for as_dir in $as_dummy
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_GS_DLL="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-GS_DLL=$ac_cv_path_GS_DLL
-if test -n "$GS_DLL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_DLL" >&5
-$as_echo "$GS_DLL" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- [ "$GS_DLL" ] || unset GS_EXE
-fi
-
-if [ "$GS_EXE" ]
-then while read -r l sep p # default path, separator, extra path
- do
- case $l in
- (/*/ghostscript*/lib) GS_LIB=$l; GS_ELIB=$p;;
- (/*/ghostscript*/fonts) GS_FONTS=$l; GS_EFONTS=$p;;
- esac
- done <<< "$($GS_EXE -h)"
-fi
-
- else unset GS_EXE
- fi
-
- if [ "$GS_EXE" ]
- then
-
-$as_echo "#define USE_GS 1" >>confdefs.h
-
- CONFIG_GS="Ghostscript"
- # need to adjust path to the relocated tm SDK
- # add also relative path for BUNDLE
- if [[ "$GS_EXE" =~ $TMREPO ]]; then # it is comming from tm SDK
- # try to change path to match the bundle if any
- TMREPObase=$(basename $TMREPO)
-
-cat >>confdefs.h <<_ACEOF
-#define GS_EXE "../../bin/$(basename $GS_EXE)"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define GS_LIB "../share/ghostscript${GS_LIB##*ghostscript}:${GS_ELIB:+${GS_ELIB}:}${TMREPO}${GS_LIB##*$TMREPObase}"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define GS_FONTS "../share/ghostscript${GS_FONTS##*ghostscript}:${GS_EFONTS:+${GS_EFONTS}:}${TMREPO}${GS_FONTS##*$TMREPObase}"
-_ACEOF
-
- fi
- else { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
-$as_echo "disabling ghostscript support" >&6; }
- fi
-
-
-
-
-
-#--------------------------------------------------------------------
-# Checks for sqlite3 library
-#--------------------------------------------------------------------
-
-
-# Check whether --with-sqlite3 was given.
-if test "${with_sqlite3+set}" = set; then :
- withval=$with_sqlite3;
-fi
-
-
- SAVE_CPPFLAGS="$CPPFLAGS"
- SAVE_LDFLAGS="$LDFLAGS"
- SAVE_LIBS="$LIBS"
- if test "$with_sqlite3" = "no" -o "$with_sqlite3" = "" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling sqlite3 support" >&5
-$as_echo "disabling sqlite3 support" >&6; }
- else
- CPPFLAGS=`pkg-config --cflags sqlite3`
- LIBS=`pkg-config --libs sqlite3`
- ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
-if test "x$ac_cv_header_sqlite3_h" = xyes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
-$as_echo_n "checking for sqlite3... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- #include
-
-int
-main ()
-{
-
- int res= sqlite3_threadsafe ();
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define USE_SQLITE3 1" >>confdefs.h
-
- SQLITE3_CFLAGS="$CPPFLAGS"
- if test "$with_sqlite3" = "linked" ; then
- SQLITE3_LDFLAGS="$LIBS"
-
-$as_echo "#define LINKED_SQLITE3 1" >>confdefs.h
-
- fi
-
-else
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi
-
-
- fi
-
- CPPFLAGS="$SAVE_CPPFLAGS"
- LDFLAGS="$SAVE_LDFLAGS"
- LIBS="$SAVE_LIBS"
-
-
- SQLITE3_CXX=$SQLITE3_CXXFLAGS
-
- SQLITE3_CPP=$SQLITE3_CPPFLAGS
-
- if [[ $enable_dumpflags =~ (^|[[:space:]])SQLITE3($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: SQLITE3_CFLAGS:$SQLITE3_CFLAGS" >&5
-$as_echo "$as_me: SQLITE3_CFLAGS:$SQLITE3_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: SQLITE3_CXXFLAGS:$SQLITE3_CXXFLAGS" >&5
-$as_echo "$as_me: SQLITE3_CXXFLAGS:$SQLITE3_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: SQLITE3_CPPFLAGS:$SQLITE3_CPPFLAGS" >&5
-$as_echo "$as_me: SQLITE3_CPPFLAGS:$SQLITE3_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: SQLITE3_LIBS:$SQLITE3_LIBS" >&5
-$as_echo "$as_me: SQLITE3_LIBS:$SQLITE3_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: SQLITE3_LDFLAGS:$SQLITE3_LDFLAGS" >&5
-$as_echo "$as_me: SQLITE3_LDFLAGS:$SQLITE3_LDFLAGS" >&6;}
-
-
- fi
-# adaptation layer remove when finished
- SQLITE3_CFLAGS="$SQLITE3_CXXFLAGS $SQLITE3_CPPFLAGS"
-
- SQLITE3_LDFLAGS=""
-
-
-
-
-#--------------------------------------------------------------------
-# Checks for (Win)Sparkle framework
-#--------------------------------------------------------------------
-
-
-
-
-# Check whether --with-sparkle was given.
-if test "${with_sparkle+set}" = set; then :
- withval=$with_sparkle;
-fi
-
-
- SAVE_OBJCFLAGS="$OBJCFLAGS"
- SAVE_LDFLAGS="$LDFLAGS"
- SAVE_LIBS="$LIBS"
- if test "$with_sparkle" = "no" -o "$with_sparkle" = "" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Sparkle usage" >&5
-$as_echo "disabling Sparkle usage" >&6; }
- else
- case "${host}" in
- *mingw*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use the WinSparkle library" >&5
-$as_echo_n "checking whether we can use the WinSparkle library... " >&6; }
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- CFLAGS="-I $with_sparkle"
- LDFLAGS="-L $with_sparkle"
- LIBS="-lwinsparkle"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- #include
- #include
-
-int
-main ()
-{
-
- win_sparkle_init();
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define USE_SPARKLE 1" >>confdefs.h
-
- SPARKLE_CFLAGS="$CFLAGS"
- SPARKLE_LDFLAGS="$LDFLAGS $LIBS"
- WINSPARKLE_PATH="$with_sparkle"
- WINSPARKLE_DLL="WinSparkle*.dll"
-
-else
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-
- ;;
- *apple*darwin*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use the Sparkle framework" >&5
-$as_echo_n "checking whether we can use the Sparkle framework... " >&6; }
- ac_ext=m
-ac_cpp='$OBJCPP $CPPFLAGS'
-ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_objc_compiler_gnu
-
- OBJCFLAGS="-F $with_sparkle"
- LDFLAGS="-F $with_sparkle -framework Sparkle"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- #include
- #include
-
-int
-main ()
-{
-
- SUUpdater* updater;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_objc_try_link "$LINENO"; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define USE_SPARKLE 1" >>confdefs.h
-
- SPARKLE_CFLAGS="$OBJCFLAGS"
- SPARKLE_LDFLAGS="$LDFLAGS"
- SPARKLE_FRAMEWORK_PATH="$with_sparkle"
- CONFIG_SPARKLE="Updater"
-
-else
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- CONFIG_SPARKLE=""
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- ac_ext=cpp
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
-
- ;;
- esac
- fi
-
- OBJFLAGS="$SAVE_CPPFLAGS"
- LDFLAGS="$SAVE_LDFLAGS"
- LIBS="$SAVE_LIBS"
-
-
- SPARKLE_CXX=$SPARKLE_CXXFLAGS
-
- SPARKLE_CPP=$SPARKLE_CPPFLAGS
-
- if [[ $enable_dumpflags =~ (^|[[:space:]])SPARKLE($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: SPARKLE_CFLAGS:$SPARKLE_CFLAGS" >&5
-$as_echo "$as_me: SPARKLE_CFLAGS:$SPARKLE_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: SPARKLE_CXXFLAGS:$SPARKLE_CXXFLAGS" >&5
-$as_echo "$as_me: SPARKLE_CXXFLAGS:$SPARKLE_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: SPARKLE_CPPFLAGS:$SPARKLE_CPPFLAGS" >&5
-$as_echo "$as_me: SPARKLE_CPPFLAGS:$SPARKLE_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: SPARKLE_LIBS:$SPARKLE_LIBS" >&5
-$as_echo "$as_me: SPARKLE_LIBS:$SPARKLE_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: SPARKLE_LDFLAGS:$SPARKLE_LDFLAGS" >&5
-$as_echo "$as_me: SPARKLE_LDFLAGS:$SPARKLE_LDFLAGS" >&6;}
-
-
- fi
-# adaptation layer remove when finished
- SPARKLE_CFLAGS="$SPARKLE_CXXFLAGS $SPARKLE_CPPFLAGS"
-
- SPARKLE_LDFLAGS=""
-
-
-
-
-
-
-
-
-#--------------------------------------------------------------------
-# Handle different systems case by case
-#--------------------------------------------------------------------
-
-CONFIG_OS="GNU_LINUX"
-CONFIG_OS_SUFFIX="${host}"
-CONFIG_OS_COMPAT="Unix"
-CONFIG_MACOS=""
-CONFIG_CXXFLAGS=""
-CONFIG_CXXTEMPLATE=""
-CONFIG_STD_SETENV="#define STD_SETENV"
-CONFIG_SO="so"
-CONFIG_LIB_PATH="LD_LIBRARY_PATH"
-CONFIG_CHMOD="chmod -f"
-CONFIG_CXXOPTIMIZE="-O2"
-CONFIG_BSTATIC="-lXdmcp -lXau -lXrender"
-CONFIG_BSHARED="-Wl,-Bdynamic"
-CONFIG_BFLAGS=""
-CONFIG_BPATH="-Wl,-rpath,"
-CONFIG_LDRT=""
-CONFIG_WORD_LENGTH="4"
-CONFIG_WORD_LENGTH_INC="3"
-CONFIG_WORD_MASK="0xfffffffc"
-CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
-CONFIG_HOST_OS="$host_os"
-CONFIG_HOST_VENDOR="$host_vendor"
-CONFIG_HOST_CPU="$host_cpu"
-CONFIG_USER="$USER"
-CONFIG_DATE="`date`"
-CONFIG_QTPIPES="no"
-# tweak for XCode project
-CONFIG_ARCHS='$(NATIVE_ARCH)'
-
-X11_CFLAGS="$X_CFLAGS"
-X11_LDFLAGS="$X_LIBS -lXext -lX11"
-
-# The cast to long int works around a bug in the HP C Compiler
-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
-# This bug is HP SR number 8606223364.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
-$as_echo_n "checking size of void *... " >&6; }
-if ${ac_cv_sizeof_void_p+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
-
-else
- if test "$ac_cv_type_void_p" = yes; then
- { { $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 "cannot compute sizeof (void *)
-See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_void_p=0
- fi
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
-$as_echo "$ac_cv_sizeof_void_p" >&6; }
-
-
-
-cat >>confdefs.h <<_ACEOF
-#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
-_ACEOF
-
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on a 64-bits computer" >&5
-$as_echo_n "checking if we are on a 64-bits computer... " >&6; }
-if test "$ac_cv_sizeof_void_p" = "8"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- CONFIG_WORD_LENGTH="8"
- CONFIG_WORD_LENGTH_INC="7"
- CONFIG_WORD_MASK="0xfffffffffffffff8"
- CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
-elif test "$ac_cv_sizeof_void_p" = "0"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- CONFIG_WORD_LENGTH="8"
- CONFIG_WORD_LENGTH_INC="7"
- CONFIG_WORD_MASK="0xfffffffffffffff8"
- CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-case "${host}" in
- i*86-*-linux* | x86_64-*-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
-$as_echo "final adjustments for an Intel or AMD GNU/Linux host" >&6; }
- CONFIG_OS_SUFFIX="i386-pc-linux-gnu"
- CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
- CONFIG_QTPIPES="yes"
- ;;
- i*86-*-freebsd* | x86_64-*-freebsd*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
-$as_echo "final adjustments for an Intel or AMD GNU/BSD host" >&6; }
- CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
- ;;
- i*86-*-solaris*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMS Solaris host" >&5
-$as_echo "final adjustments for an Intel or AMS Solaris host" >&6; }
- CONFIG_CXXOPTIMIZE="-O3"
- CONFIG_BPATH="-Wl,-R,"
- X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
- ;;
- *mingw*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for mingw host" >&5
-$as_echo "final adjustments for mingw host" >&6; }
- CONFIG_OS=MINGW
- CONFIG_QTPIPES="yes"
- CONFIG_OS_COMPAT="Windows"
- CPPFLAGS="$CPPFLAGS -I/usr/local/include -I."
- CONFIG_LDRT="-L/mingw/lib -lmingw32 -lmingwex"
- GUILE_LDFLAGS="-lmingwex $GUILE_LDFLAGS -lintl" #added mingwex to mask the internal guile readdir function
- ;;
- *-*-cygwin)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for cygwin host" >&5
-$as_echo "final adjustments for cygwin host" >&6; }
- CONFIG_OS="CYGWIN"
- CONFIG_BFLAGS="-Wl,-stack,8388608"
-# CXX="export CYGWIN=check_case:strict; $CXX"
-# AC_SUBST(CXX)
- ;;
- *apple*darwin*)
- echo "$ac_t""final adjustments for a MacOS host" 1>&6
- CONFIG_OS="MACOS"
- CONFIG_QTPIPES="yes"
- CONFIG_CXXFLAGS="-I${prefix}/include"
- CONFIG_BSHARED=""
- CONFIG_BFLAGS="-framework Cocoa -framework IOKit"
- CONFIG_BPATH=""
- CONFIG_SO="dylib"
- CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
- GUILE_LDFLAGS=""
- for l in $($GUILE_CONFIG link)
- do if [[ $l =~ ^-L ]]
- then GuileLibPath=${l#-L}
- elif [[ $l =~ ^-l ]]
- then lib="$GuileLibPath/lib${l#-l}.a"
- [[ -f $lib ]] && GUILE_LDFLAGS+="$lib " || GUILE_LDFLAGS+="${l} " #try to use dynamic lib
- fi
- done
-# done
-# guile-config doesn't return the need of libnintl
- [[ -z $LibIntl ]] && LibIntl="$GuileLibPath/libintl.a" && [[ -f $LibIntl ]] && GUILE_LDFLAGS+="$LibIntl "
-# We must also modify the iconv library, that should be in same place than guile's lib
- [[ -z $LibIconv ]] && LibIconv="$GuileLibPath/libiconv.a" && [[ -f $LibIconv ]] && ICONV_LDFLAGS="$LibIconv "
-;;
- *darwin*)
- echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
- CONFIG_CXXFLAGS="-I${prefix}/include"
- CONFIG_BSHARED=""
- CONFIG_BPATH=""
- CONFIG_SO="dylib"
- CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
- ;;
- powerpc-*-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a PowerPC/GNU-linux host" >&5
-$as_echo "final adjustments for a PowerPC/GNU-linux host" >&6; }
- CONFIG_OS="POWERPC_GNU_LINUX"
- CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
- ;;
- *sun*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a SUN/solaris host" >&5
-$as_echo "final adjustments for a SUN/solaris host" >&6; }
- CONFIG_OS="SUN"
- CONFIG_BSTATIC=""
- CONFIG_BSHARED=""
- CONFIG_BPATH="-Wl,-R,"
- X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
- CONFIG_WORD_LENGTH="8"
- CONFIG_WORD_LENGTH_INC="7"
- CONFIG_WORD_MASK="0xfffffff8"
- CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
- CONFIG_STD_SETENV=""
- ;;
- sparc*-*-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a Sparc host running GNU/Linux" >&5
-$as_echo "final adjustments for a Sparc host running GNU/Linux" >&6; }
- CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
- CONFIG_WORD_LENGTH="8"
- CONFIG_WORD_LENGTH_INC="7"
- CONFIG_WORD_MASK="0xfffffff8"
- CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
- CONFIG_STD_SETENV=""
- ;;
- *dec*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a DEC/alpha host" >&5
-$as_echo "final adjustments for a DEC/alpha host" >&6; }
- CONFIG_BSTATIC=""
- CONFIG_BSHARED="-shared"
- CONFIG_STD_SETENV=""
- ;;
- *alpha*-*-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Alpha GNU/Linux host" >&5
-$as_echo "final adjustments for an Alpha GNU/Linux host" >&6; }
- CONFIG_BSTATIC=""
- CONFIG_BSHARED="-shared"
- ;;
- s390-*-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
-$as_echo "final adjustments for an IBM S/390 GNU/Linux host" >&6; }
- CONFIG_STD_SETENV=""
- ;;
- ia64-*-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Itanium GNU/Linux host" >&5
-$as_echo "final adjustments for an Itanium GNU/Linux host" >&6; }
- CONFIG_BSTATIC=""
- CONFIG_BSHARED="-shared"
- ;;
- hppa*-*-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
-$as_echo "final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
- CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
- CONFIG_BSTATIC=""
- CONFIG_BSHARED="-shared"
- ;;
- *sgi-irix*)
- echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
- CONFIG_OS="IRIX"
- CONFIG_CXXFLAGS=""
- X_LIBS=-L/usr/lib32
- CONFIG_BSTATIC=""
- CONFIG_BSHARED=""
- CONFIG_BPATH=""
- X11_LDFLAGS="$X_LIBS -lX11"
- CONFIG_WORD_MASK="0xfffffff8"
- CONFIG_STD_SETENV=""
- CONFIG_CHMOD="chmod"
- CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
- ;;
- m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a supported GNU/Linux host" >&5
-$as_echo "final adjustments for a supported GNU/Linux host" >&6; }
- ;;
- *-linux*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic GNU/Linux host" >&5
-$as_echo "final adjustments for a generic GNU/Linux host" >&6; }
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic host" >&5
-$as_echo "final adjustments for a generic host" >&6; }
- ;;
-esac
-
-case "${host}" in
- *apple*darwin10*)
- echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
- CONFIG_ARCHS='$(NATIVE_ARCH_ACTUAL)'
- ;;
-esac
-
-#--------------------------------------------------------------------
-# Temporary fix for link problem
-#--------------------------------------------------------------------
-
-case "$GXX_VERSION" in
- 3.* | 4.*)
-# CONFIG_BSTATIC="-static"
- CONFIG_BSHARED="-dynamic"
- ;;
-esac
-
-#--------------------------------------------------------------------
-# Check for expat and xcb libraries which exist only on certain OS
-#--------------------------------------------------------------------
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
-$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
-if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lexpat $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char XML_ParserCreate ();
-int
-main ()
-{
-return XML_ParserCreate ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_expat_XML_ParserCreate=yes
-else
- ac_cv_lib_expat_XML_ParserCreate=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
-$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
-if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
- CONFIG_BSTATIC="-lexpat $CONFIG_BSTATIC";CONFIG_STYPE=A
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_disconnect in -lxcb" >&5
-$as_echo_n "checking for xcb_disconnect in -lxcb... " >&6; }
-if ${ac_cv_lib_xcb_xcb_disconnect+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lxcb $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char xcb_disconnect ();
-int
-main ()
-{
-return xcb_disconnect ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_xcb_xcb_disconnect=yes
-else
- ac_cv_lib_xcb_xcb_disconnect=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcb_xcb_disconnect" >&5
-$as_echo "$ac_cv_lib_xcb_xcb_disconnect" >&6; }
-if test "x$ac_cv_lib_xcb_xcb_disconnect" = xyes; then :
- CONFIG_BSTATIC="-lxcb $CONFIG_BSTATIC";CONFIG_STYPE=B
-fi
-
-
-#--------------------------------------------------------------------
-# Memory allocation options
-#--------------------------------------------------------------------
-
-# Check whether --enable-fastalloc was given.
-if test "${enable_fastalloc+set}" = set; then :
- enableval=$enable_fastalloc;
-else
- enable_fastalloc="yes"
-fi
-
-case "$enable_fastalloc" in
- yes)
- ;;
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling fast allocator for small objects" >&5
-$as_echo "disabling fast allocator for small objects" >&6; }
-
-$as_echo "#define NO_FAST_ALLOC 1" >>confdefs.h
-
- ;;
- *)
- as_fn_error $? "bad option --enable-fastalloc=$enable_fastalloc" "$LINENO" 5
- ;;
-esac
-
-#--------------------------------------------------------------------
-# Experimental options
-#--------------------------------------------------------------------
-
-# Check whether --enable-experimental was given.
-if test "${enable_experimental+set}" = set; then :
- enableval=$enable_experimental;
-else
- enable_experimental="no"
-fi
-
-case "$enable_experimental" in
- yes)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental style rewriting code" >&5
-$as_echo "enabling experimental style rewriting code" >&6; }
-
-$as_echo "#define EXPERIMENTAL 1" >>confdefs.h
-
- CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
- ;;
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental style rewriting code" >&5
-$as_echo "disabling experimental style rewriting code" >&6; }
- CONFIG_EXPERIMENTAL=""
- ;;
- *)
- as_fn_error $? "bad option --enable-experimental=$enable_experimental" "$LINENO" 5
- ;;
-esac
-
-
-#--------------------------------------------------------------------
-# MacOS X extensions (spellchecker, image loading)
-#--------------------------------------------------------------------
-
-if test x"$CONFIG_OS" = xMACOS; then
-
-# Check whether --enable-macosx-extensions was given.
-if test "${enable_macosx_extensions+set}" = set; then :
- enableval=$enable_macosx_extensions;
-else
- enable_macosx_extensions="yes"
-fi
-
-case "$enable_macosx_extensions" in
- yes)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Mac OSX extensions" >&5
-$as_echo "enabling Mac OSX extensions" >&6; }
-
-$as_echo "#define MACOSX_EXTENSIONS 1" >>confdefs.h
-
- CONFIG_MACOS="MacOS"
-# CONFIG_BFLAGS="$CONFIG_BFLAGS -framework IOKit"
- ;;
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Mac OSX extensions" >&5
-$as_echo "disabling Mac OSX extensions" >&6; }
- CONFIG_MACOS=""
- ;;
- *)
- as_fn_error $? "bad option --enable-macosx-extensions=$enable_macosx_extensions" "$LINENO" 5
- ;;
-esac
-
-
-fi
-
-#--------------------------------------------------------------------
-# Windows console
-#--------------------------------------------------------------------
-
-if test x"$CONFIG_OS" = xMINGW; then
-
-# Check whether --enable-console was given.
-if test "${enable_console+set}" = set; then :
- enableval=$enable_console;
-fi
-
-case "$enable_console" in
- yes)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Windows console" >&5
-$as_echo "enabling Windows console" >&6; }
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Windows console" >&5
-$as_echo "disabling Windows console" >&6; }
- CONFIG_LDRT="$CONFIG_LDRT -mwindows"
- ;;
-esac
-
-fi
-
-#--------------------------------------------------------------------
-# Gui selection
-#--------------------------------------------------------------------
-
-CONFIG_X11=""
-CONFIG_COCOA=""
-CONFIG_GUI="X11"
-
-# Check whether --enable-qt was given.
-if test "${enable_qt+set}" = set; then :
- enableval=$enable_qt;
-else
- enable_qt="yes"
-fi
-
-
-case "$enable_qt" in
- yes)
-
-#QT has the install dir hard coded in library so we need to fix it manually for relocatable environment
-if test -z $TMBUILDENV
-then
- QT5_AVAILABLE="no"
- SAVE_LIBS="$LIBS"
- LIBS=""
-# AX_HAVE_QT
- LIBS="$SAVE_LIBS"
- if test x"$have_qt" = xyes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Qt5 found" >&5
-$as_echo "Qt5 found" >&6; }
- at_cv_qt_build=ok
- QMAKE="qmake"
- MOC="moc"
- QT5_AVAILABLE="yes"
- else
-# AC_MSG_RESULT([Qt5 seems not present, trying Qt4...])
-
-
-
-
- test x"$TROLL" != x && echo 'ViM rox emacs.'
-
-
-# Check whether --with-qt was given.
-if test "${with_qt+set}" = set; then :
- withval=$with_qt; QT_PATH=$withval
-else
- QT_PATH=
-fi
-
-
- # Find Qt.
- if test -d /usr/local/Trolltech; then
- # Try to find the latest version.
- tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
- | xargs | sed 's/ */:/g'`
- fi
-
- # Find qmake.
- if test -z "$QMAKE"; then
- for ac_prog in qmake
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_QMAKE+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $QMAKE in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
-for as_dir in $as_dummy
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-QMAKE=$ac_cv_path_QMAKE
-if test -n "$QMAKE"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
-$as_echo "$QMAKE" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$QMAKE" && break
-done
-test -n "$QMAKE" || QMAKE="missing"
-
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QMAKE to use with Qt" >&5
-$as_echo_n "checking for the QMAKE to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
-$as_echo "$QMAKE" >&6; }
- fi
- if test x"$QMAKE" = xmissing; then
- as_fn_error $? "Cannot find qmake in your PATH. Verify that the Qt 4 library is properly
-installed with its development tools, or try using --with-qt." "$LINENO" 5
- fi
-
- # Find moc (Meta Object Compiler).
- if test -z "$MOC"; then
- for ac_prog in moc
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_MOC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $MOC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
-for as_dir in $as_dummy
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-MOC=$ac_cv_path_MOC
-if test -n "$MOC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
-$as_echo "$MOC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$MOC" && break
-done
-test -n "$MOC" || MOC="missing"
-
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MOC to use with Qt" >&5
-$as_echo_n "checking for the MOC to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
-$as_echo "$MOC" >&6; }
- fi
- if test x"$MOC" = xmissing; then
- as_fn_error $? "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
- fi
-
- # Find uic (User Interface Compiler).
- if test -z "$UIC"; then
- for ac_prog in uic
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_UIC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $UIC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
-for as_dir in $as_dummy
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-UIC=$ac_cv_path_UIC
-if test -n "$UIC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
-$as_echo "$UIC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$UIC" && break
-done
-test -n "$UIC" || UIC="missing"
-
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the UIC to use with Qt" >&5
-$as_echo_n "checking for the UIC to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
-$as_echo "$UIC" >&6; }
- fi
- if test x"$UIC" = xmissing; then
- as_fn_error $? "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
- fi
-
- # Find rcc (Qt Resource Compiler).
- if test -z "$RCC"; then
- for ac_prog in rcc
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_RCC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $RCC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
-for as_dir in $as_dummy
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-RCC=$ac_cv_path_RCC
-if test -n "$RCC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
-$as_echo "$RCC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$RCC" && break
-done
-test -n "$RCC" || RCC="false"
-
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the rcc to use with Qt" >&5
-$as_echo_n "checking for the rcc to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
-$as_echo "$RCC" >&6; }
- fi
- if test x"$RCC" = xfalse; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
-$as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
- fi
-
- # If we don't know the path to Qt, guess it from the path to qmake.
- if test x"$QT_PATH" = x; then
- QT_PATH=`dirname "$QMAKE"`
- fi
- if test x"$QT_PATH" = x; then
- as_fn_error $? "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
- fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_PATH to use with Qt" >&5
-$as_echo_n "checking for the QT_PATH to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_PATH" >&5
-$as_echo "$QT_PATH" >&6; }
-
- # Get ready to build a test-app with Qt.
-
- # Look for a writable temporary directory.
-
- if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
- echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
- >&5
- for i in /tmp /var/tmp; do
- if test -d "$i" && test -w "$i"; then
- TMPDIR=$i
- export TMPDIR
- echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
- break
- fi
- done
- fi
-
- # Kludge!! QMake has a very strange behavior. For instance, if you
- # install Qt under your $HOME and run QMake somewhere else under your
- # $HOME, it will try to be clever and produce Makefiles with relative
- # include paths. In order to avoid this, we will test QMake from a
- # temporary directory (usually /tmp). Note that this problem was only
- # observed with Qt 4.
- my_configure_pwd=`pwd`
- my_tmpdir="$TMPDIR/conftest$$.dir"
- test -d "$my_tmpdir" || mkdir "$my_tmpdir"
- if test -w "$my_tmpdir" && cd "$my_tmpdir"
- then
- :
- else
- as_fn_error $? "Cannot cd to or write in $my_tmpdir" "$LINENO" 5
- fi
- cat >conftest.h <<_ASEOF
-#include
-
-class Foo: public QObject
-{
- Q_OBJECT;
-public:
- Foo();
- ~Foo() {}
-public slots:
- void setValue(int value);
-signals:
- void valueChanged(int newValue);
-private:
- int value_;
-};
-_ASEOF
-
- cat >conftest.cpp <<_ASEOF
-#include "conftest.h"
-Foo::Foo()
- : value_ (42)
-{
- connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
-}
-
-void Foo::setValue(int value)
-{
- value_ = value;
-}
-
-int main()
-{
- Foo f;
-}
-_ASEOF
- if $QMAKE -project; then :; else
- as_fn_error $? "Calling $QMAKE -project failed." "$LINENO" 5
- fi
-
- # Find the .pro file generated by qmake.
- pro_file='conftest.dir.pro'
- test -f $pro_file || pro_file=`echo *.pro`
- if test -f "$pro_file"; then :; else
- as_fn_error $? "Can't find the .pro file generated by Qmake." "$LINENO" 5
- fi
-
-
-
-
-
-
-
- echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
- sed 's/^/| /' "$pro_file" >&5
-
- additional_qmake_flags=""
- case $host_os in
- darwin13*) additional_qmake_flags="-spec unsupported/macx-clang-libc++" ;;
- darwin*) additional_qmake_flags="-spec macx-g++" ;;
- esac
-
- if $QMAKE ${additional_qmake_flags} ; then :; else
- as_fn_error $? "Calling $QMAKE failed." "$LINENO" 5
- fi
- # Try to compile a simple Qt app.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
-$as_echo_n "checking whether we can build a simple Qt app... " >&6; }
-if ${at_cv_qt_build+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- at_cv_qt_build=ko
- : ${MAKE=make}
-
- if $MAKE >&5 2>&1; then
- at_cv_qt_build='ok, looks like Qt 4'
- else
- echo "$as_me:$LINENO: Build failed, trying to #include \
-instead" >&5
- sed 's///' conftest.h > tmp.h && mv tmp.h conftest.h
- if $MAKE >&5 2>&1; then
- at_cv_qt_build='ok, looks like Qt 3'
- else
- # Sometimes (such as on Debian) build will fail because Qt hasn't been
- # installed in debug mode and qmake tries (by default) to build apps in
- # debug mode => Try again in release mode.
- echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
- >&5
-
- # Tweak the value of CONFIG in the .pro file for +release.
-
- qt_conf=''
- for at_mod in +release; do
- at_mod=`echo "$at_mod" | sed 's/^-//; tough
- s/^+//; beef
- :ough
- s/^/CONFIG -= /;n
- :eef
- s/^/CONFIG += /'`
- qt_conf="$qt_conf
-$at_mod"
- done
- echo "$qt_conf" | sed 1d >>"$pro_file"
-
-
- sed 's///' conftest.h > tmp.h && mv tmp.h conftest.h
- if $MAKE >&5 2>&1; then
- at_cv_qt_build='ok, looks like Qt 4, release mode forced'
- else
- echo "$as_me:$LINENO: Build failed, trying to #include \
-instead" >&5
- sed 's///' conftest.h > tmp.h && mv tmp.h conftest.h
- if $MAKE >&5 2>&1; then
- at_cv_qt_build='ok, looks like Qt 3, release mode forced'
- else
- at_cv_qt_build=ko
- echo "$as_me:$LINENO: failed program was:" >&5
- sed 's/^/| /' conftest.h >&5
- echo "$as_me:$LINENO: failed program was:" >&5
- sed 's/^/| /' conftest.cpp >&5
- fi # if make with Qt3-style #include and release mode forced.
- fi # if make with Qt4-style #include and release mode forced.
- fi # if make with Qt3-style #include.
- fi # if make with Qt4-style #include.
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
-$as_echo "$at_cv_qt_build" >&6; }
- if test x"$at_cv_qt_build" = xko; then
- as_fn_error $? "Cannot build a test Qt program" "$LINENO" 5
- fi
- QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
-
-
- # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
- # It starts by removing the beginning of the line, removing references to
- # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
- # all variable uses by QT_.
- qt_sed_filter='s///;
- s/$(SUBLIBS)//g;
- s/^ *//;
- s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
-
- # Find the Makefile (qmake happens to generate a fake Makefile which invokes
- # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
- # Makefile.Release. The reason is that the main difference is that release
- # uses -Os and debug -g. We can override -Os by passing another -O but we
- # usually don't override -g.
- if test -f Makefile.Release; then
- at_mfile='Makefile.Release'
- else
- at_mfile='Makefile'
- fi
- if test -f $at_mfile; then :; else
- cd "$my_configure_pwd"
- as_fn_error $? "Cannot find the Makefile generated by qmake." "$LINENO" 5
- fi
-
- # Find the DEFINES of Qt (should have been named CPPFLAGS).
- if test -z "$QT_DEFINES"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
-$as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
-if ${at_cv_env_QT_DEFINES+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
-$as_echo "$at_cv_env_QT_DEFINES" >&6; }
- QT_DEFINES="$at_cv_env_QT_DEFINES"
- fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_DEFINES to use with Qt" >&5
-$as_echo_n "checking for the QT_DEFINES to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_DEFINES" >&5
-$as_echo "$QT_DEFINES" >&6; }
-
- # Find the CFLAGS of Qt (We can use Qt in C?!)
- if test -z "$QT_CFLAGS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
-$as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
-if ${at_cv_env_QT_CFLAGS+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
-$as_echo "$at_cv_env_QT_CFLAGS" >&6; }
- QT_CFLAGS="$at_cv_env_QT_CFLAGS"
- fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CFLAGS to use with Qt" >&5
-$as_echo_n "checking for the QT_CFLAGS to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
-$as_echo "$QT_CFLAGS" >&6; }
-
- # Find the CXXFLAGS of Qt.
- if test -z "$QT_CXXFLAGS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
-$as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
-if ${at_cv_env_QT_CXXFLAGS+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
-$as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
- QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
- fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CXXFLAGS to use with Qt" >&5
-$as_echo_n "checking for the QT_CXXFLAGS to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5
-$as_echo "$QT_CXXFLAGS" >&6; }
-
- # Find the INCPATH of Qt.
- if test -z "$QT_INCPATH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
-$as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
-if ${at_cv_env_QT_INCPATH+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
-$as_echo "$at_cv_env_QT_INCPATH" >&6; }
- QT_INCPATH="$at_cv_env_QT_INCPATH"
- fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_INCPATH to use with Qt" >&5
-$as_echo_n "checking for the QT_INCPATH to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_INCPATH" >&5
-$as_echo "$QT_INCPATH" >&6; }
-
- QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
-
-
- # Find the LFLAGS of Qt (Should have been named LDFLAGS)
- if test -z "$QT_LDFLAGS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
-$as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
-if ${at_cv_env_QT_LDFLAGS+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
-$as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
- QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
- fi
-
- QT_LFLAGS=$QT_LDFLAGS
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LDFLAGS to use with Qt" >&5
-$as_echo_n "checking for the QT_LDFLAGS to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDFLAGS" >&5
-$as_echo "$QT_LDFLAGS" >&6; }
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
-$as_echo_n "checking whether host operating system is Darwin... " >&6; }
- at_darwin="no"
- case $host_os in
- darwin*)
- at_darwin="yes"
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
-$as_echo "$at_darwin" >&6; }
-
- # Find the LIBS of Qt.
- if test -z "$QT_LIBS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
-$as_echo_n "checking for the LIBS to use with Qt... " >&6; }
-if ${at_cv_env_QT_LIBS+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
- if test x$at_darwin = xyes; then
- # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
- # -F properly. The "bug" has been fixed on 22 October 2006
- # by Peter O'Gorman but we provide backward compatibility here.
- at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
- | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
- fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
-$as_echo "$at_cv_env_QT_LIBS" >&6; }
- QT_LIBS="$at_cv_env_QT_LIBS"
- fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LIBS to use with Qt" >&5
-$as_echo_n "checking for the QT_LIBS to use with Qt... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
-$as_echo "$QT_LIBS" >&6; }
-
- cd "$my_configure_pwd" || echo 'WTF!'
- rm -rf "$my_tmpdir"
-
- fi
- # clean and dispatch the collected flags
-
- TMP_CFLAGS="${QT_CFLAGS}";TMP_CXXFLAGS="${QT_CXXFLAGS}";TMP_CPPFLAGS="${QT_CPPFLAGS}";TMP_LDFLAGS="${QT_LDFLAGS}";TMP_LIBS="${QT_LIBS}";
-
-
- unset QT_CFLAGS;unset QT_CXXFLAGS;unset QT_CPPFLAGS;unset QT_LDFLAGS;unset QT_LIBS;
-
- LC_SCATTER_FLAGS_list="$TMP_CPPFLAGS $TMP_CXXFLAGS $TMP_LDFLAGS $TMP_LIBS $QT_DEFINES"
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
-
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while test -n "$LC_SCATTER_FLAGS_flag"
- do
- case "$LC_SCATTER_FLAGS_flag" in
- -l*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then QT_LIBS="$QT_LIBS $LC_SCATTER_FLAGS_flag"
- else
-if ${QT_LIBS+:} false; then :
-
- case " $QT_LIBS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LIBS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: QT_LIBS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append QT_LIBS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LIBS=\"\$QT_LIBS\""; } >&5
- (: QT_LIBS="$QT_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- QT_LIBS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LIBS=\"\$QT_LIBS\""; } >&5
- (: QT_LIBS="$QT_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -L*|-framework*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then QT_LDFLAGS="$QT_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${QT_LDFLAGS+:} false; then :
-
- case " $QT_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: QT_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append QT_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LDFLAGS=\"\$QT_LDFLAGS\""; } >&5
- (: QT_LDFLAGS="$QT_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- QT_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LDFLAGS=\"\$QT_LDFLAGS\""; } >&5
- (: QT_LDFLAGS="$QT_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -I*|-U*|-D*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then QT_CPPFLAGS="$QT_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${QT_CPPFLAGS+:} false; then :
-
- case " $QT_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: QT_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append QT_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CPPFLAGS=\"\$QT_CPPFLAGS\""; } >&5
- (: QT_CPPFLAGS="$QT_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- QT_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CPPFLAGS=\"\$QT_CPPFLAGS\""; } >&5
- (: QT_CPPFLAGS="$QT_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then QT_CPPFLAGS="$QT_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${QT_CPPFLAGS+:} false; then :
-
- case " $QT_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: QT_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append QT_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CPPFLAGS=\"\$QT_CPPFLAGS\""; } >&5
- (: QT_CPPFLAGS="$QT_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- QT_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CPPFLAGS=\"\$QT_CPPFLAGS\""; } >&5
- (: QT_CPPFLAGS="$QT_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -Wl,-F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then QT_LDFLAGS="$QT_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${QT_LDFLAGS+:} false; then :
-
- case " $QT_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: QT_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append QT_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LDFLAGS=\"\$QT_LDFLAGS\""; } >&5
- (: QT_LDFLAGS="$QT_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- QT_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_LDFLAGS=\"\$QT_LDFLAGS\""; } >&5
- (: QT_LDFLAGS="$QT_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -Wl,*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib QT" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib QT" >&2;};;
- -*)
- as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$LC_SCATTER_FLAGS_flag" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag" >&5
-$as_echo_n "checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag... " >&6; }
-if eval \${$as_CACHEVAR+:} false; then :
- $as_echo_n "(cached) " >&6
-else
-
- ax_check_save_flags=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS $LC_SCATTER_FLAGS_flag"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_compile "$LINENO"; then :
- eval "$as_CACHEVAR=yes"
-else
- eval "$as_CACHEVAR=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CXXFLAGS=$ax_check_save_flags
-fi
-eval ac_res=\$$as_CACHEVAR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then QT_CXXFLAGS="$QT_CXXFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${QT_CXXFLAGS+:} false; then :
-
- case " $QT_CXXFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CXXFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: QT_CXXFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append QT_CXXFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CXXFLAGS=\"\$QT_CXXFLAGS\""; } >&5
- (: QT_CXXFLAGS="$QT_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- QT_CXXFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : QT_CXXFLAGS=\"\$QT_CXXFLAGS\""; } >&5
- (: QT_CXXFLAGS="$QT_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&2;}
-fi
-;;
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&5
-$as_echo "$as_me: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&2;};;
- esac
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
-
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_SCATTER_FLAGS_*}
-
- QT_FRAMEWORKS_PATH=`$QMAKE -query QT_INSTALL_LIBS`
- QT_PLUGINS_PATH=`$QMAKE -query QT_INSTALL_PLUGINS`
-
- if [[ "$QT_CXXFLAGS" =~ $(echo "(^|[[:space:]]+)-mmacosx-version-min(=?|[[:space:]]*)(.*)$") ]]
- then MACOSX_VERSION_MIN=${BASH_REMATCH[3]%% -*}
- MACOSX_VERSION_MIN=${MACOSX_VERSION_MIN%% } # strip tailing blanks
- else unset MACOSX_VERSION_MIN
- fi
-
- if [[ -n $MACOSX_VERSION_MIN ]]
- then
- unset STRIP_ARG_memo
- if test "$QT_CXXFLAGS" = "-mmacosx-version-min"
- then QT_CXXFLAGS=
- else while test "$QT_CXXFLAGS" != "$STRIP_ARG_memo"
- do STRIP_ARG_memo="$QT_CXXFLAGS"
- QT_CXXFLAGS="${QT_CXXFLAGS/#-mmacosx-version-min[[:space:]]/}" # at the beginning
- QT_CXXFLAGS="${QT_CXXFLAGS/%[[:space:]]-mmacosx-version-min/}" # at the end
- QT_CXXFLAGS="${QT_CXXFLAGS//[[:space:]]-mmacosx-version-min[[:space:]]/ }" # all in the middle no consecutive
- done
- fi
- QT_CXXFLAGS=$(echo $QT_CXXFLAGS) # wipe extra blank if any
- unset ${!STRIP_ARG_*}
-
- unset STRIP_ARG_memo
- if test "$QT_CPPFLAGS" = "-mmacosx-version-min"
- then QT_CPPFLAGS=
- else while test "$QT_CPPFLAGS" != "$STRIP_ARG_memo"
- do STRIP_ARG_memo="$QT_CPPFLAGS"
- QT_CPPFLAGS="${QT_CPPFLAGS/#-mmacosx-version-min[[:space:]]/}" # at the beginning
- QT_CPPFLAGS="${QT_CPPFLAGS/%[[:space:]]-mmacosx-version-min/}" # at the end
- QT_CPPFLAGS="${QT_CPPFLAGS//[[:space:]]-mmacosx-version-min[[:space:]]/ }" # all in the middle no consecutive
- done
- fi
- QT_CPPFLAGS=$(echo $QT_CPPFLAGS) # wipe extra blank if any
- unset ${!STRIP_ARG_*}
-
- unset STRIP_ARG_memo
- if test "$QT_LDFLAGS" = "-mmacosx-version-min"
- then QT_LDFLAGS=
- else while test "$QT_LDFLAGS" != "$STRIP_ARG_memo"
- do STRIP_ARG_memo="$QT_LDFLAGS"
- QT_LDFLAGS="${QT_LDFLAGS/#-mmacosx-version-min[[:space:]]/}" # at the beginning
- QT_LDFLAGS="${QT_LDFLAGS/%[[:space:]]-mmacosx-version-min/}" # at the end
- QT_LDFLAGS="${QT_LDFLAGS//[[:space:]]-mmacosx-version-min[[:space:]]/ }" # all in the middle no consecutive
- done
- fi
- QT_LDFLAGS=$(echo $QT_LDFLAGS) # wipe extra blank if any
- unset ${!STRIP_ARG_*}
-
- fi
-else
- # windows part
- QT_FRAMEWORKS_PATH=/Qt
- QT_PATH=$QT_FRAMEWORKS_PATH/bin
- QT_PLUGINS_PATH=$QT_FRAMEWORKS_PATH/plugins
- QT_LIBS="-L/Qt/lib -lmingw32 -lQtGui4 -lQtCore4 -lpoppler-qt4"
- MOCFLAGS="-DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT"
- QT_DEFINES="-DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT"
- QT_CPPFLAGS="$QT_DEFINES -I/Qt/include -I/Qt/include/Qt -I/Qt/include/QtCore -I/Qt/include/QtGui"
- QT_CXXFLAGS="-O2 -frtti -fexceptions -mthreads -Wall $QT_DEFINES"
- QT_CFLAGS="-O2 -Wall $QT_DEFINES"
- MOCFLAGS=$QT_DEFINES
- MOC=$QT_PATH/moc
- QMAKE=$QT_PATH/qmake
-fi
-
- if test x"$at_cv_qt_build" = xko; then
- as_fn_error $? "cannot find Qt!" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Qt port" >&5
-$as_echo "enabling Qt port" >&6; }
- CONFIG_GUI="QT"
- if test x"$CONFIG_OS" = xMACOS; then
- # on Mac we rely on some ObjC code contained in
- # src/Plugins/MacOS
- CONFIG_MACOS="MacOS"
- fi
- fi
- ;;
- no)
- CONFIG_QTPIPES="no"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling X11 port" >&5
-$as_echo "enabling X11 port" >&6; }
- ;;
- *)
- CONFIG_QTPIPES="no"
- as_fn_error $? "bad option --enable-qt=$enable_qt" "$LINENO" 5
- ;;
-esac
-
-# Qt Plugins list
-PLUGINS_LIST="imageformats,accessible"
-if test "$QT5_AVAILABLE" = yes; then
- PLUGINS_LIST="imageformats"
-fi
-#define([PLUGINS_LIST],[imageformats,accessible])
-QT_PLUGINS_LIST="$PLUGINS_LIST"
-# Check whether --enable-QtPlugins was given.
-if test "${enable_QtPlugins+set}" = set; then :
- enableval=$enable_QtPlugins; QT_PLUGINS_LIST=$enableval
-else
- QT_PLUGINS_LIST="$PLUGINS_LIST"
-fi
-
-case $QT_PLUGINS_LIST in
-yes) QT_PLUGINS_LIST="$PLUGINS_LIST";;
-no) unset QT_PLUGINS_LIST
-esac
-
-[[ $enable_qt == no ]] && unset QT_PLUGINS_LIST
-for p in ${QT_PLUGINS_LIST//,/ }
-do [ -d $QT_PLUGINS_PATH/$p ] || as_fn_error $? "QT plugins not found!" "$LINENO" 5
-done
-
-# Qt Pipes
-# Check whether --enable-qtpipes was given.
-if test "${enable_qtpipes+set}" = set; then :
- enableval=$enable_qtpipes;
-else
- enable_qtpipes=$CONFIG_QTPIPES
-fi
-
-
-case "$enable_qtpipes" in
- yes)
- if test x"$CONFIG_GUI" = xQT; then
-
-$as_echo "#define QTPIPES 1" >>confdefs.h
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Qt pipes" >&5
-$as_echo "enabling Qt pipes" >&6; }
- else
- as_fn_error $? "QT not enabled!" "$LINENO" 5
- fi
- ;;
- no)
- if test x"$CONFIG_GUI" = xQT; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Qt pipes" >&5
-$as_echo "disabling Qt pipes" >&6; }
- fi
- ;;
- *)
- as_fn_error $? "bad option --enable-qtpipes=$enable_qtpipes" "$LINENO" 5
- ;;
-esac
-
-# Check whether --enable-cocoa was given.
-if test "${enable_cocoa+set}" = set; then :
- enableval=$enable_cocoa;
-else
- enable_cocoa="no"
-fi
-
-case "$enable_cocoa" in
- yes)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Cocoa port" >&5
-$as_echo "enabling experimental Cocoa port" >&6; }
- COCOA_CFLAGS=""
- COCOA_LDFLAGS="-framework Cocoa"
- CONFIG_GUI="COCOA"
- ;;
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Cocoa port" >&5
-$as_echo "disabling experimental Cocoa port" >&6; }
- ;;
- *)
- as_fn_error $? "bad option --enable-cocoa=$enable_cocoa" "$LINENO" 5
- ;;
-esac
-
-case "$CONFIG_GUI" in
- X11)
- CONFIG_X11="X11 Widkit"
- if test "x${CONFIG_GS}" != "xGhostscript"; then
- CONFIG_X11="$CONFIG_X11 Ghostscript"
- fi
- CONFIG_GUI_DEFINE="X11TEXMACS"
-# AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
- ;;
- COCOA)
- CONFIG_COCOA="Cocoa"
- CONFIG_GUI_DEFINE="AQUATEXMACS"
-# AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
- ;;
- QT)
- CONFIG_QT="Qt"
- CONFIG_GUI_DEFINE="QTTEXMACS"
-# AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
- ;;
-esac
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-#--------------------------------------------------------------------
-# Native PDF renderer based on Hummus
-#--------------------------------------------------------------------
-
-# Check whether --enable-pdf-renderer was given.
-if test "${enable_pdf_renderer+set}" = set; then :
- enableval=$enable_pdf_renderer;
-else
- unset enableval
-fi
-
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking hummus support for native pdf exports" >&5
-$as_echo_n "checking hummus support for native pdf exports... " >&6; }
- exec 3>&6 6>/dev/null
-
- if [[ "$enableval" != no ]]
- then if [[ $CONFIG_GUI != QT ]]
- then
- exec 6>&3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled: needs Qt" >&5
-$as_echo "disabled: needs Qt" >&6; }
-
- else
- ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
-if test "x$ac_cv_header_zlib_h" = xyes; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
-$as_echo_n "checking for deflate in -lz... " >&6; }
-if ${ac_cv_lib_z_deflate+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lz $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char deflate ();
-int
-main ()
-{
-return deflate ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_link "$LINENO"; then :
- ac_cv_lib_z_deflate=yes
-else
- ac_cv_lib_z_deflate=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
-$as_echo "$ac_cv_lib_z_deflate" >&6; }
-if test "x$ac_cv_lib_z_deflate" = xyes; then :
-
- if [[ $USE_FREETYPE -eq 3 ]]
- then
- LC_MERGE_FLAGS_list="-lz"
- if [[ "PDF_LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="-lz"
- #pop the old list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $PDF_LIBS)" # remove unnecessary spaces and add a heading space
- PDF_LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$PDF_LIBS" = "$LC_GETPOP_FLAG_1"
- then PDF_LIBS=${PDF_LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$PDF_LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then PDF_LIBS=$(echo $PDF_LIBS)
- else PDF_LIBS=$(echo $PDF_LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $PDF_LIBS)" # remove unnecessary spaces and add a heading space
- PDF_LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$PDF_LIBS" = "$LC_GETPOP_FLAG_1"
- then PDF_LIBS=${PDF_LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$PDF_LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then PDF_LIBS=$(echo $PDF_LIBS)
- else PDF_LIBS=$(echo $PDF_LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- # append new list
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- PDF_LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do PDF_LIBS="$LC_PREPEND_LIST_flag $PDF_LIBS"
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then PDF_LIBS="$PDF_LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${PDF_LIBS+:} false; then :
-
- case " $PDF_LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: PDF_LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append PDF_LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LIBS=\"\$PDF_LIBS\""; } >&5
- (: PDF_LIBS="$PDF_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- PDF_LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LIBS=\"\$PDF_LIBS\""; } >&5
- (: PDF_LIBS="$PDF_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
-
-$as_echo "#define PDF_RENDERER 1" >>confdefs.h
-
- CONFIG_PDF="Pdf"
-
-
- LC_SCATTER_FLAGS_list="-DPDFHUMMUS_NO_TIFF -DPDFHUMMUS_NO_DCT"
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
-
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
-
- unset ${!LC_GETPOP_FLAG_*}
-
- while test -n "$LC_SCATTER_FLAGS_flag"
- do
- case "$LC_SCATTER_FLAGS_flag" in
- -l*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then PDF_LIBS="$PDF_LIBS $LC_SCATTER_FLAGS_flag"
- else
-if ${PDF_LIBS+:} false; then :
-
- case " $PDF_LIBS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LIBS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: PDF_LIBS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append PDF_LIBS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LIBS=\"\$PDF_LIBS\""; } >&5
- (: PDF_LIBS="$PDF_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
+$as_echo_n "checking size of void *... " >&6; }
+if ${ac_cv_sizeof_void_p+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
else
-
- PDF_LIBS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LIBS=\"\$PDF_LIBS\""; } >&5
- (: PDF_LIBS="$PDF_LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+ if test "$ac_cv_type_void_p" = yes; then
+ { { $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 "cannot compute sizeof (void *)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_void_p=0
+ fi
fi
- fi
-;;
- -L*|-framework*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then PDF_LDFLAGS="$PDF_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${PDF_LDFLAGS+:} false; then :
-
- case " $PDF_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: PDF_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append PDF_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LDFLAGS=\"\$PDF_LDFLAGS\""; } >&5
- (: PDF_LDFLAGS="$PDF_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
-
-else
-
- PDF_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LDFLAGS=\"\$PDF_LDFLAGS\""; } >&5
- (: PDF_LDFLAGS="$PDF_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
+$as_echo "$ac_cv_sizeof_void_p" >&6; }
- fi
-;;
- -I*|-U*|-D*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then PDF_CPPFLAGS="$PDF_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${PDF_CPPFLAGS+:} false; then :
- case " $PDF_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: PDF_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
- as_fn_append PDF_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CPPFLAGS=\"\$PDF_CPPFLAGS\""; } >&5
- (: PDF_CPPFLAGS="$PDF_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
+_ACEOF
-else
- PDF_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CPPFLAGS=\"\$PDF_CPPFLAGS\""; } >&5
- (: PDF_CPPFLAGS="$PDF_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on a 64-bits computer" >&5
+$as_echo_n "checking if we are on a 64-bits computer... " >&6; }
+if test "$ac_cv_sizeof_void_p" = "8"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ CONFIG_WORD_LENGTH="8"
+ CONFIG_WORD_LENGTH_INC="7"
+ CONFIG_WORD_MASK="0xfffffffffffffff8"
+ CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
+elif test "$ac_cv_sizeof_void_p" = "0"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ CONFIG_WORD_LENGTH="8"
+ CONFIG_WORD_LENGTH_INC="7"
+ CONFIG_WORD_MASK="0xfffffffffffffff8"
+ CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
- fi
+case "${host}" in
+ i*86-*-linux* | x86_64-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
+$as_echo "final adjustments for an Intel or AMD GNU/Linux host" >&6; }
+ CONFIG_OS_SUFFIX="i386-pc-linux-gnu"
+ CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
+ CONFIG_QTPIPES="yes"
+ ;;
+ i*86-*-freebsd* | x86_64-*-freebsd*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
+$as_echo "final adjustments for an Intel or AMD GNU/BSD host" >&6; }
+ CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
+ ;;
+ i*86-*-solaris*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMS Solaris host" >&5
+$as_echo "final adjustments for an Intel or AMS Solaris host" >&6; }
+ CONFIG_CXXOPTIMIZE="-O3"
+ CONFIG_BPATH="-Wl,-R,"
+ X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
+ ;;
+ *mingw*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for mingw host" >&5
+$as_echo "final adjustments for mingw host" >&6; }
+ CONFIG_OS=MINGW
+ CONFIG_QTPIPES="yes"
+ CONFIG_OS_COMPAT="Windows"
+ CPPFLAGS="$CPPFLAGS -I/usr/local/include -I."
+ CONFIG_LDRT="-L/mingw/lib -lmingw32 -lmingwex"
+ GUILE_LDFLAGS="-lmingwex $GUILE_LDFLAGS -lintl" #added mingwex to mask the internal guile readdir function
+ ;;
+ *-*-cygwin)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for cygwin host" >&5
+$as_echo "final adjustments for cygwin host" >&6; }
+ CONFIG_OS="CYGWIN"
+ CONFIG_BFLAGS="-Wl,-stack,8388608"
+# CXX="export CYGWIN=check_case:strict; $CXX"
+# AC_SUBST(CXX)
+ ;;
+ *apple*darwin*)
+ echo "$ac_t""final adjustments for a MacOS host" 1>&6
+ CONFIG_OS="MACOS"
+ CONFIG_QTPIPES="yes"
+ CONFIG_CXXFLAGS="-I${prefix}/include"
+ CONFIG_BSHARED=""
+ CONFIG_BFLAGS="-framework Cocoa -framework IOKit"
+ CONFIG_BPATH=""
+ CONFIG_SO="dylib"
+ CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
+ GUILE_LDFLAGS=""
+ for l in $($GUILE_CONFIG link)
+ do if [[ $l =~ ^-L ]]
+ then GuileLibPath=${l#-L}
+ elif [[ $l =~ ^-l ]]
+ then lib="$GuileLibPath/lib${l#-l}.a"
+ [[ -f $lib ]] && GUILE_LDFLAGS+="$lib " || GUILE_LDFLAGS+="${l} " #try to use dynamic lib
+ fi
+ done
+# done
+# guile-config doesn't return the need of libnintl
+ [[ -z $LibIntl ]] && LibIntl="$GuileLibPath/libintl.a" && [[ -f $LibIntl ]] && GUILE_LDFLAGS+="$LibIntl "
+# We must also modify the iconv library, that should be in same place than guile's lib
+ [[ -z $LibIconv ]] && LibIconv="$GuileLibPath/libiconv.a" && [[ -f $LibIconv ]] && ICONV_LDFLAGS="$LibIconv "
;;
- -F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then PDF_CPPFLAGS="$PDF_CPPFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${PDF_CPPFLAGS+:} false; then :
-
- case " $PDF_CPPFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CPPFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: PDF_CPPFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
-
- as_fn_append PDF_CPPFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CPPFLAGS=\"\$PDF_CPPFLAGS\""; } >&5
- (: PDF_CPPFLAGS="$PDF_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
+ *darwin*)
+ echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
+ CONFIG_CXXFLAGS="-I${prefix}/include"
+ CONFIG_BSHARED=""
+ CONFIG_BPATH=""
+ CONFIG_SO="dylib"
+ CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
+ ;;
+ powerpc-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a PowerPC/GNU-linux host" >&5
+$as_echo "final adjustments for a PowerPC/GNU-linux host" >&6; }
+ CONFIG_OS="POWERPC_GNU_LINUX"
+ CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
+ ;;
+ *sun*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a SUN/solaris host" >&5
+$as_echo "final adjustments for a SUN/solaris host" >&6; }
+ CONFIG_OS="SUN"
+ CONFIG_BSTATIC=""
+ CONFIG_BSHARED=""
+ CONFIG_BPATH="-Wl,-R,"
+ X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
+ CONFIG_WORD_LENGTH="8"
+ CONFIG_WORD_LENGTH_INC="7"
+ CONFIG_WORD_MASK="0xfffffff8"
+ CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
+ CONFIG_STD_SETENV=""
+ ;;
+ sparc*-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a Sparc host running GNU/Linux" >&5
+$as_echo "final adjustments for a Sparc host running GNU/Linux" >&6; }
+ CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
+ CONFIG_WORD_LENGTH="8"
+ CONFIG_WORD_LENGTH_INC="7"
+ CONFIG_WORD_MASK="0xfffffff8"
+ CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
+ CONFIG_STD_SETENV=""
+ ;;
+ *dec*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a DEC/alpha host" >&5
+$as_echo "final adjustments for a DEC/alpha host" >&6; }
+ CONFIG_BSTATIC=""
+ CONFIG_BSHARED="-shared"
+ CONFIG_STD_SETENV=""
+ ;;
+ *alpha*-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Alpha GNU/Linux host" >&5
+$as_echo "final adjustments for an Alpha GNU/Linux host" >&6; }
+ CONFIG_BSTATIC=""
+ CONFIG_BSHARED="-shared"
+ ;;
+ s390-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
+$as_echo "final adjustments for an IBM S/390 GNU/Linux host" >&6; }
+ CONFIG_STD_SETENV=""
+ ;;
+ ia64-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Itanium GNU/Linux host" >&5
+$as_echo "final adjustments for an Itanium GNU/Linux host" >&6; }
+ CONFIG_BSTATIC=""
+ CONFIG_BSHARED="-shared"
+ ;;
+ hppa*-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
+$as_echo "final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
+ CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
+ CONFIG_BSTATIC=""
+ CONFIG_BSHARED="-shared"
+ ;;
+ *sgi-irix*)
+ echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
+ CONFIG_OS="IRIX"
+ CONFIG_CXXFLAGS=""
+ X_LIBS=-L/usr/lib32
+ CONFIG_BSTATIC=""
+ CONFIG_BSHARED=""
+ CONFIG_BPATH=""
+ X11_LDFLAGS="$X_LIBS -lX11"
+ CONFIG_WORD_MASK="0xfffffff8"
+ CONFIG_STD_SETENV=""
+ CONFIG_CHMOD="chmod"
+ CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
+ ;;
+ m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a supported GNU/Linux host" >&5
+$as_echo "final adjustments for a supported GNU/Linux host" >&6; }
+ ;;
+ *-linux*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic GNU/Linux host" >&5
+$as_echo "final adjustments for a generic GNU/Linux host" >&6; }
+ ;;
+ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic host" >&5
+$as_echo "final adjustments for a generic host" >&6; }
+ ;;
esac
-else
-
- PDF_CPPFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CPPFLAGS=\"\$PDF_CPPFLAGS\""; } >&5
- (: PDF_CPPFLAGS="$PDF_CPPFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
-fi
-
- fi
-;;
- -Wl,-F*)
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then PDF_LDFLAGS="$PDF_LDFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${PDF_LDFLAGS+:} false; then :
+case "${host}" in
+ *apple*darwin10*)
+ echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
+ CONFIG_ARCHS='$(NATIVE_ARCH_ACTUAL)'
+ ;;
+esac
- case " $PDF_LDFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LDFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: PDF_LDFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+#--------------------------------------------------------------------
+# Temporary fix for link problem
+#--------------------------------------------------------------------
- as_fn_append PDF_LDFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LDFLAGS=\"\$PDF_LDFLAGS\""; } >&5
- (: PDF_LDFLAGS="$PDF_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+case "$GXX_VERSION" in
+ 3.* | 4.*)
+# CONFIG_BSTATIC="-static"
+ CONFIG_BSHARED="-dynamic"
;;
esac
-else
+#--------------------------------------------------------------------
+# Check for expat and xcb libraries which exist only on certain OS
+#--------------------------------------------------------------------
- PDF_LDFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_LDFLAGS=\"\$PDF_LDFLAGS\""; } >&5
- (: PDF_LDFLAGS="$PDF_LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
+$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
+if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lexpat $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char XML_ParserCreate ();
+int
+main ()
+{
+return XML_ParserCreate ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_expat_XML_ParserCreate=yes
+else
+ ac_cv_lib_expat_XML_ParserCreate=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
+$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
+if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
+ CONFIG_BSTATIC="-lexpat $CONFIG_BSTATIC";CONFIG_STYPE=A
fi
- fi
-;;
- -Wl,*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib PDF" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped for lib PDF" >&2;};;
- -*)
- as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$LC_SCATTER_FLAGS_flag" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag" >&5
-$as_echo_n "checking whether C++ compiler accepts $LC_SCATTER_FLAGS_flag... " >&6; }
-if eval \${$as_CACHEVAR+:} false; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xcb_disconnect in -lxcb" >&5
+$as_echo_n "checking for xcb_disconnect in -lxcb... " >&6; }
+if ${ac_cv_lib_xcb_xcb_disconnect+:} false; then :
$as_echo_n "(cached) " >&6
else
-
- ax_check_save_flags=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS $LC_SCATTER_FLAGS_flag"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lxcb $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char xcb_disconnect ();
int
main ()
{
-
+return xcb_disconnect ();
;
return 0;
}
_ACEOF
-if ac_fn_cxx_try_compile "$LINENO"; then :
- eval "$as_CACHEVAR=yes"
+if ac_fn_cxx_try_link "$LINENO"; then :
+ ac_cv_lib_xcb_xcb_disconnect=yes
else
- eval "$as_CACHEVAR=no"
+ ac_cv_lib_xcb_xcb_disconnect=no
fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CXXFLAGS=$ax_check_save_flags
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcb_xcb_disconnect" >&5
+$as_echo "$ac_cv_lib_xcb_xcb_disconnect" >&6; }
+if test "x$ac_cv_lib_xcb_xcb_disconnect" = xyes; then :
+ CONFIG_BSTATIC="-lxcb $CONFIG_BSTATIC";CONFIG_STYPE=B
fi
-eval ac_res=\$$as_CACHEVAR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
-
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then PDF_CXXFLAGS="$PDF_CXXFLAGS $LC_SCATTER_FLAGS_flag"
- else
-if ${PDF_CXXFLAGS+:} false; then :
- case " $PDF_CXXFLAGS " in #(
- *" $LC_SCATTER_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CXXFLAGS already contains \$LC_SCATTER_FLAGS_flag"; } >&5
- (: PDF_CXXFLAGS already contains $LC_SCATTER_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
- as_fn_append PDF_CXXFLAGS " $LC_SCATTER_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CXXFLAGS=\"\$PDF_CXXFLAGS\""; } >&5
- (: PDF_CXXFLAGS="$PDF_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+#--------------------------------------------------------------------
+# Memory allocation options
+#--------------------------------------------------------------------
+# Check whether --enable-fastalloc was given.
+if test "${enable_fastalloc+set}" = set; then :
+ enableval=$enable_fastalloc;
else
+ enable_fastalloc="yes"
+fi
- PDF_CXXFLAGS=$LC_SCATTER_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : PDF_CXXFLAGS=\"\$PDF_CXXFLAGS\""; } >&5
- (: PDF_CXXFLAGS="$PDF_CXXFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+case "$enable_fastalloc" in
+ yes)
+ ;;
+ no)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling fast allocator for small objects" >&5
+$as_echo "disabling fast allocator for small objects" >&6; }
-fi
+$as_echo "#define NO_FAST_ALLOC 1" >>confdefs.h
- fi
+ ;;
+ *)
+ as_fn_error $? "bad option --enable-fastalloc=$enable_fastalloc" "$LINENO" 5
+ ;;
+esac
+
+#--------------------------------------------------------------------
+# Experimental options
+#--------------------------------------------------------------------
+# Check whether --enable-experimental was given.
+if test "${enable_experimental+set}" = set; then :
+ enableval=$enable_experimental;
else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&5
-$as_echo "$as_me: WARNING: Flag $LC_SCATTER_FLAGS_flag dropped" >&2;}
+ enable_experimental="no"
fi
-;;
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&5
-$as_echo "$as_me: WARNING: Flags $LC_SCATTER_FLAGS_flag NOT managed" >&2;};;
- esac
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_SCATTER_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_SCATTER_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_SCATTER_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_SCATTER_FLAGS_list=${LC_SCATTER_FLAGS_list#}; unset LC_SCATTER_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_SCATTER_FLAGS_list } # strip heading
- LC_SCATTER_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_SCATTER_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list)
- else LC_SCATTER_FLAGS_list=$(echo $LC_SCATTER_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_SCATTER_FLAGS_flag})
- fi
+case "$enable_experimental" in
+ yes)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental style rewriting code" >&5
+$as_echo "enabling experimental style rewriting code" >&6; }
- LC_SCATTER_FLAGS_flag=$(echo $LC_SCATTER_FLAGS_flag) # normalize whitespaces
- LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag//\/\//\/} # normalize path separator
+$as_echo "#define EXPERIMENTAL 1" >>confdefs.h
- if [[ "$LC_SCATTER_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_SCATTER_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
+ ;;
+ no)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental style rewriting code" >&5
+$as_echo "disabling experimental style rewriting code" >&6; }
+ CONFIG_EXPERIMENTAL=""
+ ;;
+ *)
+ as_fn_error $? "bad option --enable-experimental=$enable_experimental" "$LINENO" 5
+ ;;
+esac
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_SCATTER_FLAGS_flag=${LC_SCATTER_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
+#--------------------------------------------------------------------
+# MacOS X extensions (spellchecker, image loading)
+#--------------------------------------------------------------------
+
+if test x"$CONFIG_OS" = xMACOS; then
- done
- unset ${!LC_SCATTER_FLAGS_*}
+# Check whether --enable-macosx-extensions was given.
+if test "${enable_macosx_extensions+set}" = set; then :
+ enableval=$enable_macosx_extensions;
+else
+ enable_macosx_extensions="yes"
+fi
+
+case "$enable_macosx_extensions" in
+ yes)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Mac OSX extensions" >&5
+$as_echo "enabling Mac OSX extensions" >&6; }
+$as_echo "#define MACOSX_EXTENSIONS 1" >>confdefs.h
- if [ -z "" -a -n "$SEMISTATIC" ]
- then PDF_LIBS="$SEMISTATIC $PDF_LIBS $SEMIDYNAMIC"
- fi
+ CONFIG_MACOS="MacOS"
+# CONFIG_BFLAGS="$CONFIG_BFLAGS -framework IOKit"
+ ;;
+ no)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Mac OSX extensions" >&5
+$as_echo "disabling Mac OSX extensions" >&6; }
+ CONFIG_MACOS=""
+ ;;
+ *)
+ as_fn_error $? "bad option --enable-macosx-extensions=$enable_macosx_extensions" "$LINENO" 5
+ ;;
+esac
- LC_MERGE_FLAGS_list="$PDF_LDFLAGS"
- if [[ "LDFLAGS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$PDF_LDFLAGS"
- #pop the old list
+fi
+
+#--------------------------------------------------------------------
+# Native PDF renderer based on Hummus
+#--------------------------------------------------------------------
+
+ # Check whether --enable-pdf-renderer was given.
+if test "${enable_pdf_renderer+set}" = set; then :
+ enableval=$enable_pdf_renderer;
+else
+ enable_pdf_renderer="yes"
+fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ case "$enable_pdf_renderer" in
+ yes)
+ SAVE_CPPFLAGS="$CPPFLAGS"
+ SAVE_LDFLAGS="$LDFLAGS"
+ SAVE_LIBS="$LIBS"
+ if test -z "$FREETYPE_CFLAGS"; then
+ FREETYPE_CFLAGS=`freetype-config --cflags`
+ fi
+ CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
+ if test -z "$FREETYPE_LDFLAGS"; then
+ FREETYPE_LDFLAGS=`freetype-config --libs`
+ fi
+ LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
+ ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
+if test "x$ac_cv_header_ft2build_h" = xyes; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether freetype defines T1_EncodingType" >&5
+$as_echo_n "checking whether freetype defines T1_EncodingType... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ #include
+ #include FT_FREETYPE_H
+ #include FT_TYPE1_TABLES_H
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+int
+main ()
+{
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ FT_Library ft_library;
+ T1_EncodingType t;
+ (void) FT_Init_FreeType (&ft_library);
- unset ${!LC_GETPOP_FLAG_*}
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling native PDF renderer" >&5
+$as_echo "enabling native PDF renderer" >&6; }
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+$as_echo "#define PDF_RENDERER 1" >>confdefs.h
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ # CONFIG_PDF="Pdf Pdf/dvipdfmx"
+ # CONFIG_PDF="Pdf Pdf/PDFWriter"
+ CONFIG_PDF="Pdf"
+ PDF_CFLAGS="-DPDFHUMMUS_NO_TIFF -DPDFHUMMUS_NO_DCT"
+ SAVE_LIBS="$SAVE_LIBS -lz"
else
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "cannot find FreeType or your version is < 2.4.8.
+ If you have several versions installed please use the proper freetype-config script to set
+ the environment variables FREETYPE_CFLAGS and FREETYPE_LDFLAGS.
+ " "$LINENO" 5
+ CONFIG_PDF=""
fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
- fi
-
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LDFLAGS)" # remove unnecessary spaces and add a heading space
- LDFLAGS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LDFLAGS" = "$LC_GETPOP_FLAG_1"
- then LDFLAGS=${LDFLAGS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LDFLAGS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LDFLAGS=$(echo $LDFLAGS)
- else LDFLAGS=$(echo $LDFLAGS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ CPPFLAGS="$SAVE_CPPFLAGS"
+ LDFLAGS="$SAVE_LDFLAGS"
+ LIBS="$SAVE_LIBS"
+ ;;
+ no)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling native PDF renderer" >&5
+$as_echo "disabling native PDF renderer" >&6; }
+ CONFIG_PDF=""
+ ;;
+ *)
+ as_fn_error $? "bad option --enable-pdf-renderer=$enable_pdf_renderer" "$LINENO" 5
+ ;;
+ esac
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
- unset ${!LC_GETPOP_FLAG_*}
+#--------------------------------------------------------------------
+# Windows console
+#--------------------------------------------------------------------
+if test x"$CONFIG_OS" = xMINGW; then
- done
- # append new list
+# Check whether --enable-console was given.
+if test "${enable_console+set}" = set; then :
+ enableval=$enable_console;
+fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+case "$enable_console" in
+ yes)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Windows console" >&5
+$as_echo "enabling Windows console" >&6; }
+ ;;
+ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Windows console" >&5
+$as_echo "disabling Windows console" >&6; }
+ CONFIG_LDRT="$CONFIG_LDRT -mwindows"
+ ;;
+esac
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+fi
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+#--------------------------------------------------------------------
+# Gui selection
+#--------------------------------------------------------------------
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+CONFIG_X11=""
+CONFIG_COCOA=""
+CONFIG_GUI="X11"
- unset ${!LC_GETPOP_FLAG_*}
+# Check whether --enable-qt was given.
+if test "${enable_qt+set}" = set; then :
+ enableval=$enable_qt;
+else
+ enable_qt="yes"
+fi
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+case "$enable_qt" in
+ yes)
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+#QT has the install dir hard coded in library so we need to fix it manually for relocatable environment
+if test -z $TMBUILDENV
+then
+ QT5_AVAILABLE="no"
+ SAVE_LIBS="$LIBS"
+ LIBS=""
+# AX_HAVE_QT
+ LIBS="$SAVE_LIBS"
+ if test x"$have_qt" = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Qt5 found" >&5
+$as_echo "Qt5 found" >&6; }
+ at_cv_qt_build=ok
+ QMAKE="qmake"
+ MOC="moc"
+ QT5_AVAILABLE="yes"
+ else
+# AC_MSG_RESULT([Qt5 seems not present, trying Qt4...])
-else
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-fi
- fi
+ test x"$TROLL" != x && echo 'ViM rox emacs.'
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+# Check whether --with-qt was given.
+if test "${with_qt+set}" = set; then :
+ withval=$with_qt; QT_PATH=$withval
+else
+ QT_PATH=
+fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ # Find Qt.
+ if test -d /usr/local/Trolltech; then
+ # Try to find the latest version.
+ tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
+ | xargs | sed 's/ */:/g'`
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ # Find qmake.
+ if test -z "$QMAKE"; then
+ for ac_prog in qmake
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_QMAKE+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $QMAKE in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
+for as_dir in $as_dummy
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
+done
+ done
+IFS=$as_save_IFS
- unset ${!LC_GETPOP_FLAG_*}
+ ;;
+esac
+fi
+QMAKE=$ac_cv_path_QMAKE
+if test -n "$QMAKE"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
+$as_echo "$QMAKE" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
- done
- LDFLAGS=
+ test -n "$QMAKE" && break
+done
+test -n "$QMAKE" || QMAKE="missing"
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QMAKE to use with Qt" >&5
+$as_echo_n "checking for the QMAKE to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
+$as_echo "$QMAKE" >&6; }
+ fi
+ if test x"$QMAKE" = xmissing; then
+ as_fn_error $? "Cannot find qmake in your PATH. Verify that the Qt 4 library is properly
+installed with its development tools, or try using --with-qt." "$LINENO" 5
+ fi
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ # Find moc (Meta Object Compiler).
+ if test -z "$MOC"; then
+ for ac_prog in moc
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_MOC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MOC in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
+for as_dir in $as_dummy
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
+done
+ done
+IFS=$as_save_IFS
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ ;;
+esac
+fi
+MOC=$ac_cv_path_MOC
+if test -n "$MOC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
+$as_echo "$MOC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
- unset ${!LC_GETPOP_FLAG_*}
- while [[ $LC_PREPEND_LIST_flag ]]
- do LDFLAGS="$LC_PREPEND_LIST_flag $LDFLAGS"
+ test -n "$MOC" && break
+done
+test -n "$MOC" || MOC="missing"
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MOC to use with Qt" >&5
+$as_echo_n "checking for the MOC to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
+$as_echo "$MOC" >&6; }
fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ if test x"$MOC" = xmissing; then
+ as_fn_error $? "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
fi
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
-
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
-
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ # Find uic (User Interface Compiler).
+ if test -z "$UIC"; then
+ for ac_prog in uic
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_UIC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $UIC in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
+for as_dir in $as_dummy
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
+done
+ done
+IFS=$as_save_IFS
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ ;;
+esac
+fi
+UIC=$ac_cv_path_UIC
+if test -n "$UIC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
+$as_echo "$UIC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
- unset ${!LC_GETPOP_FLAG_*}
+ test -n "$UIC" && break
+done
+test -n "$UIC" || UIC="missing"
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LDFLAGS="$LDFLAGS $LC_MERGE_FLAGS_flag"
else
-if ${LDFLAGS+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the UIC to use with Qt" >&5
+$as_echo_n "checking for the UIC to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
+$as_echo "$UIC" >&6; }
+ fi
+ if test x"$UIC" = xmissing; then
+ as_fn_error $? "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
+ fi
- case " $LDFLAGS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LDFLAGS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ # Find rcc (Qt Resource Compiler).
+ if test -z "$RCC"; then
+ for ac_prog in rcc
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_RCC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $RCC in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
+for as_dir in $as_dummy
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
- as_fn_append LDFLAGS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
+ ;;
esac
-
+fi
+RCC=$ac_cv_path_RCC
+if test -n "$RCC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
+$as_echo "$RCC" >&6; }
else
-
- LDFLAGS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
- (: LDFLAGS="$LDFLAGS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
- LC_MERGE_FLAGS_list="$PDF_LIBS"
- if [[ "LIBS" =~ $(echo "(^|_)LIBS") ]]
- then
- LC_PREPEND_LIST_list="$PDF_LIBS"
- #pop the old list
+ test -n "$RCC" && break
+done
+test -n "$RCC" || RCC="false"
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
-
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the rcc to use with Qt" >&5
+$as_echo_n "checking for the rcc to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
+$as_echo "$RCC" >&6; }
fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ if test x"$RCC" = xfalse; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
+$as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
fi
- unset ${!LC_GETPOP_FLAG_*}
-
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
- else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
-
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ # If we don't know the path to Qt, guess it from the path to qmake.
+ if test x"$QT_PATH" = x; then
+ QT_PATH=`dirname "$QMAKE"`
+ fi
+ if test x"$QT_PATH" = x; then
+ as_fn_error $? "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
+ fi
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_PATH to use with Qt" >&5
+$as_echo_n "checking for the QT_PATH to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_PATH" >&5
+$as_echo "$QT_PATH" >&6; }
-else
+ # Get ready to build a test-app with Qt.
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ # Look for a writable temporary directory.
-fi
+ if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
+ echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
+ >&5
+ for i in /tmp /var/tmp; do
+ if test -d "$i" && test -w "$i"; then
+ TMPDIR=$i
+ export TMPDIR
+ echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
+ break
+ fi
+ done
+ fi
+ # Kludge!! QMake has a very strange behavior. For instance, if you
+ # install Qt under your $HOME and run QMake somewhere else under your
+ # $HOME, it will try to be clever and produce Makefiles with relative
+ # include paths. In order to avoid this, we will test QMake from a
+ # temporary directory (usually /tmp). Note that this problem was only
+ # observed with Qt 4.
+ my_configure_pwd=`pwd`
+ my_tmpdir="$TMPDIR/conftest$$.dir"
+ test -d "$my_tmpdir" || mkdir "$my_tmpdir"
+ if test -w "$my_tmpdir" && cd "$my_tmpdir"
+ then
+ :
+ else
+ as_fn_error $? "Cannot cd to or write in $my_tmpdir" "$LINENO" 5
fi
+ cat >conftest.h <<_ASEOF
+#include
+class Foo: public QObject
+{
+ Q_OBJECT;
+public:
+ Foo();
+ ~Foo() {}
+public slots:
+ void setValue(int value);
+signals:
+ void valueChanged(int newValue);
+private:
+ int value_;
+};
+_ASEOF
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LIBS)" # remove unnecessary spaces and add a heading space
- LIBS=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LIBS" = "$LC_GETPOP_FLAG_1"
- then LIBS=${LIBS#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LIBS } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LIBS=$(echo $LIBS)
- else LIBS=$(echo $LIBS${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ cat >conftest.cpp <<_ASEOF
+#include "conftest.h"
+Foo::Foo()
+ : value_ (42)
+{
+ connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
+}
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+void Foo::setValue(int value)
+{
+ value_ = value;
+}
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+int main()
+{
+ Foo f;
+}
+_ASEOF
+ if $QMAKE -project; then :; else
+ as_fn_error $? "Calling $QMAKE -project failed." "$LINENO" 5
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ # Find the .pro file generated by qmake.
+ pro_file='conftest.dir.pro'
+ test -f $pro_file || pro_file=`echo *.pro`
+ if test -f "$pro_file"; then :; else
+ as_fn_error $? "Can't find the .pro file generated by Qmake." "$LINENO" 5
fi
- unset ${!LC_GETPOP_FLAG_*}
- done
- # append new list
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
- fi
+ echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
+ sed 's/^/| /' "$pro_file" >&5
+
+ additional_qmake_flags=""
+ case $host_os in
+ darwin13*) additional_qmake_flags="-spec unsupported/macx-clang-libc++" ;;
+ darwin*) additional_qmake_flags="-spec macx-g++" ;;
+ esac
- unset ${!LC_GETPOP_FLAG_*}
+ if $QMAKE ${additional_qmake_flags} ; then :; else
+ as_fn_error $? "Calling $QMAKE failed." "$LINENO" 5
+ fi
+ # Try to compile a simple Qt app.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
+$as_echo_n "checking whether we can build a simple Qt app... " >&6; }
+if ${at_cv_qt_build+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ at_cv_qt_build=ko
+ : ${MAKE=make}
- while [[ $LC_PREPEND_LIST_flag ]]
- do
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist $LC_PREPEND_LIST_flag"
+ if $MAKE >&5 2>&1; then
+ at_cv_qt_build='ok, looks like Qt 4'
else
-if ${LC_PREPEND_LIST_nlist+:} false; then :
+ echo "$as_me:$LINENO: Build failed, trying to #include \
+instead" >&5
+ sed 's///' conftest.h > tmp.h && mv tmp.h conftest.h
+ if $MAKE >&5 2>&1; then
+ at_cv_qt_build='ok, looks like Qt 3'
+ else
+ # Sometimes (such as on Debian) build will fail because Qt hasn't been
+ # installed in debug mode and qmake tries (by default) to build apps in
+ # debug mode => Try again in release mode.
+ echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
+ >&5
- case " $LC_PREPEND_LIST_nlist " in #(
- *" $LC_PREPEND_LIST_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist already contains \$LC_PREPEND_LIST_flag"; } >&5
- (: LC_PREPEND_LIST_nlist already contains $LC_PREPEND_LIST_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+ # Tweak the value of CONFIG in the .pro file for +release.
- as_fn_append LC_PREPEND_LIST_nlist " $LC_PREPEND_LIST_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
-esac
+ qt_conf=''
+ for at_mod in +release; do
+ at_mod=`echo "$at_mod" | sed 's/^-//; tough
+ s/^+//; beef
+ :ough
+ s/^/CONFIG -= /;n
+ :eef
+ s/^/CONFIG += /'`
+ qt_conf="$qt_conf
+$at_mod"
+ done
+ echo "$qt_conf" | sed 1d >>"$pro_file"
-else
- LC_PREPEND_LIST_nlist=$LC_PREPEND_LIST_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LC_PREPEND_LIST_nlist=\"\$LC_PREPEND_LIST_nlist\""; } >&5
- (: LC_PREPEND_LIST_nlist="$LC_PREPEND_LIST_nlist") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
+ sed 's///' conftest.h > tmp.h && mv tmp.h conftest.h
+ if $MAKE >&5 2>&1; then
+ at_cv_qt_build='ok, looks like Qt 4, release mode forced'
+ else
+ echo "$as_me:$LINENO: Build failed, trying to #include \
+instead" >&5
+ sed 's///' conftest.h > tmp.h && mv tmp.h conftest.h
+ if $MAKE >&5 2>&1; then
+ at_cv_qt_build='ok, looks like Qt 3, release mode forced'
+ else
+ at_cv_qt_build=ko
+ echo "$as_me:$LINENO: failed program was:" >&5
+ sed 's/^/| /' conftest.h >&5
+ echo "$as_me:$LINENO: failed program was:" >&5
+ sed 's/^/| /' conftest.cpp >&5
+ fi # if make with Qt3-style #include and release mode forced.
+ fi # if make with Qt4-style #include and release mode forced.
+ fi # if make with Qt3-style #include.
+ fi # if make with Qt4-style #include.
fi
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
+$as_echo "$at_cv_qt_build" >&6; }
+ if test x"$at_cv_qt_build" = xko; then
+ as_fn_error $? "Cannot build a test Qt program" "$LINENO" 5
fi
+ QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_list)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_list=${LC_GETPOP_FLAG_1% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_list" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_list=${LC_PREPEND_LIST_list#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_list } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list)
- else LC_PREPEND_LIST_list=$(echo $LC_PREPEND_LIST_list${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
-
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
+ # It starts by removing the beginning of the line, removing references to
+ # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
+ # all variable uses by QT_.
+ qt_sed_filter='s///;
+ s/$(SUBLIBS)//g;
+ s/^ *//;
+ s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ # Find the Makefile (qmake happens to generate a fake Makefile which invokes
+ # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
+ # Makefile.Release. The reason is that the main difference is that release
+ # uses -Os and debug -g. We can override -Os by passing another -O but we
+ # usually don't override -g.
+ if test -f Makefile.Release; then
+ at_mfile='Makefile.Release'
+ else
+ at_mfile='Makefile'
fi
-
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ if test -f $at_mfile; then :; else
+ cd "$my_configure_pwd"
+ as_fn_error $? "Cannot find the Makefile generated by qmake." "$LINENO" 5
fi
- unset ${!LC_GETPOP_FLAG_*}
-
-
- done
- LIBS=
-
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ # Find the DEFINES of Qt (should have been named CPPFLAGS).
+ if test -z "$QT_DEFINES"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
+$as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
+if ${at_cv_env_QT_DEFINES+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
+$as_echo "$at_cv_env_QT_DEFINES" >&6; }
+ QT_DEFINES="$at_cv_env_QT_DEFINES"
+ fi
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_DEFINES to use with Qt" >&5
+$as_echo_n "checking for the QT_DEFINES to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_DEFINES" >&5
+$as_echo "$QT_DEFINES" >&6; }
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
+ # Find the CFLAGS of Qt (We can use Qt in C?!)
+ if test -z "$QT_CFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
+$as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
+if ${at_cv_env_QT_CFLAGS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
+$as_echo "$at_cv_env_QT_CFLAGS" >&6; }
+ QT_CFLAGS="$at_cv_env_QT_CFLAGS"
fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CFLAGS to use with Qt" >&5
+$as_echo_n "checking for the QT_CFLAGS to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
+$as_echo "$QT_CFLAGS" >&6; }
+
+ # Find the CXXFLAGS of Qt.
+ if test -z "$QT_CXXFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
+$as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
+if ${at_cv_env_QT_CXXFLAGS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
+$as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
+ QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
fi
- unset ${!LC_GETPOP_FLAG_*}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CXXFLAGS to use with Qt" >&5
+$as_echo_n "checking for the QT_CXXFLAGS to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5
+$as_echo "$QT_CXXFLAGS" >&6; }
- while [[ $LC_PREPEND_LIST_flag ]]
- do LIBS="$LC_PREPEND_LIST_flag $LIBS"
+ # Find the INCPATH of Qt.
+ if test -z "$QT_INCPATH"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
+$as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
+if ${at_cv_env_QT_INCPATH+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
+$as_echo "$at_cv_env_QT_INCPATH" >&6; }
+ QT_INCPATH="$at_cv_env_QT_INCPATH"
+ fi
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_PREPEND_LIST_nlist)" # remove unnecessary spaces and add a heading space
- LC_PREPEND_LIST_nlist=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_PREPEND_LIST_nlist" = "$LC_GETPOP_FLAG_1"
- then LC_PREPEND_LIST_nlist=${LC_PREPEND_LIST_nlist#}; unset LC_PREPEND_LIST_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_PREPEND_LIST_nlist } # strip heading
- LC_PREPEND_LIST_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_PREPEND_LIST_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist)
- else LC_PREPEND_LIST_nlist=$(echo $LC_PREPEND_LIST_nlist${LC_GETPOP_FLAG_tail#$LC_PREPEND_LIST_flag})
- fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_INCPATH to use with Qt" >&5
+$as_echo_n "checking for the QT_INCPATH to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_INCPATH" >&5
+$as_echo "$QT_INCPATH" >&6; }
- LC_PREPEND_LIST_flag=$(echo $LC_PREPEND_LIST_flag) # normalize whitespaces
- LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag//\/\//\/} # normalize path separator
+ QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
- if [[ "$LC_PREPEND_LIST_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_PREPEND_LIST_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_PREPEND_LIST_flag=${LC_PREPEND_LIST_flag#$LC_GETPOP_FLAG_sepa}
- fi
+ # Find the LFLAGS of Qt (Should have been named LDFLAGS)
+ if test -z "$QT_LDFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
+$as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
+if ${at_cv_env_QT_LDFLAGS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
+$as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
+ QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
fi
- unset ${!LC_GETPOP_FLAG_*}
-
- done
- unset ${!LC_PREPEND_LIST_*}
+ QT_LFLAGS=$QT_LDFLAGS
- else while [ "$LC_MERGE_FLAGS_list" ]
- do
- LC_GETPOP_FLAG_sepa=-
- LC_GETPOP_FLAG_1=" $(echo $LC_MERGE_FLAGS_list)" # remove unnecessary spaces and add a heading space
- LC_MERGE_FLAGS_list=${LC_GETPOP_FLAG_1%% $LC_GETPOP_FLAG_sepa*} # get heading
- if test "$LC_MERGE_FLAGS_list" = "$LC_GETPOP_FLAG_1"
- then LC_MERGE_FLAGS_list=${LC_MERGE_FLAGS_list#}; unset LC_MERGE_FLAGS_flag # flag not found
- else
- LC_GETPOP_FLAG_tail=${LC_GETPOP_FLAG_1#$LC_MERGE_FLAGS_list } # strip heading
- LC_MERGE_FLAGS_flag=${LC_GETPOP_FLAG_tail%% -*} # get flag and data
- if test "$LC_MERGE_FLAGS_flag" = "$LC_GETPOP_FLAG_tail" # is there someting after the flag
- then LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list)
- else LC_MERGE_FLAGS_list=$(echo $LC_MERGE_FLAGS_list${LC_GETPOP_FLAG_tail#$LC_MERGE_FLAGS_flag})
- fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LDFLAGS to use with Qt" >&5
+$as_echo_n "checking for the QT_LDFLAGS to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDFLAGS" >&5
+$as_echo "$QT_LDFLAGS" >&6; }
- LC_MERGE_FLAGS_flag=$(echo $LC_MERGE_FLAGS_flag) # normalize whitespaces
- LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag//\/\//\/} # normalize path separator
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
+$as_echo_n "checking whether host operating system is Darwin... " >&6; }
+ at_darwin="no"
+ case $host_os in
+ darwin*)
+ at_darwin="yes"
+ ;;
+ esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
+$as_echo "$at_darwin" >&6; }
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^-(l|L|D)[[:space:]]+([^[:space:]].*)$") ]]
- then LC_MERGE_FLAGS_flag=-${BASH_REMATCH[1]}${BASH_REMATCH[2]}
- fi
+ # Find the LIBS of Qt.
+ if test -z "$QT_LIBS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
+$as_echo_n "checking for the LIBS to use with Qt... " >&6; }
+if ${at_cv_env_QT_LIBS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
+ if test x$at_darwin = xyes; then
+ # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
+ # -F properly. The "bug" has been fixed on 22 October 2006
+ # by Peter O'Gorman but we provide backward compatibility here.
+ at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
+ | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
+ fi
- if [ $LC_GETPOP_FLAG_sepa != - ] # just return the value
- then LC_MERGE_FLAGS_flag=${LC_MERGE_FLAGS_flag#$LC_GETPOP_FLAG_sepa}
- fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
+$as_echo "$at_cv_env_QT_LIBS" >&6; }
+ QT_LIBS="$at_cv_env_QT_LIBS"
fi
- unset ${!LC_GETPOP_FLAG_*}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LIBS to use with Qt" >&5
+$as_echo_n "checking for the QT_LIBS to use with Qt... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
+$as_echo "$QT_LIBS" >&6; }
+ cd "$my_configure_pwd" || echo 'WTF!'
+ rm -rf "$my_tmpdir"
- if [[ "$LC_MERGE_FLAGS_flag" =~ $(echo "^[:space:]*-Wl,.+") ]]
- then LIBS="$LIBS $LC_MERGE_FLAGS_flag"
- else
-if ${LIBS+:} false; then :
+ fi
+ # MacOS specific: (FIXME! shouldn't we be using qmake -query everywhere?)
+ QT_FRAMEWORKS_PATH=`$QMAKE -query QT_INSTALL_LIBS`
+ QT_PLUGINS_PATH=`$QMAKE -query QT_INSTALL_PLUGINS`
+ if [[ $QT_CFLAGS =~ mmacosx-version-min= ]]
+ then MACOSX_DEPLOYMENT_TARGET="${QT_CFLAGS#*mmacosx-version-min=}"
+ MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET%% *}
+ fi
- case " $LIBS " in #(
- *" $LC_MERGE_FLAGS_flag "*) :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS already contains \$LC_MERGE_FLAGS_flag"; } >&5
- (: LIBS already contains $LC_MERGE_FLAGS_flag) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } ;; #(
- *) :
+else
+ #windows part
+ QT_FRAMEWORKS_PATH=/Qt
+ QT_PATH=$QT_FRAMEWORKS_PATH/bin
+ QT_PLUGINS_PATH=$QT_FRAMEWORKS_PATH/plugins
+ QT_LIBS="-L/Qt/lib -lmingw32 -lQtGui4 -lQtCore4 -lpoppler-qt4"
+ MOCFLAGS="-DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT"
+ QT_DEFINES="-DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT"
+ QT_CPPFLAGS="$QT_DEFINES -I/Qt/include -I/Qt/include/Qt -I/Qt/include/QtCore -I/Qt/include/QtGui"
+ QT_CXXFLAGS="-O2 -frtti -fexceptions -mthreads -Wall $QT_DEFINES"
+ QT_CFLAGS="-O2 -Wall $QT_DEFINES"
+ MOCFLAGS=$QT_DEFINES
+ MOC=$QT_PATH/moc
+ QMAKE=$QT_PATH/qmake
+fi
- as_fn_append LIBS " $LC_MERGE_FLAGS_flag"
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- ;;
+ if test x"$at_cv_qt_build" = xko; then
+ as_fn_error $? "cannot find Qt!" "$LINENO" 5
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Qt port" >&5
+$as_echo "enabling Qt port" >&6; }
+ CONFIG_GUI="QT"
+ if test x"$CONFIG_OS" = xMACOS; then
+ # on Mac we rely on some ObjC code contained in
+ # src/Plugins/MacOS
+ CONFIG_MACOS="MacOS"
+ fi
+ fi
+ ;;
+ no)
+ CONFIG_QTPIPES="no"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling X11 port" >&5
+$as_echo "enabling X11 port" >&6; }
+ ;;
+ *)
+ CONFIG_QTPIPES="no"
+ as_fn_error $? "bad option --enable-qt=$enable_qt" "$LINENO" 5
+ ;;
esac
+# Qt Plugins list
+PLUGINS_LIST="imageformats,accessible"
+if test "$QT5_AVAILABLE" = yes; then
+ PLUGINS_LIST="imageformats"
+fi
+#define([PLUGINS_LIST],[imageformats,accessible])
+QT_PLUGINS_LIST="$PLUGINS_LIST"
+# Check whether --enable-QtPlugins was given.
+if test "${enable_QtPlugins+set}" = set; then :
+ enableval=$enable_QtPlugins; QT_PLUGINS_LIST=$enableval
else
-
- LIBS=$LC_MERGE_FLAGS_flag
- { { $as_echo "$as_me:${as_lineno-$LINENO}: : LIBS=\"\$LIBS\""; } >&5
- (: LIBS="$LIBS") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-
+ QT_PLUGINS_LIST="$PLUGINS_LIST"
fi
- fi
-
- done
- fi
- unset ${!LC_MERGE_FLAGS_*}
-
+case $QT_PLUGINS_LIST in
+yes) QT_PLUGINS_LIST="$PLUGINS_LIST";;
+no) unset QT_PLUGINS_LIST
+esac
- unset ${!LC_COMBINE_FLAGS_*}
+[[ $enable_qt == no ]] && unset QT_PLUGINS_LIST
+for p in ${QT_PLUGINS_LIST//,/ }
+do [ -d $QT_PLUGINS_PATH/$p ] || as_fn_error $? "QT plugins not found!" "$LINENO" 5
+done
+# Qt Pipes
+# Check whether --enable-qtpipes was given.
+if test "${enable_qtpipes+set}" = set; then :
+ enableval=$enable_qtpipes;
+else
+ enable_qtpipes=$CONFIG_QTPIPES
+fi
- exec 6>&3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
-$as_echo "enabled" >&6; }
- else
+case "$enable_qtpipes" in
+ yes)
+ if test x"$CONFIG_GUI" = xQT; then
- exec 6>&3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled: needs freetype >= 2.4.8." >&5
-$as_echo "disabled: needs freetype >= 2.4.8." >&6; }
+$as_echo "#define QTPIPES 1" >>confdefs.h
- fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Qt pipes" >&5
+$as_echo "enabling Qt pipes" >&6; }
+ else
+ as_fn_error $? "QT not enabled!" "$LINENO" 5
+ fi
+ ;;
+ no)
+ if test x"$CONFIG_GUI" = xQT; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Qt pipes" >&5
+$as_echo "disabling Qt pipes" >&6; }
+ fi
+ ;;
+ *)
+ as_fn_error $? "bad option --enable-qtpipes=$enable_qtpipes" "$LINENO" 5
+ ;;
+esac
+# Check whether --enable-cocoa was given.
+if test "${enable_cocoa+set}" = set; then :
+ enableval=$enable_cocoa;
else
-
-
- exec 6>&3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled: needs libz" >&5
-$as_echo "disabled: needs libz" >&6; }
-
-
+ enable_cocoa="no"
fi
+case "$enable_cocoa" in
+ yes)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Cocoa port" >&5
+$as_echo "enabling experimental Cocoa port" >&6; }
+ COCOA_CFLAGS=""
+ COCOA_LDFLAGS="-framework Cocoa"
+ CONFIG_GUI="COCOA"
+ ;;
+ no)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Cocoa port" >&5
+$as_echo "disabling experimental Cocoa port" >&6; }
+ ;;
+ *)
+ as_fn_error $? "bad option --enable-cocoa=$enable_cocoa" "$LINENO" 5
+ ;;
+esac
+
+case "$CONFIG_GUI" in
+ X11)
+ CONFIG_X11="X11 Widkit"
+ if test "x${CONFIG_GS}" != "xGhostscript"; then
+ CONFIG_X11="$CONFIG_X11 Ghostscript"
+ fi
+ CONFIG_GUI_DEFINE="X11TEXMACS"
+# AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
+ ;;
+ COCOA)
+ CONFIG_COCOA="Cocoa"
+ CONFIG_GUI_DEFINE="AQUATEXMACS"
+# AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
+ ;;
+ QT)
+ CONFIG_QT="Qt"
+ CONFIG_GUI_DEFINE="QTTEXMACS"
+# AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
+ ;;
+esac
-else
- exec 6>&3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled: needs zlib.h" >&5
-$as_echo "disabled: needs zlib.h" >&6; }
-fi
- fi
- else
- exec 6>&3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
-$as_echo "disabled" >&6; }
- fi
- PDF_CXX=$PDF_CXXFLAGS
- PDF_CPP=$PDF_CPPFLAGS
- if [[ $enable_dumpflags =~ (^|[[:space:]])PDF($|[[:space:]]) ]]
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: PDF_CFLAGS:$PDF_CFLAGS" >&5
-$as_echo "$as_me: PDF_CFLAGS:$PDF_CFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: PDF_CXXFLAGS:$PDF_CXXFLAGS" >&5
-$as_echo "$as_me: PDF_CXXFLAGS:$PDF_CXXFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: PDF_CPPFLAGS:$PDF_CPPFLAGS" >&5
-$as_echo "$as_me: PDF_CPPFLAGS:$PDF_CPPFLAGS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: PDF_LIBS:$PDF_LIBS" >&5
-$as_echo "$as_me: PDF_LIBS:$PDF_LIBS" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: PDF_LDFLAGS:$PDF_LDFLAGS" >&5
-$as_echo "$as_me: PDF_LDFLAGS:$PDF_LDFLAGS" >&6;}
- fi
-# adaptation layer remove when finished
- PDF_CFLAGS="$PDF_CXXFLAGS $PDF_CPPFLAGS"
- PDF_LDFLAGS=""
@@ -20667,16 +13549,16 @@ if (echo >conf$$.file) 2>/dev/null; then
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
+ # In both cases, we have to default to `cp -p'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
+ as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
- as_ln_s='cp -pR'
+ as_ln_s='cp -p'
fi
else
- as_ln_s='cp -pR'
+ as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
@@ -20736,16 +13618,28 @@ else
as_mkdir_p=false
fi
-
-# as_fn_executable_p FILE
-# -----------------------
-# Test if FILE is an executable regular file.
-as_fn_executable_p ()
-{
- test -f "$1" && test -x "$1"
-} # as_fn_executable_p
-as_test_x='test -x'
-as_executable_p=as_fn_executable_p
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -20767,7 +13661,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# values after options handling.
ac_log="
This file was extended by $as_me, which was
-generated by GNU Autoconf 2.69. Invocation command line was
+generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
@@ -20829,10 +13723,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
config.status
-configured by $0, generated by GNU Autoconf 2.69,
+configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
-Copyright (C) 2012 Free Software Foundation, Inc.
+Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
@@ -20920,7 +13814,7 @@ fi
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
shift
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
CONFIG_SHELL='$SHELL'
diff --git a/src/configure.in b/src/configure.in
index fa6e16e..177642a 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -21,8 +21,14 @@ AC_CANONICAL_HOST
AC_MSG_CHECKING(current Subversion revision number)
SVNREV=`svnversion -n . 2>/dev/null`
-SVNREV=${SVNREV/:/_}
-if { test "$SVNREV" = "" || test "$SVNREV" = "exported" ; } ; then
+SVNREV=${SVNREV/:/-}
+if { test "$SVNREV" = "Unversioned directory"; } ; then
+ SVNREV=`(git rev-list --max-count=100 --pretty=medium address@hidden | sed -rne '/git-svn-id:/ {s,.*://.*@([^ ]+).*,\1,p ;/./ q 0}') 2>/dev/null`
+ if { ! test "$SVNREV" = ""; } ; then
+ SVNREV=svn-"$SVNREV"-git-`git log --oneline | wc -l`-`git log -n 1 --oneline | cut -f1 -d' '`;
+ fi;
+fi
+if { test "$SVNREV" = "" || test "$SVNREV" = "exported"; } ; then
SVNREV=`cat $srcdir/SVNREV`
AC_MSG_RESULT($SVNREV, read from $srcdir/SVNREV)
else
@@ -116,7 +122,7 @@ LC_DLOPEN
#--------------------------------------------------------------------
# Checks for iconv library
#--------------------------------------------------------------------
-LC_ICONV
+AM_ICONV
#--------------------------------------------------------------------
# Checks for freetype library
diff --git a/src/misc/autotroll/config.guess b/src/misc/autotroll/config.guess
index 396482d..1659250 100755
--- a/src/misc/autotroll/config.guess
+++ b/src/misc/autotroll/config.guess
@@ -1,14 +1,12 @@
#! /bin/sh
# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
+# Copyright 1992-2015 Free Software Foundation, Inc.
-timestamp='2006-07-02'
+timestamp='2015-08-20'
# This file 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 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
@@ -17,26 +15,22 @@ timestamp='2006-07-02'
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this program; if not, see .
#
# 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 Per Bothner .
-# Please send patches to . Submit a context
-# diff and a properly formatted ChangeLog entry.
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
+# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+#
+# Please send patches to .
+
me=`echo "$0" | sed -e 's,.*/,,'`
@@ -56,8 +50,7 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-Free Software Foundation, Inc.
+Copyright 1992-2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -139,12 +132,33 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+case "${UNAME_SYSTEM}" in
+Linux|GNU|GNU/*)
+ # If the system lacks a compiler, then just pick glibc.
+ # We could probably try harder.
+ LIBC=gnu
+
+ eval $set_cc_for_build
+ cat <<-EOF > $dummy.c
+ #include
+ #if defined(__UCLIBC__)
+ LIBC=uclibc
+ #elif defined(__dietlibc__)
+ LIBC=dietlibc
+ #else
+ LIBC=gnu
+ #endif
+ EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
+ ;;
+esac
+
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:NetBSD:*:*)
# NetBSD (nbsd) targets should (where applicable) match one or
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format. This provides both forward
@@ -154,22 +168,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
+ /sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || \
+ echo unknown)`
case "${UNAME_MACHINE_ARCH}" in
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ earmv*)
+ arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
+ endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
+ machine=${arch}${endian}-unknown
+ ;;
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
# to ELF recently, or will in the future.
case "${UNAME_MACHINE_ARCH}" in
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
eval $set_cc_for_build
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep __ELF__ >/dev/null
+ | grep -q __ELF__
then
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
# Return netbsd for either. FIX?
@@ -179,7 +201,14 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
fi
;;
*)
- os=netbsd
+ os=netbsd
+ ;;
+ esac
+ # Determine ABI tags.
+ case "${UNAME_MACHINE_ARCH}" in
+ earm*)
+ expr='s/^earmv[0-9]/-eabi/;s/eb$//'
+ abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
;;
esac
# The OS release
@@ -192,13 +221,17 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
release='-gnu'
;;
*)
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
;;
esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- echo "${machine}-${os}${release}"
+ echo "${machine}-${os}${release}${abi}"
+ exit ;;
+ *:Bitrig:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
exit ;;
*:OpenBSD:*:*)
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
@@ -216,13 +249,16 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:MirBSD:*:*)
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
exit ;;
+ *:Sortix:*:*)
+ echo ${UNAME_MACHINE}-unknown-sortix
+ exit ;;
alpha:OSF1:*:*)
case $UNAME_RELEASE in
*4.0)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
;;
*5.*)
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
;;
esac
# According to Compaq, /usr/sbin/psrinfo has been available on
@@ -268,7 +304,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- exit ;;
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+ exitcode=$?
+ trap '' 0
+ exit $exitcode ;;
Alpha\ *:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# Should we change UNAME_MACHINE based on the output of uname instead
@@ -294,12 +333,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
echo s390-ibm-zvmoe
exit ;;
*:OS400:*:*)
- echo powerpc-ibm-os400
+ echo powerpc-ibm-os400
exit ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit ;;
- arm:riscos:*:*|arm:RISCOS:*:*)
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
echo arm-unknown-riscos
exit ;;
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
@@ -323,14 +362,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
case `/usr/bin/uname -p` in
sparc) echo sparc-icl-nx7; exit ;;
esac ;;
+ s390x:SunOS:*:*)
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
sun4H:SunOS:5.*:*)
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
- i86pc:SunOS:5.*:*)
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
+ echo i386-pc-auroraux${UNAME_RELEASE}
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:6*:*)
# According to config.sub, this is the proper way to canonicalize
@@ -374,23 +432,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# MiNT. But MiNT is downward compatible to TOS, so this should
# be no problem.
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
- exit ;;
+ exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
m68k:machten:*:*)
echo m68k-apple-machten${UNAME_RELEASE}
exit ;;
@@ -460,8 +518,8 @@ EOF
echo m88k-motorola-sysv3
exit ;;
AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
then
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
@@ -474,7 +532,7 @@ EOF
else
echo i586-dg-dgux${UNAME_RELEASE}
fi
- exit ;;
+ exit ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
echo m88k-dolphin-sysv3
exit ;;
@@ -531,15 +589,16 @@ EOF
echo rs6000-ibm-aix3.2
fi
exit ;;
- *:AIX:*:[45])
+ *:AIX:*:[4567])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
else
IBM_ARCH=powerpc
fi
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
+ if [ -x /usr/bin/lslpp ] ; then
+ IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
+ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
else
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
@@ -574,52 +633,52 @@ EOF
9000/[678][0-9][0-9])
if [ -x /usr/bin/getconf ]; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
- 532) # CPU_PA_RISC2_0
- case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;;
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- esac ;;
- esac
+ esac ;;
+ esac
fi
if [ "${HP_ARCH}" = "" ]; then
eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
+ sed 's/^ //' << EOF >$dummy.c
- #define _HPUX_SOURCE
- #include
- #include
+ #define _HPUX_SOURCE
+ #include
+ #include
- int main ()
- {
- #if defined(_SC_KERNEL_BITS)
- long bits = sysconf(_SC_KERNEL_BITS);
- #endif
- long cpu = sysconf (_SC_CPU_VERSION);
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
- case CPU_PA_RISC2_0:
- #if defined(_SC_KERNEL_BITS)
- switch (bits)
- {
- case 64: puts ("hppa2.0w"); break;
- case 32: puts ("hppa2.0n"); break;
- default: puts ("hppa2.0"); break;
- } break;
- #else /* !defined(_SC_KERNEL_BITS) */
- puts ("hppa2.0"); break;
- #endif
- default: puts ("hppa1.0"); break;
- }
- exit (0);
- }
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
EOF
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
test -z "$HP_ARCH" && HP_ARCH=hppa
@@ -639,7 +698,7 @@ EOF
# => hppa64-hp-hpux11.23
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
- grep __LP64__ >/dev/null
+ grep -q __LP64__
then
HP_ARCH="hppa2.0w"
else
@@ -710,22 +769,22 @@ EOF
exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
- exit ;;
+ exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
- exit ;;
+ exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
- exit ;;
+ exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
- exit ;;
+ exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
- exit ;;
+ exit ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
@@ -749,14 +808,14 @@ EOF
exit ;;
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit ;;
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
5000:UNIX_System_V:4.*:*)
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
@@ -768,37 +827,51 @@ EOF
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
- case ${UNAME_MACHINE} in
- pc98)
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ case ${UNAME_PROCESSOR} in
amd64)
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
*)
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
esac
exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
exit ;;
- i*:MINGW*:*)
+ *:MINGW64*:*)
+ echo ${UNAME_MACHINE}-pc-mingw64
+ exit ;;
+ *:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
exit ;;
+ *:MSYS*:*)
+ echo ${UNAME_MACHINE}-pc-msys
+ exit ;;
i*:windows32*:*)
- # uname -m includes "-pc" on this system.
- echo ${UNAME_MACHINE}-mingw32
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
exit ;;
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
- x86:Interix*:[3456]*)
- echo i586-pc-interix${UNAME_RELEASE}
- exit ;;
- EM64T:Interix*:[3456]*)
- echo x86_64-unknown-interix${UNAME_RELEASE}
- exit ;;
+ *:Interix*:*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ authenticamd | genuineintel | EM64T)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
exit ;;
+ 8664:Windows_NT:*)
+ echo x86_64-pc-mks
+ exit ;;
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
@@ -819,200 +892,160 @@ EOF
exit ;;
*:GNU:*:*)
# the GNU system
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit ;;
*:GNU/*:*:*)
# other systems with GNU libc and userland
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
exit ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
+ aarch64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ aarch64_be:Linux:*:*)
+ UNAME_MACHINE=aarch64_be
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ arc:Linux:*:* | arceb:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ else
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
+ fi
+ fi
exit ;;
avr32*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
cris:Linux:*:*)
- echo cris-axis-linux-gnu
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
exit ;;
crisv32:Linux:*:*)
- echo crisv32-axis-linux-gnu
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+ exit ;;
+ e2k:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
frv:Linux:*:*)
- echo frv-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ hexagon:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ i*86:Linux:*:*)
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
exit ;;
ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m32r*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
- mips:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef mips
- #undef mipsel
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mipsel
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips
- #else
- CPU=
- #endif
- #endif
-EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
- ;;
- mips64:Linux:*:*)
+ mips:Linux:*:* | mips64:Linux:*:*)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#undef CPU
- #undef mips64
- #undef mips64el
+ #undef ${UNAME_MACHINE}
+ #undef ${UNAME_MACHINE}el
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mips64el
+ CPU=${UNAME_MACHINE}el
#else
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips64
+ CPU=${UNAME_MACHINE}
#else
CPU=
#endif
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
;;
- or32:Linux:*:*)
- echo or32-unknown-linux-gnu
+ openrisc*:Linux:*:*)
+ echo or1k-unknown-linux-${LIBC}
exit ;;
- ppc:Linux:*:*)
- echo powerpc-unknown-linux-gnu
+ or32:Linux:*:* | or1k*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
- ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-gnu
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-${LIBC}
exit ;;
- alpha:Linux:*:*)
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
- EV5) UNAME_MACHINE=alphaev5 ;;
- EV56) UNAME_MACHINE=alphaev56 ;;
- PCA56) UNAME_MACHINE=alphapca56 ;;
- PCA57) UNAME_MACHINE=alphapca56 ;;
- EV6) UNAME_MACHINE=alphaev6 ;;
- EV67) UNAME_MACHINE=alphaev67 ;;
- EV68*) UNAME_MACHINE=alphaev68 ;;
- esac
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-${LIBC}
exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
- *) echo hppa-unknown-linux-gnu ;;
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
+ *) echo hppa-unknown-linux-${LIBC} ;;
esac
exit ;;
- parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-gnu
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-${LIBC}
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-${LIBC}
+ exit ;;
+ ppc64le:Linux:*:*)
+ echo powerpc64le-unknown-linux-${LIBC}
+ exit ;;
+ ppcle:Linux:*:*)
+ echo powerpcle-unknown-linux-${LIBC}
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux
+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
exit ;;
sh64*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ tile*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
vax:Linux:*:*)
- echo ${UNAME_MACHINE}-dec-linux-gnu
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
exit ;;
x86_64:Linux:*:*)
- echo x86_64-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
- i*86:Linux:*:*)
- # The BFD linker knows what the default object file format is, so
- # first see if it will tell us. cd to the root directory to prevent
- # problems with other programs or directories called `ld' in the path.
- # Set LC_ALL=C to ensure ld outputs messages in English.
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
- | sed -ne '/supported targets:/!d
- s/[ ][ ]*/ /g
- s/.*supported targets: *//
- s/ .*//
- p'`
- case "$ld_supported_targets" in
- elf32-i386)
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
- ;;
- a.out-i386-linux)
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- exit ;;
- coff-i386)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit ;;
- "")
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
- # one that does not give us useful --help.
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
- exit ;;
- esac
- # Determine whether the default compiler is a.out or elf
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include
- #ifdef __ELF__
- # ifdef __GLIBC__
- # if __GLIBC__ >= 2
- LIBC=gnu
- # else
- LIBC=gnulibc1
- # endif
- # else
- LIBC=gnulibc1
- # endif
- #else
- #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
- LIBC=gnu
- #else
- LIBC=gnuaout
- #endif
- #endif
- #ifdef __dietlibc__
- LIBC=dietlibc
- #endif
-EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^LIBC/{
- s: ::g
- p
- }'`"
- test x"${LIBC}" != x && {
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
- exit
- }
- test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
- ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
# earlier versions are messed up and put the nodename in both
@@ -1020,11 +1053,11 @@ EOF
echo i386-sequent-sysv4
exit ;;
i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms.
- # Use sysv4.2uw... so that sysv4* matches it.
+ # Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
exit ;;
i*86:OS/2:*:*)
@@ -1041,7 +1074,7 @@ EOF
i*86:syllable:*:*)
echo ${UNAME_MACHINE}-pc-syllable
exit ;;
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
echo i386-unknown-lynxos${UNAME_RELEASE}
exit ;;
i*86:*DOS:*:*)
@@ -1056,7 +1089,7 @@ EOF
fi
exit ;;
i*86:*:5:[678]*)
- # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
case `/bin/uname -X | grep "^Machine"` in
*486*) UNAME_MACHINE=i486 ;;
*Pentium) UNAME_MACHINE=i586 ;;
@@ -1084,10 +1117,13 @@ EOF
exit ;;
pc:*:*:*)
# Left here for compatibility:
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
- # the processor, so we play safe by assuming i386.
- echo i386-pc-msdosdjgpp
- exit ;;
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
+ # Note: whatever this is, it MUST be the same as what config.sub
+ # prints for the "djgpp" host, or else GDB configury will decide that
+ # this is a cross-build.
+ echo i586-pc-msdosdjgpp
+ exit ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
exit ;;
@@ -1122,8 +1158,18 @@ EOF
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && { echo i486-ncr-sysv4; exit; } ;;
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+ OS_REL='.3'
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
echo m68k-unknown-lynxos${UNAME_RELEASE}
exit ;;
@@ -1136,7 +1182,7 @@ EOF
rs6000:LynxOS:2.*:*)
echo rs6000-unknown-lynxos${UNAME_RELEASE}
exit ;;
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
echo powerpc-unknown-lynxos${UNAME_RELEASE}
exit ;;
SM[BE]S:UNIX_SV:*:*)
@@ -1156,10 +1202,10 @@ EOF
echo ns32k-sni-sysv
fi
exit ;;
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- # says
- echo i586-unisys-sysv4
- exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says
+ echo i586-unisys-sysv4
+ exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes .
# How about differentiating between stratus architectures? -djm
@@ -1185,11 +1231,11 @@ EOF
exit ;;
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
if [ -d /usr/nec ]; then
- echo mips-nec-sysv${UNAME_RELEASE}
+ echo mips-nec-sysv${UNAME_RELEASE}
else
- echo mips-unknown-sysv${UNAME_RELEASE}
+ echo mips-unknown-sysv${UNAME_RELEASE}
fi
- exit ;;
+ exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
echo powerpc-be-beos
exit ;;
@@ -1199,6 +1245,12 @@ EOF
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ x86_64:Haiku:*:*)
+ echo x86_64-unknown-haiku
+ exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
exit ;;
@@ -1208,6 +1260,15 @@ EOF
SX-6:SUPER-UX:*:*)
echo sx6-nec-superux${UNAME_RELEASE}
exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
Power*:Rhapsody:*:*)
echo powerpc-apple-rhapsody${UNAME_RELEASE}
exit ;;
@@ -1216,9 +1277,31 @@ EOF
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
- case $UNAME_PROCESSOR in
- unknown) UNAME_PROCESSOR=powerpc ;;
- esac
+ eval $set_cc_for_build
+ if test "$UNAME_PROCESSOR" = unknown ; then
+ UNAME_PROCESSOR=powerpc
+ fi
+ if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ case $UNAME_PROCESSOR in
+ i386) UNAME_PROCESSOR=x86_64 ;;
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
+ esac
+ fi
+ fi
+ elif test "$UNAME_PROCESSOR" = i386 ; then
+ # Avoid executing cc on OS X 10.9, as it ships with a stub
+ # that puts up a graphical alert prompting to install
+ # developer tools. Any system running Mac OS X 10.7 or
+ # later (Darwin 11 and later) is required to have a 64-bit
+ # processor. This is not true of the ARM version of Darwin
+ # that Apple uses in portable devices.
+ UNAME_PROCESSOR=x86_64
+ fi
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
@@ -1232,7 +1315,10 @@ EOF
*:QNX:*:4*)
echo i386-pc-qnx
exit ;;
- NSE-?:NONSTOP_KERNEL:*:*)
+ NEO-?:NONSTOP_KERNEL:*:*)
+ echo neo-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSE-*:NONSTOP_KERNEL:*:*)
echo nse-tandem-nsk${UNAME_RELEASE}
exit ;;
NSR-?:NONSTOP_KERNEL:*:*)
@@ -1277,13 +1363,13 @@ EOF
echo pdp10-unknown-its
exit ;;
SEI:*:*:SEIUX)
- echo mips-sei-seiux${UNAME_RELEASE}
+ echo mips-sei-seiux${UNAME_RELEASE}
exit ;;
*:DragonFly:*:*)
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit ;;
*:*VMS:*:*)
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
case "${UNAME_MACHINE}" in
A*) echo alpha-dec-vms ; exit ;;
I*) echo ia64-dec-vms ; exit ;;
@@ -1298,158 +1384,13 @@ EOF
i*86:rdos:*:*)
echo ${UNAME_MACHINE}-pc-rdos
exit ;;
-esac
-
-#echo '(No uname command or uname output not recognized.)' 1>&2
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
-eval $set_cc_for_build
-cat >$dummy.c <
-# include
-#endif
-main ()
-{
-#if defined (sony)
-#if defined (MIPSEB)
- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
- I don't know.... */
- printf ("mips-sony-bsd\n"); exit (0);
-#else
-#include
- printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
- "4"
-#else
- ""
-#endif
- ); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
- printf ("arm-acorn-riscix\n"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
- printf ("m68k-hp-bsd\n"); exit (0);
-#endif
-
-#if defined (NeXT)
-#if !defined (__ARCHITECTURE__)
-#define __ARCHITECTURE__ "m68k"
-#endif
- int version;
- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
- if (version < 4)
- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
- else
- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
- exit (0);
-#endif
-
-#if defined (MULTIMAX) || defined (n16)
-#if defined (UMAXV)
- printf ("ns32k-encore-sysv\n"); exit (0);
-#else
-#if defined (CMU)
- printf ("ns32k-encore-mach\n"); exit (0);
-#else
- printf ("ns32k-encore-bsd\n"); exit (0);
-#endif
-#endif
-#endif
-
-#if defined (__386BSD__)
- printf ("i386-pc-bsd\n"); exit (0);
-#endif
-
-#if defined (sequent)
-#if defined (i386)
- printf ("i386-sequent-dynix\n"); exit (0);
-#endif
-#if defined (ns32000)
- printf ("ns32k-sequent-dynix\n"); exit (0);
-#endif
-#endif
-
-#if defined (_SEQUENT_)
- struct utsname un;
-
- uname(&un);
-
- if (strncmp(un.version, "V2", 2) == 0) {
- printf ("i386-sequent-ptx2\n"); exit (0);
- }
- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
- printf ("i386-sequent-ptx1\n"); exit (0);
- }
- printf ("i386-sequent-ptx\n"); exit (0);
-
-#endif
-
-#if defined (vax)
-# if !defined (ultrix)
-# include
-# if defined (BSD)
-# if BSD == 43
- printf ("vax-dec-bsd4.3\n"); exit (0);
-# else
-# if BSD == 199006
- printf ("vax-dec-bsd4.3reno\n"); exit (0);
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# endif
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# else
- printf ("vax-dec-ultrix\n"); exit (0);
-# endif
-#endif
-
-#if defined (alliant) && defined (i860)
- printf ("i860-alliant-bsd\n"); exit (0);
-#endif
-
- exit (1);
-}
-EOF
-
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
- { echo "$SYSTEM_NAME"; exit; }
-
-# Apollos put the system type in the environment.
-
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
- case `getsysinfo -f cpu_type` in
- c1*)
- echo c1-convex-bsd
- exit ;;
- c2*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
+ i*86:AROS:*:*)
+ echo ${UNAME_MACHINE}-pc-aros
exit ;;
- c34*)
- echo c34-convex-bsd
+ x86_64:VMkernel:*:*)
+ echo ${UNAME_MACHINE}-unknown-esx
exit ;;
- c38*)
- echo c38-convex-bsd
- exit ;;
- c4*)
- echo c4-convex-bsd
- exit ;;
- esac
-fi
+esac
cat >&2 <.
#
# 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.
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
-# Please send patches to . Submit a context
-# diff and a properly formatted ChangeLog entry.
+# Please send patches to .
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
@@ -72,8 +68,7 @@ Report bugs and patches to ."
version="\
GNU config.sub ($timestamp)
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-Free Software Foundation, Inc.
+Copyright 1992-2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -120,12 +115,18 @@ esac
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
- uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
+ kopensolaris*-gnu* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
+ android-linux)
+ os=-linux-android
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
+ ;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
@@ -148,10 +149,13 @@ case $os in
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis | -knuth | -cray)
+ -apple | -axis | -knuth | -cray | -microblaze*)
os=
basic_machine=$1
;;
+ -bluegene*)
+ os=-cnk
+ ;;
-sim | -cisco | -oki | -wec | -winbond)
os=
basic_machine=$1
@@ -166,10 +170,10 @@ case $os in
os=-chorusos
basic_machine=$1
;;
- -chorusrdb)
- os=-chorusrdb
+ -chorusrdb)
+ os=-chorusrdb
basic_machine=$1
- ;;
+ ;;
-hiux*)
os=-hiuxwe2
;;
@@ -214,6 +218,12 @@ case $os in
-isc*)
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
;;
+ -lynx*178)
+ os=-lynxos178
+ ;;
+ -lynx*5)
+ os=-lynxos5
+ ;;
-lynx*)
os=-lynxos
;;
@@ -238,59 +248,91 @@ case $basic_machine in
# Some are omitted here because they have special meanings below.
1750a | 580 \
| a29k \
+ | aarch64 | aarch64_be \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | arc | arceb \
+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
+ | avr | avr32 \
+ | ba \
+ | be32 | be64 \
| bfin \
- | c4x | clipper \
+ | c4x | c8051 | clipper \
| d10v | d30v | dlx | dsp16xx \
- | fr30 | frv \
+ | e2k | epiphany \
+ | fido | fr30 | frv | ft32 \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | hexagon \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
+ | k1om \
+ | le32 | le64 \
+ | lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
- | maxq | mb | microblaze | mcore \
+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
- | mips64vr | mips64vrel \
+ | mips64octeon | mips64octeonel \
| mips64orion | mips64orionel \
+ | mips64r5900 | mips64r5900el \
+ | mips64vr | mips64vrel \
| mips64vr4100 | mips64vr4100el \
| mips64vr4300 | mips64vr4300el \
| mips64vr5000 | mips64vr5000el \
| mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
+ | mipsisa32r6 | mipsisa32r6el \
| mipsisa64 | mipsisa64el \
| mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64r6 | mipsisa64r6el \
| mipsisa64sb1 | mipsisa64sb1el \
| mipsisa64sr71k | mipsisa64sr71kel \
+ | mipsr5900 | mipsr5900el \
| mipstx39 | mipstx39el \
| mn10200 | mn10300 \
+ | moxie \
| mt \
| msp430 \
- | nios | nios2 \
+ | nds32 | nds32le | nds32be \
+ | nios | nios2 | nios2eb | nios2el \
| ns16k | ns32k \
- | or32 \
+ | open8 | or1k | or1knd | or32 \
| pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
+ | riscv32 | riscv64 \
+ | rl78 | rx \
| score \
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
- | spu | strongarm \
- | tahoe | thumb | tic4x | tic80 | tron \
- | v850 | v850e \
+ | spu \
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
+ | ubicom32 \
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+ | visium \
| we32k \
- | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
- | z8k)
+ | x86 | xc16x | xstormy16 | xtensa \
+ | z8k | z80)
basic_machine=$basic_machine-unknown
;;
- m6811 | m68hc11 | m6812 | m68hc12)
- # Motorola 68HC11/12.
+ c54x)
+ basic_machine=tic54x-unknown
+ ;;
+ c55x)
+ basic_machine=tic55x-unknown
+ ;;
+ c6x)
+ basic_machine=tic6x-unknown
+ ;;
+ leon|leon[3-9])
+ basic_machine=sparc-$basic_machine
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
basic_machine=$basic_machine-unknown
os=-none
;;
@@ -300,6 +342,21 @@ case $basic_machine in
basic_machine=mt-unknown
;;
+ strongarm | thumb | xscale)
+ basic_machine=arm-unknown
+ ;;
+ xgate)
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ xscaleeb)
+ basic_machine=armeb-unknown
+ ;;
+
+ xscaleel)
+ basic_machine=armel-unknown
+ ;;
+
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
@@ -314,64 +371,89 @@ case $basic_machine in
# Recognize the basic CPU types with company name.
580-* \
| a29k-* \
+ | aarch64-* | aarch64_be-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \
+ | ba-* \
+ | be32-* | be64-* \
| bfin-* | bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
- | clipper-* | craynv-* | cydra-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
+ | c8051-* | clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
- | elxsi-* \
- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
+ | e2k-* | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | hexagon-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* | iq2000-* \
+ | k1om-* \
+ | le32-* | le64-* \
+ | lm32-* \
| m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | maxq-* | mcore-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
+ | microblaze-* | microblazeel-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \
| mips64-* | mips64el-* \
- | mips64vr-* | mips64vrel-* \
+ | mips64octeon-* | mips64octeonel-* \
| mips64orion-* | mips64orionel-* \
+ | mips64r5900-* | mips64r5900el-* \
+ | mips64vr-* | mips64vrel-* \
| mips64vr4100-* | mips64vr4100el-* \
| mips64vr4300-* | mips64vr4300el-* \
| mips64vr5000-* | mips64vr5000el-* \
| mips64vr5900-* | mips64vr5900el-* \
| mipsisa32-* | mipsisa32el-* \
| mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa32r6-* | mipsisa32r6el-* \
| mipsisa64-* | mipsisa64el-* \
| mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64r6-* | mipsisa64r6el-* \
| mipsisa64sb1-* | mipsisa64sb1el-* \
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipsr5900-* | mipsr5900el-* \
| mipstx39-* | mipstx39el-* \
| mmix-* \
| mt-* \
| msp430-* \
- | nios-* | nios2-* \
+ | nds32-* | nds32le-* | nds32be-* \
+ | nios-* | nios2-* | nios2eb-* | nios2el-* \
| none-* | np1-* | ns16k-* | ns32k-* \
+ | open8-* \
+ | or1k*-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pyramid-* \
- | romp-* | rs6000-* \
- | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | riscv32-* | riscv64-* \
+ | rl78-* | romp-* | rs6000-* | rx-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
- | tahoe-* | thumb-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
+ | tahoe-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tile*-* \
| tron-* \
- | v850-* | v850e-* | vax-* \
+ | ubicom32-* \
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
+ | vax-* \
+ | visium-* \
| we32k-* \
- | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
- | xstormy16-* | xtensa-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
+ | xstormy16-* | xtensa*-* \
| ymp-* \
- | z8k-*)
+ | z8k-* | z80-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
@@ -389,7 +471,7 @@ case $basic_machine in
basic_machine=a29k-amd
os=-udi
;;
- abacus)
+ abacus)
basic_machine=abacus-unknown
;;
adobe68k)
@@ -435,6 +517,13 @@ case $basic_machine in
basic_machine=m68k-apollo
os=-bsd
;;
+ aros)
+ basic_machine=i386-pc
+ os=-aros
+ ;;
+ asmjs)
+ basic_machine=asmjs-unknown
+ ;;
aux)
basic_machine=m68k-apple
os=-aux
@@ -443,10 +532,35 @@ case $basic_machine in
basic_machine=ns32k-sequent
os=-dynix
;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ bluegene*)
+ basic_machine=powerpc-ibm
+ os=-cnk
+ ;;
+ c54x-*)
+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c55x-*)
+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c6x-*)
+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
c90)
basic_machine=c90-cray
os=-unicos
;;
+ cegcc)
+ basic_machine=arm-unknown
+ os=-cegcc
+ ;;
convex-c1)
basic_machine=c1-convex
os=-bsd
@@ -475,8 +589,8 @@ case $basic_machine in
basic_machine=craynv-cray
os=-unicosmp
;;
- cr16c)
- basic_machine=cr16c-unknown
+ cr16 | cr16-*)
+ basic_machine=cr16-unknown
os=-elf
;;
crds | unos)
@@ -514,6 +628,10 @@ case $basic_machine in
basic_machine=m88k-motorola
os=-sysv3
;;
+ dicos)
+ basic_machine=i686-pc
+ os=-dicos
+ ;;
djgpp)
basic_machine=i586-pc
os=-msdosdjgpp
@@ -629,7 +747,6 @@ case $basic_machine in
i370-ibm* | ibm*)
basic_machine=i370-ibm
;;
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
i*86v32)
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
os=-sysv32
@@ -668,6 +785,17 @@ case $basic_machine in
basic_machine=m68k-isi
os=-sysv
;;
+ leon-*|leon[3-9]-*)
+ basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
m88k-omron*)
basic_machine=m88k-omron
;;
@@ -679,10 +807,21 @@ case $basic_machine in
basic_machine=ns32k-utek
os=-sysv
;;
+ microblaze*)
+ basic_machine=microblaze-xilinx
+ ;;
+ mingw64)
+ basic_machine=x86_64-pc
+ os=-mingw64
+ ;;
mingw32)
- basic_machine=i386-pc
+ basic_machine=i686-pc
os=-mingw32
;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
miniframe)
basic_machine=m68000-convergent
;;
@@ -704,6 +843,10 @@ case $basic_machine in
basic_machine=powerpc-unknown
os=-morphos
;;
+ moxiebox)
+ basic_machine=moxie-unknown
+ os=-moxiebox
+ ;;
msdos)
basic_machine=i386-pc
os=-msdos
@@ -711,10 +854,18 @@ case $basic_machine in
ms1-*)
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
;;
+ msys)
+ basic_machine=i686-pc
+ os=-msys
+ ;;
mvs)
basic_machine=i370-ibm
os=-mvs
;;
+ nacl)
+ basic_machine=le32-unknown
+ os=-nacl
+ ;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
@@ -779,6 +930,12 @@ case $basic_machine in
np1)
basic_machine=np1-gould
;;
+ neo-tandem)
+ basic_machine=neo-tandem
+ ;;
+ nse-tandem)
+ basic_machine=nse-tandem
+ ;;
nsr-tandem)
basic_machine=nsr-tandem
;;
@@ -809,6 +966,14 @@ case $basic_machine in
basic_machine=i860-intel
os=-osf
;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
pbd)
basic_machine=sparc-tti
;;
@@ -853,9 +1018,10 @@ case $basic_machine in
;;
power) basic_machine=power-ibm
;;
- ppc) basic_machine=powerpc-unknown
+ ppc | ppcbe) basic_machine=powerpc-unknown
;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ppc-* | ppcbe-*)
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown
@@ -880,7 +1046,11 @@ case $basic_machine in
basic_machine=i586-unknown
os=-pw32
;;
- rdos)
+ rdos | rdos64)
+ basic_machine=x86_64-pc
+ os=-rdos
+ ;;
+ rdos32)
basic_machine=i386-pc
os=-rdos
;;
@@ -925,6 +1095,9 @@ case $basic_machine in
basic_machine=sh-hitachi
os=-hms
;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
sh64)
basic_machine=sh64-unknown
;;
@@ -946,6 +1119,9 @@ case $basic_machine in
basic_machine=i860-stratus
os=-sysv4
;;
+ strongarm-* | thumb-*)
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
sun2)
basic_machine=m68000-sun
;;
@@ -1002,17 +1178,9 @@ case $basic_machine in
basic_machine=t90-cray
os=-unicos
;;
- tic54x | c54x*)
- basic_machine=tic54x-unknown
- os=-coff
- ;;
- tic55x | c55x*)
- basic_machine=tic55x-unknown
- os=-coff
- ;;
- tic6x | c6x*)
- basic_machine=tic6x-unknown
- os=-coff
+ tile*)
+ basic_machine=$basic_machine-unknown
+ os=-linux-gnu
;;
tx39)
basic_machine=mipstx39-unknown
@@ -1081,6 +1249,9 @@ case $basic_machine in
xps | xps100)
basic_machine=xps100-honeywell
;;
+ xscale-* | xscalee[bl]-*)
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
+ ;;
ymp)
basic_machine=ymp-cray
os=-unicos
@@ -1089,6 +1260,10 @@ case $basic_machine in
basic_machine=z8k-unknown
os=-sim
;;
+ z80-*-coff)
+ basic_machine=z80-unknown
+ os=-sim
+ ;;
none)
basic_machine=none-none
os=-none
@@ -1127,7 +1302,7 @@ case $basic_machine in
we32k)
basic_machine=we32k-att
;;
- sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
@@ -1174,9 +1349,12 @@ esac
if [ x"$os" != x"" ]
then
case $os in
- # First match some system type aliases
- # that might get confused with valid system types.
+ # First match some system type aliases
+ # that might get confused with valid system types.
# -solaris* is a basic system type, with this one exception.
+ -auroraux)
+ os=-auroraux
+ ;;
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
;;
@@ -1197,29 +1375,31 @@ case $os in
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
+ | -sym* | -kopensolaris* | -plan9* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* \
+ | -aos* | -aros* | -cloudabi* | -sortix* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
- | -openbsd* | -solidbsd* \
+ | -bitrig* | -openbsd* | -solidbsd* \
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* \
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
- | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -chorusos* | -chorusrdb* | -cegcc* \
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers*)
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1258,7 +1438,7 @@ case $os in
-opened*)
os=-openedition
;;
- -os400*)
+ -os400*)
os=-os400
;;
-wince*)
@@ -1307,7 +1487,7 @@ case $os in
-sinix*)
os=-sysv4
;;
- -tpf*)
+ -tpf*)
os=-tpf
;;
-triton*)
@@ -1343,12 +1523,14 @@ case $os in
-aros*)
os=-aros
;;
- -kaos*)
- os=-kaos
- ;;
-zvmoe)
os=-zvmoe
;;
+ -dicos*)
+ os=-dicos
+ ;;
+ -nacl*)
+ ;;
-none)
;;
*)
@@ -1371,10 +1553,10 @@ else
# system, and we'll never get to this point.
case $basic_machine in
- score-*)
+ score-*)
os=-elf
;;
- spu-*)
+ spu-*)
os=-elf
;;
*-acorn)
@@ -1386,8 +1568,23 @@ case $basic_machine in
arm*-semi)
os=-aout
;;
- c4x-* | tic4x-*)
- os=-coff
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ c8051-*)
+ os=-elf
+ ;;
+ hexagon-*)
+ os=-elf
+ ;;
+ tic54x-*)
+ os=-coff
+ ;;
+ tic55x-*)
+ os=-coff
+ ;;
+ tic6x-*)
+ os=-coff
;;
# This must come before the *-dec entry.
pdp10-*)
@@ -1407,13 +1604,13 @@ case $basic_machine in
;;
m68000-sun)
os=-sunos3
- # This also exists in the configure program, but was not the
- # default.
- # os=-sunos4
;;
m68*-cisco)
os=-aout
;;
+ mep-*)
+ os=-elf
+ ;;
mips*-cisco)
os=-elf
;;
@@ -1438,7 +1635,7 @@ case $basic_machine in
*-ibm)
os=-aix
;;
- *-knuth)
+ *-knuth)
os=-mmixware
;;
*-wec)
@@ -1543,7 +1740,7 @@ case $basic_machine in
-sunos*)
vendor=sun
;;
- -aix*)
+ -cnk*|-aix*)
vendor=ibm
;;
-beos*)
diff --git a/src/misc/m4/iconv.m4 b/src/misc/m4/iconv.m4
index fa88c6f..4e37363 100644
--- a/src/misc/m4/iconv.m4
+++ b/src/misc/m4/iconv.m4
@@ -1,53 +1,271 @@
-#--------------------------------------------------------------------
-# Checks for iconv library
-#--------------------------------------------------------------------
-
-AC_DEFUN([LC_ICONV],[
-AC_ARG_WITH(iconv,
-AS_HELP_STRING([--with-iconv@<:@=DIR@:>@], [where to find iconv []]),
- [], [unset withval;])
-
-if [[[ "$withval" != no ]]]
-then
- [$0]_TEMP=$(mktemp -t texmacs)
-
- [$0]_PATH=$(echo ${LDFLAGS//\/lib/\/include})
- AX_SAVE_FLAGS
- CPPFLAGS="${[$0]_PATH//-L/-I} -I$withval/include -I/opt/local/include -I/sw/include -MM -MF $[$0]_TEMP"
-
- LC_CLEAR_FLAGS([ICONV]) # no previous iconv definition allowed
- AC_CHECK_HEADER(iconv.h, [
- [$0]_DEPEND=$(<$[$0]_TEMP)
- [$0]_ICONV=${[$0]_DEPEND%/include/iconv.h*}
- if @<:@@<:@ "$[$0]_DEPEND" == "$[$0]_ICONV" @:>@@:>@
- then
- AX_RESTORE_FLAGS
- AC_MSG_NOTICE([iconv found in default compiler location])
- LC_MERGE_FLAGS([-liconv],[ICONV_LIBS])
- else
- [$0]_ICONV=${[$0]_ICONV##* }
- AC_MSG_NOTICE([iconv found in $$0_ICONV])
- LC_SET_TRIVIAL_FLAGS([ICONV],[$$0_ICONV])
+# iconv.m4 serial 19 (gettext-0.18.2)
+dnl Copyright (C) 2000-2002, 2007-2014 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
+[
+ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+ AC_REQUIRE([AC_LIB_RPATH])
+
+ dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
+ dnl accordingly.
+ AC_LIB_LINKFLAGS_BODY([iconv])
+])
+
+AC_DEFUN([AM_ICONV_LINK],
+[
+ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
+ dnl those with the standalone portable GNU libiconv installed).
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
+
+ dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
+ dnl accordingly.
+ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
+
+ dnl Add $INCICONV to CPPFLAGS before performing the following checks,
+ dnl because if the user has installed libiconv and not disabled its use
+ dnl via --without-libiconv-prefix, he wants to use it. The first
+ dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
+ am_save_CPPFLAGS="$CPPFLAGS"
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
+
+ AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
+ am_cv_func_iconv="no, consider installing GNU libiconv"
+ am_cv_lib_iconv=no
+ AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+#include
+#include
+ ]],
+ [[iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);]])],
+ [am_cv_func_iconv=yes])
+ if test "$am_cv_func_iconv" != yes; then
+ am_save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBICONV"
+ AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+#include
+#include
+ ]],
+ [[iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);]])],
+ [am_cv_lib_iconv=yes]
+ [am_cv_func_iconv=yes])
+ LIBS="$am_save_LIBS"
fi
- LC_SET_FLAGS([ICONV])
- rm $[$0]_TEMP
- AC_CHECK_HEADER(iconv.h, [
- AC_LINK_IFELSE([AC_LANG_PROGRAM(address@hidden:@include ]],
- [[iconv_open("",""); ]])],[iconv],[
- AX_RESTORE_FLAGS
- LC_COMBINE_FLAGS([ICONV])
- AC_DEFINE(USE_ICONV, 1, [Use iconv library])
- unset i_failure
- unset [$0]_LIBPATH
- ],[AC_MSG_ERROR([Cannot use iconv.h.])])
- ],[
- AC_MSG_ERROR([libiconv does not match header.])])
- ],[
- rm $[$0]_TEMP
- AC_MSG_ERROR([use with-iconv=iconv_base_path (i.e /usr/local) to specify your icon location.
-Use with-iconv=no to ignore iconv.])
- ],[-])
-else AC_MSG_WARN([absence of iconv may crash HTML import or prevent the build])
-fi
-LC_SUBST([ICONV])
+ ])
+ if test "$am_cv_func_iconv" = yes; then
+ AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
+ dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
+ dnl Solaris 10.
+ am_save_LIBS="$LIBS"
+ if test $am_cv_lib_iconv = yes; then
+ LIBS="$LIBS $LIBICONV"
+ fi
+ am_cv_func_iconv_works=no
+ for ac_iconv_const in '' 'const'; do
+ AC_RUN_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+#include
+#include
+
+#ifndef ICONV_CONST
+# define ICONV_CONST $ac_iconv_const
+#endif
+ ]],
+ [[int result = 0;
+ /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
+ returns. */
+ {
+ iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
+ if (cd_utf8_to_88591 != (iconv_t)(-1))
+ {
+ static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
+ char buf[10];
+ ICONV_CONST char *inptr = input;
+ size_t inbytesleft = strlen (input);
+ char *outptr = buf;
+ size_t outbytesleft = sizeof (buf);
+ size_t res = iconv (cd_utf8_to_88591,
+ &inptr, &inbytesleft,
+ &outptr, &outbytesleft);
+ if (res == 0)
+ result |= 1;
+ iconv_close (cd_utf8_to_88591);
+ }
+ }
+ /* Test against Solaris 10 bug: Failures are not distinguishable from
+ successful returns. */
+ {
+ iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
+ if (cd_ascii_to_88591 != (iconv_t)(-1))
+ {
+ static ICONV_CONST char input[] = "\263";
+ char buf[10];
+ ICONV_CONST char *inptr = input;
+ size_t inbytesleft = strlen (input);
+ char *outptr = buf;
+ size_t outbytesleft = sizeof (buf);
+ size_t res = iconv (cd_ascii_to_88591,
+ &inptr, &inbytesleft,
+ &outptr, &outbytesleft);
+ if (res == 0)
+ result |= 2;
+ iconv_close (cd_ascii_to_88591);
+ }
+ }
+ /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
+ {
+ iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
+ if (cd_88591_to_utf8 != (iconv_t)(-1))
+ {
+ static ICONV_CONST char input[] = "\304";
+ static char buf[2] = { (char)0xDE, (char)0xAD };
+ ICONV_CONST char *inptr = input;
+ size_t inbytesleft = 1;
+ char *outptr = buf;
+ size_t outbytesleft = 1;
+ size_t res = iconv (cd_88591_to_utf8,
+ &inptr, &inbytesleft,
+ &outptr, &outbytesleft);
+ if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
+ result |= 4;
+ iconv_close (cd_88591_to_utf8);
+ }
+ }
+#if 0 /* This bug could be worked around by the caller. */
+ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
+ {
+ iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
+ if (cd_88591_to_utf8 != (iconv_t)(-1))
+ {
+ static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
+ char buf[50];
+ ICONV_CONST char *inptr = input;
+ size_t inbytesleft = strlen (input);
+ char *outptr = buf;
+ size_t outbytesleft = sizeof (buf);
+ size_t res = iconv (cd_88591_to_utf8,
+ &inptr, &inbytesleft,
+ &outptr, &outbytesleft);
+ if ((int)res > 0)
+ result |= 8;
+ iconv_close (cd_88591_to_utf8);
+ }
+ }
+#endif
+ /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
+ provided. */
+ if (/* Try standardized names. */
+ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
+ /* Try IRIX, OSF/1 names. */
+ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
+ /* Try AIX names. */
+ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
+ /* Try HP-UX names. */
+ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
+ result |= 16;
+ return result;
+]])],
+ [am_cv_func_iconv_works=yes], ,
+ [case "$host_os" in
+ aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
+ *) am_cv_func_iconv_works="guessing yes" ;;
+ esac])
+ test "$am_cv_func_iconv_works" = no || break
+ done
+ LIBS="$am_save_LIBS"
+ ])
+ case "$am_cv_func_iconv_works" in
+ *no) am_func_iconv=no am_cv_lib_iconv=no ;;
+ *) am_func_iconv=yes ;;
+ esac
+ else
+ am_func_iconv=no am_cv_lib_iconv=no
+ fi
+ if test "$am_func_iconv" = yes; then
+ AC_DEFINE([HAVE_ICONV], [1],
+ [Define if you have the iconv() function and it works.])
+ fi
+ if test "$am_cv_lib_iconv" = yes; then
+ AC_MSG_CHECKING([how to link with libiconv])
+ AC_MSG_RESULT([$LIBICONV])
+ else
+ dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
+ dnl either.
+ CPPFLAGS="$am_save_CPPFLAGS"
+ LIBICONV=
+ LTLIBICONV=
+ fi
+ AC_SUBST([LIBICONV])
+ AC_SUBST([LTLIBICONV])
+])
+
+dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
+dnl avoid warnings like
+dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
+dnl This is tricky because of the way 'aclocal' is implemented:
+dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
+dnl Otherwise aclocal's initial scan pass would miss the macro definition.
+dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
+dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
+dnl warnings.
+m4_define([gl_iconv_AC_DEFUN],
+ m4_version_prereq([2.64],
+ [[AC_DEFUN_ONCE(
+ [$1], [$2])]],
+ [m4_ifdef([gl_00GNULIB],
+ [[AC_DEFUN_ONCE(
+ [$1], [$2])]],
+ [[AC_DEFUN(
+ [$1], [$2])]])]))
+gl_iconv_AC_DEFUN([AM_ICONV],
+[
+ AM_ICONV_LINK
+ if test "$am_cv_func_iconv" = yes; then
+ AC_MSG_CHECKING([for iconv declaration])
+ AC_CACHE_VAL([am_cv_proto_iconv], [
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+#include
+#include
+extern
+#ifdef __cplusplus
+"C"
+#endif
+#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
+size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
+#else
+size_t iconv();
+#endif
+ ]],
+ [[]])],
+ [am_cv_proto_iconv_arg1=""],
+ [am_cv_proto_iconv_arg1="const"])
+ am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
+ am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
+ AC_MSG_RESULT([
+ $am_cv_proto_iconv])
+ AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
+ [Define as const if the declaration of iconv() needs const.])
+ dnl Also substitute ICONV_CONST in the gnulib generated .
+ m4_ifdef([gl_ICONV_H_DEFAULTS],
+ [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
+ if test -n "$am_cv_proto_iconv_arg1"; then
+ ICONV_CONST="const"
+ fi
+ ])
+ fi
])
diff --git a/src/misc/m4/lib-ld.m4 b/src/misc/m4/lib-ld.m4
new file mode 100644
index 0000000..91ca911
--- /dev/null
+++ b/src/misc/m4/lib-ld.m4
@@ -0,0 +1,119 @@
+# lib-ld.m4 serial 6
+dnl Copyright (C) 1996-2003, 2009-2015 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl Subroutines of libtool.m4,
+dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid
+dnl collision with libtool.m4.
+
+dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no.
+AC_DEFUN([AC_LIB_PROG_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 /dev/null 2>&1 \
+ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
+ || PATH_SEPARATOR=';'
+ }
+fi
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ AC_MSG_CHECKING([for ld used by $CC])
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [[\\/]]* | ?:[[\\/]]*)
+ re_direlt='/[[^/]][[^/]]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
+ while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ AC_MSG_CHECKING([for GNU ld])
+else
+ AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL([acl_cv_path_LD],
+[if test -z "$LD"; then
+ acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$acl_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ acl_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$acl_cv_path_LD" -v 2>&1 = 1.10 to complain if config.rpath is missing.
+ m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
+ AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
+ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
+ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
+ AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
+ . ./conftest.sh
+ rm -f ./conftest.sh
+ acl_cv_rpath=done
+ ])
+ wl="$acl_cv_wl"
+ acl_libext="$acl_cv_libext"
+ acl_shlibext="$acl_cv_shlibext"
+ acl_libname_spec="$acl_cv_libname_spec"
+ acl_library_names_spec="$acl_cv_library_names_spec"
+ acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
+ acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
+ acl_hardcode_direct="$acl_cv_hardcode_direct"
+ acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
+ dnl Determine whether the user wants rpath handling at all.
+ AC_ARG_ENABLE([rpath],
+ [ --disable-rpath do not hardcode runtime library paths],
+ :, enable_rpath=yes)
+])
+
+dnl AC_LIB_FROMPACKAGE(name, package)
+dnl declares that libname comes from the given package. The configure file
+dnl will then not have a --with-libname-prefix option but a
+dnl --with-package-prefix option. Several libraries can come from the same
+dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
+dnl macro call that searches for libname.
+AC_DEFUN([AC_LIB_FROMPACKAGE],
+[
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
+ define([acl_frompackage_]NAME, [$2])
+ popdef([NAME])
+ pushdef([PACK],[$2])
+ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
+ define([acl_libsinpackage_]PACKUP,
+ m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
+ popdef([PACKUP])
+ popdef([PACK])
+])
+
+dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
+dnl the libraries corresponding to explicit and implicit dependencies.
+dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
+dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
+dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
+AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
+[
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
+ pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
+ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
+ pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
+ dnl Autoconf >= 2.61 supports dots in --with options.
+ pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
+ dnl By default, look in $includedir and $libdir.
+ use_additional=yes
+ AC_LIB_WITH_FINAL_PREFIX([
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+ ])
+ AC_ARG_WITH(P_A_C_K[-prefix],
+[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
+ --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
+[
+ if test "X$withval" = "Xno"; then
+ use_additional=no
+ else
+ if test "X$withval" = "X"; then
+ AC_LIB_WITH_FINAL_PREFIX([
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+ ])
+ else
+ additional_includedir="$withval/include"
+ additional_libdir="$withval/$acl_libdirstem"
+ if test "$acl_libdirstem2" != "$acl_libdirstem" \
+ && ! test -d "$withval/$acl_libdirstem"; then
+ additional_libdir="$withval/$acl_libdirstem2"
+ fi
+ fi
+ fi
+])
+ dnl Search the library and its dependencies in $additional_libdir and
+ dnl $LDFLAGS. Using breadth-first-seach.
+ LIB[]NAME=
+ LTLIB[]NAME=
+ INC[]NAME=
+ LIB[]NAME[]_PREFIX=
+ dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
+ dnl computed. So it has to be reset here.
+ HAVE_LIB[]NAME=
+ rpathdirs=
+ ltrpathdirs=
+ names_already_handled=
+ names_next_round='$1 $2'
+ while test -n "$names_next_round"; do
+ names_this_round="$names_next_round"
+ names_next_round=
+ for name in $names_this_round; do
+ already_handled=
+ for n in $names_already_handled; do
+ if test "$n" = "$name"; then
+ already_handled=yes
+ break
+ fi
+ done
+ if test -z "$already_handled"; then
+ names_already_handled="$names_already_handled $name"
+ dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
+ dnl or AC_LIB_HAVE_LINKFLAGS call.
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
+ eval value=\"\$HAVE_LIB$uppername\"
+ if test -n "$value"; then
+ if test "$value" = yes; then
+ eval value=\"\$LIB$uppername\"
+ test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
+ eval value=\"\$LTLIB$uppername\"
+ test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
+ else
+ dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
+ dnl that this library doesn't exist. So just drop it.
+ :
+ fi
+ else
+ dnl Search the library lib$name in $additional_libdir and $LDFLAGS
+ dnl and the already constructed $LIBNAME/$LTLIBNAME.
+ found_dir=
+ found_la=
+ found_so=
+ found_a=
+ eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
+ if test -n "$acl_shlibext"; then
+ shrext=".$acl_shlibext" # typically: shrext=.so
+ else
+ shrext=
+ fi
+ if test $use_additional = yes; then
+ dir="$additional_libdir"
+ dnl The same code as in the loop below:
+ dnl First look for a shared library.
+ if test -n "$acl_shlibext"; then
+ if test -f "$dir/$libname$shrext"; then
+ found_dir="$dir"
+ found_so="$dir/$libname$shrext"
+ else
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
+ ver=`(cd "$dir" && \
+ for f in "$libname$shrext".*; do echo "$f"; done \
+ | sed -e "s,^$libname$shrext\\\\.,," \
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
+ | sed 1q ) 2>/dev/null`
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
+ found_dir="$dir"
+ found_so="$dir/$libname$shrext.$ver"
+ fi
+ else
+ eval library_names=\"$acl_library_names_spec\"
+ for f in $library_names; do
+ if test -f "$dir/$f"; then
+ found_dir="$dir"
+ found_so="$dir/$f"
+ break
+ fi
+ done
+ fi
+ fi
+ fi
+ dnl Then look for a static library.
+ if test "X$found_dir" = "X"; then
+ if test -f "$dir/$libname.$acl_libext"; then
+ found_dir="$dir"
+ found_a="$dir/$libname.$acl_libext"
+ fi
+ fi
+ if test "X$found_dir" != "X"; then
+ if test -f "$dir/$libname.la"; then
+ found_la="$dir/$libname.la"
+ fi
+ fi
+ fi
+ if test "X$found_dir" = "X"; then
+ for x in $LDFLAGS $LTLIB[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ case "$x" in
+ -L*)
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
+ dnl First look for a shared library.
+ if test -n "$acl_shlibext"; then
+ if test -f "$dir/$libname$shrext"; then
+ found_dir="$dir"
+ found_so="$dir/$libname$shrext"
+ else
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
+ ver=`(cd "$dir" && \
+ for f in "$libname$shrext".*; do echo "$f"; done \
+ | sed -e "s,^$libname$shrext\\\\.,," \
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
+ | sed 1q ) 2>/dev/null`
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
+ found_dir="$dir"
+ found_so="$dir/$libname$shrext.$ver"
+ fi
+ else
+ eval library_names=\"$acl_library_names_spec\"
+ for f in $library_names; do
+ if test -f "$dir/$f"; then
+ found_dir="$dir"
+ found_so="$dir/$f"
+ break
+ fi
+ done
+ fi
+ fi
+ fi
+ dnl Then look for a static library.
+ if test "X$found_dir" = "X"; then
+ if test -f "$dir/$libname.$acl_libext"; then
+ found_dir="$dir"
+ found_a="$dir/$libname.$acl_libext"
+ fi
+ fi
+ if test "X$found_dir" != "X"; then
+ if test -f "$dir/$libname.la"; then
+ found_la="$dir/$libname.la"
+ fi
+ fi
+ ;;
+ esac
+ if test "X$found_dir" != "X"; then
+ break
+ fi
+ done
+ fi
+ if test "X$found_dir" != "X"; then
+ dnl Found the library.
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
+ if test "X$found_so" != "X"; then
+ dnl Linking with a shared library. We attempt to hardcode its
+ dnl directory into the executable's runpath, unless it's the
+ dnl standard /usr/lib.
+ if test "$enable_rpath" = no \
+ || test "X$found_dir" = "X/usr/$acl_libdirstem" \
+ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
+ dnl No hardcoding is needed.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
+ else
+ dnl Use an explicit option to hardcode DIR into the resulting
+ dnl binary.
+ dnl Potentially add DIR to ltrpathdirs.
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $found_dir"
+ fi
+ dnl The hardcoding into $LIBNAME is system dependent.
+ if test "$acl_hardcode_direct" = yes; then
+ dnl Using DIR/libNAME.so during linking hardcodes DIR into the
+ dnl resulting binary.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
+ else
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
+ dnl Use an explicit option to hardcode DIR into the resulting
+ dnl binary.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
+ dnl Potentially add DIR to rpathdirs.
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $found_dir"
+ fi
+ else
+ dnl Rely on "-L$found_dir".
+ dnl But don't add it if it's already contained in the LDFLAGS
+ dnl or the already constructed $LIBNAME
+ haveit=
+ for x in $LDFLAGS $LIB[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-L$found_dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
+ fi
+ if test "$acl_hardcode_minus_L" != no; then
+ dnl FIXME: Not sure whether we should use
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
+ dnl here.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
+ else
+ dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
+ dnl here, because this doesn't fit in flags passed to the
+ dnl compiler. So give up. No hardcoding. This affects only
+ dnl very old systems.
+ dnl FIXME: Not sure whether we should use
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
+ dnl here.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
+ fi
+ fi
+ fi
+ fi
+ else
+ if test "X$found_a" != "X"; then
+ dnl Linking with a static library.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
+ else
+ dnl We shouldn't come here, but anyway it's good to have a
+ dnl fallback.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
+ fi
+ fi
+ dnl Assume the include files are nearby.
+ additional_includedir=
+ case "$found_dir" in
+ */$acl_libdirstem | */$acl_libdirstem/)
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
+ if test "$name" = '$1'; then
+ LIB[]NAME[]_PREFIX="$basedir"
+ fi
+ additional_includedir="$basedir/include"
+ ;;
+ */$acl_libdirstem2 | */$acl_libdirstem2/)
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
+ if test "$name" = '$1'; then
+ LIB[]NAME[]_PREFIX="$basedir"
+ fi
+ additional_includedir="$basedir/include"
+ ;;
+ esac
+ if test "X$additional_includedir" != "X"; then
+ dnl Potentially add $additional_includedir to $INCNAME.
+ dnl But don't add it
+ dnl 1. if it's the standard /usr/include,
+ dnl 2. if it's /usr/local/include and we are using GCC on Linux,
+ dnl 3. if it's already present in $CPPFLAGS or the already
+ dnl constructed $INCNAME,
+ dnl 4. if it doesn't exist as a directory.
+ if test "X$additional_includedir" != "X/usr/include"; then
+ haveit=
+ if test "X$additional_includedir" = "X/usr/local/include"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ for x in $CPPFLAGS $INC[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-I$additional_includedir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_includedir"; then
+ dnl Really add $additional_includedir to $INCNAME.
+ INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
+ fi
+ fi
+ fi
+ fi
+ fi
+ dnl Look for dependencies.
+ if test -n "$found_la"; then
+ dnl Read the .la file. It defines the variables
+ dnl dlname, library_names, old_library, dependency_libs, current,
+ dnl age, revision, installed, dlopen, dlpreopen, libdir.
+ save_libdir="$libdir"
+ case "$found_la" in
+ */* | *\\*) . "$found_la" ;;
+ *) . "./$found_la" ;;
+ esac
+ libdir="$save_libdir"
+ dnl We use only dependency_libs.
+ for dep in $dependency_libs; do
+ case "$dep" in
+ -L*)
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
+ dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
+ dnl But don't add it
+ dnl 1. if it's the standard /usr/lib,
+ dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
+ dnl 3. if it's already present in $LDFLAGS or the already
+ dnl constructed $LIBNAME,
+ dnl 4. if it doesn't exist as a directory.
+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
+ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
+ haveit=
+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
+ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ haveit=
+ for x in $LDFLAGS $LIB[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ dnl Really add $additional_libdir to $LIBNAME.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
+ fi
+ fi
+ haveit=
+ for x in $LDFLAGS $LTLIB[]NAME; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ dnl Really add $additional_libdir to $LTLIBNAME.
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
+ fi
+ fi
+ fi
+ fi
+ ;;
+ -R*)
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
+ if test "$enable_rpath" != no; then
+ dnl Potentially add DIR to rpathdirs.
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
+ haveit=
+ for x in $rpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ rpathdirs="$rpathdirs $dir"
+ fi
+ dnl Potentially add DIR to ltrpathdirs.
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
+ haveit=
+ for x in $ltrpathdirs; do
+ if test "X$x" = "X$dir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ ltrpathdirs="$ltrpathdirs $dir"
+ fi
+ fi
+ ;;
+ -l*)
+ dnl Handle this in the next round.
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
+ ;;
+ *.la)
+ dnl Handle this in the next round. Throw away the .la's
+ dnl directory; it is already contained in a preceding -L
+ dnl option.
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
+ ;;
+ *)
+ dnl Most likely an immediate library name.
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
+ ;;
+ esac
+ done
+ fi
+ else
+ dnl Didn't find the library; assume it is in the system directories
+ dnl known to the linker and runtime loader. (All the system
+ dnl directories known to the linker should also be known to the
+ dnl runtime loader, otherwise the system is severely misconfigured.)
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
+ fi
+ fi
+ fi
+ done
+ done
+ if test "X$rpathdirs" != "X"; then
+ if test -n "$acl_hardcode_libdir_separator"; then
+ dnl Weird platform: only the last -rpath option counts, the user must
+ dnl pass all path elements in one option. We can arrange that for a
+ dnl single library, but not when more than one $LIBNAMEs are used.
+ alldirs=
+ for found_dir in $rpathdirs; do
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
+ done
+ dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
+ acl_save_libdir="$libdir"
+ libdir="$alldirs"
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
+ else
+ dnl The -rpath options are cumulative.
+ for found_dir in $rpathdirs; do
+ acl_save_libdir="$libdir"
+ libdir="$found_dir"
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
+ done
+ fi
+ fi
+ if test "X$ltrpathdirs" != "X"; then
+ dnl When using libtool, the option that works for both libraries and
+ dnl executables is -R. The -R options are cumulative.
+ for found_dir in $ltrpathdirs; do
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
+ done
+ fi
+ popdef([P_A_C_K])
+ popdef([PACKLIBS])
+ popdef([PACKUP])
+ popdef([PACK])
+ popdef([NAME])
+])
+
+dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
+dnl unless already present in VAR.
+dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
+dnl contains two or three consecutive elements that belong together.
+AC_DEFUN([AC_LIB_APPENDTOVAR],
+[
+ for element in [$2]; do
+ haveit=
+ for x in $[$1]; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X$element"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ [$1]="${[$1]}${[$1]:+ }$element"
+ fi
+ done
+])
+
+dnl For those cases where a variable contains several -L and -l options
+dnl referring to unknown libraries and directories, this macro determines the
+dnl necessary additional linker options for the runtime path.
+dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
+dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
+dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
+dnl otherwise linking without libtool is assumed.
+AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
+[
+ AC_REQUIRE([AC_LIB_RPATH])
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
+ $1=
+ if test "$enable_rpath" != no; then
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
+ dnl Use an explicit option to hardcode directories into the resulting
+ dnl binary.
+ rpathdirs=
+ next=
+ for opt in $2; do
+ if test -n "$next"; then
+ dir="$next"
+ dnl No need to hardcode the standard /usr/lib.
+ if test "X$dir" != "X/usr/$acl_libdirstem" \
+ && test "X$dir" != "X/usr/$acl_libdirstem2"; then
+ rpathdirs="$rpathdirs $dir"
+ fi
+ next=
+ else
+ case $opt in
+ -L) next=yes ;;
+ -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
+ dnl No need to hardcode the standard /usr/lib.
+ if test "X$dir" != "X/usr/$acl_libdirstem" \
+ && test "X$dir" != "X/usr/$acl_libdirstem2"; then
+ rpathdirs="$rpathdirs $dir"
+ fi
+ next= ;;
+ *) next= ;;
+ esac
+ fi
+ done
+ if test "X$rpathdirs" != "X"; then
+ if test -n ""$3""; then
+ dnl libtool is used for linking. Use -R options.
+ for dir in $rpathdirs; do
+ $1="${$1}${$1:+ }-R$dir"
+ done
+ else
+ dnl The linker is used for linking directly.
+ if test -n "$acl_hardcode_libdir_separator"; then
+ dnl Weird platform: only the last -rpath option counts, the user
+ dnl must pass all path elements in one option.
+ alldirs=
+ for dir in $rpathdirs; do
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
+ done
+ acl_save_libdir="$libdir"
+ libdir="$alldirs"
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ $1="$flag"
+ else
+ dnl The -rpath options are cumulative.
+ for dir in $rpathdirs; do
+ acl_save_libdir="$libdir"
+ libdir="$dir"
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
+ libdir="$acl_save_libdir"
+ $1="${$1}${$1:+ }$flag"
+ done
+ fi
+ fi
+ fi
+ fi
+ fi
+ AC_SUBST([$1])
+])
diff --git a/src/misc/m4/lib-prefix.m4 b/src/misc/m4/lib-prefix.m4
new file mode 100644
index 0000000..0465f47
--- /dev/null
+++ b/src/misc/m4/lib-prefix.m4
@@ -0,0 +1,224 @@
+# lib-prefix.m4 serial 7 (gettext-0.18)
+dnl Copyright (C) 2001-2005, 2008-2015 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl From Bruno Haible.
+
+dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
+dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
+dnl require excessive bracketing.
+ifdef([AC_HELP_STRING],
+[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
+[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
+
+dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
+dnl to access previously installed libraries. The basic assumption is that
+dnl a user will want packages to use other packages he previously installed
+dnl with the same --prefix option.
+dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
+dnl libraries, but is otherwise very convenient.
+AC_DEFUN([AC_LIB_PREFIX],
+[
+ AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
+ AC_REQUIRE([AC_PROG_CC])
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
+ dnl By default, look in $includedir and $libdir.
+ use_additional=yes
+ AC_LIB_WITH_FINAL_PREFIX([
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+ ])
+ AC_LIB_ARG_WITH([lib-prefix],
+[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
+ --without-lib-prefix don't search for libraries in includedir and libdir],
+[
+ if test "X$withval" = "Xno"; then
+ use_additional=no
+ else
+ if test "X$withval" = "X"; then
+ AC_LIB_WITH_FINAL_PREFIX([
+ eval additional_includedir=\"$includedir\"
+ eval additional_libdir=\"$libdir\"
+ ])
+ else
+ additional_includedir="$withval/include"
+ additional_libdir="$withval/$acl_libdirstem"
+ fi
+ fi
+])
+ if test $use_additional = yes; then
+ dnl Potentially add $additional_includedir to $CPPFLAGS.
+ dnl But don't add it
+ dnl 1. if it's the standard /usr/include,
+ dnl 2. if it's already present in $CPPFLAGS,
+ dnl 3. if it's /usr/local/include and we are using GCC on Linux,
+ dnl 4. if it doesn't exist as a directory.
+ if test "X$additional_includedir" != "X/usr/include"; then
+ haveit=
+ for x in $CPPFLAGS; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-I$additional_includedir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test "X$additional_includedir" = "X/usr/local/include"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ if test -d "$additional_includedir"; then
+ dnl Really add $additional_includedir to $CPPFLAGS.
+ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
+ fi
+ fi
+ fi
+ fi
+ dnl Potentially add $additional_libdir to $LDFLAGS.
+ dnl But don't add it
+ dnl 1. if it's the standard /usr/lib,
+ dnl 2. if it's already present in $LDFLAGS,
+ dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
+ dnl 4. if it doesn't exist as a directory.
+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
+ haveit=
+ for x in $LDFLAGS; do
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
+ if test "X$x" = "X-L$additional_libdir"; then
+ haveit=yes
+ break
+ fi
+ done
+ if test -z "$haveit"; then
+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
+ if test -n "$GCC"; then
+ case $host_os in
+ linux*) haveit=yes;;
+ esac
+ fi
+ fi
+ if test -z "$haveit"; then
+ if test -d "$additional_libdir"; then
+ dnl Really add $additional_libdir to $LDFLAGS.
+ LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
+ fi
+ fi
+ fi
+ fi
+ fi
+])
+
+dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
+dnl acl_final_exec_prefix, containing the values to which $prefix and
+dnl $exec_prefix will expand at the end of the configure script.
+AC_DEFUN([AC_LIB_PREPARE_PREFIX],
+[
+ dnl Unfortunately, prefix and exec_prefix get only finally determined
+ dnl at the end of configure.
+ if test "X$prefix" = "XNONE"; then
+ acl_final_prefix="$ac_default_prefix"
+ else
+ acl_final_prefix="$prefix"
+ fi
+ if test "X$exec_prefix" = "XNONE"; then
+ acl_final_exec_prefix='${prefix}'
+ else
+ acl_final_exec_prefix="$exec_prefix"
+ fi
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
+ prefix="$acl_save_prefix"
+])
+
+dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
+dnl variables prefix and exec_prefix bound to the values they will have
+dnl at the end of the configure script.
+AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
+[
+ acl_save_prefix="$prefix"
+ prefix="$acl_final_prefix"
+ acl_save_exec_prefix="$exec_prefix"
+ exec_prefix="$acl_final_exec_prefix"
+ $1
+ exec_prefix="$acl_save_exec_prefix"
+ prefix="$acl_save_prefix"
+])
+
+dnl AC_LIB_PREPARE_MULTILIB creates
+dnl - a variable acl_libdirstem, containing the basename of the libdir, either
+dnl "lib" or "lib64" or "lib/64",
+dnl - a variable acl_libdirstem2, as a secondary possible value for
+dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
+dnl "lib/amd64".
+AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
+[
+ dnl There is no formal standard regarding lib and lib64.
+ dnl On glibc systems, the current practice is that on a system supporting
+ dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
+ dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
+ dnl the compiler's default mode by looking at the compiler's library search
+ dnl path. If at least one of its elements ends in /lib64 or points to a
+ dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
+ dnl Otherwise we use the default, namely "lib".
+ dnl On Solaris systems, the current practice is that on a system supporting
+ dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
+ dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
+ dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ acl_libdirstem=lib
+ acl_libdirstem2=
+ case "$host_os" in
+ solaris*)
+ dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
+ dnl .
+ dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
+ dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
+ dnl symlink is missing, so we set acl_libdirstem2 too.
+ AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
+ [AC_EGREP_CPP([sixtyfour bits], [
+#ifdef _LP64
+sixtyfour bits
+#endif
+ ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
+ ])
+ if test $gl_cv_solaris_64bit = yes; then
+ acl_libdirstem=lib/64
+ case "$host_cpu" in
+ sparc*) acl_libdirstem2=lib/sparcv9 ;;
+ i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
+ esac
+ fi
+ ;;
+ *)
+ searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
+ if test -n "$searchpath"; then
+ acl_save_IFS="${IFS= }"; IFS=":"
+ for searchdir in $searchpath; do
+ if test -d "$searchdir"; then
+ case "$searchdir" in
+ */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
+ */../ | */.. )
+ # Better ignore directories of this form. They are misleading.
+ ;;
+ *) searchdir=`cd "$searchdir" && pwd`
+ case "$searchdir" in
+ */lib64 ) acl_libdirstem=lib64 ;;
+ esac ;;
+ esac
+ fi
+ done
+ IFS="$acl_save_IFS"
+ fi
+ ;;
+ esac
+ test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
+])
diff --git a/src/misc/tm-devel-mac/config.guess b/src/misc/tm-devel-mac/config.guess
index f32079a..1659250 100755
--- a/src/misc/tm-devel-mac/config.guess
+++ b/src/misc/tm-devel-mac/config.guess
@@ -1,14 +1,12 @@
#! /bin/sh
# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
-# Free Software Foundation, Inc.
+# Copyright 1992-2015 Free Software Foundation, Inc.
-timestamp='2008-01-23'
+timestamp='2015-08-20'
# This file 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 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
@@ -17,26 +15,22 @@ timestamp='2008-01-23'
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this program; if not, see .
#
# 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 Per Bothner .
-# Please send patches to . Submit a context
-# diff and a properly formatted ChangeLog entry.
+# the same distribution terms that you use for the rest of that
+# program. This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
+# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+#
+# Please send patches to .
+
me=`echo "$0" | sed -e 's,.*/,,'`
@@ -56,8 +50,7 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+Copyright 1992-2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -139,12 +132,33 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+case "${UNAME_SYSTEM}" in
+Linux|GNU|GNU/*)
+ # If the system lacks a compiler, then just pick glibc.
+ # We could probably try harder.
+ LIBC=gnu
+
+ eval $set_cc_for_build
+ cat <<-EOF > $dummy.c
+ #include
+ #if defined(__UCLIBC__)
+ LIBC=uclibc
+ #elif defined(__dietlibc__)
+ LIBC=dietlibc
+ #else
+ LIBC=gnu
+ #endif
+ EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
+ ;;
+esac
+
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:NetBSD:*:*)
# NetBSD (nbsd) targets should (where applicable) match one or
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format. This provides both forward
@@ -154,23 +168,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
+ /sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || \
+ echo unknown)`
case "${UNAME_MACHINE_ARCH}" in
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
sh5el) machine=sh5le-unknown ;;
+ earmv*)
+ arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
+ endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
+ machine=${arch}${endian}-unknown
+ ;;
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
# to ELF recently, or will in the future.
case "${UNAME_MACHINE_ARCH}" in
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
eval $set_cc_for_build
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep __ELF__ >/dev/null
+ | grep -q __ELF__
then
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
# Return netbsd for either. FIX?
@@ -180,7 +201,14 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
fi
;;
*)
- os=netbsd
+ os=netbsd
+ ;;
+ esac
+ # Determine ABI tags.
+ case "${UNAME_MACHINE_ARCH}" in
+ earm*)
+ expr='s/^earmv[0-9]/-eabi/;s/eb$//'
+ abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
;;
esac
# The OS release
@@ -193,13 +221,17 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
release='-gnu'
;;
*)
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
;;
esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- echo "${machine}-${os}${release}"
+ echo "${machine}-${os}${release}${abi}"
+ exit ;;
+ *:Bitrig:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
exit ;;
*:OpenBSD:*:*)
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
@@ -217,13 +249,16 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:MirBSD:*:*)
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
exit ;;
+ *:Sortix:*:*)
+ echo ${UNAME_MACHINE}-unknown-sortix
+ exit ;;
alpha:OSF1:*:*)
case $UNAME_RELEASE in
*4.0)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
;;
*5.*)
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
;;
esac
# According to Compaq, /usr/sbin/psrinfo has been available on
@@ -269,7 +304,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- exit ;;
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+ exitcode=$?
+ trap '' 0
+ exit $exitcode ;;
Alpha\ *:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# Should we change UNAME_MACHINE based on the output of uname instead
@@ -295,12 +333,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
echo s390-ibm-zvmoe
exit ;;
*:OS400:*:*)
- echo powerpc-ibm-os400
+ echo powerpc-ibm-os400
exit ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
echo arm-acorn-riscix${UNAME_RELEASE}
exit ;;
- arm:riscos:*:*|arm:RISCOS:*:*)
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
echo arm-unknown-riscos
exit ;;
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
@@ -324,14 +362,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
case `/usr/bin/uname -p` in
sparc) echo sparc-icl-nx7; exit ;;
esac ;;
+ s390x:SunOS:*:*)
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
sun4H:SunOS:5.*:*)
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
+ echo i386-pc-auroraux${UNAME_RELEASE}
+ exit ;;
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:6*:*)
# According to config.sub, this is the proper way to canonicalize
@@ -375,23 +432,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# MiNT. But MiNT is downward compatible to TOS, so this should
# be no problem.
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
- exit ;;
+ exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
m68k:machten:*:*)
echo m68k-apple-machten${UNAME_RELEASE}
exit ;;
@@ -461,8 +518,8 @@ EOF
echo m88k-motorola-sysv3
exit ;;
AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
then
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
@@ -475,7 +532,7 @@ EOF
else
echo i586-dg-dgux${UNAME_RELEASE}
fi
- exit ;;
+ exit ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
echo m88k-dolphin-sysv3
exit ;;
@@ -532,15 +589,16 @@ EOF
echo rs6000-ibm-aix3.2
fi
exit ;;
- *:AIX:*:[456])
+ *:AIX:*:[4567])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
else
IBM_ARCH=powerpc
fi
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
+ if [ -x /usr/bin/lslpp ] ; then
+ IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
+ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
else
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
@@ -575,52 +633,52 @@ EOF
9000/[678][0-9][0-9])
if [ -x /usr/bin/getconf ]; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
- 532) # CPU_PA_RISC2_0
- case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;;
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- esac ;;
- esac
+ esac ;;
+ esac
fi
if [ "${HP_ARCH}" = "" ]; then
eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
+ sed 's/^ //' << EOF >$dummy.c
- #define _HPUX_SOURCE
- #include
- #include
+ #define _HPUX_SOURCE
+ #include
+ #include
- int main ()
- {
- #if defined(_SC_KERNEL_BITS)
- long bits = sysconf(_SC_KERNEL_BITS);
- #endif
- long cpu = sysconf (_SC_CPU_VERSION);
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
- case CPU_PA_RISC2_0:
- #if defined(_SC_KERNEL_BITS)
- switch (bits)
- {
- case 64: puts ("hppa2.0w"); break;
- case 32: puts ("hppa2.0n"); break;
- default: puts ("hppa2.0"); break;
- } break;
- #else /* !defined(_SC_KERNEL_BITS) */
- puts ("hppa2.0"); break;
- #endif
- default: puts ("hppa1.0"); break;
- }
- exit (0);
- }
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
EOF
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
test -z "$HP_ARCH" && HP_ARCH=hppa
@@ -640,7 +698,7 @@ EOF
# => hppa64-hp-hpux11.23
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
- grep __LP64__ >/dev/null
+ grep -q __LP64__
then
HP_ARCH="hppa2.0w"
else
@@ -711,22 +769,22 @@ EOF
exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
- exit ;;
+ exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
- exit ;;
+ exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
- exit ;;
+ exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
- exit ;;
+ exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
- exit ;;
+ exit ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
@@ -750,14 +808,14 @@ EOF
exit ;;
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit ;;
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
5000:UNIX_System_V:4.*:*)
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
@@ -769,34 +827,39 @@ EOF
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
- case ${UNAME_MACHINE} in
- pc98)
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ case ${UNAME_PROCESSOR} in
amd64)
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
*)
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
esac
exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
exit ;;
+ *:MINGW64*:*)
+ echo ${UNAME_MACHINE}-pc-mingw64
+ exit ;;
*:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
exit ;;
+ *:MSYS*:*)
+ echo ${UNAME_MACHINE}-pc-msys
+ exit ;;
i*:windows32*:*)
- # uname -m includes "-pc" on this system.
- echo ${UNAME_MACHINE}-mingw32
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
exit ;;
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
- *:Interix*:[3456]*)
- case ${UNAME_MACHINE} in
+ *:Interix*:*)
+ case ${UNAME_MACHINE} in
x86)
echo i586-pc-interix${UNAME_RELEASE}
exit ;;
- EM64T | authenticamd)
+ authenticamd | genuineintel | EM64T)
echo x86_64-unknown-interix${UNAME_RELEASE}
exit ;;
IA64)
@@ -806,6 +869,9 @@ EOF
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
exit ;;
+ 8664:Windows_NT:*)
+ echo x86_64-pc-mks
+ exit ;;
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
# How do we know it's Interix rather than the generic POSIX subsystem?
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
@@ -826,210 +892,160 @@ EOF
exit ;;
*:GNU:*:*)
# the GNU system
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit ;;
*:GNU/*:*:*)
# other systems with GNU libc and userland
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
exit ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
+ aarch64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ aarch64_be:Linux:*:*)
+ UNAME_MACHINE=aarch64_be
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ arc:Linux:*:* | arceb:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
arm*:Linux:*:*)
eval $set_cc_for_build
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_EABI__
then
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
else
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
+ fi
fi
exit ;;
avr32*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
cris:Linux:*:*)
- echo cris-axis-linux-gnu
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
exit ;;
crisv32:Linux:*:*)
- echo crisv32-axis-linux-gnu
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+ exit ;;
+ e2k:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
frv:Linux:*:*)
- echo frv-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ hexagon:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ i*86:Linux:*:*)
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
exit ;;
ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m32r*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
- mips:Linux:*:*)
+ mips:Linux:*:* | mips64:Linux:*:*)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#undef CPU
- #undef mips
- #undef mipsel
+ #undef ${UNAME_MACHINE}
+ #undef ${UNAME_MACHINE}el
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mipsel
+ CPU=${UNAME_MACHINE}el
#else
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips
+ CPU=${UNAME_MACHINE}
#else
CPU=
#endif
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
;;
- mips64:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef mips64
- #undef mips64el
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=mips64el
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=mips64
- #else
- CPU=
- #endif
- #endif
-EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
- ;;
- or32:Linux:*:*)
- echo or32-unknown-linux-gnu
+ openrisc*:Linux:*:*)
+ echo or1k-unknown-linux-${LIBC}
exit ;;
- ppc:Linux:*:*)
- echo powerpc-unknown-linux-gnu
+ or32:Linux:*:* | or1k*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
- ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-gnu
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-${LIBC}
exit ;;
- alpha:Linux:*:*)
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
- EV5) UNAME_MACHINE=alphaev5 ;;
- EV56) UNAME_MACHINE=alphaev56 ;;
- PCA56) UNAME_MACHINE=alphapca56 ;;
- PCA57) UNAME_MACHINE=alphapca56 ;;
- EV6) UNAME_MACHINE=alphaev6 ;;
- EV67) UNAME_MACHINE=alphaev67 ;;
- EV68*) UNAME_MACHINE=alphaev68 ;;
- esac
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-${LIBC}
exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
- *) echo hppa-unknown-linux-gnu ;;
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
+ *) echo hppa-unknown-linux-${LIBC} ;;
esac
exit ;;
- parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-gnu
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-${LIBC}
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-${LIBC}
+ exit ;;
+ ppc64le:Linux:*:*)
+ echo powerpc64le-unknown-linux-${LIBC}
+ exit ;;
+ ppcle:Linux:*:*)
+ echo powerpcle-unknown-linux-${LIBC}
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux
+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
exit ;;
sh64*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ tile*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
vax:Linux:*:*)
- echo ${UNAME_MACHINE}-dec-linux-gnu
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
exit ;;
x86_64:Linux:*:*)
- echo x86_64-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
exit ;;
xtensa*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
- i*86:Linux:*:*)
- # The BFD linker knows what the default object file format is, so
- # first see if it will tell us. cd to the root directory to prevent
- # problems with other programs or directories called `ld' in the path.
- # Set LC_ALL=C to ensure ld outputs messages in English.
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
- | sed -ne '/supported targets:/!d
- s/[ ][ ]*/ /g
- s/.*supported targets: *//
- s/ .*//
- p'`
- case "$ld_supported_targets" in
- elf32-i386)
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
- ;;
- a.out-i386-linux)
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- exit ;;
- coff-i386)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit ;;
- "")
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
- # one that does not give us useful --help.
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
- exit ;;
- esac
- # Determine whether the default compiler is a.out or elf
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include
- #ifdef __ELF__
- # ifdef __GLIBC__
- # if __GLIBC__ >= 2
- LIBC=gnu
- # else
- LIBC=gnulibc1
- # endif
- # else
- LIBC=gnulibc1
- # endif
- #else
- #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
- LIBC=gnu
- #else
- LIBC=gnuaout
- #endif
- #endif
- #ifdef __dietlibc__
- LIBC=dietlibc
- #endif
-EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^LIBC/{
- s: ::g
- p
- }'`"
- test x"${LIBC}" != x && {
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
- exit
- }
- test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
- ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
# earlier versions are messed up and put the nodename in both
@@ -1037,11 +1053,11 @@ EOF
echo i386-sequent-sysv4
exit ;;
i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms.
- # Use sysv4.2uw... so that sysv4* matches it.
+ # Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
exit ;;
i*86:OS/2:*:*)
@@ -1058,7 +1074,7 @@ EOF
i*86:syllable:*:*)
echo ${UNAME_MACHINE}-pc-syllable
exit ;;
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
echo i386-unknown-lynxos${UNAME_RELEASE}
exit ;;
i*86:*DOS:*:*)
@@ -1073,7 +1089,7 @@ EOF
fi
exit ;;
i*86:*:5:[678]*)
- # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
case `/bin/uname -X | grep "^Machine"` in
*486*) UNAME_MACHINE=i486 ;;
*Pentium) UNAME_MACHINE=i586 ;;
@@ -1101,10 +1117,13 @@ EOF
exit ;;
pc:*:*:*)
# Left here for compatibility:
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
- # the processor, so we play safe by assuming i386.
- echo i386-pc-msdosdjgpp
- exit ;;
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
+ # Note: whatever this is, it MUST be the same as what config.sub
+ # prints for the "djgpp" host, or else GDB configury will decide that
+ # this is a cross-build.
+ echo i586-pc-msdosdjgpp
+ exit ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
exit ;;
@@ -1139,8 +1158,18 @@ EOF
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && { echo i486-ncr-sysv4; exit; } ;;
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+ OS_REL='.3'
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
echo m68k-unknown-lynxos${UNAME_RELEASE}
exit ;;
@@ -1153,7 +1182,7 @@ EOF
rs6000:LynxOS:2.*:*)
echo rs6000-unknown-lynxos${UNAME_RELEASE}
exit ;;
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
echo powerpc-unknown-lynxos${UNAME_RELEASE}
exit ;;
SM[BE]S:UNIX_SV:*:*)
@@ -1173,10 +1202,10 @@ EOF
echo ns32k-sni-sysv
fi
exit ;;
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- # says
- echo i586-unisys-sysv4
- exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says
+ echo i586-unisys-sysv4
+ exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes .
# How about differentiating between stratus architectures? -djm
@@ -1202,11 +1231,11 @@ EOF
exit ;;
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
if [ -d /usr/nec ]; then
- echo mips-nec-sysv${UNAME_RELEASE}
+ echo mips-nec-sysv${UNAME_RELEASE}
else
- echo mips-unknown-sysv${UNAME_RELEASE}
+ echo mips-unknown-sysv${UNAME_RELEASE}
fi
- exit ;;
+ exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
echo powerpc-be-beos
exit ;;
@@ -1216,6 +1245,12 @@ EOF
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ x86_64:Haiku:*:*)
+ echo x86_64-unknown-haiku
+ exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
exit ;;
@@ -1242,9 +1277,31 @@ EOF
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
- case $UNAME_PROCESSOR in
- unknown) UNAME_PROCESSOR=powerpc ;;
- esac
+ eval $set_cc_for_build
+ if test "$UNAME_PROCESSOR" = unknown ; then
+ UNAME_PROCESSOR=powerpc
+ fi
+ if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ case $UNAME_PROCESSOR in
+ i386) UNAME_PROCESSOR=x86_64 ;;
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
+ esac
+ fi
+ fi
+ elif test "$UNAME_PROCESSOR" = i386 ; then
+ # Avoid executing cc on OS X 10.9, as it ships with a stub
+ # that puts up a graphical alert prompting to install
+ # developer tools. Any system running Mac OS X 10.7 or
+ # later (Darwin 11 and later) is required to have a 64-bit
+ # processor. This is not true of the ARM version of Darwin
+ # that Apple uses in portable devices.
+ UNAME_PROCESSOR=x86_64
+ fi
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
@@ -1258,7 +1315,10 @@ EOF
*:QNX:*:4*)
echo i386-pc-qnx
exit ;;
- NSE-?:NONSTOP_KERNEL:*:*)
+ NEO-?:NONSTOP_KERNEL:*:*)
+ echo neo-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSE-*:NONSTOP_KERNEL:*:*)
echo nse-tandem-nsk${UNAME_RELEASE}
exit ;;
NSR-?:NONSTOP_KERNEL:*:*)
@@ -1303,13 +1363,13 @@ EOF
echo pdp10-unknown-its
exit ;;
SEI:*:*:SEIUX)
- echo mips-sei-seiux${UNAME_RELEASE}
+ echo mips-sei-seiux${UNAME_RELEASE}
exit ;;
*:DragonFly:*:*)
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit ;;
*:*VMS:*:*)
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
case "${UNAME_MACHINE}" in
A*) echo alpha-dec-vms ; exit ;;
I*) echo ia64-dec-vms ; exit ;;
@@ -1324,158 +1384,13 @@ EOF
i*86:rdos:*:*)
echo ${UNAME_MACHINE}-pc-rdos
exit ;;
-esac
-
-#echo '(No uname command or uname output not recognized.)' 1>&2
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
-eval $set_cc_for_build
-cat >$dummy.c <
-# include
-#endif
-main ()
-{
-#if defined (sony)
-#if defined (MIPSEB)
- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
- I don't know.... */
- printf ("mips-sony-bsd\n"); exit (0);
-#else
-#include
- printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
- "4"
-#else
- ""
-#endif
- ); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
- printf ("arm-acorn-riscix\n"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
- printf ("m68k-hp-bsd\n"); exit (0);
-#endif
-
-#if defined (NeXT)
-#if !defined (__ARCHITECTURE__)
-#define __ARCHITECTURE__ "m68k"
-#endif
- int version;
- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
- if (version < 4)
- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
- else
- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
- exit (0);
-#endif
-
-#if defined (MULTIMAX) || defined (n16)
-#if defined (UMAXV)
- printf ("ns32k-encore-sysv\n"); exit (0);
-#else
-#if defined (CMU)
- printf ("ns32k-encore-mach\n"); exit (0);
-#else
- printf ("ns32k-encore-bsd\n"); exit (0);
-#endif
-#endif
-#endif
-
-#if defined (__386BSD__)
- printf ("i386-pc-bsd\n"); exit (0);
-#endif
-
-#if defined (sequent)
-#if defined (i386)
- printf ("i386-sequent-dynix\n"); exit (0);
-#endif
-#if defined (ns32000)
- printf ("ns32k-sequent-dynix\n"); exit (0);
-#endif
-#endif
-
-#if defined (_SEQUENT_)
- struct utsname un;
-
- uname(&un);
-
- if (strncmp(un.version, "V2", 2) == 0) {
- printf ("i386-sequent-ptx2\n"); exit (0);
- }
- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
- printf ("i386-sequent-ptx1\n"); exit (0);
- }
- printf ("i386-sequent-ptx\n"); exit (0);
-
-#endif
-
-#if defined (vax)
-# if !defined (ultrix)
-# include
-# if defined (BSD)
-# if BSD == 43
- printf ("vax-dec-bsd4.3\n"); exit (0);
-# else
-# if BSD == 199006
- printf ("vax-dec-bsd4.3reno\n"); exit (0);
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# endif
-# else
- printf ("vax-dec-bsd\n"); exit (0);
-# endif
-# else
- printf ("vax-dec-ultrix\n"); exit (0);
-# endif
-#endif
-
-#if defined (alliant) && defined (i860)
- printf ("i860-alliant-bsd\n"); exit (0);
-#endif
-
- exit (1);
-}
-EOF
-
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
- { echo "$SYSTEM_NAME"; exit; }
-
-# Apollos put the system type in the environment.
-
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
- case `getsysinfo -f cpu_type` in
- c1*)
- echo c1-convex-bsd
+ i*86:AROS:*:*)
+ echo ${UNAME_MACHINE}-pc-aros
exit ;;
- c2*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
- exit ;;
- c34*)
- echo c34-convex-bsd
+ x86_64:VMkernel:*:*)
+ echo ${UNAME_MACHINE}-unknown-esx
exit ;;
- c38*)
- echo c38-convex-bsd
- exit ;;
- c4*)
- echo c4-convex-bsd
- exit ;;
- esac
-fi
+esac
cat >&2 <