~ubuntu-branches/ubuntu/karmic/rkward/karmic

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2006-11-06 16:30:00 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 feisty)
  • Revision ID: james.westby@ubuntu.com-20061106163000-qi8ju75eqecrfay7
* new upstream release
* depend on either php4-cli or php5-cli

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
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.
21
21
 
22
22
dnl IMPORTANT NOTE:
23
23
dnl Please do not modify this file unless you expect your modifications to be
96
96
  # Don't add to $LIBS permanently.
97
97
  ac_save_LIBS="$LIBS"
98
98
  LIBS="-l$x_direct_test_library $LIBS"
99
 
AC_TRY_LINK(, [${x_direct_test_function}()],
 
99
AC_TRY_LINK([#include <X11/Intrinsic.h>], [${x_direct_test_function}(1)],
100
100
[LIBS="$ac_save_LIBS"
101
101
# We can link X programs with no special library path.
102
102
ac_x_libraries=],
173
173
done
174
174
])
175
175
 
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)
 
178
dnl
 
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],
179
185
[
180
186
   AC_MSG_CHECKING([for $1])
186
192
        AC_CACHE_VAL(kde_cv_path_$kde_cache,
187
193
        [
188
194
        kde_cv_path="NONE"
189
 
        dirs="$3"
190
195
        kde_save_IFS=$IFS
191
196
        IFS=':'
 
197
        dirs=""
192
198
        for dir in $PATH; do
193
199
          dirs="$dirs $dir"
194
 
        done
 
200
        done
 
201
        if test -z "$6"; then  dnl Append dirs in PATH (default)
 
202
          dirs="$3 $dirs"
 
203
        else  dnl Prepend dirs in PATH (if 6th arg is set)
 
204
          dirs="$dirs $3"
 
205
        fi
195
206
        IFS=$kde_save_IFS
196
207
 
197
208
        for dir in $dirs; do
533
544
])
534
545
])
535
546
 
 
547
AC_DEFUN([KDE_SET_DEFAULT_BINDIRS],
 
548
[
 
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
 
552
       kde_save_IFS=$IFS
 
553
       IFS=:
 
554
       for dir in $KDEDIRS; do
 
555
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
 
556
       done
 
557
       IFS=$kde_save_IFS
 
558
    fi
 
559
])
 
560
 
536
561
AC_DEFUN([KDE_SUBST_PROGRAMS],
537
562
[
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],
541
566
        [build_arts=yes]
542
567
    )
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])
 
571
    fi
544
572
 
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
548
 
           kde_save_IFS=$IFS
549
 
           IFS=:
550
 
           for dir in $KDEDIRS; do
551
 
                kde_default_bindirs="$dir/bin $kde_default_bindirs "
552
 
           done
553
 
           IFS=$kde_save_IFS
554
 
        fi
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)])
561
580
        fi
562
 
        KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs])
563
581
        KDE_FIND_PATH(meinproc, MEINPROC, [$kde_default_bindirs])
564
582
 
565
583
        kde32ornewer=1
 
584
        kde33ornewer=1
566
585
        if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
567
586
            kde32ornewer=
 
587
            kde33ornewer=
568
588
        else
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
570
591
                kde32ornewer=
 
592
              fi
 
593
              if test "$kde_qtsubver" -le 2; then
 
594
                kde33ornewer=
 
595
              fi
 
596
              if test "$KDECONFIG" != "compiled"; then
 
597
                if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
 
598
                  kde33ornewer=
 
599
                fi
 
600
              fi
571
601
            fi
572
602
        fi
573
603
 
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)])
577
607
        fi
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)
 
611
        fi
 
612
        KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin], [XMLLINT=""])
579
613
 
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)
604
 
        AC_SUBST(KDECONFIG)
605
638
        AC_SUBST(MEINPROC)
606
639
        AC_SUBST(KDE_XSL_STYLESHEET)
607
640
        AC_SUBST(XMLLINT)
608
 
 
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.
615
 
                          ])
616
 
           fi
617
 
           kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
618
 
        else
619
 
           kde_libs_prefix='$(prefix)'
620
 
           kde_libs_htmldir='$(kde_htmldir)'
621
 
        fi
622
 
        AC_SUBST(kde_libs_prefix)
623
 
        AC_SUBST(kde_libs_htmldir)
624
641
])dnl
625
642
 
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)
757
774
 
 
775
   # sys/bitypes.h is needed for uint32_t and friends on Tru64
 
776
   AC_CHECK_HEADERS(sys/bitypes.h)
 
777
 
758
778
   # darwin requires a poll emulation library
759
779
   AC_CHECK_LIB(poll, poll, LIB_POLL="-lpoll")
760
780
 
 
781
   # for some image handling on Mac OS X
 
782
   AC_CHECK_HEADERS(Carbon/Carbon.h)
 
783
 
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"
765
788
   ])
766
789
 
767
790
   AC_CHECK_RES_INIT
785
808
   KDE_CHECK_TYPES
786
809
   KDE_CHECK_LIBDL
787
810
   KDE_CHECK_STRLCPY
 
811
   KDE_CHECK_PIE_SUPPORT
788
812
 
789
813
# darwin needs this to initialize the environment
790
814
AC_CHECK_HEADERS(crt_externs.h)
869
893
  kde_use_qt_mac=no
870
894
)
871
895
 
 
896
# used to disable x11-specific stuff on special platforms
 
