~ubuntu-branches/ubuntu/feisty/evolution-exchange/feisty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-08-08 00:47:36 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20060808004736-3azq6mge7j7qjd2y
Tags: 2.7.91-0ubuntu1
* New upstream version:
  Bugzilla bugs fixed (see http://bugzilla.gnome.org/show_bug.cgi)
  #344196 - Fixes massive CPU Usage
  #274321 - Display proper error message on socket error
  #170058 - Check icalcomponent before removing alarms 
* debian/control:
  - build with current evolution-data-server due to sonames update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
# evolution/acinclude.m4
15
 
# shared configure.in hacks between Evolution and Connector
16
 
 
17
 
 
18
 
# EVO_PURIFY_SUPPORT
19
 
# Add --enable-purify. If the user turns it on, subst PURIFY and set
20
 
# the automake conditional ENABLE_PURIFY
21
 
AC_DEFUN([EVO_PURIFY_SUPPORT], [
22
 
        AC_ARG_ENABLE(purify, 
23
 
        [  --enable-purify=[no/yes]      Enable support for building executables with Purify.],,enable_purify=no)
24
 
        AC_PATH_PROG(PURIFY, purify, impure)
25
 
        AC_ARG_WITH(purify-options, [  --with-purify-options=OPTIONS      Options passed to the purify command line (defaults to PURIFYOPTIONS variable).])
26
 
        if test "x$with_purify_options" = "xno"; then
27
 
                with_purify_options="-always-use-cache-dir=yes -cache-dir=/gnome/lib/purify"
28
 
        fi
29
 
        if test "x$PURIFYOPTIONS" = "x"; then
30
 
                PURIFYOPTIONS=$with_purify_options
31
 
        fi
32
 
        AC_SUBST(PURIFY)
33
 
        AM_CONDITIONAL(ENABLE_PURIFY, test "x$enable_purify" = "xyes" -a "x$PURIFY" != "ximpure")
34
 
        PURIFY="$PURIFY $PURIFYOPTIONS"
35
 
])
36
 
 
37
 
 
38
 
# EVO_LDAP_CHECK(default)
39
 
# Add --with-openldap and --with-static-ldap options. --with-openldap
40
 
# defaults to the given value if not specified. If LDAP support is
41
 
# configured, HAVE_LDAP will be defined and the automake conditional
42
 
# ENABLE_LDAP will be set. LDAP_CFLAGS and LDAP_LIBS will be set
43
 
# appropriately.
44
 
AC_DEFUN([EVO_LDAP_CHECK], [
45
 
        default="$1"
46
 
 
47
 
        AC_ARG_WITH(openldap,     [  --with-openldap=[no/yes/PREFIX]      Enable LDAP support in evolution])
48
 
        AC_ARG_WITH(static-ldap,  [  --with-static-ldap=[no/yes]          Link LDAP support statically into evolution ])
49
 
        AC_CACHE_CHECK([for OpenLDAP], ac_cv_with_openldap, ac_cv_with_openldap="${with_openldap:=$default}")
50
 
        case $ac_cv_with_openldap in
51
 
        no|"")
52
 
                with_openldap=no
53
 
                ;;
54
 
        yes)
55
 
                with_openldap=/usr
56
 
                ;;
57
 
        *)
58
 
                with_openldap=$ac_cv_with_openldap
59
 
                LDAP_CFLAGS="-I$ac_cv_with_openldap/include"
60
 
                LDAP_LDFLAGS="-L$ac_cv_with_openldap/lib"
61
 
                ;;
62
 
        esac
63
 
 
64
 
        if test "$with_openldap" != no; then
65
 
                AC_DEFINE(HAVE_LDAP,1,[Define if you have LDAP support])
66
 
 
67
 
                case $with_static_ldap in
68
 
                no|"")
69
 
                        with_static_ldap=no
70
 
                        ;;
71
 
                *)
72
 
                        with_static_ldap=yes
73
 
                        ;;
74
 
                esac
75
 
 
76
 
                AC_CACHE_CHECK(if OpenLDAP is version 2.x, ac_cv_openldap_version2, [
77
 
                        CPPFLAGS_save="$CPPFLAGS"
78
 
                        CPPFLAGS="$CPPFLAGS $LDAP_CFLAGS"
79
 
                        AC_EGREP_CPP(yes, [
80
 
                                #include "ldap.h"
81
 
                                #if LDAP_VENDOR_VERSION > 20000
82
 
                                yes
83
 
                                #endif
84
 
                        ], ac_cv_openldap_version2=yes, ac_cv_openldap_version2=no)
85
 
                        CPPFLAGS="$CPPFLAGS_save"
86
 
                ])
87
 
                if test "$ac_cv_openldap_version2" = no; then
88
 
                        AC_MSG_ERROR(evolution requires OpenLDAP version >= 2)
89
 
                fi
90
 
 
91
 
                AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="-lresolv")
92
 
                AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
93
 
                AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
94
 
                AC_CHECK_LIB(lber, ber_get_tag, [
95
 
                        if test "$with_static_ldap" = "yes"; then
96
 
                                LDAP_LIBS="$with_openldap/lib/liblber.a $LDAP_LIBS"
97
 
 
98
 
                                # libldap might depend on OpenSSL... We need to pull
99
 
                                # in the dependency libs explicitly here since we're
100
 
                                # not using libtool for the configure test.
101
 
                                if test -f $with_openldap/lib/libldap.la; then
102
 
                                        LDAP_LIBS="`. $with_openldap/lib/libldap.la; echo $dependency_libs` $LDAP_LIBS"
103
 
                                fi
104
 
                        else
105
 
                                LDAP_LIBS="-llber $LDAP_LIBS"
106
 
                        fi
107
 
                        AC_CHECK_LIB(ldap, ldap_open, [
108
 
                                        if test $with_static_ldap = "yes"; then
109
 
                                                LDAP_LIBS="$with_openldap/lib/libldap.a $LDAP_LIBS"
110
 
                                        else
111
 
                                                LDAP_LIBS="-lldap $LDAP_LIBS"
112
 
                                        fi],
113
 
                                LDAP_LIBS="", $LDAP_LDFLAGS $LDAP_LIBS)
114
 
                        LDAP_LIBS="$LDAP_LDFLAGS $LDAP_LIBS"
115
 
                ], LDAP_LIBS="", $LDAP_LDFLAGS $LDAP_LIBS)
116
 
 
117
 
                if test -z "$LDAP_LIBS"; then
118
 
                        AC_MSG_ERROR(could not find OpenLDAP libraries)
119
 
                fi
120
 
 
121
 
                AC_SUBST(LDAP_CFLAGS)
122
 
                AC_SUBST(LDAP_LIBS)
123
 
        fi
124
 
        AM_CONDITIONAL(ENABLE_LDAP, test $with_openldap != no)
125
 
])
126
 
 
127
 
# EVO_SUNLDAP_CHECK
128
 
# Add --with-sunldap and --with-static-sunldap options. --with-sunldap
129
 
# defaults to the given value if not specified. If LDAP support is
130
 
# configured, HAVE_LDAP will be defined and the automake conditional
131
 
# ENABLE_LDAP will be set. LDAP_CFLAGS and LDAP_LIBS will be set
132
 
# appropriately, and --with-sunldap and --with-openldap is mutually exclusive.
133
 
AC_DEFUN([EVO_SUNLDAP_CHECK], [
134
 
        default="$1"
135
 
 
136
 
        AC_ARG_WITH(sunldap,     [  --with-sunldap=[no/yes/PREFIX]      Enable SunLDAP support in evolution])
137
 
        AC_ARG_WITH(static-sunldap,  [  --with-static-sunldap=[no/yes]          Link SunLDAP support statically into evolution ])
138
 
        AC_CACHE_CHECK([for SunLDAP], ac_cv_with_sunldap, ac_cv_with_sunldap="${with_sunldap:=$default}")
139
 
        case $ac_cv_with_sunldap in
140
 
        no|"")
141
 
                with_sunldap=no
142
 
                ;;
143
 
        yes)
144
 
                with_sunldap=/usr
145
 
                ;;
146
 
        *)
147
 
                with_sunldap=$ac_cv_with_sunldap
148
 
                LDAP_CFLAGS="-I$ac_cv_with_sunldap/include"
149
 
                LDAP_LDFLAGS="-L$ac_cv_with_sunldap/lib"
150
 
                ;;
151
 
        esac
152
 
 
153
 
        if test "$with_sunldap" != no; then
154
 
                AC_DEFINE(HAVE_LDAP,1,[Define if you have LDAP support])
155
 
                AC_DEFINE(SUNLDAP, 1, [Define if you use SunLDAP])
156
 
 
157
 
                case $with_static_sunldap in
158
 
                no|"")
159
 
                        with_static_sunldap=no
160
 
                        ;;
161
 
                *)
162
 
                        with_static_sunldap=yes
163
 
                        ;;
164
 
                esac
165
 
 
166
 
                AC_CACHE_CHECK(if SunLDAP is version 2.x, ac_cv_sunldap_version2, [
167
 
                        CPPFLAGS_save="$CPPFLAGS"
168
 
                        CPPFLAGS="$CPPFLAGS $LDAP_CFLAGS"
169
 
                        AC_EGREP_CPP(yes, [
170
 
                                #include "ldap.h"
171
 
                                #if LDAP_VENDOR_VERSION >= 500
172
 
                                yes
173
 
                                #endif
174
 
                        ], ac_cv_sunldap_version2=yes, ac_cv_sunldap_version2=no)
175
 
                        CPPFLAGS="$CPPFLAGS_save"
176
 
                ])
177
 
                if test "$ac_cv_sunldap_version2" = no; then
178
 
                       AC_MSG_ERROR(evolution requires SunLDAP version >= 2)
179
 
                fi
180
 
 
181
 
                AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="-lresolv")
182
 
                AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
183
 
                AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
184
 
                AC_CHECK_LIB(ldap, ldap_open, [
185
 
                        if test $with_static_sunldap = "yes"; then
186
 
                                LDAP_LIBS="$with_sunldap/lib/libldap.a $LDAP_LIBS"
187
 
                        else
188
 
                                LDAP_LIBS="-lldap $LDAP_LIBS"
189
 
                        fi
190
 
                        if test `uname -s` != "SunOS" ; then
191
 
                                AC_CHECK_LIB(lber, ber_get_tag, [
192
 
                                        if test "$with_static_sunldap" = "yes"; then
193
 
                                                LDAP_LIBS="$with_sunldap/lib/liblber.a $LDAP_LIBS"
194
 
                                                # libldap might depend on OpenSSL... We need to pull
195
 
                                                # in the dependency libs explicitly here since we're
196
 
                                                # not using libtool for the configure test.
197
 
                                                if test -f $with_sunldap/lib/libldap.la; then
198
 
                                                        LDAP_LIBS="`. $with_sunldap/lib/libldap.la; echo $dependency_libs` $LDAP_LIBS"
199
 
                                                fi
200
 
                                        else
201
 
                                                LDAP_LIBS="-llber $LDAP_LIBS"
202
 
                                        fi], LDAP_LIBS="", $LDAP_LDFLAGS $LDAP_LIBS)
203
 
                        fi
204
 
                        LDAP_LIBS="$LDAP_LDFLAGS $LDAP_LIBS"
205
 
                ], LDAP_LIBS="", $LDAP_LDFLAGS $LDAP_LIBS)
206
 
 
207
 
                if test -z "$LDAP_LIBS"; then
208
 
                       AC_MSG_ERROR(could not find SunLDAP libraries)
209
 
                fi
210
 
 
211
 
                AC_SUBST(LDAP_CFLAGS)
212
 
                AC_SUBST(LDAP_LIBS)
213
 
        fi
214
 
        AM_CONDITIONAL(ENABLE_LDAP, test $with_sunldap != no)
215
 
])
216
 
 
217
 
# EVO_PTHREAD_CHECK
218
 
AC_DEFUN([EVO_PTHREAD_CHECK],[
219
 
        PTHREAD_LIB=""
220
 
        AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
221
 
                [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
222
 
                    [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
223
 
                        [AC_CHECK_LIB(pthread, __pthread_attr_init_system, PTHREAD_LIB="-lpthread",
224
 
                                [AC_CHECK_FUNC(pthread_create)]
225
 
                        )]
226
 
                    )]
227
 
                )]
228
 
        )
229
 
        AC_SUBST(PTHREAD_LIB)
230
 
        AC_PROVIDE([EVO_PTHREAD_CHECK])
231
 
])
232
 
dnl -*- mode: autoconf -*-
233
 
 
234
 
# serial 1
235
 
 
236
 
dnl Usage:
237
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
238
 
