7b0dfaf811e0551037ff4ea186f1abe9ff98ebd3
[crypto.git] / configure.ad
1 #
2 #  configure.ad
3 #
4 #  Author: Pekka Riikonen <priikone@silcnet.org>
5 #
6 #  Copyright (C) 2000 - 2008 Pekka Riikonen
7 #
8 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; version 2 of the License.
11 #
12 #  This program is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16 #
17
18 AD_INIT
19 AC_CANONICAL_SYSTEM
20 AM_INIT_AUTOMAKE
21 AC_PREREQ(2.52)
22 AC_CONFIG_HEADERS(cryptodefs.h)
23
24 AC_PROG_INSTALL
25 AC_PROG_MAKE_SET
26
27 AC_PROG_CC
28 AM_PROG_AS
29 AC_C_INLINE
30 AC_C_CONST
31
32 AC_PROG_RANLIB
33 #ifdef SILC_DIST_INPLACE
34 AC_DISABLE_SHARED
35 #endif SILC_DIST_INPLACE
36 AC_PROG_LIBTOOL
37
38 SILC_TOP_SRCDIR=`pwd`
39
40 ##
41 ## Library versioning.
42 ##
43
44 # Do the releases and library versioning according to following rules:
45 #
46 #  - If any code has changed in library, increment CRYPTO_REVISION
47 #  - If API were added, removed or changed, set CRYPTO_REVISION to 0
48 #  - If API were added, removed or changed, increment CRYPTO_CURRENT
49 #  - If APi were added, increment CRYPTO_AGE
50 #  - If API were removed, set CRYPTO_AGE to 0
51 #
52
53 # Base version for library.
54 CRYPTO_BASE_VERSION=1.2
55
56 # Library versions
57 CRYPTO_CURRENT=1                # prev = 0
58 CRYPTO_REVISION=0               # prev = 0
59 CRYPTo_AGE=0                    # prev = 0
60
61 # Substitute the version numbers
62 AC_SUBST(CRYPTO_BASE_VERSION)
63 AC_SUBST(CRYPTO_CURRENT)
64 AC_SUBST(CRYPTO_REVISION)
65 AC_SUBST(CRYPTO_AGE)
66
67
68 ##
69 ##  Installation
70 ##
71
72 # Default installation destination
73 AC_PREFIX_DEFAULT(/usr/local)
74 if test "x$prefix" != xNONE; then
75   silc_prefix="$prefix"
76 else
77   silc_prefix="$ac_default_prefix"
78   prefix="$silc_prefix"
79 fi
80
81
82 ##
83 ## Detect CPU
84 ##
85
86 # Disable all CPU feature optimizations
87 AC_MSG_CHECKING(whether to enable CPU feature optimizations)
88 AC_ARG_ENABLE(cpu-optimizations,
89   [  --disable-cpu-optimizations  do not use any CPU feature optimizations],
90   [
91     AC_MSG_RESULT(no)
92     AC_DEFINE([SILC_NO_CPU_OPTIMIZATIONS], [], [SILC_NO_CPU_OPTIMIZATIONS])
93     want_cpu_optimizations=false
94   ],
95   [
96     AC_MSG_RESULT(yes)
97     want_cpu_optimizations=true
98   ])
99 AM_CONDITIONAL(SILC_NO_CPU_OPTIMIZATIONS,
100                test x$want_cpu_optimizations = xfalse)
101
102 SILC_SYSTEM_IS_SMP(AC_DEFINE([SILC_SMP], [], [SILC_SMP]), [],
103                    AC_DEFINE([SILC_SMP], [], [SILC_SMP]))
104 cpu_i386=false
105 cpu_i486=false
106 cpu_i586=false
107 cpu_i686=false
108 cpu_i786=false
109 cpu_x86_64=false
110 cpu_ppc=false
111 cpu_ia64=false
112 case "$host_cpu" in
113   # All following Intels are considered 32-bit CPUs.
114   i?86)
115     # All CPUs of today are considered i386 and i486 compatible */
116     cpu_i386=true
117     cpu_i486=true
118
119     if test "x$host_cpu" = "xi586"; then
120       cpu_i586=true
121     fi
122
123     if test "x$host_cpu" = "xi686"; then
124       cpu_i586=true
125       cpu_i686=true
126     fi
127
128     if test "x$host_cpu" = "xi786"; then
129       cpu_i586=true
130       cpu_i686=true
131       cpu_i786=true
132     fi
133
134     # Check for specific CPU features
135     SILC_CPU_FLAG(mmx, true, AC_DEFINE([SILC_CPU_MMX], [], [SILC_CPU_MMX]), [])
136     SILC_CPU_FLAG(sse2, true, AC_DEFINE([SILC_CPU_SSE2], [], [SILC_CPU_SSE2]), [])
137     SILC_CPU_FLAG(pni, true, AC_DEFINE([SILC_CPU_SSE3], [], [SILC_CPU_SSE3]), [])
138     SILC_CPU_FLAG(ssse3, true, AC_DEFINE([SILC_CPU_SSSE3], [], [SILC_CPU_SSSE3]), [])
139     SILC_CPU_FLAG(sse4, true, AC_DEFINE([SILC_CPU_SSE4], [], [SILC_CPU_SSE4]), [])
140     ;;
141
142   # Intel IA-64, 64-bit CPU (not x86_64 compatible)
143   ia64)
144     # Check for specific CPU features
145     SILC_CPU_FLAG(mmx, true, AC_DEFINE([SILC_CPU_MMX], [], [SILC_CPU_MMX]), [])
146     SILC_CPU_FLAG(sse2, true, AC_DEFINE([SILC_CPU_SSE2], [], [SILC_CPU_SSE2]), [])
147     SILC_CPU_FLAG(pni, true, AC_DEFINE([SILC_CPU_SSE3], [], [SILC_CPU_SSE3]), [])
148     SILC_CPU_FLAG(ssse3, true, AC_DEFINE([SILC_CPU_SSSE3], [], [SILC_CPU_SSSE3]), [])
149     SILC_CPU_FLAG(sse4, true, AC_DEFINE([SILC_CPU_SSE4], [], [SILC_CPU_SSE4]), [])
150     ;;
151
152   # AMD/Intel x86_64, 64-bit CPU
153   x86_64)
154     # Check for specific CPU features
155     SILC_CPU_FLAG(mmx, true, AC_DEFINE([SILC_CPU_MMX], [], [SILC_CPU_MMX]), [])
156     SILC_CPU_FLAG(sse2, true, AC_DEFINE([SILC_CPU_SSE2], [], [SILC_CPU_SSE2]), [])
157     SILC_CPU_FLAG(pni, true, AC_DEFINE([SILC_CPU_SSE3], [], [SILC_CPU_SSE3]), [])
158     SILC_CPU_FLAG(ssse3, true, AC_DEFINE([SILC_CPU_SSSE3], [], [SILC_CPU_SSSE3]), [])
159     SILC_CPU_FLAG(sse4, true, AC_DEFINE([SILC_CPU_SSE4], [], [SILC_CPU_SSE4]), [])
160     ;;
161
162   # PowerPC, 32-bit and 64-bit CPUs
163   powerpc*)
164     ;;
165 esac
166 AM_CONDITIONAL(SILC_I386, test x$cpu_i386 = xtrue)
167 AM_CONDITIONAL(SILC_I486, test x$cpu_i486 = xtrue)
168 AM_CONDITIONAL(SILC_I586, test x$cpu_i586 = xtrue)
169 AM_CONDITIONAL(SILC_I686, test x$cpu_i686 = xtrue)
170 AM_CONDITIONAL(SILC_7686, test x$cpu_i786 = xtrue)
171 AM_CONDITIONAL(SILC_X86_64, test x$cpu_x86_64 = xtrue)
172 AM_CONDITIONAL(SILC_POWERPC, test x$cpu_ppc = xtrue)
173 AM_CONDITIONAL(SILC_IA64, test x$cpu_ia64 = xtrue)
174
175 if test x$want_cpu_optimizations = xtrue; then
176   # Set some compiler options based on CPU
177   if test "x$CC" = "xicc"; then
178     # ICC flags
179     if test x$x_have_cpu_sse2 = xtrue; then
180       SILC_ADD_CFLAGS(-axW)
181     fi
182     if test x$x_have_cpu_sse3 = xtrue; then
183       SILC_ADD_CFLAGS(-axP)
184     fi
185     if test x$x_have_cpu_ssse3 = xtrue; then
186       SILC_ADD_CFLAGS(-axT)
187     fi
188     if test x$x_have_cpu_sse4 = xtrue; then
189       SILC_ADD_CFLAGS(-axS)
190     fi
191   else
192     # Other compilers
193     if test x$x_have_cpu_sse2 = xtrue; then
194       SILC_ADD_CFLAGS(-msse2)
195     fi
196     if test x$x_have_cpu_pni = xtrue; then
197       SILC_ADD_CFLAGS(-msse3)
198     fi
199     if test x$x_have_cpu_ssse3 = xtrue; then
200       SILC_ADD_CFLAGS(-mssse3)
201     fi
202     if test x$x_have_cpu_sse4 = xtrue; then
203       SILC_ADD_CFLAGS(-msse4)
204     fi
205   fi
206 fi
207
208
209 ##
210 ## Put here any platform specific stuff
211 ##
212
213 case "$target" in
214   *-*-linux*)
215     CFLAGS=`echo $CFLAGS -D_GNU_SOURCE`
216     ;;
217   *-*-freebsd*)
218     ;;
219   *-*-netbsd*)
220     ;;
221   *-*-*bsd*)
222     ;;
223   *)
224     ;;
225 esac
226
227
228 ##
229 ## Header checking
230 ##
231 AC_HEADER_STDC
232
233 # More header checking
234 #
235 AC_CHECK_HEADERS(unistd.h assert.h time.h fcntl.h)
236 AC_CHECK_HEADERS(sys/types.h sys/times.h sys/time.h sys/resource.h)
237
238 # Check for big-endian machines
239 AC_C_BIGENDIAN
240
241
242 ##
243 ## Compiler and compiler flag checks
244 ##
245
246 # Disable all compiler optimizations
247 AC_MSG_CHECKING(whether to enable compiler optimizations)
248 AC_ARG_ENABLE(optimizations,
249   [  --disable-optimizations do not use any compiler optimizations],
250   [
251     AC_MSG_RESULT(no)
252     AC_DEFINE([SILC_NO_CC_OPTIMIZATIONS], [], [SILC_NO_CC_OPTIMIZATIONS])
253     want_cc_optimizations=false
254   ],
255   [
256     AC_MSG_RESULT(yes)
257     want_cc_optimizations=true
258   ])
259 AM_CONDITIONAL(SILC_NO_CC_OPTIMIZATIONS, test x$want_cc_optimizations = xfalse)
260
261 if test "$GCC"; then
262   # GCC specific options
263   if test "x$summary_debug" = "xyes"; then
264     SILC_ADD_CFLAGS(-g)
265   else
266     SILC_ADD_CFLAGS(-g)
267   fi
268   SILC_ADD_CFLAGS(-Wall -finline-functions)
269   SILC_ADD_CFLAGS(-Wno-pointer-sign)
270 else
271   # Other compilers
272   case "$target" in
273     alpha*-dec-osf*)
274       SILC_ADD_CFLAGS(-g3)
275       ;;
276     mips*-sgi-irix*)
277       SILC_ADD_CFLAGS(-g3)
278       ;;
279     *)
280       SILC_ADD_CFLAGS(-g)
281       ;;
282   esac
283
284   # Intel C++ Compiler flags
285   if test "x$CC" = "xicc"; then
286     SILC_ADD_CFLAGS(-restrict)
287     SILC_ADD_CFLAGS(-finline-functions)
288
289     # Don't define __GNUC__ except for system includes
290     SILC_ADD_CFLAGS(-gcc-sys)
291   fi
292 fi
293
294 if test x$want_cc_optimizations = xtrue; then
295   if test "$GCC"; then
296     # GCC specific options
297     if test "x$summary_debug" = "xyes"; then
298       SILC_ADD_CFLAGS(-O)
299     else
300       SILC_ADD_CFLAGS(-O2)
301     fi
302   else
303     # Other compilers
304     case "$target" in
305       alpha*-dec-osf*)
306         SILC_ADD_CFLAGS(-O2, SILC_ADD_CFLAGS(-O))
307         ;;
308       mips*-sgi-irix*)
309         SILC_ADD_CFLAGS(-O2, SILC_ADD_CFLAGS(-O))
310         ;;
311       *)
312         SILC_ADD_CFLAGS(-O2, SILC_ADD_CFLAGS(-O))
313         ;;
314     esac
315   fi
316 fi
317
318 # Workaround a bug in GCC 2.x which causes memory exhaustion
319 # when compiling sha1 with optimizations on UltraSPARC.
320 FIX_SHA1='#'
321 if test "$GCC" -a "$host_cpu" = "sparc64"; then
322   AC_MSG_CHECKING(whether to enable GCC 2.x workaround for SHA1)
323   AC_TRY_COMPILE(
324     [
325       #if defined(__sparc64__) && (__GNUC__ == 2)
326       #else
327       choke me
328       #endif
329     ],
330     [],
331     [
332       FIX_SHA1=''
333       AC_MSG_RESULT(yes)
334     ],
335       AC_MSG_RESULT(no)
336     )
337 fi
338 AC_SUBST(FIX_SHA1)
339
340 ##
341 ## Function and libary checking
342 ##
343 AC_CHECK_FUNCS(times clock time)
344 AC_CHECK_FUNCS(getpid getgid getsid getpgid getpgrp getuid getrusage setsid)
345
346 cryptover=`echo $VERSION | sed 's/\./ /g'`
347 maj=0
348 min=0
349 bld=0
350 for v in $cryptover
351 do
352   if test $maj -eq 0; then
353     maj=$v
354     continue
355   fi
356   if test $min -eq 0; then
357     min=$v
358     continue
359   fi
360   if test $bld -eq 0; then
361     bld=$v
362     continue
363   fi
364 done
365 __CRYPTO_PACKAGE_VERSION="#define __SILC_CRYPTO_VERSION SILC_VERSION($maj,$min,$bld)"
366
367
368 ##
369 ##  Enable/disable checking
370 ##
371
372 #ifdef SILC_DIST_INPLACE
373 #
374 # Profiling options (never delivered to distributions)
375 #
376 AC_MSG_CHECKING(whether to enable gprof)
377 AC_ARG_ENABLE(gprof,
378   [  --enable-gprof          enable gprof profiling],
379   [
380     case "${enableval}" in
381       yes)
382         AC_MSG_RESULT(yes)
383         SILC_ADD_CFLAGS(-pg)
384         LIBS="$LIBS -pg"
385         ;;
386       *)
387         AC_MSG_RESULT(no)
388         ;;
389     esac
390   ],
391   [
392     AC_MSG_RESULT(no)
393   ])
394
395 AC_MSG_CHECKING(whether to enable gcov)
396 AC_ARG_ENABLE(gcov,
397   [  --enable-gcov           enable gcov],
398   [
399     case "${enableval}" in
400       yes)
401         AC_MSG_RESULT(yes)
402         SILC_ADD_CFLAGS(-fprofile-arcs)
403         LIBS="$LIBS -lgcov"
404         ;;
405       *)
406         AC_MSG_RESULT(no)
407         ;;
408     esac
409   ],
410   [
411     AC_MSG_RESULT(no)
412   ])
413 #endif SILC_DIST_INPLACE
414
415 # Debug checking
416 AC_MSG_CHECKING(whether to enable debugging)
417 summary_debug="no"
418 AC_ARG_ENABLE(debug,
419   [  --enable-debug          enable debugging],
420   [
421     case "${enableval}" in
422       yes)
423         AC_MSG_RESULT(yes)
424         summary_debug="yes"
425         ;;
426       *)
427         AC_MSG_RESULT(no)
428         ;;
429     esac
430   ],
431   [
432     AC_MSG_RESULT(no)
433   ])
434
435 # Disable all assembler optimizations
436 AC_MSG_CHECKING(whether to enable assembler optimizations)
437 AC_ARG_ENABLE(asm,
438   [  --disable-asm           do not use assembler optimizations],
439   [
440     AC_MSG_RESULT(no)
441     AC_DEFINE([SILC_NO_ASM], [], [SILC_NO_ASM])
442     want_asm=false
443   ],
444   [
445     AC_MSG_RESULT(yes)
446     want_asm=true
447   ])
448 AM_CONDITIONAL(SILC_NO_ASM, test x$want_asm = xfalse)
449
450 # Check for assembler
451 SILC_ASSEMBLER=""
452 have_assembler=false
453 if test x$want_asm = xtrue; then
454   AC_PATH_PROG([NASM], [nasm], [no])
455   if test "x$NASM" != "xno"; then
456     if test x$cpu_x86_64 = xtrue; then
457       SILC_ASSEMBLER="$NASM -O2 -felf64"
458     else
459       SILC_ASSEMBLER="$NASM -O2 -felf"
460     fi
461     have_assembler=true
462   fi
463
464   AC_PATH_PROG([YASM], [yasm], [no])
465   if test "x$YASM" != "xno"; then
466     if test x$cpu_x86_64 = xtrue; then
467       SILC_ASSEMBLER="$YASM -Xgnu -felf64"
468     else
469       SILC_ASSEMBLER="$YASM -Xgnu -felf"
470     fi
471     have_assembler=true
472   fi
473 fi
474 AC_SUBST(SILC_ASSEMBLER)
475
476 ##
477 ##  With/without checkings
478 ##
479
480 LIBSUBDIR=lib
481 LDFLAGS="-L\$(silc_top_srcdir)/lib $LDFLAGS"
482
483 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silccrypt"
484 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcasn1"
485 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcacc"
486 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcskr"
487 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcmath"
488 #ifdef SILC_DIST_SSH
489 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcssh"
490 #endif SILC_DIST_SSH
491 #ifdef SILC_DIST_PGP
492 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcpgp"
493 #endif SILC_DIST_PGP
494
495 # SILC Runtime Toolkit checking
496 AC_ARG_WITH(srt-includes,
497   [  --with-srt-includes=DIR  SILC Runtime Toolkit includes [search in DIR]],
498   [ac_srt_includes="$withval"], [ac_srt_includes="no"])
499 AC_ARG_WITH(srt-libs,
500   [  --with-srt-libs=DIR      SILC Runtime Toolkit libraries [search in DIR]],
501   [ac_srt_libs="$withval"], [ac_srt_libs="no"])
502
503 if test -n "$with_srt_includes" || test -n "$with_srt_libs"; then
504   # Manually provided libs
505   if test "$ac_srt_includes" != "no"; then
506     SILC_LIB_INCLUDES="-I$ac_srt_includes"
507   fi
508   if test "$ac_srt_libs" != "no"; then
509     LDFLAGS="-L$ac_srt_libs $LDFLAGS"
510   fi
511
512   # Check libs to link against
513   f=`$EGREP __SILC_HAVE_PTHREAD $ac_srt_includes/silc.h`
514   if test -n "$f"; then
515     LIBS="$LIBS -lpthread"
516     has_threads=true
517   fi
518 else
519   # pkg-config check
520   PKG_CHECK_MODULES(SRT, [srt >= 1.2])
521   LIBS="$SRT_LIBS $LIBS"
522   CFLAGS="$CFLAGS $SRT_CFLAGS"
523 fi
524
525 # MP library checking. First check whether user wants to use GMP and use
526 # it if found. If not or not defined then compile the default library in the
527 # source tree.
528 #
529 mp_gmp=false
530 SAVE_LIBS="$LIBS"
531 SAVE_CFLAGS="$CFLAGS"
532 SAVE_LDFLAGS="$LDFLAGS"
533 AC_MSG_CHECKING(whether to search for GMP)
534 AC_ARG_WITH(gmp,
535   [[  --with-gmp[=DIR]        use GMP instead of SILC Math [search in DIR/lib and DIR/include]]],
536   [
537     case "$withval" in
538       no)
539         AC_MSG_RESULT(no)
540         ;;
541       *)
542         AC_MSG_RESULT(yes)
543
544         if test -d "$withval/include"; then
545           CFLAGS="$CFLAGS -I$withval/include"
546         fi
547         if test -d "$withval/lib"; then
548           LDFLAGS="$LDFLAGS -L$withval/lib"
549         fi
550
551         LIBS="-lgmp $LIBS"
552         ;;
553     esac
554
555     AC_CHECK_LIB(gmp, __gmpz_init,
556       [
557         mp_gmp=true
558         AC_DEFINE([SILC_MP_GMP], [], [GMP])
559         AC_MSG_RESULT(Using GMP as a MP library.)
560       ],
561       [
562         LIBS="$SAVE_LIBS"
563         CFLAGS="$SAVE_CFLAGS"
564         LDFLAGS="$SAVE_LDFLAGS"
565       ])
566   ],
567     AC_MSG_RESULT(no)
568   )
569
570 AM_CONDITIONAL(SILC_MP_GMP, test x$mp_gmp = xtrue)
571 AM_CONDITIONAL(SILC_MP_SILCMATH, test x$mp_gmp = xfalse)
572 if test x$mp_gmp = xfalse; then
573   AC_DEFINE([SILC_MP_SILCMATH], [], [SILCMATH])
574   AC_MSG_RESULT(Using SILC Math as a MP library.)
575 fi
576
577
578 ##
579 ## Native WIN32 compilation under cygwin
580 ##
581 AC_MSG_CHECKING(whether to compile native WIN32 code)
582 AC_ARG_WITH(win32,
583   [  --with-win32            compile native WIN32 (MinGW) code (-mno-cygwin)],
584   [
585     AC_MSG_RESULT(yes)
586     AC_DEFINE([SILC_WIN32], [], [SILC_WIN32])
587     win32_support=true
588     CFLAGS="-mno-cygwin $CFLAGS"
589     LIBS="$LIBS -lwsock32"
590   ],
591   [
592     AC_MSG_RESULT(no)
593     win32_support=false
594   ])
595 AM_CONDITIONAL(SILC_WIN32, test x$win32_support = xtrue)
596
597
598 ##
599 ## Include configure fragments
600 ##
601 AD_INCLUDE_CONFIGURE
602
603
604 ##
605 ## Outputs and substitutions
606 ##
607
608 AC_SUBST(LIBSUBDIR)
609 AC_SUBST(SILC_TOP_SRCDIR)
610 AC_SUBST(LDFLAGS)
611 AC_SUBST(LIBS)
612 AC_SUBST(SILC_LIB_INCLUDES)
613 AC_SUBST(__CRYPTO_PACKAGE_VERSION)
614
615 # Native Symbian OS support (disabled by default)
616 AM_CONDITIONAL(SILC_SYMBIAN, test xfalse = xtrue)
617
618 # Make enable-shared aware
619 AM_CONDITIONAL(SILC_ENABLE_SHARED, test "$enable_shared" = yes)
620
621 ETCDIR=`eval echo $sysconfdir`;ETCDIR=`eval echo $ETCDIR`
622 AC_SUBST(ETCDIR)
623 AC_DEFINE_UNQUOTED([SILC_ETCDIR], "$ETCDIR", [SILC_ETCDIR])
624
625 DOCDIR=`eval echo $docdir`;DOCDIR=`eval echo $DOCDIR`
626 AC_SUBST(DOCDIR)
627 AC_DEFINE_UNQUOTED([SILC_DOCDIR], "$DOCDIR", [SILC_DOCDIR])
628
629 INCLUDE_DEFINES_INT="include \$(top_srcdir)/Makefile.defines_int"
630 AC_SUBST(INCLUDE_DEFINES_INT)
631
632
633 #
634 # Makefile outputs
635 #
636 AC_CONFIG_FILES(
637 Makefile
638 doc/Makefile
639 Makefile.defines
640 Makefile.defines_int
641 includes/Makefile
642 apps/Makefile
643 win32/Makefile
644 )
645
646 AC_CONFIG_FILES(
647 lib/Makefile
648 lib/silccrypt/Makefile
649 lib/silccrypt/silccrypto.h
650 lib/silccrypt/tests/Makefile
651 lib/silcasn1/Makefile
652 lib/silcasn1/tests/Makefile
653 lib/silcacc/Makefile
654 lib/silcacc/tests/Makefile
655 #ifdef SILC_DIST_SSH
656 lib/silcssh/Makefile
657 lib/silcssh/tests/Makefile
658 #endif SILC_DIST_SSH
659 #ifdef SILC_DIST_PGP
660 lib/silcpgp/Makefile
661 lib/silcpgp/tests/Makefile
662 #endif SILC_DIST_PGP
663 lib/silcskr/Makefile
664 lib/silcskr/tests/Makefile
665 lib/silcmath/Makefile
666 lib/sct.pc
667 )
668
669 AC_OUTPUT
670
671 ##
672 ## Summary output
673 ##
674
675 s_bindir=`eval echo $bindir`;s_bindir=`eval echo $s_bindir`
676 s_sbindir=`eval echo $sbindir`;s_sbindir=`eval echo $s_sbindir`
677 s_mandir=`eval echo $mandir`;s_mandir=`eval echo $s_mandir`
678 s_includedir=`eval echo $includedir`;s_includedir=`eval echo $s_includedir`
679
680 echo ""
681 echo "SILC Crypto Toolkit configuration summary:"
682 echo "-----------------------------------------"
683 echo " Target host ...................: $target"
684 echo " Compiler ......................: $CC"
685 echo " CFLAGS ........................: $CFLAGS"
686 echo " LDFLAGS .......................: $LDFLAGS"
687 echo " LIBS ..........................: $LIBS"
688 echo ""
689 echo " Installation prefix ...........: $prefix"
690 echo " bin directory .................: $s_bindir"
691 echo " sbin directory ................: $s_sbindir"
692 echo " etc directory .................: $ETCDIR"
693 echo " man directory .................: $s_mandir"
694 echo " doc directory .................: $DOCDIR"
695 echo " include directory .............: $s_includedir"
696 echo ""
697
698 if test x$mp_gmp = xtrue; then
699   echo " Arithmetic library ............: GMP"
700 fi
701
702 if test x$want_asm = xfalse; then
703   summary_asm="no"
704 else
705   summary_asm="yes"
706 fi
707 echo " Assembler optimizations .......: $summary_asm"
708
709 if test x$want_cc_optimizations = xfalse; then
710   summary_cc_opt="no"
711 else
712   summary_cc_opt="yes"
713 fi
714 echo " Compiler optimizations ........: $summary_cc_opt"
715
716 if test x$want_cpu_optimizations = xfalse; then
717   summary_cpu_opt="no"
718 else
719   summary_cpu_opt="yes"
720 fi
721 echo " CPU feature optimizations .....: $summary_cpu_opt"
722
723 threads="no"
724 if test x$has_threads = xtrue; then
725   threads="yes"
726 fi
727 echo " Multi-threads support .........: $threads"
728 echo " Debugging enabled .............: $summary_debug"
729 echo ""
730 echo "Compile the sources with 'make' or 'gmake' command."