897
AM_CONDITIONAL(include_x11, test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no")
 
898
 
872
899
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
873
900
 
874
901
AC_MSG_CHECKING(for X)
964
991
  X_LDFLAGS="-L$x_libraries"
965
992
fi
966
993
all_includes="$X_INCLUDES"
967
 
all_libraries="$X_LDFLAGS"
 
994
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
968
995
 
969
996
# Check for libraries that X11R6 Xt/Xaw programs need.
970
997
ac_save_LDFLAGS="$LDFLAGS"
1126
1153
AC_DEFUN([KDE_USE_QT],
1127
1154
[
1128
1155
if test -z "$1"; then
1129
 
  # Current default Qt version: 3.2
 
1156
  # Current default Qt version: 3.3
1130
1157
  kde_qtver=3
1131
 
  kde_qtsubver=2
 
1158
  kde_qtsubver=3
1132
1159
else
1133
1160
  kde_qtsubver=`echo "$1" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
1134
1161
  # following is the check if subversion isnt found in passed argument
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"
 
1184
            else
 
1185
                kde_qt_minversion=">= Qt 3.2 and < 4.0"
 
1186
            fi
1156
1187
         else
1157
 
            kde_qt_minversion=">= Qt 3.1 (20021021)"
 
1188
            kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
1158
1189
         fi
1159
1190
    else
1160
 
      kde_qt_minversion=">= Qt 3.0"
 
1191
      kde_qt_minversion=">= Qt 3.0 and < 4.0"
1161
1192
    fi
1162
1193
  fi
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,"`
1176
1207
     else
1177
 
       kde_qt_verstring="QT_VERSION >= 300"
 
1208
       kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
1178
1209
     fi
1179
1210
   fi
1180
1211
   if test $kde_qtver = 2; then
1191
1222
   kde_qt_verstring="$3"
1192
1223
fi
1193
1224
 
 
1225
if test $kde_qtver = 4; then
 
1226
  kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
 
1227
fi
1194
1228
if test $kde_qtver = 3; then
1195
1229
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
1196
1230
fi
1322
1356
  fi
1323
1357
fi
1324
1358
 
1325
 
if test -z "$LIBQT"; then
1326
1359
dnl ------------------------------------------------------------
1327
1360
dnl If we got --enable-embedded then adjust the Qt library name.
1328
1361
dnl ------------------------------------------------------------
1329
 
  if test "x$kde_use_qt_emb" = "xyes"; then
1330
 
    qtlib="qte"
1331
 
  else
1332
 
    qtlib="qt"
1333
 
  fi
1334
 
 
1335
 
  kde_int_qt="-l$qtlib"
 
1362
if test "x$kde_use_qt_emb" = "xyes"; then
 
1363
  qtlib="qte"
1336
1364
else
1337
 
  kde_int_qt="$LIBQT"
1338
 
  kde_lib_qt_set=yes
 
1365
  qtlib="qt"
1339
1366
fi
1340
1367
 
 
1368
kde_int_qt="-l$qtlib"
 
1369
 
1341
1370
if test -z "$LIBQPE"; then
1342
1371
dnl ------------------------------------------------------------
1343
1372
dnl If we got --enable-palmtop then add -lqpe to the link line
1358
1387
dnl ------------------------------------------------------------------------
1359
1388
 
1360
1389
if test "x$kde_use_qt_mt" = "xyes"; then
1361
 
  if test -z "$LIBQT"; then
1362
 
    LIBQT="-l$qtlib-mt"
1363
 
    kde_int_qt="-l$qtlib-mt"
1364
 
  else
1365
 
    LIBQT="$qtlib-mt"
1366
 
    kde_int_qt="$qtlib-mt"
1367
 
  fi
 
1390
  LIBQT="-l$qtlib-mt"
 
1391
  kde_int_qt="-l$qtlib-mt"
1368
1392
  LIBQT_GLOB="lib$qtlib-mt.*"
1369
1393
  USING_QT_MT="using -mt"
1370
1394
else
1542
1566
 QT_LDFLAGS=""
1543
1567
else
1544
1568
 QT_LDFLAGS="-L$qt_libraries"
1545
 
 all_libraries="$all_libraries $QT_LDFLAGS"
 
1569
 all_libraries="$QT_LDFLAGS $all_libraries"
1546
1570
fi
1547
1571
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
1548
1572
 
1619
1643
 
1620
1644
AC_MSG_RESULT([$kde_cv_uic_plugins])
1621
1645
if test "$kde_cv_uic_plugins" != yes; then
1622
 
        AC_MSG_ERROR([you need to install kdelibs first.])
 
1646
        AC_MSG_ERROR([
 
1647
you need to install kdelibs first.
 
1648
 
 
1649
If you did install kdelibs, then the Qt version that is picked up by
 
1650
this configure is not the same version you used to compile kdelibs. 
 
1651
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the 
 
1652
_same Qt version_, compiled with the _same compiler_ and the same Qt
 
1653
configuration settings.
 
1654
])
1623
1655
fi
1624
1656
fi
1625
1657
])
1672
1704
  AC_SUBST(KDE_NO_UNDEFINED)
1673
1705
])
1674
1706
 
 
1707
dnl Check if the linker supports --enable-new-dtags and --as-needed
 
1708
AC_DEFUN([KDE_CHECK_NEW_LDFLAGS],
 
1709
[
 
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)
 
1715
 
 
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"],)
 
1722
 
 
1723
       KDE_CHECK_COMPILER_FLAG([Wl,--as-needed],
 
1724
                [LDFLAGS_AS_NEEDED="-Wl,--as-needed"],)
 
1725
  fi
 
1726
  AC_SUBST(LDFLAGS_AS_NEEDED)
 
1727
  AC_SUBST(LDFLAGS_NEW_DTAGS)
 
1728
])
 
1729
 
1675
1730
AC_DEFUN([KDE_CHECK_NMCHECK],
1676
1731
[
1677
1732
  AC_ARG_ENABLE(nmcheck,AC_HELP_STRING([--enable-nmcheck],[enable automatic namespace cleanness check]),
1738
1793
 
1739
1794
if test -z "$1"; then
1740
1795
 
1741
 
kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
 
1796
kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
1742
1797
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
1743
1798
kde_incdirs="$ac_kde_includes $kde_incdirs"
1744
1799
AC_FIND_FILE($kde_check_header, $kde_incdirs, kde_incdir)
1750
1805
So, check this please and use another prefix!])
1751
1806
fi
1752
1807
 
1753
 
kde_libdirs="/usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
 
1808
kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
1754
1809
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
1755
1810
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
1756
1811
AC_FIND_FILE($kde_check_lib, $kde_libdirs, kde_libdir)
1784
1839
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
1785
1840
fi
1786
1841
 
1787
 
else dnl test -z $1
 
1842
else dnl test -z $1, e.g. from kdelibs
1788
1843
 
1789
1844
  ac_cv_have_kde="have_kde=no"
1790
1845
 
1832
1887
 
1833
1888
KDE_LDFLAGS="-L$kde_libraries"
1834
1889
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then 
1835
 
 all_libraries="$all_libraries $KDE_LDFLAGS"
 
1890
 all_libraries="$KDE_LDFLAGS $all_libraries"
1836
1891
fi
1837
1892
 
1838
1893
AC_SUBST(KDE_LDFLAGS)
1856
1911
dnl ############################################ RKWARD specific addition begin #################################
1857
1912
AC_REQUIRE([CHECK_RHOME])
1858
1913
AC_REQUIRE([CHECK_LIBRSO])
 
1914
AC_REQUIRE([CHECK_RLIBDIR])
1859
1915
AC_REQUIRE([CHECK_RINCLUDE])
 
1916
AC_REQUIRE([CHECK_RLAPACK])
 
1917
AC_REQUIRE([CHECK_RBLAS])
1860
1918
dnl ############################################ RKWARD specific addition end ###################################
1861
1919
 
1862
1920
])
1900
1958
fi
1901
1959
])
1902
1960
 
 
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],
 
1965
[
 
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"
 
1970
else
 
1971
   AC_MSG_RESULT(no $R_HOMEDIR/lib/libRlapack.so does not exist)
 
1972
   R_LAPACK_FLAG=""
 
1973
fi
 
1974
   AC_SUBST(R_LAPACK_FLAG)
 
1975
])
 
1976
 
 
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],
 
1981
[
 
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"
 
1986
else
 
1987
   AC_MSG_RESULT(no $R_HOMEDIR/lib/libRblas.so does not exist)
 
1988
   R_BLAS_FLAG=""
 
1989
fi
 
1990
   AC_SUBST(R_BLAS_FLAG)
 
1991
])
1903
1992
 
1904
1993
dnl find out R_INLUCDE_DIR
1905
1994
AC_DEFUN([CHECK_RINCLUDE],
1924
2013
AC_MSG_RESULT($use_r_includes)
1925
2014
])
1926
2015
 
 
2016
dnl find out R (package) library dir
 
2017
AC_DEFUN([CHECK_RLIBDIR],
 
2018
[
 
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
 
2024
)
 
2025
 
 
2026
r_libdir=
 
2027
if test -d "$use_r_libdir"; then
 
2028
   R_LIBDIR="$use_r_libdir"
 
2029
else
 
2030
   AC_MSG_ERROR([
 
2031
   $use_r_libdir does not exist!
 
2032
   Check your installation of R, and use --with-r-libdir to specify an existing library tree.])
 
2033
fi
 
2034
AC_SUBST(R_LIBDIR)
 
2035
 
 
2036
AC_MSG_RESULT($use_r_libdir)
 
2037
])
 
2038
 
1927
2039
dnl ############################################ RKWARD specific addition end ###################################
1928
2040
 
1929
2041
 
2079
2191
   AC_REQUIRE([K_PATH_X])
2080
2192
 
2081
2193
if test $kde_qtver = 3; then
 
2194
   case $host in 
 
2195
               *cygwin*) lib_kded="-lkdeinit_kded" ;;
 
2196
               *) lib_kded="" ;;
 
2197
       esac
 
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")
2344
2466
        [MKSTEMPS])