AC_DEFUN([GTK_DOC_CHECK],
 
14
dnl AM_PATH_ORBIT2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
 
15
dnl Test for ORBit2, and define ORBIT_CFLAGS and ORBIT_LIBS
 
16
dnl
 
17
AC_DEFUN([AM_PATH_ORBIT2],
 
18
[dnl 
 
19
dnl Get the cflags and libraries from the orbit2-config script
 
20
dnl
 
21
AC_ARG_WITH(orbit-prefix,[  --with-orbit-prefix=PFX   Prefix where ORBIT is installed (optional)],
 
22
            orbit_config_prefix="$withval", orbit_config_prefix="")
 
23
AC_ARG_WITH(orbit-exec-prefix,[  --with-orbit-exec-prefix=PFX Exec prefix where ORBIT is installed (optional)],
 
24
            orbit_config_exec_prefix="$withval", orbit_config_exec_prefix="")
 
25
AC_ARG_ENABLE(orbittest, [  --disable-orbittest       Do not try to compile and run a test ORBIT program],
 
26
                    , enable_orbittest=yes)
 
27
 
 
28
  for module in . $4
 
29
  do
 
30
      case "$module" in
 
31
         server) 
 
32
             orbit_config_args="$orbit_config_args server"
 
33
         ;;
 
34
         client) 
 
35
             orbit_config_args="$orbit_config_args client"
 
36
         ;;
 
37
      esac
 
38
  done
 
39
  if test x$orbit_config_args = x ; then
 
40
        orbit_config_args=server
 
41
  fi
 
42
 
 
43
  if test x$orbit_config_exec_prefix != x ; then
 
44
     orbit_config_args="$orbit_config_args --exec-prefix=$orbit_config_exec_prefix"
 
45
     if test x${ORBIT_CONFIG+set} != xset ; then
 
46
        ORBIT_CONFIG=$orbit_config_exec_prefix/bin/orbit2-config
 
47
     fi
 
48
  fi
 
49
  if test x$orbit_config_prefix != x ; then
 
50
     orbit_config_args="$orbit_config_args --prefix=$orbit_config_prefix"
 
51
     if test x${ORBIT_CONFIG+set} != xset ; then
 
52
        ORBIT_CONFIG=$orbit_config_prefix/bin/orbit2-config
 
53
     fi
 
54
  fi
 
55
 
 
56
  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
57
  AC_PATH_PROG(ORBIT_CONFIG, orbit2-config, no)
 
58
  min_orbit_version=ifelse([$1], , 2.3.0, $1)
 
59
  AC_MSG_CHECKING(for ORBit - version >= $min_orbit_version)
 
60
  no_orbit=""
 
61
  if test "$ORBIT_CONFIG" = "no" ; then
 
62
    if test "$PKG_CONFIG" = "no" ; then
 
63
      no_orbit=yes
 
64
    else
 
65
      ORBIT_CFLAGS=`$PKG_CONFIG --cflags ORBit-2.0`
 
66
      ORBIT_LIBS=`$PKG_CONFIG --libs ORBit-2.0`
 
67
    fi
 
68
  else
 
69
    ORBIT_CFLAGS=`$ORBIT_CONFIG $orbit_config_args --cflags`
 
70
    ORBIT_LIBS=`$ORBIT_CONFIG $orbit_config_args --libs`
 
71
  fi
 
72
 
 
73
  if test "x$no_orbit" = x ; then
 
74
    ORBIT_VERSION=`$PKG_CONFIG --modversion ORBit-2.0`
 
75
 
 
76
    orbit_config_major_version=`echo $ORBIT_VERSION | \
 
77
           sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
 
78
    orbit_config_minor_version=`echo $ORBIT_VERSION | \
 
79
           sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
 
80
    orbit_config_micro_version=`echo $ORBIT_VERSION | \
 
81
           sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
 
82
    if test "x$enable_orbittest" = "xyes" ; then
 
83
      ac_save_CFLAGS="$CFLAGS"
 
84
      ac_save_LIBS="$LIBS"
 
85
      CFLAGS="$CFLAGS $ORBIT_CFLAGS"
 
86
      LIBS="$ORBIT_LIBS $LIBS"
 
87
dnl
 
88
dnl Now check if the installed ORBIT is sufficiently new. (Also sanity
 
89
dnl checks the results of orbit2-config to some extent
 
90
dnl
 
91
      rm -f conf.orbittest
 
92
      AC_TRY_RUN([
 
93
#include <orbit/orbit.h>
 
94
#include <stdio.h>
 
95
#include <stdlib.h>
 
96
 
 
97
int 
 
98
main ()
 
99
{
 
100
  int major, minor, micro;
 
101
  char *tmp_version;
 
102
 
 
103
  system ("touch conf.orbittest");
 
104
 
 
105
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
106
  tmp_version = g_strdup("$min_orbit_version");
 
107
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
108
     printf("%s, bad version string\n", "$min_orbit_version");
 
109
     exit(1);
 
110
   }
 
111
 
 
112
  if ((orbit_major_version != $orbit_config_major_version) ||
 
113
      (orbit_minor_version != $orbit_config_minor_version) ||
 
114
      (orbit_micro_version != $orbit_config_micro_version))
 
115
    {
 
116
      printf("\n*** 'pkg-config --version ORBit-2.0' returned %d.%d.%d, but ORBit (%d.%d.%d)\n", 
 
117
             $orbit_config_major_version, $orbit_config_minor_version, $orbit_config_micro_version,
 
118
             orbit_major_version, orbit_minor_version, orbit_micro_version);
 
119
      printf ("*** was found! If orbit2-config was correct, then it is best\n");
 
120
      printf ("*** to remove the old version of ORBit. You may also be able to fix the error\n");
 
121
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
122
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
123
      printf("*** required on your system.\n");
 
124
      printf("*** If orbit2-config was wrong, set the environment variable ORBIT_CONFIG\n");
 
125
      printf("*** to point to the correct copy of orbit2-config, and remove the file config.cache\n");
 
126
      printf("*** before re-running configure\n");
 
127
    } 
 
128
#if defined (ORBIT_MAJOR_VERSION) && defined (ORBIT_MINOR_VERSION) && defined (ORBIT_MICRO_VERSION)
 
129
  else if ((orbit_major_version != ORBIT_MAJOR_VERSION) ||
 
130
           (orbit_minor_version != ORBIT_MINOR_VERSION) ||
 
131
           (orbit_micro_version != ORBIT_MICRO_VERSION))
 
132
    {
 
133
      printf("*** ORBit header files (version %d.%d.%d) do not match\n",
 
134
             ORBIT_MAJOR_VERSION, ORBIT_MINOR_VERSION, ORBIT_MICRO_VERSION);
 
135
      printf("*** library (version %d.%d.%d)\n",
 
136
             orbit_major_version, orbit_minor_version, orbit_micro_version);
 
137
    }
 
138
#endif /* defined (ORBIT_MAJOR_VERSION) ... */
 
139
  else
 
140
    {
 
141
      if ((orbit_major_version > major) ||
 
142
        ((orbit_major_version == major) && (orbit_minor_version > minor)) ||
 
143
        ((orbit_major_version == major) && (orbit_minor_version == minor) && (orbit_micro_version >= micro)))
 
144
      {
 
145
        return 0;
 
146
       }
 
147
     else
 
148
      {
 
149
        printf("\n*** An old version of ORBit (%d.%d.%d) was found.\n",
 
150
               orbit_major_version, orbit_minor_version, orbit_micro_version);
 
151
        printf("*** You need a version of ORBit newer than %d.%d.%d. The latest version of\n",
 
152
               major, minor, micro);
 
153
        printf("*** ORBit is always available from ftp://ftp.orbit.org.\n");
 
154
        printf("***\n");
 
155
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
156
        printf("*** probably means that the wrong copy of the orbit2-config shell script is\n");
 
157
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
158
        printf("*** of ORBit, but you can also set the ORBIT_CONFIG environment to point to the\n");
 
159
        printf("*** correct copy of orbit2-config. (In this case, you will have to\n");
 
160
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
161
        printf("*** so that the correct libraries are found at run-time))\n");
 
162
      }
 
163
    }
 
164
  return 1;
 
165
}
 
166
],, no_orbit=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
 
167
       CFLAGS="$ac_save_CFLAGS"
 
168
       LIBS="$ac_save_LIBS"
 
169
     fi
 
170
  fi
 
171
  if test "x$no_orbit" = x ; then
 
172
     AC_MSG_RESULT(yes)
 
173
     ifelse([$2], , :, [$2])     
 
174
  else
 
175
     AC_MSG_RESULT(no)
 
176
     if test "$ORBIT_CONFIG" = "no" ; then
 
177
       echo "*** The orbit2-config script installed by ORBIT could not be found"
 
178
       echo "*** If ORBit was installed in PREFIX, make sure PREFIX/bin is in"
 
179
       echo "*** your path, or set the ORBIT_CONFIG environment variable to the"
 
180
       echo "*** full path to orbit2-config."
 
181
     else
 
182
       if test -f conf.orbittest ; then
 
183
        :
 
184
       else
 
185
          echo "*** Could not run ORBIT test program, checking why..."
 
186
          CFLAGS="$CFLAGS $ORBIT_CFLAGS"
 
187
          LIBS="$LIBS $ORBIT_LIBS"
 
188
          AC_TRY_LINK([
 
189
#include <orbit/orbit.h>
 
190
#include <stdio.h>
 
191
],      [ return ((orbit_major_version) || (orbit_minor_version) || (orbit_micro_version)); ],
 
192
        [ echo "*** The test program compiled, but did not run. This usually means"
 
193
          echo "*** that the run-time linker is not finding ORBit or finding the wrong"
 
194
          echo "*** version of ORBit. If it is not finding ORBit, you'll need to set your"
 
195
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
196
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
197
          echo "*** is required on your system"
 
198
          echo "***"
 
199
          echo "*** If you have an old version installed, it is best to remove it, although"
 
200
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
201
          echo "***"
 
202
          echo "*** If you have a RedHat 5.0 system, you should remove the ORBit package that"
 
203
          echo "*** came with the system with the command"
 
204
          echo "***"
 
205
          echo "***    rpm --erase --nodeps orbit orbit-devel" ],
 
206
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
 
207
          echo "*** exact error that occured. This usually means ORBIT was incorrectly installed"
 
208
          echo "*** or that you have moved ORBit since it was installed. In the latter case, you"
 
209
          echo "*** may want to edit the orbit2-config script: $ORBIT_CONFIG" ])
 
210
          CFLAGS="$ac_save_CFLAGS"
 
211
          LIBS="$ac_save_LIBS"
 
212
       fi
 
213
     fi
 
214
     ORBIT_CFLAGS=""
 
215
     ORBIT_LIBS=""
 
216
     ifelse([$3], , :, [$3])
 
217
  fi
 
218
 
 
219
  AC_PATH_PROG(ORBIT_IDL, orbit-idl-2, ifelse([$3], , :, [$3]))
 
220
  AC_SUBST(ORBIT_CFLAGS)
 
221
  AC_SUBST(ORBIT_LIBS)
 
222
  AC_SUBST(ORBIT_IDL)
 
223
  rm -f conf.orbittest
 
224
])
 
225
 
 
226
dnl AM_GCONF_SOURCE_2
 
227
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
 
228
dnl  (i.e. pass to gconftool-2
 
229
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
 
230
dnl  you should install foo.schemas files
 
231
dnl
 
232
 
 
233
AC_DEFUN([AM_GCONF_SOURCE_2],
239
234
[
240
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
241
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
242
 
  dnl for overriding the documentation installation directory
243
 
  AC_ARG_WITH(html-dir,
244
 
    AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
245
 
    [with_html_dir='${datadir}/gtk-doc/html'])
246
 
  HTML_DIR="$with_html_dir"
247
 
  AC_SUBST(HTML_DIR)
248
 
 
249
 
  dnl enable/disable documentation building
250
 
  AC_ARG_ENABLE(gtk-doc,
251
 
    AC_HELP_STRING([--enable-gtk-doc],
252
 
                   [use gtk-doc to build documentation [default=no]]),,
253
 
    enable_gtk_doc=no)
254
 
 
255
 
  have_gtk_doc=no
256
 
  if test -z "$PKG_CONFIG"; then
257
 
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
258
 
  fi
259
 
  if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
260
 
    have_gtk_doc=yes
261
 
  fi
262
 
 
263
 
  dnl do we want to do a version check?
264
 
ifelse([$1],[],,
265
 
  [gtk_doc_min_version=$1
266
 
  if test "$have_gtk_doc" = yes; then
267
 
    AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
268
 
    if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
269
 
      AC_MSG_RESULT(yes)
270
 
    else
271
 
      AC_MSG_RESULT(no)
272
 
      have_gtk_doc=no
273
 
    fi
274
 
  fi
275
 
])
276
 
  if test x$enable_gtk_doc = xyes; then
277
 
    if test "$have_gtk_doc" != yes; then
278
 
      enable_gtk_doc=no
279
 
    fi
280
 
  fi
281
 
 
282
 
  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
283
 
  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
284
 
])
285
 
 
286
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
287
 
 
288
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
289
 
 
290
 
# This program is free software; you can redistribute it and/or modify
291
 
# it under the terms of the GNU General Public License as published by
292
 
# the Free Software Foundation; either version 2, or (at your option)
293
 
# any later version.
294
 
 
295
 
# This program is distributed in the hope that it will be useful,
296
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
297
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
298
 
# GNU General Public License for more details.
299
 
 
300
 
# You should have received a copy of the GNU General Public License
301
 
# along with this program; if not, write to the Free Software
302
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
303
 
# 02111-1307, USA.
304
 
 
305
 
# serial 5
306
 
 
307
 
AC_PREREQ(2.52)
308
 
 
309
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
310
 
# -------------------------------------
311
 
# Define a conditional.
312
 
AC_DEFUN([AM_CONDITIONAL],
313
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
314
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
315
 
AC_SUBST([$1_TRUE])
316
 
AC_SUBST([$1_FALSE])
317
 
if $2; then
318
 
  $1_TRUE=
319
 
  $1_FALSE='#'
320
 
else
321
 
  $1_TRUE='#'
322
 
  $1_FALSE=
323
 
fi
324
 
AC_CONFIG_COMMANDS_PRE(
325
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
326
 
  AC_MSG_ERROR([conditional "$1" was never defined.
327
 
Usually this means the macro was only invoked conditionally.])
328
 
fi])])
 
235
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
 
236
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
237
  else
 
238
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
 
239
  fi
 
240
 
 
241
  AC_ARG_WITH(gconf-source, 
 
242
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
 
243
 
 
244
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
 
245
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
 
246
 
 
247
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
248
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
249
  fi
 
250
 
 
251
  AC_ARG_WITH(gconf-schema-file-dir, 
 
252
  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
 
253
 
 
254
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
 
255
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
 
256
 
 
257
  AC_ARG_ENABLE(schemas-install,
 
258
     [  --disable-schemas-install       Disable the schemas installation],
 
259
     [case ${enableval} in
 
260
       yes|no) ;;
 
261
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
 
262
      esac])
 
263
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
 
264
])
 
265
 
 
266
# Configure paths for GLIB
 
267
# Owen Taylor     1997-2001
 
268
 
 
269
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
 
270
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or 
 
271
dnl gthread is specified in MODULES, pass to pkg-config
 
272
dnl
 
273
AC_DEFUN([AM_PATH_GLIB_2_0],
 
274
[dnl 
 
275
dnl Get the cflags and libraries from pkg-config
 
276
dnl
 
277
AC_ARG_ENABLE(glibtest, [  --disable-glibtest      do not try to compile and run a test GLIB program],
 
278
                    , enable_glibtest=yes)
 
279
 
 
280
  pkg_config_args=glib-2.0
 
281
  for module in . $4
 
282
  do
 
283
      case "$module" in
 
284
         gmodule) 
 
285
             pkg_config_args="$pkg_config_args gmodule-2.0"
 
286
         ;;
 
287
         gmodule-no-export) 
 
288
             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
 
289
         ;;
 
290
         gobject) 
 
291
             pkg_config_args="$pkg_config_args gobject-2.0"
 
292
         ;;
 
293
         gthread) 
 
294
             pkg_config_args="$pkg_config_args gthread-2.0"
 
295
         ;;
 
296
      esac
 
297
  done
 
298
 
 
299
  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
300
 
 
301
  no_glib=""
 
302
 
 
303
  if test x$PKG_CONFIG != xno ; then
 
304
    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
 
305
      :
 
306
    else
 
307
      echo *** pkg-config too old; version 0.7 or better required.
 
308
      no_glib=yes
 
309
      PKG_CONFIG=no
 
310
    fi
 
311
  else
 
312
    no_glib=yes
 
313
  fi
 
314
 
 
315
  min_glib_version=ifelse([$1], ,2.0.0,$1)
 
316
  AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
 
317
 
 
318
  if test x$PKG_CONFIG != xno ; then
 
319
    ## don't try to run the test against uninstalled libtool libs
 
320
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
321
          echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
 
322
          enable_glibtest=no
 
323
    fi
 
324
 
 
325
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
 
326
          :
 
327
    else
 
328
          no_glib=yes
 
329
    fi
 
330
  fi
 
331
 
 
332
  if test x"$no_glib" = x ; then
 
333
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
 
334
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
 
335
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
 
336
 
 
337
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
 
338
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
 
339
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
340
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
 
341
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
342
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
 
343
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
344
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
 
345
    if test "x$enable_glibtest" = "xyes" ; then
 
346
      ac_save_CFLAGS="$CFLAGS"
 
347
      ac_save_LIBS="$LIBS"
 
348
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
349
      LIBS="$GLIB_LIBS $LIBS"
 
350
dnl
 
351
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
 
352
dnl checks the results of pkg-config to some extent)
 
353
dnl
 
354
      rm -f conf.glibtest
 
355
      AC_TRY_RUN([
 
356
#include <glib.h>
 
357
#include <stdio.h>
 
358
#include <stdlib.h>
 
359
 
 
360
int 
 
361
main ()
 
362
{
 
363
  int major, minor, micro;
 
364
  char *tmp_version;
 
365
 
 
366
  system ("touch conf.glibtest");
 
367
 
 
368
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
369
  tmp_version = g_strdup("$min_glib_version");
 
370
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
371
     printf("%s, bad version string\n", "$min_glib_version");
 
372
     exit(1);
 
373
   }
 
374
 
 
375
  if ((glib_major_version != $glib_config_major_version) ||
 
376
      (glib_minor_version != $glib_config_minor_version) ||
 
377
      (glib_micro_version != $glib_config_micro_version))
 
378
    {
 
379
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
 
380
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
 
381
             glib_major_version, glib_minor_version, glib_micro_version);
 
382
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
383
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
 
384
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
385
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
386
      printf("*** required on your system.\n");
 
387
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
388
      printf("*** to point to the correct configuration files\n");
 
389
    } 
 
390
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
 
391
           (glib_minor_version != GLIB_MINOR_VERSION) ||
 
392
           (glib_micro_version != GLIB_MICRO_VERSION))
 
393
    {
 
394
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
 
395
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
 
396
      printf("*** library (version %d.%d.%d)\n",
 
397
             glib_major_version, glib_minor_version, glib_micro_version);
 
398
    }
 
399
  else
 
400
    {
 
401
      if ((glib_major_version > major) ||
 
402
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
 
403
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
 
404
      {
 
405
        return 0;
 
406
       }
 
407
     else
 
408
      {
 
409
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
 
410
               glib_major_version, glib_minor_version, glib_micro_version);
 
411
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
 
412
               major, minor, micro);
 
413
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
 
414
        printf("***\n");
 
415
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
416
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
417
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
418
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
 
419
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
420
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
421
        printf("*** so that the correct libraries are found at run-time))\n");
 
422
      }
 
423
    }
 
424
  return 1;
 
425
}
 
426
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
 
427
       CFLAGS="$ac_save_CFLAGS"
 
428
       LIBS="$ac_save_LIBS"
 
429
     fi
 
430
  fi
 
431
  if test "x$no_glib" = x ; then
 
432
     AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
 
433
     ifelse([$2], , :, [$2])     
 
434
  else
 
435
     AC_MSG_RESULT(no)
 
436
     if test "$PKG_CONFIG" = "no" ; then
 
437
       echo "*** A new enough version of pkg-config was not found."
 
438
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
 
439
     else
 
440
       if test -f conf.glibtest ; then
 
441
        :
 
442
       else
 
443
          echo "*** Could not run GLIB test program, checking why..."
 
444
          ac_save_CFLAGS="$CFLAGS"
 
445
          ac_save_LIBS="$LIBS"
 
446
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
447
          LIBS="$LIBS $GLIB_LIBS"
 
448
          AC_TRY_LINK([
 
449
#include <glib.h>
 
450
#include <stdio.h>
 
451
],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
 
452
        [ echo "*** The test program compiled, but did not run. This usually means"
 
453
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
 
454
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
 
455
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
456
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
457
          echo "*** is required on your system"
 
458
          echo "***"
 
459
          echo "*** If you have an old version installed, it is best to remove it, although"
 
460
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
 
461
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
 
462
          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
 
463
          CFLAGS="$ac_save_CFLAGS"
 
464
          LIBS="$ac_save_LIBS"
 
465
       fi
 
466
     fi
 
467
     GLIB_CFLAGS=""
 
468
     GLIB_LIBS=""
 
469
     GLIB_GENMARSHAL=""
 
470
     GOBJECT_QUERY=""
 
471
     GLIB_MKENUMS=""
 
472
     ifelse([$3], , :, [$3])
 
473
  fi
 
474
  AC_SUBST(GLIB_CFLAGS)
 
475
  AC_SUBST(GLIB_LIBS)
 
476
  AC_SUBST(GLIB_GENMARSHAL)
 
477
  AC_SUBST(GOBJECT_QUERY)
 
478
  AC_SUBST(GLIB_MKENUMS)
 
479
  rm -f conf.glibtest
 
480
])
 
481
 
 
482
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
483
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
484
#
 
485
# This file is free software, distributed under the terms of the GNU
 
486
# General Public License.  As a special exception to the GNU General
 
487
# Public License, this file may be distributed as part of a program
 
488
# that contains a configuration script generated by Autoconf, under
 
489
# the same distribution terms as the rest of that program.
 
490
#
 
491
# This file can be copied and used freely without restrictions.  It can
 
492
# be used in projects which are not available under the GNU Public License
 
493
# but which still want to provide support for the GNU gettext functionality.
 
494
#
 
495
# Macro to add for using GNU gettext.
 
496
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
497
#
 
498
# Modified to never use included libintl. 
 
499
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
500
#
 
501
# Major rework to remove unused code
 
502
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
503
#
 
504
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
505
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
506
#
 
507
# Modified to require ngettext
 
508
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
509
#
 
510
# We need this here as well, since someone might use autoconf-2.5x
 
511
# to configure GLib then an older version to configure a package
 
512
# using AM_GLIB_GNU_GETTEXT
 
513
AC_PREREQ(2.53)
 
514
 
 
515
dnl
 
516
dnl We go to great lengths to make sure that aclocal won't 
 
517
dnl try to pull in the installed version of these macros
 
518
dnl when running aclocal in the glib directory.
 
519
dnl
 
520
m4_copy([AC_DEFUN],[glib_DEFUN])
 
521
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
522
dnl
 
523
dnl At the end, if we're not within glib, we'll define the public
 
524
dnl definitions in terms of our private definitions.
 
525
dnl
 
526
 
 
527
# GLIB_LC_MESSAGES
 
528
#--------------------
 
529
glib_DEFUN([GLIB_LC_MESSAGES],
 
530
  [AC_CHECK_HEADERS([locale.h])
 
531
    if test $ac_cv_header_locale_h = yes; then
 
532
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
533
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
534
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
535
    if test $am_cv_val_LC_MESSAGES = yes; then
 
536
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
537
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
538
    fi
 
539
  fi])
 
540
 
 
541
# GLIB_PATH_PROG_WITH_TEST
 
542
#----------------------------
 
543
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
544
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
545
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
546
[# Extract the first word of "$2", so it can be a program name with args.
 
547
set dummy $2; ac_word=[$]2
 
548
AC_MSG_CHECKING([for $ac_word])
 
549
AC_CACHE_VAL(ac_cv_path_$1,
 
550
[case "[$]$1" in
 
551
  /*)
 
552
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
553
  ;;
 
554
  *)
 
555
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
556
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
557
    test -z "$ac_dir" && ac_dir=.
 
558
    if test -f $ac_dir/$ac_word; then
 
559
      if [$3]; then
 
560
        ac_cv_path_$1="$ac_dir/$ac_word"
 
561
        break
 
562
      fi
 
563
    fi
 
564
  done
 
565
  IFS="$ac_save_ifs"
 
566
dnl If no 4th arg is given, leave the cache variable unset,
 
567
dnl so AC_PATH_PROGS will keep looking.
 
568
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
569
])dnl
 
570
  ;;
 
571
esac])dnl
 
572
$1="$ac_cv_path_$1"
 
573
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
574
  AC_MSG_RESULT([$]$1)
 
575
else
 
576
  AC_MSG_RESULT(no)
 
577
fi
 
578
AC_SUBST($1)dnl
 
579
])
 
580
 
 
581
# GLIB_WITH_NLS
 
582
#-----------------
 
583
glib_DEFUN([GLIB_WITH_NLS],
 
584
  dnl NLS is obligatory
 
585
  [USE_NLS=yes
 
586
    AC_SUBST(USE_NLS)
 
587
 
 
588
    gt_cv_have_gettext=no
 
589
 
 
590
    CATOBJEXT=NONE
 
591
    XGETTEXT=:
 
592
    INTLLIBS=
 
593
 
 
594
    AC_CHECK_HEADER(libintl.h,
 
595
     [gt_cv_func_dgettext_libintl="no"
 
596
      libintl_extra_libs=""
 
597
 
 
598
      #
 
599
      # First check in libc
 
600
      #
 
601
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
602
        [AC_TRY_LINK([
 
603
#include <libintl.h>
 
604
],
 
605
         [return !ngettext ("","", 1)],
 
606
          gt_cv_func_ngettext_libc=yes,
 
607
          gt_cv_func_ngettext_libc=no)
 
608
        ])
 
609
  
 
610
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
611
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
612
                [AC_TRY_LINK([
 
613
#include <libintl.h>
 
614
],
 
615
                  [return !dgettext ("","")],
 
616
                  gt_cv_func_dgettext_libc=yes,
 
617
                  gt_cv_func_dgettext_libc=no)
 
618
                ])
 
619
      fi
 
620
  
 
621
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
622
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
623
      fi
 
624
 
 
625
      #
 
626
      # If we don't have everything we want, check in libintl
 
627
      #
 
628
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
629
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
630
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
631
        
 
632
        AC_CHECK_LIB(intl, bindtextdomain,
 
633
            [AC_CHECK_LIB(intl, ngettext,
 
634
                    [AC_CHECK_LIB(intl, dgettext,
 
635
                                  gt_cv_func_dgettext_libintl=yes)])])
 
636
 
 
637
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
638
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
639
          AC_MSG_RESULT([])
 
640
          AC_CHECK_LIB(intl, ngettext,
 
641
                [AC_CHECK_LIB(intl, dcgettext,
 
642
                       [gt_cv_func_dgettext_libintl=yes
 
643
                        libintl_extra_libs=-liconv],
 
644
                        :,-liconv)],
 
645
                :,-liconv)
 
646
        fi
 
647
 
 
648
        #
 
649
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
650
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
651
        # and both have dgettext and ngettext
 
652
        #
 
653
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
654
          glib_save_LIBS="$LIBS"
 
655
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
656
          unset ac_cv_func_bind_textdomain_codeset
 
657
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
658
          LIBS="$glib_save_LIBS"
 
659
 
 
660
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
661
            gt_cv_func_dgettext_libc=no
 
662
          else
 
663
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
664
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
665
              gt_cv_func_dgettext_libintl=no
 
666
            fi
 
667
          fi
 
668
        fi
 
669
      fi
 
670
 
 
671
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
672
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
673
        gt_cv_have_gettext=yes
 
674
      fi
 
675
  
 
676
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
677
        INTLLIBS="-lintl $libintl_extra_libs"
 
678
      fi
 
679
  
 
680
      if test "$gt_cv_have_gettext" = "yes"; then
 
681
        AC_DEFINE(HAVE_GETTEXT,1,
 
682
          [Define if the GNU gettext() function is already present or preinstalled.])
 
683
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
684
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
685
        if test "$MSGFMT" != "no"; then
 
686
          glib_save_LIBS="$LIBS"
 
687
          LIBS="$LIBS $INTLLIBS"
 
688
          AC_CHECK_FUNCS(dcgettext)
 
689
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
690
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
691
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
692
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
693
                         return _nl_msg_cat_cntr],
 
694
            [CATOBJEXT=.gmo 
 
695
             DATADIRNAME=share],
 
696
            [case $host in
 
697
            *-*-solaris*)
 
698
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
699
            dnl GNU format message catalog is always supported,
 
700
            dnl since both are added to the libc all together.
 
701
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
702
            dnl and CATOBJEXT=.gmo in this case.
 
703
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
704
              [CATOBJEXT=.gmo 
 
705
               DATADIRNAME=share],
 
706
              [CATOBJEXT=.mo
 
707
               DATADIRNAME=lib])
 
708
            ;;
 
709
            *)
 
710
            CATOBJEXT=.mo
 
711
            DATADIRNAME=lib
 
712
            ;;
 
713
            esac])
 
714
          LIBS="$glib_save_LIBS"
 
715
          INSTOBJEXT=.mo
 
716
        else
 
717
          gt_cv_have_gettext=no
 
718
        fi
 
719
      fi
 
720
    ])
 
721
 
 
722
    if test "$gt_cv_have_gettext" = "yes" ; then
 
723
      AC_DEFINE(ENABLE_NLS, 1,
 
724
        [always defined to indicate that i18n is enabled])
 
725
    fi
 
726
 
 
727
    dnl Test whether we really found GNU xgettext.
 
728
    if test "$XGETTEXT" != ":"; then
 
729
      dnl If it is not GNU xgettext we define it as : so that the
 
730
      dnl Makefiles still can work.
 
731
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
732
        : ;
 
733
      else
 
734
        AC_MSG_RESULT(
 
735
          [found xgettext program is not GNU xgettext; ignore it])
 
736
        XGETTEXT=":"
 
737
      fi
 
738
    fi
 
739
 
 
740
    # We need to process the po/ directory.
 
741
    POSUB=po
 
742
 
 
743
    AC_OUTPUT_COMMANDS(
 
744
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
745
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
746
      esac])
 
747
 
 
748
    dnl These rules are solely for the distribution goal.  While doing this
 
749
    dnl we only have to keep exactly one list of the available catalogs
 
750
    dnl in configure.in.
 
751
    for lang in $ALL_LINGUAS; do
 
752
      GMOFILES="$GMOFILES $lang.gmo"
 
753
      POFILES="$POFILES $lang.po"
 
754
    done
 
755
 
 
756
    dnl Make all variables we use known to autoconf.
 
757
    AC_SUBST(CATALOGS)
 
758
    AC_SUBST(CATOBJEXT)
 
759
    AC_SUBST(DATADIRNAME)
 
760
    AC_SUBST(GMOFILES)
 
761
    AC_SUBST(INSTOBJEXT)
 
762
    AC_SUBST(INTLLIBS)
 
763
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
764
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
765
    AC_SUBST(POFILES)
 
766
    AC_SUBST(POSUB)
 
767
  ])
 
768
 
 
769
# AM_GLIB_GNU_GETTEXT
 
770
# -------------------
 
771
# Do checks necessary for use of gettext. If a suitable implementation 
 
772
# of gettext is found in either in libintl or in the C library,
 
773
# it will set INTLLIBS to the libraries needed for use of gettext
 
774
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
775
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
776
# on various variables needed by the Makefile.in.in installed by 
 
777
# glib-gettextize.
 
778
dnl
 
779
glib_DEFUN([GLIB_GNU_GETTEXT],
 
780
  [AC_REQUIRE([AC_PROG_CC])dnl
 
781
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
782
   
 
783
   GLIB_LC_MESSAGES
 
784
   GLIB_WITH_NLS
 
785
 
 
786
   if test "$gt_cv_have_gettext" = "yes"; then
 
787
     if test "x$ALL_LINGUAS" = "x"; then
 
788
       LINGUAS=
 
789
     else
 
790
       AC_MSG_CHECKING(for catalogs to be installed)
 
791
       NEW_LINGUAS=
 
792
       for presentlang in $ALL_LINGUAS; do
 
793
         useit=no
 
794
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
795
           desiredlanguages="$LINGUAS"
 
796
         else
 
797
           desiredlanguages="$ALL_LINGUAS"
 
798
         fi
 
799
         for desiredlang in $desiredlanguages; do
 
800
           # Use the presentlang catalog if desiredlang is
 
801
           #   a. equal to presentlang, or
 
802
           #   b. a variant of presentlang (because in this case,
 
803
           #      presentlang can be used as a fallback for messages
 
804
           #      which are not translated in the desiredlang catalog).
 
805
           case "$desiredlang" in
 
806
             "$presentlang"*) useit=yes;;
 
807
           esac
 
808
         done
 
809
         if test $useit = yes; then
 
810
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
811
         fi
 
812
       done
 
813
       LINGUAS=$NEW_LINGUAS
 
814
       AC_MSG_RESULT($LINGUAS)
 
815
     fi
 
816
 
 
817
     dnl Construct list of names of catalog files to be constructed.
 
818
     if test -n "$LINGUAS"; then
 
819
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
820
     fi
 
821
   fi
 
822
 
 
823
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
824
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
825
   dnl Try to locate is.
 
826
   MKINSTALLDIRS=
 
827
   if test -n "$ac_aux_dir"; then
 
828
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
829
   fi
 
830
   if test -z "$MKINSTALLDIRS"; then
 
831
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
832
   fi
 
833
   AC_SUBST(MKINSTALLDIRS)
 
834
 
 
835
   dnl Generate list of files to be processed by xgettext which will
 
836
   dnl be included in po/Makefile.
 
837
   test -d po || mkdir po
 
838
   if test "x$srcdir" != "x."; then
 
839
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
840
       posrcprefix="$srcdir/"
 
841
     else
 
842
       posrcprefix="../$srcdir/"
 
843
     fi
 
844
   else
 
845
     posrcprefix="../"
 
846
   fi
 
847
   rm -f po/POTFILES
 
848
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
849
        < $srcdir/po/POTFILES.in > po/POTFILES
 
850
  ])
 
851
 
 
852
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
 
853
# -------------------------------
 
854
# Define VARIABLE to the location where catalog files will
 
855
# be installed by po/Makefile.
 
856
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
857
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
858
glib_save_prefix="$prefix"
 
859
glib_save_exec_prefix="$exec_prefix"
 
860
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
861
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
862
if test "x$CATOBJEXT" = "x.mo" ; then
 
863
  localedir=`eval echo "${libdir}/locale"`
 
864
else
 
865
  localedir=`eval echo "${datadir}/locale"`
 
866
fi
 
867
prefix="$glib_save_prefix"
 
868
exec_prefix="$glib_save_exec_prefix"
 
869
AC_DEFINE_UNQUOTED($1, "$localedir",
 
870
  [Define the location where the catalogs will be installed])
 
871
])
 
872
 
 
873
dnl
 
874
dnl Now the definitions that aclocal will find
 
875
dnl
 
876
ifdef(glib_configure_in,[],[
 
877
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
878
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
879
])dnl
 
880
 
 
881
dnl GNOME_COMPILE_WARNINGS
 
882
dnl Turn on many useful compiler warnings
 
883
dnl For now, only works on GCC
 
884
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
885
    dnl ******************************
 
886
    dnl More compiler warnings
 
887
    dnl ******************************
 
888
 
 
889
    AC_ARG_ENABLE(compile-warnings, 
 
890
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
891
                                 [Turn on compiler warnings]),,
 
892
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
893
 
 
894
    warnCFLAGS=
 
895
    if test "x$GCC" != xyes; then
 
896
        enable_compile_warnings=no
 
897
    fi
 
898
 
 
899
    warning_flags=
 
900
    realsave_CFLAGS="$CFLAGS"
 
901
 
 
902
    case "$enable_compile_warnings" in
 
903
    no)
 
904
        warning_flags=
 
905
        ;;
 
906
    minimum)
 
907
        warning_flags="-Wall"
 
908
        ;;
 
909
    yes)
 
910
        warning_flags="-Wall -Wmissing-prototypes"
 
911
        ;;
 
912
    maximum|error)
 
913
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
914
        CFLAGS="$warning_flags $CFLAGS"
 
915
        for option in -Wno-sign-compare; do
 
916
                SAVE_CFLAGS="$CFLAGS"
 
917
                CFLAGS="$CFLAGS $option"
 
918
                AC_MSG_CHECKING([whether gcc understands $option])
 
919
                AC_TRY_COMPILE([], [],
 
920
                        has_option=yes,
 
921
                        has_option=no,)
 
922
                CFLAGS="$SAVE_CFLAGS"
 
923
                AC_MSG_RESULT($has_option)
 
924
                if test $has_option = yes; then
 
925
                  warning_flags="$warning_flags $option"
 
926
                fi
 
927
                unset has_option
 
928
                unset SAVE_CFLAGS
 
929
        done
 
930
        unset option
 
931
        if test "$enable_compile_warnings" = "error" ; then
 
932
            warning_flags="$warning_flags -Werror"
 
933
        fi
 
934
        ;;
 
935
    *)
 
936
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
937
        ;;
 
938
    esac
 
939
    CFLAGS="$realsave_CFLAGS"
 
940
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
941
    AC_MSG_RESULT($warning_flags)
 
942
 
 
943
    AC_ARG_ENABLE(iso-c,
 
944
                  AC_HELP_STRING([--enable-iso-c],
 
945
                                 [Try to warn if code is not ISO C ]),,
 
946
                  [enable_iso_c=no])
 
947
 
 
948
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
949
    complCFLAGS=
 
950
    if test "x$enable_iso_c" != "xno"; then
 
951
        if test "x$GCC" = "xyes"; then
 
952
        case " $CFLAGS " in
 
953
            *[\ \       ]-ansi[\ \      ]*) ;;
 
954
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
955
        esac
 
956
        case " $CFLAGS " in
 
957
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
958
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
959
        esac
 
960
        fi
 
961
    fi
 
962
    AC_MSG_RESULT($complCFLAGS)
 
963
 
 
964
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
965
    AC_SUBST(WARN_CFLAGS)
 
966
])
 
967
 
 
968
dnl For C++, do basically the same thing.
 
969
 
 
970
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
971
  AC_ARG_ENABLE(cxx-warnings,
 
972
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
973
                               [Turn on compiler warnings.]),,
 
974
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
975
 
 
976
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
977
  warnCXXFLAGS=
 
978
  if test "x$GCC" != xyes; then
 
979
    enable_compile_warnings=no
 
980
  fi
 
981
  if test "x$enable_cxx_warnings" != "xno"; then
 
982
    if test "x$GCC" = "xyes"; then
 
983
      case " $CXXFLAGS " in
 
984
      *[\ \     ]-Wall[\ \      ]*) ;;
 
985
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
986
      esac
 
987
 
 
988
      ## -W is not all that useful.  And it cannot be controlled
 
989
      ## with individual -Wno-xxx flags, unlike -Wall
 
990
      if test "x$enable_cxx_warnings" = "xyes"; then
 
991
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
 
992
      fi
 
993
    fi
 
994
  fi
 
995
  AC_MSG_RESULT($warnCXXFLAGS)
 
996
 
 
997
   AC_ARG_ENABLE(iso-cxx,
 
998
                 AC_HELP_STRING([--enable-iso-cxx],
 
999
                                [Try to warn if code is not ISO C++ ]),,
 
1000
                 [enable_iso_cxx=no])
 
1001
 
 
1002
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
1003
   complCXXFLAGS=
 
1004
   if test "x$enable_iso_cxx" != "xno"; then
 
1005
     if test "x$GCC" = "xyes"; then
 
1006
      case " $CXXFLAGS " in
 
1007
      *[\ \     ]-ansi[\ \      ]*) ;;
 
1008
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
1009
      esac
 
1010
 
 
1011
      case " $CXXFLAGS " in
 
1012
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
1013
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
1014
      esac
 
1015
     fi
 
1016
   fi
 
1017
  AC_MSG_RESULT($complCXXFLAGS)
 
1018
 
 
1019
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
1020
  AC_SUBST(WARN_CXXFLAGS)
 
1021
])
 
1022
 
 
1023
 
 
1024
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
1025
# serial 35 IT_PROG_INTLTOOL
 
1026
AC_DEFUN([IT_PROG_INTLTOOL],
 
1027
[AC_PREREQ([2.50])dnl
 
1028
 
 
1029
case "$am__api_version" in
 
1030
    1.[01234])
 
1031
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
1032
    ;;
 
1033
    *)
 
1034
    ;;
 
1035
esac
 
1036
 
 
1037
if test -n "$1"; then
 
1038
    AC_MSG_CHECKING(for intltool >= $1)
 
1039
 
 
1040
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
1041
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
 
1042
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
 
1043
    ]
 
1044
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
1045
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
1046
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
1047
fi
 
1048
 
 
1049
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1050
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1051
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1052
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1053
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
1054
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1055
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1056
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1057
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1058
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1059
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1060
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
1061
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1062
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1063
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1064
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1065
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1066
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
1067
 
 
1068
AC_SUBST(INTLTOOL_DESKTOP_RULE)
 
1069
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
 
1070
AC_SUBST(INTLTOOL_KEYS_RULE)
 
1071
AC_SUBST(INTLTOOL_PROP_RULE)
 
1072
AC_SUBST(INTLTOOL_OAF_RULE)
 
1073
AC_SUBST(INTLTOOL_PONG_RULE)
 
1074
AC_SUBST(INTLTOOL_SERVER_RULE)
 
1075
AC_SUBST(INTLTOOL_SHEET_RULE)
 
1076
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
1077
AC_SUBST(INTLTOOL_UI_RULE)
 
1078
AC_SUBST(INTLTOOL_XAM_RULE)
 
1079
AC_SUBST(INTLTOOL_KBD_RULE)
 
1080
AC_SUBST(INTLTOOL_XML_RULE)
 
1081
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
1082
AC_SUBST(INTLTOOL_CAVES_RULE)
 
1083
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
 
1084
AC_SUBST(INTLTOOL_THEME_RULE)
 
1085
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
1086
 
 
1087
# Use the tools built into the package, not the ones that are installed.
 
1088
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
 
1089
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
 
1090
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
 
1091
 
 
1092
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
1093
if test -z "$INTLTOOL_PERL"; then
 
1094
   AC_MSG_ERROR([perl not found; required for intltool])
 
1095
fi
 
1096
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
1097
   AC_MSG_ERROR([perl 5.x required for intltool])
 
1098
fi
 
1099
if test "x$2" != "xno-xml"; then
 
1100
   AC_MSG_CHECKING([for XML::Parser])
 
1101
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
1102
       AC_MSG_RESULT([ok])
 
1103
   else
 
1104
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
1105
   fi
 
1106
fi
 
1107
 
 
1108
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
 
1109
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
 
1110
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
 
1111
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
 
1112
 
 
1113
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
1114
AC_SUBST(ALL_LINGUAS)
 
1115
    
 
1116
IT_PO_SUBDIR([po])
 
1117
 
 
1118
dnl The following is very similar to
 
1119
dnl
 
1120
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
 
1121
dnl
 
1122
dnl with the following slight differences:
 
1123
dnl  - the *.in files are in ac_aux_dir,
 
1124
dnl  - if the file haven't changed upon reconfigure, it's not touched,
 
1125
dnl  - the evaluation of the third parameter enables a hack which computes
 
1126
dnl    the actual value of $libdir,
 
1127
dnl  - the user sees "executing intltool commands", instead of
 
1128
dnl    "creating intltool-extract" and such.
 
1129
dnl
 
1130
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
 
1131
dnl a reason for it.
 
1132
 
 
1133
AC_CONFIG_COMMANDS([intltool], [
 
1134
 
 
1135
for file in intltool-extract intltool-merge intltool-update; do
 
1136
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
 
1137
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
 
1138
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
 
1139
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
 
1140
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
 
1141
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
 
1142
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
 
1143
        < ${ac_aux_dir}/${file}.in > ${file}.out
 
1144
  if cmp -s ${file} ${file}.out 2>/dev/null; then
 
1145
    rm -f ${file}.out
 
1146
  else
 
1147
    mv -f ${file}.out ${file}
 
1148
  fi
 
1149
  chmod ugo+x ${file}
 
1150
  chmod u+w ${file}
 
1151
done
 
1152
 
 
1153
],
 
1154
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
 
1155
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
 
1156
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
 
1157
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
 
1158
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
 
1159
 
 
1160
])
 
1161
 
 
1162
 
 
1163
# IT_PO_SUBDIR(DIRNAME)
 
1164
# ---------------------
 
1165
# All po subdirs have to be declared with this macro; the subdir "po" is
 
1166
# declared by IT_PROG_INTLTOOL.
 
1167
#
 
1168
AC_DEFUN([IT_PO_SUBDIR],
 
1169
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
1170
dnl
 
1171
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
1172
dnl of config.status.
 
1173
AC_CONFIG_COMMANDS_PRE([
 
1174
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
1175
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
1176
    >"$1/stamp-it.tmp"
 
1177
    [sed '/^#/d
 
1178
         s/^[[].*] *//
 
1179
         /^[    ]*$/d
 
1180
        '"s|^|  $ac_top_srcdir/|" \
 
1181
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
1182
    ]
 
1183
    if test ! -f "$1/Makefile"; then
 
1184
      AC_MSG_ERROR([$1/Makefile is not ready.])
 
1185
    fi
 
1186
    mv "$1/Makefile" "$1/Makefile.tmp"
 
1187
    [sed '/^POTFILES =/,/[^\\]$/ {
 
1188
                /^POTFILES =/!d
 
1189
                r $1/POTFILES
 
1190
          }
 
1191
         ' "$1/Makefile.tmp" >"$1/Makefile"]
 
1192
    rm -f "$1/Makefile.tmp"
 
1193
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
1194
  ])
 
1195
])dnl
 
1196
])
 
1197
 
 
1198
 
 
1199
# deprecated macros
 
1200
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
1201
# A hint is needed for aclocal from Automake <= 1.9.4:
 
1202
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
1203
 
329
1204
 
330
1205
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
331
1206
 
332
 
# serial 48 AC_PROG_LIBTOOL
 
1207
# serial 47 AC_PROG_LIBTOOL
333
1208
 
334
1209
 
335
1210
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
459
1334
default_ofile=libtool
460
1335
can_build_shared=yes
461
1336
 
462
 
# All known linkers require a `.a' archive for static linking (except MSVC,
 
1337
# All known linkers require a `.a' archive for static linking (except M$VC,
463
1338
# which needs '.lib').
464
1339
libext=a
465
1340
ltmain="$ac_aux_dir/ltmain.sh"
479
1354
test -z "$AS" && AS=as
480
1355
test -z "$CC" && CC=cc
481
1356
test -z "$LTCC" && LTCC=$CC
482
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
483
1357
test -z "$DLLTOOL" && DLLTOOL=dlltool
484
1358
test -z "$LD" && LD=ld
485
1359
test -z "$LN_S" && LN_S="ln -s"
499
1373
if test -n "$RANLIB"; then
500
1374
  case $host_os in
501
1375
  openbsd*)
