forked from juliangehring/GMAP-GSNAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
779 lines (652 loc) · 21.4 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# $Id: configure.ac,v 1.46 2010-07-21 22:05:35 twu Exp $
AC_PREREQ(2.57)
## We want to get the version number from file 'VERSION' (rather than
## specifying the version info in 'configure.ac'. Hence, we need a bit
## of M4 magic. Note that M4 esyscmd has a trailing newline because the
## shell command output has one, hence the patsubst() trick.
#m4_define([PKG_VERSION],
# m4_bpatsubst(m4_esyscmd([cat VERSION]),
# [\([0-9.]*\)\(\w\|\W\)*],
# [\1]))
#m4_define([PKG_VERSION],m4_esyscmd([cat VERSION]))
m4_define([PKG_VERSION],esyscmd([cat VERSION]))
AC_INIT([gmap],PKG_VERSION,[Thomas Wu <[email protected]>])
AC_MSG_CHECKING(package version)
AC_MSG_RESULT(PKG_VERSION)
### Read defaults
# Handle CONFIG_SITE better than Autoconf does
for ac_site_file in $CONFIG_SITE; do
if { (eval echo $ac_site_file | grep '^\./' >/dev/null 2>&1)
ac_status=$?
(exit $ac_status); }; then
# ac_site_file starts with ./
if test -r "$ac_site_file"; then
ac_site_file="$ac_site_file"
echo "really loading site script $ac_site_file: file was found"
. "$ac_site_file"
ax_user_site_file_loaded=yes
else
AC_MSG_ERROR([cannot find $ac_site_file])
fi
else
# ac_site_file does not start with ./
if test -r "./$ac_site_file"; then
echo "really loading site script ./$ac_site_file: file was found"
. "./$ac_site_file"
ax_user_site_file_loaded=yes
elif test -r "$ac_site_file"; then
echo "really loading site script $ac_site_file: file was found"
. "$ac_site_file" 2>/dev/null
ax_user_site_file_loaded=yes
else
AC_MSG_ERROR([cannot find $ac_site_file])
fi
fi
done
if test x"$ax_user_site_file_loaded" != x"yes"; then
if test -r "./config.site"; then
echo "loading default site script ./config.site"
. "./config.site"
fi
fi
# Set default CFLAGS if not already set by user
AC_MSG_CHECKING(CFLAGS)
AC_ARG_VAR([CFLAGS], [Compiler flags (default: -O3)])
if test x"$CFLAGS" = x; then
AC_MSG_RESULT(not set by user so using default -O3)
ACX_EXPAND(CFLAGS,'-O3')
else
AC_MSG_RESULT($CFLAGS)
fi
AC_MSG_CHECKING(MPI_CFLAGS)
AC_ARG_VAR([MPI_CFLAGS], [Compiler flags (default: -O3)])
AC_MSG_RESULT($MPI_CFLAGS)
AC_SUBST(MPI_CFLAGS)
AC_CONFIG_SRCDIR([src/gmap.c])
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_AUX_DIR([config])
# For autotest: AC_CONFIG_TESTDIR([tests],[tests:src:util])
AC_CONFIG_MACRO_DIR([config])
AC_CANONICAL_SYSTEM
AC_SYS_LARGEFILE
AC_ARG_PROGRAM
#AM_INIT_AUTOMAKE([no-dependencies])
#AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_INIT_AUTOMAKE
AM_CONDITIONAL(FULLDIST,test "x$enable_fulldist" = xyes)
AC_ARG_ENABLE([fulldist],
AC_HELP_STRING([--enable-fulldist],
[For use by program maintainer]),
[enable_fulldist="yes"],
[enable_fulldist="no"])
AM_CONDITIONAL(MAINTAINER,test "x$enable_maintainer" = xyes)
AC_ARG_ENABLE([maintainer],
AC_HELP_STRING([--enable-maintainer],
[For use by program maintainer]),
[enable_maintainer="yes"],
[enable_maintainer="no"])
# For Perl scripts, because otherwise configure inserts
# @bindir@ => "${exec_prefix}/bin";
AC_MSG_CHECKING(bindir)
ACX_EXPAND(BINDIR,$bindir)
AC_SUBST(BINDIR)
AC_MSG_RESULT($BINDIR)
# Works in conjunction with AC_PROG_LIBTOOL -- Commented out because no libraries being built
#AC_MSG_CHECKING(whether to link statically)
#AC_ARG_ENABLE([static-linking],
# AC_HELP_STRING([--enable-static-linking],
# [Link binaries statically (default=no)]),
# [answer="$enableval"],
# [answer=""])
#case x"$answer" in
# xyes)
# AC_MSG_RESULT(enabled)
# STATIC_LDFLAG="-all-static"
# ;;
#
# xno)
# AC_MSG_RESULT(disabled)
# ;;
#
# x)
# AC_MSG_RESULT(not specified so disabled by default)
# ;;
#esac
#AC_SUBST(STATIC_LDFLAG)
# Checks for programs.
#AC_PATH_PROG([PERL],[perl])
ACX_PATH_PERL
AC_PROG_CC
AM_PROG_CC_C_O
AX_MPI # Sets MPICC to use for isolated source files that need it
# AC_PROG_CC_MPI # This sets CC to mpicc
AM_CONDITIONAL(MPI_FOUND,test "x$MPILIBS" != x)
AC_PROG_LIBTOOL
# Checks for libraries.
AC_CHECK_LIB(m, rint)
#AC_CHECK_LIB(popt, poptGetContext, [answer="yes"], [answer="no"])
#if test x"$answer" == xyes; then
# AC_DEFINE([HAVE_LIBPOPT],[1],[Define to 1 if you have the 'popt' library (-lpopt)])
# POPT_LIBS="-lpopt"
#else
# POPT_LIBS=""
#fi
#AC_SUBST(POPT_LIBS)
AC_MSG_CHECKING(whether to use MPI_File for input)
AC_ARG_ENABLE([mpi-file-input],
AC_HELP_STRING([--enable-mpi-file-input],
[Enable MPI_File for input for MPI versions (default=yes). Note: Use only if you have a parallel I/O file system, like Lustre]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
AC_DEFINE(USE_MPI_FILE_INPUT,1,[Define to 1 if you want to use MPI_File for input.])
;;
xno)
AC_MSG_RESULT(disabled)
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
AC_DEFINE(USE_MPI_FILE_INPUT,1,[Define to 1 if you want to use MPI_File for input.])
;;
esac
# In call to ACX_PTHREAD, don't provide ACTION-IF-FOUND; otherwise,
# HAVE_PTHREAD won't be defined
AC_MSG_CHECKING(for pthreads feature)
AC_ARG_ENABLE([pthreads],
AC_HELP_STRING([--enable-pthreads],
[Enable pthreads (default=yes)]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ACX_PTHREAD([],[pthread_warning=yes])
;;
xno)
AC_MSG_RESULT(disabled)
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ACX_PTHREAD([],[pthread_warning=yes])
;;
esac
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS([fcntl.h limits.h stddef.h stdlib.h string.h strings.h unistd.h sys/types.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN
AC_C_CONST
AC_C_VOLATILE
AC_TYPE_SIZE_T
AC_TYPE_OFF_T
AC_CHECK_TYPES([caddr_t])
AC_CHECK_SIZEOF(unsigned long)
AC_CHECK_SIZEOF(unsigned long long)
AC_CHECK_SIZEOF(off_t)
# Checks for library functions.
#AC_FUNC_MALLOC -- Causes use of rpl_malloc
#AC_FUNC_REALLOC -- Causes use of rpl_realloc
#AC_FUNC_CLOSEDIR_VOID -- We are checking return value
AC_FUNC_FSEEKO
#AC_FUNC_MMAP # Checks only private fixed mapping of already-mapped memory
AC_MSG_CHECKING(whether alloca is enabled)
AC_ARG_ENABLE([alloca],
AC_HELP_STRING([--enable-alloca],
[Enable alloca (default=yes) for stack-based memory allocation.]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
AC_FUNC_ALLOCA
;;
xno)
AC_MSG_RESULT(disabled)
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
AC_FUNC_ALLOCA
;;
esac
AC_MSG_CHECKING(whether mmap is enabled)
AC_ARG_ENABLE([mmap],
AC_HELP_STRING([--enable-mmap],
[Enable mmap (default=yes). Recommend that you do not disable this unless absolutely necessary.]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ACX_MMAP_FIXED # Checks fixed mapping
ACX_MMAP_VARIABLE # Checks variable mapping
;;
xno)
AC_MSG_RESULT(disabled)
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ACX_MMAP_FIXED # Checks fixed mapping
ACX_MMAP_VARIABLE # Checks variable mapping
;;
esac
if test x"$acx_mmap_fixed_ok" = xyes; then
AC_DEFINE(HAVE_MMAP,1,[Define to 1 if you have a working 'mmap' system call.])
else
if test x"$acx_mmap_variable_ok" = xyes; then
AC_DEFINE(HAVE_MMAP,1,[Define to 1 if you have a working 'mmap' system call.])
fi
fi
ACX_MMAP_FLAGS
ACX_MADVISE_FLAGS
ACX_SHM_FLAGS
AC_CHECK_FUNCS([ceil floor index log madvise memcpy memmove memset munmap pow rint stat64 strtoul sysconf sysctl sigaction \
shmget shmctl shmat shmdt semget semctl semop])
ACX_STRUCT_STAT64
ACX_PAGESIZE
ACX_FUNC_FOPEN_BINARY
ACX_FUNC_FOPEN_TEXT
AC_MSG_CHECKING(for builtin popcount/clz/ctz features)
AC_ARG_ENABLE([builtin-popcount],
AC_HELP_STRING([--enable-builtin-popcount],
[Enable -mpopcnt if it __builtin_popcount compiles and runs (default=yes). May want to disable if compiling on one machine and running on another.]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ACX_BUILTIN_POPCOUNT
;;
xno)
AC_MSG_RESULT(disabled)
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ACX_BUILTIN_POPCOUNT
;;
esac
if test x"$acx_mpopcnt_ok" = x"yes"; then
POPCNT_CFLAGS="$POPCNT_CFLAGS -mpopcnt"
fi
AC_SUBST(POPCNT_CFLAGS)
ACX_ASM_BSR
AC_MSG_CHECKING(whether sse2 is enabled)
AC_ARG_ENABLE([sse2],
AC_HELP_STRING([--enable-sse2],
[Enable sse2 simd commands if they compile and run (default=yes).]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ax_cv_want_sse2_ext=yes
;;
xno)
AC_MSG_RESULT(disabled by user)
ax_cv_want_sse2_ext=no
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ax_cv_want_sse2_ext=yes
;;
esac
ax_cv_sse2_shift_defect=no
if test "$ax_cv_want_sse2_ext" = yes; then
ACX_SSE2_SHIFT_DEFECT
fi
AC_MSG_CHECKING(whether ssse3 is enabled)
AC_ARG_ENABLE([ssse3],
AC_HELP_STRING([--enable-ssse3],
[Enable ssse3 simd commands if they compile and run (default=yes). Requires that sse2 be enabled.]),
[answer="$enableval"],
[answer=""])
if test "$ax_cv_want_sse2_ext" = no; then
AC_MSG_RESULT([disabled because the user disabled sse2])
ax_cv_want_ssse3_ext=no
else
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ax_cv_want_ssse3_ext=yes
;;
xno)
AC_MSG_RESULT(disabled by user)
ax_cv_want_ssse3_ext=no
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ax_cv_want_ssse3_ext=yes
;;
esac
fi
AC_MSG_CHECKING(whether sse4.1 is enabled)
AC_ARG_ENABLE([sse4.1],
AC_HELP_STRING([--enable-sse4.1],
[Enable sse4.1 simd commands if they compile and run (default=yes). Requires that ssse3 be enabled.]),
[answer="$enableval"],
[answer=""])
if test "$ax_cv_want_ssse3_ext" = no; then
AC_MSG_RESULT([disabled because the user disabled ssse3])
ax_cv_want_sse41_ext=no
else
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ax_cv_want_sse41_ext=yes
;;
xno)
AC_MSG_RESULT(disabled by user)
ax_cv_want_sse41_ext=no
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ax_cv_want_sse41_ext=yes
;;
esac
fi
AC_MSG_CHECKING(whether sse4.2 is enabled)
AC_ARG_ENABLE([sse4.2],
AC_HELP_STRING([--enable-sse4.2],
[Enable sse4.2 simd commands if they compile and run (default=yes). Requires that sse4.1 be enabled.]),
[answer="$enableval"],
[answer=""])
if test "$ax_cv_want_sse41_ext" = no; then
AC_MSG_RESULT([disabled because the user disabled sse4.1])
ax_cv_want_sse42_ext=no
else
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ax_cv_want_sse42_ext=yes
;;
xno)
AC_MSG_RESULT(disabled by user)
ax_cv_want_sse42_ext=no
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ax_cv_want_sse42_ext=yes
;;
esac
fi
AC_MSG_CHECKING(whether avx is enabled)
AC_ARG_ENABLE([avx],
AC_HELP_STRING([--enable-avx],
[Enable avx simd commands if they compile and run (default=yes). Requires that sse4.2 be enabled.]),
[answer="$enableval"],
[answer=""])
if test "$ax_cv_want_sse42_ext" = no; then
AC_MSG_RESULT([disabled because the user disabled sse4.2])
ax_cv_want_avx_ext=no
else
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ax_cv_want_avx_ext=yes
;;
xno)
AC_MSG_RESULT(disabled by user)
ax_cv_want_avx_ext=no
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ax_cv_want_avx_ext=yes
;;
esac
fi
AC_MSG_CHECKING(whether avx2 is enabled)
AC_ARG_ENABLE([avx2],
AC_HELP_STRING([--enable-avx2],
[Enable avx2 simd commands if they compile and run (default=yes). Requires that avx be enabled.]),
[answer="$enableval"],
[answer=""])
if test "$ax_cv_want_avx_ext" = no; then
AC_MSG_RESULT([disabled because the user disabled avx])
ax_cv_want_avx2_ext=no
else
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
ax_cv_want_avx2_ext=yes
;;
xno)
AC_MSG_RESULT(disabled by user)
ax_cv_want_avx2_ext=no
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
ax_cv_want_avx2_ext=yes
;;
esac
fi
AC_MSG_CHECKING(whether simd is enabled)
AC_ARG_ENABLE([simd],
AC_HELP_STRING([--enable-simd],
[Enable simd commands in general if they compile and run (default=yes).]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xyes)
AC_MSG_RESULT(enabled)
AX_EXT # Sets SIMD_CFLAGS, and HAVE_ALTIVEC,HAVE_MMX,HAVE_SSE,HAVE_SSE2,HAVE_SSE3,HAVE_SSSE3,HAVE_SSE4_1,HAVE_SSE4_2,HAVE_AVX
;;
xno)
AC_MSG_RESULT(disabled)
;;
x)
AC_MSG_RESULT([not specified so enabled by default])
AX_EXT # Sets SIMD_CFLAGS, and HAVE_ALTIVEC,HAVE_MMX,HAVE_SSE,HAVE_SSE2,HAVE_SSE3,HAVE_SSSE3,HAVE_SSE4_1,HAVE_SSE4_2,HAVE_AVX
;;
esac
# Genome directory
AC_MSG_CHECKING(gmapdb)
AC_ARG_WITH([gmapdb],
AC_HELP_STRING([--with-gmapdb=DIR],
[Default GMAP database directory]),
[answer="$withval"],
[answer=""])
if test x"$answer" = x; then
ACX_EXPAND(GMAPDB,'${prefix}/share')
else
GMAPDB=$answer
fi
AC_SUBST(GMAPDB)
AC_MSG_RESULT($GMAPDB)
# MAX_READLENGTH
AC_MSG_CHECKING(MAX_READLENGTH)
AC_ARG_VAR([MAX_READLENGTH], [Maximum read length for GSNAP (default 300)])
if test x"$MAX_READLENGTH" = x; then
ACX_EXPAND(MAX_READLENGTH,'300')
fi
AC_MSG_RESULT($MAX_READLENGTH)
# zlib package
AC_MSG_CHECKING(for zlib support)
AC_ARG_ENABLE([zlib],
AC_HELP_STRING([--enable-zlib],
[Enable zlib support (option needed for uncompressing gzip files) (default=yes)]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xno)
AC_MSG_RESULT(disabled)
ZLIB_LIBS=""
have_zlib=no
;;
*)
AC_MSG_RESULT(enabled)
failed=0;
passed=0;
AC_CHECK_HEADER(zlib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_CHECK_LIB(z,gzopen,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_CHECK_LIB(z,gzeof,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_CHECK_LIB(z,gzgetc,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_CHECK_LIB(z,gzgets,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_CHECK_LIB(z,gzclose,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_MSG_CHECKING(if zlib package is complete)
if test $failed -gt 0
then
AC_MSG_RESULT(no -- some components failed test)
ZLIB_LIBS=""
have_zlib=no
else
AC_MSG_RESULT(working)
AC_DEFINE(HAVE_ZLIB,1,[Define to 1 if you have a working zlib library.])
ZLIB_LIBS="-lz"
have_zlib=yes
AC_CHECK_LIB(z,gzbuffer,have_gzbuffer=1,have_gzbuffer=0)
if test $have_gzbuffer -gt 0
then
AC_DEFINE(HAVE_ZLIB_GZBUFFER,1,[Define to 1 if your zlib library has a gzbuffer function.])
fi
fi
;;
esac
AC_SUBST(ZLIB_LIBS)
# bzip2 package
AC_MSG_CHECKING(for bzlib support)
AC_ARG_ENABLE([bzlib],
AC_HELP_STRING([--enable-bzlib],
[Enable bzlib support (option needed for uncompressing bzip2 files) (default=yes)]),
[answer="$enableval"],
[answer=""])
case x"$answer" in
xno)
AC_MSG_RESULT(disabled)
BZLIB_LIBS=""
have_bzlib=no
;;
*)
AC_MSG_RESULT(enabled)
failed=0;
passed=0;
AC_CHECK_HEADER(bzlib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_CHECK_LIB(bz2,BZ2_bzReadOpen,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_CHECK_LIB(bz2,BZ2_bzRead,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_CHECK_LIB(bz2,BZ2_bzReadClose,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
AC_MSG_CHECKING(if bzlib package is complete)
if test $failed -gt 0
then
AC_MSG_RESULT(no -- some components failed test)
BZLIB_LIBS=""
have_bzlib=no
else
AC_MSG_RESULT(working)
AC_DEFINE(HAVE_BZLIB,1,[Define to 1 if you have a working bzlib library.])
BZLIB_LIBS="-lbz2"
have_bzlib=yes
fi
;;
esac
AC_SUBST(BZLIB_LIBS)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([src/Makefile])
AC_CONFIG_FILES([mpi/Makefile])
AC_CONFIG_FILES([util/Makefile])
AC_CONFIG_FILES([util/gmap_compress.pl])
AC_CONFIG_FILES([util/gmap_uncompress.pl])
AC_CONFIG_FILES([util/gmap_process.pl])
AC_CONFIG_FILES([util/gmap_build.pl])
AC_CONFIG_FILES([util/gmap_reassemble.pl])
AC_CONFIG_FILES([util/md_coords.pl])
AC_CONFIG_FILES([util/fa_coords.pl])
AC_CONFIG_FILES([util/psl_splicesites.pl])
AC_CONFIG_FILES([util/psl_introns.pl])
AC_CONFIG_FILES([util/psl_genes.pl])
AC_CONFIG_FILES([util/ensembl_genes.pl])
AC_CONFIG_FILES([util/gtf_splicesites.pl])
AC_CONFIG_FILES([util/gtf_introns.pl])
AC_CONFIG_FILES([util/gtf_genes.pl])
AC_CONFIG_FILES([util/gff3_splicesites.pl])
AC_CONFIG_FILES([util/gff3_introns.pl])
AC_CONFIG_FILES([util/gff3_genes.pl])
AC_CONFIG_FILES([util/dbsnp_iit.pl])
AC_CONFIG_FILES([util/gvf_iit.pl])
AC_CONFIG_FILES([util/vcf_iit.pl])
AC_CONFIG_FILES([tests/Makefile])
AC_CONFIG_FILES([tests/align.test],[chmod +x tests/align.test])
AC_CONFIG_FILES([tests/coords1.test],[chmod +x tests/coords1.test])
AC_CONFIG_FILES([tests/setup1.test],[chmod +x tests/setup1.test])
AC_CONFIG_FILES([tests/iit.test],[chmod +x tests/iit.test])
AC_OUTPUT
if test x"$perl_warning" = xyes; then
AC_MSG_WARN([
WARNING: You don't seem to have perl installed with working
versions of the IO::File and Getopt::Std modules. If you know
where such a version of Perl exists, please specify its full
path under PERL in the config.site file and run configure again.
])
fi
if test x"$pthread_warning" = xyes; then
AC_MSG_WARN([
WARNING: You don't seem to have headers and libraries for pthreads.
GMAP will work without these, but the program can run faster on
multiprocessor machines if POSIX threads are available. If you wish
to enable pthreads, please specify the appropriate values for CC,
PTHREAD_CFLAGS, and PTHREAD_LIBS in the config.site file and run
configure again. Otherwise, you may proceed with the rest of the
installation.
])
fi
if test x"$acx_mmap_fixed_ok" != xyes; then
if test x$"acx_mmap_variable_ok" != xyes; then
AC_MSG_WARN([
WARNING: You don't seem to have memory mapping. GMAP will work
without this, but the program can run faster if memory mapping is
available. If you wish to enable memory mapping, please specify the
appropriate values for CC, PTHREAD_CFLAGS, and PTHREAD_LIBS in the
config.site file and run configure again. Otherwise, you may proceed
with the rest of the installation.
])
fi
fi
if test x"$ax_cv_sse2_shift_defect" = xyes; then
AC_MSG_WARN([
WARNING: Your C compiler does not know how to handle a particular
form of the SSE2 shift commands, and must be somewhat old (probably
gcc 4.1 or gcc 4.2). The configure script has therefore substituted
alternate C code that your compiler can handle. However, for
optimal performance, you may want to obtain a more recent C compiler
and build the code with that.
])
fi
if test x"$ax_cv_ext_compiler_problem" = x"yes"; then
AC_MSG_WARN([
WARNING: Your C compiler appears not to take advantage of all of the
SIMD features available on your computer, and must be somewhat old.
The configure script has therefore substituted alternate C code that
your compiler can handle. However, for optimal performance, you may
want to obtain a more recent C compiler and build the code with that.
Here are the compiler flags to be used for SIMD:
])
fi
if test x"$ax_cv_ext_linker_problem" = x"yes"; then
AC_MSG_WARN([
WARNING: Your C linker appears not to work on SIMD header files that
your C compiler accepts, so there appears to be some incompatibility
between your compiler and linker. The configure script has therefore
substituted alternate C code that your linker can handle. However,
for optimal performance, you may need to set your LDFLAGS or
LD_LIBRARY_PATH environment variable to the correct directory, or
rebuild your compiler and linker.
])
fi
AC_MSG_CHECKING(Standard compiler and flags to be used)
AC_MSG_RESULT($CC $CFLAGS)
AC_MSG_CHECKING(Standard linker flags to be used)
AC_MSG_RESULT($LD_FLAGS)
AC_MSG_CHECKING(MPI compiler and flags to be used)
AC_MSG_RESULT($MPICC $MPI_CFLAGS)
AC_MSG_CHECKING(MPI linker flags to be used)
AC_MSG_RESULT($MPI_CLDFLAGS)
AC_MSG_CHECKING(pthread compiler flags to be used)
AC_MSG_RESULT($PTHREAD_CFLAGS)
AC_MSG_CHECKING(popcnt compiler flags to be used)
AC_MSG_RESULT($POPCNT_CFLAGS)
AC_MSG_CHECKING(SIMD features available on computer)
AC_MSG_RESULT($ax_cv_cpu_features)
AC_MSG_CHECKING(SIMD compiler flags to be used)
AC_MSG_RESULT($SIMD_CFLAGS)