2345
2467
])
2346
2468
 
 
2469
AC_DEFUN([AC_CHECK_MKSTEMP],
 
2470
[
 
2471
        KDE_CHECK_FUNC_EXT(mkstemp, [
 
2472
#include <stdlib.h>
 
2473
#include <unistd.h>
 
2474
],
 
2475
        [
 
2476
mkstemp("/tmp/aaaXXXXXX");
 
2477
],
 
2478
        [int mkstemp(char *)],
 
2479
        [MKSTEMP])
 
2480
])
 
2481
 
2347
2482
AC_DEFUN([AC_CHECK_MKDTEMP],
2348
2483
[
2349
2484
        KDE_CHECK_FUNC_EXT(mkdtemp, [
2383
2518
  LIBS=$kde_libs_safe
2384
2519
  AC_SUBST(LIBRESOLV)
2385
2520
 
2386
 
  AC_MSG_CHECKING([if res_init is available])
2387
 
  AC_TRY_COMPILE(
 
2521
  KDE_CHECK_FUNC_EXT(res_init,
2388
2522
    [
2389
2523
#include <sys/types.h>
2390
2524
#include <netinet/in.h>
2391
2525
#include <arpa/nameser.h>
2392
2526
#include <resolv.h>
2393
2527
    ],
2394
 
    [
2395
 
      res_init();
2396
 
    ],
2397
 
    [
2398
 
      AC_MSG_RESULT(yes)
2399
 
      AC_DEFINE(HAVE_RES_INIT, 1, [Define if you have the res_init function])
2400
 
    ],
2401
 
    [ AC_MSG_RESULT(no) ]
2402
 
  )
 
2528
    [res_init()],
 
2529
    [int res_init(void)],
 
2530
    [RES_INIT])
2403
2531
])
2404
2532
 
2405
2533
AC_DEFUN([AC_CHECK_STRLCPY],
2427
2555
        [STRLCAT])
2428
2556
])
2429
2557
 
 
2558
AC_DEFUN([AC_CHECK_RES_QUERY],
 
2559
[
 
2560
        KDE_CHECK_FUNC_EXT(res_query, [
 
2561
#include <sys/types.h>
 
2562
#include <netinet/in.h>
 
2563
#include <arpa/nameser.h>
 
2564
#include <resolv.h>
 
2565
#include <netdb.h>
 
2566
],
 
2567
[
 
2568
res_query(NULL, 0, 0, NULL, 0);
 
2569
],
 
2570
        [int res_query(const char *, int, int, unsigned char *, int)],
 
2571
        [RES_QUERY])
 
2572
])
 
2573
 
 
2574
AC_DEFUN([AC_CHECK_DN_SKIPNAME],
 
2575
[
 
2576
        KDE_CHECK_FUNC_EXT(dn_skipname, [
 
2577
#include <sys/types.h>
 
2578
#include <netinet/in.h>
 
2579
#include <arpa/nameser.h>
 
2580
#include <resolv.h>
 
2581
],
 
2582
[
 
2583
dn_skipname (NULL, NULL);
 
2584
],
 
2585
        [int dn_skipname (unsigned char *, unsigned char *)],
 
2586
        [DN_SKIPNAME])
 
2587
])
 
2588
 
 
2589
 
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"
2473
2633
AC_TRY_LINK(
2474
 
[/* Override any gcc2 internal prototype to avoid an error.  */
2475
 
struct jpeg_decompress_struct;
2476
 
typedef struct jpeg_decompress_struct * j_decompress_ptr;
2477
 
typedef int size_t;
 
2634
[
2478
2635
#ifdef __cplusplus
2479
2636
extern "C" {
2480
2637
#endif
2481
 
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
2482
 
                                    int version, size_t structsize);
 
2638
void jpeg_CreateDecompress();
2483
2639
#ifdef __cplusplus
2484
2640
}
2485
2641
#endif
2486
 
/* We use char because int might match the return type of a gcc2
2487
 
    builtin and then its argument prototype would still apply.  */
2488
2642
],
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)
2694
2848
])
2695
2849
 
 
2850
AC_DEFUN([KDE_FIND_LIBEXR],
 
2851
[
 
2852
AC_REQUIRE([KDE_CHECK_EXTRA_LIBS])
 
2853
AC_REQUIRE([AC_FIND_ZLIB])
 
2854
AC_CACHE_VAL(ac_cv_libexr,
 
2855
[
 
2856
  if test -z "$PKG_CONFIG"; then
 
2857
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
2858
  fi
 
2859
 
 
2860
  AC_MSG_CHECKING([for OpenEXR libraries])
 
2861
 
 
2862
  if test "$PKG_CONFIG" = "no" ; then
 
2863
     AC_MSG_RESULT(no)
 
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."
 
2868
  else
 
2869
     if !(`$PKG_CONFIG --exists OpenEXR`) ; then
 
2870
        AC_MSG_RESULT(no)
 
2871
        EXRSTATUS=no
 
2872
     else
 
2873
        if !(`$PKG_CONFIG --atleast-version="1.1.1" OpenEXR`) ; then
 
2874
           AC_MSG_RESULT(no)
 
2875
           EXRSTATUS=old
 
2876
        else
 
2877
           kde_save_LIBS="$LIBS"
 
2878
           LIBS="$LIBS $all_libraries $USER_LDFLAGS `pkg-config --libs OpenEXR` $LIBZ"
 
2879
           AC_LANG_SAVE
 
2880
           AC_LANG_CPLUSPLUS
 
2881
           kde_save_CXXFLAGS="$CXXFLAGS"
 
2882
           EXR_FLAGS=`$PKG_CONFIG --cflags OpenEXR`
 
2883
           CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES $EXR_FLAGS"
 
2884
 
 
2885
           AC_TRY_LINK(dnl
 
2886
               [
 
2887
               #include <ImfRgbaFile.h>
 
2888
               ],
 
2889
               [
 
2890
               using namespace Imf;
 
2891
               RgbaInputFile file ("dummy");
 
2892
               return 0;
 
2893
               ],
 
2894
               eval "ac_cv_libexr='`pkg-config --libs OpenEXR`'",
 
2895
               eval "ac_cv_libexr=no"
 
2896
           )
 
2897
           LIBS="$kde_save_LIBS"
 
2898
           CXXFLAGS="$kde_save_CXXFLAGS"
 
2899
           AC_LANG_RESTORE
 
2900
           ])dnl
 
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)
 
2905
           else
 
2906
               AC_MSG_RESULT(no)
 
2907
               LIB_EXR=""
 
2908
           fi
 
2909
        fi
 
2910
     fi
 
2911
  fi
 
2912
  AC_SUBST(LIB_EXR)
 
2913
  AC_SUBST(EXR_FLAGS)
 
2914
])
 
2915
 
 
2916
 
2696
2917
 
2697
2918
AC_DEFUN([AC_FIND_PNG],
2698
2919
[
2832
3053
fi
2833
3054
])
2834
3055
 
 
3056
AC_DEFUN([KDE_CHECK_C_COMPILER_FLAG],
 
3057
[
 
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,
 
3061
[
 
3062
  AC_LANG_SAVE
 
3063
  AC_LANG_C
 
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"
 
3068
  AC_LANG_RESTORE
 
3069
])
 
3070
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
 
3071
 AC_MSG_RESULT(yes)
 
3072
 :
 
3073
 $2
 
3074
else
 
3075
 AC_MSG_RESULT(no)
 
3076
 :
 
3077
 $3
 
3078
fi
 
3079
])
 
3080
 
 
3081
 
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
2855
3102
  fi