502
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1376
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
503
1377
    ;;
504
1378
  *)
505
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1379
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
506
1380
    ;;
507
1381
  esac
508
1382
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
550
1424
# If no C compiler was specified, use CC.
551
1425
LTCC=${LTCC-"$CC"}
552
1426
 
553
 
# If no C compiler flags were specified, use CFLAGS.
554
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
555
 
 
556
1427
# Allow CC to be a program name with arguments.
557
1428
compiler=$CC
558
1429
])# _LT_AC_SYS_COMPILER
581
1452
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
582
1453
[ac_outfile=conftest.$ac_objext
583
1454
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
584
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
1455
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
585
1456
_lt_compiler_boilerplate=`cat conftest.err`
586
1457
$rm conftest*
587
1458
])# _LT_COMPILER_BOILERPLATE
594
1465
AC_DEFUN([_LT_LINKER_BOILERPLATE],
595
1466
[ac_outfile=conftest.$ac_objext
596
1467
printf "$lt_simple_link_test_code" >conftest.$ac_ext
597
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
1468
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
598
1469
_lt_linker_boilerplate=`cat conftest.err`
599
1470
$rm conftest*
600
1471
])# _LT_LINKER_BOILERPLATE
679
1550
# find a string as large as possible, as long as the shell can cope with it
680
1551
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
681
1552
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
682
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
683
 
       echo_test_string=`eval $cmd` &&
 
1553
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
1554
       echo_test_string="`eval $cmd`" &&
684
1555
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
685
1556
    then
686
1557
      break
849
1720
  # Find out which ABI we are using.
850
1721
  echo 'int i;' > conftest.$ac_ext
851
1722
  if AC_TRY_EVAL(ac_compile); then
852
 
    case `/usr/bin/file conftest.o` in
 
1723
    case "`/usr/bin/file conftest.o`" in
853
1724
    *32-bit*)
854
1725
      case $host in
855
1726
        x86_64-*linux*)
900
1771
    CFLAGS="$SAVE_CFLAGS"
901
1772
  fi
902
1773
  ;;
903
 
sparc*-*solaris*)
904
 
  # Find out which ABI we are using.
905
 
  echo 'int i;' > conftest.$ac_ext
906
 
  if AC_TRY_EVAL(ac_compile); then
907
 
    case `/usr/bin/file conftest.o` in
908
 
    *64-bit*)
909
 
      case $lt_cv_prog_gnu_ld in
910
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
911
 
      *)    LD="${LD-ld} -64" ;;
912
 
      esac
913
 
      ;;
914
 
    esac
915
 
  fi
916
 
  rm -rf conftest*
917
 
  ;;
918
 
 
919
1774
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
920
1775
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
921
1776
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
947
1802
   # with a dollar sign (not a hyphen), so the echo should work correctly.
948
1803
   # The option is referenced via a variable to avoid confusing sed.
949
1804
   lt_compile=`echo "$ac_compile" | $SED \
950
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
1805
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
951
1806
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
952
1807
   -e 's:$: $lt_compiler_flag:'`
953
1808
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
958
1813
   if (exit $ac_status) && test -s "$ac_outfile"; then
959
1814
     # The compiler can only warn and ignore the option if not recognized
960
1815
     # So say no if there are warnings other than the usual output.
961
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
962
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
963
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
1816
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
1817
     $SED '/^$/d' conftest.err >conftest.er2
 
1818
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
964
1819
       $2=yes
965
1820
     fi
966
1821
   fi
986
1841
   LDFLAGS="$LDFLAGS $3"
987
1842
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
988
1843
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
989
 
     # The linker can only warn and ignore the option if not recognized
 
1844
     # The compiler can only warn and ignore the option if not recognized
990
1845
     # So say no if there are warnings
991
1846
     if test -s conftest.err; then
992
1847
       # Append any errors to the config.log.
993
1848
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
994
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
995
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
1849
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
1850
       $SED '/^$/d' conftest.err >conftest.er2
996
1851
       if diff conftest.exp conftest.er2 >/dev/null; then
997
1852
         $2=yes
998
1853
       fi
1061
1916
    elif test -x /usr/sbin/sysctl; then
1062
1917
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1063
1918
    else
1064
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
1919
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
1065
1920
    fi
1066
1921
    # And add a safety zone
1067
1922
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1068
1923
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1069
1924
    ;;
1070
 
 
1071
 
  interix*)
1072
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1073
 
    lt_cv_sys_max_cmd_len=196608
1074
 
    ;;
1075
 
 
1076
1925
  osf*)
1077
1926
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1078
1927
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1079
1928
    # nice to cause kernel panics so lets avoid the loop below.
1080
1929
    # First set a reasonable default.
1081
1930
    lt_cv_sys_max_cmd_len=16384
1082
 
    #
 
1931
    # 
1083
1932
    if test -x /sbin/sysconfig; then
1084
1933
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1085
1934
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1086
1935
      esac
1087
1936
    fi
1088
1937
    ;;
1089
 
  sco3.2v5*)
1090
 
    lt_cv_sys_max_cmd_len=102400
1091
 
    ;;
1092
 
  sysv5* | sco5v6* | sysv4.2uw2*)
1093
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1094
 
    if test -n "$kargmax"; then
1095
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
1096
 
    else
1097
 
      lt_cv_sys_max_cmd_len=32768
1098
 
    fi
1099
 
    ;;
1100
1938
  *)
1101
1939
    # If test is not a shell built-in, we'll probably end up computing a
1102
1940
    # maximum length that is only half of the actual maximum length, but
1128
1966
 
1129
1967
 
1130
1968
# _LT_AC_CHECK_DLFCN
1131
 
# ------------------
 
1969
# --------------------
1132
1970
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1133
1971
[AC_CHECK_HEADERS(dlfcn.h)dnl
1134
1972
])# _LT_AC_CHECK_DLFCN
1136
1974
 
1137
1975
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1138
1976
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1139
 
# ---------------------------------------------------------------------
 
1977
# ------------------------------------------------------------------
1140
1978
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1141
1979
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1142
1980
if test "$cross_compiling" = yes; then :
1202
2040
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1203
2041
      /* dlclose (self); */
1204
2042
    }
1205
 
  else
1206
 
    puts (dlerror ());
1207
2043
 
1208
2044
    exit (status);
1209
2045
}]
1210
2046
EOF
1211
2047
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1212
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
2048
    (./conftest; exit; ) 2>/dev/null
1213
2049
    lt_status=$?
1214
2050
    case x$lt_status in
1215
2051
      x$lt_dlno_uscore) $1 ;;
1216
2052
      x$lt_dlneed_uscore) $2 ;;
1217
 
      x$lt_dlunknown|x*) $3 ;;
 
2053
      x$lt_unknown|x*) $3 ;;
1218
2054
    esac
1219
2055
  else :
1220
2056
    # compilation failed
1226
2062
 
1227
2063
 
1228
2064
# AC_LIBTOOL_DLOPEN_SELF
1229
 
# ----------------------
 
2065
# -------------------
1230
2066
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1231
2067
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1232
2068
if test "x$enable_dlopen" != xyes; then
1297
2133
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1298
2134
 
1299
2135
    save_LDFLAGS="$LDFLAGS"
1300
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
2136
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1301
2137
 
1302
2138
    save_LIBS="$LIBS"
1303
2139
    LIBS="$lt_cv_dlopen_libs $LIBS"
1310
2146
    ])
1311
2147
 
1312
2148
    if test "x$lt_cv_dlopen_self" = xyes; then
1313
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
2149
      LDFLAGS="$LDFLAGS $link_static_flag"
1314
2150
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1315
2151
          lt_cv_dlopen_self_static, [dnl
1316
2152
          _LT_AC_TRY_DLOPEN_SELF(
1358
2194
   # Note that $ac_compile itself does not contain backslashes and begins
1359
2195
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1360
2196
   lt_compile=`echo "$ac_compile" | $SED \
1361
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2197
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1362
2198
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1363
2199
   -e 's:$: $lt_compiler_flag:'`
1364
2200
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1370
2206
   then
1371
2207
     # The compiler can only warn and ignore the option if not recognized
1372
2208
     # So say no if there are warnings
1373
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1374
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1375
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
2209
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
2210
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
2211
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1376
2212
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1377
2213
     fi
1378
2214
   fi
1379
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
2215
   chmod u+w .
1380
2216
   $rm conftest*
1381
2217
   # SGI C++ compiler will create directory out/ii_files/ for
1382
2218
   # template instantiation
1636
2472
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1637
2473
      dldir=$destdir/`dirname \$dlpath`~
1638
2474
      test -d \$dldir || mkdir -p \$dldir~
1639
 
      $install_prog $dir/$dlname \$dldir/$dlname~
1640
 
      chmod a+x \$dldir/$dlname'
 
2475
      $install_prog $dir/$dlname \$dldir/$dlname'
1641
2476
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1642
2477
      dlpath=$dir/\$dldll~
1643
2478
       $rm \$dlpath'
1690
2525
  soname_spec='${libname}${release}${major}$shared_ext'
1691
2526
  shlibpath_overrides_runpath=yes
1692
2527
  shlibpath_var=DYLD_LIBRARY_PATH
1693
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
2528
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1694
2529
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1695
2530
  if test "$GCC" = yes; then
1696
2531
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1728
2563
freebsd* | dragonfly*)
1729
2564
  # DragonFly does not have aout.  When/if they implement a new
1730
2565
  # versioning mechanism, adjust this.
1731
 
  if test -x /usr/bin/objformat; then
1732
 
    objformat=`/usr/bin/objformat`
1733
 
  else
1734
 
    case $host_os in
1735
 
    freebsd[[123]]*) objformat=aout ;;
1736
 
    *) objformat=elf ;;
1737
 
    esac
1738
 
  fi
 
2566
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
1739
2567
  version_type=freebsd-$objformat
1740
2568
  case $version_type in
1741
2569
    freebsd-elf*)
1757
2585
    shlibpath_overrides_runpath=yes
1758
2586
    hardcode_into_libs=yes
1759
2587
    ;;
1760
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1761
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
2588
  *) # from 3.2 on
1762
2589
    shlibpath_overrides_runpath=no
1763
2590
    hardcode_into_libs=yes
1764
2591
    ;;
1765
 
  freebsd*) # from 4.6 on
1766
 
    shlibpath_overrides_runpath=yes
1767
 
    hardcode_into_libs=yes
1768
 
    ;;
1769
2592
  esac
1770
2593
  ;;
1771
2594
 
1785
2608
  version_type=sunos
1786
2609
  need_lib_prefix=no
1787
2610
  need_version=no
1788
 
  case $host_cpu in
 
2611
  case "$host_cpu" in
1789
2612
  ia64*)
1790
2613
    shrext_cmds='.so'
1791
2614
    hardcode_into_libs=yes
1825
2648
  postinstall_cmds='chmod 555 $lib'
1826
2649
  ;;
1827
2650
 
1828
 
interix3*)
1829
 
  version_type=linux
1830
 
  need_lib_prefix=no
1831
 
  need_version=no
1832
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1833
 
  soname_spec='${libname}${release}${shared_ext}$major'
1834
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1835
 
  shlibpath_var=LD_LIBRARY_PATH
1836
 
  shlibpath_overrides_runpath=no
1837
 
  hardcode_into_libs=yes
1838
 
  ;;
1839
 
 
1840
2651
irix5* | irix6* | nonstopux*)
1841
2652
  case $host_os in
1842
2653
    nonstopux*) version_type=nonstopux ;;
1913
2724
 
1914
2725
  # Append ld.so.conf contents to the search path
1915
2726
  if test -f /etc/ld.so.conf; then
1916
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
2727
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1917
2728
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1918
2729
  fi
1919
2730
 
1975
2786
 
1976
2787
openbsd*)
1977
2788
  version_type=sunos
1978
 
  sys_lib_dlsearch_path_spec="/usr/lib"
1979
2789
  need_lib_prefix=no
1980
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1981
 
  case $host_os in
1982
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1983
 
    *)                         need_version=no  ;;
1984
 
  esac
 
2790
  need_version=no
1985
2791
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1986
2792
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1987
2793
  shlibpath_var=LD_LIBRARY_PATH
2019
2825
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2020
2826
  ;;
2021
2827
 
 
2828
sco3.2v5*)
 
2829
  version_type=osf
 
2830
  soname_spec='${libname}${release}${shared_ext}$major'
 
2831
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2832
  shlibpath_var=LD_LIBRARY_PATH
 
2833
  ;;
 
2834
 
2022
2835
solaris*)
2023
2836
  version_type=linux
2024
2837
  need_lib_prefix=no
2044
2857
  need_version=yes
2045
2858
  ;;
2046
2859
 
2047
 
sysv4 | sysv4.3*)
 
2860
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2048
2861
  version_type=linux
2049
2862
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2050
2863
  soname_spec='${libname}${release}${shared_ext}$major'
2077
2890
  fi
2078
2891
  ;;
2079
2892
 
2080
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2081
 
  version_type=freebsd-elf
2082
 
  need_lib_prefix=no
2083
 
  need_version=no
2084
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2085
 
  soname_spec='${libname}${release}${shared_ext}$major'
2086
 
  shlibpath_var=LD_LIBRARY_PATH
2087
 
  hardcode_into_libs=yes
2088
 
  if test "$with_gnu_ld" = yes; then
2089
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2090
 
    shlibpath_overrides_runpath=no
2091
 
  else
2092
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2093
 
    shlibpath_overrides_runpath=yes
2094
 
    case $host_os in
2095
 
      sco3.2v5*)
2096
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2097
 
        ;;
2098
 
    esac
2099
 
  fi
2100
 
  sys_lib_dlsearch_path_spec='/usr/lib'
2101
 
  ;;
2102
 
 
2103
2893
uts4*)
2104
2894
  version_type=linux
2105
2895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2113
2903
esac
2114
2904
AC_MSG_RESULT([$dynamic_linker])
2115
2905
test "$dynamic_linker" = no && can_build_shared=no
2116
 
 
2117
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2118
 
if test "$GCC" = yes; then
2119
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2120
 
fi
2121
2906
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2122
2907
 
2123
2908
 
2142
2927
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2143
2928
    fi
2144
2929
  fi
2145
 
  if test -z "$LTCFLAGS"; then
2146
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2147
 
  fi
2148
2930
 
2149
2931
  # Extract list of available tagged configurations in $ofile.
2150
2932
  # Note that this assumes the entire list is on one line.
2235
3017
 
2236
3018
# AC_LIBTOOL_WIN32_DLL
2237
3019
# --------------------
2238
 
# declare package support for building win32 DLLs
 
3020
# declare package support for building win32 dll's
2239
3021
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2240
3022
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2241
3023
])# AC_LIBTOOL_WIN32_DLL
2273
3055
 
2274
3056
# AC_DISABLE_SHARED
2275
3057
# -----------------
2276
 
# set the default shared flag to --disable-shared
 
3058
#- set the default shared flag to --disable-shared
2277
3059
AC_DEFUN([AC_DISABLE_SHARED],
2278
3060
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2279
3061
AC_ENABLE_SHARED(no)
2409
3191
      if test -n "$file_magic_test_file"; then
2410
3192
        case $deplibs_check_method in
2411
3193
        "file_magic "*)
2412
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
3194
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2413
3195
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2414
3196
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2415
3197
            $EGREP "$file_magic_regex" > /dev/null; then
2519
3301
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2520
3302
      lt_cv_path_LD="$ac_dir/$ac_prog"
2521
3303
      # Check to see if the program is GNU ld.  I'd rather use --version,
2522
 
      # but apparently some variants of GNU ld only accept -v.
 
3304
      # but apparently some GNU ld's only accept -v.
2523
3305
      # Break only if it was the GNU/non-GNU ld that we prefer.
2524
3306
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2525
3307
      *GNU* | *'with BFD'*)
2551
3333
AC_DEFUN([AC_PROG_LD_GNU],
2552
3334
[AC_REQUIRE([AC_PROG_EGREP])dnl
2553
3335
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2554
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3336
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2555
3337
case `$LD -v 2>&1 </dev/null` in
2556
3338
*GNU* | *'with BFD'*)
2557
3339
  lt_cv_prog_gnu_ld=yes
2581
3363
case $host_os in
2582
3364
  darwin*)
2583
3365
    if test "$GCC" = yes; then
2584
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3366
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2585
3367
    else
2586
3368
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2587
3369
    fi
2665
3447
 
2666
3448
hpux10.20* | hpux11*)
2667
3449
  lt_cv_file_magic_cmd=/usr/bin/file
2668
 
  case $host_cpu in
 
3450
  case "$host_cpu" in
2669
3451
  ia64*)
2670
3452
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2671
3453
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2681
3463
  esac
2682
3464
  ;;
2683
3465
 
2684
 
interix3*)
2685
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2686
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2687
 
  ;;
2688
 
 
2689
3466
irix5* | irix6* | nonstopux*)
2690
3467
  case $LD in
2691
3468
  *-32|*"-32 ") libmagic=32-bit;;
2731
3508
  lt_cv_deplibs_check_method=pass_all
2732
3509
  ;;
2733
3510
 
 
3511
sco3.2v5*)
 
3512
  lt_cv_deplibs_check_method=pass_all
 
3513
  ;;
 
3514
 
2734
3515
solaris*)
2735
3516
  lt_cv_deplibs_check_method=pass_all
2736
3517
  ;;
2737
3518
 
2738
 
sysv4 | sysv4.3*)
 
3519
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2739
3520
  case $host_vendor in
2740
3521
  motorola)
2741
3522
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
2756
3537
  siemens)
2757
3538
    lt_cv_deplibs_check_method=pass_all
2758
3539
    ;;
2759
 
  pc)
2760
 
    lt_cv_deplibs_check_method=pass_all
2761
 
    ;;
2762
3540
  esac
2763
3541
  ;;
2764
3542
 
2765
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3543
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2766
3544
  lt_cv_deplibs_check_method=pass_all
2767
3545
  ;;
2768
3546
esac
2782
3560
  # Let the user override the test.
2783
3561
  lt_cv_path_NM="$NM"
2784
3562
else
2785
 
  lt_nm_to_check="${ac_tool_prefix}nm"
2786
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
2787
 
    lt_nm_to_check="$lt_nm_to_check nm"
2788
 
  fi
2789
 
  for lt_tmp_nm in $lt_nm_to_check; do
2790
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2791
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2792
 
      IFS="$lt_save_ifs"
2793
 
      test -z "$ac_dir" && ac_dir=.
2794
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
2795
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2796
 
        # Check to see if the nm accepts a BSD-compat flag.
2797
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2798
 
        #   nm: unknown option "B" ignored
2799
 
        # Tru64's nm complains that /dev/null is an invalid object file
2800
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2801
 
        */dev/null* | *'Invalid file or object type'*)
2802
 
          lt_cv_path_NM="$tmp_nm -B"
 
3563
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3564
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3565
    IFS="$lt_save_ifs"
 
3566
    test -z "$ac_dir" && ac_dir=.
 
3567
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3568
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3569
      # Check to see if the nm accepts a BSD-compat flag.
 
3570
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3571
      #   nm: unknown option "B" ignored
 
3572
      # Tru64's nm complains that /dev/null is an invalid object file
 
3573
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3574
      */dev/null* | *'Invalid file or object type'*)
 
3575
        lt_cv_path_NM="$tmp_nm -B"
 
3576
        break
 
3577
        ;;
 
3578
      *)
 
3579
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3580
        */dev/null*)
 
3581
          lt_cv_path_NM="$tmp_nm -p"
2803
3582
          break
2804
3583
          ;;
2805
3584
        *)
2806
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2807
 
          */dev/null*)
2808
 
            lt_cv_path_NM="$tmp_nm -p"
2809
 
            break
2810
 
            ;;
2811
 
          *)
2812
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2813
 
            continue # so that we can try to find one that supports BSD flags
2814
 
            ;;
2815
 
          esac
 
3585
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3586
          continue # so that we can try to find one that supports BSD flags
2816
3587
          ;;
2817
3588
        esac
2818
 
      fi
2819
 
    done
2820
 
    IFS="$lt_save_ifs"
 
3589
      esac
 
3590
    fi
2821
3591
  done
 
3592
  IFS="$lt_save_ifs"
2822
3593
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2823
3594
fi])
2824
3595
NM="$lt_cv_path_NM"
2850
3621
# -----------------------------------
2851
3622
# sets LIBLTDL to the link flags for the libltdl convenience library and
2852
3623
# LTDLINCL to the include flags for the libltdl header and adds
2853
 
# --enable-ltdl-convenience to the configure arguments.  Note that
2854
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2855
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2856
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2857
 
# (note the single quotes!).  If your package is not flat and you're not
2858
 
# using automake, define top_builddir and top_srcdir appropriately in
2859
 
# the Makefiles.
 
3624
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
 
3625
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
3626
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
 
3627
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
 
3628
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3629
# flat and you're not using automake, define top_builddir and
 
3630
# top_srcdir appropriately in the Makefiles.
2860
3631
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2861
3632
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2862
3633
  case $enable_ltdl_convenience in
2875
3646
# -----------------------------------
2876
3647
# sets LIBLTDL to the link flags for the libltdl installable library and
2877
3648
# LTDLINCL to the include flags for the libltdl header and adds
2878
 
# --enable-ltdl-install to the configure arguments.  Note that
2879
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2880
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2881
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2882
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2883
 
# flat and you're not using automake, define top_builddir and top_srcdir
2884
 
