source: trunk/third/gnome-vfs/configure.in @ 18153

Revision 18153, 16.4 KB checked in by ghudson, 22 years ago (diff)
Favor libiconv over libc iconv, since libiconv's header file will get used if it's in the environment.
Line 
1AC_INIT(libgnomevfs/gnome-vfs.h)
2AM_INIT_AUTOMAKE(gnome-vfs, 1.0.5)
3
4GNOME_COMMON_INIT
5
6AM_PROG_XML_I18N_TOOLS
7
8AM_CONFIG_HEADER(config.h)
9AM_ACLOCAL_INCLUDE(macros)
10
11AM_MAINTAINER_MODE
12
13AC_ISC_POSIX
14AC_PROG_CC
15AC_PROG_CPP
16AC_PROG_AWK
17AM_PROG_LIBTOOL
18
19PKG_CHECK_MODULES(MIME_DATABASE, gnome-mime-data-2.0)
20
21dnl ==========================================================================
22dnl
23dnl If you add a version number here, you *must* either use it with
24dnl EAZEL_VERSION_INSIST or add an AC_SUBST line for it, or it will
25dnl never make it into the spec file!
26dnl
27dnl ==========================================================================
28
29GLIB_REQUIRED=1.2.6
30GCONF_REQUIRED=0.9
31OAF_REQUIRED=0.3.0
32XML_REQUIRED=1.8.8
33
34AC_SUBST(GLIB_REQUIRED)
35AC_SUBST(GCONF_REQUIRED)
36AC_SUBST(OAF_REQUIRED)
37AC_SUBST(XML_REQUIRED)
38
39dnl ===========================================================================
40
41dnl EAZEL_VERSION_CANON(version)
42dnl                     1
43
44AC_DEFUN(EAZEL_VERSION_CANON, [`
45
46        dnl Assumes that there are no more than 999 revisions at a level,
47        dnl no more than three levels of revision.
48        dnl
49        dnl Any more than that, and test starts messing up the numeric
50        dnl comparisons because its integers overflow, and there's no
51        dnl way to do string comparisons in the shell.  Grr.
52        dnl
53        dnl Must come up with some way to fix this.
54
55        echo "$1" |
56        tr . '\012' |
57        sed -e 's/^/000/' -e 's/^.*\(...\)/\1/' |
58        tr -d '\012' |
59        sed 's/$/000000000/
60             s/^\(.........\).*/\1/'
61`])
62
63dnl EAZEL_VERSION_INSIST(package, get-version-cmd, operator, want-version-var)
64dnl                      1        2                3         4
65
66AC_DEFUN(EAZEL_VERSION_INSIST, [
67        ez_want_version=[$]$4
68
69        case "$3" in
70                ">")    ez_operator=-gt ;;
71                ">=")   ez_operator=-ge ;;
72                "<")    ez_operator=-lt ;;
73                "<=")   ez_operator=-le ;;
74                "=")    ez_operator=-eq ;;
75                "!=")   ez_operator=-ne ;;
76                *)      AC_ERROR(Unknown operator $3 in configure script) ;;
77        esac
78
79        AC_MSG_CHECKING(for $1 $3 [$ez_want_version])
80
81        if ez_installed_version="`$2`"
82        then
83                AC_MSG_RESULT([$ez_installed_version])
84        else
85                AC_ERROR($2 failed)
86        fi
87
88        if test "EAZEL_VERSION_CANON([$ez_installed_version])" "$ez_operator" \
89                "EAZEL_VERSION_CANON([$ez_want_version])"
90        then
91                :
92                AC_SUBST($4)
93        else
94                AC_ERROR($1 version [$ez_want_version] is required.)
95        fi
96])
97
98dnl ===========================================================================
99
100dnl ====================================
101dnl =
102dnl = Profiling support
103dnl =
104dnl ====================================
105ENABLE_PROFILER=
106AC_ARG_ENABLE(profiler,
107[  --enable-profiler            Enable profiler],
108ENABLE_PROFILER=1
109AC_DEFINE(ENABLE_PROFILER))
110
111if test "x$ENABLE_PROFILER" = "x1"
112then
113        CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES"
114        LDFLAGS="/gnome/PROFILE/lib/libprofiler.so -lpthread"
115fi
116
117AC_SUBST(ENABLE_PROFILER)
118AM_CONDITIONAL(ENABLE_PROFILER, test "x$ENABLE_PROFILER" = "x1")
119dnl ====================================
120dnl = Profiling support
121dnl ====================================
122
123dnl Version of the GNOME Platform (1002000 for GNOME 1.2.x)
124GNOME_PLATFORM_VERSION=1002000
125AC_DEFINE_UNQUOTED(GNOME_PLATFORM_VERSION, $GNOME_PLATFORM_VERSION)
126AM_CONDITIONAL(PLATFORM_GNOME_2, test $GNOME_PLATFORM_VERSION -ge 1095000)
127
128dnl Init GNOME for the GNOME 1.2 platform
129GNOME_INIT
130VFS_GNOME_CFLAGS="`gnome-config --cflags gnome`"
131VFS_GNOMEUI_CFLAGS="`gnome-config --cflags gnome gnomeui`"
132VFS_GNOMEGNORBA_CFLAGS="`gnome-config --cflags gnome gnomeui gnorba`"
133VFS_GNOME_LIBS="`gnome-config --libs gnome`"
134VFS_GNOMEUI_LIBS="`gnome-config --libs gnome gnomeui`"
135VFS_GNOMEGNORBA_LIBS="`gnome-config --libs gnome gnomeui gnorba`"
136VFS_GLIB_CONFIG="glib-config"
137AC_SUBST(VFS_GNOME_CFLAGS)
138AC_SUBST(VFS_GNOMEUI_CFLAGS)
139AC_SUBST(VFS_GNOMEGNORBA_CFLAGS)
140AC_SUBST(VFS_GNOME_LIBS)
141AC_SUBST(VFS_GNOMEUI_LIBS)
142AC_SUBST(VFS_GNOMEGNORBA_LIBS)
143
144AC_ARG_ENABLE(gconf,
145              [  --enable-gconf          Enable GConf access backend],
146              gconf_enabled="yes")
147AC_ARG_ENABLE(libefs,
148              [  --disable-libefs={yes|no}       Disable libefs access backend],
149              libefs_disabled="yes")
150AC_ARG_WITH(default-backend,
151              [  --with-default-backend=(corba|pthread)             ],
152              default_backend="$withval")
153
154AM_PATH_GLIB($GLIB_REQUIRED,,
155  AC_MSG_ERROR([
156*** GLIB 1.2.0 or better is required. The latest version of GLIB
157*** is always available from ftp://ftp.gtk.org/.]),
158    gmodule gthread)
159AC_SUBST(GLIB_LIBS)
160AC_SUBST(GLIB_CFLAGS)
161
162AC_DEFINE(USING_OAF)
163AC_SUBST(OAF_LIBS)
164AC_SUBST(OAF_CFLAGS)
165
166AC_DEFINE(HAVE_GCONF)
167
168AM_PATH_GTK(1.2.0,,
169  AC_MSG_ERROR([
170*** Gtk+ 1.2.0 or better is required. The latest version of Gtk+
171*** is always available from ftp://ftp.gtk.org/.]),
172    gmodule gthread)
173
174cflags_set=yes
175GNOME_COMPILE_WARNINGS
176VFS_CFLAGS="$warnCFLAGS $complCFLAGS"
177
178GNOME_PTHREAD_CHECK
179dnl semaphore functions are in librt.so on solaris
180AC_CHECK_LIB(rt, sem_wait)
181
182dnl Don't blindly #define them if they're typedef'ed in <sys/types.h>
183AM_GNOME_SIZE_T
184AM_GNOME_OFF_T
185
186ALL_LINGUAS="az ca da de el es eu fi fr ga gl hu it ja ko lt nl nn no pl pt pt_BR ro ru sk sl sv tr uk wa zh_TW"
187AM_GNOME_GETTEXT
188
189AC_FUNC_ALLOCA
190AC_CHECK_FUNCS(getdtablesize open64 lseek64 statvfs)
191AC_REPLACE_FUNCS(getdelim)
192
193dnl
194dnl This is so that we find the 64bit type
195dnl
196AC_CHECK_SIZEOF(int)
197AC_CHECK_SIZEOF(long)
198AC_CHECK_SIZEOF(long long)
199
200VFS_SIZE="unsigned long"
201VFS_OFFSET="long"
202VFS_SIZE_IS="UNSIGNED_LONG"
203VFS_OFFSET_IS="LONG"
204VFS_SIZE_PRINTF="lu"
205VFS_OFFSET_PRINTF="ld"
206
207dnl
208dnl See if any of the types is 64 bits, and in case it is, use it
209dnl Note: We test an (int) even though I think using (long) would be fine.
210dnl       This is because glib does it this way for gint64 and so there
211dnl       is probably a reason behind it
212dnl
213case 8 in
214$ac_cv_sizeof_int)
215  VFS_SIZE="unsigned int"
216  VFS_OFFSET="int"
217  VFS_SIZE_IS="UNSIGNED_INT"
218  VFS_OFFSET_IS="INT"
219  VFS_SIZE_PRINTF="u"
220  VFS_OFFSET_PRINTF="d"
221  ;;
222$ac_cv_sizeof_long)
223  # Nothing happens here, we are already using a long
224  ;;
225$ac_cv_sizeof_long_long)
226  VFS_SIZE="unsigned long long"
227  VFS_OFFSET="long long"
228  VFS_SIZE_IS="UNSIGNED_LONG_LONG"
229  VFS_OFFSET_IS="LONG_LONG"
230  VFS_SIZE_PRINTF="Lu"
231  VFS_OFFSET_PRINTF="Ld"
232  ;;
233esac
234
235AC_SUBST(VFS_SIZE)
236AC_SUBST(VFS_OFFSET)
237AC_SUBST(VFS_SIZE_IS)
238AC_SUBST(VFS_OFFSET_IS)
239AC_SUBST(VFS_SIZE_PRINTF)
240AC_SUBST(VFS_OFFSET_PRINTF)
241
242AC_CHECK_HEADERS(sys/resource.h sys/vfs.h sys/mount.h sys/statvfs.h)
243
244dnl turn warnings into errors to enforce clean code
245
246AC_ARG_ENABLE(more-warnings,
247[  --enable-more-warnings  Maximum compiler warnings],
248set_more_warnings="$enableval",[
249if test -f $srcdir/CVSVERSION; then
250        set_more_warnings=yes
251else
252        set_more_warnings=no
253fi
254])
255
256WERROR=""
257if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
258        echo "enable compile warnings = $set_more_warnings"
259        VFS_CFLAGS="-Wall \
260        -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
261        -Wnested-externs -Wpointer-arith"
262        WERROR="-Werror"
263
264        for option in -Wsign-promo -Wno-sign-compare; do
265                SAVE_CFLAGS="$CFLAGS"
266                CFLAGS="$VFS_CFLAGS $option $CFLAGS"
267                AC_MSG_CHECKING([whether gcc understands $option])
268                AC_TRY_COMPILE([], [],
269                        has_option=yes,
270                        has_option=no,)
271                CFLAGS="$SAVE_CFLAGS"
272                if test $has_option = yes; then
273                  VFS_CFLAGS="$VFS_CFLAGS $option"
274                fi
275                AC_MSG_RESULT($has_option)
276                unset has_option
277                unset SAVE_CFLAGS
278        done
279        unset option
280fi
281AC_SUBST(WERROR)
282AC_SUBST(VFS_CFLAGS)
283
284using_oaf=no
285AC_PATH_PROG(OAF_CONFIG,oaf-config,no)
286if test x$OAF_CONFIG = xno; then
287        AC_MSG_RESULT("The program oaf-config was not found")
288        OAF_LIBS=""
289        OAF_CFLAGS=""
290else
291        EAZEL_VERSION_INSIST(oaf, $OAF_CONFIG --version, >=, OAF_REQUIRED)
292        using_oaf=yes
293        AC_DEFINE(USING_OAF)
294        OAF_LIBS=`$OAF_CONFIG --libs`
295        OAF_CFLAGS=`$OAF_CONFIG --cflags`
296fi
297AM_CONDITIONAL(USING_OAF, test x"$using_oaf" = "xyes")
298AC_SUBST(OAF_LIBS)
299AC_SUBST(OAF_CFLAGS)
300
301dnl
302dnl gnome vfs Documentation
303dnl
304GNOME_VFS_DIR=`(cd $srcdir; pwd)`
305AC_SUBST(GNOME_VFS_DIR)
306
307AM_CONDITIONAL(INSIDE_GNOME_DOCU, false)
308
309dnl
310dnl gnome-xml libraries - for WebDAV support in modules/http-method.c
311dnl
312
313AC_PATH_PROG(XML_CONFIG,xml-config,no)
314if test x$XML_CONFIG = "xno"; then
315  AC_MSG_ERROR(Couldn't find xml-config please install the gnome-xml package)
316fi
317
318XML_VERSION="`$XML_CONFIG --version`"
319case "$XML_VERSION" in
320        1.*)
321                :
322        ;;
323
324        *)
325                AC_ERROR(gnome-vfs needs gnome-xml version 1.x not $XML_VERSION)
326        ;;
327esac
328
329
330XML_LIBS=`$XML_CONFIG --libs`
331XML_CFLAGS=`$XML_CONFIG --cflags`
332AC_SUBST(XML_LIBS)
333AC_SUBST(XML_CFLAGS)
334
335dnl
336dnl gconf
337dnl
338
339AM_PATH_GCONF($GCONF_REQUIRED,,,gconf gconf-gtk)
340AC_SUBST(GCONF_LIBS)
341AC_SUBST(GCONF_CFLAGS)
342AC_SUBST(GTK_LIBS)
343AC_SUBST(GTK_CFLAGS)
344
345dnl
346dnl efs-method.c
347dnl
348
349dnl if test "x$libefs_disabled" = xyes; then
350dnl     LIBEFS_CONFIG=no
351dnl else
352dnl     AC_PATH_PROG(LIBEFS_CONFIG, libefs-config, no)
353dnl fi
354dnl
355dnl if test "x$LIBEFS_CONFIG" != xno; then
356dnl     LIBEFS_LIBS=`$LIBEFS_CONFIG --libs`
357dnl     LIBEFS_CFLAGS=`$LIBEFS_CONFIG --cflags`
358dnl fi
359dnl
360
361AM_CONDITIONAL(HAVE_LIBEFS, false)
362LIBEFS_LIBS=""
363LIBEFS_CFLAGS=""
364AC_SUBST(LIBEFS_LIBS)
365AC_SUBST(LIBEFS_CFLAGS)
366
367dnl
368dnl ftp-method.c
369dnl
370AC_DEFUN(AC_STRUCT_LINGER, [
371av_struct_linger=no
372AC_MSG_CHECKING(struct linger is available)
373AC_TRY_RUN([
374#include <sys/types.h>
375#include <sys/socket.h>
376
377struct linger li;
378
379main ()
380{
381    li.l_onoff = 1;
382    li.l_linger = 120;
383    exit (0);
384}
385],[
386AC_DEFINE(HAVE_STRUCT_LINGER)
387av_struct_linger=yes
388],[
389av_struct_linger=no
390],[
391av_struct_linger=no
392])
393AC_MSG_RESULT($av_struct_linger)
394])
395
396AC_CHECK_LIB(nsl, t_accept)
397AC_CHECK_LIB(socket, socket)
398
399have_socket=no
400AC_CHECK_FUNCS(socket, have_socket=yes)
401if test $have_socket = no; then
402  # socket is not in the default libraries.  See if it's in some other.
403  for lib in bsd socket inet; do
404    AC_CHECK_LIB($lib, socket, [
405          LIBS="$LIBS -l$lib"
406          have_socket=yes
407          AC_DEFINE(HAVE_SOCKET)
408          break])
409  done
410fi
411
412have_gethostbyname=no
413AC_CHECK_FUNC(gethostbyname, have_gethostbyname=yes)
414if test $have_gethostbyname = no; then
415  # gethostbyname is not in the default libraries.  See if it's in some other.
416  for lib in bsd socket inet; do
417    AC_CHECK_LIB($lib, gethostbyname, [LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break])
418  done
419fi
420
421AC_CHECK_LIB(bz2, bzCompressInit, AC_DEFINE(HAVE_OLDER_BZIP2))
422
423if test $have_socket = yes; then
424    AC_STRUCT_LINGER
425fi
426
427dnl modules/cdda
428
429AM_CONDITIONAL(HAVE_CDDA, false);
430AC_CHECK_HEADERS(cdda_interface.h cdda_paranoia.h, [
431        CDDA_LIBS="$CDDA_LIBS -lcdda_paranoia, -lcdda_interface";
432                AM_CONDITIONAL(HAVE_CDDA, true);
433        ])
434
435dnl ******************************
436dnl OpenSSL
437dnl ******************************
438
439AC_ARG_WITH(openssl-includes, [  --with-openssl-includes=PREFIX     Location of OpenSSL includes.],
440        with_openssl_includes="$withval", with_openssl_includes="/usr/include")
441have_openssl_includes="no"
442if test "x${with_openssl_includes}" != "xno"; then
443        CPPFLAGS_save="$CPPFLAGS"
444       
445        AC_MSG_CHECKING(for OpenSSL includes)
446        AC_MSG_RESULT("")
447       
448        CPPFLAGS="$CPPFLAGS -I$with_openssl_includes"
449        AC_CHECK_HEADERS(openssl/ssl.h openssl/x509.h, [ openssl_includes="yes" ])
450        CPPFLAGS="$CPPFLAGS_save"
451       
452        if test "x{$openssl_includes}" != "xno" -a "x{$openssl_includes}" != "x"; then
453                have_openssl_includes="yes"
454                OPENSSL_CFLAGS="-I$with_openssl_includes"
455        else
456                OPENSSL_CFLAGS=""
457        fi
458else
459        AC_MSG_CHECKING(for OpenSSL includes)
460        AC_MSG_RESULT(no)
461fi
462
463AC_ARG_WITH(openssl-libs, [  --with-openssl-libs=PREFIX         Location of OpenSSL libs.],
464        with_openssl_libs="$withval", with_openssl_libs="/usr/lib")
465msg_openssl="no"
466if test "x${with_openssl_libs}" != "xno" -a "x${have_openssl_includes}" != "xno"; then
467        LDFLAGS_save="$LDFLAGS"
468       
469        AC_CACHE_CHECK([for OpenSSL libraries], openssl_libs,
470        [
471dnl How can we test to see if we need to link to libld for sure??
472dnl RedHat 6.2 seems to need to but Debian Woody doesn't
473                LDFLAGS="$LDFLAGS -L$with_openssl_libs -lssl -lcrypto -ldl"
474                AC_TRY_LINK_FUNC(SSL_read, openssl_libs="yes", openssl_libs="no")
475                LDFLAGS="$LDFLAGS_save"
476        ])
477        if test "x${openssl_libs}" != "xno"; then
478                AC_DEFINE(HAVE_OPENSSL)
479                msg_openssl="yes"
480                OPENSSL_LDFLAGS="-L$with_openssl_libs -lssl -lcrypto -ldl"
481                AM_CONDITIONAL(HAVE_SSL, true)
482        else
483                OPENSSL_CFLAGS=""
484                OPENSSL_LDFLAGS=""
485                AM_CONDITIONAL(HAVE_SSL, false)
486        fi
487else
488        AC_MSG_CHECKING(for OpenSSL libraries)
489        AC_MSG_RESULT(no)
490fi
491
492AC_SUBST(OPENSSL_CFLAGS)
493AC_SUBST(OPENSSL_LDFLAGS)
494
495
496
497 
498dnl **************************
499dnl *** Checks for gtk-doc ***
500dnl **************************
501
502AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])
503
504if test "x$with_html_dir" = "x" ; then
505  HTML_DIR='${datadir}/gtk-doc/html'
506else
507  HTML_DIR=$with_html_dir
508fi
509
510AC_SUBST(HTML_DIR)
511
512AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
513
514#gtk_doc_min_version=0.6
515#if $GTKDOC ; then
516#    gtk_doc_version=`gtkdoc-mkdb --version`
517#    AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])
518#    if perl <<EOF ; then
519#      exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&
520#            ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
521#EOF
522#      AC_MSG_RESULT(yes)
523#   else
524#      AC_MSG_RESULT(no)
525#      GTKDOC=false
526#   fi
527#fi
528
529AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
530AC_SUBST(HAVE_GTK_DOC)
531
532AC_CHECK_PROG(DB2HTML, db2html, true, false)
533AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)
534
535dnl Let people disable the gtk-doc stuff.
536AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc  Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
537
538if test "x$enable_gtk_doc" = xauto ; then
539  if test "x$GTKDOC" = xtrue ; then
540    enable_gtk_doc=yes
541  else
542    enable_gtk_doc=no
543  fi
544fi
545
546if test "x$enable_gtk_doc" = xyes; then
547        ENABLE_GTK_DOC=true
548else
549        ENABLE_GTK_DOC=false
550fi
551
552
553dnl NOTE: We need to use a separate automake conditional for this
554dnl       to make this work with the tarballs.
555AM_CONDITIONAL(ENABLE_GTK_DOC, $ENABLE_GTK_DOC)
556
557
558
559dnl Final touch
560
561AC_SUBST(CFLAGS)
562AC_SUBST(CPPFLAGS)
563AC_SUBST(LDFLAGS)
564
565dnl This is needed by `test/vfs-run.in'
566TOP_BUILDDIR="`pwd`"
567AC_SUBST(TOP_BUILDDIR)
568
569dnl
570dnl Stuff for vfsConf.sh
571dnl
572
573VFS_LIBS="-lgnomevfs $XML_LIBS $OAF_LIBS $GCONF_LIBS $GLIB_LIBS"
574VFS_LIBDIR="-L${libdir}"
575VFS_INCLUDEDIR="-I${includedir}/gnome-vfs-1.0 -I${libdir}/gnome-vfs-1.0/include $XML_CFLAGS $OAF_CFLAGS $GCONF_CFLAGS $GLIB_CFLAGS"
576
577AC_SUBST(VFS_LIBDIR)
578AC_SUBST(VFS_INCLUDEDIR)
579AC_SUBST(VFS_LIBS)
580
581
582dnl Checks for libcharset
583jm_LANGINFO_CODESET
584jm_GLIBC21
585AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
586AC_CHECK_FUNCS(setlocale)
587
588AC_MSG_CHECKING(whether make is GNU Make)
589STRIP_BEGIN=
590STRIP_END=
591if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
592        STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
593        STRIP_END=')'
594        AC_MSG_RESULT(yes)
595else
596        AC_MSG_RESULT(no)
597fi
598STRIP_DUMMY=
599AC_SUBST(STRIP_DUMMY)
600AC_SUBST(STRIP_BEGIN)
601AC_SUBST(STRIP_END)
602
603dnl ***********************
604dnl *** Tests for iconv ***
605dnl ***********************
606
607AC_ARG_WITH(libiconv, [ --with-libiconv          use the libiconv library ],,with_libiconv=maybe)
608
609found_iconv=no
610
611if test "x$with_libiconv" != "xno" ; then
612   #
613   # Check for libiconv
614   #
615   AC_CHECK_LIB(iconv, libiconv_open, with_libiconv=yes; found_iconv=yes)
616fi
617
618if test "x$with_libiconv" != "xyes" ; then
619   #
620   # Check in the C library
621   #
622   AC_CHECK_FUNC(iconv_open, with_libiconv=no; found_iconv=yes)
623fi
624
625if test "x$found_iconv" = "xno" ; then
626   AC_MSG_ERROR([*** No iconv() implementation found in C library or libiconv])
627fi
628
629if test "x$with_libiconv" = "xyes" ; then
630  ICONV_LIBS="-liconv"
631  AC_DEFINE(USE_LIBICONV)
632fi
633AC_SUBST(ICONV_LIBS)
634
635dnl If the system doesn't define EILSEQ, we should define EILSEQ ourselves
636dnl since we need it for g_iconv()
637
638AC_MSG_CHECKING([for EILSEQ])
639AC_TRY_COMPILE([
640#include <errno.h>
641],
642[
643int error = EILSEQ;
644], have_eilseq=yes, have_eilseq=no);
645AC_MSG_RESULT($have_eilseq)
646
647
648dnl Output files
649
650AC_OUTPUT([
651Makefile
652gnome-vfs.spec
653libgnomevfs/gnome-vfs-file-size.h
654idl/Makefile
655libgnomevfs-pthread/Makefile
656libgnomevfs/libcharset/Makefile
657libgnomevfs/Makefile
658modules/Makefile
659modules/extfs/Makefile
660modules/extfs/ar
661modules/extfs/cpio
662modules/extfs/deb
663modules/extfs/lha
664modules/extfs/rar
665modules/extfs/zip
666modules/extfs/zoo
667devel-docs/Makefile
668devel-docs/gnome-vfs-tutorial/Makefile
669po/Makefile.in
670test/Makefile
671test/vfs-run
672doc/Makefile
673])
674
675chmod u+x test/vfs-run
676
677dnl <= Configuration summary =>
678
679echo "<= gnome-vfs configuration summary :"
680dnl <= Profile support? =>
681case "X$ENABLE_PROFILER" in
682X1)
683echo "
684Enable profiler         : YES"
685;;
686*)
687echo "
688Enable profiler         : NO"
689echo
690;;
691esac
692case "$platform_gnome_2" in
693Xyes)
694echo "
695GNOME platform          : 2.0"
696;;
697*)
698echo "
699GNOME platform          : 1.x"
700;;
701esac
702
703dnl <= CFLAGS and LDFLAGS =>
704echo "
705CFLAGS                  : $CFLAGS
706LDFLAGS                 : $LDFLAGS"
707echo
Note: See TracBrowser for help on using the repository browser.