2856
3103
])
2857
3104
 
 
3105
 
 
3106
AC_DEFUN([KDE_CHECK_FOR_BAD_COMPILER],
 
3107
[
 
3108
  AC_MSG_CHECKING([whether $CC is blacklisted])
 
3109
 
 
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
 
3113
  dnl ABI. 
 
3114
  dnl 
 
3115
  dnl For now, we assume the user is not on crack.
 
3116
 
 
3117
  AC_TRY_COMPILE([
 
3118
#ifdef __GNUC__
 
3119
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
 
3120
choke me
 
3121
#endif
 
3122
#endif
 
3123
], ,
 
3124
  kde_bad_compiler=no, 
 
3125
  kde_bad_compiler=yes
 
3126
)
 
3127
 
 
3128
  AC_MSG_RESULT($kde_bad_compiler)
 
3129
 
 
3130
if test "$kde_bad_compiler" = "yes"; then
 
3131
  AC_MSG_ERROR([
 
3132
 
 
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. 
 
3136
 
 
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.
 
3140
 
 
3141
])
 
3142
fi
 
3143
 
 
3144
])
 
3145
 
 
3146
 
 
3147
AC_DEFUN([KDE_CHECK_FOR_OPT_NOINLINE_MATCH],
 
3148
[
 
3149
  AC_CACHE_CHECK([whether system headers can cope with -O2 -fno-inline],
 
3150
    kde_cv_opt_noinline_match,
 
3151
  [
 
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
 
3156
 
 
3157
    ac_cflags_save="$CFLAGS"
 
3158
    CFLAGS="$CFLAGS -D_USE_GNU"
 
3159
 
 
3160
    AC_TRY_LINK([
 
3161
  #include <string.h>
 
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 ,  ";,"  )); }) ;
 
3164
],
 
3165
    kde_cv_opt_noinline_match=yes,
 
3166
    kde_cv_opt_noinline_match=no
 
3167
    )
 
3168
 
 
3169
    CFLAGS="$ac_cflags_save"
 
3170
  fi
 
3171
  ])
 
3172
])
 
3173
 
 
3174
 
2858
3175
dnl AC_VALIDIFY_CXXFLAGS checks for forbidden flags the user may have given
2859
3176
AC_DEFUN([AC_VALIDIFY_CXXFLAGS],
2860
3177
[dnl
2908
3225
    fi
2909
3226
   ], [kde_use_strict_options="no"])
2910
3227
 
2911
 
  AC_ARG_ENABLE(warnings,AC_HELP_STRING([--disable-warnings],[disables compilation with -Wall and similiar]),
 
3228
  AC_ARG_ENABLE(warnings,AC_HELP_STRING([--disable-warnings],[disables compilation with -Wall and similar]),
2912
3229
   [
2913
3230
    if test $enableval = "no"; then
2914
3231
         kde_use_warnings="no"
2939
3256
      if test $kde_use_debug_code = "full"; then
2940
3257
        CFLAGS="-g3 -fno-inline $CFLAGS"
2941
3258
      else
2942
 
        CFLAGS="-g -O2 $CFLAGS"
 
3259
        CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS"
2943
3260
      fi
2944
3261
    else
2945
3262
      CFLAGS="-O2 $CFLAGS"
2964
3281
 
2965
3282
  AC_PROG_CXX
2966
3283
 
 
3284
  KDE_CHECK_FOR_BAD_COMPILER
 
3285
 
2967
3286
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
2968
3287
    if test "$kde_use_debug_code" != "no"; then
2969
3288
      if test "$CXX" = "KCC"; then
2972
3291
        if test "$kde_use_debug_code" = "full"; then
2973
3292
          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
2974
3293
        else
2975
 
          CXXFLAGS="-g -O2 $CXXFLAGS"
 
3294
          CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS"
2976
3295
        fi
2977
3296
      fi
2978
3297
      KDE_CHECK_COMPILER_FLAG(fno-builtin,[CXXFLAGS="-fno-builtin $CXXFLAGS"])
2985
3304
        CXXFLAGS="+K3 $CXXFLAGS"
2986
3305
      else
2987
3306
        CXXFLAGS="-O2 $CXXFLAGS"
2988
 
      fi  
 
3307
      fi
2989
3308
    fi
2990
3309
  fi
2991
3310
 
3003
3322
 
3004
3323
  if test "$kde_use_warnings" = "yes"; then
3005
3324
      if test "$GCC" = "yes"; then
 
3325
        CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3006
3326
        case $host in
3007
3327
          *-*-linux-gnu)        
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"])
3011
3332
          ;;
3012
3333
        esac
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"])
3017
3338
     fi
3018
3339
  fi
3019
3340
 
3020
3341
  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
3021
3342
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
3022
3343
  fi
3023
 
    
 
3344
 
 
3345
  AC_ARG_ENABLE(pch,
 
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 ])
 
3349
 
 
3350
  HAVE_GCC_VISIBILITY=0
 
3351
  AC_SUBST([HAVE_GCC_VISIBILITY])
 
3352
 
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"
 
3361
    fi
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"
 
3367
 
 
3368
    if test "$kde_use_pch" = "yes"; then
 
3369
        AC_MSG_CHECKING(whether gcc supports precompiling c header files)
 
3370
        echo >conftest.h
 
3371
        if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
 
3372
            kde_gcc_supports_pch=yes
 
3373
            AC_MSG_RESULT(yes)
 
3374
        else
 
3375
            kde_gcc_supports_pch=no
 
3376
            AC_MSG_RESULT(no)
 
3377
        fi
 
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
 
3382
                AC_MSG_RESULT(yes)
 
3383
            else
 
3384
                kde_gcc_supports_pch=no
 
3385
                AC_MSG_RESULT(no)
 
3386
            fi
 
3387
        fi
 
3388
        rm -f conftest.h conftest.h.gch
 
3389
    fi
 
3390
 
 
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//"`"
 
3394
    fi
3029
3395
  fi
 
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=   )
3035
3402
 
3036
 
    AC_ARG_ENABLE(pch,
3037
 
        AC_HELP_STRING([--enable-pch],
3038
 
                       [enables precompiled header support (currently only KCC) [default=no]]),
3039
 
    [
3040
 
      kde_use_pch=$enableval
3041
 
    ],[kde_use_pch=no])
3042
 
 
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"])
3094
3454
  fi
3095
3455
  KDE_CHECK_COMPILER_FLAG(O0,[NOOPT_CXXFLAGS=-O0])
3096
3456
 
 
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=""
 
3465
      else
 
3466
        AC_MSG_ERROR([coverage with your compiler is not supported])
 
3467
      fi
 
3468
      CFLAGS="$CFLAGS $ac_coverage_compiler"
 
3469
      CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
 
3470
      LDFLAGS="$LDFLAGS $ac_coverage_linker"
 
3471
    ])
 
3472
 
3097
3473
  AC_SUBST(NOOPT_CXXFLAGS)
3098
3474
  AC_SUBST(NOOPT_CFLAGS)
 
3475
  AC_SUBST(ENABLE_PERMISSIVE_FLAG)
3099
3476
 
 
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]), [])
3105
3483
])
3106
3484
 
 
3485
AC_DEFUN([KDE_CHECK_VISIBILITY_GCC_BUG],
 
3486
  [
 
3487
    AC_CACHE_CHECK([for gcc -fvisibility-inlines-hidden bug], kde_cv_val_gcc_visibility_bug,
 
3488
      [
 
3489
        AC_LANG_SAVE
 
3490
        AC_LANG_CPLUSPLUS
 
3491
 
 
3492
        safe_CXXFLAGS=$CXXFLAGS
 
3493
        safe_LDFLAGS=$LDFLAGS
 
3494
        CXXFLAGS="$CXXFLAGS -fPIC -fvisibility-inlines-hidden -O0"
 
3495
        LDFLAGS="$LDFLAGS -shared -fPIC"
 
3496
 
 
3497
        AC_TRY_LINK(
 
3498
        [
 
3499
          /* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */
 
3500
          #include <string>
 
3501
          int some_function( void ) __attribute__ ((visibility("default")));
 
3502
          int some_function( void )
 
3503
          {
 
3504
            std::string s("blafasel");
 
3505
            return 0;
 
3506
          }
 
3507
        ], [/* elvis is alive */],
 
3508
        kde_cv_val_gcc_visibility_bug=no, kde_cv_val_gcc_visibility_bug=yes)
 
3509
 
 
3510
        CXXFLAGS=$safe_CXXFLAGS
 
3511
        LDFLAGS=$safe_LDFLAGS
 
3512
        AC_LANG_RESTORE
 
3513
      ]
 
3514
    )
 
3515
 
 
3516
    if test x$kde_cv_val_gcc_visibility_bug = xno; then
 
3517
      CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
 
3518
    fi
 
3519
  ]
 
3520
)
 