# appropriately in the Makefiles.
 
3649
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
 
3650
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
3651
# DIRECTORY is not provided and an installed libltdl is not found, it is
 
3652
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
 
3653
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
 
3654
# quotes!).  If your package is not flat and you're not using automake,
 
3655
# define top_builddir and top_srcdir appropriately in the Makefiles.
2885
3656
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2886
3657
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2887
3658
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2924
3695
])# _LT_AC_LANG_CXX
2925
3696
 
2926
3697
# _LT_AC_PROG_CXXCPP
2927
 
# ------------------
 
3698
# ---------------
2928
3699
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2929
3700
[
2930
3701
AC_REQUIRE([AC_PROG_CXX])
2973
3744
 
2974
3745
 
2975
3746
# AC_LIBTOOL_RC
2976
 
# -------------
 
3747
# --------------
2977
3748
# enable support for Windows resource files
2978
3749
AC_DEFUN([AC_LIBTOOL_RC],
2979
3750
[AC_REQUIRE([LT_AC_PROG_RC])
3010
3781
_LT_COMPILER_BOILERPLATE
3011
3782
_LT_LINKER_BOILERPLATE
3012
3783
 
 
3784
#
 
3785
# Check for any special shared library compilation flags.
 
3786
#
 
3787
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
 
3788
if test "$GCC" = no; then
 
3789
  case $host_os in
 
3790
  sco3.2v5*)
 
3791
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
 
3792
    ;;
 
3793
  esac
 
3794
fi
 
3795
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
 
3796
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
 
3797
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
 
3798
  else
 
3799
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
 
3800
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
 
3801
  fi
 
3802
fi
 
3803
 
 
3804
 
 
3805
#
 
3806
# Check to make sure the static flag actually works.
 
3807
#
 
3808
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
 
3809
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
3810
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
 
3811
  [],
 
3812
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
3813
 
 
3814
 
3013
3815
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3014
3816
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3015
3817
AC_LIBTOOL_PROG_CC_C_O($1)
3018
3820
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3019
3821
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3020
3822
AC_LIBTOOL_SYS_LIB_STRIP
3021
 
AC_LIBTOOL_DLOPEN_SELF
 
3823
AC_LIBTOOL_DLOPEN_SELF($1)
3022
3824
 
3023
 
# Report which library types will actually be built
 
3825
# Report which librarie types wil actually be built
3024
3826
AC_MSG_CHECKING([if libtool supports shared libraries])
3025
3827
AC_MSG_RESULT([$can_build_shared])
3026
3828
 
3029
3831
 
3030
3832
# On AIX, shared libraries and static libraries use the same namespace, and
3031
3833
# are all built from PIC.
3032
 
case $host_os in
 
3834
case "$host_os" in
3033
3835
aix3*)
3034
3836
  test "$enable_shared" = yes && enable_static=no
3035
3837
  if test -n "$RANLIB"; then
3079
3881
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3080
3882
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3081
3883
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3082
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3083
3884
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3084
3885
_LT_AC_TAGVAR(module_cmds, $1)=
3085
3886
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3097
3898
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3098
3899
 
3099
3900
# Source file extension for C++ test sources.
3100
 
ac_ext=cpp
 
3901
ac_ext=cc
3101
3902
 
3102
3903
# Object file extension for compiled C++ test sources.
3103
3904
objext=o
3107
3908
lt_simple_compile_test_code="int some_variable = 0;\n"
3108
3909
 
3109
3910
# Code to be used in simple link tests
3110
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
3911
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3111
3912
 
3112
3913
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3113
3914
_LT_AC_SYS_COMPILER
3126
3927
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3127
3928
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3128
3929
else
3129
 
  $as_unset lt_cv_prog_gnu_ld
 
3930
  unset lt_cv_prog_gnu_ld
3130
3931
fi
3131
3932
if test -n "${lt_cv_path_LDCXX+set}"; then
3132
3933
  lt_cv_path_LD=$lt_cv_path_LDCXX
3133
3934
else
3134
 
  $as_unset lt_cv_path_LD
 
3935
  unset lt_cv_path_LD
3135
3936
fi
3136
3937
test -z "${LDCXX+set}" || LD=$LDCXX
3137
3938
CC=${CXX-"c++"}
3226
4027
            ;;
3227
4028
          esac
3228
4029
        done
3229
 
        ;;
3230
4030
      esac
3231
4031
 
3232
4032
      exp_sym_flag='-bexport'
3264
4064
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3265
4065
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3266
4066
        fi
3267
 
        ;;
3268
4067
      esac
3269
4068
      shared_flag='-shared'
3270
4069
      if test "$aix_use_runtimelinking" = yes; then
3296
4095
      _LT_AC_SYS_LIBPATH_AIX
3297
4096
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3298
4097
 
3299
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
 
4098
      _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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3300
4099
     else
3301
4100
      if test "$host_cpu" = ia64; then
3302
4101
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3303
4102
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3304
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
4103
        _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"
3305
4104
      else
3306
4105
        # Determine the default libpath from the value encoded in an empty executable.
3307
4106
        _LT_AC_SYS_LIBPATH_AIX
3310
4109
        # -berok will link without error, but may produce a broken library.
3311
4110
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3312
4111
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
4112
        # -bexpall does not export symbols beginning with underscore (_)
 
4113
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3313
4114
        # Exported symbols can be pulled into shared objects from archives
3314
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4115
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3315
4116
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3316
 
        # This is similar to how AIX traditionally builds its shared libraries.
3317
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
4117
        # This is similar to how AIX traditionally builds it's shared libraries.
 
4118
        _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'
3318
4119
      fi
3319
4120
    fi
3320
4121
    ;;
3321
 
 
3322
 
  beos*)
3323
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3324
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3325
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3326
 
      # support --undefined.  This deserves some investigation.  FIXME
3327
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3328
 
    else
3329
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3330
 
    fi
3331
 
    ;;
3332
 
 
3333
4122
  chorus*)
3334
4123
    case $cc_basename in
3335
4124
      *)
3339
4128
    esac
3340
4129
    ;;
3341
4130
 
 
4131
 
3342
4132
  cygwin* | mingw* | pw32*)
3343
4133
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3344
4134
    # as there is no search path for DLLs.
3348
4138
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3349
4139
 
3350
4140
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3351
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
4141
      _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'
3352
4142
      # If the export-symbols file already is a .def file (1st line
3353
4143
      # is EXPORTS), use it as is; otherwise, prepend...
3354
4144
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3357
4147
        echo EXPORTS > $output_objdir/$soname.def;
3358
4148
        cat $export_symbols >> $output_objdir/$soname.def;
3359
4149
      fi~
3360
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
4150
      $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'
3361
4151
    else
3362
4152
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3363
4153
    fi
3364
4154
  ;;
3365
4155
      darwin* | rhapsody*)
3366
 
        case $host_os in
 
4156
        case "$host_os" in
3367
4157
        rhapsody* | darwin1.[[012]])
3368
4158
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3369
4159
         ;;
3401
4191
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -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'
3402
4192
        fi
3403
4193
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3404
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4194
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3405
4195
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3406
4196
            _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}'
3407
4197
          else
3414
4204
         output_verbose_link_cmd='echo'
3415
4205
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3416
4206
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3417
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4207
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3418
4208
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3419
4209
          _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}'
3420
4210
          ;;
3494
4284
    ;;
3495
4285
  hpux10*|hpux11*)
3496
4286
    if test $with_gnu_ld = no; then
3497
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3498
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3499
 
 
3500
 
      case $host_cpu in
3501
 
      hppa*64*|ia64*)
 
4287
      case "$host_cpu" in
 
4288
      hppa*64*)
 
4289
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3502
4290
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
4291
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4292
        ;;
 
4293
      ia64*)
 
4294
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3503
4295
        ;;
3504
4296
      *)
 
4297
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4298
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3505
4299
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3506
4300
        ;;
3507
4301
      esac
3508
4302
    fi
3509
 
    case $host_cpu in
3510
 
    hppa*64*|ia64*)
3511
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3512
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4303
    case "$host_cpu" in
 
4304
    hppa*64*)
 
4305
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4306
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4307
      ;;
 
4308
    ia64*)
 
4309
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4310
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4311
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4312
                                              # but as the default
 
4313
                                              # location of the library.
3513
4314
      ;;
3514
4315
    *)
3515
4316
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3525
4326
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3526
4327
        ;;
3527
4328
      aCC*)
3528
 
        case $host_cpu in
3529
 
        hppa*64*)
3530
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3531
 
          ;;
3532
 
        ia64*)
3533
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4329
        case "$host_cpu" in
 
4330
        hppa*64*|ia64*)
 
4331
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3534
4332
          ;;
3535
4333
        *)
3536
4334
          _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'
3549
4347
      *)
3550
4348
        if test "$GXX" = yes; then
3551
4349
          if test $with_gnu_ld = no; then
3552
 
            case $host_cpu in
3553
 
            hppa*64*)
3554
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3555
 
              ;;
3556
 
            ia64*)
3557
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4350
            case "$host_cpu" in
 
4351
            ia64*|hppa*64*)
 
4352
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3558
4353
              ;;
3559
4354
            *)
3560
4355
              _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'
3568
4363
        ;;
3569
4364
    esac
3570
4365
    ;;
3571
 
  interix3*)
3572
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3573
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3574
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3575
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3576
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3577
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
3578
 
    # default) and relocated if they conflict, which is a slow very memory
3579
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
3580
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3581
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3582
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3583
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3584
 
    ;;
3585
4366
  irix5* | irix6*)
3586
4367
    case $cc_basename in
3587
4368
      CC*)
3662
4443
        ;;
3663
4444
      pgCC*)
3664
4445
        # Portland Group C++ compiler
3665
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3666
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
4446
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
4447
        _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'
3667
4448
 
3668
4449
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3669
4450
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3670
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
4451
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3671
4452
        ;;
3672
4453
      cxx*)
3673
4454
        # Compaq C++
3864
4645
    # FIXME: insert proper C++ library support
3865
4646
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3866
4647
    ;;
 
4648
  sco*)
 
4649
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4650
    case $cc_basename in
 
4651
      CC*)
 
4652
        # FIXME: insert proper C++ library support
 
4653
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4654
        ;;
 
4655
      *)
 
4656
        # FIXME: insert proper C++ library support
 
4657
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4658
        ;;
 
4659
    esac
 
4660
    ;;
3867
4661
  sunos4*)
3868
4662
    case $cc_basename in
3869
4663
      CC*)
3886
4680
    case $cc_basename in
3887
4681
      CC*)
3888
4682
        # Sun C++ 4.2, 5.x and Centerline C++
3889
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3890
4683
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3891
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4684
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3892
4685
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3893
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4686
        $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'
3894
4687
 
3895
4688
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3896
4689
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3910
4703
        esac
3911
4704
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3912
4705
 
3913
 
        output_verbose_link_cmd='echo'
 
4706
        # Commands to make compiler produce verbose output that lists
 
4707
        # what "hidden" libraries, object files and flags are used when
 
4708
        # linking a shared library.
 
4709
        #
 
4710
        # There doesn't appear to be a way to prevent this compiler from
 
4711
        # explicitly linking system object files so we need to strip them
 
4712
        # from the output so that they don't get included in the library
 
4713
        # dependencies.
 
4714
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3914
4715
 
3915
4716
        # Archives containing C++ object files must be created using
3916
4717
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3956
4757
        ;;
3957
4758
    esac
3958
4759
    ;;
3959
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3960
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3961
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3962
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3963
 
    runpath_var='LD_RUN_PATH'
3964
 
 
3965
 
    case $cc_basename in
3966
 
      CC*)
3967
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3968
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3969
 
        ;;
3970
 
      *)
3971
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3972
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3973
 
        ;;
3974
 
    esac
3975
 
    ;;
3976
 
  sysv5* | sco3.2v5* | sco5v6*)
3977
 
    # Note: We can NOT use -z defs as we might desire, because we do not
3978
 
    # link with -lc, and that would cause any symbols used from libc to
3979
 
    # always be unresolved, which means just about no library would
3980
 
    # ever link correctly.  If we're not using GNU ld we use -z text
3981
 
    # though, which does catch some bad symbols but isn't as heavy-handed
3982
 
    # as -z defs.
3983
 
    # For security reasons, it is highly recommended that you always
3984
 
    # use absolute paths for naming shared libraries, and exclude the
3985
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
3986
 
    # requires that you compile everything twice, which is a pain.
3987
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
3988
 
    # non-empty value in the environment.  Most likely only useful for
3989
 
    # creating official distributions of packages.
3990
 
    # This is a hack until libtool officially supports absolute path
3991
 
    # names for shared libraries.
3992
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3993
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3994
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3995
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3996
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3997
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3998
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3999
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4000
 
    runpath_var='LD_RUN_PATH'
4001
 
 
4002
 
    case $cc_basename in
4003
 
      CC*)
4004
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4005
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4006
 
        ;;
4007
 
      *)
4008
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4009
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4010
 
        ;;
4011
 
    esac
 
4760
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
 
4761
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4012
4762
    ;;
4013
4763
  tandem*)
4014
4764
    case $cc_basename in
4045
4795
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4046
4796
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4047
4797
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4798
AC_LIBTOOL_SYS_LIB_STRIP
 
4799
AC_LIBTOOL_DLOPEN_SELF($1)
4048
4800
 
4049
4801
AC_LIBTOOL_CONFIG($1)
4050
4802
 
4062
4814
])# AC_LIBTOOL_LANG_CXX_CONFIG
4063
4815
 
4064
4816
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4065
 
# ------------------------------------
 
4817
# ------------------------
4066
4818
# Figure out "hidden" library dependencies from verbose
4067
4819
# compiler output when linking a shared library.
4068
4820
# Parse the compiler output and extract the necessary
4116
4868
  # The `*' in the case matches for architectures that use `case' in
4117
4869
  # $output_verbose_cmd can trigger glob expansion during the loop
4118
4870
  # eval without this substitution.
4119
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
4871
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4120
4872
 
4121
4873
  for p in `eval $output_verbose_link_cmd`; do
4122
4874
    case $p in
4192
4944
 
4193
4945
$rm -f confest.$objext
4194
4946
 
4195
 
# PORTME: override above test on systems where it is broken
4196
 
ifelse([$1],[CXX],
4197
 
[case $host_os in
4198
 
interix3*)
4199
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4200
 
  # hack all around it, let's just trust "g++" to DTRT.
4201
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4202
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4203
 
  _LT_AC_TAGVAR(postdeps,$1)=
4204
 
  ;;
4205
 
 
4206
 
solaris*)
4207
 
  case $cc_basename in
4208
 
  CC*)
4209
 
    # Adding this requires a known-good setup of shared libraries for
4210
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4211
 
    # archive will be linked into the output, leading to subtle bugs.
4212
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4213
 
    ;;
4214
 
  esac
4215
 
  ;;
4216
 
esac
4217
 
])
4218
 
 
4219
4947
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4220
4948
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4221
4949
esac
4222
4950
])# AC_LIBTOOL_POSTDEP_PREDEP
4223
4951
 
4224
4952
# AC_LIBTOOL_LANG_F77_CONFIG
4225
 
# --------------------------
 
4953
# ------------------------
4226
4954
# Ensure that the configuration vars for the C compiler are
4227
4955
# suitably defined.  Those variables are subsequently used by
4228
4956
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4285
5013
 
4286
5014
# On AIX, shared libraries and static libraries use the same namespace, and
4287
5015
# are all built from PIC.
4288
 
case $host_os in
 
5016
case "$host_os" in
4289
5017
aix3*)
4290
5018
  test "$enable_shared" = yes && enable_static=no
4291
5019
  if test -n "$RANLIB"; then
4306
5034
test "$enable_shared" = yes || enable_static=yes
4307
5035
AC_MSG_RESULT([$enable_static])
4308
5036
 
 
5037
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5038
 
4309
5039
_LT_AC_TAGVAR(GCC, $1)="$G77"
4310
5040
_LT_AC_TAGVAR(LD, $1)="$LD"
4311
5041
 
4315
5045
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4316
5046
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4317
5047
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5048
AC_LIBTOOL_SYS_LIB_STRIP
 
5049
 
4318
5050
 
4319
5051
AC_LIBTOOL_CONFIG($1)
4320
5052
 
4371
5103
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4372
5104
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4373
5105
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5106
AC_LIBTOOL_SYS_LIB_STRIP
 
5107
AC_LIBTOOL_DLOPEN_SELF($1)
4374
5108
 
4375
5109
AC_LIBTOOL_CONFIG($1)
4376
5110
 
4380
5114
 
4381
5115
 
4382
5116
# AC_LIBTOOL_LANG_RC_CONFIG
4383
 
# -------------------------
 
5117
# --------------------------
4384
5118
# Ensure that the configuration vars for the Windows resource compiler are
4385
5119
# suitably defined.  Those variables are subsequently used by
4386
5120
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4443
5177
  # Now quote all the things that may contain metacharacters while being
4444
5178
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4445
5179
  # variables and quote the copies for generation of the libtool script.
4446
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
5180
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4447
5181
    SED SHELL STRIP \
4448
5182
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4449
5183
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4612
5346
# A C compiler.
4613
5347
LTCC=$lt_LTCC
4614
5348
 
4615
 
# LTCC compiler flags.
4616
 
LTCFLAGS=$lt_LTCFLAGS
4617
 
 
4618
5349
# A language-specific compiler.
4619
5350
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4620
5351
 
4988
5719
osf*)
4989
5720
  symcode='[[BCDEGQRST]]'
4990
5721
  ;;
4991
 
solaris*)
 
5722
solaris* | sysv5*)
4992
5723
  symcode='[[BDRT]]'
4993
5724
  ;;
4994
 
sco3.2v5*)
4995
 
  symcode='[[DT]]'
4996
 
  ;;
4997
 
sysv4.2uw2*)
4998
 
  symcode='[[DT]]'
4999
 
  ;;
5000
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5001
 
  symcode='[[ABDT]]'
5002
 
  ;;
5003
5725
sysv4)
5004
5726
  symcode='[[DFNSTU]]'
5005
5727
  ;;
5182
5904
      # DJGPP does not support shared libraries at all
5183
5905
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5184
5906
      ;;
5185
 
    interix3*)
5186
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5187
 
      # Instead, we relocate shared libraries at runtime.
5188
 
      ;;
5189
5907
    sysv4*MP*)
5190
5908
      if test -d /usr/nec; then
5191
5909
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5194
5912
    hpux*)
5195
5913
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5196
5914
      # not for PA HP-UX.
5197
 
      case $host_cpu in
 
5915
      case "$host_cpu" in
5198
5916
      hppa*64*|ia64*)
5199
5917
        ;;
5200
5918
      *)
5255
5973
        case $cc_basename in
5256
5974
          CC*)
5257
5975
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5258
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5976
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5259
5977
            if test "$host_cpu" != ia64; then
5260
5978
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5261
5979
            fi
5262
5980
            ;;
5263
5981
          aCC*)
5264
5982
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5265
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5266
 
            case $host_cpu in
 
5983
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5984
            case "$host_cpu" in
5267
5985
            hppa*64*|ia64*)
5268
5986
              # +Z the default
5269
5987
              ;;
5276
5994
            ;;
5277
5995
        esac
5278
5996
        ;;
5279
 
      interix*)
5280
 
        # This is c89, which is MS Visual C++ (no shared libs)
5281
 
        # Anyone wants to do a port?
5282
 
        ;;
5283
5997
      irix5* | irix6* | nonstopux*)
5284
5998
        case $cc_basename in
5285
5999
          CC*)
5308
6022
            # Portland Group C++ compiler.
5309
6023
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5310
6024
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5311
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6025
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5312
6026
            ;;
5313
6027
          cxx*)
5314
6028
            # Compaq C++
5359
6073
        ;;
5360
6074
      psos*)
5361
6075
        ;;
 
6076
      sco*)
 
6077
        case $cc_basename in
 
6078
          CC*)
 
6079
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6080
            ;;
 
6081
          *)
 
6082
            ;;
 
6083
        esac
 
6084
        ;;
5362
6085
      solaris*)
5363
6086
        case $cc_basename in
5364
6087
          CC*)
5400
6123
            ;;
5401
6124
        esac
5402
6125
        ;;
5403
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5404
 
        case $cc_basename in
5405
 
          CC*)
5406
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5407
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5408
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5409
 
            ;;
5410
 
        esac
 
6126
      unixware*)
5411
6127
        ;;
5412
6128
      vxworks*)
5413
6129
        ;;
5454
6170
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5455
6171
      ;;
5456
6172
 
5457
 
    interix3*)
5458
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5459
 
      # Instead, we relocate shared libraries at runtime.
5460
 
      ;;
5461
 
 
5462
6173
    msdosdjgpp*)
5463
6174
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5464
6175
      # on systems that don't support them.
5475
6186
    hpux*)
5476
6187
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5477
6188
      # not for PA HP-UX.
5478
 
      case $host_cpu in
 
6189
      case "$host_cpu" in
5479
6190
      hppa*64*|ia64*)
5480
6191
        # +Z the default
5481
6192
        ;;
5522
6233
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5523
6234
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5524
6235
      # not for PA HP-UX.
5525
 
      case $host_cpu in
 
6236
      case "$host_cpu" in
5526
6237
      hppa*64*|ia64*)
5527
6238
        # +Z the default
5528
6239
        ;;
5552
6263
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5553
6264
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5554
6265
        ;;
5555
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6266
      pgcc* | pgf77* | pgf90*)
5556
6267
        # Portland Group compilers (*not* the Pentium gcc compiler,
5557
6268
        # which looks to be a dead project)
5558
6269
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5559
6270
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5560
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6271
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5561
6272
        ;;
5562
6273
      ccc*)
5563
6274
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5573
6284
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5574
6285
      ;;
5575
6286
 
 
6287
    sco3.2v5*)
 
6288
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
 
6289
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
6290
      ;;
 
6291
 
5576
6292
    solaris*)
5577
6293
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5578
6294
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5590
6306
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5591
6307
      ;;
5592
6308
 
5593
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6309
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5594
6310
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5595
6311
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5596
6312
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5603
6319
      fi
5604
6320
      ;;
5605
6321
 
5606
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5607
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5608
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5609
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5610
 
      ;;
5611
 
 
5612
6322
    unicos*)
5613
6323
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5614
6324
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5641
6351
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5642
6352
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5643
6353
fi
5644
 
case $host_os in
 
6354
case "$host_os" in
5645
6355
  # For platforms which do not support PIC, -DPIC is meaningless:
5646
6356
  *djgpp*)
5647
6357
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5650
6360
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5651
6361
    ;;
5652
6362
esac
5653
 
 
5654
 
#
5655
 
# Check to make sure the static flag actually works.
5656
 
#
5657
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5658
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5659
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5660
 
  $lt_tmp_static_flag,
5661
 
  [],
5662
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5663
6363
])
5664
6364
 
5665
6365
 
5738
6438
      with_gnu_ld=no
5739
6439
    fi
5740
6440
    ;;
5741
 
  interix*)
5742
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
5743
 
    with_gnu_ld=yes
5744
 
    ;;
5745
6441
  openbsd*)
5746
6442
    with_gnu_ld=no
5747
6443
    ;;
5751
6447
  if test "$with_gnu_ld" = yes; then
5752
6448
    # If archive_cmds runs LD, not CC, wlarc should be empty
5753
6449
    wlarc='${wl}'
5754
 
 
 
6450
    
5755
6451
    # Set some defaults for GNU ld with shared library support. These
5756
6452
    # are reset later if shared libraries are not supported. Putting them
5757
6453
    # here allows them to be overridden if necessary.
5772
6468
      *\ 2.11.*) ;; # other 2.11 versions
5773
6469
      *) supports_anon_versioning=yes ;;
5774
6470
    esac
5775
 
 
 
6471
    
5776
6472
    # See if GNU ld supports shared libraries.
5777
6473
    case $host_os in
5778
6474
    aix3* | aix4* | aix5*)
5826
6522
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5827
6523
 
5828
6524
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5829
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6525
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5830
6526
        # If the export-symbols file already is a .def file (1st line
5831
6527
        # is EXPORTS), use it as is; otherwise, prepend...
5832
6528
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5835
6531
          echo EXPORTS > $output_objdir/$soname.def;
5836
6532
          cat $export_symbols >> $output_objdir/$soname.def;
5837
6533
        fi~
5838
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6534
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
5839
6535
      else
5840
6536
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5841
6537
      fi
5842
6538
      ;;
5843
6539
 
5844
 
    interix3*)
5845
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5846
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5847
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5848
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5849
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5850
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5851
 
      # default) and relocated if they conflict, which is a slow very memory
5852
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
5853
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5854
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5855
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5856
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5857
 
      ;;
5858
 
 
5859
6540
    linux*)
5860
6541
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5861
6542
        tmp_addflag=
5862
6543
        case $cc_basename,$host_cpu in
5863
6544
        pgcc*)                          # Portland Group C compiler
5864
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5865
 
          tmp_addflag=' $pic_flag'
 
6545
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5866
6546
          ;;
5867
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5868
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5869
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6547
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
 
6548
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6549
          tmp_addflag=' -fpic -Mnomain' ;;
5870
6550
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
5871
6551
          tmp_addflag=' -i_dynamic' ;;
5872
6552
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5897
6577
      fi
5898
6578
      ;;
5899
6579
 
5900
 
    solaris*)
 
6580
    solaris* | sysv5*)
5901
6581
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5902
6582
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5903
6583
        cat <<EOF 1>&2
5918
6598
      fi
5919
6599
      ;;
5920
6600
 
5921
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5922
 
      case `$LD -v 2>&1` in
5923
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
5924
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5925
 
        cat <<_LT_EOF 1>&2
5926
 
 
5927
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5928
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
5929
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
5930
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5931
 
*** your PATH or compiler configuration so that the native linker is
5932
 
*** used, and then restart.
5933
 
 
5934
 
_LT_EOF
5935
 
        ;;
5936
 
        *)
5937
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5938
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5939
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5940
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5941
 
          else
5942
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
5943
 
          fi
5944
 
        ;;
5945
 
      esac
5946
 
      ;;
5947
 
 
5948
6601
    sunos4*)
5949
6602
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5950
6603
      wlarc=
5978
6631
      # Note: this linker hardcodes the directories in LIBPATH if there
5979
6632
      # are no directories specified by -L.
5980
6633
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5981
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
6634
      if test "$GCC" = yes && test -z "$link_static_flag"; then
5982
6635
        # Neither direct hardcoding nor static linking is supported with a
5983
6636
        # broken collect2.
5984
6637
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6012
6665
            break
6013
6666
          fi
6014
6667
          done
6015
 
          ;;
6016
6668
        esac
6017
6669
 
6018
6670
        exp_sym_flag='-bexport'
6050
6702
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6051
6703
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6052
6704
          fi
6053
 
          ;;
6054
6705
        esac
6055
6706
        shared_flag='-shared'
6056
6707
        if test "$aix_use_runtimelinking" = yes; then
6063
6714
        # chokes on -Wl,-G. The following line is correct:
6064
6715
          shared_flag='-G'
6065
6716
        else
6066
 
          if test "$aix_use_runtimelinking" = yes; then
 
