17
17
dnl You should have received a copy of the GNU Library General Public License
18
18
dnl along with this library; see the file COPYING.LIB. If not, write to
19
dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
dnl Boston, MA 02111-1307, USA.
19
dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
dnl Boston, MA 02110-1301, USA.
22
22
dnl IMPORTANT NOTE:
23
23
dnl Please do not modify this file unless you expect your modifications to be
176
dnl KDE_FIND_PATH(programm-name, variable-name, list of directories,
177
dnl if-not-found, test-parameter)
176
dnl KDE_FIND_PATH(program-name, variable-name, list-of-dirs,
177
dnl if-not-found, test-parameter, prepend-path)
179
dnl Look for program-name in list-of-dirs+$PATH.
180
dnl If prepend-path is set, look in $PATH+list-of-dirs instead.
181
dnl If found, $variable-name is set. If not, if-not-found is evaluated.
182
dnl test-parameter: if set, the program is executed with this arg,
183
dnl and only a successful exit code is required.
178
184
AC_DEFUN([KDE_FIND_PATH],
180
186
AC_MSG_CHECKING([for $1])
547
AC_DEFUN([KDE_SET_DEFAULT_BINDIRS],
549
kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
550
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
551
if test -n "$KDEDIRS"; then
554
for dir in $KDEDIRS; do
555
kde_default_bindirs="$dir/bin $kde_default_bindirs "
536
561
AC_DEFUN([KDE_SUBST_PROGRAMS],
538
563
AC_ARG_WITH(arts,
539
AC_HELP_STRING([--without-arts],[build without aRts [default=yes]]),
564
AC_HELP_STRING([--without-arts],[build without aRts [default=no]]),
540
565
[build_arts=$withval],
543
AM_CONDITIONAL(include_ARTS, test "$build_arts" != "no")
568
AM_CONDITIONAL(include_ARTS, test "$build_arts" '!=' "no")
569
if test "$build_arts" = "no"; then
570
AC_DEFINE(WITHOUT_ARTS, 1, [Defined if compiling without arts])
545
kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
546
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
547
if test -n "$KDEDIRS"; then
550
for dir in $KDEDIRS; do
551
kde_default_bindirs="$dir/bin $kde_default_bindirs "
555
kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_default_bindirs"
573
KDE_SET_DEFAULT_BINDIRS
574
kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
556
575
KDE_FIND_PATH(dcopidl, DCOPIDL, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl)])
557
576
KDE_FIND_PATH(dcopidl2cpp, DCOPIDL2CPP, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl2cpp)])
558
if test "$build_arts" != "no"; then
577
if test "$build_arts" '!=' "no"; then
559
578
KDE_FIND_PATH(mcopidl, MCOPIDL, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(mcopidl)])
560
579
KDE_FIND_PATH(artsc-config, ARTSCCONFIG, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(artsc-config)])
562
KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs])
563
581
KDE_FIND_PATH(meinproc, MEINPROC, [$kde_default_bindirs])
566
585
if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
569
if test "$kde_qtver" = "3" && test "$kde_qtsubver" -le 1; then
589
if test "$kde_qtver" = "3"; then
590
if test "$kde_qtsubver" -le 1; then
593
if test "$kde_qtsubver" -le 2; then
596
if test "$KDECONFIG" != "compiled"; then
597
if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
575
605
KDE_FIND_PATH(kconfig_compiler, KCONFIG_COMPILER, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kconfig_compiler)])
576
606
KDE_FIND_PATH(dcopidlng, DCOPIDLNG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidlng)])
578
KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [XMLLINT=""])
608
if test -n "$kde33ornewer"; then
609
KDE_FIND_PATH(makekdewidgets, MAKEKDEWIDGETS, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(makekdewidgets)])
610
AC_SUBST(MAKEKDEWIDGETS)
612
KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin], [XMLLINT=""])
580
if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
614
if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
581
615
kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
582
616
test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
583
617
AC_FIND_FILE(apps/ksgmltools2/customization/kde-chunk.xsl, $kde_sharedirs, KDE_XSL_STYLESHEET)
601
635
AC_SUBST(DCOP_DEPENDENCIES)
602
636
AC_SUBST(MCOPIDL)
603
637
AC_SUBST(ARTSCCONFIG)
605
638
AC_SUBST(MEINPROC)
606
639
AC_SUBST(KDE_XSL_STYLESHEET)
607
640
AC_SUBST(XMLLINT)
609
if test -x "$KDECONFIG"; then # it can be "compiled"
610
kde_libs_prefix=`$KDECONFIG --prefix`
611
if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
612
AC_MSG_ERROR([$KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
613
This means it has been moved since you installed it.
614
This won't work. Please recompile kdelibs for the new prefix.
617
kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
619
kde_libs_prefix='$(prefix)'
620
kde_libs_htmldir='$(kde_htmldir)'
622
AC_SUBST(kde_libs_prefix)
623
AC_SUBST(kde_libs_htmldir)
626
643
AC_DEFUN([AC_CREATE_KFSSTND],
755
772
# more headers that need to be explicitly included on darwin
756
773
AC_CHECK_HEADERS(sys/types.h stdint.h)
775
# sys/bitypes.h is needed for uint32_t and friends on Tru64
776
AC_CHECK_HEADERS(sys/bitypes.h)
758
778
# darwin requires a poll emulation library
759
779
AC_CHECK_LIB(poll, poll, LIB_POLL="-lpoll")
781
# for some image handling on Mac OS X
782
AC_CHECK_HEADERS(Carbon/Carbon.h)
761
784
# CoreAudio framework
762
785
AC_CHECK_HEADER(CoreAudio/CoreAudio.h, [
763
786
AC_DEFINE(HAVE_COREAUDIO, 1, [Define if you have the CoreAudio API])
764
FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
787
FRAMEWORK_COREAUDIO="-Wl,-framework,CoreAudio"
767
790
AC_CHECK_RES_INIT
1152
1179
if test "$kde_qtver" = "3"; then
1153
1180
if test $kde_qtsubver -gt 0; then
1154
1181
if test $kde_qtsubver -gt 1; then
1155
kde_qt_minversion=">= Qt 3.2"
1182
if test $kde_qtsubver -gt 2; then
1183
kde_qt_minversion=">= Qt 3.3 and < 4.0"
1185
kde_qt_minversion=">= Qt 3.2 and < 4.0"
1157
kde_qt_minversion=">= Qt 3.1 (20021021)"
1188
kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
1160
kde_qt_minversion=">= Qt 3.0"
1191
kde_qt_minversion=">= Qt 3.0 and < 4.0"
1163
1194
if test "$kde_qtver" = "1"; then
1170
1201
if test -z "$3"; then
1171
1202
if test $kde_qtver = 3; then
1172
1203
if test $kde_qtsubver -gt 0; then
1173
kde_qt_verstring="QT_VERSION >= 0x03@VER@00"
1204
kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
1174
1205
qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
1175
1206
kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
1177
kde_qt_verstring="QT_VERSION >= 300"
1208
kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
1180
1211
if test $kde_qtver = 2; then
1672
1704
AC_SUBST(KDE_NO_UNDEFINED)
1707
dnl Check if the linker supports --enable-new-dtags and --as-needed
1708
AC_DEFUN([KDE_CHECK_NEW_LDFLAGS],
1710
AC_ARG_ENABLE(new_ldflags,
1711
AC_HELP_STRING([--enable-new-ldflags],
1712
[enable the new linker flags]),
1713
kde_use_new_ldflags=$enableval,
1714
kde_use_new_ldflags=no)
1716
LDFLAGS_AS_NEEDED=""
1717
LDFLAGS_NEW_DTAGS=""
1718
if test "x$kde_use_new_ldflags" = "xyes"; then
1719
LDFLAGS_NEW_DTAGS=""
1720
KDE_CHECK_COMPILER_FLAG([Wl,--enable-new-dtags],
1721
[LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"],)
1723
KDE_CHECK_COMPILER_FLAG([Wl,--as-needed],
1724
[LDFLAGS_AS_NEEDED="-Wl,--as-needed"],)
1726
AC_SUBST(LDFLAGS_AS_NEEDED)
1727
AC_SUBST(LDFLAGS_NEW_DTAGS)
1675
1730
AC_DEFUN([KDE_CHECK_NMCHECK],
1677
1732
AC_ARG_ENABLE(nmcheck,AC_HELP_STRING([--enable-nmcheck],[enable automatic namespace cleanness check]),
1961
dnl for at least some versions of R, we seem to have to link against -lRlapack. Else loading some
1962
dnl R packages will fail due to unresolved symbols. However, we can't do this unconditionally,
1963
dnl as this is not available in some configurations of R
1964
AC_DEFUN([CHECK_RLAPACK],
1966
AC_MSG_CHECKING(whether we should link against libRlapack.so)
1967
if test -f "$R_HOMEDIR/lib/libRlapack.so"; then
1968
AC_MSG_RESULT(yes $R_HOMEDIR/lib/libRlapack.so exists)
1969
R_LAPACK_FLAG="-lRlapack"
1971
AC_MSG_RESULT(no $R_HOMEDIR/lib/libRlapack.so does not exist)
1974
AC_SUBST(R_LAPACK_FLAG)
1977
dnl for at least some versions of R, we seem to have to link against -lRblas. Else loading some
1978
dnl R packages will fail due to unresolved symbols. However, we can't do this unconditionally,
1979
dnl as this is not available in some configurations of R
1980
AC_DEFUN([CHECK_RBLAS],
1982
AC_MSG_CHECKING(whether we should link against libRblas.so)
1983
if test -f "$R_HOMEDIR/lib/libRblas.so"; then
1984
AC_MSG_RESULT(yes $R_HOMEDIR/lib/libRblas.so exists)
1985
R_BLAS_FLAG="-lRblas"
1987
AC_MSG_RESULT(no $R_HOMEDIR/lib/libRblas.so does not exist)
1990
AC_SUBST(R_BLAS_FLAG)
1904
1993
dnl find out R_INLUCDE_DIR
1905
1994
AC_DEFUN([CHECK_RINCLUDE],
1924
2013
AC_MSG_RESULT($use_r_includes)
2016
dnl find out R (package) library dir
2017
AC_DEFUN([CHECK_RLIBDIR],
2019
AC_MSG_CHECKING(for R package library location)
2020
AC_ARG_WITH(r-libdir,AC_HELP_STRING([--with-r-libdir=DIR],[specify location of R (packages) library tree to install to]),
2021
use_r_libdir="$withval",
2022
r_libs=`$R_HOMEDIR/bin/R CMD sh -c 'echo $R_LIBS'`
2023
if test -n "$r_libs"; then use_r_libdir=`echo "$r_libs" | cut -f1 -d:` ; else use_r_libdir="$R_HOMEDIR/library" ; fi
2027
if test -d "$use_r_libdir"; then
2028
R_LIBDIR="$use_r_libdir"
2031
$use_r_libdir does not exist!
2032
Check your installation of R, and use --with-r-libdir to specify an existing library tree.])
2036
AC_MSG_RESULT($use_r_libdir)
1927
2039
dnl ############################################ RKWARD specific addition end ###################################
2079
2191
AC_REQUIRE([K_PATH_X])
2081
2193
if test $kde_qtver = 3; then
2195
*cygwin*) lib_kded="-lkdeinit_kded" ;;
2198
AC_SUBST(LIB_KDED, $lib_kded)
2082
2199
AC_SUBST(LIB_KDECORE, "-lkdecore")
2083
2200
AC_SUBST(LIB_KDEUI, "-lkdeui")
2084
2201
AC_SUBST(LIB_KIO, "-lkio")
2202
AC_SUBST(LIB_KJS, "-lkjs")
2085
2203
AC_SUBST(LIB_SMB, "-lsmb")
2086
2204
AC_SUBST(LIB_KAB, "-lkab")
2087
2205
AC_SUBST(LIB_KABC, "-lkabc")
2091
2209
AC_SUBST(LIB_KDEPRINT, "-lkdeprint")
2092
2210
AC_SUBST(LIB_KUTILS, "-lkutils")
2093
2211
AC_SUBST(LIB_KDEPIM, "-lkdepim")
2212
AC_SUBST(LIB_KIMPROXY, "-lkimproxy")
2213
AC_SUBST(LIB_KNEWSTUFF, "-lknewstuff")
2214
AC_SUBST(LIB_KDNSSD, "-lkdnssd")
2215
AC_SUBST(LIB_KUNITTEST, "-lkunittest")
2094
2216
# these are for backward compatibility
2095
2217
AC_SUBST(LIB_KSYCOCA, "-lkio")
2096
2218
AC_SUBST(LIB_KFILE, "-lkio")
2558
AC_DEFUN([AC_CHECK_RES_QUERY],
2560
KDE_CHECK_FUNC_EXT(res_query, [
2561
#include <sys/types.h>
2562
#include <netinet/in.h>
2563
#include <arpa/nameser.h>
2568
res_query(NULL, 0, 0, NULL, 0);
2570
[int res_query(const char *, int, int, unsigned char *, int)],
2574
AC_DEFUN([AC_CHECK_DN_SKIPNAME],
2576
KDE_CHECK_FUNC_EXT(dn_skipname, [
2577
#include <sys/types.h>
2578
#include <netinet/in.h>
2579
#include <arpa/nameser.h>
2583
dn_skipname (NULL, NULL);
2585
[int dn_skipname (unsigned char *, unsigned char *)],
2430
2590
AC_DEFUN([AC_FIND_GIF],
2431
2591
[AC_MSG_CHECKING([for giflib])
2432
2592
AC_CACHE_VAL(ac_cv_lib_gif,
2471
2631
ac_save_CFLAGS="$CFLAGS"
2472
2632
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
2474
[/* Override any gcc2 internal prototype to avoid an error. */
2475
struct jpeg_decompress_struct;
2476
typedef struct jpeg_decompress_struct * j_decompress_ptr;
2478
2635
#ifdef __cplusplus
2481
void jpeg_CreateDecompress(j_decompress_ptr cinfo,
2482
int version, size_t structsize);
2638
void jpeg_CreateDecompress();
2483
2639
#ifdef __cplusplus
2486
/* We use char because int might match the return type of a gcc2
2487
builtin and then its argument prototype would still apply. */
2489
[jpeg_CreateDecompress(0L, 0, 0);],
2643
[jpeg_CreateDecompress();],
2490
2644
eval "ac_cv_lib_jpeg_$1=-ljpeg$2",
2491
2645
eval "ac_cv_lib_jpeg_$1=no")
2492
2646
LIBS="$ac_save_LIBS"
2693
2847
AC_SUBST(LIBTIFF)
2850
AC_DEFUN([KDE_FIND_LIBEXR],
2852
AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
2853
AC_REQUIRE([AC_FIND_ZLIB])
2854
AC_CACHE_VAL(ac_cv_libexr,
2856
if test -z "$PKG_CONFIG"; then
2857
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
2860
AC_MSG_CHECKING([for OpenEXR libraries])
2862
if test "$PKG_CONFIG" = "no" ; then
2864
echo "*** The pkg-config script could not be found. Make sure it is"
2865
echo "*** in your path, or set the PKG_CONFIG environment variable"
2866
echo "*** to the full path to pkg-config."
2867
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2869
if !(`$PKG_CONFIG --exists OpenEXR`) ; then
2873
if !(`$PKG_CONFIG --atleast-version="1.1.1" OpenEXR`) ; then
2877
kde_save_LIBS="$LIBS"
2878
LIBS="$LIBS $all_libraries $USER_LDFLAGS `pkg-config --libs OpenEXR` $LIBZ"
2881
kde_save_CXXFLAGS="$CXXFLAGS"
2882
EXR_FLAGS=`$PKG_CONFIG --cflags OpenEXR`
2883
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES $EXR_FLAGS"
2887
#include <ImfRgbaFile.h>
2890
using namespace Imf;
2891
RgbaInputFile file ("dummy");
2894
eval "ac_cv_libexr='`pkg-config --libs OpenEXR`'",
2895
eval "ac_cv_libexr=no"
2897
LIBS="$kde_save_LIBS"
2898
CXXFLAGS="$kde_save_CXXFLAGS"
2901
if eval "test ! \"`echo $ac_cv_libexr`\" = no"; then
2902
AC_DEFINE_UNQUOTED(HAVE_EXR, 1, [Define if you have OpenEXR])
2903
LIB_EXR="$ac_cv_libexr"
2904
AC_MSG_RESULT($ac_cv_libexr)
2697
2918
AC_DEFUN([AC_FIND_PNG],
3056
AC_DEFUN([KDE_CHECK_C_COMPILER_FLAG],
3058
AC_MSG_CHECKING([whether $CC supports -$1])
3059
kde_cache=`echo $1 | sed 'y% .=/+-,%____p__%'`
3060
AC_CACHE_VAL(kde_cv_prog_cc_$kde_cache,
3064
save_CFLAGS="$CFLAGS"
3065
CFLAGS="$CFLAGS -$1"
3066
AC_TRY_LINK([],[ return 0; ], [eval "kde_cv_prog_cc_$kde_cache=yes"], [])
3067
CFLAGS="$save_CFLAGS"
3070
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
2835
3082
dnl AC_REMOVE_FORBIDDEN removes forbidden arguments from variables
2836
3083
dnl use: AC_REMOVE_FORBIDDEN(CC, [-forbid -bad-option whatever])
2837
3084
dnl it's all white-space separated
3106
AC_DEFUN([KDE_CHECK_FOR_BAD_COMPILER],
3108
AC_MSG_CHECKING([whether $CC is blacklisted])
3110
dnl In theory we have tu run this test against $CC and $CXX
3111
dnl in C and in C++ mode, because its perfectly legal for
3112
dnl the user to mix compiler versions, since C has a defined
3115
dnl For now, we assume the user is not on crack.
3119
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
3124
kde_bad_compiler=no,
3125
kde_bad_compiler=yes
3128
AC_MSG_RESULT($kde_bad_compiler)
3130
if test "$kde_bad_compiler" = "yes"; then
3133
This particular compiler version is blacklisted because it
3134
is known to miscompile KDE. Please use a newer version, or
3135
if that is not yet available, choose an older version.
3137
Please do not report a bug or bother us reporting this
3138
configure error. We know about it, and we introduced
3139
it by intention to avoid untraceable bugs or crashes in KDE.
3147
AC_DEFUN([KDE_CHECK_FOR_OPT_NOINLINE_MATCH],
3149
AC_CACHE_CHECK([whether system headers can cope with -O2 -fno-inline],
3150
kde_cv_opt_noinline_match,
3152
kde_cv_opt_noinline_match=irrelevant
3153
dnl if we don't use both -O2 and -fno-inline, this check is moot
3154
if echo "$CFLAGS" | grep -e -O2 >/dev/null 2>/dev/null \
3155
&& echo "$CFLAGS" | grep -e -fno-inline >/dev/null 2>/dev/null ; then
3157
ac_cflags_save="$CFLAGS"
3158
CFLAGS="$CFLAGS -D_USE_GNU"
3162
], [ const char *pt, *et;
3163
et = __extension__ ({ char __a0, __a1, __a2; (__builtin_constant_p ( ";," ) && ((size_t)(const void *)(( ";," )+ 1) - (size_t)(const void *)( ";," ) == 1) ? ((__a0 =((__const char *) ( ";," ))[0], __a0 == '\0') ? ((void) ( pt ),((void *)0) ) : ((__a1 = ((__const char *) ( ";," ))[1], __a1== '\0') ? (__extension__ (__builtin_constant_p ( __a0 ) && ( __a0 ) == '\0' ? (char *) __rawmemchr ( pt , __a0) : strchr( pt , __a0 ))) : ((__a2 = ((__const char *) ( ";," ))[2], __a2 == '\0') ? __strpbrk_c2 ( pt , __a0, __a1) :(((__const char *) ( ";," ))[3] == '\0' ? __strpbrk_c3 ( pt ,__a0, __a1, __a2): strpbrk ( pt , ";," ))))) : strpbrk ( pt , ";," )); }) ;
3165
kde_cv_opt_noinline_match=yes,
3166
kde_cv_opt_noinline_match=no
3169
CFLAGS="$ac_cflags_save"
2858
3175
dnl AC_VALIDIFY_CXXFLAGS checks for forbidden flags the user may have given
2859
3176
AC_DEFUN([AC_VALIDIFY_CXXFLAGS],
3004
3323
if test "$kde_use_warnings" = "yes"; then
3005
3324
if test "$GCC" = "yes"; then
3325
CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3008
CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3328
CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3009
3329
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3010
KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"; CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3330
KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3331
KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3013
CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
3014
3334
KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"])
3015
3335
KDE_CHECK_COMPILER_FLAG(Wno-long-long,[CXXFLAGS="-Wno-long-long $CXXFLAGS"])
3016
KDE_CHECK_COMPILER_FLAG(Wnon-virtual-dtor,[CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"])
3336
dnl ### FIXME: revert for KDE 4
3337
KDE_CHECK_COMPILER_FLAG(Wno-non-virtual-dtor,[CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"])
3020
3341
if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
3021
3342
CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
3346
AC_HELP_STRING([--enable-pch],
3347
[enables precompiled header support (currently only KCC or gcc >=3.4+unsermake) [default=no]]),
3348
[ kde_use_pch=$enableval ],[ kde_use_pch=no ])
3350
HAVE_GCC_VISIBILITY=0
3351
AC_SUBST([HAVE_GCC_VISIBILITY])
3024
3353
if test "$GXX" = "yes"; then
3354
gcc_no_reorder_blocks=NO
3355
KDE_CHECK_COMPILER_FLAG(fno-reorder-blocks,[gcc_no_reorder_blocks=YES])
3356
if test $kde_use_debug_code != "no" && \
3357
test $kde_use_debug_code != "full" && \
3358
test "YES" = "$gcc_no_reorder_blocks" ; then
3359
CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
3360
CFLAGS="$CFLAGS -fno-reorder-blocks"
3025
3362
KDE_CHECK_COMPILER_FLAG(fno-exceptions,[CXXFLAGS="$CXXFLAGS -fno-exceptions"])
3026
3363
KDE_CHECK_COMPILER_FLAG(fno-check-new, [CXXFLAGS="$CXXFLAGS -fno-check-new"])
3027
3364
KDE_CHECK_COMPILER_FLAG(fno-common, [CXXFLAGS="$CXXFLAGS -fno-common"])
3028
3365
KDE_CHECK_COMPILER_FLAG(fexceptions, [USE_EXCEPTIONS="-fexceptions"], USE_EXCEPTIONS= )
3366
ENABLE_PERMISSIVE_FLAG="-fpermissive"
3368
if test "$kde_use_pch" = "yes"; then
3369
AC_MSG_CHECKING(whether gcc supports precompiling c header files)
3371
if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
3372
kde_gcc_supports_pch=yes
3375
kde_gcc_supports_pch=no
3378
if test "$kde_gcc_supports_pch" = "yes"; then
3379
AC_MSG_CHECKING(whether gcc supports precompiling c++ header files)
3380
if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
3381
kde_gcc_supports_pch=yes
3384
kde_gcc_supports_pch=no
3388
rm -f conftest.h conftest.h.gch
3391
KDE_CHECK_FOR_OPT_NOINLINE_MATCH
3392
if test "x$kde_cv_opt_noinline_match" = "xno" ; then
3393
CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`"
3396
AM_CONDITIONAL(unsermake_enable_pch, test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes")
3030
3397
if test "$CXX" = "KCC"; then
3031
3398
dnl unfortunately we currently cannot disable exception support in KCC
3032
3399
dnl because doing so is binary incompatible and Qt by default links with exceptions :-(
3033
3400
dnl KDE_CHECK_COMPILER_FLAG(-no_exceptions,[CXXFLAGS="$CXXFLAGS --no_exceptions"])
3034
3401
dnl KDE_CHECK_COMPILER_FLAG(-exceptions, [USE_EXCEPTIONS="--exceptions"], USE_EXCEPTIONS= )
3037
AC_HELP_STRING([--enable-pch],
3038
[enables precompiled header support (currently only KCC) [default=no]]),
3040
kde_use_pch=$enableval
3043
3403
if test "$kde_use_pch" = "yes"; then
3044
3404
dnl TODO: support --pch-dir!
3045
3405
KDE_CHECK_COMPILER_FLAG(-pch,[CXXFLAGS="$CXXFLAGS --pch"])
3095
3455
KDE_CHECK_COMPILER_FLAG(O0,[NOOPT_CXXFLAGS=-O0])
3457
AC_ARG_ENABLE(coverage,
3458
AC_HELP_STRING([--enable-coverage],[use gcc coverage testing]), [
3459
if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
3460
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
3461
ac_coverage_linker="-lgcc"
3462
elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
3463
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
3464
ac_coverage_linker=""
3466
AC_MSG_ERROR([coverage with your compiler is not supported])
3468
CFLAGS="$CFLAGS $ac_coverage_compiler"
3469
CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
3470
LDFLAGS="$LDFLAGS $ac_coverage_linker"
3097
3473
AC_SUBST(NOOPT_CXXFLAGS)
3098
3474
AC_SUBST(NOOPT_CFLAGS)
3475
AC_SUBST(ENABLE_PERMISSIVE_FLAG)
3477
KDE_CHECK_NEW_LDFLAGS
3100
3478
KDE_CHECK_FINAL
3101
3479
KDE_CHECK_CLOSURE
3102
3480
KDE_CHECK_NMCHECK
3104
3482
ifdef([AM_DEPENDENCIES], AC_REQUIRE([KDE_ADD_DEPENDENCIES]), [])
3485
AC_DEFUN([KDE_CHECK_VISIBILITY_GCC_BUG],
3487
AC_CACHE_CHECK([for gcc -fvisibility-inlines-hidden bug], kde_cv_val_gcc_visibility_bug,
3492
safe_CXXFLAGS=$CXXFLAGS
3493
safe_LDFLAGS=$LDFLAGS
3494
CXXFLAGS="$CXXFLAGS -fPIC -fvisibility-inlines-hidden -O0"
3495
LDFLAGS="$LDFLAGS -shared -fPIC"
3499
/* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */
3501
int some_function( void ) __attribute__ ((visibility("default")));
3502
int some_function( void )
3504
std::string s("blafasel");
3507
], [/* elvis is alive */],
3508
kde_cv_val_gcc_visibility_bug=no, kde_cv_val_gcc_visibility_bug=yes)
3510
CXXFLAGS=$safe_CXXFLAGS
3511
LDFLAGS=$safe_LDFLAGS
3516
if test x$kde_cv_val_gcc_visibility_bug = xno; then
3517
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
3522
AC_DEFUN([KDE_ENABLE_HIDDEN_VISIBILITY],
3524
AC_BEFORE([AC_PATH_QT_1_3], [KDE_ENABLE_HIDDEN_VISIBILITY])
3526
AC_MSG_CHECKING([grepping for visibility push/pop in headers])
3528
if test "x$GXX" = "xyes"; then
3532
[GCC visibility push],
3533
[ #include <exception>
3537
kde_stdc_visibility_patched=yes ],
3540
AC_MSG_WARN([Your libstdc++ doesn't appear to be patched for
3541
visibility support. Disabling -fvisibility=hidden])
3543
kde_stdc_visibility_patched=no ])
3547
kde_have_gcc_visibility=no
3548
KDE_CHECK_COMPILER_FLAG(fvisibility=hidden,
3550
kde_have_gcc_visibility=yes
3551
dnl the whole toolchain is just a mess, gcc is just too buggy
3552
dnl to handle STL with visibility enabled. Lets reconsider
3553
dnl when gcc 4.2 is out or when things get fixed in the compiler.
3554
dnl Contact mueller@kde.org for details.
3555
AC_ARG_ENABLE(gcc-hidden-visibility,
3556
AC_HELP_STRING([--enable-gcc-hidden-visibility],[toolchain hidden visibility [default=no]]),
3557
[kde_have_gcc_visibility=$enableval],
3558
[kde_have_gcc_visibility=no])
3560
AC_CACHE_CHECK([if Qt is patched for -fvisibility], kde_cv_val_qt_gcc_visibility_patched,
3565
safe_CXXFLAGS=$CXXFLAGS
3566
CXXFLAGS="$CXXFLAGS $all_includes"
3570
#include <qglobal.h>
3571
#if Q_EXPORT - 0 != 0
3572
/* if this compiles, then Q_EXPORT is undefined */
3573
/* if Q_EXPORT is nonempty, this will break compilation */
3575
], [/* elvis is alive */],
3576
kde_cv_val_qt_gcc_visibility_patched=no, kde_cv_val_qt_gcc_visibility_patched=yes)
3578
CXXFLAGS=$safe_CXXFLAGS
3583
if test x$kde_have_gcc_visibility = "xyes" && test x$kde_stdc_visibility_patched = "xyes" && test x$kde_cv_val_qt_gcc_visibility_patched = "xyes"; then
3584
CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
3585
KDE_CHECK_VISIBILITY_GCC_BUG
3586
HAVE_GCC_VISIBILITY=1
3587
AC_DEFINE_UNQUOTED(__KDE_HAVE_GCC_VISIBILITY, "$HAVE_GCC_VISIBILITY", [define to 1 if -fvisibility is supported])
3107
3593
AC_DEFUN([KDE_ADD_DEPENDENCIES],
3109
3595
[A]M_DEPENDENCIES(CC)
3131
3617
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
3132
3618
AC_SUBST(KDE_PLUGIN)
3620
# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
3621
KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
3622
AC_SUBST(KDE_CHECK_PLUGIN)
3134
3624
# we patch configure quite some so we better keep that consistent for incremental runs
3135
3625
AC_SUBST(AUTOCONF,'$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure')
3138
3628
AC_DEFUN([KDE_CHECK_LIB64],
3141
3630
AC_ARG_ENABLE(libsuffix,
3142
3631
AC_HELP_STRING([--enable-libsuffix],
3143
[/lib directory suffix (64,32,none[=default])]),
3144
kdelibsuff=$enableval)
3145
# TODO: add an auto case that compiles a little C app to check
3146
# where the glibc is
3147
if test "$kdelibsuff" = "no"; then
3632
[/lib directory suffix (64,32,none,auto[=default])]),
3633
kdelibsuff=$enableval, kdelibsuff="auto")
3635
if test "$kdelibsuff" = "auto"; then
3637
cat > conftest.c << EOF
3643
kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
3644
s,.*/lib\([[^\/]]*\)/.*,\1,
3650
if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
3150
3653
if test -z "$kdelibsuff"; then
3212
3720
dnl Check for the type of the third argument of getsockname
3213
AC_DEFUN([AC_CHECK_SOCKLEN_T], [
3214
AC_MSG_CHECKING(for socklen_t)
3215
AC_CACHE_VAL(ac_cv_socklen_t, [
3219
#include <sys/types.h>
3220
#include <sys/socket.h>
3223
getsockname(0,(struct sockaddr*)0, &a);
3225
ac_cv_socklen_t=socklen_t,
3721
AC_DEFUN([AC_CHECK_SOCKLEN_T],
3723
AC_MSG_CHECKING(for socklen_t)
3724
AC_CACHE_VAL(kde_cv_socklen_t,
3226
3728
AC_TRY_COMPILE([
3227
#include <sys/types.h>
3228
#include <sys/socket.h>
3231
getsockname(0,(struct sockaddr*)0, &a);
3233
ac_cv_socklen_t=int,
3234
ac_cv_socklen_t=size_t
3240
AC_MSG_RESULT($ac_cv_socklen_t)
3241
if test "$ac_cv_socklen_t" != "socklen_t"; then
3242
AC_DEFINE_UNQUOTED(socklen_t, $ac_cv_socklen_t,
3243
[Define the real type of socklen_t])
3245
AC_DEFINE_UNQUOTED(ksize_t, socklen_t, [Compatibility define])
3729
#include <sys/types.h>
3730
#include <sys/socket.h>
3734
getpeername(0,0,&len);
3737
kde_cv_socklen_t=yes
3738
kde_cv_socklen_t_equiv=socklen_t
3742
AC_MSG_RESULT($kde_cv_socklen_t)
3743
if test $kde_cv_socklen_t = no; then
3744
AC_MSG_CHECKING([for socklen_t equivalent for socket functions])
3745
AC_CACHE_VAL(kde_cv_socklen_t_equiv,
3747
kde_cv_socklen_t_equiv=int
3749
for t in int size_t unsigned long "unsigned long"; do
3751
#include <sys/types.h>
3752
#include <sys/socket.h>
3756
getpeername(0,0,&len);
3759
kde_cv_socklen_t_equiv="$t"
3765
AC_MSG_RESULT($kde_cv_socklen_t_equiv)
3767
AC_DEFINE_UNQUOTED(kde_socklen_t, $kde_cv_socklen_t_equiv,
3768
[type to use in place of socklen_t if not defined])
3769
AC_DEFINE_UNQUOTED(ksize_t, $kde_cv_socklen_t_equiv,
3770
[type to use in place of socklen_t if not defined (deprecated, use kde_socklen_t)])
3249
3773
dnl This is a merge of some macros out of the gettext aclocal.m4
3600
4120
[Define if you have the DPMSCapable prototype in <X11/extensions/dpms.h>])
3601
4121
AC_CHECK_DECL(DPMSCapable,
3602
4122
AC_DEFINE(HAVE_DPMSCAPABLE_PROTO),,
3603
[#include <X11/extensions/dpms.h>])
4123
[#include <X11/Xlib.h>
4124
#include <X11/extensions/dpms.h>])
3604
4125
AH_TEMPLATE(HAVE_DPMSINFO_PROTO,
3605
4126
[Define if you have the DPMSInfo prototype in <X11/extensions/dpms.h>])
3606
4127
AC_CHECK_DECL(DPMSInfo,
3607
4128
AC_DEFINE(HAVE_DPMSINFO_PROTO),,
3608
[#include <X11/extensions/dpms.h>])
4129
[#include <X11/Xlib.h>
4130
#include <X11/extensions/dpms.h>])
3609
4131
CFLAGS="$ac_save_cflags"
3610
4132
AC_SUBST(DPMSINC)
3611
4133
AC_SUBST(DPMSLIB)
3633
4155
AC_LANG_CPLUSPLUS
3634
ac_save_ldflags="$LDFLAGS"
3635
ac_save_cxxflags="$CXXFLAGS"
3636
LDFLAGS="$LDFLAGS $GL_LDFLAGS $X_LDFLAGS $all_libraries -lMesaGL -lMesaGLU"
3637
test "x$kde_use_qt_mac" != xyes && test "x$kde_use_qt_emb" != xyes && LDFLAGS="$LDFLAGS -lX11"
3638
LDFLAGS="$LDFLAGS $LIB_XEXT -lm $LIBSOCKET"
4156
ac_save_ldflags=$LDFLAGS
4157
ac_save_cxxflags=$CXXFLAGS
4159
LDFLAGS="$LDFLAGS $GL_LDFLAGS $X_LDFLAGS $all_libraries"
4160
LIBS="$LIBS -lGL -lGLU"
4161
test "x$kde_use_qt_mac" != xyes && test "x$kde_use_qt_emb" != xyes && LIBS="$LIBS -lX11"
4162
LIBS="$LIBS $LIB_XEXT -lm $LIBSOCKET"
3639
4163
CXXFLAGS="$CFLAGS $X_INCLUDES"
3640
4164
test -n "$GL_INCLUDE" && CFLAGS="-I$GL_INCLUDE $CFLAGS"
3641
4165
AC_TRY_LINK([#include <GL/gl.h>
3642
4166
#include <GL/glu.h>
3644
ac_cv_have_gl="mesa", ac_cv_have_gl="no")
3645
if test "x$ac_cv_have_gl" = "xno"; then
3646
LDFLAGS="$ac_save_ldflags $X_LDFLAGS $GL_LDFLAGS $all_libraries -lGLU -lGL"
3647
test "x$kde_use_qt_mac" != xyes && test "x$kde_use_qt_emb" != xyes && LDFLAGS="$LDFLAGS -lX11"
3648
LDFLAGS="$LDFLAGS $LIB_XEXT -lm $LIBSOCKET"
3649
CXXFLAGS="$ac_save_cflags $X_INCLUDES"
3650
test -n "$GL_INCLUDE" && CFLAGS="-I$GL_INCLUDE $CFLAGS"
3651
AC_TRY_LINK([#include <GL/gl.h>
3654
ac_cv_have_gl="yes", ac_cv_have_gl="no")
4168
ac_cv_have_gl="yes", ac_cv_have_gl="no")
3656
4169
AC_LANG_RESTORE
3657
LDFLAGS="$ac_save_ldflags"
3658
CXXFLAGS="$ac_save_cxxflags"
4170
LDFLAGS=$ac_save_ldflags
4171
CXXFLAGS=$ac_save_cxxflags
3661
4175
if test "$ac_cv_have_gl" = "no"; then
3667
4181
AC_DEFINE(HAVE_GL, 1, [Defines if you have GL (Mesa, OpenGL, ...)])
3668
4182
if test "$GL_LDFLAGS" = ""; then
3669
if test "$ac_cv_have_gl" = "mesa"; then
3670
GLLIB='-lMesaGLU -lMesaGL $(LIB_X11)'
3672
GLLIB='-lGLU -lGL $(LIB_X11)'
4183
GLLIB='-lGLU -lGL $(LIB_X11)'
3675
if test "$ac_cv_have_gl" = "mesa"; then
3676
GLLIB="$GL_LDFLAGS -lMesaGLU -lMesaGL "'$(LIB_X11)'
3678
GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
4185
GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
3681
4187
if test "$GL_INCLUDE" = ""; then
3976
4482
AC_DEFUN([KDE_CHECK_LIBPTHREAD],
4484
dnl This code is here specifically to handle the
4485
dnl various flavors of threading library on FreeBSD
4486
dnl 4-, 5-, and 6-, and the (weird) rules around it.
4487
dnl There may be an environment PTHREAD_LIBS that
4488
dnl specifies what to use; otherwise, search for it.
4489
dnl -pthread is special cased and unsets LIBPTHREAD
3980
4493
if test -n "$PTHREAD_LIBS"; then
3981
PTHREAD_LIBS_save="$PTHREAD_LIBS"
3982
PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
3983
KDE_CHECK_LIB($PTHREAD_LIBS, pthread_create, [LIBPTHREAD="$PTHREAD_LIBS_save"] )
3984
PTHREAD_LIBS="$PTHREAD_LIBS_save"
4494
if test "x$PTHREAD_LIBS" = "x-pthread" ; then
4495
LIBPTHREAD="PTHREAD"
4497
PTHREAD_LIBS_save="$PTHREAD_LIBS"
4498
PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
4499
AC_MSG_CHECKING([for pthread_create in $PTHREAD_LIBS])
4500
KDE_CHECK_LIB($PTHREAD_LIBS, pthread_create, [
4501
LIBPTHREAD="$PTHREAD_LIBS_save"])
4502
PTHREAD_LIBS="$PTHREAD_LIBS_save"
4506
dnl Is this test really needed, in the face of the Tru64 test below?
3987
4507
if test -z "$LIBPTHREAD"; then
3988
AC_CHECK_LIB(pthread, pthread_create, [LIBPTHREAD="-lpthread"] )
4508
AC_CHECK_LIB(pthread, pthread_create, [LIBPTHREAD="-lpthread"])
4511
dnl This is a special Tru64 check, see BR 76171 issue #18.
4512
if test -z "$LIBPTHREAD" ; then
4513
AC_MSG_CHECKING([for pthread_create in -lpthread])
4515
LIBS="$LIBS -lpthread"
4516
AC_TRY_LINK([#include <pthread.h>],[(void)pthread_create(0,0,0,0);],[
4518
LIBPTHREAD="-lpthread"],[
4523
dnl Un-special-case for FreeBSD.
4524
if test "x$LIBPTHREAD" = "xPTHREAD" ; then
3991
4528
AC_SUBST(LIBPTHREAD)
4216
4753
AC_DEFUN([KDE_CHECK_PYTHON],
4218
KDE_CHECK_PYTHON_INTERN("2.3",
4219
[KDE_CHECK_PYTHON_INTERN("2.2",
4220
[KDE_CHECK_PYTHON_INTERN("2.1",
4221
[KDE_CHECK_PYTHON_INTERN("2.0",
4222
[KDE_CHECK_PYTHON_INTERN($1, $2) ])
4755
KDE_CHECK_PYTHON_INTERN("2.4",
4756
[KDE_CHECK_PYTHON_INTERN("2.3",
4757
[KDE_CHECK_PYTHON_INTERN("2.2",
4758
[KDE_CHECK_PYTHON_INTERN("2.1",
4759
[KDE_CHECK_PYTHON_INTERN("2.0",
4760
[KDE_CHECK_PYTHON_INTERN($1, $2) ])
4228
4767
AC_DEFUN([KDE_CHECK_STL],
4550
5092
# And delete superfluous '/' to make compares easier
4551
5093
prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
4552
5094
exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
5096
kde_libs_prefix='$(prefix)'
5097
kde_libs_htmldir='$(kde_htmldir)'
5098
AC_SUBST(kde_libs_prefix)
5099
AC_SUBST(kde_libs_htmldir)
5105
AC_DEFUN([KDE_SET_PREFIX],
5108
dnl We can't give real code to that macro, only a value.
5109
dnl It only matters for --help, since we set the prefix in this function anyway.
5110
AC_PREFIX_DEFAULT(${KDEDIR:-the kde prefix})
5112
KDE_SET_DEFAULT_BINDIRS
5113
if test "x$prefix" = "xNONE"; then
5114
dnl no prefix given: look for kde-config in the PATH and deduce the prefix from it
5115
KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kde-config)], [], prepend)
5117
dnl prefix given: look for kde-config, preferrably in prefix, otherwise in PATH
5118
kde_save_PATH="$PATH"
5119
PATH="$exec_prefix/bin:$prefix/bin:$PATH"
5120
KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(kde-config)], [], prepend)
5121
PATH="$kde_save_PATH"
5124
kde_libs_prefix=`$KDECONFIG --prefix`
5125
if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
5126
AC_MSG_ERROR([$KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
5127
This means it has been moved since you installed it.
5128
This won't work. Please recompile kdelibs for the new prefix.
5131
kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
5133
AC_MSG_CHECKING([where to install])
5134
if test "x$prefix" = "xNONE"; then
5135
prefix=$kde_libs_prefix
5136
AC_MSG_RESULT([$prefix (as returned by kde-config)])
5138
dnl --prefix was given. Compare prefixes and warn (in configure.in.bot.end) if different
5139
given_prefix=$prefix
5140
AC_MSG_RESULT([$prefix (as requested)])
5143
# And delete superfluous '/' to make compares easier
5144
prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
5145
exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
5146
given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
5149
AC_SUBST(kde_libs_prefix)
5150
AC_SUBST(kde_libs_htmldir)
4553
5152
KDE_FAST_CONFIGURE
6029
AC_DEFUN([KDE_CHECK_LARGEFILE],
6032
if test "$ac_cv_sys_file_offset_bits" != no; then
6033
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
6036
if test "x$ac_cv_sys_large_files" != "xno"; then
6037
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=1"
6042
dnl A small extension to PKG_CHECK_MODULES (defined in pkg.m4.in)
6043
dnl which allows to search for libs that get installed into the KDE prefix.
6045
dnl Syntax: KDE_PKG_CHECK_MODULES(KSTUFF, libkexif >= 0.2 glib = 1.3.4, action-if, action-not)
6046
dnl defines KSTUFF_LIBS, KSTUFF_CFLAGS, see pkg-config man page
6047
dnl also defines KSTUFF_PKG_ERRORS on error
6048
AC_DEFUN([KDE_PKG_CHECK_MODULES], [
6050
PKG_CONFIG_PATH="$prefix/lib${kdelibsuff}/pkgconfig:$PKG_CONFIG_PATH"
6051
if test "$prefix" != "$kde_libs_prefix"; then
6052
PKG_CONFIG_PATH="$kde_libs_prefix/lib${kdelibsuff}/pkgconfig:$PKG_CONFIG_PATH"
6054
export PKG_CONFIG_PATH
6055
PKG_CHECK_MODULES([$1],[$2],[$3],[$4])
6059
dnl Check for PIE support in the compiler and linker
6060
AC_DEFUN([KDE_CHECK_PIE_SUPPORT],
6062
AC_CACHE_CHECK([for PIE support], kde_cv_val_pie_support,
6066
safe_CXXFLAGS=$CXXFLAGS
6067
safe_LDFLAGS=$LDFLAGS
6068
CXXFLAGS="$CXXFLAGS -fPIE"
6069
LDFLAGS="$LDFLAGS -pie"
6071
AC_TRY_LINK([int foo;], [], [kde_cv_val_pie_support=yes], [kde_cv_val_pie_support=no])
6073
CXXFLAGS=$safe_CXXFLAGS
6074
LDFLAGS=$safe_LDFLAGS
6078
AC_MSG_CHECKING(if enabling -pie/fPIE support)
6081
AC_HELP_STRING([--enable-pie],[platform supports PIE linking [default=detect]]),
6082
[kde_has_pie_support=$enableval],
6083
[kde_has_pie_support=detect])
6085
if test "$kde_has_pie_support" = "detect"; then
6086
kde_has_pie_support=$kde_cv_val_pie_support
6089
AC_MSG_RESULT([$kde_has_pie_support])
6094
AC_SUBST([KDE_USE_FPIE])
6095
AC_SUBST([KDE_USE_PIE])
6097
if test "$kde_has_pie_support" = "yes"; then
6098
KDE_USE_FPIE="-fPIE"
5429
6102
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
5430
6103
## Copyright 1996, 1997, 1998, 1999, 2000, 2001
5431
6104
## Free Software Foundation, Inc.
5444
6117
## You should have received a copy of the GNU General Public License
5445
6118
## along with this program; if not, write to the Free Software
5446
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6119
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5448
6121
## As a special exception to the GNU General Public License, if you
5449
6122
## distribute this file as part of a program that contains a
7984
8661
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7985
8662
case "$host_os" in
7986
8663
rhapsody* | darwin1.[[012]])
7987
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8664
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
7989
8666
*) # Darwin 1.3 on
7990
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8667
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8668
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8670
case ${MACOSX_DEPLOYMENT_TARGET} in
8672
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8675
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
7993
8681
output_verbose_link_cmd='echo'
7994
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
7995
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8682
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
8683
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
7996
8684
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7997
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7998
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8685
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8686
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7999
8687
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8000
8688
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8001
8689
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8112
8800
# Check if GNU C++ uses GNU ld as the underlying linker, since the
8113
8801
# archiving commands below assume that GNU ld is being used.
8114
8802
if test "$with_gnu_ld" = yes; then
8115
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8116
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8803
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
8804
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8118
8806
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8119
8807
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8233
8921
_LT_AC_SYS_LIBPATH_AIX
8234
8922
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8236
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
8237
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8924
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
8925
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8239
8927
if test "$host_cpu" = ia64; then
8240
8928
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8241
8929
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8242
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8930
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8244
8932
# Determine the default libpath from the value encoded in an empty executable.
8245
8933
_LT_AC_SYS_LIBPATH_AIX
8271
8959
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8272
8960
# as there is no search path for DLLs.
8273
8961
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8274
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8962
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no
8275
8963
_LT_AC_TAGVAR(always_export_symbols, $1)=no
8276
8964
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8278
8966
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8279
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8967
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8280
8968
# If the export-symbols file already is a .def file (1st line
8281
8969
# is EXPORTS), use it as is; otherwise, prepend...
8282
8970
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8296
8984
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8297
8985
case "$host_os" in
8298
8986
rhapsody* | darwin1.[[012]])
8299
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8987
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
8301
8989
*) # Darwin 1.3 on
8302
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8990
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8991
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8993
case ${MACOSX_DEPLOYMENT_TARGET} in
8995
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
8998
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
8305
9004
lt_int_apple_cc_single_mod=no
8308
9007
lt_int_apple_cc_single_mod=yes
8310
9009
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8311
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9010
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
8313
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9012
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
8315
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9014
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
8317
9016
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8318
9017
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8319
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9018
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8321
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9020
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8323
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9022
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8324
9023
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8325
9024
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8326
9025
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8495
9194
if test "$GXX" = yes; then
8496
9195
if test "$with_gnu_ld" = no; then
8497
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9196
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8499
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9198
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
8502
9201
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8513
9212
# KCC will only create a shared library if the output file
8514
9213
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8515
9214
# to its proper name (with version) after linking.
8516
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8517
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9215
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
9216
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
8518
9217
# Commands to make compiler produce verbose output that lists
8519
9218
# what "hidden" libraries, object files and flags are used when
8520
9219
# linking a shared library.
8537
9236
with_gnu_ld=yes
8538
9237
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8539
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8540
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9238
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
9239
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8541
9240
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8542
9241
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8543
9242
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8547
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9246
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
9247
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
8550
9249
runpath_var=LD_RUN_PATH
8551
9250
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8602
9301
# KCC will only create a shared library if the output file
8603
9302
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8604
9303
# to its proper name (with version) after linking.
8605
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9304
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
8607
9306
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8608
9307
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8638
9337
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8639
9338
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8640
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9339
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8642
9341
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8643
9342
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8662
9361
# KCC will only create a shared library if the output file
8663
9362
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8664
9363
# to its proper name (with version) after linking.
8665
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9364
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
8667
9366
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8668
9367
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8680
9379
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8681
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9380
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8682
9381
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8683
9382
echo "-hidden">> $lib.exp~
8684
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9383
$CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
8687
9386
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8701
9400
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8702
9401
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8703
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9402
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8705
9404
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8706
9405
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8758
9457
# Sun C++ 4.2, 5.x and Centerline C++
8759
9458
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8760
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9459
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
8761
9460
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8762
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9461
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
8764
9463
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8765
9464
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8803
9502
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8804
9503
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8805
9504
if $CC --version | grep -v '^2\.7' > /dev/null; then
8806
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9505
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
8807
9506
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8808
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9507
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
8810
9509
# Commands to make compiler produce verbose output that lists
8811
9510
# what "hidden" libraries, object files and flags are used when
8815
9514
# g++ 2.7 appears to require `-G' NOT `-shared' on this
8817
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9516
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
8818
9517
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8819
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9518
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
8821
9520
# Commands to make compiler produce verbose output that lists
8822
9521
# what "hidden" libraries, object files and flags are used when
9345
10044
# You should have received a copy of the GNU General Public License
9346
10045
# along with this program; if not, write to the Free Software
9347
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10046
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9349
10048
# As a special exception to the GNU General Public License, if you
9350
10049
# distribute this file as part of a program that contains a
10496
11195
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
10497
11196
# as there is no search path for DLLs.
10498
11197
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10499
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11198
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no
10500
11199
_LT_AC_TAGVAR(always_export_symbols, $1)=no
10501
11200
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10502
11201
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
10504
11203
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10505
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11204
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10506
11205
# If the export-symbols file already is a .def file (1st line
10507
11206
# is EXPORTS), use it as is; otherwise, prepend...
10508
11207
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10672
11371
# Determine the default libpath from the value encoded in an empty executable.
10673
11372
_LT_AC_SYS_LIBPATH_AIX
10674
11373
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
10675
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
10676
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11374
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
11375
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10678
11377
if test "$host_cpu" = ia64; then
10679
11378
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
10680
11379
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
10681
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11380
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10683
11382
# Determine the default libpath from the value encoded in an empty executable.
10684
11383
_LT_AC_SYS_LIBPATH_AIX
10716
11415
# hardcode_libdir_flag_spec is actually meaningless, as there is
10717
11416
# no search path for DLLs.
10718
11417
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
10719
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11418
_LT_AC_TAGVAR(allow_undefined_flag, $1)=no
10720
11419
# Tell ltmain to make .lib files, not .a files.
10722
11421
# Tell ltmain to make .dll files, not .so files.
10723
11422
shrext=".dll"
10724
11423
# FIXME: Setting linknames here is a bad hack.
10725
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11424
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10726
11425
# The linker will automatically build a .lib file if we build a DLL.
10727
11426
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
10728
11427
# FIXME: Should let the user specify the lib program.
10736
11435
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10737
11436
case "$host_os" in
10738
11437
rhapsody* | darwin1.[[012]])
10739
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
11438
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
10741
11440
*) # Darwin 1.3 on
10742
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
11441
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11442
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11444
case ${MACOSX_DEPLOYMENT_TARGET} in
11446
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11449
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
10745
11455
lt_int_apple_cc_single_mod=no
10748
11458
lt_int_apple_cc_single_mod=yes
10750
11460
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10751
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11461
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
10753
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11463
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
10755
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11465
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
10756
11466
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10757
11467
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10758
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11468
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10760
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11470
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10762
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11472
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10763
11473
_LT_AC_TAGVAR(hardcode_direct, $1)=no
10764
11474
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
10765
11475
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10910
11620
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
10911
11621
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10912
11622
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10913
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11623
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10914
11624
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10915
11625
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10931
11641
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10932
11642
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10933
11643
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10934
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11644
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
10935
11645
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10939
11649
if test "$GCC" = yes; then
10940
11650
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10941
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11651
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10943
11653
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10944
11654
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10950
11660
osf4* | osf5*) # as osf3* with the addition of -msym flag
10951
11661
if test "$GCC" = yes; then
10952
11662
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10953
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11663
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10954
11664
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10956
11666
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10976
11686
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
10977
11687
if test "$GCC" = yes; then
10978
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11688
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10979
11689
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10980
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11690
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
10982
11692
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983
11693
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11057
11767
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
11058
11768
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
11059
11769
if test "$GCC" = yes; then
11060
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11770
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11062
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11772
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11064
11774
runpath_var='LD_RUN_PATH'
11065
11775
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no