3521
 
 
3522
AC_DEFUN([KDE_ENABLE_HIDDEN_VISIBILITY],
 
3523
[
 
3524
  AC_BEFORE([AC_PATH_QT_1_3], [KDE_ENABLE_HIDDEN_VISIBILITY])
 
3525
 
 
3526
  AC_MSG_CHECKING([grepping for visibility push/pop in headers])
 
3527
 
 
3528
  if test "x$GXX" = "xyes"; then
 
3529
    AC_LANG_SAVE
 
3530
    AC_LANG_CPLUSPLUS
 
3531
    AC_EGREP_CPP(
 
3532
       [GCC visibility push],
 
3533
       [ #include <exception> 
 
3534
       ], 
 
3535
    [
 
3536
      AC_MSG_RESULT(yes)
 
3537
      kde_stdc_visibility_patched=yes ],
 
3538
    [ 
 
3539
      AC_MSG_RESULT(no)
 
3540
      AC_MSG_WARN([Your libstdc++ doesn't appear to be patched for 
 
3541
                   visibility support. Disabling -fvisibility=hidden])
 
3542
 
 
3543
      kde_stdc_visibility_patched=no ])
 
3544
 
 
3545
    AC_LANG_RESTORE
 
3546
 
 
3547
    kde_have_gcc_visibility=no
 
3548
    KDE_CHECK_COMPILER_FLAG(fvisibility=hidden, 
 
3549
    [
 
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])
 
3559
 
 
3560
      AC_CACHE_CHECK([if Qt is patched for -fvisibility], kde_cv_val_qt_gcc_visibility_patched,
 
3561
        [
 
3562
          AC_LANG_SAVE
 
3563
          AC_LANG_CPLUSPLUS
 
3564
 
 
3565
          safe_CXXFLAGS=$CXXFLAGS
 
3566
          CXXFLAGS="$CXXFLAGS $all_includes"
 
3567
 
 
3568
          AC_TRY_COMPILE(
 
3569
          [
 
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 */
 
3574
#endif
 
3575
          ], [/* elvis is alive */],
 
3576
          kde_cv_val_qt_gcc_visibility_patched=no, kde_cv_val_qt_gcc_visibility_patched=yes)
 
3577
 
 
3578
          CXXFLAGS=$safe_CXXFLAGS
 
3579
          AC_LANG_RESTORE
 
3580
        ]
 
3581
      )
 
3582
 
 
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])
 
3588
      fi
 
3589
    ])
 
3590
  fi
 
3591
])
 
3592
 
3107
3593
AC_DEFUN([KDE_ADD_DEPENDENCIES],
3108
3594
[
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)
3133
3619
 
 
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)
 
3623
 
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')
3136
3626
])
3137
3627
 
3138
3628
AC_DEFUN([KDE_CHECK_LIB64],
3139
3629
[
3140
 
    kdelibsuff=no
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")
 
3634
    
 
3635
    if test "$kdelibsuff" = "auto"; then
 
3636
    
 
3637
cat > conftest.c << EOF
 
3638
#include <stdio.h>
 
3639
int main() {
 
3640
 return 0;
 
3641
}
 
3642
EOF
 
3643
        kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
 
3644
    s,.*/lib\([[^\/]]*\)/.*,\1, 
 
3645
    p 
 
3646
}'`
 
3647
        rm -rf conftest.*
 
3648
    fi  
 
3649
        
 
3650
    if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
3148
3651
       kdelibsuff=
3149
3652
    fi
3150
3653
    if test -z "$kdelibsuff"; then
3155
3658
            libdir="$libdir${kdelibsuff}"
3156
3659
            AC_SUBST([libdir], ["$libdir"])  dnl ugly hack for lib64 platforms
3157
3660
        fi
3158
 
        AC_DEFINE_UNQUOTED(KDELIBSUFF, ["\"${kdelibsuff}\""], Suffix for lib directories)
 
3661
        AC_DEFINE_UNQUOTED(KDELIBSUFF, ["${kdelibsuff}"], Suffix for lib directories)
3159
3662
        AC_MSG_RESULT([using lib directory suffix $kdelibsuff])
3160
3663
    fi
3161
3664
])
3167
3670
  AC_CHECK_SIZEOF(char *, 4)dnl
3168
3671
])dnl
3169
3672
 
 
3673
dnl Not used - kept for compat only?
3170
3674
AC_DEFUN([KDE_DO_IT_ALL],
3171
3675
[
3172
3676
AC_CANONICAL_SYSTEM
3189
3693
 
3190
3694
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
3191
3695
 
3192
 
  KDE_RPATH="-R \$(kde_libraries)"
 
3696
  KDE_RPATH="-R \$(libdir)"
 
3697
 
 
3698
  if test "$kde_libraries" != "$libdir"; then
 
3699
      KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
 
3700
  fi
3193
3701
 
3194
3702
  if test -n "$qt_libraries"; then
3195
3703
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
3210
3718
])
3211
3719
 
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, [
3216
 
    AC_LANG_SAVE
3217
 
    AC_LANG_CPLUSPLUS
3218
 
    AC_TRY_COMPILE([
3219
 
#include <sys/types.h>
3220
 
#include <sys/socket.h>
3221
 
      ],[
3222
 
socklen_t a=0;
3223
 
getsockname(0,(struct sockaddr*)0, &a);
3224
 
      ],
3225
 
      ac_cv_socklen_t=socklen_t,
 
3721
AC_DEFUN([AC_CHECK_SOCKLEN_T],
 
3722
[
 
3723
   AC_MSG_CHECKING(for socklen_t)
 
3724
   AC_CACHE_VAL(kde_cv_socklen_t,
 
3725
   [
 
3726
      AC_LANG_PUSH(C++)
 
3727
      kde_cv_socklen_t=no
3226
3728
      AC_TRY_COMPILE([
3227
 
#include <sys/types.h>
3228
 
#include <sys/socket.h>
3229
 
        ],[
3230
 
int a=0;
3231
 
getsockname(0,(struct sockaddr*)0, &a);
3232
 
        ],
3233
 
        ac_cv_socklen_t=int,
3234
 
        ac_cv_socklen_t=size_t
3235
 
      )
3236
 
    )
3237
 
    AC_LANG_RESTORE
3238
 
  ])
3239
 
 
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])
3244
 
  fi
3245
 
  AC_DEFINE_UNQUOTED(ksize_t, socklen_t, [Compatibility define])
3246
 
 
 
3729
         #include <sys/types.h>
 
3730
         #include <sys/socket.h>
 
3731
      ],
 
3732
      [
 
3733
         socklen_t len;
 
3734
         getpeername(0,0,&len);
 
3735
      ],
 
3736
      [
 
3737
         kde_cv_socklen_t=yes
 
3738
         kde_cv_socklen_t_equiv=socklen_t
 
3739
      ])
 
3740
      AC_LANG_POP(C++)
 
3741
   ])
 
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,
 