6717
        if test "$aix_use_runtimelinking" = yes; then
6067
6718
            shared_flag='${wl}-G'
6068
6719
          else
6069
6720
            shared_flag='${wl}-bM:SRE'
6070
 
          fi
 
6721
        fi
6071
6722
        fi
6072
6723
      fi
6073
6724
 
6081
6732
       # Determine the default libpath from the value encoded in an empty executable.
6082
6733
       _LT_AC_SYS_LIBPATH_AIX
6083
6734
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6084
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $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"
 
6735
        _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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6085
6736
       else
6086
6737
        if test "$host_cpu" = ia64; then
6087
6738
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6088
6739
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6089
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
6740
          _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"
6090
6741
        else
6091
6742
         # Determine the default libpath from the value encoded in an empty executable.
6092
6743
         _LT_AC_SYS_LIBPATH_AIX
6095
6746
          # -berok will link without error, but may produce a broken library.
6096
6747
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6097
6748
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6749
          # -bexpall does not export symbols beginning with underscore (_)
 
6750
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6098
6751
          # Exported symbols can be pulled into shared objects from archives
6099
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6752
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6100
6753
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6101
 
          # This is similar to how AIX traditionally builds its shared libraries.
6102
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6754
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6755
          _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'
6103
6756
        fi
6104
6757
      fi
6105
6758
      ;;
6138
6791
      ;;
6139
6792
 
6140
6793
    darwin* | rhapsody*)
6141
 
      case $host_os in
 
6794
      case "$host_os" in
6142
6795
        rhapsody* | darwin1.[[012]])
6143
6796
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6144
6797
         ;;
6167
6820
        output_verbose_link_cmd='echo'
6168
6821
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6169
6822
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6170
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6823
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6171
6824
      _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}'
6172
6825
      _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}'
6173
6826
    else
6176
6829
         output_verbose_link_cmd='echo'
6177
6830
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6178
6831
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6179
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6832
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6180
6833
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6181
6834
          _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}'
6182
6835
          ;;
6240
6893
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6241
6894
      ;;
6242
6895
 
6243
 
    hpux10*)
6244
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6245
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6246
 
      else
6247
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6248
 
      fi
6249
 
      if test "$with_gnu_ld" = no; then
6250
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6251
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6252
 
 
6253
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6254
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6255
 
 
6256
 
        # hardcode_minus_L: Not really in the search PATH,
6257
 
        # but as the default location of the library.
6258
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6259
 
      fi
6260
 
      ;;
6261
 
 
6262
 
    hpux11*)
6263
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6264
 
        case $host_cpu in
6265
 
        hppa*64*)
 
6896
    hpux10* | hpux11*)
 
6897
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6898
        case "$host_cpu" in
 
6899
        hppa*64*|ia64*)
6266
6900
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6267
6901
          ;;
6268
 
        ia64*)
6269
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6270
 
          ;;
6271
6902
        *)
6272
6903
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6273
6904
          ;;
6274
6905
        esac
6275
6906
      else
6276
 
        case $host_cpu in
6277
 
        hppa*64*)
6278
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6279
 
          ;;
6280
 
        ia64*)
6281
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6907
        case "$host_cpu" in
 
6908
        hppa*64*|ia64*)
 
6909
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6282
6910
          ;;
6283
6911
        *)
6284
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6912
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6285
6913
          ;;
6286
6914
        esac
6287
6915
      fi
6288
6916
      if test "$with_gnu_ld" = no; then
6289
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6290
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6291
 
 
6292
 
        case $host_cpu in
6293
 
        hppa*64*|ia64*)
 
6917
        case "$host_cpu" in
 
6918
        hppa*64*)
 
6919
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6294
6920
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6295
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6296
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6921
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6922
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6923
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6924
          ;;
 
6925
        ia64*)
 
6926
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6927
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6928
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6929
 
 
6930
          # hardcode_minus_L: Not really in the search PATH,
 
6931
          # but as the default location of the library.
 
6932
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6297
6933
          ;;
6298
6934
        *)
 
6935
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6936
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6299
6937
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6300
6938
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6301
6939
 
6397
7035
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6398
7036
      ;;
6399
7037
 
 
7038
    sco3.2v5*)
 
7039
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7040
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7041
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7042
      runpath_var=LD_RUN_PATH
 
7043
      hardcode_runpath_var=yes
 
7044
      ;;
 
7045
 
6400
7046
    solaris*)
6401
7047
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6402
7048
      if test "$GCC" = yes; then
6482
7128
      fi
6483
7129
      ;;
6484
7130
 
6485
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6486
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6487
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6488
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6489
 
      runpath_var='LD_RUN_PATH'
6490
 
 
6491
 
      if test "$GCC" = yes; then
6492
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6493
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6494
 
      else
6495
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6496
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6497
 
      fi
6498
 
      ;;
6499
 
 
6500
 
    sysv5* | sco3.2v5* | sco5v6*)
6501
 
      # Note: We can NOT use -z defs as we might desire, because we do not
6502
 
      # link with -lc, and that would cause any symbols used from libc to
6503
 
      # always be unresolved, which means just about no library would
6504
 
      # ever link correctly.  If we're not using GNU ld we use -z text
6505
 
      # though, which does catch some bad symbols but isn't as heavy-handed
6506
 
      # as -z defs.
6507
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6508
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6509
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6510
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6511
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6512
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6513
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6514
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6515
 
      runpath_var='LD_RUN_PATH'
6516
 
 
6517
 
      if test "$GCC" = yes; then
6518
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6519
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6520
 
      else
6521
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6522
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6523
 
      fi
 
7131
    sysv4.2uw2*)
 
7132
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7133
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7134
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
7135
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7136
      hardcode_runpath_var=yes
 
7137
      runpath_var=LD_RUN_PATH
 
7138
      ;;
 
7139
 
 
7140
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
 
7141
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
 
7142
      if test "$GCC" = yes; then
 
7143
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7144
      else
 
7145
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7146
      fi
 
7147
      runpath_var='LD_RUN_PATH'
 
7148
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7149
      ;;
 
7150
 
 
7151
    sysv5*)
 
7152
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
7153
      # $CC -shared without GNU ld will not create a library from C++
 
7154
      # object files and a static libstdc++, better avoid it by now
 
7155
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7156
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7157
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7158
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7159
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7160
      runpath_var='LD_RUN_PATH'
6524
7161
      ;;
6525
7162
 
6526
7163
    uts4*)
6538
7175
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6539
7176
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6540
7177
 
 
7178
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7179
if test "$GCC" = yes; then
 
7180
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7181
fi
 
7182
 
6541
7183
#
6542
7184
# Do we need to explicitly link libc?
6543
7185
#
6565
7207
        libobjs=conftest.$ac_objext
6566
7208
        deplibs=
6567
7209
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6568
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6569
7210
        compiler_flags=-v
6570
7211
        linker_flags=-v
6571
7212
        verstring=
6721
7362
AC_MSG_RESULT([$SED])
6722
7363
])
6723
7364
 
6724
 
# Do all the work for Automake.                            -*- Autoconf -*-
6725
 
 
6726
 
# This macro actually does too much some checks are only needed if
6727
 
# your package does certain things.  But this isn't really a big deal.
6728
 
 
6729
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6730
 
# Free Software Foundation, Inc.
6731
 
 
6732
 
# This program is free software; you can redistribute it and/or modify
6733
 
# it under the terms of the GNU General Public License as published by
6734
 
# the Free Software Foundation; either version 2, or (at your option)
6735
 
# any later version.
6736
 
 
6737
 
# This program is distributed in the hope that it will be useful,
6738
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6739
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6740
 
# GNU General Public License for more details.
6741
 
 
6742
 
# You should have received a copy of the GNU General Public License
6743
 
# along with this program; if not, write to the Free Software
6744
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6745
 
# 02111-1307, USA.
6746
 
 
6747
 
# serial 10
6748
 
 
6749
 
AC_PREREQ([2.54])
6750
 
 
6751
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
6752
 
# the ones we care about.
6753
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6754
 
 
6755
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6756
 
# AM_INIT_AUTOMAKE([OPTIONS])
6757
 
# -----------------------------------------------
6758
 
# The call with PACKAGE and VERSION arguments is the old style
6759
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
6760
 
# and VERSION should now be passed to AC_INIT and removed from
6761
 
# the call to AM_INIT_AUTOMAKE.
6762
 
# We support both call styles for the transition.  After
6763
 
# the next Automake release, Autoconf can make the AC_INIT
6764
 
# arguments mandatory, and then we can depend on a new Autoconf
6765
 
# release and drop the old call support.
6766
 
AC_DEFUN([AM_INIT_AUTOMAKE],
6767
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6768
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
6769
 
# test to see if srcdir already configured
6770
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6771
 
   test -f $srcdir/config.status; then
6772
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6773
 
fi
6774
 
 
6775
 
# test whether we have cygpath
6776
 
if test -z "$CYGPATH_W"; then
6777
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
6778
 
    CYGPATH_W='cygpath -w'
6779
 
  else
6780
 
    CYGPATH_W=echo
6781
 
  fi
6782
 
fi
6783
 
AC_SUBST([CYGPATH_W])
6784
 
 
6785
 
# Define the identity of the package.
6786
 
dnl Distinguish between old-style and new-style calls.
6787
 
m4_ifval([$2],
6788
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6789
 
 AC_SUBST([PACKAGE], [$1])dnl
6790
 
 AC_SUBST([VERSION], [$2])],
6791
 
[_AM_SET_OPTIONS([$1])dnl
6792
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6793
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6794
 
 
6795
 
_AM_IF_OPTION([no-define],,
6796
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6797
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6798
 
 
6799
 
# Some tools Automake needs.
6800
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
6801
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
6802
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6803
 
AM_MISSING_PROG(AUTOCONF, autoconf)
6804
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6805
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
6806
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
6807
 
AM_MISSING_PROG(AMTAR, tar)
6808
 
AM_PROG_INSTALL_SH
6809
 
AM_PROG_INSTALL_STRIP
6810
 
# We need awk for the "check" target.  The system "awk" is bad on
6811
 
# some platforms.
6812
 
AC_REQUIRE([AC_PROG_AWK])dnl
6813
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6814
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6815
 
 
6816
 
_AM_IF_OPTION([no-dependencies],,
6817
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6818
 
                  [_AM_DEPENDENCIES(CC)],
6819
 
                  [define([AC_PROG_CC],
6820
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6821
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
6822
 
                  [_AM_DEPENDENCIES(CXX)],
6823
 
                  [define([AC_PROG_CXX],
6824
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6825
 
])
6826
 
])
6827
 
 
6828
 
 
6829
 
# When config.status generates a header, we must update the stamp-h file.
6830
 
# This file resides in the same directory as the config header
6831
 
# that is generated.  The stamp files are numbered to have different names.
6832
 
 
6833
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6834
 
# loop where config.status creates the headers, so we can generate
6835
 
# our stamp files there.
6836
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6837
 
[# Compute $1's index in $config_headers.
6838
 
_am_stamp_count=1
6839
 
for _am_header in $config_headers :; do
6840
 
  case $_am_header in
6841
 
    $1 | $1:* )
6842
 
      break ;;
6843
 
    * )
6844
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6845
 
  esac
6846
 
done
6847
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6848
 
 
6849
 
# Copyright 2002  Free Software Foundation, Inc.
6850
 
 
6851
 
# This program is free software; you can redistribute it and/or modify
6852
 
# it under the terms of the GNU General Public License as published by
6853
 
# the Free Software Foundation; either version 2, or (at your option)
6854
 
# any later version.
6855
 
 
6856
 
# This program is distributed in the hope that it will be useful,
6857
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6858
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6859
 
# GNU General Public License for more details.
6860
 
 
6861
 
# You should have received a copy of the GNU General Public License
6862
 
# along with this program; if not, write to the Free Software
6863
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
7365
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
7366
 
7367
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
7368
#
 
7369
# This program is free software; you can redistribute it and/or modify
 
7370
# it under the terms of the GNU General Public License as published by
 
7371
# the Free Software Foundation; either version 2 of the License, or
 
7372
# (at your option) any later version.
 
7373
#
 
7374
# This program is distributed in the hope that it will be useful, but
 
7375
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7376
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7377
# General Public License for more details.
 
7378
#
 
7379
# You should have received a copy of the GNU General Public License
 
7380
# along with this program; if not, write to the Free Software
 
7381
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7382
#
 
7383
# As a special exception to the GNU General Public License, if you
 
7384
# distribute this file as part of a program that contains a
 
7385
# configuration script generated by Autoconf, you may include it under
 
7386
# the same distribution terms that you use for the rest of that program.
 
7387
 
 
7388
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
7389
# ----------------------------------
 
7390
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
7391
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
7392
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
7393
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
7394
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
7395
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
7396
fi
 
7397
if test -n "$PKG_CONFIG"; then
 
7398
        _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
 
7399
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
7400
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
7401
                AC_MSG_RESULT([yes])
 
7402
        else
 
7403
                AC_MSG_RESULT([no])
 
7404
                PKG_CONFIG=""
 
7405
        fi
 
7406
                
 
7407
fi[]dnl
 
7408
])# PKG_PROG_PKG_CONFIG
 
7409
 
 
7410
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
7411
# ---------------------------------------------
 
7412
m4_define([_PKG_CONFIG],
 
7413
[if test "x$ac_cv_env_[]$1[]_set" = "xset"; then
 
7414
        pkg_cv_[]$1=$ac_cv_env_[]$1[]_value
 
7415
elif test -n "$PKG_CONFIG"; then
 
7416
        if AC_RUN_LOG([$PKG_CONFIG --exists "$3" >/dev/null 2>&1]); then
 
7417
                pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
7418
        else
 
7419
                pkg_failed=yes
 
7420
        fi
 
7421
else
 
7422
        pkg_failed=untried
 
7423
fi[]dnl
 
7424
])# _PKG_CONFIG
 
7425
 
 
7426
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
7427
# [ACTION-IF-NOT-FOUND])
 
7428
#
 
7429
#
 
7430
# Note that if there is a possibility the first call to
 
7431
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
7432
# explicit call to PKG_PROG_PKG_CONFIG in your configure.in
 
7433
#
 
7434
#
 
7435
# --------------------------------------------------------------
 
7436
AC_DEFUN([PKG_CHECK_MODULES],
 
7437
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
7438
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
7439
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
7440
 
 
7441
pkg_failed=no
 
7442
AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS],
 
7443
        [_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])])
 
7444
AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS],
 
7445
        [_PKG_CONFIG([$1][_LIBS], [libs], [$2])])
 
7446
 
 
7447
if test $pkg_failed = yes; then
 
7448
        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
7449
        # Put the nasty error message in config.log where it belongs
 
7450
        echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
 
7451
 
 
7452
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
7453
[Package requirements ($2) were not met.
 
7454
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
7455
installed software in a non-standard prefix.
 
7456
 
 
7457
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
 
7458
to avoid the need to call pkg-config.  See the pkg-config man page for
 
7459
more details.])],
 
7460
                [$4])
 
7461
elif test $pkg_failed = untried; then
 
7462
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
7463
[The pkg-config script could not be found or is too old.  Make sure it
 
7464
is in your PATH or set the PKG_CONFIG environment variable to the full
 
7465
path to pkg-config.
 
7466
 
 
7467
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
 
7468
to avoid the need to call pkg-config.  See the pkg-config man page for
 
7469
more details.
 
7470
 
 
7471
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
7472
                [$4])
 
7473
else
 
7474
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
7475
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
7476
        ifelse([$3], , :, [$3])
 
7477
fi[]dnl
 
7478
])# PKG_CHECK_MODULES
 
7479
 
 
7480
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
7481
#
 
7482
# This file is free software; the Free Software Foundation
 
7483
# gives unlimited permission to copy and/or distribute it,
 
7484
# with or without modifications, as long as this notice is preserved.
6864
7485
 
6865
7486
# AM_AUTOMAKE_VERSION(VERSION)
6866
7487
# ----------------------------
6867
7488
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6868
7489
# generated from the m4 files accompanying Automake X.Y.
6869
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
 
7490
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6870
7491
 
6871
7492
# AM_SET_CURRENT_AUTOMAKE_VERSION
6872
7493
# -------------------------------
6873
7494
# Call AM_AUTOMAKE_VERSION so it can be traced.
6874
7495
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6875
7496
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6876
 
         [AM_AUTOMAKE_VERSION([1.7.9])])
6877
 
 
6878
 
# Helper functions for option handling.                    -*- Autoconf -*-
6879
 
 
6880
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
6881
 
 
6882
 
# This program is free software; you can redistribute it and/or modify
6883
 
# it under the terms of the GNU General Public License as published by
6884
 
# the Free Software Foundation; either version 2, or (at your option)
6885
 
# any later version.
6886
 
 
6887
 
# This program is distributed in the hope that it will be useful,
6888
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6889
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6890
 
# GNU General Public License for more details.
6891
 
 
6892
 
# You should have received a copy of the GNU General Public License
6893
 
# along with this program; if not, write to the Free Software
6894
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6895
 
# 02111-1307, USA.
6896
 
 
6897
 
# serial 2
6898
 
 
6899
 
# _AM_MANGLE_OPTION(NAME)
6900
 
# -----------------------
6901
 
AC_DEFUN([_AM_MANGLE_OPTION],
6902
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
6903
 
 
6904
 
# _AM_SET_OPTION(NAME)
6905
 
# ------------------------------
6906
 
# Set option NAME.  Presently that only means defining a flag for this option.
6907
 
AC_DEFUN([_AM_SET_OPTION],
6908
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
6909
 
 
6910
 
# _AM_SET_OPTIONS(OPTIONS)
6911
 
# ----------------------------------
6912
 
# OPTIONS is a space-separated list of Automake options.
6913
 
AC_DEFUN([_AM_SET_OPTIONS],
6914
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
6915
 
 
6916
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
6917
 
# -------------------------------------------
6918
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
6919
 
AC_DEFUN([_AM_IF_OPTION],
6920
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6921
 
 
6922
 
#
6923
 
# Check to make sure that the build environment is sane.
6924
 
#
6925
 
 
6926
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
6927
 
 
6928
 
# This program is free software; you can redistribute it and/or modify
6929
 
# it under the terms of the GNU General Public License as published by
6930
 
# the Free Software Foundation; either version 2, or (at your option)
6931
 
# any later version.
6932
 
 
6933
 
# This program is distributed in the hope that it will be useful,
6934
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6935
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6936
 
# GNU General Public License for more details.
6937
 
 
6938
 
# You should have received a copy of the GNU General Public License
6939
 
# along with this program; if not, write to the Free Software
6940
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6941
 
# 02111-1307, USA.
6942
 
 
6943
 
# serial 3
6944
 
 
6945
 
# AM_SANITY_CHECK
6946
 
# ---------------
6947
 
AC_DEFUN([AM_SANITY_CHECK],
6948
 
[AC_MSG_CHECKING([whether build environment is sane])
6949
 
# Just in case
6950
 
sleep 1
6951
 
echo timestamp > conftest.file
6952
 
# Do `set' in a subshell so we don't clobber the current shell's
6953
 
# arguments.  Must try -L first in case configure is actually a
6954
 
# symlink; some systems play weird games with the mod time of symlinks
6955
 
# (eg FreeBSD returns the mod time of the symlink's containing
6956
 
# directory).
6957
 
if (
6958
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6959
 
   if test "$[*]" = "X"; then
6960
 
      # -L didn't work.
6961
 
      set X `ls -t $srcdir/configure conftest.file`
6962
 
   fi
6963
 
   rm -f conftest.file
6964
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
6965
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
6966
 
 
6967
 
      # If neither matched, then we have a broken ls.  This can happen
6968
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
6969
 
      # broken ls alias from the environment.  This has actually
6970
 
      # happened.  Such a system could not be considered "sane".
6971
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
6972
 
alias in your environment])
6973
 
   fi
6974
 
 
6975
 
   test "$[2]" = conftest.file
6976
 
   )
6977
 
then
6978
 
   # Ok.
6979
 
   :
6980
 
else
6981
 
   AC_MSG_ERROR([newly created file is older than distributed files!
6982
 
Check your system clock])
6983
 
fi
6984
 
AC_MSG_RESULT(yes)])
6985
 
 
6986
 
#  -*- Autoconf -*-
6987
 
 
6988
 
 
6989
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
6990
 
 
6991
 
# This program is free software; you can redistribute it and/or modify
6992
 
# it under the terms of the GNU General Public License as published by
6993
 
# the Free Software Foundation; either version 2, or (at your option)
6994
 
# any later version.
6995
 
 
6996
 
# This program is distributed in the hope that it will be useful,
6997
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6998
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6999
 
# GNU General Public License for more details.
7000
 
 
7001
 
# You should have received a copy of the GNU General Public License
7002
 
# along with this program; if not, write to the Free Software
7003
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7004
 
# 02111-1307, USA.
7005
 
 
7006
 
# serial 3
7007
 
 
7008
 
# AM_MISSING_PROG(NAME, PROGRAM)
7009
 
# ------------------------------
7010
 
AC_DEFUN([AM_MISSING_PROG],
7011
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
7012
 
$1=${$1-"${am_missing_run}$2"}
7013
 
AC_SUBST($1)])
7014
 
 
7015
 
 
7016
 
# AM_MISSING_HAS_RUN
7017
 
# ------------------
7018
 
# Define MISSING if not defined so far and test if it supports --run.
7019
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
7020
 
AC_DEFUN([AM_MISSING_HAS_RUN],
7021
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7022
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7023
 
# Use eval to expand $SHELL
7024
 
if eval "$MISSING --run true"; then
7025
 
  am_missing_run="$MISSING --run "
7026
 
else
7027
 
  am_missing_run=
7028
 
  AC_MSG_WARN([`missing' script is too old or missing])
7029
 
fi
7030
 
])
7031
 
 
7032
 
# AM_AUX_DIR_EXPAND
7033
 
 
7034
 
# Copyright 2001 Free Software Foundation, Inc.
7035
 
 
7036
 
# This program is free software; you can redistribute it and/or modify
7037
 
# it under the terms of the GNU General Public License as published by
7038
 
# the Free Software Foundation; either version 2, or (at your option)
7039
 
# any later version.
7040
 
 
7041
 
# This program is distributed in the hope that it will be useful,
7042
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7043
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7044
 
# GNU General Public License for more details.
7045
 
 
7046
 
# You should have received a copy of the GNU General Public License
7047
 
# along with this program; if not, write to the Free Software
7048
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7049
 
# 02111-1307, USA.
 
7497
         [AM_AUTOMAKE_VERSION([1.9.5])])
 
7498
 
 
7499
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
7500
 
 
7501
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7502
#
 
7503
# This file is free software; the Free Software Foundation
 
7504
# gives unlimited permission to copy and/or distribute it,
 
7505
# with or without modifications, as long as this notice is preserved.
7050
7506
 
7051
7507
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7052
7508
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
7086
7542
# absolute PATH.  The drawback is that using absolute paths prevent a
7087
7543
# configured tree to be moved without reconfiguration.
7088
7544
 
7089
 
# Rely on autoconf to set up CDPATH properly.
7090
 
AC_PREREQ([2.50])
7091
 
 
7092
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
 
7545
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
7546
[dnl Rely on autoconf to set up CDPATH properly.
 
7547
AC_PREREQ([2.50])dnl
7093
7548
# expand $ac_aux_dir to an absolute path
7094
7549
am_aux_dir=`cd $ac_aux_dir && pwd`
7095
7550
])
7096
7551
 
7097
 
# AM_PROG_INSTALL_SH
7098
 
# ------------------
7099
 
# Define $install_sh.
7100
 
 
7101
 
# Copyright 2001 Free Software Foundation, Inc.
7102
 
 
7103
 
# This program is free software; you can redistribute it and/or modify
7104
 
# it under the terms of the GNU General Public License as published by
7105
 
# the Free Software Foundation; either version 2, or (at your option)
7106
 
# any later version.
7107
 
 
7108
 
# This program is distributed in the hope that it will be useful,
7109
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7110
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7111
 
# GNU General Public License for more details.
7112
 
 
7113
 
# You should have received a copy of the GNU General Public License
7114
 
# along with this program; if not, write to the Free Software
7115
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7116
 
# 02111-1307, USA.
7117
 
 
7118
 
AC_DEFUN([AM_PROG_INSTALL_SH],
7119
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7120
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7121
 
AC_SUBST(install_sh)])
7122
 
 
7123
 
# AM_PROG_INSTALL_STRIP
7124
 
 
7125
 
# Copyright 2001 Free Software Foundation, Inc.
7126
 
 
7127
 
# This program is free software; you can redistribute it and/or modify
7128
 
# it under the terms of the GNU General Public License as published by
7129
 
# the Free Software Foundation; either version 2, or (at your option)
7130
 
# any later version.
7131
 
 
7132
 
# This program is distributed in the hope that it will be useful,
7133
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7134
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7135
 
# GNU General Public License for more details.
7136
 
 
7137
 
# You should have received a copy of the GNU General Public License
7138
 
# along with this program; if not, write to the Free Software
7139
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7140
 
# 02111-1307, USA.
7141
 
 
7142
 
# One issue with vendor `install' (even GNU) is that you can't
7143
 
# specify the program used to strip binaries.  This is especially
7144
 
# annoying in cross-compiling environments, where the build's strip
7145
 
# is unlikely to handle the host's binaries.
7146
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
7147
 
# always use install-sh in `make install-strip', and initialize
7148
 
# STRIPPROG with the value of the STRIP variable (set by the user).
7149
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
7150
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7151
 
# Installed binaries are usually stripped using `strip' when the user
7152
 
# run `make install-strip'.  However `strip' might not be the right
7153
 
# tool to use in cross-compilation environments, therefore Automake
7154
 
# will honor the `STRIP' environment variable to overrule this program.
7155
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7156
 
if test "$cross_compiling" != no; then
7157
 
  AC_CHECK_TOOL([STRIP], [strip], :)
7158
 
fi
7159
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7160
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7161
 
 
7162
 
#                                                          -*- Autoconf -*-
7163
 
# Copyright (C) 2003  Free Software Foundation, Inc.
7164
 
 
7165
 
# This program is free software; you can redistribute it and/or modify
7166
 
# it under the terms of the GNU General Public License as published by
7167
 
# the Free Software Foundation; either version 2, or (at your option)
7168
 
# any later version.
7169
 
 
7170
 
# This program is distributed in the hope that it will be useful,
7171
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7172
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7173
 
# GNU General Public License for more details.
7174
 
 
7175
 
# You should have received a copy of the GNU General Public License
7176
 
# along with this program; if not, write to the Free Software
7177
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7178
 
# 02111-1307, USA.
7179
 
 
7180
 
# serial 1
7181
 
 
7182
 
# Check whether the underlying file-system supports filenames
7183
 
# with a leading dot.  For instance MS-DOS doesn't.
7184
 
AC_DEFUN([AM_SET_LEADING_DOT],
7185
 
[rm -rf .tst 2>/dev/null
7186
 
mkdir .tst 2>/dev/null
7187
 
if test -d .tst; then
7188
 
  am__leading_dot=.
 
7552
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
7553
 
 
7554
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
7555
# Free Software Foundation, Inc.
 
7556
#
 
7557
# This file is free software; the Free Software Foundation
 
7558
# gives unlimited permission to copy and/or distribute it,
 
7559
# with or without modifications, as long as this notice is preserved.
 
7560
 
 
7561
# serial 7
 
7562
 
 
7563
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
7564
# -------------------------------------
 
7565
# Define a conditional.
 
7566
AC_DEFUN([AM_CONDITIONAL],
 
7567
[AC_PREREQ(2.52)dnl
 
7568
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
7569
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
7570
AC_SUBST([$1_TRUE])
 
7571
AC_SUBST([$1_FALSE])
 
7572
if $2; then
 
7573
  $1_TRUE=
 
7574
  $1_FALSE='#'
7189
7575
else
7190
 
  am__leading_dot=_
 
7576
  $1_TRUE='#'
 
7577
  $1_FALSE=
7191
7578
fi
7192
 
rmdir .tst 2>/dev/null
7193
 
AC_SUBST([am__leading_dot])])
7194
 
 
7195
 
# serial 5                                              -*- Autoconf -*-
7196
 
 
7197
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
7198
 
 
7199
 
# This program is free software; you can redistribute it and/or modify
7200
 
# it under the terms of the GNU General Public License as published by
7201
 
# the Free Software Foundation; either version 2, or (at your option)
7202
 
# any later version.
7203
 
 
7204
 
# This program is distributed in the hope that it will be useful,
7205
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7206
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7207
 
# GNU General Public License for more details.
7208
 
 
7209
 
# You should have received a copy of the GNU General Public License
7210
 
# along with this program; if not, write to the Free Software
7211
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7212
 
# 02111-1307, USA.
7213
 
 
 
7579
AC_CONFIG_COMMANDS_PRE(
 
7580
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
7581
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
7582
Usually this means the macro was only invoked conditionally.]])
 
7583
fi])])
 
7584
 
 
7585
 
 
7586
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7587
# Free Software Foundation, Inc.
 
7588
#
 
7589
# This file is free software; the Free Software Foundation
 
7590
# gives unlimited permission to copy and/or distribute it,
 
7591
# with or without modifications, as long as this notice is preserved.
 
7592
 
 
7593
# serial 8
7214
7594
 
7215
7595
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7216
7596
# written in clear, in which case automake, when reading aclocal.m4,
7219
7599
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7220
7600
 
7221
7601
 
7222
 
 
7223
7602
# _AM_DEPENDENCIES(NAME)
7224
7603
# ----------------------
7225
7604
# See how the compiler implements dependency checking.
7278
7657
    : > sub/conftest.c
7279
7658
    for i in 1 2 3 4 5 6; do
7280
7659
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7281
 
      : > sub/conftst$i.h
 
7660
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7661
      # Solaris 8's {/usr,}/bin/sh.
 
7662
      touch sub/conftst$i.h
7282
7663
    done
7283
7664
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7284
7665
 
7306
7687
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7307
7688
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7308
7689
      # icc doesn't choke on unknown options, it will just issue warnings
7309
 
      # (even with -Werror).  So we grep stderr for any message
7310
 
      # that says an option was ignored.
7311
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
7690
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7691
      # that says an option was ignored or not supported.
 
7692
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7693
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7694
      # The diagnosis changed in icc 8.0:
 
7695
      #   icc: Command line remark: option '-MP' not supported
 
7696
      if (grep 'ignoring option' conftest.err ||
 
7697
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7312
7698
        am_cv_$1_dependencies_compiler_type=$depmode
7313
7699
        break
7314
7700
      fi
7342
7728
# ------------
7343
7729
AC_DEFUN([AM_DEP_TRACK],
7344
7730
[AC_ARG_ENABLE(dependency-tracking,
7345
 
[  --disable-dependency-tracking Speeds up one-time builds
7346
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
 
7731
[  --disable-dependency-tracking  speeds up one-time build
 
7732
  --enable-dependency-tracking   do not reject slow dependency extractors])
7347
7733
if test "x$enable_dependency_tracking" != xno; then
7348
7734
  am_depcomp="$ac_aux_dir/depcomp"
7349
7735
  AMDEPBACKSLASH='\'
7352
7738
AC_SUBST([AMDEPBACKSLASH])
7353
7739
])
7354
7740
 
7355
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
7356
 
 
7357
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
7358
 
 
7359
 
# This program is free software; you can redistribute it and/or modify
7360
 
# it under the terms of the GNU General Public License as published by
7361
 
# the Free Software Foundation; either version 2, or (at your option)
7362
 
# any later version.
7363
 
 
7364
 
# This program is distributed in the hope that it will be useful,
7365
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7366
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7367
 
# GNU General Public License for more details.
7368
 
 
7369
 
# You should have received a copy of the GNU General Public License
7370
 
# along with this program; if not, write to the Free Software
7371
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7372
 
# 02111-1307, USA.
7373
 
 
7374
 
#serial 2
 
7741
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
7742
 
 
7743
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7744
# Free Software Foundation, Inc.
 
7745
#
 
7746
# This file is free software; the Free Software Foundation
 
7747
# gives unlimited permission to copy and/or distribute it,
 
7748
# with or without modifications, as long as this notice is preserved.
 
7749
 
 
7750
#serial 3
7375
7751
 
7376
7752
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7377
7753
# ------------------------------
7390
7766
  else
7391
7767
    continue
7392
7768
  fi
7393
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
7394
 
  # Extract the definition of DEP_FILES from the Makefile without
7395
 
  # running `make'.
7396
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
7769
  # Extract the definition of DEPDIR, am__include, and am__quote
 
7770
  # from the Makefile without running `make'.
 
7771
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7397
7772
  test -z "$DEPDIR" && continue
 
7773
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
7774
  test -z "am__include" && continue
 
7775
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7398
7776
  # When using ansi2knr, U may be empty or an underscore; expand it
7399
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
7400
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7401
 
  # We invoke sed twice because it is the simplest approach to
7402
 
  # changing $(DEPDIR) to its actual value in the expansion.
7403
 
  for file in `sed -n -e '
7404
 
    /^DEP_FILES = .*\\\\$/ {
7405
 
      s/^DEP_FILES = //
7406
 
      :loop
7407
 
        s/\\\\$//
7408
 
        p
7409
 
        n
7410
 
        /\\\\$/ b loop
7411
 
      p
7412
 
    }
7413
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
7777
  U=`sed -n 's/^U = //p' < "$mf"`
 
7778
  # Find all dependency output files, they are included files with
 
7779
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
7780
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
7781
  # expansion.
 
7782
  for file in `sed -n "
 
7783
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7414
7784
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7415
7785
    # Make sure the directory exists.
7416
7786
    test -f "$dirpart/$file" && continue
7436
7806
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7437
7807
])
7438
7808
 
7439
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
7440
 
 
7441
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
7442
 
 
7443
 
# This program is free software; you can redistribute it and/or modify
7444
 
# it under the terms of the GNU General Public License as published by
7445
 
# the Free Software Foundation; either version 2, or (at your option)
7446
 
# any later version.
7447
 
 
7448
 
# This program is distributed in the hope that it will be useful,
7449
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7450
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7451
 
# GNU General Public License for more details.
7452
 
 
7453
 
# You should have received a copy of the GNU General Public License
7454
 
# along with this program; if not, write to the Free Software
7455
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7456
 
# 02111-1307, USA.
 
7809
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7810
# Free Software Foundation, Inc.
 
7811
#
 
7812
# This file is free software; the Free Software Foundation
 
7813
# gives unlimited permission to copy and/or distribute it,
 
7814
# with or without modifications, as long as this notice is preserved.
 
7815
 
 
7816
# serial 8
 
7817
 
 
7818
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
7819
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
7820
 
 
7821
# Do all the work for Automake.                             -*- Autoconf -*-
 
7822
 
 
7823
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
7824
# Free Software Foundation, Inc.
 
7825
#
 
7826
# This file is free software; the Free Software Foundation
 
7827
# gives unlimited permission to copy and/or distribute it,
 
7828
# with or without modifications, as long as this notice is preserved.
 
7829
 
 
7830
# serial 12
 
7831
 
 
7832
# This macro actually does too much.  Some checks are only needed if
 
7833
# your package does certain things.  But this isn't really a big deal.
 
7834
 
 
7835
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
7836
# AM_INIT_AUTOMAKE([OPTIONS])
 
7837
# -----------------------------------------------
 
7838
# The call with PACKAGE and VERSION arguments is the old style
 
7839
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
7840
# and VERSION should now be passed to AC_INIT and removed from
 
7841
# the call to AM_INIT_AUTOMAKE.
 
7842
# We support both call styles for the transition.  After
 
7843
# the next Automake release, Autoconf can make the AC_INIT
 
7844
# arguments mandatory, and then we can depend on a new Autoconf
 
7845
# release and drop the old call support.
 
7846
AC_DEFUN([AM_INIT_AUTOMAKE],
 
7847
[AC_PREREQ([2.58])dnl
 
7848
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
7849
dnl the ones we care about.
 
7850
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
7851
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
7852
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
7853
# test to see if srcdir already configured
 
7854
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
7855
   test -f $srcdir/config.status; then
 
7856
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7857
fi
 
7858
 
 
7859
# test whether we have cygpath
 
7860
if test -z "$CYGPATH_W"; then
 
7861
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
7862
    CYGPATH_W='cygpath -w'
 
7863
  else
 
7864
    CYGPATH_W=echo
 
7865
  fi
 
7866
fi
 
7867
AC_SUBST([CYGPATH_W])
 
7868
 
 
7869
# Define the identity of the package.
 
7870
dnl Distinguish between old-style and new-style calls.
 
7871
m4_ifval([$2],
 
7872
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
7873
 AC_SUBST([PACKAGE], [$1])dnl
 
7874
 AC_SUBST([VERSION], [$2])],
 
7875
[_AM_SET_OPTIONS([$1])dnl
 
7876
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
7877
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
7878
 
 
7879
_AM_IF_OPTION([no-define],,
 
7880
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
7881
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
7882
 
 
7883
# Some tools Automake needs.
 
7884
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
7885
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
7886
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
7887
AM_MISSING_PROG(AUTOCONF, autoconf)
 
7888
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
7889
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
7890
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
7891
AM_PROG_INSTALL_SH
 
7892
AM_PROG_INSTALL_STRIP
 
7893
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
7894
# We need awk for the "check" target.  The system "awk" is bad on
 
7895
# some platforms.
 
7896
AC_REQUIRE([AC_PROG_AWK])dnl
 
7897
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
7898
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
7899
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
7900
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
7901
                             [_AM_PROG_TAR([v7])])])
 
7902
_AM_IF_OPTION([no-dependencies],,
 
7903
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
7904
                  [_AM_DEPENDENCIES(CC)],
 
7905
                  [define([AC_PROG_CC],
 
7906
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
7907
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
7908
                  [_AM_DEPENDENCIES(CXX)],
 
7909
                  [define([AC_PROG_CXX],
 
7910
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7911
])
 
7912
])
 
7913
 
 
7914
 
 
7915
# When config.status generates a header, we must update the stamp-h file.
 
7916
# This file resides in the same directory as the config header
 
7917
# that is generated.  The stamp files are numbered to have different names.
 
7918
 
 
7919
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
7920
# loop where config.status creates the headers, so we can generate
 
7921
# our stamp files there.
 
7922
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
7923
[# Compute $1's index in $config_headers.
 
7924
_am_stamp_count=1
 
7925
for _am_header in $config_headers :; do
 
7926
  case $_am_header in
 
7927
    $1 | $1:* )
 
7928
      break ;;
 
7929
    * )
 
7930
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
7931
  esac
 
7932
done
 
7933
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
7934
 
 
7935
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7936
#
 
7937
# This file is free software; the Free Software Foundation
 
7938
# gives unlimited permission to copy and/or distribute it,
 
7939
# with or without modifications, as long as this notice is preserved.
 
7940
 
 
7941
# AM_PROG_INSTALL_SH
 
7942
# ------------------
 
7943
# Define $install_sh.
 
7944
AC_DEFUN([AM_PROG_INSTALL_SH],
 
7945
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7946
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7947
AC_SUBST(install_sh)])
 
7948
 
 
7949
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
7950
#
 
7951
# This file is free software; the Free Software Foundation
 
7952
# gives unlimited permission to copy and/or distribute it,
 
7953
# with or without modifications, as long as this notice is preserved.
7457
7954
 
7458
7955
# serial 2
7459
7956
 
 
7957
# Check whether the underlying file-system supports filenames
 
7958
# with a leading dot.  For instance MS-DOS doesn't.
 
7959
AC_DEFUN([AM_SET_LEADING_DOT],
 
7960
[rm -rf .tst 2>/dev/null
 
7961
mkdir .tst 2>/dev/null
 
7962
if test -d .tst; then
 
7963
  am__leading_dot=.
 
7964
else
 
7965
  am__leading_dot=_
 
7966
fi
 
7967
rmdir .tst 2>/dev/null
 
7968
AC_SUBST([am__leading_dot])])
 
7969
 
 
7970
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
7971
# From Jim Meyering
 
7972
 
 
7973
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
7974
# Free Software Foundation, Inc.
 
7975
#
 
7976
# This file is free software; the Free Software Foundation
 
7977
# gives unlimited permission to copy and/or distribute it,
 
7978
# with or without modifications, as long as this notice is preserved.
 
7979
 
 
7980
# serial 4
 
7981
 
 
7982
AC_DEFUN([AM_MAINTAINER_MODE],
 
7983
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
7984
  dnl maintainer-mode is disabled by default
 
7985
  AC_ARG_ENABLE(maintainer-mode,
 
7986
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
7987
                          (and sometimes confusing) to the casual installer],
 
7988
      USE_MAINTAINER_MODE=$enableval,
 
7989
      USE_MAINTAINER_MODE=no)
 
7990
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
7991
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
7992
  MAINT=$MAINTAINER_MODE_TRUE
 
7993
  AC_SUBST(MAINT)dnl
 
7994
]
 
7995
)
 
7996
 
 
7997
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
7998
 
 
7999
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
8000
 
 
8001
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
8002
#
 
8003
# This file is free software; the Free Software Foundation
 
8004
# gives unlimited permission to copy and/or distribute it,
 
8005
# with or without modifications, as long as this notice is preserved.
 
8006
 
 
8007
# serial 3
 
8008
 
7460
8009
# AM_MAKE_INCLUDE()
7461
8010
# -----------------
7462
8011
# Check to see how make treats includes.
7499
8048
rm -f confinc confmf
7500
8049
])
7501
8050
 
7502
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
7503
 
 
7504
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
7505
 
 
7506
 
# This program is free software; you can redistribute it and/or modify
7507
 
# it under the terms of the GNU General Public License as published by
7508
 
# the Free Software Foundation; either version 2, or (at your option)
7509
 
# any later version.
7510
 
 
7511
 
# This program is distributed in the hope that it will be useful,
7512
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7513
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7514
 
# GNU General Public License for more details.
7515
 
 
7516
 
# You should have received a copy of the GNU General Public License
7517
 
# along with this program; if not, write to the Free Software
7518
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7519
 
# 02111-1307, USA.
7520
 
 
7521
 
AC_PREREQ([2.52])
7522
 
 
7523
 
# serial 6
7524
 
 
7525
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
7526
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7527
 
 
7528
 
# Add --enable-maintainer-mode option to configure.
7529
 
# From Jim Meyering
7530
 
 
7531
 
# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
7532
 
 
7533
 
# This program is free software; you can redistribute it and/or modify
7534
 
# it under the terms of the GNU General Public License as published by
7535
 
# the Free Software Foundation; either version 2, or (at your option)
7536
 
# any later version.
7537
 
 
7538
 
# This program is distributed in the hope that it will be useful,
7539
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7540
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7541
 
# GNU General Public License for more details.
7542
 
 
7543
 
# You should have received a copy of the GNU General Public License
7544
 
# along with this program; if not, write to the Free Software
7545
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7546
 
# 02111-1307, USA.
 
8051
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
8052
 
 
8053
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
8054
# Free Software Foundation, Inc.
 
8055
#
 
8056
# This file is free software; the Free Software Foundation
 
8057
# gives unlimited permission to copy and/or distribute it,
 
8058
# with or without modifications, as long as this notice is preserved.
 
8059
 
 
8060
# serial 4
 
8061
 
 
8062
# AM_MISSING_PROG(NAME, PROGRAM)
 
8063
# ------------------------------
 
8064
AC_DEFUN([AM_MISSING_PROG],
 
8065
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
8066
$1=${$1-"${am_missing_run}$2"}
 
8067
AC_SUBST($1)])
 
8068
 
 
8069
 
 
8070
# AM_MISSING_HAS_RUN
 
8071
# ------------------
 
8072
# Define MISSING if not defined so far and test if it supports --run.
 
8073
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
8074
AC_DEFUN([AM_MISSING_HAS_RUN],
 
8075
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
8076
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
8077
# Use eval to expand $SHELL
 
8078
if eval "$MISSING --run true"; then
 
8079
  am_missing_run="$MISSING --run "
 
8080
else
 
8081
  am_missing_run=
 
8082
  AC_MSG_WARN([`missing' script is too old or missing])
 
8083
fi
 
8084
])
 
8085
 
 
8086
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
8087
#
 
8088
# This file is free software; the Free Software Foundation
 
8089
# gives unlimited permission to copy and/or distribute it,
 
8090
# with or without modifications, as long as this notice is preserved.
 
8091
 
 
8092
# AM_PROG_MKDIR_P
 
8093
# ---------------
 
8094
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
8095
#
 
8096
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
8097
# created by `make install' are always world readable, even if the
 
8098
# installer happens to have an overly restrictive umask (e.g. 077).
 
8099
# This was a mistake.  There are at least two reasons why we must not
 
8100
# use `-m 0755':
 
8101
#   - it causes special bits like SGID to be ignored,
 
8102
#   - it may be too restrictive (some setups expect 775 directories).
 
8103
#
 
8104
# Do not use -m 0755 and let people choose whatever they expect by
 
8105
# setting umask.
 
8106
#
 
8107
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
8108
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
8109
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
8110
# concurrently, both version can detect that a/ is missing, but only
 
8111
# one can create it and the other will error out.  Consequently we
 
8112
# restrict ourselves to GNU make (using the --version option ensures
 
8113
# this.)
 
8114
AC_DEFUN([AM_PROG_MKDIR_P],
 
8115
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
8116
  # We used to keeping the `.' as first argument, in order to
 
8117
  # allow $(mkdir_p) to be used without argument.  As in
 
8118
  #   $(mkdir_p) $(somedir)
 
8119
  # where $(somedir) is conditionally defined.  However this is wrong
 
8120
  # for two reasons:
 
8121
  #  1. if the package is installed by a user who cannot write `.'
 
8122
  #     make install will fail,
 
8123
  #  2. the above comment should most certainly read
 
8124
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
8125
  #     so it does not work when $(somedir) is undefined and
 
8126
  #     $(DESTDIR) is not.
 
8127
  #  To support the latter case, we have to write
 
8128
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
8129
  #  so the `.' trick is pointless.
 
8130
  mkdir_p='mkdir -p --'
 
8131
else
 
8132
  # On NextStep and OpenStep, the `mkdir' command does not
 
8133
  # recognize any option.  It will interpret all options as
 
8134
  # directories to create, and then abort because `.' already
 
8135
  # exists.
 
8136
  for d in ./-p ./--version;
 
8137
  do
 
8138
    test -d $d && rmdir $d
 
8139
  done
 
8140
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
8141
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
8142
    mkdir_p='$(mkinstalldirs)'
 
8143
  else
 
8144
    mkdir_p='$(install_sh) -d'
 
8145
  fi
 
8146
fi
 
8147
AC_SUBST([mkdir_p])])
 
8148
 
 
8149
# Helper functions for option handling.                     -*- Autoconf -*-
 
8150
 
 
8151
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
8152
#
 
8153
# This file is free software; the Free Software Foundation
 
8154
# gives unlimited permission to copy and/or distribute it,
 
8155
# with or without modifications, as long as this notice is preserved.
 
8156
 
 
8157
# serial 3
 
8158
 
 
8159
# _AM_MANGLE_OPTION(NAME)
 
8160
# -----------------------
 
8161
AC_DEFUN([_AM_MANGLE_OPTION],
 
8162
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
8163
 
 
8164
# _AM_SET_OPTION(NAME)
 
8165
# ------------------------------
 
8166
# Set option NAME.  Presently that only means defining a flag for this option.
 
8167
AC_DEFUN([_AM_SET_OPTION],
 
8168
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
8169
 
 
8170
# _AM_SET_OPTIONS(OPTIONS)
 
8171
# ----------------------------------
 
8172
# OPTIONS is a space-separated list of Automake options.
 
8173
AC_DEFUN([_AM_SET_OPTIONS],
 
8174
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
8175
 
 
8176
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
8177
# -------------------------------------------
 
8178
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8179
AC_DEFUN([_AM_IF_OPTION],
 
8180
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
8181
 
 
8182
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
8183
 
 
8184
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
8185
# Free Software Foundation, Inc.
 
8186
#
 
8187
# This file is free software; the Free Software Foundation
 
8188
# gives unlimited permission to copy and/or distribute it,
 
8189
# with or without modifications, as long as this notice is preserved.
 
8190
 
 
8191
# serial 4
 
8192
 
 
8193
# AM_SANITY_CHECK
 
8194
# ---------------
 
8195
AC_DEFUN([AM_SANITY_CHECK],
 
8196
[AC_MSG_CHECKING([whether build environment is sane])
 
8197
# Just in case
 
8198
sleep 1
 
8199
echo timestamp > conftest.file
 
8200
# Do `set' in a subshell so we don't clobber the current shell's
 
8201
# arguments.  Must try -L first in case configure is actually a
 
8202
# symlink; some systems play weird games with the mod time of symlinks
 
8203
# (eg FreeBSD returns the mod time of the symlink's containing
 
8204
# directory).
 
8205
if (
 
8206
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
8207
   if test "$[*]" = "X"; then
 
8208
      # -L didn't work.
 
8209
      set X `ls -t $srcdir/configure conftest.file`
 
8210
   fi
 
8211
   rm -f conftest.file
 
8212
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
8213
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
8214
 
 
8215
      # If neither matched, then we have a broken ls.  This can happen
 
8216
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
8217
      # broken ls alias from the environment.  This has actually
 
8218
      # happened.  Such a system could not be considered "sane".
 
8219
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
8220
alias in your environment])
 
8221
   fi
 
8222
 
 
8223
   test "$[2]" = conftest.file
 
8224
   )
 
8225
then
 
8226
   # Ok.
 
8227
   :
 
8228
else
 
8229
   AC_MSG_ERROR([newly created file is older than distributed files!
 
8230
Check your system clock])
 
8231
fi
 
8232
AC_MSG_RESULT(yes)])
 
8233
 
 
8234
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8235
#
 
8236
# This file is free software; the Free Software Foundation
 
8237
# gives unlimited permission to copy and/or distribute it,
 
8238
# with or without modifications, as long as this notice is preserved.
 
8239
 
 
8240
# AM_PROG_INSTALL_STRIP
 
8241
# ---------------------
 
8242
# One issue with vendor `install' (even GNU) is that you can't
 
8243
# specify the program used to strip binaries.  This is especially
 
8244
# annoying in cross-compiling environments, where the build's strip
 
8245
# is unlikely to handle the host's binaries.
 
8246
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
8247
# always use install-sh in `make install-strip', and initialize
 
8248
# STRIPPROG with the value of the STRIP variable (set by the user).
 
8249
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
8250
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
8251
# Installed binaries are usually stripped using `strip' when the user
 
8252
# run `make install-strip'.  However `strip' might not be the right
 
8253
# tool to use in cross-compilation environments, therefore Automake
 
8254
# will honor the `STRIP' environment variable to overrule this program.
 
8255
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
8256
if test "$cross_compiling" != no; then
 
8257
  AC_CHECK_TOOL([STRIP], [strip], :)
 
8258
fi
 
8259
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
8260
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
8261
 
 
8262
# Check how to create a tarball.                            -*- Autoconf -*-
 
8263
 
 
8264
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
8265
#
 
8266
# This file is free software; the Free Software Foundation
 
8267
# gives unlimited permission to copy and/or distribute it,
 
8268
# with or without modifications, as long as this notice is preserved.
7547
8269
 
7548
8270
# serial 2
7549
8271
 
7550
 
AC_DEFUN([AM_MAINTAINER_MODE],
7551
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7552
 
  dnl maintainer-mode is disabled by default
7553
 
  AC_ARG_ENABLE(maintainer-mode,
7554
 
[  --enable-maintainer-mode enable make rules and dependencies not useful
7555
 
                          (and sometimes confusing) to the casual installer],
7556
 
      USE_MAINTAINER_MODE=$enableval,
7557
 
      USE_MAINTAINER_MODE=no)
7558
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7559
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7560
 
  MAINT=$MAINTAINER_MODE_TRUE
7561
 
  AC_SUBST(MAINT)dnl
7562
 
]
7563
 
)
7564
 
 
7565
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7566
 
 
7567
 
# isc-posix.m4 serial 2 (gettext-0.11.2)
7568
 
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
7569
 
dnl This file is free software; the Free Software Foundation
7570
 
dnl gives unlimited permission to copy and/or distribute it,
7571
 
dnl with or without modifications, as long as this notice is preserved.
7572
 
 
7573
 
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
7574
 
 
7575
 
# This test replaces the one in autoconf.
7576
 
# Currently this macro should have the same name as the autoconf macro
7577
 
# because gettext's gettext.m4 (distributed in the automake package)
7578
 
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
7579
 
# give these diagnostics:
7580
 
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
7581
 
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
7582
 
 
7583
 
undefine([AC_ISC_POSIX])
7584
 
 
7585
 
AC_DEFUN([AC_ISC_POSIX],
7586
 
  [
7587
 
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
7588
 
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
7589
 
  ]
7590
 
)
7591
 
 
7592
 
 
7593
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
7594
 
# serial 35 IT_PROG_INTLTOOL
7595
 
AC_DEFUN([IT_PROG_INTLTOOL],
7596
 
[AC_PREREQ([2.50])dnl
7597
 
 
7598
 
case "$am__api_version" in
7599
 
    1.[01234])
7600
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
7601
 
    ;;
7602
 
    *)
7603
 
    ;;
7604
 
esac
7605
 
 
7606
 
if test -n "$1"; then
7607
 
    AC_MSG_CHECKING(for intltool >= $1)
7608
 
 
7609
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7610
 
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
7611
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
7612
 
    ]
7613
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
7614
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7615
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
7616
 
fi
7617
 
 
7618
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7619
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7620
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7621
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7622
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
7623
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7624
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7625
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7626
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7627
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7628
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7629
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
7630
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7631
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7632
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7633
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7634
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
7635
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
7636
 
 
7637
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
7638
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
7639
 
AC_SUBST(INTLTOOL_KEYS_RULE)
7640
 
AC_SUBST(INTLTOOL_PROP_RULE)
7641
 
AC_SUBST(INTLTOOL_OAF_RULE)
7642
 
AC_SUBST(INTLTOOL_PONG_RULE)
7643
 
AC_SUBST(INTLTOOL_SERVER_RULE)
7644
 
AC_SUBST(INTLTOOL_SHEET_RULE)
7645
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
7646
 
AC_SUBST(INTLTOOL_UI_RULE)
7647
 
AC_SUBST(INTLTOOL_XAM_RULE)
7648
 
AC_SUBST(INTLTOOL_KBD_RULE)
7649
 
AC_SUBST(INTLTOOL_XML_RULE)
7650
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
7651
 
AC_SUBST(INTLTOOL_CAVES_RULE)
7652
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
7653
 
AC_SUBST(INTLTOOL_THEME_RULE)
7654
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
7655
 
 
7656
 
# Use the tools built into the package, not the ones that are installed.
7657
 
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
7658
 
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
7659
 
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
7660
 
 
7661
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
7662
 
if test -z "$INTLTOOL_PERL"; then
7663
 
   AC_MSG_ERROR([perl not found; required for intltool])
7664
 
fi
7665
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7666
 
   AC_MSG_ERROR([perl 5.x required for intltool])
7667
 
fi
7668
 
if test "x$2" != "xno-xml"; then
7669
 
   AC_MSG_CHECKING([for XML::Parser])
7670
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
7671
 
       AC_MSG_RESULT([ok])
7672
 
   else
7673
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
7674
 
   fi
7675
 
fi
7676
 
 
7677
 
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
7678
 
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
7679
 
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
7680
 
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
7681
 
 
7682
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
7683
 
AC_SUBST(ALL_LINGUAS)
7684
 
    
7685
 
IT_PO_SUBDIR([po])
7686
 
 
7687
 
dnl The following is very similar to
7688
 
dnl
7689
 
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
7690
 
dnl
7691
 
dnl with the following slight differences:
7692
 
dnl  - the *.in files are in ac_aux_dir,
7693
 
dnl  - if the file haven't changed upon reconfigure, it's not touched,
7694
 
dnl  - the evaluation of the third parameter enables a hack which computes
7695
 
dnl    the actual value of $libdir,
7696
 
dnl  - the user sees "executing intltool commands", instead of
7697
 
dnl    "creating intltool-extract" and such.
7698
 
dnl
7699
 
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
7700
 
dnl a reason for it.
7701
 
 
7702
 
AC_CONFIG_COMMANDS([intltool], [
7703
 
 
7704
 
for file in intltool-extract intltool-merge intltool-update; do
7705
 
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
7706
 
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
7707
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
7708
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
7709
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
7710
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
7711
 
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
7712
 
        < ${ac_aux_dir}/${file}.in > ${file}.out
7713
 
  if cmp -s ${file} ${file}.out 2>/dev/null; then
7714
 
    rm -f ${file}.out
7715
 
  else
7716
 
    mv -f ${file}.out ${file}
 
8272
# _AM_PROG_TAR(FORMAT)
 
8273
# --------------------
 
8274
# Check how to create a tarball in format FORMAT.
 
8275
# FORMAT should be one of `v7', `ustar', or `pax'.
 
8276
#
 
8277
# Substitute a variable $(am__tar) that is a command
 
8278
# writing to stdout a FORMAT-tarball containing the directory
 
8279
# $tardir.
 
8280
#     tardir=directory && $(am__tar) > result.tar
 
8281
#
 
8282
# Substitute a variable $(am__untar) that extract such
 
8283
# a tarball read from stdin.
 
8284
#     $(am__untar) < result.tar
 
8285
AC_DEFUN([_AM_PROG_TAR],
 
8286
[# Always define AMTAR for backward compatibility.
 
8287
AM_MISSING_PROG([AMTAR], [tar])
 
8288
m4_if([$1], [v7],
 
8289
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
8290
     [m4_case([$1], [ustar],, [pax],,
 
8291
              [m4_fatal([Unknown tar format])])
 
8292
AC_MSG_CHECKING([how to create a $1 tar archive])
 
8293
# Loop over all known methods to create a tar archive until one works.
 
8294
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
8295
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
8296
# Do not fold the above two line into one, because Tru64 sh and
 
8297
# Solaris sh will not grok spaces in the rhs of `-'.
 
8298
for _am_tool in $_am_tools
 
8299
do
 
8300
  case $_am_tool in
 
8301
  gnutar)
 
8302
    for _am_tar in tar gnutar gtar;
 
8303
    do
 
8304
      AM_RUN_LOG([$_am_tar --version]) && break
 
8305
    done
 
8306
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
8307
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
8308
    am__untar="$_am_tar -xf -"
 
8309
    ;;
 
8310
  plaintar)
 
8311
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
8312
    # ustar tarball either.
 
8313
    (tar --version) >/dev/null 2>&1 && continue
 
8314
    am__tar='tar chf - "$$tardir"'
 
8315
    am__tar_='tar chf - "$tardir"'
 
8316
    am__untar='tar xf -'
 
8317
    ;;
 
8318
  pax)
 
8319
    am__tar='pax -L -x $1 -w "$$tardir"'
 
8320
    am__tar_='pax -L -x $1 -w "$tardir"'
 
8321
    am__untar='pax -r'
 
8322
    ;;
 
8323
  cpio)
 
8324
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
8325
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
8326
    am__untar='cpio -i -H $1 -d'
 
8327
    ;;
 
8328
  none)
 
8329
    am__tar=false
 
8330
    am__tar_=false
 
8331
    am__untar=false
 
8332
    ;;
 
8333
  esac
 
8334
 
 
8335
  # If the value was cached, stop now.  We just wanted to have am__tar
 
8336
  # and am__untar set.
 
8337
  test -n "${am_cv_prog_tar_$1}" && break
 
8338
 
 
8339
  # tar/untar a dummy directory, and stop if the command works
 
8340
  rm -rf conftest.dir
 
8341
  mkdir conftest.dir
 
8342
  echo GrepMe > conftest.dir/file
 
8343
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
8344
  rm -rf conftest.dir
 
8345
  if test -s conftest.tar; then
 
8346
    AM_RUN_LOG([$am__untar <conftest.tar])
 
8347
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7717
8348
  fi
7718
 
  chmod ugo+x ${file}
7719
 
  chmod u+w ${file}
7720
8349
done
7721
 
 
7722
 
],
7723
 
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
7724
 
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
7725
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
7726
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
7727
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
7728
 
 
7729
 
])
7730
 
 
7731
 
 
7732
 