3746
      [
 
3747
         kde_cv_socklen_t_equiv=int
 
3748
         AC_LANG_PUSH(C++)
 
3749
         for t in int size_t unsigned long "unsigned long"; do
 
3750
            AC_TRY_COMPILE([
 
3751
               #include <sys/types.h>
 
3752
               #include <sys/socket.h>
 
3753
            ],
 
3754
            [
 
3755
               $t len;
 
3756
               getpeername(0,0,&len);
 
3757
            ],
 
3758
            [
 
3759
               kde_cv_socklen_t_equiv="$t"
 
3760
               break
 
3761
            ])
 
3762
         done
 
3763
         AC_LANG_POP(C++)
 
3764
      ])
 
3765
      AC_MSG_RESULT($kde_cv_socklen_t_equiv)
 
3766
   fi
 
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)])
3247
3771
])
3248
3772
 
3249
3773
dnl This is a merge of some macros out of the gettext aclocal.m4
3535
4059
      ac_save_ldflags="$LDFLAGS"
3536
4060
      ac_save_cflags="$CFLAGS"
3537
4061
      ac_save_libs="$LIBS"
3538
 
      LDFLAGS="$LDFLAGS $DPMS_LDFLAGS $all_libraries -lX11 -lXext $LIBSOCKET"
 
4062
      LDFLAGS="$LDFLAGS $DPMS_LDFLAGS $all_libraries"
 
4063
      LIBS="-lX11 -lXext $LIBSOCKET"
3539
4064
      CFLAGS="$CFLAGS $X_INCLUDES"
3540
4065
      test -n "$DPMS_INCLUDE" && CFLAGS="-I$DPMS_INCLUDE $CFLAGS"
3541
4066
      AC_TRY_LINK([
3546
4071
          int foo_test_dpms()
3547
4072
          { return DPMSSetTimeouts( 0, 0, 0, 0 ); }],[],
3548
4073
          ac_cv_have_dpms="yes", [
3549
 
              LDFLAGS="$ac_save_ldflags"
3550
 
              CFLAGS="$ac_save_cflags"
3551
 
              LDFLAGS="$LDFLAGS $DPMS_LDFLAGS $all_libraries -lX11 -lXext $LIBSOCKET"
3552
 
              LIBS="$LIBS -lXdpms"
3553
 
              CFLAGS="$CFLAGS $X_INCLUDES"
3554
 
              test -n "$DPMS_INCLUDE" && CFLAGS="-I$DPMS_INCLUDE $CFLAGS"
 
4074
              LIBS="-lXdpms $LIBS"
3555
4075
              AC_TRY_LINK([
3556
4076
                  #include <X11/Xproto.h>
3557
4077
                  #include <X11/X.h>
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)
3631
4153
   [
3632
4154
    AC_LANG_SAVE
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
 
4158
    ac_save_libs=$LIBS
 
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>
3643
4167
], [],
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>
3652
 
#include <GL/glu.h>
3653
 
], [],
3654
 
          ac_cv_have_gl="yes", ac_cv_have_gl="no")
3655
 
    fi
 
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
 
4172
    LIBS=$ac_save_libs
3659
4173
   ])dnl
3660
4174
 
3661
4175
  if test "$ac_cv_have_gl" = "no"; then
3666
4180
  else
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)'
3671
 
       else
3672
 
          GLLIB='-lGLU -lGL $(LIB_X11)'
3673
 
       fi
 
4183
       GLLIB='-lGLU -lGL $(LIB_X11)'
3674
4184
    else
3675
 
       if test "$ac_cv_have_gl" = "mesa"; then
3676
 
          GLLIB="$GL_LDFLAGS -lMesaGLU -lMesaGL "'$(LIB_X11)'
3677
 
       else
3678
 
          GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
3679
 
       fi
 
4185
       GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
3680
4186
    fi
3681
4187
    if test "$GL_INCLUDE" = ""; then
3682
4188
       GLINC=""
3975
4481
 
3976
4482
AC_DEFUN([KDE_CHECK_LIBPTHREAD],
3977
4483
[
 
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
 
4490
  dnl below if found.
3978
4491
  LIBPTHREAD=""
3979
4492
 
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"
 
4496
    else
 
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"
 
4503
    fi
3985
4504
  fi
3986
4505
 
 
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"])
 
4509
  fi
 
4510
 
 
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])
 
4514
    kde_safe_libs=$LIBS
 
4515
    LIBS="$LIBS -lpthread"
 
4516
    AC_TRY_LINK([#include <pthread.h>],[(void)pthread_create(0,0,0,0);],[
 
4517
        AC_MSG_RESULT(yes)
 
4518
        LIBPTHREAD="-lpthread"],[
 
4519
        AC_MSG_RESULT(no)])
 
4520
    LIBS=$kde_safe_libs
 
4521
  fi
 
4522
 
 
4523
  dnl Un-special-case for FreeBSD.
 
4524
  if test "x$LIBPTHREAD" = "xPTHREAD" ; then
 
4525
    LIBPTHREAD=""
3989
4526
  fi
3990
4527
 
3991
4528
  AC_SUBST(LIBPTHREAD)
4215
4752
 
4216
4753
AC_DEFUN([KDE_CHECK_PYTHON],
4217
4754
[
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) ])
 
4761
         ])
4223
4762
       ])
4224
4763
     ])
4225
 
   ])
 
4764
  ])
4226
4765
])
4227
4766
 
4228
4767
AC_DEFUN([KDE_CHECK_STL],
4254
4793
   else
4255
4794
         AC_MSG_ERROR([Your Installation isn't able to compile simple C++ programs.
4256
4795
Check config.log for details - if you're using a Linux distribution you might miss
4257
 
a package named similiar to libstd++-dev.])
 
4796
a package named similar to libstdc++-dev.])
4258
4797
   fi
4259
4798
 
4260
4799
   CXXFLAGS="$ac_save_CXXFLAGS"
4346
4885
[
4347
4886
 
4348
4887
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS bsd-port admin"
 
4888
TOPSUBDIRS=""
4349
4889
 
4350
4890
if test ! -s $srcdir/subdirs; then
4351
4891
  dnl Note: Makefile.common creates subdirs, so this is just a fallback
4352
 
  TOPSUBDIRS=""
4353
4892
  files=`cd $srcdir && ls -1`
4354
4893
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
4355
4894
  for i in $dirs; do
4377
4916
    install_it="no"
4378
4917
  fi
4379
4918
  AC_MSG_RESULT($install_it)
4380
 
  vari=`echo $i | sed -e 's,[[-+.]],_,g'`
 
4919
  vari=`echo $i | sed -e 's,[[-+.@]],_,g'`
4381
4920
  if test $install_it = "yes"; then
4382
4921
    TOPSUBDIRS="$TOPSUBDIRS $i"
4383
4922
    eval "$vari""_SUBDIR_included=yes"
4490
5029
 
4491
5030
AC_DEFUN([KDE_CHECK_HEADER],
4492
5031
[
4493
 
   AC_LANG_SAVE
4494
5032
   kde_safe_cppflags=$CPPFLAGS
4495
5033
   CPPFLAGS="$CPPFLAGS $all_includes"
 
5034
   AC_LANG_SAVE
4496
5035
   AC_LANG_CPLUSPLUS
4497
5036
   AC_CHECK_HEADER([$1], [$2], [$3], [$4])
 
5037
   AC_LANG_RESTORE
4498
5038
   CPPFLAGS=$kde_safe_cppflags
4499
 
   AC_LANG_RESTORE
4500
5039
])
4501
5040
 
4502
5041
AC_DEFUN([KDE_CHECK_HEADERS],
4533
5072
  AC_SUBST(CONF_FILES)
4534
5073
])dnl
4535
5074
 
4536
 
AC_DEFUN([KDE_SET_PREFIX],
 
5075
dnl This sets the prefix, for arts and kdelibs
 
5076
dnl Do NOT use in any other module.
 
5077
dnl It only looks at --prefix, KDEDIR and falls back to /usr/local/kde
 
5078
AC_DEFUN([KDE_SET_PREFIX_CORE],
4537
5079
[
4538
5080
  unset CDPATH
4539
5081
  dnl make $KDEDIR the default for the installation
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,/$,,'`
 
5095
 
 
5096
  kde_libs_prefix='$(prefix)'
 
5097
  kde_libs_htmldir='$(kde_htmldir)'
 
5098
  AC_SUBST(kde_libs_prefix)
 
5099
  AC_SUBST(kde_libs_htmldir)
 
5100
  KDE_FAST_CONFIGURE
 
5101
  KDE_CONF_FILES
 
5102
])
 
5103
 
 
5104
 
 
5105
AC_DEFUN([KDE_SET_PREFIX],
 
5106
[
 
5107
  unset CDPATH
 
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})
 
5111
 
 
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)
 
5116
  else
 
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"
 
5122
  fi
 
5123
 
 
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.
 
5129
                    ])
 
5130
  fi
 
5131
  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
 
5132
 
 
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)])
 
5137
  else
 
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)])
 
5141
  fi
 
5142
 
 
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,/$,,'`
 
5147
 
 
5148
  AC_SUBST(KDECONFIG)
 
5149
  AC_SUBST(kde_libs_prefix)
 
5150
  AC_SUBST(kde_libs_htmldir)
 
5151
 
4553
5152
  KDE_FAST_CONFIGURE
4554
5153
  KDE_CONF_FILES
4555
5154
])
4905
5504
  JAVAC=$kde_java_bindir/javac
4906
5505
  JAVAH=$kde_java_bindir/javah
4907
5506
  JAR=$kde_java_bindir/jar
4908
 
  JVMLIBS="-Xlinker -framework -Xlinker JavaVM"
 
5507
  JVMLIBS="-Wl,-framework,JavaVM"
4909
5508
 
4910
5509
  AC_DEFINE_UNQUOTED(PATH_JAVA, "$kde_java_bindir/java", [Define where your java executable is])
4911
5510
  AC_MSG_RESULT([Apple Java Framework])
5426
6025
        ])
5427
6026
    AC_SUBST(PERL)
5428
6027
])
 
6028
 
 
6029
AC_DEFUN([KDE_CHECK_LARGEFILE],
 
6030
[
 
6031
AC_SYS_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"
 
6034
fi
 
6035
 
 
6036
if test "x$ac_cv_sys_large_files" != "xno"; then
 
6037
  CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=1"
 
6038
fi
 
6039
 
 
6040
])
 
6041
 
 
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.
 
6044
dnl
 
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], [
 
6049
 
 
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"
 
6053
   fi
 
6054
   export PKG_CONFIG_PATH
 
6055
   PKG_CHECK_MODULES([$1],[$2],[$3],[$4])
 
6056
])
 
6057
 
 
6058
 
 
6059
dnl Check for PIE support in the compiler and linker
 
6060
AC_DEFUN([KDE_CHECK_PIE_SUPPORT],
 
6061
[
 
6062
  AC_CACHE_CHECK([for PIE support], kde_cv_val_pie_support,
 
6063
  [
 
6064
    AC_LANG_SAVE
 
6065
    AC_LANG_CPLUSPLUS
 
6066
    safe_CXXFLAGS=$CXXFLAGS
 
6067
    safe_LDFLAGS=$LDFLAGS
 
6068
    CXXFLAGS="$CXXFLAGS -fPIE"
 
6069
    LDFLAGS="$LDFLAGS -pie"
 
6070
 
 
6071
    AC_TRY_LINK([int foo;], [], [kde_cv_val_pie_support=yes], [kde_cv_val_pie_support=no])
 
6072
 
 
6073
    CXXFLAGS=$safe_CXXFLAGS
 
6074
    LDFLAGS=$safe_LDFLAGS
 
6075
    AC_LANG_RESTORE
 
6076
  ])
 
6077
 
 
6078
  AC_MSG_CHECKING(if enabling -pie/fPIE support)
 
6079
 
 
6080
  AC_ARG_ENABLE(pie,
 
6081
    AC_HELP_STRING([--enable-pie],[platform supports PIE linking [default=detect]]),
 
6082
      [kde_has_pie_support=$enableval],
 
6083
      [kde_has_pie_support=detect])
 
6084
 
 
6085
  if test "$kde_has_pie_support" = "detect"; then
 
6086
    kde_has_pie_support=$kde_cv_val_pie_support
 
6087
  fi
 
6088
 
 
6089
  AC_MSG_RESULT([$kde_has_pie_support])
 
6090
 
 
6091
  KDE_USE_FPIE=""
 
6092
  KDE_USE_PIE=""
 
6093
 
 
6094
  AC_SUBST([KDE_USE_FPIE])
 
6095
  AC_SUBST([KDE_USE_PIE])
 
6096
 
 
6097
  if test "$kde_has_pie_support" = "yes"; then
 
6098
    KDE_USE_FPIE="-fPIE"
 
6099
    KDE_USE_PIE="-pie"
 
6100
  fi
 
6101
])
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.
5443
6116
##
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.
5447
6120
##
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
6701
7374
  dynamic_linker=no
6702
7375
  ;;
6703
7376
 
6704
 
freebsd*-gnu*)
 
7377
kfreebsd*-gnu*)
6705
7378
  version_type=linux
6706
7379
  need_lib_prefix=no
6707
7380
  need_version=no
7522
8195
  lt_cv_file_magic_test_file=/shlib/libc.so
7523
8196
  ;;
7524
8197
 
7525
 
cygwin* | mingw* | pw32*)
 
8198
cygwin*)
 
8199
  lt_cv_deplibs_check_method=pass_all
 
8200
  ;;
 
8201
  
 
8202
mingw* | pw32*)
7526
8203
  # win32_libid is a shell function defined in ltmain.sh
7527
8204
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7528
8205
  lt_cv_file_magic_cmd='win32_libid'
7543
8220
  lt_cv_deplibs_check_method=pass_all
7544
8221
  ;;
7545
8222
 
7546
 
freebsd*)
 
8223
freebsd* | kfreebsd*-gnu)
7547
8224
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7548
8225
    case $host_cpu in
7549
8226
    i*86 )
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'
7988
8665
      ;;
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'
 
8669
      else
 
8670
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8671
          10.[012])
 
8672
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
8673
            ;;
 
8674
          10.*)
 
8675
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
 
8676
            ;;
 
8677
        esac
 
8678
      fi
7991
8679
      ;;
7992
8680
    esac
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'
8117
8805
 
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'
8139
8827
    # linker, instead of GNU ld.  If possible, this setting should
8140
8828
    # overridden to take advantage of the native linker features on
8141
8829
    # the platform it is being used on.
8142
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
8830
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
8143
8831
  fi
8144
8832
 
8145
8833
  # Commands to make compiler produce verbose output that lists
8233
8921
      _LT_AC_SYS_LIBPATH_AIX
8234
8922
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8235
8923
 
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"
8238
8926
     else
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"
8243
8931
      else
8244
8932
        # Determine the default libpath from the value encoded in an empty executable.
8245
8933
        _LT_AC_SYS_LIBPATH_AIX
8254
8942
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8255
8943
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8256
8944
        # This is similar to how AIX traditionally builds it's shared libraries.
8257
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8945
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8258
8946
      fi
8259
8947
    fi
8260
8948
    ;;
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
8277
8965
 
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
8285
8973
        echo EXPORTS > $output_objdir/$soname.def;
8286
8974
        cat $export_symbols >> $output_objdir/$soname.def;
8287
8975
      fi~
8288
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8976
      $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8289
8977
    else
8290
8978
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8291
8979
    fi
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'
8300
8988
      ;;
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'
 