# IT_PO_SUBDIR(DIRNAME)
7733
 
# ---------------------
7734
 
# All po subdirs have to be declared with this macro; the subdir "po" is
7735
 
# declared by IT_PROG_INTLTOOL.
7736
 
#
7737
 
AC_DEFUN([IT_PO_SUBDIR],
7738
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
7739
 
dnl
7740
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
7741
 
dnl of config.status.
7742
 
AC_CONFIG_COMMANDS_PRE([
7743
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
7744
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
7745
 
    >"$1/stamp-it.tmp"
7746
 
    [sed '/^#/d
7747
 
         s/^[[].*] *//
7748
 
         /^[    ]*$/d
7749
 
        '"s|^|  $ac_top_srcdir/|" \
7750
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
7751
 
    ]
7752
 
    if test ! -f "$1/Makefile"; then
7753
 
      AC_MSG_ERROR([$1/Makefile is not ready.])
7754
 
    fi
7755
 
    mv "$1/Makefile" "$1/Makefile.tmp"
7756
 
    [sed '/^POTFILES =/,/[^\\]$/ {
7757
 
                /^POTFILES =/!d
7758
 
                r $1/POTFILES
7759
 
          }
7760
 
         ' "$1/Makefile.tmp" >"$1/Makefile"]
7761
 
    rm -f "$1/Makefile.tmp"
7762
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
7763
 
  ])
7764
 
])dnl
7765
 
])
7766
 
 
7767
 
 
7768
 
# deprecated macros
7769
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
7770
 
# A hint is needed for aclocal from Automake <= 1.9.4:
7771
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
7772
 
 
7773
 
 
7774
 
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7775
 
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7776
 
#
7777
 
# This file is free software, distributed under the terms of the GNU
7778
 
# General Public License.  As a special exception to the GNU General
7779
 
# Public License, this file may be distributed as part of a program
7780
 
# that contains a configuration script generated by Autoconf, under
7781
 
# the same distribution terms as the rest of that program.
7782
 
#
7783
 
# This file can be copied and used freely without restrictions.  It can
7784
 
# be used in projects which are not available under the GNU Public License
7785
 
# but which still want to provide support for the GNU gettext functionality.
7786
 
#
7787
 
# Macro to add for using GNU gettext.
7788
 
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
7789
 
#
7790
 
# Modified to never use included libintl. 
7791
 
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
7792
 
#
7793
 
# Major rework to remove unused code
7794
 
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
7795
 
#
7796
 
# Added better handling of ALL_LINGUAS from GNU gettext version 
7797
 
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
7798
 
#
7799
 
# Modified to require ngettext
7800
 
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
7801
 
#
7802
 
# We need this here as well, since someone might use autoconf-2.5x
7803
 
# to configure GLib then an older version to configure a package
7804
 
# using AM_GLIB_GNU_GETTEXT
7805
 
AC_PREREQ(2.53)
7806
 
 
7807
 
dnl
7808
 
dnl We go to great lengths to make sure that aclocal won't 
7809
 
dnl try to pull in the installed version of these macros
7810
 
dnl when running aclocal in the glib directory.
7811
 
dnl
7812
 
m4_copy([AC_DEFUN],[glib_DEFUN])
7813
 
m4_copy([AC_REQUIRE],[glib_REQUIRE])
7814
 
dnl
7815
 
dnl At the end, if we're not within glib, we'll define the public
7816
 
dnl definitions in terms of our private definitions.
7817
 
dnl
7818
 
 
7819
 
# GLIB_LC_MESSAGES
7820
 
#--------------------
7821
 
glib_DEFUN([GLIB_LC_MESSAGES],
7822
 
  [AC_CHECK_HEADERS([locale.h])
7823
 
    if test $ac_cv_header_locale_h = yes; then
7824
 
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
7825
 
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
7826
 
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
7827
 
    if test $am_cv_val_LC_MESSAGES = yes; then
7828
 
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
7829
 
        [Define if your <locale.h> file defines LC_MESSAGES.])
7830
 
    fi
7831
 
  fi])
7832
 
 
7833
 
# GLIB_PATH_PROG_WITH_TEST
7834
 
#----------------------------
7835
 
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
7836
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
7837
 
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
7838
 