8992
      else
 
8993
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8994
          10.[012])
 
8995
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
8996
            ;;
 
8997
          10.*)
 
8998
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
 
8999
            ;;
 
9000
        esac
 
9001
      fi
8303
9002
      ;;
8304
9003
    esac
8305
9004
    lt_int_apple_cc_single_mod=no
8308
9007
      lt_int_apple_cc_single_mod=yes
8309
9008
    fi
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'
8312
9011
    else
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'
8314
9013
    fi
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'
8316
9015
 
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}'
8320
9019
    else
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}'
8322
9021
    fi
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
8355
9054
  freebsd-elf*)
8356
9055
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8357
9056
    ;;
8358
 
  freebsd*)
 
9057
  freebsd* | kfreebsd*-gnu)
8359
9058
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8360
9059
    # conventions
8361
9060
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
8377
9076
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8378
9077
      ;;
8379
9078
    aCC)
8380
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9079
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8381
9080
      # Commands to make compiler produce verbose output that lists
8382
9081
      # what "hidden" libraries, object files and flags are used when
8383
9082
      # linking a shared library.
8390
9089
      ;;
8391
9090
    *)
8392
9091
      if test "$GXX" = yes; then
8393
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9092
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8394
9093
      else
8395
9094
        # FIXME: insert proper C++ library support
8396
9095
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8447
9146
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
8448
9147
          ;;
8449
9148
        *)
8450
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9149
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
8451
9150
          ;;
8452
9151
        esac
8453
9152
        # Commands to make compiler produce verbose output that lists
8468
9167
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
8469
9168
              ;;
8470
9169
            *)
8471
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9170
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
8472
9171
              ;;
8473
9172
            esac
8474
9173
          fi
8483
9182
    case $cc_basename in
8484
9183
      CC)
8485
9184
        # SGI C++
8486
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
9185
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8487
9186
 
8488
9187
        # Archives containing C++ object files must be created using
8489
9188
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
8494
9193
      *)
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'
8498
9197
          else
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'
8500
9199
          fi
8501
9200
        fi
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.
8536
9235
        # Intel C++
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'
8544
9243
        ;;
8545
9244
      cxx)
8546
9245
        # Compaq C++
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'
8549
9248
 
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'
8606
9305
 
8607
9306
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8608
9307
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8619
9318
        ;;
8620
9319
      cxx)
8621
9320
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8622
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
9321
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8623
9322
 
8624
9323
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8625
9324
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8637
9336
      *)
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'
8641
9340
 
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'
8666
9365
 
8667
9366
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8668
9367
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8678
9377
        ;;
8679
9378
      cxx)
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~
8685
9384
          $rm $lib.exp'
8686
9385
 
8687
9386
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8700
9399
      *)
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'
8704
9403
 
8705
9404
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8706
9405
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8757
9456
      CC)
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'
8763
9462
 
8764
9463
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8765
9464
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8793
9492
        ;;
8794
9493
      gcx)
8795
9494
        # Green Hills C++ Compiler
8796
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
9495
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
8797
9496
 
8798
9497
        # The C++ compiler must be used to create the archive.
8799
9498
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
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'
8809
9508
 
8810
9509
            # Commands to make compiler produce verbose output that lists
8811
9510
            # what "hidden" libraries, object files and flags are used when
8814
9513
          else
8815
9514
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
8816
9515
            # platform.
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'
8820
9519
 
8821
9520
            # Commands to make compiler produce verbose output that lists
8822
9521
            # what "hidden" libraries, object files and flags are used when
9344
10043
#
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.
9348
10047
#
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
10001
10700
            ;;
10002
10701
        esac
10003
10702
        ;;
10004
 
      freebsd*)
 
10703
      freebsd* | kfreebsd*-gnu)
10005
10704
        # FreeBSD uses GNU C++
10006
10705
        ;;
10007
10706
      hpux9* | hpux10* | hpux11*)
10486
11185
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10487
11186
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10488
11187
        # support --undefined.  This deserves some investigation.  FIXME
10489
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11188
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10490
11189
      else
10491
11190
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10492
11191
      fi
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'
10503
11202
 
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
10511
11210
          echo EXPORTS > $output_objdir/$soname.def;
10512
11211
          cat $export_symbols >> $output_objdir/$soname.def;
10513
11212
        fi~
10514
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
11213
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
10515
11214
      else
10516
11215
        ld_shlibs=no
10517
11216
      fi
10522
11221
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10523
11222
        wlarc=
10524
11223
      else
10525
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10526
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11224
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
11225
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10527
11226
      fi
10528
11227
      ;;
10529
11228
 
10541
11240
 
10542
11241
EOF
10543
11242
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10544
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10545
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11243
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
11244
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10546
11245
      else
10547
11246
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10548
11247
      fi
10557
11256
 
10558
11257
    *)
10559
11258
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10560
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11259
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
11260
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10562
11261
      else
10563
11262
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10564
11263
      fi
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"
10677
11376
       else
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"
10682
11381
        else
10683
11382
         # Determine the default libpath from the value encoded in an empty executable.
10684
11383
         _LT_AC_SYS_LIBPATH_AIX
10693
11392
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
10694
11393
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
10695
11394
          # This is similar to how AIX traditionally builds it's shared libraries.
10696
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11395
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10697
11396
        fi
10698
11397
      fi
10699
11398
      ;;
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.
10721
11420
      libext=lib
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'
10740
11439
        ;;
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'
 
11443
        else
 
11444
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
11445
            10.[012])
 
11446
              _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
11447
              ;;
 
11448
            10.*)
 
11449
              _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
 
11450
              ;;
 
11451
          esac
 
11452
        fi
10743
11453
        ;;
10744
11454
      esac
10745
11455
        lt_int_apple_cc_single_mod=no
10748
11458
          lt_int_apple_cc_single_mod=yes
10749
11459
        fi
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'
10752
11462
        else
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'
10754
11464
      fi
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}'
10759
11469
        else
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}'
10761
11471
        fi
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
10800
11510
      ;;
10801
11511
 
10802
11512
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10803
 
    freebsd*)
10804
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
11513
    freebsd* | kfreebsd*-gnu)
 
11514
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
10805
11515
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10806
11516
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10807
11517
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10809
11519
 
10810
11520
    hpux9*)
10811
11521
      if test "$GCC" = yes; then
10812
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11522
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10813
11523
      else
10814
11524
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10815
11525
      fi
10827
11537
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10828
11538
        case "$host_cpu" in
10829
11539
        hppa*64*|ia64*)
10830
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11540
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10831
11541
          ;;
10832
11542
        *)
10833
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11543
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
10834
11544
          ;;
10835
11545
        esac
10836
11546
      else
10877
11587
 
10878
11588
    irix5* | irix6* | nonstopux*)
10879
11589
      if test "$GCC" = yes; then
10880
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $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'
 
11590
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $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'
10881
11591
      else
10882
11592
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10883
11593
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
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'
10916
11626
      else
10920
11630
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10921
11631
           ;;
10922
11632
         *)
10923
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
11633
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10924
11634
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10925
11635
           ;;
10926
11636
       esac
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'
10936
11646
      ;;
10937
11647
 
10938
11648
    osf3*)
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'
10942
11652
      else
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'
10955
11665
      else
10956
11666
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10975
11685
    solaris*)
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'
10981
11691
      else
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~
10997
11707
      if test "x$host_vendor" = xsequent; then
10998
11708
        # Use $CC to link under sequent, because it throws in some extra .o
10999
11709
        # files that make .init and .fini sections work.
11000
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11710
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
11001
11711
      else
11002
11712
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11003
11713
      fi
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'
11061
11771
      else
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'
11063
11773
      fi
11064
11774
      runpath_var='LD_RUN_PATH'
11065
11775
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no