[# Extract the first word of "$2", so it can be a program name with args.
7839
 
set dummy $2; ac_word=[$]2
7840
 
AC_MSG_CHECKING([for $ac_word])
7841
 
AC_CACHE_VAL(ac_cv_path_$1,
7842
 
[case "[$]$1" in
7843
 
  /*)
7844
 
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
7845
 
  ;;
7846
 
  *)
7847
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7848
 
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
7849
 
    test -z "$ac_dir" && ac_dir=.
7850
 
    if test -f $ac_dir/$ac_word; then
7851
 
      if [$3]; then
7852
 
        ac_cv_path_$1="$ac_dir/$ac_word"
7853
 
        break
7854
 
      fi
7855
 
    fi
7856
 
  done
7857
 
  IFS="$ac_save_ifs"
7858
 
dnl If no 4th arg is given, leave the cache variable unset,
7859
 
dnl so AC_PATH_PROGS will keep looking.
7860
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
7861
 
])dnl
7862
 
  ;;
7863
 
esac])dnl
7864
 
$1="$ac_cv_path_$1"
7865
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
7866
 
  AC_MSG_RESULT([$]$1)
7867
 
else
7868
 
  AC_MSG_RESULT(no)
7869
 
fi
7870
 
AC_SUBST($1)dnl
7871
 
])
7872
 
 
7873
 
# GLIB_WITH_NLS
7874
 
#-----------------
7875
 
glib_DEFUN([GLIB_WITH_NLS],
7876
 
  dnl NLS is obligatory
7877
 
  [USE_NLS=yes
7878
 
    AC_SUBST(USE_NLS)
7879
 
 
7880
 
    gt_cv_have_gettext=no
7881
 
 
7882
 
    CATOBJEXT=NONE
7883
 
    XGETTEXT=:
7884
 
    INTLLIBS=
7885
 
 
7886
 
    AC_CHECK_HEADER(libintl.h,
7887
 
     [gt_cv_func_dgettext_libintl="no"
7888
 
      libintl_extra_libs=""
7889
 
 
7890
 
      #
7891
 
      # First check in libc
7892
 
      #
7893
 
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
7894
 
        [AC_TRY_LINK([
7895
 
#include <libintl.h>
7896
 
],
7897
 
         [return !ngettext ("","", 1)],
7898
 
          gt_cv_func_ngettext_libc=yes,
7899
 
          gt_cv_func_ngettext_libc=no)
7900
 
        ])
7901
 
  
7902
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7903
 
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
7904
 
                [AC_TRY_LINK([
7905
 
#include <libintl.h>
7906
 
],
7907
 
                  [return !dgettext ("","")],
7908
 
                  gt_cv_func_dgettext_libc=yes,
7909
 
                  gt_cv_func_dgettext_libc=no)
7910
 
                ])
7911
 
      fi
7912
 
  
7913
 
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7914
 
        AC_CHECK_FUNCS(bind_textdomain_codeset)
7915
 
      fi
7916
 
 
7917
 
      #
7918
 
      # If we don't have everything we want, check in libintl
7919
 
      #
7920
 
      if test "$gt_cv_func_dgettext_libc" != "yes" \
7921
 
         || test "$gt_cv_func_ngettext_libc" != "yes" \
7922
 
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7923
 
        
7924
 
        AC_CHECK_LIB(intl, bindtextdomain,
7925
 
            [AC_CHECK_LIB(intl, ngettext,
7926
 
                    [AC_CHECK_LIB(intl, dgettext,
7927
 
                                  gt_cv_func_dgettext_libintl=yes)])])
7928
 
 
7929
 
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7930
 
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
7931
 
          AC_MSG_RESULT([])
7932
 
          AC_CHECK_LIB(intl, ngettext,
7933
 
                [AC_CHECK_LIB(intl, dcgettext,
7934
 
                       [gt_cv_func_dgettext_libintl=yes
7935
 
                        libintl_extra_libs=-liconv],
7936
 
                        :,-liconv)],
7937
 
                :,-liconv)
7938
 
        fi
7939
 
 
7940
 
        #
7941
 
        # If we found libintl, then check in it for bind_textdomain_codeset();
7942
 
        # we'll prefer libc if neither have bind_textdomain_codeset(),
7943
 
        # and both have dgettext and ngettext
7944
 
        #
7945
 
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7946
 
          glib_save_LIBS="$LIBS"
7947
 
          LIBS="$LIBS -lintl $libintl_extra_libs"
7948
 
          unset ac_cv_func_bind_textdomain_codeset
7949
 
          AC_CHECK_FUNCS(bind_textdomain_codeset)
7950
 
          LIBS="$glib_save_LIBS"
7951
 
 
7952
 
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7953
 
            gt_cv_func_dgettext_libc=no
7954
 
          else
7955
 
            if test "$gt_cv_func_dgettext_libc" = "yes" \
7956
 
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
7957
 
              gt_cv_func_dgettext_libintl=no
7958
 
            fi
7959
 
          fi
7960
 
        fi
7961
 
      fi
7962
 
 
7963
 
      if test "$gt_cv_func_dgettext_libc" = "yes" \
7964
 
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7965
 
        gt_cv_have_gettext=yes
7966
 
      fi
7967
 
  
7968
 
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7969
 
        INTLLIBS="-lintl $libintl_extra_libs"
7970
 
      fi
7971
 
  
7972
 
      if test "$gt_cv_have_gettext" = "yes"; then
7973
 
        AC_DEFINE(HAVE_GETTEXT,1,
7974
 
          [Define if the GNU gettext() function is already present or preinstalled.])
7975
 
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
7976
 
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
7977
 
        if test "$MSGFMT" != "no"; then
7978
 
          glib_save_LIBS="$LIBS"
7979
 
          LIBS="$LIBS $INTLLIBS"
7980
 
          AC_CHECK_FUNCS(dcgettext)
7981
 
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
7982
 
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
7983
 
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
7984
 
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
7985
 
                         return _nl_msg_cat_cntr],
7986
 
            [CATOBJEXT=.gmo 
7987
 
             DATADIRNAME=share],
7988
 
            [case $host in
7989
 
            *-*-solaris*)
7990
 
            dnl On Solaris, if bind_textdomain_codeset is in libc,
7991
 
            dnl GNU format message catalog is always supported,
7992
 
            dnl since both are added to the libc all together.
7993
 
            dnl Hence, we'd like to go with DATADIRNAME=share and
7994
 
            dnl and CATOBJEXT=.gmo in this case.
7995
 
            AC_CHECK_FUNC(bind_textdomain_codeset,
7996
 
              [CATOBJEXT=.gmo 
7997
 
               DATADIRNAME=share],
7998
 
              [CATOBJEXT=.mo
7999
 
               DATADIRNAME=lib])
8000
 
            ;;
8001
 
            *)
8002
 
            CATOBJEXT=.mo
8003
 
            DATADIRNAME=lib
8004
 
            ;;
8005
 
            esac])
8006
 
          LIBS="$glib_save_LIBS"
8007
 
          INSTOBJEXT=.mo
8008
 
        else
8009
 
          gt_cv_have_gettext=no
8010
 
        fi
8011
 
      fi
8012
 
    ])
8013
 
 
8014
 
    if test "$gt_cv_have_gettext" = "yes" ; then
8015
 
      AC_DEFINE(ENABLE_NLS, 1,
8016
 
        [always defined to indicate that i18n is enabled])
8017
 
    fi
8018
 
 
8019
 
    dnl Test whether we really found GNU xgettext.
8020
 
    if test "$XGETTEXT" != ":"; then
8021
 
      dnl If it is not GNU xgettext we define it as : so that the
8022
 
      dnl Makefiles still can work.
8023
 
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8024
 
        : ;
8025
 
      else
8026
 
        AC_MSG_RESULT(
8027
 
          [found xgettext program is not GNU xgettext; ignore it])
8028
 
        XGETTEXT=":"
8029
 
      fi
8030
 
    fi
8031
 
 
8032
 
    # We need to process the po/ directory.
8033
 
    POSUB=po
8034
 
 
8035
 
    AC_OUTPUT_COMMANDS(
8036
 
      [case "$CONFIG_FILES" in *po/Makefile.in*)
8037
 
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8038
 
      esac])
8039
 
 
8040
 
    dnl These rules are solely for the distribution goal.  While doing this
8041
 
    dnl we only have to keep exactly one list of the available catalogs
8042
 
    dnl in configure.in.
8043
 
    for lang in $ALL_LINGUAS; do
8044
 
      GMOFILES="$GMOFILES $lang.gmo"
8045
 
      POFILES="$POFILES $lang.po"
8046
 
    done
8047
 
 
8048
 
    dnl Make all variables we use known to autoconf.
8049
 
    AC_SUBST(CATALOGS)
8050
 
    AC_SUBST(CATOBJEXT)
8051
 
    AC_SUBST(DATADIRNAME)
8052
 
    AC_SUBST(GMOFILES)
8053
 
    AC_SUBST(INSTOBJEXT)
8054
 
    AC_SUBST(INTLLIBS)
8055
 
    AC_SUBST(PO_IN_DATADIR_TRUE)
8056
 
    AC_SUBST(PO_IN_DATADIR_FALSE)
8057
 
    AC_SUBST(POFILES)
8058
 
    AC_SUBST(POSUB)
8059
 
  ])
8060
 
 
8061
 
# AM_GLIB_GNU_GETTEXT
8062
 
# -------------------
8063
 
# Do checks necessary for use of gettext. If a suitable implementation 
8064
 
# of gettext is found in either in libintl or in the C library,
8065
 
# it will set INTLLIBS to the libraries needed for use of gettext
8066
 
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
8067
 
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
8068
 
# on various variables needed by the Makefile.in.in installed by 
8069
 
# glib-gettextize.
8070
 
dnl
8071
 
glib_DEFUN([GLIB_GNU_GETTEXT],
8072
 
  [AC_REQUIRE([AC_PROG_CC])dnl
8073
 
   AC_REQUIRE([AC_HEADER_STDC])dnl
8074
 
   
8075
 
   GLIB_LC_MESSAGES
8076
 
   GLIB_WITH_NLS
8077
 
 
8078
 
   if test "$gt_cv_have_gettext" = "yes"; then
8079
 
     if test "x$ALL_LINGUAS" = "x"; then
8080
 
       LINGUAS=
8081
 
     else
8082
 
       AC_MSG_CHECKING(for catalogs to be installed)
8083
 
       NEW_LINGUAS=
8084
 
       for presentlang in $ALL_LINGUAS; do
8085
 
         useit=no
8086
 
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8087
 
           desiredlanguages="$LINGUAS"
8088
 
         else
8089
 
           desiredlanguages="$ALL_LINGUAS"
8090
 
         fi
8091
 
         for desiredlang in $desiredlanguages; do
8092
 
           # Use the presentlang catalog if desiredlang is
8093
 
           #   a. equal to presentlang, or
8094
 
           #   b. a variant of presentlang (because in this case,
8095
 
           #      presentlang can be used as a fallback for messages
8096
 
           #      which are not translated in the desiredlang catalog).
8097
 
           case "$desiredlang" in
8098
 
             "$presentlang"*) useit=yes;;
8099
 
           esac
8100
 
         done
8101
 
         if test $useit = yes; then
8102
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8103
 
         fi
8104
 
       done
8105
 
       LINGUAS=$NEW_LINGUAS
8106
 
       AC_MSG_RESULT($LINGUAS)
8107
 
     fi
8108
 
 
8109
 
     dnl Construct list of names of catalog files to be constructed.
8110
 
     if test -n "$LINGUAS"; then
8111
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8112
 
     fi
8113
 
   fi
8114
 
 
8115
 
   dnl Generate list of files to be processed by xgettext which will
8116
 
   dnl be included in po/Makefile.
8117
 
   test -d po || mkdir po
8118
 
   if test "x$srcdir" != "x."; then
8119
 
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8120
 
       posrcprefix="$srcdir/"
8121
 
     else
8122
 
       posrcprefix="../$srcdir/"
8123
 
     fi
8124
 
   else
8125
 
     posrcprefix="../"
8126
 
   fi
8127
 
   rm -f po/POTFILES
8128
 
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8129
 
        < $srcdir/po/POTFILES.in > po/POTFILES
8130
 
  ])
8131
 
 
8132
 
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
8133
 
# -------------------------------
8134
 
# Define VARIABLE to the location where catalog files will
8135
 
# be installed by po/Makefile.
8136
 
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
8137
 
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
8138
 
glib_save_prefix="$prefix"
8139
 
glib_save_exec_prefix="$exec_prefix"
8140
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8141
 
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8142
 
if test "x$CATOBJEXT" = "x.mo" ; then
8143
 
  localedir=`eval echo "${libdir}/locale"`
8144
 
else
8145
 
  localedir=`eval echo "${datadir}/locale"`
8146
 
fi
8147
 
prefix="$glib_save_prefix"
8148
 
exec_prefix="$glib_save_exec_prefix"
8149
 
AC_DEFINE_UNQUOTED($1, "$localedir",
8150
 
  [Define the location where the catalogs will be installed])
8151
 
])
8152
 
 
8153
 
dnl
8154
 
dnl Now the definitions that aclocal will find
8155
 
dnl
8156
 
ifdef(glib_configure_in,[],[
8157
 
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
8158
 
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
8159
 
])dnl
8160
 
 
8161
 
dnl GNOME_COMPILE_WARNINGS
8162
 
dnl Turn on many useful compiler warnings
8163
 
dnl For now, only works on GCC
8164
 
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
8165
 
    dnl ******************************
8166
 
    dnl More compiler warnings
8167
 
    dnl ******************************
8168
 
 
8169
 
    AC_ARG_ENABLE(compile-warnings, 
8170
 
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
8171
 
                                 [Turn on compiler warnings]),,
8172
 
                  [enable_compile_warnings="m4_default([$1],[yes])"])
8173
 
 
8174
 
    warnCFLAGS=
8175
 
    if test "x$GCC" != xyes; then
8176
 
        enable_compile_warnings=no
8177
 
    fi
8178
 
 
8179
 
    warning_flags=
8180
 
    realsave_CFLAGS="$CFLAGS"
8181
 
 
8182
 
    case "$enable_compile_warnings" in
8183
 
    no)
8184
 
        warning_flags=
8185
 
        ;;
8186
 
    minimum)
8187
 
        warning_flags="-Wall"
8188
 
        ;;
8189
 
    yes)
8190
 
        warning_flags="-Wall -Wmissing-prototypes"
8191
 
        ;;
8192
 
    maximum|error)
8193
 
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
8194
 
        CFLAGS="$warning_flags $CFLAGS"
8195
 
        for option in -Wno-sign-compare; do
8196
 
                SAVE_CFLAGS="$CFLAGS"
8197
 
                CFLAGS="$CFLAGS $option"
8198
 
                AC_MSG_CHECKING([whether gcc understands $option])
8199
 
                AC_TRY_COMPILE([], [],
8200
 
                        has_option=yes,
8201
 
                        has_option=no,)
8202
 
                CFLAGS="$SAVE_CFLAGS"
8203
 
                AC_MSG_RESULT($has_option)
8204
 
                if test $has_option = yes; then
8205
 
                  warning_flags="$warning_flags $option"
8206
 
                fi
8207
 
                unset has_option
8208
 
                unset SAVE_CFLAGS
8209
 
        done
8210
 
        unset option
8211
 
        if test "$enable_compile_warnings" = "error" ; then
8212
 
            warning_flags="$warning_flags -Werror"
8213
 
        fi
8214
 
        ;;
8215
 
    *)
8216
 
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
8217
 
        ;;
8218
 
    esac
8219
 
    CFLAGS="$realsave_CFLAGS"
8220
 
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
8221
 
    AC_MSG_RESULT($warning_flags)
8222
 
 
8223
 
    AC_ARG_ENABLE(iso-c,
8224
 
                  AC_HELP_STRING([--enable-iso-c],
8225
 
                                 [Try to warn if code is not ISO C ]),,
8226
 
                  [enable_iso_c=no])
8227
 
 
8228
 
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
8229
 
    complCFLAGS=
8230
 
    if test "x$enable_iso_c" != "xno"; then
8231
 
        if test "x$GCC" = "xyes"; then
8232
 
        case " $CFLAGS " in
8233
 
            *[\ \       ]-ansi[\ \      ]*) ;;
8234
 
            *) complCFLAGS="$complCFLAGS -ansi" ;;
8235
 
        esac
8236
 
        case " $CFLAGS " in
8237
 
            *[\ \       ]-pedantic[\ \  ]*) ;;
8238
 
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
8239
 
        esac
8240
 
        fi
8241
 
    fi
8242
 
    AC_MSG_RESULT($complCFLAGS)
8243
 
 
8244
 
    WARN_CFLAGS="$warning_flags $complCFLAGS"
8245
 
    AC_SUBST(WARN_CFLAGS)
8246
 
])
8247
 
 
8248
 
dnl For C++, do basically the same thing.
8249
 
 
8250
 
AC_DEFUN([GNOME_CXX_WARNINGS],[
8251
 
  AC_ARG_ENABLE(cxx-warnings,
8252
 
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
8253
 
                               [Turn on compiler warnings.]),,
8254
 
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
8255
 
 
8256
 
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
8257
 
  warnCXXFLAGS=
8258
 
  if test "x$GCC" != xyes; then
8259
 
    enable_compile_warnings=no
8260
 
  fi
8261
 
  if test "x$enable_cxx_warnings" != "xno"; then
8262
 
    if test "x$GCC" = "xyes"; then
8263
 
      case " $CXXFLAGS " in
8264
 
      *[\ \     ]-Wall[\ \      ]*) ;;
8265
 
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
8266
 
      esac
8267
 
 
8268
 
      ## -W is not all that useful.  And it cannot be controlled
8269
 
      ## with individual -Wno-xxx flags, unlike -Wall
8270
 
      if test "x$enable_cxx_warnings" = "xyes"; then
8271
 
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
8272
 
      fi
8273
 
    fi
8274
 
  fi
8275
 
  AC_MSG_RESULT($warnCXXFLAGS)
8276
 
 
8277
 
   AC_ARG_ENABLE(iso-cxx,
8278
 
                 AC_HELP_STRING([--enable-iso-cxx],
8279
 
                                [Try to warn if code is not ISO C++ ]),,
8280
 
                 [enable_iso_cxx=no])
8281
 
 
8282
 
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
8283
 
   complCXXFLAGS=
8284
 
   if test "x$enable_iso_cxx" != "xno"; then
8285
 
     if test "x$GCC" = "xyes"; then
8286
 
      case " $CXXFLAGS " in
8287
 
      *[\ \     ]-ansi[\ \      ]*) ;;
8288
 
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
8289
 
      esac
8290
 
 
8291
 
      case " $CXXFLAGS " in
8292
 
      *[\ \     ]-pedantic[\ \  ]*) ;;
8293
 
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
8294
 
      esac
8295
 
     fi
8296
 
   fi
8297
 
  AC_MSG_RESULT($complCXXFLAGS)
8298
 
 
8299
 
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
8300
 
  AC_SUBST(WARN_CXXFLAGS)
8301
 
])
8302
 
 
8303
 
# Configure paths for GLIB
8304
 
# Owen Taylor     1997-2001
8305
 
 
8306
 
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
8307
 
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or 
8308
 
dnl gthread is specified in MODULES, pass to pkg-config
8309
 
dnl
8310
 
AC_DEFUN([AM_PATH_GLIB_2_0],
8311
 
[dnl 
8312
 
dnl Get the cflags and libraries from pkg-config
8313
 
dnl
8314
 
AC_ARG_ENABLE(glibtest, [  --disable-glibtest      do not try to compile and run a test GLIB program],
8315
 
                    , enable_glibtest=yes)
8316
 
 
8317
 
  pkg_config_args=glib-2.0
8318
 
  for module in . $4
8319
 
  do
8320
 
      case "$module" in
8321
 
         gmodule) 
8322
 
             pkg_config_args="$pkg_config_args gmodule-2.0"
8323
 
         ;;
8324
 
         gmodule-no-export) 
8325
 
             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
8326
 
         ;;
8327
 
         gobject) 
8328
 
             pkg_config_args="$pkg_config_args gobject-2.0"
8329
 
         ;;
8330
 
         gthread) 
8331
 
             pkg_config_args="$pkg_config_args gthread-2.0"
8332
 
         ;;
8333
 
      esac
8334
 
  done
8335
 
 
8336
 
  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
8337
 
 
8338
 
  no_glib=""
8339
 
 
8340
 
  if test x$PKG_CONFIG != xno ; then
8341
 
    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
8342
 
      :
8343
 
    else
8344
 
      echo *** pkg-config too old; version 0.7 or better required.
8345
 
      no_glib=yes
8346
 
      PKG_CONFIG=no
8347
 
    fi
8348
 
  else
8349
 
    no_glib=yes
8350
 
  fi
8351
 
 
8352
 
  min_glib_version=ifelse([$1], ,2.0.0,$1)
8353
 
  AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
8354
 
 
8355
 
  if test x$PKG_CONFIG != xno ; then
8356
 
    ## don't try to run the test against uninstalled libtool libs
8357
 
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
8358
 
          echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
8359
 
          enable_glibtest=no
8360
 
    fi
8361
 
 
8362
 
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
8363
 
          :
8364
 
    else
8365
 
          no_glib=yes
8366
 
    fi
8367
 
  fi
8368
 
 
8369
 
  if test x"$no_glib" = x ; then
8370
 
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
8371
 
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
8372
 
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
8373
 
 
8374
 
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
8375
 
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
8376
 
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
8377
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
8378
 
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
8379
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
8380
 
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
8381
 
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
8382
 
    if test "x$enable_glibtest" = "xyes" ; then
8383
 
      ac_save_CFLAGS="$CFLAGS"
8384
 
      ac_save_LIBS="$LIBS"
8385
 
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
8386
 
      LIBS="$GLIB_LIBS $LIBS"
8387
 
dnl
8388
 
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
8389
 
dnl checks the results of pkg-config to some extent)
8390
 
dnl
8391
 
      rm -f conf.glibtest
8392
 
      AC_TRY_RUN([
8393
 
#include <glib.h>
8394
 
#include <stdio.h>
8395
 
#include <stdlib.h>
8396
 
 
8397
 
int 
8398
 
main ()
8399
 
{
8400
 
  int major, minor, micro;
8401
 
  char *tmp_version;
8402
 
 
8403
 
  system ("touch conf.glibtest");
8404
 
 
8405
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
8406
 
  tmp_version = g_strdup("$min_glib_version");
8407
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8408
 
     printf("%s, bad version string\n", "$min_glib_version");
8409
 
     exit(1);
8410
 
   }
8411
 
 
8412
 
  if ((glib_major_version != $glib_config_major_version) ||
8413
 
      (glib_minor_version != $glib_config_minor_version) ||
8414
 
      (glib_micro_version != $glib_config_micro_version))
8415
 
    {
8416
 
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
8417
 
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
8418
 
             glib_major_version, glib_minor_version, glib_micro_version);
8419
 
      printf ("*** was found! If pkg-config was correct, then it is best\n");
8420
 
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
8421
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8422
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8423
 
      printf("*** required on your system.\n");
8424
 
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
8425
 
      printf("*** to point to the correct configuration files\n");
8426
 
    } 
8427
 
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
8428
 
           (glib_minor_version != GLIB_MINOR_VERSION) ||
8429
 
           (glib_micro_version != GLIB_MICRO_VERSION))
8430
 
    {
8431
 
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
8432
 
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
8433
 
      printf("*** library (version %d.%d.%d)\n",
8434
 
             glib_major_version, glib_minor_version, glib_micro_version);
8435
 
    }
8436
 
  else
8437
 
    {
8438
 
      if ((glib_major_version > major) ||
8439
 
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
8440
 
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
8441
 
      {
8442
 
        return 0;
8443
 
       }
8444
 
     else
8445
 
      {
8446
 
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
8447
 
               glib_major_version, glib_minor_version, glib_micro_version);
8448
 
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
8449
 
               major, minor, micro);
8450
 
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
8451
 
        printf("***\n");
8452
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
8453
 
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
8454
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
8455
 
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
8456
 
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
8457
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8458
 
        printf("*** so that the correct libraries are found at run-time))\n");
8459
 
      }
8460
 
    }
8461
 
  return 1;
8462
 
}
8463
 
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
8464
 
       CFLAGS="$ac_save_CFLAGS"
8465
 
       LIBS="$ac_save_LIBS"
8466
 
     fi
8467
 
  fi
8468
 
  if test "x$no_glib" = x ; then
8469
 
     AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
8470
 
     ifelse([$2], , :, [$2])     
8471
 
  else
8472
 
     AC_MSG_RESULT(no)
8473
 
     if test "$PKG_CONFIG" = "no" ; then
8474
 
       echo "*** A new enough version of pkg-config was not found."
8475
 
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
8476
 
     else
8477
 
       if test -f conf.glibtest ; then
8478
 
        :
8479
 
       else
8480
 
          echo "*** Could not run GLIB test program, checking why..."
8481
 
          ac_save_CFLAGS="$CFLAGS"
8482
 
          ac_save_LIBS="$LIBS"
8483
 
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
8484
 
          LIBS="$LIBS $GLIB_LIBS"
8485
 
          AC_TRY_LINK([
8486
 
#include <glib.h>
8487
 
#include <stdio.h>
8488
 
],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
8489
 
        [ echo "*** The test program compiled, but did not run. This usually means"
8490
 
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
8491
 
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
8492
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8493
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8494
 
          echo "*** is required on your system"
8495
 
          echo "***"
8496
 
          echo "*** If you have an old version installed, it is best to remove it, although"
8497
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
8498
 
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
8499
 
          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
8500
 
          CFLAGS="$ac_save_CFLAGS"
8501
 
          LIBS="$ac_save_LIBS"
8502
 
       fi
8503
 
     fi
8504
 
     GLIB_CFLAGS=""
8505
 
     GLIB_LIBS=""
8506
 
     GLIB_GENMARSHAL=""
8507
 
     GOBJECT_QUERY=""
8508
 
     GLIB_MKENUMS=""
8509
 
     ifelse([$3], , :, [$3])
8510
 
  fi
8511
 
  AC_SUBST(GLIB_CFLAGS)
8512
 
  AC_SUBST(GLIB_LIBS)
8513
 
  AC_SUBST(GLIB_GENMARSHAL)
8514
 
  AC_SUBST(GOBJECT_QUERY)
8515
 
  AC_SUBST(GLIB_MKENUMS)
8516
 
  rm -f conf.glibtest
8517
 
])
8518
 
 
8519
 
dnl AM_PATH_ORBIT2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
8520
 
dnl Test for ORBit2, and define ORBIT_CFLAGS and ORBIT_LIBS
8521
 
dnl
8522
 
AC_DEFUN([AM_PATH_ORBIT2],
8523
 
[dnl 
8524
 
dnl Get the cflags and libraries from the orbit2-config script
8525
 
dnl
8526
 
AC_ARG_WITH(orbit-prefix,[  --with-orbit-prefix=PFX   Prefix where ORBIT is installed (optional)],
8527
 
            orbit_config_prefix="$withval", orbit_config_prefix="")
8528
 
AC_ARG_WITH(orbit-exec-prefix,[  --with-orbit-exec-prefix=PFX Exec prefix where ORBIT is installed (optional)],
8529
 
            orbit_config_exec_prefix="$withval", orbit_config_exec_prefix="")
8530
 
AC_ARG_ENABLE(orbittest, [  --disable-orbittest       Do not try to compile and run a test ORBIT program],
8531
 
                    , enable_orbittest=yes)
8532
 
 
8533
 
  for module in . $4
8534
 
  do
8535
 
      case "$module" in
8536
 
         server) 
8537
 
             orbit_config_args="$orbit_config_args server"
8538
 
         ;;
8539
 
         client) 
8540
 
             orbit_config_args="$orbit_config_args client"
8541
 
         ;;
8542
 
      esac
8543
 
  done
8544
 
  if test x$orbit_config_args = x ; then
8545
 
        orbit_config_args=server
8546
 
  fi
8547
 
 
8548
 
  if test x$orbit_config_exec_prefix != x ; then
8549
 
     orbit_config_args="$orbit_config_args --exec-prefix=$orbit_config_exec_prefix"
8550
 
     if test x${ORBIT_CONFIG+set} != xset ; then
8551
 
        ORBIT_CONFIG=$orbit_config_exec_prefix/bin/orbit2-config
8552
 
     fi
8553
 
  fi
8554
 
  if test x$orbit_config_prefix != x ; then
8555
 
     orbit_config_args="$orbit_config_args --prefix=$orbit_config_prefix"
8556
 
     if test x${ORBIT_CONFIG+set} != xset ; then
8557
 
        ORBIT_CONFIG=$orbit_config_prefix/bin/orbit2-config
8558
 
     fi
8559
 
  fi
8560
 
 
8561
 
  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
8562
 
  AC_PATH_PROG(ORBIT_CONFIG, orbit2-config, no)
8563
 
  min_orbit_version=ifelse([$1], , 2.3.0, $1)
8564
 
  AC_MSG_CHECKING(for ORBit - version >= $min_orbit_version)
8565
 
  no_orbit=""
8566
 
  if test "$ORBIT_CONFIG" = "no" ; then
8567
 
    no_orbit=yes
8568
 
  else
8569
 
    ORBIT_CFLAGS=`$ORBIT_CONFIG $orbit_config_args --cflags`
8570
 
    ORBIT_LIBS=`$ORBIT_CONFIG $orbit_config_args --libs`
8571
 
    ORBIT_VERSION=`$PKG_CONFIG --modversion ORBit-2.0`
8572
 
    orbit_config_major_version=`echo $ORBIT_VERSION | \
8573
 
           sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
8574
 
    orbit_config_minor_version=`echo $ORBIT_VERSION | \
8575
 
           sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
8576
 
    orbit_config_micro_version=`echo $ORBIT_VERSION | \
8577
 
           sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
8578
 
    if test "x$enable_orbittest" = "xyes" ; then
8579
 
      ac_save_CFLAGS="$CFLAGS"
8580
 
      ac_save_LIBS="$LIBS"
8581
 
      CFLAGS="$CFLAGS $ORBIT_CFLAGS"
8582
 
      LIBS="$ORBIT_LIBS $LIBS"
8583
 
dnl
8584
 
dnl Now check if the installed ORBIT is sufficiently new. (Also sanity
8585
 
dnl checks the results of orbit2-config to some extent
8586
 
dnl
8587
 
      rm -f conf.orbittest
8588
 
      AC_TRY_RUN([
8589
 
#include <orbit/orbit.h>
8590
 
#include <stdio.h>
8591
 
#include <stdlib.h>
8592
 
 
8593
 
int 
8594
 
main ()
8595
 
{
8596
 
  int major, minor, micro;
8597
 
  char *tmp_version;
8598
 
 
8599
 
  system ("touch conf.orbittest");
8600
 
 
8601
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
8602
 
  tmp_version = g_strdup("$min_orbit_version");
8603
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8604
 
     printf("%s, bad version string\n", "$min_orbit_version");
8605
 
     exit(1);
8606
 
   }
8607
 
 
8608
 
  if ((orbit_major_version != $orbit_config_major_version) ||
8609
 
      (orbit_minor_version != $orbit_config_minor_version) ||
8610
 
      (orbit_micro_version != $orbit_config_micro_version))
8611
 
    {
8612
 
      printf("\n*** 'pkg-config --version ORBit-2.0' returned %d.%d.%d, but ORBit (%d.%d.%d)\n", 
8613
 
             $orbit_config_major_version, $orbit_config_minor_version, $orbit_config_micro_version,
8614
 
             orbit_major_version, orbit_minor_version, orbit_micro_version);
8615
 
      printf ("*** was found! If orbit2-config was correct, then it is best\n");
8616
 
      printf ("*** to remove the old version of ORBit. You may also be able to fix the error\n");
8617
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8618
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8619
 
      printf("*** required on your system.\n");
8620
 
      printf("*** If orbit2-config was wrong, set the environment variable ORBIT_CONFIG\n");
8621
 
      printf("*** to point to the correct copy of orbit2-config, and remove the file config.cache\n");
8622
 
      printf("*** before re-running configure\n");
8623
 
    } 
8624
 
#if defined (ORBIT_MAJOR_VERSION) && defined (ORBIT_MINOR_VERSION) && defined (ORBIT_MICRO_VERSION)
8625
 
  else if ((orbit_major_version != ORBIT_MAJOR_VERSION) ||
8626
 
           (orbit_minor_version != ORBIT_MINOR_VERSION) ||
8627
 
           (orbit_micro_version != ORBIT_MICRO_VERSION))
8628
 
    {
8629
 
      printf("*** ORBit header files (version %d.%d.%d) do not match\n",
8630
 
             ORBIT_MAJOR_VERSION, ORBIT_MINOR_VERSION, ORBIT_MICRO_VERSION);
8631
 
      printf("*** library (version %d.%d.%d)\n",
8632
 
             orbit_major_version, orbit_minor_version, orbit_micro_version);
8633
 
    }
8634
 
#endif /* defined (ORBIT_MAJOR_VERSION) ... */
8635
 
  else
8636
 
    {
8637
 
      if ((orbit_major_version > major) ||
8638
 
        ((orbit_major_version == major) && (orbit_minor_version > minor)) ||
8639
 
        ((orbit_major_version == major) && (orbit_minor_version == minor) && (orbit_micro_version >= micro)))
8640
 
      {
8641
 
        return 0;
8642
 
       }
8643
 
     else
8644
 
      {
8645
 
        printf("\n*** An old version of ORBit (%d.%d.%d) was found.\n",
8646
 
               orbit_major_version, orbit_minor_version, orbit_micro_version);
8647
 
        printf("*** You need a version of ORBit newer than %d.%d.%d. The latest version of\n",
8648
 
               major, minor, micro);
8649
 
        printf("*** ORBit is always available from ftp://ftp.orbit.org.\n");
8650
 
        printf("***\n");
8651
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
8652
 
        printf("*** probably means that the wrong copy of the orbit2-config shell script is\n");
8653
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
8654
 
        printf("*** of ORBit, but you can also set the ORBIT_CONFIG environment to point to the\n");
8655
 
        printf("*** correct copy of orbit2-config. (In this case, you will have to\n");
8656
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8657
 
        printf("*** so that the correct libraries are found at run-time))\n");
8658
 
      }
8659
 
    }
8660
 
  return 1;
8661
 
}
8662
 
],, no_orbit=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
8663
 
       CFLAGS="$ac_save_CFLAGS"
8664
 
       LIBS="$ac_save_LIBS"
8665
 
     fi
8666
 
  fi
8667
 
  if test "x$no_orbit" = x ; then
8668
 
     AC_MSG_RESULT(yes)
8669
 
     ifelse([$2], , :, [$2])     
8670
 
  else
8671
 
     AC_MSG_RESULT(no)
8672
 
     if test "$ORBIT_CONFIG" = "no" ; then
8673
 
       echo "*** The orbit2-config script installed by ORBIT could not be found"
8674
 
       echo "*** If ORBit was installed in PREFIX, make sure PREFIX/bin is in"
8675
 
       echo "*** your path, or set the ORBIT_CONFIG environment variable to the"
8676
 
       echo "*** full path to orbit2-config."
8677
 
     else
8678
 
       if test -f conf.orbittest ; then
8679
 
        :
8680
 
       else
8681
 
          echo "*** Could not run ORBIT test program, checking why..."
8682
 
          CFLAGS="$CFLAGS $ORBIT_CFLAGS"
8683
 
          LIBS="$LIBS $ORBIT_LIBS"
8684
 
          AC_TRY_LINK([
8685
 
#include <orbit/orbit.h>
8686
 
#include <stdio.h>
8687
 
],      [ return ((orbit_major_version) || (orbit_minor_version) || (orbit_micro_version)); ],
8688
 
        [ echo "*** The test program compiled, but did not run. This usually means"
8689
 
          echo "*** that the run-time linker is not finding ORBit or finding the wrong"
8690
 
          echo "*** version of ORBit. If it is not finding ORBit, you'll need to set your"
8691
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8692
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8693
 
          echo "*** is required on your system"
8694
 
          echo "***"
8695
 
          echo "*** If you have an old version installed, it is best to remove it, although"
8696
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8697
 
          echo "***"
8698
 
          echo "*** If you have a RedHat 5.0 system, you should remove the ORBit package that"
8699
 
          echo "*** came with the system with the command"
8700
 
          echo "***"
8701
 
          echo "***    rpm --erase --nodeps orbit orbit-devel" ],
8702
 
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
8703
 
          echo "*** exact error that occured. This usually means ORBIT was incorrectly installed"
8704
 
          echo "*** or that you have moved ORBit since it was installed. In the latter case, you"
8705
 
          echo "*** may want to edit the orbit2-config script: $ORBIT_CONFIG" ])
8706
 
          CFLAGS="$ac_save_CFLAGS"
8707
 
          LIBS="$ac_save_LIBS"
8708
 
       fi
8709
 
     fi
8710
 
     ORBIT_CFLAGS=""
8711
 
     ORBIT_LIBS=""
8712
 
     ifelse([$3], , :, [$3])
8713
 
  fi
8714
 
 
8715
 
  AC_PATH_PROG(ORBIT_IDL, orbit-idl-2, ifelse([$3], , :, [$3]))
8716
 
  AC_SUBST(ORBIT_CFLAGS)
8717
 
  AC_SUBST(ORBIT_LIBS)
8718
 
  AC_SUBST(ORBIT_IDL)
8719
 
  rm -f conf.orbittest
8720
 
])
8721
 
 
8722
 
dnl AM_GCONF_SOURCE_2
8723
 
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
8724
 
dnl  (i.e. pass to gconftool-2
8725
 
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
8726
 
dnl  you should install foo.schemas files
8727
 
dnl
8728
 
 
8729
 
AC_DEFUN([AM_GCONF_SOURCE_2],
8730
 
[
8731
 
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
8732
 
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
8733
 
  else
8734
 
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
8735
 
  fi
8736
 
 
8737
 
  AC_ARG_WITH(gconf-source, 
8738
 
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
8739
 
 
8740
 
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
8741
 
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
8742
 
 
8743
 
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
8744
 
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
8745
 
  fi
8746
 
 
8747
 
  AC_ARG_WITH(gconf-schema-file-dir, 
8748
 
  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
8749
 
 
8750
 
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
8751
 
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
8752
 
 
8753
 
  AC_ARG_ENABLE(schemas-install,
8754
 
     [  --disable-schemas-install       Disable the schemas installation],
8755
 
     [case ${enableval} in
8756
 
       yes|no) ;;
8757
 
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
8758
 
      esac])
8759
 
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
8760
 
])
8761
 
 
8762
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
8763
 
8764
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8765
 
#
8766
 
# This program is free software; you can redistribute it and/or modify
8767
 
# it under the terms of the GNU General Public License as published by
8768
 
# the Free Software Foundation; either version 2 of the License, or
8769
 
# (at your option) any later version.
8770
 
#
8771
 
# This program is distributed in the hope that it will be useful, but
8772
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
8773
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8774
 
# General Public License for more details.
8775
 
#
8776
 
# You should have received a copy of the GNU General Public License
8777
 
# along with this program; if not, write to the Free Software
8778
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8779
 
#
8780
 
# As a special exception to the GNU General Public License, if you
8781
 
# distribute this file as part of a program that contains a
8782
 
# configuration script generated by Autoconf, you may include it under
8783
 
# the same distribution terms that you use for the rest of that program.
8784
 
 
8785
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
8786
 
# ----------------------------------
8787
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8788
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8789
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8790
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
8791
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8792
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8793
 
fi
8794
 
if test -n "$PKG_CONFIG"; then
8795
 
        _pkg_min_version=m4_default([$1], [0.9.0])
8796
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8797
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8798
 
                AC_MSG_RESULT([yes])
8799
 
        else
8800
 
                AC_MSG_RESULT([no])
8801
 
                PKG_CONFIG=""
8802
 
        fi
8803
 
                
8804
 
fi[]dnl
8805
 
])# PKG_PROG_PKG_CONFIG
8806
 
 
8807
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8808
 
#
8809
 
# Check to see whether a particular set of modules exists.  Similar
8810
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8811
 
#
8812
 
#
8813
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
8814
 
# this or PKG_CHECK_MODULES is called, or make sure to call
8815
 
# PKG_CHECK_EXISTS manually
8816
 
# --------------------------------------------------------------
8817
 
AC_DEFUN([PKG_CHECK_EXISTS],
8818
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8819
 
if test -n "$PKG_CONFIG" && \
8820
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8821
 
  m4_ifval([$2], [$2], [:])
8822
 
m4_ifvaln([$3], [else
8823
 
  $3])dnl
8824
 
fi])
8825
 
 
8826
 
 
8827
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8828
 
# ---------------------------------------------
8829
 
m4_define([_PKG_CONFIG],
8830
 
[if test -n "$PKG_CONFIG"; then
8831
 
    if test -n "$$1"; then
8832
 
        pkg_cv_[]$1="$$1"
8833
 
    else
8834
 
        PKG_CHECK_EXISTS([$3],
8835
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8836
 
                         [pkg_failed=yes])
8837
 
    fi
8838
 
else
8839
 
        pkg_failed=untried
8840
 
fi[]dnl
8841
 
])# _PKG_CONFIG
8842
 
 
8843
 
# _PKG_SHORT_ERRORS_SUPPORTED
8844
 
# -----------------------------
8845
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
8846
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8847
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8848
 
        _pkg_short_errors_supported=yes
8849
 
else
8850
 
        _pkg_short_errors_supported=no
8851
 
fi[]dnl
8852
 
])# _PKG_SHORT_ERRORS_SUPPORTED
8853
 
 
8854
 
 
8855
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
8856
 
# [ACTION-IF-NOT-FOUND])
8857
 
#
8858
 
#
8859
 
# Note that if there is a possibility the first call to
8860
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
8861
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
8862
 
#
8863
 
#
8864
 
# --------------------------------------------------------------
8865
 
AC_DEFUN([PKG_CHECK_MODULES],
8866
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8867
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
8868
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
8869
 
 
8870
 
pkg_failed=no
8871
 
AC_MSG_CHECKING([for $1])
8872
 
 
8873
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
8874
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
8875
 
 
8876
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
8877
 
and $1[]_LIBS to avoid the need to call pkg-config.
8878
 
See the pkg-config man page for more details.])
8879
 
 
8880
 
if test $pkg_failed = yes; then
8881
 
        _PKG_SHORT_ERRORS_SUPPORTED
8882
 
        if test $_pkg_short_errors_supported = yes; then
8883
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
8884
 
        else 
8885
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
8886
 
        fi
8887
 
        # Put the nasty error message in config.log where it belongs
8888
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8889
 
 
8890
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
8891
 
[Package requirements ($2) were not met:
8892
 
 
8893
 
$$1_PKG_ERRORS
8894
 
 
8895
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8896
 
installed software in a non-standard prefix.
8897
 
 
8898
 
_PKG_TEXT
8899
 
])],
8900
 
                [$4])
8901
 
elif test $pkg_failed = untried; then
8902
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
8903
 
[The pkg-config script could not be found or is too old.  Make sure it
8904
 
is in your PATH or set the PKG_CONFIG environment variable to the full
8905
 
path to pkg-config.
8906
 
 
8907
 
_PKG_TEXT
8908
 
 
8909
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
8910
 
                [$4])
8911
 
else
8912
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8913
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8914
 
        AC_MSG_RESULT([yes])
8915
 
        ifelse([$3], , :, [$3])
8916
 
fi[]dnl
8917
 
])# PKG_CHECK_MODULES
8918
 
 
 
8350
rm -rf conftest.dir
 
8351
 
 
8352
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
8353
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
8354
AC_SUBST([am__tar])
 
8355
AC_SUBST([am__untar])
 
8356
]) # _AM_PROG_TAR
 
8357
 
 
8358
m4_include([acinclude.m4])